UNPKG

75.1 kBJavaScriptView Raw
1(function (global, factory) {
2 typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3 typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4 (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
5})(this, (function ($$6) { 'use strict';
6
7 function _iterableToArrayLimit(arr, i) {
8 var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"];
9 if (null != _i) {
10 var _s,
11 _e,
12 _x,
13 _r,
14 _arr = [],
15 _n = !0,
16 _d = !1;
17 try {
18 if (_x = (_i = _i.call(arr)).next, 0 === i) {
19 if (Object(_i) !== _i) return;
20 _n = !1;
21 } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);
22 } catch (err) {
23 _d = !0, _e = err;
24 } finally {
25 try {
26 if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return;
27 } finally {
28 if (_d) throw _e;
29 }
30 }
31 return _arr;
32 }
33 }
34 function _classCallCheck(instance, Constructor) {
35 if (!(instance instanceof Constructor)) {
36 throw new TypeError("Cannot call a class as a function");
37 }
38 }
39 function _defineProperties(target, props) {
40 for (var i = 0; i < props.length; i++) {
41 var descriptor = props[i];
42 descriptor.enumerable = descriptor.enumerable || false;
43 descriptor.configurable = true;
44 if ("value" in descriptor) descriptor.writable = true;
45 Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
46 }
47 }
48 function _createClass(Constructor, protoProps, staticProps) {
49 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
50 if (staticProps) _defineProperties(Constructor, staticProps);
51 Object.defineProperty(Constructor, "prototype", {
52 writable: false
53 });
54 return Constructor;
55 }
56 function _inherits(subClass, superClass) {
57 if (typeof superClass !== "function" && superClass !== null) {
58 throw new TypeError("Super expression must either be null or a function");
59 }
60 subClass.prototype = Object.create(superClass && superClass.prototype, {
61 constructor: {
62 value: subClass,
63 writable: true,
64 configurable: true
65 }
66 });
67 Object.defineProperty(subClass, "prototype", {
68 writable: false
69 });
70 if (superClass) _setPrototypeOf(subClass, superClass);
71 }
72 function _getPrototypeOf(o) {
73 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
74 return o.__proto__ || Object.getPrototypeOf(o);
75 };
76 return _getPrototypeOf(o);
77 }
78 function _setPrototypeOf(o, p) {
79 _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
80 o.__proto__ = p;
81 return o;
82 };
83 return _setPrototypeOf(o, p);
84 }
85 function _isNativeReflectConstruct() {
86 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
87 if (Reflect.construct.sham) return false;
88 if (typeof Proxy === "function") return true;
89 try {
90 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
91 return true;
92 } catch (e) {
93 return false;
94 }
95 }
96 function _assertThisInitialized(self) {
97 if (self === void 0) {
98 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
99 }
100 return self;
101 }
102 function _possibleConstructorReturn(self, call) {
103 if (call && (typeof call === "object" || typeof call === "function")) {
104 return call;
105 } else if (call !== void 0) {
106 throw new TypeError("Derived constructors may only return object or undefined");
107 }
108 return _assertThisInitialized(self);
109 }
110 function _createSuper(Derived) {
111 var hasNativeReflectConstruct = _isNativeReflectConstruct();
112 return function _createSuperInternal() {
113 var Super = _getPrototypeOf(Derived),
114 result;
115 if (hasNativeReflectConstruct) {
116 var NewTarget = _getPrototypeOf(this).constructor;
117 result = Reflect.construct(Super, arguments, NewTarget);
118 } else {
119 result = Super.apply(this, arguments);
120 }
121 return _possibleConstructorReturn(this, result);
122 };
123 }
124 function _superPropBase(object, property) {
125 while (!Object.prototype.hasOwnProperty.call(object, property)) {
126 object = _getPrototypeOf(object);
127 if (object === null) break;
128 }
129 return object;
130 }
131 function _get() {
132 if (typeof Reflect !== "undefined" && Reflect.get) {
133 _get = Reflect.get.bind();
134 } else {
135 _get = function _get(target, property, receiver) {
136 var base = _superPropBase(target, property);
137 if (!base) return;
138 var desc = Object.getOwnPropertyDescriptor(base, property);
139 if (desc.get) {
140 return desc.get.call(arguments.length < 3 ? target : receiver);
141 }
142 return desc.value;
143 };
144 }
145 return _get.apply(this, arguments);
146 }
147 function _slicedToArray(arr, i) {
148 return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
149 }
150 function _arrayWithHoles(arr) {
151 if (Array.isArray(arr)) return arr;
152 }
153 function _unsupportedIterableToArray(o, minLen) {
154 if (!o) return;
155 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
156 var n = Object.prototype.toString.call(o).slice(8, -1);
157 if (n === "Object" && o.constructor) n = o.constructor.name;
158 if (n === "Map" || n === "Set") return Array.from(o);
159 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
160 }
161 function _arrayLikeToArray(arr, len) {
162 if (len == null || len > arr.length) len = arr.length;
163 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
164 return arr2;
165 }
166 function _nonIterableRest() {
167 throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
168 }
169 function _toPrimitive(input, hint) {
170 if (typeof input !== "object" || input === null) return input;
171 var prim = input[Symbol.toPrimitive];
172 if (prim !== undefined) {
173 var res = prim.call(input, hint || "default");
174 if (typeof res !== "object") return res;
175 throw new TypeError("@@toPrimitive must return a primitive value.");
176 }
177 return (hint === "string" ? String : Number)(input);
178 }
179 function _toPropertyKey(arg) {
180 var key = _toPrimitive(arg, "string");
181 return typeof key === "symbol" ? key : String(key);
182 }
183
184 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
185
186 var check = function (it) {
187 return it && it.Math == Math && it;
188 };
189
190 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
191 var global$b =
192 // eslint-disable-next-line es/no-global-this -- safe
193 check(typeof globalThis == 'object' && globalThis) ||
194 check(typeof window == 'object' && window) ||
195 // eslint-disable-next-line no-restricted-globals -- safe
196 check(typeof self == 'object' && self) ||
197 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
198 // eslint-disable-next-line no-new-func -- fallback
199 (function () { return this; })() || Function('return this')();
200
201 var objectGetOwnPropertyDescriptor = {};
202
203 var fails$d = function (exec) {
204 try {
205 return !!exec();
206 } catch (error) {
207 return true;
208 }
209 };
210
211 var fails$c = fails$d;
212
213 // Detect IE8's incomplete defineProperty implementation
214 var descriptors = !fails$c(function () {
215 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
216 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
217 });
218
219 var fails$b = fails$d;
220
221 var functionBindNative = !fails$b(function () {
222 // eslint-disable-next-line es/no-function-prototype-bind -- safe
223 var test = (function () { /* empty */ }).bind();
224 // eslint-disable-next-line no-prototype-builtins -- safe
225 return typeof test != 'function' || test.hasOwnProperty('prototype');
226 });
227
228 var NATIVE_BIND$2 = functionBindNative;
229
230 var call$5 = Function.prototype.call;
231
232 var functionCall = NATIVE_BIND$2 ? call$5.bind(call$5) : function () {
233 return call$5.apply(call$5, arguments);
234 };
235
236 var objectPropertyIsEnumerable = {};
237
238 var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
239 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
240 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
241
242 // Nashorn ~ JDK8 bug
243 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
244
245 // `Object.prototype.propertyIsEnumerable` method implementation
246 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
247 objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
248 var descriptor = getOwnPropertyDescriptor$1(this, V);
249 return !!descriptor && descriptor.enumerable;
250 } : $propertyIsEnumerable$1;
251
252 var createPropertyDescriptor$3 = function (bitmap, value) {
253 return {
254 enumerable: !(bitmap & 1),
255 configurable: !(bitmap & 2),
256 writable: !(bitmap & 4),
257 value: value
258 };
259 };
260
261 var NATIVE_BIND$1 = functionBindNative;
262
263 var FunctionPrototype$1 = Function.prototype;
264 var call$4 = FunctionPrototype$1.call;
265 var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$4, call$4);
266
267 var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
268 return function () {
269 return call$4.apply(fn, arguments);
270 };
271 };
272
273 var uncurryThis$g = functionUncurryThis;
274
275 var toString$5 = uncurryThis$g({}.toString);
276 var stringSlice$1 = uncurryThis$g(''.slice);
277
278 var classofRaw$2 = function (it) {
279 return stringSlice$1(toString$5(it), 8, -1);
280 };
281
282 var uncurryThis$f = functionUncurryThis;
283 var fails$a = fails$d;
284 var classof$5 = classofRaw$2;
285
286 var $Object$3 = Object;
287 var split = uncurryThis$f(''.split);
288
289 // fallback for non-array-like ES3 and non-enumerable old V8 strings
290 var indexedObject = fails$a(function () {
291 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
292 // eslint-disable-next-line no-prototype-builtins -- safe
293 return !$Object$3('z').propertyIsEnumerable(0);
294 }) ? function (it) {
295 return classof$5(it) == 'String' ? split(it, '') : $Object$3(it);
296 } : $Object$3;
297
298 // we can't use just `it == null` since of `document.all` special case
299 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
300 var isNullOrUndefined$2 = function (it) {
301 return it === null || it === undefined;
302 };
303
304 var isNullOrUndefined$1 = isNullOrUndefined$2;
305
306 var $TypeError$6 = TypeError;
307
308 // `RequireObjectCoercible` abstract operation
309 // https://tc39.es/ecma262/#sec-requireobjectcoercible
310 var requireObjectCoercible$3 = function (it) {
311 if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it);
312 return it;
313 };
314
315 // toObject with fallback for non-array-like ES3 strings
316 var IndexedObject$2 = indexedObject;
317 var requireObjectCoercible$2 = requireObjectCoercible$3;
318
319 var toIndexedObject$5 = function (it) {
320 return IndexedObject$2(requireObjectCoercible$2(it));
321 };
322
323 var documentAll$2 = typeof document == 'object' && document.all;
324
325 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
326 // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
327 var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
328
329 var documentAll_1 = {
330 all: documentAll$2,
331 IS_HTMLDDA: IS_HTMLDDA
332 };
333
334 var $documentAll$1 = documentAll_1;
335
336 var documentAll$1 = $documentAll$1.all;
337
338 // `IsCallable` abstract operation
339 // https://tc39.es/ecma262/#sec-iscallable
340 var isCallable$c = $documentAll$1.IS_HTMLDDA ? function (argument) {
341 return typeof argument == 'function' || argument === documentAll$1;
342 } : function (argument) {
343 return typeof argument == 'function';
344 };
345
346 var isCallable$b = isCallable$c;
347 var $documentAll = documentAll_1;
348
349 var documentAll = $documentAll.all;
350
351 var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) {
352 return typeof it == 'object' ? it !== null : isCallable$b(it) || it === documentAll;
353 } : function (it) {
354 return typeof it == 'object' ? it !== null : isCallable$b(it);
355 };
356
357 var global$a = global$b;
358 var isCallable$a = isCallable$c;
359
360 var aFunction = function (argument) {
361 return isCallable$a(argument) ? argument : undefined;
362 };
363
364 var getBuiltIn$4 = function (namespace, method) {
365 return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
366 };
367
368 var uncurryThis$e = functionUncurryThis;
369
370 var objectIsPrototypeOf = uncurryThis$e({}.isPrototypeOf);
371
372 var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
373
374 var global$9 = global$b;
375 var userAgent = engineUserAgent;
376
377 var process = global$9.process;
378 var Deno = global$9.Deno;
379 var versions = process && process.versions || Deno && Deno.version;
380 var v8 = versions && versions.v8;
381 var match, version;
382
383 if (v8) {
384 match = v8.split('.');
385 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
386 // but their correct versions are not interesting for us
387 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
388 }
389
390 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
391 // so check `userAgent` even if `.v8` exists, but 0
392 if (!version && userAgent) {
393 match = userAgent.match(/Edge\/(\d+)/);
394 if (!match || match[1] >= 74) {
395 match = userAgent.match(/Chrome\/(\d+)/);
396 if (match) version = +match[1];
397 }
398 }
399
400 var engineV8Version = version;
401
402 /* eslint-disable es/no-symbol -- required for testing */
403
404 var V8_VERSION$2 = engineV8Version;
405 var fails$9 = fails$d;
406
407 // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
408 var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
409 var symbol = Symbol();
410 // Chrome 38 Symbol has incorrect toString conversion
411 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
412 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
413 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
414 !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
415 });
416
417 /* eslint-disable es/no-symbol -- required for testing */
418
419 var NATIVE_SYMBOL$1 = symbolConstructorDetection;
420
421 var useSymbolAsUid = NATIVE_SYMBOL$1
422 && !Symbol.sham
423 && typeof Symbol.iterator == 'symbol';
424
425 var getBuiltIn$3 = getBuiltIn$4;
426 var isCallable$9 = isCallable$c;
427 var isPrototypeOf = objectIsPrototypeOf;
428 var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
429
430 var $Object$2 = Object;
431
432 var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
433 return typeof it == 'symbol';
434 } : function (it) {
435 var $Symbol = getBuiltIn$3('Symbol');
436 return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
437 };
438
439 var $String$3 = String;
440
441 var tryToString$1 = function (argument) {
442 try {
443 return $String$3(argument);
444 } catch (error) {
445 return 'Object';
446 }
447 };
448
449 var isCallable$8 = isCallable$c;
450 var tryToString = tryToString$1;
451
452 var $TypeError$5 = TypeError;
453
454 // `Assert: IsCallable(argument) is true`
455 var aCallable$2 = function (argument) {
456 if (isCallable$8(argument)) return argument;
457 throw $TypeError$5(tryToString(argument) + ' is not a function');
458 };
459
460 var aCallable$1 = aCallable$2;
461 var isNullOrUndefined = isNullOrUndefined$2;
462
463 // `GetMethod` abstract operation
464 // https://tc39.es/ecma262/#sec-getmethod
465 var getMethod$1 = function (V, P) {
466 var func = V[P];
467 return isNullOrUndefined(func) ? undefined : aCallable$1(func);
468 };
469
470 var call$3 = functionCall;
471 var isCallable$7 = isCallable$c;
472 var isObject$6 = isObject$7;
473
474 var $TypeError$4 = TypeError;
475
476 // `OrdinaryToPrimitive` abstract operation
477 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
478 var ordinaryToPrimitive$1 = function (input, pref) {
479 var fn, val;
480 if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
481 if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$3(fn, input))) return val;
482 if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$3(fn, input))) return val;
483 throw $TypeError$4("Can't convert object to primitive value");
484 };
485
486 var sharedExports = {};
487 var shared$3 = {
488 get exports(){ return sharedExports; },
489 set exports(v){ sharedExports = v; },
490 };
491
492 var global$8 = global$b;
493
494 // eslint-disable-next-line es/no-object-defineproperty -- safe
495 var defineProperty$3 = Object.defineProperty;
496
497 var defineGlobalProperty$3 = function (key, value) {
498 try {
499 defineProperty$3(global$8, key, { value: value, configurable: true, writable: true });
500 } catch (error) {
501 global$8[key] = value;
502 } return value;
503 };
504
505 var global$7 = global$b;
506 var defineGlobalProperty$2 = defineGlobalProperty$3;
507
508 var SHARED = '__core-js_shared__';
509 var store$3 = global$7[SHARED] || defineGlobalProperty$2(SHARED, {});
510
511 var sharedStore = store$3;
512
513 var store$2 = sharedStore;
514
515 (shared$3.exports = function (key, value) {
516 return store$2[key] || (store$2[key] = value !== undefined ? value : {});
517 })('versions', []).push({
518 version: '3.29.0',
519 mode: 'global',
520 copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
521 license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
522 source: 'https://github.com/zloirock/core-js'
523 });
524
525 var requireObjectCoercible$1 = requireObjectCoercible$3;
526
527 var $Object$1 = Object;
528
529 // `ToObject` abstract operation
530 // https://tc39.es/ecma262/#sec-toobject
531 var toObject$4 = function (argument) {
532 return $Object$1(requireObjectCoercible$1(argument));
533 };
534
535 var uncurryThis$d = functionUncurryThis;
536 var toObject$3 = toObject$4;
537
538 var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
539
540 // `HasOwnProperty` abstract operation
541 // https://tc39.es/ecma262/#sec-hasownproperty
542 // eslint-disable-next-line es/no-object-hasown -- safe
543 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
544 return hasOwnProperty(toObject$3(it), key);
545 };
546
547 var uncurryThis$c = functionUncurryThis;
548
549 var id = 0;
550 var postfix = Math.random();
551 var toString$4 = uncurryThis$c(1.0.toString);
552
553 var uid$2 = function (key) {
554 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
555 };
556
557 var global$6 = global$b;
558 var shared$2 = sharedExports;
559 var hasOwn$6 = hasOwnProperty_1;
560 var uid$1 = uid$2;
561 var NATIVE_SYMBOL = symbolConstructorDetection;
562 var USE_SYMBOL_AS_UID = useSymbolAsUid;
563
564 var Symbol$2 = global$6.Symbol;
565 var WellKnownSymbolsStore = shared$2('wks');
566 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
567
568 var wellKnownSymbol$7 = function (name) {
569 if (!hasOwn$6(WellKnownSymbolsStore, name)) {
570 WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$2, name)
571 ? Symbol$2[name]
572 : createWellKnownSymbol('Symbol.' + name);
573 } return WellKnownSymbolsStore[name];
574 };
575
576 var call$2 = functionCall;
577 var isObject$5 = isObject$7;
578 var isSymbol$1 = isSymbol$2;
579 var getMethod = getMethod$1;
580 var ordinaryToPrimitive = ordinaryToPrimitive$1;
581 var wellKnownSymbol$6 = wellKnownSymbol$7;
582
583 var $TypeError$3 = TypeError;
584 var TO_PRIMITIVE = wellKnownSymbol$6('toPrimitive');
585
586 // `ToPrimitive` abstract operation
587 // https://tc39.es/ecma262/#sec-toprimitive
588 var toPrimitive$1 = function (input, pref) {
589 if (!isObject$5(input) || isSymbol$1(input)) return input;
590 var exoticToPrim = getMethod(input, TO_PRIMITIVE);
591 var result;
592 if (exoticToPrim) {
593 if (pref === undefined) pref = 'default';
594 result = call$2(exoticToPrim, input, pref);
595 if (!isObject$5(result) || isSymbol$1(result)) return result;
596 throw $TypeError$3("Can't convert object to primitive value");
597 }
598 if (pref === undefined) pref = 'number';
599 return ordinaryToPrimitive(input, pref);
600 };
601
602 var toPrimitive = toPrimitive$1;
603 var isSymbol = isSymbol$2;
604
605 // `ToPropertyKey` abstract operation
606 // https://tc39.es/ecma262/#sec-topropertykey
607 var toPropertyKey$3 = function (argument) {
608 var key = toPrimitive(argument, 'string');
609 return isSymbol(key) ? key : key + '';
610 };
611
612 var global$5 = global$b;
613 var isObject$4 = isObject$7;
614
615 var document$1 = global$5.document;
616 // typeof document.createElement is 'object' in old IE
617 var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
618
619 var documentCreateElement$1 = function (it) {
620 return EXISTS$1 ? document$1.createElement(it) : {};
621 };
622
623 var DESCRIPTORS$9 = descriptors;
624 var fails$8 = fails$d;
625 var createElement = documentCreateElement$1;
626
627 // Thanks to IE8 for its funny defineProperty
628 var ie8DomDefine = !DESCRIPTORS$9 && !fails$8(function () {
629 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
630 return Object.defineProperty(createElement('div'), 'a', {
631 get: function () { return 7; }
632 }).a != 7;
633 });
634
635 var DESCRIPTORS$8 = descriptors;
636 var call$1 = functionCall;
637 var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
638 var createPropertyDescriptor$2 = createPropertyDescriptor$3;
639 var toIndexedObject$4 = toIndexedObject$5;
640 var toPropertyKey$2 = toPropertyKey$3;
641 var hasOwn$5 = hasOwnProperty_1;
642 var IE8_DOM_DEFINE$1 = ie8DomDefine;
643
644 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
645 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
646
647 // `Object.getOwnPropertyDescriptor` method
648 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
649 objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
650 O = toIndexedObject$4(O);
651 P = toPropertyKey$2(P);
652 if (IE8_DOM_DEFINE$1) try {
653 return $getOwnPropertyDescriptor$1(O, P);
654 } catch (error) { /* empty */ }
655 if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
656 };
657
658 var objectDefineProperty = {};
659
660 var DESCRIPTORS$7 = descriptors;
661 var fails$7 = fails$d;
662
663 // V8 ~ Chrome 36-
664 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
665 var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$7(function () {
666 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
667 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
668 value: 42,
669 writable: false
670 }).prototype != 42;
671 });
672
673 var isObject$3 = isObject$7;
674
675 var $String$2 = String;
676 var $TypeError$2 = TypeError;
677
678 // `Assert: Type(argument) is Object`
679 var anObject$4 = function (argument) {
680 if (isObject$3(argument)) return argument;
681 throw $TypeError$2($String$2(argument) + ' is not an object');
682 };
683
684 var DESCRIPTORS$6 = descriptors;
685 var IE8_DOM_DEFINE = ie8DomDefine;
686 var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
687 var anObject$3 = anObject$4;
688 var toPropertyKey$1 = toPropertyKey$3;
689
690 var $TypeError$1 = TypeError;
691 // eslint-disable-next-line es/no-object-defineproperty -- safe
692 var $defineProperty = Object.defineProperty;
693 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
694 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
695 var ENUMERABLE = 'enumerable';
696 var CONFIGURABLE$1 = 'configurable';
697 var WRITABLE = 'writable';
698
699 // `Object.defineProperty` method
700 // https://tc39.es/ecma262/#sec-object.defineproperty
701 objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
702 anObject$3(O);
703 P = toPropertyKey$1(P);
704 anObject$3(Attributes);
705 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
706 var current = $getOwnPropertyDescriptor(O, P);
707 if (current && current[WRITABLE]) {
708 O[P] = Attributes.value;
709 Attributes = {
710 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
711 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
712 writable: false
713 };
714 }
715 } return $defineProperty(O, P, Attributes);
716 } : $defineProperty : function defineProperty(O, P, Attributes) {
717 anObject$3(O);
718 P = toPropertyKey$1(P);
719 anObject$3(Attributes);
720 if (IE8_DOM_DEFINE) try {
721 return $defineProperty(O, P, Attributes);
722 } catch (error) { /* empty */ }
723 if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
724 if ('value' in Attributes) O[P] = Attributes.value;
725 return O;
726 };
727
728 var DESCRIPTORS$5 = descriptors;
729 var definePropertyModule$4 = objectDefineProperty;
730 var createPropertyDescriptor$1 = createPropertyDescriptor$3;
731
732 var createNonEnumerableProperty$2 = DESCRIPTORS$5 ? function (object, key, value) {
733 return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
734 } : function (object, key, value) {
735 object[key] = value;
736 return object;
737 };
738
739 var makeBuiltInExports = {};
740 var makeBuiltIn$2 = {
741 get exports(){ return makeBuiltInExports; },
742 set exports(v){ makeBuiltInExports = v; },
743 };
744
745 var DESCRIPTORS$4 = descriptors;
746 var hasOwn$4 = hasOwnProperty_1;
747
748 var FunctionPrototype = Function.prototype;
749 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
750 var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
751
752 var EXISTS = hasOwn$4(FunctionPrototype, 'name');
753 // additional protection from minified / mangled / dropped function names
754 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
755 var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
756
757 var functionName = {
758 EXISTS: EXISTS,
759 PROPER: PROPER,
760 CONFIGURABLE: CONFIGURABLE
761 };
762
763 var uncurryThis$b = functionUncurryThis;
764 var isCallable$6 = isCallable$c;
765 var store$1 = sharedStore;
766
767 var functionToString = uncurryThis$b(Function.toString);
768
769 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
770 if (!isCallable$6(store$1.inspectSource)) {
771 store$1.inspectSource = function (it) {
772 return functionToString(it);
773 };
774 }
775
776 var inspectSource$2 = store$1.inspectSource;
777
778 var global$4 = global$b;
779 var isCallable$5 = isCallable$c;
780
781 var WeakMap$1 = global$4.WeakMap;
782
783 var weakMapBasicDetection = isCallable$5(WeakMap$1) && /native code/.test(String(WeakMap$1));
784
785 var shared$1 = sharedExports;
786 var uid = uid$2;
787
788 var keys = shared$1('keys');
789
790 var sharedKey$2 = function (key) {
791 return keys[key] || (keys[key] = uid(key));
792 };
793
794 var hiddenKeys$4 = {};
795
796 var NATIVE_WEAK_MAP = weakMapBasicDetection;
797 var global$3 = global$b;
798 var isObject$2 = isObject$7;
799 var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
800 var hasOwn$3 = hasOwnProperty_1;
801 var shared = sharedStore;
802 var sharedKey$1 = sharedKey$2;
803 var hiddenKeys$3 = hiddenKeys$4;
804
805 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
806 var TypeError$1 = global$3.TypeError;
807 var WeakMap = global$3.WeakMap;
808 var set, get, has;
809
810 var enforce = function (it) {
811 return has(it) ? get(it) : set(it, {});
812 };
813
814 var getterFor = function (TYPE) {
815 return function (it) {
816 var state;
817 if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
818 throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
819 } return state;
820 };
821 };
822
823 if (NATIVE_WEAK_MAP || shared.state) {
824 var store = shared.state || (shared.state = new WeakMap());
825 /* eslint-disable no-self-assign -- prototype methods protection */
826 store.get = store.get;
827 store.has = store.has;
828 store.set = store.set;
829 /* eslint-enable no-self-assign -- prototype methods protection */
830 set = function (it, metadata) {
831 if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
832 metadata.facade = it;
833 store.set(it, metadata);
834 return metadata;
835 };
836 get = function (it) {
837 return store.get(it) || {};
838 };
839 has = function (it) {
840 return store.has(it);
841 };
842 } else {
843 var STATE = sharedKey$1('state');
844 hiddenKeys$3[STATE] = true;
845 set = function (it, metadata) {
846 if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
847 metadata.facade = it;
848 createNonEnumerableProperty$1(it, STATE, metadata);
849 return metadata;
850 };
851 get = function (it) {
852 return hasOwn$3(it, STATE) ? it[STATE] : {};
853 };
854 has = function (it) {
855 return hasOwn$3(it, STATE);
856 };
857 }
858
859 var internalState = {
860 set: set,
861 get: get,
862 has: has,
863 enforce: enforce,
864 getterFor: getterFor
865 };
866
867 var uncurryThis$a = functionUncurryThis;
868 var fails$6 = fails$d;
869 var isCallable$4 = isCallable$c;
870 var hasOwn$2 = hasOwnProperty_1;
871 var DESCRIPTORS$3 = descriptors;
872 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
873 var inspectSource$1 = inspectSource$2;
874 var InternalStateModule = internalState;
875
876 var enforceInternalState = InternalStateModule.enforce;
877 var getInternalState = InternalStateModule.get;
878 var $String$1 = String;
879 // eslint-disable-next-line es/no-object-defineproperty -- safe
880 var defineProperty$2 = Object.defineProperty;
881 var stringSlice = uncurryThis$a(''.slice);
882 var replace$1 = uncurryThis$a(''.replace);
883 var join = uncurryThis$a([].join);
884
885 var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$6(function () {
886 return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
887 });
888
889 var TEMPLATE = String(String).split('String');
890
891 var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
892 if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
893 name = '[' + replace$1($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
894 }
895 if (options && options.getter) name = 'get ' + name;
896 if (options && options.setter) name = 'set ' + name;
897 if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
898 if (DESCRIPTORS$3) defineProperty$2(value, 'name', { value: name, configurable: true });
899 else value.name = name;
900 }
901 if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
902 defineProperty$2(value, 'length', { value: options.arity });
903 }
904 try {
905 if (options && hasOwn$2(options, 'constructor') && options.constructor) {
906 if (DESCRIPTORS$3) defineProperty$2(value, 'prototype', { writable: false });
907 // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
908 } else if (value.prototype) value.prototype = undefined;
909 } catch (error) { /* empty */ }
910 var state = enforceInternalState(value);
911 if (!hasOwn$2(state, 'source')) {
912 state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
913 } return value;
914 };
915
916 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
917 // eslint-disable-next-line no-extend-native -- required
918 Function.prototype.toString = makeBuiltIn$1(function toString() {
919 return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
920 }, 'toString');
921
922 var isCallable$3 = isCallable$c;
923 var definePropertyModule$3 = objectDefineProperty;
924 var makeBuiltIn = makeBuiltInExports;
925 var defineGlobalProperty$1 = defineGlobalProperty$3;
926
927 var defineBuiltIn$2 = function (O, key, value, options) {
928 if (!options) options = {};
929 var simple = options.enumerable;
930 var name = options.name !== undefined ? options.name : key;
931 if (isCallable$3(value)) makeBuiltIn(value, name, options);
932 if (options.global) {
933 if (simple) O[key] = value;
934 else defineGlobalProperty$1(key, value);
935 } else {
936 try {
937 if (!options.unsafe) delete O[key];
938 else if (O[key]) simple = true;
939 } catch (error) { /* empty */ }
940 if (simple) O[key] = value;
941 else definePropertyModule$3.f(O, key, {
942 value: value,
943 enumerable: false,
944 configurable: !options.nonConfigurable,
945 writable: !options.nonWritable
946 });
947 } return O;
948 };
949
950 var objectGetOwnPropertyNames = {};
951
952 var ceil = Math.ceil;
953 var floor = Math.floor;
954
955 // `Math.trunc` method
956 // https://tc39.es/ecma262/#sec-math.trunc
957 // eslint-disable-next-line es/no-math-trunc -- safe
958 var mathTrunc = Math.trunc || function trunc(x) {
959 var n = +x;
960 return (n > 0 ? floor : ceil)(n);
961 };
962
963 var trunc = mathTrunc;
964
965 // `ToIntegerOrInfinity` abstract operation
966 // https://tc39.es/ecma262/#sec-tointegerorinfinity
967 var toIntegerOrInfinity$2 = function (argument) {
968 var number = +argument;
969 // eslint-disable-next-line no-self-compare -- NaN check
970 return number !== number || number === 0 ? 0 : trunc(number);
971 };
972
973 var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
974
975 var max = Math.max;
976 var min$1 = Math.min;
977
978 // Helper for a popular repeating case of the spec:
979 // Let integer be ? ToInteger(index).
980 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
981 var toAbsoluteIndex$1 = function (index, length) {
982 var integer = toIntegerOrInfinity$1(index);
983 return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
984 };
985
986 var toIntegerOrInfinity = toIntegerOrInfinity$2;
987
988 var min = Math.min;
989
990 // `ToLength` abstract operation
991 // https://tc39.es/ecma262/#sec-tolength
992 var toLength$1 = function (argument) {
993 return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
994 };
995
996 var toLength = toLength$1;
997
998 // `LengthOfArrayLike` abstract operation
999 // https://tc39.es/ecma262/#sec-lengthofarraylike
1000 var lengthOfArrayLike$3 = function (obj) {
1001 return toLength(obj.length);
1002 };
1003
1004 var toIndexedObject$3 = toIndexedObject$5;
1005 var toAbsoluteIndex = toAbsoluteIndex$1;
1006 var lengthOfArrayLike$2 = lengthOfArrayLike$3;
1007
1008 // `Array.prototype.{ indexOf, includes }` methods implementation
1009 var createMethod$3 = function (IS_INCLUDES) {
1010 return function ($this, el, fromIndex) {
1011 var O = toIndexedObject$3($this);
1012 var length = lengthOfArrayLike$2(O);
1013 var index = toAbsoluteIndex(fromIndex, length);
1014 var value;
1015 // Array#includes uses SameValueZero equality algorithm
1016 // eslint-disable-next-line no-self-compare -- NaN check
1017 if (IS_INCLUDES && el != el) while (length > index) {
1018 value = O[index++];
1019 // eslint-disable-next-line no-self-compare -- NaN check
1020 if (value != value) return true;
1021 // Array#indexOf ignores holes, Array#includes - not
1022 } else for (;length > index; index++) {
1023 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1024 } return !IS_INCLUDES && -1;
1025 };
1026 };
1027
1028 var arrayIncludes = {
1029 // `Array.prototype.includes` method
1030 // https://tc39.es/ecma262/#sec-array.prototype.includes
1031 includes: createMethod$3(true),
1032 // `Array.prototype.indexOf` method
1033 // https://tc39.es/ecma262/#sec-array.prototype.indexof
1034 indexOf: createMethod$3(false)
1035 };
1036
1037 var uncurryThis$9 = functionUncurryThis;
1038 var hasOwn$1 = hasOwnProperty_1;
1039 var toIndexedObject$2 = toIndexedObject$5;
1040 var indexOf = arrayIncludes.indexOf;
1041 var hiddenKeys$2 = hiddenKeys$4;
1042
1043 var push$2 = uncurryThis$9([].push);
1044
1045 var objectKeysInternal = function (object, names) {
1046 var O = toIndexedObject$2(object);
1047 var i = 0;
1048 var result = [];
1049 var key;
1050 for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$2(result, key);
1051 // Don't enum bug & hidden keys
1052 while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
1053 ~indexOf(result, key) || push$2(result, key);
1054 }
1055 return result;
1056 };
1057
1058 // IE8- don't enum bug keys
1059 var enumBugKeys$3 = [
1060 'constructor',
1061 'hasOwnProperty',
1062 'isPrototypeOf',
1063 'propertyIsEnumerable',
1064 'toLocaleString',
1065 'toString',
1066 'valueOf'
1067 ];
1068
1069 var internalObjectKeys$1 = objectKeysInternal;
1070 var enumBugKeys$2 = enumBugKeys$3;
1071
1072 var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
1073
1074 // `Object.getOwnPropertyNames` method
1075 // https://tc39.es/ecma262/#sec-object.getownpropertynames
1076 // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1077 objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1078 return internalObjectKeys$1(O, hiddenKeys$1);
1079 };
1080
1081 var objectGetOwnPropertySymbols = {};
1082
1083 // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1084 objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1085
1086 var getBuiltIn$2 = getBuiltIn$4;
1087 var uncurryThis$8 = functionUncurryThis;
1088 var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1089 var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1090 var anObject$2 = anObject$4;
1091
1092 var concat$1 = uncurryThis$8([].concat);
1093
1094 // all object keys, includes non-enumerable and symbols
1095 var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1096 var keys = getOwnPropertyNamesModule.f(anObject$2(it));
1097 var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1098 return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1099 };
1100
1101 var hasOwn = hasOwnProperty_1;
1102 var ownKeys = ownKeys$1;
1103 var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1104 var definePropertyModule$2 = objectDefineProperty;
1105
1106 var copyConstructorProperties$1 = function (target, source, exceptions) {
1107 var keys = ownKeys(source);
1108 var defineProperty = definePropertyModule$2.f;
1109 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1110 for (var i = 0; i < keys.length; i++) {
1111 var key = keys[i];
1112 if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1113 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1114 }
1115 }
1116 };
1117
1118 var fails$5 = fails$d;
1119 var isCallable$2 = isCallable$c;
1120
1121 var replacement = /#|\.prototype\./;
1122
1123 var isForced$1 = function (feature, detection) {
1124 var value = data[normalize(feature)];
1125 return value == POLYFILL ? true
1126 : value == NATIVE ? false
1127 : isCallable$2(detection) ? fails$5(detection)
1128 : !!detection;
1129 };
1130
1131 var normalize = isForced$1.normalize = function (string) {
1132 return String(string).replace(replacement, '.').toLowerCase();
1133 };
1134
1135 var data = isForced$1.data = {};
1136 var NATIVE = isForced$1.NATIVE = 'N';
1137 var POLYFILL = isForced$1.POLYFILL = 'P';
1138
1139 var isForced_1 = isForced$1;
1140
1141 var global$2 = global$b;
1142 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1143 var createNonEnumerableProperty = createNonEnumerableProperty$2;
1144 var defineBuiltIn$1 = defineBuiltIn$2;
1145 var defineGlobalProperty = defineGlobalProperty$3;
1146 var copyConstructorProperties = copyConstructorProperties$1;
1147 var isForced = isForced_1;
1148
1149 /*
1150 options.target - name of the target object
1151 options.global - target is the global object
1152 options.stat - export as static methods of target
1153 options.proto - export as prototype methods of target
1154 options.real - real prototype method for the `pure` version
1155 options.forced - export even if the native feature is available
1156 options.bind - bind methods to the target, required for the `pure` version
1157 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1158 options.unsafe - use the simple assignment of property instead of delete + defineProperty
1159 options.sham - add a flag to not completely full polyfills
1160 options.enumerable - export as enumerable property
1161 options.dontCallGetSet - prevent calling a getter on target
1162 options.name - the .name of the function if it does not match the key
1163 */
1164 var _export = function (options, source) {
1165 var TARGET = options.target;
1166 var GLOBAL = options.global;
1167 var STATIC = options.stat;
1168 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1169 if (GLOBAL) {
1170 target = global$2;
1171 } else if (STATIC) {
1172 target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
1173 } else {
1174 target = (global$2[TARGET] || {}).prototype;
1175 }
1176 if (target) for (key in source) {
1177 sourceProperty = source[key];
1178 if (options.dontCallGetSet) {
1179 descriptor = getOwnPropertyDescriptor(target, key);
1180 targetProperty = descriptor && descriptor.value;
1181 } else targetProperty = target[key];
1182 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1183 // contained in target
1184 if (!FORCED && targetProperty !== undefined) {
1185 if (typeof sourceProperty == typeof targetProperty) continue;
1186 copyConstructorProperties(sourceProperty, targetProperty);
1187 }
1188 // add a flag to not completely full polyfills
1189 if (options.sham || (targetProperty && targetProperty.sham)) {
1190 createNonEnumerableProperty(sourceProperty, 'sham', true);
1191 }
1192 defineBuiltIn$1(target, key, sourceProperty, options);
1193 }
1194 };
1195
1196 var internalObjectKeys = objectKeysInternal;
1197 var enumBugKeys$1 = enumBugKeys$3;
1198
1199 // `Object.keys` method
1200 // https://tc39.es/ecma262/#sec-object.keys
1201 // eslint-disable-next-line es/no-object-keys -- safe
1202 var objectKeys$3 = Object.keys || function keys(O) {
1203 return internalObjectKeys(O, enumBugKeys$1);
1204 };
1205
1206 var DESCRIPTORS$2 = descriptors;
1207 var uncurryThis$7 = functionUncurryThis;
1208 var objectKeys$2 = objectKeys$3;
1209 var toIndexedObject$1 = toIndexedObject$5;
1210 var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
1211
1212 var propertyIsEnumerable = uncurryThis$7($propertyIsEnumerable);
1213 var push$1 = uncurryThis$7([].push);
1214
1215 // `Object.{ entries, values }` methods implementation
1216 var createMethod$2 = function (TO_ENTRIES) {
1217 return function (it) {
1218 var O = toIndexedObject$1(it);
1219 var keys = objectKeys$2(O);
1220 var length = keys.length;
1221 var i = 0;
1222 var result = [];
1223 var key;
1224 while (length > i) {
1225 key = keys[i++];
1226 if (!DESCRIPTORS$2 || propertyIsEnumerable(O, key)) {
1227 push$1(result, TO_ENTRIES ? [key, O[key]] : O[key]);
1228 }
1229 }
1230 return result;
1231 };
1232 };
1233
1234 var objectToArray = {
1235 // `Object.entries` method
1236 // https://tc39.es/ecma262/#sec-object.entries
1237 entries: createMethod$2(true),
1238 // `Object.values` method
1239 // https://tc39.es/ecma262/#sec-object.values
1240 values: createMethod$2(false)
1241 };
1242
1243 var $$5 = _export;
1244 var $entries = objectToArray.entries;
1245
1246 // `Object.entries` method
1247 // https://tc39.es/ecma262/#sec-object.entries
1248 $$5({ target: 'Object', stat: true }, {
1249 entries: function entries(O) {
1250 return $entries(O);
1251 }
1252 });
1253
1254 var classofRaw$1 = classofRaw$2;
1255 var uncurryThis$6 = functionUncurryThis;
1256
1257 var functionUncurryThisClause = function (fn) {
1258 // Nashorn bug:
1259 // https://github.com/zloirock/core-js/issues/1128
1260 // https://github.com/zloirock/core-js/issues/1130
1261 if (classofRaw$1(fn) === 'Function') return uncurryThis$6(fn);
1262 };
1263
1264 var uncurryThis$5 = functionUncurryThisClause;
1265 var aCallable = aCallable$2;
1266 var NATIVE_BIND = functionBindNative;
1267
1268 var bind$1 = uncurryThis$5(uncurryThis$5.bind);
1269
1270 // optional / simple context binding
1271 var functionBindContext = function (fn, that) {
1272 aCallable(fn);
1273 return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1274 return fn.apply(that, arguments);
1275 };
1276 };
1277
1278 var classof$4 = classofRaw$2;
1279
1280 // `IsArray` abstract operation
1281 // https://tc39.es/ecma262/#sec-isarray
1282 // eslint-disable-next-line es/no-array-isarray -- safe
1283 var isArray$2 = Array.isArray || function isArray(argument) {
1284 return classof$4(argument) == 'Array';
1285 };
1286
1287 var wellKnownSymbol$5 = wellKnownSymbol$7;
1288
1289 var TO_STRING_TAG$1 = wellKnownSymbol$5('toStringTag');
1290 var test = {};
1291
1292 test[TO_STRING_TAG$1] = 'z';
1293
1294 var toStringTagSupport = String(test) === '[object z]';
1295
1296 var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
1297 var isCallable$1 = isCallable$c;
1298 var classofRaw = classofRaw$2;
1299 var wellKnownSymbol$4 = wellKnownSymbol$7;
1300
1301 var TO_STRING_TAG = wellKnownSymbol$4('toStringTag');
1302 var $Object = Object;
1303
1304 // ES3 wrong here
1305 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1306
1307 // fallback for IE11 Script Access Denied error
1308 var tryGet = function (it, key) {
1309 try {
1310 return it[key];
1311 } catch (error) { /* empty */ }
1312 };
1313
1314 // getting tag from ES6+ `Object.prototype.toString`
1315 var classof$3 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
1316 var O, tag, result;
1317 return it === undefined ? 'Undefined' : it === null ? 'Null'
1318 // @@toStringTag case
1319 : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1320 // builtinTag case
1321 : CORRECT_ARGUMENTS ? classofRaw(O)
1322 // ES3 arguments fallback
1323 : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
1324 };
1325
1326 var uncurryThis$4 = functionUncurryThis;
1327 var fails$4 = fails$d;
1328 var isCallable = isCallable$c;
1329 var classof$2 = classof$3;
1330 var getBuiltIn$1 = getBuiltIn$4;
1331 var inspectSource = inspectSource$2;
1332
1333 var noop = function () { /* empty */ };
1334 var empty = [];
1335 var construct = getBuiltIn$1('Reflect', 'construct');
1336 var constructorRegExp = /^\s*(?:class|function)\b/;
1337 var exec$1 = uncurryThis$4(constructorRegExp.exec);
1338 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1339
1340 var isConstructorModern = function isConstructor(argument) {
1341 if (!isCallable(argument)) return false;
1342 try {
1343 construct(noop, empty, argument);
1344 return true;
1345 } catch (error) {
1346 return false;
1347 }
1348 };
1349
1350 var isConstructorLegacy = function isConstructor(argument) {
1351 if (!isCallable(argument)) return false;
1352 switch (classof$2(argument)) {
1353 case 'AsyncFunction':
1354 case 'GeneratorFunction':
1355 case 'AsyncGeneratorFunction': return false;
1356 }
1357 try {
1358 // we can't check .prototype since constructors produced by .bind haven't it
1359 // `Function#toString` throws on some built-it function in some legacy engines
1360 // (for example, `DOMQuad` and similar in FF41-)
1361 return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
1362 } catch (error) {
1363 return true;
1364 }
1365 };
1366
1367 isConstructorLegacy.sham = true;
1368
1369 // `IsConstructor` abstract operation
1370 // https://tc39.es/ecma262/#sec-isconstructor
1371 var isConstructor$1 = !construct || fails$4(function () {
1372 var called;
1373 return isConstructorModern(isConstructorModern.call)
1374 || !isConstructorModern(Object)
1375 || !isConstructorModern(function () { called = true; })
1376 || called;
1377 }) ? isConstructorLegacy : isConstructorModern;
1378
1379 var isArray$1 = isArray$2;
1380 var isConstructor = isConstructor$1;
1381 var isObject$1 = isObject$7;
1382 var wellKnownSymbol$3 = wellKnownSymbol$7;
1383
1384 var SPECIES$1 = wellKnownSymbol$3('species');
1385 var $Array = Array;
1386
1387 // a part of `ArraySpeciesCreate` abstract operation
1388 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1389 var arraySpeciesConstructor$1 = function (originalArray) {
1390 var C;
1391 if (isArray$1(originalArray)) {
1392 C = originalArray.constructor;
1393 // cross-realm fallback
1394 if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
1395 else if (isObject$1(C)) {
1396 C = C[SPECIES$1];
1397 if (C === null) C = undefined;
1398 }
1399 } return C === undefined ? $Array : C;
1400 };
1401
1402 var arraySpeciesConstructor = arraySpeciesConstructor$1;
1403
1404 // `ArraySpeciesCreate` abstract operation
1405 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1406 var arraySpeciesCreate$2 = function (originalArray, length) {
1407 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1408 };
1409
1410 var bind = functionBindContext;
1411 var uncurryThis$3 = functionUncurryThis;
1412 var IndexedObject$1 = indexedObject;
1413 var toObject$2 = toObject$4;
1414 var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1415 var arraySpeciesCreate$1 = arraySpeciesCreate$2;
1416
1417 var push = uncurryThis$3([].push);
1418
1419 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
1420 var createMethod$1 = function (TYPE) {
1421 var IS_MAP = TYPE == 1;
1422 var IS_FILTER = TYPE == 2;
1423 var IS_SOME = TYPE == 3;
1424 var IS_EVERY = TYPE == 4;
1425 var IS_FIND_INDEX = TYPE == 6;
1426 var IS_FILTER_REJECT = TYPE == 7;
1427 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1428 return function ($this, callbackfn, that, specificCreate) {
1429 var O = toObject$2($this);
1430 var self = IndexedObject$1(O);
1431 var boundFunction = bind(callbackfn, that);
1432 var length = lengthOfArrayLike$1(self);
1433 var index = 0;
1434 var create = specificCreate || arraySpeciesCreate$1;
1435 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
1436 var value, result;
1437 for (;length > index; index++) if (NO_HOLES || index in self) {
1438 value = self[index];
1439 result = boundFunction(value, index, O);
1440 if (TYPE) {
1441 if (IS_MAP) target[index] = result; // map
1442 else if (result) switch (TYPE) {
1443 case 3: return true; // some
1444 case 5: return value; // find
1445 case 6: return index; // findIndex
1446 case 2: push(target, value); // filter
1447 } else switch (TYPE) {
1448 case 4: return false; // every
1449 case 7: push(target, value); // filterReject
1450 }
1451 }
1452 }
1453 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
1454 };
1455 };
1456
1457 var arrayIteration = {
1458 // `Array.prototype.forEach` method
1459 // https://tc39.es/ecma262/#sec-array.prototype.foreach
1460 forEach: createMethod$1(0),
1461 // `Array.prototype.map` method
1462 // https://tc39.es/ecma262/#sec-array.prototype.map
1463 map: createMethod$1(1),
1464 // `Array.prototype.filter` method
1465 // https://tc39.es/ecma262/#sec-array.prototype.filter
1466 filter: createMethod$1(2),
1467 // `Array.prototype.some` method
1468 // https://tc39.es/ecma262/#sec-array.prototype.some
1469 some: createMethod$1(3),
1470 // `Array.prototype.every` method
1471 // https://tc39.es/ecma262/#sec-array.prototype.every
1472 every: createMethod$1(4),
1473 // `Array.prototype.find` method
1474 // https://tc39.es/ecma262/#sec-array.prototype.find
1475 find: createMethod$1(5),
1476 // `Array.prototype.findIndex` method
1477 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
1478 findIndex: createMethod$1(6),
1479 // `Array.prototype.filterReject` method
1480 // https://github.com/tc39/proposal-array-filtering
1481 filterReject: createMethod$1(7)
1482 };
1483
1484 var objectDefineProperties = {};
1485
1486 var DESCRIPTORS$1 = descriptors;
1487 var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1488 var definePropertyModule$1 = objectDefineProperty;
1489 var anObject$1 = anObject$4;
1490 var toIndexedObject = toIndexedObject$5;
1491 var objectKeys$1 = objectKeys$3;
1492
1493 // `Object.defineProperties` method
1494 // https://tc39.es/ecma262/#sec-object.defineproperties
1495 // eslint-disable-next-line es/no-object-defineproperties -- safe
1496 objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1497 anObject$1(O);
1498 var props = toIndexedObject(Properties);
1499 var keys = objectKeys$1(Properties);
1500 var length = keys.length;
1501 var index = 0;
1502 var key;
1503 while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
1504 return O;
1505 };
1506
1507 var getBuiltIn = getBuiltIn$4;
1508
1509 var html$1 = getBuiltIn('document', 'documentElement');
1510
1511 /* global ActiveXObject -- old IE, WSH */
1512
1513 var anObject = anObject$4;
1514 var definePropertiesModule = objectDefineProperties;
1515 var enumBugKeys = enumBugKeys$3;
1516 var hiddenKeys = hiddenKeys$4;
1517 var html = html$1;
1518 var documentCreateElement = documentCreateElement$1;
1519 var sharedKey = sharedKey$2;
1520
1521 var GT = '>';
1522 var LT = '<';
1523 var PROTOTYPE = 'prototype';
1524 var SCRIPT = 'script';
1525 var IE_PROTO = sharedKey('IE_PROTO');
1526
1527 var EmptyConstructor = function () { /* empty */ };
1528
1529 var scriptTag = function (content) {
1530 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1531 };
1532
1533 // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1534 var NullProtoObjectViaActiveX = function (activeXDocument) {
1535 activeXDocument.write(scriptTag(''));
1536 activeXDocument.close();
1537 var temp = activeXDocument.parentWindow.Object;
1538 activeXDocument = null; // avoid memory leak
1539 return temp;
1540 };
1541
1542 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1543 var NullProtoObjectViaIFrame = function () {
1544 // Thrash, waste and sodomy: IE GC bug
1545 var iframe = documentCreateElement('iframe');
1546 var JS = 'java' + SCRIPT + ':';
1547 var iframeDocument;
1548 iframe.style.display = 'none';
1549 html.appendChild(iframe);
1550 // https://github.com/zloirock/core-js/issues/475
1551 iframe.src = String(JS);
1552 iframeDocument = iframe.contentWindow.document;
1553 iframeDocument.open();
1554 iframeDocument.write(scriptTag('document.F=Object'));
1555 iframeDocument.close();
1556 return iframeDocument.F;
1557 };
1558
1559 // Check for document.domain and active x support
1560 // No need to use active x approach when document.domain is not set
1561 // see https://github.com/es-shims/es5-shim/issues/150
1562 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1563 // avoid IE GC bug
1564 var activeXDocument;
1565 var NullProtoObject = function () {
1566 try {
1567 activeXDocument = new ActiveXObject('htmlfile');
1568 } catch (error) { /* ignore */ }
1569 NullProtoObject = typeof document != 'undefined'
1570 ? document.domain && activeXDocument
1571 ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1572 : NullProtoObjectViaIFrame()
1573 : NullProtoObjectViaActiveX(activeXDocument); // WSH
1574 var length = enumBugKeys.length;
1575 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1576 return NullProtoObject();
1577 };
1578
1579 hiddenKeys[IE_PROTO] = true;
1580
1581 // `Object.create` method
1582 // https://tc39.es/ecma262/#sec-object.create
1583 // eslint-disable-next-line es/no-object-create -- safe
1584 var objectCreate = Object.create || function create(O, Properties) {
1585 var result;
1586 if (O !== null) {
1587 EmptyConstructor[PROTOTYPE] = anObject(O);
1588 result = new EmptyConstructor();
1589 EmptyConstructor[PROTOTYPE] = null;
1590 // add "__proto__" for Object.getPrototypeOf polyfill
1591 result[IE_PROTO] = O;
1592 } else result = NullProtoObject();
1593 return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1594 };
1595
1596 var wellKnownSymbol$2 = wellKnownSymbol$7;
1597 var create = objectCreate;
1598 var defineProperty$1 = objectDefineProperty.f;
1599
1600 var UNSCOPABLES = wellKnownSymbol$2('unscopables');
1601 var ArrayPrototype = Array.prototype;
1602
1603 // Array.prototype[@@unscopables]
1604 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1605 if (ArrayPrototype[UNSCOPABLES] == undefined) {
1606 defineProperty$1(ArrayPrototype, UNSCOPABLES, {
1607 configurable: true,
1608 value: create(null)
1609 });
1610 }
1611
1612 // add a key to Array.prototype[@@unscopables]
1613 var addToUnscopables$1 = function (key) {
1614 ArrayPrototype[UNSCOPABLES][key] = true;
1615 };
1616
1617 var $$4 = _export;
1618 var $find = arrayIteration.find;
1619 var addToUnscopables = addToUnscopables$1;
1620
1621 var FIND = 'find';
1622 var SKIPS_HOLES = true;
1623
1624 // Shouldn't skip holes
1625 if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
1626
1627 // `Array.prototype.find` method
1628 // https://tc39.es/ecma262/#sec-array.prototype.find
1629 $$4({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
1630 find: function find(callbackfn /* , that = undefined */) {
1631 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1632 }
1633 });
1634
1635 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1636 addToUnscopables(FIND);
1637
1638 var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
1639 var classof$1 = classof$3;
1640
1641 // `Object.prototype.toString` method implementation
1642 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1643 var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
1644 return '[object ' + classof$1(this) + ']';
1645 };
1646
1647 var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1648 var defineBuiltIn = defineBuiltIn$2;
1649 var toString$3 = objectToString;
1650
1651 // `Object.prototype.toString` method
1652 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1653 if (!TO_STRING_TAG_SUPPORT) {
1654 defineBuiltIn(Object.prototype, 'toString', toString$3, { unsafe: true });
1655 }
1656
1657 var classof = classof$3;
1658
1659 var $String = String;
1660
1661 var toString$2 = function (argument) {
1662 if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1663 return $String(argument);
1664 };
1665
1666 // a string of all valid unicode whitespaces
1667 var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
1668 '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1669
1670 var uncurryThis$2 = functionUncurryThis;
1671 var requireObjectCoercible = requireObjectCoercible$3;
1672 var toString$1 = toString$2;
1673 var whitespaces$1 = whitespaces$2;
1674
1675 var replace = uncurryThis$2(''.replace);
1676 var ltrim = RegExp('^[' + whitespaces$1 + ']+');
1677 var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
1678
1679 // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
1680 var createMethod = function (TYPE) {
1681 return function ($this) {
1682 var string = toString$1(requireObjectCoercible($this));
1683 if (TYPE & 1) string = replace(string, ltrim, '');
1684 if (TYPE & 2) string = replace(string, rtrim, '$1');
1685 return string;
1686 };
1687 };
1688
1689 var stringTrim = {
1690 // `String.prototype.{ trimLeft, trimStart }` methods
1691 // https://tc39.es/ecma262/#sec-string.prototype.trimstart
1692 start: createMethod(1),
1693 // `String.prototype.{ trimRight, trimEnd }` methods
1694 // https://tc39.es/ecma262/#sec-string.prototype.trimend
1695 end: createMethod(2),
1696 // `String.prototype.trim` method
1697 // https://tc39.es/ecma262/#sec-string.prototype.trim
1698 trim: createMethod(3)
1699 };
1700
1701 var global$1 = global$b;
1702 var fails$3 = fails$d;
1703 var uncurryThis$1 = functionUncurryThis;
1704 var toString = toString$2;
1705 var trim = stringTrim.trim;
1706 var whitespaces = whitespaces$2;
1707
1708 var $parseInt$1 = global$1.parseInt;
1709 var Symbol$1 = global$1.Symbol;
1710 var ITERATOR = Symbol$1 && Symbol$1.iterator;
1711 var hex = /^[+-]?0x/i;
1712 var exec = uncurryThis$1(hex.exec);
1713 var FORCED$1 = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
1714 // MS Edge 18- broken with boxed symbols
1715 || (ITERATOR && !fails$3(function () { $parseInt$1(Object(ITERATOR)); }));
1716
1717 // `parseInt` method
1718 // https://tc39.es/ecma262/#sec-parseint-string-radix
1719 var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
1720 var S = trim(toString(string));
1721 return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
1722 } : $parseInt$1;
1723
1724 var $$3 = _export;
1725 var $parseInt = numberParseInt;
1726
1727 // `parseInt` method
1728 // https://tc39.es/ecma262/#sec-parseint-string-radix
1729 $$3({ global: true, forced: parseInt != $parseInt }, {
1730 parseInt: $parseInt
1731 });
1732
1733 var fails$2 = fails$d;
1734 var wellKnownSymbol$1 = wellKnownSymbol$7;
1735 var V8_VERSION$1 = engineV8Version;
1736
1737 var SPECIES = wellKnownSymbol$1('species');
1738
1739 var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
1740 // We can't use this feature detection in V8 since it causes
1741 // deoptimization and serious performance degradation
1742 // https://github.com/zloirock/core-js/issues/677
1743 return V8_VERSION$1 >= 51 || !fails$2(function () {
1744 var array = [];
1745 var constructor = array.constructor = {};
1746 constructor[SPECIES] = function () {
1747 return { foo: 1 };
1748 };
1749 return array[METHOD_NAME](Boolean).foo !== 1;
1750 });
1751 };
1752
1753 var $$2 = _export;
1754 var $filter = arrayIteration.filter;
1755 var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
1756
1757 var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('filter');
1758
1759 // `Array.prototype.filter` method
1760 // https://tc39.es/ecma262/#sec-array.prototype.filter
1761 // with adding support of @@species
1762 $$2({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
1763 filter: function filter(callbackfn /* , thisArg */) {
1764 return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1765 }
1766 });
1767
1768 var DESCRIPTORS = descriptors;
1769 var uncurryThis = functionUncurryThis;
1770 var call = functionCall;
1771 var fails$1 = fails$d;
1772 var objectKeys = objectKeys$3;
1773 var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1774 var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1775 var toObject$1 = toObject$4;
1776 var IndexedObject = indexedObject;
1777
1778 // eslint-disable-next-line es/no-object-assign -- safe
1779 var $assign = Object.assign;
1780 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1781 var defineProperty = Object.defineProperty;
1782 var concat = uncurryThis([].concat);
1783
1784 // `Object.assign` method
1785 // https://tc39.es/ecma262/#sec-object.assign
1786 var objectAssign = !$assign || fails$1(function () {
1787 // should have correct order of operations (Edge bug)
1788 if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1789 enumerable: true,
1790 get: function () {
1791 defineProperty(this, 'b', {
1792 value: 3,
1793 enumerable: false
1794 });
1795 }
1796 }), { b: 2 })).b !== 1) return true;
1797 // should work with symbols and should have deterministic property order (V8 bug)
1798 var A = {};
1799 var B = {};
1800 // eslint-disable-next-line es/no-symbol -- safe
1801 var symbol = Symbol();
1802 var alphabet = 'abcdefghijklmnopqrst';
1803 A[symbol] = 7;
1804 alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1805 return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
1806 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1807 var T = toObject$1(target);
1808 var argumentsLength = arguments.length;
1809 var index = 1;
1810 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1811 var propertyIsEnumerable = propertyIsEnumerableModule.f;
1812 while (argumentsLength > index) {
1813 var S = IndexedObject(arguments[index++]);
1814 var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1815 var length = keys.length;
1816 var j = 0;
1817 var key;
1818 while (length > j) {
1819 key = keys[j++];
1820 if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
1821 }
1822 } return T;
1823 } : $assign;
1824
1825 var $$1 = _export;
1826 var assign = objectAssign;
1827
1828 // `Object.assign` method
1829 // https://tc39.es/ecma262/#sec-object.assign
1830 // eslint-disable-next-line es/no-object-assign -- required for testing
1831 $$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1832 assign: assign
1833 });
1834
1835 var $TypeError = TypeError;
1836 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1837
1838 var doesNotExceedSafeInteger$1 = function (it) {
1839 if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
1840 return it;
1841 };
1842
1843 var toPropertyKey = toPropertyKey$3;
1844 var definePropertyModule = objectDefineProperty;
1845 var createPropertyDescriptor = createPropertyDescriptor$3;
1846
1847 var createProperty$1 = function (object, key, value) {
1848 var propertyKey = toPropertyKey(key);
1849 if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
1850 else object[propertyKey] = value;
1851 };
1852
1853 var $ = _export;
1854 var fails = fails$d;
1855 var isArray = isArray$2;
1856 var isObject = isObject$7;
1857 var toObject = toObject$4;
1858 var lengthOfArrayLike = lengthOfArrayLike$3;
1859 var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
1860 var createProperty = createProperty$1;
1861 var arraySpeciesCreate = arraySpeciesCreate$2;
1862 var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$2;
1863 var wellKnownSymbol = wellKnownSymbol$7;
1864 var V8_VERSION = engineV8Version;
1865
1866 var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1867
1868 // We can't use this feature detection in V8 since it causes
1869 // deoptimization and serious performance degradation
1870 // https://github.com/zloirock/core-js/issues/679
1871 var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails(function () {
1872 var array = [];
1873 array[IS_CONCAT_SPREADABLE] = false;
1874 return array.concat()[0] !== array;
1875 });
1876
1877 var isConcatSpreadable = function (O) {
1878 if (!isObject(O)) return false;
1879 var spreadable = O[IS_CONCAT_SPREADABLE];
1880 return spreadable !== undefined ? !!spreadable : isArray(O);
1881 };
1882
1883 var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
1884
1885 // `Array.prototype.concat` method
1886 // https://tc39.es/ecma262/#sec-array.prototype.concat
1887 // with adding support of @@isConcatSpreadable and @@species
1888 $({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1889 // eslint-disable-next-line no-unused-vars -- required for `.length`
1890 concat: function concat(arg) {
1891 var O = toObject(this);
1892 var A = arraySpeciesCreate(O, 0);
1893 var n = 0;
1894 var i, k, length, len, E;
1895 for (i = -1, length = arguments.length; i < length; i++) {
1896 E = i === -1 ? O : arguments[i];
1897 if (isConcatSpreadable(E)) {
1898 len = lengthOfArrayLike(E);
1899 doesNotExceedSafeInteger(n + len);
1900 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1901 } else {
1902 doesNotExceedSafeInteger(n + 1);
1903 createProperty(A, n++, E);
1904 }
1905 }
1906 A.length = n;
1907 return A;
1908 }
1909 });
1910
1911 /**
1912 * @author: Dennis Hernández
1913 * @update: https://github.com/wenzhixin
1914 * @version: v1.2.0
1915 */
1916
1917 $$6.akottr.dragtable.prototype._restoreState = function (persistObj) {
1918 var i = 0;
1919 for (var _i = 0, _Object$entries = Object.entries(persistObj); _i < _Object$entries.length; _i++) {
1920 var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
1921 field = _Object$entries$_i[0],
1922 value = _Object$entries$_i[1];
1923 var $th = this.originalTable.el.find("th[data-field=\"".concat(field, "\"]"));
1924 if (!$th.length) {
1925 i++;
1926 continue;
1927 }
1928 this.originalTable.startIndex = $th.prevAll().length + 1;
1929 this.originalTable.endIndex = parseInt(value, 10) + 1 - i;
1930 this._bubbleCols();
1931 }
1932 };
1933
1934 // From MDN site, https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter
1935 var filterFn = function filterFn() {
1936 if (!Array.prototype.filter) {
1937 Array.prototype.filter = function (fun /* , thisArg*/) {
1938 if (this === undefined || this === null) {
1939 throw new TypeError();
1940 }
1941 var t = Object(this);
1942 var len = t.length >>> 0;
1943 if (typeof fun !== 'function') {
1944 throw new TypeError();
1945 }
1946 var res = [];
1947 var thisArg = arguments.length >= 2 ? arguments[1] : undefined;
1948 for (var i = 0; i < len; i++) {
1949 if (i in t) {
1950 var val = t[i];
1951
1952 // NOTE: Technically this should Object.defineProperty at
1953 // the next index, as push can be affected by
1954 // properties on Object.prototype and Array.prototype.
1955 // But this method's new, and collisions should be
1956 // rare, so use the more-compatible alternative.
1957 if (fun.call(thisArg, val, i, t)) {
1958 res.push(val);
1959 }
1960 }
1961 }
1962 return res;
1963 };
1964 }
1965 };
1966 Object.assign($$6.fn.bootstrapTable.defaults, {
1967 reorderableColumns: false,
1968 maxMovingRows: 10,
1969 // eslint-disable-next-line no-unused-vars
1970 onReorderColumn: function onReorderColumn(headerFields) {
1971 return false;
1972 },
1973 dragaccept: null
1974 });
1975 Object.assign($$6.fn.bootstrapTable.events, {
1976 'reorder-column.bs.table': 'onReorderColumn'
1977 });
1978 $$6.fn.bootstrapTable.methods.push('orderColumns');
1979 $$6.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
1980 _inherits(_class, _$$BootstrapTable);
1981 var _super = _createSuper(_class);
1982 function _class() {
1983 _classCallCheck(this, _class);
1984 return _super.apply(this, arguments);
1985 }
1986 _createClass(_class, [{
1987 key: "initHeader",
1988 value: function initHeader() {
1989 var _get2;
1990 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1991 args[_key] = arguments[_key];
1992 }
1993 (_get2 = _get(_getPrototypeOf(_class.prototype), "initHeader", this)).call.apply(_get2, [this].concat(args));
1994 if (!this.options.reorderableColumns) {
1995 return;
1996 }
1997 this.makeColumnsReorderable();
1998 }
1999 }, {
2000 key: "_toggleColumn",
2001 value: function _toggleColumn() {
2002 var _get3;
2003 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2004 args[_key2] = arguments[_key2];
2005 }
2006 (_get3 = _get(_getPrototypeOf(_class.prototype), "_toggleColumn", this)).call.apply(_get3, [this].concat(args));
2007 if (!this.options.reorderableColumns) {
2008 return;
2009 }
2010 this.makeColumnsReorderable();
2011 }
2012 }, {
2013 key: "toggleView",
2014 value: function toggleView() {
2015 var _get4;
2016 for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
2017 args[_key3] = arguments[_key3];
2018 }
2019 (_get4 = _get(_getPrototypeOf(_class.prototype), "toggleView", this)).call.apply(_get4, [this].concat(args));
2020 if (!this.options.reorderableColumns) {
2021 return;
2022 }
2023 if (this.options.cardView) {
2024 return;
2025 }
2026 this.makeColumnsReorderable();
2027 }
2028 }, {
2029 key: "resetView",
2030 value: function resetView() {
2031 var _get5;
2032 for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
2033 args[_key4] = arguments[_key4];
2034 }
2035 (_get5 = _get(_getPrototypeOf(_class.prototype), "resetView", this)).call.apply(_get5, [this].concat(args));
2036 if (!this.options.reorderableColumns) {
2037 return;
2038 }
2039 this.makeColumnsReorderable();
2040 }
2041 }, {
2042 key: "makeColumnsReorderable",
2043 value: function makeColumnsReorderable() {
2044 var _this = this;
2045 var order = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
2046 try {
2047 $$6(this.$el).dragtable('destroy');
2048 } catch (e) {
2049 // do nothing
2050 }
2051 $$6(this.$el).dragtable({
2052 maxMovingRows: this.options.maxMovingRows,
2053 dragaccept: this.options.dragaccept,
2054 clickDelay: 200,
2055 dragHandle: '.th-inner',
2056 restoreState: order ? order : this.columnsSortOrder,
2057 beforeStop: function beforeStop(table) {
2058 var sortOrder = {};
2059 table.el.find('th').each(function (i, el) {
2060 sortOrder[$$6(el).data('field')] = i;
2061 });
2062 _this.columnsSortOrder = sortOrder;
2063 if (_this.options.cookie) {
2064 _this.persistReorderColumnsState(_this);
2065 }
2066 var ths = [];
2067 var formatters = [];
2068 var columns = [];
2069 var columnsHidden = [];
2070 var columnIndex = -1;
2071 var optionsColumns = [];
2072 _this.$header.find('th:not(.detail)').each(function (i, el) {
2073 ths.push($$6(el).data('field'));
2074 formatters.push($$6(el).data('formatter'));
2075 });
2076
2077 // Exist columns not shown
2078 if (ths.length < _this.columns.length) {
2079 columnsHidden = _this.columns.filter(function (column) {
2080 return !column.visible;
2081 });
2082 for (var i = 0; i < columnsHidden.length; i++) {
2083 ths.push(columnsHidden[i].field);
2084 formatters.push(columnsHidden[i].formatter);
2085 }
2086 }
2087 for (var _i2 = 0; _i2 < ths.length; _i2++) {
2088 columnIndex = _this.fieldsColumnsIndex[ths[_i2]];
2089 if (columnIndex !== -1) {
2090 _this.fieldsColumnsIndex[ths[_i2]] = _i2;
2091 _this.columns[columnIndex].fieldIndex = _i2;
2092 columns.push(_this.columns[columnIndex]);
2093 }
2094 }
2095 _this.columns = columns;
2096 filterFn(); // Support <IE9
2097 $$6.each(_this.columns, function (i, column) {
2098 var found = false;
2099 var field = column.field;
2100 _this.options.columns[0].filter(function (item) {
2101 if (!found && item['field'] === field) {
2102 optionsColumns.push(item);
2103 found = true;
2104 return false;
2105 }
2106 return true;
2107 });
2108 });
2109 _this.options.columns[0] = optionsColumns;
2110 _this.header.fields = ths;
2111 _this.header.formatters = formatters;
2112 _this.initHeader();
2113 _this.initToolbar();
2114 _this.initSearchText();
2115 _this.initBody();
2116 _this.resetView();
2117 _this.trigger('reorder-column', ths);
2118 }
2119 });
2120 }
2121 }, {
2122 key: "orderColumns",
2123 value: function orderColumns(order) {
2124 this.columnsSortOrder = order;
2125 this.makeColumnsReorderable();
2126 }
2127 }]);
2128 return _class;
2129 }($$6.BootstrapTable);
2130
2131}));