var JoomlaMediaManager = (function () { 'use strict'; function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); } function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; } function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (it) return (it = it.call(o)).next.bind(it); if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; var check = function (it) { return it && it.Math == Math && it; }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var global$1e = // eslint-disable-next-line es/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 objectGetOwnPropertyDescriptor = {}; var fails$I = function (exec) { try { return !!exec(); } catch (error) { return true; } }; var fails$H = fails$I; // Detect IE8's incomplete defineProperty implementation var descriptors = !fails$H(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; }); var call$q = Function.prototype.call; var functionCall = call$q.bind ? call$q.bind(call$q) : function () { return call$q.apply(call$q, arguments); }; var objectPropertyIsEnumerable = {}; var $propertyIsEnumerable$1 = {}.propertyIsEnumerable; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor$6 = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug var NASHORN_BUG = getOwnPropertyDescriptor$6 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1); // `Object.prototype.propertyIsEnumerable` method implementation // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) { var descriptor = getOwnPropertyDescriptor$6(this, V); return !!descriptor && descriptor.enumerable; } : $propertyIsEnumerable$1; var createPropertyDescriptor$8 = function (bitmap, value) { return { enumerable: !(bitmap & 1), configurable: !(bitmap & 2), writable: !(bitmap & 4), value: value }; }; var FunctionPrototype$3 = Function.prototype; var bind$c = FunctionPrototype$3.bind; var call$p = FunctionPrototype$3.call; var callBind = bind$c && bind$c.bind(call$p); var functionUncurryThis = bind$c ? function (fn) { return fn && callBind(call$p, fn); } : function (fn) { return fn && function () { return call$p.apply(fn, arguments); }; }; var uncurryThis$N = functionUncurryThis; var toString$i = uncurryThis$N({}.toString); var stringSlice$a = uncurryThis$N(''.slice); var classofRaw$1 = function (it) { return stringSlice$a(toString$i(it), 8, -1); }; var global$1d = global$1e; var uncurryThis$M = functionUncurryThis; var fails$G = fails$I; var classof$e = classofRaw$1; var Object$5 = global$1d.Object; var split$3 = uncurryThis$M(''.split); // fallback for non-array-like ES3 and non-enumerable old V8 strings var indexedObject = fails$G(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 classof$e(it) == 'String' ? split$3(it, '') : Object$5(it); } : Object$5; var global$1c = global$1e; var TypeError$n = global$1c.TypeError; // `RequireObjectCoercible` abstract operation // https://tc39.es/ecma262/#sec-requireobjectcoercible var requireObjectCoercible$d = function (it) { if (it == undefined) throw TypeError$n("Can't call method on " + it); return it; }; // toObject with fallback for non-array-like ES3 strings var IndexedObject$4 = indexedObject; var requireObjectCoercible$c = requireObjectCoercible$d; var toIndexedObject$a = function (it) { return IndexedObject$4(requireObjectCoercible$c(it)); }; // `IsCallable` abstract operation // https://tc39.es/ecma262/#sec-iscallable var isCallable$q = function (argument) { return typeof argument == 'function'; }; var isCallable$p = isCallable$q; var isObject$s = function (it) { return typeof it == 'object' ? it !== null : isCallable$p(it); }; var global$1b = global$1e; var isCallable$o = isCallable$q; var aFunction = function (argument) { return isCallable$o(argument) ? argument : undefined; }; var getBuiltIn$a = function (namespace, method) { return arguments.length < 2 ? aFunction(global$1b[namespace]) : global$1b[namespace] && global$1b[namespace][method]; }; var uncurryThis$L = functionUncurryThis; var objectIsPrototypeOf = uncurryThis$L({}.isPrototypeOf); var getBuiltIn$9 = getBuiltIn$a; var engineUserAgent = getBuiltIn$9('navigator', 'userAgent') || ''; var global$1a = global$1e; var userAgent$5 = engineUserAgent; var process$3 = global$1a.process; var Deno = global$1a.Deno; var versions = process$3 && process$3.versions || Deno && Deno.version; var v8 = versions && versions.v8; var match, version$1; if (v8) { match = v8.split('.'); // in old Chrome, versions of V8 isn't V8 = Chrome / 10 // but their correct versions are not interesting for us version$1 = 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$1 && userAgent$5) { match = userAgent$5.match(/Edge\/(\d+)/); if (!match || match[1] >= 74) { match = userAgent$5.match(/Chrome\/(\d+)/); if (match) version$1 = +match[1]; } } var engineV8Version = version$1; /* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION$3 = engineV8Version; var fails$F = fails$I; // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$F(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 && V8_VERSION$3 && V8_VERSION$3 < 41; }); /* eslint-disable es/no-symbol -- required for testing */ var NATIVE_SYMBOL$3 = nativeSymbol; var useSymbolAsUid = NATIVE_SYMBOL$3 && !Symbol.sham && typeof Symbol.iterator == 'symbol'; var global$19 = global$1e; var getBuiltIn$8 = getBuiltIn$a; var isCallable$n = isCallable$q; var isPrototypeOf$8 = objectIsPrototypeOf; var USE_SYMBOL_AS_UID$1 = useSymbolAsUid; var Object$4 = global$19.Object; var isSymbol$6 = USE_SYMBOL_AS_UID$1 ? function (it) { return typeof it == 'symbol'; } : function (it) { var $Symbol = getBuiltIn$8('Symbol'); return isCallable$n($Symbol) && isPrototypeOf$8($Symbol.prototype, Object$4(it)); }; var global$18 = global$1e; var String$6 = global$18.String; var tryToString$5 = function (argument) { try { return String$6(argument); } catch (error) { return 'Object'; } }; var global$17 = global$1e; var isCallable$m = isCallable$q; var tryToString$4 = tryToString$5; var TypeError$m = global$17.TypeError; // `Assert: IsCallable(argument) is true` var aCallable$8 = function (argument) { if (isCallable$m(argument)) return argument; throw TypeError$m(tryToString$4(argument) + ' is not a function'); }; var aCallable$7 = aCallable$8; // `GetMethod` abstract operation // https://tc39.es/ecma262/#sec-getmethod var getMethod$7 = function (V, P) { var func = V[P]; return func == null ? undefined : aCallable$7(func); }; var global$16 = global$1e; var call$o = functionCall; var isCallable$l = isCallable$q; var isObject$r = isObject$s; var TypeError$l = global$16.TypeError; // `OrdinaryToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-ordinarytoprimitive var ordinaryToPrimitive$1 = function (input, pref) { var fn, val; if (pref === 'string' && isCallable$l(fn = input.toString) && !isObject$r(val = call$o(fn, input))) return val; if (isCallable$l(fn = input.valueOf) && !isObject$r(val = call$o(fn, input))) return val; if (pref !== 'string' && isCallable$l(fn = input.toString) && !isObject$r(val = call$o(fn, input))) return val; throw TypeError$l("Can't convert object to primitive value"); }; var shared$5 = {exports: {}}; var isPure = false; var global$15 = global$1e; // eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty$b = Object.defineProperty; var setGlobal$3 = function (key, value) { try { defineProperty$b(global$15, key, { value: value, configurable: true, writable: true }); } catch (error) { global$15[key] = value; } return value; }; var global$14 = global$1e; var setGlobal$2 = setGlobal$3; var SHARED = '__core-js_shared__'; var store$4 = global$14[SHARED] || setGlobal$2(SHARED, {}); var sharedStore = store$4; var store$3 = sharedStore; (shared$5.exports = function (key, value) { return store$3[key] || (store$3[key] = value !== undefined ? value : {}); })('versions', []).push({ version: '3.20.1', mode: 'global', copyright: '© 2021 Denis Pushkarev (zloirock.ru)' }); var global$13 = global$1e; var requireObjectCoercible$b = requireObjectCoercible$d; var Object$3 = global$13.Object; // `ToObject` abstract operation // https://tc39.es/ecma262/#sec-toobject var toObject$g = function (argument) { return Object$3(requireObjectCoercible$b(argument)); }; var uncurryThis$K = functionUncurryThis; var toObject$f = toObject$g; var hasOwnProperty$1 = uncurryThis$K({}.hasOwnProperty); // `HasOwnProperty` abstract operation // https://tc39.es/ecma262/#sec-hasownproperty var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) { return hasOwnProperty$1(toObject$f(it), key); }; var uncurryThis$J = functionUncurryThis; var id$2 = 0; var postfix = Math.random(); var toString$h = uncurryThis$J(1.0.toString); var uid$7 = function (key) { return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$h(++id$2 + postfix, 36); }; var global$12 = global$1e; var shared$4 = shared$5.exports; var hasOwn$l = hasOwnProperty_1; var uid$6 = uid$7; var NATIVE_SYMBOL$2 = nativeSymbol; var USE_SYMBOL_AS_UID = useSymbolAsUid; var WellKnownSymbolsStore$1 = shared$4('wks'); var Symbol$1 = global$12.Symbol; var symbolFor = Symbol$1 && Symbol$1['for']; var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$6; var wellKnownSymbol$s = function (name) { if (!hasOwn$l(WellKnownSymbolsStore$1, name) || !(NATIVE_SYMBOL$2 || typeof WellKnownSymbolsStore$1[name] == 'string')) { var description = 'Symbol.' + name; if (NATIVE_SYMBOL$2 && hasOwn$l(Symbol$1, name)) { WellKnownSymbolsStore$1[name] = Symbol$1[name]; } else if (USE_SYMBOL_AS_UID && symbolFor) { WellKnownSymbolsStore$1[name] = symbolFor(description); } else { WellKnownSymbolsStore$1[name] = createWellKnownSymbol(description); } } return WellKnownSymbolsStore$1[name]; }; var global$11 = global$1e; var call$n = functionCall; var isObject$q = isObject$s; var isSymbol$5 = isSymbol$6; var getMethod$6 = getMethod$7; var ordinaryToPrimitive = ordinaryToPrimitive$1; var wellKnownSymbol$r = wellKnownSymbol$s; var TypeError$k = global$11.TypeError; var TO_PRIMITIVE$1 = wellKnownSymbol$r('toPrimitive'); // `ToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-toprimitive var toPrimitive$2 = function (input, pref) { if (!isObject$q(input) || isSymbol$5(input)) return input; var exoticToPrim = getMethod$6(input, TO_PRIMITIVE$1); var result; if (exoticToPrim) { if (pref === undefined) pref = 'default'; result = call$n(exoticToPrim, input, pref); if (!isObject$q(result) || isSymbol$5(result)) return result; throw TypeError$k("Can't convert object to primitive value"); } if (pref === undefined) pref = 'number'; return ordinaryToPrimitive(input, pref); }; var toPrimitive$1 = toPrimitive$2; var isSymbol$4 = isSymbol$6; // `ToPropertyKey` abstract operation // https://tc39.es/ecma262/#sec-topropertykey var toPropertyKey$5 = function (argument) { var key = toPrimitive$1(argument, 'string'); return isSymbol$4(key) ? key : key + ''; }; var global$10 = global$1e; var isObject$p = isObject$s; var document$3 = global$10.document; // typeof document.createElement is 'object' in old IE var EXISTS$1 = isObject$p(document$3) && isObject$p(document$3.createElement); var documentCreateElement$2 = function (it) { return EXISTS$1 ? document$3.createElement(it) : {}; }; var DESCRIPTORS$h = descriptors; var fails$E = fails$I; var createElement$1 = documentCreateElement$2; // Thank's IE8 for his funny defineProperty var ie8DomDefine = !DESCRIPTORS$h && !fails$E(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty(createElement$1('div'), 'a', { get: function () { return 7; } }).a != 7; }); var DESCRIPTORS$g = descriptors; var call$m = functionCall; var propertyIsEnumerableModule$2 = objectPropertyIsEnumerable; var createPropertyDescriptor$7 = createPropertyDescriptor$8; var toIndexedObject$9 = toIndexedObject$a; var toPropertyKey$4 = toPropertyKey$5; var hasOwn$k = hasOwnProperty_1; var IE8_DOM_DEFINE$1 = ie8DomDefine; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor; // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor objectGetOwnPropertyDescriptor.f = DESCRIPTORS$g ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) { O = toIndexedObject$9(O); P = toPropertyKey$4(P); if (IE8_DOM_DEFINE$1) try { return $getOwnPropertyDescriptor$1(O, P); } catch (error) { /* empty */ } if (hasOwn$k(O, P)) return createPropertyDescriptor$7(!call$m(propertyIsEnumerableModule$2.f, O, P), O[P]); }; var objectDefineProperty = {}; var global$$ = global$1e; var isObject$o = isObject$s; var String$5 = global$$.String; var TypeError$j = global$$.TypeError; // `Assert: Type(argument) is Object` var anObject$p = function (argument) { if (isObject$o(argument)) return argument; throw TypeError$j(String$5(argument) + ' is not an object'); }; var global$_ = global$1e; var DESCRIPTORS$f = descriptors; var IE8_DOM_DEFINE = ie8DomDefine; var anObject$o = anObject$p; var toPropertyKey$3 = toPropertyKey$5; var TypeError$i = global$_.TypeError; // eslint-disable-next-line es/no-object-defineproperty -- safe var $defineProperty$1 = Object.defineProperty; // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty objectDefineProperty.f = DESCRIPTORS$f ? $defineProperty$1 : function defineProperty(O, P, Attributes) { anObject$o(O); P = toPropertyKey$3(P); anObject$o(Attributes); if (IE8_DOM_DEFINE) try { return $defineProperty$1(O, P, Attributes); } catch (error) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw TypeError$i('Accessors not supported'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; var DESCRIPTORS$e = descriptors; var definePropertyModule$8 = objectDefineProperty; var createPropertyDescriptor$6 = createPropertyDescriptor$8; var createNonEnumerableProperty$a = DESCRIPTORS$e ? function (object, key, value) { return definePropertyModule$8.f(object, key, createPropertyDescriptor$6(1, value)); } : function (object, key, value) { object[key] = value; return object; }; var redefine$e = {exports: {}}; var uncurryThis$I = functionUncurryThis; var isCallable$k = isCallable$q; var store$2 = sharedStore; var functionToString$1 = uncurryThis$I(Function.toString); // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper if (!isCallable$k(store$2.inspectSource)) { store$2.inspectSource = function (it) { return functionToString$1(it); }; } var inspectSource$4 = store$2.inspectSource; var global$Z = global$1e; var isCallable$j = isCallable$q; var inspectSource$3 = inspectSource$4; var WeakMap$2 = global$Z.WeakMap; var nativeWeakMap = isCallable$j(WeakMap$2) && /native code/.test(inspectSource$3(WeakMap$2)); var shared$3 = shared$5.exports; var uid$5 = uid$7; var keys$2 = shared$3('keys'); var sharedKey$4 = function (key) { return keys$2[key] || (keys$2[key] = uid$5(key)); }; var hiddenKeys$6 = {}; var NATIVE_WEAK_MAP$1 = nativeWeakMap; var global$Y = global$1e; var uncurryThis$H = functionUncurryThis; var isObject$n = isObject$s; var createNonEnumerableProperty$9 = createNonEnumerableProperty$a; var hasOwn$j = hasOwnProperty_1; var shared$2 = sharedStore; var sharedKey$3 = sharedKey$4; var hiddenKeys$5 = hiddenKeys$6; var OBJECT_ALREADY_INITIALIZED = 'Object already initialized'; var TypeError$h = global$Y.TypeError; var WeakMap$1 = global$Y.WeakMap; var set$5, get$4, has$2; var enforce = function (it) { return has$2(it) ? get$4(it) : set$5(it, {}); }; var getterFor = function (TYPE) { return function (it) { var state; if (!isObject$n(it) || (state = get$4(it)).type !== TYPE) { throw TypeError$h('Incompatible receiver, ' + TYPE + ' required'); } return state; }; }; if (NATIVE_WEAK_MAP$1 || shared$2.state) { var store$1 = shared$2.state || (shared$2.state = new WeakMap$1()); var wmget = uncurryThis$H(store$1.get); var wmhas = uncurryThis$H(store$1.has); var wmset = uncurryThis$H(store$1.set); set$5 = function (it, metadata) { if (wmhas(store$1, it)) throw new TypeError$h(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; wmset(store$1, it, metadata); return metadata; }; get$4 = function (it) { return wmget(store$1, it) || {}; }; has$2 = function (it) { return wmhas(store$1, it); }; } else { var STATE = sharedKey$3('state'); hiddenKeys$5[STATE] = true; set$5 = function (it, metadata) { if (hasOwn$j(it, STATE)) throw new TypeError$h(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; createNonEnumerableProperty$9(it, STATE, metadata); return metadata; }; get$4 = function (it) { return hasOwn$j(it, STATE) ? it[STATE] : {}; }; has$2 = function (it) { return hasOwn$j(it, STATE); }; } var internalState = { set: set$5, get: get$4, has: has$2, enforce: enforce, getterFor: getterFor }; var DESCRIPTORS$d = descriptors; var hasOwn$i = hasOwnProperty_1; var FunctionPrototype$2 = Function.prototype; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getDescriptor = DESCRIPTORS$d && Object.getOwnPropertyDescriptor; var EXISTS = hasOwn$i(FunctionPrototype$2, 'name'); // additional protection from minified / mangled / dropped function names var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something'; var CONFIGURABLE = EXISTS && (!DESCRIPTORS$d || (DESCRIPTORS$d && getDescriptor(FunctionPrototype$2, 'name').configurable)); var functionName = { EXISTS: EXISTS, PROPER: PROPER, CONFIGURABLE: CONFIGURABLE }; var global$X = global$1e; var isCallable$i = isCallable$q; var hasOwn$h = hasOwnProperty_1; var createNonEnumerableProperty$8 = createNonEnumerableProperty$a; var setGlobal$1 = setGlobal$3; var inspectSource$2 = inspectSource$4; var InternalStateModule$a = internalState; var CONFIGURABLE_FUNCTION_NAME$2 = functionName.CONFIGURABLE; var getInternalState$7 = InternalStateModule$a.get; var enforceInternalState$1 = InternalStateModule$a.enforce; var TEMPLATE = String(String).split('String'); (redefine$e.exports = 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; var state; if (isCallable$i(value)) { if (String(name).slice(0, 7) === 'Symbol(') { name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']'; } if (!hasOwn$h(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$2 && value.name !== name)) { createNonEnumerableProperty$8(value, 'name', name); } state = enforceInternalState$1(value); if (!state.source) { state.source = TEMPLATE.join(typeof name == 'string' ? name : ''); } } if (O === global$X) { if (simple) O[key] = value; else setGlobal$1(key, value); return; } else if (!unsafe) { delete O[key]; } else if (!noTargetGet && O[key]) { simple = true; } if (simple) O[key] = value; else createNonEnumerableProperty$8(O, key, value); // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative })(Function.prototype, 'toString', function toString() { return isCallable$i(this) && getInternalState$7(this).source || inspectSource$2(this); }); var objectGetOwnPropertyNames = {}; var ceil = Math.ceil; var floor$8 = Math.floor; // `ToIntegerOrInfinity` abstract operation // https://tc39.es/ecma262/#sec-tointegerorinfinity var toIntegerOrInfinity$c = function (argument) { var number = +argument; // eslint-disable-next-line no-self-compare -- safe return number !== number || number === 0 ? 0 : (number > 0 ? floor$8 : ceil)(number); }; var toIntegerOrInfinity$b = toIntegerOrInfinity$c; var max$4 = Math.max; var min$8 = 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$7 = function (index, length) { var integer = toIntegerOrInfinity$b(index); return integer < 0 ? max$4(integer + length, 0) : min$8(integer, length); }; var toIntegerOrInfinity$a = toIntegerOrInfinity$c; var min$7 = Math.min; // `ToLength` abstract operation // https://tc39.es/ecma262/#sec-tolength var toLength$a = function (argument) { return argument > 0 ? min$7(toIntegerOrInfinity$a(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 }; var toLength$9 = toLength$a; // `LengthOfArrayLike` abstract operation // https://tc39.es/ecma262/#sec-lengthofarraylike var lengthOfArrayLike$h = function (obj) { return toLength$9(obj.length); }; var toIndexedObject$8 = toIndexedObject$a; var toAbsoluteIndex$6 = toAbsoluteIndex$7; var lengthOfArrayLike$g = lengthOfArrayLike$h; // `Array.prototype.{ indexOf, includes }` methods implementation var createMethod$4 = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIndexedObject$8($this); var length = lengthOfArrayLike$g(O); var index = toAbsoluteIndex$6(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++]; // eslint-disable-next-line no-self-compare -- NaN check if (value != value) return true; // Array#indexOf ignores holes, Array#includes - not } else for (;length > index; index++) { if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0; } return !IS_INCLUDES && -1; }; }; var arrayIncludes = { // `Array.prototype.includes` method // https://tc39.es/ecma262/#sec-array.prototype.includes includes: createMethod$4(true), // `Array.prototype.indexOf` method // https://tc39.es/ecma262/#sec-array.prototype.indexof indexOf: createMethod$4(false) }; var uncurryThis$G = functionUncurryThis; var hasOwn$g = hasOwnProperty_1; var toIndexedObject$7 = toIndexedObject$a; var indexOf$1 = arrayIncludes.indexOf; var hiddenKeys$4 = hiddenKeys$6; var push$8 = uncurryThis$G([].push); var objectKeysInternal = function (object, names) { var O = toIndexedObject$7(object); var i = 0; var result = []; var key; for (key in O) !hasOwn$g(hiddenKeys$4, key) && hasOwn$g(O, key) && push$8(result, key); // Don't enum bug & hidden keys while (names.length > i) if (hasOwn$g(O, key = names[i++])) { ~indexOf$1(result, key) || push$8(result, key); } return result; }; // IE8- don't enum bug keys var enumBugKeys$3 = [ 'constructor', 'hasOwnProperty', 'isPrototypeOf', 'propertyIsEnumerable', 'toLocaleString', 'toString', 'valueOf' ]; var internalObjectKeys$1 = objectKeysInternal; var enumBugKeys$2 = enumBugKeys$3; var hiddenKeys$3 = enumBugKeys$2.concat('length', 'prototype'); // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames // eslint-disable-next-line es/no-object-getownpropertynames -- safe objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) { return internalObjectKeys$1(O, hiddenKeys$3); }; var objectGetOwnPropertySymbols = {}; // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols; var getBuiltIn$7 = getBuiltIn$a; var uncurryThis$F = functionUncurryThis; var getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames; var getOwnPropertySymbolsModule$2 = objectGetOwnPropertySymbols; var anObject$n = anObject$p; var concat$2 = uncurryThis$F([].concat); // all object keys, includes non-enumerable and symbols var ownKeys$3 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) { var keys = getOwnPropertyNamesModule$2.f(anObject$n(it)); var getOwnPropertySymbols = getOwnPropertySymbolsModule$2.f; return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys; }; var hasOwn$f = hasOwnProperty_1; var ownKeys$2 = ownKeys$3; var getOwnPropertyDescriptorModule$4 = objectGetOwnPropertyDescriptor; var definePropertyModule$7 = objectDefineProperty; var copyConstructorProperties$2 = function (target, source, exceptions) { var keys = ownKeys$2(source); var defineProperty = definePropertyModule$7.f; var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$4.f; for (var i = 0; i < keys.length; i++) { var key = keys[i]; if (!hasOwn$f(target, key) && !(exceptions && hasOwn$f(exceptions, key))) { defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } } }; var fails$D = fails$I; var isCallable$h = isCallable$q; var replacement = /#|\.prototype\./; var isForced$4 = function (feature, detection) { var value = data[normalize(feature)]; return value == POLYFILL ? true : value == NATIVE ? false : isCallable$h(detection) ? fails$D(detection) : !!detection; }; var normalize = isForced$4.normalize = function (string) { return String(string).replace(replacement, '.').toLowerCase(); }; var data = isForced$4.data = {}; var NATIVE = isForced$4.NATIVE = 'N'; var POLYFILL = isForced$4.POLYFILL = 'P'; var isForced_1 = isForced$4; var global$W = global$1e; var getOwnPropertyDescriptor$5 = objectGetOwnPropertyDescriptor.f; var createNonEnumerableProperty$7 = createNonEnumerableProperty$a; var redefine$d = redefine$e.exports; var setGlobal = setGlobal$3; var copyConstructorProperties$1 = copyConstructorProperties$2; var isForced$3 = 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 options.real - real prototype method for the `pure` version options.forced - export even if the native feature is available options.bind - bind methods to the target, required for the `pure` version options.wrap - wrap constructors to preventing global pollution, required for the `pure` version options.unsafe - use the simple assignment of property instead of delete + defineProperty options.sham - add a flag to not completely full polyfills options.enumerable - export as enumerable property options.noTargetGet - prevent calling a getter on target options.name - the .name of the function if it does not match the key */ var _export = function (options, source) { var TARGET = options.target; var GLOBAL = options.global; var STATIC = options.stat; var FORCED, target, key, targetProperty, sourceProperty, descriptor; if (GLOBAL) { target = global$W; } else if (STATIC) { target = global$W[TARGET] || setGlobal(TARGET, {}); } else { target = (global$W[TARGET] || {}).prototype; } if (target) for (key in source) { sourceProperty = source[key]; if (options.noTargetGet) { descriptor = getOwnPropertyDescriptor$5(target, key); targetProperty = descriptor && descriptor.value; } else targetProperty = target[key]; FORCED = isForced$3(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced); // contained in target if (!FORCED && targetProperty !== undefined) { if (typeof sourceProperty == typeof targetProperty) continue; copyConstructorProperties$1(sourceProperty, targetProperty); } // add a flag to not completely full polyfills if (options.sham || (targetProperty && targetProperty.sham)) { createNonEnumerableProperty$7(sourceProperty, 'sham', true); } // extend global redefine$d(target, key, sourceProperty, options); } }; var wellKnownSymbol$q = wellKnownSymbol$s; var TO_STRING_TAG$4 = wellKnownSymbol$q('toStringTag'); var test$1 = {}; test$1[TO_STRING_TAG$4] = 'z'; var toStringTagSupport = String(test$1) === '[object z]'; var global$V = global$1e; var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport; var isCallable$g = isCallable$q; var classofRaw = classofRaw$1; var wellKnownSymbol$p = wellKnownSymbol$s; var TO_STRING_TAG$3 = wellKnownSymbol$p('toStringTag'); var Object$2 = global$V.Object; // ES3 wrong here var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments'; // fallback for IE11 Script Access Denied error var tryGet = function (it, key) { try { return it[key]; } catch (error) { /* empty */ } }; // getting tag from ES6+ `Object.prototype.toString` var classof$d = 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$3)) == 'string' ? tag // builtinTag case : CORRECT_ARGUMENTS ? classofRaw(O) // ES3 arguments fallback : (result = classofRaw(O)) == 'Object' && isCallable$g(O.callee) ? 'Arguments' : result; }; var global$U = global$1e; var classof$c = classof$d; var String$4 = global$U.String; var toString$g = function (argument) { if (classof$c(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); return String$4(argument); }; var anObject$m = anObject$p; // `RegExp.prototype.flags` getter implementation // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags var regexpFlags$1 = function () { var that = anObject$m(this); var result = ''; if (that.global) result += 'g'; if (that.ignoreCase) result += 'i'; if (that.multiline) result += 'm'; if (that.dotAll) result += 's'; if (that.unicode) result += 'u'; if (that.sticky) result += 'y'; return result; }; var fails$C = fails$I; var global$T = global$1e; // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError var $RegExp$2 = global$T.RegExp; var UNSUPPORTED_Y$2 = fails$C(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 = UNSUPPORTED_Y$2 || fails$C(function () { return !$RegExp$2('a', 'y').sticky; }); var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$C(function () { // https://bugzilla.mozilla.org/show_bug.cgi?id=773687 var re = $RegExp$2('^r', 'gy'); re.lastIndex = 2; return re.exec('str') != null; }); var regexpStickyHelpers = { BROKEN_CARET: BROKEN_CARET, MISSED_STICKY: MISSED_STICKY, UNSUPPORTED_Y: UNSUPPORTED_Y$2 }; var internalObjectKeys = objectKeysInternal; var enumBugKeys$1 = enumBugKeys$3; // `Object.keys` method // https://tc39.es/ecma262/#sec-object.keys // eslint-disable-next-line es/no-object-keys -- safe var objectKeys$3 = Object.keys || function keys(O) { return internalObjectKeys(O, enumBugKeys$1); }; var DESCRIPTORS$c = descriptors; var definePropertyModule$6 = objectDefineProperty; var anObject$l = anObject$p; var toIndexedObject$6 = toIndexedObject$a; var objectKeys$2 = objectKeys$3; // `Object.defineProperties` method // https://tc39.es/ecma262/#sec-object.defineproperties // eslint-disable-next-line es/no-object-defineproperties -- safe var objectDefineProperties = DESCRIPTORS$c ? Object.defineProperties : function defineProperties(O, Properties) { anObject$l(O); var props = toIndexedObject$6(Properties); var keys = objectKeys$2(Properties); var length = keys.length; var index = 0; var key; while (length > index) definePropertyModule$6.f(O, key = keys[index++], props[key]); return O; }; var getBuiltIn$6 = getBuiltIn$a; var html$2 = getBuiltIn$6('document', 'documentElement'); /* global ActiveXObject -- old IE, WSH */ var anObject$k = anObject$p; var defineProperties$1 = objectDefineProperties; var enumBugKeys = enumBugKeys$3; var hiddenKeys$2 = hiddenKeys$6; var html$1 = html$2; var documentCreateElement$1 = documentCreateElement$2; var sharedKey$2 = sharedKey$4; var GT = '>'; var LT = '<'; var PROTOTYPE$2 = 'prototype'; var SCRIPT = 'script'; var IE_PROTO$1 = sharedKey$2('IE_PROTO'); var EmptyConstructor = function () { /* empty */ }; var scriptTag = function (content) { return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT; }; // Create object with fake `null` prototype: use ActiveX Object with cleared prototype var NullProtoObjectViaActiveX = function (activeXDocument) { activeXDocument.write(scriptTag('')); activeXDocument.close(); var temp = activeXDocument.parentWindow.Object; activeXDocument = null; // avoid memory leak return temp; }; // 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$1('iframe'); var JS = 'java' + SCRIPT + ':'; var iframeDocument; iframe.style.display = 'none'; html$1.appendChild(iframe); // https://github.com/zloirock/core-js/issues/475 iframe.src = String(JS); iframeDocument = iframe.contentWindow.document; iframeDocument.open(); iframeDocument.write(scriptTag('document.F=Object')); iframeDocument.close(); return iframeDocument.F; }; // Check for document.domain and active x support // No need to use active x approach when document.domain is not set // see https://github.com/es-shims/es5-shim/issues/150 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346 // avoid IE GC bug var activeXDocument; var NullProtoObject = function () { try { activeXDocument = new ActiveXObject('htmlfile'); } catch (error) { /* ignore */ } NullProtoObject = typeof document != 'undefined' ? document.domain && activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) // old IE : NullProtoObjectViaIFrame() : NullProtoObjectViaActiveX(activeXDocument); // WSH var length = enumBugKeys.length; while (length--) delete NullProtoObject[PROTOTYPE$2][enumBugKeys[length]]; return NullProtoObject(); }; hiddenKeys$2[IE_PROTO$1] = true; // `Object.create` method // https://tc39.es/ecma262/#sec-object.create var objectCreate = Object.create || function create(O, Properties) { var result; if (O !== null) { EmptyConstructor[PROTOTYPE$2] = anObject$k(O); result = new EmptyConstructor(); EmptyConstructor[PROTOTYPE$2] = null; // add "__proto__" for Object.getPrototypeOf polyfill result[IE_PROTO$1] = O; } else result = NullProtoObject(); return Properties === undefined ? result : defineProperties$1(result, Properties); }; var fails$B = fails$I; var global$S = global$1e; // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError var $RegExp$1 = global$S.RegExp; var regexpUnsupportedDotAll = fails$B(function () { var re = $RegExp$1('.', 's'); return !(re.dotAll && re.exec('\n') && re.flags === 's'); }); var fails$A = fails$I; var global$R = global$1e; // babel-minify and Closure Compiler transpiles RegExp('(?b)', 'g') -> /(?b)/g and it causes SyntaxError var $RegExp = global$R.RegExp; var regexpUnsupportedNcg = fails$A(function () { var re = $RegExp('(?b)', 'g'); return re.exec('b').groups.a !== 'b' || 'b'.replace(re, '$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$l = functionCall; var uncurryThis$E = functionUncurryThis; var toString$f = toString$g; var regexpFlags = regexpFlags$1; var stickyHelpers$1 = regexpStickyHelpers; var shared$1 = shared$5.exports; var create$5 = objectCreate; var getInternalState$6 = internalState.get; var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll; var UNSUPPORTED_NCG = regexpUnsupportedNcg; var nativeReplace = shared$1('native-string-replace', String.prototype.replace); var nativeExec = RegExp.prototype.exec; var patchedExec = nativeExec; var charAt$7 = uncurryThis$E(''.charAt); var indexOf = uncurryThis$E(''.indexOf); var replace$8 = uncurryThis$E(''.replace); var stringSlice$9 = uncurryThis$E(''.slice); var UPDATES_LAST_INDEX_WRONG = (function () { var re1 = /a/; var re2 = /b*/g; call$l(nativeExec, re1, 'a'); call$l(nativeExec, re2, 'a'); return re1.lastIndex !== 0 || re2.lastIndex !== 0; })(); var UNSUPPORTED_Y$1 = stickyHelpers$1.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$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG; if (PATCH) { patchedExec = function exec(string) { var re = this; var state = getInternalState$6(re); var str = toString$f(string); var raw = state.raw; var result, reCopy, lastIndex, match, i, object, group; if (raw) { raw.lastIndex = re.lastIndex; result = call$l(patchedExec, raw, str); re.lastIndex = raw.lastIndex; return result; } var groups = state.groups; var sticky = UNSUPPORTED_Y$1 && re.sticky; var flags = call$l(regexpFlags, re); var source = re.source; var charsAdded = 0; var strCopy = str; if (sticky) { flags = replace$8(flags, 'y', ''); if (indexOf(flags, 'g') === -1) { flags += 'g'; } strCopy = stringSlice$9(str, re.lastIndex); // Support anchored sticky behavior. if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$7(str, re.lastIndex - 1) !== '\n')) { source = '(?: ' + source + ')'; strCopy = ' ' + strCopy; charsAdded++; } // ^(? + rx + ) is needed, in combination with some str slicing, to // simulate the 'y' flag. reCopy = new RegExp('^(?:' + source + ')', flags); } if (NPCG_INCLUDED) { reCopy = new RegExp('^' + source + '$(?!\\s)', flags); } if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex; match = call$l(nativeExec, sticky ? reCopy : re, strCopy); if (sticky) { if (match) { match.input = stringSlice$9(match.input, charsAdded); match[0] = stringSlice$9(match[0], charsAdded); match.index = re.lastIndex; re.lastIndex += match[0].length; } else re.lastIndex = 0; } else if (UPDATES_LAST_INDEX_WRONG && match) { 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 /(.?)?/ call$l(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 = create$5(null); for (i = 0; i < groups.length; i++) { group = groups[i]; object[group[0]] = match[group[1]]; } } return match; }; } var regexpExec$3 = patchedExec; var $$G = _export; var exec$5 = regexpExec$3; // `RegExp.prototype.exec` method // https://tc39.es/ecma262/#sec-regexp.prototype.exec $$G({ target: 'RegExp', proto: true, forced: /./.exec !== exec$5 }, { exec: exec$5 }); var FunctionPrototype$1 = Function.prototype; var apply$8 = FunctionPrototype$1.apply; var bind$b = FunctionPrototype$1.bind; var call$k = FunctionPrototype$1.call; // eslint-disable-next-line es/no-reflect -- safe var functionApply = typeof Reflect == 'object' && Reflect.apply || (bind$b ? call$k.bind(apply$8) : function () { return call$k.apply(apply$8, arguments); }); // TODO: Remove from `core-js@4` since it's moved to entry points var uncurryThis$D = functionUncurryThis; var redefine$c = redefine$e.exports; var regexpExec$2 = regexpExec$3; var fails$z = fails$I; var wellKnownSymbol$o = wellKnownSymbol$s; var createNonEnumerableProperty$6 = createNonEnumerableProperty$a; var SPECIES$6 = wellKnownSymbol$o('species'); var RegExpPrototype$1 = RegExp.prototype; var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) { var SYMBOL = wellKnownSymbol$o(KEY); var DELEGATES_TO_SYMBOL = !fails$z(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$z(function () { // Symbol-named RegExp methods call .exec var execCalled = false; var re = /a/; if (KEY === 'split') { // We can't use real regex here since it causes deoptimization // and serious performance degradation in V8 // https://github.com/zloirock/core-js/issues/306 re = {}; // RegExp[@@split] doesn't call the regex's exec method, but first creates // a new one. We need to return the patched regex when creating the new one. re.constructor = {}; re.constructor[SPECIES$6] = function () { return re; }; re.flags = ''; re[SYMBOL] = /./[SYMBOL]; } re.exec = function () { execCalled = true; return null; }; re[SYMBOL](''); return !execCalled; }); if ( !DELEGATES_TO_SYMBOL || !DELEGATES_TO_EXEC || FORCED ) { var uncurriedNativeRegExpMethod = uncurryThis$D(/./[SYMBOL]); var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) { var uncurriedNativeMethod = uncurryThis$D(nativeMethod); var $exec = regexp.exec; if ($exec === regexpExec$2 || $exec === RegExpPrototype$1.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) }; } return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) }; } return { done: false }; }); redefine$c(String.prototype, KEY, methods[0]); redefine$c(RegExpPrototype$1, SYMBOL, methods[1]); } if (SHAM) createNonEnumerableProperty$6(RegExpPrototype$1[SYMBOL], 'sham', true); }; var isObject$m = isObject$s; var classof$b = classofRaw$1; var wellKnownSymbol$n = wellKnownSymbol$s; var MATCH$1 = wellKnownSymbol$n('match'); // `IsRegExp` abstract operation // https://tc39.es/ecma262/#sec-isregexp var isRegexp = function (it) { var isRegExp; return isObject$m(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$b(it) == 'RegExp'); }; var uncurryThis$C = functionUncurryThis; var fails$y = fails$I; var isCallable$f = isCallable$q; var classof$a = classof$d; var getBuiltIn$5 = getBuiltIn$a; var inspectSource$1 = inspectSource$4; var noop = function () { /* empty */ }; var empty = []; var construct = getBuiltIn$5('Reflect', 'construct'); var constructorRegExp = /^\s*(?:class|function)\b/; var exec$4 = uncurryThis$C(constructorRegExp.exec); var INCORRECT_TO_STRING = !constructorRegExp.exec(noop); var isConstructorModern = function isConstructor(argument) { if (!isCallable$f(argument)) return false; try { construct(noop, empty, argument); return true; } catch (error) { return false; } }; var isConstructorLegacy = function isConstructor(argument) { if (!isCallable$f(argument)) return false; switch (classof$a(argument)) { case 'AsyncFunction': case 'GeneratorFunction': case 'AsyncGeneratorFunction': return false; } try { // we can't check .prototype since constructors produced by .bind haven't it // `Function#toString` throws on some built-it function in some legacy engines // (for example, `DOMQuad` and similar in FF41-) return INCORRECT_TO_STRING || !!exec$4(constructorRegExp, inspectSource$1(argument)); } catch (error) { return true; } }; isConstructorLegacy.sham = true; // `IsConstructor` abstract operation // https://tc39.es/ecma262/#sec-isconstructor var isConstructor$4 = !construct || fails$y(function () { var called; return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function () { called = true; }) || called; }) ? isConstructorLegacy : isConstructorModern; var global$Q = global$1e; var isConstructor$3 = isConstructor$4; var tryToString$3 = tryToString$5; var TypeError$g = global$Q.TypeError; // `Assert: IsConstructor(argument) is true` var aConstructor$2 = function (argument) { if (isConstructor$3(argument)) return argument; throw TypeError$g(tryToString$3(argument) + ' is not a constructor'); }; var anObject$j = anObject$p; var aConstructor$1 = aConstructor$2; var wellKnownSymbol$m = wellKnownSymbol$s; var SPECIES$5 = wellKnownSymbol$m('species'); // `SpeciesConstructor` abstract operation // https://tc39.es/ecma262/#sec-speciesconstructor var speciesConstructor$3 = function (O, defaultConstructor) { var C = anObject$j(O).constructor; var S; return C === undefined || (S = anObject$j(C)[SPECIES$5]) == undefined ? defaultConstructor : aConstructor$1(S); }; var uncurryThis$B = functionUncurryThis; var toIntegerOrInfinity$9 = toIntegerOrInfinity$c; var toString$e = toString$g; var requireObjectCoercible$a = requireObjectCoercible$d; var charAt$6 = uncurryThis$B(''.charAt); var charCodeAt$3 = uncurryThis$B(''.charCodeAt); var stringSlice$8 = uncurryThis$B(''.slice); var createMethod$3 = function (CONVERT_TO_STRING) { return function ($this, pos) { var S = toString$e(requireObjectCoercible$a($this)); var position = toIntegerOrInfinity$9(pos); var size = S.length; var first, second; if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined; first = charCodeAt$3(S, position); return first < 0xD800 || first > 0xDBFF || position + 1 === size || (second = charCodeAt$3(S, position + 1)) < 0xDC00 || second > 0xDFFF ? CONVERT_TO_STRING ? charAt$6(S, position) : first : CONVERT_TO_STRING ? stringSlice$8(S, position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000; }; }; var stringMultibyte = { // `String.prototype.codePointAt` method // https://tc39.es/ecma262/#sec-string.prototype.codepointat codeAt: createMethod$3(false), // `String.prototype.at` method // https://github.com/mathiasbynens/String.prototype.at charAt: createMethod$3(true) }; var charAt$5 = stringMultibyte.charAt; // `AdvanceStringIndex` abstract operation // https://tc39.es/ecma262/#sec-advancestringindex var advanceStringIndex$3 = function (S, index, unicode) { return index + (unicode ? charAt$5(S, index).length : 1); }; var toPropertyKey$2 = toPropertyKey$5; var definePropertyModule$5 = objectDefineProperty; var createPropertyDescriptor$5 = createPropertyDescriptor$8; var createProperty$5 = function (object, key, value) { var propertyKey = toPropertyKey$2(key); if (propertyKey in object) definePropertyModule$5.f(object, propertyKey, createPropertyDescriptor$5(0, value)); else object[propertyKey] = value; }; var global$P = global$1e; var toAbsoluteIndex$5 = toAbsoluteIndex$7; var lengthOfArrayLike$f = lengthOfArrayLike$h; var createProperty$4 = createProperty$5; var Array$8 = global$P.Array; var max$3 = Math.max; var arraySliceSimple = function (O, start, end) { var length = lengthOfArrayLike$f(O); var k = toAbsoluteIndex$5(start, length); var fin = toAbsoluteIndex$5(end === undefined ? length : end, length); var result = Array$8(max$3(fin - k, 0)); for (var n = 0; k < fin; k++, n++) createProperty$4(result, n, O[k]); result.length = n; return result; }; var global$O = global$1e; var call$j = functionCall; var anObject$i = anObject$p; var isCallable$e = isCallable$q; var classof$9 = classofRaw$1; var regexpExec$1 = regexpExec$3; var TypeError$f = global$O.TypeError; // `RegExpExec` abstract operation // https://tc39.es/ecma262/#sec-regexpexec var regexpExecAbstract = function (R, S) { var exec = R.exec; if (isCallable$e(exec)) { var result = call$j(exec, R, S); if (result !== null) anObject$i(result); return result; } if (classof$9(R) === 'RegExp') return call$j(regexpExec$1, R, S); throw TypeError$f('RegExp#exec called on incompatible receiver'); }; var apply$7 = functionApply; var call$i = functionCall; var uncurryThis$A = functionUncurryThis; var fixRegExpWellKnownSymbolLogic$3 = fixRegexpWellKnownSymbolLogic; var isRegExp$1 = isRegexp; var anObject$h = anObject$p; var requireObjectCoercible$9 = requireObjectCoercible$d; var speciesConstructor$2 = speciesConstructor$3; var advanceStringIndex$2 = advanceStringIndex$3; var toLength$8 = toLength$a; var toString$d = toString$g; var getMethod$5 = getMethod$7; var arraySlice$a = arraySliceSimple; var callRegExpExec = regexpExecAbstract; var regexpExec = regexpExec$3; var stickyHelpers = regexpStickyHelpers; var fails$x = fails$I; var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y; var MAX_UINT32 = 0xFFFFFFFF; var min$6 = Math.min; var $push = [].push; var exec$3 = uncurryThis$A(/./.exec); var push$7 = uncurryThis$A($push); var stringSlice$7 = uncurryThis$A(''.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$x(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$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 || 'ab'.split(/(?:ab)*/).length != 2 || '.'.split(/(.?)(.?)/).length != 4 || // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing '.'.split(/()()/).length > 1 || ''.split(/.?/).length ) { // based on es5-shim implementation, need to rework it internalSplit = function (separator, limit) { var string = toString$d(requireObjectCoercible$9(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$1(separator)) { return call$i(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 = call$i(regexpExec, separatorCopy, string)) { lastIndex = separatorCopy.lastIndex; if (lastIndex > lastLastIndex) { push$7(output, stringSlice$7(string, lastLastIndex, match.index)); if (match.length > 1 && match.index < string.length) apply$7($push, output, arraySlice$a(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$3(separatorCopy, '')) push$7(output, ''); } else push$7(output, stringSlice$7(string, lastLastIndex)); return output.length > lim ? arraySlice$a(output, 0, lim) : output; }; // Chakra, V8 } else if ('0'.split(undefined, 0).length) { internalSplit = function (separator, limit) { return separator === undefined && limit === 0 ? [] : call$i(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$9(this); var splitter = separator == undefined ? undefined : getMethod$5(separator, SPLIT); return splitter ? call$i(splitter, separator, O, limit) : call$i(internalSplit, toString$d(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$h(this); var S = toString$d(string); var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit); if (res.done) return res.value; var C = speciesConstructor$2(rx, RegExp); var unicodeMatching = rx.unicode; var flags = (rx.ignoreCase ? 'i' : '') + (rx.multiline ? 'm' : '') + (rx.unicode ? 'u' : '') + (UNSUPPORTED_Y ? 'g' : 'y'); // ^(? + rx + ) is needed, in combination with some S slicing, to // simulate the 'y' flag. var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags); var lim = limit === undefined ? MAX_UINT32 : limit >>> 0; if (lim === 0) return []; 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 ? 0 : q; var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice$7(S, q) : S); var e; if ( z === null || (e = min$6(toLength$8(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p ) { q = advanceStringIndex$2(S, q, unicodeMatching); } else { push$7(A, stringSlice$7(S, p, q)); if (A.length === lim) return A; for (var i = 1; i <= z.length - 1; i++) { push$7(A, z[i]); if (A.length === lim) return A; } q = p = e; } } push$7(A, stringSlice$7(S, p)); return A; } ]; }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y); var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport; var classof$8 = classof$d; // `Object.prototype.toString` method implementation // https://tc39.es/ecma262/#sec-object.prototype.tostring var objectToString$1 = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() { return '[object ' + classof$8(this) + ']'; }; var TO_STRING_TAG_SUPPORT = toStringTagSupport; var redefine$b = redefine$e.exports; var toString$c = objectToString$1; // `Object.prototype.toString` method // https://tc39.es/ecma262/#sec-object.prototype.tostring if (!TO_STRING_TAG_SUPPORT) { redefine$b(Object.prototype, 'toString', toString$c, { unsafe: true }); } // iterable DOM collections // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods var domIterables = { CSSRuleList: 0, CSSStyleDeclaration: 0, CSSValueList: 0, ClientRectList: 0, DOMRectList: 0, DOMStringList: 0, DOMTokenList: 1, DataTransferItemList: 0, FileList: 0, HTMLAllCollection: 0, HTMLCollection: 0, HTMLFormElement: 0, HTMLSelectElement: 0, MediaList: 0, MimeTypeArray: 0, NamedNodeMap: 0, NodeList: 1, PaintRequestList: 0, Plugin: 0, PluginArray: 0, SVGLengthList: 0, SVGNumberList: 0, SVGPathSegList: 0, SVGPointList: 0, SVGStringList: 0, SVGTransformList: 0, SourceBufferList: 0, StyleSheetList: 0, TextTrackCueList: 0, 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$2 = classList && classList.constructor && classList.constructor.prototype; var domTokenListPrototype = DOMTokenListPrototype$2 === Object.prototype ? undefined : DOMTokenListPrototype$2; var uncurryThis$z = functionUncurryThis; var aCallable$6 = aCallable$8; var bind$a = uncurryThis$z(uncurryThis$z.bind); // optional / simple context binding var functionBindContext = function (fn, that) { aCallable$6(fn); return that === undefined ? fn : bind$a ? bind$a(fn, that) : function (/* ...args */) { return fn.apply(that, arguments); }; }; var classof$7 = classofRaw$1; // `IsArray` abstract operation // https://tc39.es/ecma262/#sec-isarray // eslint-disable-next-line es/no-array-isarray -- safe var isArray$5 = Array.isArray || function isArray(argument) { return classof$7(argument) == 'Array'; }; var global$N = global$1e; var isArray$4 = isArray$5; var isConstructor$2 = isConstructor$4; var isObject$l = isObject$s; var wellKnownSymbol$l = wellKnownSymbol$s; var SPECIES$4 = wellKnownSymbol$l('species'); var Array$7 = global$N.Array; // a part of `ArraySpeciesCreate` abstract operation // https://tc39.es/ecma262/#sec-arrayspeciescreate var arraySpeciesConstructor$1 = function (originalArray) { var C; if (isArray$4(originalArray)) { C = originalArray.constructor; // cross-realm fallback if (isConstructor$2(C) && (C === Array$7 || isArray$4(C.prototype))) C = undefined; else if (isObject$l(C)) { C = C[SPECIES$4]; if (C === null) C = undefined; } } return C === undefined ? Array$7 : C; }; var arraySpeciesConstructor = arraySpeciesConstructor$1; // `ArraySpeciesCreate` abstract operation // https://tc39.es/ecma262/#sec-arrayspeciescreate var arraySpeciesCreate$3 = function (originalArray, length) { return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length); }; var bind$9 = functionBindContext; var uncurryThis$y = functionUncurryThis; var IndexedObject$3 = indexedObject; var toObject$e = toObject$g; var lengthOfArrayLike$e = lengthOfArrayLike$h; var arraySpeciesCreate$2 = arraySpeciesCreate$3; var push$6 = uncurryThis$y([].push); // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation var createMethod$2 = 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$e($this); var self = IndexedObject$3(O); var boundFunction = bind$9(callbackfn, that); var length = lengthOfArrayLike$e(self); var index = 0; var create = specificCreate || arraySpeciesCreate$2; 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); if (TYPE) { if (IS_MAP) target[index] = result; // map else if (result) switch (TYPE) { case 3: return true; // some case 5: return value; // find case 6: return index; // findIndex case 2: push$6(target, value); // filter } else switch (TYPE) { case 4: return false; // every case 7: push$6(target, value); // filterReject } } } return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target; }; }; var arrayIteration = { // `Array.prototype.forEach` method // https://tc39.es/ecma262/#sec-array.prototype.foreach forEach: createMethod$2(0), // `Array.prototype.map` method // https://tc39.es/ecma262/#sec-array.prototype.map map: createMethod$2(1), // `Array.prototype.filter` method // https://tc39.es/ecma262/#sec-array.prototype.filter filter: createMethod$2(2), // `Array.prototype.some` method // https://tc39.es/ecma262/#sec-array.prototype.some some: createMethod$2(3), // `Array.prototype.every` method // https://tc39.es/ecma262/#sec-array.prototype.every every: createMethod$2(4), // `Array.prototype.find` method // https://tc39.es/ecma262/#sec-array.prototype.find find: createMethod$2(5), // `Array.prototype.findIndex` method // https://tc39.es/ecma262/#sec-array.prototype.findIndex findIndex: createMethod$2(6), // `Array.prototype.filterReject` method // https://github.com/tc39/proposal-array-filtering filterReject: createMethod$2(7) }; var fails$w = fails$I; var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) { var method = [][METHOD_NAME]; return !!method && fails$w(function () { // eslint-disable-next-line no-useless-call,no-throw-literal -- required for testing method.call(null, argument || function () { throw 1; }, 1); }); }; var $forEach$2 = arrayIteration.forEach; var arrayMethodIsStrict$3 = arrayMethodIsStrict$4; var STRICT_METHOD$3 = arrayMethodIsStrict$3('forEach'); // `Array.prototype.forEach` method implementation // https://tc39.es/ecma262/#sec-array.prototype.foreach var arrayForEach = !STRICT_METHOD$3 ? function forEach(callbackfn /* , thisArg */) { return $forEach$2(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); // eslint-disable-next-line es/no-array-prototype-foreach -- safe } : [].forEach; var global$M = global$1e; var DOMIterables$1 = domIterables; var DOMTokenListPrototype$1 = domTokenListPrototype; var forEach$1 = arrayForEach; var createNonEnumerableProperty$5 = createNonEnumerableProperty$a; var handlePrototype$1 = function (CollectionPrototype) { // some Chrome versions have non-configurable methods on DOMTokenList if (CollectionPrototype && CollectionPrototype.forEach !== forEach$1) try { createNonEnumerableProperty$5(CollectionPrototype, 'forEach', forEach$1); } catch (error) { CollectionPrototype.forEach = forEach$1; } }; for (var COLLECTION_NAME$1 in DOMIterables$1) { if (DOMIterables$1[COLLECTION_NAME$1]) { handlePrototype$1(global$M[COLLECTION_NAME$1] && global$M[COLLECTION_NAME$1].prototype); } } handlePrototype$1(DOMTokenListPrototype$1); // a string of all valid unicode whitespaces var whitespaces$2 = '\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 uncurryThis$x = functionUncurryThis; var requireObjectCoercible$8 = requireObjectCoercible$d; var toString$b = toString$g; var whitespaces$1 = whitespaces$2; var replace$7 = uncurryThis$x(''.replace); var whitespace = '[' + whitespaces$1 + ']'; var ltrim = RegExp('^' + whitespace + whitespace + '*'); var rtrim = RegExp(whitespace + whitespace + '*$'); // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation var createMethod$1 = function (TYPE) { return function ($this) { var string = toString$b(requireObjectCoercible$8($this)); if (TYPE & 1) string = replace$7(string, ltrim, ''); if (TYPE & 2) string = replace$7(string, rtrim, ''); return string; }; }; var stringTrim = { // `String.prototype.{ trimLeft, trimStart }` methods // https://tc39.es/ecma262/#sec-string.prototype.trimstart start: createMethod$1(1), // `String.prototype.{ trimRight, trimEnd }` methods // https://tc39.es/ecma262/#sec-string.prototype.trimend end: createMethod$1(2), // `String.prototype.trim` method // https://tc39.es/ecma262/#sec-string.prototype.trim trim: createMethod$1(3) }; var PROPER_FUNCTION_NAME$3 = functionName.PROPER; var fails$v = fails$I; var whitespaces = whitespaces$2; 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$v(function () { return !!whitespaces[METHOD_NAME]() || non[METHOD_NAME]() !== non || (PROPER_FUNCTION_NAME$3 && whitespaces[METHOD_NAME].name !== METHOD_NAME); }); }; var $$F = _export; var $trim = stringTrim.trim; var forcedStringTrimMethod = stringTrimForced; // `String.prototype.trim` method // https://tc39.es/ecma262/#sec-string.prototype.trim $$F({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, { trim: function trim() { return $trim(this); } }); var uncurryThis$w = functionUncurryThis; var PROPER_FUNCTION_NAME$2 = functionName.PROPER; var redefine$a = redefine$e.exports; var anObject$g = anObject$p; var isPrototypeOf$7 = objectIsPrototypeOf; var $toString$3 = toString$g; var fails$u = fails$I; var regExpFlags = regexpFlags$1; var TO_STRING = 'toString'; var RegExpPrototype = RegExp.prototype; var n$ToString = RegExpPrototype[TO_STRING]; var getFlags = uncurryThis$w(regExpFlags); var NOT_GENERIC = fails$u(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; }); // FF44- RegExp#toString has a wrong name var INCORRECT_NAME = PROPER_FUNCTION_NAME$2 && n$ToString.name != TO_STRING; // `RegExp.prototype.toString` method // https://tc39.es/ecma262/#sec-regexp.prototype.tostring if (NOT_GENERIC || INCORRECT_NAME) { redefine$a(RegExp.prototype, TO_STRING, function toString() { var R = anObject$g(this); var p = $toString$3(R.source); var rf = R.flags; var f = $toString$3(rf === undefined && isPrototypeOf$7(RegExpPrototype, R) && !('flags' in RegExpPrototype) ? getFlags(R) : rf); return '/' + p + '/' + f; }, { unsafe: true }); } var $$E = _export; var global$L = global$1e; var getBuiltIn$4 = getBuiltIn$a; var apply$6 = functionApply; var uncurryThis$v = functionUncurryThis; var fails$t = fails$I; var Array$6 = global$L.Array; var $stringify$1 = getBuiltIn$4('JSON', 'stringify'); var exec$2 = uncurryThis$v(/./.exec); var charAt$4 = uncurryThis$v(''.charAt); var charCodeAt$2 = uncurryThis$v(''.charCodeAt); var replace$6 = uncurryThis$v(''.replace); var numberToString$1 = uncurryThis$v(1.0.toString); var tester = /[\uD800-\uDFFF]/g; var low = /^[\uD800-\uDBFF]$/; var hi = /^[\uDC00-\uDFFF]$/; var fix = function (match, offset, string) { var prev = charAt$4(string, offset - 1); var next = charAt$4(string, offset + 1); if ((exec$2(low, match) && !exec$2(hi, next)) || (exec$2(hi, match) && !exec$2(low, prev))) { return '\\u' + numberToString$1(charCodeAt$2(match, 0), 16); } return match; }; var FORCED$8 = fails$t(function () { return $stringify$1('\uDF06\uD834') !== '"\\udf06\\ud834"' || $stringify$1('\uDEAD') !== '"\\udead"'; }); if ($stringify$1) { // `JSON.stringify` method // https://tc39.es/ecma262/#sec-json.stringify // https://github.com/tc39/proposal-well-formed-stringify $$E({ target: 'JSON', stat: true, forced: FORCED$8 }, { // eslint-disable-next-line no-unused-vars -- required for `.length` stringify: function stringify(it, replacer, space) { for (var i = 0, l = arguments.length, args = Array$6(l); i < l; i++) args[i] = arguments[i]; var result = apply$6($stringify$1, null, args); return typeof result == 'string' ? replace$6(result, tester, fix) : result; } }); } var fails$s = fails$I; var wellKnownSymbol$k = wellKnownSymbol$s; var V8_VERSION$2 = engineV8Version; var SPECIES$3 = wellKnownSymbol$k('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 V8_VERSION$2 >= 51 || !fails$s(function () { var array = []; var constructor = array.constructor = {}; constructor[SPECIES$3] = function () { return { foo: 1 }; }; return array[METHOD_NAME](Boolean).foo !== 1; }); }; var $$D = _export; var global$K = global$1e; var fails$r = fails$I; var isArray$3 = isArray$5; var isObject$k = isObject$s; var toObject$d = toObject$g; var lengthOfArrayLike$d = lengthOfArrayLike$h; var createProperty$3 = createProperty$5; var arraySpeciesCreate$1 = arraySpeciesCreate$3; var arrayMethodHasSpeciesSupport$4 = arrayMethodHasSpeciesSupport$5; var wellKnownSymbol$j = wellKnownSymbol$s; var V8_VERSION$1 = engineV8Version; var IS_CONCAT_SPREADABLE = wellKnownSymbol$j('isConcatSpreadable'); var MAX_SAFE_INTEGER$1 = 0x1FFFFFFFFFFFFF; var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded'; var TypeError$e = global$K.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 = V8_VERSION$1 >= 51 || !fails$r(function () { var array = []; array[IS_CONCAT_SPREADABLE] = false; return array.concat()[0] !== array; }); var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$4('concat'); var isConcatSpreadable = function (O) { if (!isObject$k(O)) return false; var spreadable = O[IS_CONCAT_SPREADABLE]; return spreadable !== undefined ? !!spreadable : isArray$3(O); }; var FORCED$7 = !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 $$D({ target: 'Array', proto: true, forced: FORCED$7 }, { // eslint-disable-next-line no-unused-vars -- required for `.length` concat: function concat(arg) { var O = toObject$d(this); var A = arraySpeciesCreate$1(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$d(E); if (n + len > MAX_SAFE_INTEGER$1) throw TypeError$e(MAXIMUM_ALLOWED_INDEX_EXCEEDED); for (k = 0; k < len; k++, n++) if (k in E) createProperty$3(A, n, E[k]); } else { if (n >= MAX_SAFE_INTEGER$1) throw TypeError$e(MAXIMUM_ALLOWED_INDEX_EXCEEDED); createProperty$3(A, n++, E); } } A.length = n; return A; } }); var wellKnownSymbol$i = wellKnownSymbol$s; var create$4 = objectCreate; var definePropertyModule$4 = objectDefineProperty; var UNSCOPABLES = wellKnownSymbol$i('unscopables'); var ArrayPrototype$1 = Array.prototype; // Array.prototype[@@unscopables] // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables if (ArrayPrototype$1[UNSCOPABLES] == undefined) { definePropertyModule$4.f(ArrayPrototype$1, UNSCOPABLES, { configurable: true, value: create$4(null) }); } // add a key to Array.prototype[@@unscopables] var addToUnscopables$4 = function (key) { ArrayPrototype$1[UNSCOPABLES][key] = true; }; var iterators = {}; var fails$q = fails$I; var correctPrototypeGetter = !fails$q(function () { function F() { /* empty */ } F.prototype.constructor = null; // eslint-disable-next-line es/no-object-getprototypeof -- required for testing return Object.getPrototypeOf(new F()) !== F.prototype; }); var global$J = global$1e; var hasOwn$e = hasOwnProperty_1; var isCallable$d = isCallable$q; var toObject$c = toObject$g; var sharedKey$1 = sharedKey$4; var CORRECT_PROTOTYPE_GETTER$1 = correctPrototypeGetter; var IE_PROTO = sharedKey$1('IE_PROTO'); var Object$1 = global$J.Object; var ObjectPrototype$3 = Object$1.prototype; // `Object.getPrototypeOf` method // https://tc39.es/ecma262/#sec-object.getprototypeof var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER$1 ? Object$1.getPrototypeOf : function (O) { var object = toObject$c(O); if (hasOwn$e(object, IE_PROTO)) return object[IE_PROTO]; var constructor = object.constructor; if (isCallable$d(constructor) && object instanceof constructor) { return constructor.prototype; } return object instanceof Object$1 ? ObjectPrototype$3 : null; }; var fails$p = fails$I; var isCallable$c = isCallable$q; var getPrototypeOf$5 = objectGetPrototypeOf$1; var redefine$9 = redefine$e.exports; var wellKnownSymbol$h = wellKnownSymbol$s; var ITERATOR$8 = wellKnownSymbol$h('iterator'); var BUGGY_SAFARI_ITERATORS$1 = false; // `%IteratorPrototype%` object // https://tc39.es/ecma262/#sec-%iteratorprototype%-object var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator; /* eslint-disable es/no-array-prototype-keys -- safe */ if ([].keys) { arrayIterator = [].keys(); // Safari 8 has buggy iterators w/o `next` if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true; else { PrototypeOfArrayIteratorPrototype = getPrototypeOf$5(getPrototypeOf$5(arrayIterator)); if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype; } } var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$p(function () { var test = {}; // FF44- legacy iterators case return IteratorPrototype$2[ITERATOR$8].call(test) !== test; }); if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {}; // `%IteratorPrototype%[@@iterator]()` method // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator if (!isCallable$c(IteratorPrototype$2[ITERATOR$8])) { redefine$9(IteratorPrototype$2, ITERATOR$8, function () { return this; }); } var iteratorsCore = { IteratorPrototype: IteratorPrototype$2, BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1 }; var defineProperty$a = objectDefineProperty.f; var hasOwn$d = hasOwnProperty_1; var wellKnownSymbol$g = wellKnownSymbol$s; var TO_STRING_TAG$2 = wellKnownSymbol$g('toStringTag'); var setToStringTag$9 = function (target, TAG, STATIC) { if (target && !STATIC) target = target.prototype; if (target && !hasOwn$d(target, TO_STRING_TAG$2)) { defineProperty$a(target, TO_STRING_TAG$2, { configurable: true, value: TAG }); } }; var IteratorPrototype$1 = iteratorsCore.IteratorPrototype; var create$3 = objectCreate; var createPropertyDescriptor$4 = createPropertyDescriptor$8; var setToStringTag$8 = setToStringTag$9; var Iterators$4 = iterators; var returnThis$1 = function () { return this; }; var createIteratorConstructor$2 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) { var TO_STRING_TAG = NAME + ' Iterator'; IteratorConstructor.prototype = create$3(IteratorPrototype$1, { next: createPropertyDescriptor$4(+!ENUMERABLE_NEXT, next) }); setToStringTag$8(IteratorConstructor, TO_STRING_TAG, false); Iterators$4[TO_STRING_TAG] = returnThis$1; return IteratorConstructor; }; var global$I = global$1e; var isCallable$b = isCallable$q; var String$3 = global$I.String; var TypeError$d = global$I.TypeError; var aPossiblePrototype$1 = function (argument) { if (typeof argument == 'object' || isCallable$b(argument)) return argument; throw TypeError$d("Can't set " + String$3(argument) + ' as a prototype'); }; /* eslint-disable no-proto -- safe */ var uncurryThis$u = functionUncurryThis; var anObject$f = anObject$p; 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/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/no-object-getownpropertydescriptor -- safe setter = uncurryThis$u(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set); setter(test, []); CORRECT_SETTER = test instanceof Array; } catch (error) { /* empty */ } return function setPrototypeOf(O, proto) { anObject$f(O); aPossiblePrototype(proto); if (CORRECT_SETTER) setter(O, proto); else O.__proto__ = proto; return O; }; }() : undefined); var $$C = _export; var call$h = functionCall; var FunctionName$1 = functionName; var isCallable$a = isCallable$q; var createIteratorConstructor$1 = createIteratorConstructor$2; var getPrototypeOf$4 = objectGetPrototypeOf$1; var setPrototypeOf$5 = objectSetPrototypeOf; var setToStringTag$7 = setToStringTag$9; var createNonEnumerableProperty$4 = createNonEnumerableProperty$a; var redefine$8 = redefine$e.exports; var wellKnownSymbol$f = wellKnownSymbol$s; var Iterators$3 = iterators; var IteratorsCore = iteratorsCore; var PROPER_FUNCTION_NAME$1 = FunctionName$1.PROPER; var CONFIGURABLE_FUNCTION_NAME$1 = FunctionName$1.CONFIGURABLE; var IteratorPrototype = IteratorsCore.IteratorPrototype; var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS; var ITERATOR$7 = wellKnownSymbol$f('iterator'); var KEYS = 'keys'; var VALUES = 'values'; var ENTRIES = 'entries'; var returnThis = function () { return this; }; var defineIterator$3 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) { createIteratorConstructor$1(IteratorConstructor, NAME, next); var getIterationMethod = function (KIND) { if (KIND === DEFAULT && defaultIterator) return defaultIterator; if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND]; switch (KIND) { case KEYS: return function keys() { return new IteratorConstructor(this, KIND); }; case VALUES: return function values() { return new IteratorConstructor(this, KIND); }; case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); }; } return function () { return new IteratorConstructor(this); }; }; var TO_STRING_TAG = NAME + ' Iterator'; var INCORRECT_VALUES_NAME = false; var IterablePrototype = Iterable.prototype; var nativeIterator = IterablePrototype[ITERATOR$7] || IterablePrototype['@@iterator'] || DEFAULT && IterablePrototype[DEFAULT]; var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT); var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator; var CurrentIteratorPrototype, methods, KEY; // fix native if (anyNativeIterator) { CurrentIteratorPrototype = getPrototypeOf$4(anyNativeIterator.call(new Iterable())); if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) { if (getPrototypeOf$4(CurrentIteratorPrototype) !== IteratorPrototype) { if (setPrototypeOf$5) { setPrototypeOf$5(CurrentIteratorPrototype, IteratorPrototype); } else if (!isCallable$a(CurrentIteratorPrototype[ITERATOR$7])) { redefine$8(CurrentIteratorPrototype, ITERATOR$7, returnThis); } } // Set @@toStringTag to native iterators setToStringTag$7(CurrentIteratorPrototype, TO_STRING_TAG, true); } } // fix Array.prototype.{ values, @@iterator }.name in V8 / FF if (PROPER_FUNCTION_NAME$1 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) { if (CONFIGURABLE_FUNCTION_NAME$1) { createNonEnumerableProperty$4(IterablePrototype, 'name', VALUES); } else { INCORRECT_VALUES_NAME = true; defaultIterator = function values() { return call$h(nativeIterator, this); }; } } // export additional methods if (DEFAULT) { methods = { values: getIterationMethod(VALUES), 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)) { redefine$8(IterablePrototype, KEY, methods[KEY]); } } else $$C({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods); } // define iterator if (IterablePrototype[ITERATOR$7] !== defaultIterator) { redefine$8(IterablePrototype, ITERATOR$7, defaultIterator, { name: DEFAULT }); } Iterators$3[NAME] = defaultIterator; return methods; }; var toIndexedObject$5 = toIndexedObject$a; var addToUnscopables$3 = addToUnscopables$4; var Iterators$2 = iterators; var InternalStateModule$9 = internalState; var defineProperty$9 = objectDefineProperty.f; var defineIterator$2 = defineIterator$3; var DESCRIPTORS$b = descriptors; var ARRAY_ITERATOR = 'Array Iterator'; var setInternalState$9 = InternalStateModule$9.set; var getInternalState$5 = InternalStateModule$9.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 // `Array.prototype.values` method // https://tc39.es/ecma262/#sec-array.prototype.values // `Array.prototype[@@iterator]` method // https://tc39.es/ecma262/#sec-array.prototype-@@iterator // `CreateArrayIterator` internal method // https://tc39.es/ecma262/#sec-createarrayiterator var es_array_iterator = defineIterator$2(Array, 'Array', function (iterated, kind) { setInternalState$9(this, { type: ARRAY_ITERATOR, target: toIndexedObject$5(iterated), // target index: 0, // next index kind: kind // kind }); // `%ArrayIteratorPrototype%.next` method // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next }, function () { var state = getInternalState$5(this); var target = state.target; var kind = state.kind; var index = state.index++; if (!target || index >= target.length) { state.target = undefined; return { value: undefined, done: true }; } if (kind == 'keys') return { value: index, done: false }; if (kind == 'values') return { value: target[index], done: false }; return { value: [index, target[index]], done: false }; }, 'values'); // argumentsList[@@iterator] is %ArrayProto_values% // https://tc39.es/ecma262/#sec-createunmappedargumentsobject // https://tc39.es/ecma262/#sec-createmappedargumentsobject var values = Iterators$2.Arguments = Iterators$2.Array; // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables addToUnscopables$3('keys'); addToUnscopables$3('values'); addToUnscopables$3('entries'); // V8 ~ Chrome 45- bug if (DESCRIPTORS$b && values.name !== 'values') try { defineProperty$9(values, 'name', { value: 'values' }); } catch (error) { /* empty */ } var global$H = global$1e; var DOMIterables = domIterables; var DOMTokenListPrototype = domTokenListPrototype; var ArrayIteratorMethods = es_array_iterator; var createNonEnumerableProperty$3 = createNonEnumerableProperty$a; var wellKnownSymbol$e = wellKnownSymbol$s; var ITERATOR$6 = wellKnownSymbol$e('iterator'); var TO_STRING_TAG$1 = wellKnownSymbol$e('toStringTag'); var ArrayValues = ArrayIteratorMethods.values; var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) { if (CollectionPrototype) { // some Chrome versions have non-configurable methods on DOMTokenList if (CollectionPrototype[ITERATOR$6] !== ArrayValues) try { createNonEnumerableProperty$3(CollectionPrototype, ITERATOR$6, ArrayValues); } catch (error) { CollectionPrototype[ITERATOR$6] = ArrayValues; } if (!CollectionPrototype[TO_STRING_TAG$1]) { createNonEnumerableProperty$3(CollectionPrototype, TO_STRING_TAG$1, COLLECTION_NAME); } if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) { // some Chrome versions have non-configurable methods on DOMTokenList if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try { createNonEnumerableProperty$3(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]); } catch (error) { CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME]; } } } }; for (var COLLECTION_NAME in DOMIterables) { handlePrototype(global$H[COLLECTION_NAME] && global$H[COLLECTION_NAME].prototype, COLLECTION_NAME); } handlePrototype(DOMTokenListPrototype, 'DOMTokenList'); // TODO: Remove from `core-js@4` since it's moved to entry points var $$B = _export; var global$G = global$1e; var call$g = functionCall; var uncurryThis$t = functionUncurryThis; var isCallable$9 = isCallable$q; var isObject$j = isObject$s; var DELEGATES_TO_EXEC = function () { var execCalled = false; var re = /[ac]/; re.exec = function () { execCalled = true; return /./.exec.apply(this, arguments); }; return re.test('abc') === true && execCalled; }(); var Error$1 = global$G.Error; var un$Test = uncurryThis$t(/./.test); // `RegExp.prototype.test` method // https://tc39.es/ecma262/#sec-regexp.prototype.test $$B({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, { test: function (str) { var exec = this.exec; if (!isCallable$9(exec)) return un$Test(this, str); var result = call$g(exec, this, str); if (result !== null && !isObject$j(result)) { throw new Error$1('RegExp exec method returned something other than an Object or null'); } return !!result; } }); var global$F = global$1e; var isRegExp = isRegexp; var TypeError$c = global$F.TypeError; var notARegexp = function (it) { if (isRegExp(it)) { throw TypeError$c("The method doesn't accept regular expressions"); } return it; }; var wellKnownSymbol$d = wellKnownSymbol$s; var MATCH = wellKnownSymbol$d('match'); var correctIsRegexpLogic = function (METHOD_NAME) { var regexp = /./; try { '/./'[METHOD_NAME](regexp); } catch (error1) { try { regexp[MATCH] = false; return '/./'[METHOD_NAME](regexp); } catch (error2) { /* empty */ } } return false; }; var $$A = _export; var uncurryThis$s = functionUncurryThis; var getOwnPropertyDescriptor$4 = objectGetOwnPropertyDescriptor.f; var toLength$7 = toLength$a; var toString$a = toString$g; var notARegExp$2 = notARegexp; var requireObjectCoercible$7 = requireObjectCoercible$d; var correctIsRegExpLogic$2 = correctIsRegexpLogic; // eslint-disable-next-line es/no-string-prototype-startswith -- safe var un$StartsWith = uncurryThis$s(''.startsWith); var stringSlice$6 = uncurryThis$s(''.slice); var min$5 = Math.min; var CORRECT_IS_REGEXP_LOGIC$1 = correctIsRegExpLogic$2('startsWith'); // https://github.com/zloirock/core-js/pull/702 var MDN_POLYFILL_BUG$1 = !CORRECT_IS_REGEXP_LOGIC$1 && !!function () { var descriptor = getOwnPropertyDescriptor$4(String.prototype, 'startsWith'); return descriptor && !descriptor.writable; }(); // `String.prototype.startsWith` method // https://tc39.es/ecma262/#sec-string.prototype.startswith $$A({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT_IS_REGEXP_LOGIC$1 }, { startsWith: function startsWith(searchString /* , position = 0 */) { var that = toString$a(requireObjectCoercible$7(this)); notARegExp$2(searchString); var index = toLength$7(min$5(arguments.length > 1 ? arguments[1] : undefined, that.length)); var search = toString$a(searchString); return un$StartsWith ? un$StartsWith(that, search, index) : stringSlice$6(that, index, index + search.length) === search; } }); var DESCRIPTORS$a = descriptors; var uncurryThis$r = functionUncurryThis; var call$f = functionCall; var fails$o = fails$I; var objectKeys$1 = objectKeys$3; var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols; var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable; var toObject$b = toObject$g; var IndexedObject$2 = indexedObject; // eslint-disable-next-line es/no-object-assign -- safe var $assign = Object.assign; // eslint-disable-next-line es/no-object-defineproperty -- required for testing var defineProperty$8 = Object.defineProperty; var concat$1 = uncurryThis$r([].concat); // `Object.assign` method // https://tc39.es/ecma262/#sec-object.assign var objectAssign = !$assign || fails$o(function () { // should have correct order of operations (Edge bug) if (DESCRIPTORS$a && $assign({ b: 1 }, $assign(defineProperty$8({}, 'a', { enumerable: true, get: function () { defineProperty$8(this, 'b', { value: 3, enumerable: false }); } }), { b: 2 })).b !== 1) return true; // should work with symbols and should have deterministic property order (V8 bug) var A = {}; var B = {}; // eslint-disable-next-line es/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$1($assign({}, B)).join('') != alphabet; }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length` var T = toObject$b(target); var argumentsLength = arguments.length; var index = 1; var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f; var propertyIsEnumerable = propertyIsEnumerableModule$1.f; while (argumentsLength > index) { var S = IndexedObject$2(arguments[index++]); var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S); var length = keys.length; var j = 0; var key; while (length > j) { key = keys[j++]; if (!DESCRIPTORS$a || call$f(propertyIsEnumerable, S, key)) T[key] = S[key]; } } return T; } : $assign; var $$z = _export; var assign$1 = objectAssign; // `Object.assign` method // https://tc39.es/ecma262/#sec-object.assign // eslint-disable-next-line es/no-object-assign -- required for testing $$z({ target: 'Object', stat: true, forced: Object.assign !== assign$1 }, { assign: assign$1 }); var $$y = _export; var global$E = global$1e; var toAbsoluteIndex$4 = toAbsoluteIndex$7; var toIntegerOrInfinity$8 = toIntegerOrInfinity$c; var lengthOfArrayLike$c = lengthOfArrayLike$h; var toObject$a = toObject$g; var arraySpeciesCreate = arraySpeciesCreate$3; var createProperty$2 = createProperty$5; var arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$5; var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport$3('splice'); var TypeError$b = global$E.TypeError; var max$2 = Math.max; var min$4 = 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 $$y({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, { splice: function splice(start, deleteCount /* , ...items */) { var O = toObject$a(this); var len = lengthOfArrayLike$c(O); var actualStart = toAbsoluteIndex$4(start, len); var argumentsLength = arguments.length; var insertCount, actualDeleteCount, A, k, from, to; if (argumentsLength === 0) { insertCount = actualDeleteCount = 0; } else if (argumentsLength === 1) { insertCount = 0; actualDeleteCount = len - actualStart; } else { insertCount = argumentsLength - 2; actualDeleteCount = min$4(max$2(toIntegerOrInfinity$8(deleteCount), 0), len - actualStart); } if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) { throw TypeError$b(MAXIMUM_ALLOWED_LENGTH_EXCEEDED); } A = arraySpeciesCreate(O, actualDeleteCount); for (k = 0; k < actualDeleteCount; k++) { from = actualStart + k; if (from in O) createProperty$2(A, k, O[from]); } A.length = actualDeleteCount; if (insertCount < actualDeleteCount) { for (k = actualStart; k < len - actualDeleteCount; k++) { from = k + actualDeleteCount; to = k + insertCount; if (from in O) O[to] = O[from]; else delete O[to]; } for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1]; } else if (insertCount > actualDeleteCount) { for (k = len - actualDeleteCount; k > actualStart; k--) { from = k + actualDeleteCount - 1; to = k + insertCount - 1; if (from in O) O[to] = O[from]; else delete O[to]; } } for (k = 0; k < insertCount; k++) { O[k + actualStart] = arguments[k + 2]; } O.length = len - actualDeleteCount + insertCount; return A; } }); var uncurryThis$q = functionUncurryThis; var arraySlice$9 = uncurryThis$q([].slice); var $$x = _export; var global$D = global$1e; var isArray$2 = isArray$5; var isConstructor$1 = isConstructor$4; var isObject$i = isObject$s; var toAbsoluteIndex$3 = toAbsoluteIndex$7; var lengthOfArrayLike$b = lengthOfArrayLike$h; var toIndexedObject$4 = toIndexedObject$a; var createProperty$1 = createProperty$5; var wellKnownSymbol$c = wellKnownSymbol$s; var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$5; var un$Slice = arraySlice$9; var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport$2('slice'); var SPECIES$2 = wellKnownSymbol$c('species'); var Array$5 = global$D.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 $$x({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, { slice: function slice(start, end) { var O = toIndexedObject$4(this); var length = lengthOfArrayLike$b(O); var k = toAbsoluteIndex$3(start, length); var fin = toAbsoluteIndex$3(end === undefined ? length : end, length); // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible var Constructor, result, n; if (isArray$2(O)) { Constructor = O.constructor; // cross-realm fallback if (isConstructor$1(Constructor) && (Constructor === Array$5 || isArray$2(Constructor.prototype))) { Constructor = undefined; } else if (isObject$i(Constructor)) { Constructor = Constructor[SPECIES$2]; if (Constructor === null) Constructor = undefined; } if (Constructor === Array$5 || Constructor === undefined) { return un$Slice(O, k, fin); } } result = new (Constructor === undefined ? Array$5 : Constructor)(max$1(fin - k, 0)); for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]); result.length = n; return result; } }); var uncurryThis$p = functionUncurryThis; var toObject$9 = toObject$g; var floor$7 = Math.floor; var charAt$3 = uncurryThis$p(''.charAt); var replace$5 = uncurryThis$p(''.replace); var stringSlice$5 = uncurryThis$p(''.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$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$9(namedCaptures); symbols = SUBSTITUTION_SYMBOLS; } return replace$5(replacement, symbols, function (match, ch) { var capture; switch (charAt$3(ch, 0)) { case '$': return '$'; case '&': return matched; case '`': return stringSlice$5(str, 0, position); case "'": return stringSlice$5(str, tailPos); case '<': capture = namedCaptures[stringSlice$5(ch, 1, -1)]; break; default: // \d\d? var n = +ch; if (n === 0) return match; if (n > m) { var f = floor$7(n / 10); if (f === 0) return match; if (f <= m) return captures[f - 1] === undefined ? charAt$3(ch, 1) : captures[f - 1] + charAt$3(ch, 1); return match; } capture = captures[n - 1]; } return capture === undefined ? '' : capture; }); }; var apply$5 = functionApply; var call$e = functionCall; var uncurryThis$o = functionUncurryThis; var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic; var fails$n = fails$I; var anObject$e = anObject$p; var isCallable$8 = isCallable$q; var toIntegerOrInfinity$7 = toIntegerOrInfinity$c; var toLength$6 = toLength$a; var toString$9 = toString$g; var requireObjectCoercible$6 = requireObjectCoercible$d; var advanceStringIndex$1 = advanceStringIndex$3; var getMethod$4 = getMethod$7; var getSubstitution = getSubstitution$1; var regExpExec$3 = regexpExecAbstract; var wellKnownSymbol$b = wellKnownSymbol$s; var REPLACE = wellKnownSymbol$b('replace'); var max = Math.max; var min$3 = Math.min; var concat = uncurryThis$o([].concat); var push$5 = uncurryThis$o([].push); var stringIndexOf$1 = uncurryThis$o(''.indexOf); var stringSlice$4 = uncurryThis$o(''.slice); var maybeToString = function (it) { return it === undefined ? it : String(it); }; // IE <= 11 replaces $0 with the whole match, as if it was $& // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0 var REPLACE_KEEPS_$0 = (function () { // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing return 'a'.replace(/./, '$0') === '$0'; })(); // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () { if (/./[REPLACE]) { return /./[REPLACE]('a', '$0') === ''; } return false; })(); var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$n(function () { var re = /./; re.exec = function () { var result = []; result.groups = { a: '7' }; return result; }; // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive return ''.replace(re, '$') !== '7'; }); // @@replace logic 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$6(this); var replacer = searchValue == undefined ? undefined : getMethod$4(searchValue, REPLACE); return replacer ? call$e(replacer, searchValue, O, replaceValue) : call$e(nativeReplace, toString$9(O), searchValue, replaceValue); }, // `RegExp.prototype[@@replace]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace function (string, replaceValue) { var rx = anObject$e(this); var S = toString$9(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$8(replaceValue); if (!functionalReplace) replaceValue = toString$9(replaceValue); var global = rx.global; if (global) { var fullUnicode = rx.unicode; rx.lastIndex = 0; } var results = []; while (true) { var result = regExpExec$3(rx, S); if (result === null) break; push$5(results, result); if (!global) break; var matchStr = toString$9(result[0]); if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$6(rx.lastIndex), fullUnicode); } var accumulatedResult = ''; var nextSourcePosition = 0; for (var i = 0; i < results.length; i++) { result = results[i]; var matched = toString$9(result[0]); var position = max(min$3(toIntegerOrInfinity$7(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 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it. for (var j = 1; j < result.length; j++) push$5(captures, maybeToString(result[j])); var namedCaptures = result.groups; if (functionalReplace) { var replacerArgs = concat([matched], captures, position, S); if (namedCaptures !== undefined) push$5(replacerArgs, namedCaptures); var replacement = toString$9(apply$5(replaceValue, undefined, replacerArgs)); } else { replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue); } if (position >= nextSourcePosition) { accumulatedResult += stringSlice$4(S, nextSourcePosition, position) + replacement; nextSourcePosition = position + matched.length; } } return accumulatedResult + stringSlice$4(S, nextSourcePosition); } ]; }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE); // `SameValue` abstract operation // https://tc39.es/ecma262/#sec-samevalue // eslint-disable-next-line es/no-object-is -- safe 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 $$w = _export; var is = sameValue$1; // `Object.is` method // https://tc39.es/ecma262/#sec-object.is $$w({ target: 'Object', stat: true }, { is: is }); var $$v = _export; var global$C = global$1e; // `globalThis` object // https://tc39.es/ecma262/#sec-globalthis $$v({ global: true }, { globalThis: global$C }); var internalMetadata = {exports: {}}; var objectGetOwnPropertyNamesExternal = {}; /* eslint-disable es/no-object-getownpropertynames -- safe */ var classof$6 = classofRaw$1; var toIndexedObject$3 = toIndexedObject$a; var $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f; var arraySlice$8 = arraySliceSimple; var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function (it) { try { return $getOwnPropertyNames$1(it); } catch (error) { return arraySlice$8(windowNames); } }; // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) { return windowNames && classof$6(it) == 'Window' ? getWindowNames(it) : $getOwnPropertyNames$1(toIndexedObject$3(it)); }; // FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it var fails$m = fails$I; var arrayBufferNonExtensible = fails$m(function () { if (typeof ArrayBuffer == 'function') { var buffer = new ArrayBuffer(8); // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 }); } }); var fails$l = fails$I; var isObject$h = isObject$s; var classof$5 = classofRaw$1; var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible; // eslint-disable-next-line es/no-object-isextensible -- safe var $isExtensible$1 = Object.isExtensible; var FAILS_ON_PRIMITIVES$3 = fails$l(function () { $isExtensible$1(1); }); // `Object.isExtensible` method // https://tc39.es/ecma262/#sec-object.isextensible var objectIsExtensible = (FAILS_ON_PRIMITIVES$3 || ARRAY_BUFFER_NON_EXTENSIBLE) ? function isExtensible(it) { if (!isObject$h(it)) return false; if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$5(it) == 'ArrayBuffer') return false; return $isExtensible$1 ? $isExtensible$1(it) : true; } : $isExtensible$1; var fails$k = fails$I; var freezing = !fails$k(function () { // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing return Object.isExtensible(Object.preventExtensions({})); }); var $$u = _export; var uncurryThis$n = functionUncurryThis; var hiddenKeys$1 = hiddenKeys$6; var isObject$g = isObject$s; var hasOwn$c = hasOwnProperty_1; var defineProperty$7 = objectDefineProperty.f; var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames; var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal; var isExtensible$1 = objectIsExtensible; var uid$4 = uid$7; var FREEZING$1 = freezing; var REQUIRED = false; var METADATA = uid$4('meta'); var id$1 = 0; var setMetadata = function (it) { defineProperty$7(it, METADATA, { value: { objectID: 'O' + id$1++, // object ID weakData: {} // weak collections IDs } }); }; var fastKey$1 = function (it, create) { // return a primitive with prefix if (!isObject$g(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it; if (!hasOwn$c(it, METADATA)) { // can't set metadata to uncaught frozen object if (!isExtensible$1(it)) return 'F'; // not necessary to add metadata if (!create) return 'E'; // add missing metadata setMetadata(it); // return object ID } return it[METADATA].objectID; }; var getWeakData$1 = function (it, create) { if (!hasOwn$c(it, METADATA)) { // can't set metadata to uncaught frozen object if (!isExtensible$1(it)) return true; // not necessary to add metadata if (!create) return false; // add missing metadata setMetadata(it); // return the store of weak collections IDs } return it[METADATA].weakData; }; // add metadata on freeze-family methods calling var onFreeze$1 = function (it) { if (FREEZING$1 && REQUIRED && isExtensible$1(it) && !hasOwn$c(it, METADATA)) setMetadata(it); return it; }; var enable = function () { meta.enable = function () { /* empty */ }; REQUIRED = true; var getOwnPropertyNames = getOwnPropertyNamesModule$1.f; var splice = uncurryThis$n([].splice); var test = {}; test[METADATA] = 1; // prevent exposing of metadata key if (getOwnPropertyNames(test).length) { getOwnPropertyNamesModule$1.f = function (it) { var result = getOwnPropertyNames(it); for (var i = 0, length = result.length; i < length; i++) { if (result[i] === METADATA) { splice(result, i, 1); break; } } return result; }; $$u({ target: 'Object', stat: true, forced: true }, { getOwnPropertyNames: getOwnPropertyNamesExternalModule.f }); } }; var meta = internalMetadata.exports = { enable: enable, fastKey: fastKey$1, getWeakData: getWeakData$1, onFreeze: onFreeze$1 }; hiddenKeys$1[METADATA] = true; var wellKnownSymbol$a = wellKnownSymbol$s; var Iterators$1 = iterators; var ITERATOR$5 = wellKnownSymbol$a('iterator'); var ArrayPrototype = Array.prototype; // check on default Array iterator var isArrayIteratorMethod$3 = function (it) { return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$5] === it); }; var classof$4 = classof$d; var getMethod$3 = getMethod$7; var Iterators = iterators; var wellKnownSymbol$9 = wellKnownSymbol$s; var ITERATOR$4 = wellKnownSymbol$9('iterator'); var getIteratorMethod$5 = function (it) { if (it != undefined) return getMethod$3(it, ITERATOR$4) || getMethod$3(it, '@@iterator') || Iterators[classof$4(it)]; }; var global$B = global$1e; var call$d = functionCall; var aCallable$5 = aCallable$8; var anObject$d = anObject$p; var tryToString$2 = tryToString$5; var getIteratorMethod$4 = getIteratorMethod$5; var TypeError$a = global$B.TypeError; var getIterator$4 = function (argument, usingIterator) { var iteratorMethod = arguments.length < 2 ? getIteratorMethod$4(argument) : usingIterator; if (aCallable$5(iteratorMethod)) return anObject$d(call$d(iteratorMethod, argument)); throw TypeError$a(tryToString$2(argument) + ' is not iterable'); }; var call$c = functionCall; var anObject$c = anObject$p; var getMethod$2 = getMethod$7; var iteratorClose$2 = function (iterator, kind, value) { var innerResult, innerError; anObject$c(iterator); try { innerResult = getMethod$2(iterator, 'return'); if (!innerResult) { if (kind === 'throw') throw value; return value; } innerResult = call$c(innerResult, iterator); } catch (error) { innerError = true; innerResult = error; } if (kind === 'throw') throw value; if (innerError) throw innerResult; anObject$c(innerResult); return value; }; var global$A = global$1e; var bind$8 = functionBindContext; var call$b = functionCall; var anObject$b = anObject$p; var tryToString$1 = tryToString$5; var isArrayIteratorMethod$2 = isArrayIteratorMethod$3; var lengthOfArrayLike$a = lengthOfArrayLike$h; var isPrototypeOf$6 = objectIsPrototypeOf; var getIterator$3 = getIterator$4; var getIteratorMethod$3 = getIteratorMethod$5; var iteratorClose$1 = iteratorClose$2; var TypeError$9 = global$A.TypeError; var Result = function (stopped, result) { this.stopped = stopped; this.result = result; }; var ResultPrototype = Result.prototype; var iterate$4 = function (iterable, unboundFunction, options) { var that = options && options.that; var AS_ENTRIES = !!(options && options.AS_ENTRIES); var IS_ITERATOR = !!(options && options.IS_ITERATOR); var INTERRUPTED = !!(options && options.INTERRUPTED); var fn = bind$8(unboundFunction, that); var iterator, iterFn, index, length, result, next, step; var stop = function (condition) { if (iterator) iteratorClose$1(iterator, 'normal', condition); return new Result(true, condition); }; var callFn = function (value) { if (AS_ENTRIES) { anObject$b(value); return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]); } return INTERRUPTED ? fn(value, stop) : fn(value); }; if (IS_ITERATOR) { iterator = iterable; } else { iterFn = getIteratorMethod$3(iterable); if (!iterFn) throw TypeError$9(tryToString$1(iterable) + ' is not iterable'); // optimisation for array iterators if (isArrayIteratorMethod$2(iterFn)) { for (index = 0, length = lengthOfArrayLike$a(iterable); length > index; index++) { result = callFn(iterable[index]); if (result && isPrototypeOf$6(ResultPrototype, result)) return result; } return new Result(false); } iterator = getIterator$3(iterable, iterFn); } next = iterator.next; while (!(step = call$b(next, iterator)).done) { try { result = callFn(step.value); } catch (error) { iteratorClose$1(iterator, 'throw', error); } if (typeof result == 'object' && result && isPrototypeOf$6(ResultPrototype, result)) return result; } return new Result(false); }; var global$z = global$1e; var isPrototypeOf$5 = objectIsPrototypeOf; var TypeError$8 = global$z.TypeError; var anInstance$8 = function (it, Prototype) { if (isPrototypeOf$5(Prototype, it)) return it; throw TypeError$8('Incorrect invocation'); }; var wellKnownSymbol$8 = wellKnownSymbol$s; var ITERATOR$3 = wellKnownSymbol$8('iterator'); var SAFE_CLOSING = false; try { var called = 0; var iteratorWithReturn = { next: function () { return { done: !!called++ }; }, 'return': function () { SAFE_CLOSING = true; } }; iteratorWithReturn[ITERATOR$3] = function () { return this; }; // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing Array.from(iteratorWithReturn, function () { throw 2; }); } catch (error) { /* empty */ } var checkCorrectnessOfIteration$4 = function (exec, SKIP_CLOSING) { if (!SKIP_CLOSING && !SAFE_CLOSING) return false; var ITERATION_SUPPORT = false; try { var object = {}; object[ITERATOR$3] = function () { return { next: function () { return { done: ITERATION_SUPPORT = true }; } }; }; exec(object); } catch (error) { /* empty */ } return ITERATION_SUPPORT; }; var isCallable$7 = isCallable$q; var isObject$f = isObject$s; var setPrototypeOf$4 = objectSetPrototypeOf; // makes subclassing work correct for wrapped built-ins var inheritIfRequired$3 = function ($this, dummy, Wrapper) { var NewTarget, NewTargetPrototype; if ( // it can work only with native `setPrototypeOf` setPrototypeOf$4 && // we haven't completely correct pre-ES6 way for getting `new.target`, so use this isCallable$7(NewTarget = dummy.constructor) && NewTarget !== Wrapper && isObject$f(NewTargetPrototype = NewTarget.prototype) && NewTargetPrototype !== Wrapper.prototype ) setPrototypeOf$4($this, NewTargetPrototype); return $this; }; var $$t = _export; var global$y = global$1e; var uncurryThis$m = functionUncurryThis; var isForced$2 = isForced_1; var redefine$7 = redefine$e.exports; var InternalMetadataModule$1 = internalMetadata.exports; var iterate$3 = iterate$4; var anInstance$7 = anInstance$8; var isCallable$6 = isCallable$q; var isObject$e = isObject$s; var fails$j = fails$I; var checkCorrectnessOfIteration$3 = checkCorrectnessOfIteration$4; var setToStringTag$6 = setToStringTag$9; var inheritIfRequired$2 = inheritIfRequired$3; var collection$3 = function (CONSTRUCTOR_NAME, wrapper, common) { var IS_MAP = CONSTRUCTOR_NAME.indexOf('Map') !== -1; var IS_WEAK = CONSTRUCTOR_NAME.indexOf('Weak') !== -1; var ADDER = IS_MAP ? 'set' : 'add'; var NativeConstructor = global$y[CONSTRUCTOR_NAME]; var NativePrototype = NativeConstructor && NativeConstructor.prototype; var Constructor = NativeConstructor; var exported = {}; var fixMethod = function (KEY) { var uncurriedNativeMethod = uncurryThis$m(NativePrototype[KEY]); redefine$7(NativePrototype, KEY, KEY == 'add' ? function add(value) { uncurriedNativeMethod(this, value === 0 ? 0 : value); return this; } : KEY == 'delete' ? function (key) { return IS_WEAK && !isObject$e(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); } : KEY == 'get' ? function get(key) { return IS_WEAK && !isObject$e(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key); } : KEY == 'has' ? function has(key) { return IS_WEAK && !isObject$e(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key); } : function set(key, value) { uncurriedNativeMethod(this, key === 0 ? 0 : key, value); return this; } ); }; var REPLACE = isForced$2( CONSTRUCTOR_NAME, !isCallable$6(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$j(function () { new NativeConstructor().entries().next(); })) ); if (REPLACE) { // create collection constructor Constructor = common.getConstructor(wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER); InternalMetadataModule$1.enable(); } else if (isForced$2(CONSTRUCTOR_NAME, true)) { var instance = new Constructor(); // early implementations not supports chaining var HASNT_CHAINING = instance[ADDER](IS_WEAK ? {} : -0, 1) != instance; // V8 ~ Chromium 40- weak-collections throws on primitives, but should return false var THROWS_ON_PRIMITIVES = fails$j(function () { instance.has(1); }); // most early implementations doesn't supports iterables, most modern - not close it correctly // eslint-disable-next-line no-new -- required for testing var ACCEPT_ITERABLES = checkCorrectnessOfIteration$3(function (iterable) { new NativeConstructor(iterable); }); // for early implementations -0 and +0 not the same var BUGGY_ZERO = !IS_WEAK && fails$j(function () { // V8 ~ Chromium 42- fails only with 5+ elements var $instance = new NativeConstructor(); var index = 5; while (index--) $instance[ADDER](index, index); return !$instance.has(-0); }); if (!ACCEPT_ITERABLES) { Constructor = wrapper(function (dummy, iterable) { anInstance$7(dummy, NativePrototype); var that = inheritIfRequired$2(new NativeConstructor(), dummy, Constructor); if (iterable != undefined) iterate$3(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); return that; }); Constructor.prototype = NativePrototype; NativePrototype.constructor = Constructor; } if (THROWS_ON_PRIMITIVES || BUGGY_ZERO) { fixMethod('delete'); fixMethod('has'); IS_MAP && fixMethod('get'); } if (BUGGY_ZERO || HASNT_CHAINING) fixMethod(ADDER); // weak collections should not contains .clear method if (IS_WEAK && NativePrototype.clear) delete NativePrototype.clear; } exported[CONSTRUCTOR_NAME] = Constructor; $$t({ global: true, forced: Constructor != NativeConstructor }, exported); setToStringTag$6(Constructor, CONSTRUCTOR_NAME); if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP); return Constructor; }; var redefine$6 = redefine$e.exports; var redefineAll$6 = function (target, src, options) { for (var key in src) redefine$6(target, key, src[key], options); return target; }; var getBuiltIn$3 = getBuiltIn$a; var definePropertyModule$3 = objectDefineProperty; var wellKnownSymbol$7 = wellKnownSymbol$s; var DESCRIPTORS$9 = descriptors; var SPECIES$1 = wellKnownSymbol$7('species'); var setSpecies$3 = function (CONSTRUCTOR_NAME) { var Constructor = getBuiltIn$3(CONSTRUCTOR_NAME); var defineProperty = definePropertyModule$3.f; if (DESCRIPTORS$9 && Constructor && !Constructor[SPECIES$1]) { defineProperty(Constructor, SPECIES$1, { configurable: true, get: function () { return this; } }); } }; var defineProperty$6 = objectDefineProperty.f; var create$2 = objectCreate; var redefineAll$5 = redefineAll$6; var bind$7 = functionBindContext; var anInstance$6 = anInstance$8; var iterate$2 = iterate$4; var defineIterator$1 = defineIterator$3; var setSpecies$2 = setSpecies$3; var DESCRIPTORS$8 = descriptors; var fastKey = internalMetadata.exports.fastKey; var InternalStateModule$8 = internalState; var setInternalState$8 = InternalStateModule$8.set; var internalStateGetterFor$1 = InternalStateModule$8.getterFor; var collectionStrong$2 = { getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { var Constructor = wrapper(function (that, iterable) { anInstance$6(that, Prototype); setInternalState$8(that, { type: CONSTRUCTOR_NAME, index: create$2(null), first: undefined, last: undefined, size: 0 }); if (!DESCRIPTORS$8) that.size = 0; if (iterable != undefined) iterate$2(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); }); var Prototype = Constructor.prototype; var getInternalState = internalStateGetterFor$1(CONSTRUCTOR_NAME); var define = function (that, key, value) { var state = getInternalState(that); var entry = getEntry(that, key); var previous, index; // change existing entry if (entry) { entry.value = value; // create new entry } else { state.last = entry = { index: index = fastKey(key, true), key: key, value: value, previous: previous = state.last, next: undefined, removed: false }; if (!state.first) state.first = entry; if (previous) previous.next = entry; if (DESCRIPTORS$8) state.size++; else that.size++; // add to index if (index !== 'F') state.index[index] = entry; } return that; }; var getEntry = function (that, key) { var state = getInternalState(that); // fast case var index = fastKey(key); var entry; if (index !== 'F') return state.index[index]; // frozen object case for (entry = state.first; entry; entry = entry.next) { if (entry.key == key) return entry; } }; redefineAll$5(Prototype, { // `{ Map, Set }.prototype.clear()` methods // https://tc39.es/ecma262/#sec-map.prototype.clear // https://tc39.es/ecma262/#sec-set.prototype.clear clear: function clear() { var that = this; var state = getInternalState(that); var data = state.index; var entry = state.first; while (entry) { entry.removed = true; if (entry.previous) entry.previous = entry.previous.next = undefined; delete data[entry.index]; entry = entry.next; } state.first = state.last = undefined; if (DESCRIPTORS$8) state.size = 0; else that.size = 0; }, // `{ Map, Set }.prototype.delete(key)` methods // https://tc39.es/ecma262/#sec-map.prototype.delete // https://tc39.es/ecma262/#sec-set.prototype.delete 'delete': function (key) { var that = this; var state = getInternalState(that); var entry = getEntry(that, key); if (entry) { var next = entry.next; var prev = entry.previous; delete state.index[entry.index]; entry.removed = true; if (prev) prev.next = next; if (next) next.previous = prev; if (state.first == entry) state.first = next; if (state.last == entry) state.last = prev; if (DESCRIPTORS$8) state.size--; else that.size--; } return !!entry; }, // `{ Map, Set }.prototype.forEach(callbackfn, thisArg = undefined)` methods // https://tc39.es/ecma262/#sec-map.prototype.foreach // https://tc39.es/ecma262/#sec-set.prototype.foreach forEach: function forEach(callbackfn /* , that = undefined */) { var state = getInternalState(this); var boundFunction = bind$7(callbackfn, arguments.length > 1 ? arguments[1] : undefined); var entry; while (entry = entry ? entry.next : state.first) { boundFunction(entry.value, entry.key, this); // revert to the last existing entry while (entry && entry.removed) entry = entry.previous; } }, // `{ Map, Set}.prototype.has(key)` methods // https://tc39.es/ecma262/#sec-map.prototype.has // https://tc39.es/ecma262/#sec-set.prototype.has has: function has(key) { return !!getEntry(this, key); } }); redefineAll$5(Prototype, IS_MAP ? { // `Map.prototype.get(key)` method // https://tc39.es/ecma262/#sec-map.prototype.get get: function get(key) { var entry = getEntry(this, key); return entry && entry.value; }, // `Map.prototype.set(key, value)` method // https://tc39.es/ecma262/#sec-map.prototype.set set: function set(key, value) { return define(this, key === 0 ? 0 : key, value); } } : { // `Set.prototype.add(value)` method // https://tc39.es/ecma262/#sec-set.prototype.add add: function add(value) { return define(this, value = value === 0 ? 0 : value, value); } }); if (DESCRIPTORS$8) defineProperty$6(Prototype, 'size', { get: function () { return getInternalState(this).size; } }); return Constructor; }, setStrong: function (Constructor, CONSTRUCTOR_NAME, IS_MAP) { var ITERATOR_NAME = CONSTRUCTOR_NAME + ' Iterator'; var getInternalCollectionState = internalStateGetterFor$1(CONSTRUCTOR_NAME); var getInternalIteratorState = internalStateGetterFor$1(ITERATOR_NAME); // `{ Map, Set }.prototype.{ keys, values, entries, @@iterator }()` methods // https://tc39.es/ecma262/#sec-map.prototype.entries // https://tc39.es/ecma262/#sec-map.prototype.keys // https://tc39.es/ecma262/#sec-map.prototype.values // https://tc39.es/ecma262/#sec-map.prototype-@@iterator // https://tc39.es/ecma262/#sec-set.prototype.entries // https://tc39.es/ecma262/#sec-set.prototype.keys // https://tc39.es/ecma262/#sec-set.prototype.values // https://tc39.es/ecma262/#sec-set.prototype-@@iterator defineIterator$1(Constructor, CONSTRUCTOR_NAME, function (iterated, kind) { setInternalState$8(this, { type: ITERATOR_NAME, target: iterated, state: getInternalCollectionState(iterated), kind: kind, last: undefined }); }, function () { var state = getInternalIteratorState(this); var kind = state.kind; var entry = state.last; // revert to the last existing entry while (entry && entry.removed) entry = entry.previous; // get next entry if (!state.target || !(state.last = entry = entry ? entry.next : state.state.first)) { // or finish the iteration state.target = undefined; return { value: undefined, done: true }; } // return step by kind if (kind == 'keys') return { value: entry.key, done: false }; if (kind == 'values') return { value: entry.value, done: false }; return { value: [entry.key, entry.value], done: false }; }, IS_MAP ? 'entries' : 'values', !IS_MAP, true); // `{ Map, Set }.prototype[@@species]` accessors // https://tc39.es/ecma262/#sec-get-map-@@species // https://tc39.es/ecma262/#sec-get-set-@@species setSpecies$2(CONSTRUCTOR_NAME); } }; var collection$2 = collection$3; var collectionStrong$1 = collectionStrong$2; // `Set` constructor // https://tc39.es/ecma262/#sec-set-objects collection$2('Set', function (init) { return function Set() { return init(this, arguments.length ? arguments[0] : undefined); }; }, collectionStrong$1); var charAt$2 = stringMultibyte.charAt; var toString$8 = toString$g; var InternalStateModule$7 = internalState; var defineIterator = defineIterator$3; var STRING_ITERATOR = 'String Iterator'; var setInternalState$7 = InternalStateModule$7.set; var getInternalState$4 = InternalStateModule$7.getterFor(STRING_ITERATOR); // `String.prototype[@@iterator]` method // https://tc39.es/ecma262/#sec-string.prototype-@@iterator defineIterator(String, 'String', function (iterated) { setInternalState$7(this, { type: STRING_ITERATOR, string: toString$8(iterated), index: 0 }); // `%StringIteratorPrototype%.next` method // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next }, function next() { var state = getInternalState$4(this); var string = state.string; var index = state.index; var point; if (index >= string.length) return { value: undefined, done: true }; point = charAt$2(string, index); state.index += point.length; return { value: point, done: false }; }); var uncurryThis$l = functionUncurryThis; var redefineAll$4 = redefineAll$6; var getWeakData = internalMetadata.exports.getWeakData; var anObject$a = anObject$p; var isObject$d = isObject$s; var anInstance$5 = anInstance$8; var iterate$1 = iterate$4; var ArrayIterationModule = arrayIteration; var hasOwn$b = hasOwnProperty_1; var InternalStateModule$6 = internalState; var setInternalState$6 = InternalStateModule$6.set; var internalStateGetterFor = InternalStateModule$6.getterFor; var find$1 = ArrayIterationModule.find; var findIndex = ArrayIterationModule.findIndex; var splice$1 = uncurryThis$l([].splice); var id = 0; // fallback for uncaught frozen keys var uncaughtFrozenStore = function (store) { return store.frozen || (store.frozen = new UncaughtFrozenStore()); }; var UncaughtFrozenStore = function () { this.entries = []; }; var findUncaughtFrozen = function (store, key) { return find$1(store.entries, function (it) { return it[0] === key; }); }; UncaughtFrozenStore.prototype = { get: function (key) { var entry = findUncaughtFrozen(this, key); if (entry) return entry[1]; }, has: function (key) { return !!findUncaughtFrozen(this, key); }, set: function (key, value) { var entry = findUncaughtFrozen(this, key); if (entry) entry[1] = value; else this.entries.push([key, value]); }, 'delete': function (key) { var index = findIndex(this.entries, function (it) { return it[0] === key; }); if (~index) splice$1(this.entries, index, 1); return !!~index; } }; var collectionWeak$1 = { getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) { var Constructor = wrapper(function (that, iterable) { anInstance$5(that, Prototype); setInternalState$6(that, { type: CONSTRUCTOR_NAME, id: id++, frozen: undefined }); if (iterable != undefined) iterate$1(iterable, that[ADDER], { that: that, AS_ENTRIES: IS_MAP }); }); var Prototype = Constructor.prototype; var getInternalState = internalStateGetterFor(CONSTRUCTOR_NAME); var define = function (that, key, value) { var state = getInternalState(that); var data = getWeakData(anObject$a(key), true); if (data === true) uncaughtFrozenStore(state).set(key, value); else data[state.id] = value; return that; }; redefineAll$4(Prototype, { // `{ WeakMap, WeakSet }.prototype.delete(key)` methods // https://tc39.es/ecma262/#sec-weakmap.prototype.delete // https://tc39.es/ecma262/#sec-weakset.prototype.delete 'delete': function (key) { var state = getInternalState(this); if (!isObject$d(key)) return false; var data = getWeakData(key); if (data === true) return uncaughtFrozenStore(state)['delete'](key); return data && hasOwn$b(data, state.id) && delete data[state.id]; }, // `{ WeakMap, WeakSet }.prototype.has(key)` methods // https://tc39.es/ecma262/#sec-weakmap.prototype.has // https://tc39.es/ecma262/#sec-weakset.prototype.has has: function has(key) { var state = getInternalState(this); if (!isObject$d(key)) return false; var data = getWeakData(key); if (data === true) return uncaughtFrozenStore(state).has(key); return data && hasOwn$b(data, state.id); } }); redefineAll$4(Prototype, IS_MAP ? { // `WeakMap.prototype.get(key)` method // https://tc39.es/ecma262/#sec-weakmap.prototype.get get: function get(key) { var state = getInternalState(this); if (isObject$d(key)) { var data = getWeakData(key); if (data === true) return uncaughtFrozenStore(state).get(key); return data ? data[state.id] : undefined; } }, // `WeakMap.prototype.set(key, value)` method // https://tc39.es/ecma262/#sec-weakmap.prototype.set set: function set(key, value) { return define(this, key, value); } } : { // `WeakSet.prototype.add(value)` method // https://tc39.es/ecma262/#sec-weakset.prototype.add add: function add(value) { return define(this, value, true); } }); return Constructor; } }; var global$x = global$1e; var uncurryThis$k = functionUncurryThis; var redefineAll$3 = redefineAll$6; var InternalMetadataModule = internalMetadata.exports; var collection$1 = collection$3; var collectionWeak = collectionWeak$1; var isObject$c = isObject$s; var isExtensible = objectIsExtensible; var enforceInternalState = internalState.enforce; var NATIVE_WEAK_MAP = nativeWeakMap; var IS_IE11 = !global$x.ActiveXObject && 'ActiveXObject' in global$x; var InternalWeakMap; var wrapper = function (init) { return function WeakMap() { return init(this, arguments.length ? arguments[0] : undefined); }; }; // `WeakMap` constructor // https://tc39.es/ecma262/#sec-weakmap-constructor var $WeakMap = collection$1('WeakMap', wrapper, collectionWeak); // IE11 WeakMap frozen keys fix // We can't use feature detection because it crash some old IE builds // https://github.com/zloirock/core-js/issues/485 if (NATIVE_WEAK_MAP && IS_IE11) { InternalWeakMap = collectionWeak.getConstructor(wrapper, 'WeakMap', true); InternalMetadataModule.enable(); var WeakMapPrototype = $WeakMap.prototype; var nativeDelete = uncurryThis$k(WeakMapPrototype['delete']); var nativeHas = uncurryThis$k(WeakMapPrototype.has); var nativeGet = uncurryThis$k(WeakMapPrototype.get); var nativeSet = uncurryThis$k(WeakMapPrototype.set); redefineAll$3(WeakMapPrototype, { 'delete': function (key) { if (isObject$c(key) && !isExtensible(key)) { var state = enforceInternalState(this); if (!state.frozen) state.frozen = new InternalWeakMap(); return nativeDelete(this, key) || state.frozen['delete'](key); } return nativeDelete(this, key); }, has: function has(key) { if (isObject$c(key) && !isExtensible(key)) { var state = enforceInternalState(this); if (!state.frozen) state.frozen = new InternalWeakMap(); return nativeHas(this, key) || state.frozen.has(key); } return nativeHas(this, key); }, get: function get(key) { if (isObject$c(key) && !isExtensible(key)) { var state = enforceInternalState(this); if (!state.frozen) state.frozen = new InternalWeakMap(); return nativeHas(this, key) ? nativeGet(this, key) : state.frozen.get(key); } return nativeGet(this, key); }, set: function set(key, value) { if (isObject$c(key) && !isExtensible(key)) { var state = enforceInternalState(this); if (!state.frozen) state.frozen = new InternalWeakMap(); nativeHas(this, key) ? nativeSet(this, key, value) : state.frozen.set(key, value); } else nativeSet(this, key, value); return this; } }); } var wellKnownSymbolWrapped = {}; var wellKnownSymbol$6 = wellKnownSymbol$s; wellKnownSymbolWrapped.f = wellKnownSymbol$6; var global$w = global$1e; var path$1 = global$w; var path = path$1; var hasOwn$a = hasOwnProperty_1; var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped; var defineProperty$5 = objectDefineProperty.f; var defineWellKnownSymbol$2 = function (NAME) { var Symbol = path.Symbol || (path.Symbol = {}); if (!hasOwn$a(Symbol, NAME)) defineProperty$5(Symbol, NAME, { value: wrappedWellKnownSymbolModule$1.f(NAME) }); }; var $$s = _export; var global$v = global$1e; var getBuiltIn$2 = getBuiltIn$a; var apply$4 = functionApply; var call$a = functionCall; var uncurryThis$j = functionUncurryThis; var DESCRIPTORS$7 = descriptors; var NATIVE_SYMBOL$1 = nativeSymbol; var fails$i = fails$I; var hasOwn$9 = hasOwnProperty_1; var isArray$1 = isArray$5; var isCallable$5 = isCallable$q; var isObject$b = isObject$s; var isPrototypeOf$4 = objectIsPrototypeOf; var isSymbol$3 = isSymbol$6; var anObject$9 = anObject$p; var toObject$8 = toObject$g; var toIndexedObject$2 = toIndexedObject$a; var toPropertyKey$1 = toPropertyKey$5; var $toString$2 = toString$g; var createPropertyDescriptor$3 = createPropertyDescriptor$8; var nativeObjectCreate = objectCreate; var objectKeys = objectKeys$3; var getOwnPropertyNamesModule = objectGetOwnPropertyNames; var getOwnPropertyNamesExternal = objectGetOwnPropertyNamesExternal; var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols; var getOwnPropertyDescriptorModule$3 = objectGetOwnPropertyDescriptor; var definePropertyModule$2 = objectDefineProperty; var propertyIsEnumerableModule = objectPropertyIsEnumerable; var arraySlice$7 = arraySlice$9; var redefine$5 = redefine$e.exports; var shared = shared$5.exports; var sharedKey = sharedKey$4; var hiddenKeys = hiddenKeys$6; var uid$3 = uid$7; var wellKnownSymbol$5 = wellKnownSymbol$s; var wrappedWellKnownSymbolModule = wellKnownSymbolWrapped; var defineWellKnownSymbol$1 = defineWellKnownSymbol$2; var setToStringTag$5 = setToStringTag$9; var InternalStateModule$5 = internalState; var $forEach$1 = arrayIteration.forEach; var HIDDEN = sharedKey('hidden'); var SYMBOL = 'Symbol'; var PROTOTYPE$1 = 'prototype'; var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive'); var setInternalState$5 = InternalStateModule$5.set; var getInternalState$3 = InternalStateModule$5.getterFor(SYMBOL); var ObjectPrototype$2 = Object[PROTOTYPE$1]; var $Symbol = global$v.Symbol; var SymbolPrototype$1 = $Symbol && $Symbol[PROTOTYPE$1]; var TypeError$7 = global$v.TypeError; var QObject = global$v.QObject; var $stringify = getBuiltIn$2('JSON', 'stringify'); var nativeGetOwnPropertyDescriptor$1 = getOwnPropertyDescriptorModule$3.f; var nativeDefineProperty$1 = definePropertyModule$2.f; var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f; var nativePropertyIsEnumerable = propertyIsEnumerableModule.f; var push$4 = uncurryThis$j([].push); var AllSymbols = shared('symbols'); var ObjectPrototypeSymbols = shared('op-symbols'); var StringToSymbolRegistry = shared('string-to-symbol-registry'); var SymbolToStringRegistry = shared('symbol-to-string-registry'); var WellKnownSymbolsStore = shared('wks'); // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173 var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild; // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687 var setSymbolDescriptor = DESCRIPTORS$7 && fails$i(function () { return nativeObjectCreate(nativeDefineProperty$1({}, 'a', { get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; } })).a != 7; }) ? function (O, P, Attributes) { var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype$2, P); if (ObjectPrototypeDescriptor) delete ObjectPrototype$2[P]; nativeDefineProperty$1(O, P, Attributes); if (ObjectPrototypeDescriptor && O !== ObjectPrototype$2) { nativeDefineProperty$1(ObjectPrototype$2, P, ObjectPrototypeDescriptor); } } : nativeDefineProperty$1; var wrap = function (tag, description) { var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype$1); setInternalState$5(symbol, { type: SYMBOL, tag: tag, description: description }); if (!DESCRIPTORS$7) symbol.description = description; return symbol; }; var $defineProperty = function defineProperty(O, P, Attributes) { if (O === ObjectPrototype$2) $defineProperty(ObjectPrototypeSymbols, P, Attributes); anObject$9(O); var key = toPropertyKey$1(P); anObject$9(Attributes); if (hasOwn$9(AllSymbols, key)) { if (!Attributes.enumerable) { if (!hasOwn$9(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor$3(1, {})); O[HIDDEN][key] = true; } else { if (hasOwn$9(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false; Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$3(0, false) }); } return setSymbolDescriptor(O, key, Attributes); } return nativeDefineProperty$1(O, key, Attributes); }; var $defineProperties = function defineProperties(O, Properties) { anObject$9(O); var properties = toIndexedObject$2(Properties); var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties)); $forEach$1(keys, function (key) { if (!DESCRIPTORS$7 || call$a($propertyIsEnumerable, properties, key)) $defineProperty(O, key, properties[key]); }); return O; }; var $create = function create(O, Properties) { return Properties === undefined ? nativeObjectCreate(O) : $defineProperties(nativeObjectCreate(O), Properties); }; var $propertyIsEnumerable = function propertyIsEnumerable(V) { var P = toPropertyKey$1(V); var enumerable = call$a(nativePropertyIsEnumerable, this, P); if (this === ObjectPrototype$2 && hasOwn$9(AllSymbols, P) && !hasOwn$9(ObjectPrototypeSymbols, P)) return false; return enumerable || !hasOwn$9(this, P) || !hasOwn$9(AllSymbols, P) || hasOwn$9(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true; }; var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) { var it = toIndexedObject$2(O); var key = toPropertyKey$1(P); if (it === ObjectPrototype$2 && hasOwn$9(AllSymbols, key) && !hasOwn$9(ObjectPrototypeSymbols, key)) return; var descriptor = nativeGetOwnPropertyDescriptor$1(it, key); if (descriptor && hasOwn$9(AllSymbols, key) && !(hasOwn$9(it, HIDDEN) && it[HIDDEN][key])) { descriptor.enumerable = true; } return descriptor; }; var $getOwnPropertyNames = function getOwnPropertyNames(O) { var names = nativeGetOwnPropertyNames(toIndexedObject$2(O)); var result = []; $forEach$1(names, function (key) { if (!hasOwn$9(AllSymbols, key) && !hasOwn$9(hiddenKeys, key)) push$4(result, key); }); return result; }; var $getOwnPropertySymbols = function getOwnPropertySymbols(O) { var IS_OBJECT_PROTOTYPE = O === ObjectPrototype$2; var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject$2(O)); var result = []; $forEach$1(names, function (key) { if (hasOwn$9(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn$9(ObjectPrototype$2, key))) { push$4(result, AllSymbols[key]); } }); return result; }; // `Symbol` constructor // https://tc39.es/ecma262/#sec-symbol-constructor if (!NATIVE_SYMBOL$1) { $Symbol = function Symbol() { if (isPrototypeOf$4(SymbolPrototype$1, this)) throw TypeError$7('Symbol is not a constructor'); var description = !arguments.length || arguments[0] === undefined ? undefined : $toString$2(arguments[0]); var tag = uid$3(description); var setter = function (value) { if (this === ObjectPrototype$2) call$a(setter, ObjectPrototypeSymbols, value); if (hasOwn$9(this, HIDDEN) && hasOwn$9(this[HIDDEN], tag)) this[HIDDEN][tag] = false; setSymbolDescriptor(this, tag, createPropertyDescriptor$3(1, value)); }; if (DESCRIPTORS$7 && USE_SETTER) setSymbolDescriptor(ObjectPrototype$2, tag, { configurable: true, set: setter }); return wrap(tag, description); }; SymbolPrototype$1 = $Symbol[PROTOTYPE$1]; redefine$5(SymbolPrototype$1, 'toString', function toString() { return getInternalState$3(this).tag; }); redefine$5($Symbol, 'withoutSetter', function (description) { return wrap(uid$3(description), description); }); propertyIsEnumerableModule.f = $propertyIsEnumerable; definePropertyModule$2.f = $defineProperty; getOwnPropertyDescriptorModule$3.f = $getOwnPropertyDescriptor; getOwnPropertyNamesModule.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames; getOwnPropertySymbolsModule.f = $getOwnPropertySymbols; wrappedWellKnownSymbolModule.f = function (name) { return wrap(wellKnownSymbol$5(name), name); }; if (DESCRIPTORS$7) { // https://github.com/tc39/proposal-Symbol-description nativeDefineProperty$1(SymbolPrototype$1, 'description', { configurable: true, get: function description() { return getInternalState$3(this).description; } }); { redefine$5(ObjectPrototype$2, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true }); } } } $$s({ global: true, wrap: true, forced: !NATIVE_SYMBOL$1, sham: !NATIVE_SYMBOL$1 }, { Symbol: $Symbol }); $forEach$1(objectKeys(WellKnownSymbolsStore), function (name) { defineWellKnownSymbol$1(name); }); $$s({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL$1 }, { // `Symbol.for` method // https://tc39.es/ecma262/#sec-symbol.for 'for': function (key) { var string = $toString$2(key); if (hasOwn$9(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string]; var symbol = $Symbol(string); StringToSymbolRegistry[string] = symbol; SymbolToStringRegistry[symbol] = string; return symbol; }, // `Symbol.keyFor` method // https://tc39.es/ecma262/#sec-symbol.keyfor keyFor: function keyFor(sym) { if (!isSymbol$3(sym)) throw TypeError$7(sym + ' is not a symbol'); if (hasOwn$9(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym]; }, useSetter: function () { USE_SETTER = true; }, useSimple: function () { USE_SETTER = false; } }); $$s({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$1, sham: !DESCRIPTORS$7 }, { // `Object.create` method // https://tc39.es/ecma262/#sec-object.create create: $create, // `Object.defineProperty` method // https://tc39.es/ecma262/#sec-object.defineproperty defineProperty: $defineProperty, // `Object.defineProperties` method // https://tc39.es/ecma262/#sec-object.defineproperties defineProperties: $defineProperties, // `Object.getOwnPropertyDescriptor` method // https://tc39.es/ecma262/#sec-object.getownpropertydescriptors getOwnPropertyDescriptor: $getOwnPropertyDescriptor }); $$s({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$1 }, { // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames getOwnPropertyNames: $getOwnPropertyNames, // `Object.getOwnPropertySymbols` method // https://tc39.es/ecma262/#sec-object.getownpropertysymbols getOwnPropertySymbols: $getOwnPropertySymbols }); // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives // https://bugs.chromium.org/p/v8/issues/detail?id=3443 $$s({ target: 'Object', stat: true, forced: fails$i(function () { getOwnPropertySymbolsModule.f(1); }) }, { getOwnPropertySymbols: function getOwnPropertySymbols(it) { return getOwnPropertySymbolsModule.f(toObject$8(it)); } }); // `JSON.stringify` method behavior with symbols // https://tc39.es/ecma262/#sec-json.stringify if ($stringify) { var FORCED_JSON_STRINGIFY = !NATIVE_SYMBOL$1 || fails$i(function () { var symbol = $Symbol(); // MS Edge converts symbol values to JSON as {} return $stringify([symbol]) != '[null]' // WebKit converts symbol values to JSON as null || $stringify({ a: symbol }) != '{}' // V8 throws on boxed symbols || $stringify(Object(symbol)) != '{}'; }); $$s({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, { // eslint-disable-next-line no-unused-vars -- required for `.length` stringify: function stringify(it, replacer, space) { var args = arraySlice$7(arguments); var $replacer = replacer; if (!isObject$b(replacer) && it === undefined || isSymbol$3(it)) return; // IE8 returns string on undefined if (!isArray$1(replacer)) replacer = function (key, value) { if (isCallable$5($replacer)) value = call$a($replacer, this, key, value); if (!isSymbol$3(value)) return value; }; args[1] = replacer; return apply$4($stringify, null, args); } }); } // `Symbol.prototype[@@toPrimitive]` method // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive if (!SymbolPrototype$1[TO_PRIMITIVE]) { var valueOf = SymbolPrototype$1.valueOf; // eslint-disable-next-line no-unused-vars -- required for .length redefine$5(SymbolPrototype$1, TO_PRIMITIVE, function (hint) { // TODO: improve hint logic return call$a(valueOf, this); }); } // `Symbol.prototype[@@toStringTag]` property // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag setToStringTag$5($Symbol, SYMBOL); hiddenKeys[HIDDEN] = true; var $$r = _export; var DESCRIPTORS$6 = descriptors; var global$u = global$1e; var uncurryThis$i = functionUncurryThis; var hasOwn$8 = hasOwnProperty_1; var isCallable$4 = isCallable$q; var isPrototypeOf$3 = objectIsPrototypeOf; var toString$7 = toString$g; var defineProperty$4 = objectDefineProperty.f; var copyConstructorProperties = copyConstructorProperties$2; var NativeSymbol = global$u.Symbol; var SymbolPrototype = NativeSymbol && NativeSymbol.prototype; if (DESCRIPTORS$6 && isCallable$4(NativeSymbol) && (!('description' in SymbolPrototype) || // Safari 12 bug NativeSymbol().description !== undefined )) { var EmptyStringDescriptionStore = {}; // wrap Symbol constructor for correct work with undefined description var SymbolWrapper = function Symbol() { var description = arguments.length < 1 || arguments[0] === undefined ? undefined : toString$7(arguments[0]); var result = isPrototypeOf$3(SymbolPrototype, this) ? new NativeSymbol(description) // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)' : description === undefined ? NativeSymbol() : NativeSymbol(description); if (description === '') EmptyStringDescriptionStore[result] = true; return result; }; copyConstructorProperties(SymbolWrapper, NativeSymbol); SymbolWrapper.prototype = SymbolPrototype; SymbolPrototype.constructor = SymbolWrapper; var NATIVE_SYMBOL = String(NativeSymbol('test')) == 'Symbol(test)'; var symbolToString = uncurryThis$i(SymbolPrototype.toString); var symbolValueOf = uncurryThis$i(SymbolPrototype.valueOf); var regexp = /^Symbol\((.*)\)[^)]+$/; var replace$4 = uncurryThis$i(''.replace); var stringSlice$3 = uncurryThis$i(''.slice); defineProperty$4(SymbolPrototype, 'description', { configurable: true, get: function description() { var symbol = symbolValueOf(this); var string = symbolToString(symbol); if (hasOwn$8(EmptyStringDescriptionStore, symbol)) return ''; var desc = NATIVE_SYMBOL ? stringSlice$3(string, 7, -1) : replace$4(string, regexp, '$1'); return desc === '' ? undefined : desc; } }); $$r({ global: true, forced: true }, { Symbol: SymbolWrapper }); } var $$q = _export; var $includes$1 = arrayIncludes.includes; var addToUnscopables$2 = addToUnscopables$4; // `Array.prototype.includes` method // https://tc39.es/ecma262/#sec-array.prototype.includes $$q({ target: 'Array', proto: true }, { includes: function includes(el /* , fromIndex = 0 */) { return $includes$1(this, el, arguments.length > 1 ? arguments[1] : undefined); } }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables addToUnscopables$2('includes'); var collection = collection$3; var collectionStrong = collectionStrong$2; // `Map` constructor // https://tc39.es/ecma262/#sec-map-objects collection('Map', function (init) { return function Map() { return init(this, arguments.length ? arguments[0] : undefined); }; }, collectionStrong); var $$p = _export; var $filter$1 = arrayIteration.filter; var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$5; var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('filter'); // `Array.prototype.filter` method // https://tc39.es/ecma262/#sec-array.prototype.filter // with adding support of @@species $$p({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, { filter: function filter(callbackfn /* , thisArg */) { return $filter$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); var $$o = _export; var $map$1 = arrayIteration.map; var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$5; var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('map'); // `Array.prototype.map` method // https://tc39.es/ecma262/#sec-array.prototype.map // with adding support of @@species $$o({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, { map: function map(callbackfn /* , thisArg */) { return $map$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); var $$n = _export; var fails$h = fails$I; var getOwnPropertyNames$3 = objectGetOwnPropertyNamesExternal.f; // eslint-disable-next-line es/no-object-getownpropertynames -- required for testing var FAILS_ON_PRIMITIVES$2 = fails$h(function () { return !Object.getOwnPropertyNames(1); }); // `Object.getOwnPropertyNames` method // https://tc39.es/ecma262/#sec-object.getownpropertynames $$n({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2 }, { getOwnPropertyNames: getOwnPropertyNames$3 }); var hasOwn$7 = hasOwnProperty_1; var isDataDescriptor$2 = function (descriptor) { return descriptor !== undefined && (hasOwn$7(descriptor, 'value') || hasOwn$7(descriptor, 'writable')); }; var $$m = _export; var call$9 = functionCall; var isObject$a = isObject$s; var anObject$8 = anObject$p; var isDataDescriptor$1 = isDataDescriptor$2; var getOwnPropertyDescriptorModule$2 = objectGetOwnPropertyDescriptor; var getPrototypeOf$3 = objectGetPrototypeOf$1; // `Reflect.get` method // https://tc39.es/ecma262/#sec-reflect.get function get$3(target, propertyKey /* , receiver */) { var receiver = arguments.length < 3 ? target : arguments[2]; var descriptor, prototype; if (anObject$8(target) === receiver) return target[propertyKey]; descriptor = getOwnPropertyDescriptorModule$2.f(target, propertyKey); if (descriptor) return isDataDescriptor$1(descriptor) ? descriptor.value : descriptor.get === undefined ? undefined : call$9(descriptor.get, receiver); if (isObject$a(prototype = getPrototypeOf$3(target))) return get$3(prototype, propertyKey, receiver); } $$m({ target: 'Reflect', stat: true }, { get: get$3 }); var $$l = _export; var global$t = global$1e; var setToStringTag$4 = setToStringTag$9; $$l({ global: true }, { Reflect: {} }); // Reflect[@@toStringTag] property // https://tc39.es/ecma262/#sec-reflect-@@tostringtag setToStringTag$4(global$t.Reflect, 'Reflect', true); var uncurryThis$h = functionUncurryThis; // `thisNumberValue` abstract operation // https://tc39.es/ecma262/#sec-thisnumbervalue var thisNumberValue$2 = uncurryThis$h(1.0.valueOf); var DESCRIPTORS$5 = descriptors; var global$s = global$1e; var uncurryThis$g = functionUncurryThis; var isForced$1 = isForced_1; var redefine$4 = redefine$e.exports; var hasOwn$6 = hasOwnProperty_1; var inheritIfRequired$1 = inheritIfRequired$3; var isPrototypeOf$2 = objectIsPrototypeOf; var isSymbol$2 = isSymbol$6; var toPrimitive = toPrimitive$2; var fails$g = fails$I; var getOwnPropertyNames$2 = objectGetOwnPropertyNames.f; var getOwnPropertyDescriptor$3 = objectGetOwnPropertyDescriptor.f; var defineProperty$3 = objectDefineProperty.f; var thisNumberValue$1 = thisNumberValue$2; var trim = stringTrim.trim; var NUMBER = 'Number'; var NativeNumber = global$s[NUMBER]; var NumberPrototype = NativeNumber.prototype; var TypeError$6 = global$s.TypeError; var arraySlice$6 = uncurryThis$g(''.slice); var charCodeAt$1 = uncurryThis$g(''.charCodeAt); // `ToNumeric` abstract operation // https://tc39.es/ecma262/#sec-tonumeric var toNumeric = function (value) { var primValue = toPrimitive(value, 'number'); return typeof primValue == 'bigint' ? primValue : toNumber$1(primValue); }; // `ToNumber` abstract operation // https://tc39.es/ecma262/#sec-tonumber var toNumber$1 = function (argument) { var it = toPrimitive(argument, 'number'); var first, third, radix, maxCode, digits, length, index, code; if (isSymbol$2(it)) throw TypeError$6('Cannot convert a Symbol value to a number'); if (typeof it == 'string' && it.length > 2) { it = trim(it); first = charCodeAt$1(it, 0); if (first === 43 || first === 45) { third = charCodeAt$1(it, 2); if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix } else if (first === 48) { switch (charCodeAt$1(it, 1)) { case 66: case 98: radix = 2; maxCode = 49; break; // fast equal of /^0b[01]+$/i case 79: case 111: radix = 8; maxCode = 55; break; // fast equal of /^0o[0-7]+$/i default: return +it; } digits = arraySlice$6(it, 2); length = digits.length; for (index = 0; index < length; index++) { code = charCodeAt$1(digits, index); // parseInt parses a string to a first unavailable symbol // but ToNumber should return NaN if a string contains unavailable symbols if (code < 48 || code > maxCode) return NaN; } return parseInt(digits, radix); } } return +it; }; // `Number` constructor // https://tc39.es/ecma262/#sec-number-constructor if (isForced$1(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 isPrototypeOf$2(NumberPrototype, dummy) && fails$g(function () { thisNumberValue$1(dummy); }) ? inheritIfRequired$1(Object(n), dummy, NumberWrapper) : n; }; for (var keys$1 = DESCRIPTORS$5 ? getOwnPropertyNames$2(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$1 = 0, key$1; keys$1.length > j$1; j$1++) { if (hasOwn$6(NativeNumber, key$1 = keys$1[j$1]) && !hasOwn$6(NumberWrapper, key$1)) { defineProperty$3(NumberWrapper, key$1, getOwnPropertyDescriptor$3(NativeNumber, key$1)); } } NumberWrapper.prototype = NumberPrototype; NumberPrototype.constructor = NumberWrapper; redefine$4(global$s, NUMBER, NumberWrapper); } var $$k = _export; var call$8 = functionCall; var anObject$7 = anObject$p; var isObject$9 = isObject$s; var isDataDescriptor = isDataDescriptor$2; var fails$f = fails$I; var definePropertyModule$1 = objectDefineProperty; var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor; var getPrototypeOf$2 = objectGetPrototypeOf$1; var createPropertyDescriptor$2 = createPropertyDescriptor$8; // `Reflect.set` method // https://tc39.es/ecma262/#sec-reflect.set function set$4(target, propertyKey, V /* , receiver */) { var receiver = arguments.length < 4 ? target : arguments[3]; var ownDescriptor = getOwnPropertyDescriptorModule$1.f(anObject$7(target), propertyKey); var existingDescriptor, prototype, setter; if (!ownDescriptor) { if (isObject$9(prototype = getPrototypeOf$2(target))) { return set$4(prototype, propertyKey, V, receiver); } ownDescriptor = createPropertyDescriptor$2(0); } if (isDataDescriptor(ownDescriptor)) { if (ownDescriptor.writable === false || !isObject$9(receiver)) return false; if (existingDescriptor = getOwnPropertyDescriptorModule$1.f(receiver, propertyKey)) { if (existingDescriptor.get || existingDescriptor.set || existingDescriptor.writable === false) return false; existingDescriptor.value = V; definePropertyModule$1.f(receiver, propertyKey, existingDescriptor); } else definePropertyModule$1.f(receiver, propertyKey, createPropertyDescriptor$2(0, V)); } else { setter = ownDescriptor.set; if (setter === undefined) return false; call$8(setter, receiver, V); } return true; } // MS Edge 17-18 Reflect.set allows setting the property to object // with non-writable property on the prototype var MS_EDGE_BUG = fails$f(function () { var Constructor = function () { /* empty */ }; var object = definePropertyModule$1.f(new Constructor(), 'a', { configurable: true }); // eslint-disable-next-line es/no-reflect -- required for testing return Reflect.set(Constructor.prototype, 'a', 1, object) !== false; }); $$k({ target: 'Reflect', stat: true, forced: MS_EDGE_BUG }, { set: set$4 }); var $$j = _export; var anObject$6 = anObject$p; var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f; // `Reflect.deleteProperty` method // https://tc39.es/ecma262/#sec-reflect.deleteproperty $$j({ target: 'Reflect', stat: true }, { deleteProperty: function deleteProperty(target, propertyKey) { var descriptor = getOwnPropertyDescriptor$2(anObject$6(target), propertyKey); return descriptor && !descriptor.configurable ? false : delete target[propertyKey]; } }); var $$i = _export; // `Reflect.has` method // https://tc39.es/ecma262/#sec-reflect.has $$i({ target: 'Reflect', stat: true }, { has: function has(target, propertyKey) { return propertyKey in target; } }); var $$h = _export; var ownKeys$1 = ownKeys$3; // `Reflect.ownKeys` method // https://tc39.es/ecma262/#sec-reflect.ownkeys $$h({ target: 'Reflect', stat: true }, { ownKeys: ownKeys$1 }); var $$g = _export; var anObject$5 = anObject$p; var objectGetPrototypeOf = objectGetPrototypeOf$1; var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter; // `Reflect.getPrototypeOf` method // https://tc39.es/ecma262/#sec-reflect.getprototypeof $$g({ target: 'Reflect', stat: true, sham: !CORRECT_PROTOTYPE_GETTER }, { getPrototypeOf: function getPrototypeOf(target) { return objectGetPrototypeOf(anObject$5(target)); } }); var defineWellKnownSymbol = defineWellKnownSymbol$2; // `Symbol.iterator` well-known symbol // https://tc39.es/ecma262/#sec-symbol.iterator defineWellKnownSymbol('iterator'); var $$f = _export; var $isExtensible = objectIsExtensible; // `Object.isExtensible` method // https://tc39.es/ecma262/#sec-object.isextensible // eslint-disable-next-line es/no-object-isextensible -- safe $$f({ target: 'Object', stat: true, forced: Object.isExtensible !== $isExtensible }, { isExtensible: $isExtensible }); var global$r = global$1e; var nativePromiseConstructor = global$r.Promise; var userAgent$4 = engineUserAgent; var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4); var classof$3 = classofRaw$1; var global$q = global$1e; var engineIsNode = classof$3(global$q.process) == 'process'; var global$p = global$1e; var apply$3 = functionApply; var bind$6 = functionBindContext; var isCallable$3 = isCallable$q; var hasOwn$5 = hasOwnProperty_1; var fails$e = fails$I; var html = html$2; var arraySlice$5 = arraySlice$9; var createElement = documentCreateElement$2; var IS_IOS$1 = engineIsIos; var IS_NODE$2 = engineIsNode; var set$3 = global$p.setImmediate; var clear$1 = global$p.clearImmediate; var process$2 = global$p.process; var Dispatch = global$p.Dispatch; var Function$1 = global$p.Function; var MessageChannel = global$p.MessageChannel; var String$2 = global$p.String; var counter = 0; var queue$2 = {}; var ONREADYSTATECHANGE = 'onreadystatechange'; var location, defer, channel, port; try { // Deno throws a ReferenceError on `location` access without `--location` flag location = global$p.location; } catch (error) { /* empty */ } var run = function (id) { if (hasOwn$5(queue$2, id)) { var fn = queue$2[id]; delete queue$2[id]; fn(); } }; var runner = function (id) { return function () { run(id); }; }; var listener = function (event) { run(event.data); }; var post = function (id) { // old engines have not location.origin global$p.postMessage(String$2(id), location.protocol + '//' + location.host); }; // Node.js 0.9+ & IE10+ has setImmediate, otherwise: if (!set$3 || !clear$1) { set$3 = function setImmediate(fn) { var args = arraySlice$5(arguments, 1); queue$2[++counter] = function () { apply$3(isCallable$3(fn) ? fn : Function$1(fn), undefined, args); }; defer(counter); return counter; }; clear$1 = function clearImmediate(id) { delete queue$2[id]; }; // Node.js 0.8- if (IS_NODE$2) { defer = function (id) { process$2.nextTick(runner(id)); }; // Sphere (JS game engine) Dispatch API } else if (Dispatch && Dispatch.now) { defer = function (id) { Dispatch.now(runner(id)); }; // Browsers with MessageChannel, includes WebWorkers // except iOS - https://github.com/zloirock/core-js/issues/624 } else if (MessageChannel && !IS_IOS$1) { channel = new MessageChannel(); port = channel.port2; channel.port1.onmessage = listener; defer = bind$6(port.postMessage, port); // Browsers with postMessage, skip WebWorkers // IE8 has postMessage, but it's sync & typeof its postMessage is 'object' } else if ( global$p.addEventListener && isCallable$3(global$p.postMessage) && !global$p.importScripts && location && location.protocol !== 'file:' && !fails$e(post) ) { defer = post; global$p.addEventListener('message', listener, false); // IE8- } else if (ONREADYSTATECHANGE in createElement('script')) { defer = function (id) { html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () { html.removeChild(this); run(id); }; }; // Rest old browsers } else { defer = function (id) { setTimeout(runner(id), 0); }; } } var task$1 = { set: set$3, clear: clear$1 }; var userAgent$3 = engineUserAgent; var global$o = global$1e; var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$3) && global$o.Pebble !== undefined; var userAgent$2 = engineUserAgent; var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2); var global$n = global$1e; var bind$5 = functionBindContext; var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f; var macrotask = task$1.set; var IS_IOS = engineIsIos; var IS_IOS_PEBBLE = engineIsIosPebble; var IS_WEBOS_WEBKIT = engineIsWebosWebkit; var IS_NODE$1 = engineIsNode; var MutationObserver = global$n.MutationObserver || global$n.WebKitMutationObserver; var document$2 = global$n.document; var process$1 = global$n.process; var Promise$1 = global$n.Promise; // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask` var queueMicrotaskDescriptor = getOwnPropertyDescriptor$1(global$n, 'queueMicrotask'); var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value; var flush, head, last, notify$1, toggle, node, promise, then; // modern engines have queueMicrotask method if (!queueMicrotask) { flush = function () { var parent, fn; if (IS_NODE$1 && (parent = process$1.domain)) parent.exit(); while (head) { fn = head.fn; head = head.next; try { fn(); } catch (error) { if (head) notify$1(); else last = undefined; throw error; } } last = undefined; if (parent) parent.enter(); }; // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339 // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898 if (!IS_IOS && !IS_NODE$1 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) { toggle = true; node = document$2.createTextNode(''); new MutationObserver(flush).observe(node, { characterData: true }); notify$1 = function () { node.data = toggle = !toggle; }; // environments with maybe non-completely correct, but existent Promise } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) { // Promise.resolve without an argument throws an error in LG WebOS 2 promise = Promise$1.resolve(undefined); // workaround of WebKit ~ iOS Safari 10.1 bug promise.constructor = Promise$1; then = bind$5(promise.then, promise); notify$1 = function () { then(flush); }; // Node.js without promises } else if (IS_NODE$1) { notify$1 = function () { process$1.nextTick(flush); }; // for other environments - macrotask based on: // - setImmediate // - MessageChannel // - window.postMessag // - onreadystatechange // - setTimeout } else { // strange IE + webpack dev server bug - use .bind(global) macrotask = bind$5(macrotask, global$n); notify$1 = function () { macrotask(flush); }; } } var microtask$1 = queueMicrotask || function (fn) { var task = { fn: fn, next: undefined }; if (last) last.next = task; if (!head) { head = task; notify$1(); } last = task; }; var newPromiseCapability$2 = {}; var aCallable$4 = aCallable$8; var PromiseCapability = function (C) { var resolve, reject; this.promise = new C(function ($$resolve, $$reject) { if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor'); resolve = $$resolve; reject = $$reject; }); this.resolve = aCallable$4(resolve); this.reject = aCallable$4(reject); }; // `NewPromiseCapability` abstract operation // https://tc39.es/ecma262/#sec-newpromisecapability newPromiseCapability$2.f = function (C) { return new PromiseCapability(C); }; var anObject$4 = anObject$p; var isObject$8 = isObject$s; var newPromiseCapability$1 = newPromiseCapability$2; var promiseResolve$1 = function (C, x) { anObject$4(C); if (isObject$8(x) && x.constructor === C) return x; var promiseCapability = newPromiseCapability$1.f(C); var resolve = promiseCapability.resolve; resolve(x); return promiseCapability.promise; }; var global$m = global$1e; var hostReportErrors$1 = function (a, b) { var console = global$m.console; if (console && console.error) { arguments.length == 1 ? console.error(a) : console.error(a, b); } }; var perform$1 = function (exec) { try { return { error: false, value: exec() }; } catch (error) { return { error: true, value: error }; } }; var Queue$1 = function () { this.head = null; this.tail = null; }; Queue$1.prototype = { add: function (item) { var entry = { item: item, next: null }; if (this.head) this.tail.next = entry; else this.head = entry; this.tail = entry; }, get: function () { var entry = this.head; if (entry) { this.head = entry.next; if (this.tail === entry) this.tail = null; return entry.item; } } }; var queue$1 = Queue$1; var engineIsBrowser = typeof window == 'object'; var $$e = _export; var global$l = global$1e; var getBuiltIn$1 = getBuiltIn$a; var call$7 = functionCall; var NativePromise = nativePromiseConstructor; var redefine$3 = redefine$e.exports; var redefineAll$2 = redefineAll$6; var setPrototypeOf$3 = objectSetPrototypeOf; var setToStringTag$3 = setToStringTag$9; var setSpecies$1 = setSpecies$3; var aCallable$3 = aCallable$8; var isCallable$2 = isCallable$q; var isObject$7 = isObject$s; var anInstance$4 = anInstance$8; var inspectSource = inspectSource$4; var iterate = iterate$4; var checkCorrectnessOfIteration$2 = checkCorrectnessOfIteration$4; var speciesConstructor$1 = speciesConstructor$3; var task = task$1.set; var microtask = microtask$1; var promiseResolve = promiseResolve$1; var hostReportErrors = hostReportErrors$1; var newPromiseCapabilityModule = newPromiseCapability$2; var perform = perform$1; var Queue = queue$1; var InternalStateModule$4 = internalState; var isForced = isForced_1; var wellKnownSymbol$4 = wellKnownSymbol$s; var IS_BROWSER = engineIsBrowser; var IS_NODE = engineIsNode; var V8_VERSION = engineV8Version; var SPECIES = wellKnownSymbol$4('species'); var PROMISE = 'Promise'; var getInternalState$2 = InternalStateModule$4.getterFor(PROMISE); var setInternalState$4 = InternalStateModule$4.set; var getInternalPromiseState = InternalStateModule$4.getterFor(PROMISE); var NativePromisePrototype = NativePromise && NativePromise.prototype; var PromiseConstructor = NativePromise; var PromisePrototype = NativePromisePrototype; var TypeError$5 = global$l.TypeError; var document$1 = global$l.document; var process = global$l.process; var newPromiseCapability = newPromiseCapabilityModule.f; var newGenericPromiseCapability = newPromiseCapability; var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$l.dispatchEvent); var NATIVE_REJECTION_EVENT = isCallable$2(global$l.PromiseRejectionEvent); var UNHANDLED_REJECTION = 'unhandledrejection'; var REJECTION_HANDLED = 'rejectionhandled'; var PENDING = 0; var FULFILLED = 1; var REJECTED = 2; var HANDLED = 1; var UNHANDLED = 2; var SUBCLASSING = false; var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen; var FORCED$6 = isForced(PROMISE, function () { var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor); var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor); // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables // https://bugs.chromium.org/p/chromium/issues/detail?id=830565 // We can't detect it synchronously, so just check versions if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true; // We can't use @@species feature detection in V8 since it causes // deoptimization and performance degradation // https://github.com/zloirock/core-js/issues/679 if (V8_VERSION >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false; // Detect correctness of subclassing with @@species support var promise = new PromiseConstructor(function (resolve) { resolve(1); }); var FakePromise = function (exec) { exec(function () { /* empty */ }, function () { /* empty */ }); }; var constructor = promise.constructor = {}; constructor[SPECIES] = FakePromise; SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise; if (!SUBCLASSING) return true; // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test return !GLOBAL_CORE_JS_PROMISE && IS_BROWSER && !NATIVE_REJECTION_EVENT; }); var INCORRECT_ITERATION$1 = FORCED$6 || !checkCorrectnessOfIteration$2(function (iterable) { PromiseConstructor.all(iterable)['catch'](function () { /* empty */ }); }); // helpers var isThenable = function (it) { var then; return isObject$7(it) && isCallable$2(then = it.then) ? then : false; }; var callReaction = function (reaction, state) { var value = state.value; var ok = state.state == FULFILLED; var handler = ok ? reaction.ok : reaction.fail; var resolve = reaction.resolve; var reject = reaction.reject; var domain = reaction.domain; var result, then, exited; try { if (handler) { if (!ok) { if (state.rejection === UNHANDLED) onHandleUnhandled(state); state.rejection = HANDLED; } if (handler === true) result = value; else { if (domain) domain.enter(); result = handler(value); // can throw if (domain) { domain.exit(); exited = true; } } if (result === reaction.promise) { reject(TypeError$5('Promise-chain cycle')); } else if (then = isThenable(result)) { call$7(then, result, resolve, reject); } else resolve(result); } else reject(value); } catch (error) { if (domain && !exited) domain.exit(); reject(error); } }; var notify = function (state, isReject) { if (state.notified) return; state.notified = true; microtask(function () { var reactions = state.reactions; var reaction; while (reaction = reactions.get()) { callReaction(reaction, state); } state.notified = false; if (isReject && !state.rejection) onUnhandled(state); }); }; var dispatchEvent = function (name, promise, reason) { var event, handler; if (DISPATCH_EVENT) { event = document$1.createEvent('Event'); event.promise = promise; event.reason = reason; event.initEvent(name, false, true); global$l.dispatchEvent(event); } else event = { promise: promise, reason: reason }; if (!NATIVE_REJECTION_EVENT && (handler = global$l['on' + name])) handler(event); else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason); }; var onUnhandled = function (state) { call$7(task, global$l, function () { var promise = state.facade; var value = state.value; var IS_UNHANDLED = isUnhandled(state); var result; if (IS_UNHANDLED) { result = perform(function () { if (IS_NODE) { process.emit('unhandledRejection', value, promise); } else dispatchEvent(UNHANDLED_REJECTION, promise, value); }); // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED; if (result.error) throw result.value; } }); }; var isUnhandled = function (state) { return state.rejection !== HANDLED && !state.parent; }; var onHandleUnhandled = function (state) { call$7(task, global$l, function () { var promise = state.facade; if (IS_NODE) { process.emit('rejectionHandled', promise); } else dispatchEvent(REJECTION_HANDLED, promise, state.value); }); }; var bind$4 = function (fn, state, unwrap) { return function (value) { fn(state, value, unwrap); }; }; var internalReject = function (state, value, unwrap) { if (state.done) return; state.done = true; if (unwrap) state = unwrap; state.value = value; state.state = REJECTED; notify(state, true); }; var internalResolve = function (state, value, unwrap) { if (state.done) return; state.done = true; if (unwrap) state = unwrap; try { if (state.facade === value) throw TypeError$5("Promise can't be resolved itself"); var then = isThenable(value); if (then) { microtask(function () { var wrapper = { done: false }; try { call$7(then, value, bind$4(internalResolve, wrapper, state), bind$4(internalReject, wrapper, state) ); } catch (error) { internalReject(wrapper, error, state); } }); } else { state.value = value; state.state = FULFILLED; notify(state, false); } } catch (error) { internalReject({ done: false }, error, state); } }; // constructor polyfill if (FORCED$6) { // 25.4.3.1 Promise(executor) PromiseConstructor = function Promise(executor) { anInstance$4(this, PromisePrototype); aCallable$3(executor); call$7(Internal, this); var state = getInternalState$2(this); try { executor(bind$4(internalResolve, state), bind$4(internalReject, state)); } catch (error) { internalReject(state, error); } }; PromisePrototype = PromiseConstructor.prototype; // eslint-disable-next-line no-unused-vars -- required for `.length` Internal = function Promise(executor) { setInternalState$4(this, { type: PROMISE, done: false, notified: false, parent: false, reactions: new Queue(), rejection: false, state: PENDING, value: undefined }); }; Internal.prototype = redefineAll$2(PromisePrototype, { // `Promise.prototype.then` method // https://tc39.es/ecma262/#sec-promise.prototype.then then: function then(onFulfilled, onRejected) { var state = getInternalPromiseState(this); var reaction = newPromiseCapability(speciesConstructor$1(this, PromiseConstructor)); state.parent = true; reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true; reaction.fail = isCallable$2(onRejected) && onRejected; reaction.domain = IS_NODE ? process.domain : undefined; if (state.state == PENDING) state.reactions.add(reaction); else microtask(function () { callReaction(reaction, state); }); return reaction.promise; }, // `Promise.prototype.catch` method // https://tc39.es/ecma262/#sec-promise.prototype.catch 'catch': function (onRejected) { return this.then(undefined, onRejected); } }); OwnPromiseCapability = function () { var promise = new Internal(); var state = getInternalState$2(promise); this.promise = promise; this.resolve = bind$4(internalResolve, state); this.reject = bind$4(internalReject, state); }; newPromiseCapabilityModule.f = newPromiseCapability = function (C) { return C === PromiseConstructor || C === PromiseWrapper ? new OwnPromiseCapability(C) : newGenericPromiseCapability(C); }; if (isCallable$2(NativePromise) && NativePromisePrototype !== Object.prototype) { nativeThen = NativePromisePrototype.then; if (!SUBCLASSING) { // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs redefine$3(NativePromisePrototype, 'then', function then(onFulfilled, onRejected) { var that = this; return new PromiseConstructor(function (resolve, reject) { call$7(nativeThen, that, resolve, reject); }).then(onFulfilled, onRejected); // https://github.com/zloirock/core-js/issues/640 }, { unsafe: true }); // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then` redefine$3(NativePromisePrototype, 'catch', PromisePrototype['catch'], { unsafe: true }); } // make `.constructor === Promise` work for native promise-based APIs try { delete NativePromisePrototype.constructor; } catch (error) { /* empty */ } // make `instanceof Promise` work for native promise-based APIs if (setPrototypeOf$3) { setPrototypeOf$3(NativePromisePrototype, PromisePrototype); } } } $$e({ global: true, wrap: true, forced: FORCED$6 }, { Promise: PromiseConstructor }); setToStringTag$3(PromiseConstructor, PROMISE, false); setSpecies$1(PROMISE); PromiseWrapper = getBuiltIn$1(PROMISE); // statics $$e({ target: PROMISE, stat: true, forced: FORCED$6 }, { // `Promise.reject` method // https://tc39.es/ecma262/#sec-promise.reject reject: function reject(r) { var capability = newPromiseCapability(this); call$7(capability.reject, undefined, r); return capability.promise; } }); $$e({ target: PROMISE, stat: true, forced: FORCED$6 }, { // `Promise.resolve` method // https://tc39.es/ecma262/#sec-promise.resolve resolve: function resolve(x) { return promiseResolve(this, x); } }); $$e({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION$1 }, { // `Promise.all` method // https://tc39.es/ecma262/#sec-promise.all all: function all(iterable) { var C = this; var capability = newPromiseCapability(C); var resolve = capability.resolve; var reject = capability.reject; var result = perform(function () { var $promiseResolve = aCallable$3(C.resolve); var values = []; var counter = 0; var remaining = 1; iterate(iterable, function (promise) { var index = counter++; var alreadyCalled = false; remaining++; call$7($promiseResolve, C, promise).then(function (value) { if (alreadyCalled) return; alreadyCalled = true; values[index] = value; --remaining || resolve(values); }, reject); }); --remaining || resolve(values); }); if (result.error) reject(result.value); return capability.promise; }, // `Promise.race` method // https://tc39.es/ecma262/#sec-promise.race race: function race(iterable) { var C = this; var capability = newPromiseCapability(C); var reject = capability.reject; var result = perform(function () { var $promiseResolve = aCallable$3(C.resolve); iterate(iterable, function (promise) { call$7($promiseResolve, C, promise).then(capability.resolve, reject); }); }); if (result.error) reject(result.value); return capability.promise; } }); var $$d = _export; var uncurryThis$f = functionUncurryThis; var notARegExp$1 = notARegexp; var requireObjectCoercible$5 = requireObjectCoercible$d; var toString$6 = toString$g; var correctIsRegExpLogic$1 = correctIsRegexpLogic; var stringIndexOf = uncurryThis$f(''.indexOf); // `String.prototype.includes` method // https://tc39.es/ecma262/#sec-string.prototype.includes $$d({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, { includes: function includes(searchString /* , position = 0 */) { return !!~stringIndexOf( toString$6(requireObjectCoercible$5(this)), toString$6(notARegExp$1(searchString)), arguments.length > 1 ? arguments[1] : undefined ); } }); var $$c = _export; var toObject$7 = toObject$g; var nativeKeys = objectKeys$3; var fails$d = fails$I; var FAILS_ON_PRIMITIVES$1 = fails$d(function () { nativeKeys(1); }); // `Object.keys` method // https://tc39.es/ecma262/#sec-object.keys $$c({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1 }, { keys: function keys(it) { return nativeKeys(toObject$7(it)); } }); var call$6 = functionCall; var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic; var anObject$3 = anObject$p; var toLength$5 = toLength$a; var toString$5 = toString$g; var requireObjectCoercible$4 = requireObjectCoercible$d; var getMethod$1 = getMethod$7; var advanceStringIndex = advanceStringIndex$3; var regExpExec$2 = regexpExecAbstract; // @@match logic fixRegExpWellKnownSymbolLogic$1('match', function (MATCH, nativeMatch, maybeCallNative) { return [ // `String.prototype.match` method // https://tc39.es/ecma262/#sec-string.prototype.match function match(regexp) { var O = requireObjectCoercible$4(this); var matcher = regexp == undefined ? undefined : getMethod$1(regexp, MATCH); return matcher ? call$6(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$5(O)); }, // `RegExp.prototype[@@match]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@match function (string) { var rx = anObject$3(this); var S = toString$5(string); var res = maybeCallNative(nativeMatch, rx, S); if (res.done) return res.value; if (!rx.global) return regExpExec$2(rx, S); var fullUnicode = rx.unicode; rx.lastIndex = 0; var A = []; var n = 0; var result; while ((result = regExpExec$2(rx, S)) !== null) { var matchStr = toString$5(result[0]); A[n] = matchStr; if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength$5(rx.lastIndex), fullUnicode); n++; } return n === 0 ? null : A; } ]; }); var $$b = _export; var $findIndex$1 = arrayIteration.findIndex; var addToUnscopables$1 = addToUnscopables$4; var FIND_INDEX = 'findIndex'; var SKIPS_HOLES$1 = true; // Shouldn't skip holes if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES$1 = false; }); // `Array.prototype.findIndex` method // https://tc39.es/ecma262/#sec-array.prototype.findindex $$b({ target: 'Array', proto: true, forced: SKIPS_HOLES$1 }, { findIndex: function findIndex(callbackfn /* , that = undefined */) { return $findIndex$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables addToUnscopables$1(FIND_INDEX); var uncurryThis$e = functionUncurryThis; var requireObjectCoercible$3 = requireObjectCoercible$d; var toString$4 = toString$g; var quot = /"/g; var replace$3 = uncurryThis$e(''.replace); // `CreateHTML` abstract operation // https://tc39.es/ecma262/#sec-createhtml var createHtml = function (string, tag, attribute, value) { var S = toString$4(requireObjectCoercible$3(string)); var p1 = '<' + tag; if (attribute !== '') p1 += ' ' + attribute + '="' + replace$3(toString$4(value), quot, '"') + '"'; return p1 + '>' + S + ''; }; var fails$c = fails$I; // check the existence of a method, lowercase // of a tag and escaping quotes in arguments var stringHtmlForced = function (METHOD_NAME) { return fails$c(function () { var test = ''[METHOD_NAME]('"'); return test !== test.toLowerCase() || test.split('"').length > 3; }); }; var $$a = _export; var createHTML = createHtml; var forcedStringHTMLMethod = stringHtmlForced; // `String.prototype.anchor` method // https://tc39.es/ecma262/#sec-string.prototype.anchor $$a({ target: 'String', proto: true, forced: forcedStringHTMLMethod('anchor') }, { anchor: function anchor(name) { return createHTML(this, 'a', 'name', name); } }); var anObject$2 = anObject$p; var iteratorClose = iteratorClose$2; // call something on iterator step with safe closing on error var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) { try { return ENTRIES ? fn(anObject$2(value)[0], value[1]) : fn(value); } catch (error) { iteratorClose(iterator, 'throw', error); } }; var global$k = global$1e; var bind$3 = functionBindContext; var call$5 = functionCall; var toObject$6 = toObject$g; var callWithSafeIterationClosing = callWithSafeIterationClosing$1; var isArrayIteratorMethod$1 = isArrayIteratorMethod$3; var isConstructor = isConstructor$4; var lengthOfArrayLike$9 = lengthOfArrayLike$h; var createProperty = createProperty$5; var getIterator$2 = getIterator$4; var getIteratorMethod$2 = getIteratorMethod$5; var Array$4 = global$k.Array; // `Array.from` method implementation // https://tc39.es/ecma262/#sec-array.from var arrayFrom$1 = function from(arrayLike /* , mapfn = undefined, thisArg = undefined */) { var O = toObject$6(arrayLike); var IS_CONSTRUCTOR = isConstructor(this); var argumentsLength = arguments.length; var mapfn = argumentsLength > 1 ? arguments[1] : undefined; var mapping = mapfn !== undefined; if (mapping) mapfn = bind$3(mapfn, argumentsLength > 2 ? arguments[2] : undefined); var iteratorMethod = getIteratorMethod$2(O); var index = 0; var length, result, step, iterator, next, value; // if the target is not iterable or it's an array with the default iterator - use a simple case if (iteratorMethod && !(this == Array$4 && isArrayIteratorMethod$1(iteratorMethod))) { iterator = getIterator$2(O, iteratorMethod); next = iterator.next; result = IS_CONSTRUCTOR ? new this() : []; for (;!(step = call$5(next, iterator)).done; index++) { value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value; createProperty(result, index, value); } } else { length = lengthOfArrayLike$9(O); result = IS_CONSTRUCTOR ? new this(length) : Array$4(length); for (;length > index; index++) { value = mapping ? mapfn(O[index], index) : O[index]; createProperty(result, index, value); } } result.length = index; return result; }; var $$9 = _export; var from = arrayFrom$1; var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$4; var INCORRECT_ITERATION = !checkCorrectnessOfIteration$1(function (iterable) { // eslint-disable-next-line es/no-array-from -- required for testing Array.from(iterable); }); // `Array.from` method // https://tc39.es/ecma262/#sec-array.from $$9({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, { from: from }); var DESCRIPTORS$4 = descriptors; var FUNCTION_NAME_EXISTS = functionName.EXISTS; var uncurryThis$d = functionUncurryThis; var defineProperty$2 = objectDefineProperty.f; var FunctionPrototype = Function.prototype; var functionToString = uncurryThis$d(FunctionPrototype.toString); var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/; var regExpExec$1 = uncurryThis$d(nameRE.exec); var NAME$1 = 'name'; // Function instances `.name` property // https://tc39.es/ecma262/#sec-function-instances-name if (DESCRIPTORS$4 && !FUNCTION_NAME_EXISTS) { defineProperty$2(FunctionPrototype, NAME$1, { configurable: true, get: function () { try { return regExpExec$1(nameRE, functionToString(this))[1]; } catch (error) { return ''; } } }); } var arraySlice$4 = arraySliceSimple; var floor$6 = Math.floor; var mergeSort = function (array, comparefn) { var length = array.length; var middle = floor$6(length / 2); return length < 8 ? insertionSort(array, comparefn) : merge( array, mergeSort(arraySlice$4(array, 0, middle), comparefn), mergeSort(arraySlice$4(array, middle), comparefn), comparefn ); }; var insertionSort = function (array, comparefn) { var length = array.length; var i = 1; var element, j; while (i < length) { j = i; element = array[i]; while (j && comparefn(array[j - 1], element) > 0) { array[j] = array[--j]; } if (j !== i++) array[j] = element; } return array; }; var merge = function (array, left, right, comparefn) { var llength = left.length; var rlength = right.length; var lindex = 0; var rindex = 0; while (lindex < llength || rindex < rlength) { array[lindex + rindex] = (lindex < llength && rindex < rlength) ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++] : lindex < llength ? left[lindex++] : right[rindex++]; } return array; }; var arraySort$1 = mergeSort; var userAgent$1 = engineUserAgent; var firefox = userAgent$1.match(/firefox\/(\d+)/i); var engineFfVersion = !!firefox && +firefox[1]; var UA = engineUserAgent; var engineIsIeOrEdge = /MSIE|Trident/.test(UA); var userAgent = engineUserAgent; var webkit = userAgent.match(/AppleWebKit\/(\d+)\./); var engineWebkitVersion = !!webkit && +webkit[1]; var $$8 = _export; var uncurryThis$c = functionUncurryThis; var aCallable$2 = aCallable$8; var toObject$5 = toObject$g; var lengthOfArrayLike$8 = lengthOfArrayLike$h; var toString$3 = toString$g; var fails$b = fails$I; var internalSort$1 = arraySort$1; var arrayMethodIsStrict$2 = arrayMethodIsStrict$4; var FF$1 = engineFfVersion; var IE_OR_EDGE$1 = engineIsIeOrEdge; var V8$1 = engineV8Version; var WEBKIT$1 = engineWebkitVersion; var test = []; var un$Sort$1 = uncurryThis$c(test.sort); var push$3 = uncurryThis$c(test.push); // IE8- var FAILS_ON_UNDEFINED = fails$b(function () { test.sort(undefined); }); // V8 bug var FAILS_ON_NULL = fails$b(function () { test.sort(null); }); // Old WebKit var STRICT_METHOD$2 = arrayMethodIsStrict$2('sort'); var STABLE_SORT$1 = !fails$b(function () { // feature detection can be too slow, so check engines versions if (V8$1) return V8$1 < 70; if (FF$1 && FF$1 > 3) return; if (IE_OR_EDGE$1) return true; if (WEBKIT$1) return WEBKIT$1 < 603; var result = ''; var code, chr, value, index; // generate an array with more 512 elements (Chakra and old V8 fails only in this case) for (code = 65; code < 76; code++) { chr = String.fromCharCode(code); switch (code) { case 66: case 69: case 70: case 72: value = 3; break; case 68: case 71: value = 4; break; default: value = 2; } for (index = 0; index < 47; index++) { test.push({ k: chr + index, v: value }); } } test.sort(function (a, b) { return b.v - a.v; }); for (index = 0; index < test.length; index++) { chr = test[index].k.charAt(0); if (result.charAt(result.length - 1) !== chr) result += chr; } return result !== 'DGBEFHACIJK'; }); var FORCED$5 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$2 || !STABLE_SORT$1; var getSortCompare$1 = 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$3(x) > toString$3(y) ? 1 : -1; }; }; // `Array.prototype.sort` method // https://tc39.es/ecma262/#sec-array.prototype.sort $$8({ target: 'Array', proto: true, forced: FORCED$5 }, { sort: function sort(comparefn) { if (comparefn !== undefined) aCallable$2(comparefn); var array = toObject$5(this); if (STABLE_SORT$1) return comparefn === undefined ? un$Sort$1(array) : un$Sort$1(array, comparefn); var items = []; var arrayLength = lengthOfArrayLike$8(array); var itemsLength, index; for (index = 0; index < arrayLength; index++) { if (index in array) push$3(items, array[index]); } internalSort$1(items, getSortCompare$1(comparefn)); itemsLength = items.length; index = 0; while (index < itemsLength) array[index] = items[index++]; while (index < arrayLength) delete array[index++]; return array; } }); var $$7 = _export; var uncurryThis$b = functionUncurryThis; var IndexedObject$1 = indexedObject; var toIndexedObject$1 = toIndexedObject$a; var arrayMethodIsStrict$1 = arrayMethodIsStrict$4; var un$Join = uncurryThis$b([].join); var ES3_STRINGS = IndexedObject$1 != Object; var STRICT_METHOD$1 = arrayMethodIsStrict$1('join', ','); // `Array.prototype.join` method // https://tc39.es/ecma262/#sec-array.prototype.join $$7({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, { join: function join(separator) { return un$Join(toIndexedObject$1(this), separator === undefined ? ',' : separator); } }); var call$4 = functionCall; var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic; var anObject$1 = anObject$p; var requireObjectCoercible$2 = requireObjectCoercible$d; var sameValue = sameValue$1; var toString$2 = toString$g; var getMethod = getMethod$7; var regExpExec = regexpExecAbstract; // @@search logic fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) { return [ // `String.prototype.search` method // https://tc39.es/ecma262/#sec-string.prototype.search function search(regexp) { var O = requireObjectCoercible$2(this); var searcher = regexp == undefined ? undefined : getMethod(regexp, SEARCH); return searcher ? call$4(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$2(O)); }, // `RegExp.prototype[@@search]` method // https://tc39.es/ecma262/#sec-regexp.prototype-@@search function (string) { var rx = anObject$1(this); var S = toString$2(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 = regExpExec(rx, S); if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex; return result === null ? -1 : result.index; } ]; }); var global$j = global$1e; var toIntegerOrInfinity$6 = toIntegerOrInfinity$c; var toString$1 = toString$g; var requireObjectCoercible$1 = requireObjectCoercible$d; var RangeError$8 = global$j.RangeError; // `String.prototype.repeat` method implementation // https://tc39.es/ecma262/#sec-string.prototype.repeat var stringRepeat = function repeat(count) { var str = toString$1(requireObjectCoercible$1(this)); var result = ''; var n = toIntegerOrInfinity$6(count); if (n < 0 || n == Infinity) throw RangeError$8('Wrong number of repetitions'); for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str; return result; }; var $$6 = _export; var global$i = global$1e; var uncurryThis$a = functionUncurryThis; var toIntegerOrInfinity$5 = toIntegerOrInfinity$c; var thisNumberValue = thisNumberValue$2; var $repeat = stringRepeat; var fails$a = fails$I; var RangeError$7 = global$i.RangeError; var String$1 = global$i.String; var floor$5 = Math.floor; var repeat = uncurryThis$a($repeat); var stringSlice$2 = uncurryThis$a(''.slice); var un$ToFixed = uncurryThis$a(1.0.toFixed); var pow$2 = function (x, n, acc) { return n === 0 ? acc : n % 2 === 1 ? pow$2(x, n - 1, acc * x) : pow$2(x * x, n / 2, acc); }; var log$1 = function (x) { var n = 0; var x2 = x; while (x2 >= 4096) { n += 12; x2 /= 4096; } while (x2 >= 2) { n += 1; x2 /= 2; } return n; }; var multiply = function (data, n, c) { var index = -1; var c2 = c; while (++index < 6) { c2 += n * data[index]; data[index] = c2 % 1e7; c2 = floor$5(c2 / 1e7); } }; var divide = function (data, n) { var index = 6; var c = 0; while (--index >= 0) { c += data[index]; data[index] = floor$5(c / n); c = (c % n) * 1e7; } }; var dataToString = function (data) { var index = 6; var s = ''; while (--index >= 0) { if (s !== '' || index === 0 || data[index] !== 0) { var t = String$1(data[index]); s = s === '' ? t : s + repeat('0', 7 - t.length) + t; } } return s; }; var FORCED$4 = fails$a(function () { return un$ToFixed(0.00008, 3) !== '0.000' || un$ToFixed(0.9, 0) !== '1' || un$ToFixed(1.255, 2) !== '1.25' || un$ToFixed(1000000000000000128.0, 0) !== '1000000000000000128'; }) || !fails$a(function () { // V8 ~ Android 4.3- un$ToFixed({}); }); // `Number.prototype.toFixed` method // https://tc39.es/ecma262/#sec-number.prototype.tofixed $$6({ target: 'Number', proto: true, forced: FORCED$4 }, { toFixed: function toFixed(fractionDigits) { var number = thisNumberValue(this); var fractDigits = toIntegerOrInfinity$5(fractionDigits); var data = [0, 0, 0, 0, 0, 0]; var sign = ''; var result = '0'; var e, z, j, k; // TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation if (fractDigits < 0 || fractDigits > 20) throw RangeError$7('Incorrect fraction digits'); // eslint-disable-next-line no-self-compare -- NaN check if (number != number) return 'NaN'; if (number <= -1e21 || number >= 1e21) return String$1(number); if (number < 0) { sign = '-'; number = -number; } if (number > 1e-21) { e = log$1(number * pow$2(2, 69, 1)) - 69; z = e < 0 ? number * pow$2(2, -e, 1) : number / pow$2(2, e, 1); z *= 0x10000000000000; e = 52 - e; if (e > 0) { multiply(data, 0, z); j = fractDigits; while (j >= 7) { multiply(data, 1e7, 0); j -= 7; } multiply(data, pow$2(10, j, 1), 0); j = e - 1; while (j >= 23) { divide(data, 1 << 23); j -= 23; } divide(data, 1 << j); multiply(data, 1, 1); divide(data, 2); result = dataToString(data); } else { multiply(data, 0, z); multiply(data, 1 << -e, 0); result = dataToString(data) + repeat('0', fractDigits); } } if (fractDigits > 0) { k = result.length; result = sign + (k <= fractDigits ? '0.' + repeat('0', fractDigits - k) + result : stringSlice$2(result, 0, k - fractDigits) + '.' + stringSlice$2(result, k - fractDigits)); } else { result = sign + result; } return result; } }); var $$5 = _export; var uncurryThis$9 = functionUncurryThis; var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f; var toLength$4 = toLength$a; var toString = toString$g; var notARegExp = notARegexp; var requireObjectCoercible = requireObjectCoercible$d; var correctIsRegExpLogic = correctIsRegexpLogic; // eslint-disable-next-line es/no-string-prototype-endswith -- safe var un$EndsWith = uncurryThis$9(''.endsWith); var slice = uncurryThis$9(''.slice); var min$2 = Math.min; 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 $$5({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, { endsWith: function endsWith(searchString /* , endPosition = @length */) { 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$2(toLength$4(endPosition), len); var search = toString(searchString); return un$EndsWith ? un$EndsWith(that, search, end) : slice(that, end - search.length, end) === search; } }); var $$4 = _export; var $find$1 = arrayIteration.find; var addToUnscopables = addToUnscopables$4; var FIND = 'find'; var SKIPS_HOLES = true; // Shouldn't skip holes if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; }); // `Array.prototype.find` method // https://tc39.es/ecma262/#sec-array.prototype.find $$4({ target: 'Array', proto: true, forced: SKIPS_HOLES }, { find: function find(callbackfn /* , that = undefined */) { return $find$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined); } }); // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables addToUnscopables(FIND); var $$3 = _export; var FREEZING = freezing; var fails$9 = fails$I; var isObject$6 = isObject$s; var onFreeze = internalMetadata.exports.onFreeze; // eslint-disable-next-line es/no-object-freeze -- safe var $freeze = Object.freeze; var FAILS_ON_PRIMITIVES = fails$9(function () { $freeze(1); }); // `Object.freeze` method // https://tc39.es/ecma262/#sec-object.freeze $$3({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING }, { freeze: function freeze(it) { return $freeze && isObject$6(it) ? $freeze(onFreeze(it)) : it; } }); var fails$8 = fails$I; var wellKnownSymbol$3 = wellKnownSymbol$s; var IS_PURE = isPure; var ITERATOR$2 = wellKnownSymbol$3('iterator'); var nativeUrl = !fails$8(function () { var url = new URL('b?a=1&b=2&c=3', 'http://a'); var searchParams = url.searchParams; var result = ''; url.pathname = 'c%20d'; searchParams.forEach(function (value, key) { searchParams['delete']('b'); result += key + value; }); return (IS_PURE && !url.toJSON) || !searchParams.sort || url.href !== 'http://a/c%20d?a=1&c=3' || searchParams.get('c') !== '3' || String(new URLSearchParams('?a=1')) !== 'a=1' || !searchParams[ITERATOR$2] // throws in Edge || new URL('https://a@b').username !== 'a' || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b' // not punycoded in Edge || new URL('http://тест').host !== 'xn--e1aybc' // not escaped in Chrome 62- || new URL('http://a#б').hash !== '#%D0%B1' // fails in Chrome 66- || result !== 'a1c3' // throws in Safari || new URL('http://x', undefined).host !== 'x'; }); // based on https://github.com/bestiejs/punycode.js/blob/master/punycode.js var global$h = global$1e; var uncurryThis$8 = functionUncurryThis; var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1 var base = 36; var tMin = 1; var tMax = 26; var skew = 38; var damp = 700; var initialBias = 72; var initialN = 128; // 0x80 var delimiter = '-'; // '\x2D' var regexNonASCII = /[^\0-\u007E]/; // non-ASCII chars var regexSeparators = /[.\u3002\uFF0E\uFF61]/g; // RFC 3490 separators var OVERFLOW_ERROR = 'Overflow: input needs wider integers to process'; var baseMinusTMin = base - tMin; var RangeError$6 = global$h.RangeError; var exec$1 = uncurryThis$8(regexSeparators.exec); var floor$4 = Math.floor; var fromCharCode = String.fromCharCode; var charCodeAt = uncurryThis$8(''.charCodeAt); var join$3 = uncurryThis$8([].join); var push$2 = uncurryThis$8([].push); var replace$2 = uncurryThis$8(''.replace); var split$2 = uncurryThis$8(''.split); var toLowerCase$1 = uncurryThis$8(''.toLowerCase); /** * Creates an array containing the numeric code points of each Unicode * character in the string. While JavaScript uses UCS-2 internally, * this function will convert a pair of surrogate halves (each of which * UCS-2 exposes as separate characters) into a single code point, * matching UTF-16. */ var ucs2decode = function (string) { var output = []; var counter = 0; var length = string.length; while (counter < length) { var value = charCodeAt(string, counter++); if (value >= 0xD800 && value <= 0xDBFF && counter < length) { // It's a high surrogate, and there is a next character. var extra = charCodeAt(string, counter++); if ((extra & 0xFC00) == 0xDC00) { // Low surrogate. push$2(output, ((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000); } else { // It's an unmatched surrogate; only append this code unit, in case the // next code unit is the high surrogate of a surrogate pair. push$2(output, value); counter--; } } else { push$2(output, value); } } return output; }; /** * Converts a digit/integer into a basic code point. */ var digitToBasic = function (digit) { // 0..25 map to ASCII a..z or A..Z // 26..35 map to ASCII 0..9 return digit + 22 + 75 * (digit < 26); }; /** * Bias adaptation function as per section 3.4 of RFC 3492. * https://tools.ietf.org/html/rfc3492#section-3.4 */ var adapt = function (delta, numPoints, firstTime) { var k = 0; delta = firstTime ? floor$4(delta / damp) : delta >> 1; delta += floor$4(delta / numPoints); while (delta > baseMinusTMin * tMax >> 1) { delta = floor$4(delta / baseMinusTMin); k += base; } return floor$4(k + (baseMinusTMin + 1) * delta / (delta + skew)); }; /** * Converts a string of Unicode symbols (e.g. a domain name label) to a * Punycode string of ASCII-only symbols. */ var encode = function (input) { var output = []; // Convert the input in UCS-2 to an array of Unicode code points. input = ucs2decode(input); // Cache the length. var inputLength = input.length; // Initialize the state. var n = initialN; var delta = 0; var bias = initialBias; var i, currentValue; // Handle the basic code points. for (i = 0; i < input.length; i++) { currentValue = input[i]; if (currentValue < 0x80) { push$2(output, fromCharCode(currentValue)); } } var basicLength = output.length; // number of basic code points. var handledCPCount = basicLength; // number of code points that have been handled; // Finish the basic string with a delimiter unless it's empty. if (basicLength) { push$2(output, delimiter); } // Main encoding loop: while (handledCPCount < inputLength) { // All non-basic code points < n have been handled already. Find the next larger one: var m = maxInt; for (i = 0; i < input.length; i++) { currentValue = input[i]; if (currentValue >= n && currentValue < m) { m = currentValue; } } // Increase `delta` enough to advance the decoder's state to , but guard against overflow. var handledCPCountPlusOne = handledCPCount + 1; if (m - n > floor$4((maxInt - delta) / handledCPCountPlusOne)) { throw RangeError$6(OVERFLOW_ERROR); } delta += (m - n) * handledCPCountPlusOne; n = m; for (i = 0; i < input.length; i++) { currentValue = input[i]; if (currentValue < n && ++delta > maxInt) { throw RangeError$6(OVERFLOW_ERROR); } if (currentValue == n) { // Represent delta as a generalized variable-length integer. var q = delta; var k = base; while (true) { var t = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias); if (q < t) break; var qMinusT = q - t; var baseMinusT = base - t; push$2(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT))); q = floor$4(qMinusT / baseMinusT); k += base; } push$2(output, fromCharCode(digitToBasic(q))); bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); delta = 0; handledCPCount++; } } delta++; n++; } return join$3(output, ''); }; var stringPunycodeToAscii = function (input) { var encoded = []; var labels = split$2(replace$2(toLowerCase$1(input), regexSeparators, '\u002E'), '.'); var i, label; for (i = 0; i < labels.length; i++) { label = labels[i]; push$2(encoded, exec$1(regexNonASCII, label) ? 'xn--' + encode(label) : label); } return join$3(encoded, '.'); }; // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` var $$2 = _export; var global$g = global$1e; var getBuiltIn = getBuiltIn$a; var call$3 = functionCall; var uncurryThis$7 = functionUncurryThis; var USE_NATIVE_URL$1 = nativeUrl; var redefine$2 = redefine$e.exports; var redefineAll$1 = redefineAll$6; var setToStringTag$2 = setToStringTag$9; var createIteratorConstructor = createIteratorConstructor$2; var InternalStateModule$3 = internalState; var anInstance$3 = anInstance$8; var isCallable$1 = isCallable$q; var hasOwn$4 = hasOwnProperty_1; var bind$2 = functionBindContext; var classof$2 = classof$d; var anObject = anObject$p; var isObject$5 = isObject$s; var $toString$1 = toString$g; var create$1 = objectCreate; var createPropertyDescriptor$1 = createPropertyDescriptor$8; var getIterator$1 = getIterator$4; var getIteratorMethod$1 = getIteratorMethod$5; var wellKnownSymbol$2 = wellKnownSymbol$s; var arraySort = arraySort$1; var ITERATOR$1 = wellKnownSymbol$2('iterator'); var URL_SEARCH_PARAMS = 'URLSearchParams'; var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator'; var setInternalState$3 = InternalStateModule$3.set; var getInternalParamsState = InternalStateModule$3.getterFor(URL_SEARCH_PARAMS); var getInternalIteratorState = InternalStateModule$3.getterFor(URL_SEARCH_PARAMS_ITERATOR); var n$Fetch = getBuiltIn('fetch'); var N$Request = getBuiltIn('Request'); var Headers = getBuiltIn('Headers'); var RequestPrototype = N$Request && N$Request.prototype; var HeadersPrototype = Headers && Headers.prototype; var RegExp$1 = global$g.RegExp; var TypeError$4 = global$g.TypeError; var decodeURIComponent = global$g.decodeURIComponent; var encodeURIComponent$1 = global$g.encodeURIComponent; var charAt$1 = uncurryThis$7(''.charAt); var join$2 = uncurryThis$7([].join); var push$1 = uncurryThis$7([].push); var replace$1 = uncurryThis$7(''.replace); var shift$1 = uncurryThis$7([].shift); var splice = uncurryThis$7([].splice); var split$1 = uncurryThis$7(''.split); var stringSlice$1 = uncurryThis$7(''.slice); var plus = /\+/g; var sequences = Array(4); var percentSequence = function (bytes) { return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp$1('((?:%[\\da-f]{2}){' + bytes + '})', 'gi')); }; var percentDecode = function (sequence) { try { return decodeURIComponent(sequence); } catch (error) { return sequence; } }; var deserialize = function (it) { var result = replace$1(it, plus, ' '); var bytes = 4; try { return decodeURIComponent(result); } catch (error) { while (bytes) { result = replace$1(result, percentSequence(bytes--), percentDecode); } return result; } }; var find = /[!'()~]|%20/g; var replacements = { '!': '%21', "'": '%27', '(': '%28', ')': '%29', '~': '%7E', '%20': '+' }; var replacer$1 = function (match) { return replacements[match]; }; var serialize = function (it) { return replace$1(encodeURIComponent$1(it), find, replacer$1); }; var validateArgumentsLength = function (passed, required) { if (passed < required) throw TypeError$4('Not enough arguments'); }; var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) { setInternalState$3(this, { type: URL_SEARCH_PARAMS_ITERATOR, iterator: getIterator$1(getInternalParamsState(params).entries), kind: kind }); }, 'Iterator', function next() { var state = getInternalIteratorState(this); var kind = state.kind; var step = state.iterator.next(); var entry = step.value; if (!step.done) { step.value = kind === 'keys' ? entry.key : kind === 'values' ? entry.value : [entry.key, entry.value]; } return step; }, true); var URLSearchParamsState = function (init) { this.entries = []; this.url = null; if (init !== undefined) { if (isObject$5(init)) this.parseObject(init); else this.parseQuery(typeof init == 'string' ? charAt$1(init, 0) === '?' ? stringSlice$1(init, 1) : init : $toString$1(init)); } }; URLSearchParamsState.prototype = { type: URL_SEARCH_PARAMS, bindURL: function (url) { this.url = url; this.update(); }, parseObject: function (object) { var iteratorMethod = getIteratorMethod$1(object); var iterator, next, step, entryIterator, entryNext, first, second; if (iteratorMethod) { iterator = getIterator$1(object, iteratorMethod); next = iterator.next; while (!(step = call$3(next, iterator)).done) { entryIterator = getIterator$1(anObject(step.value)); entryNext = entryIterator.next; if ( (first = call$3(entryNext, entryIterator)).done || (second = call$3(entryNext, entryIterator)).done || !call$3(entryNext, entryIterator).done ) throw TypeError$4('Expected sequence with length 2'); push$1(this.entries, { key: $toString$1(first.value), value: $toString$1(second.value) }); } } else for (var key in object) if (hasOwn$4(object, key)) { push$1(this.entries, { key: key, value: $toString$1(object[key]) }); } }, parseQuery: function (query) { if (query) { var attributes = split$1(query, '&'); var index = 0; var attribute, entry; while (index < attributes.length) { attribute = attributes[index++]; if (attribute.length) { entry = split$1(attribute, '='); push$1(this.entries, { key: deserialize(shift$1(entry)), value: deserialize(join$2(entry, '=')) }); } } } }, serialize: function () { var entries = this.entries; var result = []; var index = 0; var entry; while (index < entries.length) { entry = entries[index++]; push$1(result, serialize(entry.key) + '=' + serialize(entry.value)); } return join$2(result, '&'); }, update: function () { this.entries.length = 0; this.parseQuery(this.url.query); }, updateURL: function () { if (this.url) this.url.update(); } }; // `URLSearchParams` constructor // https://url.spec.whatwg.org/#interface-urlsearchparams var URLSearchParamsConstructor = function URLSearchParams(/* init */) { anInstance$3(this, URLSearchParamsPrototype); var init = arguments.length > 0 ? arguments[0] : undefined; setInternalState$3(this, new URLSearchParamsState(init)); }; var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype; redefineAll$1(URLSearchParamsPrototype, { // `URLSearchParams.prototype.append` method // https://url.spec.whatwg.org/#dom-urlsearchparams-append append: function append(name, value) { validateArgumentsLength(arguments.length, 2); var state = getInternalParamsState(this); push$1(state.entries, { key: $toString$1(name), value: $toString$1(value) }); state.updateURL(); }, // `URLSearchParams.prototype.delete` method // https://url.spec.whatwg.org/#dom-urlsearchparams-delete 'delete': function (name) { validateArgumentsLength(arguments.length, 1); var state = getInternalParamsState(this); var entries = state.entries; var key = $toString$1(name); var index = 0; while (index < entries.length) { if (entries[index].key === key) splice(entries, index, 1); else index++; } state.updateURL(); }, // `URLSearchParams.prototype.get` method // https://url.spec.whatwg.org/#dom-urlsearchparams-get get: function get(name) { validateArgumentsLength(arguments.length, 1); var entries = getInternalParamsState(this).entries; var key = $toString$1(name); var index = 0; for (; index < entries.length; index++) { if (entries[index].key === key) return entries[index].value; } return null; }, // `URLSearchParams.prototype.getAll` method // https://url.spec.whatwg.org/#dom-urlsearchparams-getall getAll: function getAll(name) { validateArgumentsLength(arguments.length, 1); var entries = getInternalParamsState(this).entries; var key = $toString$1(name); var result = []; var index = 0; for (; index < entries.length; index++) { if (entries[index].key === key) push$1(result, entries[index].value); } return result; }, // `URLSearchParams.prototype.has` method // https://url.spec.whatwg.org/#dom-urlsearchparams-has has: function has(name) { validateArgumentsLength(arguments.length, 1); var entries = getInternalParamsState(this).entries; var key = $toString$1(name); var index = 0; while (index < entries.length) { if (entries[index++].key === key) return true; } return false; }, // `URLSearchParams.prototype.set` method // https://url.spec.whatwg.org/#dom-urlsearchparams-set set: function set(name, value) { validateArgumentsLength(arguments.length, 1); var state = getInternalParamsState(this); var entries = state.entries; var found = false; var key = $toString$1(name); var val = $toString$1(value); var index = 0; var entry; for (; index < entries.length; index++) { entry = entries[index]; if (entry.key === key) { if (found) splice(entries, index--, 1); else { found = true; entry.value = val; } } } if (!found) push$1(entries, { key: key, value: val }); state.updateURL(); }, // `URLSearchParams.prototype.sort` method // https://url.spec.whatwg.org/#dom-urlsearchparams-sort sort: function sort() { var state = getInternalParamsState(this); arraySort(state.entries, function (a, b) { return a.key > b.key ? 1 : -1; }); state.updateURL(); }, // `URLSearchParams.prototype.forEach` method forEach: function forEach(callback /* , thisArg */) { var entries = getInternalParamsState(this).entries; var boundFunction = bind$2(callback, arguments.length > 1 ? arguments[1] : undefined); var index = 0; var entry; while (index < entries.length) { entry = entries[index++]; boundFunction(entry.value, entry.key, this); } }, // `URLSearchParams.prototype.keys` method keys: function keys() { return new URLSearchParamsIterator(this, 'keys'); }, // `URLSearchParams.prototype.values` method values: function values() { return new URLSearchParamsIterator(this, 'values'); }, // `URLSearchParams.prototype.entries` method entries: function entries() { return new URLSearchParamsIterator(this, 'entries'); } }, { enumerable: true }); // `URLSearchParams.prototype[@@iterator]` method redefine$2(URLSearchParamsPrototype, ITERATOR$1, URLSearchParamsPrototype.entries, { name: 'entries' }); // `URLSearchParams.prototype.toString` method // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior redefine$2(URLSearchParamsPrototype, 'toString', function toString() { return getInternalParamsState(this).serialize(); }, { enumerable: true }); setToStringTag$2(URLSearchParamsConstructor, URL_SEARCH_PARAMS); $$2({ global: true, forced: !USE_NATIVE_URL$1 }, { URLSearchParams: URLSearchParamsConstructor }); // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams` if (!USE_NATIVE_URL$1 && isCallable$1(Headers)) { var headersHas = uncurryThis$7(HeadersPrototype.has); var headersSet = uncurryThis$7(HeadersPrototype.set); var wrapRequestOptions = function (init) { if (isObject$5(init)) { var body = init.body; var headers; if (classof$2(body) === URL_SEARCH_PARAMS) { headers = init.headers ? new Headers(init.headers) : new Headers(); if (!headersHas(headers, 'content-type')) { headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); } return create$1(init, { body: createPropertyDescriptor$1(0, $toString$1(body)), headers: createPropertyDescriptor$1(0, headers) }); } } return init; }; if (isCallable$1(n$Fetch)) { $$2({ global: true, enumerable: true, forced: true }, { fetch: function fetch(input /* , init */) { return n$Fetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {}); } }); } if (isCallable$1(N$Request)) { var RequestConstructor = function Request(input /* , init */) { anInstance$3(this, RequestPrototype); return new N$Request(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {}); }; RequestPrototype.constructor = RequestConstructor; RequestConstructor.prototype = RequestPrototype; $$2({ global: true, forced: true }, { Request: RequestConstructor }); } } var web_urlSearchParams = { URLSearchParams: URLSearchParamsConstructor, getState: getInternalParamsState }; // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env` var $$1 = _export; var DESCRIPTORS$3 = descriptors; var USE_NATIVE_URL = nativeUrl; var global$f = global$1e; var bind$1 = functionBindContext; var uncurryThis$6 = functionUncurryThis; var defineProperties = objectDefineProperties; var redefine$1 = redefine$e.exports; var anInstance$2 = anInstance$8; var hasOwn$3 = hasOwnProperty_1; var assign = objectAssign; var arrayFrom = arrayFrom$1; var arraySlice$3 = arraySliceSimple; var codeAt = stringMultibyte.codeAt; var toASCII = stringPunycodeToAscii; var $toString = toString$g; var setToStringTag$1 = setToStringTag$9; var URLSearchParamsModule = web_urlSearchParams; var InternalStateModule$2 = internalState; var setInternalState$2 = InternalStateModule$2.set; var getInternalURLState = InternalStateModule$2.getterFor('URL'); var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams; var getInternalSearchParamsState = URLSearchParamsModule.getState; var NativeURL = global$f.URL; var TypeError$3 = global$f.TypeError; var parseInt$1 = global$f.parseInt; var floor$3 = Math.floor; var pow$1 = Math.pow; var charAt = uncurryThis$6(''.charAt); var exec = uncurryThis$6(/./.exec); var join$1 = uncurryThis$6([].join); var numberToString = uncurryThis$6(1.0.toString); var pop = uncurryThis$6([].pop); var push = uncurryThis$6([].push); var replace = uncurryThis$6(''.replace); var shift = uncurryThis$6([].shift); var split = uncurryThis$6(''.split); var stringSlice = uncurryThis$6(''.slice); var toLowerCase = uncurryThis$6(''.toLowerCase); var unshift = uncurryThis$6([].unshift); var INVALID_AUTHORITY = 'Invalid authority'; var INVALID_SCHEME = 'Invalid scheme'; var INVALID_HOST = 'Invalid host'; var INVALID_PORT = 'Invalid port'; var ALPHA = /[a-z]/i; // eslint-disable-next-line regexp/no-obscure-range -- safe var ALPHANUMERIC = /[\d+-.a-z]/i; var DIGIT = /\d/; var HEX_START = /^0x/i; var OCT = /^[0-7]+$/; var DEC = /^\d+$/; var HEX = /^[\da-f]+$/i; /* eslint-disable regexp/no-control-character -- safe */ var FORBIDDEN_HOST_CODE_POINT = /[\0\t\n\r #%/:<>?@[\\\]^|]/; var FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT = /[\0\t\n\r #/:<>?@[\\\]^|]/; var LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+|[\u0000-\u0020]+$/g; var TAB_AND_NEW_LINE = /[\t\n\r]/g; /* eslint-enable regexp/no-control-character -- safe */ var EOF; // https://url.spec.whatwg.org/#ipv4-number-parser var parseIPv4 = function (input) { var parts = split(input, '.'); var partsLength, numbers, index, part, radix, number, ipv4; if (parts.length && parts[parts.length - 1] == '') { parts.length--; } partsLength = parts.length; if (partsLength > 4) return input; numbers = []; for (index = 0; index < partsLength; index++) { part = parts[index]; if (part == '') return input; radix = 10; if (part.length > 1 && charAt(part, 0) == '0') { radix = exec(HEX_START, part) ? 16 : 8; part = stringSlice(part, radix == 8 ? 1 : 2); } if (part === '') { number = 0; } else { if (!exec(radix == 10 ? DEC : radix == 8 ? OCT : HEX, part)) return input; number = parseInt$1(part, radix); } push(numbers, number); } for (index = 0; index < partsLength; index++) { number = numbers[index]; if (index == partsLength - 1) { if (number >= pow$1(256, 5 - partsLength)) return null; } else if (number > 255) return null; } ipv4 = pop(numbers); for (index = 0; index < numbers.length; index++) { ipv4 += numbers[index] * pow$1(256, 3 - index); } return ipv4; }; // https://url.spec.whatwg.org/#concept-ipv6-parser // eslint-disable-next-line max-statements -- TODO var parseIPv6 = function (input) { var address = [0, 0, 0, 0, 0, 0, 0, 0]; var pieceIndex = 0; var compress = null; var pointer = 0; var value, length, numbersSeen, ipv4Piece, number, swaps, swap; var chr = function () { return charAt(input, pointer); }; if (chr() == ':') { if (charAt(input, 1) != ':') return; pointer += 2; pieceIndex++; compress = pieceIndex; } while (chr()) { if (pieceIndex == 8) return; if (chr() == ':') { if (compress !== null) return; pointer++; pieceIndex++; compress = pieceIndex; continue; } value = length = 0; while (length < 4 && exec(HEX, chr())) { value = value * 16 + parseInt$1(chr(), 16); pointer++; length++; } if (chr() == '.') { if (length == 0) return; pointer -= length; if (pieceIndex > 6) return; numbersSeen = 0; while (chr()) { ipv4Piece = null; if (numbersSeen > 0) { if (chr() == '.' && numbersSeen < 4) pointer++; else return; } if (!exec(DIGIT, chr())) return; while (exec(DIGIT, chr())) { number = parseInt$1(chr(), 10); if (ipv4Piece === null) ipv4Piece = number; else if (ipv4Piece == 0) return; else ipv4Piece = ipv4Piece * 10 + number; if (ipv4Piece > 255) return; pointer++; } address[pieceIndex] = address[pieceIndex] * 256 + ipv4Piece; numbersSeen++; if (numbersSeen == 2 || numbersSeen == 4) pieceIndex++; } if (numbersSeen != 4) return; break; } else if (chr() == ':') { pointer++; if (!chr()) return; } else if (chr()) return; address[pieceIndex++] = value; } if (compress !== null) { swaps = pieceIndex - compress; pieceIndex = 7; while (pieceIndex != 0 && swaps > 0) { swap = address[pieceIndex]; address[pieceIndex--] = address[compress + swaps - 1]; address[compress + --swaps] = swap; } } else if (pieceIndex != 8) return; return address; }; var findLongestZeroSequence = function (ipv6) { var maxIndex = null; var maxLength = 1; var currStart = null; var currLength = 0; var index = 0; for (; index < 8; index++) { if (ipv6[index] !== 0) { if (currLength > maxLength) { maxIndex = currStart; maxLength = currLength; } currStart = null; currLength = 0; } else { if (currStart === null) currStart = index; ++currLength; } } if (currLength > maxLength) { maxIndex = currStart; maxLength = currLength; } return maxIndex; }; // https://url.spec.whatwg.org/#host-serializing var serializeHost = function (host) { var result, index, compress, ignore0; // ipv4 if (typeof host == 'number') { result = []; for (index = 0; index < 4; index++) { unshift(result, host % 256); host = floor$3(host / 256); } return join$1(result, '.'); // ipv6 } else if (typeof host == 'object') { result = ''; compress = findLongestZeroSequence(host); for (index = 0; index < 8; index++) { if (ignore0 && host[index] === 0) continue; if (ignore0) ignore0 = false; if (compress === index) { result += index ? ':' : '::'; ignore0 = true; } else { result += numberToString(host[index], 16); if (index < 7) result += ':'; } } return '[' + result + ']'; } return host; }; var C0ControlPercentEncodeSet = {}; var fragmentPercentEncodeSet = assign({}, C0ControlPercentEncodeSet, { ' ': 1, '"': 1, '<': 1, '>': 1, '`': 1 }); var pathPercentEncodeSet = assign({}, fragmentPercentEncodeSet, { '#': 1, '?': 1, '{': 1, '}': 1 }); var userinfoPercentEncodeSet = assign({}, pathPercentEncodeSet, { '/': 1, ':': 1, ';': 1, '=': 1, '@': 1, '[': 1, '\\': 1, ']': 1, '^': 1, '|': 1 }); var percentEncode = function (chr, set) { var code = codeAt(chr, 0); return code > 0x20 && code < 0x7F && !hasOwn$3(set, chr) ? chr : encodeURIComponent(chr); }; // https://url.spec.whatwg.org/#special-scheme var specialSchemes = { ftp: 21, file: null, http: 80, https: 443, ws: 80, wss: 443 }; // https://url.spec.whatwg.org/#windows-drive-letter var isWindowsDriveLetter = function (string, normalized) { var second; return string.length == 2 && exec(ALPHA, charAt(string, 0)) && ((second = charAt(string, 1)) == ':' || (!normalized && second == '|')); }; // https://url.spec.whatwg.org/#start-with-a-windows-drive-letter var startsWithWindowsDriveLetter = function (string) { var third; return string.length > 1 && isWindowsDriveLetter(stringSlice(string, 0, 2)) && ( string.length == 2 || ((third = charAt(string, 2)) === '/' || third === '\\' || third === '?' || third === '#') ); }; // https://url.spec.whatwg.org/#single-dot-path-segment var isSingleDot = function (segment) { return segment === '.' || toLowerCase(segment) === '%2e'; }; // https://url.spec.whatwg.org/#double-dot-path-segment var isDoubleDot = function (segment) { segment = toLowerCase(segment); return segment === '..' || segment === '%2e.' || segment === '.%2e' || segment === '%2e%2e'; }; // States: var SCHEME_START = {}; var SCHEME = {}; var NO_SCHEME = {}; var SPECIAL_RELATIVE_OR_AUTHORITY = {}; var PATH_OR_AUTHORITY = {}; var RELATIVE = {}; var RELATIVE_SLASH = {}; var SPECIAL_AUTHORITY_SLASHES = {}; var SPECIAL_AUTHORITY_IGNORE_SLASHES = {}; var AUTHORITY = {}; var HOST = {}; var HOSTNAME = {}; var PORT = {}; var FILE = {}; var FILE_SLASH = {}; var FILE_HOST = {}; var PATH_START = {}; var PATH = {}; var CANNOT_BE_A_BASE_URL_PATH = {}; var QUERY = {}; var FRAGMENT = {}; var URLState = function (url, isBase, base) { var urlString = $toString(url); var baseState, failure, searchParams; if (isBase) { failure = this.parse(urlString); if (failure) throw TypeError$3(failure); this.searchParams = null; } else { if (base !== undefined) baseState = new URLState(base, true); failure = this.parse(urlString, null, baseState); if (failure) throw TypeError$3(failure); searchParams = getInternalSearchParamsState(new URLSearchParams$1()); searchParams.bindURL(this); this.searchParams = searchParams; } }; URLState.prototype = { type: 'URL', // https://url.spec.whatwg.org/#url-parsing // eslint-disable-next-line max-statements -- TODO parse: function (input, stateOverride, base) { var url = this; var state = stateOverride || SCHEME_START; var pointer = 0; var buffer = ''; var seenAt = false; var seenBracket = false; var seenPasswordToken = false; var codePoints, chr, bufferCodePoints, failure; input = $toString(input); if (!stateOverride) { url.scheme = ''; url.username = ''; url.password = ''; url.host = null; url.port = null; url.path = []; url.query = null; url.fragment = null; url.cannotBeABaseURL = false; input = replace(input, LEADING_AND_TRAILING_C0_CONTROL_OR_SPACE, ''); } input = replace(input, TAB_AND_NEW_LINE, ''); codePoints = arrayFrom(input); while (pointer <= codePoints.length) { chr = codePoints[pointer]; switch (state) { case SCHEME_START: if (chr && exec(ALPHA, chr)) { buffer += toLowerCase(chr); state = SCHEME; } else if (!stateOverride) { state = NO_SCHEME; continue; } else return INVALID_SCHEME; break; case SCHEME: if (chr && (exec(ALPHANUMERIC, chr) || chr == '+' || chr == '-' || chr == '.')) { buffer += toLowerCase(chr); } else if (chr == ':') { if (stateOverride && ( (url.isSpecial() != hasOwn$3(specialSchemes, buffer)) || (buffer == 'file' && (url.includesCredentials() || url.port !== null)) || (url.scheme == 'file' && !url.host) )) return; url.scheme = buffer; if (stateOverride) { if (url.isSpecial() && specialSchemes[url.scheme] == url.port) url.port = null; return; } buffer = ''; if (url.scheme == 'file') { state = FILE; } else if (url.isSpecial() && base && base.scheme == url.scheme) { state = SPECIAL_RELATIVE_OR_AUTHORITY; } else if (url.isSpecial()) { state = SPECIAL_AUTHORITY_SLASHES; } else if (codePoints[pointer + 1] == '/') { state = PATH_OR_AUTHORITY; pointer++; } else { url.cannotBeABaseURL = true; push(url.path, ''); state = CANNOT_BE_A_BASE_URL_PATH; } } else if (!stateOverride) { buffer = ''; state = NO_SCHEME; pointer = 0; continue; } else return INVALID_SCHEME; break; case NO_SCHEME: if (!base || (base.cannotBeABaseURL && chr != '#')) return INVALID_SCHEME; if (base.cannotBeABaseURL && chr == '#') { url.scheme = base.scheme; url.path = arraySlice$3(base.path); url.query = base.query; url.fragment = ''; url.cannotBeABaseURL = true; state = FRAGMENT; break; } state = base.scheme == 'file' ? FILE : RELATIVE; continue; case SPECIAL_RELATIVE_OR_AUTHORITY: if (chr == '/' && codePoints[pointer + 1] == '/') { state = SPECIAL_AUTHORITY_IGNORE_SLASHES; pointer++; } else { state = RELATIVE; continue; } break; case PATH_OR_AUTHORITY: if (chr == '/') { state = AUTHORITY; break; } else { state = PATH; continue; } case RELATIVE: url.scheme = base.scheme; if (chr == EOF) { url.username = base.username; url.password = base.password; url.host = base.host; url.port = base.port; url.path = arraySlice$3(base.path); url.query = base.query; } else if (chr == '/' || (chr == '\\' && url.isSpecial())) { state = RELATIVE_SLASH; } else if (chr == '?') { url.username = base.username; url.password = base.password; url.host = base.host; url.port = base.port; url.path = arraySlice$3(base.path); url.query = ''; state = QUERY; } else if (chr == '#') { url.username = base.username; url.password = base.password; url.host = base.host; url.port = base.port; url.path = arraySlice$3(base.path); url.query = base.query; url.fragment = ''; state = FRAGMENT; } else { url.username = base.username; url.password = base.password; url.host = base.host; url.port = base.port; url.path = arraySlice$3(base.path); url.path.length--; state = PATH; continue; } break; case RELATIVE_SLASH: if (url.isSpecial() && (chr == '/' || chr == '\\')) { state = SPECIAL_AUTHORITY_IGNORE_SLASHES; } else if (chr == '/') { state = AUTHORITY; } else { url.username = base.username; url.password = base.password; url.host = base.host; url.port = base.port; state = PATH; continue; } break; case SPECIAL_AUTHORITY_SLASHES: state = SPECIAL_AUTHORITY_IGNORE_SLASHES; if (chr != '/' || charAt(buffer, pointer + 1) != '/') continue; pointer++; break; case SPECIAL_AUTHORITY_IGNORE_SLASHES: if (chr != '/' && chr != '\\') { state = AUTHORITY; continue; } break; case AUTHORITY: if (chr == '@') { if (seenAt) buffer = '%40' + buffer; seenAt = true; bufferCodePoints = arrayFrom(buffer); for (var i = 0; i < bufferCodePoints.length; i++) { var codePoint = bufferCodePoints[i]; if (codePoint == ':' && !seenPasswordToken) { seenPasswordToken = true; continue; } var encodedCodePoints = percentEncode(codePoint, userinfoPercentEncodeSet); if (seenPasswordToken) url.password += encodedCodePoints; else url.username += encodedCodePoints; } buffer = ''; } else if ( chr == EOF || chr == '/' || chr == '?' || chr == '#' || (chr == '\\' && url.isSpecial()) ) { if (seenAt && buffer == '') return INVALID_AUTHORITY; pointer -= arrayFrom(buffer).length + 1; buffer = ''; state = HOST; } else buffer += chr; break; case HOST: case HOSTNAME: if (stateOverride && url.scheme == 'file') { state = FILE_HOST; continue; } else if (chr == ':' && !seenBracket) { if (buffer == '') return INVALID_HOST; failure = url.parseHost(buffer); if (failure) return failure; buffer = ''; state = PORT; if (stateOverride == HOSTNAME) return; } else if ( chr == EOF || chr == '/' || chr == '?' || chr == '#' || (chr == '\\' && url.isSpecial()) ) { if (url.isSpecial() && buffer == '') return INVALID_HOST; if (stateOverride && buffer == '' && (url.includesCredentials() || url.port !== null)) return; failure = url.parseHost(buffer); if (failure) return failure; buffer = ''; state = PATH_START; if (stateOverride) return; continue; } else { if (chr == '[') seenBracket = true; else if (chr == ']') seenBracket = false; buffer += chr; } break; case PORT: if (exec(DIGIT, chr)) { buffer += chr; } else if ( chr == EOF || chr == '/' || chr == '?' || chr == '#' || (chr == '\\' && url.isSpecial()) || stateOverride ) { if (buffer != '') { var port = parseInt$1(buffer, 10); if (port > 0xFFFF) return INVALID_PORT; url.port = (url.isSpecial() && port === specialSchemes[url.scheme]) ? null : port; buffer = ''; } if (stateOverride) return; state = PATH_START; continue; } else return INVALID_PORT; break; case FILE: url.scheme = 'file'; if (chr == '/' || chr == '\\') state = FILE_SLASH; else if (base && base.scheme == 'file') { if (chr == EOF) { url.host = base.host; url.path = arraySlice$3(base.path); url.query = base.query; } else if (chr == '?') { url.host = base.host; url.path = arraySlice$3(base.path); url.query = ''; state = QUERY; } else if (chr == '#') { url.host = base.host; url.path = arraySlice$3(base.path); url.query = base.query; url.fragment = ''; state = FRAGMENT; } else { if (!startsWithWindowsDriveLetter(join$1(arraySlice$3(codePoints, pointer), ''))) { url.host = base.host; url.path = arraySlice$3(base.path); url.shortenPath(); } state = PATH; continue; } } else { state = PATH; continue; } break; case FILE_SLASH: if (chr == '/' || chr == '\\') { state = FILE_HOST; break; } if (base && base.scheme == 'file' && !startsWithWindowsDriveLetter(join$1(arraySlice$3(codePoints, pointer), ''))) { if (isWindowsDriveLetter(base.path[0], true)) push(url.path, base.path[0]); else url.host = base.host; } state = PATH; continue; case FILE_HOST: if (chr == EOF || chr == '/' || chr == '\\' || chr == '?' || chr == '#') { if (!stateOverride && isWindowsDriveLetter(buffer)) { state = PATH; } else if (buffer == '') { url.host = ''; if (stateOverride) return; state = PATH_START; } else { failure = url.parseHost(buffer); if (failure) return failure; if (url.host == 'localhost') url.host = ''; if (stateOverride) return; buffer = ''; state = PATH_START; } continue; } else buffer += chr; break; case PATH_START: if (url.isSpecial()) { state = PATH; if (chr != '/' && chr != '\\') continue; } else if (!stateOverride && chr == '?') { url.query = ''; state = QUERY; } else if (!stateOverride && chr == '#') { url.fragment = ''; state = FRAGMENT; } else if (chr != EOF) { state = PATH; if (chr != '/') continue; } break; case PATH: if ( chr == EOF || chr == '/' || (chr == '\\' && url.isSpecial()) || (!stateOverride && (chr == '?' || chr == '#')) ) { if (isDoubleDot(buffer)) { url.shortenPath(); if (chr != '/' && !(chr == '\\' && url.isSpecial())) { push(url.path, ''); } } else if (isSingleDot(buffer)) { if (chr != '/' && !(chr == '\\' && url.isSpecial())) { push(url.path, ''); } } else { if (url.scheme == 'file' && !url.path.length && isWindowsDriveLetter(buffer)) { if (url.host) url.host = ''; buffer = charAt(buffer, 0) + ':'; // normalize windows drive letter } push(url.path, buffer); } buffer = ''; if (url.scheme == 'file' && (chr == EOF || chr == '?' || chr == '#')) { while (url.path.length > 1 && url.path[0] === '') { shift(url.path); } } if (chr == '?') { url.query = ''; state = QUERY; } else if (chr == '#') { url.fragment = ''; state = FRAGMENT; } } else { buffer += percentEncode(chr, pathPercentEncodeSet); } break; case CANNOT_BE_A_BASE_URL_PATH: if (chr == '?') { url.query = ''; state = QUERY; } else if (chr == '#') { url.fragment = ''; state = FRAGMENT; } else if (chr != EOF) { url.path[0] += percentEncode(chr, C0ControlPercentEncodeSet); } break; case QUERY: if (!stateOverride && chr == '#') { url.fragment = ''; state = FRAGMENT; } else if (chr != EOF) { if (chr == "'" && url.isSpecial()) url.query += '%27'; else if (chr == '#') url.query += '%23'; else url.query += percentEncode(chr, C0ControlPercentEncodeSet); } break; case FRAGMENT: if (chr != EOF) url.fragment += percentEncode(chr, fragmentPercentEncodeSet); break; } pointer++; } }, // https://url.spec.whatwg.org/#host-parsing parseHost: function (input) { var result, codePoints, index; if (charAt(input, 0) == '[') { if (charAt(input, input.length - 1) != ']') return INVALID_HOST; result = parseIPv6(stringSlice(input, 1, -1)); if (!result) return INVALID_HOST; this.host = result; // opaque host } else if (!this.isSpecial()) { if (exec(FORBIDDEN_HOST_CODE_POINT_EXCLUDING_PERCENT, input)) return INVALID_HOST; result = ''; codePoints = arrayFrom(input); for (index = 0; index < codePoints.length; index++) { result += percentEncode(codePoints[index], C0ControlPercentEncodeSet); } this.host = result; } else { input = toASCII(input); if (exec(FORBIDDEN_HOST_CODE_POINT, input)) return INVALID_HOST; result = parseIPv4(input); if (result === null) return INVALID_HOST; this.host = result; } }, // https://url.spec.whatwg.org/#cannot-have-a-username-password-port cannotHaveUsernamePasswordPort: function () { return !this.host || this.cannotBeABaseURL || this.scheme == 'file'; }, // https://url.spec.whatwg.org/#include-credentials includesCredentials: function () { return this.username != '' || this.password != ''; }, // https://url.spec.whatwg.org/#is-special isSpecial: function () { return hasOwn$3(specialSchemes, this.scheme); }, // https://url.spec.whatwg.org/#shorten-a-urls-path shortenPath: function () { var path = this.path; var pathSize = path.length; if (pathSize && (this.scheme != 'file' || pathSize != 1 || !isWindowsDriveLetter(path[0], true))) { path.length--; } }, // https://url.spec.whatwg.org/#concept-url-serializer serialize: function () { var url = this; var scheme = url.scheme; var username = url.username; var password = url.password; var host = url.host; var port = url.port; var path = url.path; var query = url.query; var fragment = url.fragment; var output = scheme + ':'; if (host !== null) { output += '//'; if (url.includesCredentials()) { output += username + (password ? ':' + password : '') + '@'; } output += serializeHost(host); if (port !== null) output += ':' + port; } else if (scheme == 'file') output += '//'; output += url.cannotBeABaseURL ? path[0] : path.length ? '/' + join$1(path, '/') : ''; if (query !== null) output += '?' + query; if (fragment !== null) output += '#' + fragment; return output; }, // https://url.spec.whatwg.org/#dom-url-href setHref: function (href) { var failure = this.parse(href); if (failure) throw TypeError$3(failure); this.searchParams.update(); }, // https://url.spec.whatwg.org/#dom-url-origin getOrigin: function () { var scheme = this.scheme; var port = this.port; if (scheme == 'blob') try { return new URLConstructor(scheme.path[0]).origin; } catch (error) { return 'null'; } if (scheme == 'file' || !this.isSpecial()) return 'null'; return scheme + '://' + serializeHost(this.host) + (port !== null ? ':' + port : ''); }, // https://url.spec.whatwg.org/#dom-url-protocol getProtocol: function () { return this.scheme + ':'; }, setProtocol: function (protocol) { this.parse($toString(protocol) + ':', SCHEME_START); }, // https://url.spec.whatwg.org/#dom-url-username getUsername: function () { return this.username; }, setUsername: function (username) { var codePoints = arrayFrom($toString(username)); if (this.cannotHaveUsernamePasswordPort()) return; this.username = ''; for (var i = 0; i < codePoints.length; i++) { this.username += percentEncode(codePoints[i], userinfoPercentEncodeSet); } }, // https://url.spec.whatwg.org/#dom-url-password getPassword: function () { return this.password; }, setPassword: function (password) { var codePoints = arrayFrom($toString(password)); if (this.cannotHaveUsernamePasswordPort()) return; this.password = ''; for (var i = 0; i < codePoints.length; i++) { this.password += percentEncode(codePoints[i], userinfoPercentEncodeSet); } }, // https://url.spec.whatwg.org/#dom-url-host getHost: function () { var host = this.host; var port = this.port; return host === null ? '' : port === null ? serializeHost(host) : serializeHost(host) + ':' + port; }, setHost: function (host) { if (this.cannotBeABaseURL) return; this.parse(host, HOST); }, // https://url.spec.whatwg.org/#dom-url-hostname getHostname: function () { var host = this.host; return host === null ? '' : serializeHost(host); }, setHostname: function (hostname) { if (this.cannotBeABaseURL) return; this.parse(hostname, HOSTNAME); }, // https://url.spec.whatwg.org/#dom-url-port getPort: function () { var port = this.port; return port === null ? '' : $toString(port); }, setPort: function (port) { if (this.cannotHaveUsernamePasswordPort()) return; port = $toString(port); if (port == '') this.port = null; else this.parse(port, PORT); }, // https://url.spec.whatwg.org/#dom-url-pathname getPathname: function () { var path = this.path; return this.cannotBeABaseURL ? path[0] : path.length ? '/' + join$1(path, '/') : ''; }, setPathname: function (pathname) { if (this.cannotBeABaseURL) return; this.path = []; this.parse(pathname, PATH_START); }, // https://url.spec.whatwg.org/#dom-url-search getSearch: function () { var query = this.query; return query ? '?' + query : ''; }, setSearch: function (search) { search = $toString(search); if (search == '') { this.query = null; } else { if ('?' == charAt(search, 0)) search = stringSlice(search, 1); this.query = ''; this.parse(search, QUERY); } this.searchParams.update(); }, // https://url.spec.whatwg.org/#dom-url-searchparams getSearchParams: function () { return this.searchParams.facade; }, // https://url.spec.whatwg.org/#dom-url-hash getHash: function () { var fragment = this.fragment; return fragment ? '#' + fragment : ''; }, setHash: function (hash) { hash = $toString(hash); if (hash == '') { this.fragment = null; return; } if ('#' == charAt(hash, 0)) hash = stringSlice(hash, 1); this.fragment = ''; this.parse(hash, FRAGMENT); }, update: function () { this.query = this.searchParams.serialize() || null; } }; // `URL` constructor // https://url.spec.whatwg.org/#url-class var URLConstructor = function URL(url /* , base */) { var that = anInstance$2(this, URLPrototype); var base = arguments.length > 1 ? arguments[1] : undefined; var state = setInternalState$2(that, new URLState(url, false, base)); if (!DESCRIPTORS$3) { that.href = state.serialize(); that.origin = state.getOrigin(); that.protocol = state.getProtocol(); that.username = state.getUsername(); that.password = state.getPassword(); that.host = state.getHost(); that.hostname = state.getHostname(); that.port = state.getPort(); that.pathname = state.getPathname(); that.search = state.getSearch(); that.searchParams = state.getSearchParams(); that.hash = state.getHash(); } }; var URLPrototype = URLConstructor.prototype; var accessorDescriptor = function (getter, setter) { return { get: function () { return getInternalURLState(this)[getter](); }, set: setter && function (value) { return getInternalURLState(this)[setter](value); }, configurable: true, enumerable: true }; }; if (DESCRIPTORS$3) { defineProperties(URLPrototype, { // `URL.prototype.href` accessors pair // https://url.spec.whatwg.org/#dom-url-href href: accessorDescriptor('serialize', 'setHref'), // `URL.prototype.origin` getter // https://url.spec.whatwg.org/#dom-url-origin origin: accessorDescriptor('getOrigin'), // `URL.prototype.protocol` accessors pair // https://url.spec.whatwg.org/#dom-url-protocol protocol: accessorDescriptor('getProtocol', 'setProtocol'), // `URL.prototype.username` accessors pair // https://url.spec.whatwg.org/#dom-url-username username: accessorDescriptor('getUsername', 'setUsername'), // `URL.prototype.password` accessors pair // https://url.spec.whatwg.org/#dom-url-password password: accessorDescriptor('getPassword', 'setPassword'), // `URL.prototype.host` accessors pair // https://url.spec.whatwg.org/#dom-url-host host: accessorDescriptor('getHost', 'setHost'), // `URL.prototype.hostname` accessors pair // https://url.spec.whatwg.org/#dom-url-hostname hostname: accessorDescriptor('getHostname', 'setHostname'), // `URL.prototype.port` accessors pair // https://url.spec.whatwg.org/#dom-url-port port: accessorDescriptor('getPort', 'setPort'), // `URL.prototype.pathname` accessors pair // https://url.spec.whatwg.org/#dom-url-pathname pathname: accessorDescriptor('getPathname', 'setPathname'), // `URL.prototype.search` accessors pair // https://url.spec.whatwg.org/#dom-url-search search: accessorDescriptor('getSearch', 'setSearch'), // `URL.prototype.searchParams` getter // https://url.spec.whatwg.org/#dom-url-searchparams searchParams: accessorDescriptor('getSearchParams'), // `URL.prototype.hash` accessors pair // https://url.spec.whatwg.org/#dom-url-hash hash: accessorDescriptor('getHash', 'setHash') }); } // `URL.prototype.toJSON` method // https://url.spec.whatwg.org/#dom-url-tojson redefine$1(URLPrototype, 'toJSON', function toJSON() { return getInternalURLState(this).serialize(); }, { enumerable: true }); // `URL.prototype.toString` method // https://url.spec.whatwg.org/#URL-stringification-behavior redefine$1(URLPrototype, 'toString', function toString() { return getInternalURLState(this).serialize(); }, { enumerable: true }); if (NativeURL) { var nativeCreateObjectURL = NativeURL.createObjectURL; var nativeRevokeObjectURL = NativeURL.revokeObjectURL; // `URL.createObjectURL` method // https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL if (nativeCreateObjectURL) redefine$1(URLConstructor, 'createObjectURL', bind$1(nativeCreateObjectURL, NativeURL)); // `URL.revokeObjectURL` method // https://developer.mozilla.org/en-US/docs/Web/API/URL/revokeObjectURL if (nativeRevokeObjectURL) redefine$1(URLConstructor, 'revokeObjectURL', bind$1(nativeRevokeObjectURL, NativeURL)); } setToStringTag$1(URLConstructor, 'URL'); $$1({ global: true, forced: !USE_NATIVE_URL, sham: !DESCRIPTORS$3 }, { URL: URLConstructor }); var typedArrayConstructor = {exports: {}}; // eslint-disable-next-line es/no-typed-arrays -- safe var arrayBufferNative = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined'; var NATIVE_ARRAY_BUFFER$1 = arrayBufferNative; var DESCRIPTORS$2 = descriptors; var global$e = global$1e; var isCallable = isCallable$q; var isObject$4 = isObject$s; var hasOwn$2 = hasOwnProperty_1; var classof$1 = classof$d; var tryToString = tryToString$5; var createNonEnumerableProperty$2 = createNonEnumerableProperty$a; var redefine = redefine$e.exports; var defineProperty$1 = objectDefineProperty.f; var isPrototypeOf$1 = objectIsPrototypeOf; var getPrototypeOf$1 = objectGetPrototypeOf$1; var setPrototypeOf$2 = objectSetPrototypeOf; var wellKnownSymbol$1 = wellKnownSymbol$s; var uid$2 = uid$7; var Int8Array$3 = global$e.Int8Array; var Int8ArrayPrototype = Int8Array$3 && Int8Array$3.prototype; var Uint8ClampedArray = global$e.Uint8ClampedArray; var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype; var TypedArray$1 = Int8Array$3 && getPrototypeOf$1(Int8Array$3); var TypedArrayPrototype$2 = Int8ArrayPrototype && getPrototypeOf$1(Int8ArrayPrototype); var ObjectPrototype$1 = Object.prototype; var TypeError$2 = global$e.TypeError; var TO_STRING_TAG = wellKnownSymbol$1('toStringTag'); var TYPED_ARRAY_TAG$1 = uid$2('TYPED_ARRAY_TAG'); var TYPED_ARRAY_CONSTRUCTOR$2 = uid$2('TYPED_ARRAY_CONSTRUCTOR'); // Fixing native typed arrays in Opera Presto crashes the browser, see #595 var NATIVE_ARRAY_BUFFER_VIEWS$2 = NATIVE_ARRAY_BUFFER$1 && !!setPrototypeOf$2 && classof$1(global$e.opera) !== 'Opera'; var TYPED_ARRAY_TAG_REQUIRED = false; var NAME, Constructor, Prototype; var TypedArrayConstructorsList = { Int8Array: 1, Uint8Array: 1, Uint8ClampedArray: 1, Int16Array: 2, Uint16Array: 2, Int32Array: 4, Uint32Array: 4, Float32Array: 4, Float64Array: 8 }; var BigIntArrayConstructorsList = { BigInt64Array: 8, BigUint64Array: 8 }; var isView = function isView(it) { if (!isObject$4(it)) return false; var klass = classof$1(it); return klass === 'DataView' || hasOwn$2(TypedArrayConstructorsList, klass) || hasOwn$2(BigIntArrayConstructorsList, klass); }; var isTypedArray$1 = function (it) { if (!isObject$4(it)) return false; var klass = classof$1(it); return hasOwn$2(TypedArrayConstructorsList, klass) || hasOwn$2(BigIntArrayConstructorsList, klass); }; var aTypedArray$n = function (it) { if (isTypedArray$1(it)) return it; throw TypeError$2('Target is not a typed array'); }; var aTypedArrayConstructor$3 = function (C) { if (isCallable(C) && (!setPrototypeOf$2 || isPrototypeOf$1(TypedArray$1, C))) return C; throw TypeError$2(tryToString(C) + ' is not a typed array constructor'); }; var exportTypedArrayMethod$o = function (KEY, property, forced, options) { if (!DESCRIPTORS$2) return; if (forced) for (var ARRAY in TypedArrayConstructorsList) { var TypedArrayConstructor = global$e[ARRAY]; if (TypedArrayConstructor && hasOwn$2(TypedArrayConstructor.prototype, KEY)) try { delete TypedArrayConstructor.prototype[KEY]; } catch (error) { /* empty */ } } if (!TypedArrayPrototype$2[KEY] || forced) { redefine(TypedArrayPrototype$2, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS$2 && Int8ArrayPrototype[KEY] || property, options); } }; var exportTypedArrayStaticMethod = function (KEY, property, forced) { var ARRAY, TypedArrayConstructor; if (!DESCRIPTORS$2) return; if (setPrototypeOf$2) { if (forced) for (ARRAY in TypedArrayConstructorsList) { TypedArrayConstructor = global$e[ARRAY]; if (TypedArrayConstructor && hasOwn$2(TypedArrayConstructor, KEY)) try { delete TypedArrayConstructor[KEY]; } catch (error) { /* empty */ } } if (!TypedArray$1[KEY] || forced) { // V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable try { return redefine(TypedArray$1, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS$2 && TypedArray$1[KEY] || property); } catch (error) { /* empty */ } } else return; } for (ARRAY in TypedArrayConstructorsList) { TypedArrayConstructor = global$e[ARRAY]; if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) { redefine(TypedArrayConstructor, KEY, property); } } }; for (NAME in TypedArrayConstructorsList) { Constructor = global$e[NAME]; Prototype = Constructor && Constructor.prototype; if (Prototype) createNonEnumerableProperty$2(Prototype, TYPED_ARRAY_CONSTRUCTOR$2, Constructor); else NATIVE_ARRAY_BUFFER_VIEWS$2 = false; } for (NAME in BigIntArrayConstructorsList) { Constructor = global$e[NAME]; Prototype = Constructor && Constructor.prototype; if (Prototype) createNonEnumerableProperty$2(Prototype, TYPED_ARRAY_CONSTRUCTOR$2, Constructor); } // WebKit bug - typed arrays constructors prototype is Object.prototype if (!NATIVE_ARRAY_BUFFER_VIEWS$2 || !isCallable(TypedArray$1) || TypedArray$1 === Function.prototype) { // eslint-disable-next-line no-shadow -- safe TypedArray$1 = function TypedArray() { throw TypeError$2('Incorrect invocation'); }; if (NATIVE_ARRAY_BUFFER_VIEWS$2) for (NAME in TypedArrayConstructorsList) { if (global$e[NAME]) setPrototypeOf$2(global$e[NAME], TypedArray$1); } } if (!NATIVE_ARRAY_BUFFER_VIEWS$2 || !TypedArrayPrototype$2 || TypedArrayPrototype$2 === ObjectPrototype$1) { TypedArrayPrototype$2 = TypedArray$1.prototype; if (NATIVE_ARRAY_BUFFER_VIEWS$2) for (NAME in TypedArrayConstructorsList) { if (global$e[NAME]) setPrototypeOf$2(global$e[NAME].prototype, TypedArrayPrototype$2); } } // WebKit bug - one more object in Uint8ClampedArray prototype chain if (NATIVE_ARRAY_BUFFER_VIEWS$2 && getPrototypeOf$1(Uint8ClampedArrayPrototype) !== TypedArrayPrototype$2) { setPrototypeOf$2(Uint8ClampedArrayPrototype, TypedArrayPrototype$2); } if (DESCRIPTORS$2 && !hasOwn$2(TypedArrayPrototype$2, TO_STRING_TAG)) { TYPED_ARRAY_TAG_REQUIRED = true; defineProperty$1(TypedArrayPrototype$2, TO_STRING_TAG, { get: function () { return isObject$4(this) ? this[TYPED_ARRAY_TAG$1] : undefined; } }); for (NAME in TypedArrayConstructorsList) if (global$e[NAME]) { createNonEnumerableProperty$2(global$e[NAME], TYPED_ARRAY_TAG$1, NAME); } } var arrayBufferViewCore = { NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS$2, TYPED_ARRAY_CONSTRUCTOR: TYPED_ARRAY_CONSTRUCTOR$2, TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG$1, aTypedArray: aTypedArray$n, aTypedArrayConstructor: aTypedArrayConstructor$3, exportTypedArrayMethod: exportTypedArrayMethod$o, exportTypedArrayStaticMethod: exportTypedArrayStaticMethod, isView: isView, isTypedArray: isTypedArray$1, TypedArray: TypedArray$1, TypedArrayPrototype: TypedArrayPrototype$2 }; /* eslint-disable no-new -- required for testing */ var global$d = global$1e; var fails$7 = fails$I; var checkCorrectnessOfIteration = checkCorrectnessOfIteration$4; var NATIVE_ARRAY_BUFFER_VIEWS$1 = arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS; var ArrayBuffer$2 = global$d.ArrayBuffer; var Int8Array$2 = global$d.Int8Array; var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fails$7(function () { Int8Array$2(1); }) || !fails$7(function () { new Int8Array$2(-1); }) || !checkCorrectnessOfIteration(function (iterable) { new Int8Array$2(); new Int8Array$2(null); new Int8Array$2(1.5); new Int8Array$2(iterable); }, true) || fails$7(function () { // Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill return new Int8Array$2(new ArrayBuffer$2(2), 1, undefined).length !== 1; }); var global$c = global$1e; var toIntegerOrInfinity$4 = toIntegerOrInfinity$c; var toLength$3 = toLength$a; var RangeError$5 = global$c.RangeError; // `ToIndex` abstract operation // https://tc39.es/ecma262/#sec-toindex var toIndex$2 = function (it) { if (it === undefined) return 0; var number = toIntegerOrInfinity$4(it); var length = toLength$3(number); if (number !== length) throw RangeError$5('Wrong length or index'); return length; }; // IEEE754 conversions based on https://github.com/feross/ieee754 var global$b = global$1e; var Array$3 = global$b.Array; var abs = Math.abs; var pow = Math.pow; var floor$2 = Math.floor; var log = Math.log; var LN2 = Math.LN2; var pack = function (number, mantissaLength, bytes) { var buffer = Array$3(bytes); var exponentLength = bytes * 8 - mantissaLength - 1; var eMax = (1 << exponentLength) - 1; var eBias = eMax >> 1; var rt = mantissaLength === 23 ? pow(2, -24) - pow(2, -77) : 0; var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0; var index = 0; var exponent, mantissa, c; number = abs(number); // eslint-disable-next-line no-self-compare -- NaN check if (number != number || number === Infinity) { // eslint-disable-next-line no-self-compare -- NaN check mantissa = number != number ? 1 : 0; exponent = eMax; } else { exponent = floor$2(log(number) / LN2); c = pow(2, -exponent); if (number * c < 1) { exponent--; c *= 2; } if (exponent + eBias >= 1) { number += rt / c; } else { number += rt * pow(2, 1 - eBias); } if (number * c >= 2) { exponent++; c /= 2; } if (exponent + eBias >= eMax) { mantissa = 0; exponent = eMax; } else if (exponent + eBias >= 1) { mantissa = (number * c - 1) * pow(2, mantissaLength); exponent = exponent + eBias; } else { mantissa = number * pow(2, eBias - 1) * pow(2, mantissaLength); exponent = 0; } } while (mantissaLength >= 8) { buffer[index++] = mantissa & 255; mantissa /= 256; mantissaLength -= 8; } exponent = exponent << mantissaLength | mantissa; exponentLength += mantissaLength; while (exponentLength > 0) { buffer[index++] = exponent & 255; exponent /= 256; exponentLength -= 8; } buffer[--index] |= sign * 128; return buffer; }; var unpack = function (buffer, mantissaLength) { var bytes = buffer.length; var exponentLength = bytes * 8 - mantissaLength - 1; var eMax = (1 << exponentLength) - 1; var eBias = eMax >> 1; var nBits = exponentLength - 7; var index = bytes - 1; var sign = buffer[index--]; var exponent = sign & 127; var mantissa; sign >>= 7; while (nBits > 0) { exponent = exponent * 256 + buffer[index--]; nBits -= 8; } mantissa = exponent & (1 << -nBits) - 1; exponent >>= -nBits; nBits += mantissaLength; while (nBits > 0) { mantissa = mantissa * 256 + buffer[index--]; nBits -= 8; } if (exponent === 0) { exponent = 1 - eBias; } else if (exponent === eMax) { return mantissa ? NaN : sign ? -Infinity : Infinity; } else { mantissa = mantissa + pow(2, mantissaLength); exponent = exponent - eBias; } return (sign ? -1 : 1) * mantissa * pow(2, exponent - mantissaLength); }; var ieee754 = { pack: pack, unpack: unpack }; var toObject$4 = toObject$g; var toAbsoluteIndex$2 = toAbsoluteIndex$7; var lengthOfArrayLike$7 = lengthOfArrayLike$h; // `Array.prototype.fill` method implementation // https://tc39.es/ecma262/#sec-array.prototype.fill var arrayFill$1 = function fill(value /* , start = 0, end = @length */) { var O = toObject$4(this); var length = lengthOfArrayLike$7(O); var argumentsLength = arguments.length; var index = toAbsoluteIndex$2(argumentsLength > 1 ? arguments[1] : undefined, length); var end = argumentsLength > 2 ? arguments[2] : undefined; var endPos = end === undefined ? length : toAbsoluteIndex$2(end, length); while (endPos > index) O[index++] = value; return O; }; var global$a = global$1e; var uncurryThis$5 = functionUncurryThis; var DESCRIPTORS$1 = descriptors; var NATIVE_ARRAY_BUFFER = arrayBufferNative; var FunctionName = functionName; var createNonEnumerableProperty$1 = createNonEnumerableProperty$a; var redefineAll = redefineAll$6; var fails$6 = fails$I; var anInstance$1 = anInstance$8; var toIntegerOrInfinity$3 = toIntegerOrInfinity$c; var toLength$2 = toLength$a; var toIndex$1 = toIndex$2; var IEEE754 = ieee754; var getPrototypeOf = objectGetPrototypeOf$1; var setPrototypeOf$1 = objectSetPrototypeOf; var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f; var defineProperty = objectDefineProperty.f; var arrayFill = arrayFill$1; var arraySlice$2 = arraySliceSimple; var setToStringTag = setToStringTag$9; var InternalStateModule$1 = internalState; var PROPER_FUNCTION_NAME = FunctionName.PROPER; var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE; var getInternalState$1 = InternalStateModule$1.get; var setInternalState$1 = InternalStateModule$1.set; var ARRAY_BUFFER = 'ArrayBuffer'; var DATA_VIEW = 'DataView'; var PROTOTYPE = 'prototype'; var WRONG_LENGTH$1 = 'Wrong length'; var WRONG_INDEX = 'Wrong index'; var NativeArrayBuffer = global$a[ARRAY_BUFFER]; var $ArrayBuffer = NativeArrayBuffer; var ArrayBufferPrototype$1 = $ArrayBuffer && $ArrayBuffer[PROTOTYPE]; var $DataView = global$a[DATA_VIEW]; var DataViewPrototype = $DataView && $DataView[PROTOTYPE]; var ObjectPrototype = Object.prototype; var Array$2 = global$a.Array; var RangeError$4 = global$a.RangeError; var fill = uncurryThis$5(arrayFill); var reverse = uncurryThis$5([].reverse); var packIEEE754 = IEEE754.pack; var unpackIEEE754 = IEEE754.unpack; var packInt8 = function (number) { return [number & 0xFF]; }; var packInt16 = function (number) { return [number & 0xFF, number >> 8 & 0xFF]; }; var packInt32 = function (number) { return [number & 0xFF, number >> 8 & 0xFF, number >> 16 & 0xFF, number >> 24 & 0xFF]; }; var unpackInt32 = function (buffer) { return buffer[3] << 24 | buffer[2] << 16 | buffer[1] << 8 | buffer[0]; }; var packFloat32 = function (number) { return packIEEE754(number, 23, 4); }; var packFloat64 = function (number) { return packIEEE754(number, 52, 8); }; var addGetter$1 = function (Constructor, key) { defineProperty(Constructor[PROTOTYPE], key, { get: function () { return getInternalState$1(this)[key]; } }); }; var get$2 = function (view, count, index, isLittleEndian) { var intIndex = toIndex$1(index); var store = getInternalState$1(view); if (intIndex + count > store.byteLength) throw RangeError$4(WRONG_INDEX); var bytes = getInternalState$1(store.buffer).bytes; var start = intIndex + store.byteOffset; var pack = arraySlice$2(bytes, start, start + count); return isLittleEndian ? pack : reverse(pack); }; var set$2 = function (view, count, index, conversion, value, isLittleEndian) { var intIndex = toIndex$1(index); var store = getInternalState$1(view); if (intIndex + count > store.byteLength) throw RangeError$4(WRONG_INDEX); var bytes = getInternalState$1(store.buffer).bytes; var start = intIndex + store.byteOffset; var pack = conversion(+value); for (var i = 0; i < count; i++) bytes[start + i] = pack[isLittleEndian ? i : count - i - 1]; }; if (!NATIVE_ARRAY_BUFFER) { $ArrayBuffer = function ArrayBuffer(length) { anInstance$1(this, ArrayBufferPrototype$1); var byteLength = toIndex$1(length); setInternalState$1(this, { bytes: fill(Array$2(byteLength), 0), byteLength: byteLength }); if (!DESCRIPTORS$1) this.byteLength = byteLength; }; ArrayBufferPrototype$1 = $ArrayBuffer[PROTOTYPE]; $DataView = function DataView(buffer, byteOffset, byteLength) { anInstance$1(this, DataViewPrototype); anInstance$1(buffer, ArrayBufferPrototype$1); var bufferLength = getInternalState$1(buffer).byteLength; var offset = toIntegerOrInfinity$3(byteOffset); if (offset < 0 || offset > bufferLength) throw RangeError$4('Wrong offset'); byteLength = byteLength === undefined ? bufferLength - offset : toLength$2(byteLength); if (offset + byteLength > bufferLength) throw RangeError$4(WRONG_LENGTH$1); setInternalState$1(this, { buffer: buffer, byteLength: byteLength, byteOffset: offset }); if (!DESCRIPTORS$1) { this.buffer = buffer; this.byteLength = byteLength; this.byteOffset = offset; } }; DataViewPrototype = $DataView[PROTOTYPE]; if (DESCRIPTORS$1) { addGetter$1($ArrayBuffer, 'byteLength'); addGetter$1($DataView, 'buffer'); addGetter$1($DataView, 'byteLength'); addGetter$1($DataView, 'byteOffset'); } redefineAll(DataViewPrototype, { getInt8: function getInt8(byteOffset) { return get$2(this, 1, byteOffset)[0] << 24 >> 24; }, getUint8: function getUint8(byteOffset) { return get$2(this, 1, byteOffset)[0]; }, getInt16: function getInt16(byteOffset /* , littleEndian */) { var bytes = get$2(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined); return (bytes[1] << 8 | bytes[0]) << 16 >> 16; }, getUint16: function getUint16(byteOffset /* , littleEndian */) { var bytes = get$2(this, 2, byteOffset, arguments.length > 1 ? arguments[1] : undefined); return bytes[1] << 8 | bytes[0]; }, getInt32: function getInt32(byteOffset /* , littleEndian */) { return unpackInt32(get$2(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined)); }, getUint32: function getUint32(byteOffset /* , littleEndian */) { return unpackInt32(get$2(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined)) >>> 0; }, getFloat32: function getFloat32(byteOffset /* , littleEndian */) { return unpackIEEE754(get$2(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 23); }, getFloat64: function getFloat64(byteOffset /* , littleEndian */) { return unpackIEEE754(get$2(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : undefined), 52); }, setInt8: function setInt8(byteOffset, value) { set$2(this, 1, byteOffset, packInt8, value); }, setUint8: function setUint8(byteOffset, value) { set$2(this, 1, byteOffset, packInt8, value); }, setInt16: function setInt16(byteOffset, value /* , littleEndian */) { set$2(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined); }, setUint16: function setUint16(byteOffset, value /* , littleEndian */) { set$2(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : undefined); }, setInt32: function setInt32(byteOffset, value /* , littleEndian */) { set$2(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined); }, setUint32: function setUint32(byteOffset, value /* , littleEndian */) { set$2(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : undefined); }, setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) { set$2(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : undefined); }, setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) { set$2(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : undefined); } }); } else { var INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME && NativeArrayBuffer.name !== ARRAY_BUFFER; /* eslint-disable no-new -- required for testing */ if (!fails$6(function () { NativeArrayBuffer(1); }) || !fails$6(function () { new NativeArrayBuffer(-1); }) || fails$6(function () { new NativeArrayBuffer(); new NativeArrayBuffer(1.5); new NativeArrayBuffer(NaN); return INCORRECT_ARRAY_BUFFER_NAME && !CONFIGURABLE_FUNCTION_NAME; })) { /* eslint-enable no-new -- required for testing */ $ArrayBuffer = function ArrayBuffer(length) { anInstance$1(this, ArrayBufferPrototype$1); return new NativeArrayBuffer(toIndex$1(length)); }; $ArrayBuffer[PROTOTYPE] = ArrayBufferPrototype$1; for (var keys = getOwnPropertyNames$1(NativeArrayBuffer), j = 0, key; keys.length > j;) { if (!((key = keys[j++]) in $ArrayBuffer)) { createNonEnumerableProperty$1($ArrayBuffer, key, NativeArrayBuffer[key]); } } ArrayBufferPrototype$1.constructor = $ArrayBuffer; } else if (INCORRECT_ARRAY_BUFFER_NAME && CONFIGURABLE_FUNCTION_NAME) { createNonEnumerableProperty$1(NativeArrayBuffer, 'name', ARRAY_BUFFER); } // WebKit bug - the same parent prototype for typed arrays and data view if (setPrototypeOf$1 && getPrototypeOf(DataViewPrototype) !== ObjectPrototype) { setPrototypeOf$1(DataViewPrototype, ObjectPrototype); } // iOS Safari 7.x bug var testView = new $DataView(new $ArrayBuffer(2)); var $setInt8 = uncurryThis$5(DataViewPrototype.setInt8); testView.setInt8(0, 2147483648); testView.setInt8(1, 2147483649); if (testView.getInt8(0) || !testView.getInt8(1)) redefineAll(DataViewPrototype, { setInt8: function setInt8(byteOffset, value) { $setInt8(this, byteOffset, value << 24 >> 24); }, setUint8: function setUint8(byteOffset, value) { $setInt8(this, byteOffset, value << 24 >> 24); } }, { unsafe: true }); } setToStringTag($ArrayBuffer, ARRAY_BUFFER); setToStringTag($DataView, DATA_VIEW); var arrayBuffer = { ArrayBuffer: $ArrayBuffer, DataView: $DataView }; var isObject$3 = isObject$s; var floor$1 = Math.floor; // `IsIntegralNumber` abstract operation // https://tc39.es/ecma262/#sec-isintegralnumber // eslint-disable-next-line es/no-number-isinteger -- safe var isIntegralNumber$1 = Number.isInteger || function isInteger(it) { return !isObject$3(it) && isFinite(it) && floor$1(it) === it; }; var global$9 = global$1e; var toIntegerOrInfinity$2 = toIntegerOrInfinity$c; var RangeError$3 = global$9.RangeError; var toPositiveInteger$1 = function (it) { var result = toIntegerOrInfinity$2(it); if (result < 0) throw RangeError$3("The argument can't be less than 0"); return result; }; var global$8 = global$1e; var toPositiveInteger = toPositiveInteger$1; var RangeError$2 = global$8.RangeError; var toOffset$2 = function (it, BYTES) { var offset = toPositiveInteger(it); if (offset % BYTES) throw RangeError$2('Wrong offset'); return offset; }; var bind = functionBindContext; var call$2 = functionCall; var aConstructor = aConstructor$2; var toObject$3 = toObject$g; var lengthOfArrayLike$6 = lengthOfArrayLike$h; var getIterator = getIterator$4; var getIteratorMethod = getIteratorMethod$5; var isArrayIteratorMethod = isArrayIteratorMethod$3; var aTypedArrayConstructor$2 = arrayBufferViewCore.aTypedArrayConstructor; var typedArrayFrom$1 = function from(source /* , mapfn, thisArg */) { var C = aConstructor(this); var O = toObject$3(source); var argumentsLength = arguments.length; var mapfn = argumentsLength > 1 ? arguments[1] : undefined; var mapping = mapfn !== undefined; var iteratorMethod = getIteratorMethod(O); var i, length, result, step, iterator, next; if (iteratorMethod && !isArrayIteratorMethod(iteratorMethod)) { iterator = getIterator(O, iteratorMethod); next = iterator.next; O = []; while (!(step = call$2(next, iterator)).done) { O.push(step.value); } } if (mapping && argumentsLength > 2) { mapfn = bind(mapfn, arguments[2]); } length = lengthOfArrayLike$6(O); result = new (aTypedArrayConstructor$2(C))(length); for (i = 0; length > i; i++) { result[i] = mapping ? mapfn(O[i], i) : O[i]; } return result; }; var $ = _export; var global$7 = global$1e; var call$1 = functionCall; var DESCRIPTORS = descriptors; var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = typedArrayConstructorsRequireWrappers; var ArrayBufferViewCore$o = arrayBufferViewCore; var ArrayBufferModule = arrayBuffer; var anInstance = anInstance$8; var createPropertyDescriptor = createPropertyDescriptor$8; var createNonEnumerableProperty = createNonEnumerableProperty$a; var isIntegralNumber = isIntegralNumber$1; var toLength$1 = toLength$a; var toIndex = toIndex$2; var toOffset$1 = toOffset$2; var toPropertyKey = toPropertyKey$5; var hasOwn$1 = hasOwnProperty_1; var classof = classof$d; var isObject$2 = isObject$s; var isSymbol$1 = isSymbol$6; var create = objectCreate; var isPrototypeOf = objectIsPrototypeOf; var setPrototypeOf = objectSetPrototypeOf; var getOwnPropertyNames = objectGetOwnPropertyNames.f; var typedArrayFrom = typedArrayFrom$1; var forEach = arrayIteration.forEach; var setSpecies = setSpecies$3; var definePropertyModule = objectDefineProperty; var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor; var InternalStateModule = internalState; var inheritIfRequired = inheritIfRequired$3; var getInternalState = InternalStateModule.get; var setInternalState = InternalStateModule.set; var nativeDefineProperty = definePropertyModule.f; var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f; var round = Math.round; var RangeError$1 = global$7.RangeError; var ArrayBuffer$1 = ArrayBufferModule.ArrayBuffer; var ArrayBufferPrototype = ArrayBuffer$1.prototype; var DataView$1 = ArrayBufferModule.DataView; var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore$o.NATIVE_ARRAY_BUFFER_VIEWS; var TYPED_ARRAY_CONSTRUCTOR$1 = ArrayBufferViewCore$o.TYPED_ARRAY_CONSTRUCTOR; var TYPED_ARRAY_TAG = ArrayBufferViewCore$o.TYPED_ARRAY_TAG; var TypedArray = ArrayBufferViewCore$o.TypedArray; var TypedArrayPrototype$1 = ArrayBufferViewCore$o.TypedArrayPrototype; var aTypedArrayConstructor$1 = ArrayBufferViewCore$o.aTypedArrayConstructor; var isTypedArray = ArrayBufferViewCore$o.isTypedArray; var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT'; var WRONG_LENGTH = 'Wrong length'; var fromList = function (C, list) { aTypedArrayConstructor$1(C); var index = 0; var length = list.length; var result = new C(length); while (length > index) result[index] = list[index++]; return result; }; var addGetter = function (it, key) { nativeDefineProperty(it, key, { get: function () { return getInternalState(this)[key]; } }); }; var isArrayBuffer = function (it) { var klass; return isPrototypeOf(ArrayBufferPrototype, it) || (klass = classof(it)) == 'ArrayBuffer' || klass == 'SharedArrayBuffer'; }; var isTypedArrayIndex = function (target, key) { return isTypedArray(target) && !isSymbol$1(key) && key in target && isIntegralNumber(+key) && key >= 0; }; var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) { key = toPropertyKey(key); return isTypedArrayIndex(target, key) ? createPropertyDescriptor(2, target[key]) : nativeGetOwnPropertyDescriptor(target, key); }; var wrappedDefineProperty = function defineProperty(target, key, descriptor) { key = toPropertyKey(key); if (isTypedArrayIndex(target, key) && isObject$2(descriptor) && hasOwn$1(descriptor, 'value') && !hasOwn$1(descriptor, 'get') && !hasOwn$1(descriptor, 'set') // TODO: add validation descriptor w/o calling accessors && !descriptor.configurable && (!hasOwn$1(descriptor, 'writable') || descriptor.writable) && (!hasOwn$1(descriptor, 'enumerable') || descriptor.enumerable) ) { target[key] = descriptor.value; return target; } return nativeDefineProperty(target, key, descriptor); }; if (DESCRIPTORS) { if (!NATIVE_ARRAY_BUFFER_VIEWS) { getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor; definePropertyModule.f = wrappedDefineProperty; addGetter(TypedArrayPrototype$1, 'buffer'); addGetter(TypedArrayPrototype$1, 'byteOffset'); addGetter(TypedArrayPrototype$1, 'byteLength'); addGetter(TypedArrayPrototype$1, 'length'); } $({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, { getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor, defineProperty: wrappedDefineProperty }); typedArrayConstructor.exports = function (TYPE, wrapper, CLAMPED) { var BYTES = TYPE.match(/\d+$/)[0] / 8; var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array'; var GETTER = 'get' + TYPE; var SETTER = 'set' + TYPE; var NativeTypedArrayConstructor = global$7[CONSTRUCTOR_NAME]; var TypedArrayConstructor = NativeTypedArrayConstructor; var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype; var exported = {}; var getter = function (that, index) { var data = getInternalState(that); return data.view[GETTER](index * BYTES + data.byteOffset, true); }; var setter = function (that, index, value) { var data = getInternalState(that); if (CLAMPED) value = (value = round(value)) < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF; data.view[SETTER](index * BYTES + data.byteOffset, value, true); }; var addElement = function (that, index) { nativeDefineProperty(that, index, { get: function () { return getter(this, index); }, set: function (value) { return setter(this, index, value); }, enumerable: true }); }; if (!NATIVE_ARRAY_BUFFER_VIEWS) { TypedArrayConstructor = wrapper(function (that, data, offset, $length) { anInstance(that, TypedArrayConstructorPrototype); var index = 0; var byteOffset = 0; var buffer, byteLength, length; if (!isObject$2(data)) { length = toIndex(data); byteLength = length * BYTES; buffer = new ArrayBuffer$1(byteLength); } else if (isArrayBuffer(data)) { buffer = data; byteOffset = toOffset$1(offset, BYTES); var $len = data.byteLength; if ($length === undefined) { if ($len % BYTES) throw RangeError$1(WRONG_LENGTH); byteLength = $len - byteOffset; if (byteLength < 0) throw RangeError$1(WRONG_LENGTH); } else { byteLength = toLength$1($length) * BYTES; if (byteLength + byteOffset > $len) throw RangeError$1(WRONG_LENGTH); } length = byteLength / BYTES; } else if (isTypedArray(data)) { return fromList(TypedArrayConstructor, data); } else { return call$1(typedArrayFrom, TypedArrayConstructor, data); } setInternalState(that, { buffer: buffer, byteOffset: byteOffset, byteLength: byteLength, length: length, view: new DataView$1(buffer) }); while (index < length) addElement(that, index++); }); if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray); TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype$1); } else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) { TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) { anInstance(dummy, TypedArrayConstructorPrototype); return inheritIfRequired(function () { if (!isObject$2(data)) return new NativeTypedArrayConstructor(toIndex(data)); if (isArrayBuffer(data)) return $length !== undefined ? new NativeTypedArrayConstructor(data, toOffset$1(typedArrayOffset, BYTES), $length) : typedArrayOffset !== undefined ? new NativeTypedArrayConstructor(data, toOffset$1(typedArrayOffset, BYTES)) : new NativeTypedArrayConstructor(data); if (isTypedArray(data)) return fromList(TypedArrayConstructor, data); return call$1(typedArrayFrom, TypedArrayConstructor, data); }(), dummy, TypedArrayConstructor); }); if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray); forEach(getOwnPropertyNames(NativeTypedArrayConstructor), function (key) { if (!(key in TypedArrayConstructor)) { createNonEnumerableProperty(TypedArrayConstructor, key, NativeTypedArrayConstructor[key]); } }); TypedArrayConstructor.prototype = TypedArrayConstructorPrototype; } if (TypedArrayConstructorPrototype.constructor !== TypedArrayConstructor) { createNonEnumerableProperty(TypedArrayConstructorPrototype, 'constructor', TypedArrayConstructor); } createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_CONSTRUCTOR$1, TypedArrayConstructor); if (TYPED_ARRAY_TAG) { createNonEnumerableProperty(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME); } exported[CONSTRUCTOR_NAME] = TypedArrayConstructor; $({ global: true, forced: TypedArrayConstructor != NativeTypedArrayConstructor, sham: !NATIVE_ARRAY_BUFFER_VIEWS }, exported); if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) { createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES); } if (!(BYTES_PER_ELEMENT in TypedArrayConstructorPrototype)) { createNonEnumerableProperty(TypedArrayConstructorPrototype, BYTES_PER_ELEMENT, BYTES); } setSpecies(CONSTRUCTOR_NAME); }; } else typedArrayConstructor.exports = function () { /* empty */ }; var createTypedArrayConstructor = typedArrayConstructor.exports; // `Uint8Array` constructor // https://tc39.es/ecma262/#sec-typedarray-objects createTypedArrayConstructor('Uint8', function (init) { return function Uint8Array(data, byteOffset, length) { return init(this, data, byteOffset, length); }; }); var ArrayBufferViewCore$n = arrayBufferViewCore; var lengthOfArrayLike$5 = lengthOfArrayLike$h; var toIntegerOrInfinity$1 = toIntegerOrInfinity$c; var aTypedArray$m = ArrayBufferViewCore$n.aTypedArray; var exportTypedArrayMethod$n = ArrayBufferViewCore$n.exportTypedArrayMethod; // `%TypedArray%.prototype.at` method // https://github.com/tc39/proposal-relative-indexing-method exportTypedArrayMethod$n('at', function at(index) { var O = aTypedArray$m(this); var len = lengthOfArrayLike$5(O); var relativeIndex = toIntegerOrInfinity$1(index); var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex; return (k < 0 || k >= len) ? undefined : O[k]; }); var toObject$2 = toObject$g; var toAbsoluteIndex$1 = toAbsoluteIndex$7; var lengthOfArrayLike$4 = lengthOfArrayLike$h; var min$1 = Math.min; // `Array.prototype.copyWithin` method implementation // https://tc39.es/ecma262/#sec-array.prototype.copywithin // eslint-disable-next-line es/no-array-prototype-copywithin -- safe var arrayCopyWithin = [].copyWithin || function copyWithin(target /* = 0 */, start /* = 0, end = @length */) { var O = toObject$2(this); var len = lengthOfArrayLike$4(O); var to = toAbsoluteIndex$1(target, len); var from = toAbsoluteIndex$1(start, len); var end = arguments.length > 2 ? arguments[2] : undefined; var count = min$1((end === undefined ? len : toAbsoluteIndex$1(end, len)) - from, len - to); var inc = 1; if (from < to && to < from + count) { inc = -1; from += count - 1; to += count - 1; } while (count-- > 0) { if (from in O) O[to] = O[from]; else delete O[to]; to += inc; from += inc; } return O; }; var uncurryThis$4 = functionUncurryThis; var ArrayBufferViewCore$m = arrayBufferViewCore; var $ArrayCopyWithin = arrayCopyWithin; var u$ArrayCopyWithin = uncurryThis$4($ArrayCopyWithin); var aTypedArray$l = ArrayBufferViewCore$m.aTypedArray; var exportTypedArrayMethod$m = ArrayBufferViewCore$m.exportTypedArrayMethod; // `%TypedArray%.prototype.copyWithin` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.copywithin exportTypedArrayMethod$m('copyWithin', function copyWithin(target, start /* , end */) { return u$ArrayCopyWithin(aTypedArray$l(this), target, start, arguments.length > 2 ? arguments[2] : undefined); }); var ArrayBufferViewCore$l = arrayBufferViewCore; var $every = arrayIteration.every; var aTypedArray$k = ArrayBufferViewCore$l.aTypedArray; var exportTypedArrayMethod$l = ArrayBufferViewCore$l.exportTypedArrayMethod; // `%TypedArray%.prototype.every` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.every exportTypedArrayMethod$l('every', function every(callbackfn /* , thisArg */) { return $every(aTypedArray$k(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }); var ArrayBufferViewCore$k = arrayBufferViewCore; var call = functionCall; var $fill = arrayFill$1; var aTypedArray$j = ArrayBufferViewCore$k.aTypedArray; var exportTypedArrayMethod$k = ArrayBufferViewCore$k.exportTypedArrayMethod; // `%TypedArray%.prototype.fill` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.fill exportTypedArrayMethod$k('fill', function fill(value /* , start, end */) { var length = arguments.length; return call( $fill, aTypedArray$j(this), value, length > 1 ? arguments[1] : undefined, length > 2 ? arguments[2] : undefined ); }); var lengthOfArrayLike$3 = lengthOfArrayLike$h; var arrayFromConstructorAndList$1 = function (Constructor, list) { var index = 0; var length = lengthOfArrayLike$3(list); var result = new Constructor(length); while (length > index) result[index] = list[index++]; return result; }; var ArrayBufferViewCore$j = arrayBufferViewCore; var speciesConstructor = speciesConstructor$3; var TYPED_ARRAY_CONSTRUCTOR = ArrayBufferViewCore$j.TYPED_ARRAY_CONSTRUCTOR; var aTypedArrayConstructor = ArrayBufferViewCore$j.aTypedArrayConstructor; // a part of `TypedArraySpeciesCreate` abstract operation // https://tc39.es/ecma262/#typedarray-species-create var typedArraySpeciesConstructor$4 = function (originalArray) { return aTypedArrayConstructor(speciesConstructor(originalArray, originalArray[TYPED_ARRAY_CONSTRUCTOR])); }; var arrayFromConstructorAndList = arrayFromConstructorAndList$1; var typedArraySpeciesConstructor$3 = typedArraySpeciesConstructor$4; var typedArrayFromSpeciesAndList = function (instance, list) { return arrayFromConstructorAndList(typedArraySpeciesConstructor$3(instance), list); }; var ArrayBufferViewCore$i = arrayBufferViewCore; var $filter = arrayIteration.filter; var fromSpeciesAndList = typedArrayFromSpeciesAndList; var aTypedArray$i = ArrayBufferViewCore$i.aTypedArray; var exportTypedArrayMethod$j = ArrayBufferViewCore$i.exportTypedArrayMethod; // `%TypedArray%.prototype.filter` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.filter exportTypedArrayMethod$j('filter', function filter(callbackfn /* , thisArg */) { var list = $filter(aTypedArray$i(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); return fromSpeciesAndList(this, list); }); var ArrayBufferViewCore$h = arrayBufferViewCore; var $find = arrayIteration.find; var aTypedArray$h = ArrayBufferViewCore$h.aTypedArray; var exportTypedArrayMethod$i = ArrayBufferViewCore$h.exportTypedArrayMethod; // `%TypedArray%.prototype.find` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.find exportTypedArrayMethod$i('find', function find(predicate /* , thisArg */) { return $find(aTypedArray$h(this), predicate, arguments.length > 1 ? arguments[1] : undefined); }); var ArrayBufferViewCore$g = arrayBufferViewCore; var $findIndex = arrayIteration.findIndex; var aTypedArray$g = ArrayBufferViewCore$g.aTypedArray; var exportTypedArrayMethod$h = ArrayBufferViewCore$g.exportTypedArrayMethod; // `%TypedArray%.prototype.findIndex` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.findindex exportTypedArrayMethod$h('findIndex', function findIndex(predicate /* , thisArg */) { return $findIndex(aTypedArray$g(this), predicate, arguments.length > 1 ? arguments[1] : undefined); }); var ArrayBufferViewCore$f = arrayBufferViewCore; var $forEach = arrayIteration.forEach; var aTypedArray$f = ArrayBufferViewCore$f.aTypedArray; var exportTypedArrayMethod$g = ArrayBufferViewCore$f.exportTypedArrayMethod; // `%TypedArray%.prototype.forEach` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.foreach exportTypedArrayMethod$g('forEach', function forEach(callbackfn /* , thisArg */) { $forEach(aTypedArray$f(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }); var ArrayBufferViewCore$e = arrayBufferViewCore; var $includes = arrayIncludes.includes; var aTypedArray$e = ArrayBufferViewCore$e.aTypedArray; var exportTypedArrayMethod$f = ArrayBufferViewCore$e.exportTypedArrayMethod; // `%TypedArray%.prototype.includes` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.includes exportTypedArrayMethod$f('includes', function includes(searchElement /* , fromIndex */) { return $includes(aTypedArray$e(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); }); var ArrayBufferViewCore$d = arrayBufferViewCore; var $indexOf = arrayIncludes.indexOf; var aTypedArray$d = ArrayBufferViewCore$d.aTypedArray; var exportTypedArrayMethod$e = ArrayBufferViewCore$d.exportTypedArrayMethod; // `%TypedArray%.prototype.indexOf` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.indexof exportTypedArrayMethod$e('indexOf', function indexOf(searchElement /* , fromIndex */) { return $indexOf(aTypedArray$d(this), searchElement, arguments.length > 1 ? arguments[1] : undefined); }); var global$6 = global$1e; var fails$5 = fails$I; var uncurryThis$3 = functionUncurryThis; var ArrayBufferViewCore$c = arrayBufferViewCore; var ArrayIterators = es_array_iterator; var wellKnownSymbol = wellKnownSymbol$s; var ITERATOR = wellKnownSymbol('iterator'); var Uint8Array$2 = global$6.Uint8Array; var arrayValues = uncurryThis$3(ArrayIterators.values); var arrayKeys = uncurryThis$3(ArrayIterators.keys); var arrayEntries = uncurryThis$3(ArrayIterators.entries); var aTypedArray$c = ArrayBufferViewCore$c.aTypedArray; var exportTypedArrayMethod$d = ArrayBufferViewCore$c.exportTypedArrayMethod; var TypedArrayPrototype = Uint8Array$2 && Uint8Array$2.prototype; var GENERIC = !fails$5(function () { TypedArrayPrototype[ITERATOR].call([1]); }); var ITERATOR_IS_VALUES = !!TypedArrayPrototype && TypedArrayPrototype.values && TypedArrayPrototype[ITERATOR] === TypedArrayPrototype.values && TypedArrayPrototype.values.name === 'values'; var typedArrayValues = function values() { return arrayValues(aTypedArray$c(this)); }; // `%TypedArray%.prototype.entries` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.entries exportTypedArrayMethod$d('entries', function entries() { return arrayEntries(aTypedArray$c(this)); }, GENERIC); // `%TypedArray%.prototype.keys` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.keys exportTypedArrayMethod$d('keys', function keys() { return arrayKeys(aTypedArray$c(this)); }, GENERIC); // `%TypedArray%.prototype.values` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.values exportTypedArrayMethod$d('values', typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: 'values' }); // `%TypedArray%.prototype[@@iterator]` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype-@@iterator exportTypedArrayMethod$d(ITERATOR, typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: 'values' }); var ArrayBufferViewCore$b = arrayBufferViewCore; var uncurryThis$2 = functionUncurryThis; var aTypedArray$b = ArrayBufferViewCore$b.aTypedArray; var exportTypedArrayMethod$c = ArrayBufferViewCore$b.exportTypedArrayMethod; var $join = uncurryThis$2([].join); // `%TypedArray%.prototype.join` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.join exportTypedArrayMethod$c('join', function join(separator) { return $join(aTypedArray$b(this), separator); }); /* eslint-disable es/no-array-prototype-lastindexof -- safe */ var apply$2 = functionApply; var toIndexedObject = toIndexedObject$a; var toIntegerOrInfinity = toIntegerOrInfinity$c; var lengthOfArrayLike$2 = lengthOfArrayLike$h; var arrayMethodIsStrict = arrayMethodIsStrict$4; var min = Math.min; var $lastIndexOf$1 = [].lastIndexOf; var NEGATIVE_ZERO = !!$lastIndexOf$1 && 1 / [1].lastIndexOf(1, -0) < 0; var STRICT_METHOD = arrayMethodIsStrict('lastIndexOf'); var FORCED$3 = NEGATIVE_ZERO || !STRICT_METHOD; // `Array.prototype.lastIndexOf` method implementation // https://tc39.es/ecma262/#sec-array.prototype.lastindexof var arrayLastIndexOf = FORCED$3 ? function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) { // convert -0 to +0 if (NEGATIVE_ZERO) return apply$2($lastIndexOf$1, this, arguments) || 0; var O = toIndexedObject(this); var length = lengthOfArrayLike$2(O); var index = length - 1; if (arguments.length > 1) index = min(index, toIntegerOrInfinity(arguments[1])); if (index < 0) index = length + index; for (;index >= 0; index--) if (index in O && O[index] === searchElement) return index || 0; return -1; } : $lastIndexOf$1; var ArrayBufferViewCore$a = arrayBufferViewCore; var apply$1 = functionApply; var $lastIndexOf = arrayLastIndexOf; var aTypedArray$a = ArrayBufferViewCore$a.aTypedArray; var exportTypedArrayMethod$b = ArrayBufferViewCore$a.exportTypedArrayMethod; // `%TypedArray%.prototype.lastIndexOf` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.lastindexof exportTypedArrayMethod$b('lastIndexOf', function lastIndexOf(searchElement /* , fromIndex */) { var length = arguments.length; return apply$1($lastIndexOf, aTypedArray$a(this), length > 1 ? [searchElement, arguments[1]] : [searchElement]); }); var ArrayBufferViewCore$9 = arrayBufferViewCore; var $map = arrayIteration.map; var typedArraySpeciesConstructor$2 = typedArraySpeciesConstructor$4; var aTypedArray$9 = ArrayBufferViewCore$9.aTypedArray; var exportTypedArrayMethod$a = ArrayBufferViewCore$9.exportTypedArrayMethod; // `%TypedArray%.prototype.map` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.map exportTypedArrayMethod$a('map', function map(mapfn /* , thisArg */) { return $map(aTypedArray$9(this), mapfn, arguments.length > 1 ? arguments[1] : undefined, function (O, length) { return new (typedArraySpeciesConstructor$2(O))(length); }); }); var global$5 = global$1e; var aCallable$1 = aCallable$8; var toObject$1 = toObject$g; var IndexedObject = indexedObject; var lengthOfArrayLike$1 = lengthOfArrayLike$h; var TypeError$1 = global$5.TypeError; // `Array.prototype.{ reduce, reduceRight }` methods implementation var createMethod = function (IS_RIGHT) { return function (that, callbackfn, argumentsLength, memo) { aCallable$1(callbackfn); var O = toObject$1(that); var self = IndexedObject(O); var length = lengthOfArrayLike$1(O); var index = IS_RIGHT ? length - 1 : 0; var i = IS_RIGHT ? -1 : 1; if (argumentsLength < 2) while (true) { if (index in self) { memo = self[index]; index += i; break; } index += i; if (IS_RIGHT ? index < 0 : length <= index) { throw TypeError$1('Reduce of empty array with no initial value'); } } for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) { memo = callbackfn(memo, self[index], index, O); } return memo; }; }; var arrayReduce = { // `Array.prototype.reduce` method // https://tc39.es/ecma262/#sec-array.prototype.reduce left: createMethod(false), // `Array.prototype.reduceRight` method // https://tc39.es/ecma262/#sec-array.prototype.reduceright right: createMethod(true) }; var ArrayBufferViewCore$8 = arrayBufferViewCore; var $reduce = arrayReduce.left; var aTypedArray$8 = ArrayBufferViewCore$8.aTypedArray; var exportTypedArrayMethod$9 = ArrayBufferViewCore$8.exportTypedArrayMethod; // `%TypedArray%.prototype.reduce` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduce exportTypedArrayMethod$9('reduce', function reduce(callbackfn /* , initialValue */) { var length = arguments.length; return $reduce(aTypedArray$8(this), callbackfn, length, length > 1 ? arguments[1] : undefined); }); var ArrayBufferViewCore$7 = arrayBufferViewCore; var $reduceRight = arrayReduce.right; var aTypedArray$7 = ArrayBufferViewCore$7.aTypedArray; var exportTypedArrayMethod$8 = ArrayBufferViewCore$7.exportTypedArrayMethod; // `%TypedArray%.prototype.reduceRicht` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduceright exportTypedArrayMethod$8('reduceRight', function reduceRight(callbackfn /* , initialValue */) { var length = arguments.length; return $reduceRight(aTypedArray$7(this), callbackfn, length, length > 1 ? arguments[1] : undefined); }); var ArrayBufferViewCore$6 = arrayBufferViewCore; var aTypedArray$6 = ArrayBufferViewCore$6.aTypedArray; var exportTypedArrayMethod$7 = ArrayBufferViewCore$6.exportTypedArrayMethod; var floor = Math.floor; // `%TypedArray%.prototype.reverse` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.reverse exportTypedArrayMethod$7('reverse', function reverse() { var that = this; var length = aTypedArray$6(that).length; var middle = floor(length / 2); var index = 0; var value; while (index < middle) { value = that[index]; that[index++] = that[--length]; that[length] = value; } return that; }); var global$4 = global$1e; var ArrayBufferViewCore$5 = arrayBufferViewCore; var lengthOfArrayLike = lengthOfArrayLike$h; var toOffset = toOffset$2; var toObject = toObject$g; var fails$4 = fails$I; var RangeError = global$4.RangeError; var aTypedArray$5 = ArrayBufferViewCore$5.aTypedArray; var exportTypedArrayMethod$6 = ArrayBufferViewCore$5.exportTypedArrayMethod; var FORCED$2 = fails$4(function () { // eslint-disable-next-line es/no-typed-arrays -- required for testing new Int8Array(1).set({}); }); // `%TypedArray%.prototype.set` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.set exportTypedArrayMethod$6('set', function set(arrayLike /* , offset */) { aTypedArray$5(this); var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1); var length = this.length; var src = toObject(arrayLike); var len = lengthOfArrayLike(src); var index = 0; if (len + offset > length) throw RangeError('Wrong length'); while (index < len) this[offset + index] = src[index++]; }, FORCED$2); var ArrayBufferViewCore$4 = arrayBufferViewCore; var typedArraySpeciesConstructor$1 = typedArraySpeciesConstructor$4; var fails$3 = fails$I; var arraySlice$1 = arraySlice$9; var aTypedArray$4 = ArrayBufferViewCore$4.aTypedArray; var exportTypedArrayMethod$5 = ArrayBufferViewCore$4.exportTypedArrayMethod; var FORCED$1 = fails$3(function () { // eslint-disable-next-line es/no-typed-arrays -- required for testing new Int8Array(1).slice(); }); // `%TypedArray%.prototype.slice` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.slice exportTypedArrayMethod$5('slice', function slice(start, end) { var list = arraySlice$1(aTypedArray$4(this), start, end); var C = typedArraySpeciesConstructor$1(this); var index = 0; var length = list.length; var result = new C(length); while (length > index) result[index] = list[index++]; return result; }, FORCED$1); var ArrayBufferViewCore$3 = arrayBufferViewCore; var $some = arrayIteration.some; var aTypedArray$3 = ArrayBufferViewCore$3.aTypedArray; var exportTypedArrayMethod$4 = ArrayBufferViewCore$3.exportTypedArrayMethod; // `%TypedArray%.prototype.some` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.some exportTypedArrayMethod$4('some', function some(callbackfn /* , thisArg */) { return $some(aTypedArray$3(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined); }); var global$3 = global$1e; var uncurryThis$1 = functionUncurryThis; var fails$2 = fails$I; var aCallable = aCallable$8; var internalSort = arraySort$1; var ArrayBufferViewCore$2 = arrayBufferViewCore; var FF = engineFfVersion; var IE_OR_EDGE = engineIsIeOrEdge; var V8 = engineV8Version; var WEBKIT = engineWebkitVersion; var Array$1 = global$3.Array; var aTypedArray$2 = ArrayBufferViewCore$2.aTypedArray; var exportTypedArrayMethod$3 = ArrayBufferViewCore$2.exportTypedArrayMethod; var Uint16Array = global$3.Uint16Array; var un$Sort = Uint16Array && uncurryThis$1(Uint16Array.prototype.sort); // WebKit var ACCEPT_INCORRECT_ARGUMENTS = !!un$Sort && !(fails$2(function () { un$Sort(new Uint16Array(2), null); }) && fails$2(function () { un$Sort(new Uint16Array(2), {}); })); var STABLE_SORT = !!un$Sort && !fails$2(function () { // feature detection can be too slow, so check engines versions if (V8) return V8 < 74; if (FF) return FF < 67; if (IE_OR_EDGE) return true; if (WEBKIT) return WEBKIT < 602; var array = new Uint16Array(516); var expected = Array$1(516); var index, mod; for (index = 0; index < 516; index++) { mod = index % 4; array[index] = 515 - index; expected[index] = index - 2 * mod + 3; } un$Sort(array, function (a, b) { return (a / 4 | 0) - (b / 4 | 0); }); for (index = 0; index < 516; index++) { if (array[index] !== expected[index]) return true; } }); var getSortCompare = function (comparefn) { return function (x, y) { if (comparefn !== undefined) return +comparefn(x, y) || 0; // eslint-disable-next-line no-self-compare -- NaN check if (y !== y) return -1; // eslint-disable-next-line no-self-compare -- NaN check if (x !== x) return 1; if (x === 0 && y === 0) return 1 / x > 0 && 1 / y < 0 ? 1 : -1; return x > y; }; }; // `%TypedArray%.prototype.sort` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort exportTypedArrayMethod$3('sort', function sort(comparefn) { if (comparefn !== undefined) aCallable(comparefn); if (STABLE_SORT) return un$Sort(this, comparefn); return internalSort(aTypedArray$2(this), getSortCompare(comparefn)); }, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS); var ArrayBufferViewCore$1 = arrayBufferViewCore; var toLength = toLength$a; var toAbsoluteIndex = toAbsoluteIndex$7; var typedArraySpeciesConstructor = typedArraySpeciesConstructor$4; var aTypedArray$1 = ArrayBufferViewCore$1.aTypedArray; var exportTypedArrayMethod$2 = ArrayBufferViewCore$1.exportTypedArrayMethod; // `%TypedArray%.prototype.subarray` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.subarray exportTypedArrayMethod$2('subarray', function subarray(begin, end) { var O = aTypedArray$1(this); var length = O.length; var beginIndex = toAbsoluteIndex(begin, length); var C = typedArraySpeciesConstructor(O); return new C( O.buffer, O.byteOffset + beginIndex * O.BYTES_PER_ELEMENT, toLength((end === undefined ? length : toAbsoluteIndex(end, length)) - beginIndex) ); }); var global$2 = global$1e; var apply = functionApply; var ArrayBufferViewCore = arrayBufferViewCore; var fails$1 = fails$I; var arraySlice = arraySlice$9; var Int8Array$1 = global$2.Int8Array; var aTypedArray = ArrayBufferViewCore.aTypedArray; var exportTypedArrayMethod$1 = ArrayBufferViewCore.exportTypedArrayMethod; var $toLocaleString = [].toLocaleString; // iOS Safari 6.x fails here var TO_LOCALE_STRING_BUG = !!Int8Array$1 && fails$1(function () { $toLocaleString.call(new Int8Array$1(1)); }); var FORCED = fails$1(function () { return [1, 2].toLocaleString() != new Int8Array$1([1, 2]).toLocaleString(); }) || !fails$1(function () { Int8Array$1.prototype.toLocaleString.call([1, 2]); }); // `%TypedArray%.prototype.toLocaleString` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring exportTypedArrayMethod$1('toLocaleString', function toLocaleString() { return apply( $toLocaleString, TO_LOCALE_STRING_BUG ? arraySlice(aTypedArray(this)) : aTypedArray(this), arraySlice(arguments) ); }, FORCED); var exportTypedArrayMethod = arrayBufferViewCore.exportTypedArrayMethod; var fails = fails$I; var global$1 = global$1e; var uncurryThis = functionUncurryThis; var Uint8Array$1 = global$1.Uint8Array; var Uint8ArrayPrototype = Uint8Array$1 && Uint8Array$1.prototype || {}; var arrayToString = [].toString; var join = uncurryThis([].join); if (fails(function () { arrayToString.call({}); })) { arrayToString = function toString() { return join(this); }; } var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString != arrayToString; // `%TypedArray%.prototype.toString` method // https://tc39.es/ecma262/#sec-%typedarray%.prototype.tostring exportTypedArrayMethod('toString', arrayToString, IS_NOT_ARRAY_METHOD); var mediaManager = {}; var _mutations; function makeMap(str, expectsLowerCase) { var map = Object.create(null); var list = str.split(','); for (var _i = 0; _i < list.length; _i++) { map[list[_i]] = true; } return expectsLowerCase ? function (val) { return !!map[val.toLowerCase()]; } : function (val) { return !!map[val]; }; } /** * On the client we only need to offer special cases for boolean attributes that * have different names from their corresponding dom properties: * - itemscope -> N/A * - allowfullscreen -> allowFullscreen * - formnovalidate -> formNoValidate * - ismap -> isMap * - nomodule -> noModule * - novalidate -> noValidate * - readonly -> readOnly */ var specialBooleanAttrs = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly"; var isSpecialBooleanAttr = /*#__PURE__*/makeMap(specialBooleanAttrs); /** * Boolean attributes should be included if the value is truthy or ''. * e.g. `` if (shapeFlag & 8 /* TEXT_CHILDREN */ ) { hostSetElementText(el, vnode.children); } else if (shapeFlag & 16 /* ARRAY_CHILDREN */ ) { mountChildren(vnode.children, el, null, parentComponent, parentSuspense, isSVG && type !== 'foreignObject', slotScopeIds, optimized); } if (dirs) { invokeDirectiveHook(vnode, null, parentComponent, 'created'); } // props if (props) { for (var key in props) { if (key !== 'value' && !isReservedProp(key)) { hostPatchProp(el, key, null, props[key], isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); } } /** * Special case for setting value on DOM elements: * - it can be order-sensitive (e.g. should be set *after* min/max, #2325, #4024) * - it needs to be forced (#1471) * #2353 proposes adding another renderer option to configure this, but * the properties affects are so finite it is worth special casing it * here to reduce the complexity. (Special casing it also should not * affect non-DOM renderers) */ if ('value' in props) { hostPatchProp(el, 'value', null, props.value); } if (vnodeHook = props.onVnodeBeforeMount) { invokeVNodeHook(vnodeHook, parentComponent, vnode); } } // scopeId setScopeId(el, vnode, vnode.scopeId, slotScopeIds, parentComponent); } if (__VUE_PROD_DEVTOOLS__) { Object.defineProperty(el, '__vnode', { value: vnode, enumerable: false }); Object.defineProperty(el, '__vueParentComponent', { value: parentComponent, enumerable: false }); } if (dirs) { invokeDirectiveHook(vnode, null, parentComponent, 'beforeMount'); } // #1583 For inside suspense + suspense not resolved case, enter hook should call when suspense resolved // #1689 For inside suspense + suspense resolved case, just call it var needCallTransitionHooks = (!parentSuspense || parentSuspense && !parentSuspense.pendingBranch) && transition && !transition.persisted; if (needCallTransitionHooks) { transition.beforeEnter(el); } hostInsert(el, container, anchor); if ((vnodeHook = props && props.onVnodeMounted) || needCallTransitionHooks || dirs) { queuePostRenderEffect(function () { vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode); needCallTransitionHooks && transition.enter(el); dirs && invokeDirectiveHook(vnode, null, parentComponent, 'mounted'); }, parentSuspense); } }; var setScopeId = function setScopeId(el, vnode, scopeId, slotScopeIds, parentComponent) { if (scopeId) { hostSetScopeId(el, scopeId); } if (slotScopeIds) { for (var _i19 = 0; _i19 < slotScopeIds.length; _i19++) { hostSetScopeId(el, slotScopeIds[_i19]); } } if (parentComponent) { var subTree = parentComponent.subTree; if (vnode === subTree) { var parentVNode = parentComponent.vnode; setScopeId(el, parentVNode, parentVNode.scopeId, parentVNode.slotScopeIds, parentComponent.parent); } } }; var mountChildren = function mountChildren(children, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized, start) { if (start === void 0) { start = 0; } for (var _i20 = start; _i20 < children.length; _i20++) { var child = children[_i20] = optimized ? cloneIfMounted(children[_i20]) : normalizeVNode(children[_i20]); patch(null, child, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); } }; var patchElement = function patchElement(n1, n2, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) { var el = n2.el = n1.el; var patchFlag = n2.patchFlag, dynamicChildren = n2.dynamicChildren, dirs = n2.dirs; // #1426 take the old vnode's patch flag into account since user may clone a // compiler-generated vnode, which de-opts to FULL_PROPS patchFlag |= n1.patchFlag & 16 /* FULL_PROPS */ ; var oldProps = n1.props || EMPTY_OBJ; var newProps = n2.props || EMPTY_OBJ; var vnodeHook; // disable recurse in beforeUpdate hooks parentComponent && toggleRecurse(parentComponent, false); if (vnodeHook = newProps.onVnodeBeforeUpdate) { invokeVNodeHook(vnodeHook, parentComponent, n2, n1); } if (dirs) { invokeDirectiveHook(n2, n1, parentComponent, 'beforeUpdate'); } parentComponent && toggleRecurse(parentComponent, true); var areChildrenSVG = isSVG && n2.type !== 'foreignObject'; if (dynamicChildren) { patchBlockChildren(n1.dynamicChildren, dynamicChildren, el, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds); } else if (!optimized) { // full diff patchChildren(n1, n2, el, null, parentComponent, parentSuspense, areChildrenSVG, slotScopeIds, false); } if (patchFlag > 0) { // the presence of a patchFlag means this element's render code was // generated by the compiler and can take the fast path. // in this path old node and new node are guaranteed to have the same shape // (i.e. at the exact same position in the source template) if (patchFlag & 16 /* FULL_PROPS */ ) { // element props contain dynamic keys, full diff needed patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG); } else { // class // this flag is matched when the element has dynamic class bindings. if (patchFlag & 2 /* CLASS */ ) { if (oldProps.class !== newProps.class) { hostPatchProp(el, 'class', null, newProps.class, isSVG); } } // style // this flag is matched when the element has dynamic style bindings if (patchFlag & 4 /* STYLE */ ) { hostPatchProp(el, 'style', oldProps.style, newProps.style, isSVG); } // props // This flag is matched when the element has dynamic prop/attr bindings // other than class and style. The keys of dynamic prop/attrs are saved for // faster iteration. // Note dynamic keys like :[foo]="bar" will cause this optimization to // bail out and go through a full diff because we need to unset the old key if (patchFlag & 8 /* PROPS */ ) { // if the flag is present then dynamicProps must be non-null var propsToUpdate = n2.dynamicProps; for (var _i21 = 0; _i21 < propsToUpdate.length; _i21++) { var key = propsToUpdate[_i21]; var prev = oldProps[key]; var next = newProps[key]; // #1471 force patch value if (next !== prev || key === 'value') { hostPatchProp(el, key, prev, next, isSVG, n1.children, parentComponent, parentSuspense, unmountChildren); } } } } // text // This flag is matched when the element has only dynamic text children. if (patchFlag & 1 /* TEXT */ ) { if (n1.children !== n2.children) { hostSetElementText(el, n2.children); } } } else if (!optimized && dynamicChildren == null) { // unoptimized, full diff patchProps(el, n2, oldProps, newProps, parentComponent, parentSuspense, isSVG); } if ((vnodeHook = newProps.onVnodeUpdated) || dirs) { queuePostRenderEffect(function () { vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, n2, n1); dirs && invokeDirectiveHook(n2, n1, parentComponent, 'updated'); }, parentSuspense); } }; // The fast path for blocks. var patchBlockChildren = function patchBlockChildren(oldChildren, newChildren, fallbackContainer, parentComponent, parentSuspense, isSVG, slotScopeIds) { for (var _i22 = 0; _i22 < newChildren.length; _i22++) { var oldVNode = oldChildren[_i22]; var newVNode = newChildren[_i22]; // Determine the container (parent element) for the patch. var container = // oldVNode may be an errored async setup() component inside Suspense // which will not have a mounted element oldVNode.el && ( // - In the case of a Fragment, we need to provide the actual parent // of the Fragment itself so it can move its children. oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement // which also requires the correct parent container !isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything. oldVNode.shapeFlag & (6 /* COMPONENT */ | 64 /* TELEPORT */ )) ? hostParentNode(oldVNode.el) : // In other cases, the parent container is not actually used so we // just pass the block element here to avoid a DOM parentNode call. fallbackContainer; patch(oldVNode, newVNode, container, null, parentComponent, parentSuspense, isSVG, slotScopeIds, true); } }; var patchProps = function patchProps(el, vnode, oldProps, newProps, parentComponent, parentSuspense, isSVG) { if (oldProps !== newProps) { for (var key in newProps) { // empty string is not valid prop if (isReservedProp(key)) continue; var next = newProps[key]; var prev = oldProps[key]; // defer patching value if (next !== prev && key !== 'value') { hostPatchProp(el, key, prev, next, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); } } if (oldProps !== EMPTY_OBJ) { for (var _key11 in oldProps) { if (!isReservedProp(_key11) && !(_key11 in newProps)) { hostPatchProp(el, _key11, oldProps[_key11], null, isSVG, vnode.children, parentComponent, parentSuspense, unmountChildren); } } } if ('value' in newProps) { hostPatchProp(el, 'value', oldProps.value, newProps.value); } } }; var processFragment = function processFragment(n1, n2, container, anchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized) { var fragmentStartAnchor = n2.el = n1 ? n1.el : hostCreateText(''); var fragmentEndAnchor = n2.anchor = n1 ? n1.anchor : hostCreateText(''); var patchFlag = n2.patchFlag, dynamicChildren = n2.dynamicChildren, fragmentSlotScopeIds = n2.slotScopeIds; if (fragmentSlotScopeIds) { slotScopeIds = slotScopeIds ? slotScopeIds.concat(fragmentSlotScopeIds) : fragmentSlotScopeIds; } if (n1 == null) { hostInsert(fragmentStartAnchor, container, anchor); hostInsert(fragmentEndAnchor, container, anchor); // a fragment can only have array children // since they are either generated by the compiler, or implicitly created // from arrays. mountChildren(n2.children, container, fragmentEndAnchor, parentComponent, parentSuspense, isSVG, slotScopeIds, optimized); } else { if (patchFlag > 0 && patchFlag & 64 /* STABLE_FRAGMENT */ && dynamicChildren && // #2715 the previous fragment could've been a BAILed one as a result // of renderSlot() with no valid children n1.dynamicChildren) { // a stable fragment (template root or