UNPKG

56.3 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 ($$3) { 'use strict';
6
7 function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
9 var $__default = /*#__PURE__*/_interopDefaultLegacy($$3);
10
11 function _classCallCheck(instance, Constructor) {
12 if (!(instance instanceof Constructor)) {
13 throw new TypeError("Cannot call a class as a function");
14 }
15 }
16
17 function _defineProperties(target, props) {
18 for (var i = 0; i < props.length; i++) {
19 var descriptor = props[i];
20 descriptor.enumerable = descriptor.enumerable || false;
21 descriptor.configurable = true;
22 if ("value" in descriptor) descriptor.writable = true;
23 Object.defineProperty(target, descriptor.key, descriptor);
24 }
25 }
26
27 function _createClass(Constructor, protoProps, staticProps) {
28 if (protoProps) _defineProperties(Constructor.prototype, protoProps);
29 if (staticProps) _defineProperties(Constructor, staticProps);
30 Object.defineProperty(Constructor, "prototype", {
31 writable: false
32 });
33 return Constructor;
34 }
35
36 function _inherits(subClass, superClass) {
37 if (typeof superClass !== "function" && superClass !== null) {
38 throw new TypeError("Super expression must either be null or a function");
39 }
40
41 subClass.prototype = Object.create(superClass && superClass.prototype, {
42 constructor: {
43 value: subClass,
44 writable: true,
45 configurable: true
46 }
47 });
48 Object.defineProperty(subClass, "prototype", {
49 writable: false
50 });
51 if (superClass) _setPrototypeOf(subClass, superClass);
52 }
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
61 function _setPrototypeOf(o, p) {
62 _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
63 o.__proto__ = p;
64 return o;
65 };
66 return _setPrototypeOf(o, p);
67 }
68
69 function _isNativeReflectConstruct() {
70 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
71 if (Reflect.construct.sham) return false;
72 if (typeof Proxy === "function") return true;
73
74 try {
75 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
76 return true;
77 } catch (e) {
78 return false;
79 }
80 }
81
82 function _assertThisInitialized(self) {
83 if (self === void 0) {
84 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
85 }
86
87 return self;
88 }
89
90 function _possibleConstructorReturn(self, call) {
91 if (call && (typeof call === "object" || typeof call === "function")) {
92 return call;
93 } else if (call !== void 0) {
94 throw new TypeError("Derived constructors may only return object or undefined");
95 }
96
97 return _assertThisInitialized(self);
98 }
99
100 function _createSuper(Derived) {
101 var hasNativeReflectConstruct = _isNativeReflectConstruct();
102
103 return function _createSuperInternal() {
104 var Super = _getPrototypeOf(Derived),
105 result;
106
107 if (hasNativeReflectConstruct) {
108 var NewTarget = _getPrototypeOf(this).constructor;
109
110 result = Reflect.construct(Super, arguments, NewTarget);
111 } else {
112 result = Super.apply(this, arguments);
113 }
114
115 return _possibleConstructorReturn(this, result);
116 };
117 }
118
119 function _superPropBase(object, property) {
120 while (!Object.prototype.hasOwnProperty.call(object, property)) {
121 object = _getPrototypeOf(object);
122 if (object === null) break;
123 }
124
125 return object;
126 }
127
128 function _get() {
129 if (typeof Reflect !== "undefined" && Reflect.get) {
130 _get = Reflect.get.bind();
131 } else {
132 _get = function _get(target, property, receiver) {
133 var base = _superPropBase(target, property);
134
135 if (!base) return;
136 var desc = Object.getOwnPropertyDescriptor(base, property);
137
138 if (desc.get) {
139 return desc.get.call(arguments.length < 3 ? target : receiver);
140 }
141
142 return desc.value;
143 };
144 }
145
146 return _get.apply(this, arguments);
147 }
148
149 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
150
151 var check = function (it) {
152 return it && it.Math == Math && it;
153 };
154
155 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
156 var global$a =
157 // eslint-disable-next-line es-x/no-global-this -- safe
158 check(typeof globalThis == 'object' && globalThis) ||
159 check(typeof window == 'object' && window) ||
160 // eslint-disable-next-line no-restricted-globals -- safe
161 check(typeof self == 'object' && self) ||
162 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
163 // eslint-disable-next-line no-new-func -- fallback
164 (function () { return this; })() || Function('return this')();
165
166 var objectGetOwnPropertyDescriptor = {};
167
168 var fails$c = function (exec) {
169 try {
170 return !!exec();
171 } catch (error) {
172 return true;
173 }
174 };
175
176 var fails$b = fails$c;
177
178 // Detect IE8's incomplete defineProperty implementation
179 var descriptors = !fails$b(function () {
180 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
181 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
182 });
183
184 var fails$a = fails$c;
185
186 var functionBindNative = !fails$a(function () {
187 // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
188 var test = (function () { /* empty */ }).bind();
189 // eslint-disable-next-line no-prototype-builtins -- safe
190 return typeof test != 'function' || test.hasOwnProperty('prototype');
191 });
192
193 var NATIVE_BIND$1 = functionBindNative;
194
195 var call$4 = Function.prototype.call;
196
197 var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function () {
198 return call$4.apply(call$4, arguments);
199 };
200
201 var objectPropertyIsEnumerable = {};
202
203 var $propertyIsEnumerable = {}.propertyIsEnumerable;
204 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
205 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
206
207 // Nashorn ~ JDK8 bug
208 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
209
210 // `Object.prototype.propertyIsEnumerable` method implementation
211 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
212 objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
213 var descriptor = getOwnPropertyDescriptor$1(this, V);
214 return !!descriptor && descriptor.enumerable;
215 } : $propertyIsEnumerable;
216
217 var createPropertyDescriptor$3 = function (bitmap, value) {
218 return {
219 enumerable: !(bitmap & 1),
220 configurable: !(bitmap & 2),
221 writable: !(bitmap & 4),
222 value: value
223 };
224 };
225
226 var NATIVE_BIND = functionBindNative;
227
228 var FunctionPrototype$1 = Function.prototype;
229 var bind = FunctionPrototype$1.bind;
230 var call$3 = FunctionPrototype$1.call;
231 var uncurryThis$b = NATIVE_BIND && bind.bind(call$3, call$3);
232
233 var functionUncurryThis = NATIVE_BIND ? function (fn) {
234 return fn && uncurryThis$b(fn);
235 } : function (fn) {
236 return fn && function () {
237 return call$3.apply(fn, arguments);
238 };
239 };
240
241 var uncurryThis$a = functionUncurryThis;
242
243 var toString$1 = uncurryThis$a({}.toString);
244 var stringSlice = uncurryThis$a(''.slice);
245
246 var classofRaw$1 = function (it) {
247 return stringSlice(toString$1(it), 8, -1);
248 };
249
250 var uncurryThis$9 = functionUncurryThis;
251 var fails$9 = fails$c;
252 var classof$3 = classofRaw$1;
253
254 var $Object$3 = Object;
255 var split = uncurryThis$9(''.split);
256
257 // fallback for non-array-like ES3 and non-enumerable old V8 strings
258 var indexedObject = fails$9(function () {
259 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
260 // eslint-disable-next-line no-prototype-builtins -- safe
261 return !$Object$3('z').propertyIsEnumerable(0);
262 }) ? function (it) {
263 return classof$3(it) == 'String' ? split(it, '') : $Object$3(it);
264 } : $Object$3;
265
266 var $TypeError$7 = TypeError;
267
268 // `RequireObjectCoercible` abstract operation
269 // https://tc39.es/ecma262/#sec-requireobjectcoercible
270 var requireObjectCoercible$2 = function (it) {
271 if (it == undefined) throw $TypeError$7("Can't call method on " + it);
272 return it;
273 };
274
275 // toObject with fallback for non-array-like ES3 strings
276 var IndexedObject = indexedObject;
277 var requireObjectCoercible$1 = requireObjectCoercible$2;
278
279 var toIndexedObject$3 = function (it) {
280 return IndexedObject(requireObjectCoercible$1(it));
281 };
282
283 // `IsCallable` abstract operation
284 // https://tc39.es/ecma262/#sec-iscallable
285 var isCallable$c = function (argument) {
286 return typeof argument == 'function';
287 };
288
289 var isCallable$b = isCallable$c;
290
291 var isObject$7 = function (it) {
292 return typeof it == 'object' ? it !== null : isCallable$b(it);
293 };
294
295 var global$9 = global$a;
296 var isCallable$a = isCallable$c;
297
298 var aFunction = function (argument) {
299 return isCallable$a(argument) ? argument : undefined;
300 };
301
302 var getBuiltIn$4 = function (namespace, method) {
303 return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
304 };
305
306 var uncurryThis$8 = functionUncurryThis;
307
308 var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
309
310 var getBuiltIn$3 = getBuiltIn$4;
311
312 var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
313
314 var global$8 = global$a;
315 var userAgent = engineUserAgent;
316
317 var process = global$8.process;
318 var Deno = global$8.Deno;
319 var versions = process && process.versions || Deno && Deno.version;
320 var v8 = versions && versions.v8;
321 var match, version;
322
323 if (v8) {
324 match = v8.split('.');
325 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
326 // but their correct versions are not interesting for us
327 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
328 }
329
330 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
331 // so check `userAgent` even if `.v8` exists, but 0
332 if (!version && userAgent) {
333 match = userAgent.match(/Edge\/(\d+)/);
334 if (!match || match[1] >= 74) {
335 match = userAgent.match(/Chrome\/(\d+)/);
336 if (match) version = +match[1];
337 }
338 }
339
340 var engineV8Version = version;
341
342 /* eslint-disable es-x/no-symbol -- required for testing */
343
344 var V8_VERSION$2 = engineV8Version;
345 var fails$8 = fails$c;
346
347 // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
348 var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$8(function () {
349 var symbol = Symbol();
350 // Chrome 38 Symbol has incorrect toString conversion
351 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
352 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
353 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
354 !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
355 });
356
357 /* eslint-disable es-x/no-symbol -- required for testing */
358
359 var NATIVE_SYMBOL$1 = nativeSymbol;
360
361 var useSymbolAsUid = NATIVE_SYMBOL$1
362 && !Symbol.sham
363 && typeof Symbol.iterator == 'symbol';
364
365 var getBuiltIn$2 = getBuiltIn$4;
366 var isCallable$9 = isCallable$c;
367 var isPrototypeOf = objectIsPrototypeOf;
368 var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
369
370 var $Object$2 = Object;
371
372 var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
373 return typeof it == 'symbol';
374 } : function (it) {
375 var $Symbol = getBuiltIn$2('Symbol');
376 return isCallable$9($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
377 };
378
379 var $String$1 = String;
380
381 var tryToString$2 = function (argument) {
382 try {
383 return $String$1(argument);
384 } catch (error) {
385 return 'Object';
386 }
387 };
388
389 var isCallable$8 = isCallable$c;
390 var tryToString$1 = tryToString$2;
391
392 var $TypeError$6 = TypeError;
393
394 // `Assert: IsCallable(argument) is true`
395 var aCallable$1 = function (argument) {
396 if (isCallable$8(argument)) return argument;
397 throw $TypeError$6(tryToString$1(argument) + ' is not a function');
398 };
399
400 var aCallable = aCallable$1;
401
402 // `GetMethod` abstract operation
403 // https://tc39.es/ecma262/#sec-getmethod
404 var getMethod$1 = function (V, P) {
405 var func = V[P];
406 return func == null ? undefined : aCallable(func);
407 };
408
409 var call$2 = functionCall;
410 var isCallable$7 = isCallable$c;
411 var isObject$6 = isObject$7;
412
413 var $TypeError$5 = TypeError;
414
415 // `OrdinaryToPrimitive` abstract operation
416 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
417 var ordinaryToPrimitive$1 = function (input, pref) {
418 var fn, val;
419 if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
420 if (isCallable$7(fn = input.valueOf) && !isObject$6(val = call$2(fn, input))) return val;
421 if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$6(val = call$2(fn, input))) return val;
422 throw $TypeError$5("Can't convert object to primitive value");
423 };
424
425 var shared$3 = {exports: {}};
426
427 var global$7 = global$a;
428
429 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
430 var defineProperty$1 = Object.defineProperty;
431
432 var defineGlobalProperty$3 = function (key, value) {
433 try {
434 defineProperty$1(global$7, key, { value: value, configurable: true, writable: true });
435 } catch (error) {
436 global$7[key] = value;
437 } return value;
438 };
439
440 var global$6 = global$a;
441 var defineGlobalProperty$2 = defineGlobalProperty$3;
442
443 var SHARED = '__core-js_shared__';
444 var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
445
446 var sharedStore = store$3;
447
448 var store$2 = sharedStore;
449
450 (shared$3.exports = function (key, value) {
451 return store$2[key] || (store$2[key] = value !== undefined ? value : {});
452 })('versions', []).push({
453 version: '3.22.8',
454 mode: 'global',
455 copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
456 license: 'https://github.com/zloirock/core-js/blob/v3.22.8/LICENSE',
457 source: 'https://github.com/zloirock/core-js'
458 });
459
460 var requireObjectCoercible = requireObjectCoercible$2;
461
462 var $Object$1 = Object;
463
464 // `ToObject` abstract operation
465 // https://tc39.es/ecma262/#sec-toobject
466 var toObject$3 = function (argument) {
467 return $Object$1(requireObjectCoercible(argument));
468 };
469
470 var uncurryThis$7 = functionUncurryThis;
471 var toObject$2 = toObject$3;
472
473 var hasOwnProperty = uncurryThis$7({}.hasOwnProperty);
474
475 // `HasOwnProperty` abstract operation
476 // https://tc39.es/ecma262/#sec-hasownproperty
477 // eslint-disable-next-line es-x/no-object-hasown -- safe
478 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
479 return hasOwnProperty(toObject$2(it), key);
480 };
481
482 var uncurryThis$6 = functionUncurryThis;
483
484 var id = 0;
485 var postfix = Math.random();
486 var toString = uncurryThis$6(1.0.toString);
487
488 var uid$2 = function (key) {
489 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
490 };
491
492 var global$5 = global$a;
493 var shared$2 = shared$3.exports;
494 var hasOwn$6 = hasOwnProperty_1;
495 var uid$1 = uid$2;
496 var NATIVE_SYMBOL = nativeSymbol;
497 var USE_SYMBOL_AS_UID = useSymbolAsUid;
498
499 var WellKnownSymbolsStore = shared$2('wks');
500 var Symbol$1 = global$5.Symbol;
501 var symbolFor = Symbol$1 && Symbol$1['for'];
502 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
503
504 var wellKnownSymbol$6 = function (name) {
505 if (!hasOwn$6(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
506 var description = 'Symbol.' + name;
507 if (NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)) {
508 WellKnownSymbolsStore[name] = Symbol$1[name];
509 } else if (USE_SYMBOL_AS_UID && symbolFor) {
510 WellKnownSymbolsStore[name] = symbolFor(description);
511 } else {
512 WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
513 }
514 } return WellKnownSymbolsStore[name];
515 };
516
517 var call$1 = functionCall;
518 var isObject$5 = isObject$7;
519 var isSymbol$1 = isSymbol$2;
520 var getMethod = getMethod$1;
521 var ordinaryToPrimitive = ordinaryToPrimitive$1;
522 var wellKnownSymbol$5 = wellKnownSymbol$6;
523
524 var $TypeError$4 = TypeError;
525 var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
526
527 // `ToPrimitive` abstract operation
528 // https://tc39.es/ecma262/#sec-toprimitive
529 var toPrimitive$1 = function (input, pref) {
530 if (!isObject$5(input) || isSymbol$1(input)) return input;
531 var exoticToPrim = getMethod(input, TO_PRIMITIVE);
532 var result;
533 if (exoticToPrim) {
534 if (pref === undefined) pref = 'default';
535 result = call$1(exoticToPrim, input, pref);
536 if (!isObject$5(result) || isSymbol$1(result)) return result;
537 throw $TypeError$4("Can't convert object to primitive value");
538 }
539 if (pref === undefined) pref = 'number';
540 return ordinaryToPrimitive(input, pref);
541 };
542
543 var toPrimitive = toPrimitive$1;
544 var isSymbol = isSymbol$2;
545
546 // `ToPropertyKey` abstract operation
547 // https://tc39.es/ecma262/#sec-topropertykey
548 var toPropertyKey$3 = function (argument) {
549 var key = toPrimitive(argument, 'string');
550 return isSymbol(key) ? key : key + '';
551 };
552
553 var global$4 = global$a;
554 var isObject$4 = isObject$7;
555
556 var document = global$4.document;
557 // typeof document.createElement is 'object' in old IE
558 var EXISTS$1 = isObject$4(document) && isObject$4(document.createElement);
559
560 var documentCreateElement = function (it) {
561 return EXISTS$1 ? document.createElement(it) : {};
562 };
563
564 var DESCRIPTORS$6 = descriptors;
565 var fails$7 = fails$c;
566 var createElement = documentCreateElement;
567
568 // Thanks to IE8 for its funny defineProperty
569 var ie8DomDefine = !DESCRIPTORS$6 && !fails$7(function () {
570 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
571 return Object.defineProperty(createElement('div'), 'a', {
572 get: function () { return 7; }
573 }).a != 7;
574 });
575
576 var DESCRIPTORS$5 = descriptors;
577 var call = functionCall;
578 var propertyIsEnumerableModule = objectPropertyIsEnumerable;
579 var createPropertyDescriptor$2 = createPropertyDescriptor$3;
580 var toIndexedObject$2 = toIndexedObject$3;
581 var toPropertyKey$2 = toPropertyKey$3;
582 var hasOwn$5 = hasOwnProperty_1;
583 var IE8_DOM_DEFINE$1 = ie8DomDefine;
584
585 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
586 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
587
588 // `Object.getOwnPropertyDescriptor` method
589 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
590 objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
591 O = toIndexedObject$2(O);
592 P = toPropertyKey$2(P);
593 if (IE8_DOM_DEFINE$1) try {
594 return $getOwnPropertyDescriptor$1(O, P);
595 } catch (error) { /* empty */ }
596 if (hasOwn$5(O, P)) return createPropertyDescriptor$2(!call(propertyIsEnumerableModule.f, O, P), O[P]);
597 };
598
599 var objectDefineProperty = {};
600
601 var DESCRIPTORS$4 = descriptors;
602 var fails$6 = fails$c;
603
604 // V8 ~ Chrome 36-
605 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
606 var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$6(function () {
607 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
608 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
609 value: 42,
610 writable: false
611 }).prototype != 42;
612 });
613
614 var isObject$3 = isObject$7;
615
616 var $String = String;
617 var $TypeError$3 = TypeError;
618
619 // `Assert: Type(argument) is Object`
620 var anObject$2 = function (argument) {
621 if (isObject$3(argument)) return argument;
622 throw $TypeError$3($String(argument) + ' is not an object');
623 };
624
625 var DESCRIPTORS$3 = descriptors;
626 var IE8_DOM_DEFINE = ie8DomDefine;
627 var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
628 var anObject$1 = anObject$2;
629 var toPropertyKey$1 = toPropertyKey$3;
630
631 var $TypeError$2 = TypeError;
632 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
633 var $defineProperty = Object.defineProperty;
634 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
635 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
636 var ENUMERABLE = 'enumerable';
637 var CONFIGURABLE$1 = 'configurable';
638 var WRITABLE = 'writable';
639
640 // `Object.defineProperty` method
641 // https://tc39.es/ecma262/#sec-object.defineproperty
642 objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
643 anObject$1(O);
644 P = toPropertyKey$1(P);
645 anObject$1(Attributes);
646 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
647 var current = $getOwnPropertyDescriptor(O, P);
648 if (current && current[WRITABLE]) {
649 O[P] = Attributes.value;
650 Attributes = {
651 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
652 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
653 writable: false
654 };
655 }
656 } return $defineProperty(O, P, Attributes);
657 } : $defineProperty : function defineProperty(O, P, Attributes) {
658 anObject$1(O);
659 P = toPropertyKey$1(P);
660 anObject$1(Attributes);
661 if (IE8_DOM_DEFINE) try {
662 return $defineProperty(O, P, Attributes);
663 } catch (error) { /* empty */ }
664 if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
665 if ('value' in Attributes) O[P] = Attributes.value;
666 return O;
667 };
668
669 var DESCRIPTORS$2 = descriptors;
670 var definePropertyModule$2 = objectDefineProperty;
671 var createPropertyDescriptor$1 = createPropertyDescriptor$3;
672
673 var createNonEnumerableProperty$3 = DESCRIPTORS$2 ? function (object, key, value) {
674 return definePropertyModule$2.f(object, key, createPropertyDescriptor$1(1, value));
675 } : function (object, key, value) {
676 object[key] = value;
677 return object;
678 };
679
680 var makeBuiltIn$2 = {exports: {}};
681
682 var DESCRIPTORS$1 = descriptors;
683 var hasOwn$4 = hasOwnProperty_1;
684
685 var FunctionPrototype = Function.prototype;
686 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
687 var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
688
689 var EXISTS = hasOwn$4(FunctionPrototype, 'name');
690 // additional protection from minified / mangled / dropped function names
691 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
692 var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
693
694 var functionName = {
695 EXISTS: EXISTS,
696 PROPER: PROPER,
697 CONFIGURABLE: CONFIGURABLE
698 };
699
700 var uncurryThis$5 = functionUncurryThis;
701 var isCallable$6 = isCallable$c;
702 var store$1 = sharedStore;
703
704 var functionToString = uncurryThis$5(Function.toString);
705
706 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
707 if (!isCallable$6(store$1.inspectSource)) {
708 store$1.inspectSource = function (it) {
709 return functionToString(it);
710 };
711 }
712
713 var inspectSource$3 = store$1.inspectSource;
714
715 var global$3 = global$a;
716 var isCallable$5 = isCallable$c;
717 var inspectSource$2 = inspectSource$3;
718
719 var WeakMap$1 = global$3.WeakMap;
720
721 var nativeWeakMap = isCallable$5(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
722
723 var shared$1 = shared$3.exports;
724 var uid = uid$2;
725
726 var keys = shared$1('keys');
727
728 var sharedKey$1 = function (key) {
729 return keys[key] || (keys[key] = uid(key));
730 };
731
732 var hiddenKeys$3 = {};
733
734 var NATIVE_WEAK_MAP = nativeWeakMap;
735 var global$2 = global$a;
736 var uncurryThis$4 = functionUncurryThis;
737 var isObject$2 = isObject$7;
738 var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
739 var hasOwn$3 = hasOwnProperty_1;
740 var shared = sharedStore;
741 var sharedKey = sharedKey$1;
742 var hiddenKeys$2 = hiddenKeys$3;
743
744 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
745 var TypeError$1 = global$2.TypeError;
746 var WeakMap = global$2.WeakMap;
747 var set, get, has;
748
749 var enforce = function (it) {
750 return has(it) ? get(it) : set(it, {});
751 };
752
753 var getterFor = function (TYPE) {
754 return function (it) {
755 var state;
756 if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
757 throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
758 } return state;
759 };
760 };
761
762 if (NATIVE_WEAK_MAP || shared.state) {
763 var store = shared.state || (shared.state = new WeakMap());
764 var wmget = uncurryThis$4(store.get);
765 var wmhas = uncurryThis$4(store.has);
766 var wmset = uncurryThis$4(store.set);
767 set = function (it, metadata) {
768 if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
769 metadata.facade = it;
770 wmset(store, it, metadata);
771 return metadata;
772 };
773 get = function (it) {
774 return wmget(store, it) || {};
775 };
776 has = function (it) {
777 return wmhas(store, it);
778 };
779 } else {
780 var STATE = sharedKey('state');
781 hiddenKeys$2[STATE] = true;
782 set = function (it, metadata) {
783 if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
784 metadata.facade = it;
785 createNonEnumerableProperty$2(it, STATE, metadata);
786 return metadata;
787 };
788 get = function (it) {
789 return hasOwn$3(it, STATE) ? it[STATE] : {};
790 };
791 has = function (it) {
792 return hasOwn$3(it, STATE);
793 };
794 }
795
796 var internalState = {
797 set: set,
798 get: get,
799 has: has,
800 enforce: enforce,
801 getterFor: getterFor
802 };
803
804 var fails$5 = fails$c;
805 var isCallable$4 = isCallable$c;
806 var hasOwn$2 = hasOwnProperty_1;
807 var DESCRIPTORS = descriptors;
808 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
809 var inspectSource$1 = inspectSource$3;
810 var InternalStateModule = internalState;
811
812 var enforceInternalState = InternalStateModule.enforce;
813 var getInternalState = InternalStateModule.get;
814 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
815 var defineProperty = Object.defineProperty;
816
817 var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$5(function () {
818 return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
819 });
820
821 var TEMPLATE = String(String).split('String');
822
823 var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
824 if (String(name).slice(0, 7) === 'Symbol(') {
825 name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
826 }
827 if (options && options.getter) name = 'get ' + name;
828 if (options && options.setter) name = 'set ' + name;
829 if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
830 defineProperty(value, 'name', { value: name, configurable: true });
831 }
832 if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
833 defineProperty(value, 'length', { value: options.arity });
834 }
835 try {
836 if (options && hasOwn$2(options, 'constructor') && options.constructor) {
837 if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
838 // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
839 } else if (value.prototype) value.prototype = undefined;
840 } catch (error) { /* empty */ }
841 var state = enforceInternalState(value);
842 if (!hasOwn$2(state, 'source')) {
843 state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
844 } return value;
845 };
846
847 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
848 // eslint-disable-next-line no-extend-native -- required
849 Function.prototype.toString = makeBuiltIn$1(function toString() {
850 return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
851 }, 'toString');
852
853 var isCallable$3 = isCallable$c;
854 var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
855 var makeBuiltIn = makeBuiltIn$2.exports;
856 var defineGlobalProperty$1 = defineGlobalProperty$3;
857
858 var defineBuiltIn$1 = function (O, key, value, options) {
859 if (!options) options = {};
860 var simple = options.enumerable;
861 var name = options.name !== undefined ? options.name : key;
862 if (isCallable$3(value)) makeBuiltIn(value, name, options);
863 if (options.global) {
864 if (simple) O[key] = value;
865 else defineGlobalProperty$1(key, value);
866 } else {
867 if (!options.unsafe) delete O[key];
868 else if (O[key]) simple = true;
869 if (simple) O[key] = value;
870 else createNonEnumerableProperty$1(O, key, value);
871 } return O;
872 };
873
874 var objectGetOwnPropertyNames = {};
875
876 var ceil = Math.ceil;
877 var floor = Math.floor;
878
879 // `Math.trunc` method
880 // https://tc39.es/ecma262/#sec-math.trunc
881 // eslint-disable-next-line es-x/no-math-trunc -- safe
882 var mathTrunc = Math.trunc || function trunc(x) {
883 var n = +x;
884 return (n > 0 ? floor : ceil)(n);
885 };
886
887 var trunc = mathTrunc;
888
889 // `ToIntegerOrInfinity` abstract operation
890 // https://tc39.es/ecma262/#sec-tointegerorinfinity
891 var toIntegerOrInfinity$3 = function (argument) {
892 var number = +argument;
893 // eslint-disable-next-line no-self-compare -- NaN check
894 return number !== number || number === 0 ? 0 : trunc(number);
895 };
896
897 var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
898
899 var max$1 = Math.max;
900 var min$2 = Math.min;
901
902 // Helper for a popular repeating case of the spec:
903 // Let integer be ? ToInteger(index).
904 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
905 var toAbsoluteIndex$2 = function (index, length) {
906 var integer = toIntegerOrInfinity$2(index);
907 return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
908 };
909
910 var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
911
912 var min$1 = Math.min;
913
914 // `ToLength` abstract operation
915 // https://tc39.es/ecma262/#sec-tolength
916 var toLength$1 = function (argument) {
917 return argument > 0 ? min$1(toIntegerOrInfinity$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
918 };
919
920 var toLength = toLength$1;
921
922 // `LengthOfArrayLike` abstract operation
923 // https://tc39.es/ecma262/#sec-lengthofarraylike
924 var lengthOfArrayLike$3 = function (obj) {
925 return toLength(obj.length);
926 };
927
928 var toIndexedObject$1 = toIndexedObject$3;
929 var toAbsoluteIndex$1 = toAbsoluteIndex$2;
930 var lengthOfArrayLike$2 = lengthOfArrayLike$3;
931
932 // `Array.prototype.{ indexOf, includes }` methods implementation
933 var createMethod = function (IS_INCLUDES) {
934 return function ($this, el, fromIndex) {
935 var O = toIndexedObject$1($this);
936 var length = lengthOfArrayLike$2(O);
937 var index = toAbsoluteIndex$1(fromIndex, length);
938 var value;
939 // Array#includes uses SameValueZero equality algorithm
940 // eslint-disable-next-line no-self-compare -- NaN check
941 if (IS_INCLUDES && el != el) while (length > index) {
942 value = O[index++];
943 // eslint-disable-next-line no-self-compare -- NaN check
944 if (value != value) return true;
945 // Array#indexOf ignores holes, Array#includes - not
946 } else for (;length > index; index++) {
947 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
948 } return !IS_INCLUDES && -1;
949 };
950 };
951
952 var arrayIncludes = {
953 // `Array.prototype.includes` method
954 // https://tc39.es/ecma262/#sec-array.prototype.includes
955 includes: createMethod(true),
956 // `Array.prototype.indexOf` method
957 // https://tc39.es/ecma262/#sec-array.prototype.indexof
958 indexOf: createMethod(false)
959 };
960
961 var uncurryThis$3 = functionUncurryThis;
962 var hasOwn$1 = hasOwnProperty_1;
963 var toIndexedObject = toIndexedObject$3;
964 var indexOf = arrayIncludes.indexOf;
965 var hiddenKeys$1 = hiddenKeys$3;
966
967 var push = uncurryThis$3([].push);
968
969 var objectKeysInternal = function (object, names) {
970 var O = toIndexedObject(object);
971 var i = 0;
972 var result = [];
973 var key;
974 for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
975 // Don't enum bug & hidden keys
976 while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
977 ~indexOf(result, key) || push(result, key);
978 }
979 return result;
980 };
981
982 // IE8- don't enum bug keys
983 var enumBugKeys$1 = [
984 'constructor',
985 'hasOwnProperty',
986 'isPrototypeOf',
987 'propertyIsEnumerable',
988 'toLocaleString',
989 'toString',
990 'valueOf'
991 ];
992
993 var internalObjectKeys = objectKeysInternal;
994 var enumBugKeys = enumBugKeys$1;
995
996 var hiddenKeys = enumBugKeys.concat('length', 'prototype');
997
998 // `Object.getOwnPropertyNames` method
999 // https://tc39.es/ecma262/#sec-object.getownpropertynames
1000 // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
1001 objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1002 return internalObjectKeys(O, hiddenKeys);
1003 };
1004
1005 var objectGetOwnPropertySymbols = {};
1006
1007 // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
1008 objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1009
1010 var getBuiltIn$1 = getBuiltIn$4;
1011 var uncurryThis$2 = functionUncurryThis;
1012 var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1013 var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1014 var anObject = anObject$2;
1015
1016 var concat = uncurryThis$2([].concat);
1017
1018 // all object keys, includes non-enumerable and symbols
1019 var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
1020 var keys = getOwnPropertyNamesModule.f(anObject(it));
1021 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1022 return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
1023 };
1024
1025 var hasOwn = hasOwnProperty_1;
1026 var ownKeys = ownKeys$1;
1027 var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1028 var definePropertyModule$1 = objectDefineProperty;
1029
1030 var copyConstructorProperties$1 = function (target, source, exceptions) {
1031 var keys = ownKeys(source);
1032 var defineProperty = definePropertyModule$1.f;
1033 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1034 for (var i = 0; i < keys.length; i++) {
1035 var key = keys[i];
1036 if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1037 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1038 }
1039 }
1040 };
1041
1042 var fails$4 = fails$c;
1043 var isCallable$2 = isCallable$c;
1044
1045 var replacement = /#|\.prototype\./;
1046
1047 var isForced$1 = function (feature, detection) {
1048 var value = data[normalize(feature)];
1049 return value == POLYFILL ? true
1050 : value == NATIVE ? false
1051 : isCallable$2(detection) ? fails$4(detection)
1052 : !!detection;
1053 };
1054
1055 var normalize = isForced$1.normalize = function (string) {
1056 return String(string).replace(replacement, '.').toLowerCase();
1057 };
1058
1059 var data = isForced$1.data = {};
1060 var NATIVE = isForced$1.NATIVE = 'N';
1061 var POLYFILL = isForced$1.POLYFILL = 'P';
1062
1063 var isForced_1 = isForced$1;
1064
1065 var global$1 = global$a;
1066 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1067 var createNonEnumerableProperty = createNonEnumerableProperty$3;
1068 var defineBuiltIn = defineBuiltIn$1;
1069 var defineGlobalProperty = defineGlobalProperty$3;
1070 var copyConstructorProperties = copyConstructorProperties$1;
1071 var isForced = isForced_1;
1072
1073 /*
1074 options.target - name of the target object
1075 options.global - target is the global object
1076 options.stat - export as static methods of target
1077 options.proto - export as prototype methods of target
1078 options.real - real prototype method for the `pure` version
1079 options.forced - export even if the native feature is available
1080 options.bind - bind methods to the target, required for the `pure` version
1081 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1082 options.unsafe - use the simple assignment of property instead of delete + defineProperty
1083 options.sham - add a flag to not completely full polyfills
1084 options.enumerable - export as enumerable property
1085 options.dontCallGetSet - prevent calling a getter on target
1086 options.name - the .name of the function if it does not match the key
1087 */
1088 var _export = function (options, source) {
1089 var TARGET = options.target;
1090 var GLOBAL = options.global;
1091 var STATIC = options.stat;
1092 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1093 if (GLOBAL) {
1094 target = global$1;
1095 } else if (STATIC) {
1096 target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
1097 } else {
1098 target = (global$1[TARGET] || {}).prototype;
1099 }
1100 if (target) for (key in source) {
1101 sourceProperty = source[key];
1102 if (options.dontCallGetSet) {
1103 descriptor = getOwnPropertyDescriptor(target, key);
1104 targetProperty = descriptor && descriptor.value;
1105 } else targetProperty = target[key];
1106 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1107 // contained in target
1108 if (!FORCED && targetProperty !== undefined) {
1109 if (typeof sourceProperty == typeof targetProperty) continue;
1110 copyConstructorProperties(sourceProperty, targetProperty);
1111 }
1112 // add a flag to not completely full polyfills
1113 if (options.sham || (targetProperty && targetProperty.sham)) {
1114 createNonEnumerableProperty(sourceProperty, 'sham', true);
1115 }
1116 defineBuiltIn(target, key, sourceProperty, options);
1117 }
1118 };
1119
1120 var classof$2 = classofRaw$1;
1121
1122 // `IsArray` abstract operation
1123 // https://tc39.es/ecma262/#sec-isarray
1124 // eslint-disable-next-line es-x/no-array-isarray -- safe
1125 var isArray$2 = Array.isArray || function isArray(argument) {
1126 return classof$2(argument) == 'Array';
1127 };
1128
1129 var $TypeError$1 = TypeError;
1130 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1131
1132 var doesNotExceedSafeInteger$2 = function (it) {
1133 if (it > MAX_SAFE_INTEGER) throw $TypeError$1('Maximum allowed index exceeded');
1134 return it;
1135 };
1136
1137 var toPropertyKey = toPropertyKey$3;
1138 var definePropertyModule = objectDefineProperty;
1139 var createPropertyDescriptor = createPropertyDescriptor$3;
1140
1141 var createProperty$2 = function (object, key, value) {
1142 var propertyKey = toPropertyKey(key);
1143 if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
1144 else object[propertyKey] = value;
1145 };
1146
1147 var wellKnownSymbol$4 = wellKnownSymbol$6;
1148
1149 var TO_STRING_TAG$1 = wellKnownSymbol$4('toStringTag');
1150 var test = {};
1151
1152 test[TO_STRING_TAG$1] = 'z';
1153
1154 var toStringTagSupport = String(test) === '[object z]';
1155
1156 var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1157 var isCallable$1 = isCallable$c;
1158 var classofRaw = classofRaw$1;
1159 var wellKnownSymbol$3 = wellKnownSymbol$6;
1160
1161 var TO_STRING_TAG = wellKnownSymbol$3('toStringTag');
1162 var $Object = Object;
1163
1164 // ES3 wrong here
1165 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1166
1167 // fallback for IE11 Script Access Denied error
1168 var tryGet = function (it, key) {
1169 try {
1170 return it[key];
1171 } catch (error) { /* empty */ }
1172 };
1173
1174 // getting tag from ES6+ `Object.prototype.toString`
1175 var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1176 var O, tag, result;
1177 return it === undefined ? 'Undefined' : it === null ? 'Null'
1178 // @@toStringTag case
1179 : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1180 // builtinTag case
1181 : CORRECT_ARGUMENTS ? classofRaw(O)
1182 // ES3 arguments fallback
1183 : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
1184 };
1185
1186 var uncurryThis$1 = functionUncurryThis;
1187 var fails$3 = fails$c;
1188 var isCallable = isCallable$c;
1189 var classof = classof$1;
1190 var getBuiltIn = getBuiltIn$4;
1191 var inspectSource = inspectSource$3;
1192
1193 var noop = function () { /* empty */ };
1194 var empty = [];
1195 var construct = getBuiltIn('Reflect', 'construct');
1196 var constructorRegExp = /^\s*(?:class|function)\b/;
1197 var exec = uncurryThis$1(constructorRegExp.exec);
1198 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1199
1200 var isConstructorModern = function isConstructor(argument) {
1201 if (!isCallable(argument)) return false;
1202 try {
1203 construct(noop, empty, argument);
1204 return true;
1205 } catch (error) {
1206 return false;
1207 }
1208 };
1209
1210 var isConstructorLegacy = function isConstructor(argument) {
1211 if (!isCallable(argument)) return false;
1212 switch (classof(argument)) {
1213 case 'AsyncFunction':
1214 case 'GeneratorFunction':
1215 case 'AsyncGeneratorFunction': return false;
1216 }
1217 try {
1218 // we can't check .prototype since constructors produced by .bind haven't it
1219 // `Function#toString` throws on some built-it function in some legacy engines
1220 // (for example, `DOMQuad` and similar in FF41-)
1221 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1222 } catch (error) {
1223 return true;
1224 }
1225 };
1226
1227 isConstructorLegacy.sham = true;
1228
1229 // `IsConstructor` abstract operation
1230 // https://tc39.es/ecma262/#sec-isconstructor
1231 var isConstructor$1 = !construct || fails$3(function () {
1232 var called;
1233 return isConstructorModern(isConstructorModern.call)
1234 || !isConstructorModern(Object)
1235 || !isConstructorModern(function () { called = true; })
1236 || called;
1237 }) ? isConstructorLegacy : isConstructorModern;
1238
1239 var isArray$1 = isArray$2;
1240 var isConstructor = isConstructor$1;
1241 var isObject$1 = isObject$7;
1242 var wellKnownSymbol$2 = wellKnownSymbol$6;
1243
1244 var SPECIES$1 = wellKnownSymbol$2('species');
1245 var $Array = Array;
1246
1247 // a part of `ArraySpeciesCreate` abstract operation
1248 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1249 var arraySpeciesConstructor$1 = function (originalArray) {
1250 var C;
1251 if (isArray$1(originalArray)) {
1252 C = originalArray.constructor;
1253 // cross-realm fallback
1254 if (isConstructor(C) && (C === $Array || isArray$1(C.prototype))) C = undefined;
1255 else if (isObject$1(C)) {
1256 C = C[SPECIES$1];
1257 if (C === null) C = undefined;
1258 }
1259 } return C === undefined ? $Array : C;
1260 };
1261
1262 var arraySpeciesConstructor = arraySpeciesConstructor$1;
1263
1264 // `ArraySpeciesCreate` abstract operation
1265 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1266 var arraySpeciesCreate$2 = function (originalArray, length) {
1267 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1268 };
1269
1270 var fails$2 = fails$c;
1271 var wellKnownSymbol$1 = wellKnownSymbol$6;
1272 var V8_VERSION$1 = engineV8Version;
1273
1274 var SPECIES = wellKnownSymbol$1('species');
1275
1276 var arrayMethodHasSpeciesSupport$2 = function (METHOD_NAME) {
1277 // We can't use this feature detection in V8 since it causes
1278 // deoptimization and serious performance degradation
1279 // https://github.com/zloirock/core-js/issues/677
1280 return V8_VERSION$1 >= 51 || !fails$2(function () {
1281 var array = [];
1282 var constructor = array.constructor = {};
1283 constructor[SPECIES] = function () {
1284 return { foo: 1 };
1285 };
1286 return array[METHOD_NAME](Boolean).foo !== 1;
1287 });
1288 };
1289
1290 var $$2 = _export;
1291 var fails$1 = fails$c;
1292 var isArray = isArray$2;
1293 var isObject = isObject$7;
1294 var toObject$1 = toObject$3;
1295 var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1296 var doesNotExceedSafeInteger$1 = doesNotExceedSafeInteger$2;
1297 var createProperty$1 = createProperty$2;
1298 var arraySpeciesCreate$1 = arraySpeciesCreate$2;
1299 var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$2;
1300 var wellKnownSymbol = wellKnownSymbol$6;
1301 var V8_VERSION = engineV8Version;
1302
1303 var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1304
1305 // We can't use this feature detection in V8 since it causes
1306 // deoptimization and serious performance degradation
1307 // https://github.com/zloirock/core-js/issues/679
1308 var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$1(function () {
1309 var array = [];
1310 array[IS_CONCAT_SPREADABLE] = false;
1311 return array.concat()[0] !== array;
1312 });
1313
1314 var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$1('concat');
1315
1316 var isConcatSpreadable = function (O) {
1317 if (!isObject(O)) return false;
1318 var spreadable = O[IS_CONCAT_SPREADABLE];
1319 return spreadable !== undefined ? !!spreadable : isArray(O);
1320 };
1321
1322 var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1323
1324 // `Array.prototype.concat` method
1325 // https://tc39.es/ecma262/#sec-array.prototype.concat
1326 // with adding support of @@isConcatSpreadable and @@species
1327 $$2({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
1328 // eslint-disable-next-line no-unused-vars -- required for `.length`
1329 concat: function concat(arg) {
1330 var O = toObject$1(this);
1331 var A = arraySpeciesCreate$1(O, 0);
1332 var n = 0;
1333 var i, k, length, len, E;
1334 for (i = -1, length = arguments.length; i < length; i++) {
1335 E = i === -1 ? O : arguments[i];
1336 if (isConcatSpreadable(E)) {
1337 len = lengthOfArrayLike$1(E);
1338 doesNotExceedSafeInteger$1(n + len);
1339 for (k = 0; k < len; k++, n++) if (k in E) createProperty$1(A, n, E[k]);
1340 } else {
1341 doesNotExceedSafeInteger$1(n + 1);
1342 createProperty$1(A, n++, E);
1343 }
1344 }
1345 A.length = n;
1346 return A;
1347 }
1348 });
1349
1350 var fails = fails$c;
1351
1352 var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
1353 var method = [][METHOD_NAME];
1354 return !!method && fails(function () {
1355 // eslint-disable-next-line no-useless-call -- required for testing
1356 method.call(null, argument || function () { return 1; }, 1);
1357 });
1358 };
1359
1360 /* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
1361 var $$1 = _export;
1362 var uncurryThis = functionUncurryThis;
1363 var $IndexOf = arrayIncludes.indexOf;
1364 var arrayMethodIsStrict = arrayMethodIsStrict$1;
1365
1366 var un$IndexOf = uncurryThis([].indexOf);
1367
1368 var NEGATIVE_ZERO = !!un$IndexOf && 1 / un$IndexOf([1], 1, -0) < 0;
1369 var STRICT_METHOD = arrayMethodIsStrict('indexOf');
1370
1371 // `Array.prototype.indexOf` method
1372 // https://tc39.es/ecma262/#sec-array.prototype.indexof
1373 $$1({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {
1374 indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
1375 var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
1376 return NEGATIVE_ZERO
1377 // convert -0 to +0
1378 ? un$IndexOf(this, searchElement, fromIndex) || 0
1379 : $IndexOf(this, searchElement, fromIndex);
1380 }
1381 });
1382
1383 var tryToString = tryToString$2;
1384
1385 var $TypeError = TypeError;
1386
1387 var deletePropertyOrThrow$1 = function (O, P) {
1388 if (!delete O[P]) throw $TypeError('Cannot delete property ' + tryToString(P) + ' of ' + tryToString(O));
1389 };
1390
1391 var $ = _export;
1392 var toObject = toObject$3;
1393 var toAbsoluteIndex = toAbsoluteIndex$2;
1394 var toIntegerOrInfinity = toIntegerOrInfinity$3;
1395 var lengthOfArrayLike = lengthOfArrayLike$3;
1396 var doesNotExceedSafeInteger = doesNotExceedSafeInteger$2;
1397 var arraySpeciesCreate = arraySpeciesCreate$2;
1398 var createProperty = createProperty$2;
1399 var deletePropertyOrThrow = deletePropertyOrThrow$1;
1400 var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$2;
1401
1402 var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
1403
1404 var max = Math.max;
1405 var min = Math.min;
1406
1407 // `Array.prototype.splice` method
1408 // https://tc39.es/ecma262/#sec-array.prototype.splice
1409 // with adding support of @@species
1410 $({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
1411 splice: function splice(start, deleteCount /* , ...items */) {
1412 var O = toObject(this);
1413 var len = lengthOfArrayLike(O);
1414 var actualStart = toAbsoluteIndex(start, len);
1415 var argumentsLength = arguments.length;
1416 var insertCount, actualDeleteCount, A, k, from, to;
1417 if (argumentsLength === 0) {
1418 insertCount = actualDeleteCount = 0;
1419 } else if (argumentsLength === 1) {
1420 insertCount = 0;
1421 actualDeleteCount = len - actualStart;
1422 } else {
1423 insertCount = argumentsLength - 2;
1424 actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
1425 }
1426 doesNotExceedSafeInteger(len + insertCount - actualDeleteCount);
1427 A = arraySpeciesCreate(O, actualDeleteCount);
1428 for (k = 0; k < actualDeleteCount; k++) {
1429 from = actualStart + k;
1430 if (from in O) createProperty(A, k, O[from]);
1431 }
1432 A.length = actualDeleteCount;
1433 if (insertCount < actualDeleteCount) {
1434 for (k = actualStart; k < len - actualDeleteCount; k++) {
1435 from = k + actualDeleteCount;
1436 to = k + insertCount;
1437 if (from in O) O[to] = O[from];
1438 else deletePropertyOrThrow(O, to);
1439 }
1440 for (k = len; k > len - actualDeleteCount + insertCount; k--) deletePropertyOrThrow(O, k - 1);
1441 } else if (insertCount > actualDeleteCount) {
1442 for (k = len - actualDeleteCount; k > actualStart; k--) {
1443 from = k + actualDeleteCount - 1;
1444 to = k + insertCount - 1;
1445 if (from in O) O[to] = O[from];
1446 else deletePropertyOrThrow(O, to);
1447 }
1448 }
1449 for (k = 0; k < insertCount; k++) {
1450 O[k + actualStart] = arguments[k + 2];
1451 }
1452 O.length = len - actualDeleteCount + insertCount;
1453 return A;
1454 }
1455 });
1456
1457 /**
1458 * @author: Dennis Hernández
1459 * @update zhixin wen <wenzhixin2010@gmail.com>
1460 */
1461
1462 var rowAttr = function rowAttr(row, index) {
1463 return {
1464 id: "customId_".concat(index)
1465 };
1466 };
1467
1468 $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
1469 reorderableRows: false,
1470 onDragStyle: null,
1471 onDropStyle: null,
1472 onDragClass: 'reorder_rows_onDragClass',
1473 dragHandle: '>tbody>tr>td:not(.bs-checkbox)',
1474 useRowAttrFunc: false,
1475 // eslint-disable-next-line no-unused-vars
1476 onReorderRowsDrag: function onReorderRowsDrag(row) {
1477 return false;
1478 },
1479 // eslint-disable-next-line no-unused-vars
1480 onReorderRowsDrop: function onReorderRowsDrop(row) {
1481 return false;
1482 },
1483 // eslint-disable-next-line no-unused-vars
1484 onReorderRow: function onReorderRow(newData) {
1485 return false;
1486 },
1487 onDragStop: function onDragStop() {},
1488 onAllowDrop: function onAllowDrop() {
1489 return true;
1490 }
1491 });
1492 $__default["default"].extend($__default["default"].fn.bootstrapTable.Constructor.EVENTS, {
1493 'reorder-row.bs.table': 'onReorderRow'
1494 });
1495
1496 $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
1497 _inherits(_class, _$$BootstrapTable);
1498
1499 var _super = _createSuper(_class);
1500
1501 function _class() {
1502 _classCallCheck(this, _class);
1503
1504 return _super.apply(this, arguments);
1505 }
1506
1507 _createClass(_class, [{
1508 key: "init",
1509 value: function init() {
1510 var _this = this,
1511 _get3;
1512
1513 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1514 args[_key] = arguments[_key];
1515 }
1516
1517 if (!this.options.reorderableRows) {
1518 var _get2;
1519
1520 (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
1521
1522 return;
1523 }
1524
1525 if (this.options.useRowAttrFunc) {
1526 this.options.rowAttributes = rowAttr;
1527 }
1528
1529 var onPostBody = this.options.onPostBody;
1530
1531 this.options.onPostBody = function () {
1532 setTimeout(function () {
1533 _this.makeRowsReorderable();
1534
1535 onPostBody.call(_this.options, _this.options.data);
1536 }, 1);
1537 };
1538
1539 (_get3 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get3, [this].concat(args));
1540 }
1541 }, {
1542 key: "makeRowsReorderable",
1543 value: function makeRowsReorderable() {
1544 var _this2 = this;
1545
1546 this.$el.tableDnD({
1547 onDragStyle: this.options.onDragStyle,
1548 onDropStyle: this.options.onDropStyle,
1549 onDragClass: this.options.onDragClass,
1550 onAllowDrop: function onAllowDrop(hoveredRow, draggedRow) {
1551 return _this2.onAllowDrop(hoveredRow, draggedRow);
1552 },
1553 onDragStop: function onDragStop(table, draggedRow) {
1554 return _this2.onDragStop(table, draggedRow);
1555 },
1556 onDragStart: function onDragStart(table, droppedRow) {
1557 return _this2.onDropStart(table, droppedRow);
1558 },
1559 onDrop: function onDrop(table, droppedRow) {
1560 return _this2.onDrop(table, droppedRow);
1561 },
1562 dragHandle: this.options.dragHandle
1563 });
1564 }
1565 }, {
1566 key: "onDropStart",
1567 value: function onDropStart(table, draggingTd) {
1568 this.$draggingTd = $__default["default"](draggingTd).css('cursor', 'move');
1569 this.draggingIndex = $__default["default"](this.$draggingTd.parent()).data('index'); // Call the user defined function
1570
1571 this.options.onReorderRowsDrag(this.data[this.draggingIndex]);
1572 }
1573 }, {
1574 key: "onDragStop",
1575 value: function onDragStop(table, draggedRow) {
1576 var rowIndexDraggedRow = $__default["default"](draggedRow).data('index');
1577 var draggedRowItem = this.data[rowIndexDraggedRow];
1578 this.options.onDragStop(table, draggedRowItem, draggedRow);
1579 }
1580 }, {
1581 key: "onAllowDrop",
1582 value: function onAllowDrop(hoveredRow, draggedRow) {
1583 var rowIndexDraggedRow = $__default["default"](draggedRow).data('index');
1584 var rowIndexHoveredRow = $__default["default"](hoveredRow).data('index');
1585 var draggedRowItem = this.data[rowIndexDraggedRow];
1586 var hoveredRowItem = this.data[rowIndexHoveredRow];
1587 return this.options.onAllowDrop(hoveredRowItem, draggedRowItem, hoveredRow, draggedRow);
1588 }
1589 }, {
1590 key: "onDrop",
1591 value: function onDrop(table) {
1592 this.$draggingTd.css('cursor', '');
1593 var newData = [];
1594
1595 for (var i = 0; i < table.tBodies[0].rows.length; i++) {
1596 var $tr = $__default["default"](table.tBodies[0].rows[i]);
1597 newData.push(this.data[$tr.data('index')]);
1598 $tr.data('index', i);
1599 }
1600
1601 var draggingRow = this.data[this.draggingIndex];
1602 var droppedIndex = newData.indexOf(this.data[this.draggingIndex]);
1603 var droppedRow = this.data[droppedIndex];
1604 var index = this.options.data.indexOf(this.data[droppedIndex]);
1605 this.options.data.splice(this.options.data.indexOf(draggingRow), 1);
1606 this.options.data.splice(index, 0, draggingRow);
1607 this.initSearch(); // Call the user defined function
1608
1609 this.options.onReorderRowsDrop(droppedRow); // Call the event reorder-row
1610
1611 this.trigger('reorder-row', newData, draggingRow, droppedRow);
1612 }
1613 }, {
1614 key: "initSearch",
1615 value: function initSearch() {
1616 this.ignoreInitSort = true;
1617
1618 _get(_getPrototypeOf(_class.prototype), "initSearch", this).call(this);
1619 }
1620 }, {
1621 key: "initSort",
1622 value: function initSort() {
1623 if (this.ignoreInitSort) {
1624 this.ignoreInitSort = false;
1625 return;
1626 }
1627
1628 _get(_getPrototypeOf(_class.prototype), "initSort", this).call(this);
1629 }
1630 }]);
1631
1632 return _class;
1633 }($__default["default"].BootstrapTable);
1634
1635}));