UNPKG

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