UNPKG

100 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 ($$7) { 'use strict';
6
7 function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
9 var $__default = /*#__PURE__*/_interopDefaultLegacy($$7);
10
11 function _classCallCheck(instance, Constructor) {
12 if (!(instance instanceof Constructor)) {
13 throw new TypeError("Cannot call a class as a function");
14 }
15 }
16 function _defineProperties(target, props) {
17 for (var i = 0; i < props.length; i++) {
18 var descriptor = props[i];
19 descriptor.enumerable = descriptor.enumerable || false;
20 descriptor.configurable = true;
21 if ("value" in descriptor) descriptor.writable = true;
22 Object.defineProperty(target, descriptor.key, descriptor);
23 }
24 }
25 function _createClass(Constructor, protoProps, staticProps) {
26 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
27 if (staticProps) _defineProperties(Constructor, staticProps);
28 Object.defineProperty(Constructor, "prototype", {
29 writable: false
30 });
31 return Constructor;
32 }
33 function _defineProperty(obj, key, value) {
34 if (key in obj) {
35 Object.defineProperty(obj, key, {
36 value: value,
37 enumerable: true,
38 configurable: true,
39 writable: true
40 });
41 } else {
42 obj[key] = value;
43 }
44 return obj;
45 }
46 function _inherits(subClass, superClass) {
47 if (typeof superClass !== "function" && superClass !== null) {
48 throw new TypeError("Super expression must either be null or a function");
49 }
50 subClass.prototype = Object.create(superClass && superClass.prototype, {
51 constructor: {
52 value: subClass,
53 writable: true,
54 configurable: true
55 }
56 });
57 Object.defineProperty(subClass, "prototype", {
58 writable: false
59 });
60 if (superClass) _setPrototypeOf(subClass, superClass);
61 }
62 function _getPrototypeOf(o) {
63 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
64 return o.__proto__ || Object.getPrototypeOf(o);
65 };
66 return _getPrototypeOf(o);
67 }
68 function _setPrototypeOf(o, p) {
69 _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
70 o.__proto__ = p;
71 return o;
72 };
73 return _setPrototypeOf(o, p);
74 }
75 function _isNativeReflectConstruct() {
76 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
77 if (Reflect.construct.sham) return false;
78 if (typeof Proxy === "function") return true;
79 try {
80 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
81 return true;
82 } catch (e) {
83 return false;
84 }
85 }
86 function _assertThisInitialized(self) {
87 if (self === void 0) {
88 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
89 }
90 return self;
91 }
92 function _possibleConstructorReturn(self, call) {
93 if (call && (typeof call === "object" || typeof call === "function")) {
94 return call;
95 } else if (call !== void 0) {
96 throw new TypeError("Derived constructors may only return object or undefined");
97 }
98 return _assertThisInitialized(self);
99 }
100 function _createSuper(Derived) {
101 var hasNativeReflectConstruct = _isNativeReflectConstruct();
102 return function _createSuperInternal() {
103 var Super = _getPrototypeOf(Derived),
104 result;
105 if (hasNativeReflectConstruct) {
106 var NewTarget = _getPrototypeOf(this).constructor;
107 result = Reflect.construct(Super, arguments, NewTarget);
108 } else {
109 result = Super.apply(this, arguments);
110 }
111 return _possibleConstructorReturn(this, result);
112 };
113 }
114 function _superPropBase(object, property) {
115 while (!Object.prototype.hasOwnProperty.call(object, property)) {
116 object = _getPrototypeOf(object);
117 if (object === null) break;
118 }
119 return object;
120 }
121 function _get() {
122 if (typeof Reflect !== "undefined" && Reflect.get) {
123 _get = Reflect.get.bind();
124 } else {
125 _get = function _get(target, property, receiver) {
126 var base = _superPropBase(target, property);
127 if (!base) return;
128 var desc = Object.getOwnPropertyDescriptor(base, property);
129 if (desc.get) {
130 return desc.get.call(arguments.length < 3 ? target : receiver);
131 }
132 return desc.value;
133 };
134 }
135 return _get.apply(this, arguments);
136 }
137 function _unsupportedIterableToArray(o, minLen) {
138 if (!o) return;
139 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
140 var n = Object.prototype.toString.call(o).slice(8, -1);
141 if (n === "Object" && o.constructor) n = o.constructor.name;
142 if (n === "Map" || n === "Set") return Array.from(o);
143 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
144 }
145 function _arrayLikeToArray(arr, len) {
146 if (len == null || len > arr.length) len = arr.length;
147 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
148 return arr2;
149 }
150 function _createForOfIteratorHelper(o, allowArrayLike) {
151 var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
152 if (!it) {
153 if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
154 if (it) o = it;
155 var i = 0;
156 var F = function () {};
157 return {
158 s: F,
159 n: function () {
160 if (i >= o.length) return {
161 done: true
162 };
163 return {
164 done: false,
165 value: o[i++]
166 };
167 },
168 e: function (e) {
169 throw e;
170 },
171 f: F
172 };
173 }
174 throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
175 }
176 var normalCompletion = true,
177 didErr = false,
178 err;
179 return {
180 s: function () {
181 it = it.call(o);
182 },
183 n: function () {
184 var step = it.next();
185 normalCompletion = step.done;
186 return step;
187 },
188 e: function (e) {
189 didErr = true;
190 err = e;
191 },
192 f: function () {
193 try {
194 if (!normalCompletion && it.return != null) it.return();
195 } finally {
196 if (didErr) throw err;
197 }
198 }
199 };
200 }
201
202 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
203
204 var check = function (it) {
205 return it && it.Math == Math && it;
206 };
207
208 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
209 var global$e =
210 // eslint-disable-next-line es/no-global-this -- safe
211 check(typeof globalThis == 'object' && globalThis) ||
212 check(typeof window == 'object' && window) ||
213 // eslint-disable-next-line no-restricted-globals -- safe
214 check(typeof self == 'object' && self) ||
215 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
216 // eslint-disable-next-line no-new-func -- fallback
217 (function () { return this; })() || Function('return this')();
218
219 var objectGetOwnPropertyDescriptor = {};
220
221 var fails$i = function (exec) {
222 try {
223 return !!exec();
224 } catch (error) {
225 return true;
226 }
227 };
228
229 var fails$h = fails$i;
230
231 // Detect IE8's incomplete defineProperty implementation
232 var descriptors = !fails$h(function () {
233 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
234 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
235 });
236
237 var fails$g = fails$i;
238
239 var functionBindNative = !fails$g(function () {
240 // eslint-disable-next-line es/no-function-prototype-bind -- safe
241 var test = (function () { /* empty */ }).bind();
242 // eslint-disable-next-line no-prototype-builtins -- safe
243 return typeof test != 'function' || test.hasOwnProperty('prototype');
244 });
245
246 var NATIVE_BIND$3 = functionBindNative;
247
248 var call$9 = Function.prototype.call;
249
250 var functionCall = NATIVE_BIND$3 ? call$9.bind(call$9) : function () {
251 return call$9.apply(call$9, arguments);
252 };
253
254 var objectPropertyIsEnumerable = {};
255
256 var $propertyIsEnumerable = {}.propertyIsEnumerable;
257 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
258 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
259
260 // Nashorn ~ JDK8 bug
261 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
262
263 // `Object.prototype.propertyIsEnumerable` method implementation
264 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
265 objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
266 var descriptor = getOwnPropertyDescriptor$1(this, V);
267 return !!descriptor && descriptor.enumerable;
268 } : $propertyIsEnumerable;
269
270 var createPropertyDescriptor$3 = function (bitmap, value) {
271 return {
272 enumerable: !(bitmap & 1),
273 configurable: !(bitmap & 2),
274 writable: !(bitmap & 4),
275 value: value
276 };
277 };
278
279 var NATIVE_BIND$2 = functionBindNative;
280
281 var FunctionPrototype$2 = Function.prototype;
282 var call$8 = FunctionPrototype$2.call;
283 var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$8, call$8);
284
285 var functionUncurryThisRaw = function (fn) {
286 return NATIVE_BIND$2 ? uncurryThisWithBind(fn) : function () {
287 return call$8.apply(fn, arguments);
288 };
289 };
290
291 var uncurryThisRaw$1 = functionUncurryThisRaw;
292
293 var toString$6 = uncurryThisRaw$1({}.toString);
294 var stringSlice$4 = uncurryThisRaw$1(''.slice);
295
296 var classofRaw$2 = function (it) {
297 return stringSlice$4(toString$6(it), 8, -1);
298 };
299
300 var classofRaw$1 = classofRaw$2;
301 var uncurryThisRaw = functionUncurryThisRaw;
302
303 var functionUncurryThis = function (fn) {
304 // Nashorn bug:
305 // https://github.com/zloirock/core-js/issues/1128
306 // https://github.com/zloirock/core-js/issues/1130
307 if (classofRaw$1(fn) === 'Function') return uncurryThisRaw(fn);
308 };
309
310 var uncurryThis$h = functionUncurryThis;
311 var fails$f = fails$i;
312 var classof$6 = classofRaw$2;
313
314 var $Object$3 = Object;
315 var split = uncurryThis$h(''.split);
316
317 // fallback for non-array-like ES3 and non-enumerable old V8 strings
318 var indexedObject = fails$f(function () {
319 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
320 // eslint-disable-next-line no-prototype-builtins -- safe
321 return !$Object$3('z').propertyIsEnumerable(0);
322 }) ? function (it) {
323 return classof$6(it) == 'String' ? split(it, '') : $Object$3(it);
324 } : $Object$3;
325
326 // we can't use just `it == null` since of `document.all` special case
327 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
328 var isNullOrUndefined$3 = function (it) {
329 return it === null || it === undefined;
330 };
331
332 var isNullOrUndefined$2 = isNullOrUndefined$3;
333
334 var $TypeError$7 = TypeError;
335
336 // `RequireObjectCoercible` abstract operation
337 // https://tc39.es/ecma262/#sec-requireobjectcoercible
338 var requireObjectCoercible$4 = function (it) {
339 if (isNullOrUndefined$2(it)) throw $TypeError$7("Can't call method on " + it);
340 return it;
341 };
342
343 // toObject with fallback for non-array-like ES3 strings
344 var IndexedObject$3 = indexedObject;
345 var requireObjectCoercible$3 = requireObjectCoercible$4;
346
347 var toIndexedObject$6 = function (it) {
348 return IndexedObject$3(requireObjectCoercible$3(it));
349 };
350
351 var documentAll$2 = typeof document == 'object' && document.all;
352
353 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
354 var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
355
356 var documentAll_1 = {
357 all: documentAll$2,
358 IS_HTMLDDA: IS_HTMLDDA
359 };
360
361 var $documentAll$1 = documentAll_1;
362
363 var documentAll$1 = $documentAll$1.all;
364
365 // `IsCallable` abstract operation
366 // https://tc39.es/ecma262/#sec-iscallable
367 var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) {
368 return typeof argument == 'function' || argument === documentAll$1;
369 } : function (argument) {
370 return typeof argument == 'function';
371 };
372
373 var isCallable$d = isCallable$e;
374 var $documentAll = documentAll_1;
375
376 var documentAll = $documentAll.all;
377
378 var isObject$8 = $documentAll.IS_HTMLDDA ? function (it) {
379 return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll;
380 } : function (it) {
381 return typeof it == 'object' ? it !== null : isCallable$d(it);
382 };
383
384 var global$d = global$e;
385 var isCallable$c = isCallable$e;
386
387 var aFunction = function (argument) {
388 return isCallable$c(argument) ? argument : undefined;
389 };
390
391 var getBuiltIn$5 = function (namespace, method) {
392 return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
393 };
394
395 var uncurryThis$g = functionUncurryThis;
396
397 var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
398
399 var getBuiltIn$4 = getBuiltIn$5;
400
401 var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
402
403 var global$c = global$e;
404 var userAgent = engineUserAgent;
405
406 var process = global$c.process;
407 var Deno = global$c.Deno;
408 var versions = process && process.versions || Deno && Deno.version;
409 var v8 = versions && versions.v8;
410 var match, version;
411
412 if (v8) {
413 match = v8.split('.');
414 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
415 // but their correct versions are not interesting for us
416 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
417 }
418
419 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
420 // so check `userAgent` even if `.v8` exists, but 0
421 if (!version && userAgent) {
422 match = userAgent.match(/Edge\/(\d+)/);
423 if (!match || match[1] >= 74) {
424 match = userAgent.match(/Chrome\/(\d+)/);
425 if (match) version = +match[1];
426 }
427 }
428
429 var engineV8Version = version;
430
431 /* eslint-disable es/no-symbol -- required for testing */
432
433 var V8_VERSION$2 = engineV8Version;
434 var fails$e = fails$i;
435
436 // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
437 var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
438 var symbol = Symbol();
439 // Chrome 38 Symbol has incorrect toString conversion
440 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
441 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
442 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
443 !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
444 });
445
446 /* eslint-disable es/no-symbol -- required for testing */
447
448 var NATIVE_SYMBOL$1 = symbolConstructorDetection;
449
450 var useSymbolAsUid = NATIVE_SYMBOL$1
451 && !Symbol.sham
452 && typeof Symbol.iterator == 'symbol';
453
454 var getBuiltIn$3 = getBuiltIn$5;
455 var isCallable$b = isCallable$e;
456 var isPrototypeOf = objectIsPrototypeOf;
457 var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
458
459 var $Object$2 = Object;
460
461 var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
462 return typeof it == 'symbol';
463 } : function (it) {
464 var $Symbol = getBuiltIn$3('Symbol');
465 return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
466 };
467
468 var $String$2 = String;
469
470 var tryToString$1 = function (argument) {
471 try {
472 return $String$2(argument);
473 } catch (error) {
474 return 'Object';
475 }
476 };
477
478 var isCallable$a = isCallable$e;
479 var tryToString = tryToString$1;
480
481 var $TypeError$6 = TypeError;
482
483 // `Assert: IsCallable(argument) is true`
484 var aCallable$2 = function (argument) {
485 if (isCallable$a(argument)) return argument;
486 throw $TypeError$6(tryToString(argument) + ' is not a function');
487 };
488
489 var aCallable$1 = aCallable$2;
490 var isNullOrUndefined$1 = isNullOrUndefined$3;
491
492 // `GetMethod` abstract operation
493 // https://tc39.es/ecma262/#sec-getmethod
494 var getMethod$2 = function (V, P) {
495 var func = V[P];
496 return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
497 };
498
499 var call$7 = functionCall;
500 var isCallable$9 = isCallable$e;
501 var isObject$7 = isObject$8;
502
503 var $TypeError$5 = TypeError;
504
505 // `OrdinaryToPrimitive` abstract operation
506 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
507 var ordinaryToPrimitive$1 = function (input, pref) {
508 var fn, val;
509 if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$7(fn, input))) return val;
510 if (isCallable$9(fn = input.valueOf) && !isObject$7(val = call$7(fn, input))) return val;
511 if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$7(val = call$7(fn, input))) return val;
512 throw $TypeError$5("Can't convert object to primitive value");
513 };
514
515 var shared$4 = {exports: {}};
516
517 var global$b = global$e;
518
519 // eslint-disable-next-line es/no-object-defineproperty -- safe
520 var defineProperty$3 = Object.defineProperty;
521
522 var defineGlobalProperty$3 = function (key, value) {
523 try {
524 defineProperty$3(global$b, key, { value: value, configurable: true, writable: true });
525 } catch (error) {
526 global$b[key] = value;
527 } return value;
528 };
529
530 var global$a = global$e;
531 var defineGlobalProperty$2 = defineGlobalProperty$3;
532
533 var SHARED = '__core-js_shared__';
534 var store$3 = global$a[SHARED] || defineGlobalProperty$2(SHARED, {});
535
536 var sharedStore = store$3;
537
538 var store$2 = sharedStore;
539
540 (shared$4.exports = function (key, value) {
541 return store$2[key] || (store$2[key] = value !== undefined ? value : {});
542 })('versions', []).push({
543 version: '3.25.5',
544 mode: 'global',
545 copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
546 license: 'https://github.com/zloirock/core-js/blob/v3.25.5/LICENSE',
547 source: 'https://github.com/zloirock/core-js'
548 });
549
550 var requireObjectCoercible$2 = requireObjectCoercible$4;
551
552 var $Object$1 = Object;
553
554 // `ToObject` abstract operation
555 // https://tc39.es/ecma262/#sec-toobject
556 var toObject$5 = function (argument) {
557 return $Object$1(requireObjectCoercible$2(argument));
558 };
559
560 var uncurryThis$f = functionUncurryThis;
561 var toObject$4 = toObject$5;
562
563 var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
564
565 // `HasOwnProperty` abstract operation
566 // https://tc39.es/ecma262/#sec-hasownproperty
567 // eslint-disable-next-line es/no-object-hasown -- safe
568 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
569 return hasOwnProperty(toObject$4(it), key);
570 };
571
572 var uncurryThis$e = functionUncurryThis;
573
574 var id = 0;
575 var postfix = Math.random();
576 var toString$5 = uncurryThis$e(1.0.toString);
577
578 var uid$2 = function (key) {
579 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
580 };
581
582 var global$9 = global$e;
583 var shared$3 = shared$4.exports;
584 var hasOwn$6 = hasOwnProperty_1;
585 var uid$1 = uid$2;
586 var NATIVE_SYMBOL = symbolConstructorDetection;
587 var USE_SYMBOL_AS_UID = useSymbolAsUid;
588
589 var WellKnownSymbolsStore = shared$3('wks');
590 var Symbol$1 = global$9.Symbol;
591 var symbolFor = Symbol$1 && Symbol$1['for'];
592 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
593
594 var wellKnownSymbol$a = function (name) {
595 if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
596 var description = 'Symbol.' + name;
597 if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
598 WellKnownSymbolsStore[name] = Symbol$1[name];
599 } else if (USE_SYMBOL_AS_UID && symbolFor) {
600 WellKnownSymbolsStore[name] = symbolFor(description);
601 } else {
602 WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
603 }
604 } return WellKnownSymbolsStore[name];
605 };
606
607 var call$6 = functionCall;
608 var isObject$6 = isObject$8;
609 var isSymbol$1 = isSymbol$2;
610 var getMethod$1 = getMethod$2;
611 var ordinaryToPrimitive = ordinaryToPrimitive$1;
612 var wellKnownSymbol$9 = wellKnownSymbol$a;
613
614 var $TypeError$4 = TypeError;
615 var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
616
617 // `ToPrimitive` abstract operation
618 // https://tc39.es/ecma262/#sec-toprimitive
619 var toPrimitive$1 = function (input, pref) {
620 if (!isObject$6(input) || isSymbol$1(input)) return input;
621 var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
622 var result;
623 if (exoticToPrim) {
624 if (pref === undefined) pref = 'default';
625 result = call$6(exoticToPrim, input, pref);
626 if (!isObject$6(result) || isSymbol$1(result)) return result;
627 throw $TypeError$4("Can't convert object to primitive value");
628 }
629 if (pref === undefined) pref = 'number';
630 return ordinaryToPrimitive(input, pref);
631 };
632
633 var toPrimitive = toPrimitive$1;
634 var isSymbol = isSymbol$2;
635
636 // `ToPropertyKey` abstract operation
637 // https://tc39.es/ecma262/#sec-topropertykey
638 var toPropertyKey$3 = function (argument) {
639 var key = toPrimitive(argument, 'string');
640 return isSymbol(key) ? key : key + '';
641 };
642
643 var global$8 = global$e;
644 var isObject$5 = isObject$8;
645
646 var document$1 = global$8.document;
647 // typeof document.createElement is 'object' in old IE
648 var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
649
650 var documentCreateElement$2 = function (it) {
651 return EXISTS$1 ? document$1.createElement(it) : {};
652 };
653
654 var DESCRIPTORS$8 = descriptors;
655 var fails$d = fails$i;
656 var createElement = documentCreateElement$2;
657
658 // Thanks to IE8 for its funny defineProperty
659 var ie8DomDefine = !DESCRIPTORS$8 && !fails$d(function () {
660 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
661 return Object.defineProperty(createElement('div'), 'a', {
662 get: function () { return 7; }
663 }).a != 7;
664 });
665
666 var DESCRIPTORS$7 = descriptors;
667 var call$5 = functionCall;
668 var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
669 var createPropertyDescriptor$2 = createPropertyDescriptor$3;
670 var toIndexedObject$5 = toIndexedObject$6;
671 var toPropertyKey$2 = toPropertyKey$3;
672 var hasOwn$5 = hasOwnProperty_1;
673 var IE8_DOM_DEFINE$1 = ie8DomDefine;
674
675 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
676 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
677
678 // `Object.getOwnPropertyDescriptor` method
679 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
680 objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
681 O = toIndexedObject$5(O);
682 P = toPropertyKey$2(P);
683 if (IE8_DOM_DEFINE$1) try {
684 return $getOwnPropertyDescriptor$1(O, P);
685 } catch (error) { /* empty */ }
686 if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
687 };
688
689 var objectDefineProperty = {};
690
691 var DESCRIPTORS$6 = descriptors;
692 var fails$c = fails$i;
693
694 // V8 ~ Chrome 36-
695 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
696 var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$c(function () {
697 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
698 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
699 value: 42,
700 writable: false
701 }).prototype != 42;
702 });
703
704 var isObject$4 = isObject$8;
705
706 var $String$1 = String;
707 var $TypeError$3 = TypeError;
708
709 // `Assert: Type(argument) is Object`
710 var anObject$7 = function (argument) {
711 if (isObject$4(argument)) return argument;
712 throw $TypeError$3($String$1(argument) + ' is not an object');
713 };
714
715 var DESCRIPTORS$5 = descriptors;
716 var IE8_DOM_DEFINE = ie8DomDefine;
717 var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
718 var anObject$6 = anObject$7;
719 var toPropertyKey$1 = toPropertyKey$3;
720
721 var $TypeError$2 = TypeError;
722 // eslint-disable-next-line es/no-object-defineproperty -- safe
723 var $defineProperty = Object.defineProperty;
724 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
725 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
726 var ENUMERABLE = 'enumerable';
727 var CONFIGURABLE$1 = 'configurable';
728 var WRITABLE = 'writable';
729
730 // `Object.defineProperty` method
731 // https://tc39.es/ecma262/#sec-object.defineproperty
732 objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
733 anObject$6(O);
734 P = toPropertyKey$1(P);
735 anObject$6(Attributes);
736 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
737 var current = $getOwnPropertyDescriptor(O, P);
738 if (current && current[WRITABLE]) {
739 O[P] = Attributes.value;
740 Attributes = {
741 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
742 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
743 writable: false
744 };
745 }
746 } return $defineProperty(O, P, Attributes);
747 } : $defineProperty : function defineProperty(O, P, Attributes) {
748 anObject$6(O);
749 P = toPropertyKey$1(P);
750 anObject$6(Attributes);
751 if (IE8_DOM_DEFINE) try {
752 return $defineProperty(O, P, Attributes);
753 } catch (error) { /* empty */ }
754 if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
755 if ('value' in Attributes) O[P] = Attributes.value;
756 return O;
757 };
758
759 var DESCRIPTORS$4 = descriptors;
760 var definePropertyModule$4 = objectDefineProperty;
761 var createPropertyDescriptor$1 = createPropertyDescriptor$3;
762
763 var createNonEnumerableProperty$4 = DESCRIPTORS$4 ? function (object, key, value) {
764 return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
765 } : function (object, key, value) {
766 object[key] = value;
767 return object;
768 };
769
770 var makeBuiltIn$2 = {exports: {}};
771
772 var DESCRIPTORS$3 = descriptors;
773 var hasOwn$4 = hasOwnProperty_1;
774
775 var FunctionPrototype$1 = Function.prototype;
776 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
777 var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
778
779 var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
780 // additional protection from minified / mangled / dropped function names
781 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
782 var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
783
784 var functionName = {
785 EXISTS: EXISTS,
786 PROPER: PROPER,
787 CONFIGURABLE: CONFIGURABLE
788 };
789
790 var uncurryThis$d = functionUncurryThis;
791 var isCallable$8 = isCallable$e;
792 var store$1 = sharedStore;
793
794 var functionToString = uncurryThis$d(Function.toString);
795
796 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
797 if (!isCallable$8(store$1.inspectSource)) {
798 store$1.inspectSource = function (it) {
799 return functionToString(it);
800 };
801 }
802
803 var inspectSource$2 = store$1.inspectSource;
804
805 var global$7 = global$e;
806 var isCallable$7 = isCallable$e;
807
808 var WeakMap$1 = global$7.WeakMap;
809
810 var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
811
812 var shared$2 = shared$4.exports;
813 var uid = uid$2;
814
815 var keys = shared$2('keys');
816
817 var sharedKey$2 = function (key) {
818 return keys[key] || (keys[key] = uid(key));
819 };
820
821 var hiddenKeys$4 = {};
822
823 var NATIVE_WEAK_MAP = weakMapBasicDetection;
824 var global$6 = global$e;
825 var isObject$3 = isObject$8;
826 var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
827 var hasOwn$3 = hasOwnProperty_1;
828 var shared$1 = sharedStore;
829 var sharedKey$1 = sharedKey$2;
830 var hiddenKeys$3 = hiddenKeys$4;
831
832 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
833 var TypeError$1 = global$6.TypeError;
834 var WeakMap = global$6.WeakMap;
835 var set, get, has;
836
837 var enforce = function (it) {
838 return has(it) ? get(it) : set(it, {});
839 };
840
841 var getterFor = function (TYPE) {
842 return function (it) {
843 var state;
844 if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
845 throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
846 } return state;
847 };
848 };
849
850 if (NATIVE_WEAK_MAP || shared$1.state) {
851 var store = shared$1.state || (shared$1.state = new WeakMap());
852 /* eslint-disable no-self-assign -- prototype methods protection */
853 store.get = store.get;
854 store.has = store.has;
855 store.set = store.set;
856 /* eslint-enable no-self-assign -- prototype methods protection */
857 set = function (it, metadata) {
858 if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
859 metadata.facade = it;
860 store.set(it, metadata);
861 return metadata;
862 };
863 get = function (it) {
864 return store.get(it) || {};
865 };
866 has = function (it) {
867 return store.has(it);
868 };
869 } else {
870 var STATE = sharedKey$1('state');
871 hiddenKeys$3[STATE] = true;
872 set = function (it, metadata) {
873 if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
874 metadata.facade = it;
875 createNonEnumerableProperty$3(it, STATE, metadata);
876 return metadata;
877 };
878 get = function (it) {
879 return hasOwn$3(it, STATE) ? it[STATE] : {};
880 };
881 has = function (it) {
882 return hasOwn$3(it, STATE);
883 };
884 }
885
886 var internalState = {
887 set: set,
888 get: get,
889 has: has,
890 enforce: enforce,
891 getterFor: getterFor
892 };
893
894 var fails$b = fails$i;
895 var isCallable$6 = isCallable$e;
896 var hasOwn$2 = hasOwnProperty_1;
897 var DESCRIPTORS$2 = descriptors;
898 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
899 var inspectSource$1 = inspectSource$2;
900 var InternalStateModule = internalState;
901
902 var enforceInternalState = InternalStateModule.enforce;
903 var getInternalState$1 = InternalStateModule.get;
904 // eslint-disable-next-line es/no-object-defineproperty -- safe
905 var defineProperty$2 = Object.defineProperty;
906
907 var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$b(function () {
908 return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
909 });
910
911 var TEMPLATE = String(String).split('String');
912
913 var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
914 if (String(name).slice(0, 7) === 'Symbol(') {
915 name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
916 }
917 if (options && options.getter) name = 'get ' + name;
918 if (options && options.setter) name = 'set ' + name;
919 if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
920 if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
921 else value.name = name;
922 }
923 if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
924 defineProperty$2(value, 'length', { value: options.arity });
925 }
926 try {
927 if (options && hasOwn$2(options, 'constructor') && options.constructor) {
928 if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
929 // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
930 } else if (value.prototype) value.prototype = undefined;
931 } catch (error) { /* empty */ }
932 var state = enforceInternalState(value);
933 if (!hasOwn$2(state, 'source')) {
934 state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
935 } return value;
936 };
937
938 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
939 // eslint-disable-next-line no-extend-native -- required
940 Function.prototype.toString = makeBuiltIn$1(function toString() {
941 return isCallable$6(this) && getInternalState$1(this).source || inspectSource$1(this);
942 }, 'toString');
943
944 var isCallable$5 = isCallable$e;
945 var definePropertyModule$3 = objectDefineProperty;
946 var makeBuiltIn = makeBuiltIn$2.exports;
947 var defineGlobalProperty$1 = defineGlobalProperty$3;
948
949 var defineBuiltIn$3 = function (O, key, value, options) {
950 if (!options) options = {};
951 var simple = options.enumerable;
952 var name = options.name !== undefined ? options.name : key;
953 if (isCallable$5(value)) makeBuiltIn(value, name, options);
954 if (options.global) {
955 if (simple) O[key] = value;
956 else defineGlobalProperty$1(key, value);
957 } else {
958 try {
959 if (!options.unsafe) delete O[key];
960 else if (O[key]) simple = true;
961 } catch (error) { /* empty */ }
962 if (simple) O[key] = value;
963 else definePropertyModule$3.f(O, key, {
964 value: value,
965 enumerable: false,
966 configurable: !options.nonConfigurable,
967 writable: !options.nonWritable
968 });
969 } return O;
970 };
971
972 var objectGetOwnPropertyNames = {};
973
974 var ceil = Math.ceil;
975 var floor$1 = Math.floor;
976
977 // `Math.trunc` method
978 // https://tc39.es/ecma262/#sec-math.trunc
979 // eslint-disable-next-line es/no-math-trunc -- safe
980 var mathTrunc = Math.trunc || function trunc(x) {
981 var n = +x;
982 return (n > 0 ? floor$1 : ceil)(n);
983 };
984
985 var trunc = mathTrunc;
986
987 // `ToIntegerOrInfinity` abstract operation
988 // https://tc39.es/ecma262/#sec-tointegerorinfinity
989 var toIntegerOrInfinity$4 = function (argument) {
990 var number = +argument;
991 // eslint-disable-next-line no-self-compare -- NaN check
992 return number !== number || number === 0 ? 0 : trunc(number);
993 };
994
995 var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
996
997 var max$2 = Math.max;
998 var min$2 = Math.min;
999
1000 // Helper for a popular repeating case of the spec:
1001 // Let integer be ? ToInteger(index).
1002 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
1003 var toAbsoluteIndex$2 = function (index, length) {
1004 var integer = toIntegerOrInfinity$3(index);
1005 return integer < 0 ? max$2(integer + length, 0) : min$2(integer, length);
1006 };
1007
1008 var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
1009
1010 var min$1 = Math.min;
1011
1012 // `ToLength` abstract operation
1013 // https://tc39.es/ecma262/#sec-tolength
1014 var toLength$2 = function (argument) {
1015 return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1016 };
1017
1018 var toLength$1 = toLength$2;
1019
1020 // `LengthOfArrayLike` abstract operation
1021 // https://tc39.es/ecma262/#sec-lengthofarraylike
1022 var lengthOfArrayLike$4 = function (obj) {
1023 return toLength$1(obj.length);
1024 };
1025
1026 var toIndexedObject$4 = toIndexedObject$6;
1027 var toAbsoluteIndex$1 = toAbsoluteIndex$2;
1028 var lengthOfArrayLike$3 = lengthOfArrayLike$4;
1029
1030 // `Array.prototype.{ indexOf, includes }` methods implementation
1031 var createMethod$2 = function (IS_INCLUDES) {
1032 return function ($this, el, fromIndex) {
1033 var O = toIndexedObject$4($this);
1034 var length = lengthOfArrayLike$3(O);
1035 var index = toAbsoluteIndex$1(fromIndex, length);
1036 var value;
1037 // Array#includes uses SameValueZero equality algorithm
1038 // eslint-disable-next-line no-self-compare -- NaN check
1039 if (IS_INCLUDES && el != el) while (length > index) {
1040 value = O[index++];
1041 // eslint-disable-next-line no-self-compare -- NaN check
1042 if (value != value) return true;
1043 // Array#indexOf ignores holes, Array#includes - not
1044 } else for (;length > index; index++) {
1045 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1046 } return !IS_INCLUDES && -1;
1047 };
1048 };
1049
1050 var arrayIncludes = {
1051 // `Array.prototype.includes` method
1052 // https://tc39.es/ecma262/#sec-array.prototype.includes
1053 includes: createMethod$2(true),
1054 // `Array.prototype.indexOf` method
1055 // https://tc39.es/ecma262/#sec-array.prototype.indexof
1056 indexOf: createMethod$2(false)
1057 };
1058
1059 var uncurryThis$c = functionUncurryThis;
1060 var hasOwn$1 = hasOwnProperty_1;
1061 var toIndexedObject$3 = toIndexedObject$6;
1062 var indexOf$1 = arrayIncludes.indexOf;
1063 var hiddenKeys$2 = hiddenKeys$4;
1064
1065 var push$2 = uncurryThis$c([].push);
1066
1067 var objectKeysInternal = function (object, names) {
1068 var O = toIndexedObject$3(object);
1069 var i = 0;
1070 var result = [];
1071 var key;
1072 for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$2(result, key);
1073 // Don't enum bug & hidden keys
1074 while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
1075 ~indexOf$1(result, key) || push$2(result, key);
1076 }
1077 return result;
1078 };
1079
1080 // IE8- don't enum bug keys
1081 var enumBugKeys$3 = [
1082 'constructor',
1083 'hasOwnProperty',
1084 'isPrototypeOf',
1085 'propertyIsEnumerable',
1086 'toLocaleString',
1087 'toString',
1088 'valueOf'
1089 ];
1090
1091 var internalObjectKeys$1 = objectKeysInternal;
1092 var enumBugKeys$2 = enumBugKeys$3;
1093
1094 var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
1095
1096 // `Object.getOwnPropertyNames` method
1097 // https://tc39.es/ecma262/#sec-object.getownpropertynames
1098 // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1099 objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1100 return internalObjectKeys$1(O, hiddenKeys$1);
1101 };
1102
1103 var objectGetOwnPropertySymbols = {};
1104
1105 // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1106 objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1107
1108 var getBuiltIn$2 = getBuiltIn$5;
1109 var uncurryThis$b = functionUncurryThis;
1110 var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1111 var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1112 var anObject$5 = anObject$7;
1113
1114 var concat$2 = uncurryThis$b([].concat);
1115
1116 // all object keys, includes non-enumerable and symbols
1117 var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
1118 var keys = getOwnPropertyNamesModule.f(anObject$5(it));
1119 var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1120 return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1121 };
1122
1123 var hasOwn = hasOwnProperty_1;
1124 var ownKeys = ownKeys$1;
1125 var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1126 var definePropertyModule$2 = objectDefineProperty;
1127
1128 var copyConstructorProperties$1 = function (target, source, exceptions) {
1129 var keys = ownKeys(source);
1130 var defineProperty = definePropertyModule$2.f;
1131 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1132 for (var i = 0; i < keys.length; i++) {
1133 var key = keys[i];
1134 if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1135 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1136 }
1137 }
1138 };
1139
1140 var fails$a = fails$i;
1141 var isCallable$4 = isCallable$e;
1142
1143 var replacement = /#|\.prototype\./;
1144
1145 var isForced$1 = function (feature, detection) {
1146 var value = data[normalize(feature)];
1147 return value == POLYFILL ? true
1148 : value == NATIVE ? false
1149 : isCallable$4(detection) ? fails$a(detection)
1150 : !!detection;
1151 };
1152
1153 var normalize = isForced$1.normalize = function (string) {
1154 return String(string).replace(replacement, '.').toLowerCase();
1155 };
1156
1157 var data = isForced$1.data = {};
1158 var NATIVE = isForced$1.NATIVE = 'N';
1159 var POLYFILL = isForced$1.POLYFILL = 'P';
1160
1161 var isForced_1 = isForced$1;
1162
1163 var global$5 = global$e;
1164 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1165 var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1166 var defineBuiltIn$2 = defineBuiltIn$3;
1167 var defineGlobalProperty = defineGlobalProperty$3;
1168 var copyConstructorProperties = copyConstructorProperties$1;
1169 var isForced = isForced_1;
1170
1171 /*
1172 options.target - name of the target object
1173 options.global - target is the global object
1174 options.stat - export as static methods of target
1175 options.proto - export as prototype methods of target
1176 options.real - real prototype method for the `pure` version
1177 options.forced - export even if the native feature is available
1178 options.bind - bind methods to the target, required for the `pure` version
1179 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1180 options.unsafe - use the simple assignment of property instead of delete + defineProperty
1181 options.sham - add a flag to not completely full polyfills
1182 options.enumerable - export as enumerable property
1183 options.dontCallGetSet - prevent calling a getter on target
1184 options.name - the .name of the function if it does not match the key
1185 */
1186 var _export = function (options, source) {
1187 var TARGET = options.target;
1188 var GLOBAL = options.global;
1189 var STATIC = options.stat;
1190 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1191 if (GLOBAL) {
1192 target = global$5;
1193 } else if (STATIC) {
1194 target = global$5[TARGET] || defineGlobalProperty(TARGET, {});
1195 } else {
1196 target = (global$5[TARGET] || {}).prototype;
1197 }
1198 if (target) for (key in source) {
1199 sourceProperty = source[key];
1200 if (options.dontCallGetSet) {
1201 descriptor = getOwnPropertyDescriptor(target, key);
1202 targetProperty = descriptor && descriptor.value;
1203 } else targetProperty = target[key];
1204 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1205 // contained in target
1206 if (!FORCED && targetProperty !== undefined) {
1207 if (typeof sourceProperty == typeof targetProperty) continue;
1208 copyConstructorProperties(sourceProperty, targetProperty);
1209 }
1210 // add a flag to not completely full polyfills
1211 if (options.sham || (targetProperty && targetProperty.sham)) {
1212 createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1213 }
1214 defineBuiltIn$2(target, key, sourceProperty, options);
1215 }
1216 };
1217
1218 var wellKnownSymbol$8 = wellKnownSymbol$a;
1219
1220 var TO_STRING_TAG$1 = wellKnownSymbol$8('toStringTag');
1221 var test = {};
1222
1223 test[TO_STRING_TAG$1] = 'z';
1224
1225 var toStringTagSupport = String(test) === '[object z]';
1226
1227 var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
1228 var isCallable$3 = isCallable$e;
1229 var classofRaw = classofRaw$2;
1230 var wellKnownSymbol$7 = wellKnownSymbol$a;
1231
1232 var TO_STRING_TAG = wellKnownSymbol$7('toStringTag');
1233 var $Object = Object;
1234
1235 // ES3 wrong here
1236 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1237
1238 // fallback for IE11 Script Access Denied error
1239 var tryGet = function (it, key) {
1240 try {
1241 return it[key];
1242 } catch (error) { /* empty */ }
1243 };
1244
1245 // getting tag from ES6+ `Object.prototype.toString`
1246 var classof$5 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
1247 var O, tag, result;
1248 return it === undefined ? 'Undefined' : it === null ? 'Null'
1249 // @@toStringTag case
1250 : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1251 // builtinTag case
1252 : CORRECT_ARGUMENTS ? classofRaw(O)
1253 // ES3 arguments fallback
1254 : (result = classofRaw(O)) == 'Object' && isCallable$3(O.callee) ? 'Arguments' : result;
1255 };
1256
1257 var classof$4 = classof$5;
1258
1259 var $String = String;
1260
1261 var toString$4 = function (argument) {
1262 if (classof$4(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1263 return $String(argument);
1264 };
1265
1266 var anObject$4 = anObject$7;
1267
1268 // `RegExp.prototype.flags` getter implementation
1269 // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1270 var regexpFlags$1 = function () {
1271 var that = anObject$4(this);
1272 var result = '';
1273 if (that.hasIndices) result += 'd';
1274 if (that.global) result += 'g';
1275 if (that.ignoreCase) result += 'i';
1276 if (that.multiline) result += 'm';
1277 if (that.dotAll) result += 's';
1278 if (that.unicode) result += 'u';
1279 if (that.unicodeSets) result += 'v';
1280 if (that.sticky) result += 'y';
1281 return result;
1282 };
1283
1284 var fails$9 = fails$i;
1285 var global$4 = global$e;
1286
1287 // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1288 var $RegExp$2 = global$4.RegExp;
1289
1290 var UNSUPPORTED_Y$1 = fails$9(function () {
1291 var re = $RegExp$2('a', 'y');
1292 re.lastIndex = 2;
1293 return re.exec('abcd') != null;
1294 });
1295
1296 // UC Browser bug
1297 // https://github.com/zloirock/core-js/issues/1008
1298 var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$9(function () {
1299 return !$RegExp$2('a', 'y').sticky;
1300 });
1301
1302 var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$9(function () {
1303 // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1304 var re = $RegExp$2('^r', 'gy');
1305 re.lastIndex = 2;
1306 return re.exec('str') != null;
1307 });
1308
1309 var regexpStickyHelpers = {
1310 BROKEN_CARET: BROKEN_CARET,
1311 MISSED_STICKY: MISSED_STICKY,
1312 UNSUPPORTED_Y: UNSUPPORTED_Y$1
1313 };
1314
1315 var objectDefineProperties = {};
1316
1317 var internalObjectKeys = objectKeysInternal;
1318 var enumBugKeys$1 = enumBugKeys$3;
1319
1320 // `Object.keys` method
1321 // https://tc39.es/ecma262/#sec-object.keys
1322 // eslint-disable-next-line es/no-object-keys -- safe
1323 var objectKeys$2 = Object.keys || function keys(O) {
1324 return internalObjectKeys(O, enumBugKeys$1);
1325 };
1326
1327 var DESCRIPTORS$1 = descriptors;
1328 var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1329 var definePropertyModule$1 = objectDefineProperty;
1330 var anObject$3 = anObject$7;
1331 var toIndexedObject$2 = toIndexedObject$6;
1332 var objectKeys$1 = objectKeys$2;
1333
1334 // `Object.defineProperties` method
1335 // https://tc39.es/ecma262/#sec-object.defineproperties
1336 // eslint-disable-next-line es/no-object-defineproperties -- safe
1337 objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1338 anObject$3(O);
1339 var props = toIndexedObject$2(Properties);
1340 var keys = objectKeys$1(Properties);
1341 var length = keys.length;
1342 var index = 0;
1343 var key;
1344 while (length > index) definePropertyModule$1.f(O, key = keys[index++], props[key]);
1345 return O;
1346 };
1347
1348 var getBuiltIn$1 = getBuiltIn$5;
1349
1350 var html$1 = getBuiltIn$1('document', 'documentElement');
1351
1352 /* global ActiveXObject -- old IE, WSH */
1353
1354 var anObject$2 = anObject$7;
1355 var definePropertiesModule = objectDefineProperties;
1356 var enumBugKeys = enumBugKeys$3;
1357 var hiddenKeys = hiddenKeys$4;
1358 var html = html$1;
1359 var documentCreateElement$1 = documentCreateElement$2;
1360 var sharedKey = sharedKey$2;
1361
1362 var GT = '>';
1363 var LT = '<';
1364 var PROTOTYPE = 'prototype';
1365 var SCRIPT = 'script';
1366 var IE_PROTO = sharedKey('IE_PROTO');
1367
1368 var EmptyConstructor = function () { /* empty */ };
1369
1370 var scriptTag = function (content) {
1371 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1372 };
1373
1374 // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1375 var NullProtoObjectViaActiveX = function (activeXDocument) {
1376 activeXDocument.write(scriptTag(''));
1377 activeXDocument.close();
1378 var temp = activeXDocument.parentWindow.Object;
1379 activeXDocument = null; // avoid memory leak
1380 return temp;
1381 };
1382
1383 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1384 var NullProtoObjectViaIFrame = function () {
1385 // Thrash, waste and sodomy: IE GC bug
1386 var iframe = documentCreateElement$1('iframe');
1387 var JS = 'java' + SCRIPT + ':';
1388 var iframeDocument;
1389 iframe.style.display = 'none';
1390 html.appendChild(iframe);
1391 // https://github.com/zloirock/core-js/issues/475
1392 iframe.src = String(JS);
1393 iframeDocument = iframe.contentWindow.document;
1394 iframeDocument.open();
1395 iframeDocument.write(scriptTag('document.F=Object'));
1396 iframeDocument.close();
1397 return iframeDocument.F;
1398 };
1399
1400 // Check for document.domain and active x support
1401 // No need to use active x approach when document.domain is not set
1402 // see https://github.com/es-shims/es5-shim/issues/150
1403 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1404 // avoid IE GC bug
1405 var activeXDocument;
1406 var NullProtoObject = function () {
1407 try {
1408 activeXDocument = new ActiveXObject('htmlfile');
1409 } catch (error) { /* ignore */ }
1410 NullProtoObject = typeof document != 'undefined'
1411 ? document.domain && activeXDocument
1412 ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1413 : NullProtoObjectViaIFrame()
1414 : NullProtoObjectViaActiveX(activeXDocument); // WSH
1415 var length = enumBugKeys.length;
1416 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1417 return NullProtoObject();
1418 };
1419
1420 hiddenKeys[IE_PROTO] = true;
1421
1422 // `Object.create` method
1423 // https://tc39.es/ecma262/#sec-object.create
1424 // eslint-disable-next-line es/no-object-create -- safe
1425 var objectCreate = Object.create || function create(O, Properties) {
1426 var result;
1427 if (O !== null) {
1428 EmptyConstructor[PROTOTYPE] = anObject$2(O);
1429 result = new EmptyConstructor();
1430 EmptyConstructor[PROTOTYPE] = null;
1431 // add "__proto__" for Object.getPrototypeOf polyfill
1432 result[IE_PROTO] = O;
1433 } else result = NullProtoObject();
1434 return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1435 };
1436
1437 var fails$8 = fails$i;
1438 var global$3 = global$e;
1439
1440 // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1441 var $RegExp$1 = global$3.RegExp;
1442
1443 var regexpUnsupportedDotAll = fails$8(function () {
1444 var re = $RegExp$1('.', 's');
1445 return !(re.dotAll && re.exec('\n') && re.flags === 's');
1446 });
1447
1448 var fails$7 = fails$i;
1449 var global$2 = global$e;
1450
1451 // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1452 var $RegExp = global$2.RegExp;
1453
1454 var regexpUnsupportedNcg = fails$7(function () {
1455 var re = $RegExp('(?<a>b)', 'g');
1456 return re.exec('b').groups.a !== 'b' ||
1457 'b'.replace(re, '$<a>c') !== 'bc';
1458 });
1459
1460 /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1461 /* eslint-disable regexp/no-useless-quantifier -- testing */
1462 var call$4 = functionCall;
1463 var uncurryThis$a = functionUncurryThis;
1464 var toString$3 = toString$4;
1465 var regexpFlags = regexpFlags$1;
1466 var stickyHelpers = regexpStickyHelpers;
1467 var shared = shared$4.exports;
1468 var create$1 = objectCreate;
1469 var getInternalState = internalState.get;
1470 var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1471 var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1472
1473 var nativeReplace = shared('native-string-replace', String.prototype.replace);
1474 var nativeExec = RegExp.prototype.exec;
1475 var patchedExec = nativeExec;
1476 var charAt$3 = uncurryThis$a(''.charAt);
1477 var indexOf = uncurryThis$a(''.indexOf);
1478 var replace$1 = uncurryThis$a(''.replace);
1479 var stringSlice$3 = uncurryThis$a(''.slice);
1480
1481 var UPDATES_LAST_INDEX_WRONG = (function () {
1482 var re1 = /a/;
1483 var re2 = /b*/g;
1484 call$4(nativeExec, re1, 'a');
1485 call$4(nativeExec, re2, 'a');
1486 return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1487 })();
1488
1489 var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
1490
1491 // nonparticipating capturing group, copied from es5-shim's String#split patch.
1492 var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1493
1494 var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
1495
1496 if (PATCH) {
1497 patchedExec = function exec(string) {
1498 var re = this;
1499 var state = getInternalState(re);
1500 var str = toString$3(string);
1501 var raw = state.raw;
1502 var result, reCopy, lastIndex, match, i, object, group;
1503
1504 if (raw) {
1505 raw.lastIndex = re.lastIndex;
1506 result = call$4(patchedExec, raw, str);
1507 re.lastIndex = raw.lastIndex;
1508 return result;
1509 }
1510
1511 var groups = state.groups;
1512 var sticky = UNSUPPORTED_Y && re.sticky;
1513 var flags = call$4(regexpFlags, re);
1514 var source = re.source;
1515 var charsAdded = 0;
1516 var strCopy = str;
1517
1518 if (sticky) {
1519 flags = replace$1(flags, 'y', '');
1520 if (indexOf(flags, 'g') === -1) {
1521 flags += 'g';
1522 }
1523
1524 strCopy = stringSlice$3(str, re.lastIndex);
1525 // Support anchored sticky behavior.
1526 if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
1527 source = '(?: ' + source + ')';
1528 strCopy = ' ' + strCopy;
1529 charsAdded++;
1530 }
1531 // ^(? + rx + ) is needed, in combination with some str slicing, to
1532 // simulate the 'y' flag.
1533 reCopy = new RegExp('^(?:' + source + ')', flags);
1534 }
1535
1536 if (NPCG_INCLUDED) {
1537 reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1538 }
1539 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1540
1541 match = call$4(nativeExec, sticky ? reCopy : re, strCopy);
1542
1543 if (sticky) {
1544 if (match) {
1545 match.input = stringSlice$3(match.input, charsAdded);
1546 match[0] = stringSlice$3(match[0], charsAdded);
1547 match.index = re.lastIndex;
1548 re.lastIndex += match[0].length;
1549 } else re.lastIndex = 0;
1550 } else if (UPDATES_LAST_INDEX_WRONG && match) {
1551 re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1552 }
1553 if (NPCG_INCLUDED && match && match.length > 1) {
1554 // Fix browsers whose `exec` methods don't consistently return `undefined`
1555 // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1556 call$4(nativeReplace, match[0], reCopy, function () {
1557 for (i = 1; i < arguments.length - 2; i++) {
1558 if (arguments[i] === undefined) match[i] = undefined;
1559 }
1560 });
1561 }
1562
1563 if (match && groups) {
1564 match.groups = object = create$1(null);
1565 for (i = 0; i < groups.length; i++) {
1566 group = groups[i];
1567 object[group[0]] = match[group[1]];
1568 }
1569 }
1570
1571 return match;
1572 };
1573 }
1574
1575 var regexpExec$2 = patchedExec;
1576
1577 var $$6 = _export;
1578 var exec$1 = regexpExec$2;
1579
1580 // `RegExp.prototype.exec` method
1581 // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1582 $$6({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
1583 exec: exec$1
1584 });
1585
1586 var NATIVE_BIND$1 = functionBindNative;
1587
1588 var FunctionPrototype = Function.prototype;
1589 var apply$1 = FunctionPrototype.apply;
1590 var call$3 = FunctionPrototype.call;
1591
1592 // eslint-disable-next-line es/no-reflect -- safe
1593 var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$3.bind(apply$1) : function () {
1594 return call$3.apply(apply$1, arguments);
1595 });
1596
1597 // TODO: Remove from `core-js@4` since it's moved to entry points
1598
1599 var uncurryThis$9 = functionUncurryThis;
1600 var defineBuiltIn$1 = defineBuiltIn$3;
1601 var regexpExec$1 = regexpExec$2;
1602 var fails$6 = fails$i;
1603 var wellKnownSymbol$6 = wellKnownSymbol$a;
1604 var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1605
1606 var SPECIES$3 = wellKnownSymbol$6('species');
1607 var RegExpPrototype = RegExp.prototype;
1608
1609 var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1610 var SYMBOL = wellKnownSymbol$6(KEY);
1611
1612 var DELEGATES_TO_SYMBOL = !fails$6(function () {
1613 // String methods call symbol-named RegEp methods
1614 var O = {};
1615 O[SYMBOL] = function () { return 7; };
1616 return ''[KEY](O) != 7;
1617 });
1618
1619 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$6(function () {
1620 // Symbol-named RegExp methods call .exec
1621 var execCalled = false;
1622 var re = /a/;
1623
1624 if (KEY === 'split') {
1625 // We can't use real regex here since it causes deoptimization
1626 // and serious performance degradation in V8
1627 // https://github.com/zloirock/core-js/issues/306
1628 re = {};
1629 // RegExp[@@split] doesn't call the regex's exec method, but first creates
1630 // a new one. We need to return the patched regex when creating the new one.
1631 re.constructor = {};
1632 re.constructor[SPECIES$3] = function () { return re; };
1633 re.flags = '';
1634 re[SYMBOL] = /./[SYMBOL];
1635 }
1636
1637 re.exec = function () { execCalled = true; return null; };
1638
1639 re[SYMBOL]('');
1640 return !execCalled;
1641 });
1642
1643 if (
1644 !DELEGATES_TO_SYMBOL ||
1645 !DELEGATES_TO_EXEC ||
1646 FORCED
1647 ) {
1648 var uncurriedNativeRegExpMethod = uncurryThis$9(/./[SYMBOL]);
1649 var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1650 var uncurriedNativeMethod = uncurryThis$9(nativeMethod);
1651 var $exec = regexp.exec;
1652 if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
1653 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1654 // The native String method already delegates to @@method (this
1655 // polyfilled function), leasing to infinite recursion.
1656 // We avoid it by directly calling the native @@method method.
1657 return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
1658 }
1659 return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
1660 }
1661 return { done: false };
1662 });
1663
1664 defineBuiltIn$1(String.prototype, KEY, methods[0]);
1665 defineBuiltIn$1(RegExpPrototype, SYMBOL, methods[1]);
1666 }
1667
1668 if (SHAM) createNonEnumerableProperty$1(RegExpPrototype[SYMBOL], 'sham', true);
1669 };
1670
1671 var uncurryThis$8 = functionUncurryThis;
1672 var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
1673 var toString$2 = toString$4;
1674 var requireObjectCoercible$1 = requireObjectCoercible$4;
1675
1676 var charAt$2 = uncurryThis$8(''.charAt);
1677 var charCodeAt = uncurryThis$8(''.charCodeAt);
1678 var stringSlice$2 = uncurryThis$8(''.slice);
1679
1680 var createMethod$1 = function (CONVERT_TO_STRING) {
1681 return function ($this, pos) {
1682 var S = toString$2(requireObjectCoercible$1($this));
1683 var position = toIntegerOrInfinity$1(pos);
1684 var size = S.length;
1685 var first, second;
1686 if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1687 first = charCodeAt(S, position);
1688 return first < 0xD800 || first > 0xDBFF || position + 1 === size
1689 || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
1690 ? CONVERT_TO_STRING
1691 ? charAt$2(S, position)
1692 : first
1693 : CONVERT_TO_STRING
1694 ? stringSlice$2(S, position, position + 2)
1695 : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1696 };
1697 };
1698
1699 var stringMultibyte = {
1700 // `String.prototype.codePointAt` method
1701 // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1702 codeAt: createMethod$1(false),
1703 // `String.prototype.at` method
1704 // https://github.com/mathiasbynens/String.prototype.at
1705 charAt: createMethod$1(true)
1706 };
1707
1708 var charAt$1 = stringMultibyte.charAt;
1709
1710 // `AdvanceStringIndex` abstract operation
1711 // https://tc39.es/ecma262/#sec-advancestringindex
1712 var advanceStringIndex$1 = function (S, index, unicode) {
1713 return index + (unicode ? charAt$1(S, index).length : 1);
1714 };
1715
1716 var uncurryThis$7 = functionUncurryThis;
1717 var toObject$3 = toObject$5;
1718
1719 var floor = Math.floor;
1720 var charAt = uncurryThis$7(''.charAt);
1721 var replace = uncurryThis$7(''.replace);
1722 var stringSlice$1 = uncurryThis$7(''.slice);
1723 var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1724 var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1725
1726 // `GetSubstitution` abstract operation
1727 // https://tc39.es/ecma262/#sec-getsubstitution
1728 var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
1729 var tailPos = position + matched.length;
1730 var m = captures.length;
1731 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1732 if (namedCaptures !== undefined) {
1733 namedCaptures = toObject$3(namedCaptures);
1734 symbols = SUBSTITUTION_SYMBOLS;
1735 }
1736 return replace(replacement, symbols, function (match, ch) {
1737 var capture;
1738 switch (charAt(ch, 0)) {
1739 case '$': return '$';
1740 case '&': return matched;
1741 case '`': return stringSlice$1(str, 0, position);
1742 case "'": return stringSlice$1(str, tailPos);
1743 case '<':
1744 capture = namedCaptures[stringSlice$1(ch, 1, -1)];
1745 break;
1746 default: // \d\d?
1747 var n = +ch;
1748 if (n === 0) return match;
1749 if (n > m) {
1750 var f = floor(n / 10);
1751 if (f === 0) return match;
1752 if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
1753 return match;
1754 }
1755 capture = captures[n - 1];
1756 }
1757 return capture === undefined ? '' : capture;
1758 });
1759 };
1760
1761 var call$2 = functionCall;
1762 var anObject$1 = anObject$7;
1763 var isCallable$2 = isCallable$e;
1764 var classof$3 = classofRaw$2;
1765 var regexpExec = regexpExec$2;
1766
1767 var $TypeError$1 = TypeError;
1768
1769 // `RegExpExec` abstract operation
1770 // https://tc39.es/ecma262/#sec-regexpexec
1771 var regexpExecAbstract = function (R, S) {
1772 var exec = R.exec;
1773 if (isCallable$2(exec)) {
1774 var result = call$2(exec, R, S);
1775 if (result !== null) anObject$1(result);
1776 return result;
1777 }
1778 if (classof$3(R) === 'RegExp') return call$2(regexpExec, R, S);
1779 throw $TypeError$1('RegExp#exec called on incompatible receiver');
1780 };
1781
1782 var apply = functionApply;
1783 var call$1 = functionCall;
1784 var uncurryThis$6 = functionUncurryThis;
1785 var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
1786 var fails$5 = fails$i;
1787 var anObject = anObject$7;
1788 var isCallable$1 = isCallable$e;
1789 var isNullOrUndefined = isNullOrUndefined$3;
1790 var toIntegerOrInfinity = toIntegerOrInfinity$4;
1791 var toLength = toLength$2;
1792 var toString$1 = toString$4;
1793 var requireObjectCoercible = requireObjectCoercible$4;
1794 var advanceStringIndex = advanceStringIndex$1;
1795 var getMethod = getMethod$2;
1796 var getSubstitution = getSubstitution$1;
1797 var regExpExec = regexpExecAbstract;
1798 var wellKnownSymbol$5 = wellKnownSymbol$a;
1799
1800 var REPLACE = wellKnownSymbol$5('replace');
1801 var max$1 = Math.max;
1802 var min = Math.min;
1803 var concat$1 = uncurryThis$6([].concat);
1804 var push$1 = uncurryThis$6([].push);
1805 var stringIndexOf = uncurryThis$6(''.indexOf);
1806 var stringSlice = uncurryThis$6(''.slice);
1807
1808 var maybeToString = function (it) {
1809 return it === undefined ? it : String(it);
1810 };
1811
1812 // IE <= 11 replaces $0 with the whole match, as if it was $&
1813 // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1814 var REPLACE_KEEPS_$0 = (function () {
1815 // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
1816 return 'a'.replace(/./, '$0') === '$0';
1817 })();
1818
1819 // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
1820 var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
1821 if (/./[REPLACE]) {
1822 return /./[REPLACE]('a', '$0') === '';
1823 }
1824 return false;
1825 })();
1826
1827 var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$5(function () {
1828 var re = /./;
1829 re.exec = function () {
1830 var result = [];
1831 result.groups = { a: '7' };
1832 return result;
1833 };
1834 // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
1835 return ''.replace(re, '$<a>') !== '7';
1836 });
1837
1838 // @@replace logic
1839 fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
1840 var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1841
1842 return [
1843 // `String.prototype.replace` method
1844 // https://tc39.es/ecma262/#sec-string.prototype.replace
1845 function replace(searchValue, replaceValue) {
1846 var O = requireObjectCoercible(this);
1847 var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
1848 return replacer
1849 ? call$1(replacer, searchValue, O, replaceValue)
1850 : call$1(nativeReplace, toString$1(O), searchValue, replaceValue);
1851 },
1852 // `RegExp.prototype[@@replace]` method
1853 // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1854 function (string, replaceValue) {
1855 var rx = anObject(this);
1856 var S = toString$1(string);
1857
1858 if (
1859 typeof replaceValue == 'string' &&
1860 stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
1861 stringIndexOf(replaceValue, '$<') === -1
1862 ) {
1863 var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
1864 if (res.done) return res.value;
1865 }
1866
1867 var functionalReplace = isCallable$1(replaceValue);
1868 if (!functionalReplace) replaceValue = toString$1(replaceValue);
1869
1870 var global = rx.global;
1871 if (global) {
1872 var fullUnicode = rx.unicode;
1873 rx.lastIndex = 0;
1874 }
1875 var results = [];
1876 while (true) {
1877 var result = regExpExec(rx, S);
1878 if (result === null) break;
1879
1880 push$1(results, result);
1881 if (!global) break;
1882
1883 var matchStr = toString$1(result[0]);
1884 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1885 }
1886
1887 var accumulatedResult = '';
1888 var nextSourcePosition = 0;
1889 for (var i = 0; i < results.length; i++) {
1890 result = results[i];
1891
1892 var matched = toString$1(result[0]);
1893 var position = max$1(min(toIntegerOrInfinity(result.index), S.length), 0);
1894 var captures = [];
1895 // NOTE: This is equivalent to
1896 // captures = result.slice(1).map(maybeToString)
1897 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1898 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1899 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1900 for (var j = 1; j < result.length; j++) push$1(captures, maybeToString(result[j]));
1901 var namedCaptures = result.groups;
1902 if (functionalReplace) {
1903 var replacerArgs = concat$1([matched], captures, position, S);
1904 if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
1905 var replacement = toString$1(apply(replaceValue, undefined, replacerArgs));
1906 } else {
1907 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1908 }
1909 if (position >= nextSourcePosition) {
1910 accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
1911 nextSourcePosition = position + matched.length;
1912 }
1913 }
1914 return accumulatedResult + stringSlice(S, nextSourcePosition);
1915 }
1916 ];
1917 }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
1918
1919 var classof$2 = classofRaw$2;
1920
1921 // `IsArray` abstract operation
1922 // https://tc39.es/ecma262/#sec-isarray
1923 // eslint-disable-next-line es/no-array-isarray -- safe
1924 var isArray$3 = Array.isArray || function isArray(argument) {
1925 return classof$2(argument) == 'Array';
1926 };
1927
1928 var uncurryThis$5 = functionUncurryThis;
1929 var fails$4 = fails$i;
1930 var isCallable = isCallable$e;
1931 var classof$1 = classof$5;
1932 var getBuiltIn = getBuiltIn$5;
1933 var inspectSource = inspectSource$2;
1934
1935 var noop = function () { /* empty */ };
1936 var empty = [];
1937 var construct = getBuiltIn('Reflect', 'construct');
1938 var constructorRegExp = /^\s*(?:class|function)\b/;
1939 var exec = uncurryThis$5(constructorRegExp.exec);
1940 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1941
1942 var isConstructorModern = function isConstructor(argument) {
1943 if (!isCallable(argument)) return false;
1944 try {
1945 construct(noop, empty, argument);
1946 return true;
1947 } catch (error) {
1948 return false;
1949 }
1950 };
1951
1952 var isConstructorLegacy = function isConstructor(argument) {
1953 if (!isCallable(argument)) return false;
1954 switch (classof$1(argument)) {
1955 case 'AsyncFunction':
1956 case 'GeneratorFunction':
1957 case 'AsyncGeneratorFunction': return false;
1958 }
1959 try {
1960 // we can't check .prototype since constructors produced by .bind haven't it
1961 // `Function#toString` throws on some built-it function in some legacy engines
1962 // (for example, `DOMQuad` and similar in FF41-)
1963 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1964 } catch (error) {
1965 return true;
1966 }
1967 };
1968
1969 isConstructorLegacy.sham = true;
1970
1971 // `IsConstructor` abstract operation
1972 // https://tc39.es/ecma262/#sec-isconstructor
1973 var isConstructor$2 = !construct || fails$4(function () {
1974 var called;
1975 return isConstructorModern(isConstructorModern.call)
1976 || !isConstructorModern(Object)
1977 || !isConstructorModern(function () { called = true; })
1978 || called;
1979 }) ? isConstructorLegacy : isConstructorModern;
1980
1981 var toPropertyKey = toPropertyKey$3;
1982 var definePropertyModule = objectDefineProperty;
1983 var createPropertyDescriptor = createPropertyDescriptor$3;
1984
1985 var createProperty$2 = function (object, key, value) {
1986 var propertyKey = toPropertyKey(key);
1987 if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
1988 else object[propertyKey] = value;
1989 };
1990
1991 var fails$3 = fails$i;
1992 var wellKnownSymbol$4 = wellKnownSymbol$a;
1993 var V8_VERSION$1 = engineV8Version;
1994
1995 var SPECIES$2 = wellKnownSymbol$4('species');
1996
1997 var arrayMethodHasSpeciesSupport$3 = function (METHOD_NAME) {
1998 // We can't use this feature detection in V8 since it causes
1999 // deoptimization and serious performance degradation
2000 // https://github.com/zloirock/core-js/issues/677
2001 return V8_VERSION$1 >= 51 || !fails$3(function () {
2002 var array = [];
2003 var constructor = array.constructor = {};
2004 constructor[SPECIES$2] = function () {
2005 return { foo: 1 };
2006 };
2007 return array[METHOD_NAME](Boolean).foo !== 1;
2008 });
2009 };
2010
2011 var uncurryThis$4 = functionUncurryThis;
2012
2013 var arraySlice = uncurryThis$4([].slice);
2014
2015 var $$5 = _export;
2016 var isArray$2 = isArray$3;
2017 var isConstructor$1 = isConstructor$2;
2018 var isObject$2 = isObject$8;
2019 var toAbsoluteIndex = toAbsoluteIndex$2;
2020 var lengthOfArrayLike$2 = lengthOfArrayLike$4;
2021 var toIndexedObject$1 = toIndexedObject$6;
2022 var createProperty$1 = createProperty$2;
2023 var wellKnownSymbol$3 = wellKnownSymbol$a;
2024 var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$3;
2025 var nativeSlice = arraySlice;
2026
2027 var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$2('slice');
2028
2029 var SPECIES$1 = wellKnownSymbol$3('species');
2030 var $Array$1 = Array;
2031 var max = Math.max;
2032
2033 // `Array.prototype.slice` method
2034 // https://tc39.es/ecma262/#sec-array.prototype.slice
2035 // fallback for not array-like ES3 strings and DOM objects
2036 $$5({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
2037 slice: function slice(start, end) {
2038 var O = toIndexedObject$1(this);
2039 var length = lengthOfArrayLike$2(O);
2040 var k = toAbsoluteIndex(start, length);
2041 var fin = toAbsoluteIndex(end === undefined ? length : end, length);
2042 // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
2043 var Constructor, result, n;
2044 if (isArray$2(O)) {
2045 Constructor = O.constructor;
2046 // cross-realm fallback
2047 if (isConstructor$1(Constructor) && (Constructor === $Array$1 || isArray$2(Constructor.prototype))) {
2048 Constructor = undefined;
2049 } else if (isObject$2(Constructor)) {
2050 Constructor = Constructor[SPECIES$1];
2051 if (Constructor === null) Constructor = undefined;
2052 }
2053 if (Constructor === $Array$1 || Constructor === undefined) {
2054 return nativeSlice(O, k, fin);
2055 }
2056 }
2057 result = new (Constructor === undefined ? $Array$1 : Constructor)(max(fin - k, 0));
2058 for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]);
2059 result.length = n;
2060 return result;
2061 }
2062 });
2063
2064 var uncurryThis$3 = functionUncurryThis;
2065 var aCallable = aCallable$2;
2066 var NATIVE_BIND = functionBindNative;
2067
2068 var bind$1 = uncurryThis$3(uncurryThis$3.bind);
2069
2070 // optional / simple context binding
2071 var functionBindContext = function (fn, that) {
2072 aCallable(fn);
2073 return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
2074 return fn.apply(that, arguments);
2075 };
2076 };
2077
2078 var isArray$1 = isArray$3;
2079 var isConstructor = isConstructor$2;
2080 var isObject$1 = isObject$8;
2081 var wellKnownSymbol$2 = wellKnownSymbol$a;
2082
2083 var SPECIES = wellKnownSymbol$2('species');
2084 var $Array = Array;
2085
2086 // a part of `ArraySpeciesCreate` abstract operation
2087 // https://tc39.es/ecma262/#sec-arrayspeciescreate
2088 var arraySpeciesConstructor$1 = function (originalArray) {
2089 var C;
2090 if (isArray$1(originalArray)) {
2091 C = originalArray.constructor;
2092 // cross-realm fallback
2093 if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
2094 else if (isObject$1(C)) {
2095 C = C[SPECIES];
2096 if (C === null) C = undefined;
2097 }
2098 } return C === undefined ? $Array : C;
2099 };
2100
2101 var arraySpeciesConstructor = arraySpeciesConstructor$1;
2102
2103 // `ArraySpeciesCreate` abstract operation
2104 // https://tc39.es/ecma262/#sec-arrayspeciescreate
2105 var arraySpeciesCreate$2 = function (originalArray, length) {
2106 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
2107 };
2108
2109 var bind = functionBindContext;
2110 var uncurryThis$2 = functionUncurryThis;
2111 var IndexedObject$2 = indexedObject;
2112 var toObject$2 = toObject$5;
2113 var lengthOfArrayLike$1 = lengthOfArrayLike$4;
2114 var arraySpeciesCreate$1 = arraySpeciesCreate$2;
2115
2116 var push = uncurryThis$2([].push);
2117
2118 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
2119 var createMethod = function (TYPE) {
2120 var IS_MAP = TYPE == 1;
2121 var IS_FILTER = TYPE == 2;
2122 var IS_SOME = TYPE == 3;
2123 var IS_EVERY = TYPE == 4;
2124 var IS_FIND_INDEX = TYPE == 6;
2125 var IS_FILTER_REJECT = TYPE == 7;
2126 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
2127 return function ($this, callbackfn, that, specificCreate) {
2128 var O = toObject$2($this);
2129 var self = IndexedObject$2(O);
2130 var boundFunction = bind(callbackfn, that);
2131 var length = lengthOfArrayLike$1(self);
2132 var index = 0;
2133 var create = specificCreate || arraySpeciesCreate$1;
2134 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
2135 var value, result;
2136 for (;length > index; index++) if (NO_HOLES || index in self) {
2137 value = self[index];
2138 result = boundFunction(value, index, O);
2139 if (TYPE) {
2140 if (IS_MAP) target[index] = result; // map
2141 else if (result) switch (TYPE) {
2142 case 3: return true; // some
2143 case 5: return value; // find
2144 case 6: return index; // findIndex
2145 case 2: push(target, value); // filter
2146 } else switch (TYPE) {
2147 case 4: return false; // every
2148 case 7: push(target, value); // filterReject
2149 }
2150 }
2151 }
2152 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
2153 };
2154 };
2155
2156 var arrayIteration = {
2157 // `Array.prototype.forEach` method
2158 // https://tc39.es/ecma262/#sec-array.prototype.foreach
2159 forEach: createMethod(0),
2160 // `Array.prototype.map` method
2161 // https://tc39.es/ecma262/#sec-array.prototype.map
2162 map: createMethod(1),
2163 // `Array.prototype.filter` method
2164 // https://tc39.es/ecma262/#sec-array.prototype.filter
2165 filter: createMethod(2),
2166 // `Array.prototype.some` method
2167 // https://tc39.es/ecma262/#sec-array.prototype.some
2168 some: createMethod(3),
2169 // `Array.prototype.every` method
2170 // https://tc39.es/ecma262/#sec-array.prototype.every
2171 every: createMethod(4),
2172 // `Array.prototype.find` method
2173 // https://tc39.es/ecma262/#sec-array.prototype.find
2174 find: createMethod(5),
2175 // `Array.prototype.findIndex` method
2176 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
2177 findIndex: createMethod(6),
2178 // `Array.prototype.filterReject` method
2179 // https://github.com/tc39/proposal-array-filtering
2180 filterReject: createMethod(7)
2181 };
2182
2183 var $$4 = _export;
2184 var $map = arrayIteration.map;
2185 var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$3;
2186
2187 var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('map');
2188
2189 // `Array.prototype.map` method
2190 // https://tc39.es/ecma262/#sec-array.prototype.map
2191 // with adding support of @@species
2192 $$4({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
2193 map: function map(callbackfn /* , thisArg */) {
2194 return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2195 }
2196 });
2197
2198 var wellKnownSymbol$1 = wellKnownSymbol$a;
2199 var create = objectCreate;
2200 var defineProperty$1 = objectDefineProperty.f;
2201
2202 var UNSCOPABLES = wellKnownSymbol$1('unscopables');
2203 var ArrayPrototype = Array.prototype;
2204
2205 // Array.prototype[@@unscopables]
2206 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2207 if (ArrayPrototype[UNSCOPABLES] == undefined) {
2208 defineProperty$1(ArrayPrototype, UNSCOPABLES, {
2209 configurable: true,
2210 value: create(null)
2211 });
2212 }
2213
2214 // add a key to Array.prototype[@@unscopables]
2215 var addToUnscopables$1 = function (key) {
2216 ArrayPrototype[UNSCOPABLES][key] = true;
2217 };
2218
2219 var $$3 = _export;
2220 var $find = arrayIteration.find;
2221 var addToUnscopables = addToUnscopables$1;
2222
2223 var FIND = 'find';
2224 var SKIPS_HOLES = true;
2225
2226 // Shouldn't skip holes
2227 if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
2228
2229 // `Array.prototype.find` method
2230 // https://tc39.es/ecma262/#sec-array.prototype.find
2231 $$3({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
2232 find: function find(callbackfn /* , that = undefined */) {
2233 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2234 }
2235 });
2236
2237 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2238 addToUnscopables(FIND);
2239
2240 var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
2241 var classof = classof$5;
2242
2243 // `Object.prototype.toString` method implementation
2244 // https://tc39.es/ecma262/#sec-object.prototype.tostring
2245 var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
2246 return '[object ' + classof(this) + ']';
2247 };
2248
2249 var TO_STRING_TAG_SUPPORT = toStringTagSupport;
2250 var defineBuiltIn = defineBuiltIn$3;
2251 var toString = objectToString;
2252
2253 // `Object.prototype.toString` method
2254 // https://tc39.es/ecma262/#sec-object.prototype.tostring
2255 if (!TO_STRING_TAG_SUPPORT) {
2256 defineBuiltIn(Object.prototype, 'toString', toString, { unsafe: true });
2257 }
2258
2259 var DESCRIPTORS = descriptors;
2260 var uncurryThis$1 = functionUncurryThis;
2261 var call = functionCall;
2262 var fails$2 = fails$i;
2263 var objectKeys = objectKeys$2;
2264 var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2265 var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2266 var toObject$1 = toObject$5;
2267 var IndexedObject$1 = indexedObject;
2268
2269 // eslint-disable-next-line es/no-object-assign -- safe
2270 var $assign = Object.assign;
2271 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2272 var defineProperty = Object.defineProperty;
2273 var concat = uncurryThis$1([].concat);
2274
2275 // `Object.assign` method
2276 // https://tc39.es/ecma262/#sec-object.assign
2277 var objectAssign = !$assign || fails$2(function () {
2278 // should have correct order of operations (Edge bug)
2279 if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
2280 enumerable: true,
2281 get: function () {
2282 defineProperty(this, 'b', {
2283 value: 3,
2284 enumerable: false
2285 });
2286 }
2287 }), { b: 2 })).b !== 1) return true;
2288 // should work with symbols and should have deterministic property order (V8 bug)
2289 var A = {};
2290 var B = {};
2291 // eslint-disable-next-line es/no-symbol -- safe
2292 var symbol = Symbol();
2293 var alphabet = 'abcdefghijklmnopqrst';
2294 A[symbol] = 7;
2295 alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2296 return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
2297 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2298 var T = toObject$1(target);
2299 var argumentsLength = arguments.length;
2300 var index = 1;
2301 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2302 var propertyIsEnumerable = propertyIsEnumerableModule.f;
2303 while (argumentsLength > index) {
2304 var S = IndexedObject$1(arguments[index++]);
2305 var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
2306 var length = keys.length;
2307 var j = 0;
2308 var key;
2309 while (length > j) {
2310 key = keys[j++];
2311 if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
2312 }
2313 } return T;
2314 } : $assign;
2315
2316 var $$2 = _export;
2317 var assign = objectAssign;
2318
2319 // `Object.assign` method
2320 // https://tc39.es/ecma262/#sec-object.assign
2321 // eslint-disable-next-line es/no-object-assign -- required for testing
2322 $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2323 assign: assign
2324 });
2325
2326 var $TypeError = TypeError;
2327 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
2328
2329 var doesNotExceedSafeInteger$1 = function (it) {
2330 if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
2331 return it;
2332 };
2333
2334 var $$1 = _export;
2335 var fails$1 = fails$i;
2336 var isArray = isArray$3;
2337 var isObject = isObject$8;
2338 var toObject = toObject$5;
2339 var lengthOfArrayLike = lengthOfArrayLike$4;
2340 var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
2341 var createProperty = createProperty$2;
2342 var arraySpeciesCreate = arraySpeciesCreate$2;
2343 var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$3;
2344 var wellKnownSymbol = wellKnownSymbol$a;
2345 var V8_VERSION = engineV8Version;
2346
2347 var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
2348
2349 // We can't use this feature detection in V8 since it causes
2350 // deoptimization and serious performance degradation
2351 // https://github.com/zloirock/core-js/issues/679
2352 var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$1(function () {
2353 var array = [];
2354 array[IS_CONCAT_SPREADABLE] = false;
2355 return array.concat()[0] !== array;
2356 });
2357
2358 var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
2359
2360 var isConcatSpreadable = function (O) {
2361 if (!isObject(O)) return false;
2362 var spreadable = O[IS_CONCAT_SPREADABLE];
2363 return spreadable !== undefined ? !!spreadable : isArray(O);
2364 };
2365
2366 var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
2367
2368 // `Array.prototype.concat` method
2369 // https://tc39.es/ecma262/#sec-array.prototype.concat
2370 // with adding support of @@isConcatSpreadable and @@species
2371 $$1({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
2372 // eslint-disable-next-line no-unused-vars -- required for `.length`
2373 concat: function concat(arg) {
2374 var O = toObject(this);
2375 var A = arraySpeciesCreate(O, 0);
2376 var n = 0;
2377 var i, k, length, len, E;
2378 for (i = -1, length = arguments.length; i < length; i++) {
2379 E = i === -1 ? O : arguments[i];
2380 if (isConcatSpreadable(E)) {
2381 len = lengthOfArrayLike(E);
2382 doesNotExceedSafeInteger(n + len);
2383 for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
2384 } else {
2385 doesNotExceedSafeInteger(n + 1);
2386 createProperty(A, n++, E);
2387 }
2388 }
2389 A.length = n;
2390 return A;
2391 }
2392 });
2393
2394 var fails = fails$i;
2395
2396 var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
2397 var method = [][METHOD_NAME];
2398 return !!method && fails(function () {
2399 // eslint-disable-next-line no-useless-call -- required for testing
2400 method.call(null, argument || function () { return 1; }, 1);
2401 });
2402 };
2403
2404 var $ = _export;
2405 var uncurryThis = functionUncurryThis;
2406 var IndexedObject = indexedObject;
2407 var toIndexedObject = toIndexedObject$6;
2408 var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
2409
2410 var nativeJoin = uncurryThis([].join);
2411
2412 var ES3_STRINGS = IndexedObject != Object;
2413 var STRICT_METHOD$1 = arrayMethodIsStrict$1('join', ',');
2414
2415 // `Array.prototype.join` method
2416 // https://tc39.es/ecma262/#sec-array.prototype.join
2417 $({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD$1 }, {
2418 join: function join(separator) {
2419 return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
2420 }
2421 });
2422
2423 // iterable DOM collections
2424 // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2425 var domIterables = {
2426 CSSRuleList: 0,
2427 CSSStyleDeclaration: 0,
2428 CSSValueList: 0,
2429 ClientRectList: 0,
2430 DOMRectList: 0,
2431 DOMStringList: 0,
2432 DOMTokenList: 1,
2433 DataTransferItemList: 0,
2434 FileList: 0,
2435 HTMLAllCollection: 0,
2436 HTMLCollection: 0,
2437 HTMLFormElement: 0,
2438 HTMLSelectElement: 0,
2439 MediaList: 0,
2440 MimeTypeArray: 0,
2441 NamedNodeMap: 0,
2442 NodeList: 1,
2443 PaintRequestList: 0,
2444 Plugin: 0,
2445 PluginArray: 0,
2446 SVGLengthList: 0,
2447 SVGNumberList: 0,
2448 SVGPathSegList: 0,
2449 SVGPointList: 0,
2450 SVGStringList: 0,
2451 SVGTransformList: 0,
2452 SourceBufferList: 0,
2453 StyleSheetList: 0,
2454 TextTrackCueList: 0,
2455 TextTrackList: 0,
2456 TouchList: 0
2457 };
2458
2459 // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2460 var documentCreateElement = documentCreateElement$2;
2461
2462 var classList = documentCreateElement('span').classList;
2463 var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
2464
2465 var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2466
2467 var $forEach = arrayIteration.forEach;
2468 var arrayMethodIsStrict = arrayMethodIsStrict$2;
2469
2470 var STRICT_METHOD = arrayMethodIsStrict('forEach');
2471
2472 // `Array.prototype.forEach` method implementation
2473 // https://tc39.es/ecma262/#sec-array.prototype.foreach
2474 var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
2475 return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2476 // eslint-disable-next-line es/no-array-prototype-foreach -- safe
2477 } : [].forEach;
2478
2479 var global$1 = global$e;
2480 var DOMIterables = domIterables;
2481 var DOMTokenListPrototype = domTokenListPrototype;
2482 var forEach = arrayForEach;
2483 var createNonEnumerableProperty = createNonEnumerableProperty$4;
2484
2485 var handlePrototype = function (CollectionPrototype) {
2486 // some Chrome versions have non-configurable methods on DOMTokenList
2487 if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
2488 createNonEnumerableProperty(CollectionPrototype, 'forEach', forEach);
2489 } catch (error) {
2490 CollectionPrototype.forEach = forEach;
2491 }
2492 };
2493
2494 for (var COLLECTION_NAME in DOMIterables) {
2495 if (DOMIterables[COLLECTION_NAME]) {
2496 handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype);
2497 }
2498 }
2499
2500 handlePrototype(DOMTokenListPrototype);
2501
2502 /**
2503 * @author zhixin wen <wenzhixin2010@gmail.com>
2504 * extensions: https://github.com/hhurz/tableExport.jquery.plugin
2505 */
2506
2507 var Utils = $__default["default"].fn.bootstrapTable.utils;
2508 var TYPE_NAME = {
2509 json: 'JSON',
2510 xml: 'XML',
2511 png: 'PNG',
2512 csv: 'CSV',
2513 txt: 'TXT',
2514 sql: 'SQL',
2515 doc: 'MS-Word',
2516 excel: 'MS-Excel',
2517 xlsx: 'MS-Excel (OpenXML)',
2518 powerpoint: 'MS-Powerpoint',
2519 pdf: 'PDF'
2520 };
2521 $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
2522 showExport: false,
2523 exportDataType: 'basic',
2524 // basic, all, selected
2525 exportTypes: ['json', 'xml', 'csv', 'txt', 'sql', 'excel'],
2526 exportOptions: {},
2527 exportFooter: false
2528 });
2529 $__default["default"].extend($__default["default"].fn.bootstrapTable.columnDefaults, {
2530 forceExport: false,
2531 forceHide: false
2532 });
2533 $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults.icons, {
2534 export: {
2535 bootstrap3: 'glyphicon-export icon-share',
2536 bootstrap5: 'bi-download',
2537 materialize: 'file_download',
2538 'bootstrap-table': 'icon-download'
2539 }[$__default["default"].fn.bootstrapTable.theme] || 'fa-download'
2540 });
2541 $__default["default"].extend($__default["default"].fn.bootstrapTable.locales, {
2542 formatExport: function formatExport() {
2543 return 'Export data';
2544 }
2545 });
2546 $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, $__default["default"].fn.bootstrapTable.locales);
2547 $__default["default"].fn.bootstrapTable.methods.push('exportTable');
2548 $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
2549 // eslint-disable-next-line no-unused-vars
2550 onExportSaved: function onExportSaved(exportedRows) {
2551 return false;
2552 },
2553 onExportStarted: function onExportStarted() {
2554 return false;
2555 }
2556 });
2557 $__default["default"].extend($__default["default"].fn.bootstrapTable.Constructor.EVENTS, {
2558 'export-saved.bs.table': 'onExportSaved',
2559 'export-started.bs.table': 'onExportStarted'
2560 });
2561 $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
2562 _inherits(_class, _$$BootstrapTable);
2563 var _super = _createSuper(_class);
2564 function _class() {
2565 _classCallCheck(this, _class);
2566 return _super.apply(this, arguments);
2567 }
2568 _createClass(_class, [{
2569 key: "initToolbar",
2570 value: function initToolbar() {
2571 var _this = this,
2572 _get2;
2573 var o = this.options;
2574 var exportTypes = o.exportTypes;
2575 this.showToolbar = this.showToolbar || o.showExport;
2576 if (this.options.showExport) {
2577 if (typeof exportTypes === 'string') {
2578 var types = exportTypes.slice(1, -1).replace(/ /g, '').split(',');
2579 exportTypes = types.map(function (t) {
2580 return t.slice(1, -1);
2581 });
2582 }
2583 if (typeof o.exportOptions === 'string') {
2584 o.exportOptions = Utils.calculateObjectValue(null, o.exportOptions);
2585 }
2586 this.$export = this.$toolbar.find('>.columns div.export');
2587 if (this.$export.length) {
2588 this.updateExportButton();
2589 return;
2590 }
2591 this.buttons = Object.assign(this.buttons, {
2592 export: {
2593 html: function html() {
2594 if (exportTypes.length === 1) {
2595 return "\n <div class=\"export ".concat(_this.constants.classes.buttonsDropdown, "\"\n data-type=\"").concat(exportTypes[0], "\">\n <button class=\"").concat(_this.constants.buttonsClass, "\"\n aria-label=\"").concat(o.formatExport(), "\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(_this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n </button>\n </div>\n ");
2596 }
2597 var html = [];
2598 html.push("\n <div class=\"export ".concat(_this.constants.classes.buttonsDropdown, "\">\n <button class=\"").concat(_this.constants.buttonsClass, " dropdown-toggle\"\n aria-label=\"").concat(o.formatExport(), "\"\n ").concat(_this.constants.dataToggle, "=\"dropdown\"\n type=\"button\"\n title=\"").concat(o.formatExport(), "\">\n ").concat(o.showButtonIcons ? Utils.sprintf(_this.constants.html.icon, o.iconsPrefix, o.icons.export) : '', "\n ").concat(o.showButtonText ? o.formatExport() : '', "\n ").concat(_this.constants.html.dropdownCaret, "\n </button>\n ").concat(_this.constants.html.toolbarDropdown[0], "\n "));
2599 var _iterator = _createForOfIteratorHelper(exportTypes),
2600 _step;
2601 try {
2602 for (_iterator.s(); !(_step = _iterator.n()).done;) {
2603 var type = _step.value;
2604 if (TYPE_NAME.hasOwnProperty(type)) {
2605 var $item = $__default["default"](Utils.sprintf(_this.constants.html.pageDropdownItem, '', TYPE_NAME[type]));
2606 $item.attr('data-type', type);
2607 html.push($item.prop('outerHTML'));
2608 }
2609 }
2610 } catch (err) {
2611 _iterator.e(err);
2612 } finally {
2613 _iterator.f();
2614 }
2615 html.push(_this.constants.html.toolbarDropdown[1], '</div>');
2616 return html.join('');
2617 }
2618 }
2619 });
2620 }
2621 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2622 args[_key] = arguments[_key];
2623 }
2624 (_get2 = _get(_getPrototypeOf(_class.prototype), "initToolbar", this)).call.apply(_get2, [this].concat(args));
2625 this.$export = this.$toolbar.find('>.columns div.export');
2626 if (!this.options.showExport) {
2627 return;
2628 }
2629 this.updateExportButton();
2630 var $exportButtons = this.$export.find('[data-type]');
2631 if (exportTypes.length === 1) {
2632 $exportButtons = this.$export;
2633 }
2634 $exportButtons.click(function (e) {
2635 e.preventDefault();
2636 _this.exportTable({
2637 type: $__default["default"](e.currentTarget).data('type')
2638 });
2639 });
2640 this.handleToolbar();
2641 }
2642 }, {
2643 key: "handleToolbar",
2644 value: function handleToolbar() {
2645 if (!this.$export) {
2646 return;
2647 }
2648 if (_get(_getPrototypeOf(_class.prototype), "handleToolbar", this)) {
2649 _get(_getPrototypeOf(_class.prototype), "handleToolbar", this).call(this);
2650 }
2651 }
2652 }, {
2653 key: "exportTable",
2654 value: function exportTable(options) {
2655 var _this2 = this;
2656 var o = this.options;
2657 var stateField = this.header.stateField;
2658 var isCardView = o.cardView;
2659 var doExport = function doExport(callback) {
2660 _this2.trigger('export-started');
2661 if (stateField) {
2662 _this2.hideColumn(stateField);
2663 }
2664 if (isCardView) {
2665 _this2.toggleView();
2666 }
2667 _this2.columns.forEach(function (row) {
2668 if (row.forceHide) {
2669 _this2.hideColumn(row.field);
2670 }
2671 });
2672 var data = _this2.getData();
2673 if (o.detailView && o.detailViewIcon) {
2674 var detailViewIndex = o.detailViewAlign === 'left' ? 0 : _this2.getVisibleFields().length + Utils.getDetailViewIndexOffset(_this2.options);
2675 o.exportOptions.ignoreColumn = [detailViewIndex].concat(o.exportOptions.ignoreColumn || []);
2676 }
2677 if (o.exportFooter && o.height) {
2678 var $footerRow = _this2.$tableFooter.find('tr').first();
2679 var footerData = {};
2680 var footerHtml = [];
2681 $__default["default"].each($footerRow.children(), function (index, footerCell) {
2682 var footerCellHtml = $__default["default"](footerCell).children('.th-inner').first().html();
2683 footerData[_this2.columns[index].field] = footerCellHtml === '&nbsp;' ? null : footerCellHtml;
2684
2685 // grab footer cell text into cell index-based array
2686 footerHtml.push(footerCellHtml);
2687 });
2688 _this2.$body.append(_this2.$body.children().last()[0].outerHTML);
2689 var $lastTableRow = _this2.$body.children().last();
2690 $__default["default"].each($lastTableRow.children(), function (index, lastTableRowCell) {
2691 $__default["default"](lastTableRowCell).html(footerHtml[index]);
2692 });
2693 }
2694 var hiddenColumns = _this2.getHiddenColumns();
2695 hiddenColumns.forEach(function (row) {
2696 if (row.forceExport) {
2697 _this2.showColumn(row.field);
2698 }
2699 });
2700 if (typeof o.exportOptions.fileName === 'function') {
2701 options.fileName = o.exportOptions.fileName();
2702 }
2703 _this2.$el.tableExport($__default["default"].extend({
2704 onAfterSaveToFile: function onAfterSaveToFile() {
2705 if (o.exportFooter) {
2706 _this2.load(data);
2707 }
2708 if (stateField) {
2709 _this2.showColumn(stateField);
2710 }
2711 if (isCardView) {
2712 _this2.toggleView();
2713 }
2714 hiddenColumns.forEach(function (row) {
2715 if (row.forceExport) {
2716 _this2.hideColumn(row.field);
2717 }
2718 });
2719 _this2.columns.forEach(function (row) {
2720 if (row.forceHide) {
2721 _this2.showColumn(row.field);
2722 }
2723 });
2724 if (callback) callback();
2725 }
2726 }, o.exportOptions, options));
2727 };
2728 if (o.exportDataType === 'all' && o.pagination) {
2729 var eventName = o.sidePagination === 'server' ? 'post-body.bs.table' : 'page-change.bs.table';
2730 var virtualScroll = this.options.virtualScroll;
2731 this.$el.one(eventName, function () {
2732 setTimeout(function () {
2733 doExport(function () {
2734 _this2.options.virtualScroll = virtualScroll;
2735 _this2.togglePagination();
2736 });
2737 }, 0);
2738 });
2739 this.options.virtualScroll = false;
2740 this.togglePagination();
2741 this.trigger('export-saved', this.getData());
2742 } else if (o.exportDataType === 'selected') {
2743 var data = this.getData();
2744 var selectedData = this.getSelections();
2745 var pagination = o.pagination;
2746 if (!selectedData.length) {
2747 return;
2748 }
2749 if (o.sidePagination === 'server') {
2750 data = _defineProperty({
2751 total: o.totalRows
2752 }, this.options.dataField, data);
2753 selectedData = _defineProperty({
2754 total: selectedData.length
2755 }, this.options.dataField, selectedData);
2756 }
2757 this.load(selectedData);
2758 if (pagination) {
2759 this.togglePagination();
2760 }
2761 doExport(function () {
2762 if (pagination) {
2763 _this2.togglePagination();
2764 }
2765 _this2.load(data);
2766 });
2767 this.trigger('export-saved', selectedData);
2768 } else {
2769 doExport();
2770 this.trigger('export-saved', this.getData(true));
2771 }
2772 }
2773 }, {
2774 key: "updateSelected",
2775 value: function updateSelected() {
2776 _get(_getPrototypeOf(_class.prototype), "updateSelected", this).call(this);
2777 this.updateExportButton();
2778 }
2779 }, {
2780 key: "updateExportButton",
2781 value: function updateExportButton() {
2782 if (this.options.exportDataType === 'selected') {
2783 this.$export.find('> button').prop('disabled', !this.getSelections().length);
2784 }
2785 }
2786 }]);
2787 return _class;
2788 }($__default["default"].BootstrapTable);
2789
2790}));