UNPKG

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