UNPKG

sbg-server

Version:
1,417 lines (1,157 loc) 1.43 MB
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('flowbite'), require('axios'), require('codemirror'), require('highlight.js'), require('markdown-it')) : typeof define === 'function' && define.amd ? define(['exports', 'flowbite', 'axios', 'codemirror', 'highlight.js', 'markdown-it'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.test = global.test || {}, global.test.js = {}), global.flowbite, global.axios, global.CodeMirror, global.hljs, global.MarkdownIt)); })(this, (function (exports, flowbite, axios, CodeMirror, hljs, MarkdownIt) { 'use strict'; function hello(name) { console.log(`hello ${name}`); } global.hello = hello; var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; var check = function (it) { return it && it.Math == Math && it; }; // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 var global$12 = // eslint-disable-next-line es/no-global-this -- safe check(typeof globalThis == 'object' && globalThis) || check(typeof window == 'object' && window) || // eslint-disable-next-line no-restricted-globals -- safe check(typeof self == 'object' && self) || check(typeof commonjsGlobal == 'object' && commonjsGlobal) || // eslint-disable-next-line no-new-func -- fallback (function () { return this; })() || commonjsGlobal || Function('return this')(); var objectGetOwnPropertyDescriptor = {}; var fails$1t = function (exec) { try { return !!exec(); } catch (error) { return true; } }; var fails$1s = fails$1t; // Detect IE8's incomplete defineProperty implementation var descriptors = !fails$1s(function () { // eslint-disable-next-line es/no-object-defineproperty -- required for testing return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7; }); var fails$1r = fails$1t; var functionBindNative = !fails$1r(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$13 = Function.prototype.call; var functionCall = NATIVE_BIND$4 ? call$13.bind(call$13) : function () { return call$13.apply(call$13, arguments); }; var objectPropertyIsEnumerable = {}; var $propertyIsEnumerable$2 = {}.propertyIsEnumerable; // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe var getOwnPropertyDescriptor$b = Object.getOwnPropertyDescriptor; // Nashorn ~ JDK8 bug var NASHORN_BUG = getOwnPropertyDescriptor$b && !$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$b(this, V); return !!descriptor && descriptor.enumerable; } : $propertyIsEnumerable$2; var createPropertyDescriptor$d = 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$12 = FunctionPrototype$4.call; var uncurryThisWithBind = NATIVE_BIND$3 && FunctionPrototype$4.bind.bind(call$12, call$12); var functionUncurryThis = NATIVE_BIND$3 ? uncurryThisWithBind : function (fn) { return function () { return call$12.apply(fn, arguments); }; }; var uncurryThis$1v = functionUncurryThis; var toString$E = uncurryThis$1v({}.toString); var stringSlice$i = uncurryThis$1v(''.slice); var classofRaw$2 = function (it) { return stringSlice$i(toString$E(it), 8, -1); }; var uncurryThis$1u = functionUncurryThis; var fails$1q = fails$1t; var classof$o = classofRaw$2; var $Object$5 = Object; var split$3 = uncurryThis$1u(''.split); // fallback for non-array-like ES3 and non-enumerable old V8 strings var indexedObject = fails$1q(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$f = function (it) { return it === null || it === undefined; }; var isNullOrUndefined$e = isNullOrUndefined$f; var $TypeError$t = TypeError; // `RequireObjectCoercible` abstract operation // https://tc39.es/ecma262/#sec-requireobjectcoercible var requireObjectCoercible$l = function (it) { if (isNullOrUndefined$e(it)) throw $TypeError$t("Can't call method on " + it); return it; }; // toObject with fallback for non-array-like ES3 strings var IndexedObject$7 = indexedObject; var requireObjectCoercible$k = requireObjectCoercible$l; var toIndexedObject$j = function (it) { return IndexedObject$7(requireObjectCoercible$k(it)); }; var documentAll$2 = typeof document == 'object' && document.all; // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined; var documentAll_1 = { all: documentAll$2, IS_HTMLDDA: IS_HTMLDDA }; var $documentAll$1 = documentAll_1; var documentAll$1 = $documentAll$1.all; // `IsCallable` abstract operation // https://tc39.es/ecma262/#sec-iscallable var isCallable$E = $documentAll$1.IS_HTMLDDA ? function (argument) { return typeof argument == 'function' || argument === documentAll$1; } : function (argument) { return typeof argument == 'function'; }; var isCallable$D = isCallable$E; var $documentAll = documentAll_1; var documentAll = $documentAll.all; var isObject$G = $documentAll.IS_HTMLDDA ? function (it) { return typeof it == 'object' ? it !== null : isCallable$D(it) || it === documentAll; } : function (it) { return typeof it == 'object' ? it !== null : isCallable$D(it); }; var global$11 = global$12; var isCallable$C = isCallable$E; var aFunction = function (argument) { return isCallable$C(argument) ? argument : undefined; }; var getBuiltIn$x = function (namespace, method) { return arguments.length < 2 ? aFunction(global$11[namespace]) : global$11[namespace] && global$11[namespace][method]; }; var uncurryThis$1t = functionUncurryThis; var objectIsPrototypeOf = uncurryThis$1t({}.isPrototypeOf); var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || ''; var global$10 = global$12; var userAgent$6 = engineUserAgent; var process$5 = global$10.process; var Deno$1 = global$10.Deno; var versions = process$5 && process$5.versions || Deno$1 && Deno$1.version; var v8 = versions && versions.v8; var match, version; if (v8) { match = v8.split('.'); // in old Chrome, versions of V8 isn't V8 = Chrome / 10 // but their correct versions are not interesting for us version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]); } // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0` // so check `userAgent` even if `.v8` exists, but 0 if (!version && userAgent$6) { match = userAgent$6.match(/Edge\/(\d+)/); if (!match || match[1] >= 74) { match = userAgent$6.match(/Chrome\/(\d+)/); if (match) version = +match[1]; } } var engineV8Version = version; /* eslint-disable es/no-symbol -- required for testing */ var V8_VERSION$3 = engineV8Version; var fails$1p = fails$1t; var global$$ = global$12; var $String$9 = global$$.String; // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$1p(function () { var symbol = Symbol(); // 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$9(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$7 = symbolConstructorDetection; var useSymbolAsUid = NATIVE_SYMBOL$7 && !Symbol.sham && typeof Symbol.iterator == 'symbol'; var getBuiltIn$w = getBuiltIn$x; var isCallable$B = isCallable$E; var isPrototypeOf$e = 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$w('Symbol'); return isCallable$B($Symbol) && isPrototypeOf$e($Symbol.prototype, $Object$4(it)); }; var $String$8 = String; var tryToString$7 = function (argument) { try { return $String$8(argument); } catch (error) { return 'Object'; } }; var isCallable$A = isCallable$E; var tryToString$6 = tryToString$7; var $TypeError$s = TypeError; // `Assert: IsCallable(argument) is true` var aCallable$B = function (argument) { if (isCallable$A(argument)) return argument; throw $TypeError$s(tryToString$6(argument) + ' is not a function'); }; var aCallable$A = aCallable$B; var isNullOrUndefined$d = isNullOrUndefined$f; // `GetMethod` abstract operation // https://tc39.es/ecma262/#sec-getmethod var getMethod$i = function (V, P) { var func = V[P]; return isNullOrUndefined$d(func) ? undefined : aCallable$A(func); }; var call$11 = functionCall; var isCallable$z = isCallable$E; var isObject$F = isObject$G; var $TypeError$r = TypeError; // `OrdinaryToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-ordinarytoprimitive var ordinaryToPrimitive$2 = function (input, pref) { var fn, val; if (pref === 'string' && isCallable$z(fn = input.toString) && !isObject$F(val = call$11(fn, input))) return val; if (isCallable$z(fn = input.valueOf) && !isObject$F(val = call$11(fn, input))) return val; if (pref !== 'string' && isCallable$z(fn = input.toString) && !isObject$F(val = call$11(fn, input))) return val; throw $TypeError$r("Can't convert object to primitive value"); }; var shared$8 = {exports: {}}; var isPure = false; var global$_ = global$12; // eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty$e = Object.defineProperty; var defineGlobalProperty$3 = function (key, value) { try { defineProperty$e(global$_, key, { value: value, configurable: true, writable: true }); } catch (error) { global$_[key] = value; } return value; }; var global$Z = global$12; var defineGlobalProperty$2 = defineGlobalProperty$3; var SHARED = '__core-js_shared__'; var store$3 = global$Z[SHARED] || defineGlobalProperty$2(SHARED, {}); var sharedStore = store$3; var store$2 = sharedStore; (shared$8.exports = function (key, value) { return store$2[key] || (store$2[key] = value !== undefined ? value : {}); })('versions', []).push({ version: '3.30.2', mode: 'global', copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)', license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE', source: 'https://github.com/zloirock/core-js' }); var sharedExports = shared$8.exports; var requireObjectCoercible$j = requireObjectCoercible$l; var $Object$3 = Object; // `ToObject` abstract operation // https://tc39.es/ecma262/#sec-toobject var toObject$y = function (argument) { return $Object$3(requireObjectCoercible$j(argument)); }; var uncurryThis$1s = functionUncurryThis; var toObject$x = toObject$y; var hasOwnProperty = uncurryThis$1s({}.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(toObject$x(it), key); }; var uncurryThis$1r = functionUncurryThis; var id$2 = 0; var postfix = Math.random(); var toString$D = uncurryThis$1r(1.0.toString); var uid$7 = function (key) { return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$D(++id$2 + postfix, 36); }; var global$Y = global$12; var shared$7 = sharedExports; var hasOwn$B = hasOwnProperty_1; var uid$6 = uid$7; var NATIVE_SYMBOL$6 = symbolConstructorDetection; var USE_SYMBOL_AS_UID = useSymbolAsUid; var Symbol$3 = global$Y.Symbol; var WellKnownSymbolsStore$1 = shared$7('wks'); var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$3['for'] || Symbol$3 : Symbol$3 && Symbol$3.withoutSetter || uid$6; var wellKnownSymbol$L = function (name) { if (!hasOwn$B(WellKnownSymbolsStore$1, name)) { WellKnownSymbolsStore$1[name] = NATIVE_SYMBOL$6 && hasOwn$B(Symbol$3, name) ? Symbol$3[name] : createWellKnownSymbol('Symbol.' + name); } return WellKnownSymbolsStore$1[name]; }; var call$10 = functionCall; var isObject$E = isObject$G; var isSymbol$6 = isSymbol$7; var getMethod$h = getMethod$i; var ordinaryToPrimitive$1 = ordinaryToPrimitive$2; var wellKnownSymbol$K = wellKnownSymbol$L; var $TypeError$q = TypeError; var TO_PRIMITIVE$1 = wellKnownSymbol$K('toPrimitive'); // `ToPrimitive` abstract operation // https://tc39.es/ecma262/#sec-toprimitive var toPrimitive$4 = function (input, pref) { if (!isObject$E(input) || isSymbol$6(input)) return input; var exoticToPrim = getMethod$h(input, TO_PRIMITIVE$1); var result; if (exoticToPrim) { if (pref === undefined) pref = 'default'; result = call$10(exoticToPrim, input, pref); if (!isObject$E(result) || isSymbol$6(result)) return result; throw $TypeError$q("Can't convert object to primitive value"); } if (pref === undefined) pref = 'number'; return ordinaryToPrimitive$1(input, pref); }; var toPrimitive$3 = toPrimitive$4; var isSymbol$5 = isSymbol$7; // `ToPropertyKey` abstract operation // https://tc39.es/ecma262/#sec-topropertykey var toPropertyKey$9 = function (argument) { var key = toPrimitive$3(argument, 'string'); return isSymbol$5(key) ? key : key + ''; }; var global$X = global$12; var isObject$D = isObject$G; var document$3 = global$X.document; // typeof document.createElement is 'object' in old IE var EXISTS$1 = isObject$D(document$3) && isObject$D(document$3.createElement); var documentCreateElement$2 = function (it) { return EXISTS$1 ? document$3.createElement(it) : {}; }; var DESCRIPTORS$M = descriptors; var fails$1o = fails$1t; var createElement$1 = documentCreateElement$2; // Thanks to IE8 for its funny defineProperty var ie8DomDefine = !DESCRIPTORS$M && !fails$1o(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$$ = functionCall; var propertyIsEnumerableModule$2 = objectPropertyIsEnumerable; var createPropertyDescriptor$c = createPropertyDescriptor$d; var toIndexedObject$i = toIndexedObject$j; var toPropertyKey$8 = toPropertyKey$9; var hasOwn$A = 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$A(O, P)) return createPropertyDescriptor$c(!call$$(propertyIsEnumerableModule$2.f, O, P), O[P]); }; var objectDefineProperty = {}; var DESCRIPTORS$K = descriptors; var fails$1n = fails$1t; // V8 ~ Chrome 36- // https://bugs.chromium.org/p/v8/issues/detail?id=3334 var v8PrototypeDefineBug = DESCRIPTORS$K && fails$1n(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$C = isObject$G; var $String$7 = String; var $TypeError$p = TypeError; // `Assert: Type(argument) is Object` var anObject$11 = function (argument) { if (isObject$C(argument)) return argument; throw $TypeError$p($String$7(argument) + ' is not an object'); }; var DESCRIPTORS$J = descriptors; var IE8_DOM_DEFINE = ie8DomDefine; var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug; var anObject$10 = anObject$11; var toPropertyKey$7 = toPropertyKey$9; var $TypeError$o = 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$10(O); P = toPropertyKey$7(P); anObject$10(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$10(O); P = toPropertyKey$7(P); anObject$10(Attributes); if (IE8_DOM_DEFINE) try { return $defineProperty$1(O, P, Attributes); } catch (error) { /* empty */ } if ('get' in Attributes || 'set' in Attributes) throw $TypeError$o('Accessors not supported'); if ('value' in Attributes) O[P] = Attributes.value; return O; }; var DESCRIPTORS$I = descriptors; var definePropertyModule$b = objectDefineProperty; var createPropertyDescriptor$b = createPropertyDescriptor$d; var createNonEnumerableProperty$k = DESCRIPTORS$I ? function (object, key, value) { return definePropertyModule$b.f(object, key, createPropertyDescriptor$b(1, value)); } : function (object, key, value) { object[key] = value; return object; }; var makeBuiltIn$4 = {exports: {}}; var DESCRIPTORS$H = descriptors; var hasOwn$z = 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$z(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$1q = functionUncurryThis; var isCallable$y = isCallable$E; var store$1 = sharedStore; var functionToString$1 = uncurryThis$1q(Function.toString); // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper if (!isCallable$y(store$1.inspectSource)) { store$1.inspectSource = function (it) { return functionToString$1(it); }; } var inspectSource$3 = store$1.inspectSource; var global$W = global$12; var isCallable$x = isCallable$E; var WeakMap$2 = global$W.WeakMap; var weakMapBasicDetection = isCallable$x(WeakMap$2) && /native code/.test(String(WeakMap$2)); var shared$6 = sharedExports; var uid$5 = uid$7; var keys$3 = shared$6('keys'); var sharedKey$4 = function (key) { return keys$3[key] || (keys$3[key] = uid$5(key)); }; var hiddenKeys$6 = {}; var NATIVE_WEAK_MAP$1 = weakMapBasicDetection; var global$V = global$12; var isObject$B = isObject$G; var createNonEnumerableProperty$j = createNonEnumerableProperty$k; var hasOwn$y = hasOwnProperty_1; var shared$5 = sharedStore; 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$2, has$6; var enforce = function (it) { return has$6(it) ? get$2(it) : set$4(it, {}); }; var getterFor$1 = function (TYPE) { return function (it) { var state; if (!isObject$B(it) || (state = get$2(it)).type !== TYPE) { throw TypeError$9('Incompatible receiver, ' + TYPE + ' required'); } return state; }; }; if (NATIVE_WEAK_MAP$1 || shared$5.state) { var store = shared$5.state || (shared$5.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 TypeError$9(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; store.set(it, metadata); return metadata; }; get$2 = function (it) { return store.get(it) || {}; }; has$6 = function (it) { return store.has(it); }; } else { var STATE = sharedKey$3('state'); hiddenKeys$5[STATE] = true; set$4 = function (it, metadata) { if (hasOwn$y(it, STATE)) throw TypeError$9(OBJECT_ALREADY_INITIALIZED); metadata.facade = it; createNonEnumerableProperty$j(it, STATE, metadata); return metadata; }; get$2 = function (it) { return hasOwn$y(it, STATE) ? it[STATE] : {}; }; has$6 = function (it) { return hasOwn$y(it, STATE); }; } var internalState = { set: set$4, get: get$2, has: has$6, enforce: enforce, getterFor: getterFor$1 }; var uncurryThis$1p = functionUncurryThis; var fails$1m = fails$1t; var isCallable$w = isCallable$E; var hasOwn$x = hasOwnProperty_1; var DESCRIPTORS$G = descriptors; var CONFIGURABLE_FUNCTION_NAME$2 = functionName.CONFIGURABLE; var inspectSource$2 = inspectSource$3; var InternalStateModule$h = internalState; var enforceInternalState$4 = InternalStateModule$h.enforce; var getInternalState$c = InternalStateModule$h.get; var $String$6 = String; // eslint-disable-next-line es/no-object-defineproperty -- safe var defineProperty$d = Object.defineProperty; var stringSlice$h = uncurryThis$1p(''.slice); var replace$c = uncurryThis$1p(''.replace); var join$8 = uncurryThis$1p([].join); var CONFIGURABLE_LENGTH = DESCRIPTORS$G && !fails$1m(function () { return defineProperty$d(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$6(name), 0, 7) === 'Symbol(') { name = '[' + replace$c($String$6(name), /^Symbol\(([^)]*)\)/, '$1') + ']'; } if (options && options.getter) name = 'get ' + name; if (options && options.setter) name = 'set ' + name; if (!hasOwn$x(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$2 && value.name !== name)) { if (DESCRIPTORS$G) defineProperty$d(value, 'name', { value: name, configurable: true }); else value.name = name; } if (CONFIGURABLE_LENGTH && options && hasOwn$x(options, 'arity') && value.length !== options.arity) { defineProperty$d(value, 'length', { value: options.arity }); } try { if (options && hasOwn$x(options, 'constructor') && options.constructor) { if (DESCRIPTORS$G) defineProperty$d(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$x(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$w(this) && getInternalState$c(this).source || inspectSource$2(this); }, 'toString'); var makeBuiltInExports = makeBuiltIn$4.exports; var isCallable$v = isCallable$E; var definePropertyModule$a = objectDefineProperty; var makeBuiltIn$2 = makeBuiltInExports; var defineGlobalProperty$1 = defineGlobalProperty$3; var defineBuiltIn$p = function (O, key, value, options) { if (!options) options = {}; var simple = options.enumerable; var name = options.name !== undefined ? options.name : key; if (isCallable$v(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$n = 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$m = toIntegerOrInfinity$n; var max$9 = Math.max; var min$c = 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$b = function (index, length) { var integer = toIntegerOrInfinity$m(index); return integer < 0 ? max$9(integer + length, 0) : min$c(integer, length); }; var toIntegerOrInfinity$l = toIntegerOrInfinity$n; var min$b = Math.min; // `ToLength` abstract operation // https://tc39.es/ecma262/#sec-tolength var toLength$d = function (argument) { return argument > 0 ? min$b(toIntegerOrInfinity$l(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991 }; var toLength$c = toLength$d; // `LengthOfArrayLike` abstract operation // https://tc39.es/ecma262/#sec-lengthofarraylike var lengthOfArrayLike$x = function (obj) { return toLength$c(obj.length); }; var toIndexedObject$h = toIndexedObject$j; var toAbsoluteIndex$a = toAbsoluteIndex$b; var lengthOfArrayLike$w = lengthOfArrayLike$x; // `Array.prototype.{ indexOf, includes }` methods implementation var createMethod$8 = function (IS_INCLUDES) { return function ($this, el, fromIndex) { var O = toIndexedObject$h($this); var length = lengthOfArrayLike$w(O); var index = toAbsoluteIndex$a(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$8(true), // `Array.prototype.indexOf` method // https://tc39.es/ecma262/#sec-array.prototype.indexof indexOf: createMethod$8(false) }; var uncurryThis$1o = functionUncurryThis; var hasOwn$w = hasOwnProperty_1; var toIndexedObject$g = toIndexedObject$j; var indexOf$2 = arrayIncludes.indexOf; var hiddenKeys$4 = hiddenKeys$6; var push$k = uncurryThis$1o([].push); var objectKeysInternal = function (object, names) { var O = toIndexedObject$g(object); var i = 0; var result = []; var key; for (key in O) !hasOwn$w(hiddenKeys$4, key) && hasOwn$w(O, key) && push$k(result, key); // Don't enum bug & hidden keys while (names.length > i) if (hasOwn$w(O, key = names[i++])) { ~indexOf$2(result, key) || push$k(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$v = getBuiltIn$x; var uncurryThis$1n = functionUncurryThis; var getOwnPropertyNamesModule$2 = objectGetOwnPropertyNames; var getOwnPropertySymbolsModule$3 = objectGetOwnPropertySymbols; var anObject$$ = anObject$11; var concat$3 = uncurryThis$1n([].concat); // all object keys, includes non-enumerable and symbols var ownKeys$3 = getBuiltIn$v('Reflect', 'ownKeys') || function ownKeys(it) { var keys = getOwnPropertyNamesModule$2.f(anObject$$(it)); var getOwnPropertySymbols = getOwnPropertySymbolsModule$3.f; return getOwnPropertySymbols ? concat$3(keys, getOwnPropertySymbols(it)) : keys; }; var hasOwn$v = hasOwnProperty_1; var ownKeys$2 = ownKeys$3; var getOwnPropertyDescriptorModule$6 = objectGetOwnPropertyDescriptor; var definePropertyModule$9 = objectDefineProperty; var copyConstructorProperties$6 = function (target, source, exceptions) { var keys = ownKeys$2(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$v(target, key) && !(exceptions && hasOwn$v(exceptions, key))) { defineProperty(target, key, getOwnPropertyDescriptor(source, key)); } } }; var fails$1l = fails$1t; var isCallable$u = isCallable$E; var replacement = /#|\.prototype\./; var isForced$5 = function (feature, detection) { var value = data[normalize(feature)]; return value == POLYFILL ? true : value == NATIVE ? false : isCallable$u(detection) ? fails$1l(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$12; var getOwnPropertyDescriptor$a = objectGetOwnPropertyDescriptor.f; var createNonEnumerableProperty$i = createNonEnumerableProperty$k; var defineBuiltIn$o = defineBuiltIn$p; 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] || {}).prototype; } if (target) for (key in source) { sourceProperty = source[key]; if (options.dontCallGetSet) { descriptor = getOwnPropertyDescriptor$a(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$i(sourceProperty, 'sham', true); } defineBuiltIn$o(target, key, sourceProperty, options); } }; var wellKnownSymbol$J = wellKnownSymbol$L; var TO_STRING_TAG$b = wellKnownSymbol$J('toStringTag'); var test$2 = {}; test$2[TO_STRING_TAG$b] = 'z'; var toStringTagSupport = String(test$2) === '[object z]'; var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport; var isCallable$t = isCallable$E; var classofRaw$1 = classofRaw$2; var wellKnownSymbol$I = wellKnownSymbol$L; var TO_STRING_TAG$a = wellKnownSymbol$I('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$a)) == 'string' ? tag // builtinTag case : CORRECT_ARGUMENTS ? classofRaw$1(O) // ES3 arguments fallback : (result = classofRaw$1(O)) == 'Object' && isCallable$t(O.callee) ? 'Arguments' : result; }; var classof$m = classof$n; var $String$5 = String; var toString$C = function (argument) { if (classof$m(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string'); return $String$5(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$_ = anObject$11; 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$_(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$u = getBuiltIn$x; var html$2 = getBuiltIn$u('document', 'documentElement'); /* global ActiveXObject -- old IE, WSH */ var anObject$Z = anObject$11; 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$1 = 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 toPropertyKey$6 = toPropertyKey$9; var definePropertyModule$7 = objectDefineProperty; var createPropertyDescriptor$a = createPropertyDescriptor$d; var createProperty$b = function (object, key, value) { var propertyKey = toPropertyKey$6(key); if (propertyKey in object) definePropertyModule$7.f(object, propertyKey, createPropertyDescriptor$a(0, value)); else object[propertyKey] = value; }; var toAbsoluteIndex$9 = toAbsoluteIndex$b; var lengthOfArrayLike$v = lengthOfArrayLike$x; var createProperty$a = createProperty$b; var $Array$b = Array; var max$8 = Math.max; var arraySliceSimple = function (O, start, end) { var length = lengthOfArrayLike$v(O); var k = toAbsoluteIndex$9(start, length); var fin = toAbsoluteIndex$9(end === undefined ? length : end, length); var result = $Array$b(max$8(fin - k, 0)); for (var n = 0; k < fin; k++, n++) createProperty$a(result, n, O[k]); result.length = n; return result; }; /* eslint-disable es/no-object-getownpropertynames -- safe */ var classof$l = classofRaw$2; var toIndexedObject$e = toIndexedObject$j; var $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f; var arraySlice$b = arraySliceSimple; var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : []; var getWindowNames = function (it) { try { return $getOwnPropertyNames$1(it); } catch (error) { return arraySlice$b(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$c = objectDefineProperty; var defineBuiltInAccessor$j = 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$c.f(target, name, descriptor); }; var wellKnownSymbolWrapped = {}; var wellKnownSymbol$H = wellKnownSymbol$L; wellKnownSymbolWrapped.f = wellKnownSymbol$H; var global$T = global$12; var path$2 = global$T; var path$1 = path$2; var hasOwn$u = hasOwnProperty_1; var wrappedWellKnownSymbolModule$1 = wellKnownSymbolWrapped; var defineProperty$b = objectDefineProperty.f; var wellKnownSymbolDefine = function (NAME) { var Symbol = path$1.Symbol || (path$1.Symbol = {}); if (!hasOwn$u(Symbol, NAME)) defineProperty$b(Symbol, NAME, { value: wrappedWellKnownSymbolModule$1.f(NAME) }); }; var call$_ = functionCall; var getBuiltIn$t = getBuiltIn$x; var wellKnownSymbol$G = wellKnownSymbol$L; var defineBuiltIn$n = defineBuiltIn$p; var symbolDefineToPrimitive = function () { var Symbol = getBuiltIn$t('Symbol'); var SymbolPrototype = Symbol && Symbol.prototype; var valueOf = SymbolPrototype && SymbolPrototype.valueOf; var TO_PRIMITIVE = wellKnownSymbol$G('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$n(SymbolPrototype, TO_PRIMITIVE, function (hint) { return call$_(valueOf, this); }, { arity: 1 }); } }; var defineProperty$a = objectDefineProperty.f; var hasOwn$t = hasOwnProperty_1; var wellKnownSymbol$F = wellKnownSymbol$L; var TO_STRING_TAG$9 = wellKnownSymbol$F('toStringTag'); var setToStringTag$d = function (target, TAG, STATIC) { if (target && !STATIC) target = target.prototype; if (target && !hasOwn$t(target, TO_STRING_TAG$9)) { defineProperty$a(target, TO_STRING_TAG$9, { configurable: true, value: TAG }); } }; var classofRaw = classofRaw$2; var uncurryThis$1m = 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$1m(fn); }; var uncurryThis$1l = functionUncurryThisClause; var aCallable$z = aCallable$B; var NATIVE_BIND$2 = functionBindNative; var bind$i = uncurryThis$1l(uncurryThis$1l.bind); // optional / simple context binding var functionBindContext = function (fn, that) { aCallable$z(fn); return that === undefined ? fn : NATIVE_BIND$2 ? bind$i(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$1k = functionUncurryThis; var fails$1k = fails$1t; var isCallable$s = isCallable$E; var classof$j = classof$n; var getBuiltIn$s = getBuiltIn$x; var inspectSource$1 = inspectSource$3; var noop = function () { /* empty */ }; var empty = []; var construct$1 = getBuiltIn$s('Reflect', 'construct'); var constructorRegExp = /^\s*(?:class|function)\b/; var exec$d = uncurryThis$1k(constructorRegExp.exec); var INCORRECT_TO_STRING$2 = !constructorRegExp.exec(noop); var isConstructorModern = function isConstructor(argument) { if (!isCallable$s(argument)) return false; try { construct$1(noop, empty, argument); return true; } catch (error) { return false; } }; var isConstructorLegacy = function isConstructor(argument) { if (!isCallable$s(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$d(constructorRegExp, inspectSource$1(argument)); } catch (error) { return true; } }; isConstructorLegacy.sham = true; // `IsConstructor` abstract operation // https://tc39.es/ecma262/#sec-isconstructor var isConstructor$7 = !construct$1 || fails$1k(function () { var called; return isConstructorModern(isConstructorModern.call) || !isConstructorModern(Object) || !isConstructorModern(function () { called = true; }) || called; }) ? isConstructorLegacy : isConstructorModern; var isArray$9 = isArray$a; var isConstructor$6 = isConstructor$7; var isObject$A = isObject$G; var wellKnownSymbol$E = wellKnownSymbol$L; var SPECIES$6 = wellKnownSymbol$E('species'); var $Array$a = 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 (isCo