UNPKG

51 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 ($) { 'use strict';
6
7 function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
9 var $__default = /*#__PURE__*/_interopDefaultLegacy($);
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 : 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 || function _setPrototypeOf(o, p) {
63 o.__proto__ = p;
64 return o;
65 };
66
67 return _setPrototypeOf(o, p);
68 }
69
70 function _isNativeReflectConstruct() {
71 if (typeof Reflect === "undefined" || !Reflect.construct) return false;
72 if (Reflect.construct.sham) return false;
73 if (typeof Proxy === "function") return true;
74
75 try {
76 Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
77 return true;
78 } catch (e) {
79 return false;
80 }
81 }
82
83 function _assertThisInitialized(self) {
84 if (self === void 0) {
85 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
86 }
87
88 return self;
89 }
90
91 function _possibleConstructorReturn(self, call) {
92 if (call && (typeof call === "object" || typeof call === "function")) {
93 return call;
94 } else if (call !== void 0) {
95 throw new TypeError("Derived constructors may only return object or undefined");
96 }
97
98 return _assertThisInitialized(self);
99 }
100
101 function _createSuper(Derived) {
102 var hasNativeReflectConstruct = _isNativeReflectConstruct();
103
104 return function _createSuperInternal() {
105 var Super = _getPrototypeOf(Derived),
106 result;
107
108 if (hasNativeReflectConstruct) {
109 var NewTarget = _getPrototypeOf(this).constructor;
110
111 result = Reflect.construct(Super, arguments, NewTarget);
112 } else {
113 result = Super.apply(this, arguments);
114 }
115
116 return _possibleConstructorReturn(this, result);
117 };
118 }
119
120 function _superPropBase(object, property) {
121 while (!Object.prototype.hasOwnProperty.call(object, property)) {
122 object = _getPrototypeOf(object);
123 if (object === null) break;
124 }
125
126 return object;
127 }
128
129 function _get() {
130 if (typeof Reflect !== "undefined" && Reflect.get) {
131 _get = Reflect.get;
132 } else {
133 _get = function _get(target, property, receiver) {
134 var base = _superPropBase(target, property);
135
136 if (!base) return;
137 var desc = Object.getOwnPropertyDescriptor(base, property);
138
139 if (desc.get) {
140 return desc.get.call(arguments.length < 3 ? target : receiver);
141 }
142
143 return desc.value;
144 };
145 }
146
147 return _get.apply(this, arguments);
148 }
149
150 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
151
152 function createCommonjsModule(fn, module) {
153 return module = { exports: {} }, fn(module, module.exports), module.exports;
154 }
155
156 var check = function (it) {
157 return it && it.Math == Math && it;
158 };
159
160 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
161 var global_1 =
162 // eslint-disable-next-line es-x/no-global-this -- safe
163 check(typeof globalThis == 'object' && globalThis) ||
164 check(typeof window == 'object' && window) ||
165 // eslint-disable-next-line no-restricted-globals -- safe
166 check(typeof self == 'object' && self) ||
167 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
168 // eslint-disable-next-line no-new-func -- fallback
169 (function () { return this; })() || Function('return this')();
170
171 var fails = function (exec) {
172 try {
173 return !!exec();
174 } catch (error) {
175 return true;
176 }
177 };
178
179 // Detect IE8's incomplete defineProperty implementation
180 var descriptors = !fails(function () {
181 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
182 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
183 });
184
185 var functionBindNative = !fails(function () {
186 // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
187 var test = (function () { /* empty */ }).bind();
188 // eslint-disable-next-line no-prototype-builtins -- safe
189 return typeof test != 'function' || test.hasOwnProperty('prototype');
190 });
191
192 var call$1 = Function.prototype.call;
193
194 var functionCall = functionBindNative ? call$1.bind(call$1) : function () {
195 return call$1.apply(call$1, arguments);
196 };
197
198 var $propertyIsEnumerable = {}.propertyIsEnumerable;
199 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
200 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
201
202 // Nashorn ~ JDK8 bug
203 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
204
205 // `Object.prototype.propertyIsEnumerable` method implementation
206 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
207 var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
208 var descriptor = getOwnPropertyDescriptor$1(this, V);
209 return !!descriptor && descriptor.enumerable;
210 } : $propertyIsEnumerable;
211
212 var objectPropertyIsEnumerable = {
213 f: f$5
214 };
215
216 var createPropertyDescriptor = function (bitmap, value) {
217 return {
218 enumerable: !(bitmap & 1),
219 configurable: !(bitmap & 2),
220 writable: !(bitmap & 4),
221 value: value
222 };
223 };
224
225 var FunctionPrototype$1 = Function.prototype;
226 var bind$1 = FunctionPrototype$1.bind;
227 var call = FunctionPrototype$1.call;
228 var uncurryThis = functionBindNative && bind$1.bind(call, call);
229
230 var functionUncurryThis = functionBindNative ? function (fn) {
231 return fn && uncurryThis(fn);
232 } : function (fn) {
233 return fn && function () {
234 return call.apply(fn, arguments);
235 };
236 };
237
238 var toString$1 = functionUncurryThis({}.toString);
239 var stringSlice = functionUncurryThis(''.slice);
240
241 var classofRaw = function (it) {
242 return stringSlice(toString$1(it), 8, -1);
243 };
244
245 var Object$4 = global_1.Object;
246 var split = functionUncurryThis(''.split);
247
248 // fallback for non-array-like ES3 and non-enumerable old V8 strings
249 var indexedObject = fails(function () {
250 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
251 // eslint-disable-next-line no-prototype-builtins -- safe
252 return !Object$4('z').propertyIsEnumerable(0);
253 }) ? function (it) {
254 return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
255 } : Object$4;
256
257 var TypeError$8 = global_1.TypeError;
258
259 // `RequireObjectCoercible` abstract operation
260 // https://tc39.es/ecma262/#sec-requireobjectcoercible
261 var requireObjectCoercible = function (it) {
262 if (it == undefined) throw TypeError$8("Can't call method on " + it);
263 return it;
264 };
265
266 // toObject with fallback for non-array-like ES3 strings
267
268
269
270 var toIndexedObject = function (it) {
271 return indexedObject(requireObjectCoercible(it));
272 };
273
274 // `IsCallable` abstract operation
275 // https://tc39.es/ecma262/#sec-iscallable
276 var isCallable = function (argument) {
277 return typeof argument == 'function';
278 };
279
280 var isObject = function (it) {
281 return typeof it == 'object' ? it !== null : isCallable(it);
282 };
283
284 var aFunction = function (argument) {
285 return isCallable(argument) ? argument : undefined;
286 };
287
288 var getBuiltIn = function (namespace, method) {
289 return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
290 };
291
292 var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
293
294 var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
295
296 var process = global_1.process;
297 var Deno = global_1.Deno;
298 var versions = process && process.versions || Deno && Deno.version;
299 var v8 = versions && versions.v8;
300 var match, version;
301
302 if (v8) {
303 match = v8.split('.');
304 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
305 // but their correct versions are not interesting for us
306 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
307 }
308
309 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
310 // so check `userAgent` even if `.v8` exists, but 0
311 if (!version && engineUserAgent) {
312 match = engineUserAgent.match(/Edge\/(\d+)/);
313 if (!match || match[1] >= 74) {
314 match = engineUserAgent.match(/Chrome\/(\d+)/);
315 if (match) version = +match[1];
316 }
317 }
318
319 var engineV8Version = version;
320
321 /* eslint-disable es-x/no-symbol -- required for testing */
322
323
324
325 // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
326 var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
327 var symbol = Symbol();
328 // Chrome 38 Symbol has incorrect toString conversion
329 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
330 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
331 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
332 !Symbol.sham && engineV8Version && engineV8Version < 41;
333 });
334
335 /* eslint-disable es-x/no-symbol -- required for testing */
336
337
338 var useSymbolAsUid = nativeSymbol
339 && !Symbol.sham
340 && typeof Symbol.iterator == 'symbol';
341
342 var Object$3 = global_1.Object;
343
344 var isSymbol = useSymbolAsUid ? function (it) {
345 return typeof it == 'symbol';
346 } : function (it) {
347 var $Symbol = getBuiltIn('Symbol');
348 return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
349 };
350
351 var String$3 = global_1.String;
352
353 var tryToString = function (argument) {
354 try {
355 return String$3(argument);
356 } catch (error) {
357 return 'Object';
358 }
359 };
360
361 var TypeError$7 = global_1.TypeError;
362
363 // `Assert: IsCallable(argument) is true`
364 var aCallable = function (argument) {
365 if (isCallable(argument)) return argument;
366 throw TypeError$7(tryToString(argument) + ' is not a function');
367 };
368
369 // `GetMethod` abstract operation
370 // https://tc39.es/ecma262/#sec-getmethod
371 var getMethod = function (V, P) {
372 var func = V[P];
373 return func == null ? undefined : aCallable(func);
374 };
375
376 var TypeError$6 = global_1.TypeError;
377
378 // `OrdinaryToPrimitive` abstract operation
379 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
380 var ordinaryToPrimitive = function (input, pref) {
381 var fn, val;
382 if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
383 if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
384 if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
385 throw TypeError$6("Can't convert object to primitive value");
386 };
387
388 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
389 var defineProperty = Object.defineProperty;
390
391 var setGlobal = function (key, value) {
392 try {
393 defineProperty(global_1, key, { value: value, configurable: true, writable: true });
394 } catch (error) {
395 global_1[key] = value;
396 } return value;
397 };
398
399 var SHARED = '__core-js_shared__';
400 var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
401
402 var sharedStore = store$1;
403
404 var shared = createCommonjsModule(function (module) {
405 (module.exports = function (key, value) {
406 return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
407 })('versions', []).push({
408 version: '3.22.4',
409 mode: 'global',
410 copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
411 license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
412 source: 'https://github.com/zloirock/core-js'
413 });
414 });
415
416 var Object$2 = global_1.Object;
417
418 // `ToObject` abstract operation
419 // https://tc39.es/ecma262/#sec-toobject
420 var toObject = function (argument) {
421 return Object$2(requireObjectCoercible(argument));
422 };
423
424 var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
425
426 // `HasOwnProperty` abstract operation
427 // https://tc39.es/ecma262/#sec-hasownproperty
428 // eslint-disable-next-line es-x/no-object-hasown -- safe
429 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
430 return hasOwnProperty(toObject(it), key);
431 };
432
433 var id = 0;
434 var postfix = Math.random();
435 var toString = functionUncurryThis(1.0.toString);
436
437 var uid = function (key) {
438 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
439 };
440
441 var WellKnownSymbolsStore = shared('wks');
442 var Symbol$1 = global_1.Symbol;
443 var symbolFor = Symbol$1 && Symbol$1['for'];
444 var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
445
446 var wellKnownSymbol = function (name) {
447 if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
448 var description = 'Symbol.' + name;
449 if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
450 WellKnownSymbolsStore[name] = Symbol$1[name];
451 } else if (useSymbolAsUid && symbolFor) {
452 WellKnownSymbolsStore[name] = symbolFor(description);
453 } else {
454 WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
455 }
456 } return WellKnownSymbolsStore[name];
457 };
458
459 var TypeError$5 = global_1.TypeError;
460 var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
461
462 // `ToPrimitive` abstract operation
463 // https://tc39.es/ecma262/#sec-toprimitive
464 var toPrimitive = function (input, pref) {
465 if (!isObject(input) || isSymbol(input)) return input;
466 var exoticToPrim = getMethod(input, TO_PRIMITIVE);
467 var result;
468 if (exoticToPrim) {
469 if (pref === undefined) pref = 'default';
470 result = functionCall(exoticToPrim, input, pref);
471 if (!isObject(result) || isSymbol(result)) return result;
472 throw TypeError$5("Can't convert object to primitive value");
473 }
474 if (pref === undefined) pref = 'number';
475 return ordinaryToPrimitive(input, pref);
476 };
477
478 // `ToPropertyKey` abstract operation
479 // https://tc39.es/ecma262/#sec-topropertykey
480 var toPropertyKey = function (argument) {
481 var key = toPrimitive(argument, 'string');
482 return isSymbol(key) ? key : key + '';
483 };
484
485 var document$1 = global_1.document;
486 // typeof document.createElement is 'object' in old IE
487 var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
488
489 var documentCreateElement = function (it) {
490 return EXISTS$1 ? document$1.createElement(it) : {};
491 };
492
493 // Thanks to IE8 for its funny defineProperty
494 var ie8DomDefine = !descriptors && !fails(function () {
495 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
496 return Object.defineProperty(documentCreateElement('div'), 'a', {
497 get: function () { return 7; }
498 }).a != 7;
499 });
500
501 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
502 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
503
504 // `Object.getOwnPropertyDescriptor` method
505 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
506 var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
507 O = toIndexedObject(O);
508 P = toPropertyKey(P);
509 if (ie8DomDefine) try {
510 return $getOwnPropertyDescriptor$1(O, P);
511 } catch (error) { /* empty */ }
512 if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
513 };
514
515 var objectGetOwnPropertyDescriptor = {
516 f: f$4
517 };
518
519 // V8 ~ Chrome 36-
520 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
521 var v8PrototypeDefineBug = descriptors && fails(function () {
522 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
523 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
524 value: 42,
525 writable: false
526 }).prototype != 42;
527 });
528
529 var String$2 = global_1.String;
530 var TypeError$4 = global_1.TypeError;
531
532 // `Assert: Type(argument) is Object`
533 var anObject = function (argument) {
534 if (isObject(argument)) return argument;
535 throw TypeError$4(String$2(argument) + ' is not an object');
536 };
537
538 var TypeError$3 = global_1.TypeError;
539 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
540 var $defineProperty = Object.defineProperty;
541 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
542 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
543 var ENUMERABLE = 'enumerable';
544 var CONFIGURABLE$1 = 'configurable';
545 var WRITABLE = 'writable';
546
547 // `Object.defineProperty` method
548 // https://tc39.es/ecma262/#sec-object.defineproperty
549 var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
550 anObject(O);
551 P = toPropertyKey(P);
552 anObject(Attributes);
553 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
554 var current = $getOwnPropertyDescriptor(O, P);
555 if (current && current[WRITABLE]) {
556 O[P] = Attributes.value;
557 Attributes = {
558 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
559 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
560 writable: false
561 };
562 }
563 } return $defineProperty(O, P, Attributes);
564 } : $defineProperty : function defineProperty(O, P, Attributes) {
565 anObject(O);
566 P = toPropertyKey(P);
567 anObject(Attributes);
568 if (ie8DomDefine) try {
569 return $defineProperty(O, P, Attributes);
570 } catch (error) { /* empty */ }
571 if ('get' in Attributes || 'set' in Attributes) throw TypeError$3('Accessors not supported');
572 if ('value' in Attributes) O[P] = Attributes.value;
573 return O;
574 };
575
576 var objectDefineProperty = {
577 f: f$3
578 };
579
580 var createNonEnumerableProperty = descriptors ? function (object, key, value) {
581 return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
582 } : function (object, key, value) {
583 object[key] = value;
584 return object;
585 };
586
587 var FunctionPrototype = Function.prototype;
588 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
589 var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
590
591 var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
592 // additional protection from minified / mangled / dropped function names
593 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
594 var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
595
596 var functionName = {
597 EXISTS: EXISTS,
598 PROPER: PROPER,
599 CONFIGURABLE: CONFIGURABLE
600 };
601
602 var functionToString = functionUncurryThis(Function.toString);
603
604 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
605 if (!isCallable(sharedStore.inspectSource)) {
606 sharedStore.inspectSource = function (it) {
607 return functionToString(it);
608 };
609 }
610
611 var inspectSource = sharedStore.inspectSource;
612
613 var WeakMap$1 = global_1.WeakMap;
614
615 var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
616
617 var keys = shared('keys');
618
619 var sharedKey = function (key) {
620 return keys[key] || (keys[key] = uid(key));
621 };
622
623 var hiddenKeys$1 = {};
624
625 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
626 var TypeError$2 = global_1.TypeError;
627 var WeakMap = global_1.WeakMap;
628 var set, get, has;
629
630 var enforce = function (it) {
631 return has(it) ? get(it) : set(it, {});
632 };
633
634 var getterFor = function (TYPE) {
635 return function (it) {
636 var state;
637 if (!isObject(it) || (state = get(it)).type !== TYPE) {
638 throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
639 } return state;
640 };
641 };
642
643 if (nativeWeakMap || sharedStore.state) {
644 var store = sharedStore.state || (sharedStore.state = new WeakMap());
645 var wmget = functionUncurryThis(store.get);
646 var wmhas = functionUncurryThis(store.has);
647 var wmset = functionUncurryThis(store.set);
648 set = function (it, metadata) {
649 if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
650 metadata.facade = it;
651 wmset(store, it, metadata);
652 return metadata;
653 };
654 get = function (it) {
655 return wmget(store, it) || {};
656 };
657 has = function (it) {
658 return wmhas(store, it);
659 };
660 } else {
661 var STATE = sharedKey('state');
662 hiddenKeys$1[STATE] = true;
663 set = function (it, metadata) {
664 if (hasOwnProperty_1(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
665 metadata.facade = it;
666 createNonEnumerableProperty(it, STATE, metadata);
667 return metadata;
668 };
669 get = function (it) {
670 return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
671 };
672 has = function (it) {
673 return hasOwnProperty_1(it, STATE);
674 };
675 }
676
677 var internalState = {
678 set: set,
679 get: get,
680 has: has,
681 enforce: enforce,
682 getterFor: getterFor
683 };
684
685 var makeBuiltIn_1 = createCommonjsModule(function (module) {
686 var defineProperty = objectDefineProperty.f;
687 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
688
689
690
691 var enforceInternalState = internalState.enforce;
692 var getInternalState = internalState.get;
693
694 var CONFIGURABLE_LENGTH = !fails(function () {
695 return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
696 });
697
698 var TEMPLATE = String(String).split('String');
699
700 var makeBuiltIn = module.exports = function (value, name, options) {
701 if (String(name).slice(0, 7) === 'Symbol(') {
702 name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
703 }
704 if (options && options.getter) name = 'get ' + name;
705 if (options && options.setter) name = 'set ' + name;
706 if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
707 defineProperty(value, 'name', { value: name, configurable: true });
708 }
709 if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
710 defineProperty(value, 'length', { value: options.arity });
711 }
712 var state = enforceInternalState(value);
713 if (!hasOwnProperty_1(state, 'source')) {
714 state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
715 } return value;
716 };
717
718 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
719 // eslint-disable-next-line no-extend-native -- required
720 Function.prototype.toString = makeBuiltIn(function toString() {
721 return isCallable(this) && getInternalState(this).source || inspectSource(this);
722 }, 'toString');
723 });
724
725 var defineBuiltIn = function (O, key, value, options) {
726 var unsafe = options ? !!options.unsafe : false;
727 var simple = options ? !!options.enumerable : false;
728 var noTargetGet = options ? !!options.noTargetGet : false;
729 var name = options && options.name !== undefined ? options.name : key;
730 if (isCallable(value)) makeBuiltIn_1(value, name, options);
731 if (O === global_1) {
732 if (simple) O[key] = value;
733 else setGlobal(key, value);
734 return O;
735 } else if (!unsafe) {
736 delete O[key];
737 } else if (!noTargetGet && O[key]) {
738 simple = true;
739 }
740 if (simple) O[key] = value;
741 else createNonEnumerableProperty(O, key, value);
742 return O;
743 };
744
745 var ceil = Math.ceil;
746 var floor = Math.floor;
747
748 // `ToIntegerOrInfinity` abstract operation
749 // https://tc39.es/ecma262/#sec-tointegerorinfinity
750 var toIntegerOrInfinity = function (argument) {
751 var number = +argument;
752 // eslint-disable-next-line no-self-compare -- safe
753 return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
754 };
755
756 var max = Math.max;
757 var min$1 = Math.min;
758
759 // Helper for a popular repeating case of the spec:
760 // Let integer be ? ToInteger(index).
761 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
762 var toAbsoluteIndex = function (index, length) {
763 var integer = toIntegerOrInfinity(index);
764 return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
765 };
766
767 var min = Math.min;
768
769 // `ToLength` abstract operation
770 // https://tc39.es/ecma262/#sec-tolength
771 var toLength = function (argument) {
772 return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
773 };
774
775 // `LengthOfArrayLike` abstract operation
776 // https://tc39.es/ecma262/#sec-lengthofarraylike
777 var lengthOfArrayLike = function (obj) {
778 return toLength(obj.length);
779 };
780
781 // `Array.prototype.{ indexOf, includes }` methods implementation
782 var createMethod$1 = function (IS_INCLUDES) {
783 return function ($this, el, fromIndex) {
784 var O = toIndexedObject($this);
785 var length = lengthOfArrayLike(O);
786 var index = toAbsoluteIndex(fromIndex, length);
787 var value;
788 // Array#includes uses SameValueZero equality algorithm
789 // eslint-disable-next-line no-self-compare -- NaN check
790 if (IS_INCLUDES && el != el) while (length > index) {
791 value = O[index++];
792 // eslint-disable-next-line no-self-compare -- NaN check
793 if (value != value) return true;
794 // Array#indexOf ignores holes, Array#includes - not
795 } else for (;length > index; index++) {
796 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
797 } return !IS_INCLUDES && -1;
798 };
799 };
800
801 var arrayIncludes = {
802 // `Array.prototype.includes` method
803 // https://tc39.es/ecma262/#sec-array.prototype.includes
804 includes: createMethod$1(true),
805 // `Array.prototype.indexOf` method
806 // https://tc39.es/ecma262/#sec-array.prototype.indexof
807 indexOf: createMethod$1(false)
808 };
809
810 var indexOf = arrayIncludes.indexOf;
811
812
813 var push$1 = functionUncurryThis([].push);
814
815 var objectKeysInternal = function (object, names) {
816 var O = toIndexedObject(object);
817 var i = 0;
818 var result = [];
819 var key;
820 for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$1(result, key);
821 // Don't enum bug & hidden keys
822 while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
823 ~indexOf(result, key) || push$1(result, key);
824 }
825 return result;
826 };
827
828 // IE8- don't enum bug keys
829 var enumBugKeys = [
830 'constructor',
831 'hasOwnProperty',
832 'isPrototypeOf',
833 'propertyIsEnumerable',
834 'toLocaleString',
835 'toString',
836 'valueOf'
837 ];
838
839 var hiddenKeys = enumBugKeys.concat('length', 'prototype');
840
841 // `Object.getOwnPropertyNames` method
842 // https://tc39.es/ecma262/#sec-object.getownpropertynames
843 // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
844 var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
845 return objectKeysInternal(O, hiddenKeys);
846 };
847
848 var objectGetOwnPropertyNames = {
849 f: f$2
850 };
851
852 // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
853 var f$1 = Object.getOwnPropertySymbols;
854
855 var objectGetOwnPropertySymbols = {
856 f: f$1
857 };
858
859 var concat = functionUncurryThis([].concat);
860
861 // all object keys, includes non-enumerable and symbols
862 var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
863 var keys = objectGetOwnPropertyNames.f(anObject(it));
864 var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
865 return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
866 };
867
868 var copyConstructorProperties = function (target, source, exceptions) {
869 var keys = ownKeys(source);
870 var defineProperty = objectDefineProperty.f;
871 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
872 for (var i = 0; i < keys.length; i++) {
873 var key = keys[i];
874 if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
875 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
876 }
877 }
878 };
879
880 var replacement = /#|\.prototype\./;
881
882 var isForced = function (feature, detection) {
883 var value = data[normalize(feature)];
884 return value == POLYFILL ? true
885 : value == NATIVE ? false
886 : isCallable(detection) ? fails(detection)
887 : !!detection;
888 };
889
890 var normalize = isForced.normalize = function (string) {
891 return String(string).replace(replacement, '.').toLowerCase();
892 };
893
894 var data = isForced.data = {};
895 var NATIVE = isForced.NATIVE = 'N';
896 var POLYFILL = isForced.POLYFILL = 'P';
897
898 var isForced_1 = isForced;
899
900 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
901
902
903
904
905
906
907 /*
908 options.target - name of the target object
909 options.global - target is the global object
910 options.stat - export as static methods of target
911 options.proto - export as prototype methods of target
912 options.real - real prototype method for the `pure` version
913 options.forced - export even if the native feature is available
914 options.bind - bind methods to the target, required for the `pure` version
915 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
916 options.unsafe - use the simple assignment of property instead of delete + defineProperty
917 options.sham - add a flag to not completely full polyfills
918 options.enumerable - export as enumerable property
919 options.noTargetGet - prevent calling a getter on target
920 options.name - the .name of the function if it does not match the key
921 */
922 var _export = function (options, source) {
923 var TARGET = options.target;
924 var GLOBAL = options.global;
925 var STATIC = options.stat;
926 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
927 if (GLOBAL) {
928 target = global_1;
929 } else if (STATIC) {
930 target = global_1[TARGET] || setGlobal(TARGET, {});
931 } else {
932 target = (global_1[TARGET] || {}).prototype;
933 }
934 if (target) for (key in source) {
935 sourceProperty = source[key];
936 if (options.noTargetGet) {
937 descriptor = getOwnPropertyDescriptor(target, key);
938 targetProperty = descriptor && descriptor.value;
939 } else targetProperty = target[key];
940 FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
941 // contained in target
942 if (!FORCED && targetProperty !== undefined) {
943 if (typeof sourceProperty == typeof targetProperty) continue;
944 copyConstructorProperties(sourceProperty, targetProperty);
945 }
946 // add a flag to not completely full polyfills
947 if (options.sham || (targetProperty && targetProperty.sham)) {
948 createNonEnumerableProperty(sourceProperty, 'sham', true);
949 }
950 defineBuiltIn(target, key, sourceProperty, options);
951 }
952 };
953
954 var bind = functionUncurryThis(functionUncurryThis.bind);
955
956 // optional / simple context binding
957 var functionBindContext = function (fn, that) {
958 aCallable(fn);
959 return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
960 return fn.apply(that, arguments);
961 };
962 };
963
964 // `IsArray` abstract operation
965 // https://tc39.es/ecma262/#sec-isarray
966 // eslint-disable-next-line es-x/no-array-isarray -- safe
967 var isArray = Array.isArray || function isArray(argument) {
968 return classofRaw(argument) == 'Array';
969 };
970
971 var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
972 var test = {};
973
974 test[TO_STRING_TAG$1] = 'z';
975
976 var toStringTagSupport = String(test) === '[object z]';
977
978 var TO_STRING_TAG = wellKnownSymbol('toStringTag');
979 var Object$1 = global_1.Object;
980
981 // ES3 wrong here
982 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
983
984 // fallback for IE11 Script Access Denied error
985 var tryGet = function (it, key) {
986 try {
987 return it[key];
988 } catch (error) { /* empty */ }
989 };
990
991 // getting tag from ES6+ `Object.prototype.toString`
992 var classof = toStringTagSupport ? classofRaw : function (it) {
993 var O, tag, result;
994 return it === undefined ? 'Undefined' : it === null ? 'Null'
995 // @@toStringTag case
996 : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
997 // builtinTag case
998 : CORRECT_ARGUMENTS ? classofRaw(O)
999 // ES3 arguments fallback
1000 : (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1001 };
1002
1003 var noop = function () { /* empty */ };
1004 var empty = [];
1005 var construct = getBuiltIn('Reflect', 'construct');
1006 var constructorRegExp = /^\s*(?:class|function)\b/;
1007 var exec = functionUncurryThis(constructorRegExp.exec);
1008 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1009
1010 var isConstructorModern = function isConstructor(argument) {
1011 if (!isCallable(argument)) return false;
1012 try {
1013 construct(noop, empty, argument);
1014 return true;
1015 } catch (error) {
1016 return false;
1017 }
1018 };
1019
1020 var isConstructorLegacy = function isConstructor(argument) {
1021 if (!isCallable(argument)) return false;
1022 switch (classof(argument)) {
1023 case 'AsyncFunction':
1024 case 'GeneratorFunction':
1025 case 'AsyncGeneratorFunction': return false;
1026 }
1027 try {
1028 // we can't check .prototype since constructors produced by .bind haven't it
1029 // `Function#toString` throws on some built-it function in some legacy engines
1030 // (for example, `DOMQuad` and similar in FF41-)
1031 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1032 } catch (error) {
1033 return true;
1034 }
1035 };
1036
1037 isConstructorLegacy.sham = true;
1038
1039 // `IsConstructor` abstract operation
1040 // https://tc39.es/ecma262/#sec-isconstructor
1041 var isConstructor = !construct || fails(function () {
1042 var called;
1043 return isConstructorModern(isConstructorModern.call)
1044 || !isConstructorModern(Object)
1045 || !isConstructorModern(function () { called = true; })
1046 || called;
1047 }) ? isConstructorLegacy : isConstructorModern;
1048
1049 var SPECIES = wellKnownSymbol('species');
1050 var Array$1 = global_1.Array;
1051
1052 // a part of `ArraySpeciesCreate` abstract operation
1053 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1054 var arraySpeciesConstructor = function (originalArray) {
1055 var C;
1056 if (isArray(originalArray)) {
1057 C = originalArray.constructor;
1058 // cross-realm fallback
1059 if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
1060 else if (isObject(C)) {
1061 C = C[SPECIES];
1062 if (C === null) C = undefined;
1063 }
1064 } return C === undefined ? Array$1 : C;
1065 };
1066
1067 // `ArraySpeciesCreate` abstract operation
1068 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1069 var arraySpeciesCreate = function (originalArray, length) {
1070 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1071 };
1072
1073 var push = functionUncurryThis([].push);
1074
1075 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
1076 var createMethod = function (TYPE) {
1077 var IS_MAP = TYPE == 1;
1078 var IS_FILTER = TYPE == 2;
1079 var IS_SOME = TYPE == 3;
1080 var IS_EVERY = TYPE == 4;
1081 var IS_FIND_INDEX = TYPE == 6;
1082 var IS_FILTER_REJECT = TYPE == 7;
1083 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1084 return function ($this, callbackfn, that, specificCreate) {
1085 var O = toObject($this);
1086 var self = indexedObject(O);
1087 var boundFunction = functionBindContext(callbackfn, that);
1088 var length = lengthOfArrayLike(self);
1089 var index = 0;
1090 var create = specificCreate || arraySpeciesCreate;
1091 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
1092 var value, result;
1093 for (;length > index; index++) if (NO_HOLES || index in self) {
1094 value = self[index];
1095 result = boundFunction(value, index, O);
1096 if (TYPE) {
1097 if (IS_MAP) target[index] = result; // map
1098 else if (result) switch (TYPE) {
1099 case 3: return true; // some
1100 case 5: return value; // find
1101 case 6: return index; // findIndex
1102 case 2: push(target, value); // filter
1103 } else switch (TYPE) {
1104 case 4: return false; // every
1105 case 7: push(target, value); // filterReject
1106 }
1107 }
1108 }
1109 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
1110 };
1111 };
1112
1113 var arrayIteration = {
1114 // `Array.prototype.forEach` method
1115 // https://tc39.es/ecma262/#sec-array.prototype.foreach
1116 forEach: createMethod(0),
1117 // `Array.prototype.map` method
1118 // https://tc39.es/ecma262/#sec-array.prototype.map
1119 map: createMethod(1),
1120 // `Array.prototype.filter` method
1121 // https://tc39.es/ecma262/#sec-array.prototype.filter
1122 filter: createMethod(2),
1123 // `Array.prototype.some` method
1124 // https://tc39.es/ecma262/#sec-array.prototype.some
1125 some: createMethod(3),
1126 // `Array.prototype.every` method
1127 // https://tc39.es/ecma262/#sec-array.prototype.every
1128 every: createMethod(4),
1129 // `Array.prototype.find` method
1130 // https://tc39.es/ecma262/#sec-array.prototype.find
1131 find: createMethod(5),
1132 // `Array.prototype.findIndex` method
1133 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
1134 findIndex: createMethod(6),
1135 // `Array.prototype.filterReject` method
1136 // https://github.com/tc39/proposal-array-filtering
1137 filterReject: createMethod(7)
1138 };
1139
1140 // `Object.keys` method
1141 // https://tc39.es/ecma262/#sec-object.keys
1142 // eslint-disable-next-line es-x/no-object-keys -- safe
1143 var objectKeys = Object.keys || function keys(O) {
1144 return objectKeysInternal(O, enumBugKeys);
1145 };
1146
1147 // `Object.defineProperties` method
1148 // https://tc39.es/ecma262/#sec-object.defineproperties
1149 // eslint-disable-next-line es-x/no-object-defineproperties -- safe
1150 var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
1151 anObject(O);
1152 var props = toIndexedObject(Properties);
1153 var keys = objectKeys(Properties);
1154 var length = keys.length;
1155 var index = 0;
1156 var key;
1157 while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
1158 return O;
1159 };
1160
1161 var objectDefineProperties = {
1162 f: f
1163 };
1164
1165 var html = getBuiltIn('document', 'documentElement');
1166
1167 /* global ActiveXObject -- old IE, WSH */
1168
1169
1170
1171
1172
1173
1174
1175
1176 var GT = '>';
1177 var LT = '<';
1178 var PROTOTYPE = 'prototype';
1179 var SCRIPT = 'script';
1180 var IE_PROTO = sharedKey('IE_PROTO');
1181
1182 var EmptyConstructor = function () { /* empty */ };
1183
1184 var scriptTag = function (content) {
1185 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1186 };
1187
1188 // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1189 var NullProtoObjectViaActiveX = function (activeXDocument) {
1190 activeXDocument.write(scriptTag(''));
1191 activeXDocument.close();
1192 var temp = activeXDocument.parentWindow.Object;
1193 activeXDocument = null; // avoid memory leak
1194 return temp;
1195 };
1196
1197 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1198 var NullProtoObjectViaIFrame = function () {
1199 // Thrash, waste and sodomy: IE GC bug
1200 var iframe = documentCreateElement('iframe');
1201 var JS = 'java' + SCRIPT + ':';
1202 var iframeDocument;
1203 iframe.style.display = 'none';
1204 html.appendChild(iframe);
1205 // https://github.com/zloirock/core-js/issues/475
1206 iframe.src = String(JS);
1207 iframeDocument = iframe.contentWindow.document;
1208 iframeDocument.open();
1209 iframeDocument.write(scriptTag('document.F=Object'));
1210 iframeDocument.close();
1211 return iframeDocument.F;
1212 };
1213
1214 // Check for document.domain and active x support
1215 // No need to use active x approach when document.domain is not set
1216 // see https://github.com/es-shims/es5-shim/issues/150
1217 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1218 // avoid IE GC bug
1219 var activeXDocument;
1220 var NullProtoObject = function () {
1221 try {
1222 activeXDocument = new ActiveXObject('htmlfile');
1223 } catch (error) { /* ignore */ }
1224 NullProtoObject = typeof document != 'undefined'
1225 ? document.domain && activeXDocument
1226 ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1227 : NullProtoObjectViaIFrame()
1228 : NullProtoObjectViaActiveX(activeXDocument); // WSH
1229 var length = enumBugKeys.length;
1230 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1231 return NullProtoObject();
1232 };
1233
1234 hiddenKeys$1[IE_PROTO] = true;
1235
1236 // `Object.create` method
1237 // https://tc39.es/ecma262/#sec-object.create
1238 // eslint-disable-next-line es-x/no-object-create -- safe
1239 var objectCreate = Object.create || function create(O, Properties) {
1240 var result;
1241 if (O !== null) {
1242 EmptyConstructor[PROTOTYPE] = anObject(O);
1243 result = new EmptyConstructor();
1244 EmptyConstructor[PROTOTYPE] = null;
1245 // add "__proto__" for Object.getPrototypeOf polyfill
1246 result[IE_PROTO] = O;
1247 } else result = NullProtoObject();
1248 return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
1249 };
1250
1251 var UNSCOPABLES = wellKnownSymbol('unscopables');
1252 var ArrayPrototype = Array.prototype;
1253
1254 // Array.prototype[@@unscopables]
1255 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1256 if (ArrayPrototype[UNSCOPABLES] == undefined) {
1257 objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
1258 configurable: true,
1259 value: objectCreate(null)
1260 });
1261 }
1262
1263 // add a key to Array.prototype[@@unscopables]
1264 var addToUnscopables = function (key) {
1265 ArrayPrototype[UNSCOPABLES][key] = true;
1266 };
1267
1268 var $find = arrayIteration.find;
1269
1270
1271 var FIND = 'find';
1272 var SKIPS_HOLES = true;
1273
1274 // Shouldn't skip holes
1275 if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
1276
1277 // `Array.prototype.find` method
1278 // https://tc39.es/ecma262/#sec-array.prototype.find
1279 _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
1280 find: function find(callbackfn /* , that = undefined */) {
1281 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1282 }
1283 });
1284
1285 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1286 addToUnscopables(FIND);
1287
1288 // `Object.prototype.toString` method implementation
1289 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1290 var objectToString = toStringTagSupport ? {}.toString : function toString() {
1291 return '[object ' + classof(this) + ']';
1292 };
1293
1294 // `Object.prototype.toString` method
1295 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1296 if (!toStringTagSupport) {
1297 defineBuiltIn(Object.prototype, 'toString', objectToString, { unsafe: true });
1298 }
1299
1300 var $includes = arrayIncludes.includes;
1301
1302
1303
1304 // FF99+ bug
1305 var BROKEN_ON_SPARSE = fails(function () {
1306 return !Array(1).includes();
1307 });
1308
1309 // `Array.prototype.includes` method
1310 // https://tc39.es/ecma262/#sec-array.prototype.includes
1311 _export({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1312 includes: function includes(el /* , fromIndex = 0 */) {
1313 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1314 }
1315 });
1316
1317 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1318 addToUnscopables('includes');
1319
1320 var MATCH$1 = wellKnownSymbol('match');
1321
1322 // `IsRegExp` abstract operation
1323 // https://tc39.es/ecma262/#sec-isregexp
1324 var isRegexp = function (it) {
1325 var isRegExp;
1326 return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
1327 };
1328
1329 var TypeError$1 = global_1.TypeError;
1330
1331 var notARegexp = function (it) {
1332 if (isRegexp(it)) {
1333 throw TypeError$1("The method doesn't accept regular expressions");
1334 } return it;
1335 };
1336
1337 var String$1 = global_1.String;
1338
1339 var toString_1 = function (argument) {
1340 if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1341 return String$1(argument);
1342 };
1343
1344 var MATCH = wellKnownSymbol('match');
1345
1346 var correctIsRegexpLogic = function (METHOD_NAME) {
1347 var regexp = /./;
1348 try {
1349 '/./'[METHOD_NAME](regexp);
1350 } catch (error1) {
1351 try {
1352 regexp[MATCH] = false;
1353 return '/./'[METHOD_NAME](regexp);
1354 } catch (error2) { /* empty */ }
1355 } return false;
1356 };
1357
1358 var stringIndexOf = functionUncurryThis(''.indexOf);
1359
1360 // `String.prototype.includes` method
1361 // https://tc39.es/ecma262/#sec-string.prototype.includes
1362 _export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
1363 includes: function includes(searchString /* , position = 0 */) {
1364 return !!~stringIndexOf(
1365 toString_1(requireObjectCoercible(this)),
1366 toString_1(notARegexp(searchString)),
1367 arguments.length > 1 ? arguments[1] : undefined
1368 );
1369 }
1370 });
1371
1372 /**
1373 * @author zhixin wen <wenzhixin2010@gmail.com>
1374 * https://github.com/wenzhixin/bootstrap-table/
1375 * theme: https://github.com/jgthms/bulma/
1376 */
1377
1378 $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
1379 classes: 'table is-bordered is-hoverable',
1380 buttonsPrefix: '',
1381 buttonsClass: 'button'
1382 });
1383 $__default["default"].fn.bootstrapTable.theme = 'bulma';
1384
1385 $__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
1386 _inherits(_class, _$$BootstrapTable);
1387
1388 var _super = _createSuper(_class);
1389
1390 function _class() {
1391 _classCallCheck(this, _class);
1392
1393 return _super.apply(this, arguments);
1394 }
1395
1396 _createClass(_class, [{
1397 key: "initConstants",
1398 value: function initConstants() {
1399 _get(_getPrototypeOf(_class.prototype), "initConstants", this).call(this);
1400
1401 this.constants.classes.buttonsGroup = 'buttons has-addons';
1402 this.constants.classes.buttonsDropdown = 'button dropdown is-right';
1403 this.constants.classes.input = 'input';
1404 this.constants.classes.paginationDropdown = 'ui dropdown';
1405 this.constants.classes.dropup = 'is-up';
1406 this.constants.classes.dropdownActive = 'is-active';
1407 this.constants.classes.paginationActive = 'is-current';
1408 this.constants.classes.buttonActive = 'is-active';
1409 this.constants.html.toolbarDropdown = ['<div class="dropdown-menu"><div class="dropdown-content">', '</div></div>'];
1410 this.constants.html.toolbarDropdownItem = '<label class="dropdown-item dropdown-item-marker">%s</label>';
1411 this.constants.html.toolbarDropdownSeparator = '<li class="dropdown-divider"></li>';
1412 this.constants.html.pageDropdown = ['<div class="dropdown-menu"><div class="dropdown-content">', '</div></div>'];
1413 this.constants.html.pageDropdownItem = '<a class="dropdown-item %s" href="#">%s</a>';
1414 this.constants.html.dropdownCaret = '<span class="icon is-small"><i class="fas fa-angle-down" aria-hidden="true"></i></span>';
1415 this.constants.html.pagination = ['<ul class="pagination%s">', '</ul>'];
1416 this.constants.html.paginationItem = '<li><a class="page-item pagination-link%s" aria-label="%s" href="#">%s</a></li>';
1417 this.constants.html.searchInput = '<p class="control"><input class="%s input-%s" type="search" placeholder="%s"></p>';
1418 this.constants.html.inputGroup = '<div class="field has-addons has-addons-right">%s%s</div>';
1419 this.constants.html.searchButton = '<p class="control"><button class="%s" type="button" name="search" title="%s">%s %s</button></p>';
1420 this.constants.html.searchClearButton = '<p class="control"><button class="%s" type="button" name="clearSearch" title="%s">%s %s</button></p>';
1421 }
1422 }, {
1423 key: "initToolbar",
1424 value: function initToolbar() {
1425 _get(_getPrototypeOf(_class.prototype), "initToolbar", this).call(this);
1426
1427 this.handleToolbar();
1428 }
1429 }, {
1430 key: "handleToolbar",
1431 value: function handleToolbar() {
1432 if (this.$toolbar.find('.dropdown').length) {
1433 this._initDropdown();
1434 }
1435 }
1436 }, {
1437 key: "initPagination",
1438 value: function initPagination() {
1439 _get(_getPrototypeOf(_class.prototype), "initPagination", this).call(this);
1440
1441 if (this.options.pagination && this.paginationParts.includes('pageSize')) {
1442 this._initDropdown();
1443 }
1444 }
1445 }, {
1446 key: "_initDropdown",
1447 value: function _initDropdown() {
1448 var $dropdowns = this.$container.find('.dropdown:not(.is-hoverable)');
1449 $dropdowns.off('click').on('click', function (e) {
1450 var $this = $__default["default"](e.currentTarget);
1451 e.stopPropagation();
1452 $dropdowns.not($this).removeClass('is-active');
1453 $this.toggleClass('is-active');
1454 });
1455 $__default["default"](document).off('click.bs.dropdown.bulma').on('click.bs.dropdown.bulma', function () {
1456 $dropdowns.removeClass('is-active');
1457 });
1458 }
1459 }]);
1460
1461 return _class;
1462 }($__default["default"].BootstrapTable);
1463
1464}));