Skip to content

A free open source IT asset/license management system

Fixed #14483 - adds deeplinking to search/sort/pagination

snipe566ba4783e1e
diff --git a/.env.example b/.env.example
index f8e1df2987..fd90391973 100644
--- a/.env.example
+++ b/.env.example
@@ -86,6 +86,7 @@ COOKIE_DOMAIN=null
SECURE_COOKIES=false
API_TOKEN_EXPIRATION_YEARS=15
BS_TABLE_STORAGE=cookieStorage
+BS_TABLE_DEEPLINK=true
# --------------------------------------------
# OPTIONAL: SECURITY HEADER SETTINGS
diff --git a/config/session.php b/config/session.php
index a47294a8cb..5c6cb27a9f 100644
--- a/config/session.php
+++ b/config/session.php
@@ -174,4 +174,17 @@ return [
'bs_table_storage' => env('BS_TABLE_STORAGE', 'cookieStorage'),
+
+ /*
+ |--------------------------------------------------------------------------
+ | Bootstrap Table Enable Deeplinking
+ |--------------------------------------------------------------------------
+ |
+ | Use deeplinks to directly link to search results, sorting, and pagination
+ |
+ | More info: https://github.com/generals-space/bootstrap-table-addrbar/blob/master/readme(EN).md
+ */
+
+ 'bs_table_addrbar' => env('BS_TABLE_DEEPLINK', true),
+
];
diff --git a/public/js/dist/bootstrap-table.js b/public/js/dist/bootstrap-table.js
index 7d45dced5d..6e6d74268f 100644
--- a/public/js/dist/bootstrap-table.js
+++ b/public/js/dist/bootstrap-table.js
@@ -20951,6 +20951,3265 @@
}));
+(function (global, factory) {
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
+ typeof define === 'function' && define.amd ? define(['jquery'], factory) :
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
+})(this, (function ($$6) { 'use strict';
+
+ function _callSuper(t, o, e) {
+ return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e));
+ }
+ function _isNativeReflectConstruct() {
+ try {
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
+ } catch (t) {}
+ return (_isNativeReflectConstruct = function () {
+ return !!t;
+ })();
+ }
+ function _iterableToArrayLimit(r, l) {
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
+ if (null != t) {
+ var e,
+ n,
+ i,
+ u,
+ a = [],
+ f = !0,
+ o = !1;
+ try {
+ if (i = (t = t.call(r)).next, 0 === l) {
+ if (Object(t) !== t) return;
+ f = !1;
+ } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
+ } catch (r) {
+ o = !0, n = r;
+ } finally {
+ try {
+ if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
+ } finally {
+ if (o) throw n;
+ }
+ }
+ return a;
+ }
+ }
+ function _toPrimitive(t, r) {
+ if ("object" != typeof t || !t) return t;
+ var e = t[Symbol.toPrimitive];
+ if (void 0 !== e) {
+ var i = e.call(t, r || "default");
+ if ("object" != typeof i) return i;
+ throw new TypeError("@@toPrimitive must return a primitive value.");
+ }
+ return ("string" === r ? String : Number)(t);
+ }
+ function _toPropertyKey(t) {
+ var i = _toPrimitive(t, "string");
+ return "symbol" == typeof i ? i : String(i);
+ }
+ function _classCallCheck(instance, Constructor) {
+ if (!(instance instanceof Constructor)) {
+ throw new TypeError("Cannot call a class as a function");
+ }
+ }
+ function _defineProperties(target, props) {
+ for (var i = 0; i < props.length; i++) {
+ var descriptor = props[i];
+ descriptor.enumerable = descriptor.enumerable || false;
+ descriptor.configurable = true;
+ if ("value" in descriptor) descriptor.writable = true;
+ Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
+ }
+ }
+ function _createClass(Constructor, protoProps, staticProps) {
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
+ if (staticProps) _defineProperties(Constructor, staticProps);
+ Object.defineProperty(Constructor, "prototype", {
+ writable: false
+ });
+ return Constructor;
+ }
+ function _inherits(subClass, superClass) {
+ if (typeof superClass !== "function" && superClass !== null) {
+ throw new TypeError("Super expression must either be null or a function");
+ }
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
+ constructor: {
+ value: subClass,
+ writable: true,
+ configurable: true
+ }
+ });
+ Object.defineProperty(subClass, "prototype", {
+ writable: false
+ });
+ if (superClass) _setPrototypeOf(subClass, superClass);
+ }
+ function _getPrototypeOf(o) {
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
+ return o.__proto__ || Object.getPrototypeOf(o);
+ };
+ return _getPrototypeOf(o);
+ }
+ function _setPrototypeOf(o, p) {
+ _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
+ o.__proto__ = p;
+ return o;
+ };
+ return _setPrototypeOf(o, p);
+ }
+ function _assertThisInitialized(self) {
+ if (self === void 0) {
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ }
+ return self;
+ }
+ function _possibleConstructorReturn(self, call) {
+ if (call && (typeof call === "object" || typeof call === "function")) {
+ return call;
+ } else if (call !== void 0) {
+ throw new TypeError("Derived constructors may only return object or undefined");
+ }
+ return _assertThisInitialized(self);
+ }
+ function _superPropBase(object, property) {
+ while (!Object.prototype.hasOwnProperty.call(object, property)) {
+ object = _getPrototypeOf(object);
+ if (object === null) break;
+ }
+ return object;
+ }
+ function _get() {
+ if (typeof Reflect !== "undefined" && Reflect.get) {
+ _get = Reflect.get.bind();
+ } else {
+ _get = function _get(target, property, receiver) {
+ var base = _superPropBase(target, property);
+ if (!base) return;
+ var desc = Object.getOwnPropertyDescriptor(base, property);
+ if (desc.get) {
+ return desc.get.call(arguments.length < 3 ? target : receiver);
+ }
+ return desc.value;
+ };
+ }
+ return _get.apply(this, arguments);
+ }
+ function _slicedToArray(arr, i) {
+ return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
+ }
+ function _arrayWithHoles(arr) {
+ if (Array.isArray(arr)) return arr;
+ }
+ function _unsupportedIterableToArray(o, minLen) {
+ if (!o) return;
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
+ var n = Object.prototype.toString.call(o).slice(8, -1);
+ if (n === "Object" && o.constructor) n = o.constructor.name;
+ if (n === "Map" || n === "Set") return Array.from(o);
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
+ }
+ function _arrayLikeToArray(arr, len) {
+ if (len == null || len > arr.length) len = arr.length;
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
+ return arr2;
+ }
+ function _nonIterableRest() {
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
+ }
+
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
+
+ var check = function (it) {
+ return it && it.Math === Math && it;
+ };
+
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
+ var global$g =
+ // 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$l = function (exec) {
+ try {
+ return !!exec();
+ } catch (error) {
+ return true;
+ }
+ };
+
+ var fails$k = fails$l;
+
+ // Detect IE8's incomplete defineProperty implementation
+ var descriptors = !fails$k(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
+ });
+
+ var fails$j = fails$l;
+
+ var functionBindNative = !fails$j(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$2 = functionBindNative;
+
+ var call$d = Function.prototype.call;
+
+ var functionCall = NATIVE_BIND$2 ? call$d.bind(call$d) : function () {
+ return call$d.apply(call$d, arguments);
+ };
+
+ var objectPropertyIsEnumerable = {};
+
+ var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
+
+ // Nashorn ~ JDK8 bug
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
+
+ // `Object.prototype.propertyIsEnumerable` method implementation
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
+ return !!descriptor && descriptor.enumerable;
+ } : $propertyIsEnumerable$1;
+
+ var createPropertyDescriptor$5 = function (bitmap, value) {
+ return {
+ enumerable: !(bitmap & 1),
+ configurable: !(bitmap & 2),
+ writable: !(bitmap & 4),
+ value: value
+ };
+ };
+
+ var NATIVE_BIND$1 = functionBindNative;
+
+ var FunctionPrototype$1 = Function.prototype;
+ var call$c = FunctionPrototype$1.call;
+ var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$c, call$c);
+
+ var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
+ return function () {
+ return call$c.apply(fn, arguments);
+ };
+ };
+
+ var uncurryThis$i = functionUncurryThis;
+
+ var toString$7 = uncurryThis$i({}.toString);
+ var stringSlice$4 = uncurryThis$i(''.slice);
+
+ var classofRaw$2 = function (it) {
+ return stringSlice$4(toString$7(it), 8, -1);
+ };
+
+ var uncurryThis$h = functionUncurryThis;
+ var fails$i = fails$l;
+ var classof$8 = classofRaw$2;
+
+ var $Object$4 = Object;
+ var split$1 = uncurryThis$h(''.split);
+
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
+ var indexedObject = fails$i(function () {
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
+ // eslint-disable-next-line no-prototype-builtins -- safe
+ return !$Object$4('z').propertyIsEnumerable(0);
+ }) ? function (it) {
+ return classof$8(it) === 'String' ? split$1(it, '') : $Object$4(it);
+ } : $Object$4;
+
+ // we can't use just `it == null` since of `document.all` special case
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
+ var isNullOrUndefined$4 = function (it) {
+ return it === null || it === undefined;
+ };
+
+ var isNullOrUndefined$3 = isNullOrUndefined$4;
+
+ var $TypeError$b = TypeError;
+
+ // `RequireObjectCoercible` abstract operation
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
+ var requireObjectCoercible$4 = function (it) {
+ if (isNullOrUndefined$3(it)) throw new $TypeError$b("Can't call method on " + it);
+ return it;
+ };
+
+ // toObject with fallback for non-array-like ES3 strings
+ var IndexedObject$1 = indexedObject;
+ var requireObjectCoercible$3 = requireObjectCoercible$4;
+
+ var toIndexedObject$6 = function (it) {
+ return IndexedObject$1(requireObjectCoercible$3(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$h = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
+ return typeof argument == 'function' || argument === documentAll;
+ } : function (argument) {
+ return typeof argument == 'function';
+ };
+
+ var isCallable$g = isCallable$h;
+
+ var isObject$a = function (it) {
+ return typeof it == 'object' ? it !== null : isCallable$g(it);
+ };
+
+ var global$f = global$g;
+ var isCallable$f = isCallable$h;
+
+ var aFunction = function (argument) {
+ return isCallable$f(argument) ? argument : undefined;
+ };
+
+ var getBuiltIn$4 = function (namespace, method) {
+ return arguments.length < 2 ? aFunction(global$f[namespace]) : global$f[namespace] && global$f[namespace][method];
+ };
+
+ var uncurryThis$g = functionUncurryThis;
+
+ var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
+
+ var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
+
+ var global$e = global$g;
+ var userAgent = engineUserAgent;
+
+ var process = global$e.process;
+ var Deno = global$e.Deno;
+ var versions = process && process.versions || Deno && Deno.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) {
+ match = userAgent.match(/Edge\/(\d+)/);
+ if (!match || match[1] >= 74) {
+ match = userAgent.match(/Chrome\/(\d+)/);
+ if (match) version = +match[1];
+ }
+ }
+
+ var engineV8Version = version;
+
+ /* eslint-disable es/no-symbol -- required for testing */
+ var V8_VERSION$2 = engineV8Version;
+ var fails$h = fails$l;
+ var global$d = global$g;
+
+ var $String$5 = global$d.String;
+
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$h(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$5(symbol) || !(Object(symbol) instanceof Symbol) ||
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
+ !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
+ });
+
+ /* eslint-disable es/no-symbol -- required for testing */
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
+
+ var useSymbolAsUid = NATIVE_SYMBOL$1
+ && !Symbol.sham
+ && typeof Symbol.iterator == 'symbol';
+
+ var getBuiltIn$3 = getBuiltIn$4;
+ var isCallable$e = isCallable$h;
+ var isPrototypeOf$2 = objectIsPrototypeOf;
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
+
+ var $Object$3 = Object;
+
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
+ return typeof it == 'symbol';
+ } : function (it) {
+ var $Symbol = getBuiltIn$3('Symbol');
+ return isCallable$e($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
+ };
+
+ var $String$4 = String;
+
+ var tryToString$2 = function (argument) {
+ try {
+ return $String$4(argument);
+ } catch (error) {
+ return 'Object';
+ }
+ };
+
+ var isCallable$d = isCallable$h;
+ var tryToString$1 = tryToString$2;
+
+ var $TypeError$a = TypeError;
+
+ // `Assert: IsCallable(argument) is true`
+ var aCallable$4 = function (argument) {
+ if (isCallable$d(argument)) return argument;
+ throw new $TypeError$a(tryToString$1(argument) + ' is not a function');
+ };
+
+ var aCallable$3 = aCallable$4;
+ var isNullOrUndefined$2 = isNullOrUndefined$4;
+
+ // `GetMethod` abstract operation
+ // https://tc39.es/ecma262/#sec-getmethod
+ var getMethod$3 = function (V, P) {
+ var func = V[P];
+ return isNullOrUndefined$2(func) ? undefined : aCallable$3(func);
+ };
+
+ var call$b = functionCall;
+ var isCallable$c = isCallable$h;
+ var isObject$9 = isObject$a;
+
+ var $TypeError$9 = TypeError;
+
+ // `OrdinaryToPrimitive` abstract operation
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
+ var ordinaryToPrimitive$1 = function (input, pref) {
+ var fn, val;
+ if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$9(val = call$b(fn, input))) return val;
+ if (isCallable$c(fn = input.valueOf) && !isObject$9(val = call$b(fn, input))) return val;
+ if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$9(val = call$b(fn, input))) return val;
+ throw new $TypeError$9("Can't convert object to primitive value");
+ };
+
+ var sharedStore = {exports: {}};
+
+ var isPure = false;
+
+ var global$c = global$g;
+
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
+ var defineProperty$6 = Object.defineProperty;
+
+ var defineGlobalProperty$3 = function (key, value) {
+ try {
+ defineProperty$6(global$c, key, { value: value, configurable: true, writable: true });
+ } catch (error) {
+ global$c[key] = value;
+ } return value;
+ };
+
+ var globalThis$1 = global$g;
+ 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$4 = function (key, value) {
+ return store$2[key] || (store$2[key] = value || {});
+ };
+
+ var requireObjectCoercible$2 = requireObjectCoercible$4;
+
+ var $Object$2 = Object;
+
+ // `ToObject` abstract operation
+ // https://tc39.es/ecma262/#sec-toobject
+ var toObject$4 = function (argument) {
+ return $Object$2(requireObjectCoercible$2(argument));
+ };
+
+ var uncurryThis$f = functionUncurryThis;
+ var toObject$3 = toObject$4;
+
+ var hasOwnProperty = uncurryThis$f({}.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$3(it), key);
+ };
+
+ var uncurryThis$e = functionUncurryThis;
+
+ var id = 0;
+ var postfix = Math.random();
+ var toString$6 = uncurryThis$e(1.0.toString);
+
+ var uid$2 = function (key) {
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$6(++id + postfix, 36);
+ };
+
+ var global$b = global$g;
+ var shared$3 = shared$4;
+ var hasOwn$a = hasOwnProperty_1;
+ var uid$1 = uid$2;
+ var NATIVE_SYMBOL = symbolConstructorDetection;
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
+
+ var Symbol$1 = global$b.Symbol;
+ var WellKnownSymbolsStore = shared$3('wks');
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
+
+ var wellKnownSymbol$f = function (name) {
+ if (!hasOwn$a(WellKnownSymbolsStore, name)) {
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$a(Symbol$1, name)
+ ? Symbol$1[name]
+ : createWellKnownSymbol('Symbol.' + name);
+ } return WellKnownSymbolsStore[name];
+ };
+
+ var call$a = functionCall;
+ var isObject$8 = isObject$a;
+ var isSymbol$1 = isSymbol$2;
+ var getMethod$2 = getMethod$3;
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
+ var wellKnownSymbol$e = wellKnownSymbol$f;
+
+ var $TypeError$8 = TypeError;
+ var TO_PRIMITIVE = wellKnownSymbol$e('toPrimitive');
+
+ // `ToPrimitive` abstract operation
+ // https://tc39.es/ecma262/#sec-toprimitive
+ var toPrimitive$1 = function (input, pref) {
+ if (!isObject$8(input) || isSymbol$1(input)) return input;
+ var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
+ var result;
+ if (exoticToPrim) {
+ if (pref === undefined) pref = 'default';
+ result = call$a(exoticToPrim, input, pref);
+ if (!isObject$8(result) || isSymbol$1(result)) return result;
+ throw new $TypeError$8("Can't convert object to primitive value");
+ }
+ if (pref === undefined) pref = 'number';
+ return ordinaryToPrimitive(input, pref);
+ };
+
+ var toPrimitive = toPrimitive$1;
+ var isSymbol = isSymbol$2;
+
+ // `ToPropertyKey` abstract operation
+ // https://tc39.es/ecma262/#sec-topropertykey
+ var toPropertyKey$2 = function (argument) {
+ var key = toPrimitive(argument, 'string');
+ return isSymbol(key) ? key : key + '';
+ };
+
+ var global$a = global$g;
+ var isObject$7 = isObject$a;
+
+ var document$1 = global$a.document;
+ // typeof document.createElement is 'object' in old IE
+ var EXISTS$1 = isObject$7(document$1) && isObject$7(document$1.createElement);
+
+ var documentCreateElement$2 = function (it) {
+ return EXISTS$1 ? document$1.createElement(it) : {};
+ };
+
+ var DESCRIPTORS$e = descriptors;
+ var fails$g = fails$l;
+ var createElement = documentCreateElement$2;
+
+ // Thanks to IE8 for its funny defineProperty
+ var ie8DomDefine = !DESCRIPTORS$e && !fails$g(function () {
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
+ return Object.defineProperty(createElement('div'), 'a', {
+ get: function () { return 7; }
+ }).a !== 7;
+ });
+
+ var DESCRIPTORS$d = descriptors;
+ var call$9 = functionCall;
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
+ var createPropertyDescriptor$4 = createPropertyDescriptor$5;
+ var toIndexedObject$5 = toIndexedObject$6;
+ var toPropertyKey$1 = toPropertyKey$2;
+ var hasOwn$9 = hasOwnProperty_1;
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
+
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
+
+ // `Object.getOwnPropertyDescriptor` method
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$d ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
+ O = toIndexedObject$5(O);
+ P = toPropertyKey$1(P);
+ if (IE8_DOM_DEFINE$1) try {
+ return $getOwnPropertyDescriptor$1(O, P);
+ } catch (error) { /* empty */ }
+ if (hasOwn$9(O, P)) return createPropertyDescriptor$4(!call$9(propertyIsEnumerableModule$1.f, O, P), O[P]);
+ };
+
+ var objectDefineProperty = {};
+
+ var DESCRIPTORS$c = descriptors;
+ var fails$f = fails$l;
+
+ // V8 ~ Chrome 36-
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
+ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$f(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$6 = isObject$a;
+
+ var $String$3 = String;
+ var $TypeError$7 = TypeError;
+
+ // `Assert: Type(argument) is Object`
+ var anObject$b = function (argument) {
+ if (isObject$6(argument)) return argument;
+ throw new $TypeError$7($String$3(argument) + ' is not an object');
+ };
+
+ var DESCRIPTORS$b = descriptors;
+ var IE8_DOM_DEFINE = ie8DomDefine;
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
+ var anObject$a = anObject$b;
+ var toPropertyKey = toPropertyKey$2;
+
+ var $TypeError$6 = TypeError;
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
+ var $defineProperty = Object.defineProperty;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
+ var ENUMERABLE = 'enumerable';
+ var CONFIGURABLE$1 = 'configurable';
+ var WRITABLE = 'writable';
+
+ // `Object.defineProperty` method
+ // https://tc39.es/ecma262/#sec-object.defineproperty
+ objectDefineProperty.f = DESCRIPTORS$b ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
+ anObject$a(O);
+ P = toPropertyKey(P);
+ anObject$a(Attributes);
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
+ var current = $getOwnPropertyDescriptor(O, P);
+ if (current && current[WRITABLE]) {
+ O[P] = Attributes.value;
+ Attributes = {
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
+ writable: false
+ };
+ }
+ } return $defineProperty(O, P, Attributes);
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
+ anObject$a(O);
+ P = toPropertyKey(P);
+ anObject$a(Attributes);
+ if (IE8_DOM_DEFINE) try {
+ return $defineProperty(O, P, Attributes);
+ } catch (error) { /* empty */ }
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$6('Accessors not supported');
+ if ('value' in Attributes) O[P] = Attributes.value;
+ return O;
+ };
+
+ var DESCRIPTORS$a = descriptors;
+ var definePropertyModule$4 = objectDefineProperty;
+ var createPropertyDescriptor$3 = createPropertyDescriptor$5;
+
+ var createNonEnumerableProperty$5 = DESCRIPTORS$a ? function (object, key, value) {
+ return definePropertyModule$4.f(object, key, createPropertyDescriptor$3(1, value));
+ } : function (object, key, value) {
+ object[key] = value;
+ return object;
+ };
+
+ var makeBuiltIn$3 = {exports: {}};
+
+ var DESCRIPTORS$9 = descriptors;
+ var hasOwn$8 = hasOwnProperty_1;
+
+ var FunctionPrototype = Function.prototype;
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
+ var getDescriptor = DESCRIPTORS$9 && Object.getOwnPropertyDescriptor;
+
+ var EXISTS = hasOwn$8(FunctionPrototype, 'name');
+ // additional protection from minified / mangled / dropped function names
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$9 || (DESCRIPTORS$9 && getDescriptor(FunctionPrototype, 'name').configurable));
+
+ var functionName = {
+ EXISTS: EXISTS,
+ PROPER: PROPER,
+ CONFIGURABLE: CONFIGURABLE
+ };
+
+ var uncurryThis$d = functionUncurryThis;
+ var isCallable$b = isCallable$h;
+ var store$1 = sharedStoreExports;
+
+ var functionToString = uncurryThis$d(Function.toString);
+
+ // this helper broken in `[email protected]`, so we can't use `shared` helper
+ if (!isCallable$b(store$1.inspectSource)) {
+ store$1.inspectSource = function (it) {
+ return functionToString(it);
+ };
+ }
+
+ var inspectSource$2 = store$1.inspectSource;
+
+ var global$9 = global$g;
+ var isCallable$a = isCallable$h;
+
+ var WeakMap$1 = global$9.WeakMap;
+
+ var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
+
+ var shared$2 = shared$4;
+ var uid = uid$2;
+
+ var keys = shared$2('keys');
+
+ var sharedKey$3 = function (key) {
+ return keys[key] || (keys[key] = uid(key));
+ };
+
+ var hiddenKeys$4 = {};
+
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
+ var global$8 = global$g;
+ var isObject$5 = isObject$a;
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
+ var hasOwn$7 = hasOwnProperty_1;
+ var shared$1 = sharedStoreExports;
+ var sharedKey$2 = sharedKey$3;
+ var hiddenKeys$3 = hiddenKeys$4;
+
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
+ var TypeError$2 = global$8.TypeError;
+ var WeakMap = global$8.WeakMap;
+ var set, get, has;
+
+ var enforce = function (it) {
+ return has(it) ? get(it) : set(it, {});
+ };
+
+ var getterFor = function (TYPE) {
+ return function (it) {
+ var state;
+ if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
+ throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
+ } return state;
+ };
+ };
+
+ if (NATIVE_WEAK_MAP || shared$1.state) {
+ var store = shared$1.state || (shared$1.state = new WeakMap());
+ /* 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 = function (it, metadata) {
+ if (store.has(it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
+ metadata.facade = it;
+ store.set(it, metadata);
+ return metadata;
+ };
+ get = function (it) {
+ return store.get(it) || {};
+ };
+ has = function (it) {
+ return store.has(it);
+ };
+ } else {
+ var STATE = sharedKey$2('state');
+ hiddenKeys$3[STATE] = true;
+ set = function (it, metadata) {
+ if (hasOwn$7(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
+ metadata.facade = it;
+ createNonEnumerableProperty$4(it, STATE, metadata);
+ return metadata;
+ };
+ get = function (it) {
+ return hasOwn$7(it, STATE) ? it[STATE] : {};
+ };
+ has = function (it) {
+ return hasOwn$7(it, STATE);
+ };
+ }
+
+ var internalState = {
+ set: set,
+ get: get,
+ has: has,
+ enforce: enforce,
+ getterFor: getterFor
+ };
+
+ var uncurryThis$c = functionUncurryThis;
+ var fails$e = fails$l;
+ var isCallable$9 = isCallable$h;
+ var hasOwn$6 = hasOwnProperty_1;
+ var DESCRIPTORS$8 = descriptors;
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
+ var inspectSource$1 = inspectSource$2;
+ var InternalStateModule$3 = internalState;
+
+ var enforceInternalState = InternalStateModule$3.enforce;
+ var getInternalState$3 = InternalStateModule$3.get;
+ var $String$2 = String;
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
+ var defineProperty$5 = Object.defineProperty;
+ var stringSlice$3 = uncurryThis$c(''.slice);
+ var replace$2 = uncurryThis$c(''.replace);
+ var join$1 = uncurryThis$c([].join);
+
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$8 && !fails$e(function () {
+ return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
+ });
+
+ var TEMPLATE = String(String).split('String');
+
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
+ if (stringSlice$3($String$2(name), 0, 7) === 'Symbol(') {
+ name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
+ }
+ if (options && options.getter) name = 'get ' + name;
+ if (options && options.setter) name = 'set ' + name;
+ if (!hasOwn$6(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
+ if (DESCRIPTORS$8) defineProperty$5(value, 'name', { value: name, configurable: true });
+ else value.name = name;
+ }
+ if (CONFIGURABLE_LENGTH && options && hasOwn$6(options, 'arity') && value.length !== options.arity) {
+ defineProperty$5(value, 'length', { value: options.arity });
+ }
+ try {
+ if (options && hasOwn$6(options, 'constructor') && options.constructor) {
+ if (DESCRIPTORS$8) defineProperty$5(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(value);
+ if (!hasOwn$6(state, 'source')) {
+ state.source = join$1(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$2(function toString() {
+ return isCallable$9(this) && getInternalState$3(this).source || inspectSource$1(this);
+ }, 'toString');
+
+ var makeBuiltInExports = makeBuiltIn$3.exports;
+
+ var isCallable$8 = isCallable$h;
+ var definePropertyModule$3 = objectDefineProperty;
+ var makeBuiltIn$1 = makeBuiltInExports;
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
+
+ var defineBuiltIn$8 = function (O, key, value, options) {
+ if (!options) options = {};
+ var simple = options.enumerable;
+ var name = options.name !== undefined ? options.name : key;
+ if (isCallable$8(value)) makeBuiltIn$1(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$3.f(O, key, {
+ value: value,
+ enumerable: false,
+ configurable: !options.nonConfigurable,
+ writable: !options.nonWritable
+ });
+ } return O;
+ };
+
+ var objectGetOwnPropertyNames = {};
+
+ var ceil = Math.ceil;
+ var floor$1 = 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$1 : ceil)(n);
+ };
+
+ var trunc = mathTrunc;
+
+ // `ToIntegerOrInfinity` abstract operation
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
+ var toIntegerOrInfinity$3 = function (argument) {
+ var number = +argument;
+ // eslint-disable-next-line no-self-compare -- NaN check
+ return number !== number || number === 0 ? 0 : trunc(number);
+ };
+
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
+
+ var max = Math.max;
+ var min$1 = 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$1 = function (index, length) {
+ var integer = toIntegerOrInfinity$2(index);
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
+ };
+
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
+
+ var min = Math.min;
+
+ // `ToLength` abstract operation
+ // https://tc39.es/ecma262/#sec-tolength
+ var toLength$1 = function (argument) {
+ var len = toIntegerOrInfinity$1(argument);
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
+ };
+
+ var toLength = toLength$1;
+
+ // `LengthOfArrayLike` abstract operation
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
+ var lengthOfArrayLike$2 = function (obj) {
+ return toLength(obj.length);
+ };
+
+ var toIndexedObject$4 = toIndexedObject$6;
+ var toAbsoluteIndex = toAbsoluteIndex$1;
+ var lengthOfArrayLike$1 = lengthOfArrayLike$2;
+
+ // `Array.prototype.{ indexOf, includes }` methods implementation
+ var createMethod$2 = function (IS_INCLUDES) {
+ return function ($this, el, fromIndex) {
+ var O = toIndexedObject$4($this);
+ var length = lengthOfArrayLike$1(O);
+ if (length === 0) return !IS_INCLUDES && -1;
+ var index = toAbsoluteIndex(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$2(true),
+ // `Array.prototype.indexOf` method
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
+ indexOf: createMethod$2(false)
+ };
+
+ var uncurryThis$b = functionUncurryThis;
+ var hasOwn$5 = hasOwnProperty_1;
+ var toIndexedObject$3 = toIndexedObject$6;
+ var indexOf$1 = arrayIncludes.indexOf;
+ var hiddenKeys$2 = hiddenKeys$4;
+
+ var push$2 = uncurryThis$b([].push);
+
+ var objectKeysInternal = function (object, names) {
+ var O = toIndexedObject$3(object);
+ var i = 0;
+ var result = [];
+ var key;
+ for (key in O) !hasOwn$5(hiddenKeys$2, key) && hasOwn$5(O, key) && push$2(result, key);
+ // Don't enum bug & hidden keys
+ while (names.length > i) if (hasOwn$5(O, key = names[i++])) {
+ ~indexOf$1(result, key) || push$2(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$1 = 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$1);
+ };
+
+ var objectGetOwnPropertySymbols = {};
+
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
+
+ var getBuiltIn$2 = getBuiltIn$4;
+ var uncurryThis$a = functionUncurryThis;
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
+ var anObject$9 = anObject$b;
+
+ var concat$1 = uncurryThis$a([].concat);
+
+ // all object keys, includes non-enumerable and symbols
+ var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
+ var keys = getOwnPropertyNamesModule.f(anObject$9(it));
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
+ };
+
+ var hasOwn$4 = hasOwnProperty_1;
+ var ownKeys = ownKeys$1;
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
+ var definePropertyModule$2 = objectDefineProperty;
+
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
+ var keys = ownKeys(source);
+ var defineProperty = definePropertyModule$2.f;
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
+ for (var i = 0; i < keys.length; i++) {
+ var key = keys[i];
+ if (!hasOwn$4(target, key) && !(exceptions && hasOwn$4(exceptions, key))) {
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
+ }
+ }
+ };
+
+ var fails$d = fails$l;
+ var isCallable$7 = isCallable$h;
+
+ var replacement = /#|\.prototype\./;
+
+ var isForced$1 = function (feature, detection) {
+ var value = data[normalize(feature)];
+ return value === POLYFILL ? true
+ : value === NATIVE ? false
+ : isCallable$7(detection) ? fails$d(detection)
+ : !!detection;
+ };
+
+ var normalize = isForced$1.normalize = function (string) {
+ return String(string).replace(replacement, '.').toLowerCase();
+ };
+
+ var data = isForced$1.data = {};
+ var NATIVE = isForced$1.NATIVE = 'N';
+ var POLYFILL = isForced$1.POLYFILL = 'P';
+
+ var isForced_1 = isForced$1;
+
+ var global$7 = global$g;
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
+ var defineBuiltIn$7 = defineBuiltIn$8;
+ var defineGlobalProperty = defineGlobalProperty$3;
+ var copyConstructorProperties = copyConstructorProperties$1;
+ var isForced = 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$7;
+ } else if (STATIC) {
+ target = global$7[TARGET] || defineGlobalProperty(TARGET, {});
+ } else {
+ target = global$7[TARGET] && global$7[TARGET].prototype;
+ }
+ if (target) for (key in source) {
+ sourceProperty = source[key];
+ if (options.dontCallGetSet) {
+ descriptor = getOwnPropertyDescriptor$1(target, key);
+ targetProperty = descriptor && descriptor.value;
+ } else targetProperty = target[key];
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
+ // contained in target
+ if (!FORCED && targetProperty !== undefined) {
+ if (typeof sourceProperty == typeof targetProperty) continue;
+ copyConstructorProperties(sourceProperty, targetProperty);
+ }
+ // add a flag to not completely full polyfills
+ if (options.sham || (targetProperty && targetProperty.sham)) {
+ createNonEnumerableProperty$3(sourceProperty, 'sham', true);
+ }
+ defineBuiltIn$7(target, key, sourceProperty, options);
+ }
+ };
+
+ var classof$7 = classofRaw$2;
+
+ // `IsArray` abstract operation
+ // https://tc39.es/ecma262/#sec-isarray
+ // eslint-disable-next-line es/no-array-isarray -- safe
+ var isArray$2 = Array.isArray || function isArray(argument) {
+ return classof$7(argument) === 'Array';
+ };
+
+ var $TypeError$5 = TypeError;
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
+
+ var doesNotExceedSafeInteger$1 = function (it) {
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$5('Maximum allowed index exceeded');
+ return it;
+ };
+
+ var DESCRIPTORS$7 = descriptors;
+ var definePropertyModule$1 = objectDefineProperty;
+ var createPropertyDescriptor$2 = createPropertyDescriptor$5;
+
+ var createProperty$1 = function (object, key, value) {
+ if (DESCRIPTORS$7) definePropertyModule$1.f(object, key, createPropertyDescriptor$2(0, value));
+ else object[key] = value;
+ };
+
+ var wellKnownSymbol$d = wellKnownSymbol$f;
+
+ var TO_STRING_TAG$2 = wellKnownSymbol$d('toStringTag');
+ var test = {};
+
+ test[TO_STRING_TAG$2] = 'z';
+
+ var toStringTagSupport = String(test) === '[object z]';
+
+ var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
+ var isCallable$6 = isCallable$h;
+ var classofRaw$1 = classofRaw$2;
+ var wellKnownSymbol$c = wellKnownSymbol$f;
+
+ var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
+ var $Object$1 = 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$6 = 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$1(it), TO_STRING_TAG$1)) == 'string' ? tag
+ // builtinTag case
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
+ // ES3 arguments fallback
+ : (result = classofRaw$1(O)) === 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
+ };
+
+ var uncurryThis$9 = functionUncurryThis;
+ var fails$c = fails$l;
+ var isCallable$5 = isCallable$h;
+ var classof$5 = classof$6;
+ var getBuiltIn$1 = getBuiltIn$4;
+ var inspectSource = inspectSource$2;
+
+ var noop = function () { /* empty */ };
+ var construct = getBuiltIn$1('Reflect', 'construct');
+ var constructorRegExp = /^\s*(?:class|function)\b/;
+ var exec$1 = uncurryThis$9(constructorRegExp.exec);
+ var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
+
+ var isConstructorModern = function isConstructor(argument) {
+ if (!isCallable$5(argument)) return false;
+ try {
+ construct(noop, [], argument);
+ return true;
+ } catch (error) {
+ return false;
+ }
+ };
+
+ var isConstructorLegacy = function isConstructor(argument) {
+ if (!isCallable$5(argument)) return false;
+ switch (classof$5(argument)) {
+ case 'AsyncFunction':
+ case 'GeneratorFunction':
+ case 'AsyncGeneratorFunction': return false;
+ }
+ try {
+ // we can't check .prototype since constructors produced by .bind haven't it
+ // `Function#toString` throws on some built-it function in some legacy engines
+ // (for example, `DOMQuad` and similar in FF41-)
+ return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
+ } catch (error) {
+ return true;
+ }
+ };
+
+ isConstructorLegacy.sham = true;
+
+ // `IsConstructor` abstract operation
+ // https://tc39.es/ecma262/#sec-isconstructor
+ var isConstructor$1 = !construct || fails$c(function () {
+ var called;
+ return isConstructorModern(isConstructorModern.call)
+ || !isConstructorModern(Object)
+ || !isConstructorModern(function () { called = true; })
+ || called;
+ }) ? isConstructorLegacy : isConstructorModern;
+
+ var isArray$1 = isArray$2;
+ var isConstructor = isConstructor$1;
+ var isObject$4 = isObject$a;
+ var wellKnownSymbol$b = wellKnownSymbol$f;
+
+ var SPECIES$2 = wellKnownSymbol$b('species');
+ var $Array = Array;
+
+ // a part of `ArraySpeciesCreate` abstract operation
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
+ var arraySpeciesConstructor$1 = function (originalArray) {
+ var C;
+ if (isArray$1(originalArray)) {
+ C = originalArray.constructor;
+ // cross-realm fallback
+ if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
+ else if (isObject$4(C)) {
+ C = C[SPECIES$2];
+ if (C === null) C = undefined;
+ }
+ } return C === undefined ? $Array : C;
+ };
+
+ var arraySpeciesConstructor = arraySpeciesConstructor$1;
+
+ // `ArraySpeciesCreate` abstract operation
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
+ var arraySpeciesCreate$1 = function (originalArray, length) {
+ return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
+ };
+
+ var fails$b = fails$l;
+ var wellKnownSymbol$a = wellKnownSymbol$f;
+ var V8_VERSION$1 = engineV8Version;
+
+ var SPECIES$1 = wellKnownSymbol$a('species');
+
+ var arrayMethodHasSpeciesSupport$1 = function (METHOD_NAME) {
+ // We can't use this feature detection in V8 since it causes
+ // deoptimization and serious performance degradation
+ // https://github.com/zloirock/core-js/issues/677
+ return V8_VERSION$1 >= 51 || !fails$b(function () {
+ var array = [];
+ var constructor = array.constructor = {};
+ constructor[SPECIES$1] = function () {
+ return { foo: 1 };
+ };
+ return array[METHOD_NAME](Boolean).foo !== 1;
+ });
+ };
+
+ var $$5 = _export;
+ var fails$a = fails$l;
+ var isArray = isArray$2;
+ var isObject$3 = isObject$a;
+ var toObject$2 = toObject$4;
+ var lengthOfArrayLike = lengthOfArrayLike$2;
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
+ var createProperty = createProperty$1;
+ var arraySpeciesCreate = arraySpeciesCreate$1;
+ var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$1;
+ var wellKnownSymbol$9 = wellKnownSymbol$f;
+ var V8_VERSION = engineV8Version;
+
+ var IS_CONCAT_SPREADABLE = wellKnownSymbol$9('isConcatSpreadable');
+
+ // We can't use this feature detection in V8 since it causes
+ // deoptimization and serious performance degradation
+ // https://github.com/zloirock/core-js/issues/679
+ var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$a(function () {
+ var array = [];
+ array[IS_CONCAT_SPREADABLE] = false;
+ return array.concat()[0] !== array;
+ });
+
+ var isConcatSpreadable = function (O) {
+ if (!isObject$3(O)) return false;
+ var spreadable = O[IS_CONCAT_SPREADABLE];
+ return spreadable !== undefined ? !!spreadable : isArray(O);
+ };
+
+ var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
+
+ // `Array.prototype.concat` method
+ // https://tc39.es/ecma262/#sec-array.prototype.concat
+ // with adding support of @@isConcatSpreadable and @@species
+ $$5({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
+ concat: function concat(arg) {
+ var O = toObject$2(this);
+ var A = arraySpeciesCreate(O, 0);
+ var n = 0;
+ var i, k, length, len, E;
+ for (i = -1, length = arguments.length; i < length; i++) {
+ E = i === -1 ? O : arguments[i];
+ if (isConcatSpreadable(E)) {
+ len = lengthOfArrayLike(E);
+ doesNotExceedSafeInteger(n + len);
+ for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
+ } else {
+ doesNotExceedSafeInteger(n + 1);
+ createProperty(A, n++, E);
+ }
+ }
+ A.length = n;
+ return A;
+ }
+ });
+
+ 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$3 = Object.keys || function keys(O) {
+ return internalObjectKeys(O, enumBugKeys$1);
+ };
+
+ var DESCRIPTORS$6 = descriptors;
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
+ var definePropertyModule = objectDefineProperty;
+ var anObject$8 = anObject$b;
+ var toIndexedObject$2 = toIndexedObject$6;
+ var objectKeys$2 = objectKeys$3;
+
+ // `Object.defineProperties` method
+ // https://tc39.es/ecma262/#sec-object.defineproperties
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
+ objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
+ anObject$8(O);
+ var props = toIndexedObject$2(Properties);
+ var keys = objectKeys$2(Properties);
+ var length = keys.length;
+ var index = 0;
+ var key;
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
+ return O;
+ };
+
+ var getBuiltIn = getBuiltIn$4;
+
+ var html$1 = getBuiltIn('document', 'documentElement');
+
+ /* global ActiveXObject -- old IE, WSH */
+ var anObject$7 = anObject$b;
+ var definePropertiesModule = objectDefineProperties;
+ var enumBugKeys = enumBugKeys$3;
+ var hiddenKeys = hiddenKeys$4;
+ var html = html$1;
+ var documentCreateElement$1 = documentCreateElement$2;
+ var sharedKey$1 = sharedKey$3;
+
+ var GT = '>';
+ var LT = '<';
+ var PROTOTYPE = 'prototype';
+ var SCRIPT = 'script';
+ var IE_PROTO$1 = sharedKey$1('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.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][enumBugKeys[length]];
+ return NullProtoObject();
+ };
+
+ hiddenKeys[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] = anObject$7(O);
+ result = new EmptyConstructor();
+ EmptyConstructor[PROTOTYPE] = null;
+ // add "__proto__" for Object.getPrototypeOf polyfill
+ result[IE_PROTO$1] = O;
+ } else result = NullProtoObject();
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
+ };
+
+ var wellKnownSymbol$8 = wellKnownSymbol$f;
+ var create$3 = objectCreate;
+ var defineProperty$4 = objectDefineProperty.f;
+
+ var UNSCOPABLES = wellKnownSymbol$8('unscopables');
+ var ArrayPrototype = Array.prototype;
+
+ // Array.prototype[@@unscopables]
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
+ if (ArrayPrototype[UNSCOPABLES] === undefined) {
+ defineProperty$4(ArrayPrototype, UNSCOPABLES, {
+ configurable: true,
+ value: create$3(null)
+ });
+ }
+
+ // add a key to Array.prototype[@@unscopables]
+ var addToUnscopables$1 = function (key) {
+ ArrayPrototype[UNSCOPABLES][key] = true;
+ };
+
+ var iterators = {};
+
+ var fails$9 = fails$l;
+
+ var correctPrototypeGetter = !fails$9(function () {
+ function F() { /* empty */ }
+ F.prototype.constructor = null;
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
+ return Object.getPrototypeOf(new F()) !== F.prototype;
+ });
+
+ var hasOwn$3 = hasOwnProperty_1;
+ var isCallable$4 = isCallable$h;
+ var toObject$1 = toObject$4;
+ var sharedKey = sharedKey$3;
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
+
+ var IE_PROTO = sharedKey('IE_PROTO');
+ var $Object = Object;
+ var ObjectPrototype = $Object.prototype;
+
+ // `Object.getPrototypeOf` method
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
+ var objectGetPrototypeOf$1 = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
+ var object = toObject$1(O);
+ if (hasOwn$3(object, IE_PROTO)) return object[IE_PROTO];
+ var constructor = object.constructor;
+ if (isCallable$4(constructor) && object instanceof constructor) {
+ return constructor.prototype;
+ } return object instanceof $Object ? ObjectPrototype : null;
+ };
+
+ var fails$8 = fails$l;
+ var isCallable$3 = isCallable$h;
+ var isObject$2 = isObject$a;
+ var getPrototypeOf$1 = objectGetPrototypeOf$1;
+ var defineBuiltIn$6 = defineBuiltIn$8;
+ var wellKnownSymbol$7 = wellKnownSymbol$f;
+
+ var ITERATOR$5 = wellKnownSymbol$7('iterator');
+ var BUGGY_SAFARI_ITERATORS$1 = false;
+
+ // `%IteratorPrototype%` object
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
+
+ /* eslint-disable es/no-array-prototype-keys -- safe */
+ if ([].keys) {
+ arrayIterator = [].keys();
+ // Safari 8 has buggy iterators w/o `next`
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
+ else {
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
+ }
+ }
+
+ var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$8(function () {
+ var test = {};
+ // FF44- legacy iterators case
+ return IteratorPrototype$2[ITERATOR$5].call(test) !== test;
+ });
+
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
+
+ // `%IteratorPrototype%[@@iterator]()` method
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
+ if (!isCallable$3(IteratorPrototype$2[ITERATOR$5])) {
+ defineBuiltIn$6(IteratorPrototype$2, ITERATOR$5, function () {
+ return this;
+ });
+ }
+
+ var iteratorsCore = {
+ IteratorPrototype: IteratorPrototype$2,
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
+ };
+
+ var defineProperty$3 = objectDefineProperty.f;
+ var hasOwn$2 = hasOwnProperty_1;
+ var wellKnownSymbol$6 = wellKnownSymbol$f;
+
+ var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
+
+ var setToStringTag$4 = function (target, TAG, STATIC) {
+ if (target && !STATIC) target = target.prototype;
+ if (target && !hasOwn$2(target, TO_STRING_TAG)) {
+ defineProperty$3(target, TO_STRING_TAG, { configurable: true, value: TAG });
+ }
+ };
+
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
+ var create$2 = objectCreate;
+ var createPropertyDescriptor$1 = createPropertyDescriptor$5;
+ var setToStringTag$3 = setToStringTag$4;
+ var Iterators$3 = iterators;
+
+ var returnThis$1 = function () { return this; };
+
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
+ var TO_STRING_TAG = NAME + ' Iterator';
+ IteratorConstructor.prototype = create$2(IteratorPrototype$1, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
+ setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
+ Iterators$3[TO_STRING_TAG] = returnThis$1;
+ return IteratorConstructor;
+ };
+
+ var uncurryThis$8 = functionUncurryThis;
+ var aCallable$2 = aCallable$4;
+
+ var functionUncurryThisAccessor = function (object, key, method) {
+ try {
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
+ return uncurryThis$8(aCallable$2(Object.getOwnPropertyDescriptor(object, key)[method]));
+ } catch (error) { /* empty */ }
+ };
+
+ var isObject$1 = isObject$a;
+
+ var isPossiblePrototype$1 = function (argument) {
+ return isObject$1(argument) || argument === null;
+ };
+
+ var isPossiblePrototype = isPossiblePrototype$1;
+
+ var $String$1 = String;
+ var $TypeError$4 = TypeError;
+
+ var aPossiblePrototype$1 = function (argument) {
+ if (isPossiblePrototype(argument)) return argument;
+ throw new $TypeError$4("Can't set " + $String$1(argument) + ' as a prototype');
+ };
+
+ /* eslint-disable no-proto -- safe */
+ var uncurryThisAccessor = functionUncurryThisAccessor;
+ var anObject$6 = anObject$b;
+ var aPossiblePrototype = aPossiblePrototype$1;
+
+ // `Object.setPrototypeOf` method
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
+ var CORRECT_SETTER = false;
+ var test = {};
+ var setter;
+ try {
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
+ setter(test, []);
+ CORRECT_SETTER = test instanceof Array;
+ } catch (error) { /* empty */ }
+ return function setPrototypeOf(O, proto) {
+ anObject$6(O);
+ aPossiblePrototype(proto);
+ if (CORRECT_SETTER) setter(O, proto);
+ else O.__proto__ = proto;
+ return O;
+ };
+ }() : undefined);
+
+ var $$4 = _export;
+ var call$8 = functionCall;
+ var FunctionName = functionName;
+ var isCallable$2 = isCallable$h;
+ var createIteratorConstructor$1 = iteratorCreateConstructor;
+ var getPrototypeOf = objectGetPrototypeOf$1;
+ var setPrototypeOf = objectSetPrototypeOf;
+ var setToStringTag$2 = setToStringTag$4;
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
+ var defineBuiltIn$5 = defineBuiltIn$8;
+ var wellKnownSymbol$5 = wellKnownSymbol$f;
+ var Iterators$2 = iterators;
+ var IteratorsCore = iteratorsCore;
+
+ var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
+ var ITERATOR$4 = wellKnownSymbol$5('iterator');
+ var KEYS = 'keys';
+ var VALUES = 'values';
+ var ENTRIES = 'entries';
+
+ var returnThis = function () { return this; };
+
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
+ createIteratorConstructor$1(IteratorConstructor, NAME, next);
+
+ var getIterationMethod = function (KIND) {
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
+
+ switch (KIND) {
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
+ }
+
+ return function () { return new IteratorConstructor(this); };
+ };
+
+ var TO_STRING_TAG = NAME + ' Iterator';
+ var INCORRECT_VALUES_NAME = false;
+ var IterablePrototype = Iterable.prototype;
+ var nativeIterator = IterablePrototype[ITERATOR$4]
+ || IterablePrototype['@@iterator']
+ || DEFAULT && IterablePrototype[DEFAULT];
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
+ var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
+ var CurrentIteratorPrototype, methods, KEY;
+
+ // fix native
+ if (anyNativeIterator) {
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
+ if (setPrototypeOf) {
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
+ } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$4])) {
+ defineBuiltIn$5(CurrentIteratorPrototype, ITERATOR$4, returnThis);
+ }
+ }
+ // Set @@toStringTag to native iterators
+ setToStringTag$2(CurrentIteratorPrototype, TO_STRING_TAG, true);
+ }
+ }
+
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
+ if (PROPER_FUNCTION_NAME$1 && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
+ if (CONFIGURABLE_FUNCTION_NAME) {
+ createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
+ } else {
+ INCORRECT_VALUES_NAME = true;
+ defaultIterator = function values() { return call$8(nativeIterator, this); };
+ }
+ }
+
+ // export additional methods
+ if (DEFAULT) {
+ methods = {
+ values: getIterationMethod(VALUES),
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
+ entries: getIterationMethod(ENTRIES)
+ };
+ if (FORCED) for (KEY in methods) {
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
+ defineBuiltIn$5(IterablePrototype, KEY, methods[KEY]);
+ }
+ } else $$4({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
+ }
+
+ // define iterator
+ if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
+ defineBuiltIn$5(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
+ }
+ Iterators$2[NAME] = defaultIterator;
+
+ return methods;
+ };
+
+ // `CreateIterResultObject` abstract operation
+ // https://tc39.es/ecma262/#sec-createiterresultobject
+ var createIterResultObject$3 = function (value, done) {
+ return { value: value, done: done };
+ };
+
+ var toIndexedObject$1 = toIndexedObject$6;
+ var addToUnscopables = addToUnscopables$1;
+ var Iterators$1 = iterators;
+ var InternalStateModule$2 = internalState;
+ var defineProperty$2 = objectDefineProperty.f;
+ var defineIterator$1 = iteratorDefine;
+ var createIterResultObject$2 = createIterResultObject$3;
+ var DESCRIPTORS$5 = descriptors;
+
+ var ARRAY_ITERATOR = 'Array Iterator';
+ var setInternalState$2 = InternalStateModule$2.set;
+ var getInternalState$2 = InternalStateModule$2.getterFor(ARRAY_ITERATOR);
+
+ // `Array.prototype.entries` method
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
+ // `Array.prototype.keys` method
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
+ // `Array.prototype.values` method
+ // https://tc39.es/ecma262/#sec-array.prototype.values
+ // `Array.prototype[@@iterator]` method
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
+ // `CreateArrayIterator` internal method
+ // https://tc39.es/ecma262/#sec-createarrayiterator
+ var es_array_iterator = defineIterator$1(Array, 'Array', function (iterated, kind) {
+ setInternalState$2(this, {
+ type: ARRAY_ITERATOR,
+ target: toIndexedObject$1(iterated), // target
+ index: 0, // next index
+ kind: kind // kind
+ });
+ // `%ArrayIteratorPrototype%.next` method
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
+ }, function () {
+ var state = getInternalState$2(this);
+ var target = state.target;
+ var index = state.index++;
+ if (!target || index >= target.length) {
+ state.target = undefined;
+ return createIterResultObject$2(undefined, true);
+ }
+ switch (state.kind) {
+ case 'keys': return createIterResultObject$2(index, false);
+ case 'values': return createIterResultObject$2(target[index], false);
+ } return createIterResultObject$2([index, target[index]], false);
+ }, 'values');
+
+ // argumentsList[@@iterator] is %ArrayProto_values%
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
+ var values = Iterators$1.Arguments = Iterators$1.Array;
+
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
+ addToUnscopables('keys');
+ addToUnscopables('values');
+ addToUnscopables('entries');
+
+ // V8 ~ Chrome 45- bug
+ if (DESCRIPTORS$5 && values.name !== 'values') try {
+ defineProperty$2(values, 'name', { value: 'values' });
+ } catch (error) { /* empty */ }
+
+ var DESCRIPTORS$4 = descriptors;
+ var uncurryThis$7 = functionUncurryThis;
+ var call$7 = functionCall;
+ var fails$7 = fails$l;
+ var objectKeys$1 = objectKeys$3;
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
+ var toObject = toObject$4;
+ var IndexedObject = indexedObject;
+
+ // eslint-disable-next-line es/no-object-assign -- safe
+ var $assign = Object.assign;
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
+ var defineProperty$1 = Object.defineProperty;
+ var concat = uncurryThis$7([].concat);
+
+ // `Object.assign` method
+ // https://tc39.es/ecma262/#sec-object.assign
+ var objectAssign = !$assign || fails$7(function () {
+ // should have correct order of operations (Edge bug)
+ if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$1({}, 'a', {
+ enumerable: true,
+ get: function () {
+ defineProperty$1(this, 'b', {
+ value: 3,
+ enumerable: false
+ });
+ }
+ }), { b: 2 })).b !== 1) return true;
+ // should work with symbols and should have deterministic property order (V8 bug)
+ var A = {};
+ var B = {};
+ // eslint-disable-next-line es/no-symbol -- safe
+ var symbol = Symbol('assign detection');
+ var alphabet = 'abcdefghijklmnopqrst';
+ A[symbol] = 7;
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
+ return $assign({}, A)[symbol] !== 7 || objectKeys$1($assign({}, B)).join('') !== alphabet;
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
+ var T = toObject(target);
+ var argumentsLength = arguments.length;
+ var index = 1;
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
+ while (argumentsLength > index) {
+ var S = IndexedObject(arguments[index++]);
+ var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
+ var length = keys.length;
+ var j = 0;
+ var key;
+ while (length > j) {
+ key = keys[j++];
+ if (!DESCRIPTORS$4 || call$7(propertyIsEnumerable, S, key)) T[key] = S[key];
+ }
+ } return T;
+ } : $assign;
+
+ var $$3 = _export;
+ var assign = objectAssign;
+
+ // `Object.assign` method
+ // https://tc39.es/ecma262/#sec-object.assign
+ // eslint-disable-next-line es/no-object-assign -- required for testing
+ $$3({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
+ assign: assign
+ });
+
+ var DESCRIPTORS$3 = descriptors;
+ var fails$6 = fails$l;
+ var uncurryThis$6 = functionUncurryThis;
+ var objectGetPrototypeOf = objectGetPrototypeOf$1;
+ var objectKeys = objectKeys$3;
+ var toIndexedObject = toIndexedObject$6;
+ var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
+
+ var propertyIsEnumerable = uncurryThis$6($propertyIsEnumerable);
+ var push$1 = uncurryThis$6([].push);
+
+ // in some IE versions, `propertyIsEnumerable` returns incorrect result on integer keys
+ // of `null` prototype objects
+ var IE_BUG = DESCRIPTORS$3 && fails$6(function () {
+ // eslint-disable-next-line es/no-object-create -- safe
+ var O = Object.create(null);
+ O[2] = 2;
+ return !propertyIsEnumerable(O, 2);
+ });
+
+ // `Object.{ entries, values }` methods implementation
+ var createMethod$1 = function (TO_ENTRIES) {
+ return function (it) {
+ var O = toIndexedObject(it);
+ var keys = objectKeys(O);
+ var IE_WORKAROUND = IE_BUG && objectGetPrototypeOf(O) === null;
+ var length = keys.length;
+ var i = 0;
+ var result = [];
+ var key;
+ while (length > i) {
+ key = keys[i++];
+ if (!DESCRIPTORS$3 || (IE_WORKAROUND ? key in O : propertyIsEnumerable(O, key))) {
+ push$1(result, TO_ENTRIES ? [key, O[key]] : O[key]);
+ }
+ }
+ return result;
+ };
+ };
+
+ var objectToArray = {
+ // `Object.entries` method
+ // https://tc39.es/ecma262/#sec-object.entries
+ entries: createMethod$1(true),
+ // `Object.values` method
+ // https://tc39.es/ecma262/#sec-object.values
+ values: createMethod$1(false)
+ };
+
+ var $$2 = _export;
+ var $entries = objectToArray.entries;
+
+ // `Object.entries` method
+ // https://tc39.es/ecma262/#sec-object.entries
+ $$2({ target: 'Object', stat: true }, {
+ entries: function entries(O) {
+ return $entries(O);
+ }
+ });
+
+ var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
+ var classof$4 = classof$6;
+
+ // `Object.prototype.toString` method implementation
+ // https://tc39.es/ecma262/#sec-object.prototype.tostring
+ var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
+ return '[object ' + classof$4(this) + ']';
+ };
+
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
+ var defineBuiltIn$4 = defineBuiltIn$8;
+ var toString$5 = objectToString;
+
+ // `Object.prototype.toString` method
+ // https://tc39.es/ecma262/#sec-object.prototype.tostring
+ if (!TO_STRING_TAG_SUPPORT) {
+ defineBuiltIn$4(Object.prototype, 'toString', toString$5, { unsafe: true });
+ }
+
+ var classof$3 = classof$6;
+
+ var $String = String;
+
+ var toString$4 = function (argument) {
+ if (classof$3(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
+ return $String(argument);
+ };
+
+ var anObject$5 = anObject$b;
+
+ // `RegExp.prototype.flags` getter implementation
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
+ var regexpFlags$1 = function () {
+ var that = anObject$5(this);
+ var result = '';
+ if (that.hasIndices) result += 'd';
+ if (that.global) result += 'g';
+ if (that.ignoreCase) result += 'i';
+ if (that.multiline) result += 'm';
+ if (that.dotAll) result += 's';
+ if (that.unicode) result += 'u';
+ if (that.unicodeSets) result += 'v';
+ if (that.sticky) result += 'y';
+ return result;
+ };
+
+ var fails$5 = fails$l;
+ var global$6 = global$g;
+
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
+ var $RegExp$2 = global$6.RegExp;
+
+ var UNSUPPORTED_Y$1 = fails$5(function () {
+ var re = $RegExp$2('a', 'y');
+ re.lastIndex = 2;
+ return re.exec('abcd') !== null;
+ });
+
+ // UC Browser bug
+ // https://github.com/zloirock/core-js/issues/1008
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$5(function () {
+ return !$RegExp$2('a', 'y').sticky;
+ });
+
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$5(function () {
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
+ var re = $RegExp$2('^r', 'gy');
+ re.lastIndex = 2;
+ return re.exec('str') !== null;
+ });
+
+ var regexpStickyHelpers = {
+ BROKEN_CARET: BROKEN_CARET,
+ MISSED_STICKY: MISSED_STICKY,
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1
+ };
+
+ var fails$4 = fails$l;
+ var global$5 = global$g;
+
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
+ var $RegExp$1 = global$5.RegExp;
+
+ var regexpUnsupportedDotAll = fails$4(function () {
+ var re = $RegExp$1('.', 's');
+ return !(re.dotAll && re.test('\n') && re.flags === 's');
+ });
+
+ var fails$3 = fails$l;
+ var global$4 = global$g;
+
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
+ var $RegExp = global$4.RegExp;
+
+ var regexpUnsupportedNcg = fails$3(function () {
+ var re = $RegExp('(?<a>b)', 'g');
+ return re.exec('b').groups.a !== 'b' ||
+ 'b'.replace(re, '$<a>c') !== 'bc';
+ });
+
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
+ var call$6 = functionCall;
+ var uncurryThis$5 = functionUncurryThis;
+ var toString$3 = toString$4;
+ var regexpFlags = regexpFlags$1;
+ var stickyHelpers = regexpStickyHelpers;
+ var shared = shared$4;
+ var create$1 = objectCreate;
+ var getInternalState$1 = internalState.get;
+ var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
+ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
+
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
+ var nativeExec = RegExp.prototype.exec;
+ var patchedExec = nativeExec;
+ var charAt$3 = uncurryThis$5(''.charAt);
+ var indexOf = uncurryThis$5(''.indexOf);
+ var replace$1 = uncurryThis$5(''.replace);
+ var stringSlice$2 = uncurryThis$5(''.slice);
+
+ var UPDATES_LAST_INDEX_WRONG = (function () {
+ var re1 = /a/;
+ var re2 = /b*/g;
+ call$6(nativeExec, re1, 'a');
+ call$6(nativeExec, re2, 'a');
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
+ })();
+
+ var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
+
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
+
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
+
+ if (PATCH) {
+ patchedExec = function exec(string) {
+ var re = this;
+ var state = getInternalState$1(re);
+ var str = toString$3(string);
+ var raw = state.raw;
+ var result, reCopy, lastIndex, match, i, object, group;
+
+ if (raw) {
+ raw.lastIndex = re.lastIndex;
+ result = call$6(patchedExec, raw, str);
+ re.lastIndex = raw.lastIndex;
+ return result;
+ }
+
+ var groups = state.groups;
+ var sticky = UNSUPPORTED_Y && re.sticky;
+ var flags = call$6(regexpFlags, re);
+ var source = re.source;
+ var charsAdded = 0;
+ var strCopy = str;
+
+ if (sticky) {
+ flags = replace$1(flags, 'y', '');
+ if (indexOf(flags, 'g') === -1) {
+ flags += 'g';
+ }
+
+ strCopy = stringSlice$2(str, re.lastIndex);
+ // Support anchored sticky behavior.
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
+ source = '(?: ' + source + ')';
+ strCopy = ' ' + strCopy;
+ charsAdded++;
+ }
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
+ // simulate the 'y' flag.
+ reCopy = new RegExp('^(?:' + source + ')', flags);
+ }
+
+ if (NPCG_INCLUDED) {
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
+ }
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
+
+ match = call$6(nativeExec, sticky ? reCopy : re, strCopy);
+
+ if (sticky) {
+ if (match) {
+ match.input = stringSlice$2(match.input, charsAdded);
+ match[0] = stringSlice$2(match[0], charsAdded);
+ match.index = re.lastIndex;
+ re.lastIndex += match[0].length;
+ } else re.lastIndex = 0;
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
+ }
+ if (NPCG_INCLUDED && match && match.length > 1) {
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
+ // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
+ call$6(nativeReplace, match[0], reCopy, function () {
+ for (i = 1; i < arguments.length - 2; i++) {
+ if (arguments[i] === undefined) match[i] = undefined;
+ }
+ });
+ }
+
+ if (match && groups) {
+ match.groups = object = create$1(null);
+ for (i = 0; i < groups.length; i++) {
+ group = groups[i];
+ object[group[0]] = match[group[1]];
+ }
+ }
+
+ return match;
+ };
+ }
+
+ var regexpExec$2 = patchedExec;
+
+ var $$1 = _export;
+ var exec = regexpExec$2;
+
+ // `RegExp.prototype.exec` method
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
+ $$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
+ exec: exec
+ });
+
+ var call$5 = functionCall;
+ var hasOwn$1 = hasOwnProperty_1;
+ var isPrototypeOf$1 = objectIsPrototypeOf;
+ var regExpFlags = regexpFlags$1;
+
+ var RegExpPrototype$2 = RegExp.prototype;
+
+ var regexpGetFlags = function (R) {
+ var flags = R.flags;
+ return flags === undefined && !('flags' in RegExpPrototype$2) && !hasOwn$1(R, 'flags') && isPrototypeOf$1(RegExpPrototype$2, R)
+ ? call$5(regExpFlags, R) : flags;
+ };
+
+ var PROPER_FUNCTION_NAME = functionName.PROPER;
+ var defineBuiltIn$3 = defineBuiltIn$8;
+ var anObject$4 = anObject$b;
+ var $toString$1 = toString$4;
+ var fails$2 = fails$l;
+ var getRegExpFlags = regexpGetFlags;
+
+ var TO_STRING = 'toString';
+ var RegExpPrototype$1 = RegExp.prototype;
+ var nativeToString = RegExpPrototype$1[TO_STRING];
+
+ var NOT_GENERIC = fails$2(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
+ // FF44- RegExp#toString has a wrong name
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
+
+ // `RegExp.prototype.toString` method
+ // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
+ if (NOT_GENERIC || INCORRECT_NAME) {
+ defineBuiltIn$3(RegExpPrototype$1, TO_STRING, function toString() {
+ var R = anObject$4(this);
+ var pattern = $toString$1(R.source);
+ var flags = $toString$1(getRegExpFlags(R));
+ return '/' + pattern + '/' + flags;
+ }, { unsafe: true });
+ }
+
+ var uncurryThis$4 = functionUncurryThis;
+ var toIntegerOrInfinity = toIntegerOrInfinity$3;
+ var toString$2 = toString$4;
+ var requireObjectCoercible$1 = requireObjectCoercible$4;
+
+ var charAt$2 = uncurryThis$4(''.charAt);
+ var charCodeAt = uncurryThis$4(''.charCodeAt);
+ var stringSlice$1 = uncurryThis$4(''.slice);
+
+ var createMethod = function (CONVERT_TO_STRING) {
+ return function ($this, pos) {
+ var S = toString$2(requireObjectCoercible$1($this));
+ var position = toIntegerOrInfinity(pos);
+ var size = S.length;
+ var first, second;
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
+ first = charCodeAt(S, position);
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
+ ? CONVERT_TO_STRING
+ ? charAt$2(S, position)
+ : first
+ : CONVERT_TO_STRING
+ ? stringSlice$1(S, position, position + 2)
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
+ };
+ };
+
+ var stringMultibyte = {
+ // `String.prototype.codePointAt` method
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
+ codeAt: createMethod(false),
+ // `String.prototype.at` method
+ // https://github.com/mathiasbynens/String.prototype.at
+ charAt: createMethod(true)
+ };
+
+ var charAt$1 = stringMultibyte.charAt;
+ var toString$1 = toString$4;
+ var InternalStateModule$1 = internalState;
+ var defineIterator = iteratorDefine;
+ var createIterResultObject$1 = createIterResultObject$3;
+
+ var STRING_ITERATOR = 'String Iterator';
+ var setInternalState$1 = InternalStateModule$1.set;
+ var getInternalState = InternalStateModule$1.getterFor(STRING_ITERATOR);
+
+ // `String.prototype[@@iterator]` method
+ // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
+ defineIterator(String, 'String', function (iterated) {
+ setInternalState$1(this, {
+ type: STRING_ITERATOR,
+ string: toString$1(iterated),
+ index: 0
+ });
+ // `%StringIteratorPrototype%.next` method
+ // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
+ }, function next() {
+ var state = getInternalState(this);
+ var string = state.string;
+ var index = state.index;
+ var point;
+ if (index >= string.length) return createIterResultObject$1(undefined, true);
+ point = charAt$1(string, index);
+ state.index += point.length;
+ return createIterResultObject$1(point, false);
+ });
+
+ // TODO: Remove from `core-js@4` since it's moved to entry points
+
+ var call$4 = functionCall;
+ var defineBuiltIn$2 = defineBuiltIn$8;
+ var regexpExec$1 = regexpExec$2;
+ var fails$1 = fails$l;
+ var wellKnownSymbol$4 = wellKnownSymbol$f;
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
+
+ var SPECIES = wellKnownSymbol$4('species');
+ var RegExpPrototype = RegExp.prototype;
+
+ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
+ var SYMBOL = wellKnownSymbol$4(KEY);
+
+ var DELEGATES_TO_SYMBOL = !fails$1(function () {
+ // String methods call symbol-named RegExp methods
+ var O = {};
+ O[SYMBOL] = function () { return 7; };
+ return ''[KEY](O) !== 7;
+ });
+
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
+ // Symbol-named RegExp methods call .exec
+ var execCalled = false;
+ var re = /a/;
+
+ if (KEY === 'split') {
+ // We can't use real regex here since it causes deoptimization
+ // and serious performance degradation in V8
+ // https://github.com/zloirock/core-js/issues/306
+ re = {};
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
+ // a new one. We need to return the patched regex when creating the new one.
+ re.constructor = {};
+ re.constructor[SPECIES] = function () { return re; };
+ re.flags = '';
+ re[SYMBOL] = /./[SYMBOL];
+ }
+
+ re.exec = function () {
+ execCalled = true;
+ return null;
+ };
+
+ re[SYMBOL]('');
+ return !execCalled;
+ });
+
+ if (
+ !DELEGATES_TO_SYMBOL ||
+ !DELEGATES_TO_EXEC ||
+ FORCED
+ ) {
+ var nativeRegExpMethod = /./[SYMBOL];
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
+ var $exec = regexp.exec;
+ if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
+ // The native String method already delegates to @@method (this
+ // polyfilled function), leasing to infinite recursion.
+ // We avoid it by directly calling the native @@method method.
+ return { done: true, value: call$4(nativeRegExpMethod, regexp, str, arg2) };
+ }
+ return { done: true, value: call$4(nativeMethod, str, regexp, arg2) };
+ }
+ return { done: false };
+ });
+
+ defineBuiltIn$2(String.prototype, KEY, methods[0]);
+ defineBuiltIn$2(RegExpPrototype, SYMBOL, methods[1]);
+ }
+
+ if (SHAM) createNonEnumerableProperty$1(RegExpPrototype[SYMBOL], 'sham', true);
+ };
+
+ // `SameValue` abstract operation
+ // https://tc39.es/ecma262/#sec-samevalue
+ // eslint-disable-next-line es/no-object-is -- safe
+ var sameValue$1 = Object.is || function is(x, y) {
+ // eslint-disable-next-line no-self-compare -- NaN check
+ return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
+ };
+
+ var call$3 = functionCall;
+ var anObject$3 = anObject$b;
+ var isCallable$1 = isCallable$h;
+ var classof$2 = classofRaw$2;
+ var regexpExec = regexpExec$2;
+
+ var $TypeError$3 = TypeError;
+
+ // `RegExpExec` abstract operation
+ // https://tc39.es/ecma262/#sec-regexpexec
+ var regexpExecAbstract = function (R, S) {
+ var exec = R.exec;
+ if (isCallable$1(exec)) {
+ var result = call$3(exec, R, S);
+ if (result !== null) anObject$3(result);
+ return result;
+ }
+ if (classof$2(R) === 'RegExp') return call$3(regexpExec, R, S);
+ throw new $TypeError$3('RegExp#exec called on incompatible receiver');
+ };
+
+ var call$2 = functionCall;
+ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
+ var anObject$2 = anObject$b;
+ var isNullOrUndefined$1 = isNullOrUndefined$4;
+ var requireObjectCoercible = requireObjectCoercible$4;
+ var sameValue = sameValue$1;
+ var toString = toString$4;
+ var getMethod$1 = getMethod$3;
+ var regExpExec = regexpExecAbstract;
+
+ // @@search logic
+ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCallNative) {
+ return [
+ // `String.prototype.search` method
+ // https://tc39.es/ecma262/#sec-string.prototype.search
+ function search(regexp) {
+ var O = requireObjectCoercible(this);
+ var searcher = isNullOrUndefined$1(regexp) ? undefined : getMethod$1(regexp, SEARCH);
+ return searcher ? call$2(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
+ },
+ // `RegExp.prototype[@@search]` method
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@search
+ function (string) {
+ var rx = anObject$2(this);
+ var S = toString(string);
+ var res = maybeCallNative(nativeSearch, rx, S);
+
+ if (res.done) return res.value;
+
+ var previousLastIndex = rx.lastIndex;
+ if (!sameValue(previousLastIndex, 0)) rx.lastIndex = 0;
+ var result = regExpExec(rx, S);
+ if (!sameValue(rx.lastIndex, previousLastIndex)) rx.lastIndex = previousLastIndex;
+ return result === null ? -1 : result.index;
+ }
+ ];
+ });
+
+ // iterable DOM collections
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
+ var domIterables = {
+ CSSRuleList: 0,
+ CSSStyleDeclaration: 0,
+ CSSValueList: 0,
+ ClientRectList: 0,
+ DOMRectList: 0,
+ DOMStringList: 0,
+ DOMTokenList: 1,
+ DataTransferItemList: 0,
+ FileList: 0,
+ HTMLAllCollection: 0,
+ HTMLCollection: 0,
+ HTMLFormElement: 0,
+ HTMLSelectElement: 0,
+ MediaList: 0,
+ MimeTypeArray: 0,
+ NamedNodeMap: 0,
+ NodeList: 1,
+ PaintRequestList: 0,
+ Plugin: 0,
+ PluginArray: 0,
+ SVGLengthList: 0,
+ SVGNumberList: 0,
+ SVGPathSegList: 0,
+ SVGPointList: 0,
+ SVGStringList: 0,
+ SVGTransformList: 0,
+ SourceBufferList: 0,
+ StyleSheetList: 0,
+ TextTrackCueList: 0,
+ TextTrackList: 0,
+ TouchList: 0
+ };
+
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
+ var documentCreateElement = documentCreateElement$2;
+
+ var classList = documentCreateElement('span').classList;
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
+
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
+
+ var global$3 = global$g;
+ var DOMIterables = domIterables;
+ var DOMTokenListPrototype = domTokenListPrototype;
+ var ArrayIteratorMethods = es_array_iterator;
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
+ var setToStringTag$1 = setToStringTag$4;
+ var wellKnownSymbol$3 = wellKnownSymbol$f;
+
+ var ITERATOR$3 = wellKnownSymbol$3('iterator');
+ var ArrayValues = ArrayIteratorMethods.values;
+
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
+ if (CollectionPrototype) {
+ // some Chrome versions have non-configurable methods on DOMTokenList
+ if (CollectionPrototype[ITERATOR$3] !== ArrayValues) try {
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR$3, ArrayValues);
+ } catch (error) {
+ CollectionPrototype[ITERATOR$3] = ArrayValues;
+ }
+ setToStringTag$1(CollectionPrototype, COLLECTION_NAME, true);
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
+ // some Chrome versions have non-configurable methods on DOMTokenList
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
+ } catch (error) {
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
+ }
+ }
+ }
+ };
+
+ for (var COLLECTION_NAME in DOMIterables) {
+ handlePrototype(global$3[COLLECTION_NAME] && global$3[COLLECTION_NAME].prototype, COLLECTION_NAME);
+ }
+
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
+
+ var global$2 = global$g;
+ var DESCRIPTORS$2 = descriptors;
+
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
+
+ // Avoid NodeJS experimental warning
+ var safeGetBuiltIn$1 = function (name) {
+ if (!DESCRIPTORS$2) return global$2[name];
+ var descriptor = getOwnPropertyDescriptor(global$2, name);
+ return descriptor && descriptor.value;
+ };
+
+ var fails = fails$l;
+ var wellKnownSymbol$2 = wellKnownSymbol$f;
+ var DESCRIPTORS$1 = descriptors;
+ var IS_PURE = isPure;
+
+ var ITERATOR$2 = wellKnownSymbol$2('iterator');
+
+ var urlConstructorDetection = !fails(function () {
+ // eslint-disable-next-line unicorn/relative-url-style -- required for testing
+ var url = new URL('b?a=1&b=2&c=3', 'http://a');
+ var params = url.searchParams;
+ var params2 = new URLSearchParams('a=1&a=2&b=3');
+ var result = '';
+ url.pathname = 'c%20d';
+ params.forEach(function (value, key) {
+ params['delete']('b');
+ result += key + value;
+ });
+ params2['delete']('a', 2);
+ // `undefined` case is a Chromium 117 bug
+ // https://bugs.chromium.org/p/v8/issues/detail?id=14222
+ params2['delete']('b', undefined);
+ return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
+ || (!params.size && (IS_PURE || !DESCRIPTORS$1))
+ || !params.sort
+ || url.href !== 'http://a/c%20d?a=1&c=3'
+ || params.get('c') !== '3'
+ || String(new URLSearchParams('?a=1')) !== 'a=1'
+ || !params[ITERATOR$2]
+ // throws in Edge
+ || new URL('https://a@b').username !== 'a'
+ || new URLSearchParams(new URLSearchParams('a=b')).get('a') !== 'b'
+ // not punycoded in Edge
+ || new URL('http://тест').host !== 'xn--e1aybc'
+ // not escaped in Chrome 62-
+ || new URL('http://a#б').hash !== '#%D0%B1'
+ // fails in Chrome 66-
+ || result !== 'a1c3'
+ // throws in Safari
+ || new URL('http://x', undefined).host !== 'x';
+ });
+
+ var makeBuiltIn = makeBuiltInExports;
+ var defineProperty = objectDefineProperty;
+
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
+ return defineProperty.f(target, name, descriptor);
+ };
+
+ var defineBuiltIn$1 = defineBuiltIn$8;
+
+ var defineBuiltIns$1 = function (target, src, options) {
+ for (var key in src) defineBuiltIn$1(target, key, src[key], options);
+ return target;
+ };
+
+ var isPrototypeOf = objectIsPrototypeOf;
+
+ var $TypeError$2 = TypeError;
+
+ var anInstance$1 = function (it, Prototype) {
+ if (isPrototypeOf(Prototype, it)) return it;
+ throw new $TypeError$2('Incorrect invocation');
+ };
+
+ var classofRaw = classofRaw$2;
+ var uncurryThis$3 = 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$3(fn);
+ };
+
+ var uncurryThis$2 = functionUncurryThisClause;
+ var aCallable$1 = aCallable$4;
+ var NATIVE_BIND = functionBindNative;
+
+ var bind$1 = uncurryThis$2(uncurryThis$2.bind);
+
+ // optional / simple context binding
+ var functionBindContext = function (fn, that) {
+ aCallable$1(fn);
+ return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
+ return fn.apply(that, arguments);
+ };
+ };
+
+ var classof$1 = classof$6;
+ var getMethod = getMethod$3;
+ var isNullOrUndefined = isNullOrUndefined$4;
+ var Iterators = iterators;
+ var wellKnownSymbol$1 = wellKnownSymbol$f;
+
+ var ITERATOR$1 = wellKnownSymbol$1('iterator');
+
+ var getIteratorMethod$2 = function (it) {
+ if (!isNullOrUndefined(it)) return getMethod(it, ITERATOR$1)
+ || getMethod(it, '@@iterator')
+ || Iterators[classof$1(it)];
+ };
+
+ var call$1 = functionCall;
+ var aCallable = aCallable$4;
+ var anObject$1 = anObject$b;
+ var tryToString = tryToString$2;
+ var getIteratorMethod$1 = getIteratorMethod$2;
+
+ var $TypeError$1 = TypeError;
+
+ var getIterator$1 = function (argument, usingIterator) {
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
+ if (aCallable(iteratorMethod)) return anObject$1(call$1(iteratorMethod, argument));
+ throw new $TypeError$1(tryToString(argument) + ' is not iterable');
+ };
+
+ var $TypeError = TypeError;
+
+ var validateArgumentsLength$1 = function (passed, required) {
+ if (passed < required) throw new $TypeError('Not enough arguments');
+ return passed;
+ };
+
+ var uncurryThis$1 = functionUncurryThis;
+
+ var arraySlice$1 = uncurryThis$1([].slice);
+
+ var arraySlice = arraySlice$1;
+
+ var floor = Math.floor;
+
+ var sort = function (array, comparefn) {
+ var length = array.length;
+
+ if (length < 8) {
+ // insertion sort
+ var i = 1;
+ var element, j;
+
+ while (i < length) {
+ j = i;
+ element = array[i];
+ while (j && comparefn(array[j - 1], element) > 0) {
+ array[j] = array[--j];
+ }
+ if (j !== i++) array[j] = element;
+ }
+ } else {
+ // merge sort
+ var middle = floor(length / 2);
+ var left = sort(arraySlice(array, 0, middle), comparefn);
+ var right = sort(arraySlice(array, middle), comparefn);
+ var llength = left.length;
+ var rlength = right.length;
+ var lindex = 0;
+ var rindex = 0;
+
+ while (lindex < llength || rindex < rlength) {
+ array[lindex + rindex] = (lindex < llength && rindex < rlength)
+ ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
+ : lindex < llength ? left[lindex++] : right[rindex++];
+ }
+ }
+
+ return array;
+ };
+
+ var arraySort$1 = sort;
+
+ // TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
+
+ var $ = _export;
+ var global$1 = global$g;
+ var safeGetBuiltIn = safeGetBuiltIn$1;
+ var call = functionCall;
+ var uncurryThis = functionUncurryThis;
+ var DESCRIPTORS = descriptors;
+ var USE_NATIVE_URL = urlConstructorDetection;
+ var defineBuiltIn = defineBuiltIn$8;
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
+ var defineBuiltIns = defineBuiltIns$1;
+ var setToStringTag = setToStringTag$4;
+ var createIteratorConstructor = iteratorCreateConstructor;
+ var InternalStateModule = internalState;
+ var anInstance = anInstance$1;
+ var isCallable = isCallable$h;
+ var hasOwn = hasOwnProperty_1;
+ var bind = functionBindContext;
+ var classof = classof$6;
+ var anObject = anObject$b;
+ var isObject = isObject$a;
+ var $toString = toString$4;
+ var create = objectCreate;
+ var createPropertyDescriptor = createPropertyDescriptor$5;
+ var getIterator = getIterator$1;
+ var getIteratorMethod = getIteratorMethod$2;
+ var createIterResultObject = createIterResultObject$3;
+ var validateArgumentsLength = validateArgumentsLength$1;
+ var wellKnownSymbol = wellKnownSymbol$f;
+ var arraySort = arraySort$1;
+
+ var ITERATOR = wellKnownSymbol('iterator');
+ var URL_SEARCH_PARAMS = 'URLSearchParams';
+ var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
+ var setInternalState = InternalStateModule.set;
+ var getInternalParamsState = InternalStateModule.getterFor(URL_SEARCH_PARAMS);
+ var getInternalIteratorState = InternalStateModule.getterFor(URL_SEARCH_PARAMS_ITERATOR);
+
+ var nativeFetch = safeGetBuiltIn('fetch');
+ var NativeRequest = safeGetBuiltIn('Request');
+ var Headers = safeGetBuiltIn('Headers');
+ var RequestPrototype = NativeRequest && NativeRequest.prototype;
+ var HeadersPrototype = Headers && Headers.prototype;
+ var RegExp$1 = global$1.RegExp;
+ var TypeError$1 = global$1.TypeError;
+ var decodeURIComponent = global$1.decodeURIComponent;
+ var encodeURIComponent = global$1.encodeURIComponent;
+ var charAt = uncurryThis(''.charAt);
+ var join = uncurryThis([].join);
+ var push = uncurryThis([].push);
+ var replace = uncurryThis(''.replace);
+ var shift = uncurryThis([].shift);
+ var splice = uncurryThis([].splice);
+ var split = uncurryThis(''.split);
+ var stringSlice = uncurryThis(''.slice);
+
+ var plus = /\+/g;
+ var sequences = Array(4);
+
+ var percentSequence = function (bytes) {
+ return sequences[bytes - 1] || (sequences[bytes - 1] = RegExp$1('((?:%[\\da-f]{2}){' + bytes + '})', 'gi'));
+ };
+
+ var percentDecode = function (sequence) {
+ try {
+ return decodeURIComponent(sequence);
+ } catch (error) {
+ return sequence;
+ }
+ };
+
+ var deserialize = function (it) {
+ var result = replace(it, plus, ' ');
+ var bytes = 4;
+ try {
+ return decodeURIComponent(result);
+ } catch (error) {
+ while (bytes) {
+ result = replace(result, percentSequence(bytes--), percentDecode);
+ }
+ return result;
+ }
+ };
+
+ var find = /[!'()~]|%20/g;
+
+ var replacements = {
+ '!': '%21',
+ "'": '%27',
+ '(': '%28',
+ ')': '%29',
+ '~': '%7E',
+ '%20': '+'
+ };
+
+ var replacer = function (match) {
+ return replacements[match];
+ };
+
+ var serialize = function (it) {
+ return replace(encodeURIComponent(it), find, replacer);
+ };
+
+ var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
+ setInternalState(this, {
+ type: URL_SEARCH_PARAMS_ITERATOR,
+ target: getInternalParamsState(params).entries,
+ index: 0,
+ kind: kind
+ });
+ }, URL_SEARCH_PARAMS, function next() {
+ var state = getInternalIteratorState(this);
+ var target = state.target;
+ var index = state.index++;
+ if (!target || index >= target.length) {
+ state.target = undefined;
+ return createIterResultObject(undefined, true);
+ }
+ var entry = target[index];
+ switch (state.kind) {
+ case 'keys': return createIterResultObject(entry.key, false);
+ case 'values': return createIterResultObject(entry.value, false);
+ } return createIterResultObject([entry.key, entry.value], false);
+ }, true);
+
+ var URLSearchParamsState = function (init) {
+ this.entries = [];
+ this.url = null;
+
+ if (init !== undefined) {
+ if (isObject(init)) this.parseObject(init);
+ else this.parseQuery(typeof init == 'string' ? charAt(init, 0) === '?' ? stringSlice(init, 1) : init : $toString(init));
+ }
+ };
+
+ URLSearchParamsState.prototype = {
+ type: URL_SEARCH_PARAMS,
+ bindURL: function (url) {
+ this.url = url;
+ this.update();
+ },
+ parseObject: function (object) {
+ var entries = this.entries;
+ var iteratorMethod = getIteratorMethod(object);
+ var iterator, next, step, entryIterator, entryNext, first, second;
+
+ if (iteratorMethod) {
+ iterator = getIterator(object, iteratorMethod);
+ next = iterator.next;
+ while (!(step = call(next, iterator)).done) {
+ entryIterator = getIterator(anObject(step.value));
+ entryNext = entryIterator.next;
+ if (
+ (first = call(entryNext, entryIterator)).done ||
+ (second = call(entryNext, entryIterator)).done ||
+ !call(entryNext, entryIterator).done
+ ) throw new TypeError$1('Expected sequence with length 2');
+ push(entries, { key: $toString(first.value), value: $toString(second.value) });
+ }
+ } else for (var key in object) if (hasOwn(object, key)) {
+ push(entries, { key: key, value: $toString(object[key]) });
+ }
+ },
+ parseQuery: function (query) {
+ if (query) {
+ var entries = this.entries;
+ var attributes = split(query, '&');
+ var index = 0;
+ var attribute, entry;
+ while (index < attributes.length) {
+ attribute = attributes[index++];
+ if (attribute.length) {
+ entry = split(attribute, '=');
+ push(entries, {
+ key: deserialize(shift(entry)),
+ value: deserialize(join(entry, '='))
+ });
+ }
+ }
+ }
+ },
+ serialize: function () {
+ var entries = this.entries;
+ var result = [];
+ var index = 0;
+ var entry;
+ while (index < entries.length) {
+ entry = entries[index++];
+ push(result, serialize(entry.key) + '=' + serialize(entry.value));
+ } return join(result, '&');
+ },
+ update: function () {
+ this.entries.length = 0;
+ this.parseQuery(this.url.query);
+ },
+ updateURL: function () {
+ if (this.url) this.url.update();
+ }
+ };
+
+ // `URLSearchParams` constructor
+ // https://url.spec.whatwg.org/#interface-urlsearchparams
+ var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
+ anInstance(this, URLSearchParamsPrototype);
+ var init = arguments.length > 0 ? arguments[0] : undefined;
+ var state = setInternalState(this, new URLSearchParamsState(init));
+ if (!DESCRIPTORS) this.size = state.entries.length;
+ };
+
+ var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
+
+ defineBuiltIns(URLSearchParamsPrototype, {
+ // `URLSearchParams.prototype.append` method
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-append
+ append: function append(name, value) {
+ var state = getInternalParamsState(this);
+ validateArgumentsLength(arguments.length, 2);
+ push(state.entries, { key: $toString(name), value: $toString(value) });
+ if (!DESCRIPTORS) this.length++;
+ state.updateURL();
+ },
+ // `URLSearchParams.prototype.delete` method
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-delete
+ 'delete': function (name /* , value */) {
+ var state = getInternalParamsState(this);
+ var length = validateArgumentsLength(arguments.length, 1);
+ var entries = state.entries;
+ var key = $toString(name);
+ var $value = length < 2 ? undefined : arguments[1];
+ var value = $value === undefined ? $value : $toString($value);
+ var index = 0;
+ while (index < entries.length) {
+ var entry = entries[index];
+ if (entry.key === key && (value === undefined || entry.value === value)) {
+ splice(entries, index, 1);
+ if (value !== undefined) break;
+ } else index++;
+ }
+ if (!DESCRIPTORS) this.size = entries.length;
+ state.updateURL();
+ },
+ // `URLSearchParams.prototype.get` method
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-get
+ get: function get(name) {
+ var entries = getInternalParamsState(this).entries;
+ validateArgumentsLength(arguments.length, 1);
+ var key = $toString(name);
+ var index = 0;
+ for (; index < entries.length; index++) {
+ if (entries[index].key === key) return entries[index].value;
+ }
+ return null;
+ },
+ // `URLSearchParams.prototype.getAll` method
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-getall
+ getAll: function getAll(name) {
+ var entries = getInternalParamsState(this).entries;
+ validateArgumentsLength(arguments.length, 1);
+ var key = $toString(name);
+ var result = [];
+ var index = 0;
+ for (; index < entries.length; index++) {
+ if (entries[index].key === key) push(result, entries[index].value);
+ }
+ return result;
+ },
+ // `URLSearchParams.prototype.has` method
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-has
+ has: function has(name /* , value */) {
+ var entries = getInternalParamsState(this).entries;
+ var length = validateArgumentsLength(arguments.length, 1);
+ var key = $toString(name);
+ var $value = length < 2 ? undefined : arguments[1];
+ var value = $value === undefined ? $value : $toString($value);
+ var index = 0;
+ while (index < entries.length) {
+ var entry = entries[index++];
+ if (entry.key === key && (value === undefined || entry.value === value)) return true;
+ }
+ return false;
+ },
+ // `URLSearchParams.prototype.set` method
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-set
+ set: function set(name, value) {
+ var state = getInternalParamsState(this);
+ validateArgumentsLength(arguments.length, 1);
+ var entries = state.entries;
+ var found = false;
+ var key = $toString(name);
+ var val = $toString(value);
+ var index = 0;
+ var entry;
+ for (; index < entries.length; index++) {
+ entry = entries[index];
+ if (entry.key === key) {
+ if (found) splice(entries, index--, 1);
+ else {
+ found = true;
+ entry.value = val;
+ }
+ }
+ }
+ if (!found) push(entries, { key: key, value: val });
+ if (!DESCRIPTORS) this.size = entries.length;
+ state.updateURL();
+ },
+ // `URLSearchParams.prototype.sort` method
+ // https://url.spec.whatwg.org/#dom-urlsearchparams-sort
+ sort: function sort() {
+ var state = getInternalParamsState(this);
+ arraySort(state.entries, function (a, b) {
+ return a.key > b.key ? 1 : -1;
+ });
+ state.updateURL();
+ },
+ // `URLSearchParams.prototype.forEach` method
+ forEach: function forEach(callback /* , thisArg */) {
+ var entries = getInternalParamsState(this).entries;
+ var boundFunction = bind(callback, arguments.length > 1 ? arguments[1] : undefined);
+ var index = 0;
+ var entry;
+ while (index < entries.length) {
+ entry = entries[index++];
+ boundFunction(entry.value, entry.key, this);
+ }
+ },
+ // `URLSearchParams.prototype.keys` method
+ keys: function keys() {
+ return new URLSearchParamsIterator(this, 'keys');
+ },
+ // `URLSearchParams.prototype.values` method
+ values: function values() {
+ return new URLSearchParamsIterator(this, 'values');
+ },
+ // `URLSearchParams.prototype.entries` method
+ entries: function entries() {
+ return new URLSearchParamsIterator(this, 'entries');
+ }
+ }, { enumerable: true });
+
+ // `URLSearchParams.prototype[@@iterator]` method
+ defineBuiltIn(URLSearchParamsPrototype, ITERATOR, URLSearchParamsPrototype.entries, { name: 'entries' });
+
+ // `URLSearchParams.prototype.toString` method
+ // https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
+ defineBuiltIn(URLSearchParamsPrototype, 'toString', function toString() {
+ return getInternalParamsState(this).serialize();
+ }, { enumerable: true });
+
+ // `URLSearchParams.prototype.size` getter
+ // https://github.com/whatwg/url/pull/734
+ if (DESCRIPTORS) defineBuiltInAccessor(URLSearchParamsPrototype, 'size', {
+ get: function size() {
+ return getInternalParamsState(this).entries.length;
+ },
+ configurable: true,
+ enumerable: true
+ });
+
+ setToStringTag(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
+
+ $({ global: true, constructor: true, forced: !USE_NATIVE_URL }, {
+ URLSearchParams: URLSearchParamsConstructor
+ });
+
+ // Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
+ if (!USE_NATIVE_URL && isCallable(Headers)) {
+ var headersHas = uncurryThis(HeadersPrototype.has);
+ var headersSet = uncurryThis(HeadersPrototype.set);
+
+ var wrapRequestOptions = function (init) {
+ if (isObject(init)) {
+ var body = init.body;
+ var headers;
+ if (classof(body) === URL_SEARCH_PARAMS) {
+ headers = init.headers ? new Headers(init.headers) : new Headers();
+ if (!headersHas(headers, 'content-type')) {
+ headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
+ }
+ return create(init, {
+ body: createPropertyDescriptor(0, $toString(body)),
+ headers: createPropertyDescriptor(0, headers)
+ });
+ }
+ } return init;
+ };
+
+ if (isCallable(nativeFetch)) {
+ $({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
+ fetch: function fetch(input /* , init */) {
+ return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
+ }
+ });
+ }
+
+ if (isCallable(NativeRequest)) {
+ var RequestConstructor = function Request(input /* , init */) {
+ anInstance(this, RequestPrototype);
+ return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
+ };
+
+ RequestPrototype.constructor = RequestConstructor;
+ RequestConstructor.prototype = RequestPrototype;
+
+ $({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
+ Request: RequestConstructor
+ });
+ }
+ }
+
+ /**
+ * @author: general
+ * @website: note.generals.space
+ * @email: [email protected]
+ * @github: https://github.com/generals-space/bootstrap-table-addrbar
+ * @update: zhixin wen <[email protected]>
+ */
+
+ Object.assign($$6.fn.bootstrapTable.defaults, {
+ addrbar: false,
+ addrPrefix: ''
+ });
+ $$6.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
+ _inherits(_class, _$$BootstrapTable);
+ function _class() {
+ _classCallCheck(this, _class);
+ return _callSuper(this, _class, arguments);
+ }
+ _createClass(_class, [{
+ key: "init",
+ value: function init() {
+ var _get2;
+ if (this.options.pagination && this.options.addrbar) {
+ this.initAddrbar();
+ }
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
+ args[_key] = arguments[_key];
+ }
+ (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
+ }
+
+ /*
+ * Priority order:
+ * The value specified by the user has the highest priority.
+ * If it is not specified, it will be obtained from the address bar.
+ * If it is not obtained, the default value will be used.
+ */
+ }, {
+ key: "getDefaultOptionValue",
+ value: function getDefaultOptionValue(optionName, prefixName) {
+ if (this.options[optionName] !== $$6.BootstrapTable.DEFAULTS[optionName]) {
+ return this.options[optionName];
+ }
+ return this.searchParams.get("".concat(this.options.addrPrefix || '').concat(prefixName)) || $$6.BootstrapTable.DEFAULTS[optionName];
+ }
+ }, {
+ key: "initAddrbar",
+ value: function initAddrbar() {
+ var _this = this;
+ // 标志位, 初始加载后关闭
+ this.addrbarInit = true;
+ this.searchParams = new URLSearchParams(window.location.search.substring(1));
+ this.options.pageNumber = +this.getDefaultOptionValue('pageNumber', 'page');
+ this.options.pageSize = +this.getDefaultOptionValue('pageSize', 'size');
+ this.options.sortOrder = this.getDefaultOptionValue('sortOrder', 'order');
+ this.options.sortName = this.getDefaultOptionValue('sortName', 'sort');
+ this.options.searchText = this.getDefaultOptionValue('searchText', 'search');
+ var prefix = this.options.addrPrefix || '';
+ var onLoadSuccess = this.options.onLoadSuccess;
+ var onPageChange = this.options.onPageChange;
+ this.options.onLoadSuccess = function (data) {
+ if (_this.addrbarInit) {
+ _this.addrbarInit = false;
+ } else {
+ _this.updateHistoryState(prefix);
+ }
+ if (onLoadSuccess) {
+ onLoadSuccess.call(_this, data);
+ }
+ };
+ this.options.onPageChange = function (number, size) {
+ _this.updateHistoryState(prefix);
+ if (onPageChange) {
+ onPageChange.call(_this, number, size);
+ }
+ };
+ }
+ }, {
+ key: "updateHistoryState",
+ value: function updateHistoryState(prefix) {
+ var params = {};
+ params["".concat(prefix, "page")] = this.options.pageNumber;
+ params["".concat(prefix, "size")] = this.options.pageSize;
+ params["".concat(prefix, "order")] = this.options.sortOrder;
+ params["".concat(prefix, "sort")] = this.options.sortName;
+ params["".concat(prefix, "search")] = this.options.searchText;
+ for (var _i = 0, _Object$entries = Object.entries(params); _i < _Object$entries.length; _i++) {
+ var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
+ key = _Object$entries$_i[0],
+ value = _Object$entries$_i[1];
+ if (value === undefined) {
+ this.searchParams.delete(key);
+ } else {
+ this.searchParams.set(key, value);
+ }
+ }
+ var url = "?".concat(this.searchParams.toString());
+ if (location.hash) {
+ url += location.hash;
+ }
+ window.history.pushState({}, '', url);
+ }
+ }, {
+ key: "resetSearch",
+ value: function resetSearch(text) {
+ _get(_getPrototypeOf(_class.prototype), "resetSearch", this).call(this, text);
+ this.options.searchText = text || '';
+ }
+ }]);
+ return _class;
+ }($$6.BootstrapTable);
+
+}));
+
jQuery.base64 = (function($) {
// private property
diff --git a/public/mix-manifest.json b/public/mix-manifest.json
index 6c7fa0e60f..be7c6d027d 100644
--- a/public/mix-manifest.json
+++ b/public/mix-manifest.json
@@ -31,7 +31,7 @@
"/css/webfonts/fa-v4compatibility.woff2": "/css/webfonts/fa-v4compatibility.woff2?id=e11465c0eff0549edd4e8ea6bbcf242f",
"/css/dist/bootstrap-table.css": "/css/dist/bootstrap-table.css?id=99c395f0bab5966f32f63f4e55899e64",
"/js/build/vendor.js": "/js/build/vendor.js?id=a2b971da417306a63385c8098acfe4af",
- "/js/dist/bootstrap-table.js": "/js/dist/bootstrap-table.js?id=d0eb38da8b772a21b827b7df208dc4fe",
+ "/js/dist/bootstrap-table.js": "/js/dist/bootstrap-table.js?id=47596e30f56a42f12175ac54592d0912",
"/js/dist/all.js": "/js/dist/all.js?id=13bdb521e0c745d7f81dae3fb110b650",
"/js/dist/all-defer.js": "/js/dist/all-defer.js?id=19ccc62a8f1ea103dede4808837384d4",
"/css/dist/skins/skin-green.min.css": "/css/dist/skins/skin-green.min.css?id=0a82a6ae6bb4e58fe62d162c4fb50397",
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php
index b4f47c6a3c..28c414a436 100644
--- a/resources/views/partials/bootstrap-table.blade.php
+++ b/resources/views/partials/bootstrap-table.blade.php
@@ -58,6 +58,7 @@
maintainSelected: true,
trimOnSearch: false,
showSearchClearButton: true,
+ addrbar: true, // deeplink search phrases, sorting, etc
paginationFirstText: "{{ trans('general.first') }}",
paginationLastText: "{{ trans('general.last') }}",
paginationPreText: "{{ trans('general.previous') }}",
diff --git a/webpack.mix.js b/webpack.mix.js
index fdda6618ab..0b5e2ed3ee 100644
--- a/webpack.mix.js
+++ b/webpack.mix.js
@@ -188,6 +188,7 @@ mix
'./node_modules/bootstrap-table/dist/extensions/export/bootstrap-table-export.js',
'./node_modules/bootstrap-table/dist/extensions/cookie/bootstrap-table-cookie.js',
'./node_modules/bootstrap-table/dist/extensions/sticky-header/bootstrap-table-sticky-header.js',
+ './node_modules/bootstrap-table/dist/extensions/addrbar/bootstrap-table-addrbar.js',
'./resources/assets/js/extensions/jquery.base64.js',
'./node_modules/tableexport.jquery.plugin/tableExport.min.js',
'./node_modules/tableexport.jquery.plugin/libs/jsPDF/jspdf.umd.min.js',