Preview: global-bundle.development.js
Size: 9.25 MB
/home/byroehnu/easepaybiz.easetack.com/node_modules/adminjs/bundle/global-bundle.development.js
var globals = (function (exports) {
'use strict';
function _mergeNamespaces(n, m) {
m.forEach(function (e) {
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
if (k !== 'default' && !(k in n)) {
var d = Object.getOwnPropertyDescriptor(e, k);
Object.defineProperty(n, k, d.get ? d : {
enumerable: true,
get: function () { return e[k]; }
});
}
});
});
return Object.freeze(n);
}
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function getDefaultExportFromCjs (x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
}
var check = function (it) {
return it && it.Math === Math && it;
};
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
var global$11 =
// 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) ||
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
// eslint-disable-next-line no-new-func -- fallback
(function () { return this; })() || Function('return this')();
var objectGetOwnPropertyDescriptor = {};
var fails$1p = function (exec) {
try {
return !!exec();
} catch (error) {
return true;
}
};
var fails$1o = fails$1p;
// Detect IE8's incomplete defineProperty implementation
var descriptors = !fails$1o(function () {
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
});
var fails$1n = fails$1p;
var functionBindNative = !fails$1n(function () {
// eslint-disable-next-line es/no-function-prototype-bind -- safe
var test = (function () { /* empty */ }).bind();
// eslint-disable-next-line no-prototype-builtins -- safe
return typeof test != 'function' || test.hasOwnProperty('prototype');
});
var NATIVE_BIND$4 = functionBindNative;
var call$G = Function.prototype.call;
var functionCall = NATIVE_BIND$4 ? call$G.bind(call$G) : function () {
return call$G.apply(call$G, arguments);
};
var objectPropertyIsEnumerable = {};
var $propertyIsEnumerable$2 = {}.propertyIsEnumerable;
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getOwnPropertyDescriptor$9 = Object.getOwnPropertyDescriptor;
// Nashorn ~ JDK8 bug
var NASHORN_BUG = getOwnPropertyDescriptor$9 && !$propertyIsEnumerable$2.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$9(this, V);
return !!descriptor && descriptor.enumerable;
} : $propertyIsEnumerable$2;
var createPropertyDescriptor$c = function (bitmap, value) {
return {
enumerable: !(bitmap & 1),
configurable: !(bitmap & 2),
writable: !(bitmap & 4),
value: value
};
};
var NATIVE_BIND$3 = functionBindNative;
var FunctionPrototype$4 = Function.prototype;
var call$F = FunctionPrototype$4.call;
var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$4.bind.bind(call$F, call$F);
var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) {
return function () {
return call$F.apply(fn, arguments);
};
};
var uncurryThis$1r = functionUncurryThis;
var toString$E = uncurryThis$1r({}.toString);
var stringSlice$i = uncurryThis$1r(''.slice);
var classofRaw$2 = function (it) {
return stringSlice$i(toString$E(it), 8, -1);
};
var uncurryThis$1q = functionUncurryThis;
var fails$1m = fails$1p;
var classof$o = classofRaw$2;
var $Object$5 = Object;
var split$3 = uncurryThis$1q(''.split);
// fallback for non-array-like ES3 and non-enumerable old V8 strings
var indexedObject = fails$1m(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$o(it) === 'String' ? split$3(it, '') : $Object$5(it);
} : $Object$5;
// we can't use just `it == null` since of `document.all` special case
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
var isNullOrUndefined$e = function (it) {
return it === null || it === undefined;
};
var isNullOrUndefined$d = isNullOrUndefined$e;
var $TypeError$q = TypeError;
// `RequireObjectCoercible` abstract operation
// https://tc39.es/ecma262/#sec-requireobjectcoercible
var requireObjectCoercible$n = function (it) {
if (isNullOrUndefined$d(it)) throw new $TypeError$q("Can't call method on " + it);
return it;
};
// toObject with fallback for non-array-like ES3 strings
var IndexedObject$5 = indexedObject;
var requireObjectCoercible$m = requireObjectCoercible$n;
var toIndexedObject$j = function (it) {
return IndexedObject$5(requireObjectCoercible$m(it));
};
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
var documentAll = typeof document == 'object' && document.all;
// `IsCallable` abstract operation
// https://tc39.es/ecma262/#sec-iscallable
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
var isCallable$y = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
return typeof argument == 'function' || argument === documentAll;
} : function (argument) {
return typeof argument == 'function';
};
var isCallable$x = isCallable$y;
var isObject$A = function (it) {
return typeof it == 'object' ? it !== null : isCallable$x(it);
};
var global$10 = global$11;
var isCallable$w = isCallable$y;
var aFunction = function (argument) {
return isCallable$w(argument) ? argument : undefined;
};
var getBuiltIn$p = function (namespace, method) {
return arguments.length < 2 ? aFunction(global$10[namespace]) : global$10[namespace] && global$10[namespace][method];
};
var uncurryThis$1p = functionUncurryThis;
var objectIsPrototypeOf = uncurryThis$1p({}.isPrototypeOf);
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
var global$$ = global$11;
var userAgent$6 = engineUserAgent;
var process$3 = global$$.process;
var Deno$1 = global$$.Deno;
var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
var v8 = versions && versions.v8;
var match$1, version;
if (v8) {
match$1 = v8.split('.');
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
// but their correct versions are not interesting for us
version = match$1[0] > 0 && match$1[0] < 4 ? 1 : +(match$1[0] + match$1[1]);
}
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
// so check `userAgent` even if `.v8` exists, but 0
if (!version && userAgent$6) {
match$1 = userAgent$6.match(/Edge\/(\d+)/);
if (!match$1 || match$1[1] >= 74) {
match$1 = userAgent$6.match(/Chrome\/(\d+)/);
if (match$1) version = +match$1[1];
}
}
var engineV8Version = version;
/* eslint-disable es/no-symbol -- required for testing */
var V8_VERSION$3 = engineV8Version;
var fails$1l = fails$1p;
var global$_ = global$11;
var $String$8 = global$_.String;
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$1l(function () {
var symbol = Symbol('symbol detection');
// Chrome 38 Symbol has incorrect toString conversion
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
// of course, fail.
return !$String$8(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$6 = symbolConstructorDetection;
var useSymbolAsUid = NATIVE_SYMBOL$6
&& !Symbol.sham
&& typeof Symbol.iterator == 'symbol';
var getBuiltIn$o = getBuiltIn$p;
var isCallable$v = isCallable$y;
var isPrototypeOf$c = objectIsPrototypeOf;
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
var $Object$4 = Object;
var isSymbol$7 = USE_SYMBOL_AS_UID$1 ? function (it) {
return typeof it == 'symbol';
} : function (it) {
var $Symbol = getBuiltIn$o('Symbol');
return isCallable$v($Symbol) && isPrototypeOf$c($Symbol.prototype, $Object$4(it));
};
var $String$7 = String;
var tryToString$7 = function (argument) {
try {
return $String$7(argument);
} catch (error) {
return 'Object';
}
};
var isCallable$u = isCallable$y;
var tryToString$6 = tryToString$7;
var $TypeError$p = TypeError;
// `Assert: IsCallable(argument) is true`
var aCallable$n = function (argument) {
if (isCallable$u(argument)) return argument;
throw new $TypeError$p(tryToString$6(argument) + ' is not a function');
};
var aCallable$m = aCallable$n;
var isNullOrUndefined$c = isNullOrUndefined$e;
// `GetMethod` abstract operation
// https://tc39.es/ecma262/#sec-getmethod
var getMethod$9 = function (V, P) {
var func = V[P];
return isNullOrUndefined$c(func) ? undefined : aCallable$m(func);
};
var call$E = functionCall;
var isCallable$t = isCallable$y;
var isObject$z = isObject$A;
var $TypeError$o = TypeError;
// `OrdinaryToPrimitive` abstract operation
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
var ordinaryToPrimitive$2 = function (input, pref) {
var fn, val;
if (pref === 'string' && isCallable$t(fn = input.toString) && !isObject$z(val = call$E(fn, input))) return val;
if (isCallable$t(fn = input.valueOf) && !isObject$z(val = call$E(fn, input))) return val;
if (pref !== 'string' && isCallable$t(fn = input.toString) && !isObject$z(val = call$E(fn, input))) return val;
throw new $TypeError$o("Can't convert object to primitive value");
};
var sharedStore = {exports: {}};
var isPure = false;
var global$Z = global$11;
// eslint-disable-next-line es/no-object-defineproperty -- safe
var defineProperty$f = Object.defineProperty;
var defineGlobalProperty$3 = function (key, value) {
try {
defineProperty$f(global$Z, key, { value: value, configurable: true, writable: true });
} catch (error) {
global$Z[key] = value;
} return value;
};
var globalThis$1 = global$11;
var defineGlobalProperty$2 = defineGlobalProperty$3;
var SHARED = '__core-js_shared__';
var store$3 = sharedStore.exports = globalThis$1[SHARED] || defineGlobalProperty$2(SHARED, {});
(store$3.versions || (store$3.versions = [])).push({
version: '3.36.0',
mode: 'global',
copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
license: 'https://github.com/zloirock/core-js/blob/v3.36.0/LICENSE',
source: 'https://github.com/zloirock/core-js'
});
var sharedStoreExports = sharedStore.exports;
var store$2 = sharedStoreExports;
var shared$7 = function (key, value) {
return store$2[key] || (store$2[key] = value || {});
};
var requireObjectCoercible$l = requireObjectCoercible$n;
var $Object$3 = Object;
// `ToObject` abstract operation
// https://tc39.es/ecma262/#sec-toobject
var toObject$u = function (argument) {
return $Object$3(requireObjectCoercible$l(argument));
};
var uncurryThis$1o = functionUncurryThis;
var toObject$t = toObject$u;
var hasOwnProperty$2 = uncurryThis$1o({}.hasOwnProperty);
// `HasOwnProperty` abstract operation
// https://tc39.es/ecma262/#sec-hasownproperty
// eslint-disable-next-line es/no-object-hasown -- safe
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
return hasOwnProperty$2(toObject$t(it), key);
};
var uncurryThis$1n = functionUncurryThis;
var id$2 = 0;
var postfix = Math.random();
var toString$D = uncurryThis$1n(1.0.toString);
var uid$6 = function (key) {
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$D(++id$2 + postfix, 36);
};
var global$Y = global$11;
var shared$6 = shared$7;
var hasOwn$v = hasOwnProperty_1;
var uid$5 = uid$6;
var NATIVE_SYMBOL$5 = symbolConstructorDetection;
var USE_SYMBOL_AS_UID = useSymbolAsUid;
var Symbol$3 = global$Y.Symbol;
var WellKnownSymbolsStore$1 = shared$6('wks');
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$3['for'] || Symbol$3 : Symbol$3 && Symbol$3.withoutSetter || uid$5;
var wellKnownSymbol$z = function (name) {
if (!hasOwn$v(WellKnownSymbolsStore$1, name)) {
WellKnownSymbolsStore$1[name] = NATIVE_SYMBOL$5 && hasOwn$v(Symbol$3, name)
? Symbol$3[name]
: createWellKnownSymbol('Symbol.' + name);
} return WellKnownSymbolsStore$1[name];
};
var call$D = functionCall;
var isObject$y = isObject$A;
var isSymbol$6 = isSymbol$7;
var getMethod$8 = getMethod$9;
var ordinaryToPrimitive$1 = ordinaryToPrimitive$2;
var wellKnownSymbol$y = wellKnownSymbol$z;
var $TypeError$n = TypeError;
var TO_PRIMITIVE$1 = wellKnownSymbol$y('toPrimitive');
// `ToPrimitive` abstract operation
// https://tc39.es/ecma262/#sec-toprimitive
var toPrimitive$5 = function (input, pref) {
if (!isObject$y(input) || isSymbol$6(input)) return input;
var exoticToPrim = getMethod$8(input, TO_PRIMITIVE$1);
var result;
if (exoticToPrim) {
if (pref === undefined) pref = 'default';
result = call$D(exoticToPrim, input, pref);
if (!isObject$y(result) || isSymbol$6(result)) return result;
throw new $TypeError$n("Can't convert object to primitive value");
}
if (pref === undefined) pref = 'number';
return ordinaryToPrimitive$1(input, pref);
};
var toPrimitive$4 = toPrimitive$5;
var isSymbol$5 = isSymbol$7;
// `ToPropertyKey` abstract operation
// https://tc39.es/ecma262/#sec-topropertykey
var toPropertyKey$9 = function (argument) {
var key = toPrimitive$4(argument, 'string');
return isSymbol$5(key) ? key : key + '';
};
var global$X = global$11;
var isObject$x = isObject$A;
var document$3 = global$X.document;
// typeof document.createElement is 'object' in old IE
var EXISTS$1 = isObject$x(document$3) && isObject$x(document$3.createElement);
var documentCreateElement$2 = function (it) {
return EXISTS$1 ? document$3.createElement(it) : {};
};
var DESCRIPTORS$M = descriptors;
var fails$1k = fails$1p;
var createElement$1 = documentCreateElement$2;
// Thanks to IE8 for its funny defineProperty
var ie8DomDefine = !DESCRIPTORS$M && !fails$1k(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$L = descriptors;
var call$C = functionCall;
var propertyIsEnumerableModule$2 = objectPropertyIsEnumerable;
var createPropertyDescriptor$b = createPropertyDescriptor$c;
var toIndexedObject$i = toIndexedObject$j;
var toPropertyKey$8 = toPropertyKey$9;
var hasOwn$u = hasOwnProperty_1;
var IE8_DOM_DEFINE$1 = ie8DomDefine;
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$L ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) {
O = toIndexedObject$i(O);
P = toPropertyKey$8(P);
if (IE8_DOM_DEFINE$1) try {
return $getOwnPropertyDescriptor$2(O, P);
} catch (error) { /* empty */ }
if (hasOwn$u(O, P)) return createPropertyDescriptor$b(!call$C(propertyIsEnumerableModule$2.f, O, P), O[P]);
};
var objectDefineProperty = {};
var DESCRIPTORS$K = descriptors;
var fails$1j = fails$1p;
// V8 ~ Chrome 36-
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
var v8PrototypeDefineBug = DESCRIPTORS$K && fails$1j(function () {
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
value: 42,
writable: false
}).prototype !== 42;
});
var isObject$w = isObject$A;
var $String$6 = String;
var $TypeError$m = TypeError;
// `Assert: Type(argument) is Object`
var anObject$D = function (argument) {
if (isObject$w(argument)) return argument;
throw new $TypeError$m($String$6(argument) + ' is not an object');
};
var DESCRIPTORS$J = descriptors;
var IE8_DOM_DEFINE = ie8DomDefine;
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
var anObject$C = anObject$D;
var toPropertyKey$7 = toPropertyKey$9;
var $TypeError$l = TypeError;
// eslint-disable-next-line es/no-object-defineproperty -- safe
var $defineProperty$1 = Object.defineProperty;
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
var ENUMERABLE = 'enumerable';
var CONFIGURABLE$1 = 'configurable';
var WRITABLE = 'writable';
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
objectDefineProperty.f = DESCRIPTORS$J ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
anObject$C(O);
P = toPropertyKey$7(P);
anObject$C(Attributes);
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
var current = $getOwnPropertyDescriptor$1(O, P);
if (current && current[WRITABLE]) {
O[P] = Attributes.value;
Attributes = {
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
writable: false
};
}
} return $defineProperty$1(O, P, Attributes);
} : $defineProperty$1 : function defineProperty(O, P, Attributes) {
anObject$C(O);
P = toPropertyKey$7(P);
anObject$C(Attributes);
if (IE8_DOM_DEFINE) try {
return $defineProperty$1(O, P, Attributes);
} catch (error) { /* empty */ }
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$l('Accessors not supported');
if ('value' in Attributes) O[P] = Attributes.value;
return O;
};
var DESCRIPTORS$I = descriptors;
var definePropertyModule$b = objectDefineProperty;
var createPropertyDescriptor$a = createPropertyDescriptor$c;
var createNonEnumerableProperty$f = DESCRIPTORS$I ? function (object, key, value) {
return definePropertyModule$b.f(object, key, createPropertyDescriptor$a(1, value));
} : function (object, key, value) {
object[key] = value;
return object;
};
var makeBuiltIn$4 = {exports: {}};
var DESCRIPTORS$H = descriptors;
var hasOwn$t = hasOwnProperty_1;
var FunctionPrototype$3 = Function.prototype;
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getDescriptor = DESCRIPTORS$H && Object.getOwnPropertyDescriptor;
var EXISTS = hasOwn$t(FunctionPrototype$3, 'name');
// additional protection from minified / mangled / dropped function names
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$H || (DESCRIPTORS$H && getDescriptor(FunctionPrototype$3, 'name').configurable));
var functionName = {
EXISTS: EXISTS,
PROPER: PROPER,
CONFIGURABLE: CONFIGURABLE
};
var uncurryThis$1m = functionUncurryThis;
var isCallable$s = isCallable$y;
var store$1 = sharedStoreExports;
var functionToString$1 = uncurryThis$1m(Function.toString);
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
if (!isCallable$s(store$1.inspectSource)) {
store$1.inspectSource = function (it) {
return functionToString$1(it);
};
}
var inspectSource$3 = store$1.inspectSource;
var global$W = global$11;
var isCallable$r = isCallable$y;
var WeakMap$2 = global$W.WeakMap;
var weakMapBasicDetection = isCallable$r(WeakMap$2) && /native code/.test(String(WeakMap$2));
var shared$5 = shared$7;
var uid$4 = uid$6;
var keys$2 = shared$5('keys');
var sharedKey$4 = function (key) {
return keys$2[key] || (keys$2[key] = uid$4(key));
};
var hiddenKeys$6 = {};
var NATIVE_WEAK_MAP$1 = weakMapBasicDetection;
var global$V = global$11;
var isObject$v = isObject$A;
var createNonEnumerableProperty$e = createNonEnumerableProperty$f;
var hasOwn$s = hasOwnProperty_1;
var shared$4 = sharedStoreExports;
var sharedKey$3 = sharedKey$4;
var hiddenKeys$5 = hiddenKeys$6;
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
var TypeError$9 = global$V.TypeError;
var WeakMap$1 = global$V.WeakMap;
var set$4, get$3, has$4;
var enforce = function (it) {
return has$4(it) ? get$3(it) : set$4(it, {});
};
var getterFor$1 = function (TYPE) {
return function (it) {
var state;
if (!isObject$v(it) || (state = get$3(it)).type !== TYPE) {
throw new TypeError$9('Incompatible receiver, ' + TYPE + ' required');
} return state;
};
};
if (NATIVE_WEAK_MAP$1 || shared$4.state) {
var store = shared$4.state || (shared$4.state = new WeakMap$1());
/* eslint-disable no-self-assign -- prototype methods protection */
store.get = store.get;
store.has = store.has;
store.set = store.set;
/* eslint-enable no-self-assign -- prototype methods protection */
set$4 = function (it, metadata) {
if (store.has(it)) throw new TypeError$9(OBJECT_ALREADY_INITIALIZED);
metadata.facade = it;
store.set(it, metadata);
return metadata;
};
get$3 = function (it) {
return store.get(it) || {};
};
has$4 = function (it) {
return store.has(it);
};
} else {
var STATE = sharedKey$3('state');
hiddenKeys$5[STATE] = true;
set$4 = function (it, metadata) {
if (hasOwn$s(it, STATE)) throw new TypeError$9(OBJECT_ALREADY_INITIALIZED);
metadata.facade = it;
createNonEnumerableProperty$e(it, STATE, metadata);
return metadata;
};
get$3 = function (it) {
return hasOwn$s(it, STATE) ? it[STATE] : {};
};
has$4 = function (it) {
return hasOwn$s(it, STATE);
};
}
var internalState = {
set: set$4,
get: get$3,
has: has$4,
enforce: enforce,
getterFor: getterFor$1
};
var uncurryThis$1l = functionUncurryThis;
var fails$1i = fails$1p;
var isCallable$q = isCallable$y;
var hasOwn$r = hasOwnProperty_1;
var DESCRIPTORS$G = descriptors;
var CONFIGURABLE_FUNCTION_NAME$2 = functionName.CONFIGURABLE;
var inspectSource$2 = inspectSource$3;
var InternalStateModule$d = internalState;
var enforceInternalState$4 = InternalStateModule$d.enforce;
var getInternalState$a = InternalStateModule$d.get;
var $String$5 = String;
// eslint-disable-next-line es/no-object-defineproperty -- safe
var defineProperty$e = Object.defineProperty;
var stringSlice$h = uncurryThis$1l(''.slice);
var replace$d = uncurryThis$1l(''.replace);
var join$8 = uncurryThis$1l([].join);
var CONFIGURABLE_LENGTH = DESCRIPTORS$G && !fails$1i(function () {
return defineProperty$e(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
});
var TEMPLATE = String(String).split('String');
var makeBuiltIn$3 = makeBuiltIn$4.exports = function (value, name, options) {
if (stringSlice$h($String$5(name), 0, 7) === 'Symbol(') {
name = '[' + replace$d($String$5(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
}
if (options && options.getter) name = 'get ' + name;
if (options && options.setter) name = 'set ' + name;
if (!hasOwn$r(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$2 && value.name !== name)) {
if (DESCRIPTORS$G) defineProperty$e(value, 'name', { value: name, configurable: true });
else value.name = name;
}
if (CONFIGURABLE_LENGTH && options && hasOwn$r(options, 'arity') && value.length !== options.arity) {
defineProperty$e(value, 'length', { value: options.arity });
}
try {
if (options && hasOwn$r(options, 'constructor') && options.constructor) {
if (DESCRIPTORS$G) defineProperty$e(value, 'prototype', { writable: false });
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
} else if (value.prototype) value.prototype = undefined;
} catch (error) { /* empty */ }
var state = enforceInternalState$4(value);
if (!hasOwn$r(state, 'source')) {
state.source = join$8(TEMPLATE, typeof name == 'string' ? name : '');
} return value;
};
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
// eslint-disable-next-line no-extend-native -- required
Function.prototype.toString = makeBuiltIn$3(function toString() {
return isCallable$q(this) && getInternalState$a(this).source || inspectSource$2(this);
}, 'toString');
var makeBuiltInExports = makeBuiltIn$4.exports;
var isCallable$p = isCallable$y;
var definePropertyModule$a = objectDefineProperty;
var makeBuiltIn$2 = makeBuiltInExports;
var defineGlobalProperty$1 = defineGlobalProperty$3;
var defineBuiltIn$o = function (O, key, value, options) {
if (!options) options = {};
var simple = options.enumerable;
var name = options.name !== undefined ? options.name : key;
if (isCallable$p(value)) makeBuiltIn$2(value, name, options);
if (options.global) {
if (simple) O[key] = value;
else defineGlobalProperty$1(key, value);
} else {
try {
if (!options.unsafe) delete O[key];
else if (O[key]) simple = true;
} catch (error) { /* empty */ }
if (simple) O[key] = value;
else definePropertyModule$a.f(O, key, {
value: value,
enumerable: false,
configurable: !options.nonConfigurable,
writable: !options.nonWritable
});
} return O;
};
var objectGetOwnPropertyNames = {};
var ceil$1 = Math.ceil;
var floor$a = Math.floor;
// `Math.trunc` method
// https://tc39.es/ecma262/#sec-math.trunc
// eslint-disable-next-line es/no-math-trunc -- safe
var mathTrunc = Math.trunc || function trunc(x) {
var n = +x;
return (n > 0 ? floor$a : ceil$1)(n);
};
var trunc$1 = mathTrunc;
// `ToIntegerOrInfinity` abstract operation
// https://tc39.es/ecma262/#sec-tointegerorinfinity
var toIntegerOrInfinity$l = function (argument) {
var number = +argument;
// eslint-disable-next-line no-self-compare -- NaN check
return number !== number || number === 0 ? 0 : trunc$1(number);
};
var toIntegerOrInfinity$k = toIntegerOrInfinity$l;
var max$6 = Math.max;
var min$b = 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$9 = function (index, length) {
var integer = toIntegerOrInfinity$k(index);
return integer < 0 ? max$6(integer + length, 0) : min$b(integer, length);
};
var toIntegerOrInfinity$j = toIntegerOrInfinity$l;
var min$a = Math.min;
// `ToLength` abstract operation
// https://tc39.es/ecma262/#sec-tolength
var toLength$d = function (argument) {
var len = toIntegerOrInfinity$j(argument);
return len > 0 ? min$a(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
};
var toLength$c = toLength$d;
// `LengthOfArrayLike` abstract operation
// https://tc39.es/ecma262/#sec-lengthofarraylike
var lengthOfArrayLike$s = function (obj) {
return toLength$c(obj.length);
};
var toIndexedObject$h = toIndexedObject$j;
var toAbsoluteIndex$8 = toAbsoluteIndex$9;
var lengthOfArrayLike$r = lengthOfArrayLike$s;
// `Array.prototype.{ indexOf, includes }` methods implementation
var createMethod$7 = function (IS_INCLUDES) {
return function ($this, el, fromIndex) {
var O = toIndexedObject$h($this);
var length = lengthOfArrayLike$r(O);
if (length === 0) return !IS_INCLUDES && -1;
var index = toAbsoluteIndex$8(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$7(true),
// `Array.prototype.indexOf` method
// https://tc39.es/ecma262/#sec-array.prototype.indexof
indexOf: createMethod$7(false)
};
var uncurryThis$1k = functionUncurryThis;
var hasOwn$q = hasOwnProperty_1;
var toIndexedObject$g = toIndexedObject$j;
var indexOf$2 = arrayIncludes.indexOf;
var hiddenKeys$4 = hiddenKeys$6;
var push$h = uncurryThis$1k([].push);
var objectKeysInternal = function (object, names) {
var O = toIndexedObject$g(object);
var i = 0;
var result = [];
var key;
for (key in O) !hasOwn$q(hiddenKeys$4, key) && hasOwn$q(O, key) && push$h(result, key);
// Don't enum bug & hidden keys
while (names.length > i) if (hasOwn$q(O, key = names[i++])) {
~indexOf$2(result, key) || push$h(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$n = getBuiltIn$p;
var uncurryThis$1j = functionUncurryThis;
var getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames;
var getOwnPropertySymbolsModule$3 = objectGetOwnPropertySymbols;
var anObject$B = anObject$D;
var concat$3 = uncurryThis$1j([].concat);
// all object keys, includes non-enumerable and symbols
var ownKeys$4 = getBuiltIn$n('Reflect', 'ownKeys') || function ownKeys(it) {
var keys = getOwnPropertyNamesModule$2.f(anObject$B(it));
var getOwnPropertySymbols = getOwnPropertySymbolsModule$3.f;
return getOwnPropertySymbols ? concat$3(keys, getOwnPropertySymbols(it)) : keys;
};
var hasOwn$p = hasOwnProperty_1;
var ownKeys$3 = ownKeys$4;
var getOwnPropertyDescriptorModule$6 = objectGetOwnPropertyDescriptor;
var definePropertyModule$9 = objectDefineProperty;
var copyConstructorProperties$6 = function (target, source, exceptions) {
var keys = ownKeys$3(source);
var defineProperty = definePropertyModule$9.f;
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$6.f;
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
if (!hasOwn$p(target, key) && !(exceptions && hasOwn$p(exceptions, key))) {
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
}
}
};
var fails$1h = fails$1p;
var isCallable$o = isCallable$y;
var replacement = /#|\.prototype\./;
var isForced$5 = function (feature, detection) {
var value = data[normalize(feature)];
return value === POLYFILL ? true
: value === NATIVE ? false
: isCallable$o(detection) ? fails$1h(detection)
: !!detection;
};
var normalize = isForced$5.normalize = function (string) {
return String(string).replace(replacement, '.').toLowerCase();
};
var data = isForced$5.data = {};
var NATIVE = isForced$5.NATIVE = 'N';
var POLYFILL = isForced$5.POLYFILL = 'P';
var isForced_1 = isForced$5;
var global$U = global$11;
var getOwnPropertyDescriptor$8 = objectGetOwnPropertyDescriptor.f;
var createNonEnumerableProperty$d = createNonEnumerableProperty$f;
var defineBuiltIn$n = defineBuiltIn$o;
var defineGlobalProperty = defineGlobalProperty$3;
var copyConstructorProperties$5 = copyConstructorProperties$6;
var isForced$4 = 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.dontCallGetSet - 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$U;
} else if (STATIC) {
target = global$U[TARGET] || defineGlobalProperty(TARGET, {});
} else {
target = global$U[TARGET] && global$U[TARGET].prototype;
}
if (target) for (key in source) {
sourceProperty = source[key];
if (options.dontCallGetSet) {
descriptor = getOwnPropertyDescriptor$8(target, key);
targetProperty = descriptor && descriptor.value;
} else targetProperty = target[key];
FORCED = isForced$4(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
// contained in target
if (!FORCED && targetProperty !== undefined) {
if (typeof sourceProperty == typeof targetProperty) continue;
copyConstructorProperties$5(sourceProperty, targetProperty);
}
// add a flag to not completely full polyfills
if (options.sham || (targetProperty && targetProperty.sham)) {
createNonEnumerableProperty$d(sourceProperty, 'sham', true);
}
defineBuiltIn$n(target, key, sourceProperty, options);
}
};
var wellKnownSymbol$x = wellKnownSymbol$z;
var TO_STRING_TAG$4 = wellKnownSymbol$x('toStringTag');
var test$2 = {};
test$2[TO_STRING_TAG$4] = 'z';
var toStringTagSupport = String(test$2) === '[object z]';
var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
var isCallable$n = isCallable$y;
var classofRaw$1 = classofRaw$2;
var wellKnownSymbol$w = wellKnownSymbol$z;
var TO_STRING_TAG$3 = wellKnownSymbol$w('toStringTag');
var $Object$2 = Object;
// ES3 wrong here
var CORRECT_ARGUMENTS = classofRaw$1(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$n = TO_STRING_TAG_SUPPORT$2 ? classofRaw$1 : 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$1(O)
// ES3 arguments fallback
: (result = classofRaw$1(O)) === 'Object' && isCallable$n(O.callee) ? 'Arguments' : result;
};
var classof$m = classof$n;
var $String$4 = String;
var toString$C = function (argument) {
if (classof$m(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
return $String$4(argument);
};
var objectDefineProperties = {};
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$5 = Object.keys || function keys(O) {
return internalObjectKeys(O, enumBugKeys$1);
};
var DESCRIPTORS$F = descriptors;
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
var definePropertyModule$8 = objectDefineProperty;
var anObject$A = anObject$D;
var toIndexedObject$f = toIndexedObject$j;
var objectKeys$4 = objectKeys$5;
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
// eslint-disable-next-line es/no-object-defineproperties -- safe
objectDefineProperties.f = DESCRIPTORS$F && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
anObject$A(O);
var props = toIndexedObject$f(Properties);
var keys = objectKeys$4(Properties);
var length = keys.length;
var index = 0;
var key;
while (length > index) definePropertyModule$8.f(O, key = keys[index++], props[key]);
return O;
};
var getBuiltIn$m = getBuiltIn$p;
var html$2 = getBuiltIn$m('document', 'documentElement');
/* global ActiveXObject -- old IE, WSH */
var anObject$z = anObject$D;
var definePropertiesModule$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
// eslint-disable-next-line es/no-object-create -- safe
var objectCreate = Object.create || function create(O, Properties) {
var result;
if (O !== null) {
EmptyConstructor[PROTOTYPE$2] = anObject$z(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 : definePropertiesModule$1.f(result, Properties);
};
var objectGetOwnPropertyNamesExternal = {};
var uncurryThis$1i = functionUncurryThis;
var arraySlice$a = uncurryThis$1i([].slice);
/* eslint-disable es/no-object-getownpropertynames -- safe */
var classof$l = classofRaw$2;
var toIndexedObject$e = toIndexedObject$j;
var $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
var arraySlice$9 = arraySlice$a;
var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
? Object.getOwnPropertyNames(window) : [];
var getWindowNames = function (it) {
try {
return $getOwnPropertyNames$1(it);
} catch (error) {
return arraySlice$9(windowNames);
}
};
// fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
objectGetOwnPropertyNamesExternal.f = function getOwnPropertyNames(it) {
return windowNames && classof$l(it) === 'Window'
? getWindowNames(it)
: $getOwnPropertyNames$1(toIndexedObject$e(it));
};
var makeBuiltIn$1 = makeBuiltInExports;
var defineProperty$d = objectDefineProperty;
var defineBuiltInAccessor$i = function (target, name, descriptor) {
if (descriptor.get) makeBuiltIn$1(descriptor.get, name, { getter: true });
if (descriptor.set) makeBuiltIn$1(descriptor.set, name, { setter: true });
return defineProperty$d.f(target, name, descriptor);
};
var wellKnownSymbolWrapped = {};
var wellKnownSymbol$v = wellKnownSymbol$z;
wellKnownSymbolWrapped.f = wellKnownSymbol$v;
var global$T = global$11;
var path$2 = global$T;
var path$1 = path$2;
var hasOwn$o = hasOwnProperty_1;
var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped;
var defineProperty$c = objectDefineProperty.f;
var wellKnownSymbolDefine = function (NAME) {
var Symbol = path$1.Symbol || (path$1.Symbol = {});
if (!hasOwn$o(Symbol, NAME)) defineProperty$c(Symbol, NAME, {
value: wrappedWellKnownSymbolModule$1.f(NAME)
});
};
var call$B = functionCall;
var getBuiltIn$l = getBuiltIn$p;
var wellKnownSymbol$u = wellKnownSymbol$z;
var defineBuiltIn$m = defineBuiltIn$o;
var symbolDefineToPrimitive = function () {
var Symbol = getBuiltIn$l('Symbol');
var SymbolPrototype = Symbol && Symbol.prototype;
var valueOf = SymbolPrototype && SymbolPrototype.valueOf;
var TO_PRIMITIVE = wellKnownSymbol$u('toPrimitive');
if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) {
// `Symbol.prototype[@@toPrimitive]` method
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
// eslint-disable-next-line no-unused-vars -- required for .length
defineBuiltIn$m(SymbolPrototype, TO_PRIMITIVE, function (hint) {
return call$B(valueOf, this);
}, { arity: 1 });
}
};
var defineProperty$b = objectDefineProperty.f;
var hasOwn$n = hasOwnProperty_1;
var wellKnownSymbol$t = wellKnownSymbol$z;
var TO_STRING_TAG$2 = wellKnownSymbol$t('toStringTag');
var setToStringTag$e = function (target, TAG, STATIC) {
if (target && !STATIC) target = target.prototype;
if (target && !hasOwn$n(target, TO_STRING_TAG$2)) {
defineProperty$b(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
}
};
var classofRaw = classofRaw$2;
var uncurryThis$1h = functionUncurryThis;
var functionUncurryThisClause = function (fn) {
// Nashorn bug:
// https://github.com/zloirock/core-js/issues/1128
// https://github.com/zloirock/core-js/issues/1130
if (classofRaw(fn) === 'Function') return uncurryThis$1h(fn);
};
var uncurryThis$1g = functionUncurryThisClause;
var aCallable$l = aCallable$n;
var NATIVE_BIND$2 = functionBindNative;
var bind$e = uncurryThis$1g(uncurryThis$1g.bind);
// optional / simple context binding
var functionBindContext = function (fn, that) {
aCallable$l(fn);
return that === undefined ? fn : NATIVE_BIND$2 ? bind$e(fn, that) : function (/* ...args */) {
return fn.apply(that, arguments);
};
};
var classof$k = classofRaw$2;
// `IsArray` abstract operation
// https://tc39.es/ecma262/#sec-isarray
// eslint-disable-next-line es/no-array-isarray -- safe
var isArray$a = Array.isArray || function isArray(argument) {
return classof$k(argument) === 'Array';
};
var uncurryThis$1f = functionUncurryThis;
var fails$1g = fails$1p;
var isCallable$m = isCallable$y;
var classof$j = classof$n;
var getBuiltIn$k = getBuiltIn$p;
var inspectSource$1 = inspectSource$3;
var noop$1 = function () { /* empty */ };
var construct$1 = getBuiltIn$k('Reflect', 'construct');
var constructorRegExp = /^\s*(?:class|function)\b/;
var exec$9 = uncurryThis$1f(constructorRegExp.exec);
var INCORRECT_TO_STRING$2 = !constructorRegExp.test(noop$1);
var isConstructorModern = function isConstructor(argument) {
if (!isCallable$m(argument)) return false;
try {
construct$1(noop$1, [], argument);
return true;
} catch (error) {
return false;
}
};
var isConstructorLegacy = function isConstructor(argument) {
if (!isCallable$m(argument)) return false;
switch (classof$j(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$2 || !!exec$9(constructorRegExp, inspectSource$1(argument));
} catch (error) {
return true;
}
};
isConstructorLegacy.sham = true;
// `IsConstructor` abstract operation
// https://tc39.es/ecma262/#sec-isconstructor
var isConstructor$6 = !construct$1 || fails$1g(function () {
var called;
return isConstructorModern(isConstructorModern.call)
|| !isConstructorModern(Object)
|| !isConstructorModern(function () { called = true; })
|| called;
}) ? isConstructorLegacy : isConstructorModern;
var isArray$9 = isArray$a;
var isConstructor$5 = isConstructor$6;
var isObject$u = isObject$A;
var wellKnownSymbol$s = wellKnownSymbol$z;
var SPECIES$6 = wellKnownSymbol$s('species');
var $Array$9 = Array;
// a part of `ArraySpeciesCreate` abstract operation
// https://tc39.es/ecma262/#sec-arrayspeciescreate
var arraySpeciesConstructor$1 = function (originalArray) {
var C;
if (isArray$9(originalArray)) {
C = originalArray.constructor;
// cross-realm fallback
if (isConstructor$5(C) && (C === $Array$9 || isArray$9(C.prototype))) C = undefined;
else if (isObject$u(C)) {
C = C[SPECIES$6];
if (C === null) C = undefined;
}
} return C === undefined ? $Array$9 : C;
};
var arraySpeciesConstructor = arraySpeciesConstructor$1;
// `ArraySpeciesCreate` abstract operation
// https://tc39.es/ecma262/#sec-arrayspeciescreate
var arraySpeciesCreate$5 = function (originalArray, length) {
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
};
var bind$d = functionBindContext;
var uncurryThis$1e = functionUncurryThis;
var IndexedObject$4 = indexedObject;
var toObject$s = toObject$u;
var lengthOfArrayLike$q = lengthOfArrayLike$s;
var arraySpeciesCreate$4 = arraySpeciesCreate$5;
var push$g = uncurryThis$1e([].push);
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
var createMethod$6 = 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$s($this);
var self = IndexedObject$4(O);
var length = lengthOfArrayLike$q(self);
var boundFunction = bind$d(callbackfn, that);
var index = 0;
var create = specificCreate || arraySpeciesCreate$4;
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$g(target, value); // filter
} else switch (TYPE) {
case 4: return false; // every
case 7: push$g(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$6(0),
// `Array.prototype.map` method
// https://tc39.es/ecma262/#sec-array.prototype.map
map: createMethod$6(1),
// `Array.prototype.filter` method
// https://tc39.es/ecma262/#sec-array.prototype.filter
filter: createMethod$6(2),
// `Array.prototype.some` method
// https://tc39.es/ecma262/#sec-array.prototype.some
some: createMethod$6(3),
// `Array.prototype.every` method
// https://tc39.es/ecma262/#sec-array.prototype.every
every: createMethod$6(4),
// `Array.prototype.find` method
// https://tc39.es/ecma262/#sec-array.prototype.find
find: createMethod$6(5),
// `Array.prototype.findIndex` method
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
findIndex: createMethod$6(6),
// `Array.prototype.filterReject` method
// https://github.com/tc39/proposal-array-filtering
filterReject: createMethod$6(7)
};
var $$33 = _export;
var global$S = global$11;
var call$A = functionCall;
var uncurryThis$1d = functionUncurryThis;
var DESCRIPTORS$E = descriptors;
var NATIVE_SYMBOL$4 = symbolConstructorDetection;
var fails$1f = fails$1p;
var hasOwn$m = hasOwnProperty_1;
var isPrototypeOf$b = objectIsPrototypeOf;
var anObject$y = anObject$D;
var toIndexedObject$d = toIndexedObject$j;
var toPropertyKey$6 = toPropertyKey$9;
var $toString$3 = toString$C;
var createPropertyDescriptor$9 = createPropertyDescriptor$c;
var nativeObjectCreate = objectCreate;
var objectKeys$3 = objectKeys$5;
var getOwnPropertyNamesModule$1 = objectGetOwnPropertyNames;
var getOwnPropertyNamesExternal = objectGetOwnPropertyNamesExternal;
var getOwnPropertySymbolsModule$2 = objectGetOwnPropertySymbols;
var getOwnPropertyDescriptorModule$5 = objectGetOwnPropertyDescriptor;
var definePropertyModule$7 = objectDefineProperty;
var definePropertiesModule = objectDefineProperties;
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
var defineBuiltIn$l = defineBuiltIn$o;
var defineBuiltInAccessor$h = defineBuiltInAccessor$i;
var shared$3 = shared$7;
var sharedKey$1 = sharedKey$4;
var hiddenKeys$1 = hiddenKeys$6;
var uid$3 = uid$6;
var wellKnownSymbol$r = wellKnownSymbol$z;
var wrappedWellKnownSymbolModule = wellKnownSymbolWrapped;
var defineWellKnownSymbol$d = wellKnownSymbolDefine;
var defineSymbolToPrimitive$1 = symbolDefineToPrimitive;
var setToStringTag$d = setToStringTag$e;
var InternalStateModule$c = internalState;
var $forEach$2 = arrayIteration.forEach;
var HIDDEN = sharedKey$1('hidden');
var SYMBOL = 'Symbol';
var PROTOTYPE$1 = 'prototype';
var setInternalState$b = InternalStateModule$c.set;
var getInternalState$9 = InternalStateModule$c.getterFor(SYMBOL);
var ObjectPrototype$5 = Object[PROTOTYPE$1];
var $Symbol = global$S.Symbol;
var SymbolPrototype$1 = $Symbol && $Symbol[PROTOTYPE$1];
var RangeError$4 = global$S.RangeError;
var TypeError$8 = global$S.TypeError;
var QObject = global$S.QObject;
var nativeGetOwnPropertyDescriptor$2 = getOwnPropertyDescriptorModule$5.f;
var nativeDefineProperty$1 = definePropertyModule$7.f;
var nativeGetOwnPropertyNames = getOwnPropertyNamesExternal.f;
var nativePropertyIsEnumerable = propertyIsEnumerableModule$1.f;
var push$f = uncurryThis$1d([].push);
var AllSymbols = shared$3('symbols');
var ObjectPrototypeSymbols = shared$3('op-symbols');
var WellKnownSymbolsStore = shared$3('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 fallbackDefineProperty = function (O, P, Attributes) {
var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$2(ObjectPrototype$5, P);
if (ObjectPrototypeDescriptor) delete ObjectPrototype$5[P];
nativeDefineProperty$1(O, P, Attributes);
if (ObjectPrototypeDescriptor && O !== ObjectPrototype$5) {
nativeDefineProperty$1(ObjectPrototype$5, P, ObjectPrototypeDescriptor);
}
};
var setSymbolDescriptor = DESCRIPTORS$E && fails$1f(function () {
return nativeObjectCreate(nativeDefineProperty$1({}, 'a', {
get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
})).a !== 7;
}) ? fallbackDefineProperty : nativeDefineProperty$1;
var wrap = function (tag, description) {
var symbol = AllSymbols[tag] = nativeObjectCreate(SymbolPrototype$1);
setInternalState$b(symbol, {
type: SYMBOL,
tag: tag,
description: description
});
if (!DESCRIPTORS$E) symbol.description = description;
return symbol;
};
var $defineProperty = function defineProperty(O, P, Attributes) {
if (O === ObjectPrototype$5) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
anObject$y(O);
var key = toPropertyKey$6(P);
anObject$y(Attributes);
if (hasOwn$m(AllSymbols, key)) {
if (!Attributes.enumerable) {
if (!hasOwn$m(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor$9(1, nativeObjectCreate(null)));
O[HIDDEN][key] = true;
} else {
if (hasOwn$m(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
Attributes = nativeObjectCreate(Attributes, { enumerable: createPropertyDescriptor$9(0, false) });
} return setSymbolDescriptor(O, key, Attributes);
} return nativeDefineProperty$1(O, key, Attributes);
};
var $defineProperties = function defineProperties(O, Properties) {
anObject$y(O);
var properties = toIndexedObject$d(Properties);
var keys = objectKeys$3(properties).concat($getOwnPropertySymbols(properties));
$forEach$2(keys, function (key) {
if (!DESCRIPTORS$E || call$A($propertyIsEnumerable$1, 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$1 = function propertyIsEnumerable(V) {
var P = toPropertyKey$6(V);
var enumerable = call$A(nativePropertyIsEnumerable, this, P);
if (this === ObjectPrototype$5 && hasOwn$m(AllSymbols, P) && !hasOwn$m(ObjectPrototypeSymbols, P)) return false;
return enumerable || !hasOwn$m(this, P) || !hasOwn$m(AllSymbols, P) || hasOwn$m(this, HIDDEN) && this[HIDDEN][P]
? enumerable : true;
};
var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
var it = toIndexedObject$d(O);
var key = toPropertyKey$6(P);
if (it === ObjectPrototype$5 && hasOwn$m(AllSymbols, key) && !hasOwn$m(ObjectPrototypeSymbols, key)) return;
var descriptor = nativeGetOwnPropertyDescriptor$2(it, key);
if (descriptor && hasOwn$m(AllSymbols, key) && !(hasOwn$m(it, HIDDEN) && it[HIDDEN][key])) {
descriptor.enumerable = true;
}
return descriptor;
};
var $getOwnPropertyNames = function getOwnPropertyNames(O) {
var names = nativeGetOwnPropertyNames(toIndexedObject$d(O));
var result = [];
$forEach$2(names, function (key) {
if (!hasOwn$m(AllSymbols, key) && !hasOwn$m(hiddenKeys$1, key)) push$f(result, key);
});
return result;
};
var $getOwnPropertySymbols = function (O) {
var IS_OBJECT_PROTOTYPE = O === ObjectPrototype$5;
var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject$d(O));
var result = [];
$forEach$2(names, function (key) {
if (hasOwn$m(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || hasOwn$m(ObjectPrototype$5, key))) {
push$f(result, AllSymbols[key]);
}
});
return result;
};
// `Symbol` constructor
// https://tc39.es/ecma262/#sec-symbol-constructor
if (!NATIVE_SYMBOL$4) {
$Symbol = function Symbol() {
if (isPrototypeOf$b(SymbolPrototype$1, this)) throw new TypeError$8('Symbol is not a constructor');
var description = !arguments.length || arguments[0] === undefined ? undefined : $toString$3(arguments[0]);
var tag = uid$3(description);
var setter = function (value) {
var $this = this === undefined ? global$S : this;
if ($this === ObjectPrototype$5) call$A(setter, ObjectPrototypeSymbols, value);
if (hasOwn$m($this, HIDDEN) && hasOwn$m($this[HIDDEN], tag)) $this[HIDDEN][tag] = false;
var descriptor = createPropertyDescriptor$9(1, value);
try {
setSymbolDescriptor($this, tag, descriptor);
} catch (error) {
if (!(error instanceof RangeError$4)) throw error;
fallbackDefineProperty($this, tag, descriptor);
}
};
if (DESCRIPTORS$E && USE_SETTER) setSymbolDescriptor(ObjectPrototype$5, tag, { configurable: true, set: setter });
return wrap(tag, description);
};
SymbolPrototype$1 = $Symbol[PROTOTYPE$1];
defineBuiltIn$l(SymbolPrototype$1, 'toString', function toString() {
return getInternalState$9(this).tag;
});
defineBuiltIn$l($Symbol, 'withoutSetter', function (description) {
return wrap(uid$3(description), description);
});
propertyIsEnumerableModule$1.f = $propertyIsEnumerable$1;
definePropertyModule$7.f = $defineProperty;
definePropertiesModule.f = $defineProperties;
getOwnPropertyDescriptorModule$5.f = $getOwnPropertyDescriptor;
getOwnPropertyNamesModule$1.f = getOwnPropertyNamesExternal.f = $getOwnPropertyNames;
getOwnPropertySymbolsModule$2.f = $getOwnPropertySymbols;
wrappedWellKnownSymbolModule.f = function (name) {
return wrap(wellKnownSymbol$r(name), name);
};
if (DESCRIPTORS$E) {
// https://github.com/tc39/proposal-Symbol-description
defineBuiltInAccessor$h(SymbolPrototype$1, 'description', {
configurable: true,
get: function description() {
return getInternalState$9(this).description;
}
});
{
defineBuiltIn$l(ObjectPrototype$5, 'propertyIsEnumerable', $propertyIsEnumerable$1, { unsafe: true });
}
}
}
$$33({ global: true, constructor: true, wrap: true, forced: !NATIVE_SYMBOL$4, sham: !NATIVE_SYMBOL$4 }, {
Symbol: $Symbol
});
$forEach$2(objectKeys$3(WellKnownSymbolsStore), function (name) {
defineWellKnownSymbol$d(name);
});
$$33({ target: SYMBOL, stat: true, forced: !NATIVE_SYMBOL$4 }, {
useSetter: function () { USE_SETTER = true; },
useSimple: function () { USE_SETTER = false; }
});
$$33({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$4, sham: !DESCRIPTORS$E }, {
// `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
});
$$33({ target: 'Object', stat: true, forced: !NATIVE_SYMBOL$4 }, {
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
getOwnPropertyNames: $getOwnPropertyNames
});
// `Symbol.prototype[@@toPrimitive]` method
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
defineSymbolToPrimitive$1();
// `Symbol.prototype[@@toStringTag]` property
// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
setToStringTag$d($Symbol, SYMBOL);
hiddenKeys$1[HIDDEN] = true;
var NATIVE_SYMBOL$3 = symbolConstructorDetection;
/* eslint-disable es/no-symbol -- safe */
var symbolRegistryDetection = NATIVE_SYMBOL$3 && !!Symbol['for'] && !!Symbol.keyFor;
var $$32 = _export;
var getBuiltIn$j = getBuiltIn$p;
var hasOwn$l = hasOwnProperty_1;
var toString$B = toString$C;
var shared$2 = shared$7;
var NATIVE_SYMBOL_REGISTRY$1 = symbolRegistryDetection;
var StringToSymbolRegistry = shared$2('string-to-symbol-registry');
var SymbolToStringRegistry$1 = shared$2('symbol-to-string-registry');
// `Symbol.for` method
// https://tc39.es/ecma262/#sec-symbol.for
$$32({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY$1 }, {
'for': function (key) {
var string = toString$B(key);
if (hasOwn$l(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
var symbol = getBuiltIn$j('Symbol')(string);
StringToSymbolRegistry[string] = symbol;
SymbolToStringRegistry$1[symbol] = string;
return symbol;
}
});
var $$31 = _export;
var hasOwn$k = hasOwnProperty_1;
var isSymbol$4 = isSymbol$7;
var tryToString$5 = tryToString$7;
var shared$1 = shared$7;
var NATIVE_SYMBOL_REGISTRY = symbolRegistryDetection;
var SymbolToStringRegistry = shared$1('symbol-to-string-registry');
// `Symbol.keyFor` method
// https://tc39.es/ecma262/#sec-symbol.keyfor
$$31({ target: 'Symbol', stat: true, forced: !NATIVE_SYMBOL_REGISTRY }, {
keyFor: function keyFor(sym) {
if (!isSymbol$4(sym)) throw new TypeError(tryToString$5(sym) + ' is not a symbol');
if (hasOwn$k(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
}
});
var NATIVE_BIND$1 = functionBindNative;
var FunctionPrototype$2 = Function.prototype;
var apply$a = FunctionPrototype$2.apply;
var call$z = FunctionPrototype$2.call;
// eslint-disable-next-line es/no-reflect -- safe
var functionApply$1 = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$z.bind(apply$a) : function () {
return call$z.apply(apply$a, arguments);
});
var uncurryThis$1c = functionUncurryThis;
var isArray$8 = isArray$a;
var isCallable$l = isCallable$y;
var classof$i = classofRaw$2;
var toString$A = toString$C;
var push$e = uncurryThis$1c([].push);
var getJsonReplacerFunction = function (replacer) {
if (isCallable$l(replacer)) return replacer;
if (!isArray$8(replacer)) return;
var rawLength = replacer.length;
var keys = [];
for (var i = 0; i < rawLength; i++) {
var element = replacer[i];
if (typeof element == 'string') push$e(keys, element);
else if (typeof element == 'number' || classof$i(element) === 'Number' || classof$i(element) === 'String') push$e(keys, toString$A(element));
}
var keysLength = keys.length;
var root = true;
return function (key, value) {
if (root) {
root = false;
return value;
}
if (isArray$8(this)) return value;
for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
};
};
var $$30 = _export;
var getBuiltIn$i = getBuiltIn$p;
var apply$9 = functionApply$1;
var call$y = functionCall;
var uncurryThis$1b = functionUncurryThis;
var fails$1e = fails$1p;
var isCallable$k = isCallable$y;
var isSymbol$3 = isSymbol$7;
var arraySlice$8 = arraySlice$a;
var getReplacerFunction = getJsonReplacerFunction;
var NATIVE_SYMBOL$2 = symbolConstructorDetection;
var $String$3 = String;
var $stringify = getBuiltIn$i('JSON', 'stringify');
var exec$8 = uncurryThis$1b(/./.exec);
var charAt$f = uncurryThis$1b(''.charAt);
var charCodeAt$7 = uncurryThis$1b(''.charCodeAt);
var replace$c = uncurryThis$1b(''.replace);
var numberToString$2 = uncurryThis$1b(1.0.toString);
var tester = /[\uD800-\uDFFF]/g;
var low = /^[\uD800-\uDBFF]$/;
var hi = /^[\uDC00-\uDFFF]$/;
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL$2 || fails$1e(function () {
var symbol = getBuiltIn$i('Symbol')('stringify detection');
// 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)) !== '{}';
});
// https://github.com/tc39/proposal-well-formed-stringify
var ILL_FORMED_UNICODE = fails$1e(function () {
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|| $stringify('\uDEAD') !== '"\\udead"';
});
var stringifyWithSymbolsFix = function (it, replacer) {
var args = arraySlice$8(arguments);
var $replacer = getReplacerFunction(replacer);
if (!isCallable$k($replacer) && (it === undefined || isSymbol$3(it))) return; // IE8 returns string on undefined
args[1] = function (key, value) {
// some old implementations (like WebKit) could pass numbers as keys
if (isCallable$k($replacer)) value = call$y($replacer, this, $String$3(key), value);
if (!isSymbol$3(value)) return value;
};
return apply$9($stringify, null, args);
};
var fixIllFormed = function (match, offset, string) {
var prev = charAt$f(string, offset - 1);
var next = charAt$f(string, offset + 1);
if ((exec$8(low, match) && !exec$8(hi, next)) || (exec$8(hi, match) && !exec$8(low, prev))) {
return '\\u' + numberToString$2(charCodeAt$7(match, 0), 16);
} return match;
};
if ($stringify) {
// `JSON.stringify` method
// https://tc39.es/ecma262/#sec-json.stringify
$$30({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
stringify: function stringify(it, replacer, space) {
var args = arraySlice$8(arguments);
var result = apply$9(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$c(result, tester, fixIllFormed) : result;
}
});
}
var $$2$ = _export;
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
var fails$1d = fails$1p;
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
var toObject$r = toObject$u;
// V8 ~ Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
// https://bugs.chromium.org/p/v8/issues/detail?id=3443
var FORCED$E = !NATIVE_SYMBOL$1 || fails$1d(function () { getOwnPropertySymbolsModule$1.f(1); });
// `Object.getOwnPropertySymbols` method
// https://tc39.es/ecma262/#sec-object.getownpropertysymbols
$$2$({ target: 'Object', stat: true, forced: FORCED$E }, {
getOwnPropertySymbols: function getOwnPropertySymbols(it) {
var $getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject$r(it)) : [];
}
});
var $$2_ = _export;
var DESCRIPTORS$D = descriptors;
var global$R = global$11;
var uncurryThis$1a = functionUncurryThis;
var hasOwn$j = hasOwnProperty_1;
var isCallable$j = isCallable$y;
var isPrototypeOf$a = objectIsPrototypeOf;
var toString$z = toString$C;
var defineBuiltInAccessor$g = defineBuiltInAccessor$i;
var copyConstructorProperties$4 = copyConstructorProperties$6;
var NativeSymbol = global$R.Symbol;
var SymbolPrototype = NativeSymbol && NativeSymbol.prototype;
if (DESCRIPTORS$D && isCallable$j(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$z(arguments[0]);
var result = isPrototypeOf$a(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$4(SymbolWrapper, NativeSymbol);
SymbolWrapper.prototype = SymbolPrototype;
SymbolPrototype.constructor = SymbolWrapper;
var NATIVE_SYMBOL = String(NativeSymbol('description detection')) === 'Symbol(description detection)';
var thisSymbolValue = uncurryThis$1a(SymbolPrototype.valueOf);
var symbolDescriptiveString = uncurryThis$1a(SymbolPrototype.toString);
var regexp = /^Symbol\((.*)\)[^)]+$/;
var replace$b = uncurryThis$1a(''.replace);
var stringSlice$g = uncurryThis$1a(''.slice);
defineBuiltInAccessor$g(SymbolPrototype, 'description', {
configurable: true,
get: function description() {
var symbol = thisSymbolValue(this);
if (hasOwn$j(EmptyStringDescriptionStore, symbol)) return '';
var string = symbolDescriptiveString(symbol);
var desc = NATIVE_SYMBOL ? stringSlice$g(string, 7, -1) : replace$b(string, regexp, '$1');
return desc === '' ? undefined : desc;
}
});
$$2_({ global: true, constructor: true, forced: true }, {
Symbol: SymbolWrapper
});
}
var defineWellKnownSymbol$c = wellKnownSymbolDefine;
// `Symbol.asyncIterator` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.asynciterator
defineWellKnownSymbol$c('asyncIterator');
var defineWellKnownSymbol$b = wellKnownSymbolDefine;
// `Symbol.hasInstance` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.hasinstance
defineWellKnownSymbol$b('hasInstance');
var defineWellKnownSymbol$a = wellKnownSymbolDefine;
// `Symbol.isConcatSpreadable` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.isconcatspreadable
defineWellKnownSymbol$a('isConcatSpreadable');
var defineWellKnownSymbol$9 = wellKnownSymbolDefine;
// `Symbol.iterator` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.iterator
defineWellKnownSymbol$9('iterator');
var defineWellKnownSymbol$8 = wellKnownSymbolDefine;
// `Symbol.match` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.match
defineWellKnownSymbol$8('match');
var defineWellKnownSymbol$7 = wellKnownSymbolDefine;
// `Symbol.matchAll` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.matchall
defineWellKnownSymbol$7('matchAll');
var defineWellKnownSymbol$6 = wellKnownSymbolDefine;
// `Symbol.replace` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.replace
defineWellKnownSymbol$6('replace');
var defineWellKnownSymbol$5 = wellKnownSymbolDefine;
// `Symbol.search` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.search
defineWellKnownSymbol$5('search');
var defineWellKnownSymbol$4 = wellKnownSymbolDefine;
// `Symbol.species` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.species
defineWellKnownSymbol$4('species');
var defineWellKnownSymbol$3 = wellKnownSymbolDefine;
// `Symbol.split` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.split
defineWellKnownSymbol$3('split');
var defineWellKnownSymbol$2 = wellKnownSymbolDefine;
var defineSymbolToPrimitive = symbolDefineToPrimitive;
// `Symbol.toPrimitive` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.toprimitive
defineWellKnownSymbol$2('toPrimitive');
// `Symbol.prototype[@@toPrimitive]` method
// https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
defineSymbolToPrimitive();
var getBuiltIn$h = getBuiltIn$p;
var defineWellKnownSymbol$1 = wellKnownSymbolDefine;
var setToStringTag$c = setToStringTag$e;
// `Symbol.toStringTag` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.tostringtag
defineWellKnownSymbol$1('toStringTag');
// `Symbol.prototype[@@toStringTag]` property
// https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
setToStringTag$c(getBuiltIn$h('Symbol'), 'Symbol');
var defineWellKnownSymbol = wellKnownSymbolDefine;
// `Symbol.unscopables` well-known symbol
// https://tc39.es/ecma262/#sec-symbol.unscopables
defineWellKnownSymbol('unscopables');
var uncurryThis$19 = functionUncurryThis;
var aCallable$k = aCallable$n;
var functionUncurryThisAccessor = function (object, key, method) {
try {
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
return uncurryThis$19(aCallable$k(Object.getOwnPropertyDescriptor(object, key)[method]));
} catch (error) { /* empty */ }
};
var isObject$t = isObject$A;
var isPossiblePrototype$2 = function (argument) {
return isObject$t(argument) || argument === null;
};
var isPossiblePrototype$1 = isPossiblePrototype$2;
var $String$2 = String;
var $TypeError$k = TypeError;
var aPossiblePrototype$2 = function (argument) {
if (isPossiblePrototype$1(argument)) return argument;
throw new $TypeError$k("Can't set " + $String$2(argument) + ' as a prototype');
};
/* eslint-disable no-proto -- safe */
var uncurryThisAccessor$2 = functionUncurryThisAccessor;
var anObject$x = anObject$D;
var aPossiblePrototype$1 = aPossiblePrototype$2;
// `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$1 = Object.setPrototypeOf || ('__proto__' in {} ? function () {
var CORRECT_SETTER = false;
var test = {};
var setter;
try {
setter = uncurryThisAccessor$2(Object.prototype, '__proto__', 'set');
setter(test, []);
CORRECT_SETTER = test instanceof Array;
} catch (error) { /* empty */ }
return function setPrototypeOf(O, proto) {
anObject$x(O);
aPossiblePrototype$1(proto);
if (CORRECT_SETTER) setter(O, proto);
else O.__proto__ = proto;
return O;
};
}() : undefined);
var defineProperty$a = objectDefineProperty.f;
var proxyAccessor$2 = function (Target, Source, key) {
key in Target || defineProperty$a(Target, key, {
configurable: true,
get: function () { return Source[key]; },
set: function (it) { Source[key] = it; }
});
};
var isCallable$i = isCallable$y;
var isObject$s = isObject$A;
var setPrototypeOf$9 = objectSetPrototypeOf$1;
// makes subclassing work correct for wrapped built-ins
var inheritIfRequired$7 = function ($this, dummy, Wrapper) {
var NewTarget, NewTargetPrototype;
if (
// it can work only with native `setPrototypeOf`
setPrototypeOf$9 &&
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
isCallable$i(NewTarget = dummy.constructor) &&
NewTarget !== Wrapper &&
isObject$s(NewTargetPrototype = NewTarget.prototype) &&
NewTargetPrototype !== Wrapper.prototype
) setPrototypeOf$9($this, NewTargetPrototype);
return $this;
};
var toString$y = toString$C;
var normalizeStringArgument$5 = function (argument, $default) {
return argument === undefined ? arguments.length < 2 ? '' : $default : toString$y(argument);
};
var isObject$r = isObject$A;
var createNonEnumerableProperty$c = createNonEnumerableProperty$f;
// `InstallErrorCause` abstract operation
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
var installErrorCause$2 = function (O, options) {
if (isObject$r(options) && 'cause' in options) {
createNonEnumerableProperty$c(O, 'cause', options.cause);
}
};
var uncurryThis$18 = functionUncurryThis;
var $Error$1 = Error;
var replace$a = uncurryThis$18(''.replace);
var TEST = (function (arg) { return String(new $Error$1(arg).stack); })('zxcasd');
// eslint-disable-next-line redos/no-vulnerable -- safe
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
var errorStackClear = function (stack, dropEntries) {
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error$1.prepareStackTrace) {
while (dropEntries--) stack = replace$a(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
} return stack;
};
var fails$1c = fails$1p;
var createPropertyDescriptor$8 = createPropertyDescriptor$c;
var errorStackInstallable = !fails$1c(function () {
var error = new Error('a');
if (!('stack' in error)) return true;
// eslint-disable-next-line es/no-object-defineproperty -- safe
Object.defineProperty(error, 'stack', createPropertyDescriptor$8(1, 7));
return error.stack !== 7;
});
var createNonEnumerableProperty$b = createNonEnumerableProperty$f;
var clearErrorStack$2 = errorStackClear;
var ERROR_STACK_INSTALLABLE$1 = errorStackInstallable;
// non-standard V8
var captureStackTrace = Error.captureStackTrace;
var errorStackInstall = function (error, C, stack, dropEntries) {
if (ERROR_STACK_INSTALLABLE$1) {
if (captureStackTrace) captureStackTrace(error, C);
else createNonEnumerableProperty$b(error, 'stack', clearErrorStack$2(stack, dropEntries));
}
};
var getBuiltIn$g = getBuiltIn$p;
var hasOwn$i = hasOwnProperty_1;
var createNonEnumerableProperty$a = createNonEnumerableProperty$f;
var isPrototypeOf$9 = objectIsPrototypeOf;
var setPrototypeOf$8 = objectSetPrototypeOf$1;
var copyConstructorProperties$3 = copyConstructorProperties$6;
var proxyAccessor$1 = proxyAccessor$2;
var inheritIfRequired$6 = inheritIfRequired$7;
var normalizeStringArgument$4 = normalizeStringArgument$5;
var installErrorCause$1 = installErrorCause$2;
var installErrorStack$1 = errorStackInstall;
var DESCRIPTORS$C = descriptors;
var wrapErrorConstructorWithCause$2 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
var STACK_TRACE_LIMIT = 'stackTraceLimit';
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
var path = FULL_NAME.split('.');
var ERROR_NAME = path[path.length - 1];
var OriginalError = getBuiltIn$g.apply(null, path);
if (!OriginalError) return;
var OriginalErrorPrototype = OriginalError.prototype;
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
if (hasOwn$i(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
if (!FORCED) return OriginalError;
var BaseError = getBuiltIn$g('Error');
var WrappedError = wrapper(function (a, b) {
var message = normalizeStringArgument$4(IS_AGGREGATE_ERROR ? b : a, undefined);
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
if (message !== undefined) createNonEnumerableProperty$a(result, 'message', message);
installErrorStack$1(result, WrappedError, result.stack, 2);
if (this && isPrototypeOf$9(OriginalErrorPrototype, this)) inheritIfRequired$6(result, this, WrappedError);
if (arguments.length > OPTIONS_POSITION) installErrorCause$1(result, arguments[OPTIONS_POSITION]);
return result;
});
WrappedError.prototype = OriginalErrorPrototype;
if (ERROR_NAME !== 'Error') {
if (setPrototypeOf$8) setPrototypeOf$8(WrappedError, BaseError);
else copyConstructorProperties$3(WrappedError, BaseError, { name: true });
} else if (DESCRIPTORS$C && STACK_TRACE_LIMIT in OriginalError) {
proxyAccessor$1(WrappedError, OriginalError, STACK_TRACE_LIMIT);
proxyAccessor$1(WrappedError, OriginalError, 'prepareStackTrace');
}
copyConstructorProperties$3(WrappedError, OriginalError);
try {
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
if (OriginalErrorPrototype.name !== ERROR_NAME) {
createNonEnumerableProperty$a(OriginalErrorPrototype, 'name', ERROR_NAME);
}
OriginalErrorPrototype.constructor = WrappedError;
} catch (error) { /* empty */ }
return WrappedError;
};
/* eslint-disable no-unused-vars -- required for functions `.length` */
var $$2Z = _export;
var global$Q = global$11;
var apply$8 = functionApply$1;
var wrapErrorConstructorWithCause$1 = wrapErrorConstructorWithCause$2;
var WEB_ASSEMBLY = 'WebAssembly';
var WebAssembly = global$Q[WEB_ASSEMBLY];
// eslint-disable-next-line es/no-error-cause -- feature detection
var FORCED$D = new Error('e', { cause: 7 }).cause !== 7;
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
var O = {};
O[ERROR_NAME] = wrapErrorConstructorWithCause$1(ERROR_NAME, wrapper, FORCED$D);
$$2Z({ global: true, constructor: true, arity: 1, forced: FORCED$D }, O);
};
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
if (WebAssembly && WebAssembly[ERROR_NAME]) {
var O = {};
O[ERROR_NAME] = wrapErrorConstructorWithCause$1(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$D);
$$2Z({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$D }, O);
}
};
// https://tc39.es/ecma262/#sec-nativeerror
exportGlobalErrorCauseWrapper('Error', function (init) {
return function Error(message) { return apply$8(init, this, arguments); };
});
exportGlobalErrorCauseWrapper('EvalError', function (init) {
return function EvalError(message) { return apply$8(init, this, arguments); };
});
exportGlobalErrorCauseWrapper('RangeError', function (init) {
return function RangeError(message) { return apply$8(init, this, arguments); };
});
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
return function ReferenceError(message) { return apply$8(init, this, arguments); };
});
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
return function SyntaxError(message) { return apply$8(init, this, arguments); };
});
exportGlobalErrorCauseWrapper('TypeError', function (init) {
return function TypeError(message) { return apply$8(init, this, arguments); };
});
exportGlobalErrorCauseWrapper('URIError', function (init) {
return function URIError(message) { return apply$8(init, this, arguments); };
});
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
return function CompileError(message) { return apply$8(init, this, arguments); };
});
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
return function LinkError(message) { return apply$8(init, this, arguments); };
});
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
return function RuntimeError(message) { return apply$8(init, this, arguments); };
});
var DESCRIPTORS$B = descriptors;
var fails$1b = fails$1p;
var anObject$w = anObject$D;
var normalizeStringArgument$3 = normalizeStringArgument$5;
var nativeErrorToString = Error.prototype.toString;
var INCORRECT_TO_STRING$1 = fails$1b(function () {
if (DESCRIPTORS$B) {
// Chrome 32- incorrectly call accessor
// eslint-disable-next-line es/no-object-create, es/no-object-defineproperty -- safe
var object = Object.create(Object.defineProperty({}, 'name', { get: function () {
return this === object;
} }));
if (nativeErrorToString.call(object) !== 'true') return true;
}
// FF10- does not properly handle non-strings
return nativeErrorToString.call({ message: 1, name: 2 }) !== '2: 1'
// IE8 does not properly handle defaults
|| nativeErrorToString.call({}) !== 'Error';
});
var errorToString$2 = INCORRECT_TO_STRING$1 ? function toString() {
var O = anObject$w(this);
var name = normalizeStringArgument$3(O.name, 'Error');
var message = normalizeStringArgument$3(O.message);
return !name ? message : !message ? name : name + ': ' + message;
} : nativeErrorToString;
var defineBuiltIn$k = defineBuiltIn$o;
var errorToString$1 = errorToString$2;
var ErrorPrototype$1 = Error.prototype;
// `Error.prototype.toString` method fix
// https://tc39.es/ecma262/#sec-error.prototype.tostring
if (ErrorPrototype$1.toString !== errorToString$1) {
defineBuiltIn$k(ErrorPrototype$1, 'toString', errorToString$1);
}
var fails$1a = fails$1p;
var correctPrototypeGetter = !fails$1a(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 hasOwn$h = hasOwnProperty_1;
var isCallable$h = isCallable$y;
var toObject$q = toObject$u;
var sharedKey = sharedKey$4;
var CORRECT_PROTOTYPE_GETTER$2 = correctPrototypeGetter;
var IE_PROTO = sharedKey('IE_PROTO');
var $Object$1 = Object;
var ObjectPrototype$4 = $Object$1.prototype;
// `Object.getPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.getprototypeof
// eslint-disable-next-line es/no-object-getprototypeof -- safe
var objectGetPrototypeOf$2 = CORRECT_PROTOTYPE_GETTER$2 ? $Object$1.getPrototypeOf : function (O) {
var object = toObject$q(O);
if (hasOwn$h(object, IE_PROTO)) return object[IE_PROTO];
var constructor = object.constructor;
if (isCallable$h(constructor) && object instanceof constructor) {
return constructor.prototype;
} return object instanceof $Object$1 ? ObjectPrototype$4 : null;
};
var iterators = {};
var wellKnownSymbol$q = wellKnownSymbol$z;
var Iterators$4 = iterators;
var ITERATOR$a = wellKnownSymbol$q('iterator');
var ArrayPrototype$1 = Array.prototype;
// check on default Array iterator
var isArrayIteratorMethod$3 = function (it) {
return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$a] === it);
};
var classof$h = classof$n;
var getMethod$7 = getMethod$9;
var isNullOrUndefined$b = isNullOrUndefined$e;
var Iterators$3 = iterators;
var wellKnownSymbol$p = wellKnownSymbol$z;
var ITERATOR$9 = wellKnownSymbol$p('iterator');
var getIteratorMethod$5 = function (it) {
if (!isNullOrUndefined$b(it)) return getMethod$7(it, ITERATOR$9)
|| getMethod$7(it, '@@iterator')
|| Iterators$3[classof$h(it)];
};
var call$x = functionCall;
var aCallable$j = aCallable$n;
var anObject$v = anObject$D;
var tryToString$4 = tryToString$7;
var getIteratorMethod$4 = getIteratorMethod$5;
var $TypeError$j = TypeError;
var getIterator$4 = function (argument, usingIterator) {
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$4(argument) : usingIterator;
if (aCallable$j(iteratorMethod)) return anObject$v(call$x(iteratorMethod, argument));
throw new $TypeError$j(tryToString$4(argument) + ' is not iterable');
};
var call$w = functionCall;
var anObject$u = anObject$D;
var getMethod$6 = getMethod$9;
var iteratorClose$2 = function (iterator, kind, value) {
var innerResult, innerError;
anObject$u(iterator);
try {
innerResult = getMethod$6(iterator, 'return');
if (!innerResult) {
if (kind === 'throw') throw value;
return value;
}
innerResult = call$w(innerResult, iterator);
} catch (error) {
innerError = true;
innerResult = error;
}
if (kind === 'throw') throw value;
if (innerError) throw innerResult;
anObject$u(innerResult);
return value;
};
var bind$c = functionBindContext;
var call$v = functionCall;
var anObject$t = anObject$D;
var tryToString$3 = tryToString$7;
var isArrayIteratorMethod$2 = isArrayIteratorMethod$3;
var lengthOfArrayLike$p = lengthOfArrayLike$s;
var isPrototypeOf$8 = objectIsPrototypeOf;
var getIterator$3 = getIterator$4;
var getIteratorMethod$3 = getIteratorMethod$5;
var iteratorClose$1 = iteratorClose$2;
var $TypeError$i = TypeError;
var Result = function (stopped, result) {
this.stopped = stopped;
this.result = result;
};
var ResultPrototype = Result.prototype;
var iterate$c = function (iterable, unboundFunction, options) {
var that = options && options.that;
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
var IS_RECORD = !!(options && options.IS_RECORD);
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
var INTERRUPTED = !!(options && options.INTERRUPTED);
var fn = bind$c(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$t(value);
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
} return INTERRUPTED ? fn(value, stop) : fn(value);
};
if (IS_RECORD) {
iterator = iterable.iterator;
} else if (IS_ITERATOR) {
iterator = iterable;
} else {
iterFn = getIteratorMethod$3(iterable);
if (!iterFn) throw new $TypeError$i(tryToString$3(iterable) + ' is not iterable');
// optimisation for array iterators
if (isArrayIteratorMethod$2(iterFn)) {
for (index = 0, length = lengthOfArrayLike$p(iterable); length > index; index++) {
result = callFn(iterable[index]);
if (result && isPrototypeOf$8(ResultPrototype, result)) return result;
} return new Result(false);
}
iterator = getIterator$3(iterable, iterFn);
}
next = IS_RECORD ? iterable.next : iterator.next;
while (!(step = call$v(next, iterator)).done) {
try {
result = callFn(step.value);
} catch (error) {
iteratorClose$1(iterator, 'throw', error);
}
if (typeof result == 'object' && result && isPrototypeOf$8(ResultPrototype, result)) return result;
} return new Result(false);
};
var $$2Y = _export;
var isPrototypeOf$7 = objectIsPrototypeOf;
var getPrototypeOf$9 = objectGetPrototypeOf$2;
var setPrototypeOf$7 = objectSetPrototypeOf$1;
var copyConstructorProperties$2 = copyConstructorProperties$6;
var create$b = objectCreate;
var createNonEnumerableProperty$9 = createNonEnumerableProperty$f;
var createPropertyDescriptor$7 = createPropertyDescriptor$c;
var installErrorCause = installErrorCause$2;
var installErrorStack = errorStackInstall;
var iterate$b = iterate$c;
var normalizeStringArgument$2 = normalizeStringArgument$5;
var wellKnownSymbol$o = wellKnownSymbol$z;
var TO_STRING_TAG$1 = wellKnownSymbol$o('toStringTag');
var $Error = Error;
var push$d = [].push;
var $AggregateError$1 = function AggregateError(errors, message /* , options */) {
var isInstance = isPrototypeOf$7(AggregateErrorPrototype, this);
var that;
if (setPrototypeOf$7) {
that = setPrototypeOf$7(new $Error(), isInstance ? getPrototypeOf$9(this) : AggregateErrorPrototype);
} else {
that = isInstance ? this : create$b(AggregateErrorPrototype);
createNonEnumerableProperty$9(that, TO_STRING_TAG$1, 'Error');
}
if (message !== undefined) createNonEnumerableProperty$9(that, 'message', normalizeStringArgument$2(message));
installErrorStack(that, $AggregateError$1, that.stack, 1);
if (arguments.length > 2) installErrorCause(that, arguments[2]);
var errorsArray = [];
iterate$b(errors, push$d, { that: errorsArray });
createNonEnumerableProperty$9(that, 'errors', errorsArray);
return that;
};
if (setPrototypeOf$7) setPrototypeOf$7($AggregateError$1, $Error);
else copyConstructorProperties$2($AggregateError$1, $Error, { name: true });
var AggregateErrorPrototype = $AggregateError$1.prototype = create$b($Error.prototype, {
constructor: createPropertyDescriptor$7(1, $AggregateError$1),
message: createPropertyDescriptor$7(1, ''),
name: createPropertyDescriptor$7(1, 'AggregateError')
});
// `AggregateError` constructor
// https://tc39.es/ecma262/#sec-aggregate-error-constructor
$$2Y({ global: true, constructor: true, arity: 2 }, {
AggregateError: $AggregateError$1
});
var $$2X = _export;
var getBuiltIn$f = getBuiltIn$p;
var apply$7 = functionApply$1;
var fails$19 = fails$1p;
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$2;
var AGGREGATE_ERROR = 'AggregateError';
var $AggregateError = getBuiltIn$f(AGGREGATE_ERROR);
var FORCED$C = !fails$19(function () {
return $AggregateError([1]).errors[0] !== 1;
}) && fails$19(function () {
return $AggregateError([1], AGGREGATE_ERROR, { cause: 7 }).cause !== 7;
});
// https://tc39.es/ecma262/#sec-aggregate-error
$$2X({ global: true, constructor: true, arity: 2, forced: FORCED$C }, {
AggregateError: wrapErrorConstructorWithCause(AGGREGATE_ERROR, function (init) {
// eslint-disable-next-line no-unused-vars -- required for functions `.length`
return function AggregateError(errors, message) { return apply$7(init, this, arguments); };
}, FORCED$C, true)
});
var wellKnownSymbol$n = wellKnownSymbol$z;
var create$a = objectCreate;
var defineProperty$9 = objectDefineProperty.f;
var UNSCOPABLES = wellKnownSymbol$n('unscopables');
var ArrayPrototype = Array.prototype;
// Array.prototype[@@unscopables]
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
if (ArrayPrototype[UNSCOPABLES] === undefined) {
defineProperty$9(ArrayPrototype, UNSCOPABLES, {
configurable: true,
value: create$a(null)
});
}
// add a key to Array.prototype[@@unscopables]
var addToUnscopables$e = function (key) {
ArrayPrototype[UNSCOPABLES][key] = true;
};
var $$2W = _export;
var toObject$p = toObject$u;
var lengthOfArrayLike$o = lengthOfArrayLike$s;
var toIntegerOrInfinity$i = toIntegerOrInfinity$l;
var addToUnscopables$d = addToUnscopables$e;
// `Array.prototype.at` method
// https://tc39.es/ecma262/#sec-array.prototype.at
$$2W({ target: 'Array', proto: true }, {
at: function at(index) {
var O = toObject$p(this);
var len = lengthOfArrayLike$o(O);
var relativeIndex = toIntegerOrInfinity$i(index);
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
return (k < 0 || k >= len) ? undefined : O[k];
}
});
addToUnscopables$d('at');
var $TypeError$h = TypeError;
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
var doesNotExceedSafeInteger$6 = function (it) {
if (it > MAX_SAFE_INTEGER) throw $TypeError$h('Maximum allowed index exceeded');
return it;
};
var DESCRIPTORS$A = descriptors;
var definePropertyModule$6 = objectDefineProperty;
var createPropertyDescriptor$6 = createPropertyDescriptor$c;
var createProperty$8 = function (object, key, value) {
if (DESCRIPTORS$A) definePropertyModule$6.f(object, key, createPropertyDescriptor$6(0, value));
else object[key] = value;
};
var fails$18 = fails$1p;
var wellKnownSymbol$m = wellKnownSymbol$z;
var V8_VERSION$2 = engineV8Version;
var SPECIES$5 = wellKnownSymbol$m('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$18(function () {
var array = [];
var constructor = array.constructor = {};
constructor[SPECIES$5] = function () {
return { foo: 1 };
};
return array[METHOD_NAME](Boolean).foo !== 1;
});
};
var $$2V = _export;
var fails$17 = fails$1p;
var isArray$7 = isArray$a;
var isObject$q = isObject$A;
var toObject$o = toObject$u;
var lengthOfArrayLike$n = lengthOfArrayLike$s;
var doesNotExceedSafeInteger$5 = doesNotExceedSafeInteger$6;
var createProperty$7 = createProperty$8;
var arraySpeciesCreate$3 = arraySpeciesCreate$5;
var arrayMethodHasSpeciesSupport$4 = arrayMethodHasSpeciesSupport$5;
var wellKnownSymbol$l = wellKnownSymbol$z;
var V8_VERSION$1 = engineV8Version;
var IS_CONCAT_SPREADABLE = wellKnownSymbol$l('isConcatSpreadable');
// 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$17(function () {
var array = [];
array[IS_CONCAT_SPREADABLE] = false;
return array.concat()[0] !== array;
});
var isConcatSpreadable = function (O) {
if (!isObject$q(O)) return false;
var spreadable = O[IS_CONCAT_SPREADABLE];
return spreadable !== undefined ? !!spreadable : isArray$7(O);
};
var FORCED$B = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport$4('concat');
// `Array.prototype.concat` method
// https://tc39.es/ecma262/#sec-array.prototype.concat
// with adding support of @@isConcatSpreadable and @@species
$$2V({ target: 'Array', proto: true, arity: 1, forced: FORCED$B }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
concat: function concat(arg) {
var O = toObject$o(this);
var A = arraySpeciesCreate$3(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$n(E);
doesNotExceedSafeInteger$5(n + len);
for (k = 0; k < len; k++, n++) if (k in E) createProperty$7(A, n, E[k]);
} else {
doesNotExceedSafeInteger$5(n + 1);
createProperty$7(A, n++, E);
}
}
A.length = n;
return A;
}
});
var tryToString$2 = tryToString$7;
var $TypeError$g = TypeError;
var deletePropertyOrThrow$4 = function (O, P) {
if (!delete O[P]) throw new $TypeError$g('Cannot delete property ' + tryToString$2(P) + ' of ' + tryToString$2(O));
};
var toObject$n = toObject$u;
var toAbsoluteIndex$7 = toAbsoluteIndex$9;
var lengthOfArrayLike$m = lengthOfArrayLike$s;
var deletePropertyOrThrow$3 = deletePropertyOrThrow$4;
var min$9 = 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$n(this);
var len = lengthOfArrayLike$m(O);
var to = toAbsoluteIndex$7(target, len);
var from = toAbsoluteIndex$7(start, len);
var end = arguments.length > 2 ? arguments[2] : undefined;
var count = min$9((end === undefined ? len : toAbsoluteIndex$7(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 deletePropertyOrThrow$3(O, to);
to += inc;
from += inc;
} return O;
};
var $$2U = _export;
var copyWithin = arrayCopyWithin;
var addToUnscopables$c = addToUnscopables$e;
// `Array.prototype.copyWithin` method
// https://tc39.es/ecma262/#sec-array.prototype.copywithin
$$2U({ target: 'Array', proto: true }, {
copyWithin: copyWithin
});
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables$c('copyWithin');
var fails$16 = fails$1p;
var arrayMethodIsStrict$9 = function (METHOD_NAME, argument) {
var method = [][METHOD_NAME];
return !!method && fails$16(function () {
// eslint-disable-next-line no-useless-call -- required for testing
method.call(null, argument || function () { return 1; }, 1);
});
};
var $$2T = _export;
var $every$1 = arrayIteration.every;
var arrayMethodIsStrict$8 = arrayMethodIsStrict$9;
var STRICT_METHOD$4 = arrayMethodIsStrict$8('every');
// `Array.prototype.every` method
// https://tc39.es/ecma262/#sec-array.prototype.every
$$2T({ target: 'Array', proto: true, forced: !STRICT_METHOD$4 }, {
every: function every(callbackfn /* , thisArg */) {
return $every$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
var toObject$m = toObject$u;
var toAbsoluteIndex$6 = toAbsoluteIndex$9;
var lengthOfArrayLike$l = lengthOfArrayLike$s;
// `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$m(this);
var length = lengthOfArrayLike$l(O);
var argumentsLength = arguments.length;
var index = toAbsoluteIndex$6(argumentsLength > 1 ? arguments[1] : undefined, length);
var end = argumentsLength > 2 ? arguments[2] : undefined;
var endPos = end === undefined ? length : toAbsoluteIndex$6(end, length);
while (endPos > index) O[index++] = value;
return O;
};
var $$2S = _export;
var fill$1 = arrayFill$1;
var addToUnscopables$b = addToUnscopables$e;
// `Array.prototype.fill` method
// https://tc39.es/ecma262/#sec-array.prototype.fill
$$2S({ target: 'Array', proto: true }, {
fill: fill$1
});
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables$b('fill');
var $$2R = _export;
var $filter$1 = arrayIteration.filter;
var arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$5;
var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport$3('filter');
// `Array.prototype.filter` method
// https://tc39.es/ecma262/#sec-array.prototype.filter
// with adding support of @@species
$$2R({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$3 }, {
filter: function filter(callbackfn /* , thisArg */) {
return $filter$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
var $$2Q = _export;
var $find$1 = arrayIteration.find;
var addToUnscopables$a = addToUnscopables$e;
var FIND = 'find';
var SKIPS_HOLES$1 = true;
// Shouldn't skip holes
// eslint-disable-next-line es/no-array-prototype-find -- testing
if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES$1 = false; });
// `Array.prototype.find` method
// https://tc39.es/ecma262/#sec-array.prototype.find
$$2Q({ target: 'Array', proto: true, forced: SKIPS_HOLES$1 }, {
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$a(FIND);
var $$2P = _export;
var $findIndex$1 = arrayIteration.findIndex;
var addToUnscopables$9 = addToUnscopables$e;
var FIND_INDEX = 'findIndex';
var SKIPS_HOLES = true;
// Shouldn't skip holes
// eslint-disable-next-line es/no-array-prototype-findindex -- testing
if (FIND_INDEX in []) Array(1)[FIND_INDEX](function () { SKIPS_HOLES = false; });
// `Array.prototype.findIndex` method
// https://tc39.es/ecma262/#sec-array.prototype.findindex
$$2P({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
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$9(FIND_INDEX);
var bind$b = functionBindContext;
var IndexedObject$3 = indexedObject;
var toObject$l = toObject$u;
var lengthOfArrayLike$k = lengthOfArrayLike$s;
// `Array.prototype.{ findLast, findLastIndex }` methods implementation
var createMethod$5 = function (TYPE) {
var IS_FIND_LAST_INDEX = TYPE === 1;
return function ($this, callbackfn, that) {
var O = toObject$l($this);
var self = IndexedObject$3(O);
var index = lengthOfArrayLike$k(self);
var boundFunction = bind$b(callbackfn, that);
var value, result;
while (index-- > 0) {
value = self[index];
result = boundFunction(value, index, O);
if (result) switch (TYPE) {
case 0: return value; // findLast
case 1: return index; // findLastIndex
}
}
return IS_FIND_LAST_INDEX ? -1 : undefined;
};
};
var arrayIterationFromLast = {
// `Array.prototype.findLast` method
// https://github.com/tc39/proposal-array-find-from-last
findLast: createMethod$5(0),
// `Array.prototype.findLastIndex` method
// https://github.com/tc39/proposal-array-find-from-last
findLastIndex: createMethod$5(1)
};
var $$2O = _export;
var $findLast$1 = arrayIterationFromLast.findLast;
var addToUnscopables$8 = addToUnscopables$e;
// `Array.prototype.findLast` method
// https://tc39.es/ecma262/#sec-array.prototype.findlast
$$2O({ target: 'Array', proto: true }, {
findLast: function findLast(callbackfn /* , that = undefined */) {
return $findLast$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
addToUnscopables$8('findLast');
var $$2N = _export;
var $findLastIndex$1 = arrayIterationFromLast.findLastIndex;
var addToUnscopables$7 = addToUnscopables$e;
// `Array.prototype.findLastIndex` method
// https://tc39.es/ecma262/#sec-array.prototype.findlastindex
$$2N({ target: 'Array', proto: true }, {
findLastIndex: function findLastIndex(callbackfn /* , that = undefined */) {
return $findLastIndex$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
addToUnscopables$7('findLastIndex');
var isArray$6 = isArray$a;
var lengthOfArrayLike$j = lengthOfArrayLike$s;
var doesNotExceedSafeInteger$4 = doesNotExceedSafeInteger$6;
var bind$a = functionBindContext;
// `FlattenIntoArray` abstract operation
// https://tc39.github.io/proposal-flatMap/#sec-FlattenIntoArray
var flattenIntoArray$2 = function (target, original, source, sourceLen, start, depth, mapper, thisArg) {
var targetIndex = start;
var sourceIndex = 0;
var mapFn = mapper ? bind$a(mapper, thisArg) : false;
var element, elementLen;
while (sourceIndex < sourceLen) {
if (sourceIndex in source) {
element = mapFn ? mapFn(source[sourceIndex], sourceIndex, original) : source[sourceIndex];
if (depth > 0 && isArray$6(element)) {
elementLen = lengthOfArrayLike$j(element);
targetIndex = flattenIntoArray$2(target, original, element, elementLen, targetIndex, depth - 1) - 1;
} else {
doesNotExceedSafeInteger$4(targetIndex + 1);
target[targetIndex] = element;
}
targetIndex++;
}
sourceIndex++;
}
return targetIndex;
};
var flattenIntoArray_1 = flattenIntoArray$2;
var $$2M = _export;
var flattenIntoArray$1 = flattenIntoArray_1;
var toObject$k = toObject$u;
var lengthOfArrayLike$i = lengthOfArrayLike$s;
var toIntegerOrInfinity$h = toIntegerOrInfinity$l;
var arraySpeciesCreate$2 = arraySpeciesCreate$5;
// `Array.prototype.flat` method
// https://tc39.es/ecma262/#sec-array.prototype.flat
$$2M({ target: 'Array', proto: true }, {
flat: function flat(/* depthArg = 1 */) {
var depthArg = arguments.length ? arguments[0] : undefined;
var O = toObject$k(this);
var sourceLen = lengthOfArrayLike$i(O);
var A = arraySpeciesCreate$2(O, 0);
A.length = flattenIntoArray$1(A, O, O, sourceLen, 0, depthArg === undefined ? 1 : toIntegerOrInfinity$h(depthArg));
return A;
}
});
var $$2L = _export;
var flattenIntoArray = flattenIntoArray_1;
var aCallable$i = aCallable$n;
var toObject$j = toObject$u;
var lengthOfArrayLike$h = lengthOfArrayLike$s;
var arraySpeciesCreate$1 = arraySpeciesCreate$5;
// `Array.prototype.flatMap` method
// https://tc39.es/ecma262/#sec-array.prototype.flatmap
$$2L({ target: 'Array', proto: true }, {
flatMap: function flatMap(callbackfn /* , thisArg */) {
var O = toObject$j(this);
var sourceLen = lengthOfArrayLike$h(O);
var A;
aCallable$i(callbackfn);
A = arraySpeciesCreate$1(O, 0);
A.length = flattenIntoArray(A, O, O, sourceLen, 0, 1, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
return A;
}
});
var $forEach$1 = arrayIteration.forEach;
var arrayMethodIsStrict$7 = arrayMethodIsStrict$9;
var STRICT_METHOD$3 = arrayMethodIsStrict$7('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$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
} : [].forEach;
var $$2K = _export;
var forEach$5 = arrayForEach;
// `Array.prototype.forEach` method
// https://tc39.es/ecma262/#sec-array.prototype.foreach
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
$$2K({ target: 'Array', proto: true, forced: [].forEach !== forEach$5 }, {
forEach: forEach$5
});
var anObject$s = anObject$D;
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$s(value)[0], value[1]) : fn(value);
} catch (error) {
iteratorClose(iterator, 'throw', error);
}
};
var bind$9 = functionBindContext;
var call$u = functionCall;
var toObject$i = toObject$u;
var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
var isArrayIteratorMethod$1 = isArrayIteratorMethod$3;
var isConstructor$4 = isConstructor$6;
var lengthOfArrayLike$g = lengthOfArrayLike$s;
var createProperty$6 = createProperty$8;
var getIterator$2 = getIterator$4;
var getIteratorMethod$2 = getIteratorMethod$5;
var $Array$8 = 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$i(arrayLike);
var IS_CONSTRUCTOR = isConstructor$4(this);
var argumentsLength = arguments.length;
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
var mapping = mapfn !== undefined;
if (mapping) mapfn = bind$9(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$8 && isArrayIteratorMethod$1(iteratorMethod))) {
iterator = getIterator$2(O, iteratorMethod);
next = iterator.next;
result = IS_CONSTRUCTOR ? new this() : [];
for (;!(step = call$u(next, iterator)).done; index++) {
value = mapping ? callWithSafeIterationClosing(iterator, mapfn, [step.value, index], true) : step.value;
createProperty$6(result, index, value);
}
} else {
length = lengthOfArrayLike$g(O);
result = IS_CONSTRUCTOR ? new this(length) : $Array$8(length);
for (;length > index; index++) {
value = mapping ? mapfn(O[index], index) : O[index];
createProperty$6(result, index, value);
}
}
result.length = index;
return result;
};
var wellKnownSymbol$k = wellKnownSymbol$z;
var ITERATOR$8 = wellKnownSymbol$k('iterator');
var SAFE_CLOSING = false;
try {
var called = 0;
var iteratorWithReturn = {
next: function () {
return { done: !!called++ };
},
'return': function () {
SAFE_CLOSING = true;
}
};
iteratorWithReturn[ITERATOR$8] = 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) {
try {
if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
} catch (error) { return false; } // workaround of old WebKit + `eval` bug
var ITERATION_SUPPORT = false;
try {
var object = {};
object[ITERATOR$8] = function () {
return {
next: function () {
return { done: ITERATION_SUPPORT = true };
}
};
};
exec(object);
} catch (error) { /* empty */ }
return ITERATION_SUPPORT;
};
var $$2J = _export;
var from$1 = arrayFrom$1;
var checkCorrectnessOfIteration$3 = checkCorrectnessOfIteration$4;
var INCORRECT_ITERATION = !checkCorrectnessOfIteration$3(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
$$2J({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
from: from$1
});
var $$2I = _export;
var $includes$1 = arrayIncludes.includes;
var fails$15 = fails$1p;
var addToUnscopables$6 = addToUnscopables$e;
// FF99+ bug
var BROKEN_ON_SPARSE = fails$15(function () {
// eslint-disable-next-line es/no-array-prototype-includes -- detection
return !Array(1).includes();
});
// `Array.prototype.includes` method
// https://tc39.es/ecma262/#sec-array.prototype.includes
$$2I({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
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$6('includes');
/* eslint-disable es/no-array-prototype-indexof -- required for testing */
var $$2H = _export;
var uncurryThis$17 = functionUncurryThisClause;
var $indexOf$1 = arrayIncludes.indexOf;
var arrayMethodIsStrict$6 = arrayMethodIsStrict$9;
var nativeIndexOf = uncurryThis$17([].indexOf);
var NEGATIVE_ZERO$1 = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
var FORCED$A = NEGATIVE_ZERO$1 || !arrayMethodIsStrict$6('indexOf');
// `Array.prototype.indexOf` method
// https://tc39.es/ecma262/#sec-array.prototype.indexof
$$2H({ target: 'Array', proto: true, forced: FORCED$A }, {
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
return NEGATIVE_ZERO$1
// convert -0 to +0
? nativeIndexOf(this, searchElement, fromIndex) || 0
: $indexOf$1(this, searchElement, fromIndex);
}
});
var $$2G = _export;
var isArray$5 = isArray$a;
// `Array.isArray` method
// https://tc39.es/ecma262/#sec-array.isarray
$$2G({ target: 'Array', stat: true }, {
isArray: isArray$5
});
var fails$14 = fails$1p;
var isCallable$g = isCallable$y;
var isObject$p = isObject$A;
var getPrototypeOf$8 = objectGetPrototypeOf$2;
var defineBuiltIn$j = defineBuiltIn$o;
var wellKnownSymbol$j = wellKnownSymbol$z;
var ITERATOR$7 = wellKnownSymbol$j('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$8(getPrototypeOf$8(arrayIterator));
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
}
}
var NEW_ITERATOR_PROTOTYPE = !isObject$p(IteratorPrototype$2) || fails$14(function () {
var test = {};
// FF44- legacy iterators case
return IteratorPrototype$2[ITERATOR$7].call(test) !== test;
});
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
// `%IteratorPrototype%[@@iterator]()` method
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
if (!isCallable$g(IteratorPrototype$2[ITERATOR$7])) {
defineBuiltIn$j(IteratorPrototype$2, ITERATOR$7, function () {
return this;
});
}
var iteratorsCore = {
IteratorPrototype: IteratorPrototype$2,
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
};
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
var create$9 = objectCreate;
var createPropertyDescriptor$5 = createPropertyDescriptor$c;
var setToStringTag$b = setToStringTag$e;
var Iterators$2 = iterators;
var returnThis$1 = function () { return this; };
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
var TO_STRING_TAG = NAME + ' Iterator';
IteratorConstructor.prototype = create$9(IteratorPrototype$1, { next: createPropertyDescriptor$5(+!ENUMERABLE_NEXT, next) });
setToStringTag$b(IteratorConstructor, TO_STRING_TAG, false);
Iterators$2[TO_STRING_TAG] = returnThis$1;
return IteratorConstructor;
};
var $$2F = _export;
var call$t = functionCall;
var FunctionName$1 = functionName;
var isCallable$f = isCallable$y;
var createIteratorConstructor$2 = iteratorCreateConstructor;
var getPrototypeOf$7 = objectGetPrototypeOf$2;
var setPrototypeOf$6 = objectSetPrototypeOf$1;
var setToStringTag$a = setToStringTag$e;
var createNonEnumerableProperty$8 = createNonEnumerableProperty$f;
var defineBuiltIn$i = defineBuiltIn$o;
var wellKnownSymbol$i = wellKnownSymbol$z;
var Iterators$1 = iterators;
var IteratorsCore = iteratorsCore;
var PROPER_FUNCTION_NAME$3 = 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$6 = wellKnownSymbol$i('iterator');
var KEYS = 'keys';
var VALUES = 'values';
var ENTRIES = 'entries';
var returnThis = function () { return this; };
var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
createIteratorConstructor$2(IteratorConstructor, NAME, next);
var getIterationMethod = function (KIND) {
if (KIND === DEFAULT && defaultIterator) return defaultIterator;
if (!BUGGY_SAFARI_ITERATORS && KIND && 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$6]
|| 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$7(anyNativeIterator.call(new Iterable()));
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
if (getPrototypeOf$7(CurrentIteratorPrototype) !== IteratorPrototype) {
if (setPrototypeOf$6) {
setPrototypeOf$6(CurrentIteratorPrototype, IteratorPrototype);
} else if (!isCallable$f(CurrentIteratorPrototype[ITERATOR$6])) {
defineBuiltIn$i(CurrentIteratorPrototype, ITERATOR$6, returnThis);
}
}
// Set @@toStringTag to native iterators
setToStringTag$a(CurrentIteratorPrototype, TO_STRING_TAG, true);
}
}
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
if (PROPER_FUNCTION_NAME$3 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
if (CONFIGURABLE_FUNCTION_NAME$1) {
createNonEnumerableProperty$8(IterablePrototype, 'name', VALUES);
} else {
INCORRECT_VALUES_NAME = true;
defaultIterator = function values() { return call$t(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)) {
defineBuiltIn$i(IterablePrototype, KEY, methods[KEY]);
}
} else $$2F({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
}
// define iterator
if (IterablePrototype[ITERATOR$6] !== defaultIterator) {
defineBuiltIn$i(IterablePrototype, ITERATOR$6, defaultIterator, { name: DEFAULT });
}
Iterators$1[NAME] = defaultIterator;
return methods;
};
// `CreateIterResultObject` abstract operation
// https://tc39.es/ecma262/#sec-createiterresultobject
var createIterResultObject$5 = function (value, done) {
return { value: value, done: done };
};
var toIndexedObject$c = toIndexedObject$j;
var addToUnscopables$5 = addToUnscopables$e;
var Iterators = iterators;
var InternalStateModule$b = internalState;
var defineProperty$8 = objectDefineProperty.f;
var defineIterator$2 = iteratorDefine;
var createIterResultObject$4 = createIterResultObject$5;
var DESCRIPTORS$z = descriptors;
var ARRAY_ITERATOR = 'Array Iterator';
var setInternalState$a = InternalStateModule$b.set;
var getInternalState$8 = InternalStateModule$b.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$a(this, {
type: ARRAY_ITERATOR,
target: toIndexedObject$c(iterated), // target
index: 0, // next index
kind: kind // kind
});
// `%ArrayIteratorPrototype%.next` method
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
}, function () {
var state = getInternalState$8(this);
var target = state.target;
var index = state.index++;
if (!target || index >= target.length) {
state.target = undefined;
return createIterResultObject$4(undefined, true);
}
switch (state.kind) {
case 'keys': return createIterResultObject$4(index, false);
case 'values': return createIterResultObject$4(target[index], false);
} return createIterResultObject$4([index, target[index]], false);
}, 'values');
// argumentsList[@@iterator] is %ArrayProto_values%
// https://tc39.es/ecma262/#sec-createunmappedargumentsobject
// https://tc39.es/ecma262/#sec-createmappedargumentsobject
var values = Iterators.Arguments = Iterators.Array;
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables$5('keys');
addToUnscopables$5('values');
addToUnscopables$5('entries');
// V8 ~ Chrome 45- bug
if (DESCRIPTORS$z && values.name !== 'values') try {
defineProperty$8(values, 'name', { value: 'values' });
} catch (error) { /* empty */ }
var $$2E = _export;
var uncurryThis$16 = functionUncurryThis;
var IndexedObject$2 = indexedObject;
var toIndexedObject$b = toIndexedObject$j;
var arrayMethodIsStrict$5 = arrayMethodIsStrict$9;
var nativeJoin = uncurryThis$16([].join);
var ES3_STRINGS = IndexedObject$2 !== Object;
var FORCED$z = ES3_STRINGS || !arrayMethodIsStrict$5('join', ',');
// `Array.prototype.join` method
// https://tc39.es/ecma262/#sec-array.prototype.join
$$2E({ target: 'Array', proto: true, forced: FORCED$z }, {
join: function join(separator) {
return nativeJoin(toIndexedObject$b(this), separator === undefined ? ',' : separator);
}
});
/* eslint-disable es/no-array-prototype-lastindexof -- safe */
var apply$6 = functionApply$1;
var toIndexedObject$a = toIndexedObject$j;
var toIntegerOrInfinity$g = toIntegerOrInfinity$l;
var lengthOfArrayLike$f = lengthOfArrayLike$s;
var arrayMethodIsStrict$4 = arrayMethodIsStrict$9;
var min$8 = Math.min;
var $lastIndexOf$1 = [].lastIndexOf;
var NEGATIVE_ZERO = !!$lastIndexOf$1 && 1 / [1].lastIndexOf(1, -0) < 0;
var STRICT_METHOD$2 = arrayMethodIsStrict$4('lastIndexOf');
var FORCED$y = NEGATIVE_ZERO || !STRICT_METHOD$2;
// `Array.prototype.lastIndexOf` method implementation
// https://tc39.es/ecma262/#sec-array.prototype.lastindexof
var arrayLastIndexOf = FORCED$y ? function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {
// convert -0 to +0
if (NEGATIVE_ZERO) return apply$6($lastIndexOf$1, this, arguments) || 0;
var O = toIndexedObject$a(this);
var length = lengthOfArrayLike$f(O);
if (length === 0) return -1;
var index = length - 1;
if (arguments.length > 1) index = min$8(index, toIntegerOrInfinity$g(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 $$2D = _export;
var lastIndexOf = arrayLastIndexOf;
// `Array.prototype.lastIndexOf` method
// https://tc39.es/ecma262/#sec-array.prototype.lastindexof
// eslint-disable-next-line es/no-array-prototype-lastindexof -- required for testing
$$2D({ target: 'Array', proto: true, forced: lastIndexOf !== [].lastIndexOf }, {
lastIndexOf: lastIndexOf
});
var $$2C = _export;
var $map$1 = arrayIteration.map;
var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$5;
var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport$2('map');
// `Array.prototype.map` method
// https://tc39.es/ecma262/#sec-array.prototype.map
// with adding support of @@species
$$2C({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
map: function map(callbackfn /* , thisArg */) {
return $map$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
var $$2B = _export;
var fails$13 = fails$1p;
var isConstructor$3 = isConstructor$6;
var createProperty$5 = createProperty$8;
var $Array$7 = Array;
var ISNT_GENERIC = fails$13(function () {
function F() { /* empty */ }
// eslint-disable-next-line es/no-array-of -- safe
return !($Array$7.of.call(F) instanceof F);
});
// `Array.of` method
// https://tc39.es/ecma262/#sec-array.of
// WebKit Array.of isn't generic
$$2B({ target: 'Array', stat: true, forced: ISNT_GENERIC }, {
of: function of(/* ...args */) {
var index = 0;
var argumentsLength = arguments.length;
var result = new (isConstructor$3(this) ? this : $Array$7)(argumentsLength);
while (argumentsLength > index) createProperty$5(result, index, arguments[index++]);
result.length = argumentsLength;
return result;
}
});
var DESCRIPTORS$y = descriptors;
var isArray$4 = isArray$a;
var $TypeError$f = TypeError;
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getOwnPropertyDescriptor$7 = Object.getOwnPropertyDescriptor;
// Safari < 13 does not throw an error in this case
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$y && !function () {
// makes no sense without proper strict mode support
if (this !== undefined) return true;
try {
// eslint-disable-next-line es/no-object-defineproperty -- safe
Object.defineProperty([], 'length', { writable: false }).length = 1;
} catch (error) {
return error instanceof TypeError;
}
}();
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
if (isArray$4(O) && !getOwnPropertyDescriptor$7(O, 'length').writable) {
throw new $TypeError$f('Cannot set read only .length');
} return O.length = length;
} : function (O, length) {
return O.length = length;
};
var $$2A = _export;
var toObject$h = toObject$u;
var lengthOfArrayLike$e = lengthOfArrayLike$s;
var setArrayLength$2 = arraySetLength;
var doesNotExceedSafeInteger$3 = doesNotExceedSafeInteger$6;
var fails$12 = fails$1p;
var INCORRECT_TO_LENGTH = fails$12(function () {
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
});
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
var properErrorOnNonWritableLength$1 = function () {
try {
// eslint-disable-next-line es/no-object-defineproperty -- safe
Object.defineProperty([], 'length', { writable: false }).push();
} catch (error) {
return error instanceof TypeError;
}
};
var FORCED$x = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength$1();
// `Array.prototype.push` method
// https://tc39.es/ecma262/#sec-array.prototype.push
$$2A({ target: 'Array', proto: true, arity: 1, forced: FORCED$x }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
push: function push(item) {
var O = toObject$h(this);
var len = lengthOfArrayLike$e(O);
var argCount = arguments.length;
doesNotExceedSafeInteger$3(len + argCount);
for (var i = 0; i < argCount; i++) {
O[len] = arguments[i];
len++;
}
setArrayLength$2(O, len);
return len;
}
});
var aCallable$h = aCallable$n;
var toObject$g = toObject$u;
var IndexedObject$1 = indexedObject;
var lengthOfArrayLike$d = lengthOfArrayLike$s;
var $TypeError$e = TypeError;
var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
// `Array.prototype.{ reduce, reduceRight }` methods implementation
var createMethod$4 = function (IS_RIGHT) {
return function (that, callbackfn, argumentsLength, memo) {
var O = toObject$g(that);
var self = IndexedObject$1(O);
var length = lengthOfArrayLike$d(O);
aCallable$h(callbackfn);
if (length === 0 && argumentsLength < 2) throw new $TypeError$e(REDUCE_EMPTY);
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 new $TypeError$e(REDUCE_EMPTY);
}
}
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$4(false),
// `Array.prototype.reduceRight` method
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
right: createMethod$4(true)
};
var global$P = global$11;
var classof$g = classofRaw$2;
var engineIsNode = classof$g(global$P.process) === 'process';
var $$2z = _export;
var $reduce$1 = arrayReduce.left;
var arrayMethodIsStrict$3 = arrayMethodIsStrict$9;
var CHROME_VERSION$1 = engineV8Version;
var IS_NODE$7 = engineIsNode;
// Chrome 80-82 has a critical bug
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
var CHROME_BUG$1 = !IS_NODE$7 && CHROME_VERSION$1 > 79 && CHROME_VERSION$1 < 83;
var FORCED$w = CHROME_BUG$1 || !arrayMethodIsStrict$3('reduce');
// `Array.prototype.reduce` method
// https://tc39.es/ecma262/#sec-array.prototype.reduce
$$2z({ target: 'Array', proto: true, forced: FORCED$w }, {
reduce: function reduce(callbackfn /* , initialValue */) {
var length = arguments.length;
return $reduce$1(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
}
});
var $$2y = _export;
var $reduceRight$1 = arrayReduce.right;
var arrayMethodIsStrict$2 = arrayMethodIsStrict$9;
var CHROME_VERSION = engineV8Version;
var IS_NODE$6 = engineIsNode;
// Chrome 80-82 has a critical bug
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
var CHROME_BUG = !IS_NODE$6 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
var FORCED$v = CHROME_BUG || !arrayMethodIsStrict$2('reduceRight');
// `Array.prototype.reduceRight` method
// https://tc39.es/ecma262/#sec-array.prototype.reduceright
$$2y({ target: 'Array', proto: true, forced: FORCED$v }, {
reduceRight: function reduceRight(callbackfn /* , initialValue */) {
return $reduceRight$1(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined);
}
});
var $$2x = _export;
var uncurryThis$15 = functionUncurryThis;
var isArray$3 = isArray$a;
var nativeReverse = uncurryThis$15([].reverse);
var test$1 = [1, 2];
// `Array.prototype.reverse` method
// https://tc39.es/ecma262/#sec-array.prototype.reverse
// fix for Safari 12.0 bug
// https://bugs.webkit.org/show_bug.cgi?id=188794
$$2x({ target: 'Array', proto: true, forced: String(test$1) === String(test$1.reverse()) }, {
reverse: function reverse() {
// eslint-disable-next-line no-self-assign -- dirty hack
if (isArray$3(this)) this.length = this.length;
return nativeReverse(this);
}
});
var $$2w = _export;
var isArray$2 = isArray$a;
var isConstructor$2 = isConstructor$6;
var isObject$o = isObject$A;
var toAbsoluteIndex$5 = toAbsoluteIndex$9;
var lengthOfArrayLike$c = lengthOfArrayLike$s;
var toIndexedObject$9 = toIndexedObject$j;
var createProperty$4 = createProperty$8;
var wellKnownSymbol$h = wellKnownSymbol$z;
var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$5;
var nativeSlice = arraySlice$a;
var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('slice');
var SPECIES$4 = wellKnownSymbol$h('species');
var $Array$6 = Array;
var max$5 = Math.max;
// `Array.prototype.slice` method
// https://tc39.es/ecma262/#sec-array.prototype.slice
// fallback for not array-like ES3 strings and DOM objects
$$2w({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
slice: function slice(start, end) {
var O = toIndexedObject$9(this);
var length = lengthOfArrayLike$c(O);
var k = toAbsoluteIndex$5(start, length);
var fin = toAbsoluteIndex$5(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$2(Constructor) && (Constructor === $Array$6 || isArray$2(Constructor.prototype))) {
Constructor = undefined;
} else if (isObject$o(Constructor)) {
Constructor = Constructor[SPECIES$4];
if (Constructor === null) Constructor = undefined;
}
if (Constructor === $Array$6 || Constructor === undefined) {
return nativeSlice(O, k, fin);
}
}
result = new (Constructor === undefined ? $Array$6 : Constructor)(max$5(fin - k, 0));
for (n = 0; k < fin; k++, n++) if (k in O) createProperty$4(result, n, O[k]);
result.length = n;
return result;
}
});
var $$2v = _export;
var $some$1 = arrayIteration.some;
var arrayMethodIsStrict$1 = arrayMethodIsStrict$9;
var STRICT_METHOD$1 = arrayMethodIsStrict$1('some');
// `Array.prototype.some` method
// https://tc39.es/ecma262/#sec-array.prototype.some
$$2v({ target: 'Array', proto: true, forced: !STRICT_METHOD$1 }, {
some: function some(callbackfn /* , thisArg */) {
return $some$1(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
}
});
var arraySlice$7 = arraySlice$a;
var floor$9 = Math.floor;
var sort$2 = function (array, comparefn) {
var length = array.length;
if (length < 8) {
// insertion sort
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;
}
} else {
// merge sort
var middle = floor$9(length / 2);
var left = sort$2(arraySlice$7(array, 0, middle), comparefn);
var right = sort$2(arraySlice$7(array, middle), 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 = sort$2;
var userAgent$5 = engineUserAgent;
var firefox = userAgent$5.match(/firefox\/(\d+)/i);
var engineFfVersion = !!firefox && +firefox[1];
var UA = engineUserAgent;
var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
var userAgent$4 = engineUserAgent;
var webkit = userAgent$4.match(/AppleWebKit\/(\d+)\./);
var engineWebkitVersion = !!webkit && +webkit[1];
var $$2u = _export;
var uncurryThis$14 = functionUncurryThis;
var aCallable$g = aCallable$n;
var toObject$f = toObject$u;
var lengthOfArrayLike$b = lengthOfArrayLike$s;
var deletePropertyOrThrow$2 = deletePropertyOrThrow$4;
var toString$x = toString$C;
var fails$11 = fails$1p;
var internalSort$1 = arraySort$1;
var arrayMethodIsStrict = arrayMethodIsStrict$9;
var FF$1 = engineFfVersion;
var IE_OR_EDGE$1 = engineIsIeOrEdge;
var V8$2 = engineV8Version;
var WEBKIT$3 = engineWebkitVersion;
var test = [];
var nativeSort$1 = uncurryThis$14(test.sort);
var push$c = uncurryThis$14(test.push);
// IE8-
var FAILS_ON_UNDEFINED = fails$11(function () {
test.sort(undefined);
});
// V8 bug
var FAILS_ON_NULL = fails$11(function () {
test.sort(null);
});
// Old WebKit
var STRICT_METHOD = arrayMethodIsStrict('sort');
var STABLE_SORT$1 = !fails$11(function () {
// feature detection can be too slow, so check engines versions
if (V8$2) return V8$2 < 70;
if (FF$1 && FF$1 > 3) return;
if (IE_OR_EDGE$1) return true;
if (WEBKIT$3) return WEBKIT$3 < 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$u = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !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$x(x) > toString$x(y) ? 1 : -1;
};
};
// `Array.prototype.sort` method
// https://tc39.es/ecma262/#sec-array.prototype.sort
$$2u({ target: 'Array', proto: true, forced: FORCED$u }, {
sort: function sort(comparefn) {
if (comparefn !== undefined) aCallable$g(comparefn);
var array = toObject$f(this);
if (STABLE_SORT$1) return comparefn === undefined ? nativeSort$1(array) : nativeSort$1(array, comparefn);
var items = [];
var arrayLength = lengthOfArrayLike$b(array);
var itemsLength, index;
for (index = 0; index < arrayLength; index++) {
if (index in array) push$c(items, array[index]);
}
internalSort$1(items, getSortCompare$1(comparefn));
itemsLength = lengthOfArrayLike$b(items);
index = 0;
while (index < itemsLength) array[index] = items[index++];
while (index < arrayLength) deletePropertyOrThrow$2(array, index++);
return array;
}
});
var getBuiltIn$e = getBuiltIn$p;
var defineBuiltInAccessor$f = defineBuiltInAccessor$i;
var wellKnownSymbol$g = wellKnownSymbol$z;
var DESCRIPTORS$x = descriptors;
var SPECIES$3 = wellKnownSymbol$g('species');
var setSpecies$6 = function (CONSTRUCTOR_NAME) {
var Constructor = getBuiltIn$e(CONSTRUCTOR_NAME);
if (DESCRIPTORS$x && Constructor && !Constructor[SPECIES$3]) {
defineBuiltInAccessor$f(Constructor, SPECIES$3, {
configurable: true,
get: function () { return this; }
});
}
};
var setSpecies$5 = setSpecies$6;
// `Array[@@species]` getter
// https://tc39.es/ecma262/#sec-get-array-@@species
setSpecies$5('Array');
var $$2t = _export;
var toObject$e = toObject$u;
var toAbsoluteIndex$4 = toAbsoluteIndex$9;
var toIntegerOrInfinity$f = toIntegerOrInfinity$l;
var lengthOfArrayLike$a = lengthOfArrayLike$s;
var setArrayLength$1 = arraySetLength;
var doesNotExceedSafeInteger$2 = doesNotExceedSafeInteger$6;
var arraySpeciesCreate = arraySpeciesCreate$5;
var createProperty$3 = createProperty$8;
var deletePropertyOrThrow$1 = deletePropertyOrThrow$4;
var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$5;
var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
var max$4 = Math.max;
var min$7 = Math.min;
// `Array.prototype.splice` method
// https://tc39.es/ecma262/#sec-array.prototype.splice
// with adding support of @@species
$$2t({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
splice: function splice(start, deleteCount /* , ...items */) {
var O = toObject$e(this);
var len = lengthOfArrayLike$a(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$7(max$4(toIntegerOrInfinity$f(deleteCount), 0), len - actualStart);
}
doesNotExceedSafeInteger$2(len + insertCount - actualDeleteCount);
A = arraySpeciesCreate(O, actualDeleteCount);
for (k = 0; k < actualDeleteCount; k++) {
from = actualStart + k;
if (from in O) createProperty$3(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 deletePropertyOrThrow$1(O, to);
}
for (k = len; k > len - actualDeleteCount + insertCount; k--) deletePropertyOrThrow$1(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 deletePropertyOrThrow$1(O, to);
}
}
for (k = 0; k < insertCount; k++) {
O[k + actualStart] = arguments[k + 2];
}
setArrayLength$1(O, len - actualDeleteCount + insertCount);
return A;
}
});
var lengthOfArrayLike$9 = lengthOfArrayLike$s;
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed
var arrayToReversed$2 = function (O, C) {
var len = lengthOfArrayLike$9(O);
var A = new C(len);
var k = 0;
for (; k < len; k++) A[k] = O[len - k - 1];
return A;
};
var $$2s = _export;
var arrayToReversed$1 = arrayToReversed$2;
var toIndexedObject$8 = toIndexedObject$j;
var addToUnscopables$4 = addToUnscopables$e;
var $Array$5 = Array;
// `Array.prototype.toReversed` method
// https://tc39.es/ecma262/#sec-array.prototype.toreversed
$$2s({ target: 'Array', proto: true }, {
toReversed: function toReversed() {
return arrayToReversed$1(toIndexedObject$8(this), $Array$5);
}
});
addToUnscopables$4('toReversed');
var lengthOfArrayLike$8 = lengthOfArrayLike$s;
var arrayFromConstructorAndList$4 = function (Constructor, list, $length) {
var index = 0;
var length = arguments.length > 2 ? $length : lengthOfArrayLike$8(list);
var result = new Constructor(length);
while (length > index) result[index] = list[index++];
return result;
};
var global$O = global$11;
var getBuiltInPrototypeMethod$1 = function (CONSTRUCTOR, METHOD) {
var Constructor = global$O[CONSTRUCTOR];
var Prototype = Constructor && Constructor.prototype;
return Prototype && Prototype[METHOD];
};
var $$2r = _export;
var uncurryThis$13 = functionUncurryThis;
var aCallable$f = aCallable$n;
var toIndexedObject$7 = toIndexedObject$j;
var arrayFromConstructorAndList$3 = arrayFromConstructorAndList$4;
var getBuiltInPrototypeMethod = getBuiltInPrototypeMethod$1;
var addToUnscopables$3 = addToUnscopables$e;
var $Array$4 = Array;
var sort$1 = uncurryThis$13(getBuiltInPrototypeMethod('Array', 'sort'));
// `Array.prototype.toSorted` method
// https://tc39.es/ecma262/#sec-array.prototype.tosorted
$$2r({ target: 'Array', proto: true }, {
toSorted: function toSorted(compareFn) {
if (compareFn !== undefined) aCallable$f(compareFn);
var O = toIndexedObject$7(this);
var A = arrayFromConstructorAndList$3($Array$4, O);
return sort$1(A, compareFn);
}
});
addToUnscopables$3('toSorted');
var $$2q = _export;
var addToUnscopables$2 = addToUnscopables$e;
var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$6;
var lengthOfArrayLike$7 = lengthOfArrayLike$s;
var toAbsoluteIndex$3 = toAbsoluteIndex$9;
var toIndexedObject$6 = toIndexedObject$j;
var toIntegerOrInfinity$e = toIntegerOrInfinity$l;
var $Array$3 = Array;
var max$3 = Math.max;
var min$6 = Math.min;
// `Array.prototype.toSpliced` method
// https://tc39.es/ecma262/#sec-array.prototype.tospliced
$$2q({ target: 'Array', proto: true }, {
toSpliced: function toSpliced(start, deleteCount /* , ...items */) {
var O = toIndexedObject$6(this);
var len = lengthOfArrayLike$7(O);
var actualStart = toAbsoluteIndex$3(start, len);
var argumentsLength = arguments.length;
var k = 0;
var insertCount, actualDeleteCount, newLen, A;
if (argumentsLength === 0) {
insertCount = actualDeleteCount = 0;
} else if (argumentsLength === 1) {
insertCount = 0;
actualDeleteCount = len - actualStart;
} else {
insertCount = argumentsLength - 2;
actualDeleteCount = min$6(max$3(toIntegerOrInfinity$e(deleteCount), 0), len - actualStart);
}
newLen = doesNotExceedSafeInteger$1(len + insertCount - actualDeleteCount);
A = $Array$3(newLen);
for (; k < actualStart; k++) A[k] = O[k];
for (; k < actualStart + insertCount; k++) A[k] = arguments[k - actualStart + 2];
for (; k < newLen; k++) A[k] = O[k + actualDeleteCount - insertCount];
return A;
}
});
addToUnscopables$2('toSpliced');
// this method was added to unscopables after implementation
// in popular engines, so it's moved to a separate module
var addToUnscopables$1 = addToUnscopables$e;
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables$1('flat');
// this method was added to unscopables after implementation
// in popular engines, so it's moved to a separate module
var addToUnscopables = addToUnscopables$e;
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
addToUnscopables('flatMap');
var $$2p = _export;
var toObject$d = toObject$u;
var lengthOfArrayLike$6 = lengthOfArrayLike$s;
var setArrayLength = arraySetLength;
var deletePropertyOrThrow = deletePropertyOrThrow$4;
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$6;
// IE8-
var INCORRECT_RESULT = [].unshift(0) !== 1;
// V8 ~ Chrome < 71 and Safari <= 15.4, FF < 23 throws InternalError
var properErrorOnNonWritableLength = function () {
try {
// eslint-disable-next-line es/no-object-defineproperty -- safe
Object.defineProperty([], 'length', { writable: false }).unshift();
} catch (error) {
return error instanceof TypeError;
}
};
var FORCED$t = INCORRECT_RESULT || !properErrorOnNonWritableLength();
// `Array.prototype.unshift` method
// https://tc39.es/ecma262/#sec-array.prototype.unshift
$$2p({ target: 'Array', proto: true, arity: 1, forced: FORCED$t }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
unshift: function unshift(item) {
var O = toObject$d(this);
var len = lengthOfArrayLike$6(O);
var argCount = arguments.length;
if (argCount) {
doesNotExceedSafeInteger(len + argCount);
var k = len;
while (k--) {
var to = k + argCount;
if (k in O) O[to] = O[k];
else deletePropertyOrThrow(O, to);
}
for (var j = 0; j < argCount; j++) {
O[j] = arguments[j];
}
} return setArrayLength(O, len + argCount);
}
});
var lengthOfArrayLike$5 = lengthOfArrayLike$s;
var toIntegerOrInfinity$d = toIntegerOrInfinity$l;
var $RangeError$9 = RangeError;
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with
var arrayWith$2 = function (O, C, index, value) {
var len = lengthOfArrayLike$5(O);
var relativeIndex = toIntegerOrInfinity$d(index);
var actualIndex = relativeIndex < 0 ? len + relativeIndex : relativeIndex;
if (actualIndex >= len || actualIndex < 0) throw new $RangeError$9('Incorrect index');
var A = new C(len);
var k = 0;
for (; k < len; k++) A[k] = k === actualIndex ? value : O[k];
return A;
};
var $$2o = _export;
var arrayWith$1 = arrayWith$2;
var toIndexedObject$5 = toIndexedObject$j;
var $Array$2 = Array;
// `Array.prototype.with` method
// https://tc39.es/ecma262/#sec-array.prototype.with
$$2o({ target: 'Array', proto: true }, {
'with': function (index, value) {
return arrayWith$1(toIndexedObject$5(this), $Array$2, index, value);
}
});
// eslint-disable-next-line es/no-typed-arrays -- safe
var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
var defineBuiltIn$h = defineBuiltIn$o;
var defineBuiltIns$5 = function (target, src, options) {
for (var key in src) defineBuiltIn$h(target, key, src[key], options);
return target;
};
var isPrototypeOf$6 = objectIsPrototypeOf;
var $TypeError$d = TypeError;
var anInstance$a = function (it, Prototype) {
if (isPrototypeOf$6(Prototype, it)) return it;
throw new $TypeError$d('Incorrect invocation');
};
var toIntegerOrInfinity$c = toIntegerOrInfinity$l;
var toLength$b = toLength$d;
var $RangeError$8 = RangeError;
// `ToIndex` abstract operation
// https://tc39.es/ecma262/#sec-toindex
var toIndex$3 = function (it) {
if (it === undefined) return 0;
var number = toIntegerOrInfinity$c(it);
var length = toLength$b(number);
if (number !== length) throw new $RangeError$8('Wrong length or index');
return length;
};
// `Math.sign` method implementation
// https://tc39.es/ecma262/#sec-math.sign
// eslint-disable-next-line es/no-math-sign -- safe
var mathSign = Math.sign || function sign(x) {
var n = +x;
// eslint-disable-next-line no-self-compare -- NaN check
return n === 0 || n !== n ? n : n < 0 ? -1 : 1;
};
var sign$2 = mathSign;
var abs$9 = Math.abs;
var EPSILON = 2.220446049250313e-16; // Number.EPSILON
var INVERSE_EPSILON = 1 / EPSILON;
var roundTiesToEven = function (n) {
return n + INVERSE_EPSILON - INVERSE_EPSILON;
};
var mathFloatRound = function (x, FLOAT_EPSILON, FLOAT_MAX_VALUE, FLOAT_MIN_VALUE) {
var n = +x;
var absolute = abs$9(n);
var s = sign$2(n);
if (absolute < FLOAT_MIN_VALUE) return s * roundTiesToEven(absolute / FLOAT_MIN_VALUE / FLOAT_EPSILON) * FLOAT_MIN_VALUE * FLOAT_EPSILON;
var a = (1 + FLOAT_EPSILON / EPSILON) * absolute;
var result = a - (a - absolute);
// eslint-disable-next-line no-self-compare -- NaN check
if (result > FLOAT_MAX_VALUE || result !== result) return s * Infinity;
return s * result;
};
var floatRound = mathFloatRound;
var FLOAT32_EPSILON = 1.1920928955078125e-7; // 2 ** -23;
var FLOAT32_MAX_VALUE = 3.4028234663852886e+38; // 2 ** 128 - 2 ** 104
var FLOAT32_MIN_VALUE = 1.1754943508222875e-38; // 2 ** -126;
// `Math.fround` method implementation
// https://tc39.es/ecma262/#sec-math.fround
// eslint-disable-next-line es/no-math-fround -- safe
var mathFround = Math.fround || function fround(x) {
return floatRound(x, FLOAT32_EPSILON, FLOAT32_MAX_VALUE, FLOAT32_MIN_VALUE);
};
// IEEE754 conversions based on https://github.com/feross/ieee754
var $Array$1 = Array;
var abs$8 = Math.abs;
var pow$4 = Math.pow;
var floor$8 = Math.floor;
var log$8 = Math.log;
var LN2$2 = Math.LN2;
var pack = function (number, mantissaLength, bytes) {
var buffer = $Array$1(bytes);
var exponentLength = bytes * 8 - mantissaLength - 1;
var eMax = (1 << exponentLength) - 1;
var eBias = eMax >> 1;
var rt = mantissaLength === 23 ? pow$4(2, -24) - pow$4(2, -77) : 0;
var sign = number < 0 || number === 0 && 1 / number < 0 ? 1 : 0;
var index = 0;
var exponent, mantissa, c;
number = abs$8(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$8(log$8(number) / LN2$2);
c = pow$4(2, -exponent);
if (number * c < 1) {
exponent--;
c *= 2;
}
if (exponent + eBias >= 1) {
number += rt / c;
} else {
number += rt * pow$4(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$4(2, mantissaLength);
exponent += eBias;
} else {
mantissa = number * pow$4(2, eBias - 1) * pow$4(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 += pow$4(2, mantissaLength);
exponent -= eBias;
} return (sign ? -1 : 1) * mantissa * pow$4(2, exponent - mantissaLength);
};
var ieee754 = {
pack: pack,
unpack: unpack
};
var global$N = global$11;
var uncurryThis$12 = functionUncurryThis;
var DESCRIPTORS$w = descriptors;
var NATIVE_ARRAY_BUFFER$2 = arrayBufferBasicDetection;
var FunctionName = functionName;
var createNonEnumerableProperty$7 = createNonEnumerableProperty$f;
var defineBuiltInAccessor$e = defineBuiltInAccessor$i;
var defineBuiltIns$4 = defineBuiltIns$5;
var fails$10 = fails$1p;
var anInstance$9 = anInstance$a;
var toIntegerOrInfinity$b = toIntegerOrInfinity$l;
var toLength$a = toLength$d;
var toIndex$2 = toIndex$3;
var fround$1 = mathFround;
var IEEE754 = ieee754;
var getPrototypeOf$6 = objectGetPrototypeOf$2;
var setPrototypeOf$5 = objectSetPrototypeOf$1;
var arrayFill = arrayFill$1;
var arraySlice$6 = arraySlice$a;
var inheritIfRequired$5 = inheritIfRequired$7;
var copyConstructorProperties$1 = copyConstructorProperties$6;
var setToStringTag$9 = setToStringTag$e;
var InternalStateModule$a = internalState;
var PROPER_FUNCTION_NAME$2 = FunctionName.PROPER;
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
var ARRAY_BUFFER$1 = 'ArrayBuffer';
var DATA_VIEW = 'DataView';
var PROTOTYPE = 'prototype';
var WRONG_LENGTH$1 = 'Wrong length';
var WRONG_INDEX = 'Wrong index';
var getInternalArrayBufferState = InternalStateModule$a.getterFor(ARRAY_BUFFER$1);
var getInternalDataViewState = InternalStateModule$a.getterFor(DATA_VIEW);
var setInternalState$9 = InternalStateModule$a.set;
var NativeArrayBuffer$1 = global$N[ARRAY_BUFFER$1];
var $ArrayBuffer$1 = NativeArrayBuffer$1;
var ArrayBufferPrototype$3 = $ArrayBuffer$1 && $ArrayBuffer$1[PROTOTYPE];
var $DataView = global$N[DATA_VIEW];
var DataViewPrototype$2 = $DataView && $DataView[PROTOTYPE];
var ObjectPrototype$3 = Object.prototype;
var Array$2 = global$N.Array;
var RangeError$3 = global$N.RangeError;
var fill = uncurryThis$12(arrayFill);
var reverse = uncurryThis$12([].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(fround$1(number), 23, 4);
};
var packFloat64 = function (number) {
return packIEEE754(number, 52, 8);
};
var addGetter$1 = function (Constructor, key, getInternalState) {
defineBuiltInAccessor$e(Constructor[PROTOTYPE], key, {
configurable: true,
get: function () {
return getInternalState(this)[key];
}
});
};
var get$2 = function (view, count, index, isLittleEndian) {
var store = getInternalDataViewState(view);
var intIndex = toIndex$2(index);
var boolIsLittleEndian = !!isLittleEndian;
if (intIndex + count > store.byteLength) throw new RangeError$3(WRONG_INDEX);
var bytes = store.bytes;
var start = intIndex + store.byteOffset;
var pack = arraySlice$6(bytes, start, start + count);
return boolIsLittleEndian ? pack : reverse(pack);
};
var set$3 = function (view, count, index, conversion, value, isLittleEndian) {
var store = getInternalDataViewState(view);
var intIndex = toIndex$2(index);
var pack = conversion(+value);
var boolIsLittleEndian = !!isLittleEndian;
if (intIndex + count > store.byteLength) throw new RangeError$3(WRONG_INDEX);
var bytes = store.bytes;
var start = intIndex + store.byteOffset;
for (var i = 0; i < count; i++) bytes[start + i] = pack[boolIsLittleEndian ? i : count - i - 1];
};
if (!NATIVE_ARRAY_BUFFER$2) {
$ArrayBuffer$1 = function ArrayBuffer(length) {
anInstance$9(this, ArrayBufferPrototype$3);
var byteLength = toIndex$2(length);
setInternalState$9(this, {
type: ARRAY_BUFFER$1,
bytes: fill(Array$2(byteLength), 0),
byteLength: byteLength
});
if (!DESCRIPTORS$w) {
this.byteLength = byteLength;
this.detached = false;
}
};
ArrayBufferPrototype$3 = $ArrayBuffer$1[PROTOTYPE];
$DataView = function DataView(buffer, byteOffset, byteLength) {
anInstance$9(this, DataViewPrototype$2);
anInstance$9(buffer, ArrayBufferPrototype$3);
var bufferState = getInternalArrayBufferState(buffer);
var bufferLength = bufferState.byteLength;
var offset = toIntegerOrInfinity$b(byteOffset);
if (offset < 0 || offset > bufferLength) throw new RangeError$3('Wrong offset');
byteLength = byteLength === undefined ? bufferLength - offset : toLength$a(byteLength);
if (offset + byteLength > bufferLength) throw new RangeError$3(WRONG_LENGTH$1);
setInternalState$9(this, {
type: DATA_VIEW,
buffer: buffer,
byteLength: byteLength,
byteOffset: offset,
bytes: bufferState.bytes
});
if (!DESCRIPTORS$w) {
this.buffer = buffer;
this.byteLength = byteLength;
this.byteOffset = offset;
}
};
DataViewPrototype$2 = $DataView[PROTOTYPE];
if (DESCRIPTORS$w) {
addGetter$1($ArrayBuffer$1, 'byteLength', getInternalArrayBufferState);
addGetter$1($DataView, 'buffer', getInternalDataViewState);
addGetter$1($DataView, 'byteLength', getInternalDataViewState);
addGetter$1($DataView, 'byteOffset', getInternalDataViewState);
}
defineBuiltIns$4(DataViewPrototype$2, {
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] : false);
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] : false);
return bytes[1] << 8 | bytes[0];
},
getInt32: function getInt32(byteOffset /* , littleEndian */) {
return unpackInt32(get$2(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : false));
},
getUint32: function getUint32(byteOffset /* , littleEndian */) {
return unpackInt32(get$2(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : false)) >>> 0;
},
getFloat32: function getFloat32(byteOffset /* , littleEndian */) {
return unpackIEEE754(get$2(this, 4, byteOffset, arguments.length > 1 ? arguments[1] : false), 23);
},
getFloat64: function getFloat64(byteOffset /* , littleEndian */) {
return unpackIEEE754(get$2(this, 8, byteOffset, arguments.length > 1 ? arguments[1] : false), 52);
},
setInt8: function setInt8(byteOffset, value) {
set$3(this, 1, byteOffset, packInt8, value);
},
setUint8: function setUint8(byteOffset, value) {
set$3(this, 1, byteOffset, packInt8, value);
},
setInt16: function setInt16(byteOffset, value /* , littleEndian */) {
set$3(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : false);
},
setUint16: function setUint16(byteOffset, value /* , littleEndian */) {
set$3(this, 2, byteOffset, packInt16, value, arguments.length > 2 ? arguments[2] : false);
},
setInt32: function setInt32(byteOffset, value /* , littleEndian */) {
set$3(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : false);
},
setUint32: function setUint32(byteOffset, value /* , littleEndian */) {
set$3(this, 4, byteOffset, packInt32, value, arguments.length > 2 ? arguments[2] : false);
},
setFloat32: function setFloat32(byteOffset, value /* , littleEndian */) {
set$3(this, 4, byteOffset, packFloat32, value, arguments.length > 2 ? arguments[2] : false);
},
setFloat64: function setFloat64(byteOffset, value /* , littleEndian */) {
set$3(this, 8, byteOffset, packFloat64, value, arguments.length > 2 ? arguments[2] : false);
}
});
} else {
var INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME$2 && NativeArrayBuffer$1.name !== ARRAY_BUFFER$1;
/* eslint-disable no-new -- required for testing */
if (!fails$10(function () {
NativeArrayBuffer$1(1);
}) || !fails$10(function () {
new NativeArrayBuffer$1(-1);
}) || fails$10(function () {
new NativeArrayBuffer$1();
new NativeArrayBuffer$1(1.5);
new NativeArrayBuffer$1(NaN);
return NativeArrayBuffer$1.length !== 1 || INCORRECT_ARRAY_BUFFER_NAME && !CONFIGURABLE_FUNCTION_NAME;
})) {
/* eslint-enable no-new -- required for testing */
$ArrayBuffer$1 = function ArrayBuffer(length) {
anInstance$9(this, ArrayBufferPrototype$3);
return inheritIfRequired$5(new NativeArrayBuffer$1(toIndex$2(length)), this, $ArrayBuffer$1);
};
$ArrayBuffer$1[PROTOTYPE] = ArrayBufferPrototype$3;
ArrayBufferPrototype$3.constructor = $ArrayBuffer$1;
copyConstructorProperties$1($ArrayBuffer$1, NativeArrayBuffer$1);
} else if (INCORRECT_ARRAY_BUFFER_NAME && CONFIGURABLE_FUNCTION_NAME) {
createNonEnumerableProperty$7(NativeArrayBuffer$1, 'name', ARRAY_BUFFER$1);
}
// WebKit bug - the same parent prototype for typed arrays and data view
if (setPrototypeOf$5 && getPrototypeOf$6(DataViewPrototype$2) !== ObjectPrototype$3) {
setPrototypeOf$5(DataViewPrototype$2, ObjectPrototype$3);
}
// iOS Safari 7.x bug
var testView = new $DataView(new $ArrayBuffer$1(2));
var $setInt8 = uncurryThis$12(DataViewPrototype$2.setInt8);
testView.setInt8(0, 2147483648);
testView.setInt8(1, 2147483649);
if (testView.getInt8(0) || !testView.getInt8(1)) defineBuiltIns$4(DataViewPrototype$2, {
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$9($ArrayBuffer$1, ARRAY_BUFFER$1);
setToStringTag$9($DataView, DATA_VIEW);
var arrayBuffer = {
ArrayBuffer: $ArrayBuffer$1,
DataView: $DataView
};
var $$2n = _export;
var global$M = global$11;
var arrayBufferModule = arrayBuffer;
var setSpecies$4 = setSpecies$6;
var ARRAY_BUFFER = 'ArrayBuffer';
var ArrayBuffer$5 = arrayBufferModule[ARRAY_BUFFER];
var NativeArrayBuffer = global$M[ARRAY_BUFFER];
// `ArrayBuffer` constructor
// https://tc39.es/ecma262/#sec-arraybuffer-constructor
$$2n({ global: true, constructor: true, forced: NativeArrayBuffer !== ArrayBuffer$5 }, {
ArrayBuffer: ArrayBuffer$5
});
setSpecies$4(ARRAY_BUFFER);
var NATIVE_ARRAY_BUFFER$1 = arrayBufferBasicDetection;
var DESCRIPTORS$v = descriptors;
var global$L = global$11;
var isCallable$e = isCallable$y;
var isObject$n = isObject$A;
var hasOwn$g = hasOwnProperty_1;
var classof$f = classof$n;
var tryToString$1 = tryToString$7;
var createNonEnumerableProperty$6 = createNonEnumerableProperty$f;
var defineBuiltIn$g = defineBuiltIn$o;
var defineBuiltInAccessor$d = defineBuiltInAccessor$i;
var isPrototypeOf$5 = objectIsPrototypeOf;
var getPrototypeOf$5 = objectGetPrototypeOf$2;
var setPrototypeOf$4 = objectSetPrototypeOf$1;
var wellKnownSymbol$f = wellKnownSymbol$z;
var uid$2 = uid$6;
var InternalStateModule$9 = internalState;
var enforceInternalState$3 = InternalStateModule$9.enforce;
var getInternalState$7 = InternalStateModule$9.get;
var Int8Array$4 = global$L.Int8Array;
var Int8ArrayPrototype$1 = Int8Array$4 && Int8Array$4.prototype;
var Uint8ClampedArray$1 = global$L.Uint8ClampedArray;
var Uint8ClampedArrayPrototype = Uint8ClampedArray$1 && Uint8ClampedArray$1.prototype;
var TypedArray$1 = Int8Array$4 && getPrototypeOf$5(Int8Array$4);
var TypedArrayPrototype$2 = Int8ArrayPrototype$1 && getPrototypeOf$5(Int8ArrayPrototype$1);
var ObjectPrototype$2 = Object.prototype;
var TypeError$7 = global$L.TypeError;
var TO_STRING_TAG = wellKnownSymbol$f('toStringTag');
var TYPED_ARRAY_TAG$1 = uid$2('TYPED_ARRAY_TAG');
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
var NATIVE_ARRAY_BUFFER_VIEWS$3 = NATIVE_ARRAY_BUFFER$1 && !!setPrototypeOf$4 && classof$f(global$L.opera) !== 'Opera';
var TYPED_ARRAY_TAG_REQUIRED = false;
var NAME$1, 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$n(it)) return false;
var klass = classof$f(it);
return klass === 'DataView'
|| hasOwn$g(TypedArrayConstructorsList, klass)
|| hasOwn$g(BigIntArrayConstructorsList, klass);
};
var getTypedArrayConstructor$4 = function (it) {
var proto = getPrototypeOf$5(it);
if (!isObject$n(proto)) return;
var state = getInternalState$7(proto);
return (state && hasOwn$g(state, TYPED_ARRAY_CONSTRUCTOR)) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor$4(proto);
};
var isTypedArray$1 = function (it) {
if (!isObject$n(it)) return false;
var klass = classof$f(it);
return hasOwn$g(TypedArrayConstructorsList, klass)
|| hasOwn$g(BigIntArrayConstructorsList, klass);
};
var aTypedArray$s = function (it) {
if (isTypedArray$1(it)) return it;
throw new TypeError$7('Target is not a typed array');
};
var aTypedArrayConstructor$3 = function (C) {
if (isCallable$e(C) && (!setPrototypeOf$4 || isPrototypeOf$5(TypedArray$1, C))) return C;
throw new TypeError$7(tryToString$1(C) + ' is not a typed array constructor');
};
var exportTypedArrayMethod$t = function (KEY, property, forced, options) {
if (!DESCRIPTORS$v) return;
if (forced) for (var ARRAY in TypedArrayConstructorsList) {
var TypedArrayConstructor = global$L[ARRAY];
if (TypedArrayConstructor && hasOwn$g(TypedArrayConstructor.prototype, KEY)) try {
delete TypedArrayConstructor.prototype[KEY];
} catch (error) {
// old WebKit bug - some methods are non-configurable
try {
TypedArrayConstructor.prototype[KEY] = property;
} catch (error2) { /* empty */ }
}
}
if (!TypedArrayPrototype$2[KEY] || forced) {
defineBuiltIn$g(TypedArrayPrototype$2, KEY, forced ? property
: NATIVE_ARRAY_BUFFER_VIEWS$3 && Int8ArrayPrototype$1[KEY] || property, options);
}
};
var exportTypedArrayStaticMethod$2 = function (KEY, property, forced) {
var ARRAY, TypedArrayConstructor;
if (!DESCRIPTORS$v) return;
if (setPrototypeOf$4) {
if (forced) for (ARRAY in TypedArrayConstructorsList) {
TypedArrayConstructor = global$L[ARRAY];
if (TypedArrayConstructor && hasOwn$g(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 defineBuiltIn$g(TypedArray$1, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS$3 && TypedArray$1[KEY] || property);
} catch (error) { /* empty */ }
} else return;
}
for (ARRAY in TypedArrayConstructorsList) {
TypedArrayConstructor = global$L[ARRAY];
if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
defineBuiltIn$g(TypedArrayConstructor, KEY, property);
}
}
};
for (NAME$1 in TypedArrayConstructorsList) {
Constructor = global$L[NAME$1];
Prototype = Constructor && Constructor.prototype;
if (Prototype) enforceInternalState$3(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
else NATIVE_ARRAY_BUFFER_VIEWS$3 = false;
}
for (NAME$1 in BigIntArrayConstructorsList) {
Constructor = global$L[NAME$1];
Prototype = Constructor && Constructor.prototype;
if (Prototype) enforceInternalState$3(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
}
// WebKit bug - typed arrays constructors prototype is Object.prototype
if (!NATIVE_ARRAY_BUFFER_VIEWS$3 || !isCallable$e(TypedArray$1) || TypedArray$1 === Function.prototype) {
// eslint-disable-next-line no-shadow -- safe
TypedArray$1 = function TypedArray() {
throw new TypeError$7('Incorrect invocation');
};
if (NATIVE_ARRAY_BUFFER_VIEWS$3) for (NAME$1 in TypedArrayConstructorsList) {
if (global$L[NAME$1]) setPrototypeOf$4(global$L[NAME$1], TypedArray$1);
}
}
if (!NATIVE_ARRAY_BUFFER_VIEWS$3 || !TypedArrayPrototype$2 || TypedArrayPrototype$2 === ObjectPrototype$2) {
TypedArrayPrototype$2 = TypedArray$1.prototype;
if (NATIVE_ARRAY_BUFFER_VIEWS$3) for (NAME$1 in TypedArrayConstructorsList) {
if (global$L[NAME$1]) setPrototypeOf$4(global$L[NAME$1].prototype, TypedArrayPrototype$2);
}
}
// WebKit bug - one more object in Uint8ClampedArray prototype chain
if (NATIVE_ARRAY_BUFFER_VIEWS$3 && getPrototypeOf$5(Uint8ClampedArrayPrototype) !== TypedArrayPrototype$2) {
setPrototypeOf$4(Uint8ClampedArrayPrototype, TypedArrayPrototype$2);
}
if (DESCRIPTORS$v && !hasOwn$g(TypedArrayPrototype$2, TO_STRING_TAG)) {
TYPED_ARRAY_TAG_REQUIRED = true;
defineBuiltInAccessor$d(TypedArrayPrototype$2, TO_STRING_TAG, {
configurable: true,
get: function () {
return isObject$n(this) ? this[TYPED_ARRAY_TAG$1] : undefined;
}
});
for (NAME$1 in TypedArrayConstructorsList) if (global$L[NAME$1]) {
createNonEnumerableProperty$6(global$L[NAME$1], TYPED_ARRAY_TAG$1, NAME$1);
}
}
var arrayBufferViewCore = {
NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS$3,
TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG$1,
aTypedArray: aTypedArray$s,
aTypedArrayConstructor: aTypedArrayConstructor$3,
exportTypedArrayMethod: exportTypedArrayMethod$t,
exportTypedArrayStaticMethod: exportTypedArrayStaticMethod$2,
getTypedArrayConstructor: getTypedArrayConstructor$4,
isView: isView,
isTypedArray: isTypedArray$1,
TypedArray: TypedArray$1,
TypedArrayPrototype: TypedArrayPrototype$2
};
var $$2m = _export;
var ArrayBufferViewCore$v = arrayBufferViewCore;
var NATIVE_ARRAY_BUFFER_VIEWS$2 = ArrayBufferViewCore$v.NATIVE_ARRAY_BUFFER_VIEWS;
// `ArrayBuffer.isView` method
// https://tc39.es/ecma262/#sec-arraybuffer.isview
$$2m({ target: 'ArrayBuffer', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS$2 }, {
isView: ArrayBufferViewCore$v.isView
});
var isConstructor$1 = isConstructor$6;
var tryToString = tryToString$7;
var $TypeError$c = TypeError;
// `Assert: IsConstructor(argument) is true`
var aConstructor$3 = function (argument) {
if (isConstructor$1(argument)) return argument;
throw new $TypeError$c(tryToString(argument) + ' is not a constructor');
};
var anObject$r = anObject$D;
var aConstructor$2 = aConstructor$3;
var isNullOrUndefined$a = isNullOrUndefined$e;
var wellKnownSymbol$e = wellKnownSymbol$z;
var SPECIES$2 = wellKnownSymbol$e('species');
// `SpeciesConstructor` abstract operation
// https://tc39.es/ecma262/#sec-speciesconstructor
var speciesConstructor$6 = function (O, defaultConstructor) {
var C = anObject$r(O).constructor;
var S;
return C === undefined || isNullOrUndefined$a(S = anObject$r(C)[SPECIES$2]) ? defaultConstructor : aConstructor$2(S);
};
var $$2l = _export;
var uncurryThis$11 = functionUncurryThisClause;
var fails$$ = fails$1p;
var ArrayBufferModule$2 = arrayBuffer;
var anObject$q = anObject$D;
var toAbsoluteIndex$2 = toAbsoluteIndex$9;
var toLength$9 = toLength$d;
var speciesConstructor$5 = speciesConstructor$6;
var ArrayBuffer$4 = ArrayBufferModule$2.ArrayBuffer;
var DataView$3 = ArrayBufferModule$2.DataView;
var DataViewPrototype$1 = DataView$3.prototype;
var nativeArrayBufferSlice = uncurryThis$11(ArrayBuffer$4.prototype.slice);
var getUint8 = uncurryThis$11(DataViewPrototype$1.getUint8);
var setUint8 = uncurryThis$11(DataViewPrototype$1.setUint8);
var INCORRECT_SLICE = fails$$(function () {
return !new ArrayBuffer$4(2).slice(1, undefined).byteLength;
});
// `ArrayBuffer.prototype.slice` method
// https://tc39.es/ecma262/#sec-arraybuffer.prototype.slice
$$2l({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, {
slice: function slice(start, end) {
if (nativeArrayBufferSlice && end === undefined) {
return nativeArrayBufferSlice(anObject$q(this), start); // FF fix
}
var length = anObject$q(this).byteLength;
var first = toAbsoluteIndex$2(start, length);
var fin = toAbsoluteIndex$2(end === undefined ? length : end, length);
var result = new (speciesConstructor$5(this, ArrayBuffer$4))(toLength$9(fin - first));
var viewSource = new DataView$3(this);
var viewTarget = new DataView$3(result);
var index = 0;
while (first < fin) {
setUint8(viewTarget, index++, getUint8(viewSource, first++));
} return result;
}
});
var $$2k = _export;
var ArrayBufferModule$1 = arrayBuffer;
var NATIVE_ARRAY_BUFFER = arrayBufferBasicDetection;
// `DataView` constructor
// https://tc39.es/ecma262/#sec-dataview-constructor
$$2k({ global: true, constructor: true, forced: !NATIVE_ARRAY_BUFFER }, {
DataView: ArrayBufferModule$1.DataView
});
var uncurryThisAccessor$1 = functionUncurryThisAccessor;
var classof$e = classofRaw$2;
var $TypeError$b = TypeError;
// Includes
// - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
// - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
var arrayBufferByteLength$2 = uncurryThisAccessor$1(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
if (classof$e(O) !== 'ArrayBuffer') throw new $TypeError$b('ArrayBuffer expected');
return O.byteLength;
};
var uncurryThis$10 = functionUncurryThis;
var arrayBufferByteLength$1 = arrayBufferByteLength$2;
var slice$4 = uncurryThis$10(ArrayBuffer.prototype.slice);
var arrayBufferIsDetached = function (O) {
if (arrayBufferByteLength$1(O) !== 0) return false;
try {
slice$4(O, 0, 0);
return false;
} catch (error) {
return true;
}
};
var DESCRIPTORS$u = descriptors;
var defineBuiltInAccessor$c = defineBuiltInAccessor$i;
var isDetached$1 = arrayBufferIsDetached;
var ArrayBufferPrototype$2 = ArrayBuffer.prototype;
if (DESCRIPTORS$u && !('detached' in ArrayBufferPrototype$2)) {
defineBuiltInAccessor$c(ArrayBufferPrototype$2, 'detached', {
configurable: true,
get: function detached() {
return isDetached$1(this);
}
});
}
var IS_NODE$5 = engineIsNode;
var tryNodeRequire$2 = function (name) {
try {
// eslint-disable-next-line no-new-func -- safe
if (IS_NODE$5) return Function('return require("' + name + '")')();
} catch (error) { /* empty */ }
};
/* global Deno -- Deno case */
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
var IS_DENO$2 = engineIsDeno;
var IS_NODE$4 = engineIsNode;
var engineIsBrowser = !IS_DENO$2 && !IS_NODE$4
&& typeof window == 'object'
&& typeof document == 'object';
var global$K = global$11;
var fails$_ = fails$1p;
var V8$1 = engineV8Version;
var IS_BROWSER$1 = engineIsBrowser;
var IS_DENO$1 = engineIsDeno;
var IS_NODE$3 = engineIsNode;
var structuredClone$2 = global$K.structuredClone;
var structuredCloneProperTransfer = !!structuredClone$2 && !fails$_(function () {
// prevent V8 ArrayBufferDetaching protector cell invalidation and performance degradation
// https://github.com/zloirock/core-js/issues/679
if ((IS_DENO$1 && V8$1 > 92) || (IS_NODE$3 && V8$1 > 94) || (IS_BROWSER$1 && V8$1 > 97)) return false;
var buffer = new ArrayBuffer(8);
var clone = structuredClone$2(buffer, { transfer: [buffer] });
return buffer.byteLength !== 0 || clone.byteLength !== 8;
});
var global$J = global$11;
var tryNodeRequire$1 = tryNodeRequire$2;
var PROPER_STRUCTURED_CLONE_TRANSFER$2 = structuredCloneProperTransfer;
var structuredClone$1 = global$J.structuredClone;
var $ArrayBuffer = global$J.ArrayBuffer;
var $MessageChannel = global$J.MessageChannel;
var detach = false;
var WorkerThreads, channel$1, buffer, $detach;
if (PROPER_STRUCTURED_CLONE_TRANSFER$2) {
detach = function (transferable) {
structuredClone$1(transferable, { transfer: [transferable] });
};
} else if ($ArrayBuffer) try {
if (!$MessageChannel) {
WorkerThreads = tryNodeRequire$1('worker_threads');
if (WorkerThreads) $MessageChannel = WorkerThreads.MessageChannel;
}
if ($MessageChannel) {
channel$1 = new $MessageChannel();
buffer = new $ArrayBuffer(2);
$detach = function (transferable) {
channel$1.port1.postMessage(null, [transferable]);
};
if (buffer.byteLength === 2) {
$detach(buffer);
if (buffer.byteLength === 0) detach = $detach;
}
}
} catch (error) { /* empty */ }
var detachTransferable$2 = detach;
var global$I = global$11;
var uncurryThis$$ = functionUncurryThis;
var uncurryThisAccessor = functionUncurryThisAccessor;
var toIndex$1 = toIndex$3;
var isDetached = arrayBufferIsDetached;
var arrayBufferByteLength = arrayBufferByteLength$2;
var detachTransferable$1 = detachTransferable$2;
var PROPER_STRUCTURED_CLONE_TRANSFER$1 = structuredCloneProperTransfer;
var structuredClone = global$I.structuredClone;
var ArrayBuffer$3 = global$I.ArrayBuffer;
var DataView$2 = global$I.DataView;
var TypeError$6 = global$I.TypeError;
var min$5 = Math.min;
var ArrayBufferPrototype$1 = ArrayBuffer$3.prototype;
var DataViewPrototype = DataView$2.prototype;
var slice$3 = uncurryThis$$(ArrayBufferPrototype$1.slice);
var isResizable = uncurryThisAccessor(ArrayBufferPrototype$1, 'resizable', 'get');
var maxByteLength = uncurryThisAccessor(ArrayBufferPrototype$1, 'maxByteLength', 'get');
var getInt8 = uncurryThis$$(DataViewPrototype.getInt8);
var setInt8 = uncurryThis$$(DataViewPrototype.setInt8);
var arrayBufferTransfer = (PROPER_STRUCTURED_CLONE_TRANSFER$1 || detachTransferable$1) && function (arrayBuffer, newLength, preserveResizability) {
var byteLength = arrayBufferByteLength(arrayBuffer);
var newByteLength = newLength === undefined ? byteLength : toIndex$1(newLength);
var fixedLength = !isResizable || !isResizable(arrayBuffer);
var newBuffer;
if (isDetached(arrayBuffer)) throw new TypeError$6('ArrayBuffer is detached');
if (PROPER_STRUCTURED_CLONE_TRANSFER$1) {
arrayBuffer = structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
if (byteLength === newByteLength && (preserveResizability || fixedLength)) return arrayBuffer;
}
if (byteLength >= newByteLength && (!preserveResizability || fixedLength)) {
newBuffer = slice$3(arrayBuffer, 0, newByteLength);
} else {
var options = preserveResizability && !fixedLength && maxByteLength ? { maxByteLength: maxByteLength(arrayBuffer) } : undefined;
newBuffer = new ArrayBuffer$3(newByteLength, options);
var a = new DataView$2(arrayBuffer);
var b = new DataView$2(newBuffer);
var copyLength = min$5(newByteLength, byteLength);
for (var i = 0; i < copyLength; i++) setInt8(b, i, getInt8(a, i));
}
if (!PROPER_STRUCTURED_CLONE_TRANSFER$1) detachTransferable$1(arrayBuffer);
return newBuffer;
};
var $$2j = _export;
var $transfer$1 = arrayBufferTransfer;
// `ArrayBuffer.prototype.transfer` method
// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfer
if ($transfer$1) $$2j({ target: 'ArrayBuffer', proto: true }, {
transfer: function transfer() {
return $transfer$1(this, arguments.length ? arguments[0] : undefined, true);
}
});
var $$2i = _export;
var $transfer = arrayBufferTransfer;
// `ArrayBuffer.prototype.transferToFixedLength` method
// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfertofixedlength
if ($transfer) $$2i({ target: 'ArrayBuffer', proto: true }, {
transferToFixedLength: function transferToFixedLength() {
return $transfer(this, arguments.length ? arguments[0] : undefined, false);
}
});
var $$2h = _export;
var uncurryThis$_ = functionUncurryThis;
var fails$Z = fails$1p;
// IE8- non-standard case
var FORCED$s = fails$Z(function () {
// eslint-disable-next-line es/no-date-prototype-getyear-setyear -- detection
return new Date(16e11).getYear() !== 120;
});
var getFullYear = uncurryThis$_(Date.prototype.getFullYear);
// `Date.prototype.getYear` method
// https://tc39.es/ecma262/#sec-date.prototype.getyear
$$2h({ target: 'Date', proto: true, forced: FORCED$s }, {
getYear: function getYear() {
return getFullYear(this) - 1900;
}
});
// TODO: Remove from `core-js@4`
var $$2g = _export;
var uncurryThis$Z = functionUncurryThis;
var $Date = Date;
var thisTimeValue$4 = uncurryThis$Z($Date.prototype.getTime);
// `Date.now` method
// https://tc39.es/ecma262/#sec-date.now
$$2g({ target: 'Date', stat: true }, {
now: function now() {
return thisTimeValue$4(new $Date());
}
});
var $$2f = _export;
var uncurryThis$Y = functionUncurryThis;
var toIntegerOrInfinity$a = toIntegerOrInfinity$l;
var DatePrototype$3 = Date.prototype;
var thisTimeValue$3 = uncurryThis$Y(DatePrototype$3.getTime);
var setFullYear = uncurryThis$Y(DatePrototype$3.setFullYear);
// `Date.prototype.setYear` method
// https://tc39.es/ecma262/#sec-date.prototype.setyear
$$2f({ target: 'Date', proto: true }, {
setYear: function setYear(year) {
// validate
thisTimeValue$3(this);
var yi = toIntegerOrInfinity$a(year);
var yyyy = yi >= 0 && yi <= 99 ? yi + 1900 : yi;
return setFullYear(this, yyyy);
}
});
var $$2e = _export;
// `Date.prototype.toGMTString` method
// https://tc39.es/ecma262/#sec-date.prototype.togmtstring
$$2e({ target: 'Date', proto: true }, {
toGMTString: Date.prototype.toUTCString
});
var toIntegerOrInfinity$9 = toIntegerOrInfinity$l;
var toString$w = toString$C;
var requireObjectCoercible$k = requireObjectCoercible$n;
var $RangeError$7 = RangeError;
// `String.prototype.repeat` method implementation
// https://tc39.es/ecma262/#sec-string.prototype.repeat
var stringRepeat = function repeat(count) {
var str = toString$w(requireObjectCoercible$k(this));
var result = '';
var n = toIntegerOrInfinity$9(count);
if (n < 0 || n === Infinity) throw new $RangeError$7('Wrong number of repetitions');
for (;n > 0; (n >>>= 1) && (str += str)) if (n & 1) result += str;
return result;
};
// https://github.com/tc39/proposal-string-pad-start-end
var uncurryThis$X = functionUncurryThis;
var toLength$8 = toLength$d;
var toString$v = toString$C;
var $repeat$2 = stringRepeat;
var requireObjectCoercible$j = requireObjectCoercible$n;
var repeat$3 = uncurryThis$X($repeat$2);
var stringSlice$f = uncurryThis$X(''.slice);
var ceil = Math.ceil;
// `String.prototype.{ padStart, padEnd }` methods implementation
var createMethod$3 = function (IS_END) {
return function ($this, maxLength, fillString) {
var S = toString$v(requireObjectCoercible$j($this));
var intMaxLength = toLength$8(maxLength);
var stringLength = S.length;
var fillStr = fillString === undefined ? ' ' : toString$v(fillString);
var fillLen, stringFiller;
if (intMaxLength <= stringLength || fillStr === '') return S;
fillLen = intMaxLength - stringLength;
stringFiller = repeat$3(fillStr, ceil(fillLen / fillStr.length));
if (stringFiller.length > fillLen) stringFiller = stringSlice$f(stringFiller, 0, fillLen);
return IS_END ? S + stringFiller : stringFiller + S;
};
};
var stringPad = {
// `String.prototype.padStart` method
// https://tc39.es/ecma262/#sec-string.prototype.padstart
start: createMethod$3(false),
// `String.prototype.padEnd` method
// https://tc39.es/ecma262/#sec-string.prototype.padend
end: createMethod$3(true)
};
var uncurryThis$W = functionUncurryThis;
var fails$Y = fails$1p;
var padStart = stringPad.start;
var $RangeError$6 = RangeError;
var $isFinite$1 = isFinite;
var abs$7 = Math.abs;
var DatePrototype$2 = Date.prototype;
var nativeDateToISOString = DatePrototype$2.toISOString;
var thisTimeValue$2 = uncurryThis$W(DatePrototype$2.getTime);
var getUTCDate = uncurryThis$W(DatePrototype$2.getUTCDate);
var getUTCFullYear = uncurryThis$W(DatePrototype$2.getUTCFullYear);
var getUTCHours = uncurryThis$W(DatePrototype$2.getUTCHours);
var getUTCMilliseconds = uncurryThis$W(DatePrototype$2.getUTCMilliseconds);
var getUTCMinutes = uncurryThis$W(DatePrototype$2.getUTCMinutes);
var getUTCMonth = uncurryThis$W(DatePrototype$2.getUTCMonth);
var getUTCSeconds = uncurryThis$W(DatePrototype$2.getUTCSeconds);
// `Date.prototype.toISOString` method implementation
// https://tc39.es/ecma262/#sec-date.prototype.toisostring
// PhantomJS / old WebKit fails here:
var dateToIsoString = (fails$Y(function () {
return nativeDateToISOString.call(new Date(-5e13 - 1)) !== '0385-07-25T07:06:39.999Z';
}) || !fails$Y(function () {
nativeDateToISOString.call(new Date(NaN));
})) ? function toISOString() {
if (!$isFinite$1(thisTimeValue$2(this))) throw new $RangeError$6('Invalid time value');
var date = this;
var year = getUTCFullYear(date);
var milliseconds = getUTCMilliseconds(date);
var sign = year < 0 ? '-' : year > 9999 ? '+' : '';
return sign + padStart(abs$7(year), sign ? 6 : 4, 0) +
'-' + padStart(getUTCMonth(date) + 1, 2, 0) +
'-' + padStart(getUTCDate(date), 2, 0) +
'T' + padStart(getUTCHours(date), 2, 0) +
':' + padStart(getUTCMinutes(date), 2, 0) +
':' + padStart(getUTCSeconds(date), 2, 0) +
'.' + padStart(milliseconds, 3, 0) +
'Z';
} : nativeDateToISOString;
var $$2d = _export;
var toISOString = dateToIsoString;
// `Date.prototype.toISOString` method
// https://tc39.es/ecma262/#sec-date.prototype.toisostring
// PhantomJS / old WebKit has a broken implementations
$$2d({ target: 'Date', proto: true, forced: Date.prototype.toISOString !== toISOString }, {
toISOString: toISOString
});
var $$2c = _export;
var fails$X = fails$1p;
var toObject$c = toObject$u;
var toPrimitive$3 = toPrimitive$5;
var FORCED$r = fails$X(function () {
return new Date(NaN).toJSON() !== null
|| Date.prototype.toJSON.call({ toISOString: function () { return 1; } }) !== 1;
});
// `Date.prototype.toJSON` method
// https://tc39.es/ecma262/#sec-date.prototype.tojson
$$2c({ target: 'Date', proto: true, arity: 1, forced: FORCED$r }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
toJSON: function toJSON(key) {
var O = toObject$c(this);
var pv = toPrimitive$3(O, 'number');
return typeof pv == 'number' && !isFinite(pv) ? null : O.toISOString();
}
});
var anObject$p = anObject$D;
var ordinaryToPrimitive = ordinaryToPrimitive$2;
var $TypeError$a = TypeError;
// `Date.prototype[@@toPrimitive](hint)` method implementation
// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive
var dateToPrimitive$1 = function (hint) {
anObject$p(this);
if (hint === 'string' || hint === 'default') hint = 'string';
else if (hint !== 'number') throw new $TypeError$a('Incorrect hint');
return ordinaryToPrimitive(this, hint);
};
var hasOwn$f = hasOwnProperty_1;
var defineBuiltIn$f = defineBuiltIn$o;
var dateToPrimitive = dateToPrimitive$1;
var wellKnownSymbol$d = wellKnownSymbol$z;
var TO_PRIMITIVE = wellKnownSymbol$d('toPrimitive');
var DatePrototype$1 = Date.prototype;
// `Date.prototype[@@toPrimitive]` method
// https://tc39.es/ecma262/#sec-date.prototype-@@toprimitive
if (!hasOwn$f(DatePrototype$1, TO_PRIMITIVE)) {
defineBuiltIn$f(DatePrototype$1, TO_PRIMITIVE, dateToPrimitive);
}
// TODO: Remove from `core-js@4`
var uncurryThis$V = functionUncurryThis;
var defineBuiltIn$e = defineBuiltIn$o;
var DatePrototype = Date.prototype;
var INVALID_DATE = 'Invalid Date';
var TO_STRING$1 = 'toString';
var nativeDateToString = uncurryThis$V(DatePrototype[TO_STRING$1]);
var thisTimeValue$1 = uncurryThis$V(DatePrototype.getTime);
// `Date.prototype.toString` method
// https://tc39.es/ecma262/#sec-date.prototype.tostring
if (String(new Date(NaN)) !== INVALID_DATE) {
defineBuiltIn$e(DatePrototype, TO_STRING$1, function toString() {
var value = thisTimeValue$1(this);
// eslint-disable-next-line no-self-compare -- NaN check
return value === value ? nativeDateToString(this) : INVALID_DATE;
});
}
var $$2b = _export;
var uncurryThis$U = functionUncurryThis;
var toString$u = toString$C;
var charAt$e = uncurryThis$U(''.charAt);
var charCodeAt$6 = uncurryThis$U(''.charCodeAt);
var exec$7 = uncurryThis$U(/./.exec);
var numberToString$1 = uncurryThis$U(1.0.toString);
var toUpperCase = uncurryThis$U(''.toUpperCase);
var raw = /[\w*+\-./@]/;
var hex$1 = function (code, length) {
var result = numberToString$1(code, 16);
while (result.length < length) result = '0' + result;
return result;
};
// `escape` method
// https://tc39.es/ecma262/#sec-escape-string
$$2b({ global: true }, {
escape: function escape(string) {
var str = toString$u(string);
var result = '';
var length = str.length;
var index = 0;
var chr, code;
while (index < length) {
chr = charAt$e(str, index++);
if (exec$7(raw, chr)) {
result += chr;
} else {
code = charCodeAt$6(chr, 0);
if (code < 256) {
result += '%' + hex$1(code, 2);
} else {
result += '%u' + toUpperCase(hex$1(code, 4));
}
}
} return result;
}
});
var uncurryThis$T = functionUncurryThis;
var aCallable$e = aCallable$n;
var isObject$m = isObject$A;
var hasOwn$e = hasOwnProperty_1;
var arraySlice$5 = arraySlice$a;
var NATIVE_BIND = functionBindNative;
var $Function = Function;
var concat$2 = uncurryThis$T([].concat);
var join$7 = uncurryThis$T([].join);
var factories = {};
var construct = function (C, argsLength, args) {
if (!hasOwn$e(factories, argsLength)) {
var list = [];
var i = 0;
for (; i < argsLength; i++) list[i] = 'a[' + i + ']';
factories[argsLength] = $Function('C,a', 'return new C(' + join$7(list, ',') + ')');
} return factories[argsLength](C, args);
};
// `Function.prototype.bind` method implementation
// https://tc39.es/ecma262/#sec-function.prototype.bind
// eslint-disable-next-line es/no-function-prototype-bind -- detection
var functionBind = NATIVE_BIND ? $Function.bind : function bind(that /* , ...args */) {
var F = aCallable$e(this);
var Prototype = F.prototype;
var partArgs = arraySlice$5(arguments, 1);
var boundFunction = function bound(/* args... */) {
var args = concat$2(partArgs, arraySlice$5(arguments));
return this instanceof boundFunction ? construct(F, args.length, args) : F.apply(that, args);
};
if (isObject$m(Prototype)) boundFunction.prototype = Prototype;
return boundFunction;
};
// TODO: Remove from `core-js@4`
var $$2a = _export;
var bind$8 = functionBind;
// `Function.prototype.bind` method
// https://tc39.es/ecma262/#sec-function.prototype.bind
// eslint-disable-next-line es/no-function-prototype-bind -- detection
$$2a({ target: 'Function', proto: true, forced: Function.bind !== bind$8 }, {
bind: bind$8
});
var isCallable$d = isCallable$y;
var isObject$l = isObject$A;
var definePropertyModule$5 = objectDefineProperty;
var isPrototypeOf$4 = objectIsPrototypeOf;
var wellKnownSymbol$c = wellKnownSymbol$z;
var makeBuiltIn = makeBuiltInExports;
var HAS_INSTANCE = wellKnownSymbol$c('hasInstance');
var FunctionPrototype$1 = Function.prototype;
// `Function.prototype[@@hasInstance]` method
// https://tc39.es/ecma262/#sec-function.prototype-@@hasinstance
if (!(HAS_INSTANCE in FunctionPrototype$1)) {
definePropertyModule$5.f(FunctionPrototype$1, HAS_INSTANCE, { value: makeBuiltIn(function (O) {
if (!isCallable$d(this) || !isObject$l(O)) return false;
var P = this.prototype;
return isObject$l(P) ? isPrototypeOf$4(P, O) : O instanceof this;
}, HAS_INSTANCE) });
}
var DESCRIPTORS$t = descriptors;
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
var uncurryThis$S = functionUncurryThis;
var defineBuiltInAccessor$b = defineBuiltInAccessor$i;
var FunctionPrototype = Function.prototype;
var functionToString = uncurryThis$S(FunctionPrototype.toString);
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
var regExpExec$5 = uncurryThis$S(nameRE.exec);
var NAME = 'name';
// Function instances `.name` property
// https://tc39.es/ecma262/#sec-function-instances-name
if (DESCRIPTORS$t && !FUNCTION_NAME_EXISTS) {
defineBuiltInAccessor$b(FunctionPrototype, NAME, {
configurable: true,
get: function () {
try {
return regExpExec$5(nameRE, functionToString(this))[1];
} catch (error) {
return '';
}
}
});
}
var $$29 = _export;
var global$H = global$11;
// `globalThis` object
// https://tc39.es/ecma262/#sec-globalthis
$$29({ global: true, forced: global$H.globalThis !== global$H }, {
globalThis: global$H
});
var global$G = global$11;
var setToStringTag$8 = setToStringTag$e;
// JSON[@@toStringTag] property
// https://tc39.es/ecma262/#sec-json-@@tostringtag
setToStringTag$8(global$G.JSON, 'JSON', true);
var internalMetadata = {exports: {}};
// FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
var fails$W = fails$1p;
var arrayBufferNonExtensible = fails$W(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$V = fails$1p;
var isObject$k = isObject$A;
var classof$d = classofRaw$2;
var ARRAY_BUFFER_NON_EXTENSIBLE$2 = arrayBufferNonExtensible;
// eslint-disable-next-line es/no-object-isextensible -- safe
var $isExtensible$2 = Object.isExtensible;
var FAILS_ON_PRIMITIVES$6 = fails$V(function () { $isExtensible$2(1); });
// `Object.isExtensible` method
// https://tc39.es/ecma262/#sec-object.isextensible
var objectIsExtensible = (FAILS_ON_PRIMITIVES$6 || ARRAY_BUFFER_NON_EXTENSIBLE$2) ? function isExtensible(it) {
if (!isObject$k(it)) return false;
if (ARRAY_BUFFER_NON_EXTENSIBLE$2 && classof$d(it) === 'ArrayBuffer') return false;
return $isExtensible$2 ? $isExtensible$2(it) : true;
} : $isExtensible$2;
var fails$U = fails$1p;
var freezing = !fails$U(function () {
// eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
return Object.isExtensible(Object.preventExtensions({}));
});
var $$28 = _export;
var uncurryThis$R = functionUncurryThis;
var hiddenKeys = hiddenKeys$6;
var isObject$j = isObject$A;
var hasOwn$d = hasOwnProperty_1;
var defineProperty$7 = objectDefineProperty.f;
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
var getOwnPropertyNamesExternalModule = objectGetOwnPropertyNamesExternal;
var isExtensible$1 = objectIsExtensible;
var uid$1 = uid$6;
var FREEZING$5 = freezing;
var REQUIRED = false;
var METADATA = uid$1('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$j(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
if (!hasOwn$d(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$d(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$3 = function (it) {
if (FREEZING$5 && REQUIRED && isExtensible$1(it) && !hasOwn$d(it, METADATA)) setMetadata(it);
return it;
};
var enable = function () {
meta.enable = function () { /* empty */ };
REQUIRED = true;
var getOwnPropertyNames = getOwnPropertyNamesModule.f;
var splice = uncurryThis$R([].splice);
var test = {};
test[METADATA] = 1;
// prevent exposing of metadata key
if (getOwnPropertyNames(test).length) {
getOwnPropertyNamesModule.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;
};
$$28({ target: 'Object', stat: true, forced: true }, {
getOwnPropertyNames: getOwnPropertyNamesExternalModule.f
});
}
};
var meta = internalMetadata.exports = {
enable: enable,
fastKey: fastKey$1,
getWeakData: getWeakData$1,
onFreeze: onFreeze$3
};
hiddenKeys[METADATA] = true;
var internalMetadataExports = internalMetadata.exports;
var $$27 = _export;
var global$F = global$11;
var uncurryThis$Q = functionUncurryThis;
var isForced$3 = isForced_1;
var defineBuiltIn$d = defineBuiltIn$o;
var InternalMetadataModule$1 = internalMetadataExports;
var iterate$a = iterate$c;
var anInstance$8 = anInstance$a;
var isCallable$c = isCallable$y;
var isNullOrUndefined$9 = isNullOrUndefined$e;
var isObject$i = isObject$A;
var fails$T = fails$1p;
var checkCorrectnessOfIteration$2 = checkCorrectnessOfIteration$4;
var setToStringTag$7 = setToStringTag$e;
var inheritIfRequired$4 = inheritIfRequired$7;
var collection$4 = 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$F[CONSTRUCTOR_NAME];
var NativePrototype = NativeConstructor && NativeConstructor.prototype;
var Constructor = NativeConstructor;
var exported = {};
var fixMethod = function (KEY) {
var uncurriedNativeMethod = uncurryThis$Q(NativePrototype[KEY]);
defineBuiltIn$d(NativePrototype, KEY,
KEY === 'add' ? function add(value) {
uncurriedNativeMethod(this, value === 0 ? 0 : value);
return this;
} : KEY === 'delete' ? function (key) {
return IS_WEAK && !isObject$i(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
} : KEY === 'get' ? function get(key) {
return IS_WEAK && !isObject$i(key) ? undefined : uncurriedNativeMethod(this, key === 0 ? 0 : key);
} : KEY === 'has' ? function has(key) {
return IS_WEAK && !isObject$i(key) ? false : uncurriedNativeMethod(this, key === 0 ? 0 : key);
} : function set(key, value) {
uncurriedNativeMethod(this, key === 0 ? 0 : key, value);
return this;
}
);
};
var REPLACE = isForced$3(
CONSTRUCTOR_NAME,
!isCallable$c(NativeConstructor) || !(IS_WEAK || NativePrototype.forEach && !fails$T(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$3(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$T(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$2(function (iterable) { new NativeConstructor(iterable); });
// for early implementations -0 and +0 not the same
var BUGGY_ZERO = !IS_WEAK && fails$T(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$8(dummy, NativePrototype);
var that = inheritIfRequired$4(new NativeConstructor(), dummy, Constructor);
if (!isNullOrUndefined$9(iterable)) iterate$a(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;
$$27({ global: true, constructor: true, forced: Constructor !== NativeConstructor }, exported);
setToStringTag$7(Constructor, CONSTRUCTOR_NAME);
if (!IS_WEAK) common.setStrong(Constructor, CONSTRUCTOR_NAME, IS_MAP);
return Constructor;
};
var create$8 = objectCreate;
var defineBuiltInAccessor$a = defineBuiltInAccessor$i;
var defineBuiltIns$3 = defineBuiltIns$5;
var bind$7 = functionBindContext;
var anInstance$7 = anInstance$a;
var isNullOrUndefined$8 = isNullOrUndefined$e;
var iterate$9 = iterate$c;
var defineIterator$1 = iteratorDefine;
var createIterResultObject$3 = createIterResultObject$5;
var setSpecies$3 = setSpecies$6;
var DESCRIPTORS$s = descriptors;
var fastKey = internalMetadataExports.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$7(that, Prototype);
setInternalState$8(that, {
type: CONSTRUCTOR_NAME,
index: create$8(null),
first: undefined,
last: undefined,
size: 0
});
if (!DESCRIPTORS$s) that.size = 0;
if (!isNullOrUndefined$8(iterable)) iterate$9(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$s) 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;
}
};
defineBuiltIns$3(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 entry = state.first;
while (entry) {
entry.removed = true;
if (entry.previous) entry.previous = entry.previous.next = undefined;
entry = entry.next;
}
state.first = state.last = undefined;
state.index = create$8(null);
if (DESCRIPTORS$s) 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$s) 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);
}
});
defineBuiltIns$3(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$s) defineBuiltInAccessor$a(Prototype, 'size', {
configurable: true,
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 createIterResultObject$3(undefined, true);
}
// return step by kind
if (kind === 'keys') return createIterResultObject$3(entry.key, false);
if (kind === 'values') return createIterResultObject$3(entry.value, false);
return createIterResultObject$3([entry.key, entry.value], 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$3(CONSTRUCTOR_NAME);
}
};
var collection$3 = collection$4;
var collectionStrong$1 = collectionStrong$2;
// `Map` constructor
// https://tc39.es/ecma262/#sec-map-objects
collection$3('Map', function (init) {
return function Map() { return init(this, arguments.length ? arguments[0] : undefined); };
}, collectionStrong$1);
var uncurryThis$P = functionUncurryThis;
// eslint-disable-next-line es/no-map -- safe
var MapPrototype = Map.prototype;
var mapHelpers = {
// eslint-disable-next-line es/no-map -- safe
Map: Map,
set: uncurryThis$P(MapPrototype.set),
get: uncurryThis$P(MapPrototype.get),
has: uncurryThis$P(MapPrototype.has),
remove: uncurryThis$P(MapPrototype['delete']),
proto: MapPrototype
};
var $$26 = _export;
var uncurryThis$O = functionUncurryThis;
var aCallable$d = aCallable$n;
var requireObjectCoercible$i = requireObjectCoercible$n;
var iterate$8 = iterate$c;
var MapHelpers$1 = mapHelpers;
var IS_PURE$3 = isPure;
var Map$3 = MapHelpers$1.Map;
var has$3 = MapHelpers$1.has;
var get$1 = MapHelpers$1.get;
var set$2 = MapHelpers$1.set;
var push$b = uncurryThis$O([].push);
// `Map.groupBy` method
// https://github.com/tc39/proposal-array-grouping
$$26({ target: 'Map', stat: true, forced: IS_PURE$3 }, {
groupBy: function groupBy(items, callbackfn) {
requireObjectCoercible$i(items);
aCallable$d(callbackfn);
var map = new Map$3();
var k = 0;
iterate$8(items, function (value) {
var key = callbackfn(value, k++);
if (!has$3(map, key)) set$2(map, key, [value]);
else push$b(get$1(map, key), value);
});
return map;
}
});
var log$7 = Math.log;
// `Math.log1p` method implementation
// https://tc39.es/ecma262/#sec-math.log1p
// eslint-disable-next-line es/no-math-log1p -- safe
var mathLog1p = Math.log1p || function log1p(x) {
var n = +x;
return n > -1e-8 && n < 1e-8 ? n - n * n / 2 : log$7(1 + n);
};
var $$25 = _export;
var log1p$1 = mathLog1p;
// eslint-disable-next-line es/no-math-acosh -- required for testing
var $acosh = Math.acosh;
var log$6 = Math.log;
var sqrt$2 = Math.sqrt;
var LN2$1 = Math.LN2;
var FORCED$q = !$acosh
// V8 bug: https://code.google.com/p/v8/issues/detail?id=3509
|| Math.floor($acosh(Number.MAX_VALUE)) !== 710
// Tor Browser bug: Math.acosh(Infinity) -> NaN
|| $acosh(Infinity) !== Infinity;
// `Math.acosh` method
// https://tc39.es/ecma262/#sec-math.acosh
$$25({ target: 'Math', stat: true, forced: FORCED$q }, {
acosh: function acosh(x) {
var n = +x;
return n < 1 ? NaN : n > 94906265.62425156
? log$6(n) + LN2$1
: log1p$1(n - 1 + sqrt$2(n - 1) * sqrt$2(n + 1));
}
});
var $$24 = _export;
// eslint-disable-next-line es/no-math-asinh -- required for testing
var $asinh = Math.asinh;
var log$5 = Math.log;
var sqrt$1 = Math.sqrt;
function asinh(x) {
var n = +x;
return !isFinite(n) || n === 0 ? n : n < 0 ? -asinh(-n) : log$5(n + sqrt$1(n * n + 1));
}
var FORCED$p = !($asinh && 1 / $asinh(0) > 0);
// `Math.asinh` method
// https://tc39.es/ecma262/#sec-math.asinh
// Tor Browser bug: Math.asinh(0) -> -0
$$24({ target: 'Math', stat: true, forced: FORCED$p }, {
asinh: asinh
});
var $$23 = _export;
// eslint-disable-next-line es/no-math-atanh -- required for testing
var $atanh = Math.atanh;
var log$4 = Math.log;
var FORCED$o = !($atanh && 1 / $atanh(-0) < 0);
// `Math.atanh` method
// https://tc39.es/ecma262/#sec-math.atanh
// Tor Browser bug: Math.atanh(-0) -> 0
$$23({ target: 'Math', stat: true, forced: FORCED$o }, {
atanh: function atanh(x) {
var n = +x;
return n === 0 ? n : log$4((1 + n) / (1 - n)) / 2;
}
});
var $$22 = _export;
var sign$1 = mathSign;
var abs$6 = Math.abs;
var pow$3 = Math.pow;
// `Math.cbrt` method
// https://tc39.es/ecma262/#sec-math.cbrt
$$22({ target: 'Math', stat: true }, {
cbrt: function cbrt(x) {
var n = +x;
return sign$1(n) * pow$3(abs$6(n), 1 / 3);
}
});
var $$21 = _export;
var floor$7 = Math.floor;
var log$3 = Math.log;
var LOG2E = Math.LOG2E;
// `Math.clz32` method
// https://tc39.es/ecma262/#sec-math.clz32
$$21({ target: 'Math', stat: true }, {
clz32: function clz32(x) {
var n = x >>> 0;
return n ? 31 - floor$7(log$3(n + 0.5) * LOG2E) : 32;
}
});
// eslint-disable-next-line es/no-math-expm1 -- safe
var $expm1 = Math.expm1;
var exp$2 = Math.exp;
// `Math.expm1` method implementation
// https://tc39.es/ecma262/#sec-math.expm1
var mathExpm1 = (!$expm1
// Old FF bug
// eslint-disable-next-line no-loss-of-precision -- required for old engines
|| $expm1(10) > 22025.465794806719 || $expm1(10) < 22025.4657948067165168
// Tor Browser bug
|| $expm1(-2e-17) !== -2e-17
) ? function expm1(x) {
var n = +x;
return n === 0 ? n : n > -1e-6 && n < 1e-6 ? n + n * n / 2 : exp$2(n) - 1;
} : $expm1;
var $$20 = _export;
var expm1$3 = mathExpm1;
// eslint-disable-next-line es/no-math-cosh -- required for testing
var $cosh = Math.cosh;
var abs$5 = Math.abs;
var E$2 = Math.E;
var FORCED$n = !$cosh || $cosh(710) === Infinity;
// `Math.cosh` method
// https://tc39.es/ecma262/#sec-math.cosh
$$20({ target: 'Math', stat: true, forced: FORCED$n }, {
cosh: function cosh(x) {
var t = expm1$3(abs$5(x) - 1) + 1;
return (t + 1 / (t * E$2 * E$2)) * (E$2 / 2);
}
});
var $$1$ = _export;
var expm1$2 = mathExpm1;
// `Math.expm1` method
// https://tc39.es/ecma262/#sec-math.expm1
// eslint-disable-next-line es/no-math-expm1 -- required for testing
$$1$({ target: 'Math', stat: true, forced: expm1$2 !== Math.expm1 }, { expm1: expm1$2 });
var $$1_ = _export;
var fround = mathFround;
// `Math.fround` method
// https://tc39.es/ecma262/#sec-math.fround
$$1_({ target: 'Math', stat: true }, { fround: fround });
var $$1Z = _export;
// eslint-disable-next-line es/no-math-hypot -- required for testing
var $hypot = Math.hypot;
var abs$4 = Math.abs;
var sqrt = Math.sqrt;
// Chrome 77 bug
// https://bugs.chromium.org/p/v8/issues/detail?id=9546
var FORCED$m = !!$hypot && $hypot(Infinity, NaN) !== Infinity;
// `Math.hypot` method
// https://tc39.es/ecma262/#sec-math.hypot
$$1Z({ target: 'Math', stat: true, arity: 2, forced: FORCED$m }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
hypot: function hypot(value1, value2) {
var sum = 0;
var i = 0;
var aLen = arguments.length;
var larg = 0;
var arg, div;
while (i < aLen) {
arg = abs$4(arguments[i++]);
if (larg < arg) {
div = larg / arg;
sum = sum * div * div + 1;
larg = arg;
} else if (arg > 0) {
div = arg / larg;
sum += div * div;
} else sum += arg;
}
return larg === Infinity ? Infinity : larg * sqrt(sum);
}
});
var $$1Y = _export;
var fails$S = fails$1p;
// eslint-disable-next-line es/no-math-imul -- required for testing
var $imul = Math.imul;
var FORCED$l = fails$S(function () {
return $imul(0xFFFFFFFF, 5) !== -5 || $imul.length !== 2;
});
// `Math.imul` method
// https://tc39.es/ecma262/#sec-math.imul
// some WebKit versions fails with big numbers, some has wrong arity
$$1Y({ target: 'Math', stat: true, forced: FORCED$l }, {
imul: function imul(x, y) {
var UINT16 = 0xFFFF;
var xn = +x;
var yn = +y;
var xl = UINT16 & xn;
var yl = UINT16 & yn;
return 0 | xl * yl + ((UINT16 & xn >>> 16) * yl + xl * (UINT16 & yn >>> 16) << 16 >>> 0);
}
});
var log$2 = Math.log;
var LOG10E = Math.LOG10E;
// eslint-disable-next-line es/no-math-log10 -- safe
var mathLog10 = Math.log10 || function log10(x) {
return log$2(x) * LOG10E;
};
var $$1X = _export;
var log10$1 = mathLog10;
// `Math.log10` method
// https://tc39.es/ecma262/#sec-math.log10
$$1X({ target: 'Math', stat: true }, {
log10: log10$1
});
var $$1W = _export;
var log1p = mathLog1p;
// `Math.log1p` method
// https://tc39.es/ecma262/#sec-math.log1p
$$1W({ target: 'Math', stat: true }, { log1p: log1p });
var $$1V = _export;
var log$1 = Math.log;
var LN2 = Math.LN2;
// `Math.log2` method
// https://tc39.es/ecma262/#sec-math.log2
$$1V({ target: 'Math', stat: true }, {
log2: function log2(x) {
return log$1(x) / LN2;
}
});
var $$1U = _export;
var sign = mathSign;
// `Math.sign` method
// https://tc39.es/ecma262/#sec-math.sign
$$1U({ target: 'Math', stat: true }, {
sign: sign
});
var $$1T = _export;
var fails$R = fails$1p;
var expm1$1 = mathExpm1;
var abs$3 = Math.abs;
var exp$1 = Math.exp;
var E$1 = Math.E;
var FORCED$k = fails$R(function () {
// eslint-disable-next-line es/no-math-sinh -- required for testing
return Math.sinh(-2e-17) !== -2e-17;
});
// `Math.sinh` method
// https://tc39.es/ecma262/#sec-math.sinh
// V8 near Chromium 38 has a problem with very small numbers
$$1T({ target: 'Math', stat: true, forced: FORCED$k }, {
sinh: function sinh(x) {
var n = +x;
return abs$3(n) < 1 ? (expm1$1(n) - expm1$1(-n)) / 2 : (exp$1(n - 1) - exp$1(-n - 1)) * (E$1 / 2);
}
});
var $$1S = _export;
var expm1 = mathExpm1;
var exp = Math.exp;
// `Math.tanh` method
// https://tc39.es/ecma262/#sec-math.tanh
$$1S({ target: 'Math', stat: true }, {
tanh: function tanh(x) {
var n = +x;
var a = expm1(n);
var b = expm1(-n);
return a === Infinity ? 1 : b === Infinity ? -1 : (a - b) / (exp(n) + exp(-n));
}
});
var setToStringTag$6 = setToStringTag$e;
// Math[@@toStringTag] property
// https://tc39.es/ecma262/#sec-math-@@tostringtag
setToStringTag$6(Math, 'Math', true);
var $$1R = _export;
var trunc = mathTrunc;
// `Math.trunc` method
// https://tc39.es/ecma262/#sec-math.trunc
$$1R({ target: 'Math', stat: true }, {
trunc: trunc
});
var uncurryThis$N = functionUncurryThis;
// `thisNumberValue` abstract operation
// https://tc39.es/ecma262/#sec-thisnumbervalue
var thisNumberValue$5 = uncurryThis$N(1.0.valueOf);
// a string of all valid unicode whitespaces
var whitespaces$5 = '\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$M = functionUncurryThis;
var requireObjectCoercible$h = requireObjectCoercible$n;
var toString$t = toString$C;
var whitespaces$4 = whitespaces$5;
var replace$9 = uncurryThis$M(''.replace);
var ltrim = RegExp('^[' + whitespaces$4 + ']+');
var rtrim = RegExp('(^|[^' + whitespaces$4 + '])[' + whitespaces$4 + ']+$');
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
var createMethod$2 = function (TYPE) {
return function ($this) {
var string = toString$t(requireObjectCoercible$h($this));
if (TYPE & 1) string = replace$9(string, ltrim, '');
if (TYPE & 2) string = replace$9(string, rtrim, '$1');
return string;
};
};
var stringTrim = {
// `String.prototype.{ trimLeft, trimStart }` methods
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
start: createMethod$2(1),
// `String.prototype.{ trimRight, trimEnd }` methods
// https://tc39.es/ecma262/#sec-string.prototype.trimend
end: createMethod$2(2),
// `String.prototype.trim` method
// https://tc39.es/ecma262/#sec-string.prototype.trim
trim: createMethod$2(3)
};
var $$1Q = _export;
var IS_PURE$2 = isPure;
var DESCRIPTORS$r = descriptors;
var global$E = global$11;
var path = path$2;
var uncurryThis$L = functionUncurryThis;
var isForced$2 = isForced_1;
var hasOwn$c = hasOwnProperty_1;
var inheritIfRequired$3 = inheritIfRequired$7;
var isPrototypeOf$3 = objectIsPrototypeOf;
var isSymbol$2 = isSymbol$7;
var toPrimitive$2 = toPrimitive$5;
var fails$Q = fails$1p;
var getOwnPropertyNames$3 = objectGetOwnPropertyNames.f;
var getOwnPropertyDescriptor$6 = objectGetOwnPropertyDescriptor.f;
var defineProperty$6 = objectDefineProperty.f;
var thisNumberValue$4 = thisNumberValue$5;
var trim$3 = stringTrim.trim;
var NUMBER = 'Number';
var NativeNumber = global$E[NUMBER];
path[NUMBER];
var NumberPrototype = NativeNumber.prototype;
var TypeError$5 = global$E.TypeError;
var stringSlice$e = uncurryThis$L(''.slice);
var charCodeAt$5 = uncurryThis$L(''.charCodeAt);
// `ToNumeric` abstract operation
// https://tc39.es/ecma262/#sec-tonumeric
var toNumeric = function (value) {
var primValue = toPrimitive$2(value, 'number');
return typeof primValue == 'bigint' ? primValue : toNumber(primValue);
};
// `ToNumber` abstract operation
// https://tc39.es/ecma262/#sec-tonumber
var toNumber = function (argument) {
var it = toPrimitive$2(argument, 'number');
var first, third, radix, maxCode, digits, length, index, code;
if (isSymbol$2(it)) throw new TypeError$5('Cannot convert a Symbol value to a number');
if (typeof it == 'string' && it.length > 2) {
it = trim$3(it);
first = charCodeAt$5(it, 0);
if (first === 43 || first === 45) {
third = charCodeAt$5(it, 2);
if (third === 88 || third === 120) return NaN; // Number('+0x1') should be NaN, old V8 fix
} else if (first === 48) {
switch (charCodeAt$5(it, 1)) {
// fast equal of /^0b[01]+$/i
case 66:
case 98:
radix = 2;
maxCode = 49;
break;
// fast equal of /^0o[0-7]+$/i
case 79:
case 111:
radix = 8;
maxCode = 55;
break;
default:
return +it;
}
digits = stringSlice$e(it, 2);
length = digits.length;
for (index = 0; index < length; index++) {
code = charCodeAt$5(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;
};
var FORCED$j = isForced$2(NUMBER, !NativeNumber(' 0o1') || !NativeNumber('0b1') || NativeNumber('+0x1'));
var calledWithNew = function (dummy) {
// includes check on 1..constructor(foo) case
return isPrototypeOf$3(NumberPrototype, dummy) && fails$Q(function () { thisNumberValue$4(dummy); });
};
// `Number` constructor
// https://tc39.es/ecma262/#sec-number-constructor
var NumberWrapper = function Number(value) {
var n = arguments.length < 1 ? 0 : NativeNumber(toNumeric(value));
return calledWithNew(this) ? inheritIfRequired$3(Object(n), this, NumberWrapper) : n;
};
NumberWrapper.prototype = NumberPrototype;
if (FORCED$j && !IS_PURE$2) NumberPrototype.constructor = NumberWrapper;
$$1Q({ global: true, constructor: true, wrap: true, forced: FORCED$j }, {
Number: NumberWrapper
});
// Use `internal/copy-constructor-properties` helper in `core-js@4`
var copyConstructorProperties = function (target, source) {
for (var keys = DESCRIPTORS$r ? getOwnPropertyNames$3(source) : (
// ES3:
'MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,' +
// ES2015 (in case, if modules with ES2015 Number statics required before):
'EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,' +
// ESNext
'fromString,range'
).split(','), j = 0, key; keys.length > j; j++) {
if (hasOwn$c(source, key = keys[j]) && !hasOwn$c(target, key)) {
defineProperty$6(target, key, getOwnPropertyDescriptor$6(source, key));
}
}
};
if (FORCED$j || IS_PURE$2) copyConstructorProperties(path[NUMBER], NativeNumber);
var $$1P = _export;
// `Number.EPSILON` constant
// https://tc39.es/ecma262/#sec-number.epsilon
$$1P({ target: 'Number', stat: true, nonConfigurable: true, nonWritable: true }, {
EPSILON: Math.pow(2, -52)
});
var global$D = global$11;
var globalIsFinite = global$D.isFinite;
// `Number.isFinite` method
// https://tc39.es/ecma262/#sec-number.isfinite
// eslint-disable-next-line es/no-number-isfinite -- safe
var numberIsFinite$1 = Number.isFinite || function isFinite(it) {
return typeof it == 'number' && globalIsFinite(it);
};
var $$1O = _export;
var numberIsFinite = numberIsFinite$1;
// `Number.isFinite` method
// https://tc39.es/ecma262/#sec-number.isfinite
$$1O({ target: 'Number', stat: true }, { isFinite: numberIsFinite });
var isObject$h = isObject$A;
var floor$6 = Math.floor;
// `IsIntegralNumber` abstract operation
// https://tc39.es/ecma262/#sec-isintegralnumber
// eslint-disable-next-line es/no-number-isinteger -- safe
var isIntegralNumber$3 = Number.isInteger || function isInteger(it) {
return !isObject$h(it) && isFinite(it) && floor$6(it) === it;
};
var $$1N = _export;
var isIntegralNumber$2 = isIntegralNumber$3;
// `Number.isInteger` method
// https://tc39.es/ecma262/#sec-number.isinteger
$$1N({ target: 'Number', stat: true }, {
isInteger: isIntegralNumber$2
});
var $$1M = _export;
// `Number.isNaN` method
// https://tc39.es/ecma262/#sec-number.isnan
$$1M({ target: 'Number', stat: true }, {
isNaN: function isNaN(number) {
// eslint-disable-next-line no-self-compare -- NaN check
return number !== number;
}
});
var $$1L = _export;
var isIntegralNumber$1 = isIntegralNumber$3;
var abs$2 = Math.abs;
// `Number.isSafeInteger` method
// https://tc39.es/ecma262/#sec-number.issafeinteger
$$1L({ target: 'Number', stat: true }, {
isSafeInteger: function isSafeInteger(number) {
return isIntegralNumber$1(number) && abs$2(number) <= 0x1FFFFFFFFFFFFF;
}
});
var $$1K = _export;
// `Number.MAX_SAFE_INTEGER` constant
// https://tc39.es/ecma262/#sec-number.max_safe_integer
$$1K({ target: 'Number', stat: true, nonConfigurable: true, nonWritable: true }, {
MAX_SAFE_INTEGER: 0x1FFFFFFFFFFFFF
});
var $$1J = _export;
// `Number.MIN_SAFE_INTEGER` constant
// https://tc39.es/ecma262/#sec-number.min_safe_integer
$$1J({ target: 'Number', stat: true, nonConfigurable: true, nonWritable: true }, {
MIN_SAFE_INTEGER: -0x1FFFFFFFFFFFFF
});
var global$C = global$11;
var fails$P = fails$1p;
var uncurryThis$K = functionUncurryThis;
var toString$s = toString$C;
var trim$2 = stringTrim.trim;
var whitespaces$3 = whitespaces$5;
var charAt$d = uncurryThis$K(''.charAt);
var $parseFloat$1 = global$C.parseFloat;
var Symbol$2 = global$C.Symbol;
var ITERATOR$5 = Symbol$2 && Symbol$2.iterator;
var FORCED$i = 1 / $parseFloat$1(whitespaces$3 + '-0') !== -Infinity
// MS Edge 18- broken with boxed symbols
|| (ITERATOR$5 && !fails$P(function () { $parseFloat$1(Object(ITERATOR$5)); }));
// `parseFloat` method
// https://tc39.es/ecma262/#sec-parsefloat-string
var numberParseFloat = FORCED$i ? function parseFloat(string) {
var trimmedString = trim$2(toString$s(string));
var result = $parseFloat$1(trimmedString);
return result === 0 && charAt$d(trimmedString, 0) === '-' ? -0 : result;
} : $parseFloat$1;
var $$1I = _export;
var parseFloat$1 = numberParseFloat;
// `Number.parseFloat` method
// https://tc39.es/ecma262/#sec-number.parseFloat
// eslint-disable-next-line es/no-number-parsefloat -- required for testing
$$1I({ target: 'Number', stat: true, forced: Number.parseFloat !== parseFloat$1 }, {
parseFloat: parseFloat$1
});
var global$B = global$11;
var fails$O = fails$1p;
var uncurryThis$J = functionUncurryThis;
var toString$r = toString$C;
var trim$1 = stringTrim.trim;
var whitespaces$2 = whitespaces$5;
var $parseInt$1 = global$B.parseInt;
var Symbol$1 = global$B.Symbol;
var ITERATOR$4 = Symbol$1 && Symbol$1.iterator;
var hex = /^[+-]?0x/i;
var exec$6 = uncurryThis$J(hex.exec);
var FORCED$h = $parseInt$1(whitespaces$2 + '08') !== 8 || $parseInt$1(whitespaces$2 + '0x16') !== 22
// MS Edge 18- broken with boxed symbols
|| (ITERATOR$4 && !fails$O(function () { $parseInt$1(Object(ITERATOR$4)); }));
// `parseInt` method
// https://tc39.es/ecma262/#sec-parseint-string-radix
var numberParseInt = FORCED$h ? function parseInt(string, radix) {
var S = trim$1(toString$r(string));
return $parseInt$1(S, (radix >>> 0) || (exec$6(hex, S) ? 16 : 10));
} : $parseInt$1;
var $$1H = _export;
var parseInt$2 = numberParseInt;
// `Number.parseInt` method
// https://tc39.es/ecma262/#sec-number.parseint
// eslint-disable-next-line es/no-number-parseint -- required for testing
$$1H({ target: 'Number', stat: true, forced: Number.parseInt !== parseInt$2 }, {
parseInt: parseInt$2
});
var $$1G = _export;
var uncurryThis$I = functionUncurryThis;
var toIntegerOrInfinity$8 = toIntegerOrInfinity$l;
var thisNumberValue$3 = thisNumberValue$5;
var $repeat$1 = stringRepeat;
var log10 = mathLog10;
var fails$N = fails$1p;
var $RangeError$5 = RangeError;
var $String$1 = String;
var $isFinite = isFinite;
var abs$1 = Math.abs;
var floor$5 = Math.floor;
var pow$2 = Math.pow;
var round$1 = Math.round;
var nativeToExponential = uncurryThis$I(1.0.toExponential);
var repeat$2 = uncurryThis$I($repeat$1);
var stringSlice$d = uncurryThis$I(''.slice);
// Edge 17-
var ROUNDS_PROPERLY = nativeToExponential(-6.9e-11, 4) === '-6.9000e-11'
// IE11- && Edge 14-
&& nativeToExponential(1.255, 2) === '1.25e+0'
// FF86-, V8 ~ Chrome 49-50
&& nativeToExponential(12345, 3) === '1.235e+4'
// FF86-, V8 ~ Chrome 49-50
&& nativeToExponential(25, 0) === '3e+1';
// IE8-
var throwsOnInfinityFraction = function () {
return fails$N(function () {
nativeToExponential(1, Infinity);
}) && fails$N(function () {
nativeToExponential(1, -Infinity);
});
};
// Safari <11 && FF <50
var properNonFiniteThisCheck = function () {
return !fails$N(function () {
nativeToExponential(Infinity, Infinity);
nativeToExponential(NaN, Infinity);
});
};
var FORCED$g = !ROUNDS_PROPERLY || !throwsOnInfinityFraction() || !properNonFiniteThisCheck();
// `Number.prototype.toExponential` method
// https://tc39.es/ecma262/#sec-number.prototype.toexponential
$$1G({ target: 'Number', proto: true, forced: FORCED$g }, {
toExponential: function toExponential(fractionDigits) {
var x = thisNumberValue$3(this);
if (fractionDigits === undefined) return nativeToExponential(x);
var f = toIntegerOrInfinity$8(fractionDigits);
if (!$isFinite(x)) return String(x);
// TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation
if (f < 0 || f > 20) throw new $RangeError$5('Incorrect fraction digits');
if (ROUNDS_PROPERLY) return nativeToExponential(x, f);
var s = '';
var m = '';
var e = 0;
var c = '';
var d = '';
if (x < 0) {
s = '-';
x = -x;
}
if (x === 0) {
e = 0;
m = repeat$2('0', f + 1);
} else {
// this block is based on https://gist.github.com/SheetJSDev/1100ad56b9f856c95299ed0e068eea08
// TODO: improve accuracy with big fraction digits
var l = log10(x);
e = floor$5(l);
var n = 0;
var w = pow$2(10, e - f);
n = round$1(x / w);
if (2 * x >= (2 * n + 1) * w) {
n += 1;
}
if (n >= pow$2(10, f + 1)) {
n /= 10;
e += 1;
}
m = $String$1(n);
}
if (f !== 0) {
m = stringSlice$d(m, 0, 1) + '.' + stringSlice$d(m, 1);
}
if (e === 0) {
c = '+';
d = '0';
} else {
c = e > 0 ? '+' : '-';
d = $String$1(abs$1(e));
}
m += 'e' + c + d;
return s + m;
}
});
var $$1F = _export;
var uncurryThis$H = functionUncurryThis;
var toIntegerOrInfinity$7 = toIntegerOrInfinity$l;
var thisNumberValue$2 = thisNumberValue$5;
var $repeat = stringRepeat;
var fails$M = fails$1p;
var $RangeError$4 = RangeError;
var $String = String;
var floor$4 = Math.floor;
var repeat$1 = uncurryThis$H($repeat);
var stringSlice$c = uncurryThis$H(''.slice);
var nativeToFixed = uncurryThis$H(1.0.toFixed);
var pow$1 = function (x, n, acc) {
return n === 0 ? acc : n % 2 === 1 ? pow$1(x, n - 1, acc * x) : pow$1(x * x, n / 2, acc);
};
var log = 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$4(c2 / 1e7);
}
};
var divide = function (data, n) {
var index = 6;
var c = 0;
while (--index >= 0) {
c += data[index];
data[index] = floor$4(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(data[index]);
s = s === '' ? t : s + repeat$1('0', 7 - t.length) + t;
}
} return s;
};
var FORCED$f = fails$M(function () {
return nativeToFixed(0.00008, 3) !== '0.000' ||
nativeToFixed(0.9, 0) !== '1' ||
nativeToFixed(1.255, 2) !== '1.25' ||
nativeToFixed(1000000000000000128.0, 0) !== '1000000000000000128';
}) || !fails$M(function () {
// V8 ~ Android 4.3-
nativeToFixed({});
});
// `Number.prototype.toFixed` method
// https://tc39.es/ecma262/#sec-number.prototype.tofixed
$$1F({ target: 'Number', proto: true, forced: FORCED$f }, {
toFixed: function toFixed(fractionDigits) {
var number = thisNumberValue$2(this);
var fractDigits = toIntegerOrInfinity$7(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 new $RangeError$4('Incorrect fraction digits');
// eslint-disable-next-line no-self-compare -- NaN check
if (number !== number) return 'NaN';
if (number <= -1e21 || number >= 1e21) return $String(number);
if (number < 0) {
sign = '-';
number = -number;
}
if (number > 1e-21) {
e = log(number * pow$1(2, 69, 1)) - 69;
z = e < 0 ? number * pow$1(2, -e, 1) : number / pow$1(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$1(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$1('0', fractDigits);
}
}
if (fractDigits > 0) {
k = result.length;
result = sign + (k <= fractDigits
? '0.' + repeat$1('0', fractDigits - k) + result
: stringSlice$c(result, 0, k - fractDigits) + '.' + stringSlice$c(result, k - fractDigits));
} else {
result = sign + result;
} return result;
}
});
var $$1E = _export;
var uncurryThis$G = functionUncurryThis;
var fails$L = fails$1p;
var thisNumberValue$1 = thisNumberValue$5;
var nativeToPrecision = uncurryThis$G(1.0.toPrecision);
var FORCED$e = fails$L(function () {
// IE7-
return nativeToPrecision(1, undefined) !== '1';
}) || !fails$L(function () {
// V8 ~ Android 4.3-
nativeToPrecision({});
});
// `Number.prototype.toPrecision` method
// https://tc39.es/ecma262/#sec-number.prototype.toprecision
$$1E({ target: 'Number', proto: true, forced: FORCED$e }, {
toPrecision: function toPrecision(precision) {
return precision === undefined
? nativeToPrecision(thisNumberValue$1(this))
: nativeToPrecision(thisNumberValue$1(this), precision);
}
});
var DESCRIPTORS$q = descriptors;
var uncurryThis$F = functionUncurryThis;
var call$s = functionCall;
var fails$K = fails$1p;
var objectKeys$2 = objectKeys$5;
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
var toObject$b = toObject$u;
var IndexedObject = 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$5 = Object.defineProperty;
var concat$1 = uncurryThis$F([].concat);
// `Object.assign` method
// https://tc39.es/ecma262/#sec-object.assign
var objectAssign$1 = !$assign || fails$K(function () {
// should have correct order of operations (Edge bug)
if (DESCRIPTORS$q && $assign({ b: 1 }, $assign(defineProperty$5({}, 'a', {
enumerable: true,
get: function () {
defineProperty$5(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('assign detection');
var alphabet = 'abcdefghijklmnopqrst';
A[symbol] = 7;
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
return $assign({}, A)[symbol] !== 7 || objectKeys$2($assign({}, B)).join('') !== alphabet;
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
var T = toObject$b(target);
var argumentsLength = arguments.length;
var index = 1;
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
var propertyIsEnumerable = propertyIsEnumerableModule.f;
while (argumentsLength > index) {
var S = IndexedObject(arguments[index++]);
var keys = getOwnPropertySymbols ? concat$1(objectKeys$2(S), getOwnPropertySymbols(S)) : objectKeys$2(S);
var length = keys.length;
var j = 0;
var key;
while (length > j) {
key = keys[j++];
if (!DESCRIPTORS$q || call$s(propertyIsEnumerable, S, key)) T[key] = S[key];
}
} return T;
} : $assign;
var $$1D = _export;
var assign$3 = objectAssign$1;
// `Object.assign` method
// https://tc39.es/ecma262/#sec-object.assign
// eslint-disable-next-line es/no-object-assign -- required for testing
$$1D({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign$3 }, {
assign: assign$3
});
// TODO: Remove from `core-js@4`
var $$1C = _export;
var DESCRIPTORS$p = descriptors;
var create$7 = objectCreate;
// `Object.create` method
// https://tc39.es/ecma262/#sec-object.create
$$1C({ target: 'Object', stat: true, sham: !DESCRIPTORS$p }, {
create: create$7
});
var global$A = global$11;
var fails$J = fails$1p;
var WEBKIT$2 = engineWebkitVersion;
// Forced replacement object prototype accessors methods
var objectPrototypeAccessorsForced = !fails$J(function () {
// This feature detection crashes old WebKit
// https://github.com/zloirock/core-js/issues/232
if (WEBKIT$2 && WEBKIT$2 < 535) return;
var key = Math.random();
// In FF throws only define methods
// eslint-disable-next-line no-undef, no-useless-call, es/no-legacy-object-prototype-accessor-methods -- required for testing
__defineSetter__.call(null, key, function () { /* empty */ });
delete global$A[key];
});
var $$1B = _export;
var DESCRIPTORS$o = descriptors;
var FORCED$d = objectPrototypeAccessorsForced;
var aCallable$c = aCallable$n;
var toObject$a = toObject$u;
var definePropertyModule$4 = objectDefineProperty;
// `Object.prototype.__defineGetter__` method
// https://tc39.es/ecma262/#sec-object.prototype.__defineGetter__
if (DESCRIPTORS$o) {
$$1B({ target: 'Object', proto: true, forced: FORCED$d }, {
__defineGetter__: function __defineGetter__(P, getter) {
definePropertyModule$4.f(toObject$a(this), P, { get: aCallable$c(getter), enumerable: true, configurable: true });
}
});
}
var $$1A = _export;
var DESCRIPTORS$n = descriptors;
var defineProperties = objectDefineProperties.f;
// `Object.defineProperties` method
// https://tc39.es/ecma262/#sec-object.defineproperties
// eslint-disable-next-line es/no-object-defineproperties -- safe
$$1A({ target: 'Object', stat: true, forced: Object.defineProperties !== defineProperties, sham: !DESCRIPTORS$n }, {
defineProperties: defineProperties
});
var $$1z = _export;
var DESCRIPTORS$m = descriptors;
var defineProperty$4 = objectDefineProperty.f;
// `Object.defineProperty` method
// https://tc39.es/ecma262/#sec-object.defineproperty
// eslint-disable-next-line es/no-object-defineproperty -- safe
$$1z({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty$4, sham: !DESCRIPTORS$m }, {
defineProperty: defineProperty$4
});
var $$1y = _export;
var DESCRIPTORS$l = descriptors;
var FORCED$c = objectPrototypeAccessorsForced;
var aCallable$b = aCallable$n;
var toObject$9 = toObject$u;
var definePropertyModule$3 = objectDefineProperty;
// `Object.prototype.__defineSetter__` method
// https://tc39.es/ecma262/#sec-object.prototype.__defineSetter__
if (DESCRIPTORS$l) {
$$1y({ target: 'Object', proto: true, forced: FORCED$c }, {
__defineSetter__: function __defineSetter__(P, setter) {
definePropertyModule$3.f(toObject$9(this), P, { set: aCallable$b(setter), enumerable: true, configurable: true });
}
});
}
var DESCRIPTORS$k = descriptors;
var fails$I = fails$1p;
var uncurryThis$E = functionUncurryThis;
var objectGetPrototypeOf$1 = objectGetPrototypeOf$2;
var objectKeys$1 = objectKeys$5;
var toIndexedObject$4 = toIndexedObject$j;
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
var propertyIsEnumerable = uncurryThis$E($propertyIsEnumerable);
var push$a = uncurryThis$E([].push);
// in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys
// of `null` prototype objects
var IE_BUG = DESCRIPTORS$k && fails$I(function () {
// eslint-disable-next-line es/no-object-create -- safe
var O = Object.create(null);
O[2] = 2;
return !propertyIsEnumerable(O, 2);
});
// `Object.{ entries, values }` methods implementation
var createMethod$1 = function (TO_ENTRIES) {
return function (it) {
var O = toIndexedObject$4(it);
var keys = objectKeys$1(O);
var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf$1(O) === null;
var length = keys.length;
var i = 0;
var result = [];
var key;
while (length > i) {
key = keys[i++];
if (!DESCRIPTORS$k || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) {
push$a(result, TO_ENTRIES ? [key, O[key]] : O[key]);
}
}
return result;
};
};
var objectToArray = {
// `Object.entries` method
// https://tc39.es/ecma262/#sec-object.entries
entries: createMethod$1(true),
// `Object.values` method
// https://tc39.es/ecma262/#sec-object.values
values: createMethod$1(false)
};
var $$1x = _export;
var $entries = objectToArray.entries;
// `Object.entries` method
// https://tc39.es/ecma262/#sec-object.entries
$$1x({ target: 'Object', stat: true }, {
entries: function entries(O) {
return $entries(O);
}
});
var $$1w = _export;
var FREEZING$4 = freezing;
var fails$H = fails$1p;
var isObject$g = isObject$A;
var onFreeze$2 = internalMetadataExports.onFreeze;
// eslint-disable-next-line es/no-object-freeze -- safe
var $freeze = Object.freeze;
var FAILS_ON_PRIMITIVES$5 = fails$H(function () { $freeze(1); });
// `Object.freeze` method
// https://tc39.es/ecma262/#sec-object.freeze
$$1w({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$5, sham: !FREEZING$4 }, {
freeze: function freeze(it) {
return $freeze && isObject$g(it) ? $freeze(onFreeze$2(it)) : it;
}
});
var $$1v = _export;
var iterate$7 = iterate$c;
var createProperty$2 = createProperty$8;
// `Object.fromEntries` method
// https://github.com/tc39/proposal-object-from-entries
$$1v({ target: 'Object', stat: true }, {
fromEntries: function fromEntries(iterable) {
var obj = {};
iterate$7(iterable, function (k, v) {
createProperty$2(obj, k, v);
}, { AS_ENTRIES: true });
return obj;
}
});
var $$1u = _export;
var fails$G = fails$1p;
var toIndexedObject$3 = toIndexedObject$j;
var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
var DESCRIPTORS$j = descriptors;
var FORCED$b = !DESCRIPTORS$j || fails$G(function () { nativeGetOwnPropertyDescriptor$1(1); });
// `Object.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
$$1u({ target: 'Object', stat: true, forced: FORCED$b, sham: !DESCRIPTORS$j }, {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
return nativeGetOwnPropertyDescriptor$1(toIndexedObject$3(it), key);
}
});
var $$1t = _export;
var DESCRIPTORS$i = descriptors;
var ownKeys$2 = ownKeys$4;
var toIndexedObject$2 = toIndexedObject$j;
var getOwnPropertyDescriptorModule$4 = objectGetOwnPropertyDescriptor;
var createProperty$1 = createProperty$8;
// `Object.getOwnPropertyDescriptors` method
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptors
$$1t({ target: 'Object', stat: true, sham: !DESCRIPTORS$i }, {
getOwnPropertyDescriptors: function getOwnPropertyDescriptors(object) {
var O = toIndexedObject$2(object);
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$4.f;
var keys = ownKeys$2(O);
var result = {};
var index = 0;
var key, descriptor;
while (keys.length > index) {
descriptor = getOwnPropertyDescriptor(O, key = keys[index++]);
if (descriptor !== undefined) createProperty$1(result, key, descriptor);
}
return result;
}
});
var $$1s = _export;
var fails$F = fails$1p;
var getOwnPropertyNames$2 = objectGetOwnPropertyNamesExternal.f;
// eslint-disable-next-line es/no-object-getownpropertynames -- required for testing
var FAILS_ON_PRIMITIVES$4 = fails$F(function () { return !Object.getOwnPropertyNames(1); });
// `Object.getOwnPropertyNames` method
// https://tc39.es/ecma262/#sec-object.getownpropertynames
$$1s({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$4 }, {
getOwnPropertyNames: getOwnPropertyNames$2
});
var $$1r = _export;
var fails$E = fails$1p;
var toObject$8 = toObject$u;
var nativeGetPrototypeOf = objectGetPrototypeOf$2;
var CORRECT_PROTOTYPE_GETTER$1 = correctPrototypeGetter;
var FAILS_ON_PRIMITIVES$3 = fails$E(function () { nativeGetPrototypeOf(1); });
// `Object.getPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.getprototypeof
$$1r({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$3, sham: !CORRECT_PROTOTYPE_GETTER$1 }, {
getPrototypeOf: function getPrototypeOf(it) {
return nativeGetPrototypeOf(toObject$8(it));
}
});
var $$1q = _export;
var getBuiltIn$d = getBuiltIn$p;
var uncurryThis$D = functionUncurryThis;
var aCallable$a = aCallable$n;
var requireObjectCoercible$g = requireObjectCoercible$n;
var toPropertyKey$5 = toPropertyKey$9;
var iterate$6 = iterate$c;
var create$6 = getBuiltIn$d('Object', 'create');
var push$9 = uncurryThis$D([].push);
// `Object.groupBy` method
// https://github.com/tc39/proposal-array-grouping
$$1q({ target: 'Object', stat: true }, {
groupBy: function groupBy(items, callbackfn) {
requireObjectCoercible$g(items);
aCallable$a(callbackfn);
var obj = create$6(null);
var k = 0;
iterate$6(items, function (value) {
var key = toPropertyKey$5(callbackfn(value, k++));
// in some IE versions, `hasOwnProperty` returns incorrect result on integer keys
// but since it's a `null` prototype object, we can safely use `in`
if (key in obj) push$9(obj[key], value);
else obj[key] = [value];
});
return obj;
}
});
var $$1p = _export;
var hasOwn$b = hasOwnProperty_1;
// `Object.hasOwn` method
// https://tc39.es/ecma262/#sec-object.hasown
$$1p({ target: 'Object', stat: true }, {
hasOwn: hasOwn$b
});
// `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 $$1o = _export;
var is = sameValue$1;
// `Object.is` method
// https://tc39.es/ecma262/#sec-object.is
$$1o({ target: 'Object', stat: true }, {
is: is
});
var $$1n = _export;
var $isExtensible$1 = objectIsExtensible;
// `Object.isExtensible` method
// https://tc39.es/ecma262/#sec-object.isextensible
// eslint-disable-next-line es/no-object-isextensible -- safe
$$1n({ target: 'Object', stat: true, forced: Object.isExtensible !== $isExtensible$1 }, {
isExtensible: $isExtensible$1
});
var $$1m = _export;
var fails$D = fails$1p;
var isObject$f = isObject$A;
var classof$c = classofRaw$2;
var ARRAY_BUFFER_NON_EXTENSIBLE$1 = arrayBufferNonExtensible;
// eslint-disable-next-line es/no-object-isfrozen -- safe
var $isFrozen = Object.isFrozen;
var FORCED$a = ARRAY_BUFFER_NON_EXTENSIBLE$1 || fails$D(function () { $isFrozen(1); });
// `Object.isFrozen` method
// https://tc39.es/ecma262/#sec-object.isfrozen
$$1m({ target: 'Object', stat: true, forced: FORCED$a }, {
isFrozen: function isFrozen(it) {
if (!isObject$f(it)) return true;
if (ARRAY_BUFFER_NON_EXTENSIBLE$1 && classof$c(it) === 'ArrayBuffer') return true;
return $isFrozen ? $isFrozen(it) : false;
}
});
var $$1l = _export;
var fails$C = fails$1p;
var isObject$e = isObject$A;
var classof$b = classofRaw$2;
var ARRAY_BUFFER_NON_EXTENSIBLE = arrayBufferNonExtensible;
// eslint-disable-next-line es/no-object-issealed -- safe
var $isSealed = Object.isSealed;
var FORCED$9 = ARRAY_BUFFER_NON_EXTENSIBLE || fails$C(function () { $isSealed(1); });
// `Object.isSealed` method
// https://tc39.es/ecma262/#sec-object.issealed
$$1l({ target: 'Object', stat: true, forced: FORCED$9 }, {
isSealed: function isSealed(it) {
if (!isObject$e(it)) return true;
if (ARRAY_BUFFER_NON_EXTENSIBLE && classof$b(it) === 'ArrayBuffer') return true;
return $isSealed ? $isSealed(it) : false;
}
});
var $$1k = _export;
var toObject$7 = toObject$u;
var nativeKeys = objectKeys$5;
var fails$B = fails$1p;
var FAILS_ON_PRIMITIVES$2 = fails$B(function () { nativeKeys(1); });
// `Object.keys` method
// https://tc39.es/ecma262/#sec-object.keys
$$1k({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2 }, {
keys: function keys(it) {
return nativeKeys(toObject$7(it));
}
});
var $$1j = _export;
var DESCRIPTORS$h = descriptors;
var FORCED$8 = objectPrototypeAccessorsForced;
var toObject$6 = toObject$u;
var toPropertyKey$4 = toPropertyKey$9;
var getPrototypeOf$4 = objectGetPrototypeOf$2;
var getOwnPropertyDescriptor$5 = objectGetOwnPropertyDescriptor.f;
// `Object.prototype.__lookupGetter__` method
// https://tc39.es/ecma262/#sec-object.prototype.__lookupGetter__
if (DESCRIPTORS$h) {
$$1j({ target: 'Object', proto: true, forced: FORCED$8 }, {
__lookupGetter__: function __lookupGetter__(P) {
var O = toObject$6(this);
var key = toPropertyKey$4(P);
var desc;
do {
if (desc = getOwnPropertyDescriptor$5(O, key)) return desc.get;
} while (O = getPrototypeOf$4(O));
}
});
}
var $$1i = _export;
var DESCRIPTORS$g = descriptors;
var FORCED$7 = objectPrototypeAccessorsForced;
var toObject$5 = toObject$u;
var toPropertyKey$3 = toPropertyKey$9;
var getPrototypeOf$3 = objectGetPrototypeOf$2;
var getOwnPropertyDescriptor$4 = objectGetOwnPropertyDescriptor.f;
// `Object.prototype.__lookupSetter__` method
// https://tc39.es/ecma262/#sec-object.prototype.__lookupSetter__
if (DESCRIPTORS$g) {
$$1i({ target: 'Object', proto: true, forced: FORCED$7 }, {
__lookupSetter__: function __lookupSetter__(P) {
var O = toObject$5(this);
var key = toPropertyKey$3(P);
var desc;
do {
if (desc = getOwnPropertyDescriptor$4(O, key)) return desc.set;
} while (O = getPrototypeOf$3(O));
}
});
}
var $$1h = _export;
var isObject$d = isObject$A;
var onFreeze$1 = internalMetadataExports.onFreeze;
var FREEZING$3 = freezing;
var fails$A = fails$1p;
// eslint-disable-next-line es/no-object-preventextensions -- safe
var $preventExtensions = Object.preventExtensions;
var FAILS_ON_PRIMITIVES$1 = fails$A(function () { $preventExtensions(1); });
// `Object.preventExtensions` method
// https://tc39.es/ecma262/#sec-object.preventextensions
$$1h({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$1, sham: !FREEZING$3 }, {
preventExtensions: function preventExtensions(it) {
return $preventExtensions && isObject$d(it) ? $preventExtensions(onFreeze$1(it)) : it;
}
});
var DESCRIPTORS$f = descriptors;
var defineBuiltInAccessor$9 = defineBuiltInAccessor$i;
var isObject$c = isObject$A;
var isPossiblePrototype = isPossiblePrototype$2;
var toObject$4 = toObject$u;
var requireObjectCoercible$f = requireObjectCoercible$n;
// eslint-disable-next-line es/no-object-getprototypeof -- safe
var getPrototypeOf$2 = Object.getPrototypeOf;
// eslint-disable-next-line es/no-object-setprototypeof -- safe
var setPrototypeOf$3 = Object.setPrototypeOf;
var ObjectPrototype$1 = Object.prototype;
var PROTO = '__proto__';
// `Object.prototype.__proto__` accessor
// https://tc39.es/ecma262/#sec-object.prototype.__proto__
if (DESCRIPTORS$f && getPrototypeOf$2 && setPrototypeOf$3 && !(PROTO in ObjectPrototype$1)) try {
defineBuiltInAccessor$9(ObjectPrototype$1, PROTO, {
configurable: true,
get: function __proto__() {
return getPrototypeOf$2(toObject$4(this));
},
set: function __proto__(proto) {
var O = requireObjectCoercible$f(this);
if (isPossiblePrototype(proto) && isObject$c(O)) {
setPrototypeOf$3(O, proto);
}
}
});
} catch (error) { /* empty */ }
var $$1g = _export;
var isObject$b = isObject$A;
var onFreeze = internalMetadataExports.onFreeze;
var FREEZING$2 = freezing;
var fails$z = fails$1p;
// eslint-disable-next-line es/no-object-seal -- safe
var $seal = Object.seal;
var FAILS_ON_PRIMITIVES = fails$z(function () { $seal(1); });
// `Object.seal` method
// https://tc39.es/ecma262/#sec-object.seal
$$1g({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES, sham: !FREEZING$2 }, {
seal: function seal(it) {
return $seal && isObject$b(it) ? $seal(onFreeze(it)) : it;
}
});
var $$1f = _export;
var setPrototypeOf$2 = objectSetPrototypeOf$1;
// `Object.setPrototypeOf` method
// https://tc39.es/ecma262/#sec-object.setprototypeof
$$1f({ target: 'Object', stat: true }, {
setPrototypeOf: setPrototypeOf$2
});
var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
var classof$a = classof$n;
// `Object.prototype.toString` method implementation
// https://tc39.es/ecma262/#sec-object.prototype.tostring
var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
return '[object ' + classof$a(this) + ']';
};
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
var defineBuiltIn$c = defineBuiltIn$o;
var toString$q = objectToString;
// `Object.prototype.toString` method
// https://tc39.es/ecma262/#sec-object.prototype.tostring
if (!TO_STRING_TAG_SUPPORT) {
defineBuiltIn$c(Object.prototype, 'toString', toString$q, { unsafe: true });
}
var $$1e = _export;
var $values = objectToArray.values;
// `Object.values` method
// https://tc39.es/ecma262/#sec-object.values
$$1e({ target: 'Object', stat: true }, {
values: function values(O) {
return $values(O);
}
});
var $$1d = _export;
var $parseFloat = numberParseFloat;
// `parseFloat` method
// https://tc39.es/ecma262/#sec-parsefloat-string
$$1d({ global: true, forced: parseFloat !== $parseFloat }, {
parseFloat: $parseFloat
});
var $$1c = _export;
var $parseInt = numberParseInt;
// `parseInt` method
// https://tc39.es/ecma262/#sec-parseint-string-radix
$$1c({ global: true, forced: parseInt !== $parseInt }, {
parseInt: $parseInt
});
var $TypeError$9 = TypeError;
var validateArgumentsLength$b = function (passed, required) {
if (passed < required) throw new $TypeError$9('Not enough arguments');
return passed;
};
var userAgent$3 = engineUserAgent;
// eslint-disable-next-line redos/no-vulnerable -- safe
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$3);
var global$z = global$11;
var apply$5 = functionApply$1;
var bind$6 = functionBindContext;
var isCallable$b = isCallable$y;
var hasOwn$a = hasOwnProperty_1;
var fails$y = fails$1p;
var html = html$2;
var arraySlice$4 = arraySlice$a;
var createElement = documentCreateElement$2;
var validateArgumentsLength$a = validateArgumentsLength$b;
var IS_IOS$1 = engineIsIos;
var IS_NODE$2 = engineIsNode;
var set$1 = global$z.setImmediate;
var clear = global$z.clearImmediate;
var process$2 = global$z.process;
var Dispatch = global$z.Dispatch;
var Function$2 = global$z.Function;
var MessageChannel$1 = global$z.MessageChannel;
var String$1 = global$z.String;
var counter = 0;
var queue$2 = {};
var ONREADYSTATECHANGE = 'onreadystatechange';
var $location, defer, channel, port;
fails$y(function () {
// Deno throws a ReferenceError on `location` access without `--location` flag
$location = global$z.location;
});
var run = function (id) {
if (hasOwn$a(queue$2, id)) {
var fn = queue$2[id];
delete queue$2[id];
fn();
}
};
var runner = function (id) {
return function () {
run(id);
};
};
var eventListener = function (event) {
run(event.data);
};
var globalPostMessageDefer = function (id) {
// old engines have not location.origin
global$z.postMessage(String$1(id), $location.protocol + '//' + $location.host);
};
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
if (!set$1 || !clear) {
set$1 = function setImmediate(handler) {
validateArgumentsLength$a(arguments.length, 1);
var fn = isCallable$b(handler) ? handler : Function$2(handler);
var args = arraySlice$4(arguments, 1);
queue$2[++counter] = function () {
apply$5(fn, undefined, args);
};
defer(counter);
return counter;
};
clear = 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$1 && !IS_IOS$1) {
channel = new MessageChannel$1();
port = channel.port2;
channel.port1.onmessage = eventListener;
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$z.addEventListener &&
isCallable$b(global$z.postMessage) &&
!global$z.importScripts &&
$location && $location.protocol !== 'file:' &&
!fails$y(globalPostMessageDefer)
) {
defer = globalPostMessageDefer;
global$z.addEventListener('message', eventListener, 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$1,
clear: clear
};
var global$y = global$11;
var DESCRIPTORS$e = descriptors;
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
// Avoid NodeJS experimental warning
var safeGetBuiltIn$2 = function (name) {
if (!DESCRIPTORS$e) return global$y[name];
var descriptor = getOwnPropertyDescriptor$3(global$y, name);
return descriptor && descriptor.value;
};
var Queue$2 = function () {
this.head = null;
this.tail = null;
};
Queue$2.prototype = {
add: function (item) {
var entry = { item: item, next: null };
var tail = this.tail;
if (tail) tail.next = entry;
else this.head = entry;
this.tail = entry;
},
get: function () {
var entry = this.head;
if (entry) {
var next = this.head = entry.next;
if (next === null) this.tail = null;
return entry.item;
}
}
};
var queue$1 = Queue$2;
var userAgent$2 = engineUserAgent;
var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$2) && typeof Pebble != 'undefined';
var userAgent$1 = engineUserAgent;
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$1);
var global$x = global$11;
var safeGetBuiltIn$1 = safeGetBuiltIn$2;
var bind$5 = functionBindContext;
var macrotask = task$1.set;
var Queue$1 = queue$1;
var IS_IOS = engineIsIos;
var IS_IOS_PEBBLE = engineIsIosPebble;
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
var IS_NODE$1 = engineIsNode;
var MutationObserver = global$x.MutationObserver || global$x.WebKitMutationObserver;
var document$2 = global$x.document;
var process$1 = global$x.process;
var Promise$1 = global$x.Promise;
var microtask$2 = safeGetBuiltIn$1('queueMicrotask');
var notify$1, toggle, node$1, promise, then;
// modern engines have queueMicrotask method
if (!microtask$2) {
var queue = new Queue$1();
var flush = function () {
var parent, fn;
if (IS_NODE$1 && (parent = process$1.domain)) parent.exit();
while (fn = queue.get()) try {
fn();
} catch (error) {
if (queue.head) notify$1();
throw error;
}
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$1 = document$2.createTextNode('');
new MutationObserver(flush).observe(node$1, { characterData: true });
notify$1 = function () {
node$1.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.postMessage
// - onreadystatechange
// - setTimeout
} else {
// `webpack` dev server bug on IE global methods - use bind(fn, global)
macrotask = bind$5(macrotask, global$x);
notify$1 = function () {
macrotask(flush);
};
}
microtask$2 = function (fn) {
if (!queue.head) notify$1();
queue.add(fn);
};
}
var microtask_1 = microtask$2;
var hostReportErrors$1 = function (a, b) {
try {
// eslint-disable-next-line no-console -- safe
arguments.length === 1 ? console.error(a) : console.error(a, b);
} catch (error) { /* empty */ }
};
var perform$5 = function (exec) {
try {
return { error: false, value: exec() };
} catch (error) {
return { error: true, value: error };
}
};
var global$w = global$11;
var promiseNativeConstructor = global$w.Promise;
var global$v = global$11;
var NativePromiseConstructor$4 = promiseNativeConstructor;
var isCallable$a = isCallable$y;
var isForced$1 = isForced_1;
var inspectSource = inspectSource$3;
var wellKnownSymbol$b = wellKnownSymbol$z;
var IS_BROWSER = engineIsBrowser;
var IS_DENO = engineIsDeno;
var V8_VERSION = engineV8Version;
NativePromiseConstructor$4 && NativePromiseConstructor$4.prototype;
var SPECIES$1 = wellKnownSymbol$b('species');
var SUBCLASSING = false;
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$a(global$v.PromiseRejectionEvent);
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced$1('Promise', function () {
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$4);
var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$4);
// 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 || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
// Detect correctness of subclassing with @@species support
var promise = new NativePromiseConstructor$4(function (resolve) { resolve(1); });
var FakePromise = function (exec) {
exec(function () { /* empty */ }, function () { /* empty */ });
};
var constructor = promise.constructor = {};
constructor[SPECIES$1] = 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 || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
});
var promiseConstructorDetection = {
CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
SUBCLASSING: SUBCLASSING
};
var newPromiseCapability$2 = {};
var aCallable$9 = aCallable$n;
var $TypeError$8 = TypeError;
var PromiseCapability = function (C) {
var resolve, reject;
this.promise = new C(function ($$resolve, $$reject) {
if (resolve !== undefined || reject !== undefined) throw new $TypeError$8('Bad Promise constructor');
resolve = $$resolve;
reject = $$reject;
});
this.resolve = aCallable$9(resolve);
this.reject = aCallable$9(reject);
};
// `NewPromiseCapability` abstract operation
// https://tc39.es/ecma262/#sec-newpromisecapability
newPromiseCapability$2.f = function (C) {
return new PromiseCapability(C);
};
var $$1b = _export;
var IS_NODE = engineIsNode;
var global$u = global$11;
var call$r = functionCall;
var defineBuiltIn$b = defineBuiltIn$o;
var setPrototypeOf$1 = objectSetPrototypeOf$1;
var setToStringTag$5 = setToStringTag$e;
var setSpecies$2 = setSpecies$6;
var aCallable$8 = aCallable$n;
var isCallable$9 = isCallable$y;
var isObject$a = isObject$A;
var anInstance$6 = anInstance$a;
var speciesConstructor$4 = speciesConstructor$6;
var task = task$1.set;
var microtask$1 = microtask_1;
var hostReportErrors = hostReportErrors$1;
var perform$4 = perform$5;
var Queue = queue$1;
var InternalStateModule$7 = internalState;
var NativePromiseConstructor$3 = promiseNativeConstructor;
var PromiseConstructorDetection = promiseConstructorDetection;
var newPromiseCapabilityModule$6 = newPromiseCapability$2;
var PROMISE = 'Promise';
var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
var getInternalPromiseState = InternalStateModule$7.getterFor(PROMISE);
var setInternalState$7 = InternalStateModule$7.set;
var NativePromisePrototype$2 = NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
var PromiseConstructor = NativePromiseConstructor$3;
var PromisePrototype = NativePromisePrototype$2;
var TypeError$4 = global$u.TypeError;
var document$1 = global$u.document;
var process = global$u.process;
var newPromiseCapability$1 = newPromiseCapabilityModule$6.f;
var newGenericPromiseCapability = newPromiseCapability$1;
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$u.dispatchEvent);
var UNHANDLED_REJECTION = 'unhandledrejection';
var REJECTION_HANDLED = 'rejectionhandled';
var PENDING = 0;
var FULFILLED = 1;
var REJECTED = 2;
var HANDLED = 1;
var UNHANDLED = 2;
var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
// helpers
var isThenable = function (it) {
var then;
return isObject$a(it) && isCallable$9(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(new TypeError$4('Promise-chain cycle'));
} else if (then = isThenable(result)) {
call$r(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$1(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$u.dispatchEvent(event);
} else event = { promise: promise, reason: reason };
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$u['on' + name])) handler(event);
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
};
var onUnhandled = function (state) {
call$r(task, global$u, function () {
var promise = state.facade;
var value = state.value;
var IS_UNHANDLED = isUnhandled(state);
var result;
if (IS_UNHANDLED) {
result = perform$4(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$r(task, global$u, 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 new TypeError$4("Promise can't be resolved itself");
var then = isThenable(value);
if (then) {
microtask$1(function () {
var wrapper = { done: false };
try {
call$r(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_PROMISE_CONSTRUCTOR$4) {
// 25.4.3.1 Promise(executor)
PromiseConstructor = function Promise(executor) {
anInstance$6(this, PromisePrototype);
aCallable$8(executor);
call$r(Internal, this);
var state = getInternalPromiseState(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$7(this, {
type: PROMISE,
done: false,
notified: false,
parent: false,
reactions: new Queue(),
rejection: false,
state: PENDING,
value: undefined
});
};
// `Promise.prototype.then` method
// https://tc39.es/ecma262/#sec-promise.prototype.then
Internal.prototype = defineBuiltIn$b(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
var state = getInternalPromiseState(this);
var reaction = newPromiseCapability$1(speciesConstructor$4(this, PromiseConstructor));
state.parent = true;
reaction.ok = isCallable$9(onFulfilled) ? onFulfilled : true;
reaction.fail = isCallable$9(onRejected) && onRejected;
reaction.domain = IS_NODE ? process.domain : undefined;
if (state.state === PENDING) state.reactions.add(reaction);
else microtask$1(function () {
callReaction(reaction, state);
});
return reaction.promise;
});
OwnPromiseCapability = function () {
var promise = new Internal();
var state = getInternalPromiseState(promise);
this.promise = promise;
this.resolve = bind$4(internalResolve, state);
this.reject = bind$4(internalReject, state);
};
newPromiseCapabilityModule$6.f = newPromiseCapability$1 = function (C) {
return C === PromiseConstructor || C === PromiseWrapper
? new OwnPromiseCapability(C)
: newGenericPromiseCapability(C);
};
if (isCallable$9(NativePromiseConstructor$3) && NativePromisePrototype$2 !== Object.prototype) {
nativeThen = NativePromisePrototype$2.then;
if (!NATIVE_PROMISE_SUBCLASSING) {
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
defineBuiltIn$b(NativePromisePrototype$2, 'then', function then(onFulfilled, onRejected) {
var that = this;
return new PromiseConstructor(function (resolve, reject) {
call$r(nativeThen, that, resolve, reject);
}).then(onFulfilled, onRejected);
// https://github.com/zloirock/core-js/issues/640
}, { unsafe: true });
}
// make `.constructor === Promise` work for native promise-based APIs
try {
delete NativePromisePrototype$2.constructor;
} catch (error) { /* empty */ }
// make `instanceof Promise` work for native promise-based APIs
if (setPrototypeOf$1) {
setPrototypeOf$1(NativePromisePrototype$2, PromisePrototype);
}
}
}
$$1b({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
Promise: PromiseConstructor
});
setToStringTag$5(PromiseConstructor, PROMISE, false);
setSpecies$2(PROMISE);
var NativePromiseConstructor$2 = promiseNativeConstructor;
var checkCorrectnessOfIteration$1 = checkCorrectnessOfIteration$4;
var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration$1(function (iterable) {
NativePromiseConstructor$2.all(iterable).then(undefined, function () { /* empty */ });
});
var $$1a = _export;
var call$q = functionCall;
var aCallable$7 = aCallable$n;
var newPromiseCapabilityModule$5 = newPromiseCapability$2;
var perform$3 = perform$5;
var iterate$5 = iterate$c;
var PROMISE_STATICS_INCORRECT_ITERATION$3 = promiseStaticsIncorrectIteration;
// `Promise.all` method
// https://tc39.es/ecma262/#sec-promise.all
$$1a({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$3 }, {
all: function all(iterable) {
var C = this;
var capability = newPromiseCapabilityModule$5.f(C);
var resolve = capability.resolve;
var reject = capability.reject;
var result = perform$3(function () {
var $promiseResolve = aCallable$7(C.resolve);
var values = [];
var counter = 0;
var remaining = 1;
iterate$5(iterable, function (promise) {
var index = counter++;
var alreadyCalled = false;
remaining++;
call$q($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;
}
});
var $$19 = _export;
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
var NativePromiseConstructor$1 = promiseNativeConstructor;
var getBuiltIn$c = getBuiltIn$p;
var isCallable$8 = isCallable$y;
var defineBuiltIn$a = defineBuiltIn$o;
var NativePromisePrototype$1 = NativePromiseConstructor$1 && NativePromiseConstructor$1.prototype;
// `Promise.prototype.catch` method
// https://tc39.es/ecma262/#sec-promise.prototype.catch
$$19({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
'catch': function (onRejected) {
return this.then(undefined, onRejected);
}
});
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
if (isCallable$8(NativePromiseConstructor$1)) {
var method$1 = getBuiltIn$c('Promise').prototype['catch'];
if (NativePromisePrototype$1['catch'] !== method$1) {
defineBuiltIn$a(NativePromisePrototype$1, 'catch', method$1, { unsafe: true });
}
}
var $$18 = _export;
var call$p = functionCall;
var aCallable$6 = aCallable$n;
var newPromiseCapabilityModule$4 = newPromiseCapability$2;
var perform$2 = perform$5;
var iterate$4 = iterate$c;
var PROMISE_STATICS_INCORRECT_ITERATION$2 = promiseStaticsIncorrectIteration;
// `Promise.race` method
// https://tc39.es/ecma262/#sec-promise.race
$$18({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$2 }, {
race: function race(iterable) {
var C = this;
var capability = newPromiseCapabilityModule$4.f(C);
var reject = capability.reject;
var result = perform$2(function () {
var $promiseResolve = aCallable$6(C.resolve);
iterate$4(iterable, function (promise) {
call$p($promiseResolve, C, promise).then(capability.resolve, reject);
});
});
if (result.error) reject(result.value);
return capability.promise;
}
});
var $$17 = _export;
var newPromiseCapabilityModule$3 = newPromiseCapability$2;
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
// `Promise.reject` method
// https://tc39.es/ecma262/#sec-promise.reject
$$17({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
reject: function reject(r) {
var capability = newPromiseCapabilityModule$3.f(this);
var capabilityReject = capability.reject;
capabilityReject(r);
return capability.promise;
}
});
var anObject$o = anObject$D;
var isObject$9 = isObject$A;
var newPromiseCapability = newPromiseCapability$2;
var promiseResolve$2 = function (C, x) {
anObject$o(C);
if (isObject$9(x) && x.constructor === C) return x;
var promiseCapability = newPromiseCapability.f(C);
var resolve = promiseCapability.resolve;
resolve(x);
return promiseCapability.promise;
};
var $$16 = _export;
var getBuiltIn$b = getBuiltIn$p;
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
var promiseResolve$1 = promiseResolve$2;
getBuiltIn$b('Promise');
// `Promise.resolve` method
// https://tc39.es/ecma262/#sec-promise.resolve
$$16({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
resolve: function resolve(x) {
return promiseResolve$1(this, x);
}
});
var $$15 = _export;
var call$o = functionCall;
var aCallable$5 = aCallable$n;
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
var perform$1 = perform$5;
var iterate$3 = iterate$c;
var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
// `Promise.allSettled` method
// https://tc39.es/ecma262/#sec-promise.allsettled
$$15({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
allSettled: function allSettled(iterable) {
var C = this;
var capability = newPromiseCapabilityModule$2.f(C);
var resolve = capability.resolve;
var reject = capability.reject;
var result = perform$1(function () {
var promiseResolve = aCallable$5(C.resolve);
var values = [];
var counter = 0;
var remaining = 1;
iterate$3(iterable, function (promise) {
var index = counter++;
var alreadyCalled = false;
remaining++;
call$o(promiseResolve, C, promise).then(function (value) {
if (alreadyCalled) return;
alreadyCalled = true;
values[index] = { status: 'fulfilled', value: value };
--remaining || resolve(values);
}, function (error) {
if (alreadyCalled) return;
alreadyCalled = true;
values[index] = { status: 'rejected', reason: error };
--remaining || resolve(values);
});
});
--remaining || resolve(values);
});
if (result.error) reject(result.value);
return capability.promise;
}
});
var $$14 = _export;
var call$n = functionCall;
var aCallable$4 = aCallable$n;
var getBuiltIn$a = getBuiltIn$p;
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
var perform = perform$5;
var iterate$2 = iterate$c;
var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
var PROMISE_ANY_ERROR = 'No one promise resolved';
// `Promise.any` method
// https://tc39.es/ecma262/#sec-promise.any
$$14({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
any: function any(iterable) {
var C = this;
var AggregateError = getBuiltIn$a('AggregateError');
var capability = newPromiseCapabilityModule$1.f(C);
var resolve = capability.resolve;
var reject = capability.reject;
var result = perform(function () {
var promiseResolve = aCallable$4(C.resolve);
var errors = [];
var counter = 0;
var remaining = 1;
var alreadyResolved = false;
iterate$2(iterable, function (promise) {
var index = counter++;
var alreadyRejected = false;
remaining++;
call$n(promiseResolve, C, promise).then(function (value) {
if (alreadyRejected || alreadyResolved) return;
alreadyResolved = true;
resolve(value);
}, function (error) {
if (alreadyRejected || alreadyResolved) return;
alreadyRejected = true;
errors[index] = error;
--remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));
});
});
--remaining || reject(new AggregateError(errors, PROMISE_ANY_ERROR));
});
if (result.error) reject(result.value);
return capability.promise;
}
});
var $$13 = _export;
var NativePromiseConstructor = promiseNativeConstructor;
var fails$x = fails$1p;
var getBuiltIn$9 = getBuiltIn$p;
var isCallable$7 = isCallable$y;
var speciesConstructor$3 = speciesConstructor$6;
var promiseResolve = promiseResolve$2;
var defineBuiltIn$9 = defineBuiltIn$o;
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
// Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
var NON_GENERIC = !!NativePromiseConstructor && fails$x(function () {
// eslint-disable-next-line unicorn/no-thenable -- required for testing
NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
});
// `Promise.prototype.finally` method
// https://tc39.es/ecma262/#sec-promise.prototype.finally
$$13({ target: 'Promise', proto: true, real: true, forced: NON_GENERIC }, {
'finally': function (onFinally) {
var C = speciesConstructor$3(this, getBuiltIn$9('Promise'));
var isFunction = isCallable$7(onFinally);
return this.then(
isFunction ? function (x) {
return promiseResolve(C, onFinally()).then(function () { return x; });
} : onFinally,
isFunction ? function (e) {
return promiseResolve(C, onFinally()).then(function () { throw e; });
} : onFinally
);
}
});
// makes sure that native promise-based APIs `Promise#finally` properly works with patched `Promise#then`
if (isCallable$7(NativePromiseConstructor)) {
var method = getBuiltIn$9('Promise').prototype['finally'];
if (NativePromisePrototype['finally'] !== method) {
defineBuiltIn$9(NativePromisePrototype, 'finally', method, { unsafe: true });
}
}
var $$12 = _export;
var newPromiseCapabilityModule = newPromiseCapability$2;
// `Promise.withResolvers` method
// https://github.com/tc39/proposal-promise-with-resolvers
$$12({ target: 'Promise', stat: true }, {
withResolvers: function withResolvers() {
var promiseCapability = newPromiseCapabilityModule.f(this);
return {
promise: promiseCapability.promise,
resolve: promiseCapability.resolve,
reject: promiseCapability.reject
};
}
});
var $$11 = _export;
var functionApply = functionApply$1;
var aCallable$3 = aCallable$n;
var anObject$n = anObject$D;
var fails$w = fails$1p;
// MS Edge argumentsList argument is optional
var OPTIONAL_ARGUMENTS_LIST = !fails$w(function () {
// eslint-disable-next-line es/no-reflect -- required for testing
Reflect.apply(function () { /* empty */ });
});
// `Reflect.apply` method
// https://tc39.es/ecma262/#sec-reflect.apply
$$11({ target: 'Reflect', stat: true, forced: OPTIONAL_ARGUMENTS_LIST }, {
apply: function apply(target, thisArgument, argumentsList) {
return functionApply(aCallable$3(target), thisArgument, anObject$n(argumentsList));
}
});
var $$10 = _export;
var getBuiltIn$8 = getBuiltIn$p;
var apply$4 = functionApply$1;
var bind$3 = functionBind;
var aConstructor$1 = aConstructor$3;
var anObject$m = anObject$D;
var isObject$8 = isObject$A;
var create$5 = objectCreate;
var fails$v = fails$1p;
var nativeConstruct = getBuiltIn$8('Reflect', 'construct');
var ObjectPrototype = Object.prototype;
var push$8 = [].push;
// `Reflect.construct` method
// https://tc39.es/ecma262/#sec-reflect.construct
// MS Edge supports only 2 arguments and argumentsList argument is optional
// FF Nightly sets third argument as `new.target`, but does not create `this` from it
var NEW_TARGET_BUG = fails$v(function () {
function F() { /* empty */ }
return !(nativeConstruct(function () { /* empty */ }, [], F) instanceof F);
});
var ARGS_BUG = !fails$v(function () {
nativeConstruct(function () { /* empty */ });
});
var FORCED$6 = NEW_TARGET_BUG || ARGS_BUG;
$$10({ target: 'Reflect', stat: true, forced: FORCED$6, sham: FORCED$6 }, {
construct: function construct(Target, args /* , newTarget */) {
aConstructor$1(Target);
anObject$m(args);
var newTarget = arguments.length < 3 ? Target : aConstructor$1(arguments[2]);
if (ARGS_BUG && !NEW_TARGET_BUG) return nativeConstruct(Target, args, newTarget);
if (Target === newTarget) {
// w/o altered newTarget, optimization for 0-4 arguments
switch (args.length) {
case 0: return new Target();
case 1: return new Target(args[0]);
case 2: return new Target(args[0], args[1]);
case 3: return new Target(args[0], args[1], args[2]);
case 4: return new Target(args[0], args[1], args[2], args[3]);
}
// w/o altered newTarget, lot of arguments case
var $args = [null];
apply$4(push$8, $args, args);
return new (apply$4(bind$3, Target, $args))();
}
// with altered newTarget, not support built-in constructors
var proto = newTarget.prototype;
var instance = create$5(isObject$8(proto) ? proto : ObjectPrototype);
var result = apply$4(Target, instance, args);
return isObject$8(result) ? result : instance;
}
});
var $$$ = _export;
var DESCRIPTORS$d = descriptors;
var anObject$l = anObject$D;
var toPropertyKey$2 = toPropertyKey$9;
var definePropertyModule$2 = objectDefineProperty;
var fails$u = fails$1p;
// MS Edge has broken Reflect.defineProperty - throwing instead of returning false
var ERROR_INSTEAD_OF_FALSE = fails$u(function () {
// eslint-disable-next-line es/no-reflect -- required for testing
Reflect.defineProperty(definePropertyModule$2.f({}, 1, { value: 1 }), 1, { value: 2 });
});
// `Reflect.defineProperty` method
// https://tc39.es/ecma262/#sec-reflect.defineproperty
$$$({ target: 'Reflect', stat: true, forced: ERROR_INSTEAD_OF_FALSE, sham: !DESCRIPTORS$d }, {
defineProperty: function defineProperty(target, propertyKey, attributes) {
anObject$l(target);
var key = toPropertyKey$2(propertyKey);
anObject$l(attributes);
try {
definePropertyModule$2.f(target, key, attributes);
return true;
} catch (error) {
return false;
}
}
});
var $$_ = _export;
var anObject$k = anObject$D;
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
// `Reflect.deleteProperty` method
// https://tc39.es/ecma262/#sec-reflect.deleteproperty
$$_({ target: 'Reflect', stat: true }, {
deleteProperty: function deleteProperty(target, propertyKey) {
var descriptor = getOwnPropertyDescriptor$2(anObject$k(target), propertyKey);
return descriptor && !descriptor.configurable ? false : delete target[propertyKey];
}
});
var hasOwn$9 = hasOwnProperty_1;
var isDataDescriptor$2 = function (descriptor) {
return descriptor !== undefined && (hasOwn$9(descriptor, 'value') || hasOwn$9(descriptor, 'writable'));
};
var $$Z = _export;
var call$m = functionCall;
var isObject$7 = isObject$A;
var anObject$j = anObject$D;
var isDataDescriptor$1 = isDataDescriptor$2;
var getOwnPropertyDescriptorModule$3 = objectGetOwnPropertyDescriptor;
var getPrototypeOf$1 = objectGetPrototypeOf$2;
// `Reflect.get` method
// https://tc39.es/ecma262/#sec-reflect.get
function get(target, propertyKey /* , receiver */) {
var receiver = arguments.length < 3 ? target : arguments[2];
var descriptor, prototype;
if (anObject$j(target) === receiver) return target[propertyKey];
descriptor = getOwnPropertyDescriptorModule$3.f(target, propertyKey);
if (descriptor) return isDataDescriptor$1(descriptor)
? descriptor.value
: descriptor.get === undefined ? undefined : call$m(descriptor.get, receiver);
if (isObject$7(prototype = getPrototypeOf$1(target))) return get(prototype, propertyKey, receiver);
}
$$Z({ target: 'Reflect', stat: true }, {
get: get
});
var $$Y = _export;
var DESCRIPTORS$c = descriptors;
var anObject$i = anObject$D;
var getOwnPropertyDescriptorModule$2 = objectGetOwnPropertyDescriptor;
// `Reflect.getOwnPropertyDescriptor` method
// https://tc39.es/ecma262/#sec-reflect.getownpropertydescriptor
$$Y({ target: 'Reflect', stat: true, sham: !DESCRIPTORS$c }, {
getOwnPropertyDescriptor: function getOwnPropertyDescriptor(target, propertyKey) {
return getOwnPropertyDescriptorModule$2.f(anObject$i(target), propertyKey);
}
});
var $$X = _export;
var anObject$h = anObject$D;
var objectGetPrototypeOf = objectGetPrototypeOf$2;
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
// `Reflect.getPrototypeOf` method
// https://tc39.es/ecma262/#sec-reflect.getprototypeof
$$X({ target: 'Reflect', stat: true, sham: !CORRECT_PROTOTYPE_GETTER }, {
getPrototypeOf: function getPrototypeOf(target) {
return objectGetPrototypeOf(anObject$h(target));
}
});
var $$W = _export;
// `Reflect.has` method
// https://tc39.es/ecma262/#sec-reflect.has
$$W({ target: 'Reflect', stat: true }, {
has: function has(target, propertyKey) {
return propertyKey in target;
}
});
var $$V = _export;
var anObject$g = anObject$D;
var $isExtensible = objectIsExtensible;
// `Reflect.isExtensible` method
// https://tc39.es/ecma262/#sec-reflect.isextensible
$$V({ target: 'Reflect', stat: true }, {
isExtensible: function isExtensible(target) {
anObject$g(target);
return $isExtensible(target);
}
});
var $$U = _export;
var ownKeys$1 = ownKeys$4;
// `Reflect.ownKeys` method
// https://tc39.es/ecma262/#sec-reflect.ownkeys
$$U({ target: 'Reflect', stat: true }, {
ownKeys: ownKeys$1
});
var $$T = _export;
var getBuiltIn$7 = getBuiltIn$p;
var anObject$f = anObject$D;
var FREEZING$1 = freezing;
// `Reflect.preventExtensions` method
// https://tc39.es/ecma262/#sec-reflect.preventextensions
$$T({ target: 'Reflect', stat: true, sham: !FREEZING$1 }, {
preventExtensions: function preventExtensions(target) {
anObject$f(target);
try {
var objectPreventExtensions = getBuiltIn$7('Object', 'preventExtensions');
if (objectPreventExtensions) objectPreventExtensions(target);
return true;
} catch (error) {
return false;
}
}
});
var $$S = _export;
var call$l = functionCall;
var anObject$e = anObject$D;
var isObject$6 = isObject$A;
var isDataDescriptor = isDataDescriptor$2;
var fails$t = fails$1p;
var definePropertyModule$1 = objectDefineProperty;
var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor;
var getPrototypeOf = objectGetPrototypeOf$2;
var createPropertyDescriptor$4 = createPropertyDescriptor$c;
// `Reflect.set` method
// https://tc39.es/ecma262/#sec-reflect.set
function set(target, propertyKey, V /* , receiver */) {
var receiver = arguments.length < 4 ? target : arguments[3];
var ownDescriptor = getOwnPropertyDescriptorModule$1.f(anObject$e(target), propertyKey);
var existingDescriptor, prototype, setter;
if (!ownDescriptor) {
if (isObject$6(prototype = getPrototypeOf(target))) {
return set(prototype, propertyKey, V, receiver);
}
ownDescriptor = createPropertyDescriptor$4(0);
}
if (isDataDescriptor(ownDescriptor)) {
if (ownDescriptor.writable === false || !isObject$6(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$4(0, V));
} else {
setter = ownDescriptor.set;
if (setter === undefined) return false;
call$l(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$t(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;
});
$$S({ target: 'Reflect', stat: true, forced: MS_EDGE_BUG }, {
set: set
});
var $$R = _export;
var anObject$d = anObject$D;
var aPossiblePrototype = aPossiblePrototype$2;
var objectSetPrototypeOf = objectSetPrototypeOf$1;
// `Reflect.setPrototypeOf` method
// https://tc39.es/ecma262/#sec-reflect.setprototypeof
if (objectSetPrototypeOf) $$R({ target: 'Reflect', stat: true }, {
setPrototypeOf: function setPrototypeOf(target, proto) {
anObject$d(target);
aPossiblePrototype(proto);
try {
objectSetPrototypeOf(target, proto);
return true;
} catch (error) {
return false;
}
}
});
var $$Q = _export;
var global$t = global$11;
var setToStringTag$4 = setToStringTag$e;
$$Q({ global: true }, { Reflect: {} });
// Reflect[@@toStringTag] property
// https://tc39.es/ecma262/#sec-reflect-@@tostringtag
setToStringTag$4(global$t.Reflect, 'Reflect', true);
var isObject$5 = isObject$A;
var classof$9 = classofRaw$2;
var wellKnownSymbol$a = wellKnownSymbol$z;
var MATCH$2 = wellKnownSymbol$a('match');
// `IsRegExp` abstract operation
// https://tc39.es/ecma262/#sec-isregexp
var isRegexp = function (it) {
var isRegExp;
return isObject$5(it) && ((isRegExp = it[MATCH$2]) !== undefined ? !!isRegExp : classof$9(it) === 'RegExp');
};
var anObject$c = anObject$D;
// `RegExp.prototype.flags` getter implementation
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
var regexpFlags$1 = function () {
var that = anObject$c(this);
var result = '';
if (that.hasIndices) result += 'd';
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.unicodeSets) result += 'v';
if (that.sticky) result += 'y';
return result;
};
var call$k = functionCall;
var hasOwn$8 = hasOwnProperty_1;
var isPrototypeOf$2 = objectIsPrototypeOf;
var regExpFlags$1 = regexpFlags$1;
var RegExpPrototype$7 = RegExp.prototype;
var regexpGetFlags = function (R) {
var flags = R.flags;
return flags === undefined && !('flags' in RegExpPrototype$7) && !hasOwn$8(R, 'flags') && isPrototypeOf$2(RegExpPrototype$7, R)
? call$k(regExpFlags$1, R) : flags;
};
var fails$s = fails$1p;
var global$s = global$11;
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
var $RegExp$2 = global$s.RegExp;
var UNSUPPORTED_Y$3 = fails$s(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$2 = UNSUPPORTED_Y$3 || fails$s(function () {
return !$RegExp$2('a', 'y').sticky;
});
var BROKEN_CARET = UNSUPPORTED_Y$3 || fails$s(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$2,
UNSUPPORTED_Y: UNSUPPORTED_Y$3
};
var fails$r = fails$1p;
var global$r = global$11;
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
var $RegExp$1 = global$r.RegExp;
var regexpUnsupportedDotAll = fails$r(function () {
var re = $RegExp$1('.', 's');
return !(re.dotAll && re.test('\n') && re.flags === 's');
});
var fails$q = fails$1p;
var global$q = global$11;
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
var $RegExp = global$q.RegExp;
var regexpUnsupportedNcg = fails$q(function () {
var re = $RegExp('(?<a>b)', 'g');
return re.exec('b').groups.a !== 'b' ||
'b'.replace(re, '$<a>c') !== 'bc';
});
var DESCRIPTORS$b = descriptors;
var global$p = global$11;
var uncurryThis$C = functionUncurryThis;
var isForced = isForced_1;
var inheritIfRequired$2 = inheritIfRequired$7;
var createNonEnumerableProperty$5 = createNonEnumerableProperty$f;
var create$4 = objectCreate;
var getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
var isPrototypeOf$1 = objectIsPrototypeOf;
var isRegExp$3 = isRegexp;
var toString$p = toString$C;
var getRegExpFlags$4 = regexpGetFlags;
var stickyHelpers$2 = regexpStickyHelpers;
var proxyAccessor = proxyAccessor$2;
var defineBuiltIn$8 = defineBuiltIn$o;
var fails$p = fails$1p;
var hasOwn$7 = hasOwnProperty_1;
var enforceInternalState$2 = internalState.enforce;
var setSpecies$1 = setSpecies$6;
var wellKnownSymbol$9 = wellKnownSymbol$z;
var UNSUPPORTED_DOT_ALL$2 = regexpUnsupportedDotAll;
var UNSUPPORTED_NCG$1 = regexpUnsupportedNcg;
var MATCH$1 = wellKnownSymbol$9('match');
var NativeRegExp = global$p.RegExp;
var RegExpPrototype$6 = NativeRegExp.prototype;
var SyntaxError = global$p.SyntaxError;
var exec$5 = uncurryThis$C(RegExpPrototype$6.exec);
var charAt$c = uncurryThis$C(''.charAt);
var replace$8 = uncurryThis$C(''.replace);
var stringIndexOf$3 = uncurryThis$C(''.indexOf);
var stringSlice$b = uncurryThis$C(''.slice);
// TODO: Use only proper RegExpIdentifierName
var IS_NCG = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/;
var re1 = /a/g;
var re2 = /a/g;
// "new" should create a new object, old webkit bug
var CORRECT_NEW = new NativeRegExp(re1) !== re1;
var MISSED_STICKY$1 = stickyHelpers$2.MISSED_STICKY;
var UNSUPPORTED_Y$2 = stickyHelpers$2.UNSUPPORTED_Y;
var BASE_FORCED = DESCRIPTORS$b &&
(!CORRECT_NEW || MISSED_STICKY$1 || UNSUPPORTED_DOT_ALL$2 || UNSUPPORTED_NCG$1 || fails$p(function () {
re2[MATCH$1] = false;
// RegExp constructor can alter flags and IsRegExp works correct with @@match
return NativeRegExp(re1) !== re1 || NativeRegExp(re2) === re2 || String(NativeRegExp(re1, 'i')) !== '/a/i';
}));
var handleDotAll = function (string) {
var length = string.length;
var index = 0;
var result = '';
var brackets = false;
var chr;
for (; index <= length; index++) {
chr = charAt$c(string, index);
if (chr === '\\') {
result += chr + charAt$c(string, ++index);
continue;
}
if (!brackets && chr === '.') {
result += '[\\s\\S]';
} else {
if (chr === '[') {
brackets = true;
} else if (chr === ']') {
brackets = false;
} result += chr;
}
} return result;
};
var handleNCG = function (string) {
var length = string.length;
var index = 0;
var result = '';
var named = [];
var names = create$4(null);
var brackets = false;
var ncg = false;
var groupid = 0;
var groupname = '';
var chr;
for (; index <= length; index++) {
chr = charAt$c(string, index);
if (chr === '\\') {
chr += charAt$c(string, ++index);
} else if (chr === ']') {
brackets = false;
} else if (!brackets) switch (true) {
case chr === '[':
brackets = true;
break;
case chr === '(':
if (exec$5(IS_NCG, stringSlice$b(string, index + 1))) {
index += 2;
ncg = true;
}
result += chr;
groupid++;
continue;
case chr === '>' && ncg:
if (groupname === '' || hasOwn$7(names, groupname)) {
throw new SyntaxError('Invalid capture group name');
}
names[groupname] = true;
named[named.length] = [groupname, groupid];
ncg = false;
groupname = '';
continue;
}
if (ncg) groupname += chr;
else result += chr;
} return [result, named];
};
// `RegExp` constructor
// https://tc39.es/ecma262/#sec-regexp-constructor
if (isForced('RegExp', BASE_FORCED)) {
var RegExpWrapper = function RegExp(pattern, flags) {
var thisIsRegExp = isPrototypeOf$1(RegExpPrototype$6, this);
var patternIsRegExp = isRegExp$3(pattern);
var flagsAreUndefined = flags === undefined;
var groups = [];
var rawPattern = pattern;
var rawFlags, dotAll, sticky, handled, result, state;
if (!thisIsRegExp && patternIsRegExp && flagsAreUndefined && pattern.constructor === RegExpWrapper) {
return pattern;
}
if (patternIsRegExp || isPrototypeOf$1(RegExpPrototype$6, pattern)) {
pattern = pattern.source;
if (flagsAreUndefined) flags = getRegExpFlags$4(rawPattern);
}
pattern = pattern === undefined ? '' : toString$p(pattern);
flags = flags === undefined ? '' : toString$p(flags);
rawPattern = pattern;
if (UNSUPPORTED_DOT_ALL$2 && 'dotAll' in re1) {
dotAll = !!flags && stringIndexOf$3(flags, 's') > -1;
if (dotAll) flags = replace$8(flags, /s/g, '');
}
rawFlags = flags;
if (MISSED_STICKY$1 && 'sticky' in re1) {
sticky = !!flags && stringIndexOf$3(flags, 'y') > -1;
if (sticky && UNSUPPORTED_Y$2) flags = replace$8(flags, /y/g, '');
}
if (UNSUPPORTED_NCG$1) {
handled = handleNCG(pattern);
pattern = handled[0];
groups = handled[1];
}
result = inheritIfRequired$2(NativeRegExp(pattern, flags), thisIsRegExp ? this : RegExpPrototype$6, RegExpWrapper);
if (dotAll || sticky || groups.length) {
state = enforceInternalState$2(result);
if (dotAll) {
state.dotAll = true;
state.raw = RegExpWrapper(handleDotAll(pattern), rawFlags);
}
if (sticky) state.sticky = true;
if (groups.length) state.groups = groups;
}
if (pattern !== rawPattern) try {
// fails in old engines, but we have no alternatives for unsupported regex syntax
createNonEnumerableProperty$5(result, 'source', rawPattern === '' ? '(?:)' : rawPattern);
} catch (error) { /* empty */ }
return result;
};
for (var keys$1 = getOwnPropertyNames$1(NativeRegExp), index$2 = 0; keys$1.length > index$2;) {
proxyAccessor(RegExpWrapper, NativeRegExp, keys$1[index$2++]);
}
RegExpPrototype$6.constructor = RegExpWrapper;
RegExpWrapper.prototype = RegExpPrototype$6;
defineBuiltIn$8(global$p, 'RegExp', RegExpWrapper, { constructor: true });
}
// https://tc39.es/ecma262/#sec-get-regexp-@@species
setSpecies$1('RegExp');
var DESCRIPTORS$a = descriptors;
var UNSUPPORTED_DOT_ALL$1 = regexpUnsupportedDotAll;
var classof$8 = classofRaw$2;
var defineBuiltInAccessor$8 = defineBuiltInAccessor$i;
var getInternalState$6 = internalState.get;
var RegExpPrototype$5 = RegExp.prototype;
var $TypeError$7 = TypeError;
// `RegExp.prototype.dotAll` getter
// https://tc39.es/ecma262/#sec-get-regexp.prototype.dotall
if (DESCRIPTORS$a && UNSUPPORTED_DOT_ALL$1) {
defineBuiltInAccessor$8(RegExpPrototype$5, 'dotAll', {
configurable: true,
get: function dotAll() {
if (this === RegExpPrototype$5) return;
// We can't use InternalStateModule.getterFor because
// we don't add metadata for regexps created by a literal.
if (classof$8(this) === 'RegExp') {
return !!getInternalState$6(this).dotAll;
}
throw new $TypeError$7('Incompatible receiver, RegExp required');
}
});
}
/* 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$j = functionCall;
var uncurryThis$B = functionUncurryThis;
var toString$o = toString$C;
var regexpFlags = regexpFlags$1;
var stickyHelpers$1 = regexpStickyHelpers;
var shared = shared$7;
var create$3 = objectCreate;
var getInternalState$5 = internalState.get;
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
var nativeReplace = shared('native-string-replace', String.prototype.replace);
var nativeExec = RegExp.prototype.exec;
var patchedExec = nativeExec;
var charAt$b = uncurryThis$B(''.charAt);
var indexOf$1 = uncurryThis$B(''.indexOf);
var replace$7 = uncurryThis$B(''.replace);
var stringSlice$a = uncurryThis$B(''.slice);
var UPDATES_LAST_INDEX_WRONG = (function () {
var re1 = /a/;
var re2 = /b*/g;
call$j(nativeExec, re1, 'a');
call$j(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$5(re);
var str = toString$o(string);
var raw = state.raw;
var result, reCopy, lastIndex, match, i, object, group;
if (raw) {
raw.lastIndex = re.lastIndex;
result = call$j(patchedExec, raw, str);
re.lastIndex = raw.lastIndex;
return result;
}
var groups = state.groups;
var sticky = UNSUPPORTED_Y$1 && re.sticky;
var flags = call$j(regexpFlags, re);
var source = re.source;
var charsAdded = 0;
var strCopy = str;
if (sticky) {
flags = replace$7(flags, 'y', '');
if (indexOf$1(flags, 'g') === -1) {
flags += 'g';
}
strCopy = stringSlice$a(str, re.lastIndex);
// Support anchored sticky behavior.
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$b(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$j(nativeExec, sticky ? reCopy : re, strCopy);
if (sticky) {
if (match) {
match.input = stringSlice$a(match.input, charsAdded);
match[0] = stringSlice$a(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't work for /(.?)?/
call$j(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$3(null);
for (i = 0; i < groups.length; i++) {
group = groups[i];
object[group[0]] = match[group[1]];
}
}
return match;
};
}
var regexpExec$2 = patchedExec;
var $$P = _export;
var exec$4 = regexpExec$2;
// `RegExp.prototype.exec` method
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
$$P({ target: 'RegExp', proto: true, forced: /./.exec !== exec$4 }, {
exec: exec$4
});
var global$o = global$11;
var DESCRIPTORS$9 = descriptors;
var defineBuiltInAccessor$7 = defineBuiltInAccessor$i;
var regExpFlags = regexpFlags$1;
var fails$o = fails$1p;
// babel-minify and Closure Compiler transpiles RegExp('.', 'd') -> /./d and it causes SyntaxError
var RegExp$2 = global$o.RegExp;
var RegExpPrototype$4 = RegExp$2.prototype;
var FORCED$5 = DESCRIPTORS$9 && fails$o(function () {
var INDICES_SUPPORT = true;
try {
RegExp$2('.', 'd');
} catch (error) {
INDICES_SUPPORT = false;
}
var O = {};
// modern V8 bug
var calls = '';
var expected = INDICES_SUPPORT ? 'dgimsy' : 'gimsy';
var addGetter = function (key, chr) {
// eslint-disable-next-line es/no-object-defineproperty -- safe
Object.defineProperty(O, key, { get: function () {
calls += chr;
return true;
} });
};
var pairs = {
dotAll: 's',
global: 'g',
ignoreCase: 'i',
multiline: 'm',
sticky: 'y'
};
if (INDICES_SUPPORT) pairs.hasIndices = 'd';
for (var key in pairs) addGetter(key, pairs[key]);
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var result = Object.getOwnPropertyDescriptor(RegExpPrototype$4, 'flags').get.call(O);
return result !== expected || calls !== expected;
});
// `RegExp.prototype.flags` getter
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
if (FORCED$5) defineBuiltInAccessor$7(RegExpPrototype$4, 'flags', {
configurable: true,
get: regExpFlags
});
var DESCRIPTORS$8 = descriptors;
var MISSED_STICKY = regexpStickyHelpers.MISSED_STICKY;
var classof$7 = classofRaw$2;
var defineBuiltInAccessor$6 = defineBuiltInAccessor$i;
var getInternalState$4 = internalState.get;
var RegExpPrototype$3 = RegExp.prototype;
var $TypeError$6 = TypeError;
// `RegExp.prototype.sticky` getter
// https://tc39.es/ecma262/#sec-get-regexp.prototype.sticky
if (DESCRIPTORS$8 && MISSED_STICKY) {
defineBuiltInAccessor$6(RegExpPrototype$3, 'sticky', {
configurable: true,
get: function sticky() {
if (this === RegExpPrototype$3) return;
// We can't use InternalStateModule.getterFor because
// we don't add metadata for regexps created by a literal.
if (classof$7(this) === 'RegExp') {
return !!getInternalState$4(this).sticky;
}
throw new $TypeError$6('Incompatible receiver, RegExp required');
}
});
}
// TODO: Remove from `core-js@4` since it's moved to entry points
var $$O = _export;
var call$i = functionCall;
var isCallable$6 = isCallable$y;
var anObject$b = anObject$D;
var toString$n = toString$C;
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 nativeTest = /./.test;
// `RegExp.prototype.test` method
// https://tc39.es/ecma262/#sec-regexp.prototype.test
$$O({ target: 'RegExp', proto: true, forced: !DELEGATES_TO_EXEC }, {
test: function (S) {
var R = anObject$b(this);
var string = toString$n(S);
var exec = R.exec;
if (!isCallable$6(exec)) return call$i(nativeTest, R, string);
var result = call$i(exec, R, string);
if (result === null) return false;
anObject$b(result);
return true;
}
});
var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
var defineBuiltIn$7 = defineBuiltIn$o;
var anObject$a = anObject$D;
var $toString$2 = toString$C;
var fails$n = fails$1p;
var getRegExpFlags$3 = regexpGetFlags;
var TO_STRING = 'toString';
var RegExpPrototype$2 = RegExp.prototype;
var nativeToString = RegExpPrototype$2[TO_STRING];
var NOT_GENERIC = fails$n(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
// FF44- RegExp#toString has a wrong name
var INCORRECT_NAME = PROPER_FUNCTION_NAME$1 && nativeToString.name !== TO_STRING;
// `RegExp.prototype.toString` method
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
if (NOT_GENERIC || INCORRECT_NAME) {
defineBuiltIn$7(RegExpPrototype$2, TO_STRING, function toString() {
var R = anObject$a(this);
var pattern = $toString$2(R.source);
var flags = $toString$2(getRegExpFlags$3(R));
return '/' + pattern + '/' + flags;
}, { unsafe: true });
}
var collection$2 = collection$4;
var collectionStrong = 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);
var $$N = _export;
var uncurryThis$A = functionUncurryThis;
var requireObjectCoercible$e = requireObjectCoercible$n;
var toIntegerOrInfinity$6 = toIntegerOrInfinity$l;
var toString$m = toString$C;
var fails$m = fails$1p;
var charAt$a = uncurryThis$A(''.charAt);
var FORCED$4 = fails$m(function () {
// eslint-disable-next-line es/no-array-string-prototype-at -- safe
return '𠮷'.at(-2) !== '\uD842';
});
// `String.prototype.at` method
// https://tc39.es/ecma262/#sec-string.prototype.at
$$N({ target: 'String', proto: true, forced: FORCED$4 }, {
at: function at(index) {
var S = toString$m(requireObjectCoercible$e(this));
var len = S.length;
var relativeIndex = toIntegerOrInfinity$6(index);
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
return (k < 0 || k >= len) ? undefined : charAt$a(S, k);
}
});
var uncurryThis$z = functionUncurryThis;
var toIntegerOrInfinity$5 = toIntegerOrInfinity$l;
var toString$l = toString$C;
var requireObjectCoercible$d = requireObjectCoercible$n;
var charAt$9 = uncurryThis$z(''.charAt);
var charCodeAt$4 = uncurryThis$z(''.charCodeAt);
var stringSlice$9 = uncurryThis$z(''.slice);
var createMethod = function (CONVERT_TO_STRING) {
return function ($this, pos) {
var S = toString$l(requireObjectCoercible$d($this));
var position = toIntegerOrInfinity$5(pos);
var size = S.length;
var first, second;
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
first = charCodeAt$4(S, position);
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|| (second = charCodeAt$4(S, position + 1)) < 0xDC00 || second > 0xDFFF
? CONVERT_TO_STRING
? charAt$9(S, position)
: first
: CONVERT_TO_STRING
? stringSlice$9(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(false),
// `String.prototype.at` method
// https://github.com/mathiasbynens/String.prototype.at
charAt: createMethod(true)
};
var $$M = _export;
var codeAt$1 = stringMultibyte.codeAt;
// `String.prototype.codePointAt` method
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
$$M({ target: 'String', proto: true }, {
codePointAt: function codePointAt(pos) {
return codeAt$1(this, pos);
}
});
var isRegExp$2 = isRegexp;
var $TypeError$5 = TypeError;
var notARegexp = function (it) {
if (isRegExp$2(it)) {
throw new $TypeError$5("The method doesn't accept regular expressions");
} return it;
};
var wellKnownSymbol$8 = wellKnownSymbol$z;
var MATCH = wellKnownSymbol$8('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 $$L = _export;
var uncurryThis$y = functionUncurryThisClause;
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
var toLength$7 = toLength$d;
var toString$k = toString$C;
var notARegExp$2 = notARegexp;
var requireObjectCoercible$c = requireObjectCoercible$n;
var correctIsRegExpLogic$2 = correctIsRegexpLogic;
var slice$2 = uncurryThis$y(''.slice);
var min$4 = Math.min;
var CORRECT_IS_REGEXP_LOGIC$1 = correctIsRegExpLogic$2('endsWith');
// https://github.com/zloirock/core-js/pull/702
var MDN_POLYFILL_BUG$1 = !CORRECT_IS_REGEXP_LOGIC$1 && !!function () {
var descriptor = getOwnPropertyDescriptor$1(String.prototype, 'endsWith');
return descriptor && !descriptor.writable;
}();
// `String.prototype.endsWith` method
// https://tc39.es/ecma262/#sec-string.prototype.endswith
$$L({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG$1 && !CORRECT_IS_REGEXP_LOGIC$1 }, {
endsWith: function endsWith(searchString /* , endPosition = @length */) {
var that = toString$k(requireObjectCoercible$c(this));
notARegExp$2(searchString);
var endPosition = arguments.length > 1 ? arguments[1] : undefined;
var len = that.length;
var end = endPosition === undefined ? len : min$4(toLength$7(endPosition), len);
var search = toString$k(searchString);
return slice$2(that, end - search.length, end) === search;
}
});
var $$K = _export;
var uncurryThis$x = functionUncurryThis;
var toAbsoluteIndex$1 = toAbsoluteIndex$9;
var $RangeError$3 = RangeError;
var fromCharCode$3 = String.fromCharCode;
// eslint-disable-next-line es/no-string-fromcodepoint -- required for testing
var $fromCodePoint = String.fromCodePoint;
var join$6 = uncurryThis$x([].join);
// length should be 1, old FF problem
var INCORRECT_LENGTH = !!$fromCodePoint && $fromCodePoint.length !== 1;
// `String.fromCodePoint` method
// https://tc39.es/ecma262/#sec-string.fromcodepoint
$$K({ target: 'String', stat: true, arity: 1, forced: INCORRECT_LENGTH }, {
// eslint-disable-next-line no-unused-vars -- required for `.length`
fromCodePoint: function fromCodePoint(x) {
var elements = [];
var length = arguments.length;
var i = 0;
var code;
while (length > i) {
code = +arguments[i++];
if (toAbsoluteIndex$1(code, 0x10FFFF) !== code) throw new $RangeError$3(code + ' is not a valid code point');
elements[i] = code < 0x10000
? fromCharCode$3(code)
: fromCharCode$3(((code -= 0x10000) >> 10) + 0xD800, code % 0x400 + 0xDC00);
} return join$6(elements, '');
}
});
var $$J = _export;
var uncurryThis$w = functionUncurryThis;
var notARegExp$1 = notARegexp;
var requireObjectCoercible$b = requireObjectCoercible$n;
var toString$j = toString$C;
var correctIsRegExpLogic$1 = correctIsRegexpLogic;
var stringIndexOf$2 = uncurryThis$w(''.indexOf);
// `String.prototype.includes` method
// https://tc39.es/ecma262/#sec-string.prototype.includes
$$J({ target: 'String', proto: true, forced: !correctIsRegExpLogic$1('includes') }, {
includes: function includes(searchString /* , position = 0 */) {
return !!~stringIndexOf$2(
toString$j(requireObjectCoercible$b(this)),
toString$j(notARegExp$1(searchString)),
arguments.length > 1 ? arguments[1] : undefined
);
}
});
var $$I = _export;
var uncurryThis$v = functionUncurryThis;
var requireObjectCoercible$a = requireObjectCoercible$n;
var toString$i = toString$C;
var charCodeAt$3 = uncurryThis$v(''.charCodeAt);
// `String.prototype.isWellFormed` method
// https://github.com/tc39/proposal-is-usv-string
$$I({ target: 'String', proto: true }, {
isWellFormed: function isWellFormed() {
var S = toString$i(requireObjectCoercible$a(this));
var length = S.length;
for (var i = 0; i < length; i++) {
var charCode = charCodeAt$3(S, i);
// single UTF-16 code unit
if ((charCode & 0xF800) !== 0xD800) continue;
// unpaired surrogate
if (charCode >= 0xDC00 || ++i >= length || (charCodeAt$3(S, i) & 0xFC00) !== 0xDC00) return false;
} return true;
}
});
var charAt$8 = stringMultibyte.charAt;
var toString$h = toString$C;
var InternalStateModule$6 = internalState;
var defineIterator = iteratorDefine;
var createIterResultObject$2 = createIterResultObject$5;
var STRING_ITERATOR = 'String Iterator';
var setInternalState$6 = InternalStateModule$6.set;
var getInternalState$3 = InternalStateModule$6.getterFor(STRING_ITERATOR);
// `String.prototype[@@iterator]` method
// https://tc39.es/ecma262/#sec-string.prototype-@@iterator
defineIterator(String, 'String', function (iterated) {
setInternalState$6(this, {
type: STRING_ITERATOR,
string: toString$h(iterated),
index: 0
});
// `%StringIteratorPrototype%.next` method
// https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
}, function next() {
var state = getInternalState$3(this);
var string = state.string;
var index = state.index;
var point;
if (index >= string.length) return createIterResultObject$2(undefined, true);
point = charAt$8(string, index);
state.index += point.length;
return createIterResultObject$2(point, false);
});
// TODO: Remove from `core-js@4` since it's moved to entry points
var call$h = functionCall;
var defineBuiltIn$6 = defineBuiltIn$o;
var regexpExec$1 = regexpExec$2;
var fails$l = fails$1p;
var wellKnownSymbol$7 = wellKnownSymbol$z;
var createNonEnumerableProperty$4 = createNonEnumerableProperty$f;
var SPECIES = wellKnownSymbol$7('species');
var RegExpPrototype$1 = RegExp.prototype;
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
var SYMBOL = wellKnownSymbol$7(KEY);
var DELEGATES_TO_SYMBOL = !fails$l(function () {
// String methods call symbol-named RegExp methods
var O = {};
O[SYMBOL] = function () { return 7; };
return ''[KEY](O) !== 7;
});
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$l(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] = 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 nativeRegExpMethod = /./[SYMBOL];
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
var $exec = regexp.exec;
if ($exec === regexpExec$1 || $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: call$h(nativeRegExpMethod, regexp, str, arg2) };
}
return { done: true, value: call$h(nativeMethod, str, regexp, arg2) };
}
return { done: false };
});
defineBuiltIn$6(String.prototype, KEY, methods[0]);
defineBuiltIn$6(RegExpPrototype$1, SYMBOL, methods[1]);
}
if (SHAM) createNonEnumerableProperty$4(RegExpPrototype$1[SYMBOL], 'sham', true);
};
var charAt$7 = stringMultibyte.charAt;
// `AdvanceStringIndex` abstract operation
// https://tc39.es/ecma262/#sec-advancestringindex
var advanceStringIndex$4 = function (S, index, unicode) {
return index + (unicode ? charAt$7(S, index).length : 1);
};
var call$g = functionCall;
var anObject$9 = anObject$D;
var isCallable$5 = isCallable$y;
var classof$6 = classofRaw$2;
var regexpExec = regexpExec$2;
var $TypeError$4 = TypeError;
// `RegExpExec` abstract operation
// https://tc39.es/ecma262/#sec-regexpexec
var regexpExecAbstract = function (R, S) {
var exec = R.exec;
if (isCallable$5(exec)) {
var result = call$g(exec, R, S);
if (result !== null) anObject$9(result);
return result;
}
if (classof$6(R) === 'RegExp') return call$g(regexpExec, R, S);
throw new $TypeError$4('RegExp#exec called on incompatible receiver');
};
var call$f = functionCall;
var fixRegExpWellKnownSymbolLogic$3 = fixRegexpWellKnownSymbolLogic;
var anObject$8 = anObject$D;
var isNullOrUndefined$7 = isNullOrUndefined$e;
var toLength$6 = toLength$d;
var toString$g = toString$C;
var requireObjectCoercible$9 = requireObjectCoercible$n;
var getMethod$5 = getMethod$9;
var advanceStringIndex$3 = advanceStringIndex$4;
var regExpExec$4 = regexpExecAbstract;
// @@match logic
fixRegExpWellKnownSymbolLogic$3('match', function (MATCH, nativeMatch, maybeCallNative) {
return [
// `String.prototype.match` method
// https://tc39.es/ecma262/#sec-string.prototype.match
function match(regexp) {
var O = requireObjectCoercible$9(this);
var matcher = isNullOrUndefined$7(regexp) ? undefined : getMethod$5(regexp, MATCH);
return matcher ? call$f(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString$g(O));
},
// `RegExp.prototype[@@match]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@match
function (string) {
var rx = anObject$8(this);
var S = toString$g(string);
var res = maybeCallNative(nativeMatch, rx, S);
if (res.done) return res.value;
if (!rx.global) return regExpExec$4(rx, S);
var fullUnicode = rx.unicode;
rx.lastIndex = 0;
var A = [];
var n = 0;
var result;
while ((result = regExpExec$4(rx, S)) !== null) {
var matchStr = toString$g(result[0]);
A[n] = matchStr;
if (matchStr === '') rx.lastIndex = advanceStringIndex$3(S, toLength$6(rx.lastIndex), fullUnicode);
n++;
}
return n === 0 ? null : A;
}
];
});
/* eslint-disable es/no-string-prototype-matchall -- safe */
var $$H = _export;
var call$e = functionCall;
var uncurryThis$u = functionUncurryThisClause;
var createIteratorConstructor$1 = iteratorCreateConstructor;
var createIterResultObject$1 = createIterResultObject$5;
var requireObjectCoercible$8 = requireObjectCoercible$n;
var toLength$5 = toLength$d;
var toString$f = toString$C;
var anObject$7 = anObject$D;
var isNullOrUndefined$6 = isNullOrUndefined$e;
var classof$5 = classofRaw$2;
var isRegExp$1 = isRegexp;
var getRegExpFlags$2 = regexpGetFlags;
var getMethod$4 = getMethod$9;
var defineBuiltIn$5 = defineBuiltIn$o;
var fails$k = fails$1p;
var wellKnownSymbol$6 = wellKnownSymbol$z;
var speciesConstructor$2 = speciesConstructor$6;
var advanceStringIndex$2 = advanceStringIndex$4;
var regExpExec$3 = regexpExecAbstract;
var InternalStateModule$5 = internalState;
var IS_PURE$1 = isPure;
var MATCH_ALL = wellKnownSymbol$6('matchAll');
var REGEXP_STRING = 'RegExp String';
var REGEXP_STRING_ITERATOR = REGEXP_STRING + ' Iterator';
var setInternalState$5 = InternalStateModule$5.set;
var getInternalState$2 = InternalStateModule$5.getterFor(REGEXP_STRING_ITERATOR);
var RegExpPrototype = RegExp.prototype;
var $TypeError$3 = TypeError;
var stringIndexOf$1 = uncurryThis$u(''.indexOf);
var nativeMatchAll = uncurryThis$u(''.matchAll);
var WORKS_WITH_NON_GLOBAL_REGEX = !!nativeMatchAll && !fails$k(function () {
nativeMatchAll('a', /./);
});
var $RegExpStringIterator = createIteratorConstructor$1(function RegExpStringIterator(regexp, string, $global, fullUnicode) {
setInternalState$5(this, {
type: REGEXP_STRING_ITERATOR,
regexp: regexp,
string: string,
global: $global,
unicode: fullUnicode,
done: false
});
}, REGEXP_STRING, function next() {
var state = getInternalState$2(this);
if (state.done) return createIterResultObject$1(undefined, true);
var R = state.regexp;
var S = state.string;
var match = regExpExec$3(R, S);
if (match === null) {
state.done = true;
return createIterResultObject$1(undefined, true);
}
if (state.global) {
if (toString$f(match[0]) === '') R.lastIndex = advanceStringIndex$2(S, toLength$5(R.lastIndex), state.unicode);
return createIterResultObject$1(match, false);
}
state.done = true;
return createIterResultObject$1(match, false);
});
var $matchAll = function (string) {
var R = anObject$7(this);
var S = toString$f(string);
var C = speciesConstructor$2(R, RegExp);
var flags = toString$f(getRegExpFlags$2(R));
var matcher, $global, fullUnicode;
matcher = new C(C === RegExp ? R.source : R, flags);
$global = !!~stringIndexOf$1(flags, 'g');
fullUnicode = !!~stringIndexOf$1(flags, 'u');
matcher.lastIndex = toLength$5(R.lastIndex);
return new $RegExpStringIterator(matcher, S, $global, fullUnicode);
};
// `String.prototype.matchAll` method
// https://tc39.es/ecma262/#sec-string.prototype.matchall
$$H({ target: 'String', proto: true, forced: WORKS_WITH_NON_GLOBAL_REGEX }, {
matchAll: function matchAll(regexp) {
var O = requireObjectCoercible$8(this);
var flags, S, matcher, rx;
if (!isNullOrUndefined$6(regexp)) {
if (isRegExp$1(regexp)) {
flags = toString$f(requireObjectCoercible$8(getRegExpFlags$2(regexp)));
if (!~stringIndexOf$1(flags, 'g')) throw new $TypeError$3('`.matchAll` does not allow non-global regexes');
}
if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll(O, regexp);
matcher = getMethod$4(regexp, MATCH_ALL);
if (matcher === undefined && IS_PURE$1 && classof$5(regexp) === 'RegExp') matcher = $matchAll;
if (matcher) return call$e(matcher, regexp, O);
} else if (WORKS_WITH_NON_GLOBAL_REGEX) return nativeMatchAll(O, regexp);
S = toString$f(O);
rx = new RegExp(regexp, 'g');
return rx[MATCH_ALL](S);
}
});
MATCH_ALL in RegExpPrototype || defineBuiltIn$5(RegExpPrototype, MATCH_ALL, $matchAll);
// https://github.com/zloirock/core-js/issues/280
var userAgent = engineUserAgent;
var stringPadWebkitBug = /Version\/10(?:\.\d+){1,2}(?: [\w./]+)?(?: Mobile\/\w+)? Safari\//.test(userAgent);
var $$G = _export;
var $padEnd = stringPad.end;
var WEBKIT_BUG$1 = stringPadWebkitBug;
// `String.prototype.padEnd` method
// https://tc39.es/ecma262/#sec-string.prototype.padend
$$G({ target: 'String', proto: true, forced: WEBKIT_BUG$1 }, {
padEnd: function padEnd(maxLength /* , fillString = ' ' */) {
return $padEnd(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
}
});
var $$F = _export;
var $padStart = stringPad.start;
var WEBKIT_BUG = stringPadWebkitBug;
// `String.prototype.padStart` method
// https://tc39.es/ecma262/#sec-string.prototype.padstart
$$F({ target: 'String', proto: true, forced: WEBKIT_BUG }, {
padStart: function padStart(maxLength /* , fillString = ' ' */) {
return $padStart(this, maxLength, arguments.length > 1 ? arguments[1] : undefined);
}
});
var $$E = _export;
var uncurryThis$t = functionUncurryThis;
var toIndexedObject$1 = toIndexedObject$j;
var toObject$3 = toObject$u;
var toString$e = toString$C;
var lengthOfArrayLike$4 = lengthOfArrayLike$s;
var push$7 = uncurryThis$t([].push);
var join$5 = uncurryThis$t([].join);
// `String.raw` method
// https://tc39.es/ecma262/#sec-string.raw
$$E({ target: 'String', stat: true }, {
raw: function raw(template) {
var rawTemplate = toIndexedObject$1(toObject$3(template).raw);
var literalSegments = lengthOfArrayLike$4(rawTemplate);
if (!literalSegments) return '';
var argumentsLength = arguments.length;
var elements = [];
var i = 0;
while (true) {
push$7(elements, toString$e(rawTemplate[i++]));
if (i === literalSegments) return join$5(elements, '');
if (i < argumentsLength) push$7(elements, toString$e(arguments[i]));
}
}
});
var $$D = _export;
var repeat = stringRepeat;
// `String.prototype.repeat` method
// https://tc39.es/ecma262/#sec-string.prototype.repeat
$$D({ target: 'String', proto: true }, {
repeat: repeat
});
var uncurryThis$s = functionUncurryThis;
var toObject$2 = toObject$u;
var floor$3 = Math.floor;
var charAt$6 = uncurryThis$s(''.charAt);
var replace$6 = uncurryThis$s(''.replace);
var stringSlice$8 = uncurryThis$s(''.slice);
// eslint-disable-next-line redos/no-vulnerable -- safe
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$2 = 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$2(namedCaptures);
symbols = SUBSTITUTION_SYMBOLS;
}
return replace$6(replacement, symbols, function (match, ch) {
var capture;
switch (charAt$6(ch, 0)) {
case '$': return '$';
case '&': return matched;
case '`': return stringSlice$8(str, 0, position);
case "'": return stringSlice$8(str, tailPos);
case '<':
capture = namedCaptures[stringSlice$8(ch, 1, -1)];
break;
default: // \d\d?
var n = +ch;
if (n === 0) return match;
if (n > m) {
var f = floor$3(n / 10);
if (f === 0) return match;
if (f <= m) return captures[f - 1] === undefined ? charAt$6(ch, 1) : captures[f - 1] + charAt$6(ch, 1);
return match;
}
capture = captures[n - 1];
}
return capture === undefined ? '' : capture;
});
};
var apply$3 = functionApply$1;
var call$d = functionCall;
var uncurryThis$r = functionUncurryThis;
var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
var fails$j = fails$1p;
var anObject$6 = anObject$D;
var isCallable$4 = isCallable$y;
var isNullOrUndefined$5 = isNullOrUndefined$e;
var toIntegerOrInfinity$4 = toIntegerOrInfinity$l;
var toLength$4 = toLength$d;
var toString$d = toString$C;
var requireObjectCoercible$7 = requireObjectCoercible$n;
var advanceStringIndex$1 = advanceStringIndex$4;
var getMethod$3 = getMethod$9;
var getSubstitution$1 = getSubstitution$2;
var regExpExec$2 = regexpExecAbstract;
var wellKnownSymbol$5 = wellKnownSymbol$z;
var REPLACE$1 = wellKnownSymbol$5('replace');
var max$2 = Math.max;
var min$3 = Math.min;
var concat = uncurryThis$r([].concat);
var push$6 = uncurryThis$r([].push);
var stringIndexOf = uncurryThis$r(''.indexOf);
var stringSlice$7 = uncurryThis$r(''.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$1]) {
return /./[REPLACE$1]('a', '$0') === '';
}
return false;
})();
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$j(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, '$<a>') !== '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$7(this);
var replacer = isNullOrUndefined$5(searchValue) ? undefined : getMethod$3(searchValue, REPLACE$1);
return replacer
? call$d(replacer, searchValue, O, replaceValue)
: call$d(nativeReplace, toString$d(O), searchValue, replaceValue);
},
// `RegExp.prototype[@@replace]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
function (string, replaceValue) {
var rx = anObject$6(this);
var S = toString$d(string);
if (
typeof replaceValue == 'string' &&
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
stringIndexOf(replaceValue, '$<') === -1
) {
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
if (res.done) return res.value;
}
var functionalReplace = isCallable$4(replaceValue);
if (!functionalReplace) replaceValue = toString$d(replaceValue);
var global = rx.global;
var fullUnicode;
if (global) {
fullUnicode = rx.unicode;
rx.lastIndex = 0;
}
var results = [];
var result;
while (true) {
result = regExpExec$2(rx, S);
if (result === null) break;
push$6(results, result);
if (!global) break;
var matchStr = toString$d(result[0]);
if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$4(rx.lastIndex), fullUnicode);
}
var accumulatedResult = '';
var nextSourcePosition = 0;
for (var i = 0; i < results.length; i++) {
result = results[i];
var matched = toString$d(result[0]);
var position = max$2(min$3(toIntegerOrInfinity$4(result.index), S.length), 0);
var captures = [];
var replacement;
// 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$6(captures, maybeToString(result[j]));
var namedCaptures = result.groups;
if (functionalReplace) {
var replacerArgs = concat([matched], captures, position, S);
if (namedCaptures !== undefined) push$6(replacerArgs, namedCaptures);
replacement = toString$d(apply$3(replaceValue, undefined, replacerArgs));
} else {
replacement = getSubstitution$1(matched, S, position, captures, namedCaptures, replaceValue);
}
if (position >= nextSourcePosition) {
accumulatedResult += stringSlice$7(S, nextSourcePosition, position) + replacement;
nextSourcePosition = position + matched.length;
}
}
return accumulatedResult + stringSlice$7(S, nextSourcePosition);
}
];
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
var $$C = _export;
var call$c = functionCall;
var uncurryThis$q = functionUncurryThis;
var requireObjectCoercible$6 = requireObjectCoercible$n;
var isCallable$3 = isCallable$y;
var isNullOrUndefined$4 = isNullOrUndefined$e;
var isRegExp = isRegexp;
var toString$c = toString$C;
var getMethod$2 = getMethod$9;
var getRegExpFlags$1 = regexpGetFlags;
var getSubstitution = getSubstitution$2;
var wellKnownSymbol$4 = wellKnownSymbol$z;
var REPLACE = wellKnownSymbol$4('replace');
var $TypeError$2 = TypeError;
var indexOf = uncurryThis$q(''.indexOf);
uncurryThis$q(''.replace);
var stringSlice$6 = uncurryThis$q(''.slice);
var max$1 = Math.max;
// `String.prototype.replaceAll` method
// https://tc39.es/ecma262/#sec-string.prototype.replaceall
$$C({ target: 'String', proto: true }, {
replaceAll: function replaceAll(searchValue, replaceValue) {
var O = requireObjectCoercible$6(this);
var IS_REG_EXP, flags, replacer, string, searchString, functionalReplace, searchLength, advanceBy, replacement;
var position = 0;
var endOfLastMatch = 0;
var result = '';
if (!isNullOrUndefined$4(searchValue)) {
IS_REG_EXP = isRegExp(searchValue);
if (IS_REG_EXP) {
flags = toString$c(requireObjectCoercible$6(getRegExpFlags$1(searchValue)));
if (!~indexOf(flags, 'g')) throw new $TypeError$2('`.replaceAll` does not allow non-global regexes');
}
replacer = getMethod$2(searchValue, REPLACE);
if (replacer) {
return call$c(replacer, searchValue, O, replaceValue);
}
}
string = toString$c(O);
searchString = toString$c(searchValue);
functionalReplace = isCallable$3(replaceValue);
if (!functionalReplace) replaceValue = toString$c(replaceValue);
searchLength = searchString.length;
advanceBy = max$1(1, searchLength);
position = indexOf(string, searchString);
while (position !== -1) {
replacement = functionalReplace
? toString$c(replaceValue(searchString, position, string))
: getSubstitution(searchString, string, position, [], undefined, replaceValue);
result += stringSlice$6(string, endOfLastMatch, position) + replacement;
endOfLastMatch = position + searchLength;
position = position + advanceBy > string.length ? -1 : indexOf(string, searchString, position + advanceBy);
}
if (endOfLastMatch < string.length) {
result += stringSlice$6(string, endOfLastMatch);
}
return result;
}
});
var call$b = functionCall;
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
var anObject$5 = anObject$D;
var isNullOrUndefined$3 = isNullOrUndefined$e;
var requireObjectCoercible$5 = requireObjectCoercible$n;
var sameValue = sameValue$1;
var toString$b = toString$C;
var getMethod$1 = getMethod$9;
var regExpExec$1 = regexpExecAbstract;
// @@search logic
fixRegExpWellKnownSymbolLogic$1('search', function (SEARCH, nativeSearch, maybeCallNative) {
return [
// `String.prototype.search` method
// https://tc39.es/ecma262/#sec-string.prototype.search
function search(regexp) {
var O = requireObjectCoercible$5(this);
var searcher = isNullOrUndefined$3(regexp) ? undefined : getMethod$1(regexp, SEARCH);
return searcher ? call$b(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$b(O));
},
// `RegExp.prototype[@@search]` method
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
function (string) {
var rx = anObject$5(this);
var S = toString$b(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$1(rx, S);
if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
return result === null ? -1 : result.index;
}
];
});
var call$a = functionCall;
var uncurryThis$p = functionUncurryThis;
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
var anObject$4 = anObject$D;
var isNullOrUndefined$2 = isNullOrUndefined$e;
var requireObjectCoercible$4 = requireObjectCoercible$n;
var speciesConstructor$1 = speciesConstructor$6;
var advanceStringIndex = advanceStringIndex$4;
var toLength$3 = toLength$d;
var toString$a = toString$C;
var getMethod = getMethod$9;
var regExpExec = regexpExecAbstract;
var stickyHelpers = regexpStickyHelpers;
var fails$i = fails$1p;
var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
var MAX_UINT32 = 0xFFFFFFFF;
var min$2 = Math.min;
var push$5 = uncurryThis$p([].push);
var stringSlice$5 = uncurryThis$p(''.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$i(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';
});
var BUGGY = '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;
// @@split logic
fixRegExpWellKnownSymbolLogic('split', function (SPLIT, nativeSplit, maybeCallNative) {
var internalSplit = '0'.split(undefined, 0).length ? function (separator, limit) {
return separator === undefined && limit === 0 ? [] : call$a(nativeSplit, this, separator, limit);
} : nativeSplit;
return [
// `String.prototype.split` method
// https://tc39.es/ecma262/#sec-string.prototype.split
function split(separator, limit) {
var O = requireObjectCoercible$4(this);
var splitter = isNullOrUndefined$2(separator) ? undefined : getMethod(separator, SPLIT);
return splitter
? call$a(splitter, separator, O, limit)
: call$a(internalSplit, toString$a(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$4(this);
var S = toString$a(string);
if (!BUGGY) {
var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
if (res.done) return res.value;
}
var C = speciesConstructor$1(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 regExpExec(splitter, S) === null ? [S] : [];
var p = 0;
var q = 0;
var A = [];
while (q < S.length) {
splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
var z = regExpExec(splitter, UNSUPPORTED_Y ? stringSlice$5(S, q) : S);
var e;
if (
z === null ||
(e = min$2(toLength$3(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
) {
q = advanceStringIndex(S, q, unicodeMatching);
} else {
push$5(A, stringSlice$5(S, p, q));
if (A.length === lim) return A;
for (var i = 1; i <= z.length - 1; i++) {
push$5(A, z[i]);
if (A.length === lim) return A;
}
q = p = e;
}
}
push$5(A, stringSlice$5(S, p));
return A;
}
];
}, BUGGY || !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
var $$B = _export;
var uncurryThis$o = functionUncurryThisClause;
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
var toLength$2 = toLength$d;
var toString$9 = toString$C;
var notARegExp = notARegexp;
var requireObjectCoercible$3 = requireObjectCoercible$n;
var correctIsRegExpLogic = correctIsRegexpLogic;
var stringSlice$4 = uncurryThis$o(''.slice);
var min$1 = Math.min;
var CORRECT_IS_REGEXP_LOGIC = correctIsRegExpLogic('startsWith');
// https://github.com/zloirock/core-js/pull/702
var MDN_POLYFILL_BUG = !CORRECT_IS_REGEXP_LOGIC && !!function () {
var descriptor = getOwnPropertyDescriptor(String.prototype, 'startsWith');
return descriptor && !descriptor.writable;
}();
// `String.prototype.startsWith` method
// https://tc39.es/ecma262/#sec-string.prototype.startswith
$$B({ target: 'String', proto: true, forced: !MDN_POLYFILL_BUG && !CORRECT_IS_REGEXP_LOGIC }, {
startsWith: function startsWith(searchString /* , position = 0 */) {
var that = toString$9(requireObjectCoercible$3(this));
notARegExp(searchString);
var index = toLength$2(min$1(arguments.length > 1 ? arguments[1] : undefined, that.length));
var search = toString$9(searchString);
return stringSlice$4(that, index, index + search.length) === search;
}
});
var $$A = _export;
var uncurryThis$n = functionUncurryThis;
var requireObjectCoercible$2 = requireObjectCoercible$n;
var toIntegerOrInfinity$3 = toIntegerOrInfinity$l;
var toString$8 = toString$C;
var stringSlice$3 = uncurryThis$n(''.slice);
var max = Math.max;
var min = Math.min;
// eslint-disable-next-line unicorn/prefer-string-slice -- required for testing
var FORCED$3 = !''.substr || 'ab'.substr(-1) !== 'b';
// `String.prototype.substr` method
// https://tc39.es/ecma262/#sec-string.prototype.substr
$$A({ target: 'String', proto: true, forced: FORCED$3 }, {
substr: function substr(start, length) {
var that = toString$8(requireObjectCoercible$2(this));
var size = that.length;
var intStart = toIntegerOrInfinity$3(start);
var intLength, intEnd;
if (intStart === Infinity) intStart = 0;
if (intStart < 0) intStart = max(size + intStart, 0);
intLength = length === undefined ? size : toIntegerOrInfinity$3(length);
if (intLength <= 0 || intLength === Infinity) return '';
intEnd = min(intStart + intLength, size);
return intStart >= intEnd ? '' : stringSlice$3(that, intStart, intEnd);
}
});
var $$z = _export;
var call$9 = functionCall;
var uncurryThis$m = functionUncurryThis;
var requireObjectCoercible$1 = requireObjectCoercible$n;
var toString$7 = toString$C;
var fails$h = fails$1p;
var $Array = Array;
var charAt$5 = uncurryThis$m(''.charAt);
var charCodeAt$2 = uncurryThis$m(''.charCodeAt);
var join$4 = uncurryThis$m([].join);
// eslint-disable-next-line es/no-string-prototype-iswellformed-towellformed -- safe
var $toWellFormed = ''.toWellFormed;
var REPLACEMENT_CHARACTER = '\uFFFD';
// Safari bug
var TO_STRING_CONVERSION_BUG = $toWellFormed && fails$h(function () {
return call$9($toWellFormed, 1) !== '1';
});
// `String.prototype.toWellFormed` method
// https://github.com/tc39/proposal-is-usv-string
$$z({ target: 'String', proto: true, forced: TO_STRING_CONVERSION_BUG }, {
toWellFormed: function toWellFormed() {
var S = toString$7(requireObjectCoercible$1(this));
if (TO_STRING_CONVERSION_BUG) return call$9($toWellFormed, S);
var length = S.length;
var result = $Array(length);
for (var i = 0; i < length; i++) {
var charCode = charCodeAt$2(S, i);
// single UTF-16 code unit
if ((charCode & 0xF800) !== 0xD800) result[i] = charAt$5(S, i);
// unpaired surrogate
else if (charCode >= 0xDC00 || i + 1 >= length || (charCodeAt$2(S, i + 1) & 0xFC00) !== 0xDC00) result[i] = REPLACEMENT_CHARACTER;
// surrogate pair
else {
result[i] = charAt$5(S, i);
result[++i] = charAt$5(S, i);
}
} return join$4(result, '');
}
});
var PROPER_FUNCTION_NAME = functionName.PROPER;
var fails$g = fails$1p;
var whitespaces$1 = whitespaces$5;
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$g(function () {
return !!whitespaces$1[METHOD_NAME]()
|| non[METHOD_NAME]() !== non
|| (PROPER_FUNCTION_NAME && whitespaces$1[METHOD_NAME].name !== METHOD_NAME);
});
};
var $$y = _export;
var $trim = stringTrim.trim;
var forcedStringTrimMethod$2 = stringTrimForced;
// `String.prototype.trim` method
// https://tc39.es/ecma262/#sec-string.prototype.trim
$$y({ target: 'String', proto: true, forced: forcedStringTrimMethod$2('trim') }, {
trim: function trim() {
return $trim(this);
}
});
var $trimEnd = stringTrim.end;
var forcedStringTrimMethod$1 = stringTrimForced;
// `String.prototype.{ trimEnd, trimRight }` method
// https://tc39.es/ecma262/#sec-string.prototype.trimend
// https://tc39.es/ecma262/#String.prototype.trimright
var stringTrimEnd = forcedStringTrimMethod$1('trimEnd') ? function trimEnd() {
return $trimEnd(this);
// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe
} : ''.trimEnd;
var $$x = _export;
var trimEnd$1 = stringTrimEnd;
// `String.prototype.trimRight` method
// https://tc39.es/ecma262/#sec-string.prototype.trimend
// eslint-disable-next-line es/no-string-prototype-trimleft-trimright -- safe
$$x({ target: 'String', proto: true, name: 'trimEnd', forced: ''.trimRight !== trimEnd$1 }, {
trimRight: trimEnd$1
});
// TODO: Remove this line from `core-js@4`
var $$w = _export;
var trimEnd = stringTrimEnd;
// `String.prototype.trimEnd` method
// https://tc39.es/ecma262/#sec-string.prototype.trimend
// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe
$$w({ target: 'String', proto: true, name: 'trimEnd', forced: ''.trimEnd !== trimEnd }, {
trimEnd: trimEnd
});
var $trimStart = stringTrim.start;
var forcedStringTrimMethod = stringTrimForced;
// `String.prototype.{ trimStart, trimLeft }` method
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
// https://tc39.es/ecma262/#String.prototype.trimleft
var stringTrimStart = forcedStringTrimMethod('trimStart') ? function trimStart() {
return $trimStart(this);
// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe
} : ''.trimStart;
var $$v = _export;
var trimStart$1 = stringTrimStart;
// `String.prototype.trimLeft` method
// https://tc39.es/ecma262/#sec-string.prototype.trimleft
// eslint-disable-next-line es/no-string-prototype-trimleft-trimright -- safe
$$v({ target: 'String', proto: true, name: 'trimStart', forced: ''.trimLeft !== trimStart$1 }, {
trimLeft: trimStart$1
});
// TODO: Remove this line from `core-js@4`
var $$u = _export;
var trimStart = stringTrimStart;
// `String.prototype.trimStart` method
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
// eslint-disable-next-line es/no-string-prototype-trimstart-trimend -- safe
$$u({ target: 'String', proto: true, name: 'trimStart', forced: ''.trimStart !== trimStart }, {
trimStart: trimStart
});
var uncurryThis$l = functionUncurryThis;
var requireObjectCoercible = requireObjectCoercible$n;
var toString$6 = toString$C;
var quot = /"/g;
var replace$5 = uncurryThis$l(''.replace);
// `CreateHTML` abstract operation
// https://tc39.es/ecma262/#sec-createhtml
var createHtml = function (string, tag, attribute, value) {
var S = toString$6(requireObjectCoercible(string));
var p1 = '<' + tag;
if (attribute !== '') p1 += ' ' + attribute + '="' + replace$5(toString$6(value), quot, '"') + '"';
return p1 + '>' + S + '</' + tag + '>';
};
var fails$f = fails$1p;
// check the existence of a method, lowercase
// of a tag and escaping quotes in arguments
var stringHtmlForced = function (METHOD_NAME) {
return fails$f(function () {
var test = ''[METHOD_NAME]('"');
return test !== test.toLowerCase() || test.split('"').length > 3;
});
};
var $$t = _export;
var createHTML$c = createHtml;
var forcedStringHTMLMethod$c = stringHtmlForced;
// `String.prototype.anchor` method
// https://tc39.es/ecma262/#sec-string.prototype.anchor
$$t({ target: 'String', proto: true, forced: forcedStringHTMLMethod$c('anchor') }, {
anchor: function anchor(name) {
return createHTML$c(this, 'a', 'name', name);
}
});
var $$s = _export;
var createHTML$b = createHtml;
var forcedStringHTMLMethod$b = stringHtmlForced;
// `String.prototype.big` method
// https://tc39.es/ecma262/#sec-string.prototype.big
$$s({ target: 'String', proto: true, forced: forcedStringHTMLMethod$b('big') }, {
big: function big() {
return createHTML$b(this, 'big', '', '');
}
});
var $$r = _export;
var createHTML$a = createHtml;
var forcedStringHTMLMethod$a = stringHtmlForced;
// `String.prototype.blink` method
// https://tc39.es/ecma262/#sec-string.prototype.blink
$$r({ target: 'String', proto: true, forced: forcedStringHTMLMethod$a('blink') }, {
blink: function blink() {
return createHTML$a(this, 'blink', '', '');
}
});
var $$q = _export;
var createHTML$9 = createHtml;
var forcedStringHTMLMethod$9 = stringHtmlForced;
// `String.prototype.bold` method
// https://tc39.es/ecma262/#sec-string.prototype.bold
$$q({ target: 'String', proto: true, forced: forcedStringHTMLMethod$9('bold') }, {
bold: function bold() {
return createHTML$9(this, 'b', '', '');
}
});
var $$p = _export;
var createHTML$8 = createHtml;
var forcedStringHTMLMethod$8 = stringHtmlForced;
// `String.prototype.fixed` method
// https://tc39.es/ecma262/#sec-string.prototype.fixed
$$p({ target: 'String', proto: true, forced: forcedStringHTMLMethod$8('fixed') }, {
fixed: function fixed() {
return createHTML$8(this, 'tt', '', '');
}
});
var $$o = _export;
var createHTML$7 = createHtml;
var forcedStringHTMLMethod$7 = stringHtmlForced;
// `String.prototype.fontcolor` method
// https://tc39.es/ecma262/#sec-string.prototype.fontcolor
$$o({ target: 'String', proto: true, forced: forcedStringHTMLMethod$7('fontcolor') }, {
fontcolor: function fontcolor(color) {
return createHTML$7(this, 'font', 'color', color);
}
});
var $$n = _export;
var createHTML$6 = createHtml;
var forcedStringHTMLMethod$6 = stringHtmlForced;
// `String.prototype.fontsize` method
// https://tc39.es/ecma262/#sec-string.prototype.fontsize
$$n({ target: 'String', proto: true, forced: forcedStringHTMLMethod$6('fontsize') }, {
fontsize: function fontsize(size) {
return createHTML$6(this, 'font', 'size', size);
}
});
var $$m = _export;
var createHTML$5 = createHtml;
var forcedStringHTMLMethod$5 = stringHtmlForced;
// `String.prototype.italics` method
// https://tc39.es/ecma262/#sec-string.prototype.italics
$$m({ target: 'String', proto: true, forced: forcedStringHTMLMethod$5('italics') }, {
italics: function italics() {
return createHTML$5(this, 'i', '', '');
}
});
var $$l = _export;
var createHTML$4 = createHtml;
var forcedStringHTMLMethod$4 = stringHtmlForced;
// `String.prototype.link` method
// https://tc39.es/ecma262/#sec-string.prototype.link
$$l({ target: 'String', proto: true, forced: forcedStringHTMLMethod$4('link') }, {
link: function link(url) {
return createHTML$4(this, 'a', 'href', url);
}
});
var $$k = _export;
var createHTML$3 = createHtml;
var forcedStringHTMLMethod$3 = stringHtmlForced;
// `String.prototype.small` method
// https://tc39.es/ecma262/#sec-string.prototype.small
$$k({ target: 'String', proto: true, forced: forcedStringHTMLMethod$3('small') }, {
small: function small() {
return createHTML$3(this, 'small', '', '');
}
});
var $$j = _export;
var createHTML$2 = createHtml;
var forcedStringHTMLMethod$2 = stringHtmlForced;
// `String.prototype.strike` method
// https://tc39.es/ecma262/#sec-string.prototype.strike
$$j({ target: 'String', proto: true, forced: forcedStringHTMLMethod$2('strike') }, {
strike: function strike() {
return createHTML$2(this, 'strike', '', '');
}
});
var $$i = _export;
var createHTML$1 = createHtml;
var forcedStringHTMLMethod$1 = stringHtmlForced;
// `String.prototype.sub` method
// https://tc39.es/ecma262/#sec-string.prototype.sub
$$i({ target: 'String', proto: true, forced: forcedStringHTMLMethod$1('sub') }, {
sub: function sub() {
return createHTML$1(this, 'sub', '', '');
}
});
var $$h = _export;
var createHTML = createHtml;
var forcedStringHTMLMethod = stringHtmlForced;
// `String.prototype.sup` method
// https://tc39.es/ecma262/#sec-string.prototype.sup
$$h({ target: 'String', proto: true, forced: forcedStringHTMLMethod('sup') }, {
sup: function sup() {
return createHTML(this, 'sup', '', '');
}
});
var typedArrayConstructor = {exports: {}};
/* eslint-disable no-new -- required for testing */
var global$n = global$11;
var fails$e = fails$1p;
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$4;
var NATIVE_ARRAY_BUFFER_VIEWS$1 = arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
var ArrayBuffer$2 = global$n.ArrayBuffer;
var Int8Array$3 = global$n.Int8Array;
var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fails$e(function () {
Int8Array$3(1);
}) || !fails$e(function () {
new Int8Array$3(-1);
}) || !checkCorrectnessOfIteration(function (iterable) {
new Int8Array$3();
new Int8Array$3(null);
new Int8Array$3(1.5);
new Int8Array$3(iterable);
}, true) || fails$e(function () {
// Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill
return new Int8Array$3(new ArrayBuffer$2(2), 1, undefined).length !== 1;
});
var toIntegerOrInfinity$2 = toIntegerOrInfinity$l;
var $RangeError$2 = RangeError;
var toPositiveInteger$1 = function (it) {
var result = toIntegerOrInfinity$2(it);
if (result < 0) throw new $RangeError$2("The argument can't be less than 0");
return result;
};
var toPositiveInteger = toPositiveInteger$1;
var $RangeError$1 = RangeError;
var toOffset$2 = function (it, BYTES) {
var offset = toPositiveInteger(it);
if (offset % BYTES) throw new $RangeError$1('Wrong offset');
return offset;
};
var round = Math.round;
var toUint8Clamped$1 = function (it) {
var value = round(it);
return value < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF;
};
var classof$4 = classof$n;
var isBigIntArray$2 = function (it) {
var klass = classof$4(it);
return klass === 'BigInt64Array' || klass === 'BigUint64Array';
};
var toPrimitive$1 = toPrimitive$5;
var $TypeError$1 = TypeError;
// `ToBigInt` abstract operation
// https://tc39.es/ecma262/#sec-tobigint
var toBigInt$3 = function (argument) {
var prim = toPrimitive$1(argument, 'number');
if (typeof prim == 'number') throw new $TypeError$1("Can't convert number to bigint");
// eslint-disable-next-line es/no-bigint -- safe
return BigInt(prim);
};
var bind$2 = functionBindContext;
var call$8 = functionCall;
var aConstructor = aConstructor$3;
var toObject$1 = toObject$u;
var lengthOfArrayLike$3 = lengthOfArrayLike$s;
var getIterator$1 = getIterator$4;
var getIteratorMethod$1 = getIteratorMethod$5;
var isArrayIteratorMethod = isArrayIteratorMethod$3;
var isBigIntArray$1 = isBigIntArray$2;
var aTypedArrayConstructor$2 = arrayBufferViewCore.aTypedArrayConstructor;
var toBigInt$2 = toBigInt$3;
var typedArrayFrom$2 = function from(source /* , mapfn, thisArg */) {
var C = aConstructor(this);
var O = toObject$1(source);
var argumentsLength = arguments.length;
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
var mapping = mapfn !== undefined;
var iteratorMethod = getIteratorMethod$1(O);
var i, length, result, thisIsBigIntArray, value, step, iterator, next;
if (iteratorMethod && !isArrayIteratorMethod(iteratorMethod)) {
iterator = getIterator$1(O, iteratorMethod);
next = iterator.next;
O = [];
while (!(step = call$8(next, iterator)).done) {
O.push(step.value);
}
}
if (mapping && argumentsLength > 2) {
mapfn = bind$2(mapfn, arguments[2]);
}
length = lengthOfArrayLike$3(O);
result = new (aTypedArrayConstructor$2(C))(length);
thisIsBigIntArray = isBigIntArray$1(result);
for (i = 0; length > i; i++) {
value = mapping ? mapfn(O[i], i) : O[i];
// FF30- typed arrays doesn't properly convert objects to typed array values
result[i] = thisIsBigIntArray ? toBigInt$2(value) : +value;
}
return result;
};
var $$g = _export;
var global$m = global$11;
var call$7 = functionCall;
var DESCRIPTORS$7 = descriptors;
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$2 = typedArrayConstructorsRequireWrappers;
var ArrayBufferViewCore$u = arrayBufferViewCore;
var ArrayBufferModule = arrayBuffer;
var anInstance$5 = anInstance$a;
var createPropertyDescriptor$3 = createPropertyDescriptor$c;
var createNonEnumerableProperty$3 = createNonEnumerableProperty$f;
var isIntegralNumber = isIntegralNumber$3;
var toLength$1 = toLength$d;
var toIndex = toIndex$3;
var toOffset$1 = toOffset$2;
var toUint8Clamped = toUint8Clamped$1;
var toPropertyKey$1 = toPropertyKey$9;
var hasOwn$6 = hasOwnProperty_1;
var classof$3 = classof$n;
var isObject$4 = isObject$A;
var isSymbol$1 = isSymbol$7;
var create$2 = objectCreate;
var isPrototypeOf = objectIsPrototypeOf;
var setPrototypeOf = objectSetPrototypeOf$1;
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
var typedArrayFrom$1 = typedArrayFrom$2;
var forEach$4 = arrayIteration.forEach;
var setSpecies = setSpecies$6;
var defineBuiltInAccessor$5 = defineBuiltInAccessor$i;
var definePropertyModule = objectDefineProperty;
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
var arrayFromConstructorAndList$2 = arrayFromConstructorAndList$4;
var InternalStateModule$4 = internalState;
var inheritIfRequired$1 = inheritIfRequired$7;
var getInternalState$1 = InternalStateModule$4.get;
var setInternalState$4 = InternalStateModule$4.set;
var enforceInternalState$1 = InternalStateModule$4.enforce;
var nativeDefineProperty = definePropertyModule.f;
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
var RangeError$2 = global$m.RangeError;
var ArrayBuffer$1 = ArrayBufferModule.ArrayBuffer;
var ArrayBufferPrototype = ArrayBuffer$1.prototype;
var DataView$1 = ArrayBufferModule.DataView;
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore$u.NATIVE_ARRAY_BUFFER_VIEWS;
var TYPED_ARRAY_TAG = ArrayBufferViewCore$u.TYPED_ARRAY_TAG;
var TypedArray = ArrayBufferViewCore$u.TypedArray;
var TypedArrayPrototype$1 = ArrayBufferViewCore$u.TypedArrayPrototype;
var isTypedArray = ArrayBufferViewCore$u.isTypedArray;
var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';
var WRONG_LENGTH = 'Wrong length';
var addGetter = function (it, key) {
defineBuiltInAccessor$5(it, key, {
configurable: true,
get: function () {
return getInternalState$1(this)[key];
}
});
};
var isArrayBuffer = function (it) {
var klass;
return isPrototypeOf(ArrayBufferPrototype, it) || (klass = classof$3(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$1(key);
return isTypedArrayIndex(target, key)
? createPropertyDescriptor$3(2, target[key])
: nativeGetOwnPropertyDescriptor(target, key);
};
var wrappedDefineProperty = function defineProperty(target, key, descriptor) {
key = toPropertyKey$1(key);
if (isTypedArrayIndex(target, key)
&& isObject$4(descriptor)
&& hasOwn$6(descriptor, 'value')
&& !hasOwn$6(descriptor, 'get')
&& !hasOwn$6(descriptor, 'set')
// TODO: add validation descriptor w/o calling accessors
&& !descriptor.configurable
&& (!hasOwn$6(descriptor, 'writable') || descriptor.writable)
&& (!hasOwn$6(descriptor, 'enumerable') || descriptor.enumerable)
) {
target[key] = descriptor.value;
return target;
} return nativeDefineProperty(target, key, descriptor);
};
if (DESCRIPTORS$7) {
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');
}
$$g({ 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$m[CONSTRUCTOR_NAME];
var TypedArrayConstructor = NativeTypedArrayConstructor;
var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype;
var exported = {};
var getter = function (that, index) {
var data = getInternalState$1(that);
return data.view[GETTER](index * BYTES + data.byteOffset, true);
};
var setter = function (that, index, value) {
var data = getInternalState$1(that);
data.view[SETTER](index * BYTES + data.byteOffset, CLAMPED ? toUint8Clamped(value) : 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$5(that, TypedArrayConstructorPrototype);
var index = 0;
var byteOffset = 0;
var buffer, byteLength, length;
if (!isObject$4(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 new RangeError$2(WRONG_LENGTH);
byteLength = $len - byteOffset;
if (byteLength < 0) throw new RangeError$2(WRONG_LENGTH);
} else {
byteLength = toLength$1($length) * BYTES;
if (byteLength + byteOffset > $len) throw new RangeError$2(WRONG_LENGTH);
}
length = byteLength / BYTES;
} else if (isTypedArray(data)) {
return arrayFromConstructorAndList$2(TypedArrayConstructor, data);
} else {
return call$7(typedArrayFrom$1, TypedArrayConstructor, data);
}
setInternalState$4(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$2(TypedArrayPrototype$1);
} else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$2) {
TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {
anInstance$5(dummy, TypedArrayConstructorPrototype);
return inheritIfRequired$1(function () {
if (!isObject$4(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 arrayFromConstructorAndList$2(TypedArrayConstructor, data);
return call$7(typedArrayFrom$1, TypedArrayConstructor, data);
}(), dummy, TypedArrayConstructor);
});
if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray);
forEach$4(getOwnPropertyNames(NativeTypedArrayConstructor), function (key) {
if (!(key in TypedArrayConstructor)) {
createNonEnumerableProperty$3(TypedArrayConstructor, key, NativeTypedArrayConstructor[key]);
}
});
TypedArrayConstructor.prototype = TypedArrayConstructorPrototype;
}
if (TypedArrayConstructorPrototype.constructor !== TypedArrayConstructor) {
createNonEnumerableProperty$3(TypedArrayConstructorPrototype, 'constructor', TypedArrayConstructor);
}
enforceInternalState$1(TypedArrayConstructorPrototype).TypedArrayConstructor = TypedArrayConstructor;
if (TYPED_ARRAY_TAG) {
createNonEnumerableProperty$3(TypedArrayConstructorPrototype, TYPED_ARRAY_TAG, CONSTRUCTOR_NAME);
}
var FORCED = TypedArrayConstructor !== NativeTypedArrayConstructor;
exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
$$g({ global: true, constructor: true, forced: FORCED, sham: !NATIVE_ARRAY_BUFFER_VIEWS }, exported);
if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) {
createNonEnumerableProperty$3(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES);
}
if (!(BYTES_PER_ELEMENT in TypedArrayConstructorPrototype)) {
createNonEnumerableProperty$3(TypedArrayConstructorPrototype, BYTES_PER_ELEMENT, BYTES);
}
setSpecies(CONSTRUCTOR_NAME);
};
} else typedArrayConstructor.exports = function () { /* empty */ };
var typedArrayConstructorExports = typedArrayConstructor.exports;
var createTypedArrayConstructor$8 = typedArrayConstructorExports;
// `Float32Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor$8('Float32', function (init) {
return function Float32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
var createTypedArrayConstructor$7 = typedArrayConstructorExports;
// `Float64Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor$7('Float64', function (init) {
return function Float64Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
var createTypedArrayConstructor$6 = typedArrayConstructorExports;
// `Int8Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor$6('Int8', function (init) {
return function Int8Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
var createTypedArrayConstructor$5 = typedArrayConstructorExports;
// `Int16Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor$5('Int16', function (init) {
return function Int16Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
var createTypedArrayConstructor$4 = typedArrayConstructorExports;
// `Int32Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor$4('Int32', function (init) {
return function Int32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
var createTypedArrayConstructor$3 = typedArrayConstructorExports;
// `Uint8Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor$3('Uint8', function (init) {
return function Uint8Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
var createTypedArrayConstructor$2 = typedArrayConstructorExports;
// `Uint8ClampedArray` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor$2('Uint8', function (init) {
return function Uint8ClampedArray(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
}, true);
var createTypedArrayConstructor$1 = typedArrayConstructorExports;
// `Uint16Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor$1('Uint16', function (init) {
return function Uint16Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
var createTypedArrayConstructor = typedArrayConstructorExports;
// `Uint32Array` constructor
// https://tc39.es/ecma262/#sec-typedarray-objects
createTypedArrayConstructor('Uint32', function (init) {
return function Uint32Array(data, byteOffset, length) {
return init(this, data, byteOffset, length);
};
});
var ArrayBufferViewCore$t = arrayBufferViewCore;
var lengthOfArrayLike$2 = lengthOfArrayLike$s;
var toIntegerOrInfinity$1 = toIntegerOrInfinity$l;
var aTypedArray$r = ArrayBufferViewCore$t.aTypedArray;
var exportTypedArrayMethod$s = ArrayBufferViewCore$t.exportTypedArrayMethod;
// `%TypedArray%.prototype.at` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
exportTypedArrayMethod$s('at', function at(index) {
var O = aTypedArray$r(this);
var len = lengthOfArrayLike$2(O);
var relativeIndex = toIntegerOrInfinity$1(index);
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
return (k < 0 || k >= len) ? undefined : O[k];
});
var uncurryThis$k = functionUncurryThis;
var ArrayBufferViewCore$s = arrayBufferViewCore;
var $ArrayCopyWithin = arrayCopyWithin;
var u$ArrayCopyWithin = uncurryThis$k($ArrayCopyWithin);
var aTypedArray$q = ArrayBufferViewCore$s.aTypedArray;
var exportTypedArrayMethod$r = ArrayBufferViewCore$s.exportTypedArrayMethod;
// `%TypedArray%.prototype.copyWithin` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.copywithin
exportTypedArrayMethod$r('copyWithin', function copyWithin(target, start /* , end */) {
return u$ArrayCopyWithin(aTypedArray$q(this), target, start, arguments.length > 2 ? arguments[2] : undefined);
});
var ArrayBufferViewCore$r = arrayBufferViewCore;
var $every = arrayIteration.every;
var aTypedArray$p = ArrayBufferViewCore$r.aTypedArray;
var exportTypedArrayMethod$q = ArrayBufferViewCore$r.exportTypedArrayMethod;
// `%TypedArray%.prototype.every` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.every
exportTypedArrayMethod$q('every', function every(callbackfn /* , thisArg */) {
return $every(aTypedArray$p(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
});
var ArrayBufferViewCore$q = arrayBufferViewCore;
var $fill = arrayFill$1;
var toBigInt$1 = toBigInt$3;
var classof$2 = classof$n;
var call$6 = functionCall;
var uncurryThis$j = functionUncurryThis;
var fails$d = fails$1p;
var aTypedArray$o = ArrayBufferViewCore$q.aTypedArray;
var exportTypedArrayMethod$p = ArrayBufferViewCore$q.exportTypedArrayMethod;
var slice$1 = uncurryThis$j(''.slice);
// V8 ~ Chrome < 59, Safari < 14.1, FF < 55, Edge <=18
var CONVERSION_BUG = fails$d(function () {
var count = 0;
// eslint-disable-next-line es/no-typed-arrays -- safe
new Int8Array(2).fill({ valueOf: function () { return count++; } });
return count !== 1;
});
// `%TypedArray%.prototype.fill` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.fill
exportTypedArrayMethod$p('fill', function fill(value /* , start, end */) {
var length = arguments.length;
aTypedArray$o(this);
var actualValue = slice$1(classof$2(this), 0, 3) === 'Big' ? toBigInt$1(value) : +value;
return call$6($fill, this, actualValue, length > 1 ? arguments[1] : undefined, length > 2 ? arguments[2] : undefined);
}, CONVERSION_BUG);
var ArrayBufferViewCore$p = arrayBufferViewCore;
var speciesConstructor = speciesConstructor$6;
var aTypedArrayConstructor$1 = ArrayBufferViewCore$p.aTypedArrayConstructor;
var getTypedArrayConstructor$3 = ArrayBufferViewCore$p.getTypedArrayConstructor;
// a part of `TypedArraySpeciesCreate` abstract operation
// https://tc39.es/ecma262/#typedarray-species-create
var typedArraySpeciesConstructor$4 = function (originalArray) {
return aTypedArrayConstructor$1(speciesConstructor(originalArray, getTypedArrayConstructor$3(originalArray)));
};
var arrayFromConstructorAndList$1 = arrayFromConstructorAndList$4;
var typedArraySpeciesConstructor$3 = typedArraySpeciesConstructor$4;
var typedArrayFromSpeciesAndList = function (instance, list) {
return arrayFromConstructorAndList$1(typedArraySpeciesConstructor$3(instance), list);
};
var ArrayBufferViewCore$o = arrayBufferViewCore;
var $filter = arrayIteration.filter;
var fromSpeciesAndList = typedArrayFromSpeciesAndList;
var aTypedArray$n = ArrayBufferViewCore$o.aTypedArray;
var exportTypedArrayMethod$o = ArrayBufferViewCore$o.exportTypedArrayMethod;
// `%TypedArray%.prototype.filter` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.filter
exportTypedArrayMethod$o('filter', function filter(callbackfn /* , thisArg */) {
var list = $filter(aTypedArray$n(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
return fromSpeciesAndList(this, list);
});
var ArrayBufferViewCore$n = arrayBufferViewCore;
var $find = arrayIteration.find;
var aTypedArray$m = ArrayBufferViewCore$n.aTypedArray;
var exportTypedArrayMethod$n = ArrayBufferViewCore$n.exportTypedArrayMethod;
// `%TypedArray%.prototype.find` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.find
exportTypedArrayMethod$n('find', function find(predicate /* , thisArg */) {
return $find(aTypedArray$m(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
});
var ArrayBufferViewCore$m = arrayBufferViewCore;
var $findIndex = arrayIteration.findIndex;
var aTypedArray$l = ArrayBufferViewCore$m.aTypedArray;
var exportTypedArrayMethod$m = ArrayBufferViewCore$m.exportTypedArrayMethod;
// `%TypedArray%.prototype.findIndex` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findindex
exportTypedArrayMethod$m('findIndex', function findIndex(predicate /* , thisArg */) {
return $findIndex(aTypedArray$l(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
});
var ArrayBufferViewCore$l = arrayBufferViewCore;
var $findLast = arrayIterationFromLast.findLast;
var aTypedArray$k = ArrayBufferViewCore$l.aTypedArray;
var exportTypedArrayMethod$l = ArrayBufferViewCore$l.exportTypedArrayMethod;
// `%TypedArray%.prototype.findLast` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlast
exportTypedArrayMethod$l('findLast', function findLast(predicate /* , thisArg */) {
return $findLast(aTypedArray$k(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
});
var ArrayBufferViewCore$k = arrayBufferViewCore;
var $findLastIndex = arrayIterationFromLast.findLastIndex;
var aTypedArray$j = ArrayBufferViewCore$k.aTypedArray;
var exportTypedArrayMethod$k = ArrayBufferViewCore$k.exportTypedArrayMethod;
// `%TypedArray%.prototype.findLastIndex` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlastindex
exportTypedArrayMethod$k('findLastIndex', function findLastIndex(predicate /* , thisArg */) {
return $findLastIndex(aTypedArray$j(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
});
var ArrayBufferViewCore$j = arrayBufferViewCore;
var $forEach = arrayIteration.forEach;
var aTypedArray$i = ArrayBufferViewCore$j.aTypedArray;
var exportTypedArrayMethod$j = ArrayBufferViewCore$j.exportTypedArrayMethod;
// `%TypedArray%.prototype.forEach` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.foreach
exportTypedArrayMethod$j('forEach', function forEach(callbackfn /* , thisArg */) {
$forEach(aTypedArray$i(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
});
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$1 = typedArrayConstructorsRequireWrappers;
var exportTypedArrayStaticMethod$1 = arrayBufferViewCore.exportTypedArrayStaticMethod;
var typedArrayFrom = typedArrayFrom$2;
// `%TypedArray%.from` method
// https://tc39.es/ecma262/#sec-%typedarray%.from
exportTypedArrayStaticMethod$1('from', typedArrayFrom, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS$1);
var ArrayBufferViewCore$i = arrayBufferViewCore;
var $includes = arrayIncludes.includes;
var aTypedArray$h = ArrayBufferViewCore$i.aTypedArray;
var exportTypedArrayMethod$i = ArrayBufferViewCore$i.exportTypedArrayMethod;
// `%TypedArray%.prototype.includes` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.includes
exportTypedArrayMethod$i('includes', function includes(searchElement /* , fromIndex */) {
return $includes(aTypedArray$h(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
});
var ArrayBufferViewCore$h = arrayBufferViewCore;
var $indexOf = arrayIncludes.indexOf;
var aTypedArray$g = ArrayBufferViewCore$h.aTypedArray;
var exportTypedArrayMethod$h = ArrayBufferViewCore$h.exportTypedArrayMethod;
// `%TypedArray%.prototype.indexOf` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.indexof
exportTypedArrayMethod$h('indexOf', function indexOf(searchElement /* , fromIndex */) {
return $indexOf(aTypedArray$g(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
});
var global$l = global$11;
var fails$c = fails$1p;
var uncurryThis$i = functionUncurryThis;
var ArrayBufferViewCore$g = arrayBufferViewCore;
var ArrayIterators = es_array_iterator;
var wellKnownSymbol$3 = wellKnownSymbol$z;
var ITERATOR$3 = wellKnownSymbol$3('iterator');
var Uint8Array$1 = global$l.Uint8Array;
var arrayValues = uncurryThis$i(ArrayIterators.values);
var arrayKeys = uncurryThis$i(ArrayIterators.keys);
var arrayEntries = uncurryThis$i(ArrayIterators.entries);
var aTypedArray$f = ArrayBufferViewCore$g.aTypedArray;
var exportTypedArrayMethod$g = ArrayBufferViewCore$g.exportTypedArrayMethod;
var TypedArrayPrototype = Uint8Array$1 && Uint8Array$1.prototype;
var GENERIC = !fails$c(function () {
TypedArrayPrototype[ITERATOR$3].call([1]);
});
var ITERATOR_IS_VALUES = !!TypedArrayPrototype
&& TypedArrayPrototype.values
&& TypedArrayPrototype[ITERATOR$3] === TypedArrayPrototype.values
&& TypedArrayPrototype.values.name === 'values';
var typedArrayValues = function values() {
return arrayValues(aTypedArray$f(this));
};
// `%TypedArray%.prototype.entries` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.entries
exportTypedArrayMethod$g('entries', function entries() {
return arrayEntries(aTypedArray$f(this));
}, GENERIC);
// `%TypedArray%.prototype.keys` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.keys
exportTypedArrayMethod$g('keys', function keys() {
return arrayKeys(aTypedArray$f(this));
}, GENERIC);
// `%TypedArray%.prototype.values` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.values
exportTypedArrayMethod$g('values', typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: 'values' });
// `%TypedArray%.prototype[@@iterator]` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype-@@iterator
exportTypedArrayMethod$g(ITERATOR$3, typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: 'values' });
var ArrayBufferViewCore$f = arrayBufferViewCore;
var uncurryThis$h = functionUncurryThis;
var aTypedArray$e = ArrayBufferViewCore$f.aTypedArray;
var exportTypedArrayMethod$f = ArrayBufferViewCore$f.exportTypedArrayMethod;
var $join = uncurryThis$h([].join);
// `%TypedArray%.prototype.join` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.join
exportTypedArrayMethod$f('join', function join(separator) {
return $join(aTypedArray$e(this), separator);
});
var ArrayBufferViewCore$e = arrayBufferViewCore;
var apply$2 = functionApply$1;
var $lastIndexOf = arrayLastIndexOf;
var aTypedArray$d = ArrayBufferViewCore$e.aTypedArray;
var exportTypedArrayMethod$e = ArrayBufferViewCore$e.exportTypedArrayMethod;
// `%TypedArray%.prototype.lastIndexOf` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.lastindexof
exportTypedArrayMethod$e('lastIndexOf', function lastIndexOf(searchElement /* , fromIndex */) {
var length = arguments.length;
return apply$2($lastIndexOf, aTypedArray$d(this), length > 1 ? [searchElement, arguments[1]] : [searchElement]);
});
var ArrayBufferViewCore$d = arrayBufferViewCore;
var $map = arrayIteration.map;
var typedArraySpeciesConstructor$2 = typedArraySpeciesConstructor$4;
var aTypedArray$c = ArrayBufferViewCore$d.aTypedArray;
var exportTypedArrayMethod$d = ArrayBufferViewCore$d.exportTypedArrayMethod;
// `%TypedArray%.prototype.map` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.map
exportTypedArrayMethod$d('map', function map(mapfn /* , thisArg */) {
return $map(aTypedArray$c(this), mapfn, arguments.length > 1 ? arguments[1] : undefined, function (O, length) {
return new (typedArraySpeciesConstructor$2(O))(length);
});
});
var ArrayBufferViewCore$c = arrayBufferViewCore;
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = typedArrayConstructorsRequireWrappers;
var aTypedArrayConstructor = ArrayBufferViewCore$c.aTypedArrayConstructor;
var exportTypedArrayStaticMethod = ArrayBufferViewCore$c.exportTypedArrayStaticMethod;
// `%TypedArray%.of` method
// https://tc39.es/ecma262/#sec-%typedarray%.of
exportTypedArrayStaticMethod('of', function of(/* ...items */) {
var index = 0;
var length = arguments.length;
var result = new (aTypedArrayConstructor(this))(length);
while (length > index) result[index] = arguments[index++];
return result;
}, TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS);
var ArrayBufferViewCore$b = arrayBufferViewCore;
var $reduce = arrayReduce.left;
var aTypedArray$b = ArrayBufferViewCore$b.aTypedArray;
var exportTypedArrayMethod$c = ArrayBufferViewCore$b.exportTypedArrayMethod;
// `%TypedArray%.prototype.reduce` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduce
exportTypedArrayMethod$c('reduce', function reduce(callbackfn /* , initialValue */) {
var length = arguments.length;
return $reduce(aTypedArray$b(this), callbackfn, length, length > 1 ? arguments[1] : undefined);
});
var ArrayBufferViewCore$a = arrayBufferViewCore;
var $reduceRight = arrayReduce.right;
var aTypedArray$a = ArrayBufferViewCore$a.aTypedArray;
var exportTypedArrayMethod$b = ArrayBufferViewCore$a.exportTypedArrayMethod;
// `%TypedArray%.prototype.reduceRight` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.reduceright
exportTypedArrayMethod$b('reduceRight', function reduceRight(callbackfn /* , initialValue */) {
var length = arguments.length;
return $reduceRight(aTypedArray$a(this), callbackfn, length, length > 1 ? arguments[1] : undefined);
});
var ArrayBufferViewCore$9 = arrayBufferViewCore;
var aTypedArray$9 = ArrayBufferViewCore$9.aTypedArray;
var exportTypedArrayMethod$a = ArrayBufferViewCore$9.exportTypedArrayMethod;
var floor$2 = Math.floor;
// `%TypedArray%.prototype.reverse` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.reverse
exportTypedArrayMethod$a('reverse', function reverse() {
var that = this;
var length = aTypedArray$9(that).length;
var middle = floor$2(length / 2);
var index = 0;
var value;
while (index < middle) {
value = that[index];
that[index++] = that[--length];
that[length] = value;
} return that;
});
var global$k = global$11;
var call$5 = functionCall;
var ArrayBufferViewCore$8 = arrayBufferViewCore;
var lengthOfArrayLike$1 = lengthOfArrayLike$s;
var toOffset = toOffset$2;
var toIndexedObject = toObject$u;
var fails$b = fails$1p;
var RangeError$1 = global$k.RangeError;
var Int8Array$2 = global$k.Int8Array;
var Int8ArrayPrototype = Int8Array$2 && Int8Array$2.prototype;
var $set = Int8ArrayPrototype && Int8ArrayPrototype.set;
var aTypedArray$8 = ArrayBufferViewCore$8.aTypedArray;
var exportTypedArrayMethod$9 = ArrayBufferViewCore$8.exportTypedArrayMethod;
var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails$b(function () {
// eslint-disable-next-line es/no-typed-arrays -- required for testing
var array = new Uint8ClampedArray(2);
call$5($set, array, { length: 1, 0: 3 }, 1);
return array[1] !== 3;
});
// https://bugs.chromium.org/p/v8/issues/detail?id=11294 and other
var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore$8.NATIVE_ARRAY_BUFFER_VIEWS && fails$b(function () {
var array = new Int8Array$2(2);
array.set(1);
array.set('2', 1);
return array[0] !== 0 || array[1] !== 2;
});
// `%TypedArray%.prototype.set` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.set
exportTypedArrayMethod$9('set', function set(arrayLike /* , offset */) {
aTypedArray$8(this);
var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
var src = toIndexedObject(arrayLike);
if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS) return call$5($set, this, src, offset);
var length = this.length;
var len = lengthOfArrayLike$1(src);
var index = 0;
if (len + offset > length) throw new RangeError$1('Wrong length');
while (index < len) this[offset + index] = src[index++];
}, !WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG);
var ArrayBufferViewCore$7 = arrayBufferViewCore;
var typedArraySpeciesConstructor$1 = typedArraySpeciesConstructor$4;
var fails$a = fails$1p;
var arraySlice$3 = arraySlice$a;
var aTypedArray$7 = ArrayBufferViewCore$7.aTypedArray;
var exportTypedArrayMethod$8 = ArrayBufferViewCore$7.exportTypedArrayMethod;
var FORCED$2 = fails$a(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$8('slice', function slice(start, end) {
var list = arraySlice$3(aTypedArray$7(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$2);
var ArrayBufferViewCore$6 = arrayBufferViewCore;
var $some = arrayIteration.some;
var aTypedArray$6 = ArrayBufferViewCore$6.aTypedArray;
var exportTypedArrayMethod$7 = ArrayBufferViewCore$6.exportTypedArrayMethod;
// `%TypedArray%.prototype.some` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.some
exportTypedArrayMethod$7('some', function some(callbackfn /* , thisArg */) {
return $some(aTypedArray$6(this), callbackfn, arguments.length > 1 ? arguments[1] : undefined);
});
var global$j = global$11;
var uncurryThis$g = functionUncurryThisClause;
var fails$9 = fails$1p;
var aCallable$2 = aCallable$n;
var internalSort = arraySort$1;
var ArrayBufferViewCore$5 = arrayBufferViewCore;
var FF = engineFfVersion;
var IE_OR_EDGE = engineIsIeOrEdge;
var V8 = engineV8Version;
var WEBKIT$1 = engineWebkitVersion;
var aTypedArray$5 = ArrayBufferViewCore$5.aTypedArray;
var exportTypedArrayMethod$6 = ArrayBufferViewCore$5.exportTypedArrayMethod;
var Uint16Array = global$j.Uint16Array;
var nativeSort = Uint16Array && uncurryThis$g(Uint16Array.prototype.sort);
// WebKit
var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort && !(fails$9(function () {
nativeSort(new Uint16Array(2), null);
}) && fails$9(function () {
nativeSort(new Uint16Array(2), {});
}));
var STABLE_SORT = !!nativeSort && !fails$9(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$1) return WEBKIT$1 < 602;
var array = new Uint16Array(516);
var expected = Array(516);
var index, mod;
for (index = 0; index < 516; index++) {
mod = index % 4;
array[index] = 515 - index;
expected[index] = index - 2 * mod + 3;
}
nativeSort(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$6('sort', function sort(comparefn) {
if (comparefn !== undefined) aCallable$2(comparefn);
if (STABLE_SORT) return nativeSort(this, comparefn);
return internalSort(aTypedArray$5(this), getSortCompare(comparefn));
}, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS);
var ArrayBufferViewCore$4 = arrayBufferViewCore;
var toLength = toLength$d;
var toAbsoluteIndex = toAbsoluteIndex$9;
var typedArraySpeciesConstructor = typedArraySpeciesConstructor$4;
var aTypedArray$4 = ArrayBufferViewCore$4.aTypedArray;
var exportTypedArrayMethod$5 = ArrayBufferViewCore$4.exportTypedArrayMethod;
// `%TypedArray%.prototype.subarray` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.subarray
exportTypedArrayMethod$5('subarray', function subarray(begin, end) {
var O = aTypedArray$4(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$i = global$11;
var apply$1 = functionApply$1;
var ArrayBufferViewCore$3 = arrayBufferViewCore;
var fails$8 = fails$1p;
var arraySlice$2 = arraySlice$a;
var Int8Array$1 = global$i.Int8Array;
var aTypedArray$3 = ArrayBufferViewCore$3.aTypedArray;
var exportTypedArrayMethod$4 = ArrayBufferViewCore$3.exportTypedArrayMethod;
var $toLocaleString = [].toLocaleString;
// iOS Safari 6.x fails here
var TO_LOCALE_STRING_BUG = !!Int8Array$1 && fails$8(function () {
$toLocaleString.call(new Int8Array$1(1));
});
var FORCED$1 = fails$8(function () {
return [1, 2].toLocaleString() !== new Int8Array$1([1, 2]).toLocaleString();
}) || !fails$8(function () {
Int8Array$1.prototype.toLocaleString.call([1, 2]);
});
// `%TypedArray%.prototype.toLocaleString` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring
exportTypedArrayMethod$4('toLocaleString', function toLocaleString() {
return apply$1(
$toLocaleString,
TO_LOCALE_STRING_BUG ? arraySlice$2(aTypedArray$3(this)) : aTypedArray$3(this),
arraySlice$2(arguments)
);
}, FORCED$1);
var arrayToReversed = arrayToReversed$2;
var ArrayBufferViewCore$2 = arrayBufferViewCore;
var aTypedArray$2 = ArrayBufferViewCore$2.aTypedArray;
var exportTypedArrayMethod$3 = ArrayBufferViewCore$2.exportTypedArrayMethod;
var getTypedArrayConstructor$2 = ArrayBufferViewCore$2.getTypedArrayConstructor;
// `%TypedArray%.prototype.toReversed` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.toreversed
exportTypedArrayMethod$3('toReversed', function toReversed() {
return arrayToReversed(aTypedArray$2(this), getTypedArrayConstructor$2(this));
});
var ArrayBufferViewCore$1 = arrayBufferViewCore;
var uncurryThis$f = functionUncurryThis;
var aCallable$1 = aCallable$n;
var arrayFromConstructorAndList = arrayFromConstructorAndList$4;
var aTypedArray$1 = ArrayBufferViewCore$1.aTypedArray;
var getTypedArrayConstructor$1 = ArrayBufferViewCore$1.getTypedArrayConstructor;
var exportTypedArrayMethod$2 = ArrayBufferViewCore$1.exportTypedArrayMethod;
var sort = uncurryThis$f(ArrayBufferViewCore$1.TypedArrayPrototype.sort);
// `%TypedArray%.prototype.toSorted` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tosorted
exportTypedArrayMethod$2('toSorted', function toSorted(compareFn) {
if (compareFn !== undefined) aCallable$1(compareFn);
var O = aTypedArray$1(this);
var A = arrayFromConstructorAndList(getTypedArrayConstructor$1(O), O);
return sort(A, compareFn);
});
var exportTypedArrayMethod$1 = arrayBufferViewCore.exportTypedArrayMethod;
var fails$7 = fails$1p;
var global$h = global$11;
var uncurryThis$e = functionUncurryThis;
var Uint8Array = global$h.Uint8Array;
var Uint8ArrayPrototype = Uint8Array && Uint8Array.prototype || {};
var arrayToString = [].toString;
var join$3 = uncurryThis$e([].join);
if (fails$7(function () { arrayToString.call({}); })) {
arrayToString = function toString() {
return join$3(this);
};
}
var IS_NOT_ARRAY_METHOD = Uint8ArrayPrototype.toString !== arrayToString;
// `%TypedArray%.prototype.toString` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tostring
exportTypedArrayMethod$1('toString', arrayToString, IS_NOT_ARRAY_METHOD);
var arrayWith = arrayWith$2;
var ArrayBufferViewCore = arrayBufferViewCore;
var isBigIntArray = isBigIntArray$2;
var toIntegerOrInfinity = toIntegerOrInfinity$l;
var toBigInt = toBigInt$3;
var aTypedArray = ArrayBufferViewCore.aTypedArray;
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
var PROPER_ORDER = !!function () {
try {
// eslint-disable-next-line no-throw-literal, es/no-typed-arrays, es/no-array-prototype-with -- required for testing
new Int8Array(1)['with'](2, { valueOf: function () { throw 8; } });
} catch (error) {
// some early implementations, like WebKit, does not follow the final semantic
// https://github.com/tc39/proposal-change-array-by-copy/pull/86
return error === 8;
}
}();
// `%TypedArray%.prototype.with` method
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.with
exportTypedArrayMethod('with', { 'with': function (index, value) {
var O = aTypedArray(this);
var relativeIndex = toIntegerOrInfinity(index);
var actualValue = isBigIntArray(O) ? toBigInt(value) : +value;
return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue);
} }['with'], !PROPER_ORDER);
var $$f = _export;
var uncurryThis$d = functionUncurryThis;
var toString$5 = toString$C;
var fromCharCode$2 = String.fromCharCode;
var charAt$4 = uncurryThis$d(''.charAt);
var exec$3 = uncurryThis$d(/./.exec);
var stringSlice$2 = uncurryThis$d(''.slice);
var hex2 = /^[\da-f]{2}$/i;
var hex4 = /^[\da-f]{4}$/i;
// `unescape` method
// https://tc39.es/ecma262/#sec-unescape-string
$$f({ global: true }, {
unescape: function unescape(string) {
var str = toString$5(string);
var result = '';
var length = str.length;
var index = 0;
var chr, part;
while (index < length) {
chr = charAt$4(str, index++);
if (chr === '%') {
if (charAt$4(str, index) === 'u') {
part = stringSlice$2(str, index + 1, index + 5);
if (exec$3(hex4, part)) {
result += fromCharCode$2(parseInt(part, 16));
index += 5;
continue;
}
} else {
part = stringSlice$2(str, index, index + 2);
if (exec$3(hex2, part)) {
result += fromCharCode$2(parseInt(part, 16));
index += 2;
continue;
}
}
}
result += chr;
} return result;
}
});
var uncurryThis$c = functionUncurryThis;
var defineBuiltIns$2 = defineBuiltIns$5;
var getWeakData = internalMetadataExports.getWeakData;
var anInstance$4 = anInstance$a;
var anObject$3 = anObject$D;
var isNullOrUndefined$1 = isNullOrUndefined$e;
var isObject$3 = isObject$A;
var iterate$1 = iterate$c;
var ArrayIterationModule = arrayIteration;
var hasOwn$5 = hasOwnProperty_1;
var InternalStateModule$3 = internalState;
var setInternalState$3 = InternalStateModule$3.set;
var internalStateGetterFor = InternalStateModule$3.getterFor;
var find$1 = ArrayIterationModule.find;
var findIndex = ArrayIterationModule.findIndex;
var splice$1 = uncurryThis$c([].splice);
var id = 0;
// fallback for uncaught frozen keys
var uncaughtFrozenStore = function (state) {
return state.frozen || (state.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$2 = {
getConstructor: function (wrapper, CONSTRUCTOR_NAME, IS_MAP, ADDER) {
var Constructor = wrapper(function (that, iterable) {
anInstance$4(that, Prototype);
setInternalState$3(that, {
type: CONSTRUCTOR_NAME,
id: id++,
frozen: undefined
});
if (!isNullOrUndefined$1(iterable)) 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$3(key), true);
if (data === true) uncaughtFrozenStore(state).set(key, value);
else data[state.id] = value;
return that;
};
defineBuiltIns$2(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$3(key)) return false;
var data = getWeakData(key);
if (data === true) return uncaughtFrozenStore(state)['delete'](key);
return data && hasOwn$5(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$3(key)) return false;
var data = getWeakData(key);
if (data === true) return uncaughtFrozenStore(state).has(key);
return data && hasOwn$5(data, state.id);
}
});
defineBuiltIns$2(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$3(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 FREEZING = freezing;
var global$g = global$11;
var uncurryThis$b = functionUncurryThis;
var defineBuiltIns$1 = defineBuiltIns$5;
var InternalMetadataModule = internalMetadataExports;
var collection$1 = collection$4;
var collectionWeak$1 = collectionWeak$2;
var isObject$2 = isObject$A;
var enforceInternalState = internalState.enforce;
var fails$6 = fails$1p;
var NATIVE_WEAK_MAP = weakMapBasicDetection;
var $Object = Object;
// eslint-disable-next-line es/no-array-isarray -- safe
var isArray$1 = Array.isArray;
// eslint-disable-next-line es/no-object-isextensible -- safe
var isExtensible = $Object.isExtensible;
// eslint-disable-next-line es/no-object-isfrozen -- safe
var isFrozen = $Object.isFrozen;
// eslint-disable-next-line es/no-object-issealed -- safe
var isSealed = $Object.isSealed;
// eslint-disable-next-line es/no-object-freeze -- safe
var freeze = $Object.freeze;
// eslint-disable-next-line es/no-object-seal -- safe
var seal = $Object.seal;
var IS_IE11 = !global$g.ActiveXObject && 'ActiveXObject' in global$g;
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$1);
var WeakMapPrototype = $WeakMap.prototype;
var nativeSet = uncurryThis$b(WeakMapPrototype.set);
// Chakra Edge bug: adding frozen arrays to WeakMap unfreeze them
var hasMSEdgeFreezingBug = function () {
return FREEZING && fails$6(function () {
var frozenArray = freeze([]);
nativeSet(new $WeakMap(), frozenArray, 1);
return !isFrozen(frozenArray);
});
};
// 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) if (IS_IE11) {
InternalWeakMap = collectionWeak$1.getConstructor(wrapper, 'WeakMap', true);
InternalMetadataModule.enable();
var nativeDelete = uncurryThis$b(WeakMapPrototype['delete']);
var nativeHas = uncurryThis$b(WeakMapPrototype.has);
var nativeGet = uncurryThis$b(WeakMapPrototype.get);
defineBuiltIns$1(WeakMapPrototype, {
'delete': function (key) {
if (isObject$2(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$2(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$2(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$2(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;
}
});
// Chakra Edge frozen keys fix
} else if (hasMSEdgeFreezingBug()) {
defineBuiltIns$1(WeakMapPrototype, {
set: function set(key, value) {
var arrayIntegrityLevel;
if (isArray$1(key)) {
if (isFrozen(key)) arrayIntegrityLevel = freeze;
else if (isSealed(key)) arrayIntegrityLevel = seal;
}
nativeSet(this, key, value);
if (arrayIntegrityLevel) arrayIntegrityLevel(key);
return this;
}
});
}
var collection = collection$4;
var collectionWeak = collectionWeak$2;
// `WeakSet` constructor
// https://tc39.es/ecma262/#sec-weakset-constructor
collection('WeakSet', function (init) {
return function WeakSet() { return init(this, arguments.length ? arguments[0] : undefined); };
}, collectionWeak);
var commonAlphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
var base64Alphabet = commonAlphabet + '+/';
var base64UrlAlphabet = commonAlphabet + '-_';
var inverse = function (characters) {
// TODO: use `Object.create(null)` in `core-js@4`
var result = {};
var index = 0;
for (; index < 64; index++) result[characters.charAt(index)] = index;
return result;
};
var base64Map = {
i2c: base64Alphabet,
c2i: inverse(base64Alphabet),
i2cUrl: base64UrlAlphabet,
c2iUrl: inverse(base64UrlAlphabet)
};
var $$e = _export;
var global$f = global$11;
var getBuiltIn$6 = getBuiltIn$p;
var uncurryThis$a = functionUncurryThis;
var call$4 = functionCall;
var fails$5 = fails$1p;
var toString$4 = toString$C;
var validateArgumentsLength$9 = validateArgumentsLength$b;
var c2i = base64Map.c2i;
var disallowed = /[^\d+/a-z]/i;
var whitespaces = /[\t\n\f\r ]+/g;
var finalEq = /[=]{1,2}$/;
var $atob = getBuiltIn$6('atob');
var fromCharCode$1 = String.fromCharCode;
var charAt$3 = uncurryThis$a(''.charAt);
var replace$4 = uncurryThis$a(''.replace);
var exec$2 = uncurryThis$a(disallowed.exec);
var BASIC$1 = !!$atob && !fails$5(function () {
return $atob('aGk=') !== 'hi';
});
var NO_SPACES_IGNORE = BASIC$1 && fails$5(function () {
return $atob(' ') !== '';
});
var NO_ENCODING_CHECK = BASIC$1 && !fails$5(function () {
$atob('a');
});
var NO_ARG_RECEIVING_CHECK$1 = BASIC$1 && !fails$5(function () {
$atob();
});
var WRONG_ARITY$1 = BASIC$1 && $atob.length !== 1;
var FORCED = !BASIC$1 || NO_SPACES_IGNORE || NO_ENCODING_CHECK || NO_ARG_RECEIVING_CHECK$1 || WRONG_ARITY$1;
// `atob` method
// https://html.spec.whatwg.org/multipage/webappapis.html#dom-atob
$$e({ global: true, bind: true, enumerable: true, forced: FORCED }, {
atob: function atob(data) {
validateArgumentsLength$9(arguments.length, 1);
// `webpack` dev server bug on IE global methods - use call(fn, global, ...)
if (BASIC$1 && !NO_SPACES_IGNORE && !NO_ENCODING_CHECK) return call$4($atob, global$f, data);
var string = replace$4(toString$4(data), whitespaces, '');
var output = '';
var position = 0;
var bc = 0;
var length, chr, bs;
if (string.length % 4 === 0) {
string = replace$4(string, finalEq, '');
}
length = string.length;
if (length % 4 === 1 || exec$2(disallowed, string)) {
throw new (getBuiltIn$6('DOMException'))('The string is not correctly encoded', 'InvalidCharacterError');
}
while (position < length) {
chr = charAt$3(string, position++);
bs = bc % 4 ? bs * 64 + c2i[chr] : c2i[chr];
if (bc++ % 4) output += fromCharCode$1(255 & bs >> (-2 * bc & 6));
} return output;
}
});
var $$d = _export;
var global$e = global$11;
var getBuiltIn$5 = getBuiltIn$p;
var uncurryThis$9 = functionUncurryThis;
var call$3 = functionCall;
var fails$4 = fails$1p;
var toString$3 = toString$C;
var validateArgumentsLength$8 = validateArgumentsLength$b;
var i2c = base64Map.i2c;
var $btoa = getBuiltIn$5('btoa');
var charAt$2 = uncurryThis$9(''.charAt);
var charCodeAt$1 = uncurryThis$9(''.charCodeAt);
var BASIC = !!$btoa && !fails$4(function () {
return $btoa('hi') !== 'aGk=';
});
var NO_ARG_RECEIVING_CHECK = BASIC && !fails$4(function () {
$btoa();
});
var WRONG_ARG_CONVERSION = BASIC && fails$4(function () {
return $btoa(null) !== 'bnVsbA==';
});
var WRONG_ARITY = BASIC && $btoa.length !== 1;
// `btoa` method
// https://html.spec.whatwg.org/multipage/webappapis.html#dom-btoa
$$d({ global: true, bind: true, enumerable: true, forced: !BASIC || NO_ARG_RECEIVING_CHECK || WRONG_ARG_CONVERSION || WRONG_ARITY }, {
btoa: function btoa(data) {
validateArgumentsLength$8(arguments.length, 1);
// `webpack` dev server bug on IE global methods - use call(fn, global, ...)
if (BASIC) return call$3($btoa, global$e, toString$3(data));
var string = toString$3(data);
var output = '';
var position = 0;
var map = i2c;
var block, charCode;
while (charAt$2(string, position) || (map = '=', position % 1)) {
charCode = charCodeAt$1(string, position += 3 / 4);
if (charCode > 0xFF) {
throw new (getBuiltIn$5('DOMException'))('The string contains characters outside of the Latin1 range', 'InvalidCharacterError');
}
block = block << 8 | charCode;
output += charAt$2(map, 63 & block >> 8 - position % 1 * 8);
} return output;
}
});
// 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 global$d = global$11;
var DOMIterables$1 = domIterables;
var DOMTokenListPrototype$1 = domTokenListPrototype;
var forEach$3 = arrayForEach;
var createNonEnumerableProperty$2 = createNonEnumerableProperty$f;
var handlePrototype$1 = function (CollectionPrototype) {
// some Chrome versions have non-configurable methods on DOMTokenList
if (CollectionPrototype && CollectionPrototype.forEach !== forEach$3) try {
createNonEnumerableProperty$2(CollectionPrototype, 'forEach', forEach$3);
} catch (error) {
CollectionPrototype.forEach = forEach$3;
}
};
for (var COLLECTION_NAME$1 in DOMIterables$1) {
if (DOMIterables$1[COLLECTION_NAME$1]) {
handlePrototype$1(global$d[COLLECTION_NAME$1] && global$d[COLLECTION_NAME$1].prototype);
}
}
handlePrototype$1(DOMTokenListPrototype$1);
var global$c = global$11;
var DOMIterables = domIterables;
var DOMTokenListPrototype = domTokenListPrototype;
var ArrayIteratorMethods = es_array_iterator;
var createNonEnumerableProperty$1 = createNonEnumerableProperty$f;
var setToStringTag$3 = setToStringTag$e;
var wellKnownSymbol$2 = wellKnownSymbol$z;
var ITERATOR$2 = wellKnownSymbol$2('iterator');
var ArrayValues = ArrayIteratorMethods.values;
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
if (CollectionPrototype) {
// some Chrome versions have non-configurable methods on DOMTokenList
if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
createNonEnumerableProperty$1(CollectionPrototype, ITERATOR$2, ArrayValues);
} catch (error) {
CollectionPrototype[ITERATOR$2] = ArrayValues;
}
setToStringTag$3(CollectionPrototype, COLLECTION_NAME, true);
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$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
} catch (error) {
CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
}
}
}
};
for (var COLLECTION_NAME in DOMIterables) {
handlePrototype(global$c[COLLECTION_NAME] && global$c[COLLECTION_NAME].prototype, COLLECTION_NAME);
}
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
var domExceptionConstants = {
IndexSizeError: { s: 'INDEX_SIZE_ERR', c: 1, m: 1 },
DOMStringSizeError: { s: 'DOMSTRING_SIZE_ERR', c: 2, m: 0 },
HierarchyRequestError: { s: 'HIERARCHY_REQUEST_ERR', c: 3, m: 1 },
WrongDocumentError: { s: 'WRONG_DOCUMENT_ERR', c: 4, m: 1 },
InvalidCharacterError: { s: 'INVALID_CHARACTER_ERR', c: 5, m: 1 },
NoDataAllowedError: { s: 'NO_DATA_ALLOWED_ERR', c: 6, m: 0 },
NoModificationAllowedError: { s: 'NO_MODIFICATION_ALLOWED_ERR', c: 7, m: 1 },
NotFoundError: { s: 'NOT_FOUND_ERR', c: 8, m: 1 },
NotSupportedError: { s: 'NOT_SUPPORTED_ERR', c: 9, m: 1 },
InUseAttributeError: { s: 'INUSE_ATTRIBUTE_ERR', c: 10, m: 1 },
InvalidStateError: { s: 'INVALID_STATE_ERR', c: 11, m: 1 },
SyntaxError: { s: 'SYNTAX_ERR', c: 12, m: 1 },
InvalidModificationError: { s: 'INVALID_MODIFICATION_ERR', c: 13, m: 1 },
NamespaceError: { s: 'NAMESPACE_ERR', c: 14, m: 1 },
InvalidAccessError: { s: 'INVALID_ACCESS_ERR', c: 15, m: 1 },
ValidationError: { s: 'VALIDATION_ERR', c: 16, m: 0 },
TypeMismatchError: { s: 'TYPE_MISMATCH_ERR', c: 17, m: 1 },
SecurityError: { s: 'SECURITY_ERR', c: 18, m: 1 },
NetworkError: { s: 'NETWORK_ERR', c: 19, m: 1 },
AbortError: { s: 'ABORT_ERR', c: 20, m: 1 },
URLMismatchError: { s: 'URL_MISMATCH_ERR', c: 21, m: 1 },
QuotaExceededError: { s: 'QUOTA_EXCEEDED_ERR', c: 22, m: 1 },
TimeoutError: { s: 'TIMEOUT_ERR', c: 23, m: 1 },
InvalidNodeTypeError: { s: 'INVALID_NODE_TYPE_ERR', c: 24, m: 1 },
DataCloneError: { s: 'DATA_CLONE_ERR', c: 25, m: 1 }
};
var $$c = _export;
var tryNodeRequire = tryNodeRequire$2;
var getBuiltIn$4 = getBuiltIn$p;
var fails$3 = fails$1p;
var create$1 = objectCreate;
var createPropertyDescriptor$2 = createPropertyDescriptor$c;
var defineProperty$3 = objectDefineProperty.f;
var defineBuiltIn$4 = defineBuiltIn$o;
var defineBuiltInAccessor$4 = defineBuiltInAccessor$i;
var hasOwn$4 = hasOwnProperty_1;
var anInstance$3 = anInstance$a;
var anObject$2 = anObject$D;
var errorToString = errorToString$2;
var normalizeStringArgument$1 = normalizeStringArgument$5;
var DOMExceptionConstants$1 = domExceptionConstants;
var clearErrorStack$1 = errorStackClear;
var InternalStateModule$2 = internalState;
var DESCRIPTORS$6 = descriptors;
var DOM_EXCEPTION$2 = 'DOMException';
var DATA_CLONE_ERR = 'DATA_CLONE_ERR';
var Error$3 = getBuiltIn$4('Error');
// NodeJS < 17.0 does not expose `DOMException` to global
var NativeDOMException$1 = getBuiltIn$4(DOM_EXCEPTION$2) || (function () {
try {
// NodeJS < 15.0 does not expose `MessageChannel` to global
var MessageChannel = getBuiltIn$4('MessageChannel') || tryNodeRequire('worker_threads').MessageChannel;
// eslint-disable-next-line es/no-weak-map, unicorn/require-post-message-target-origin -- safe
new MessageChannel().port1.postMessage(new WeakMap());
} catch (error) {
if (error.name === DATA_CLONE_ERR && error.code === 25) return error.constructor;
}
})();
var NativeDOMExceptionPrototype = NativeDOMException$1 && NativeDOMException$1.prototype;
var ErrorPrototype = Error$3.prototype;
var setInternalState$2 = InternalStateModule$2.set;
var getInternalState = InternalStateModule$2.getterFor(DOM_EXCEPTION$2);
var HAS_STACK = 'stack' in new Error$3(DOM_EXCEPTION$2);
var codeFor = function (name) {
return hasOwn$4(DOMExceptionConstants$1, name) && DOMExceptionConstants$1[name].m ? DOMExceptionConstants$1[name].c : 0;
};
var $DOMException$1 = function DOMException() {
anInstance$3(this, DOMExceptionPrototype$1);
var argumentsLength = arguments.length;
var message = normalizeStringArgument$1(argumentsLength < 1 ? undefined : arguments[0]);
var name = normalizeStringArgument$1(argumentsLength < 2 ? undefined : arguments[1], 'Error');
var code = codeFor(name);
setInternalState$2(this, {
type: DOM_EXCEPTION$2,
name: name,
message: message,
code: code
});
if (!DESCRIPTORS$6) {
this.name = name;
this.message = message;
this.code = code;
}
if (HAS_STACK) {
var error = new Error$3(message);
error.name = DOM_EXCEPTION$2;
defineProperty$3(this, 'stack', createPropertyDescriptor$2(1, clearErrorStack$1(error.stack, 1)));
}
};
var DOMExceptionPrototype$1 = $DOMException$1.prototype = create$1(ErrorPrototype);
var createGetterDescriptor = function (get) {
return { enumerable: true, configurable: true, get: get };
};
var getterFor = function (key) {
return createGetterDescriptor(function () {
return getInternalState(this)[key];
});
};
if (DESCRIPTORS$6) {
// `DOMException.prototype.code` getter
defineBuiltInAccessor$4(DOMExceptionPrototype$1, 'code', getterFor('code'));
// `DOMException.prototype.message` getter
defineBuiltInAccessor$4(DOMExceptionPrototype$1, 'message', getterFor('message'));
// `DOMException.prototype.name` getter
defineBuiltInAccessor$4(DOMExceptionPrototype$1, 'name', getterFor('name'));
}
defineProperty$3(DOMExceptionPrototype$1, 'constructor', createPropertyDescriptor$2(1, $DOMException$1));
// FF36- DOMException is a function, but can't be constructed
var INCORRECT_CONSTRUCTOR = fails$3(function () {
return !(new NativeDOMException$1() instanceof Error$3);
});
// Safari 10.1 / Chrome 32- / IE8- DOMException.prototype.toString bugs
var INCORRECT_TO_STRING = INCORRECT_CONSTRUCTOR || fails$3(function () {
return ErrorPrototype.toString !== errorToString || String(new NativeDOMException$1(1, 2)) !== '2: 1';
});
// Deno 1.6.3- DOMException.prototype.code just missed
var INCORRECT_CODE = INCORRECT_CONSTRUCTOR || fails$3(function () {
return new NativeDOMException$1(1, 'DataCloneError').code !== 25;
});
// Deno 1.6.3- DOMException constants just missed
INCORRECT_CONSTRUCTOR
|| NativeDOMException$1[DATA_CLONE_ERR] !== 25
|| NativeDOMExceptionPrototype[DATA_CLONE_ERR] !== 25;
var FORCED_CONSTRUCTOR$1 = INCORRECT_CONSTRUCTOR;
// `DOMException` constructor
// https://webidl.spec.whatwg.org/#idl-DOMException
$$c({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR$1 }, {
DOMException: FORCED_CONSTRUCTOR$1 ? $DOMException$1 : NativeDOMException$1
});
var PolyfilledDOMException$1 = getBuiltIn$4(DOM_EXCEPTION$2);
var PolyfilledDOMExceptionPrototype$1 = PolyfilledDOMException$1.prototype;
if (INCORRECT_TO_STRING && (NativeDOMException$1 === PolyfilledDOMException$1)) {
defineBuiltIn$4(PolyfilledDOMExceptionPrototype$1, 'toString', errorToString);
}
if (INCORRECT_CODE && DESCRIPTORS$6 && NativeDOMException$1 === PolyfilledDOMException$1) {
defineBuiltInAccessor$4(PolyfilledDOMExceptionPrototype$1, 'code', createGetterDescriptor(function () {
return codeFor(anObject$2(this).name);
}));
}
// `DOMException` constants
for (var key$1 in DOMExceptionConstants$1) if (hasOwn$4(DOMExceptionConstants$1, key$1)) {
var constant$1 = DOMExceptionConstants$1[key$1];
var constantName$1 = constant$1.s;
var descriptor$2 = createPropertyDescriptor$2(6, constant$1.c);
if (!hasOwn$4(PolyfilledDOMException$1, constantName$1)) {
defineProperty$3(PolyfilledDOMException$1, constantName$1, descriptor$2);
}
if (!hasOwn$4(PolyfilledDOMExceptionPrototype$1, constantName$1)) {
defineProperty$3(PolyfilledDOMExceptionPrototype$1, constantName$1, descriptor$2);
}
}
var $$b = _export;
var global$b = global$11;
var getBuiltIn$3 = getBuiltIn$p;
var createPropertyDescriptor$1 = createPropertyDescriptor$c;
var defineProperty$2 = objectDefineProperty.f;
var hasOwn$3 = hasOwnProperty_1;
var anInstance$2 = anInstance$a;
var inheritIfRequired = inheritIfRequired$7;
var normalizeStringArgument = normalizeStringArgument$5;
var DOMExceptionConstants = domExceptionConstants;
var clearErrorStack = errorStackClear;
var DESCRIPTORS$5 = descriptors;
var DOM_EXCEPTION$1 = 'DOMException';
var Error$2 = getBuiltIn$3('Error');
var NativeDOMException = getBuiltIn$3(DOM_EXCEPTION$1);
var $DOMException = function DOMException() {
anInstance$2(this, DOMExceptionPrototype);
var argumentsLength = arguments.length;
var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]);
var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error');
var that = new NativeDOMException(message, name);
var error = new Error$2(message);
error.name = DOM_EXCEPTION$1;
defineProperty$2(that, 'stack', createPropertyDescriptor$1(1, clearErrorStack(error.stack, 1)));
inheritIfRequired(that, this, $DOMException);
return that;
};
var DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype;
var ERROR_HAS_STACK = 'stack' in new Error$2(DOM_EXCEPTION$1);
var DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2);
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var descriptor$1 = NativeDOMException && DESCRIPTORS$5 && Object.getOwnPropertyDescriptor(global$b, DOM_EXCEPTION$1);
// Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it
// https://github.com/Jarred-Sumner/bun/issues/399
var BUGGY_DESCRIPTOR = !!descriptor$1 && !(descriptor$1.writable && descriptor$1.configurable);
var FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_HAS_STACK;
// `DOMException` constructor patch for `.stack` where it's required
// https://webidl.spec.whatwg.org/#es-DOMException-specialness
$$b({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR }, { // TODO: fix export logic
DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException
});
var PolyfilledDOMException = getBuiltIn$3(DOM_EXCEPTION$1);
var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;
if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) {
{
defineProperty$2(PolyfilledDOMExceptionPrototype, 'constructor', createPropertyDescriptor$1(1, PolyfilledDOMException));
}
for (var key in DOMExceptionConstants) if (hasOwn$3(DOMExceptionConstants, key)) {
var constant = DOMExceptionConstants[key];
var constantName = constant.s;
if (!hasOwn$3(PolyfilledDOMException, constantName)) {
defineProperty$2(PolyfilledDOMException, constantName, createPropertyDescriptor$1(6, constant.c));
}
}
}
var getBuiltIn$2 = getBuiltIn$p;
var setToStringTag$2 = setToStringTag$e;
var DOM_EXCEPTION = 'DOMException';
// `DOMException.prototype[@@toStringTag]` property
setToStringTag$2(getBuiltIn$2(DOM_EXCEPTION), DOM_EXCEPTION);
var $$a = _export;
var global$a = global$11;
var clearImmediate = task$1.clear;
// `clearImmediate` method
// http://w3c.github.io/setImmediate/#si-clearImmediate
$$a({ global: true, bind: true, enumerable: true, forced: global$a.clearImmediate !== clearImmediate }, {
clearImmediate: clearImmediate
});
/* global Bun -- Bun case */
var engineIsBun = typeof Bun == 'function' && Bun && typeof Bun.version == 'string';
var global$9 = global$11;
var apply = functionApply$1;
var isCallable$2 = isCallable$y;
var ENGINE_IS_BUN = engineIsBun;
var USER_AGENT = engineUserAgent;
var arraySlice$1 = arraySlice$a;
var validateArgumentsLength$7 = validateArgumentsLength$b;
var Function$1 = global$9.Function;
// dirty IE9- and Bun 0.3.0- checks
var WRAP = /MSIE .\./.test(USER_AGENT) || ENGINE_IS_BUN && (function () {
var version = global$9.Bun.version.split('.');
return version.length < 3 || version[0] === '0' && (version[1] < 3 || version[1] === '3' && version[2] === '0');
})();
// IE9- / Bun 0.3.0- setTimeout / setInterval / setImmediate additional parameters fix
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#timers
// https://github.com/oven-sh/bun/issues/1633
var schedulersFix$3 = function (scheduler, hasTimeArg) {
var firstParamIndex = hasTimeArg ? 2 : 1;
return WRAP ? function (handler, timeout /* , ...arguments */) {
var boundArgs = validateArgumentsLength$7(arguments.length, 1) > firstParamIndex;
var fn = isCallable$2(handler) ? handler : Function$1(handler);
var params = boundArgs ? arraySlice$1(arguments, firstParamIndex) : [];
var callback = boundArgs ? function () {
apply(fn, this, params);
} : fn;
return hasTimeArg ? scheduler(callback, timeout) : scheduler(callback);
} : scheduler;
};
var $$9 = _export;
var global$8 = global$11;
var setTask = task$1.set;
var schedulersFix$2 = schedulersFix$3;
// https://github.com/oven-sh/bun/issues/1633
var setImmediate$1 = global$8.setImmediate ? schedulersFix$2(setTask, false) : setTask;
// `setImmediate` method
// http://w3c.github.io/setImmediate/#si-setImmediate
$$9({ global: true, bind: true, enumerable: true, forced: global$8.setImmediate !== setImmediate$1 }, {
setImmediate: setImmediate$1
});
var $$8 = _export;
var microtask = microtask_1;
var aCallable = aCallable$n;
var validateArgumentsLength$6 = validateArgumentsLength$b;
// `queueMicrotask` method
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-queuemicrotask
$$8({ global: true, enumerable: true, dontCallGetSet: true }, {
queueMicrotask: function queueMicrotask(fn) {
validateArgumentsLength$6(arguments.length, 1);
microtask(aCallable(fn));
}
});
var $$7 = _export;
var global$7 = global$11;
var defineBuiltInAccessor$3 = defineBuiltInAccessor$i;
var DESCRIPTORS$4 = descriptors;
var $TypeError = TypeError;
// eslint-disable-next-line es/no-object-defineproperty -- safe
var defineProperty$1 = Object.defineProperty;
var INCORRECT_VALUE = global$7.self !== global$7;
// `self` getter
// https://html.spec.whatwg.org/multipage/window-object.html#dom-self
try {
if (DESCRIPTORS$4) {
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
var descriptor = Object.getOwnPropertyDescriptor(global$7, 'self');
// some engines have `self`, but with incorrect descriptor
// https://github.com/denoland/deno/issues/15765
if (INCORRECT_VALUE || !descriptor || !descriptor.get || !descriptor.enumerable) {
defineBuiltInAccessor$3(global$7, 'self', {
get: function self() {
return global$7;
},
set: function self(value) {
if (this !== global$7) throw new $TypeError('Illegal invocation');
defineProperty$1(global$7, 'self', {
value: value,
writable: true,
configurable: true,
enumerable: true
});
},
configurable: true,
enumerable: true
});
}
} else $$7({ global: true, simple: true, forced: INCORRECT_VALUE }, {
self: global$7
});
} catch (error) { /* empty */ }
var uncurryThis$8 = functionUncurryThis;
// eslint-disable-next-line es/no-set -- safe
var SetPrototype$1 = Set.prototype;
var setHelpers = {
// eslint-disable-next-line es/no-set -- safe
Set: Set,
add: uncurryThis$8(SetPrototype$1.add),
has: uncurryThis$8(SetPrototype$1.has),
remove: uncurryThis$8(SetPrototype$1['delete']),
proto: SetPrototype$1
};
var call$2 = functionCall;
var iterateSimple$1 = function (record, fn, ITERATOR_INSTEAD_OF_RECORD) {
var iterator = ITERATOR_INSTEAD_OF_RECORD ? record : record.iterator;
var next = record.next;
var step, result;
while (!(step = call$2(next, iterator)).done) {
result = fn(step.value);
if (result !== undefined) return result;
}
};
var uncurryThis$7 = functionUncurryThis;
var iterateSimple = iterateSimple$1;
var SetHelpers$1 = setHelpers;
var Set$2 = SetHelpers$1.Set;
var SetPrototype = SetHelpers$1.proto;
var forEach$2 = uncurryThis$7(SetPrototype.forEach);
var keys = uncurryThis$7(SetPrototype.keys);
var next$1 = keys(new Set$2()).next;
var setIterate$1 = function (set, fn, interruptible) {
return interruptible ? iterateSimple({ iterator: keys(set), next: next$1 }, fn) : forEach$2(set, fn);
};
var $$6 = _export;
var global$6 = global$11;
var getBuiltIn$1 = getBuiltIn$p;
var uncurryThis$6 = functionUncurryThis;
var fails$2 = fails$1p;
var uid = uid$6;
var isCallable$1 = isCallable$y;
var isConstructor = isConstructor$6;
var isNullOrUndefined = isNullOrUndefined$e;
var isObject$1 = isObject$A;
var isSymbol = isSymbol$7;
var iterate = iterate$c;
var anObject$1 = anObject$D;
var classof$1 = classof$n;
var hasOwn$2 = hasOwnProperty_1;
var createProperty = createProperty$8;
var createNonEnumerableProperty = createNonEnumerableProperty$f;
var lengthOfArrayLike = lengthOfArrayLike$s;
var validateArgumentsLength$5 = validateArgumentsLength$b;
var getRegExpFlags = regexpGetFlags;
var MapHelpers = mapHelpers;
var SetHelpers = setHelpers;
var setIterate = setIterate$1;
var detachTransferable = detachTransferable$2;
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
var PROPER_STRUCTURED_CLONE_TRANSFER = structuredCloneProperTransfer;
var Object$1 = global$6.Object;
var Array$1 = global$6.Array;
var Date$1 = global$6.Date;
var Error$1 = global$6.Error;
var TypeError$3 = global$6.TypeError;
var PerformanceMark = global$6.PerformanceMark;
var DOMException = getBuiltIn$1('DOMException');
var Map$2 = MapHelpers.Map;
var mapHas = MapHelpers.has;
var mapGet = MapHelpers.get;
var mapSet = MapHelpers.set;
var Set$1 = SetHelpers.Set;
var setAdd = SetHelpers.add;
var setHas = SetHelpers.has;
var objectKeys = getBuiltIn$1('Object', 'keys');
var push$4 = uncurryThis$6([].push);
var thisBooleanValue = uncurryThis$6(true.valueOf);
var thisNumberValue = uncurryThis$6(1.0.valueOf);
var thisStringValue = uncurryThis$6(''.valueOf);
var thisTimeValue = uncurryThis$6(Date$1.prototype.getTime);
var PERFORMANCE_MARK = uid('structuredClone');
var DATA_CLONE_ERROR = 'DataCloneError';
var TRANSFERRING = 'Transferring';
var checkBasicSemantic = function (structuredCloneImplementation) {
return !fails$2(function () {
var set1 = new global$6.Set([7]);
var set2 = structuredCloneImplementation(set1);
var number = structuredCloneImplementation(Object$1(7));
return set2 === set1 || !set2.has(7) || !isObject$1(number) || +number !== 7;
}) && structuredCloneImplementation;
};
var checkErrorsCloning = function (structuredCloneImplementation, $Error) {
return !fails$2(function () {
var error = new $Error();
var test = structuredCloneImplementation({ a: error, b: error });
return !(test && test.a === test.b && test.a instanceof $Error && test.a.stack === error.stack);
});
};
// https://github.com/whatwg/html/pull/5749
var checkNewErrorsCloningSemantic = function (structuredCloneImplementation) {
return !fails$2(function () {
var test = structuredCloneImplementation(new global$6.AggregateError([1], PERFORMANCE_MARK, { cause: 3 }));
return test.name !== 'AggregateError' || test.errors[0] !== 1 || test.message !== PERFORMANCE_MARK || test.cause !== 3;
});
};
// FF94+, Safari 15.4+, Chrome 98+, NodeJS 17.0+, Deno 1.13+
// FF<103 and Safari implementations can't clone errors
// https://bugzilla.mozilla.org/show_bug.cgi?id=1556604
// FF103 can clone errors, but `.stack` of clone is an empty string
// https://bugzilla.mozilla.org/show_bug.cgi?id=1778762
// FF104+ fixed it on usual errors, but not on DOMExceptions
// https://bugzilla.mozilla.org/show_bug.cgi?id=1777321
// Chrome <102 returns `null` if cloned object contains multiple references to one error
// https://bugs.chromium.org/p/v8/issues/detail?id=12542
// NodeJS implementation can't clone DOMExceptions
// https://github.com/nodejs/node/issues/41038
// only FF103+ supports new (html/5749) error cloning semantic
var nativeStructuredClone = global$6.structuredClone;
var FORCED_REPLACEMENT = !checkErrorsCloning(nativeStructuredClone, Error$1)
|| !checkErrorsCloning(nativeStructuredClone, DOMException)
|| !checkNewErrorsCloningSemantic(nativeStructuredClone);
// Chrome 82+, Safari 14.1+, Deno 1.11+
// Chrome 78-81 implementation swaps `.name` and `.message` of cloned `DOMException`
// Chrome returns `null` if cloned object contains multiple references to one error
// Safari 14.1 implementation doesn't clone some `RegExp` flags, so requires a workaround
// Safari implementation can't clone errors
// Deno 1.2-1.10 implementations too naive
// NodeJS 16.0+ does not have `PerformanceMark` constructor
// NodeJS <17.2 structured cloning implementation from `performance.mark` is too naive
// and can't clone, for example, `RegExp` or some boxed primitives
// https://github.com/nodejs/node/issues/40840
// no one of those implementations supports new (html/5749) error cloning semantic
var structuredCloneFromMark = !nativeStructuredClone && checkBasicSemantic(function (value) {
return new PerformanceMark(PERFORMANCE_MARK, { detail: value }).detail;
});
var nativeRestrictedStructuredClone = checkBasicSemantic(nativeStructuredClone) || structuredCloneFromMark;
var throwUncloneable = function (type) {
throw new DOMException('Uncloneable type: ' + type, DATA_CLONE_ERROR);
};
var throwUnpolyfillable = function (type, action) {
throw new DOMException((action || 'Cloning') + ' of ' + type + ' cannot be properly polyfilled in this engine', DATA_CLONE_ERROR);
};
var tryNativeRestrictedStructuredClone = function (value, type) {
if (!nativeRestrictedStructuredClone) throwUnpolyfillable(type);
return nativeRestrictedStructuredClone(value);
};
var createDataTransfer = function () {
var dataTransfer;
try {
dataTransfer = new global$6.DataTransfer();
} catch (error) {
try {
dataTransfer = new global$6.ClipboardEvent('').clipboardData;
} catch (error2) { /* empty */ }
}
return dataTransfer && dataTransfer.items && dataTransfer.files ? dataTransfer : null;
};
var cloneBuffer = function (value, map, $type) {
if (mapHas(map, value)) return mapGet(map, value);
var type = $type || classof$1(value);
var clone, length, options, source, target, i;
if (type === 'SharedArrayBuffer') {
if (nativeRestrictedStructuredClone) clone = nativeRestrictedStructuredClone(value);
// SharedArrayBuffer should use shared memory, we can't polyfill it, so return the original
else clone = value;
} else {
var DataView = global$6.DataView;
// `ArrayBuffer#slice` is not available in IE10
// `ArrayBuffer#slice` and `DataView` are not available in old FF
if (!DataView && !isCallable$1(value.slice)) throwUnpolyfillable('ArrayBuffer');
// detached buffers throws in `DataView` and `.slice`
try {
if (isCallable$1(value.slice) && !value.resizable) {
clone = value.slice(0);
} else {
length = value.byteLength;
options = 'maxByteLength' in value ? { maxByteLength: value.maxByteLength } : undefined;
// eslint-disable-next-line es/no-resizable-and-growable-arraybuffers -- safe
clone = new ArrayBuffer(length, options);
source = new DataView(value);
target = new DataView(clone);
for (i = 0; i < length; i++) {
target.setUint8(i, source.getUint8(i));
}
}
} catch (error) {
throw new DOMException('ArrayBuffer is detached', DATA_CLONE_ERROR);
}
}
mapSet(map, value, clone);
return clone;
};
var cloneView = function (value, type, offset, length, map) {
var C = global$6[type];
// in some old engines like Safari 9, typeof C is 'object'
// on Uint8ClampedArray or some other constructors
if (!isObject$1(C)) throwUnpolyfillable(type);
return new C(cloneBuffer(value.buffer, map), offset, length);
};
var structuredCloneInternal = function (value, map) {
if (isSymbol(value)) throwUncloneable('Symbol');
if (!isObject$1(value)) return value;
// effectively preserves circular references
if (map) {
if (mapHas(map, value)) return mapGet(map, value);
} else map = new Map$2();
var type = classof$1(value);
var C, name, cloned, dataTransfer, i, length, keys, key;
switch (type) {
case 'Array':
cloned = Array$1(lengthOfArrayLike(value));
break;
case 'Object':
cloned = {};
break;
case 'Map':
cloned = new Map$2();
break;
case 'Set':
cloned = new Set$1();
break;
case 'RegExp':
// in this block because of a Safari 14.1 bug
// old FF does not clone regexes passed to the constructor, so get the source and flags directly
cloned = new RegExp(value.source, getRegExpFlags(value));
break;
case 'Error':
name = value.name;
switch (name) {
case 'AggregateError':
cloned = new (getBuiltIn$1(name))([]);
break;
case 'EvalError':
case 'RangeError':
case 'ReferenceError':
case 'SuppressedError':
case 'SyntaxError':
case 'TypeError':
case 'URIError':
cloned = new (getBuiltIn$1(name))();
break;
case 'CompileError':
case 'LinkError':
case 'RuntimeError':
cloned = new (getBuiltIn$1('WebAssembly', name))();
break;
default:
cloned = new Error$1();
}
break;
case 'DOMException':
cloned = new DOMException(value.message, value.name);
break;
case 'ArrayBuffer':
case 'SharedArrayBuffer':
cloned = cloneBuffer(value, map, type);
break;
case 'DataView':
case 'Int8Array':
case 'Uint8Array':
case 'Uint8ClampedArray':
case 'Int16Array':
case 'Uint16Array':
case 'Int32Array':
case 'Uint32Array':
case 'Float16Array':
case 'Float32Array':
case 'Float64Array':
case 'BigInt64Array':
case 'BigUint64Array':
length = type === 'DataView' ? value.byteLength : value.length;
cloned = cloneView(value, type, value.byteOffset, length, map);
break;
case 'DOMQuad':
try {
cloned = new DOMQuad(
structuredCloneInternal(value.p1, map),
structuredCloneInternal(value.p2, map),
structuredCloneInternal(value.p3, map),
structuredCloneInternal(value.p4, map)
);
} catch (error) {
cloned = tryNativeRestrictedStructuredClone(value, type);
}
break;
case 'File':
if (nativeRestrictedStructuredClone) try {
cloned = nativeRestrictedStructuredClone(value);
// NodeJS 20.0.0 bug, https://github.com/nodejs/node/issues/47612
if (classof$1(cloned) !== type) cloned = undefined;
} catch (error) { /* empty */ }
if (!cloned) try {
cloned = new File([value], value.name, value);
} catch (error) { /* empty */ }
if (!cloned) throwUnpolyfillable(type);
break;
case 'FileList':
dataTransfer = createDataTransfer();
if (dataTransfer) {
for (i = 0, length = lengthOfArrayLike(value); i < length; i++) {
dataTransfer.items.add(structuredCloneInternal(value[i], map));
}
cloned = dataTransfer.files;
} else cloned = tryNativeRestrictedStructuredClone(value, type);
break;
case 'ImageData':
// Safari 9 ImageData is a constructor, but typeof ImageData is 'object'
try {
cloned = new ImageData(
structuredCloneInternal(value.data, map),
value.width,
value.height,
{ colorSpace: value.colorSpace }
);
} catch (error) {
cloned = tryNativeRestrictedStructuredClone(value, type);
} break;
default:
if (nativeRestrictedStructuredClone) {
cloned = nativeRestrictedStructuredClone(value);
} else switch (type) {
case 'BigInt':
// can be a 3rd party polyfill
cloned = Object$1(value.valueOf());
break;
case 'Boolean':
cloned = Object$1(thisBooleanValue(value));
break;
case 'Number':
cloned = Object$1(thisNumberValue(value));
break;
case 'String':
cloned = Object$1(thisStringValue(value));
break;
case 'Date':
cloned = new Date$1(thisTimeValue(value));
break;
case 'Blob':
try {
cloned = value.slice(0, value.size, value.type);
} catch (error) {
throwUnpolyfillable(type);
} break;
case 'DOMPoint':
case 'DOMPointReadOnly':
C = global$6[type];
try {
cloned = C.fromPoint
? C.fromPoint(value)
: new C(value.x, value.y, value.z, value.w);
} catch (error) {
throwUnpolyfillable(type);
} break;
case 'DOMRect':
case 'DOMRectReadOnly':
C = global$6[type];
try {
cloned = C.fromRect
? C.fromRect(value)
: new C(value.x, value.y, value.width, value.height);
} catch (error) {
throwUnpolyfillable(type);
} break;
case 'DOMMatrix':
case 'DOMMatrixReadOnly':
C = global$6[type];
try {
cloned = C.fromMatrix
? C.fromMatrix(value)
: new C(value);
} catch (error) {
throwUnpolyfillable(type);
} break;
case 'AudioData':
case 'VideoFrame':
if (!isCallable$1(value.clone)) throwUnpolyfillable(type);
try {
cloned = value.clone();
} catch (error) {
throwUncloneable(type);
} break;
case 'CropTarget':
case 'CryptoKey':
case 'FileSystemDirectoryHandle':
case 'FileSystemFileHandle':
case 'FileSystemHandle':
case 'GPUCompilationInfo':
case 'GPUCompilationMessage':
case 'ImageBitmap':
case 'RTCCertificate':
case 'WebAssembly.Module':
throwUnpolyfillable(type);
// break omitted
default:
throwUncloneable(type);
}
}
mapSet(map, value, cloned);
switch (type) {
case 'Array':
case 'Object':
keys = objectKeys(value);
for (i = 0, length = lengthOfArrayLike(keys); i < length; i++) {
key = keys[i];
createProperty(cloned, key, structuredCloneInternal(value[key], map));
} break;
case 'Map':
value.forEach(function (v, k) {
mapSet(cloned, structuredCloneInternal(k, map), structuredCloneInternal(v, map));
});
break;
case 'Set':
value.forEach(function (v) {
setAdd(cloned, structuredCloneInternal(v, map));
});
break;
case 'Error':
createNonEnumerableProperty(cloned, 'message', structuredCloneInternal(value.message, map));
if (hasOwn$2(value, 'cause')) {
createNonEnumerableProperty(cloned, 'cause', structuredCloneInternal(value.cause, map));
}
if (name === 'AggregateError') {
cloned.errors = structuredCloneInternal(value.errors, map);
} else if (name === 'SuppressedError') {
cloned.error = structuredCloneInternal(value.error, map);
cloned.suppressed = structuredCloneInternal(value.suppressed, map);
} // break omitted
case 'DOMException':
if (ERROR_STACK_INSTALLABLE) {
createNonEnumerableProperty(cloned, 'stack', structuredCloneInternal(value.stack, map));
}
}
return cloned;
};
var tryToTransfer = function (rawTransfer, map) {
if (!isObject$1(rawTransfer)) throw new TypeError$3('Transfer option cannot be converted to a sequence');
var transfer = [];
iterate(rawTransfer, function (value) {
push$4(transfer, anObject$1(value));
});
var i = 0;
var length = lengthOfArrayLike(transfer);
var buffers = new Set$1();
var value, type, C, transferred, canvas, context;
while (i < length) {
value = transfer[i++];
type = classof$1(value);
if (type === 'ArrayBuffer' ? setHas(buffers, value) : mapHas(map, value)) {
throw new DOMException('Duplicate transferable', DATA_CLONE_ERROR);
}
if (type === 'ArrayBuffer') {
setAdd(buffers, value);
continue;
}
if (PROPER_STRUCTURED_CLONE_TRANSFER) {
transferred = nativeStructuredClone(value, { transfer: [value] });
} else switch (type) {
case 'ImageBitmap':
C = global$6.OffscreenCanvas;
if (!isConstructor(C)) throwUnpolyfillable(type, TRANSFERRING);
try {
canvas = new C(value.width, value.height);
context = canvas.getContext('bitmaprenderer');
context.transferFromImageBitmap(value);
transferred = canvas.transferToImageBitmap();
} catch (error) { /* empty */ }
break;
case 'AudioData':
case 'VideoFrame':
if (!isCallable$1(value.clone) || !isCallable$1(value.close)) throwUnpolyfillable(type, TRANSFERRING);
try {
transferred = value.clone();
value.close();
} catch (error) { /* empty */ }
break;
case 'MediaSourceHandle':
case 'MessagePort':
case 'OffscreenCanvas':
case 'ReadableStream':
case 'TransformStream':
case 'WritableStream':
throwUnpolyfillable(type, TRANSFERRING);
}
if (transferred === undefined) throw new DOMException('This object cannot be transferred: ' + type, DATA_CLONE_ERROR);
mapSet(map, value, transferred);
}
return buffers;
};
var detachBuffers = function (buffers) {
setIterate(buffers, function (buffer) {
if (PROPER_STRUCTURED_CLONE_TRANSFER) {
nativeRestrictedStructuredClone(buffer, { transfer: [buffer] });
} else if (isCallable$1(buffer.transfer)) {
buffer.transfer();
} else if (detachTransferable) {
detachTransferable(buffer);
} else {
throwUnpolyfillable('ArrayBuffer', TRANSFERRING);
}
});
};
// `structuredClone` method
// https://html.spec.whatwg.org/multipage/structured-data.html#dom-structuredclone
$$6({ global: true, enumerable: true, sham: !PROPER_STRUCTURED_CLONE_TRANSFER, forced: FORCED_REPLACEMENT }, {
structuredClone: function structuredClone(value /* , { transfer } */) {
var options = validateArgumentsLength$5(arguments.length, 1) > 1 && !isNullOrUndefined(arguments[1]) ? anObject$1(arguments[1]) : undefined;
var transfer = options ? options.transfer : undefined;
var map, buffers;
if (transfer !== undefined) {
map = new Map$2();
buffers = tryToTransfer(transfer, map);
}
var clone = structuredCloneInternal(value, map);
// since of an issue with cloning views of transferred buffers, we a forced to detach them later
// https://github.com/zloirock/core-js/issues/1265
if (buffers) detachBuffers(buffers);
return clone;
}
});
var $$5 = _export;
var global$5 = global$11;
var schedulersFix$1 = schedulersFix$3;
var setInterval = schedulersFix$1(global$5.setInterval, true);
// Bun / IE9- setInterval additional parameters fix
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-setinterval
$$5({ global: true, bind: true, forced: global$5.setInterval !== setInterval }, {
setInterval: setInterval
});
var $$4 = _export;
var global$4 = global$11;
var schedulersFix = schedulersFix$3;
var setTimeout$1 = schedulersFix(global$4.setTimeout, true);
// Bun / IE9- setTimeout additional parameters fix
// https://html.spec.whatwg.org/multipage/timers-and-user-prompts.html#dom-settimeout
$$4({ global: true, bind: true, forced: global$4.setTimeout !== setTimeout$1 }, {
setTimeout: setTimeout$1
});
var fails$1 = fails$1p;
var wellKnownSymbol$1 = wellKnownSymbol$z;
var DESCRIPTORS$3 = descriptors;
var IS_PURE = isPure;
var ITERATOR$1 = wellKnownSymbol$1('iterator');
var urlConstructorDetection = !fails$1(function () {
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
var url = new URL('b?a=1&b=2&c=3', 'http://a');
var params = url.searchParams;
var params2 = new URLSearchParams('a=1&a=2&b=3');
var result = '';
url.pathname = 'c%20d';
params.forEach(function (value, key) {
params['delete']('b');
result += key + value;
});
params2['delete']('a', 2);
// `undefined` case is a Chromium 117 bug
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
params2['delete']('b', undefined);
return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
|| (!params.size && (IS_PURE || !DESCRIPTORS$3))
|| !params.sort
|| url.href !== 'http://a/c%20d?a=1&c=3'
|| params.get('c') !== '3'
|| String(new URLSearchParams('?a=1')) !== 'a=1'
|| !params[ITERATOR$1]
// 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 uncurryThis$5 = 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$1 = '-'; // '\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 = RangeError;
var exec$1 = uncurryThis$5(regexSeparators.exec);
var floor$1 = Math.floor;
var fromCharCode = String.fromCharCode;
var charCodeAt = uncurryThis$5(''.charCodeAt);
var join$2 = uncurryThis$5([].join);
var push$3 = uncurryThis$5([].push);
var replace$3 = uncurryThis$5(''.replace);
var split$2 = uncurryThis$5(''.split);
var toLowerCase$1 = uncurryThis$5(''.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$3(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$3(output, value);
counter--;
}
} else {
push$3(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$1(delta / damp) : delta >> 1;
delta += floor$1(delta / numPoints);
while (delta > baseMinusTMin * tMax >> 1) {
delta = floor$1(delta / baseMinusTMin);
k += base;
}
return floor$1(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$3(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$3(output, delimiter$1);
}
// 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 <n,i> state to <m,0>, but guard against overflow.
var handledCPCountPlusOne = handledCPCount + 1;
if (m - n > floor$1((maxInt - delta) / handledCPCountPlusOne)) {
throw new $RangeError(OVERFLOW_ERROR);
}
delta += (m - n) * handledCPCountPlusOne;
n = m;
for (i = 0; i < input.length; i++) {
currentValue = input[i];
if (currentValue < n && ++delta > maxInt) {
throw new $RangeError(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$3(output, fromCharCode(digitToBasic(t + qMinusT % baseMinusT)));
q = floor$1(qMinusT / baseMinusT);
k += base;
}
push$3(output, fromCharCode(digitToBasic(q)));
bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength);
delta = 0;
handledCPCount++;
}
}
delta++;
n++;
}
return join$2(output, '');
};
var stringPunycodeToAscii = function (input) {
var encoded = [];
var labels = split$2(replace$3(toLowerCase$1(input), regexSeparators, '\u002E'), '.');
var i, label;
for (i = 0; i < labels.length; i++) {
label = labels[i];
push$3(encoded, exec$1(regexNonASCII, label) ? 'xn--' + encode(label) : label);
}
return join$2(encoded, '.');
};
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
var $$3 = _export;
var global$3 = global$11;
var safeGetBuiltIn = safeGetBuiltIn$2;
var call$1 = functionCall;
var uncurryThis$4 = functionUncurryThis;
var DESCRIPTORS$2 = descriptors;
var USE_NATIVE_URL$2 = urlConstructorDetection;
var defineBuiltIn$3 = defineBuiltIn$o;
var defineBuiltInAccessor$2 = defineBuiltInAccessor$i;
var defineBuiltIns = defineBuiltIns$5;
var setToStringTag$1 = setToStringTag$e;
var createIteratorConstructor = iteratorCreateConstructor;
var InternalStateModule$1 = internalState;
var anInstance$1 = anInstance$a;
var isCallable = isCallable$y;
var hasOwn$1 = hasOwnProperty_1;
var bind$1 = functionBindContext;
var classof = classof$n;
var anObject = anObject$D;
var isObject = isObject$A;
var $toString$1 = toString$C;
var create = objectCreate;
var createPropertyDescriptor = createPropertyDescriptor$c;
var getIterator = getIterator$4;
var getIteratorMethod = getIteratorMethod$5;
var createIterResultObject = createIterResultObject$5;
var validateArgumentsLength$4 = validateArgumentsLength$b;
var wellKnownSymbol = wellKnownSymbol$z;
var arraySort = arraySort$1;
var ITERATOR = wellKnownSymbol('iterator');
var URL_SEARCH_PARAMS = 'URLSearchParams';
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
var setInternalState$1 = InternalStateModule$1.set;
var getInternalParamsState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS);
var getInternalIteratorState = InternalStateModule$1.getterFor(URL_SEARCH_PARAMS_ITERATOR);
var nativeFetch = safeGetBuiltIn('fetch');
var NativeRequest = safeGetBuiltIn('Request');
var Headers$1 = safeGetBuiltIn('Headers');
var RequestPrototype = NativeRequest && NativeRequest.prototype;
var HeadersPrototype = Headers$1 && Headers$1.prototype;
var RegExp$1 = global$3.RegExp;
var TypeError$2 = global$3.TypeError;
var decodeURIComponent$1 = global$3.decodeURIComponent;
var encodeURIComponent$1 = global$3.encodeURIComponent;
var charAt$1 = uncurryThis$4(''.charAt);
var join$1 = uncurryThis$4([].join);
var push$2 = uncurryThis$4([].push);
var replace$2 = uncurryThis$4(''.replace);
var shift$1 = uncurryThis$4([].shift);
var splice = uncurryThis$4([].splice);
var split$1 = uncurryThis$4(''.split);
var stringSlice$1 = uncurryThis$4(''.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$1(sequence);
} catch (error) {
return sequence;
}
};
var deserialize = function (it) {
var result = replace$2(it, plus, ' ');
var bytes = 4;
try {
return decodeURIComponent$1(result);
} catch (error) {
while (bytes) {
result = replace$2(result, percentSequence(bytes--), percentDecode);
}
return result;
}
};
var find = /[!'()~]|%20/g;
var replacements = {
'!': '%21',
"'": '%27',
'(': '%28',
')': '%29',
'~': '%7E',
'%20': '+'
};
var replacer = function (match) {
return replacements[match];
};
var serialize$1 = function (it) {
return replace$2(encodeURIComponent$1(it), find, replacer);
};
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
setInternalState$1(this, {
type: URL_SEARCH_PARAMS_ITERATOR,
target: getInternalParamsState(params).entries,
index: 0,
kind: kind
});
}, URL_SEARCH_PARAMS, function next() {
var state = getInternalIteratorState(this);
var target = state.target;
var index = state.index++;
if (!target || index >= target.length) {
state.target = undefined;
return createIterResultObject(undefined, true);
}
var entry = target[index];
switch (state.kind) {
case 'keys': return createIterResultObject(entry.key, false);
case 'values': return createIterResultObject(entry.value, false);
} return createIterResultObject([entry.key, entry.value], false);
}, true);
var URLSearchParamsState = function (init) {
this.entries = [];
this.url = null;
if (init !== undefined) {
if (isObject(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 entries = this.entries;
var iteratorMethod = getIteratorMethod(object);
var iterator, next, step, entryIterator, entryNext, first, second;
if (iteratorMethod) {
iterator = getIterator(object, iteratorMethod);
next = iterator.next;
while (!(step = call$1(next, iterator)).done) {
entryIterator = getIterator(anObject(step.value));
entryNext = entryIterator.next;
if (
(first = call$1(entryNext, entryIterator)).done ||
(second = call$1(entryNext, entryIterator)).done ||
!call$1(entryNext, entryIterator).done
) throw new TypeError$2('Expected sequence with length 2');
push$2(entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
}
} else for (var key in object) if (hasOwn$1(object, key)) {
push$2(entries, { key: key, value: $toString$1(object[key]) });
}
},
parseQuery: function (query) {
if (query) {
var entries = this.entries;
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$2(entries, {
key: deserialize(shift$1(entry)),
value: deserialize(join$1(entry, '='))
});
}
}
}
},
serialize: function () {
var entries = this.entries;
var result = [];
var index = 0;
var entry;
while (index < entries.length) {
entry = entries[index++];
push$2(result, serialize$1(entry.key) + '=' + serialize$1(entry.value));
} return join$1(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$1(this, URLSearchParamsPrototype$3);
var init = arguments.length > 0 ? arguments[0] : undefined;
var state = setInternalState$1(this, new URLSearchParamsState(init));
if (!DESCRIPTORS$2) this.size = state.entries.length;
};
var URLSearchParamsPrototype$3 = URLSearchParamsConstructor.prototype;
defineBuiltIns(URLSearchParamsPrototype$3, {
// `URLSearchParams.prototype.append` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
append: function append(name, value) {
var state = getInternalParamsState(this);
validateArgumentsLength$4(arguments.length, 2);
push$2(state.entries, { key: $toString$1(name), value: $toString$1(value) });
if (!DESCRIPTORS$2) this.length++;
state.updateURL();
},
// `URLSearchParams.prototype.delete` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete
'delete': function (name /* , value */) {
var state = getInternalParamsState(this);
var length = validateArgumentsLength$4(arguments.length, 1);
var entries = state.entries;
var key = $toString$1(name);
var $value = length < 2 ? undefined : arguments[1];
var value = $value === undefined ? $value : $toString$1($value);
var index = 0;
while (index < entries.length) {
var entry = entries[index];
if (entry.key === key && (value === undefined || entry.value === value)) {
splice(entries, index, 1);
if (value !== undefined) break;
} else index++;
}
if (!DESCRIPTORS$2) this.size = entries.length;
state.updateURL();
},
// `URLSearchParams.prototype.get` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-get
get: function get(name) {
var entries = getInternalParamsState(this).entries;
validateArgumentsLength$4(arguments.length, 1);
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) {
var entries = getInternalParamsState(this).entries;
validateArgumentsLength$4(arguments.length, 1);
var key = $toString$1(name);
var result = [];
var index = 0;
for (; index < entries.length; index++) {
if (entries[index].key === key) push$2(result, entries[index].value);
}
return result;
},
// `URLSearchParams.prototype.has` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-has
has: function has(name /* , value */) {
var entries = getInternalParamsState(this).entries;
var length = validateArgumentsLength$4(arguments.length, 1);
var key = $toString$1(name);
var $value = length < 2 ? undefined : arguments[1];
var value = $value === undefined ? $value : $toString$1($value);
var index = 0;
while (index < entries.length) {
var entry = entries[index++];
if (entry.key === key && (value === undefined || entry.value === value)) return true;
}
return false;
},
// `URLSearchParams.prototype.set` method
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
set: function set(name, value) {
var state = getInternalParamsState(this);
validateArgumentsLength$4(arguments.length, 1);
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$2(entries, { key: key, value: val });
if (!DESCRIPTORS$2) this.size = entries.length;
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$1(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
defineBuiltIn$3(URLSearchParamsPrototype$3, ITERATOR, URLSearchParamsPrototype$3.entries, { name: 'entries' });
// `URLSearchParams.prototype.toString` method
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
defineBuiltIn$3(URLSearchParamsPrototype$3, 'toString', function toString() {
return getInternalParamsState(this).serialize();
}, { enumerable: true });
// `URLSearchParams.prototype.size` getter
// https://github.com/whatwg/url/pull/734
if (DESCRIPTORS$2) defineBuiltInAccessor$2(URLSearchParamsPrototype$3, 'size', {
get: function size() {
return getInternalParamsState(this).entries.length;
},
configurable: true,
enumerable: true
});
setToStringTag$1(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
$$3({ global: true, constructor: true, forced: !USE_NATIVE_URL$2 }, {
URLSearchParams: URLSearchParamsConstructor
});
// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
if (!USE_NATIVE_URL$2 && isCallable(Headers$1)) {
var headersHas = uncurryThis$4(HeadersPrototype.has);
var headersSet = uncurryThis$4(HeadersPrototype.set);
var wrapRequestOptions = function (init) {
if (isObject(init)) {
var body = init.body;
var headers;
if (classof(body) === URL_SEARCH_PARAMS) {
headers = init.headers ? new Headers$1(init.headers) : new Headers$1();
if (!headersHas(headers, 'content-type')) {
headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
}
return create(init, {
body: createPropertyDescriptor(0, $toString$1(body)),
headers: createPropertyDescriptor(0, headers)
});
}
} return init;
};
if (isCallable(nativeFetch)) {
$$3({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
fetch: function fetch(input /* , init */) {
return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
}
});
}
if (isCallable(NativeRequest)) {
var RequestConstructor = function Request(input /* , init */) {
anInstance$1(this, RequestPrototype);
return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
};
RequestPrototype.constructor = RequestConstructor;
RequestConstructor.prototype = RequestPrototype;
$$3({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
Request: RequestConstructor
});
}
}
var web_urlSearchParams_constructor = {
URLSearchParams: URLSearchParamsConstructor,
getState: getInternalParamsState
};
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
var $$2 = _export;
var DESCRIPTORS$1 = descriptors;
var USE_NATIVE_URL$1 = urlConstructorDetection;
var global$2 = global$11;
var bind = functionBindContext;
var uncurryThis$3 = functionUncurryThis;
var defineBuiltIn$2 = defineBuiltIn$o;
var defineBuiltInAccessor$1 = defineBuiltInAccessor$i;
var anInstance = anInstance$a;
var hasOwn = hasOwnProperty_1;
var assign$2 = objectAssign$1;
var arrayFrom = arrayFrom$1;
var arraySlice = arraySlice$a;
var codeAt = stringMultibyte.codeAt;
var toASCII = stringPunycodeToAscii;
var $toString = toString$C;
var setToStringTag = setToStringTag$e;
var validateArgumentsLength$3 = validateArgumentsLength$b;
var URLSearchParamsModule = web_urlSearchParams_constructor;
var InternalStateModule = internalState;
var setInternalState = InternalStateModule.set;
var getInternalURLState = InternalStateModule.getterFor('URL');
var URLSearchParams$1 = URLSearchParamsModule.URLSearchParams;
var getInternalSearchParamsState = URLSearchParamsModule.getState;
var NativeURL = global$2.URL;
var TypeError$1 = global$2.TypeError;
var parseInt$1 = global$2.parseInt;
var floor = Math.floor;
var pow = Math.pow;
var charAt = uncurryThis$3(''.charAt);
var exec = uncurryThis$3(/./.exec);
var join = uncurryThis$3([].join);
var numberToString = uncurryThis$3(1.0.toString);
var pop = uncurryThis$3([].pop);
var push$1 = uncurryThis$3([].push);
var replace$1 = uncurryThis$3(''.replace);
var shift = uncurryThis$3([].shift);
var split = uncurryThis$3(''.split);
var stringSlice = uncurryThis$3(''.slice);
var toLowerCase = uncurryThis$3(''.toLowerCase);
var unshift = uncurryThis$3([].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_C0_CONTROL_OR_SPACE = /^[\u0000-\u0020]+/;
var TRAILING_C0_CONTROL_OR_SPACE = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/;
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$1(numbers, number);
}
for (index = 0; index < partsLength; index++) {
number = numbers[index];
if (index === partsLength - 1) {
if (number >= pow(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(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(host / 256);
} return join(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$2({}, C0ControlPercentEncodeSet, {
' ': 1, '"': 1, '<': 1, '>': 1, '`': 1
});
var pathPercentEncodeSet = assign$2({}, fragmentPercentEncodeSet, {
'#': 1, '?': 1, '{': 1, '}': 1
});
var userinfoPercentEncodeSet = assign$2({}, 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(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 new TypeError$1(failure);
this.searchParams = null;
} else {
if (base !== undefined) baseState = new URLState(base, true);
failure = this.parse(urlString, null, baseState);
if (failure) throw new TypeError$1(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$1(input, LEADING_C0_CONTROL_OR_SPACE, '');
input = replace$1(input, TRAILING_C0_CONTROL_OR_SPACE, '$1');
}
input = replace$1(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(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$1(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(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(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(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(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(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') {
switch (chr) {
case EOF:
url.host = base.host;
url.path = arraySlice(base.path);
url.query = base.query;
break;
case '?':
url.host = base.host;
url.path = arraySlice(base.path);
url.query = '';
state = QUERY;
break;
case '#':
url.host = base.host;
url.path = arraySlice(base.path);
url.query = base.query;
url.fragment = '';
state = FRAGMENT;
break;
default:
if (!startsWithWindowsDriveLetter(join(arraySlice(codePoints, pointer), ''))) {
url.host = base.host;
url.path = arraySlice(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(arraySlice(codePoints, pointer), ''))) {
if (isWindowsDriveLetter(base.path[0], true)) push$1(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$1(url.path, '');
}
} else if (isSingleDot(buffer)) {
if (chr !== '/' && !(chr === '\\' && url.isSpecial())) {
push$1(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$1(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(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(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 new TypeError$1(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(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 = functi
Showing 512.00 KB of 9.25 MB. Use Edit/Download for full content.
Directory Contents
Dirs: 0 × Files: 5