UNPKG

190 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 ($$k) { 'use strict';
6
7 function _typeof(obj) {
8 "@babel/helpers - typeof";
9
10 return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
11 return typeof obj;
12 } : function (obj) {
13 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
14 }, _typeof(obj);
15 }
16 function _classCallCheck(instance, Constructor) {
17 if (!(instance instanceof Constructor)) {
18 throw new TypeError("Cannot call a class as a function");
19 }
20 }
21 function _defineProperties(target, props) {
22 for (var i = 0; i < props.length; i++) {
23 var descriptor = props[i];
24 descriptor.enumerable = descriptor.enumerable || false;
25 descriptor.configurable = true;
26 if ("value" in descriptor) descriptor.writable = true;
27 Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
28 }
29 }
30 function _createClass(Constructor, protoProps, staticProps) {
31 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
32 if (staticProps) _defineProperties(Constructor, staticProps);
33 Object.defineProperty(Constructor, "prototype", {
34 writable: false
35 });
36 return Constructor;
37 }
38 function _inherits(subClass, superClass) {
39 if (typeof superClass !== "function" && superClass !== null) {
40 throw new TypeError("Super expression must either be null or a function");
41 }
42 subClass.prototype = Object.create(superClass && superClass.prototype, {
43 constructor: {
44 value: subClass,
45 writable: true,
46 configurable: true
47 }
48 });
49 Object.defineProperty(subClass, "prototype", {
50 writable: false
51 });
52 if (superClass) _setPrototypeOf(subClass, superClass);
53 }
54 function _getPrototypeOf(o) {
55 _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
56 return o.__proto__ || Object.getPrototypeOf(o);
57 };
58 return _getPrototypeOf(o);
59 }
60 function _setPrototypeOf(o, p) {
61 _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
62 o.__proto__ = p;
63 return o;
64 };
65 return _setPrototypeOf(o, p);
66 }
67 function _isNativeReflectConstruct() {
68 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
69 if (Reflect.construct.sham) return false;
70 if (typeof Proxy === "function") return true;
71 try {
72 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
73 return true;
74 } catch (e) {
75 return false;
76 }
77 }
78 function _assertThisInitialized(self) {
79 if (self === void 0) {
80 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
81 }
82 return self;
83 }
84 function _possibleConstructorReturn(self, call) {
85 if (call && (typeof call === "object" || typeof call === "function")) {
86 return call;
87 } else if (call !== void 0) {
88 throw new TypeError("Derived constructors may only return object or undefined");
89 }
90 return _assertThisInitialized(self);
91 }
92 function _createSuper(Derived) {
93 var hasNativeReflectConstruct = _isNativeReflectConstruct();
94 return function _createSuperInternal() {
95 var Super = _getPrototypeOf(Derived),
96 result;
97 if (hasNativeReflectConstruct) {
98 var NewTarget = _getPrototypeOf(this).constructor;
99 result = Reflect.construct(Super, arguments, NewTarget);
100 } else {
101 result = Super.apply(this, arguments);
102 }
103 return _possibleConstructorReturn(this, result);
104 };
105 }
106 function _superPropBase(object, property) {
107 while (!Object.prototype.hasOwnProperty.call(object, property)) {
108 object = _getPrototypeOf(object);
109 if (object === null) break;
110 }
111 return object;
112 }
113 function _get() {
114 if (typeof Reflect !== "undefined" && Reflect.get) {
115 _get = Reflect.get.bind();
116 } else {
117 _get = function _get(target, property, receiver) {
118 var base = _superPropBase(target, property);
119 if (!base) return;
120 var desc = Object.getOwnPropertyDescriptor(base, property);
121 if (desc.get) {
122 return desc.get.call(arguments.length < 3 ? target : receiver);
123 }
124 return desc.value;
125 };
126 }
127 return _get.apply(this, arguments);
128 }
129 function _toConsumableArray(arr) {
130 return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
131 }
132 function _arrayWithoutHoles(arr) {
133 if (Array.isArray(arr)) return _arrayLikeToArray(arr);
134 }
135 function _iterableToArray(iter) {
136 if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
137 }
138 function _unsupportedIterableToArray(o, minLen) {
139 if (!o) return;
140 if (typeof o === "string") return _arrayLikeToArray(o, minLen);
141 var n = Object.prototype.toString.call(o).slice(8, -1);
142 if (n === "Object" && o.constructor) n = o.constructor.name;
143 if (n === "Map" || n === "Set") return Array.from(o);
144 if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
145 }
146 function _arrayLikeToArray(arr, len) {
147 if (len == null || len > arr.length) len = arr.length;
148 for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
149 return arr2;
150 }
151 function _nonIterableSpread() {
152 throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
153 }
154 function _toPrimitive(input, hint) {
155 if (typeof input !== "object" || input === null) return input;
156 var prim = input[Symbol.toPrimitive];
157 if (prim !== undefined) {
158 var res = prim.call(input, hint || "default");
159 if (typeof res !== "object") return res;
160 throw new TypeError("@@toPrimitive must return a primitive value.");
161 }
162 return (hint === "string" ? String : Number)(input);
163 }
164 function _toPropertyKey(arg) {
165 var key = _toPrimitive(arg, "string");
166 return typeof key === "symbol" ? key : String(key);
167 }
168
169 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
170
171 var check = function (it) {
172 return it && it.Math == Math && it;
173 };
174
175 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
176 var global$k =
177 // eslint-disable-next-line es/no-global-this -- safe
178 check(typeof globalThis == 'object' && globalThis) ||
179 check(typeof window == 'object' && window) ||
180 // eslint-disable-next-line no-restricted-globals -- safe
181 check(typeof self == 'object' && self) ||
182 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
183 // eslint-disable-next-line no-new-func -- fallback
184 (function () { return this; })() || Function('return this')();
185
186 var objectGetOwnPropertyDescriptor = {};
187
188 var fails$q = function (exec) {
189 try {
190 return !!exec();
191 } catch (error) {
192 return true;
193 }
194 };
195
196 var fails$p = fails$q;
197
198 // Detect IE8's incomplete defineProperty implementation
199 var descriptors = !fails$p(function () {
200 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
201 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
202 });
203
204 var fails$o = fails$q;
205
206 var functionBindNative = !fails$o(function () {
207 // eslint-disable-next-line es/no-function-prototype-bind -- safe
208 var test = (function () { /* empty */ }).bind();
209 // eslint-disable-next-line no-prototype-builtins -- safe
210 return typeof test != 'function' || test.hasOwnProperty('prototype');
211 });
212
213 var NATIVE_BIND$3 = functionBindNative;
214
215 var call$j = Function.prototype.call;
216
217 var functionCall = NATIVE_BIND$3 ? call$j.bind(call$j) : function () {
218 return call$j.apply(call$j, arguments);
219 };
220
221 var objectPropertyIsEnumerable = {};
222
223 var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
224 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
225 var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
226
227 // Nashorn ~ JDK8 bug
228 var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
229
230 // `Object.prototype.propertyIsEnumerable` method implementation
231 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
232 objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
233 var descriptor = getOwnPropertyDescriptor$2(this, V);
234 return !!descriptor && descriptor.enumerable;
235 } : $propertyIsEnumerable$1;
236
237 var createPropertyDescriptor$3 = function (bitmap, value) {
238 return {
239 enumerable: !(bitmap & 1),
240 configurable: !(bitmap & 2),
241 writable: !(bitmap & 4),
242 value: value
243 };
244 };
245
246 var NATIVE_BIND$2 = functionBindNative;
247
248 var FunctionPrototype$2 = Function.prototype;
249 var call$i = FunctionPrototype$2.call;
250 var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$i, call$i);
251
252 var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
253 return function () {
254 return call$i.apply(fn, arguments);
255 };
256 };
257
258 var uncurryThis$s = functionUncurryThis;
259
260 var toString$c = uncurryThis$s({}.toString);
261 var stringSlice$6 = uncurryThis$s(''.slice);
262
263 var classofRaw$2 = function (it) {
264 return stringSlice$6(toString$c(it), 8, -1);
265 };
266
267 var uncurryThis$r = functionUncurryThis;
268 var fails$n = fails$q;
269 var classof$9 = classofRaw$2;
270
271 var $Object$3 = Object;
272 var split = uncurryThis$r(''.split);
273
274 // fallback for non-array-like ES3 and non-enumerable old V8 strings
275 var indexedObject = fails$n(function () {
276 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
277 // eslint-disable-next-line no-prototype-builtins -- safe
278 return !$Object$3('z').propertyIsEnumerable(0);
279 }) ? function (it) {
280 return classof$9(it) == 'String' ? split(it, '') : $Object$3(it);
281 } : $Object$3;
282
283 // we can't use just `it == null` since of `document.all` special case
284 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
285 var isNullOrUndefined$7 = function (it) {
286 return it === null || it === undefined;
287 };
288
289 var isNullOrUndefined$6 = isNullOrUndefined$7;
290
291 var $TypeError$g = TypeError;
292
293 // `RequireObjectCoercible` abstract operation
294 // https://tc39.es/ecma262/#sec-requireobjectcoercible
295 var requireObjectCoercible$8 = function (it) {
296 if (isNullOrUndefined$6(it)) throw $TypeError$g("Can't call method on " + it);
297 return it;
298 };
299
300 // toObject with fallback for non-array-like ES3 strings
301 var IndexedObject$3 = indexedObject;
302 var requireObjectCoercible$7 = requireObjectCoercible$8;
303
304 var toIndexedObject$6 = function (it) {
305 return IndexedObject$3(requireObjectCoercible$7(it));
306 };
307
308 var documentAll$2 = typeof document == 'object' && document.all;
309
310 // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
311 // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
312 var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
313
314 var documentAll_1 = {
315 all: documentAll$2,
316 IS_HTMLDDA: IS_HTMLDDA
317 };
318
319 var $documentAll$1 = documentAll_1;
320
321 var documentAll$1 = $documentAll$1.all;
322
323 // `IsCallable` abstract operation
324 // https://tc39.es/ecma262/#sec-iscallable
325 var isCallable$j = $documentAll$1.IS_HTMLDDA ? function (argument) {
326 return typeof argument == 'function' || argument === documentAll$1;
327 } : function (argument) {
328 return typeof argument == 'function';
329 };
330
331 var isCallable$i = isCallable$j;
332 var $documentAll = documentAll_1;
333
334 var documentAll = $documentAll.all;
335
336 var isObject$a = $documentAll.IS_HTMLDDA ? function (it) {
337 return typeof it == 'object' ? it !== null : isCallable$i(it) || it === documentAll;
338 } : function (it) {
339 return typeof it == 'object' ? it !== null : isCallable$i(it);
340 };
341
342 var global$j = global$k;
343 var isCallable$h = isCallable$j;
344
345 var aFunction = function (argument) {
346 return isCallable$h(argument) ? argument : undefined;
347 };
348
349 var getBuiltIn$7 = function (namespace, method) {
350 return arguments.length < 2 ? aFunction(global$j[namespace]) : global$j[namespace] && global$j[namespace][method];
351 };
352
353 var uncurryThis$q = functionUncurryThis;
354
355 var objectIsPrototypeOf = uncurryThis$q({}.isPrototypeOf);
356
357 var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
358
359 var global$i = global$k;
360 var userAgent$5 = engineUserAgent;
361
362 var process$4 = global$i.process;
363 var Deno$1 = global$i.Deno;
364 var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
365 var v8 = versions && versions.v8;
366 var match, version;
367
368 if (v8) {
369 match = v8.split('.');
370 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
371 // but their correct versions are not interesting for us
372 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
373 }
374
375 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
376 // so check `userAgent` even if `.v8` exists, but 0
377 if (!version && userAgent$5) {
378 match = userAgent$5.match(/Edge\/(\d+)/);
379 if (!match || match[1] >= 74) {
380 match = userAgent$5.match(/Chrome\/(\d+)/);
381 if (match) version = +match[1];
382 }
383 }
384
385 var engineV8Version = version;
386
387 /* eslint-disable es/no-symbol -- required for testing */
388
389 var V8_VERSION$3 = engineV8Version;
390 var fails$m = fails$q;
391
392 // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
393 var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$m(function () {
394 var symbol = Symbol();
395 // Chrome 38 Symbol has incorrect toString conversion
396 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
397 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
398 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
399 !Symbol.sham && V8_VERSION$3 && V8_VERSION$3 < 41;
400 });
401
402 /* eslint-disable es/no-symbol -- required for testing */
403
404 var NATIVE_SYMBOL$1 = symbolConstructorDetection;
405
406 var useSymbolAsUid = NATIVE_SYMBOL$1
407 && !Symbol.sham
408 && typeof Symbol.iterator == 'symbol';
409
410 var getBuiltIn$6 = getBuiltIn$7;
411 var isCallable$g = isCallable$j;
412 var isPrototypeOf$3 = objectIsPrototypeOf;
413 var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
414
415 var $Object$2 = Object;
416
417 var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
418 return typeof it == 'symbol';
419 } : function (it) {
420 var $Symbol = getBuiltIn$6('Symbol');
421 return isCallable$g($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$2(it));
422 };
423
424 var $String$4 = String;
425
426 var tryToString$5 = function (argument) {
427 try {
428 return $String$4(argument);
429 } catch (error) {
430 return 'Object';
431 }
432 };
433
434 var isCallable$f = isCallable$j;
435 var tryToString$4 = tryToString$5;
436
437 var $TypeError$f = TypeError;
438
439 // `Assert: IsCallable(argument) is true`
440 var aCallable$9 = function (argument) {
441 if (isCallable$f(argument)) return argument;
442 throw $TypeError$f(tryToString$4(argument) + ' is not a function');
443 };
444
445 var aCallable$8 = aCallable$9;
446 var isNullOrUndefined$5 = isNullOrUndefined$7;
447
448 // `GetMethod` abstract operation
449 // https://tc39.es/ecma262/#sec-getmethod
450 var getMethod$6 = function (V, P) {
451 var func = V[P];
452 return isNullOrUndefined$5(func) ? undefined : aCallable$8(func);
453 };
454
455 var call$h = functionCall;
456 var isCallable$e = isCallable$j;
457 var isObject$9 = isObject$a;
458
459 var $TypeError$e = TypeError;
460
461 // `OrdinaryToPrimitive` abstract operation
462 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
463 var ordinaryToPrimitive$1 = function (input, pref) {
464 var fn, val;
465 if (pref === 'string' && isCallable$e(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
466 if (isCallable$e(fn = input.valueOf) && !isObject$9(val = call$h(fn, input))) return val;
467 if (pref !== 'string' && isCallable$e(fn = input.toString) && !isObject$9(val = call$h(fn, input))) return val;
468 throw $TypeError$e("Can't convert object to primitive value");
469 };
470
471 var sharedExports = {};
472 var shared$4 = {
473 get exports(){ return sharedExports; },
474 set exports(v){ sharedExports = v; },
475 };
476
477 var global$h = global$k;
478
479 // eslint-disable-next-line es/no-object-defineproperty -- safe
480 var defineProperty$5 = Object.defineProperty;
481
482 var defineGlobalProperty$3 = function (key, value) {
483 try {
484 defineProperty$5(global$h, key, { value: value, configurable: true, writable: true });
485 } catch (error) {
486 global$h[key] = value;
487 } return value;
488 };
489
490 var global$g = global$k;
491 var defineGlobalProperty$2 = defineGlobalProperty$3;
492
493 var SHARED = '__core-js_shared__';
494 var store$3 = global$g[SHARED] || defineGlobalProperty$2(SHARED, {});
495
496 var sharedStore = store$3;
497
498 var store$2 = sharedStore;
499
500 (shared$4.exports = function (key, value) {
501 return store$2[key] || (store$2[key] = value !== undefined ? value : {});
502 })('versions', []).push({
503 version: '3.29.0',
504 mode: 'global',
505 copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
506 license: 'https://github.com/zloirock/core-js/blob/v3.29.0/LICENSE',
507 source: 'https://github.com/zloirock/core-js'
508 });
509
510 var requireObjectCoercible$6 = requireObjectCoercible$8;
511
512 var $Object$1 = Object;
513
514 // `ToObject` abstract operation
515 // https://tc39.es/ecma262/#sec-toobject
516 var toObject$7 = function (argument) {
517 return $Object$1(requireObjectCoercible$6(argument));
518 };
519
520 var uncurryThis$p = functionUncurryThis;
521 var toObject$6 = toObject$7;
522
523 var hasOwnProperty = uncurryThis$p({}.hasOwnProperty);
524
525 // `HasOwnProperty` abstract operation
526 // https://tc39.es/ecma262/#sec-hasownproperty
527 // eslint-disable-next-line es/no-object-hasown -- safe
528 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
529 return hasOwnProperty(toObject$6(it), key);
530 };
531
532 var uncurryThis$o = functionUncurryThis;
533
534 var id = 0;
535 var postfix = Math.random();
536 var toString$b = uncurryThis$o(1.0.toString);
537
538 var uid$2 = function (key) {
539 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$b(++id + postfix, 36);
540 };
541
542 var global$f = global$k;
543 var shared$3 = sharedExports;
544 var hasOwn$9 = hasOwnProperty_1;
545 var uid$1 = uid$2;
546 var NATIVE_SYMBOL = symbolConstructorDetection;
547 var USE_SYMBOL_AS_UID = useSymbolAsUid;
548
549 var Symbol$2 = global$f.Symbol;
550 var WellKnownSymbolsStore = shared$3('wks');
551 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2['for'] || Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
552
553 var wellKnownSymbol$i = function (name) {
554 if (!hasOwn$9(WellKnownSymbolsStore, name)) {
555 WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$2, name)
556 ? Symbol$2[name]
557 : createWellKnownSymbol('Symbol.' + name);
558 } return WellKnownSymbolsStore[name];
559 };
560
561 var call$g = functionCall;
562 var isObject$8 = isObject$a;
563 var isSymbol$1 = isSymbol$2;
564 var getMethod$5 = getMethod$6;
565 var ordinaryToPrimitive = ordinaryToPrimitive$1;
566 var wellKnownSymbol$h = wellKnownSymbol$i;
567
568 var $TypeError$d = TypeError;
569 var TO_PRIMITIVE = wellKnownSymbol$h('toPrimitive');
570
571 // `ToPrimitive` abstract operation
572 // https://tc39.es/ecma262/#sec-toprimitive
573 var toPrimitive$1 = function (input, pref) {
574 if (!isObject$8(input) || isSymbol$1(input)) return input;
575 var exoticToPrim = getMethod$5(input, TO_PRIMITIVE);
576 var result;
577 if (exoticToPrim) {
578 if (pref === undefined) pref = 'default';
579 result = call$g(exoticToPrim, input, pref);
580 if (!isObject$8(result) || isSymbol$1(result)) return result;
581 throw $TypeError$d("Can't convert object to primitive value");
582 }
583 if (pref === undefined) pref = 'number';
584 return ordinaryToPrimitive(input, pref);
585 };
586
587 var toPrimitive = toPrimitive$1;
588 var isSymbol = isSymbol$2;
589
590 // `ToPropertyKey` abstract operation
591 // https://tc39.es/ecma262/#sec-topropertykey
592 var toPropertyKey$3 = function (argument) {
593 var key = toPrimitive(argument, 'string');
594 return isSymbol(key) ? key : key + '';
595 };
596
597 var global$e = global$k;
598 var isObject$7 = isObject$a;
599
600 var document$3 = global$e.document;
601 // typeof document.createElement is 'object' in old IE
602 var EXISTS$1 = isObject$7(document$3) && isObject$7(document$3.createElement);
603
604 var documentCreateElement$2 = function (it) {
605 return EXISTS$1 ? document$3.createElement(it) : {};
606 };
607
608 var DESCRIPTORS$a = descriptors;
609 var fails$l = fails$q;
610 var createElement$1 = documentCreateElement$2;
611
612 // Thanks to IE8 for its funny defineProperty
613 var ie8DomDefine = !DESCRIPTORS$a && !fails$l(function () {
614 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
615 return Object.defineProperty(createElement$1('div'), 'a', {
616 get: function () { return 7; }
617 }).a != 7;
618 });
619
620 var DESCRIPTORS$9 = descriptors;
621 var call$f = functionCall;
622 var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
623 var createPropertyDescriptor$2 = createPropertyDescriptor$3;
624 var toIndexedObject$5 = toIndexedObject$6;
625 var toPropertyKey$2 = toPropertyKey$3;
626 var hasOwn$8 = hasOwnProperty_1;
627 var IE8_DOM_DEFINE$1 = ie8DomDefine;
628
629 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
630 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
631
632 // `Object.getOwnPropertyDescriptor` method
633 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
634 objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
635 O = toIndexedObject$5(O);
636 P = toPropertyKey$2(P);
637 if (IE8_DOM_DEFINE$1) try {
638 return $getOwnPropertyDescriptor$1(O, P);
639 } catch (error) { /* empty */ }
640 if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$f(propertyIsEnumerableModule$1.f, O, P), O[P]);
641 };
642
643 var objectDefineProperty = {};
644
645 var DESCRIPTORS$8 = descriptors;
646 var fails$k = fails$q;
647
648 // V8 ~ Chrome 36-
649 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
650 var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$k(function () {
651 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
652 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
653 value: 42,
654 writable: false
655 }).prototype != 42;
656 });
657
658 var isObject$6 = isObject$a;
659
660 var $String$3 = String;
661 var $TypeError$c = TypeError;
662
663 // `Assert: Type(argument) is Object`
664 var anObject$g = function (argument) {
665 if (isObject$6(argument)) return argument;
666 throw $TypeError$c($String$3(argument) + ' is not an object');
667 };
668
669 var DESCRIPTORS$7 = descriptors;
670 var IE8_DOM_DEFINE = ie8DomDefine;
671 var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
672 var anObject$f = anObject$g;
673 var toPropertyKey$1 = toPropertyKey$3;
674
675 var $TypeError$b = TypeError;
676 // eslint-disable-next-line es/no-object-defineproperty -- safe
677 var $defineProperty = Object.defineProperty;
678 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
679 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
680 var ENUMERABLE = 'enumerable';
681 var CONFIGURABLE$1 = 'configurable';
682 var WRITABLE = 'writable';
683
684 // `Object.defineProperty` method
685 // https://tc39.es/ecma262/#sec-object.defineproperty
686 objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
687 anObject$f(O);
688 P = toPropertyKey$1(P);
689 anObject$f(Attributes);
690 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
691 var current = $getOwnPropertyDescriptor(O, P);
692 if (current && current[WRITABLE]) {
693 O[P] = Attributes.value;
694 Attributes = {
695 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
696 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
697 writable: false
698 };
699 }
700 } return $defineProperty(O, P, Attributes);
701 } : $defineProperty : function defineProperty(O, P, Attributes) {
702 anObject$f(O);
703 P = toPropertyKey$1(P);
704 anObject$f(Attributes);
705 if (IE8_DOM_DEFINE) try {
706 return $defineProperty(O, P, Attributes);
707 } catch (error) { /* empty */ }
708 if ('get' in Attributes || 'set' in Attributes) throw $TypeError$b('Accessors not supported');
709 if ('value' in Attributes) O[P] = Attributes.value;
710 return O;
711 };
712
713 var DESCRIPTORS$6 = descriptors;
714 var definePropertyModule$4 = objectDefineProperty;
715 var createPropertyDescriptor$1 = createPropertyDescriptor$3;
716
717 var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
718 return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
719 } : function (object, key, value) {
720 object[key] = value;
721 return object;
722 };
723
724 var makeBuiltInExports = {};
725 var makeBuiltIn$3 = {
726 get exports(){ return makeBuiltInExports; },
727 set exports(v){ makeBuiltInExports = v; },
728 };
729
730 var DESCRIPTORS$5 = descriptors;
731 var hasOwn$7 = hasOwnProperty_1;
732
733 var FunctionPrototype$1 = Function.prototype;
734 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
735 var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
736
737 var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
738 // additional protection from minified / mangled / dropped function names
739 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
740 var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
741
742 var functionName = {
743 EXISTS: EXISTS,
744 PROPER: PROPER,
745 CONFIGURABLE: CONFIGURABLE
746 };
747
748 var uncurryThis$n = functionUncurryThis;
749 var isCallable$d = isCallable$j;
750 var store$1 = sharedStore;
751
752 var functionToString = uncurryThis$n(Function.toString);
753
754 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
755 if (!isCallable$d(store$1.inspectSource)) {
756 store$1.inspectSource = function (it) {
757 return functionToString(it);
758 };
759 }
760
761 var inspectSource$3 = store$1.inspectSource;
762
763 var global$d = global$k;
764 var isCallable$c = isCallable$j;
765
766 var WeakMap$1 = global$d.WeakMap;
767
768 var weakMapBasicDetection = isCallable$c(WeakMap$1) && /native code/.test(String(WeakMap$1));
769
770 var shared$2 = sharedExports;
771 var uid = uid$2;
772
773 var keys = shared$2('keys');
774
775 var sharedKey$2 = function (key) {
776 return keys[key] || (keys[key] = uid(key));
777 };
778
779 var hiddenKeys$4 = {};
780
781 var NATIVE_WEAK_MAP = weakMapBasicDetection;
782 var global$c = global$k;
783 var isObject$5 = isObject$a;
784 var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
785 var hasOwn$6 = hasOwnProperty_1;
786 var shared$1 = sharedStore;
787 var sharedKey$1 = sharedKey$2;
788 var hiddenKeys$3 = hiddenKeys$4;
789
790 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
791 var TypeError$2 = global$c.TypeError;
792 var WeakMap = global$c.WeakMap;
793 var set$1, get, has;
794
795 var enforce = function (it) {
796 return has(it) ? get(it) : set$1(it, {});
797 };
798
799 var getterFor = function (TYPE) {
800 return function (it) {
801 var state;
802 if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
803 throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
804 } return state;
805 };
806 };
807
808 if (NATIVE_WEAK_MAP || shared$1.state) {
809 var store = shared$1.state || (shared$1.state = new WeakMap());
810 /* eslint-disable no-self-assign -- prototype methods protection */
811 store.get = store.get;
812 store.has = store.has;
813 store.set = store.set;
814 /* eslint-enable no-self-assign -- prototype methods protection */
815 set$1 = function (it, metadata) {
816 if (store.has(it)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
817 metadata.facade = it;
818 store.set(it, metadata);
819 return metadata;
820 };
821 get = function (it) {
822 return store.get(it) || {};
823 };
824 has = function (it) {
825 return store.has(it);
826 };
827 } else {
828 var STATE = sharedKey$1('state');
829 hiddenKeys$3[STATE] = true;
830 set$1 = function (it, metadata) {
831 if (hasOwn$6(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
832 metadata.facade = it;
833 createNonEnumerableProperty$3(it, STATE, metadata);
834 return metadata;
835 };
836 get = function (it) {
837 return hasOwn$6(it, STATE) ? it[STATE] : {};
838 };
839 has = function (it) {
840 return hasOwn$6(it, STATE);
841 };
842 }
843
844 var internalState = {
845 set: set$1,
846 get: get,
847 has: has,
848 enforce: enforce,
849 getterFor: getterFor
850 };
851
852 var uncurryThis$m = functionUncurryThis;
853 var fails$j = fails$q;
854 var isCallable$b = isCallable$j;
855 var hasOwn$5 = hasOwnProperty_1;
856 var DESCRIPTORS$4 = descriptors;
857 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
858 var inspectSource$2 = inspectSource$3;
859 var InternalStateModule$1 = internalState;
860
861 var enforceInternalState = InternalStateModule$1.enforce;
862 var getInternalState$1 = InternalStateModule$1.get;
863 var $String$2 = String;
864 // eslint-disable-next-line es/no-object-defineproperty -- safe
865 var defineProperty$4 = Object.defineProperty;
866 var stringSlice$5 = uncurryThis$m(''.slice);
867 var replace$3 = uncurryThis$m(''.replace);
868 var join = uncurryThis$m([].join);
869
870 var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$j(function () {
871 return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
872 });
873
874 var TEMPLATE = String(String).split('String');
875
876 var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
877 if (stringSlice$5($String$2(name), 0, 7) === 'Symbol(') {
878 name = '[' + replace$3($String$2(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
879 }
880 if (options && options.getter) name = 'get ' + name;
881 if (options && options.setter) name = 'set ' + name;
882 if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
883 if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
884 else value.name = name;
885 }
886 if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
887 defineProperty$4(value, 'length', { value: options.arity });
888 }
889 try {
890 if (options && hasOwn$5(options, 'constructor') && options.constructor) {
891 if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
892 // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
893 } else if (value.prototype) value.prototype = undefined;
894 } catch (error) { /* empty */ }
895 var state = enforceInternalState(value);
896 if (!hasOwn$5(state, 'source')) {
897 state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
898 } return value;
899 };
900
901 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
902 // eslint-disable-next-line no-extend-native -- required
903 Function.prototype.toString = makeBuiltIn$2(function toString() {
904 return isCallable$b(this) && getInternalState$1(this).source || inspectSource$2(this);
905 }, 'toString');
906
907 var isCallable$a = isCallable$j;
908 var definePropertyModule$3 = objectDefineProperty;
909 var makeBuiltIn$1 = makeBuiltInExports;
910 var defineGlobalProperty$1 = defineGlobalProperty$3;
911
912 var defineBuiltIn$6 = function (O, key, value, options) {
913 if (!options) options = {};
914 var simple = options.enumerable;
915 var name = options.name !== undefined ? options.name : key;
916 if (isCallable$a(value)) makeBuiltIn$1(value, name, options);
917 if (options.global) {
918 if (simple) O[key] = value;
919 else defineGlobalProperty$1(key, value);
920 } else {
921 try {
922 if (!options.unsafe) delete O[key];
923 else if (O[key]) simple = true;
924 } catch (error) { /* empty */ }
925 if (simple) O[key] = value;
926 else definePropertyModule$3.f(O, key, {
927 value: value,
928 enumerable: false,
929 configurable: !options.nonConfigurable,
930 writable: !options.nonWritable
931 });
932 } return O;
933 };
934
935 var objectGetOwnPropertyNames = {};
936
937 var ceil = Math.ceil;
938 var floor$2 = Math.floor;
939
940 // `Math.trunc` method
941 // https://tc39.es/ecma262/#sec-math.trunc
942 // eslint-disable-next-line es/no-math-trunc -- safe
943 var mathTrunc = Math.trunc || function trunc(x) {
944 var n = +x;
945 return (n > 0 ? floor$2 : ceil)(n);
946 };
947
948 var trunc = mathTrunc;
949
950 // `ToIntegerOrInfinity` abstract operation
951 // https://tc39.es/ecma262/#sec-tointegerorinfinity
952 var toIntegerOrInfinity$4 = function (argument) {
953 var number = +argument;
954 // eslint-disable-next-line no-self-compare -- NaN check
955 return number !== number || number === 0 ? 0 : trunc(number);
956 };
957
958 var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
959
960 var max$2 = Math.max;
961 var min$3 = Math.min;
962
963 // Helper for a popular repeating case of the spec:
964 // Let integer be ? ToInteger(index).
965 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
966 var toAbsoluteIndex$2 = function (index, length) {
967 var integer = toIntegerOrInfinity$3(index);
968 return integer < 0 ? max$2(integer + length, 0) : min$3(integer, length);
969 };
970
971 var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
972
973 var min$2 = Math.min;
974
975 // `ToLength` abstract operation
976 // https://tc39.es/ecma262/#sec-tolength
977 var toLength$4 = function (argument) {
978 return argument > 0 ? min$2(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
979 };
980
981 var toLength$3 = toLength$4;
982
983 // `LengthOfArrayLike` abstract operation
984 // https://tc39.es/ecma262/#sec-lengthofarraylike
985 var lengthOfArrayLike$6 = function (obj) {
986 return toLength$3(obj.length);
987 };
988
989 var toIndexedObject$4 = toIndexedObject$6;
990 var toAbsoluteIndex$1 = toAbsoluteIndex$2;
991 var lengthOfArrayLike$5 = lengthOfArrayLike$6;
992
993 // `Array.prototype.{ indexOf, includes }` methods implementation
994 var createMethod$4 = function (IS_INCLUDES) {
995 return function ($this, el, fromIndex) {
996 var O = toIndexedObject$4($this);
997 var length = lengthOfArrayLike$5(O);
998 var index = toAbsoluteIndex$1(fromIndex, length);
999 var value;
1000 // Array#includes uses SameValueZero equality algorithm
1001 // eslint-disable-next-line no-self-compare -- NaN check
1002 if (IS_INCLUDES && el != el) while (length > index) {
1003 value = O[index++];
1004 // eslint-disable-next-line no-self-compare -- NaN check
1005 if (value != value) return true;
1006 // Array#indexOf ignores holes, Array#includes - not
1007 } else for (;length > index; index++) {
1008 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1009 } return !IS_INCLUDES && -1;
1010 };
1011 };
1012
1013 var arrayIncludes = {
1014 // `Array.prototype.includes` method
1015 // https://tc39.es/ecma262/#sec-array.prototype.includes
1016 includes: createMethod$4(true),
1017 // `Array.prototype.indexOf` method
1018 // https://tc39.es/ecma262/#sec-array.prototype.indexof
1019 indexOf: createMethod$4(false)
1020 };
1021
1022 var uncurryThis$l = functionUncurryThis;
1023 var hasOwn$4 = hasOwnProperty_1;
1024 var toIndexedObject$3 = toIndexedObject$6;
1025 var indexOf$1 = arrayIncludes.indexOf;
1026 var hiddenKeys$2 = hiddenKeys$4;
1027
1028 var push$5 = uncurryThis$l([].push);
1029
1030 var objectKeysInternal = function (object, names) {
1031 var O = toIndexedObject$3(object);
1032 var i = 0;
1033 var result = [];
1034 var key;
1035 for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$5(result, key);
1036 // Don't enum bug & hidden keys
1037 while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
1038 ~indexOf$1(result, key) || push$5(result, key);
1039 }
1040 return result;
1041 };
1042
1043 // IE8- don't enum bug keys
1044 var enumBugKeys$3 = [
1045 'constructor',
1046 'hasOwnProperty',
1047 'isPrototypeOf',
1048 'propertyIsEnumerable',
1049 'toLocaleString',
1050 'toString',
1051 'valueOf'
1052 ];
1053
1054 var internalObjectKeys$1 = objectKeysInternal;
1055 var enumBugKeys$2 = enumBugKeys$3;
1056
1057 var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
1058
1059 // `Object.getOwnPropertyNames` method
1060 // https://tc39.es/ecma262/#sec-object.getownpropertynames
1061 // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1062 objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1063 return internalObjectKeys$1(O, hiddenKeys$1);
1064 };
1065
1066 var objectGetOwnPropertySymbols = {};
1067
1068 // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1069 objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1070
1071 var getBuiltIn$5 = getBuiltIn$7;
1072 var uncurryThis$k = functionUncurryThis;
1073 var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1074 var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1075 var anObject$e = anObject$g;
1076
1077 var concat$2 = uncurryThis$k([].concat);
1078
1079 // all object keys, includes non-enumerable and symbols
1080 var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
1081 var keys = getOwnPropertyNamesModule.f(anObject$e(it));
1082 var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1083 return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1084 };
1085
1086 var hasOwn$3 = hasOwnProperty_1;
1087 var ownKeys = ownKeys$1;
1088 var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1089 var definePropertyModule$2 = objectDefineProperty;
1090
1091 var copyConstructorProperties$1 = function (target, source, exceptions) {
1092 var keys = ownKeys(source);
1093 var defineProperty = definePropertyModule$2.f;
1094 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1095 for (var i = 0; i < keys.length; i++) {
1096 var key = keys[i];
1097 if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
1098 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1099 }
1100 }
1101 };
1102
1103 var fails$i = fails$q;
1104 var isCallable$9 = isCallable$j;
1105
1106 var replacement = /#|\.prototype\./;
1107
1108 var isForced$2 = function (feature, detection) {
1109 var value = data[normalize(feature)];
1110 return value == POLYFILL ? true
1111 : value == NATIVE ? false
1112 : isCallable$9(detection) ? fails$i(detection)
1113 : !!detection;
1114 };
1115
1116 var normalize = isForced$2.normalize = function (string) {
1117 return String(string).replace(replacement, '.').toLowerCase();
1118 };
1119
1120 var data = isForced$2.data = {};
1121 var NATIVE = isForced$2.NATIVE = 'N';
1122 var POLYFILL = isForced$2.POLYFILL = 'P';
1123
1124 var isForced_1 = isForced$2;
1125
1126 var global$b = global$k;
1127 var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1128 var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1129 var defineBuiltIn$5 = defineBuiltIn$6;
1130 var defineGlobalProperty = defineGlobalProperty$3;
1131 var copyConstructorProperties = copyConstructorProperties$1;
1132 var isForced$1 = isForced_1;
1133
1134 /*
1135 options.target - name of the target object
1136 options.global - target is the global object
1137 options.stat - export as static methods of target
1138 options.proto - export as prototype methods of target
1139 options.real - real prototype method for the `pure` version
1140 options.forced - export even if the native feature is available
1141 options.bind - bind methods to the target, required for the `pure` version
1142 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1143 options.unsafe - use the simple assignment of property instead of delete + defineProperty
1144 options.sham - add a flag to not completely full polyfills
1145 options.enumerable - export as enumerable property
1146 options.dontCallGetSet - prevent calling a getter on target
1147 options.name - the .name of the function if it does not match the key
1148 */
1149 var _export = function (options, source) {
1150 var TARGET = options.target;
1151 var GLOBAL = options.global;
1152 var STATIC = options.stat;
1153 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1154 if (GLOBAL) {
1155 target = global$b;
1156 } else if (STATIC) {
1157 target = global$b[TARGET] || defineGlobalProperty(TARGET, {});
1158 } else {
1159 target = (global$b[TARGET] || {}).prototype;
1160 }
1161 if (target) for (key in source) {
1162 sourceProperty = source[key];
1163 if (options.dontCallGetSet) {
1164 descriptor = getOwnPropertyDescriptor$1(target, key);
1165 targetProperty = descriptor && descriptor.value;
1166 } else targetProperty = target[key];
1167 FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1168 // contained in target
1169 if (!FORCED && targetProperty !== undefined) {
1170 if (typeof sourceProperty == typeof targetProperty) continue;
1171 copyConstructorProperties(sourceProperty, targetProperty);
1172 }
1173 // add a flag to not completely full polyfills
1174 if (options.sham || (targetProperty && targetProperty.sham)) {
1175 createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1176 }
1177 defineBuiltIn$5(target, key, sourceProperty, options);
1178 }
1179 };
1180
1181 var internalObjectKeys = objectKeysInternal;
1182 var enumBugKeys$1 = enumBugKeys$3;
1183
1184 // `Object.keys` method
1185 // https://tc39.es/ecma262/#sec-object.keys
1186 // eslint-disable-next-line es/no-object-keys -- safe
1187 var objectKeys$3 = Object.keys || function keys(O) {
1188 return internalObjectKeys(O, enumBugKeys$1);
1189 };
1190
1191 var DESCRIPTORS$3 = descriptors;
1192 var uncurryThis$j = functionUncurryThis;
1193 var call$e = functionCall;
1194 var fails$h = fails$q;
1195 var objectKeys$2 = objectKeys$3;
1196 var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1197 var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1198 var toObject$5 = toObject$7;
1199 var IndexedObject$2 = indexedObject;
1200
1201 // eslint-disable-next-line es/no-object-assign -- safe
1202 var $assign = Object.assign;
1203 // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1204 var defineProperty$3 = Object.defineProperty;
1205 var concat$1 = uncurryThis$j([].concat);
1206
1207 // `Object.assign` method
1208 // https://tc39.es/ecma262/#sec-object.assign
1209 var objectAssign = !$assign || fails$h(function () {
1210 // should have correct order of operations (Edge bug)
1211 if (DESCRIPTORS$3 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1212 enumerable: true,
1213 get: function () {
1214 defineProperty$3(this, 'b', {
1215 value: 3,
1216 enumerable: false
1217 });
1218 }
1219 }), { b: 2 })).b !== 1) return true;
1220 // should work with symbols and should have deterministic property order (V8 bug)
1221 var A = {};
1222 var B = {};
1223 // eslint-disable-next-line es/no-symbol -- safe
1224 var symbol = Symbol();
1225 var alphabet = 'abcdefghijklmnopqrst';
1226 A[symbol] = 7;
1227 alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1228 return $assign({}, A)[symbol] != 7 || objectKeys$2($assign({}, B)).join('') != alphabet;
1229 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1230 var T = toObject$5(target);
1231 var argumentsLength = arguments.length;
1232 var index = 1;
1233 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1234 var propertyIsEnumerable = propertyIsEnumerableModule.f;
1235 while (argumentsLength > index) {
1236 var S = IndexedObject$2(arguments[index++]);
1237 var keys = getOwnPropertySymbols ? concat$1(objectKeys$2(S), getOwnPropertySymbols(S)) : objectKeys$2(S);
1238 var length = keys.length;
1239 var j = 0;
1240 var key;
1241 while (length > j) {
1242 key = keys[j++];
1243 if (!DESCRIPTORS$3 || call$e(propertyIsEnumerable, S, key)) T[key] = S[key];
1244 }
1245 } return T;
1246 } : $assign;
1247
1248 var $$j = _export;
1249 var assign = objectAssign;
1250
1251 // `Object.assign` method
1252 // https://tc39.es/ecma262/#sec-object.assign
1253 // eslint-disable-next-line es/no-object-assign -- required for testing
1254 $$j({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1255 assign: assign
1256 });
1257
1258 var classofRaw$1 = classofRaw$2;
1259 var uncurryThis$i = functionUncurryThis;
1260
1261 var functionUncurryThisClause = function (fn) {
1262 // Nashorn bug:
1263 // https://github.com/zloirock/core-js/issues/1128
1264 // https://github.com/zloirock/core-js/issues/1130
1265 if (classofRaw$1(fn) === 'Function') return uncurryThis$i(fn);
1266 };
1267
1268 var uncurryThis$h = functionUncurryThisClause;
1269 var aCallable$7 = aCallable$9;
1270 var NATIVE_BIND$1 = functionBindNative;
1271
1272 var bind$5 = uncurryThis$h(uncurryThis$h.bind);
1273
1274 // optional / simple context binding
1275 var functionBindContext = function (fn, that) {
1276 aCallable$7(fn);
1277 return that === undefined ? fn : NATIVE_BIND$1 ? bind$5(fn, that) : function (/* ...args */) {
1278 return fn.apply(that, arguments);
1279 };
1280 };
1281
1282 var classof$8 = classofRaw$2;
1283
1284 // `IsArray` abstract operation
1285 // https://tc39.es/ecma262/#sec-isarray
1286 // eslint-disable-next-line es/no-array-isarray -- safe
1287 var isArray$2 = Array.isArray || function isArray(argument) {
1288 return classof$8(argument) == 'Array';
1289 };
1290
1291 var wellKnownSymbol$g = wellKnownSymbol$i;
1292
1293 var TO_STRING_TAG$2 = wellKnownSymbol$g('toStringTag');
1294 var test$1 = {};
1295
1296 test$1[TO_STRING_TAG$2] = 'z';
1297
1298 var toStringTagSupport = String(test$1) === '[object z]';
1299
1300 var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
1301 var isCallable$8 = isCallable$j;
1302 var classofRaw = classofRaw$2;
1303 var wellKnownSymbol$f = wellKnownSymbol$i;
1304
1305 var TO_STRING_TAG$1 = wellKnownSymbol$f('toStringTag');
1306 var $Object = Object;
1307
1308 // ES3 wrong here
1309 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1310
1311 // fallback for IE11 Script Access Denied error
1312 var tryGet = function (it, key) {
1313 try {
1314 return it[key];
1315 } catch (error) { /* empty */ }
1316 };
1317
1318 // getting tag from ES6+ `Object.prototype.toString`
1319 var classof$7 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
1320 var O, tag, result;
1321 return it === undefined ? 'Undefined' : it === null ? 'Null'
1322 // @@toStringTag case
1323 : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$1)) == 'string' ? tag
1324 // builtinTag case
1325 : CORRECT_ARGUMENTS ? classofRaw(O)
1326 // ES3 arguments fallback
1327 : (result = classofRaw(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
1328 };
1329
1330 var uncurryThis$g = functionUncurryThis;
1331 var fails$g = fails$q;
1332 var isCallable$7 = isCallable$j;
1333 var classof$6 = classof$7;
1334 var getBuiltIn$4 = getBuiltIn$7;
1335 var inspectSource$1 = inspectSource$3;
1336
1337 var noop = function () { /* empty */ };
1338 var empty = [];
1339 var construct = getBuiltIn$4('Reflect', 'construct');
1340 var constructorRegExp = /^\s*(?:class|function)\b/;
1341 var exec$3 = uncurryThis$g(constructorRegExp.exec);
1342 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1343
1344 var isConstructorModern = function isConstructor(argument) {
1345 if (!isCallable$7(argument)) return false;
1346 try {
1347 construct(noop, empty, argument);
1348 return true;
1349 } catch (error) {
1350 return false;
1351 }
1352 };
1353
1354 var isConstructorLegacy = function isConstructor(argument) {
1355 if (!isCallable$7(argument)) return false;
1356 switch (classof$6(argument)) {
1357 case 'AsyncFunction':
1358 case 'GeneratorFunction':
1359 case 'AsyncGeneratorFunction': return false;
1360 }
1361 try {
1362 // we can't check .prototype since constructors produced by .bind haven't it
1363 // `Function#toString` throws on some built-it function in some legacy engines
1364 // (for example, `DOMQuad` and similar in FF41-)
1365 return INCORRECT_TO_STRING || !!exec$3(constructorRegExp, inspectSource$1(argument));
1366 } catch (error) {
1367 return true;
1368 }
1369 };
1370
1371 isConstructorLegacy.sham = true;
1372
1373 // `IsConstructor` abstract operation
1374 // https://tc39.es/ecma262/#sec-isconstructor
1375 var isConstructor$2 = !construct || fails$g(function () {
1376 var called;
1377 return isConstructorModern(isConstructorModern.call)
1378 || !isConstructorModern(Object)
1379 || !isConstructorModern(function () { called = true; })
1380 || called;
1381 }) ? isConstructorLegacy : isConstructorModern;
1382
1383 var isArray$1 = isArray$2;
1384 var isConstructor$1 = isConstructor$2;
1385 var isObject$4 = isObject$a;
1386 var wellKnownSymbol$e = wellKnownSymbol$i;
1387
1388 var SPECIES$5 = wellKnownSymbol$e('species');
1389 var $Array$1 = Array;
1390
1391 // a part of `ArraySpeciesCreate` abstract operation
1392 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1393 var arraySpeciesConstructor$1 = function (originalArray) {
1394 var C;
1395 if (isArray$1(originalArray)) {
1396 C = originalArray.constructor;
1397 // cross-realm fallback
1398 if (isConstructor$1(C) && (C === $Array$1 || isArray$1(C.prototype))) C = undefined;
1399 else if (isObject$4(C)) {
1400 C = C[SPECIES$5];
1401 if (C === null) C = undefined;
1402 }
1403 } return C === undefined ? $Array$1 : C;
1404 };
1405
1406 var arraySpeciesConstructor = arraySpeciesConstructor$1;
1407
1408 // `ArraySpeciesCreate` abstract operation
1409 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1410 var arraySpeciesCreate$2 = function (originalArray, length) {
1411 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1412 };
1413
1414 var bind$4 = functionBindContext;
1415 var uncurryThis$f = functionUncurryThis;
1416 var IndexedObject$1 = indexedObject;
1417 var toObject$4 = toObject$7;
1418 var lengthOfArrayLike$4 = lengthOfArrayLike$6;
1419 var arraySpeciesCreate$1 = arraySpeciesCreate$2;
1420
1421 var push$4 = uncurryThis$f([].push);
1422
1423 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
1424 var createMethod$3 = function (TYPE) {
1425 var IS_MAP = TYPE == 1;
1426 var IS_FILTER = TYPE == 2;
1427 var IS_SOME = TYPE == 3;
1428 var IS_EVERY = TYPE == 4;
1429 var IS_FIND_INDEX = TYPE == 6;
1430 var IS_FILTER_REJECT = TYPE == 7;
1431 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1432 return function ($this, callbackfn, that, specificCreate) {
1433 var O = toObject$4($this);
1434 var self = IndexedObject$1(O);
1435 var boundFunction = bind$4(callbackfn, that);
1436 var length = lengthOfArrayLike$4(self);
1437 var index = 0;
1438 var create = specificCreate || arraySpeciesCreate$1;
1439 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
1440 var value, result;
1441 for (;length > index; index++) if (NO_HOLES || index in self) {
1442 value = self[index];
1443 result = boundFunction(value, index, O);
1444 if (TYPE) {
1445 if (IS_MAP) target[index] = result; // map
1446 else if (result) switch (TYPE) {
1447 case 3: return true; // some
1448 case 5: return value; // find
1449 case 6: return index; // findIndex
1450 case 2: push$4(target, value); // filter
1451 } else switch (TYPE) {
1452 case 4: return false; // every
1453 case 7: push$4(target, value); // filterReject
1454 }
1455 }
1456 }
1457 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
1458 };
1459 };
1460
1461 var arrayIteration = {
1462 // `Array.prototype.forEach` method
1463 // https://tc39.es/ecma262/#sec-array.prototype.foreach
1464 forEach: createMethod$3(0),
1465 // `Array.prototype.map` method
1466 // https://tc39.es/ecma262/#sec-array.prototype.map
1467 map: createMethod$3(1),
1468 // `Array.prototype.filter` method
1469 // https://tc39.es/ecma262/#sec-array.prototype.filter
1470 filter: createMethod$3(2),
1471 // `Array.prototype.some` method
1472 // https://tc39.es/ecma262/#sec-array.prototype.some
1473 some: createMethod$3(3),
1474 // `Array.prototype.every` method
1475 // https://tc39.es/ecma262/#sec-array.prototype.every
1476 every: createMethod$3(4),
1477 // `Array.prototype.find` method
1478 // https://tc39.es/ecma262/#sec-array.prototype.find
1479 find: createMethod$3(5),
1480 // `Array.prototype.findIndex` method
1481 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
1482 findIndex: createMethod$3(6),
1483 // `Array.prototype.filterReject` method
1484 // https://github.com/tc39/proposal-array-filtering
1485 filterReject: createMethod$3(7)
1486 };
1487
1488 var fails$f = fails$q;
1489 var wellKnownSymbol$d = wellKnownSymbol$i;
1490 var V8_VERSION$2 = engineV8Version;
1491
1492 var SPECIES$4 = wellKnownSymbol$d('species');
1493
1494 var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
1495 // We can't use this feature detection in V8 since it causes
1496 // deoptimization and serious performance degradation
1497 // https://github.com/zloirock/core-js/issues/677
1498 return V8_VERSION$2 >= 51 || !fails$f(function () {
1499 var array = [];
1500 var constructor = array.constructor = {};
1501 constructor[SPECIES$4] = function () {
1502 return { foo: 1 };
1503 };
1504 return array[METHOD_NAME](Boolean).foo !== 1;
1505 });
1506 };
1507
1508 var $$i = _export;
1509 var $filter = arrayIteration.filter;
1510 var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
1511
1512 var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('filter');
1513
1514 // `Array.prototype.filter` method
1515 // https://tc39.es/ecma262/#sec-array.prototype.filter
1516 // with adding support of @@species
1517 $$i({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
1518 filter: function filter(callbackfn /* , thisArg */) {
1519 return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1520 }
1521 });
1522
1523 var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
1524 var classof$5 = classof$7;
1525
1526 // `Object.prototype.toString` method implementation
1527 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1528 var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
1529 return '[object ' + classof$5(this) + ']';
1530 };
1531
1532 var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1533 var defineBuiltIn$4 = defineBuiltIn$6;
1534 var toString$a = objectToString;
1535
1536 // `Object.prototype.toString` method
1537 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1538 if (!TO_STRING_TAG_SUPPORT) {
1539 defineBuiltIn$4(Object.prototype, 'toString', toString$a, { unsafe: true });
1540 }
1541
1542 var $$h = _export;
1543 var toObject$3 = toObject$7;
1544 var nativeKeys = objectKeys$3;
1545 var fails$e = fails$q;
1546
1547 var FAILS_ON_PRIMITIVES = fails$e(function () { nativeKeys(1); });
1548
1549 // `Object.keys` method
1550 // https://tc39.es/ecma262/#sec-object.keys
1551 $$h({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
1552 keys: function keys(it) {
1553 return nativeKeys(toObject$3(it));
1554 }
1555 });
1556
1557 var $TypeError$a = TypeError;
1558 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1559
1560 var doesNotExceedSafeInteger$1 = function (it) {
1561 if (it > MAX_SAFE_INTEGER) throw $TypeError$a('Maximum allowed index exceeded');
1562 return it;
1563 };
1564
1565 var toPropertyKey = toPropertyKey$3;
1566 var definePropertyModule$1 = objectDefineProperty;
1567 var createPropertyDescriptor = createPropertyDescriptor$3;
1568
1569 var createProperty$2 = function (object, key, value) {
1570 var propertyKey = toPropertyKey(key);
1571 if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor(0, value));
1572 else object[propertyKey] = value;
1573 };
1574
1575 var $$g = _export;
1576 var fails$d = fails$q;
1577 var isArray = isArray$2;
1578 var isObject$3 = isObject$a;
1579 var toObject$2 = toObject$7;
1580 var lengthOfArrayLike$3 = lengthOfArrayLike$6;
1581 var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
1582 var createProperty$1 = createProperty$2;
1583 var arraySpeciesCreate = arraySpeciesCreate$2;
1584 var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$2;
1585 var wellKnownSymbol$c = wellKnownSymbol$i;
1586 var V8_VERSION$1 = engineV8Version;
1587
1588 var IS_CONCAT_SPREADABLE = wellKnownSymbol$c('isConcatSpreadable');
1589
1590 // We can't use this feature detection in V8 since it causes
1591 // deoptimization and serious performance degradation
1592 // https://github.com/zloirock/core-js/issues/679
1593 var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION$1 >= 51 || !fails$d(function () {
1594 var array = [];
1595 array[IS_CONCAT_SPREADABLE] = false;
1596 return array.concat()[0] !== array;
1597 });
1598
1599 var isConcatSpreadable = function (O) {
1600 if (!isObject$3(O)) return false;
1601 var spreadable = O[IS_CONCAT_SPREADABLE];
1602 return spreadable !== undefined ? !!spreadable : isArray(O);
1603 };
1604
1605 var FORCED$4 = !IS_CONCAT_SPREADABLE_SUPPORT || !arrayMethodHasSpeciesSupport('concat');
1606
1607 // `Array.prototype.concat` method
1608 // https://tc39.es/ecma262/#sec-array.prototype.concat
1609 // with adding support of @@isConcatSpreadable and @@species
1610 $$g({ target: 'Array', proto: true, arity: 1, forced: FORCED$4 }, {
1611 // eslint-disable-next-line no-unused-vars -- required for `.length`
1612 concat: function concat(arg) {
1613 var O = toObject$2(this);
1614 var A = arraySpeciesCreate(O, 0);
1615 var n = 0;
1616 var i, k, length, len, E;
1617 for (i = -1, length = arguments.length; i < length; i++) {
1618 E = i === -1 ? O : arguments[i];
1619 if (isConcatSpreadable(E)) {
1620 len = lengthOfArrayLike$3(E);
1621 doesNotExceedSafeInteger(n + len);
1622 for (k = 0; k < len; k++, n++) if (k in E) createProperty$1(A, n, E[k]);
1623 } else {
1624 doesNotExceedSafeInteger(n + 1);
1625 createProperty$1(A, n++, E);
1626 }
1627 }
1628 A.length = n;
1629 return A;
1630 }
1631 });
1632
1633 var objectDefineProperties = {};
1634
1635 var DESCRIPTORS$2 = descriptors;
1636 var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1637 var definePropertyModule = objectDefineProperty;
1638 var anObject$d = anObject$g;
1639 var toIndexedObject$2 = toIndexedObject$6;
1640 var objectKeys$1 = objectKeys$3;
1641
1642 // `Object.defineProperties` method
1643 // https://tc39.es/ecma262/#sec-object.defineproperties
1644 // eslint-disable-next-line es/no-object-defineproperties -- safe
1645 objectDefineProperties.f = DESCRIPTORS$2 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1646 anObject$d(O);
1647 var props = toIndexedObject$2(Properties);
1648 var keys = objectKeys$1(Properties);
1649 var length = keys.length;
1650 var index = 0;
1651 var key;
1652 while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1653 return O;
1654 };
1655
1656 var getBuiltIn$3 = getBuiltIn$7;
1657
1658 var html$2 = getBuiltIn$3('document', 'documentElement');
1659
1660 /* global ActiveXObject -- old IE, WSH */
1661
1662 var anObject$c = anObject$g;
1663 var definePropertiesModule = objectDefineProperties;
1664 var enumBugKeys = enumBugKeys$3;
1665 var hiddenKeys = hiddenKeys$4;
1666 var html$1 = html$2;
1667 var documentCreateElement$1 = documentCreateElement$2;
1668 var sharedKey = sharedKey$2;
1669
1670 var GT = '>';
1671 var LT = '<';
1672 var PROTOTYPE = 'prototype';
1673 var SCRIPT = 'script';
1674 var IE_PROTO = sharedKey('IE_PROTO');
1675
1676 var EmptyConstructor = function () { /* empty */ };
1677
1678 var scriptTag = function (content) {
1679 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1680 };
1681
1682 // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1683 var NullProtoObjectViaActiveX = function (activeXDocument) {
1684 activeXDocument.write(scriptTag(''));
1685 activeXDocument.close();
1686 var temp = activeXDocument.parentWindow.Object;
1687 activeXDocument = null; // avoid memory leak
1688 return temp;
1689 };
1690
1691 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1692 var NullProtoObjectViaIFrame = function () {
1693 // Thrash, waste and sodomy: IE GC bug
1694 var iframe = documentCreateElement$1('iframe');
1695 var JS = 'java' + SCRIPT + ':';
1696 var iframeDocument;
1697 iframe.style.display = 'none';
1698 html$1.appendChild(iframe);
1699 // https://github.com/zloirock/core-js/issues/475
1700 iframe.src = String(JS);
1701 iframeDocument = iframe.contentWindow.document;
1702 iframeDocument.open();
1703 iframeDocument.write(scriptTag('document.F=Object'));
1704 iframeDocument.close();
1705 return iframeDocument.F;
1706 };
1707
1708 // Check for document.domain and active x support
1709 // No need to use active x approach when document.domain is not set
1710 // see https://github.com/es-shims/es5-shim/issues/150
1711 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1712 // avoid IE GC bug
1713 var activeXDocument;
1714 var NullProtoObject = function () {
1715 try {
1716 activeXDocument = new ActiveXObject('htmlfile');
1717 } catch (error) { /* ignore */ }
1718 NullProtoObject = typeof document != 'undefined'
1719 ? document.domain && activeXDocument
1720 ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1721 : NullProtoObjectViaIFrame()
1722 : NullProtoObjectViaActiveX(activeXDocument); // WSH
1723 var length = enumBugKeys.length;
1724 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1725 return NullProtoObject();
1726 };
1727
1728 hiddenKeys[IE_PROTO] = true;
1729
1730 // `Object.create` method
1731 // https://tc39.es/ecma262/#sec-object.create
1732 // eslint-disable-next-line es/no-object-create -- safe
1733 var objectCreate = Object.create || function create(O, Properties) {
1734 var result;
1735 if (O !== null) {
1736 EmptyConstructor[PROTOTYPE] = anObject$c(O);
1737 result = new EmptyConstructor();
1738 EmptyConstructor[PROTOTYPE] = null;
1739 // add "__proto__" for Object.getPrototypeOf polyfill
1740 result[IE_PROTO] = O;
1741 } else result = NullProtoObject();
1742 return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1743 };
1744
1745 var wellKnownSymbol$b = wellKnownSymbol$i;
1746 var create$1 = objectCreate;
1747 var defineProperty$2 = objectDefineProperty.f;
1748
1749 var UNSCOPABLES = wellKnownSymbol$b('unscopables');
1750 var ArrayPrototype$1 = Array.prototype;
1751
1752 // Array.prototype[@@unscopables]
1753 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1754 if (ArrayPrototype$1[UNSCOPABLES] == undefined) {
1755 defineProperty$2(ArrayPrototype$1, UNSCOPABLES, {
1756 configurable: true,
1757 value: create$1(null)
1758 });
1759 }
1760
1761 // add a key to Array.prototype[@@unscopables]
1762 var addToUnscopables$2 = function (key) {
1763 ArrayPrototype$1[UNSCOPABLES][key] = true;
1764 };
1765
1766 var $$f = _export;
1767 var $includes = arrayIncludes.includes;
1768 var fails$c = fails$q;
1769 var addToUnscopables$1 = addToUnscopables$2;
1770
1771 // FF99+ bug
1772 var BROKEN_ON_SPARSE = fails$c(function () {
1773 // eslint-disable-next-line es/no-array-prototype-includes -- detection
1774 return !Array(1).includes();
1775 });
1776
1777 // `Array.prototype.includes` method
1778 // https://tc39.es/ecma262/#sec-array.prototype.includes
1779 $$f({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1780 includes: function includes(el /* , fromIndex = 0 */) {
1781 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1782 }
1783 });
1784
1785 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1786 addToUnscopables$1('includes');
1787
1788 var isObject$2 = isObject$a;
1789 var classof$4 = classofRaw$2;
1790 var wellKnownSymbol$a = wellKnownSymbol$i;
1791
1792 var MATCH$1 = wellKnownSymbol$a('match');
1793
1794 // `IsRegExp` abstract operation
1795 // https://tc39.es/ecma262/#sec-isregexp
1796 var isRegexp = function (it) {
1797 var isRegExp;
1798 return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$4(it) == 'RegExp');
1799 };
1800
1801 var isRegExp$1 = isRegexp;
1802
1803 var $TypeError$9 = TypeError;
1804
1805 var notARegexp = function (it) {
1806 if (isRegExp$1(it)) {
1807 throw $TypeError$9("The method doesn't accept regular expressions");
1808 } return it;
1809 };
1810
1811 var classof$3 = classof$7;
1812
1813 var $String$1 = String;
1814
1815 var toString$9 = function (argument) {
1816 if (classof$3(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1817 return $String$1(argument);
1818 };
1819
1820 var wellKnownSymbol$9 = wellKnownSymbol$i;
1821
1822 var MATCH = wellKnownSymbol$9('match');
1823
1824 var correctIsRegexpLogic = function (METHOD_NAME) {
1825 var regexp = /./;
1826 try {
1827 '/./'[METHOD_NAME](regexp);
1828 } catch (error1) {
1829 try {
1830 regexp[MATCH] = false;
1831 return '/./'[METHOD_NAME](regexp);
1832 } catch (error2) { /* empty */ }
1833 } return false;
1834 };
1835
1836 var $$e = _export;
1837 var uncurryThis$e = functionUncurryThis;
1838 var notARegExp = notARegexp;
1839 var requireObjectCoercible$5 = requireObjectCoercible$8;
1840 var toString$8 = toString$9;
1841 var correctIsRegExpLogic = correctIsRegexpLogic;
1842
1843 var stringIndexOf$1 = uncurryThis$e(''.indexOf);
1844
1845 // `String.prototype.includes` method
1846 // https://tc39.es/ecma262/#sec-string.prototype.includes
1847 $$e({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
1848 includes: function includes(searchString /* , position = 0 */) {
1849 return !!~stringIndexOf$1(
1850 toString$8(requireObjectCoercible$5(this)),
1851 toString$8(notARegExp(searchString)),
1852 arguments.length > 1 ? arguments[1] : undefined
1853 );
1854 }
1855 });
1856
1857 // iterable DOM collections
1858 // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1859 var domIterables = {
1860 CSSRuleList: 0,
1861 CSSStyleDeclaration: 0,
1862 CSSValueList: 0,
1863 ClientRectList: 0,
1864 DOMRectList: 0,
1865 DOMStringList: 0,
1866 DOMTokenList: 1,
1867 DataTransferItemList: 0,
1868 FileList: 0,
1869 HTMLAllCollection: 0,
1870 HTMLCollection: 0,
1871 HTMLFormElement: 0,
1872 HTMLSelectElement: 0,
1873 MediaList: 0,
1874 MimeTypeArray: 0,
1875 NamedNodeMap: 0,
1876 NodeList: 1,
1877 PaintRequestList: 0,
1878 Plugin: 0,
1879 PluginArray: 0,
1880 SVGLengthList: 0,
1881 SVGNumberList: 0,
1882 SVGPathSegList: 0,
1883 SVGPointList: 0,
1884 SVGStringList: 0,
1885 SVGTransformList: 0,
1886 SourceBufferList: 0,
1887 StyleSheetList: 0,
1888 TextTrackCueList: 0,
1889 TextTrackList: 0,
1890 TouchList: 0
1891 };
1892
1893 // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1894 var documentCreateElement = documentCreateElement$2;
1895
1896 var classList = documentCreateElement('span').classList;
1897 var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1898
1899 var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1900
1901 var fails$b = fails$q;
1902
1903 var arrayMethodIsStrict$4 = function (METHOD_NAME, argument) {
1904 var method = [][METHOD_NAME];
1905 return !!method && fails$b(function () {
1906 // eslint-disable-next-line no-useless-call -- required for testing
1907 method.call(null, argument || function () { return 1; }, 1);
1908 });
1909 };
1910
1911 var $forEach = arrayIteration.forEach;
1912 var arrayMethodIsStrict$3 = arrayMethodIsStrict$4;
1913
1914 var STRICT_METHOD$1 = arrayMethodIsStrict$3('forEach');
1915
1916 // `Array.prototype.forEach` method implementation
1917 // https://tc39.es/ecma262/#sec-array.prototype.foreach
1918 var arrayForEach = !STRICT_METHOD$1 ? function forEach(callbackfn /* , thisArg */) {
1919 return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1920 // eslint-disable-next-line es/no-array-prototype-foreach -- safe
1921 } : [].forEach;
1922
1923 var global$a = global$k;
1924 var DOMIterables = domIterables;
1925 var DOMTokenListPrototype = domTokenListPrototype;
1926 var forEach = arrayForEach;
1927 var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1928
1929 var handlePrototype = function (CollectionPrototype) {
1930 // some Chrome versions have non-configurable methods on DOMTokenList
1931 if (CollectionPrototype && CollectionPrototype.forEach !== forEach) try {
1932 createNonEnumerableProperty$1(CollectionPrototype, 'forEach', forEach);
1933 } catch (error) {
1934 CollectionPrototype.forEach = forEach;
1935 }
1936 };
1937
1938 for (var COLLECTION_NAME in DOMIterables) {
1939 if (DOMIterables[COLLECTION_NAME]) {
1940 handlePrototype(global$a[COLLECTION_NAME] && global$a[COLLECTION_NAME].prototype);
1941 }
1942 }
1943
1944 handlePrototype(DOMTokenListPrototype);
1945
1946 var anObject$b = anObject$g;
1947
1948 // `RegExp.prototype.flags` getter implementation
1949 // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1950 var regexpFlags$1 = function () {
1951 var that = anObject$b(this);
1952 var result = '';
1953 if (that.hasIndices) result += 'd';
1954 if (that.global) result += 'g';
1955 if (that.ignoreCase) result += 'i';
1956 if (that.multiline) result += 'm';
1957 if (that.dotAll) result += 's';
1958 if (that.unicode) result += 'u';
1959 if (that.unicodeSets) result += 'v';
1960 if (that.sticky) result += 'y';
1961 return result;
1962 };
1963
1964 var fails$a = fails$q;
1965 var global$9 = global$k;
1966
1967 // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1968 var $RegExp$2 = global$9.RegExp;
1969
1970 var UNSUPPORTED_Y$2 = fails$a(function () {
1971 var re = $RegExp$2('a', 'y');
1972 re.lastIndex = 2;
1973 return re.exec('abcd') != null;
1974 });
1975
1976 // UC Browser bug
1977 // https://github.com/zloirock/core-js/issues/1008
1978 var MISSED_STICKY = UNSUPPORTED_Y$2 || fails$a(function () {
1979 return !$RegExp$2('a', 'y').sticky;
1980 });
1981
1982 var BROKEN_CARET = UNSUPPORTED_Y$2 || fails$a(function () {
1983 // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1984 var re = $RegExp$2('^r', 'gy');
1985 re.lastIndex = 2;
1986 return re.exec('str') != null;
1987 });
1988
1989 var regexpStickyHelpers = {
1990 BROKEN_CARET: BROKEN_CARET,
1991 MISSED_STICKY: MISSED_STICKY,
1992 UNSUPPORTED_Y: UNSUPPORTED_Y$2
1993 };
1994
1995 var fails$9 = fails$q;
1996 var global$8 = global$k;
1997
1998 // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1999 var $RegExp$1 = global$8.RegExp;
2000
2001 var regexpUnsupportedDotAll = fails$9(function () {
2002 var re = $RegExp$1('.', 's');
2003 return !(re.dotAll && re.exec('\n') && re.flags === 's');
2004 });
2005
2006 var fails$8 = fails$q;
2007 var global$7 = global$k;
2008
2009 // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
2010 var $RegExp = global$7.RegExp;
2011
2012 var regexpUnsupportedNcg = fails$8(function () {
2013 var re = $RegExp('(?<a>b)', 'g');
2014 return re.exec('b').groups.a !== 'b' ||
2015 'b'.replace(re, '$<a>c') !== 'bc';
2016 });
2017
2018 /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
2019 /* eslint-disable regexp/no-useless-quantifier -- testing */
2020 var call$d = functionCall;
2021 var uncurryThis$d = functionUncurryThis;
2022 var toString$7 = toString$9;
2023 var regexpFlags = regexpFlags$1;
2024 var stickyHelpers$1 = regexpStickyHelpers;
2025 var shared = sharedExports;
2026 var create = objectCreate;
2027 var getInternalState = internalState.get;
2028 var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
2029 var UNSUPPORTED_NCG = regexpUnsupportedNcg;
2030
2031 var nativeReplace = shared('native-string-replace', String.prototype.replace);
2032 var nativeExec = RegExp.prototype.exec;
2033 var patchedExec = nativeExec;
2034 var charAt$3 = uncurryThis$d(''.charAt);
2035 var indexOf = uncurryThis$d(''.indexOf);
2036 var replace$2 = uncurryThis$d(''.replace);
2037 var stringSlice$4 = uncurryThis$d(''.slice);
2038
2039 var UPDATES_LAST_INDEX_WRONG = (function () {
2040 var re1 = /a/;
2041 var re2 = /b*/g;
2042 call$d(nativeExec, re1, 'a');
2043 call$d(nativeExec, re2, 'a');
2044 return re1.lastIndex !== 0 || re2.lastIndex !== 0;
2045 })();
2046
2047 var UNSUPPORTED_Y$1 = stickyHelpers$1.BROKEN_CARET;
2048
2049 // nonparticipating capturing group, copied from es5-shim's String#split patch.
2050 var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
2051
2052 var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1 || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
2053
2054 if (PATCH) {
2055 patchedExec = function exec(string) {
2056 var re = this;
2057 var state = getInternalState(re);
2058 var str = toString$7(string);
2059 var raw = state.raw;
2060 var result, reCopy, lastIndex, match, i, object, group;
2061
2062 if (raw) {
2063 raw.lastIndex = re.lastIndex;
2064 result = call$d(patchedExec, raw, str);
2065 re.lastIndex = raw.lastIndex;
2066 return result;
2067 }
2068
2069 var groups = state.groups;
2070 var sticky = UNSUPPORTED_Y$1 && re.sticky;
2071 var flags = call$d(regexpFlags, re);
2072 var source = re.source;
2073 var charsAdded = 0;
2074 var strCopy = str;
2075
2076 if (sticky) {
2077 flags = replace$2(flags, 'y', '');
2078 if (indexOf(flags, 'g') === -1) {
2079 flags += 'g';
2080 }
2081
2082 strCopy = stringSlice$4(str, re.lastIndex);
2083 // Support anchored sticky behavior.
2084 if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
2085 source = '(?: ' + source + ')';
2086 strCopy = ' ' + strCopy;
2087 charsAdded++;
2088 }
2089 // ^(? + rx + ) is needed, in combination with some str slicing, to
2090 // simulate the 'y' flag.
2091 reCopy = new RegExp('^(?:' + source + ')', flags);
2092 }
2093
2094 if (NPCG_INCLUDED) {
2095 reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
2096 }
2097 if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
2098
2099 match = call$d(nativeExec, sticky ? reCopy : re, strCopy);
2100
2101 if (sticky) {
2102 if (match) {
2103 match.input = stringSlice$4(match.input, charsAdded);
2104 match[0] = stringSlice$4(match[0], charsAdded);
2105 match.index = re.lastIndex;
2106 re.lastIndex += match[0].length;
2107 } else re.lastIndex = 0;
2108 } else if (UPDATES_LAST_INDEX_WRONG && match) {
2109 re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
2110 }
2111 if (NPCG_INCLUDED && match && match.length > 1) {
2112 // Fix browsers whose `exec` methods don't consistently return `undefined`
2113 // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
2114 call$d(nativeReplace, match[0], reCopy, function () {
2115 for (i = 1; i < arguments.length - 2; i++) {
2116 if (arguments[i] === undefined) match[i] = undefined;
2117 }
2118 });
2119 }
2120
2121 if (match && groups) {
2122 match.groups = object = create(null);
2123 for (i = 0; i < groups.length; i++) {
2124 group = groups[i];
2125 object[group[0]] = match[group[1]];
2126 }
2127 }
2128
2129 return match;
2130 };
2131 }
2132
2133 var regexpExec$3 = patchedExec;
2134
2135 var $$d = _export;
2136 var exec$2 = regexpExec$3;
2137
2138 // `RegExp.prototype.exec` method
2139 // https://tc39.es/ecma262/#sec-regexp.prototype.exec
2140 $$d({ target: 'RegExp', proto: true, forced: /./.exec !== exec$2 }, {
2141 exec: exec$2
2142 });
2143
2144 var NATIVE_BIND = functionBindNative;
2145
2146 var FunctionPrototype = Function.prototype;
2147 var apply$3 = FunctionPrototype.apply;
2148 var call$c = FunctionPrototype.call;
2149
2150 // eslint-disable-next-line es/no-reflect -- safe
2151 var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$c.bind(apply$3) : function () {
2152 return call$c.apply(apply$3, arguments);
2153 });
2154
2155 // TODO: Remove from `core-js@4` since it's moved to entry points
2156
2157 var uncurryThis$c = functionUncurryThisClause;
2158 var defineBuiltIn$3 = defineBuiltIn$6;
2159 var regexpExec$2 = regexpExec$3;
2160 var fails$7 = fails$q;
2161 var wellKnownSymbol$8 = wellKnownSymbol$i;
2162 var createNonEnumerableProperty = createNonEnumerableProperty$4;
2163
2164 var SPECIES$3 = wellKnownSymbol$8('species');
2165 var RegExpPrototype$2 = RegExp.prototype;
2166
2167 var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2168 var SYMBOL = wellKnownSymbol$8(KEY);
2169
2170 var DELEGATES_TO_SYMBOL = !fails$7(function () {
2171 // String methods call symbol-named RegEp methods
2172 var O = {};
2173 O[SYMBOL] = function () { return 7; };
2174 return ''[KEY](O) != 7;
2175 });
2176
2177 var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$7(function () {
2178 // Symbol-named RegExp methods call .exec
2179 var execCalled = false;
2180 var re = /a/;
2181
2182 if (KEY === 'split') {
2183 // We can't use real regex here since it causes deoptimization
2184 // and serious performance degradation in V8
2185 // https://github.com/zloirock/core-js/issues/306
2186 re = {};
2187 // RegExp[@@split] doesn't call the regex's exec method, but first creates
2188 // a new one. We need to return the patched regex when creating the new one.
2189 re.constructor = {};
2190 re.constructor[SPECIES$3] = function () { return re; };
2191 re.flags = '';
2192 re[SYMBOL] = /./[SYMBOL];
2193 }
2194
2195 re.exec = function () { execCalled = true; return null; };
2196
2197 re[SYMBOL]('');
2198 return !execCalled;
2199 });
2200
2201 if (
2202 !DELEGATES_TO_SYMBOL ||
2203 !DELEGATES_TO_EXEC ||
2204 FORCED
2205 ) {
2206 var uncurriedNativeRegExpMethod = uncurryThis$c(/./[SYMBOL]);
2207 var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
2208 var uncurriedNativeMethod = uncurryThis$c(nativeMethod);
2209 var $exec = regexp.exec;
2210 if ($exec === regexpExec$2 || $exec === RegExpPrototype$2.exec) {
2211 if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
2212 // The native String method already delegates to @@method (this
2213 // polyfilled function), leasing to infinite recursion.
2214 // We avoid it by directly calling the native @@method method.
2215 return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
2216 }
2217 return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
2218 }
2219 return { done: false };
2220 });
2221
2222 defineBuiltIn$3(String.prototype, KEY, methods[0]);
2223 defineBuiltIn$3(RegExpPrototype$2, SYMBOL, methods[1]);
2224 }
2225
2226 if (SHAM) createNonEnumerableProperty(RegExpPrototype$2[SYMBOL], 'sham', true);
2227 };
2228
2229 var isConstructor = isConstructor$2;
2230 var tryToString$3 = tryToString$5;
2231
2232 var $TypeError$8 = TypeError;
2233
2234 // `Assert: IsConstructor(argument) is true`
2235 var aConstructor$1 = function (argument) {
2236 if (isConstructor(argument)) return argument;
2237 throw $TypeError$8(tryToString$3(argument) + ' is not a constructor');
2238 };
2239
2240 var anObject$a = anObject$g;
2241 var aConstructor = aConstructor$1;
2242 var isNullOrUndefined$4 = isNullOrUndefined$7;
2243 var wellKnownSymbol$7 = wellKnownSymbol$i;
2244
2245 var SPECIES$2 = wellKnownSymbol$7('species');
2246
2247 // `SpeciesConstructor` abstract operation
2248 // https://tc39.es/ecma262/#sec-speciesconstructor
2249 var speciesConstructor$2 = function (O, defaultConstructor) {
2250 var C = anObject$a(O).constructor;
2251 var S;
2252 return C === undefined || isNullOrUndefined$4(S = anObject$a(C)[SPECIES$2]) ? defaultConstructor : aConstructor(S);
2253 };
2254
2255 var uncurryThis$b = functionUncurryThis;
2256 var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
2257 var toString$6 = toString$9;
2258 var requireObjectCoercible$4 = requireObjectCoercible$8;
2259
2260 var charAt$2 = uncurryThis$b(''.charAt);
2261 var charCodeAt = uncurryThis$b(''.charCodeAt);
2262 var stringSlice$3 = uncurryThis$b(''.slice);
2263
2264 var createMethod$2 = function (CONVERT_TO_STRING) {
2265 return function ($this, pos) {
2266 var S = toString$6(requireObjectCoercible$4($this));
2267 var position = toIntegerOrInfinity$1(pos);
2268 var size = S.length;
2269 var first, second;
2270 if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2271 first = charCodeAt(S, position);
2272 return first < 0xD800 || first > 0xDBFF || position + 1 === size
2273 || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
2274 ? CONVERT_TO_STRING
2275 ? charAt$2(S, position)
2276 : first
2277 : CONVERT_TO_STRING
2278 ? stringSlice$3(S, position, position + 2)
2279 : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2280 };
2281 };
2282
2283 var stringMultibyte = {
2284 // `String.prototype.codePointAt` method
2285 // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2286 codeAt: createMethod$2(false),
2287 // `String.prototype.at` method
2288 // https://github.com/mathiasbynens/String.prototype.at
2289 charAt: createMethod$2(true)
2290 };
2291
2292 var charAt$1 = stringMultibyte.charAt;
2293
2294 // `AdvanceStringIndex` abstract operation
2295 // https://tc39.es/ecma262/#sec-advancestringindex
2296 var advanceStringIndex$3 = function (S, index, unicode) {
2297 return index + (unicode ? charAt$1(S, index).length : 1);
2298 };
2299
2300 var toAbsoluteIndex = toAbsoluteIndex$2;
2301 var lengthOfArrayLike$2 = lengthOfArrayLike$6;
2302 var createProperty = createProperty$2;
2303
2304 var $Array = Array;
2305 var max$1 = Math.max;
2306
2307 var arraySliceSimple = function (O, start, end) {
2308 var length = lengthOfArrayLike$2(O);
2309 var k = toAbsoluteIndex(start, length);
2310 var fin = toAbsoluteIndex(end === undefined ? length : end, length);
2311 var result = $Array(max$1(fin - k, 0));
2312 for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
2313 result.length = n;
2314 return result;
2315 };
2316
2317 var call$b = functionCall;
2318 var anObject$9 = anObject$g;
2319 var isCallable$6 = isCallable$j;
2320 var classof$2 = classofRaw$2;
2321 var regexpExec$1 = regexpExec$3;
2322
2323 var $TypeError$7 = TypeError;
2324
2325 // `RegExpExec` abstract operation
2326 // https://tc39.es/ecma262/#sec-regexpexec
2327 var regexpExecAbstract = function (R, S) {
2328 var exec = R.exec;
2329 if (isCallable$6(exec)) {
2330 var result = call$b(exec, R, S);
2331 if (result !== null) anObject$9(result);
2332 return result;
2333 }
2334 if (classof$2(R) === 'RegExp') return call$b(regexpExec$1, R, S);
2335 throw $TypeError$7('RegExp#exec called on incompatible receiver');
2336 };
2337
2338 var apply$2 = functionApply;
2339 var call$a = functionCall;
2340 var uncurryThis$a = functionUncurryThis;
2341 var fixRegExpWellKnownSymbolLogic$2 = fixRegexpWellKnownSymbolLogic;
2342 var anObject$8 = anObject$g;
2343 var isNullOrUndefined$3 = isNullOrUndefined$7;
2344 var isRegExp = isRegexp;
2345 var requireObjectCoercible$3 = requireObjectCoercible$8;
2346 var speciesConstructor$1 = speciesConstructor$2;
2347 var advanceStringIndex$2 = advanceStringIndex$3;
2348 var toLength$2 = toLength$4;
2349 var toString$5 = toString$9;
2350 var getMethod$4 = getMethod$6;
2351 var arraySlice$3 = arraySliceSimple;
2352 var callRegExpExec = regexpExecAbstract;
2353 var regexpExec = regexpExec$3;
2354 var stickyHelpers = regexpStickyHelpers;
2355 var fails$6 = fails$q;
2356
2357 var UNSUPPORTED_Y = stickyHelpers.UNSUPPORTED_Y;
2358 var MAX_UINT32 = 0xFFFFFFFF;
2359 var min$1 = Math.min;
2360 var $push = [].push;
2361 var exec$1 = uncurryThis$a(/./.exec);
2362 var push$3 = uncurryThis$a($push);
2363 var stringSlice$2 = uncurryThis$a(''.slice);
2364
2365 // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
2366 // Weex JS has frozen built-in prototypes, so use try / catch wrapper
2367 var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails$6(function () {
2368 // eslint-disable-next-line regexp/no-empty-group -- required for testing
2369 var re = /(?:)/;
2370 var originalExec = re.exec;
2371 re.exec = function () { return originalExec.apply(this, arguments); };
2372 var result = 'ab'.split(re);
2373 return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
2374 });
2375
2376 // @@split logic
2377 fixRegExpWellKnownSymbolLogic$2('split', function (SPLIT, nativeSplit, maybeCallNative) {
2378 var internalSplit;
2379 if (
2380 'abbc'.split(/(b)*/)[1] == 'c' ||
2381 // eslint-disable-next-line regexp/no-empty-group -- required for testing
2382 'test'.split(/(?:)/, -1).length != 4 ||
2383 'ab'.split(/(?:ab)*/).length != 2 ||
2384 '.'.split(/(.?)(.?)/).length != 4 ||
2385 // eslint-disable-next-line regexp/no-empty-capturing-group, regexp/no-empty-group -- required for testing
2386 '.'.split(/()()/).length > 1 ||
2387 ''.split(/.?/).length
2388 ) {
2389 // based on es5-shim implementation, need to rework it
2390 internalSplit = function (separator, limit) {
2391 var string = toString$5(requireObjectCoercible$3(this));
2392 var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
2393 if (lim === 0) return [];
2394 if (separator === undefined) return [string];
2395 // If `separator` is not a regex, use native split
2396 if (!isRegExp(separator)) {
2397 return call$a(nativeSplit, string, separator, lim);
2398 }
2399 var output = [];
2400 var flags = (separator.ignoreCase ? 'i' : '') +
2401 (separator.multiline ? 'm' : '') +
2402 (separator.unicode ? 'u' : '') +
2403 (separator.sticky ? 'y' : '');
2404 var lastLastIndex = 0;
2405 // Make `global` and avoid `lastIndex` issues by working with a copy
2406 var separatorCopy = new RegExp(separator.source, flags + 'g');
2407 var match, lastIndex, lastLength;
2408 while (match = call$a(regexpExec, separatorCopy, string)) {
2409 lastIndex = separatorCopy.lastIndex;
2410 if (lastIndex > lastLastIndex) {
2411 push$3(output, stringSlice$2(string, lastLastIndex, match.index));
2412 if (match.length > 1 && match.index < string.length) apply$2($push, output, arraySlice$3(match, 1));
2413 lastLength = match[0].length;
2414 lastLastIndex = lastIndex;
2415 if (output.length >= lim) break;
2416 }
2417 if (separatorCopy.lastIndex === match.index) separatorCopy.lastIndex++; // Avoid an infinite loop
2418 }
2419 if (lastLastIndex === string.length) {
2420 if (lastLength || !exec$1(separatorCopy, '')) push$3(output, '');
2421 } else push$3(output, stringSlice$2(string, lastLastIndex));
2422 return output.length > lim ? arraySlice$3(output, 0, lim) : output;
2423 };
2424 // Chakra, V8
2425 } else if ('0'.split(undefined, 0).length) {
2426 internalSplit = function (separator, limit) {
2427 return separator === undefined && limit === 0 ? [] : call$a(nativeSplit, this, separator, limit);
2428 };
2429 } else internalSplit = nativeSplit;
2430
2431 return [
2432 // `String.prototype.split` method
2433 // https://tc39.es/ecma262/#sec-string.prototype.split
2434 function split(separator, limit) {
2435 var O = requireObjectCoercible$3(this);
2436 var splitter = isNullOrUndefined$3(separator) ? undefined : getMethod$4(separator, SPLIT);
2437 return splitter
2438 ? call$a(splitter, separator, O, limit)
2439 : call$a(internalSplit, toString$5(O), separator, limit);
2440 },
2441 // `RegExp.prototype[@@split]` method
2442 // https://tc39.es/ecma262/#sec-regexp.prototype-@@split
2443 //
2444 // NOTE: This cannot be properly polyfilled in engines that don't support
2445 // the 'y' flag.
2446 function (string, limit) {
2447 var rx = anObject$8(this);
2448 var S = toString$5(string);
2449 var res = maybeCallNative(internalSplit, rx, S, limit, internalSplit !== nativeSplit);
2450
2451 if (res.done) return res.value;
2452
2453 var C = speciesConstructor$1(rx, RegExp);
2454
2455 var unicodeMatching = rx.unicode;
2456 var flags = (rx.ignoreCase ? 'i' : '') +
2457 (rx.multiline ? 'm' : '') +
2458 (rx.unicode ? 'u' : '') +
2459 (UNSUPPORTED_Y ? 'g' : 'y');
2460
2461 // ^(? + rx + ) is needed, in combination with some S slicing, to
2462 // simulate the 'y' flag.
2463 var splitter = new C(UNSUPPORTED_Y ? '^(?:' + rx.source + ')' : rx, flags);
2464 var lim = limit === undefined ? MAX_UINT32 : limit >>> 0;
2465 if (lim === 0) return [];
2466 if (S.length === 0) return callRegExpExec(splitter, S) === null ? [S] : [];
2467 var p = 0;
2468 var q = 0;
2469 var A = [];
2470 while (q < S.length) {
2471 splitter.lastIndex = UNSUPPORTED_Y ? 0 : q;
2472 var z = callRegExpExec(splitter, UNSUPPORTED_Y ? stringSlice$2(S, q) : S);
2473 var e;
2474 if (
2475 z === null ||
2476 (e = min$1(toLength$2(splitter.lastIndex + (UNSUPPORTED_Y ? q : 0)), S.length)) === p
2477 ) {
2478 q = advanceStringIndex$2(S, q, unicodeMatching);
2479 } else {
2480 push$3(A, stringSlice$2(S, p, q));
2481 if (A.length === lim) return A;
2482 for (var i = 1; i <= z.length - 1; i++) {
2483 push$3(A, z[i]);
2484 if (A.length === lim) return A;
2485 }
2486 q = p = e;
2487 }
2488 }
2489 push$3(A, stringSlice$2(S, p));
2490 return A;
2491 }
2492 ];
2493 }, !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC, UNSUPPORTED_Y);
2494
2495 // a string of all valid unicode whitespaces
2496 var whitespaces$3 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
2497 '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
2498
2499 var uncurryThis$9 = functionUncurryThis;
2500 var requireObjectCoercible$2 = requireObjectCoercible$8;
2501 var toString$4 = toString$9;
2502 var whitespaces$2 = whitespaces$3;
2503
2504 var replace$1 = uncurryThis$9(''.replace);
2505 var ltrim = RegExp('^[' + whitespaces$2 + ']+');
2506 var rtrim = RegExp('(^|[^' + whitespaces$2 + '])[' + whitespaces$2 + ']+$');
2507
2508 // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
2509 var createMethod$1 = function (TYPE) {
2510 return function ($this) {
2511 var string = toString$4(requireObjectCoercible$2($this));
2512 if (TYPE & 1) string = replace$1(string, ltrim, '');
2513 if (TYPE & 2) string = replace$1(string, rtrim, '$1');
2514 return string;
2515 };
2516 };
2517
2518 var stringTrim = {
2519 // `String.prototype.{ trimLeft, trimStart }` methods
2520 // https://tc39.es/ecma262/#sec-string.prototype.trimstart
2521 start: createMethod$1(1),
2522 // `String.prototype.{ trimRight, trimEnd }` methods
2523 // https://tc39.es/ecma262/#sec-string.prototype.trimend
2524 end: createMethod$1(2),
2525 // `String.prototype.trim` method
2526 // https://tc39.es/ecma262/#sec-string.prototype.trim
2527 trim: createMethod$1(3)
2528 };
2529
2530 var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
2531 var fails$5 = fails$q;
2532 var whitespaces$1 = whitespaces$3;
2533
2534 var non = '\u200B\u0085\u180E';
2535
2536 // check that a method works with the correct list
2537 // of whitespaces and has a correct name
2538 var stringTrimForced = function (METHOD_NAME) {
2539 return fails$5(function () {
2540 return !!whitespaces$1[METHOD_NAME]()
2541 || non[METHOD_NAME]() !== non
2542 || (PROPER_FUNCTION_NAME$1 && whitespaces$1[METHOD_NAME].name !== METHOD_NAME);
2543 });
2544 };
2545
2546 var $$c = _export;
2547 var $trim = stringTrim.trim;
2548 var forcedStringTrimMethod = stringTrimForced;
2549
2550 // `String.prototype.trim` method
2551 // https://tc39.es/ecma262/#sec-string.prototype.trim
2552 $$c({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
2553 trim: function trim() {
2554 return $trim(this);
2555 }
2556 });
2557
2558 var DESCRIPTORS$1 = descriptors;
2559 var uncurryThis$8 = functionUncurryThis;
2560 var objectKeys = objectKeys$3;
2561 var toIndexedObject$1 = toIndexedObject$6;
2562 var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
2563
2564 var propertyIsEnumerable = uncurryThis$8($propertyIsEnumerable);
2565 var push$2 = uncurryThis$8([].push);
2566
2567 // `Object.{ entries, values }` methods implementation
2568 var createMethod = function (TO_ENTRIES) {
2569 return function (it) {
2570 var O = toIndexedObject$1(it);
2571 var keys = objectKeys(O);
2572 var length = keys.length;
2573 var i = 0;
2574 var result = [];
2575 var key;
2576 while (length > i) {
2577 key = keys[i++];
2578 if (!DESCRIPTORS$1 || propertyIsEnumerable(O, key)) {
2579 push$2(result, TO_ENTRIES ? [key, O[key]] : O[key]);
2580 }
2581 }
2582 return result;
2583 };
2584 };
2585
2586 var objectToArray = {
2587 // `Object.entries` method
2588 // https://tc39.es/ecma262/#sec-object.entries
2589 entries: createMethod(true),
2590 // `Object.values` method
2591 // https://tc39.es/ecma262/#sec-object.values
2592 values: createMethod(false)
2593 };
2594
2595 var $$b = _export;
2596 var $values = objectToArray.values;
2597
2598 // `Object.values` method
2599 // https://tc39.es/ecma262/#sec-object.values
2600 $$b({ target: 'Object', stat: true }, {
2601 values: function values(O) {
2602 return $values(O);
2603 }
2604 });
2605
2606 var call$9 = functionCall;
2607 var hasOwn$2 = hasOwnProperty_1;
2608 var isPrototypeOf$2 = objectIsPrototypeOf;
2609 var regExpFlags = regexpFlags$1;
2610
2611 var RegExpPrototype$1 = RegExp.prototype;
2612
2613 var regexpGetFlags = function (R) {
2614 var flags = R.flags;
2615 return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$2(R, 'flags') && isPrototypeOf$2(RegExpPrototype$1, R)
2616 ? call$9(regExpFlags, R) : flags;
2617 };
2618
2619 var PROPER_FUNCTION_NAME = functionName.PROPER;
2620 var defineBuiltIn$2 = defineBuiltIn$6;
2621 var anObject$7 = anObject$g;
2622 var $toString = toString$9;
2623 var fails$4 = fails$q;
2624 var getRegExpFlags = regexpGetFlags;
2625
2626 var TO_STRING = 'toString';
2627 var RegExpPrototype = RegExp.prototype;
2628 var nativeToString = RegExpPrototype[TO_STRING];
2629
2630 var NOT_GENERIC = fails$4(function () { return nativeToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
2631 // FF44- RegExp#toString has a wrong name
2632 var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name != TO_STRING;
2633
2634 // `RegExp.prototype.toString` method
2635 // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
2636 if (NOT_GENERIC || INCORRECT_NAME) {
2637 defineBuiltIn$2(RegExp.prototype, TO_STRING, function toString() {
2638 var R = anObject$7(this);
2639 var pattern = $toString(R.source);
2640 var flags = $toString(getRegExpFlags(R));
2641 return '/' + pattern + '/' + flags;
2642 }, { unsafe: true });
2643 }
2644
2645 /* eslint-disable es/no-array-prototype-indexof -- required for testing */
2646 var $$a = _export;
2647 var uncurryThis$7 = functionUncurryThisClause;
2648 var $indexOf = arrayIncludes.indexOf;
2649 var arrayMethodIsStrict$2 = arrayMethodIsStrict$4;
2650
2651 var nativeIndexOf = uncurryThis$7([].indexOf);
2652
2653 var NEGATIVE_ZERO = !!nativeIndexOf && 1 / nativeIndexOf([1], 1, -0) < 0;
2654 var FORCED$3 = NEGATIVE_ZERO || !arrayMethodIsStrict$2('indexOf');
2655
2656 // `Array.prototype.indexOf` method
2657 // https://tc39.es/ecma262/#sec-array.prototype.indexof
2658 $$a({ target: 'Array', proto: true, forced: FORCED$3 }, {
2659 indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
2660 var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
2661 return NEGATIVE_ZERO
2662 // convert -0 to +0
2663 ? nativeIndexOf(this, searchElement, fromIndex) || 0
2664 : $indexOf(this, searchElement, fromIndex);
2665 }
2666 });
2667
2668 var global$6 = global$k;
2669 var fails$3 = fails$q;
2670 var uncurryThis$6 = functionUncurryThis;
2671 var toString$3 = toString$9;
2672 var trim = stringTrim.trim;
2673 var whitespaces = whitespaces$3;
2674
2675 var $parseInt$1 = global$6.parseInt;
2676 var Symbol$1 = global$6.Symbol;
2677 var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
2678 var hex = /^[+-]?0x/i;
2679 var exec = uncurryThis$6(hex.exec);
2680 var FORCED$2 = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
2681 // MS Edge 18- broken with boxed symbols
2682 || (ITERATOR$3 && !fails$3(function () { $parseInt$1(Object(ITERATOR$3)); }));
2683
2684 // `parseInt` method
2685 // https://tc39.es/ecma262/#sec-parseint-string-radix
2686 var numberParseInt = FORCED$2 ? function parseInt(string, radix) {
2687 var S = trim(toString$3(string));
2688 return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
2689 } : $parseInt$1;
2690
2691 var $$9 = _export;
2692 var $parseInt = numberParseInt;
2693
2694 // `parseInt` method
2695 // https://tc39.es/ecma262/#sec-parseint-string-radix
2696 $$9({ global: true, forced: parseInt != $parseInt }, {
2697 parseInt: $parseInt
2698 });
2699
2700 var $$8 = _export;
2701 var $find = arrayIteration.find;
2702 var addToUnscopables = addToUnscopables$2;
2703
2704 var FIND = 'find';
2705 var SKIPS_HOLES = true;
2706
2707 // Shouldn't skip holes
2708 if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
2709
2710 // `Array.prototype.find` method
2711 // https://tc39.es/ecma262/#sec-array.prototype.find
2712 $$8({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
2713 find: function find(callbackfn /* , that = undefined */) {
2714 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
2715 }
2716 });
2717
2718 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2719 addToUnscopables(FIND);
2720
2721 var classof$1 = classofRaw$2;
2722
2723 var engineIsNode = typeof process != 'undefined' && classof$1(process) == 'process';
2724
2725 var uncurryThis$5 = functionUncurryThis;
2726 var aCallable$6 = aCallable$9;
2727
2728 var functionUncurryThisAccessor = function (object, key, method) {
2729 try {
2730 // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
2731 return uncurryThis$5(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
2732 } catch (error) { /* empty */ }
2733 };
2734
2735 var isCallable$5 = isCallable$j;
2736
2737 var $String = String;
2738 var $TypeError$6 = TypeError;
2739
2740 var aPossiblePrototype$1 = function (argument) {
2741 if (typeof argument == 'object' || isCallable$5(argument)) return argument;
2742 throw $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
2743 };
2744
2745 /* eslint-disable no-proto -- safe */
2746
2747 var uncurryThisAccessor = functionUncurryThisAccessor;
2748 var anObject$6 = anObject$g;
2749 var aPossiblePrototype = aPossiblePrototype$1;
2750
2751 // `Object.setPrototypeOf` method
2752 // https://tc39.es/ecma262/#sec-object.setprototypeof
2753 // Works with __proto__ only. Old v8 can't work with null proto objects.
2754 // eslint-disable-next-line es/no-object-setprototypeof -- safe
2755 var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
2756 var CORRECT_SETTER = false;
2757 var test = {};
2758 var setter;
2759 try {
2760 setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
2761 setter(test, []);
2762 CORRECT_SETTER = test instanceof Array;
2763 } catch (error) { /* empty */ }
2764 return function setPrototypeOf(O, proto) {
2765 anObject$6(O);
2766 aPossiblePrototype(proto);
2767 if (CORRECT_SETTER) setter(O, proto);
2768 else O.__proto__ = proto;
2769 return O;
2770 };
2771 }() : undefined);
2772
2773 var defineProperty$1 = objectDefineProperty.f;
2774 var hasOwn$1 = hasOwnProperty_1;
2775 var wellKnownSymbol$6 = wellKnownSymbol$i;
2776
2777 var TO_STRING_TAG = wellKnownSymbol$6('toStringTag');
2778
2779 var setToStringTag$1 = function (target, TAG, STATIC) {
2780 if (target && !STATIC) target = target.prototype;
2781 if (target && !hasOwn$1(target, TO_STRING_TAG)) {
2782 defineProperty$1(target, TO_STRING_TAG, { configurable: true, value: TAG });
2783 }
2784 };
2785
2786 var makeBuiltIn = makeBuiltInExports;
2787 var defineProperty = objectDefineProperty;
2788
2789 var defineBuiltInAccessor$1 = function (target, name, descriptor) {
2790 if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
2791 if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
2792 return defineProperty.f(target, name, descriptor);
2793 };
2794
2795 var getBuiltIn$2 = getBuiltIn$7;
2796 var defineBuiltInAccessor = defineBuiltInAccessor$1;
2797 var wellKnownSymbol$5 = wellKnownSymbol$i;
2798 var DESCRIPTORS = descriptors;
2799
2800 var SPECIES$1 = wellKnownSymbol$5('species');
2801
2802 var setSpecies$1 = function (CONSTRUCTOR_NAME) {
2803 var Constructor = getBuiltIn$2(CONSTRUCTOR_NAME);
2804
2805 if (DESCRIPTORS && Constructor && !Constructor[SPECIES$1]) {
2806 defineBuiltInAccessor(Constructor, SPECIES$1, {
2807 configurable: true,
2808 get: function () { return this; }
2809 });
2810 }
2811 };
2812
2813 var isPrototypeOf$1 = objectIsPrototypeOf;
2814
2815 var $TypeError$5 = TypeError;
2816
2817 var anInstance$1 = function (it, Prototype) {
2818 if (isPrototypeOf$1(Prototype, it)) return it;
2819 throw $TypeError$5('Incorrect invocation');
2820 };
2821
2822 var uncurryThis$4 = functionUncurryThis;
2823
2824 var arraySlice$2 = uncurryThis$4([].slice);
2825
2826 var $TypeError$4 = TypeError;
2827
2828 var validateArgumentsLength$1 = function (passed, required) {
2829 if (passed < required) throw $TypeError$4('Not enough arguments');
2830 return passed;
2831 };
2832
2833 var userAgent$4 = engineUserAgent;
2834
2835 // eslint-disable-next-line redos/no-vulnerable -- safe
2836 var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$4);
2837
2838 var global$5 = global$k;
2839 var apply$1 = functionApply;
2840 var bind$3 = functionBindContext;
2841 var isCallable$4 = isCallable$j;
2842 var hasOwn = hasOwnProperty_1;
2843 var fails$2 = fails$q;
2844 var html = html$2;
2845 var arraySlice$1 = arraySlice$2;
2846 var createElement = documentCreateElement$2;
2847 var validateArgumentsLength = validateArgumentsLength$1;
2848 var IS_IOS$1 = engineIsIos;
2849 var IS_NODE$3 = engineIsNode;
2850
2851 var set = global$5.setImmediate;
2852 var clear = global$5.clearImmediate;
2853 var process$3 = global$5.process;
2854 var Dispatch = global$5.Dispatch;
2855 var Function$1 = global$5.Function;
2856 var MessageChannel = global$5.MessageChannel;
2857 var String$1 = global$5.String;
2858 var counter = 0;
2859 var queue$2 = {};
2860 var ONREADYSTATECHANGE = 'onreadystatechange';
2861 var $location, defer, channel, port;
2862
2863 fails$2(function () {
2864 // Deno throws a ReferenceError on `location` access without `--location` flag
2865 $location = global$5.location;
2866 });
2867
2868 var run = function (id) {
2869 if (hasOwn(queue$2, id)) {
2870 var fn = queue$2[id];
2871 delete queue$2[id];
2872 fn();
2873 }
2874 };
2875
2876 var runner = function (id) {
2877 return function () {
2878 run(id);
2879 };
2880 };
2881
2882 var eventListener = function (event) {
2883 run(event.data);
2884 };
2885
2886 var globalPostMessageDefer = function (id) {
2887 // old engines have not location.origin
2888 global$5.postMessage(String$1(id), $location.protocol + '//' + $location.host);
2889 };
2890
2891 // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
2892 if (!set || !clear) {
2893 set = function setImmediate(handler) {
2894 validateArgumentsLength(arguments.length, 1);
2895 var fn = isCallable$4(handler) ? handler : Function$1(handler);
2896 var args = arraySlice$1(arguments, 1);
2897 queue$2[++counter] = function () {
2898 apply$1(fn, undefined, args);
2899 };
2900 defer(counter);
2901 return counter;
2902 };
2903 clear = function clearImmediate(id) {
2904 delete queue$2[id];
2905 };
2906 // Node.js 0.8-
2907 if (IS_NODE$3) {
2908 defer = function (id) {
2909 process$3.nextTick(runner(id));
2910 };
2911 // Sphere (JS game engine) Dispatch API
2912 } else if (Dispatch && Dispatch.now) {
2913 defer = function (id) {
2914 Dispatch.now(runner(id));
2915 };
2916 // Browsers with MessageChannel, includes WebWorkers
2917 // except iOS - https://github.com/zloirock/core-js/issues/624
2918 } else if (MessageChannel && !IS_IOS$1) {
2919 channel = new MessageChannel();
2920 port = channel.port2;
2921 channel.port1.onmessage = eventListener;
2922 defer = bind$3(port.postMessage, port);
2923 // Browsers with postMessage, skip WebWorkers
2924 // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
2925 } else if (
2926 global$5.addEventListener &&
2927 isCallable$4(global$5.postMessage) &&
2928 !global$5.importScripts &&
2929 $location && $location.protocol !== 'file:' &&
2930 !fails$2(globalPostMessageDefer)
2931 ) {
2932 defer = globalPostMessageDefer;
2933 global$5.addEventListener('message', eventListener, false);
2934 // IE8-
2935 } else if (ONREADYSTATECHANGE in createElement('script')) {
2936 defer = function (id) {
2937 html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
2938 html.removeChild(this);
2939 run(id);
2940 };
2941 };
2942 // Rest old browsers
2943 } else {
2944 defer = function (id) {
2945 setTimeout(runner(id), 0);
2946 };
2947 }
2948 }
2949
2950 var task$1 = {
2951 set: set,
2952 clear: clear
2953 };
2954
2955 var Queue$2 = function () {
2956 this.head = null;
2957 this.tail = null;
2958 };
2959
2960 Queue$2.prototype = {
2961 add: function (item) {
2962 var entry = { item: item, next: null };
2963 var tail = this.tail;
2964 if (tail) tail.next = entry;
2965 else this.head = entry;
2966 this.tail = entry;
2967 },
2968 get: function () {
2969 var entry = this.head;
2970 if (entry) {
2971 var next = this.head = entry.next;
2972 if (next === null) this.tail = null;
2973 return entry.item;
2974 }
2975 }
2976 };
2977
2978 var queue$1 = Queue$2;
2979
2980 var userAgent$3 = engineUserAgent;
2981
2982 var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$3) && typeof Pebble != 'undefined';
2983
2984 var userAgent$2 = engineUserAgent;
2985
2986 var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent$2);
2987
2988 var global$4 = global$k;
2989 var bind$2 = functionBindContext;
2990 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
2991 var macrotask = task$1.set;
2992 var Queue$1 = queue$1;
2993 var IS_IOS = engineIsIos;
2994 var IS_IOS_PEBBLE = engineIsIosPebble;
2995 var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
2996 var IS_NODE$2 = engineIsNode;
2997
2998 var MutationObserver = global$4.MutationObserver || global$4.WebKitMutationObserver;
2999 var document$2 = global$4.document;
3000 var process$2 = global$4.process;
3001 var Promise$1 = global$4.Promise;
3002 // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
3003 var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$4, 'queueMicrotask');
3004 var microtask$1 = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
3005 var notify$1, toggle, node, promise, then;
3006
3007 // modern engines have queueMicrotask method
3008 if (!microtask$1) {
3009 var queue = new Queue$1();
3010
3011 var flush = function () {
3012 var parent, fn;
3013 if (IS_NODE$2 && (parent = process$2.domain)) parent.exit();
3014 while (fn = queue.get()) try {
3015 fn();
3016 } catch (error) {
3017 if (queue.head) notify$1();
3018 throw error;
3019 }
3020 if (parent) parent.enter();
3021 };
3022
3023 // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
3024 // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
3025 if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
3026 toggle = true;
3027 node = document$2.createTextNode('');
3028 new MutationObserver(flush).observe(node, { characterData: true });
3029 notify$1 = function () {
3030 node.data = toggle = !toggle;
3031 };
3032 // environments with maybe non-completely correct, but existent Promise
3033 } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
3034 // Promise.resolve without an argument throws an error in LG WebOS 2
3035 promise = Promise$1.resolve(undefined);
3036 // workaround of WebKit ~ iOS Safari 10.1 bug
3037 promise.constructor = Promise$1;
3038 then = bind$2(promise.then, promise);
3039 notify$1 = function () {
3040 then(flush);
3041 };
3042 // Node.js without promises
3043 } else if (IS_NODE$2) {
3044 notify$1 = function () {
3045 process$2.nextTick(flush);
3046 };
3047 // for other environments - macrotask based on:
3048 // - setImmediate
3049 // - MessageChannel
3050 // - window.postMessage
3051 // - onreadystatechange
3052 // - setTimeout
3053 } else {
3054 // `webpack` dev server bug on IE global methods - use bind(fn, global)
3055 macrotask = bind$2(macrotask, global$4);
3056 notify$1 = function () {
3057 macrotask(flush);
3058 };
3059 }
3060
3061 microtask$1 = function (fn) {
3062 if (!queue.head) notify$1();
3063 queue.add(fn);
3064 };
3065 }
3066
3067 var microtask_1 = microtask$1;
3068
3069 var hostReportErrors$1 = function (a, b) {
3070 try {
3071 // eslint-disable-next-line no-console -- safe
3072 arguments.length == 1 ? console.error(a) : console.error(a, b);
3073 } catch (error) { /* empty */ }
3074 };
3075
3076 var perform$3 = function (exec) {
3077 try {
3078 return { error: false, value: exec() };
3079 } catch (error) {
3080 return { error: true, value: error };
3081 }
3082 };
3083
3084 var global$3 = global$k;
3085
3086 var promiseNativeConstructor = global$3.Promise;
3087
3088 /* global Deno -- Deno case */
3089
3090 var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
3091
3092 var IS_DENO$1 = engineIsDeno;
3093 var IS_NODE$1 = engineIsNode;
3094
3095 var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
3096 && typeof window == 'object'
3097 && typeof document == 'object';
3098
3099 var global$2 = global$k;
3100 var NativePromiseConstructor$3 = promiseNativeConstructor;
3101 var isCallable$3 = isCallable$j;
3102 var isForced = isForced_1;
3103 var inspectSource = inspectSource$3;
3104 var wellKnownSymbol$4 = wellKnownSymbol$i;
3105 var IS_BROWSER = engineIsBrowser;
3106 var IS_DENO = engineIsDeno;
3107 var V8_VERSION = engineV8Version;
3108
3109 NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
3110 var SPECIES = wellKnownSymbol$4('species');
3111 var SUBCLASSING = false;
3112 var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$3(global$2.PromiseRejectionEvent);
3113
3114 var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
3115 var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
3116 var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
3117 // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
3118 // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
3119 // We can't detect it synchronously, so just check versions
3120 if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
3121 // We can't use @@species feature detection in V8 since it causes
3122 // deoptimization and performance degradation
3123 // https://github.com/zloirock/core-js/issues/679
3124 if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
3125 // Detect correctness of subclassing with @@species support
3126 var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
3127 var FakePromise = function (exec) {
3128 exec(function () { /* empty */ }, function () { /* empty */ });
3129 };
3130 var constructor = promise.constructor = {};
3131 constructor[SPECIES] = FakePromise;
3132 SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
3133 if (!SUBCLASSING) return true;
3134 // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
3135 } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
3136 });
3137
3138 var promiseConstructorDetection = {
3139 CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
3140 REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
3141 SUBCLASSING: SUBCLASSING
3142 };
3143
3144 var newPromiseCapability$2 = {};
3145
3146 var aCallable$5 = aCallable$9;
3147
3148 var $TypeError$3 = TypeError;
3149
3150 var PromiseCapability = function (C) {
3151 var resolve, reject;
3152 this.promise = new C(function ($$resolve, $$reject) {
3153 if (resolve !== undefined || reject !== undefined) throw $TypeError$3('Bad Promise constructor');
3154 resolve = $$resolve;
3155 reject = $$reject;
3156 });
3157 this.resolve = aCallable$5(resolve);
3158 this.reject = aCallable$5(reject);
3159 };
3160
3161 // `NewPromiseCapability` abstract operation
3162 // https://tc39.es/ecma262/#sec-newpromisecapability
3163 newPromiseCapability$2.f = function (C) {
3164 return new PromiseCapability(C);
3165 };
3166
3167 var $$7 = _export;
3168 var IS_NODE = engineIsNode;
3169 var global$1 = global$k;
3170 var call$8 = functionCall;
3171 var defineBuiltIn$1 = defineBuiltIn$6;
3172 var setPrototypeOf = objectSetPrototypeOf;
3173 var setToStringTag = setToStringTag$1;
3174 var setSpecies = setSpecies$1;
3175 var aCallable$4 = aCallable$9;
3176 var isCallable$2 = isCallable$j;
3177 var isObject$1 = isObject$a;
3178 var anInstance = anInstance$1;
3179 var speciesConstructor = speciesConstructor$2;
3180 var task = task$1.set;
3181 var microtask = microtask_1;
3182 var hostReportErrors = hostReportErrors$1;
3183 var perform$2 = perform$3;
3184 var Queue = queue$1;
3185 var InternalStateModule = internalState;
3186 var NativePromiseConstructor$2 = promiseNativeConstructor;
3187 var PromiseConstructorDetection = promiseConstructorDetection;
3188 var newPromiseCapabilityModule$3 = newPromiseCapability$2;
3189
3190 var PROMISE = 'Promise';
3191 var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
3192 var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
3193 var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
3194 var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
3195 var setInternalState = InternalStateModule.set;
3196 var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
3197 var PromiseConstructor = NativePromiseConstructor$2;
3198 var PromisePrototype = NativePromisePrototype$1;
3199 var TypeError$1 = global$1.TypeError;
3200 var document$1 = global$1.document;
3201 var process$1 = global$1.process;
3202 var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
3203 var newGenericPromiseCapability = newPromiseCapability$1;
3204
3205 var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
3206 var UNHANDLED_REJECTION = 'unhandledrejection';
3207 var REJECTION_HANDLED = 'rejectionhandled';
3208 var PENDING = 0;
3209 var FULFILLED = 1;
3210 var REJECTED = 2;
3211 var HANDLED = 1;
3212 var UNHANDLED = 2;
3213
3214 var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
3215
3216 // helpers
3217 var isThenable = function (it) {
3218 var then;
3219 return isObject$1(it) && isCallable$2(then = it.then) ? then : false;
3220 };
3221
3222 var callReaction = function (reaction, state) {
3223 var value = state.value;
3224 var ok = state.state == FULFILLED;
3225 var handler = ok ? reaction.ok : reaction.fail;
3226 var resolve = reaction.resolve;
3227 var reject = reaction.reject;
3228 var domain = reaction.domain;
3229 var result, then, exited;
3230 try {
3231 if (handler) {
3232 if (!ok) {
3233 if (state.rejection === UNHANDLED) onHandleUnhandled(state);
3234 state.rejection = HANDLED;
3235 }
3236 if (handler === true) result = value;
3237 else {
3238 if (domain) domain.enter();
3239 result = handler(value); // can throw
3240 if (domain) {
3241 domain.exit();
3242 exited = true;
3243 }
3244 }
3245 if (result === reaction.promise) {
3246 reject(TypeError$1('Promise-chain cycle'));
3247 } else if (then = isThenable(result)) {
3248 call$8(then, result, resolve, reject);
3249 } else resolve(result);
3250 } else reject(value);
3251 } catch (error) {
3252 if (domain && !exited) domain.exit();
3253 reject(error);
3254 }
3255 };
3256
3257 var notify = function (state, isReject) {
3258 if (state.notified) return;
3259 state.notified = true;
3260 microtask(function () {
3261 var reactions = state.reactions;
3262 var reaction;
3263 while (reaction = reactions.get()) {
3264 callReaction(reaction, state);
3265 }
3266 state.notified = false;
3267 if (isReject && !state.rejection) onUnhandled(state);
3268 });
3269 };
3270
3271 var dispatchEvent = function (name, promise, reason) {
3272 var event, handler;
3273 if (DISPATCH_EVENT) {
3274 event = document$1.createEvent('Event');
3275 event.promise = promise;
3276 event.reason = reason;
3277 event.initEvent(name, false, true);
3278 global$1.dispatchEvent(event);
3279 } else event = { promise: promise, reason: reason };
3280 if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
3281 else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
3282 };
3283
3284 var onUnhandled = function (state) {
3285 call$8(task, global$1, function () {
3286 var promise = state.facade;
3287 var value = state.value;
3288 var IS_UNHANDLED = isUnhandled(state);
3289 var result;
3290 if (IS_UNHANDLED) {
3291 result = perform$2(function () {
3292 if (IS_NODE) {
3293 process$1.emit('unhandledRejection', value, promise);
3294 } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
3295 });
3296 // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
3297 state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
3298 if (result.error) throw result.value;
3299 }
3300 });
3301 };
3302
3303 var isUnhandled = function (state) {
3304 return state.rejection !== HANDLED && !state.parent;
3305 };
3306
3307 var onHandleUnhandled = function (state) {
3308 call$8(task, global$1, function () {
3309 var promise = state.facade;
3310 if (IS_NODE) {
3311 process$1.emit('rejectionHandled', promise);
3312 } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
3313 });
3314 };
3315
3316 var bind$1 = function (fn, state, unwrap) {
3317 return function (value) {
3318 fn(state, value, unwrap);
3319 };
3320 };
3321
3322 var internalReject = function (state, value, unwrap) {
3323 if (state.done) return;
3324 state.done = true;
3325 if (unwrap) state = unwrap;
3326 state.value = value;
3327 state.state = REJECTED;
3328 notify(state, true);
3329 };
3330
3331 var internalResolve = function (state, value, unwrap) {
3332 if (state.done) return;
3333 state.done = true;
3334 if (unwrap) state = unwrap;
3335 try {
3336 if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
3337 var then = isThenable(value);
3338 if (then) {
3339 microtask(function () {
3340 var wrapper = { done: false };
3341 try {
3342 call$8(then, value,
3343 bind$1(internalResolve, wrapper, state),
3344 bind$1(internalReject, wrapper, state)
3345 );
3346 } catch (error) {
3347 internalReject(wrapper, error, state);
3348 }
3349 });
3350 } else {
3351 state.value = value;
3352 state.state = FULFILLED;
3353 notify(state, false);
3354 }
3355 } catch (error) {
3356 internalReject({ done: false }, error, state);
3357 }
3358 };
3359
3360 // constructor polyfill
3361 if (FORCED_PROMISE_CONSTRUCTOR$4) {
3362 // 25.4.3.1 Promise(executor)
3363 PromiseConstructor = function Promise(executor) {
3364 anInstance(this, PromisePrototype);
3365 aCallable$4(executor);
3366 call$8(Internal, this);
3367 var state = getInternalPromiseState(this);
3368 try {
3369 executor(bind$1(internalResolve, state), bind$1(internalReject, state));
3370 } catch (error) {
3371 internalReject(state, error);
3372 }
3373 };
3374
3375 PromisePrototype = PromiseConstructor.prototype;
3376
3377 // eslint-disable-next-line no-unused-vars -- required for `.length`
3378 Internal = function Promise(executor) {
3379 setInternalState(this, {
3380 type: PROMISE,
3381 done: false,
3382 notified: false,
3383 parent: false,
3384 reactions: new Queue(),
3385 rejection: false,
3386 state: PENDING,
3387 value: undefined
3388 });
3389 };
3390
3391 // `Promise.prototype.then` method
3392 // https://tc39.es/ecma262/#sec-promise.prototype.then
3393 Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
3394 var state = getInternalPromiseState(this);
3395 var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
3396 state.parent = true;
3397 reaction.ok = isCallable$2(onFulfilled) ? onFulfilled : true;
3398 reaction.fail = isCallable$2(onRejected) && onRejected;
3399 reaction.domain = IS_NODE ? process$1.domain : undefined;
3400 if (state.state == PENDING) state.reactions.add(reaction);
3401 else microtask(function () {
3402 callReaction(reaction, state);
3403 });
3404 return reaction.promise;
3405 });
3406
3407 OwnPromiseCapability = function () {
3408 var promise = new Internal();
3409 var state = getInternalPromiseState(promise);
3410 this.promise = promise;
3411 this.resolve = bind$1(internalResolve, state);
3412 this.reject = bind$1(internalReject, state);
3413 };
3414
3415 newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
3416 return C === PromiseConstructor || C === PromiseWrapper
3417 ? new OwnPromiseCapability(C)
3418 : newGenericPromiseCapability(C);
3419 };
3420
3421 if (isCallable$2(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
3422 nativeThen = NativePromisePrototype$1.then;
3423
3424 if (!NATIVE_PROMISE_SUBCLASSING) {
3425 // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
3426 defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
3427 var that = this;
3428 return new PromiseConstructor(function (resolve, reject) {
3429 call$8(nativeThen, that, resolve, reject);
3430 }).then(onFulfilled, onRejected);
3431 // https://github.com/zloirock/core-js/issues/640
3432 }, { unsafe: true });
3433 }
3434
3435 // make `.constructor === Promise` work for native promise-based APIs
3436 try {
3437 delete NativePromisePrototype$1.constructor;
3438 } catch (error) { /* empty */ }
3439
3440 // make `instanceof Promise` work for native promise-based APIs
3441 if (setPrototypeOf) {
3442 setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
3443 }
3444 }
3445 }
3446
3447 $$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
3448 Promise: PromiseConstructor
3449 });
3450
3451 setToStringTag(PromiseConstructor, PROMISE, false);
3452 setSpecies(PROMISE);
3453
3454 var iterators = {};
3455
3456 var wellKnownSymbol$3 = wellKnownSymbol$i;
3457 var Iterators$1 = iterators;
3458
3459 var ITERATOR$2 = wellKnownSymbol$3('iterator');
3460 var ArrayPrototype = Array.prototype;
3461
3462 // check on default Array iterator
3463 var isArrayIteratorMethod$1 = function (it) {
3464 return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
3465 };
3466
3467 var classof = classof$7;
3468 var getMethod$3 = getMethod$6;
3469 var isNullOrUndefined$2 = isNullOrUndefined$7;
3470 var Iterators = iterators;
3471 var wellKnownSymbol$2 = wellKnownSymbol$i;
3472
3473 var ITERATOR$1 = wellKnownSymbol$2('iterator');
3474
3475 var getIteratorMethod$2 = function (it) {
3476 if (!isNullOrUndefined$2(it)) return getMethod$3(it, ITERATOR$1)
3477 || getMethod$3(it, '@@iterator')
3478 || Iterators[classof(it)];
3479 };
3480
3481 var call$7 = functionCall;
3482 var aCallable$3 = aCallable$9;
3483 var anObject$5 = anObject$g;
3484 var tryToString$2 = tryToString$5;
3485 var getIteratorMethod$1 = getIteratorMethod$2;
3486
3487 var $TypeError$2 = TypeError;
3488
3489 var getIterator$1 = function (argument, usingIterator) {
3490 var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
3491 if (aCallable$3(iteratorMethod)) return anObject$5(call$7(iteratorMethod, argument));
3492 throw $TypeError$2(tryToString$2(argument) + ' is not iterable');
3493 };
3494
3495 var call$6 = functionCall;
3496 var anObject$4 = anObject$g;
3497 var getMethod$2 = getMethod$6;
3498
3499 var iteratorClose$1 = function (iterator, kind, value) {
3500 var innerResult, innerError;
3501 anObject$4(iterator);
3502 try {
3503 innerResult = getMethod$2(iterator, 'return');
3504 if (!innerResult) {
3505 if (kind === 'throw') throw value;
3506 return value;
3507 }
3508 innerResult = call$6(innerResult, iterator);
3509 } catch (error) {
3510 innerError = true;
3511 innerResult = error;
3512 }
3513 if (kind === 'throw') throw value;
3514 if (innerError) throw innerResult;
3515 anObject$4(innerResult);
3516 return value;
3517 };
3518
3519 var bind = functionBindContext;
3520 var call$5 = functionCall;
3521 var anObject$3 = anObject$g;
3522 var tryToString$1 = tryToString$5;
3523 var isArrayIteratorMethod = isArrayIteratorMethod$1;
3524 var lengthOfArrayLike$1 = lengthOfArrayLike$6;
3525 var isPrototypeOf = objectIsPrototypeOf;
3526 var getIterator = getIterator$1;
3527 var getIteratorMethod = getIteratorMethod$2;
3528 var iteratorClose = iteratorClose$1;
3529
3530 var $TypeError$1 = TypeError;
3531
3532 var Result = function (stopped, result) {
3533 this.stopped = stopped;
3534 this.result = result;
3535 };
3536
3537 var ResultPrototype = Result.prototype;
3538
3539 var iterate$2 = function (iterable, unboundFunction, options) {
3540 var that = options && options.that;
3541 var AS_ENTRIES = !!(options && options.AS_ENTRIES);
3542 var IS_RECORD = !!(options && options.IS_RECORD);
3543 var IS_ITERATOR = !!(options && options.IS_ITERATOR);
3544 var INTERRUPTED = !!(options && options.INTERRUPTED);
3545 var fn = bind(unboundFunction, that);
3546 var iterator, iterFn, index, length, result, next, step;
3547
3548 var stop = function (condition) {
3549 if (iterator) iteratorClose(iterator, 'normal', condition);
3550 return new Result(true, condition);
3551 };
3552
3553 var callFn = function (value) {
3554 if (AS_ENTRIES) {
3555 anObject$3(value);
3556 return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
3557 } return INTERRUPTED ? fn(value, stop) : fn(value);
3558 };
3559
3560 if (IS_RECORD) {
3561 iterator = iterable.iterator;
3562 } else if (IS_ITERATOR) {
3563 iterator = iterable;
3564 } else {
3565 iterFn = getIteratorMethod(iterable);
3566 if (!iterFn) throw $TypeError$1(tryToString$1(iterable) + ' is not iterable');
3567 // optimisation for array iterators
3568 if (isArrayIteratorMethod(iterFn)) {
3569 for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
3570 result = callFn(iterable[index]);
3571 if (result && isPrototypeOf(ResultPrototype, result)) return result;
3572 } return new Result(false);
3573 }
3574 iterator = getIterator(iterable, iterFn);
3575 }
3576
3577 next = IS_RECORD ? iterable.next : iterator.next;
3578 while (!(step = call$5(next, iterator)).done) {
3579 try {
3580 result = callFn(step.value);
3581 } catch (error) {
3582 iteratorClose(iterator, 'throw', error);
3583 }
3584 if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
3585 } return new Result(false);
3586 };
3587
3588 var wellKnownSymbol$1 = wellKnownSymbol$i;
3589
3590 var ITERATOR = wellKnownSymbol$1('iterator');
3591 var SAFE_CLOSING = false;
3592
3593 try {
3594 var called = 0;
3595 var iteratorWithReturn = {
3596 next: function () {
3597 return { done: !!called++ };
3598 },
3599 'return': function () {
3600 SAFE_CLOSING = true;
3601 }
3602 };
3603 iteratorWithReturn[ITERATOR] = function () {
3604 return this;
3605 };
3606 // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
3607 Array.from(iteratorWithReturn, function () { throw 2; });
3608 } catch (error) { /* empty */ }
3609
3610 var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
3611 if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
3612 var ITERATION_SUPPORT = false;
3613 try {
3614 var object = {};
3615 object[ITERATOR] = function () {
3616 return {
3617 next: function () {
3618 return { done: ITERATION_SUPPORT = true };
3619 }
3620 };
3621 };
3622 exec(object);
3623 } catch (error) { /* empty */ }
3624 return ITERATION_SUPPORT;
3625 };
3626
3627 var NativePromiseConstructor$1 = promiseNativeConstructor;
3628 var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
3629 var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
3630
3631 var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
3632 NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
3633 });
3634
3635 var $$6 = _export;
3636 var call$4 = functionCall;
3637 var aCallable$2 = aCallable$9;
3638 var newPromiseCapabilityModule$2 = newPromiseCapability$2;
3639 var perform$1 = perform$3;
3640 var iterate$1 = iterate$2;
3641 var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
3642
3643 // `Promise.all` method
3644 // https://tc39.es/ecma262/#sec-promise.all
3645 $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
3646 all: function all(iterable) {
3647 var C = this;
3648 var capability = newPromiseCapabilityModule$2.f(C);
3649 var resolve = capability.resolve;
3650 var reject = capability.reject;
3651 var result = perform$1(function () {
3652 var $promiseResolve = aCallable$2(C.resolve);
3653 var values = [];
3654 var counter = 0;
3655 var remaining = 1;
3656 iterate$1(iterable, function (promise) {
3657 var index = counter++;
3658 var alreadyCalled = false;
3659 remaining++;
3660 call$4($promiseResolve, C, promise).then(function (value) {
3661 if (alreadyCalled) return;
3662 alreadyCalled = true;
3663 values[index] = value;
3664 --remaining || resolve(values);
3665 }, reject);
3666 });
3667 --remaining || resolve(values);
3668 });
3669 if (result.error) reject(result.value);
3670 return capability.promise;
3671 }
3672 });
3673
3674 var $$5 = _export;
3675 var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
3676 var NativePromiseConstructor = promiseNativeConstructor;
3677 var getBuiltIn$1 = getBuiltIn$7;
3678 var isCallable$1 = isCallable$j;
3679 var defineBuiltIn = defineBuiltIn$6;
3680
3681 var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
3682
3683 // `Promise.prototype.catch` method
3684 // https://tc39.es/ecma262/#sec-promise.prototype.catch
3685 $$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
3686 'catch': function (onRejected) {
3687 return this.then(undefined, onRejected);
3688 }
3689 });
3690
3691 // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
3692 if (isCallable$1(NativePromiseConstructor)) {
3693 var method = getBuiltIn$1('Promise').prototype['catch'];
3694 if (NativePromisePrototype['catch'] !== method) {
3695 defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
3696 }
3697 }
3698
3699 var $$4 = _export;
3700 var call$3 = functionCall;
3701 var aCallable$1 = aCallable$9;
3702 var newPromiseCapabilityModule$1 = newPromiseCapability$2;
3703 var perform = perform$3;
3704 var iterate = iterate$2;
3705 var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
3706
3707 // `Promise.race` method
3708 // https://tc39.es/ecma262/#sec-promise.race
3709 $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
3710 race: function race(iterable) {
3711 var C = this;
3712 var capability = newPromiseCapabilityModule$1.f(C);
3713 var reject = capability.reject;
3714 var result = perform(function () {
3715 var $promiseResolve = aCallable$1(C.resolve);
3716 iterate(iterable, function (promise) {
3717 call$3($promiseResolve, C, promise).then(capability.resolve, reject);
3718 });
3719 });
3720 if (result.error) reject(result.value);
3721 return capability.promise;
3722 }
3723 });
3724
3725 var $$3 = _export;
3726 var call$2 = functionCall;
3727 var newPromiseCapabilityModule = newPromiseCapability$2;
3728 var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
3729
3730 // `Promise.reject` method
3731 // https://tc39.es/ecma262/#sec-promise.reject
3732 $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
3733 reject: function reject(r) {
3734 var capability = newPromiseCapabilityModule.f(this);
3735 call$2(capability.reject, undefined, r);
3736 return capability.promise;
3737 }
3738 });
3739
3740 var anObject$2 = anObject$g;
3741 var isObject = isObject$a;
3742 var newPromiseCapability = newPromiseCapability$2;
3743
3744 var promiseResolve$1 = function (C, x) {
3745 anObject$2(C);
3746 if (isObject(x) && x.constructor === C) return x;
3747 var promiseCapability = newPromiseCapability.f(C);
3748 var resolve = promiseCapability.resolve;
3749 resolve(x);
3750 return promiseCapability.promise;
3751 };
3752
3753 var $$2 = _export;
3754 var getBuiltIn = getBuiltIn$7;
3755 var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
3756 var promiseResolve = promiseResolve$1;
3757
3758 getBuiltIn('Promise');
3759
3760 // `Promise.resolve` method
3761 // https://tc39.es/ecma262/#sec-promise.resolve
3762 $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
3763 resolve: function resolve(x) {
3764 return promiseResolve(this, x);
3765 }
3766 });
3767
3768 var tryToString = tryToString$5;
3769
3770 var $TypeError = TypeError;
3771
3772 var deletePropertyOrThrow$1 = function (O, P) {
3773 if (!delete O[P]) throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
3774 };
3775
3776 var arraySlice = arraySliceSimple;
3777
3778 var floor$1 = Math.floor;
3779
3780 var mergeSort = function (array, comparefn) {
3781 var length = array.length;
3782 var middle = floor$1(length / 2);
3783 return length < 8 ? insertionSort(array, comparefn) : merge(
3784 array,
3785 mergeSort(arraySlice(array, 0, middle), comparefn),
3786 mergeSort(arraySlice(array, middle), comparefn),
3787 comparefn
3788 );
3789 };
3790
3791 var insertionSort = function (array, comparefn) {
3792 var length = array.length;
3793 var i = 1;
3794 var element, j;
3795
3796 while (i < length) {
3797 j = i;
3798 element = array[i];
3799 while (j && comparefn(array[j - 1], element) > 0) {
3800 array[j] = array[--j];
3801 }
3802 if (j !== i++) array[j] = element;
3803 } return array;
3804 };
3805
3806 var merge = function (array, left, right, comparefn) {
3807 var llength = left.length;
3808 var rlength = right.length;
3809 var lindex = 0;
3810 var rindex = 0;
3811
3812 while (lindex < llength || rindex < rlength) {
3813 array[lindex + rindex] = (lindex < llength && rindex < rlength)
3814 ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
3815 : lindex < llength ? left[lindex++] : right[rindex++];
3816 } return array;
3817 };
3818
3819 var arraySort = mergeSort;
3820
3821 var userAgent$1 = engineUserAgent;
3822
3823 var firefox = userAgent$1.match(/firefox\/(\d+)/i);
3824
3825 var engineFfVersion = !!firefox && +firefox[1];
3826
3827 var UA = engineUserAgent;
3828
3829 var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
3830
3831 var userAgent = engineUserAgent;
3832
3833 var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
3834
3835 var engineWebkitVersion = !!webkit && +webkit[1];
3836
3837 var $$1 = _export;
3838 var uncurryThis$3 = functionUncurryThis;
3839 var aCallable = aCallable$9;
3840 var toObject$1 = toObject$7;
3841 var lengthOfArrayLike = lengthOfArrayLike$6;
3842 var deletePropertyOrThrow = deletePropertyOrThrow$1;
3843 var toString$2 = toString$9;
3844 var fails$1 = fails$q;
3845 var internalSort = arraySort;
3846 var arrayMethodIsStrict$1 = arrayMethodIsStrict$4;
3847 var FF = engineFfVersion;
3848 var IE_OR_EDGE = engineIsIeOrEdge;
3849 var V8 = engineV8Version;
3850 var WEBKIT = engineWebkitVersion;
3851
3852 var test = [];
3853 var nativeSort = uncurryThis$3(test.sort);
3854 var push$1 = uncurryThis$3(test.push);
3855
3856 // IE8-
3857 var FAILS_ON_UNDEFINED = fails$1(function () {
3858 test.sort(undefined);
3859 });
3860 // V8 bug
3861 var FAILS_ON_NULL = fails$1(function () {
3862 test.sort(null);
3863 });
3864 // Old WebKit
3865 var STRICT_METHOD = arrayMethodIsStrict$1('sort');
3866
3867 var STABLE_SORT = !fails$1(function () {
3868 // feature detection can be too slow, so check engines versions
3869 if (V8) return V8 < 70;
3870 if (FF && FF > 3) return;
3871 if (IE_OR_EDGE) return true;
3872 if (WEBKIT) return WEBKIT < 603;
3873
3874 var result = '';
3875 var code, chr, value, index;
3876
3877 // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
3878 for (code = 65; code < 76; code++) {
3879 chr = String.fromCharCode(code);
3880
3881 switch (code) {
3882 case 66: case 69: case 70: case 72: value = 3; break;
3883 case 68: case 71: value = 4; break;
3884 default: value = 2;
3885 }
3886
3887 for (index = 0; index < 47; index++) {
3888 test.push({ k: chr + index, v: value });
3889 }
3890 }
3891
3892 test.sort(function (a, b) { return b.v - a.v; });
3893
3894 for (index = 0; index < test.length; index++) {
3895 chr = test[index].k.charAt(0);
3896 if (result.charAt(result.length - 1) !== chr) result += chr;
3897 }
3898
3899 return result !== 'DGBEFHACIJK';
3900 });
3901
3902 var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD || !STABLE_SORT;
3903
3904 var getSortCompare = function (comparefn) {
3905 return function (x, y) {
3906 if (y === undefined) return -1;
3907 if (x === undefined) return 1;
3908 if (comparefn !== undefined) return +comparefn(x, y) || 0;
3909 return toString$2(x) > toString$2(y) ? 1 : -1;
3910 };
3911 };
3912
3913 // `Array.prototype.sort` method
3914 // https://tc39.es/ecma262/#sec-array.prototype.sort
3915 $$1({ target: 'Array', proto: true, forced: FORCED$1 }, {
3916 sort: function sort(comparefn) {
3917 if (comparefn !== undefined) aCallable(comparefn);
3918
3919 var array = toObject$1(this);
3920
3921 if (STABLE_SORT) return comparefn === undefined ? nativeSort(array) : nativeSort(array, comparefn);
3922
3923 var items = [];
3924 var arrayLength = lengthOfArrayLike(array);
3925 var itemsLength, index;
3926
3927 for (index = 0; index < arrayLength; index++) {
3928 if (index in array) push$1(items, array[index]);
3929 }
3930
3931 internalSort(items, getSortCompare(comparefn));
3932
3933 itemsLength = lengthOfArrayLike(items);
3934 index = 0;
3935
3936 while (index < itemsLength) array[index] = items[index++];
3937 while (index < arrayLength) deletePropertyOrThrow(array, index++);
3938
3939 return array;
3940 }
3941 });
3942
3943 var uncurryThis$2 = functionUncurryThis;
3944 var toObject = toObject$7;
3945
3946 var floor = Math.floor;
3947 var charAt = uncurryThis$2(''.charAt);
3948 var replace = uncurryThis$2(''.replace);
3949 var stringSlice$1 = uncurryThis$2(''.slice);
3950 // eslint-disable-next-line redos/no-vulnerable -- safe
3951 var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
3952 var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
3953
3954 // `GetSubstitution` abstract operation
3955 // https://tc39.es/ecma262/#sec-getsubstitution
3956 var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
3957 var tailPos = position + matched.length;
3958 var m = captures.length;
3959 var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
3960 if (namedCaptures !== undefined) {
3961 namedCaptures = toObject(namedCaptures);
3962 symbols = SUBSTITUTION_SYMBOLS;
3963 }
3964 return replace(replacement, symbols, function (match, ch) {
3965 var capture;
3966 switch (charAt(ch, 0)) {
3967 case '$': return '$';
3968 case '&': return matched;
3969 case '`': return stringSlice$1(str, 0, position);
3970 case "'": return stringSlice$1(str, tailPos);
3971 case '<':
3972 capture = namedCaptures[stringSlice$1(ch, 1, -1)];
3973 break;
3974 default: // \d\d?
3975 var n = +ch;
3976 if (n === 0) return match;
3977 if (n > m) {
3978 var f = floor(n / 10);
3979 if (f === 0) return match;
3980 if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
3981 return match;
3982 }
3983 capture = captures[n - 1];
3984 }
3985 return capture === undefined ? '' : capture;
3986 });
3987 };
3988
3989 var apply = functionApply;
3990 var call$1 = functionCall;
3991 var uncurryThis$1 = functionUncurryThis;
3992 var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
3993 var fails = fails$q;
3994 var anObject$1 = anObject$g;
3995 var isCallable = isCallable$j;
3996 var isNullOrUndefined$1 = isNullOrUndefined$7;
3997 var toIntegerOrInfinity = toIntegerOrInfinity$4;
3998 var toLength$1 = toLength$4;
3999 var toString$1 = toString$9;
4000 var requireObjectCoercible$1 = requireObjectCoercible$8;
4001 var advanceStringIndex$1 = advanceStringIndex$3;
4002 var getMethod$1 = getMethod$6;
4003 var getSubstitution = getSubstitution$1;
4004 var regExpExec$1 = regexpExecAbstract;
4005 var wellKnownSymbol = wellKnownSymbol$i;
4006
4007 var REPLACE = wellKnownSymbol('replace');
4008 var max = Math.max;
4009 var min = Math.min;
4010 var concat = uncurryThis$1([].concat);
4011 var push = uncurryThis$1([].push);
4012 var stringIndexOf = uncurryThis$1(''.indexOf);
4013 var stringSlice = uncurryThis$1(''.slice);
4014
4015 var maybeToString = function (it) {
4016 return it === undefined ? it : String(it);
4017 };
4018
4019 // IE <= 11 replaces $0 with the whole match, as if it was $&
4020 // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
4021 var REPLACE_KEEPS_$0 = (function () {
4022 // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
4023 return 'a'.replace(/./, '$0') === '$0';
4024 })();
4025
4026 // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
4027 var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
4028 if (/./[REPLACE]) {
4029 return /./[REPLACE]('a', '$0') === '';
4030 }
4031 return false;
4032 })();
4033
4034 var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
4035 var re = /./;
4036 re.exec = function () {
4037 var result = [];
4038 result.groups = { a: '7' };
4039 return result;
4040 };
4041 // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
4042 return ''.replace(re, '$<a>') !== '7';
4043 });
4044
4045 // @@replace logic
4046 fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCallNative) {
4047 var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
4048
4049 return [
4050 // `String.prototype.replace` method
4051 // https://tc39.es/ecma262/#sec-string.prototype.replace
4052 function replace(searchValue, replaceValue) {
4053 var O = requireObjectCoercible$1(this);
4054 var replacer = isNullOrUndefined$1(searchValue) ? undefined : getMethod$1(searchValue, REPLACE);
4055 return replacer
4056 ? call$1(replacer, searchValue, O, replaceValue)
4057 : call$1(nativeReplace, toString$1(O), searchValue, replaceValue);
4058 },
4059 // `RegExp.prototype[@@replace]` method
4060 // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
4061 function (string, replaceValue) {
4062 var rx = anObject$1(this);
4063 var S = toString$1(string);
4064
4065 if (
4066 typeof replaceValue == 'string' &&
4067 stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
4068 stringIndexOf(replaceValue, '$<') === -1
4069 ) {
4070 var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
4071 if (res.done) return res.value;
4072 }
4073
4074 var functionalReplace = isCallable(replaceValue);
4075 if (!functionalReplace) replaceValue = toString$1(replaceValue);
4076
4077 var global = rx.global;
4078 if (global) {
4079 var fullUnicode = rx.unicode;
4080 rx.lastIndex = 0;
4081 }
4082 var results = [];
4083 while (true) {
4084 var result = regExpExec$1(rx, S);
4085 if (result === null) break;
4086
4087 push(results, result);
4088 if (!global) break;
4089
4090 var matchStr = toString$1(result[0]);
4091 if (matchStr === '') rx.lastIndex = advanceStringIndex$1(S, toLength$1(rx.lastIndex), fullUnicode);
4092 }
4093
4094 var accumulatedResult = '';
4095 var nextSourcePosition = 0;
4096 for (var i = 0; i < results.length; i++) {
4097 result = results[i];
4098
4099 var matched = toString$1(result[0]);
4100 var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
4101 var captures = [];
4102 // NOTE: This is equivalent to
4103 // captures = result.slice(1).map(maybeToString)
4104 // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
4105 // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
4106 // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
4107 for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
4108 var namedCaptures = result.groups;
4109 if (functionalReplace) {
4110 var replacerArgs = concat([matched], captures, position, S);
4111 if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
4112 var replacement = toString$1(apply(replaceValue, undefined, replacerArgs));
4113 } else {
4114 replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
4115 }
4116 if (position >= nextSourcePosition) {
4117 accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
4118 nextSourcePosition = position + matched.length;
4119 }
4120 }
4121 return accumulatedResult + stringSlice(S, nextSourcePosition);
4122 }
4123 ];
4124 }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
4125
4126 var call = functionCall;
4127 var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
4128 var anObject = anObject$g;
4129 var isNullOrUndefined = isNullOrUndefined$7;
4130 var toLength = toLength$4;
4131 var toString = toString$9;
4132 var requireObjectCoercible = requireObjectCoercible$8;
4133 var getMethod = getMethod$6;
4134 var advanceStringIndex = advanceStringIndex$3;
4135 var regExpExec = regexpExecAbstract;
4136
4137 // @@match logic
4138 fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNative) {
4139 return [
4140 // `String.prototype.match` method
4141 // https://tc39.es/ecma262/#sec-string.prototype.match
4142 function match(regexp) {
4143 var O = requireObjectCoercible(this);
4144 var matcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, MATCH);
4145 return matcher ? call(matcher, regexp, O) : new RegExp(regexp)[MATCH](toString(O));
4146 },
4147 // `RegExp.prototype[@@match]` method
4148 // https://tc39.es/ecma262/#sec-regexp.prototype-@@match
4149 function (string) {
4150 var rx = anObject(this);
4151 var S = toString(string);
4152 var res = maybeCallNative(nativeMatch, rx, S);
4153
4154 if (res.done) return res.value;
4155
4156 if (!rx.global) return regExpExec(rx, S);
4157
4158 var fullUnicode = rx.unicode;
4159 rx.lastIndex = 0;
4160 var A = [];
4161 var n = 0;
4162 var result;
4163 while ((result = regExpExec(rx, S)) !== null) {
4164 var matchStr = toString(result[0]);
4165 A[n] = matchStr;
4166 if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
4167 n++;
4168 }
4169 return n === 0 ? null : A;
4170 }
4171 ];
4172 });
4173
4174 var $ = _export;
4175 var uncurryThis = functionUncurryThis;
4176 var IndexedObject = indexedObject;
4177 var toIndexedObject = toIndexedObject$6;
4178 var arrayMethodIsStrict = arrayMethodIsStrict$4;
4179
4180 var nativeJoin = uncurryThis([].join);
4181
4182 var ES3_STRINGS = IndexedObject != Object;
4183 var FORCED = ES3_STRINGS || !arrayMethodIsStrict('join', ',');
4184
4185 // `Array.prototype.join` method
4186 // https://tc39.es/ecma262/#sec-array.prototype.join
4187 $({ target: 'Array', proto: true, forced: FORCED }, {
4188 join: function join(separator) {
4189 return nativeJoin(toIndexedObject(this), separator === undefined ? ',' : separator);
4190 }
4191 });
4192
4193 /* eslint-disable no-use-before-define */
4194 var Utils$1 = $$k.fn.bootstrapTable.utils;
4195 var searchControls = 'select, input:not([type="checkbox"]):not([type="radio"])';
4196 function getInputClass(that) {
4197 var isSelect = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
4198 var formControlClass = isSelect ? that.constants.classes.select : that.constants.classes.input;
4199 return that.options.iconSize ? Utils$1.sprintf('%s %s-%s', formControlClass, formControlClass, that.options.iconSize) : formControlClass;
4200 }
4201 function getOptionsFromSelectControl(selectControl) {
4202 return selectControl[0].options;
4203 }
4204 function getControlContainer(that) {
4205 if (that.options.filterControlContainer) {
4206 return $$k("".concat(that.options.filterControlContainer));
4207 }
4208 if (that.options.height && that._initialized) {
4209 return that.$tableContainer.find('.fixed-table-header table thead');
4210 }
4211 return that.$header;
4212 }
4213 function isKeyAllowed(keyCode) {
4214 return $$k.inArray(keyCode, [37, 38, 39, 40]) > -1;
4215 }
4216 function getSearchControls(that) {
4217 return getControlContainer(that).find(searchControls);
4218 }
4219 function existOptionInSelectControl(selectControl, value) {
4220 var options = getOptionsFromSelectControl(selectControl);
4221 for (var i = 0; i < options.length; i++) {
4222 if (options[i].value === Utils$1.unescapeHTML(value)) {
4223 // The value is not valid to add
4224 return true;
4225 }
4226 }
4227
4228 // If we get here, the value is valid to add
4229 return false;
4230 }
4231 function addOptionToSelectControl(selectControl, _value, text, selected, shouldCompareText) {
4232 var value = _value === undefined || _value === null ? '' : _value.toString().trim();
4233 value = Utils$1.removeHTML(Utils$1.unescapeHTML(value));
4234 text = Utils$1.removeHTML(Utils$1.unescapeHTML(text));
4235 if (existOptionInSelectControl(selectControl, value)) {
4236 return;
4237 }
4238 var isSelected = shouldCompareText ? value === selected || text === selected : value === selected;
4239 var option = new Option(text, value, false, isSelected);
4240 selectControl.get(0).add(option);
4241 }
4242 function sortSelectControl(selectControl, orderBy, options) {
4243 var $selectControl = selectControl.get(0);
4244 if (orderBy === 'server') {
4245 return;
4246 }
4247 var tmpAry = new Array();
4248 for (var i = 0; i < $selectControl.options.length; i++) {
4249 tmpAry[i] = new Array();
4250 tmpAry[i][0] = $selectControl.options[i].text;
4251 tmpAry[i][1] = $selectControl.options[i].value;
4252 tmpAry[i][2] = $selectControl.options[i].selected;
4253 }
4254 tmpAry.sort(function (a, b) {
4255 return Utils$1.sort(a[0], b[0], orderBy === 'desc' ? -1 : 1, options);
4256 });
4257 while ($selectControl.options.length > 0) {
4258 $selectControl.options[0] = null;
4259 }
4260 for (var _i = 0; _i < tmpAry.length; _i++) {
4261 var op = new Option(tmpAry[_i][0], tmpAry[_i][1], false, tmpAry[_i][2]);
4262 $selectControl.add(op);
4263 }
4264 }
4265 function fixHeaderCSS(_ref) {
4266 var $tableHeader = _ref.$tableHeader;
4267 $tableHeader.css('height', $tableHeader.find('table').outerHeight(true));
4268 }
4269 function getElementClass($element) {
4270 return $element.attr('class').replace('form-control', '').replace('form-select', '').replace('focus-temp', '').replace('search-input', '').trim();
4271 }
4272 function getCursorPosition(el) {
4273 if ($$k(el).is('input[type=search]')) {
4274 var pos = 0;
4275 if ('selectionStart' in el) {
4276 pos = el.selectionStart;
4277 } else if ('selection' in document) {
4278 el.focus();
4279 var Sel = document.selection.createRange();
4280 var SelLength = document.selection.createRange().text.length;
4281 Sel.moveStart('character', -el.value.length);
4282 pos = Sel.text.length - SelLength;
4283 }
4284 return pos;
4285 }
4286 return -1;
4287 }
4288 function cacheValues(that) {
4289 var searchControls = getSearchControls(that);
4290 that._valuesFilterControl = [];
4291 searchControls.each(function () {
4292 var $field = $$k(this);
4293 var fieldClass = getElementClass($field);
4294 if (that.options.height && !that.options.filterControlContainer) {
4295 $field = that.$el.find(".fixed-table-header .".concat(fieldClass));
4296 } else if (that.options.filterControlContainer) {
4297 $field = $$k("".concat(that.options.filterControlContainer, " .").concat(fieldClass));
4298 } else {
4299 $field = that.$el.find(".".concat(fieldClass));
4300 }
4301 that._valuesFilterControl.push({
4302 field: $field.closest('[data-field]').data('field'),
4303 value: $field.val(),
4304 position: getCursorPosition($field.get(0)),
4305 hasFocus: $field.is(':focus')
4306 });
4307 });
4308 }
4309 function setCaretPosition(elem, caretPos) {
4310 try {
4311 if (elem) {
4312 if (elem.createTextRange) {
4313 var range = elem.createTextRange();
4314 range.move('character', caretPos);
4315 range.select();
4316 } else {
4317 elem.setSelectionRange(caretPos, caretPos);
4318 }
4319 }
4320 } catch (ex) {
4321 // ignored
4322 }
4323 }
4324 function setValues(that) {
4325 var field = null;
4326 var result = [];
4327 var searchControls = getSearchControls(that);
4328 if (that._valuesFilterControl.length > 0) {
4329 // Callback to apply after settings fields values
4330 var callbacks = [];
4331 searchControls.each(function (i, el) {
4332 var $this = $$k(el);
4333 field = $this.closest('[data-field]').data('field');
4334 result = that._valuesFilterControl.filter(function (valueObj) {
4335 return valueObj.field === field;
4336 });
4337 if (result.length > 0) {
4338 if (result[0].hasFocus || result[0].value) {
4339 var fieldToFocusCallback = function (element, cacheElementInfo) {
4340 // Closure here to capture the field information
4341 var closedCallback = function closedCallback() {
4342 if (cacheElementInfo.hasFocus) {
4343 element.focus();
4344 }
4345 if (Array.isArray(cacheElementInfo.value)) {
4346 var $element = $$k(element);
4347 $$k.each(cacheElementInfo.value, function (i, e) {
4348 $element.find(Utils$1.sprintf('option[value=\'%s\']', e)).prop('selected', true);
4349 });
4350 } else {
4351 element.value = cacheElementInfo.value;
4352 }
4353 setCaretPosition(element, cacheElementInfo.position);
4354 };
4355 return closedCallback;
4356 }($this.get(0), result[0]);
4357 callbacks.push(fieldToFocusCallback);
4358 }
4359 }
4360 });
4361
4362 // Callback call.
4363 if (callbacks.length > 0) {
4364 callbacks.forEach(function (callback) {
4365 return callback();
4366 });
4367 }
4368 }
4369 }
4370 function collectBootstrapTableFilterCookies() {
4371 var cookies = [];
4372 var foundCookies = document.cookie.match(/bs\.table\.(filterControl|searchText)/g);
4373 var foundLocalStorage = localStorage;
4374 if (foundCookies) {
4375 $$k.each(foundCookies, function (i, _cookie) {
4376 var cookie = _cookie;
4377 if (/./.test(cookie)) {
4378 cookie = cookie.split('.').pop();
4379 }
4380 if ($$k.inArray(cookie, cookies) === -1) {
4381 cookies.push(cookie);
4382 }
4383 });
4384 }
4385 if (foundLocalStorage) {
4386 for (var i = 0; i < foundLocalStorage.length; i++) {
4387 var cookie = foundLocalStorage.key(i);
4388 if (/./.test(cookie)) {
4389 cookie = cookie.split('.').pop();
4390 }
4391 if (!cookies.includes(cookie)) {
4392 cookies.push(cookie);
4393 }
4394 }
4395 }
4396 return cookies;
4397 }
4398 function escapeID(id) {
4399 // eslint-disable-next-line no-useless-escape
4400 return String(id).replace(/([:.\[\],])/g, '\\$1');
4401 }
4402 function isColumnSearchableViaSelect(_ref2) {
4403 var filterControl = _ref2.filterControl,
4404 searchable = _ref2.searchable;
4405 return filterControl && filterControl.toLowerCase() === 'select' && searchable;
4406 }
4407 function isFilterDataNotGiven(_ref3) {
4408 var filterData = _ref3.filterData;
4409 return filterData === undefined || filterData.toLowerCase() === 'column';
4410 }
4411 function hasSelectControlElement(selectControl) {
4412 return selectControl && selectControl.length > 0;
4413 }
4414 function initFilterSelectControls(that) {
4415 var data = that.options.data;
4416 $$k.each(that.header.fields, function (j, field) {
4417 var column = that.columns[that.fieldsColumnsIndex[field]];
4418 var selectControl = getControlContainer(that).find("select.bootstrap-table-filter-control-".concat(escapeID(column.field)));
4419 if (isColumnSearchableViaSelect(column) && isFilterDataNotGiven(column) && hasSelectControlElement(selectControl)) {
4420 if (!selectControl[0].multiple && selectControl.get(selectControl.length - 1).options.length === 0) {
4421 // Added the default option, must use a non-breaking space(&nbsp;) to pass the W3C validator
4422 addOptionToSelectControl(selectControl, '', column.filterControlPlaceholder || ' ', column.filterDefault);
4423 }
4424 var uniqueValues = {};
4425 for (var i = 0; i < data.length; i++) {
4426 // Added a new value
4427 var fieldValue = Utils$1.getItemField(data[i], field, false);
4428 var formatter = that.options.editable && column.editable ? column._formatter : that.header.formatters[j];
4429 var formattedValue = Utils$1.calculateObjectValue(that.header, formatter, [fieldValue, data[i], i], fieldValue);
4430 if (fieldValue === undefined || fieldValue === null) {
4431 fieldValue = formattedValue;
4432 column._forceFormatter = true;
4433 }
4434 if (column.filterDataCollector) {
4435 formattedValue = Utils$1.calculateObjectValue(that.header, column.filterDataCollector, [fieldValue, data[i], formattedValue], formattedValue);
4436 }
4437 if (column.searchFormatter) {
4438 fieldValue = formattedValue;
4439 }
4440 uniqueValues[formattedValue] = fieldValue;
4441 if (_typeof(formattedValue) === 'object' && formattedValue !== null) {
4442 formattedValue.forEach(function (value) {
4443 addOptionToSelectControl(selectControl, value, value, column.filterDefault);
4444 });
4445 continue;
4446 }
4447 }
4448
4449 // eslint-disable-next-line guard-for-in
4450 for (var key in uniqueValues) {
4451 addOptionToSelectControl(selectControl, uniqueValues[key], key, column.filterDefault);
4452 }
4453 if (that.options.sortSelectOptions) {
4454 sortSelectControl(selectControl, 'asc', that.options);
4455 }
4456 }
4457 });
4458 }
4459 function getFilterDataMethod(objFilterDataMethod, searchTerm) {
4460 var keys = Object.keys(objFilterDataMethod);
4461 for (var i = 0; i < keys.length; i++) {
4462 if (keys[i] === searchTerm) {
4463 return objFilterDataMethod[searchTerm];
4464 }
4465 }
4466 return null;
4467 }
4468 function createControls(that, header) {
4469 var addedFilterControl = false;
4470 var html;
4471 $$k.each(that.columns, function (_, column) {
4472 html = [];
4473 if (!column.visible && !(that.options.filterControlContainer && $$k(".bootstrap-table-filter-control-".concat(column.field)).length >= 1)) {
4474 return;
4475 }
4476 if (!column.filterControl && !that.options.filterControlContainer) {
4477 html.push('<div class="no-filter-control"></div>');
4478 } else if (that.options.filterControlContainer) {
4479 // Use a filter control container instead of th
4480 var $filterControls = $$k(".bootstrap-table-filter-control-".concat(column.field));
4481 $$k.each($filterControls, function (_, filterControl) {
4482 var $filterControl = $$k(filterControl);
4483 if (!$filterControl.is('[type=radio]')) {
4484 var placeholder = column.filterControlPlaceholder || '';
4485 $filterControl.attr('placeholder', placeholder).val(column.filterDefault);
4486 }
4487 $filterControl.attr('data-field', column.field);
4488 });
4489 addedFilterControl = true;
4490 } else {
4491 // Create the control based on the html defined in the filterTemplate array.
4492 var nameControl = column.filterControl.toLowerCase();
4493 html.push('<div class="filter-control">');
4494 addedFilterControl = true;
4495 if (column.searchable && that.options.filterTemplate[nameControl]) {
4496 html.push(that.options.filterTemplate[nameControl](that, column, column.filterControlPlaceholder ? column.filterControlPlaceholder : '', column.filterDefault));
4497 }
4498 }
4499
4500 // Filtering by default when it is set.
4501 if (column.filterControl && '' !== column.filterDefault && 'undefined' !== typeof column.filterDefault) {
4502 if ($$k.isEmptyObject(that.filterColumnsPartial)) {
4503 that.filterColumnsPartial = {};
4504 }
4505 if (!(column.field in that.filterColumnsPartial)) {
4506 that.filterColumnsPartial[column.field] = column.filterDefault;
4507 }
4508 }
4509 $$k.each(header.find('th'), function (_, th) {
4510 var $th = $$k(th);
4511 if ($th.data('field') === column.field) {
4512 $th.find('.filter-control').remove();
4513 $th.find('.fht-cell').html(html.join(''));
4514 return false;
4515 }
4516 });
4517 if (column.filterData && column.filterData.toLowerCase() !== 'column') {
4518 var filterDataType = getFilterDataMethod(filterDataMethods, column.filterData.substring(0, column.filterData.indexOf(':')));
4519 var filterDataSource;
4520 var selectControl;
4521 if (filterDataType) {
4522 filterDataSource = column.filterData.substring(column.filterData.indexOf(':') + 1, column.filterData.length);
4523 selectControl = header.find(".bootstrap-table-filter-control-".concat(escapeID(column.field)));
4524 addOptionToSelectControl(selectControl, '', column.filterControlPlaceholder, column.filterDefault, true);
4525 filterDataType(that, filterDataSource, selectControl, that.options.filterOrderBy, column.filterDefault);
4526 } else {
4527 throw new SyntaxError('Error. You should use any of these allowed filter data methods: var, obj, json, url, func.' + ' Use like this: var: {key: "value"}');
4528 }
4529 }
4530 });
4531 if (addedFilterControl) {
4532 header.off('keyup', 'input').on('keyup', 'input', function (_ref4, obj) {
4533 var currentTarget = _ref4.currentTarget,
4534 keyCode = _ref4.keyCode;
4535 keyCode = obj ? obj.keyCode : keyCode;
4536 if (that.options.searchOnEnterKey && keyCode !== 13) {
4537 return;
4538 }
4539 if (isKeyAllowed(keyCode)) {
4540 return;
4541 }
4542 var $currentTarget = $$k(currentTarget);
4543 if ($currentTarget.is(':checkbox') || $currentTarget.is(':radio')) {
4544 return;
4545 }
4546 clearTimeout(currentTarget.timeoutId || 0);
4547 currentTarget.timeoutId = setTimeout(function () {
4548 that.onColumnSearch({
4549 currentTarget: currentTarget,
4550 keyCode: keyCode
4551 });
4552 }, that.options.searchTimeOut);
4553 });
4554 header.off('change', 'select', '.fc-multipleselect').on('change', 'select', '.fc-multipleselect', function (_ref5) {
4555 var currentTarget = _ref5.currentTarget,
4556 keyCode = _ref5.keyCode;
4557 var $selectControl = $$k(currentTarget);
4558 var value = $selectControl.val();
4559 if (Array.isArray(value)) {
4560 for (var i = 0; i < value.length; i++) {
4561 if (value[i] && value[i].length > 0 && value[i].trim()) {
4562 $selectControl.find("option[value=\"".concat(value[i], "\"]")).attr('selected', true);
4563 }
4564 }
4565 } else if (value && value.length > 0 && value.trim()) {
4566 $selectControl.find('option[selected]').removeAttr('selected');
4567 $selectControl.find("option[value=\"".concat(value, "\"]")).attr('selected', true);
4568 } else {
4569 $selectControl.find('option[selected]').removeAttr('selected');
4570 }
4571 clearTimeout(currentTarget.timeoutId || 0);
4572 currentTarget.timeoutId = setTimeout(function () {
4573 that.onColumnSearch({
4574 currentTarget: currentTarget,
4575 keyCode: keyCode
4576 });
4577 }, that.options.searchTimeOut);
4578 });
4579 header.off('mouseup', 'input:not([type=radio])').on('mouseup', 'input:not([type=radio])', function (_ref6) {
4580 var currentTarget = _ref6.currentTarget,
4581 keyCode = _ref6.keyCode;
4582 var $input = $$k(currentTarget);
4583 var oldValue = $input.val();
4584 if (oldValue === '') {
4585 return;
4586 }
4587 setTimeout(function () {
4588 var newValue = $input.val();
4589 if (newValue === '') {
4590 clearTimeout(currentTarget.timeoutId || 0);
4591 currentTarget.timeoutId = setTimeout(function () {
4592 that.onColumnSearch({
4593 currentTarget: currentTarget,
4594 keyCode: keyCode
4595 });
4596 }, that.options.searchTimeOut);
4597 }
4598 }, 1);
4599 });
4600 header.off('change', 'input[type=radio]').on('change', 'input[type=radio]', function (_ref7) {
4601 var currentTarget = _ref7.currentTarget,
4602 keyCode = _ref7.keyCode;
4603 clearTimeout(currentTarget.timeoutId || 0);
4604 currentTarget.timeoutId = setTimeout(function () {
4605 that.onColumnSearch({
4606 currentTarget: currentTarget,
4607 keyCode: keyCode
4608 });
4609 }, that.options.searchTimeOut);
4610 });
4611
4612 // See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date
4613 if (header.find('.date-filter-control').length > 0) {
4614 $$k.each(that.columns, function (i, _ref8) {
4615 var filterDefault = _ref8.filterDefault,
4616 filterControl = _ref8.filterControl,
4617 field = _ref8.field,
4618 filterDatepickerOptions = _ref8.filterDatepickerOptions;
4619 if (filterControl !== undefined && filterControl.toLowerCase() === 'datepicker') {
4620 var $datepicker = header.find(".date-filter-control.bootstrap-table-filter-control-".concat(field));
4621 if (filterDefault) {
4622 $datepicker.value(filterDefault);
4623 }
4624 if (filterDatepickerOptions.min) {
4625 $datepicker.attr('min', filterDatepickerOptions.min);
4626 }
4627 if (filterDatepickerOptions.max) {
4628 $datepicker.attr('max', filterDatepickerOptions.max);
4629 }
4630 if (filterDatepickerOptions.step) {
4631 $datepicker.attr('step', filterDatepickerOptions.step);
4632 }
4633 if (filterDatepickerOptions.pattern) {
4634 $datepicker.attr('pattern', filterDatepickerOptions.pattern);
4635 }
4636 $datepicker.on('change', function (_ref9) {
4637 var currentTarget = _ref9.currentTarget;
4638 clearTimeout(currentTarget.timeoutId || 0);
4639 currentTarget.timeoutId = setTimeout(function () {
4640 that.onColumnSearch({
4641 currentTarget: currentTarget
4642 });
4643 }, that.options.searchTimeOut);
4644 });
4645 }
4646 });
4647 }
4648 if (that.options.sidePagination !== 'server') {
4649 that.triggerSearch();
4650 }
4651 if (!that.options.filterControlVisible) {
4652 header.find('.filter-control, .no-filter-control').hide();
4653 }
4654 } else {
4655 header.find('.filter-control, .no-filter-control').hide();
4656 }
4657 that.trigger('created-controls');
4658 }
4659 function getDirectionOfSelectOptions(_alignment) {
4660 var alignment = _alignment === undefined ? 'left' : _alignment.toLowerCase();
4661 switch (alignment) {
4662 case 'left':
4663 return 'ltr';
4664 case 'right':
4665 return 'rtl';
4666 case 'auto':
4667 return 'auto';
4668 default:
4669 return 'ltr';
4670 }
4671 }
4672 function syncHeaders(that) {
4673 if (!that.options.height) {
4674 return;
4675 }
4676 var fixedHeader = that.$tableContainer.find('.fixed-table-header table thead');
4677 if (fixedHeader.length === 0) {
4678 return;
4679 }
4680 that.$header.children().find('th[data-field]').each(function (_, element) {
4681 if (element.classList[0] !== 'bs-checkbox') {
4682 var $element = $$k(element);
4683 var $field = $element.data('field');
4684 var $fixedField = that.$tableContainer.find("th[data-field='".concat($field, "']")).not($element);
4685 var input = $element.find('input');
4686 var fixedInput = $fixedField.find('input');
4687 if (input.length > 0 && fixedInput.length > 0) {
4688 if (input.val() !== fixedInput.val()) {
4689 input.val(fixedInput.val());
4690 }
4691 }
4692 }
4693 });
4694 }
4695 var filterDataMethods = {
4696 func: function func(that, filterDataSource, selectControl, filterOrderBy, selected) {
4697 var variableValues = window[filterDataSource].apply();
4698
4699 // eslint-disable-next-line guard-for-in
4700 for (var key in variableValues) {
4701 addOptionToSelectControl(selectControl, key, variableValues[key], selected);
4702 }
4703 if (that.options.sortSelectOptions) {
4704 sortSelectControl(selectControl, filterOrderBy, that.options);
4705 }
4706 setValues(that);
4707 },
4708 obj: function obj(that, filterDataSource, selectControl, filterOrderBy, selected) {
4709 var objectKeys = filterDataSource.split('.');
4710 var variableName = objectKeys.shift();
4711 var variableValues = window[variableName];
4712 if (objectKeys.length > 0) {
4713 objectKeys.forEach(function (key) {
4714 variableValues = variableValues[key];
4715 });
4716 }
4717
4718 // eslint-disable-next-line guard-for-in
4719 for (var key in variableValues) {
4720 addOptionToSelectControl(selectControl, key, variableValues[key], selected);
4721 }
4722 if (that.options.sortSelectOptions) {
4723 sortSelectControl(selectControl, filterOrderBy, that.options);
4724 }
4725 setValues(that);
4726 },
4727 var: function _var(that, filterDataSource, selectControl, filterOrderBy, selected) {
4728 var variableValues = window[filterDataSource];
4729 var isArray = Array.isArray(variableValues);
4730 for (var key in variableValues) {
4731 if (isArray) {
4732 addOptionToSelectControl(selectControl, variableValues[key], variableValues[key], selected, true);
4733 } else {
4734 addOptionToSelectControl(selectControl, key, variableValues[key], selected, true);
4735 }
4736 }
4737 if (that.options.sortSelectOptions) {
4738 sortSelectControl(selectControl, filterOrderBy, that.options);
4739 }
4740 setValues(that);
4741 },
4742 url: function url(that, filterDataSource, selectControl, filterOrderBy, selected) {
4743 $$k.ajax({
4744 url: filterDataSource,
4745 dataType: 'json',
4746 success: function success(data) {
4747 // eslint-disable-next-line guard-for-in
4748 for (var key in data) {
4749 addOptionToSelectControl(selectControl, key, data[key], selected);
4750 }
4751 if (that.options.sortSelectOptions) {
4752 sortSelectControl(selectControl, filterOrderBy, that.options);
4753 }
4754 setValues(that);
4755 }
4756 });
4757 },
4758 json: function json(that, filterDataSource, selectControl, filterOrderBy, selected) {
4759 var variableValues = JSON.parse(filterDataSource);
4760
4761 // eslint-disable-next-line guard-for-in
4762 for (var key in variableValues) {
4763 addOptionToSelectControl(selectControl, key, variableValues[key], selected);
4764 }
4765 if (that.options.sortSelectOptions) {
4766 sortSelectControl(selectControl, filterOrderBy, that.options);
4767 }
4768 setValues(that);
4769 }
4770 };
4771
4772 var Utils = $$k.fn.bootstrapTable.utils;
4773 Object.assign($$k.fn.bootstrapTable.defaults, {
4774 filterControl: false,
4775 filterControlVisible: true,
4776 filterControlMultipleSearch: false,
4777 filterControlMultipleSearchDelimiter: ',',
4778 // eslint-disable-next-line no-unused-vars
4779 onColumnSearch: function onColumnSearch(field, text) {
4780 return false;
4781 },
4782 onCreatedControls: function onCreatedControls() {
4783 return false;
4784 },
4785 alignmentSelectControlOptions: undefined,
4786 filterTemplate: {
4787 input: function input(that, column, placeholder, value) {
4788 return Utils.sprintf('<input type="search" class="%s bootstrap-table-filter-control-%s search-input" style="width: 100%;" placeholder="%s" value="%s">', getInputClass(that), column.field, 'undefined' === typeof placeholder ? '' : placeholder, 'undefined' === typeof value ? '' : value);
4789 },
4790 select: function select(that, column) {
4791 return Utils.sprintf('<select class="%s bootstrap-table-filter-control-%s %s" %s style="width: 100%;" dir="%s"></select>', getInputClass(that, true), column.field, '', '', getDirectionOfSelectOptions(that.options.alignmentSelectControlOptions));
4792 },
4793 datepicker: function datepicker(that, column, value) {
4794 return Utils.sprintf('<input type="date" class="%s date-filter-control bootstrap-table-filter-control-%s" style="width: 100%;" value="%s">', getInputClass(that), column.field, 'undefined' === typeof value ? '' : value);
4795 }
4796 },
4797 searchOnEnterKey: false,
4798 showFilterControlSwitch: false,
4799 sortSelectOptions: false,
4800 // internal variables
4801 _valuesFilterControl: [],
4802 _initialized: false,
4803 _isRendering: false,
4804 _usingMultipleSelect: false
4805 });
4806 Object.assign($$k.fn.bootstrapTable.columnDefaults, {
4807 filterControl: undefined,
4808 // input, select, datepicker
4809 filterControlMultipleSelect: false,
4810 filterControlMultipleSelectOptions: {},
4811 filterDataCollector: undefined,
4812 filterData: undefined,
4813 filterDatepickerOptions: {},
4814 filterStrictSearch: false,
4815 filterStartsWithSearch: false,
4816 filterControlPlaceholder: '',
4817 filterDefault: '',
4818 filterOrderBy: 'asc',
4819 // asc || desc
4820 filterCustomSearch: undefined
4821 });
4822 Object.assign($$k.fn.bootstrapTable.events, {
4823 'column-search.bs.table': 'onColumnSearch',
4824 'created-controls.bs.table': 'onCreatedControls'
4825 });
4826 Object.assign($$k.fn.bootstrapTable.defaults.icons, {
4827 filterControlSwitchHide: {
4828 bootstrap3: 'glyphicon-zoom-out icon-zoom-out',
4829 bootstrap5: 'bi-zoom-out',
4830 materialize: 'zoom_out'
4831 }[$$k.fn.bootstrapTable.theme] || 'fa-search-minus',
4832 filterControlSwitchShow: {
4833 bootstrap3: 'glyphicon-zoom-in icon-zoom-in',
4834 bootstrap5: 'bi-zoom-in',
4835 materialize: 'zoom_in'
4836 }[$$k.fn.bootstrapTable.theme] || 'fa-search-plus'
4837 });
4838 Object.assign($$k.fn.bootstrapTable.locales, {
4839 formatFilterControlSwitch: function formatFilterControlSwitch() {
4840 return 'Hide/Show controls';
4841 },
4842 formatFilterControlSwitchHide: function formatFilterControlSwitchHide() {
4843 return 'Hide controls';
4844 },
4845 formatFilterControlSwitchShow: function formatFilterControlSwitchShow() {
4846 return 'Show controls';
4847 },
4848 formatClearSearch: function formatClearSearch() {
4849 return 'Clear filters';
4850 }
4851 });
4852 Object.assign($$k.fn.bootstrapTable.defaults, $$k.fn.bootstrapTable.locales);
4853 $$k.fn.bootstrapTable.methods.push('triggerSearch');
4854 $$k.fn.bootstrapTable.methods.push('clearFilterControl');
4855 $$k.fn.bootstrapTable.methods.push('toggleFilterControl');
4856 $$k.BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
4857 _inherits(_class, _$$BootstrapTable);
4858 var _super = _createSuper(_class);
4859 function _class() {
4860 _classCallCheck(this, _class);
4861 return _super.apply(this, arguments);
4862 }
4863 _createClass(_class, [{
4864 key: "init",
4865 value: function init() {
4866 var _this = this;
4867 // Make sure that the filterControl option is set
4868 if (this.options.filterControl) {
4869 // Make sure that the internal variables are set correctly
4870 this._valuesFilterControl = [];
4871 this._initialized = false;
4872 this._usingMultipleSelect = false;
4873 this._isRendering = false;
4874 this.$el.on('reset-view.bs.table', Utils.debounce(function () {
4875 initFilterSelectControls(_this);
4876 setValues(_this);
4877 }, 3)).on('toggle.bs.table', Utils.debounce(function (_, cardView) {
4878 _this._initialized = false;
4879 if (!cardView) {
4880 initFilterSelectControls(_this);
4881 setValues(_this);
4882 _this._initialized = true;
4883 }
4884 }, 1)).on('post-header.bs.table', Utils.debounce(function () {
4885 initFilterSelectControls(_this);
4886 setValues(_this);
4887 }, 3)).on('column-switch.bs.table', Utils.debounce(function () {
4888 setValues(_this);
4889 if (_this.options.height) {
4890 _this.fitHeader();
4891 }
4892 }, 1)).on('post-body.bs.table', Utils.debounce(function () {
4893 if (_this.options.height && !_this.options.filterControlContainer && _this.options.filterControlVisible) {
4894 fixHeaderCSS(_this);
4895 }
4896 _this.$tableLoading.css('top', _this.$header.outerHeight() + 1);
4897 }, 1)).on('all.bs.table', function () {
4898 syncHeaders(_this);
4899 });
4900 }
4901 _get(_getPrototypeOf(_class.prototype), "init", this).call(this);
4902 }
4903 }, {
4904 key: "initBody",
4905 value: function initBody() {
4906 var _this2 = this;
4907 _get(_getPrototypeOf(_class.prototype), "initBody", this).call(this);
4908 if (!this.options.filterControl) {
4909 return;
4910 }
4911 setTimeout(function () {
4912 initFilterSelectControls(_this2);
4913 setValues(_this2);
4914 }, 3);
4915 }
4916 }, {
4917 key: "load",
4918 value: function load(data) {
4919 _get(_getPrototypeOf(_class.prototype), "load", this).call(this, data);
4920 if (!this.options.filterControl) {
4921 return;
4922 }
4923 createControls(this, getControlContainer(this));
4924 setValues(this);
4925 }
4926 }, {
4927 key: "initHeader",
4928 value: function initHeader() {
4929 _get(_getPrototypeOf(_class.prototype), "initHeader", this).call(this);
4930 if (!this.options.filterControl) {
4931 return;
4932 }
4933 createControls(this, getControlContainer(this));
4934 this._initialized = true;
4935 }
4936 }, {
4937 key: "initSearch",
4938 value: function initSearch() {
4939 var _this3 = this;
4940 var that = this;
4941 var filterPartial = $$k.isEmptyObject(that.filterColumnsPartial) ? null : that.filterColumnsPartial;
4942 _get(_getPrototypeOf(_class.prototype), "initSearch", this).call(this);
4943 if (this.options.sidePagination === 'server' || filterPartial === null) {
4944 return;
4945 }
4946
4947 // Check partial column filter
4948 that.data = filterPartial ? that.data.filter(function (item, i) {
4949 var itemIsExpected = [];
4950 var keys1 = Object.keys(item);
4951 var keys2 = Object.keys(filterPartial);
4952 var keys = keys1.concat(keys2.filter(function (item) {
4953 return !keys1.includes(item);
4954 }));
4955 keys.forEach(function (key) {
4956 var thisColumn = that.columns[that.fieldsColumnsIndex[key]];
4957 var rawFilterValue = filterPartial[key] || '';
4958 var filterValue = rawFilterValue.toLowerCase();
4959 var value = Utils.unescapeHTML(Utils.getItemField(item, key, false));
4960 var tmpItemIsExpected;
4961 if (_this3.options.searchAccentNeutralise) {
4962 filterValue = Utils.normalizeAccent(filterValue);
4963 }
4964 var filterValues = [filterValue];
4965 if (_this3.options.filterControlMultipleSearch) {
4966 filterValues = filterValue.split(_this3.options.filterControlMultipleSearchDelimiter);
4967 }
4968 filterValues.forEach(function (filterValue) {
4969 if (tmpItemIsExpected === true) {
4970 return;
4971 }
4972 filterValue = filterValue.trim();
4973 if (filterValue === '') {
4974 tmpItemIsExpected = true;
4975 } else {
4976 // Fix #142: search use formatted data
4977 if (thisColumn) {
4978 if (thisColumn.searchFormatter || thisColumn._forceFormatter) {
4979 value = $$k.fn.bootstrapTable.utils.calculateObjectValue(thisColumn, that.header.formatters[$$k.inArray(key, that.header.fields)], [value, item, i], value);
4980 }
4981 }
4982 if ($$k.inArray(key, that.header.fields) !== -1) {
4983 if (value === undefined || value === null) {
4984 tmpItemIsExpected = false;
4985 } else if (_typeof(value) === 'object' && thisColumn.filterCustomSearch) {
4986 itemIsExpected.push(that.isValueExpected(rawFilterValue, value, thisColumn, key));
4987 } else if (_typeof(value) === 'object' && Array.isArray(value)) {
4988 value.forEach(function (objectValue) {
4989 if (tmpItemIsExpected) {
4990 return;
4991 }
4992 tmpItemIsExpected = that.isValueExpected(filterValue, objectValue, thisColumn, key);
4993 });
4994 } else if (_typeof(value) === 'object' && !Array.isArray(value)) {
4995 Object.values(value).forEach(function (objectValue) {
4996 if (tmpItemIsExpected) {
4997 return;
4998 }
4999 tmpItemIsExpected = that.isValueExpected(filterValue, objectValue, thisColumn, key);
5000 });
5001 } else if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') {
5002 tmpItemIsExpected = that.isValueExpected(filterValue, value, thisColumn, key);
5003 }
5004 }
5005 }
5006 });
5007 itemIsExpected.push(tmpItemIsExpected);
5008 });
5009 return !itemIsExpected.includes(false);
5010 }) : that.data;
5011 that.unsortedData = _toConsumableArray(that.data);
5012 }
5013 }, {
5014 key: "isValueExpected",
5015 value: function isValueExpected(searchValue, value, column, key) {
5016 var tmpItemIsExpected;
5017 if (column.filterControl === 'select') {
5018 value = Utils.removeHTML(value.toString().toLowerCase());
5019 }
5020 if (column.filterStrictSearch || column.filterControl === 'select' && column.passed.filterStrictSearch !== false) {
5021 tmpItemIsExpected = value.toString().toLowerCase() === searchValue.toString().toLowerCase();
5022 } else if (column.filterStartsWithSearch) {
5023 tmpItemIsExpected = "".concat(value).toLowerCase().indexOf(searchValue) === 0;
5024 } else if (column.filterControl === 'datepicker') {
5025 tmpItemIsExpected = new Date(value).getTime() === new Date(searchValue).getTime();
5026 } else if (this.options.regexSearch) {
5027 tmpItemIsExpected = Utils.regexCompare(value, searchValue);
5028 } else {
5029 tmpItemIsExpected = "".concat(value).toLowerCase().includes(searchValue);
5030 }
5031 var largerSmallerEqualsRegex = /(?:(<=|=>|=<|>=|>|<)(?:\s+)?(\d+)?|(\d+)?(\s+)?(<=|=>|=<|>=|>|<))/gm;
5032 var matches = largerSmallerEqualsRegex.exec(searchValue);
5033 if (matches) {
5034 var operator = matches[1] || "".concat(matches[5], "l");
5035 var comparisonValue = matches[2] || matches[3];
5036 var int = parseInt(value, 10);
5037 var comparisonInt = parseInt(comparisonValue, 10);
5038 switch (operator) {
5039 case '>':
5040 case '<l':
5041 tmpItemIsExpected = int > comparisonInt;
5042 break;
5043 case '<':
5044 case '>l':
5045 tmpItemIsExpected = int < comparisonInt;
5046 break;
5047 case '<=':
5048 case '=<':
5049 case '>=l':
5050 case '=>l':
5051 tmpItemIsExpected = int <= comparisonInt;
5052 break;
5053 case '>=':
5054 case '=>':
5055 case '<=l':
5056 case '=<l':
5057 tmpItemIsExpected = int >= comparisonInt;
5058 break;
5059 }
5060 }
5061 if (column.filterCustomSearch) {
5062 var customSearchResult = Utils.calculateObjectValue(column, column.filterCustomSearch, [searchValue, value, key, this.options.data], true);
5063 if (customSearchResult !== null) {
5064 tmpItemIsExpected = customSearchResult;
5065 }
5066 }
5067 return tmpItemIsExpected;
5068 }
5069 }, {
5070 key: "initColumnSearch",
5071 value: function initColumnSearch(filterColumnsDefaults) {
5072 cacheValues(this);
5073 if (filterColumnsDefaults) {
5074 this.filterColumnsPartial = filterColumnsDefaults;
5075 this.updatePagination();
5076
5077 // eslint-disable-next-line guard-for-in
5078 for (var filter in filterColumnsDefaults) {
5079 this.trigger('column-search', filter, filterColumnsDefaults[filter]);
5080 }
5081 }
5082 }
5083 }, {
5084 key: "initToolbar",
5085 value: function initToolbar() {
5086 this.showToolbar = this.showToolbar || this.options.showFilterControlSwitch;
5087 this.showSearchClearButton = this.options.filterControl && this.options.showSearchClearButton;
5088 if (this.options.showFilterControlSwitch) {
5089 this.buttons = Object.assign(this.buttons, {
5090 filterControlSwitch: {
5091 text: this.options.filterControlVisible ? this.options.formatFilterControlSwitchHide() : this.options.formatFilterControlSwitchShow(),
5092 icon: this.options.filterControlVisible ? this.options.icons.filterControlSwitchHide : this.options.icons.filterControlSwitchShow,
5093 event: this.toggleFilterControl,
5094 attributes: {
5095 'aria-label': this.options.formatFilterControlSwitch(),
5096 title: this.options.formatFilterControlSwitch()
5097 }
5098 }
5099 });
5100 }
5101 _get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
5102 }
5103 }, {
5104 key: "resetSearch",
5105 value: function resetSearch(text) {
5106 if (this.options.filterControl && this.options.showSearchClearButton) {
5107 this.clearFilterControl();
5108 }
5109 _get(_getPrototypeOf(_class.prototype), "resetSearch", this).call(this, text);
5110 }
5111 }, {
5112 key: "clearFilterControl",
5113 value: function clearFilterControl() {
5114 if (!this.options.filterControl) {
5115 return;
5116 }
5117 var that = this;
5118 var table = this.$el.closest('table');
5119 var cookies = collectBootstrapTableFilterCookies();
5120 var controls = getSearchControls(that);
5121 // const search = Utils.getSearchInput(this)
5122 var hasValues = false;
5123 var timeoutId = 0;
5124
5125 // Clear cache values
5126 $$k.each(that._valuesFilterControl, function (i, item) {
5127 hasValues = hasValues ? true : item.value !== '';
5128 item.value = '';
5129 });
5130
5131 // Clear controls in UI
5132 $$k.each(controls, function (i, item) {
5133 item.value = '';
5134 });
5135
5136 // Cache controls again
5137 setValues(that);
5138
5139 // clear cookies once the filters are clean
5140 clearTimeout(timeoutId);
5141 timeoutId = setTimeout(function () {
5142 if (cookies && cookies.length > 0) {
5143 $$k.each(cookies, function (i, item) {
5144 if (that.deleteCookie !== undefined) {
5145 that.deleteCookie(item);
5146 }
5147 });
5148 }
5149 }, that.options.searchTimeOut);
5150
5151 // If there is not any value in the controls exit this method
5152 if (!hasValues) {
5153 return;
5154 }
5155
5156 // Clear each type of filter if it exists.
5157 // Requires the body to reload each time a type of filter is found because we never know
5158 // which ones are going to be present.
5159 if (controls.length > 0) {
5160 this.filterColumnsPartial = {};
5161 controls.eq(0).trigger(this.tagName === 'INPUT' ? 'keyup' : 'change', {
5162 keyCode: 13
5163 });
5164 /* controls.each(function () {
5165 $(this).trigger(this.tagName === 'INPUT' ? 'keyup' : 'change', { keyCode: 13 })
5166 })*/
5167 } else {
5168 return;
5169 }
5170
5171 /* if (search.length > 0) {
5172 that.resetSearch('fc')
5173 }*/
5174
5175 // use the default sort order if it exists. do nothing if it does not
5176 if (that.options.sortName !== table.data('sortName') || that.options.sortOrder !== table.data('sortOrder')) {
5177 var sorter = this.$header.find(Utils.sprintf('[data-field="%s"]', $$k(controls[0]).closest('table').data('sortName')));
5178 if (sorter.length > 0) {
5179 that.onSort({
5180 type: 'keypress',
5181 currentTarget: sorter
5182 });
5183 $$k(sorter).find('.sortable').trigger('click');
5184 }
5185 }
5186 }
5187
5188 // EVENTS
5189 }, {
5190 key: "onColumnSearch",
5191 value: function onColumnSearch(_ref) {
5192 var _this4 = this;
5193 var currentTarget = _ref.currentTarget,
5194 keyCode = _ref.keyCode;
5195 if (isKeyAllowed(keyCode)) {
5196 return;
5197 }
5198 cacheValues(this);
5199
5200 // Cookie extension support
5201 if (!this.options.cookie) {
5202 this.options.pageNumber = 1;
5203 } else {
5204 // Force call the initServer method in Cookie extension
5205 this._filterControlValuesLoaded = true;
5206 }
5207 if ($$k.isEmptyObject(this.filterColumnsPartial)) {
5208 this.filterColumnsPartial = {};
5209 }
5210
5211 // If searchOnEnterKey is set to true, then we need to iterate over all controls and grab their values.
5212 var controls = this.options.searchOnEnterKey ? getSearchControls(this).toArray() : [currentTarget];
5213 controls.forEach(function (element) {
5214 var $element = $$k(element);
5215 var elementValue = $element.val();
5216 var text = elementValue ? elementValue.trim() : '';
5217 var $field = $element.closest('[data-field]').data('field');
5218 _this4.trigger('column-search', $field, text);
5219 if (text) {
5220 _this4.filterColumnsPartial[$field] = text;
5221 } else {
5222 delete _this4.filterColumnsPartial[$field];
5223 }
5224 });
5225 this.onSearch({
5226 currentTarget: currentTarget
5227 }, false);
5228 }
5229 }, {
5230 key: "toggleFilterControl",
5231 value: function toggleFilterControl() {
5232 this.options.filterControlVisible = !this.options.filterControlVisible;
5233 // Controls in original header or container.
5234 var $filterControls = getControlContainer(this).find('.filter-control, .no-filter-control');
5235 if (this.options.filterControlVisible) {
5236 $filterControls.show();
5237 } else {
5238 $filterControls.hide();
5239 this.clearFilterControl();
5240 }
5241
5242 // Controls in fixed header
5243 if (this.options.height) {
5244 var $fixedControls = this.$tableContainer.find('.fixed-table-header table thead').find('.filter-control, .no-filter-control');
5245 $fixedControls.toggle(this.options.filterControlVisible);
5246 fixHeaderCSS(this);
5247 }
5248 var icon = this.options.showButtonIcons ? this.options.filterControlVisible ? this.options.icons.filterControlSwitchHide : this.options.icons.filterControlSwitchShow : '';
5249 var text = this.options.showButtonText ? this.options.filterControlVisible ? this.options.formatFilterControlSwitchHide() : this.options.formatFilterControlSwitchShow() : '';
5250 this.$toolbar.find('>.columns').find('.filter-control-switch').html("".concat(Utils.sprintf(this.constants.html.icon, this.options.iconsPrefix, icon), " ").concat(text));
5251 }
5252 }, {
5253 key: "triggerSearch",
5254 value: function triggerSearch() {
5255 var searchControls = getSearchControls(this);
5256 searchControls.each(function () {
5257 var $element = $$k(this);
5258 if ($element.is('select')) {
5259 $element.trigger('change');
5260 } else {
5261 $element.trigger('keyup');
5262 }
5263 });
5264 }
5265 }, {
5266 key: "_toggleColumn",
5267 value: function _toggleColumn(index, checked, needUpdate) {
5268 this._initialized = false;
5269 _get(_getPrototypeOf(_class.prototype), "_toggleColumn", this).call(this, index, checked, needUpdate);
5270 syncHeaders(this);
5271 }
5272 }]);
5273 return _class;
5274 }($$k.BootstrapTable);
5275
5276}));