adminjs
Version:
Admin panel for apps written in node.js
1,450 lines (1,195 loc) • 9.69 MB
JavaScript
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 arrayI