UNPKG

107 kBJavaScriptView Raw
1(function (global, factory) {
2 typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3 typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4 (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
5})(this, (function ($$a) { 'use strict';
6
7 function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
9 var $__default = /*#__PURE__*/_interopDefaultLegacy($$a);
10
11 function _typeof(obj) {
12 "@babel/helpers - typeof";
13
14 return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
15 return typeof obj;
16 } : function (obj) {
17 return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
18 }, _typeof(obj);
19 }
20
21 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
22
23 var check = function (it) {
24 return it && it.Math == Math && it;
25 };
26
27 // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
28 var global$t =
29 // eslint-disable-next-line es-x/no-global-this -- safe
30 check(typeof globalThis == 'object' && globalThis) ||
31 check(typeof window == 'object' && window) ||
32 // eslint-disable-next-line no-restricted-globals -- safe
33 check(typeof self == 'object' && self) ||
34 check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
35 // eslint-disable-next-line no-new-func -- fallback
36 (function () { return this; })() || Function('return this')();
37
38 var objectGetOwnPropertyDescriptor = {};
39
40 var fails$h = function (exec) {
41 try {
42 return !!exec();
43 } catch (error) {
44 return true;
45 }
46 };
47
48 var fails$g = fails$h;
49
50 // Detect IE8's incomplete defineProperty implementation
51 var descriptors = !fails$g(function () {
52 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
53 return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
54 });
55
56 var fails$f = fails$h;
57
58 var functionBindNative = !fails$f(function () {
59 // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
60 var test = (function () { /* empty */ }).bind();
61 // eslint-disable-next-line no-prototype-builtins -- safe
62 return typeof test != 'function' || test.hasOwnProperty('prototype');
63 });
64
65 var NATIVE_BIND$2 = functionBindNative;
66
67 var call$6 = Function.prototype.call;
68
69 var functionCall = NATIVE_BIND$2 ? call$6.bind(call$6) : function () {
70 return call$6.apply(call$6, arguments);
71 };
72
73 var objectPropertyIsEnumerable = {};
74
75 var $propertyIsEnumerable = {}.propertyIsEnumerable;
76 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
77 var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
78
79 // Nashorn ~ JDK8 bug
80 var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
81
82 // `Object.prototype.propertyIsEnumerable` method implementation
83 // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
84 objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
85 var descriptor = getOwnPropertyDescriptor$1(this, V);
86 return !!descriptor && descriptor.enumerable;
87 } : $propertyIsEnumerable;
88
89 var createPropertyDescriptor$3 = function (bitmap, value) {
90 return {
91 enumerable: !(bitmap & 1),
92 configurable: !(bitmap & 2),
93 writable: !(bitmap & 4),
94 value: value
95 };
96 };
97
98 var NATIVE_BIND$1 = functionBindNative;
99
100 var FunctionPrototype$1 = Function.prototype;
101 var bind$2 = FunctionPrototype$1.bind;
102 var call$5 = FunctionPrototype$1.call;
103 var uncurryThis$i = NATIVE_BIND$1 && bind$2.bind(call$5, call$5);
104
105 var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
106 return fn && uncurryThis$i(fn);
107 } : function (fn) {
108 return fn && function () {
109 return call$5.apply(fn, arguments);
110 };
111 };
112
113 var uncurryThis$h = functionUncurryThis;
114
115 var toString$6 = uncurryThis$h({}.toString);
116 var stringSlice = uncurryThis$h(''.slice);
117
118 var classofRaw$1 = function (it) {
119 return stringSlice(toString$6(it), 8, -1);
120 };
121
122 var global$s = global$t;
123 var uncurryThis$g = functionUncurryThis;
124 var fails$e = fails$h;
125 var classof$5 = classofRaw$1;
126
127 var Object$4 = global$s.Object;
128 var split = uncurryThis$g(''.split);
129
130 // fallback for non-array-like ES3 and non-enumerable old V8 strings
131 var indexedObject = fails$e(function () {
132 // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
133 // eslint-disable-next-line no-prototype-builtins -- safe
134 return !Object$4('z').propertyIsEnumerable(0);
135 }) ? function (it) {
136 return classof$5(it) == 'String' ? split(it, '') : Object$4(it);
137 } : Object$4;
138
139 var global$r = global$t;
140
141 var TypeError$9 = global$r.TypeError;
142
143 // `RequireObjectCoercible` abstract operation
144 // https://tc39.es/ecma262/#sec-requireobjectcoercible
145 var requireObjectCoercible$3 = function (it) {
146 if (it == undefined) throw TypeError$9("Can't call method on " + it);
147 return it;
148 };
149
150 // toObject with fallback for non-array-like ES3 strings
151 var IndexedObject$2 = indexedObject;
152 var requireObjectCoercible$2 = requireObjectCoercible$3;
153
154 var toIndexedObject$5 = function (it) {
155 return IndexedObject$2(requireObjectCoercible$2(it));
156 };
157
158 // `IsCallable` abstract operation
159 // https://tc39.es/ecma262/#sec-iscallable
160 var isCallable$c = function (argument) {
161 return typeof argument == 'function';
162 };
163
164 var isCallable$b = isCallable$c;
165
166 var isObject$8 = function (it) {
167 return typeof it == 'object' ? it !== null : isCallable$b(it);
168 };
169
170 var global$q = global$t;
171 var isCallable$a = isCallable$c;
172
173 var aFunction = function (argument) {
174 return isCallable$a(argument) ? argument : undefined;
175 };
176
177 var getBuiltIn$5 = function (namespace, method) {
178 return arguments.length < 2 ? aFunction(global$q[namespace]) : global$q[namespace] && global$q[namespace][method];
179 };
180
181 var uncurryThis$f = functionUncurryThis;
182
183 var objectIsPrototypeOf = uncurryThis$f({}.isPrototypeOf);
184
185 var getBuiltIn$4 = getBuiltIn$5;
186
187 var engineUserAgent = getBuiltIn$4('navigator', 'userAgent') || '';
188
189 var global$p = global$t;
190 var userAgent$2 = engineUserAgent;
191
192 var process = global$p.process;
193 var Deno = global$p.Deno;
194 var versions = process && process.versions || Deno && Deno.version;
195 var v8 = versions && versions.v8;
196 var match, version;
197
198 if (v8) {
199 match = v8.split('.');
200 // in old Chrome, versions of V8 isn't V8 = Chrome / 10
201 // but their correct versions are not interesting for us
202 version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
203 }
204
205 // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
206 // so check `userAgent` even if `.v8` exists, but 0
207 if (!version && userAgent$2) {
208 match = userAgent$2.match(/Edge\/(\d+)/);
209 if (!match || match[1] >= 74) {
210 match = userAgent$2.match(/Chrome\/(\d+)/);
211 if (match) version = +match[1];
212 }
213 }
214
215 var engineV8Version = version;
216
217 /* eslint-disable es-x/no-symbol -- required for testing */
218
219 var V8_VERSION$2 = engineV8Version;
220 var fails$d = fails$h;
221
222 // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
223 var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$d(function () {
224 var symbol = Symbol();
225 // Chrome 38 Symbol has incorrect toString conversion
226 // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
227 return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
228 // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
229 !Symbol.sham && V8_VERSION$2 && V8_VERSION$2 < 41;
230 });
231
232 /* eslint-disable es-x/no-symbol -- required for testing */
233
234 var NATIVE_SYMBOL$1 = nativeSymbol;
235
236 var useSymbolAsUid = NATIVE_SYMBOL$1
237 && !Symbol.sham
238 && typeof Symbol.iterator == 'symbol';
239
240 var global$o = global$t;
241 var getBuiltIn$3 = getBuiltIn$5;
242 var isCallable$9 = isCallable$c;
243 var isPrototypeOf$1 = objectIsPrototypeOf;
244 var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
245
246 var Object$3 = global$o.Object;
247
248 var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
249 return typeof it == 'symbol';
250 } : function (it) {
251 var $Symbol = getBuiltIn$3('Symbol');
252 return isCallable$9($Symbol) && isPrototypeOf$1($Symbol.prototype, Object$3(it));
253 };
254
255 var global$n = global$t;
256
257 var String$3 = global$n.String;
258
259 var tryToString$1 = function (argument) {
260 try {
261 return String$3(argument);
262 } catch (error) {
263 return 'Object';
264 }
265 };
266
267 var global$m = global$t;
268 var isCallable$8 = isCallable$c;
269 var tryToString = tryToString$1;
270
271 var TypeError$8 = global$m.TypeError;
272
273 // `Assert: IsCallable(argument) is true`
274 var aCallable$3 = function (argument) {
275 if (isCallable$8(argument)) return argument;
276 throw TypeError$8(tryToString(argument) + ' is not a function');
277 };
278
279 var aCallable$2 = aCallable$3;
280
281 // `GetMethod` abstract operation
282 // https://tc39.es/ecma262/#sec-getmethod
283 var getMethod$1 = function (V, P) {
284 var func = V[P];
285 return func == null ? undefined : aCallable$2(func);
286 };
287
288 var global$l = global$t;
289 var call$4 = functionCall;
290 var isCallable$7 = isCallable$c;
291 var isObject$7 = isObject$8;
292
293 var TypeError$7 = global$l.TypeError;
294
295 // `OrdinaryToPrimitive` abstract operation
296 // https://tc39.es/ecma262/#sec-ordinarytoprimitive
297 var ordinaryToPrimitive$1 = function (input, pref) {
298 var fn, val;
299 if (pref === 'string' && isCallable$7(fn = input.toString) && !isObject$7(val = call$4(fn, input))) return val;
300 if (isCallable$7(fn = input.valueOf) && !isObject$7(val = call$4(fn, input))) return val;
301 if (pref !== 'string' && isCallable$7(fn = input.toString) && !isObject$7(val = call$4(fn, input))) return val;
302 throw TypeError$7("Can't convert object to primitive value");
303 };
304
305 var shared$3 = {exports: {}};
306
307 var global$k = global$t;
308
309 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
310 var defineProperty$2 = Object.defineProperty;
311
312 var setGlobal$3 = function (key, value) {
313 try {
314 defineProperty$2(global$k, key, { value: value, configurable: true, writable: true });
315 } catch (error) {
316 global$k[key] = value;
317 } return value;
318 };
319
320 var global$j = global$t;
321 var setGlobal$2 = setGlobal$3;
322
323 var SHARED = '__core-js_shared__';
324 var store$3 = global$j[SHARED] || setGlobal$2(SHARED, {});
325
326 var sharedStore = store$3;
327
328 var store$2 = sharedStore;
329
330 (shared$3.exports = function (key, value) {
331 return store$2[key] || (store$2[key] = value !== undefined ? value : {});
332 })('versions', []).push({
333 version: '3.22.5',
334 mode: 'global',
335 copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
336 license: 'https://github.com/zloirock/core-js/blob/v3.22.5/LICENSE',
337 source: 'https://github.com/zloirock/core-js'
338 });
339
340 var global$i = global$t;
341 var requireObjectCoercible$1 = requireObjectCoercible$3;
342
343 var Object$2 = global$i.Object;
344
345 // `ToObject` abstract operation
346 // https://tc39.es/ecma262/#sec-toobject
347 var toObject$6 = function (argument) {
348 return Object$2(requireObjectCoercible$1(argument));
349 };
350
351 var uncurryThis$e = functionUncurryThis;
352 var toObject$5 = toObject$6;
353
354 var hasOwnProperty = uncurryThis$e({}.hasOwnProperty);
355
356 // `HasOwnProperty` abstract operation
357 // https://tc39.es/ecma262/#sec-hasownproperty
358 // eslint-disable-next-line es-x/no-object-hasown -- safe
359 var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
360 return hasOwnProperty(toObject$5(it), key);
361 };
362
363 var uncurryThis$d = functionUncurryThis;
364
365 var id = 0;
366 var postfix = Math.random();
367 var toString$5 = uncurryThis$d(1.0.toString);
368
369 var uid$2 = function (key) {
370 return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
371 };
372
373 var global$h = global$t;
374 var shared$2 = shared$3.exports;
375 var hasOwn$7 = hasOwnProperty_1;
376 var uid$1 = uid$2;
377 var NATIVE_SYMBOL = nativeSymbol;
378 var USE_SYMBOL_AS_UID = useSymbolAsUid;
379
380 var WellKnownSymbolsStore = shared$2('wks');
381 var Symbol$2 = global$h.Symbol;
382 var symbolFor = Symbol$2 && Symbol$2['for'];
383 var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$2 : Symbol$2 && Symbol$2.withoutSetter || uid$1;
384
385 var wellKnownSymbol$8 = function (name) {
386 if (!hasOwn$7(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
387 var description = 'Symbol.' + name;
388 if (NATIVE_SYMBOL && hasOwn$7(Symbol$2, name)) {
389 WellKnownSymbolsStore[name] = Symbol$2[name];
390 } else if (USE_SYMBOL_AS_UID && symbolFor) {
391 WellKnownSymbolsStore[name] = symbolFor(description);
392 } else {
393 WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
394 }
395 } return WellKnownSymbolsStore[name];
396 };
397
398 var global$g = global$t;
399 var call$3 = functionCall;
400 var isObject$6 = isObject$8;
401 var isSymbol$1 = isSymbol$2;
402 var getMethod = getMethod$1;
403 var ordinaryToPrimitive = ordinaryToPrimitive$1;
404 var wellKnownSymbol$7 = wellKnownSymbol$8;
405
406 var TypeError$6 = global$g.TypeError;
407 var TO_PRIMITIVE = wellKnownSymbol$7('toPrimitive');
408
409 // `ToPrimitive` abstract operation
410 // https://tc39.es/ecma262/#sec-toprimitive
411 var toPrimitive$1 = function (input, pref) {
412 if (!isObject$6(input) || isSymbol$1(input)) return input;
413 var exoticToPrim = getMethod(input, TO_PRIMITIVE);
414 var result;
415 if (exoticToPrim) {
416 if (pref === undefined) pref = 'default';
417 result = call$3(exoticToPrim, input, pref);
418 if (!isObject$6(result) || isSymbol$1(result)) return result;
419 throw TypeError$6("Can't convert object to primitive value");
420 }
421 if (pref === undefined) pref = 'number';
422 return ordinaryToPrimitive(input, pref);
423 };
424
425 var toPrimitive = toPrimitive$1;
426 var isSymbol = isSymbol$2;
427
428 // `ToPropertyKey` abstract operation
429 // https://tc39.es/ecma262/#sec-topropertykey
430 var toPropertyKey$3 = function (argument) {
431 var key = toPrimitive(argument, 'string');
432 return isSymbol(key) ? key : key + '';
433 };
434
435 var global$f = global$t;
436 var isObject$5 = isObject$8;
437
438 var document$1 = global$f.document;
439 // typeof document.createElement is 'object' in old IE
440 var EXISTS$1 = isObject$5(document$1) && isObject$5(document$1.createElement);
441
442 var documentCreateElement$1 = function (it) {
443 return EXISTS$1 ? document$1.createElement(it) : {};
444 };
445
446 var DESCRIPTORS$8 = descriptors;
447 var fails$c = fails$h;
448 var createElement = documentCreateElement$1;
449
450 // Thanks to IE8 for its funny defineProperty
451 var ie8DomDefine = !DESCRIPTORS$8 && !fails$c(function () {
452 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
453 return Object.defineProperty(createElement('div'), 'a', {
454 get: function () { return 7; }
455 }).a != 7;
456 });
457
458 var DESCRIPTORS$7 = descriptors;
459 var call$2 = functionCall;
460 var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
461 var createPropertyDescriptor$2 = createPropertyDescriptor$3;
462 var toIndexedObject$4 = toIndexedObject$5;
463 var toPropertyKey$2 = toPropertyKey$3;
464 var hasOwn$6 = hasOwnProperty_1;
465 var IE8_DOM_DEFINE$1 = ie8DomDefine;
466
467 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
468 var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
469
470 // `Object.getOwnPropertyDescriptor` method
471 // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
472 objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
473 O = toIndexedObject$4(O);
474 P = toPropertyKey$2(P);
475 if (IE8_DOM_DEFINE$1) try {
476 return $getOwnPropertyDescriptor$1(O, P);
477 } catch (error) { /* empty */ }
478 if (hasOwn$6(O, P)) return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
479 };
480
481 var objectDefineProperty = {};
482
483 var DESCRIPTORS$6 = descriptors;
484 var fails$b = fails$h;
485
486 // V8 ~ Chrome 36-
487 // https://bugs.chromium.org/p/v8/issues/detail?id=3334
488 var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$b(function () {
489 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
490 return Object.defineProperty(function () { /* empty */ }, 'prototype', {
491 value: 42,
492 writable: false
493 }).prototype != 42;
494 });
495
496 var global$e = global$t;
497 var isObject$4 = isObject$8;
498
499 var String$2 = global$e.String;
500 var TypeError$5 = global$e.TypeError;
501
502 // `Assert: Type(argument) is Object`
503 var anObject$6 = function (argument) {
504 if (isObject$4(argument)) return argument;
505 throw TypeError$5(String$2(argument) + ' is not an object');
506 };
507
508 var global$d = global$t;
509 var DESCRIPTORS$5 = descriptors;
510 var IE8_DOM_DEFINE = ie8DomDefine;
511 var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
512 var anObject$5 = anObject$6;
513 var toPropertyKey$1 = toPropertyKey$3;
514
515 var TypeError$4 = global$d.TypeError;
516 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
517 var $defineProperty = Object.defineProperty;
518 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
519 var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
520 var ENUMERABLE = 'enumerable';
521 var CONFIGURABLE$1 = 'configurable';
522 var WRITABLE = 'writable';
523
524 // `Object.defineProperty` method
525 // https://tc39.es/ecma262/#sec-object.defineproperty
526 objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
527 anObject$5(O);
528 P = toPropertyKey$1(P);
529 anObject$5(Attributes);
530 if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
531 var current = $getOwnPropertyDescriptor(O, P);
532 if (current && current[WRITABLE]) {
533 O[P] = Attributes.value;
534 Attributes = {
535 configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
536 enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
537 writable: false
538 };
539 }
540 } return $defineProperty(O, P, Attributes);
541 } : $defineProperty : function defineProperty(O, P, Attributes) {
542 anObject$5(O);
543 P = toPropertyKey$1(P);
544 anObject$5(Attributes);
545 if (IE8_DOM_DEFINE) try {
546 return $defineProperty(O, P, Attributes);
547 } catch (error) { /* empty */ }
548 if ('get' in Attributes || 'set' in Attributes) throw TypeError$4('Accessors not supported');
549 if ('value' in Attributes) O[P] = Attributes.value;
550 return O;
551 };
552
553 var DESCRIPTORS$4 = descriptors;
554 var definePropertyModule$4 = objectDefineProperty;
555 var createPropertyDescriptor$1 = createPropertyDescriptor$3;
556
557 var createNonEnumerableProperty$3 = DESCRIPTORS$4 ? function (object, key, value) {
558 return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
559 } : function (object, key, value) {
560 object[key] = value;
561 return object;
562 };
563
564 var makeBuiltIn$2 = {exports: {}};
565
566 var DESCRIPTORS$3 = descriptors;
567 var hasOwn$5 = hasOwnProperty_1;
568
569 var FunctionPrototype = Function.prototype;
570 // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
571 var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
572
573 var EXISTS = hasOwn$5(FunctionPrototype, 'name');
574 // additional protection from minified / mangled / dropped function names
575 var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
576 var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
577
578 var functionName = {
579 EXISTS: EXISTS,
580 PROPER: PROPER,
581 CONFIGURABLE: CONFIGURABLE
582 };
583
584 var uncurryThis$c = functionUncurryThis;
585 var isCallable$6 = isCallable$c;
586 var store$1 = sharedStore;
587
588 var functionToString = uncurryThis$c(Function.toString);
589
590 // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
591 if (!isCallable$6(store$1.inspectSource)) {
592 store$1.inspectSource = function (it) {
593 return functionToString(it);
594 };
595 }
596
597 var inspectSource$3 = store$1.inspectSource;
598
599 var global$c = global$t;
600 var isCallable$5 = isCallable$c;
601 var inspectSource$2 = inspectSource$3;
602
603 var WeakMap$1 = global$c.WeakMap;
604
605 var nativeWeakMap = isCallable$5(WeakMap$1) && /native code/.test(inspectSource$2(WeakMap$1));
606
607 var shared$1 = shared$3.exports;
608 var uid = uid$2;
609
610 var keys = shared$1('keys');
611
612 var sharedKey$2 = function (key) {
613 return keys[key] || (keys[key] = uid(key));
614 };
615
616 var hiddenKeys$4 = {};
617
618 var NATIVE_WEAK_MAP = nativeWeakMap;
619 var global$b = global$t;
620 var uncurryThis$b = functionUncurryThis;
621 var isObject$3 = isObject$8;
622 var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
623 var hasOwn$4 = hasOwnProperty_1;
624 var shared = sharedStore;
625 var sharedKey$1 = sharedKey$2;
626 var hiddenKeys$3 = hiddenKeys$4;
627
628 var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
629 var TypeError$3 = global$b.TypeError;
630 var WeakMap = global$b.WeakMap;
631 var set, get, has;
632
633 var enforce = function (it) {
634 return has(it) ? get(it) : set(it, {});
635 };
636
637 var getterFor = function (TYPE) {
638 return function (it) {
639 var state;
640 if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
641 throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
642 } return state;
643 };
644 };
645
646 if (NATIVE_WEAK_MAP || shared.state) {
647 var store = shared.state || (shared.state = new WeakMap());
648 var wmget = uncurryThis$b(store.get);
649 var wmhas = uncurryThis$b(store.has);
650 var wmset = uncurryThis$b(store.set);
651 set = function (it, metadata) {
652 if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
653 metadata.facade = it;
654 wmset(store, it, metadata);
655 return metadata;
656 };
657 get = function (it) {
658 return wmget(store, it) || {};
659 };
660 has = function (it) {
661 return wmhas(store, it);
662 };
663 } else {
664 var STATE = sharedKey$1('state');
665 hiddenKeys$3[STATE] = true;
666 set = function (it, metadata) {
667 if (hasOwn$4(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
668 metadata.facade = it;
669 createNonEnumerableProperty$2(it, STATE, metadata);
670 return metadata;
671 };
672 get = function (it) {
673 return hasOwn$4(it, STATE) ? it[STATE] : {};
674 };
675 has = function (it) {
676 return hasOwn$4(it, STATE);
677 };
678 }
679
680 var internalState = {
681 set: set,
682 get: get,
683 has: has,
684 enforce: enforce,
685 getterFor: getterFor
686 };
687
688 var fails$a = fails$h;
689 var isCallable$4 = isCallable$c;
690 var hasOwn$3 = hasOwnProperty_1;
691 var DESCRIPTORS$2 = descriptors;
692 var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
693 var inspectSource$1 = inspectSource$3;
694 var InternalStateModule = internalState;
695
696 var enforceInternalState = InternalStateModule.enforce;
697 var getInternalState = InternalStateModule.get;
698 // eslint-disable-next-line es-x/no-object-defineproperty -- safe
699 var defineProperty$1 = Object.defineProperty;
700
701 var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$a(function () {
702 return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
703 });
704
705 var TEMPLATE = String(String).split('String');
706
707 var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
708 if (String(name).slice(0, 7) === 'Symbol(') {
709 name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
710 }
711 if (options && options.getter) name = 'get ' + name;
712 if (options && options.setter) name = 'set ' + name;
713 if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
714 defineProperty$1(value, 'name', { value: name, configurable: true });
715 }
716 if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
717 defineProperty$1(value, 'length', { value: options.arity });
718 }
719 if (options && hasOwn$3(options, 'constructor') && options.constructor) {
720 if (DESCRIPTORS$2) try {
721 defineProperty$1(value, 'prototype', { writable: false });
722 } catch (error) { /* empty */ }
723 } else value.prototype = undefined;
724 var state = enforceInternalState(value);
725 if (!hasOwn$3(state, 'source')) {
726 state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
727 } return value;
728 };
729
730 // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
731 // eslint-disable-next-line no-extend-native -- required
732 Function.prototype.toString = makeBuiltIn$1(function toString() {
733 return isCallable$4(this) && getInternalState(this).source || inspectSource$1(this);
734 }, 'toString');
735
736 var global$a = global$t;
737 var isCallable$3 = isCallable$c;
738 var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
739 var makeBuiltIn = makeBuiltIn$2.exports;
740 var setGlobal$1 = setGlobal$3;
741
742 var defineBuiltIn$3 = function (O, key, value, options) {
743 var unsafe = options ? !!options.unsafe : false;
744 var simple = options ? !!options.enumerable : false;
745 var noTargetGet = options ? !!options.noTargetGet : false;
746 var name = options && options.name !== undefined ? options.name : key;
747 if (isCallable$3(value)) makeBuiltIn(value, name, options);
748 if (O === global$a) {
749 if (simple) O[key] = value;
750 else setGlobal$1(key, value);
751 return O;
752 } else if (!unsafe) {
753 delete O[key];
754 } else if (!noTargetGet && O[key]) {
755 simple = true;
756 }
757 if (simple) O[key] = value;
758 else createNonEnumerableProperty$1(O, key, value);
759 return O;
760 };
761
762 var objectGetOwnPropertyNames = {};
763
764 var ceil = Math.ceil;
765 var floor$1 = Math.floor;
766
767 // `ToIntegerOrInfinity` abstract operation
768 // https://tc39.es/ecma262/#sec-tointegerorinfinity
769 var toIntegerOrInfinity$3 = function (argument) {
770 var number = +argument;
771 // eslint-disable-next-line no-self-compare -- safe
772 return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
773 };
774
775 var toIntegerOrInfinity$2 = toIntegerOrInfinity$3;
776
777 var max$3 = Math.max;
778 var min$2 = Math.min;
779
780 // Helper for a popular repeating case of the spec:
781 // Let integer be ? ToInteger(index).
782 // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
783 var toAbsoluteIndex$4 = function (index, length) {
784 var integer = toIntegerOrInfinity$2(index);
785 return integer < 0 ? max$3(integer + length, 0) : min$2(integer, length);
786 };
787
788 var toIntegerOrInfinity$1 = toIntegerOrInfinity$3;
789
790 var min$1 = Math.min;
791
792 // `ToLength` abstract operation
793 // https://tc39.es/ecma262/#sec-tolength
794 var toLength$1 = function (argument) {
795 return argument > 0 ? min$1(toIntegerOrInfinity$1(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
796 };
797
798 var toLength = toLength$1;
799
800 // `LengthOfArrayLike` abstract operation
801 // https://tc39.es/ecma262/#sec-lengthofarraylike
802 var lengthOfArrayLike$7 = function (obj) {
803 return toLength(obj.length);
804 };
805
806 var toIndexedObject$3 = toIndexedObject$5;
807 var toAbsoluteIndex$3 = toAbsoluteIndex$4;
808 var lengthOfArrayLike$6 = lengthOfArrayLike$7;
809
810 // `Array.prototype.{ indexOf, includes }` methods implementation
811 var createMethod$2 = function (IS_INCLUDES) {
812 return function ($this, el, fromIndex) {
813 var O = toIndexedObject$3($this);
814 var length = lengthOfArrayLike$6(O);
815 var index = toAbsoluteIndex$3(fromIndex, length);
816 var value;
817 // Array#includes uses SameValueZero equality algorithm
818 // eslint-disable-next-line no-self-compare -- NaN check
819 if (IS_INCLUDES && el != el) while (length > index) {
820 value = O[index++];
821 // eslint-disable-next-line no-self-compare -- NaN check
822 if (value != value) return true;
823 // Array#indexOf ignores holes, Array#includes - not
824 } else for (;length > index; index++) {
825 if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
826 } return !IS_INCLUDES && -1;
827 };
828 };
829
830 var arrayIncludes = {
831 // `Array.prototype.includes` method
832 // https://tc39.es/ecma262/#sec-array.prototype.includes
833 includes: createMethod$2(true),
834 // `Array.prototype.indexOf` method
835 // https://tc39.es/ecma262/#sec-array.prototype.indexof
836 indexOf: createMethod$2(false)
837 };
838
839 var uncurryThis$a = functionUncurryThis;
840 var hasOwn$2 = hasOwnProperty_1;
841 var toIndexedObject$2 = toIndexedObject$5;
842 var indexOf = arrayIncludes.indexOf;
843 var hiddenKeys$2 = hiddenKeys$4;
844
845 var push$2 = uncurryThis$a([].push);
846
847 var objectKeysInternal = function (object, names) {
848 var O = toIndexedObject$2(object);
849 var i = 0;
850 var result = [];
851 var key;
852 for (key in O) !hasOwn$2(hiddenKeys$2, key) && hasOwn$2(O, key) && push$2(result, key);
853 // Don't enum bug & hidden keys
854 while (names.length > i) if (hasOwn$2(O, key = names[i++])) {
855 ~indexOf(result, key) || push$2(result, key);
856 }
857 return result;
858 };
859
860 // IE8- don't enum bug keys
861 var enumBugKeys$3 = [
862 'constructor',
863 'hasOwnProperty',
864 'isPrototypeOf',
865 'propertyIsEnumerable',
866 'toLocaleString',
867 'toString',
868 'valueOf'
869 ];
870
871 var internalObjectKeys$1 = objectKeysInternal;
872 var enumBugKeys$2 = enumBugKeys$3;
873
874 var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
875
876 // `Object.getOwnPropertyNames` method
877 // https://tc39.es/ecma262/#sec-object.getownpropertynames
878 // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
879 objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
880 return internalObjectKeys$1(O, hiddenKeys$1);
881 };
882
883 var objectGetOwnPropertySymbols = {};
884
885 // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
886 objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
887
888 var getBuiltIn$2 = getBuiltIn$5;
889 var uncurryThis$9 = functionUncurryThis;
890 var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
891 var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
892 var anObject$4 = anObject$6;
893
894 var concat$1 = uncurryThis$9([].concat);
895
896 // all object keys, includes non-enumerable and symbols
897 var ownKeys$1 = getBuiltIn$2('Reflect', 'ownKeys') || function ownKeys(it) {
898 var keys = getOwnPropertyNamesModule.f(anObject$4(it));
899 var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
900 return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
901 };
902
903 var hasOwn$1 = hasOwnProperty_1;
904 var ownKeys = ownKeys$1;
905 var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
906 var definePropertyModule$3 = objectDefineProperty;
907
908 var copyConstructorProperties$1 = function (target, source, exceptions) {
909 var keys = ownKeys(source);
910 var defineProperty = definePropertyModule$3.f;
911 var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
912 for (var i = 0; i < keys.length; i++) {
913 var key = keys[i];
914 if (!hasOwn$1(target, key) && !(exceptions && hasOwn$1(exceptions, key))) {
915 defineProperty(target, key, getOwnPropertyDescriptor(source, key));
916 }
917 }
918 };
919
920 var fails$9 = fails$h;
921 var isCallable$2 = isCallable$c;
922
923 var replacement = /#|\.prototype\./;
924
925 var isForced$1 = function (feature, detection) {
926 var value = data[normalize(feature)];
927 return value == POLYFILL ? true
928 : value == NATIVE ? false
929 : isCallable$2(detection) ? fails$9(detection)
930 : !!detection;
931 };
932
933 var normalize = isForced$1.normalize = function (string) {
934 return String(string).replace(replacement, '.').toLowerCase();
935 };
936
937 var data = isForced$1.data = {};
938 var NATIVE = isForced$1.NATIVE = 'N';
939 var POLYFILL = isForced$1.POLYFILL = 'P';
940
941 var isForced_1 = isForced$1;
942
943 var global$9 = global$t;
944 var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
945 var createNonEnumerableProperty = createNonEnumerableProperty$3;
946 var defineBuiltIn$2 = defineBuiltIn$3;
947 var setGlobal = setGlobal$3;
948 var copyConstructorProperties = copyConstructorProperties$1;
949 var isForced = isForced_1;
950
951 /*
952 options.target - name of the target object
953 options.global - target is the global object
954 options.stat - export as static methods of target
955 options.proto - export as prototype methods of target
956 options.real - real prototype method for the `pure` version
957 options.forced - export even if the native feature is available
958 options.bind - bind methods to the target, required for the `pure` version
959 options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
960 options.unsafe - use the simple assignment of property instead of delete + defineProperty
961 options.sham - add a flag to not completely full polyfills
962 options.enumerable - export as enumerable property
963 options.noTargetGet - prevent calling a getter on target
964 options.name - the .name of the function if it does not match the key
965 */
966 var _export = function (options, source) {
967 var TARGET = options.target;
968 var GLOBAL = options.global;
969 var STATIC = options.stat;
970 var FORCED, target, key, targetProperty, sourceProperty, descriptor;
971 if (GLOBAL) {
972 target = global$9;
973 } else if (STATIC) {
974 target = global$9[TARGET] || setGlobal(TARGET, {});
975 } else {
976 target = (global$9[TARGET] || {}).prototype;
977 }
978 if (target) for (key in source) {
979 sourceProperty = source[key];
980 if (options.noTargetGet) {
981 descriptor = getOwnPropertyDescriptor(target, key);
982 targetProperty = descriptor && descriptor.value;
983 } else targetProperty = target[key];
984 FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
985 // contained in target
986 if (!FORCED && targetProperty !== undefined) {
987 if (typeof sourceProperty == typeof targetProperty) continue;
988 copyConstructorProperties(sourceProperty, targetProperty);
989 }
990 // add a flag to not completely full polyfills
991 if (options.sham || (targetProperty && targetProperty.sham)) {
992 createNonEnumerableProperty(sourceProperty, 'sham', true);
993 }
994 defineBuiltIn$2(target, key, sourceProperty, options);
995 }
996 };
997
998 var uncurryThis$8 = functionUncurryThis;
999 var aCallable$1 = aCallable$3;
1000 var NATIVE_BIND = functionBindNative;
1001
1002 var bind$1 = uncurryThis$8(uncurryThis$8.bind);
1003
1004 // optional / simple context binding
1005 var functionBindContext = function (fn, that) {
1006 aCallable$1(fn);
1007 return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1008 return fn.apply(that, arguments);
1009 };
1010 };
1011
1012 var classof$4 = classofRaw$1;
1013
1014 // `IsArray` abstract operation
1015 // https://tc39.es/ecma262/#sec-isarray
1016 // eslint-disable-next-line es-x/no-array-isarray -- safe
1017 var isArray$3 = Array.isArray || function isArray(argument) {
1018 return classof$4(argument) == 'Array';
1019 };
1020
1021 var wellKnownSymbol$6 = wellKnownSymbol$8;
1022
1023 var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
1024 var test$1 = {};
1025
1026 test$1[TO_STRING_TAG$1] = 'z';
1027
1028 var toStringTagSupport = String(test$1) === '[object z]';
1029
1030 var global$8 = global$t;
1031 var TO_STRING_TAG_SUPPORT$2 = toStringTagSupport;
1032 var isCallable$1 = isCallable$c;
1033 var classofRaw = classofRaw$1;
1034 var wellKnownSymbol$5 = wellKnownSymbol$8;
1035
1036 var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
1037 var Object$1 = global$8.Object;
1038
1039 // ES3 wrong here
1040 var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1041
1042 // fallback for IE11 Script Access Denied error
1043 var tryGet = function (it, key) {
1044 try {
1045 return it[key];
1046 } catch (error) { /* empty */ }
1047 };
1048
1049 // getting tag from ES6+ `Object.prototype.toString`
1050 var classof$3 = TO_STRING_TAG_SUPPORT$2 ? classofRaw : function (it) {
1051 var O, tag, result;
1052 return it === undefined ? 'Undefined' : it === null ? 'Null'
1053 // @@toStringTag case
1054 : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
1055 // builtinTag case
1056 : CORRECT_ARGUMENTS ? classofRaw(O)
1057 // ES3 arguments fallback
1058 : (result = classofRaw(O)) == 'Object' && isCallable$1(O.callee) ? 'Arguments' : result;
1059 };
1060
1061 var uncurryThis$7 = functionUncurryThis;
1062 var fails$8 = fails$h;
1063 var isCallable = isCallable$c;
1064 var classof$2 = classof$3;
1065 var getBuiltIn$1 = getBuiltIn$5;
1066 var inspectSource = inspectSource$3;
1067
1068 var noop = function () { /* empty */ };
1069 var empty = [];
1070 var construct = getBuiltIn$1('Reflect', 'construct');
1071 var constructorRegExp = /^\s*(?:class|function)\b/;
1072 var exec = uncurryThis$7(constructorRegExp.exec);
1073 var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1074
1075 var isConstructorModern = function isConstructor(argument) {
1076 if (!isCallable(argument)) return false;
1077 try {
1078 construct(noop, empty, argument);
1079 return true;
1080 } catch (error) {
1081 return false;
1082 }
1083 };
1084
1085 var isConstructorLegacy = function isConstructor(argument) {
1086 if (!isCallable(argument)) return false;
1087 switch (classof$2(argument)) {
1088 case 'AsyncFunction':
1089 case 'GeneratorFunction':
1090 case 'AsyncGeneratorFunction': return false;
1091 }
1092 try {
1093 // we can't check .prototype since constructors produced by .bind haven't it
1094 // `Function#toString` throws on some built-it function in some legacy engines
1095 // (for example, `DOMQuad` and similar in FF41-)
1096 return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
1097 } catch (error) {
1098 return true;
1099 }
1100 };
1101
1102 isConstructorLegacy.sham = true;
1103
1104 // `IsConstructor` abstract operation
1105 // https://tc39.es/ecma262/#sec-isconstructor
1106 var isConstructor$2 = !construct || fails$8(function () {
1107 var called;
1108 return isConstructorModern(isConstructorModern.call)
1109 || !isConstructorModern(Object)
1110 || !isConstructorModern(function () { called = true; })
1111 || called;
1112 }) ? isConstructorLegacy : isConstructorModern;
1113
1114 var global$7 = global$t;
1115 var isArray$2 = isArray$3;
1116 var isConstructor$1 = isConstructor$2;
1117 var isObject$2 = isObject$8;
1118 var wellKnownSymbol$4 = wellKnownSymbol$8;
1119
1120 var SPECIES$2 = wellKnownSymbol$4('species');
1121 var Array$3 = global$7.Array;
1122
1123 // a part of `ArraySpeciesCreate` abstract operation
1124 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1125 var arraySpeciesConstructor$1 = function (originalArray) {
1126 var C;
1127 if (isArray$2(originalArray)) {
1128 C = originalArray.constructor;
1129 // cross-realm fallback
1130 if (isConstructor$1(C) && (C === Array$3 || isArray$2(C.prototype))) C = undefined;
1131 else if (isObject$2(C)) {
1132 C = C[SPECIES$2];
1133 if (C === null) C = undefined;
1134 }
1135 } return C === undefined ? Array$3 : C;
1136 };
1137
1138 var arraySpeciesConstructor = arraySpeciesConstructor$1;
1139
1140 // `ArraySpeciesCreate` abstract operation
1141 // https://tc39.es/ecma262/#sec-arrayspeciescreate
1142 var arraySpeciesCreate$3 = function (originalArray, length) {
1143 return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
1144 };
1145
1146 var bind = functionBindContext;
1147 var uncurryThis$6 = functionUncurryThis;
1148 var IndexedObject$1 = indexedObject;
1149 var toObject$4 = toObject$6;
1150 var lengthOfArrayLike$5 = lengthOfArrayLike$7;
1151 var arraySpeciesCreate$2 = arraySpeciesCreate$3;
1152
1153 var push$1 = uncurryThis$6([].push);
1154
1155 // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
1156 var createMethod$1 = function (TYPE) {
1157 var IS_MAP = TYPE == 1;
1158 var IS_FILTER = TYPE == 2;
1159 var IS_SOME = TYPE == 3;
1160 var IS_EVERY = TYPE == 4;
1161 var IS_FIND_INDEX = TYPE == 6;
1162 var IS_FILTER_REJECT = TYPE == 7;
1163 var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1164 return function ($this, callbackfn, that, specificCreate) {
1165 var O = toObject$4($this);
1166 var self = IndexedObject$1(O);
1167 var boundFunction = bind(callbackfn, that);
1168 var length = lengthOfArrayLike$5(self);
1169 var index = 0;
1170 var create = specificCreate || arraySpeciesCreate$2;
1171 var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
1172 var value, result;
1173 for (;length > index; index++) if (NO_HOLES || index in self) {
1174 value = self[index];
1175 result = boundFunction(value, index, O);
1176 if (TYPE) {
1177 if (IS_MAP) target[index] = result; // map
1178 else if (result) switch (TYPE) {
1179 case 3: return true; // some
1180 case 5: return value; // find
1181 case 6: return index; // findIndex
1182 case 2: push$1(target, value); // filter
1183 } else switch (TYPE) {
1184 case 4: return false; // every
1185 case 7: push$1(target, value); // filterReject
1186 }
1187 }
1188 }
1189 return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
1190 };
1191 };
1192
1193 var arrayIteration = {
1194 // `Array.prototype.forEach` method
1195 // https://tc39.es/ecma262/#sec-array.prototype.foreach
1196 forEach: createMethod$1(0),
1197 // `Array.prototype.map` method
1198 // https://tc39.es/ecma262/#sec-array.prototype.map
1199 map: createMethod$1(1),
1200 // `Array.prototype.filter` method
1201 // https://tc39.es/ecma262/#sec-array.prototype.filter
1202 filter: createMethod$1(2),
1203 // `Array.prototype.some` method
1204 // https://tc39.es/ecma262/#sec-array.prototype.some
1205 some: createMethod$1(3),
1206 // `Array.prototype.every` method
1207 // https://tc39.es/ecma262/#sec-array.prototype.every
1208 every: createMethod$1(4),
1209 // `Array.prototype.find` method
1210 // https://tc39.es/ecma262/#sec-array.prototype.find
1211 find: createMethod$1(5),
1212 // `Array.prototype.findIndex` method
1213 // https://tc39.es/ecma262/#sec-array.prototype.findIndex
1214 findIndex: createMethod$1(6),
1215 // `Array.prototype.filterReject` method
1216 // https://github.com/tc39/proposal-array-filtering
1217 filterReject: createMethod$1(7)
1218 };
1219
1220 var objectDefineProperties = {};
1221
1222 var internalObjectKeys = objectKeysInternal;
1223 var enumBugKeys$1 = enumBugKeys$3;
1224
1225 // `Object.keys` method
1226 // https://tc39.es/ecma262/#sec-object.keys
1227 // eslint-disable-next-line es-x/no-object-keys -- safe
1228 var objectKeys$2 = Object.keys || function keys(O) {
1229 return internalObjectKeys(O, enumBugKeys$1);
1230 };
1231
1232 var DESCRIPTORS$1 = descriptors;
1233 var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1234 var definePropertyModule$2 = objectDefineProperty;
1235 var anObject$3 = anObject$6;
1236 var toIndexedObject$1 = toIndexedObject$5;
1237 var objectKeys$1 = objectKeys$2;
1238
1239 // `Object.defineProperties` method
1240 // https://tc39.es/ecma262/#sec-object.defineproperties
1241 // eslint-disable-next-line es-x/no-object-defineproperties -- safe
1242 objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1243 anObject$3(O);
1244 var props = toIndexedObject$1(Properties);
1245 var keys = objectKeys$1(Properties);
1246 var length = keys.length;
1247 var index = 0;
1248 var key;
1249 while (length > index) definePropertyModule$2.f(O, key = keys[index++], props[key]);
1250 return O;
1251 };
1252
1253 var getBuiltIn = getBuiltIn$5;
1254
1255 var html$1 = getBuiltIn('document', 'documentElement');
1256
1257 /* global ActiveXObject -- old IE, WSH */
1258
1259 var anObject$2 = anObject$6;
1260 var definePropertiesModule = objectDefineProperties;
1261 var enumBugKeys = enumBugKeys$3;
1262 var hiddenKeys = hiddenKeys$4;
1263 var html = html$1;
1264 var documentCreateElement = documentCreateElement$1;
1265 var sharedKey = sharedKey$2;
1266
1267 var GT = '>';
1268 var LT = '<';
1269 var PROTOTYPE = 'prototype';
1270 var SCRIPT = 'script';
1271 var IE_PROTO = sharedKey('IE_PROTO');
1272
1273 var EmptyConstructor = function () { /* empty */ };
1274
1275 var scriptTag = function (content) {
1276 return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1277 };
1278
1279 // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1280 var NullProtoObjectViaActiveX = function (activeXDocument) {
1281 activeXDocument.write(scriptTag(''));
1282 activeXDocument.close();
1283 var temp = activeXDocument.parentWindow.Object;
1284 activeXDocument = null; // avoid memory leak
1285 return temp;
1286 };
1287
1288 // Create object with fake `null` prototype: use iframe Object with cleared prototype
1289 var NullProtoObjectViaIFrame = function () {
1290 // Thrash, waste and sodomy: IE GC bug
1291 var iframe = documentCreateElement('iframe');
1292 var JS = 'java' + SCRIPT + ':';
1293 var iframeDocument;
1294 iframe.style.display = 'none';
1295 html.appendChild(iframe);
1296 // https://github.com/zloirock/core-js/issues/475
1297 iframe.src = String(JS);
1298 iframeDocument = iframe.contentWindow.document;
1299 iframeDocument.open();
1300 iframeDocument.write(scriptTag('document.F=Object'));
1301 iframeDocument.close();
1302 return iframeDocument.F;
1303 };
1304
1305 // Check for document.domain and active x support
1306 // No need to use active x approach when document.domain is not set
1307 // see https://github.com/es-shims/es5-shim/issues/150
1308 // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1309 // avoid IE GC bug
1310 var activeXDocument;
1311 var NullProtoObject = function () {
1312 try {
1313 activeXDocument = new ActiveXObject('htmlfile');
1314 } catch (error) { /* ignore */ }
1315 NullProtoObject = typeof document != 'undefined'
1316 ? document.domain && activeXDocument
1317 ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1318 : NullProtoObjectViaIFrame()
1319 : NullProtoObjectViaActiveX(activeXDocument); // WSH
1320 var length = enumBugKeys.length;
1321 while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1322 return NullProtoObject();
1323 };
1324
1325 hiddenKeys[IE_PROTO] = true;
1326
1327 // `Object.create` method
1328 // https://tc39.es/ecma262/#sec-object.create
1329 // eslint-disable-next-line es-x/no-object-create -- safe
1330 var objectCreate = Object.create || function create(O, Properties) {
1331 var result;
1332 if (O !== null) {
1333 EmptyConstructor[PROTOTYPE] = anObject$2(O);
1334 result = new EmptyConstructor();
1335 EmptyConstructor[PROTOTYPE] = null;
1336 // add "__proto__" for Object.getPrototypeOf polyfill
1337 result[IE_PROTO] = O;
1338 } else result = NullProtoObject();
1339 return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1340 };
1341
1342 var wellKnownSymbol$3 = wellKnownSymbol$8;
1343 var create = objectCreate;
1344 var definePropertyModule$1 = objectDefineProperty;
1345
1346 var UNSCOPABLES = wellKnownSymbol$3('unscopables');
1347 var ArrayPrototype = Array.prototype;
1348
1349 // Array.prototype[@@unscopables]
1350 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1351 if (ArrayPrototype[UNSCOPABLES] == undefined) {
1352 definePropertyModule$1.f(ArrayPrototype, UNSCOPABLES, {
1353 configurable: true,
1354 value: create(null)
1355 });
1356 }
1357
1358 // add a key to Array.prototype[@@unscopables]
1359 var addToUnscopables$2 = function (key) {
1360 ArrayPrototype[UNSCOPABLES][key] = true;
1361 };
1362
1363 var $$9 = _export;
1364 var $find = arrayIteration.find;
1365 var addToUnscopables$1 = addToUnscopables$2;
1366
1367 var FIND = 'find';
1368 var SKIPS_HOLES = true;
1369
1370 // Shouldn't skip holes
1371 if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
1372
1373 // `Array.prototype.find` method
1374 // https://tc39.es/ecma262/#sec-array.prototype.find
1375 $$9({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
1376 find: function find(callbackfn /* , that = undefined */) {
1377 return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1378 }
1379 });
1380
1381 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1382 addToUnscopables$1(FIND);
1383
1384 var TO_STRING_TAG_SUPPORT$1 = toStringTagSupport;
1385 var classof$1 = classof$3;
1386
1387 // `Object.prototype.toString` method implementation
1388 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1389 var objectToString = TO_STRING_TAG_SUPPORT$1 ? {}.toString : function toString() {
1390 return '[object ' + classof$1(this) + ']';
1391 };
1392
1393 var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1394 var defineBuiltIn$1 = defineBuiltIn$3;
1395 var toString$4 = objectToString;
1396
1397 // `Object.prototype.toString` method
1398 // https://tc39.es/ecma262/#sec-object.prototype.tostring
1399 if (!TO_STRING_TAG_SUPPORT) {
1400 defineBuiltIn$1(Object.prototype, 'toString', toString$4, { unsafe: true });
1401 }
1402
1403 var fails$7 = fails$h;
1404 var wellKnownSymbol$2 = wellKnownSymbol$8;
1405 var V8_VERSION$1 = engineV8Version;
1406
1407 var SPECIES$1 = wellKnownSymbol$2('species');
1408
1409 var arrayMethodHasSpeciesSupport$4 = function (METHOD_NAME) {
1410 // We can't use this feature detection in V8 since it causes
1411 // deoptimization and serious performance degradation
1412 // https://github.com/zloirock/core-js/issues/677
1413 return V8_VERSION$1 >= 51 || !fails$7(function () {
1414 var array = [];
1415 var constructor = array.constructor = {};
1416 constructor[SPECIES$1] = function () {
1417 return { foo: 1 };
1418 };
1419 return array[METHOD_NAME](Boolean).foo !== 1;
1420 });
1421 };
1422
1423 var $$8 = _export;
1424 var $map = arrayIteration.map;
1425 var arrayMethodHasSpeciesSupport$3 = arrayMethodHasSpeciesSupport$4;
1426
1427 var HAS_SPECIES_SUPPORT$2 = arrayMethodHasSpeciesSupport$3('map');
1428
1429 // `Array.prototype.map` method
1430 // https://tc39.es/ecma262/#sec-array.prototype.map
1431 // with adding support of @@species
1432 $$8({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
1433 map: function map(callbackfn /* , thisArg */) {
1434 return $map(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1435 }
1436 });
1437
1438 var global$6 = global$t;
1439 var classof = classof$3;
1440
1441 var String$1 = global$6.String;
1442
1443 var toString$3 = function (argument) {
1444 if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1445 return String$1(argument);
1446 };
1447
1448 var toPropertyKey = toPropertyKey$3;
1449 var definePropertyModule = objectDefineProperty;
1450 var createPropertyDescriptor = createPropertyDescriptor$3;
1451
1452 var createProperty$4 = function (object, key, value) {
1453 var propertyKey = toPropertyKey(key);
1454 if (propertyKey in object) definePropertyModule.f(object, propertyKey, createPropertyDescriptor(0, value));
1455 else object[propertyKey] = value;
1456 };
1457
1458 var global$5 = global$t;
1459 var toAbsoluteIndex$2 = toAbsoluteIndex$4;
1460 var lengthOfArrayLike$4 = lengthOfArrayLike$7;
1461 var createProperty$3 = createProperty$4;
1462
1463 var Array$2 = global$5.Array;
1464 var max$2 = Math.max;
1465
1466 var arraySliceSimple = function (O, start, end) {
1467 var length = lengthOfArrayLike$4(O);
1468 var k = toAbsoluteIndex$2(start, length);
1469 var fin = toAbsoluteIndex$2(end === undefined ? length : end, length);
1470 var result = Array$2(max$2(fin - k, 0));
1471 for (var n = 0; k < fin; k++, n++) createProperty$3(result, n, O[k]);
1472 result.length = n;
1473 return result;
1474 };
1475
1476 var arraySlice$1 = arraySliceSimple;
1477
1478 var floor = Math.floor;
1479
1480 var mergeSort = function (array, comparefn) {
1481 var length = array.length;
1482 var middle = floor(length / 2);
1483 return length < 8 ? insertionSort(array, comparefn) : merge(
1484 array,
1485 mergeSort(arraySlice$1(array, 0, middle), comparefn),
1486 mergeSort(arraySlice$1(array, middle), comparefn),
1487 comparefn
1488 );
1489 };
1490
1491 var insertionSort = function (array, comparefn) {
1492 var length = array.length;
1493 var i = 1;
1494 var element, j;
1495
1496 while (i < length) {
1497 j = i;
1498 element = array[i];
1499 while (j && comparefn(array[j - 1], element) > 0) {
1500 array[j] = array[--j];
1501 }
1502 if (j !== i++) array[j] = element;
1503 } return array;
1504 };
1505
1506 var merge = function (array, left, right, comparefn) {
1507 var llength = left.length;
1508 var rlength = right.length;
1509 var lindex = 0;
1510 var rindex = 0;
1511
1512 while (lindex < llength || rindex < rlength) {
1513 array[lindex + rindex] = (lindex < llength && rindex < rlength)
1514 ? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
1515 : lindex < llength ? left[lindex++] : right[rindex++];
1516 } return array;
1517 };
1518
1519 var arraySort = mergeSort;
1520
1521 var fails$6 = fails$h;
1522
1523 var arrayMethodIsStrict$2 = function (METHOD_NAME, argument) {
1524 var method = [][METHOD_NAME];
1525 return !!method && fails$6(function () {
1526 // eslint-disable-next-line no-useless-call -- required for testing
1527 method.call(null, argument || function () { return 1; }, 1);
1528 });
1529 };
1530
1531 var userAgent$1 = engineUserAgent;
1532
1533 var firefox = userAgent$1.match(/firefox\/(\d+)/i);
1534
1535 var engineFfVersion = !!firefox && +firefox[1];
1536
1537 var UA = engineUserAgent;
1538
1539 var engineIsIeOrEdge = /MSIE|Trident/.test(UA);
1540
1541 var userAgent = engineUserAgent;
1542
1543 var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
1544
1545 var engineWebkitVersion = !!webkit && +webkit[1];
1546
1547 var $$7 = _export;
1548 var uncurryThis$5 = functionUncurryThis;
1549 var aCallable = aCallable$3;
1550 var toObject$3 = toObject$6;
1551 var lengthOfArrayLike$3 = lengthOfArrayLike$7;
1552 var toString$2 = toString$3;
1553 var fails$5 = fails$h;
1554 var internalSort = arraySort;
1555 var arrayMethodIsStrict$1 = arrayMethodIsStrict$2;
1556 var FF = engineFfVersion;
1557 var IE_OR_EDGE = engineIsIeOrEdge;
1558 var V8 = engineV8Version;
1559 var WEBKIT = engineWebkitVersion;
1560
1561 var test = [];
1562 var un$Sort = uncurryThis$5(test.sort);
1563 var push = uncurryThis$5(test.push);
1564
1565 // IE8-
1566 var FAILS_ON_UNDEFINED = fails$5(function () {
1567 test.sort(undefined);
1568 });
1569 // V8 bug
1570 var FAILS_ON_NULL = fails$5(function () {
1571 test.sort(null);
1572 });
1573 // Old WebKit
1574 var STRICT_METHOD$1 = arrayMethodIsStrict$1('sort');
1575
1576 var STABLE_SORT = !fails$5(function () {
1577 // feature detection can be too slow, so check engines versions
1578 if (V8) return V8 < 70;
1579 if (FF && FF > 3) return;
1580 if (IE_OR_EDGE) return true;
1581 if (WEBKIT) return WEBKIT < 603;
1582
1583 var result = '';
1584 var code, chr, value, index;
1585
1586 // generate an array with more 512 elements (Chakra and old V8 fails only in this case)
1587 for (code = 65; code < 76; code++) {
1588 chr = String.fromCharCode(code);
1589
1590 switch (code) {
1591 case 66: case 69: case 70: case 72: value = 3; break;
1592 case 68: case 71: value = 4; break;
1593 default: value = 2;
1594 }
1595
1596 for (index = 0; index < 47; index++) {
1597 test.push({ k: chr + index, v: value });
1598 }
1599 }
1600
1601 test.sort(function (a, b) { return b.v - a.v; });
1602
1603 for (index = 0; index < test.length; index++) {
1604 chr = test[index].k.charAt(0);
1605 if (result.charAt(result.length - 1) !== chr) result += chr;
1606 }
1607
1608 return result !== 'DGBEFHACIJK';
1609 });
1610
1611 var FORCED$2 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1 || !STABLE_SORT;
1612
1613 var getSortCompare = function (comparefn) {
1614 return function (x, y) {
1615 if (y === undefined) return -1;
1616 if (x === undefined) return 1;
1617 if (comparefn !== undefined) return +comparefn(x, y) || 0;
1618 return toString$2(x) > toString$2(y) ? 1 : -1;
1619 };
1620 };
1621
1622 // `Array.prototype.sort` method
1623 // https://tc39.es/ecma262/#sec-array.prototype.sort
1624 $$7({ target: 'Array', proto: true, forced: FORCED$2 }, {
1625 sort: function sort(comparefn) {
1626 if (comparefn !== undefined) aCallable(comparefn);
1627
1628 var array = toObject$3(this);
1629
1630 if (STABLE_SORT) return comparefn === undefined ? un$Sort(array) : un$Sort(array, comparefn);
1631
1632 var items = [];
1633 var arrayLength = lengthOfArrayLike$3(array);
1634 var itemsLength, index;
1635
1636 for (index = 0; index < arrayLength; index++) {
1637 if (index in array) push(items, array[index]);
1638 }
1639
1640 internalSort(items, getSortCompare(comparefn));
1641
1642 itemsLength = items.length;
1643 index = 0;
1644
1645 while (index < itemsLength) array[index] = items[index++];
1646 while (index < arrayLength) delete array[index++];
1647
1648 return array;
1649 }
1650 });
1651
1652 var $$6 = _export;
1653 var global$4 = global$t;
1654 var fails$4 = fails$h;
1655 var isArray$1 = isArray$3;
1656 var isObject$1 = isObject$8;
1657 var toObject$2 = toObject$6;
1658 var lengthOfArrayLike$2 = lengthOfArrayLike$7;
1659 var createProperty$2 = createProperty$4;
1660 var arraySpeciesCreate$1 = arraySpeciesCreate$3;
1661 var arrayMethodHasSpeciesSupport$2 = arrayMethodHasSpeciesSupport$4;
1662 var wellKnownSymbol$1 = wellKnownSymbol$8;
1663 var V8_VERSION = engineV8Version;
1664
1665 var IS_CONCAT_SPREADABLE = wellKnownSymbol$1('isConcatSpreadable');
1666 var MAX_SAFE_INTEGER$1 = 0x1FFFFFFFFFFFFF;
1667 var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1668 var TypeError$2 = global$4.TypeError;
1669
1670 // We can't use this feature detection in V8 since it causes
1671 // deoptimization and serious performance degradation
1672 // https://github.com/zloirock/core-js/issues/679
1673 var IS_CONCAT_SPREADABLE_SUPPORT = V8_VERSION >= 51 || !fails$4(function () {
1674 var array = [];
1675 array[IS_CONCAT_SPREADABLE] = false;
1676 return array.concat()[0] !== array;
1677 });
1678
1679 var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport$2('concat');
1680
1681 var isConcatSpreadable = function (O) {
1682 if (!isObject$1(O)) return false;
1683 var spreadable = O[IS_CONCAT_SPREADABLE];
1684 return spreadable !== undefined ? !!spreadable : isArray$1(O);
1685 };
1686
1687 var FORCED$1 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1688
1689 // `Array.prototype.concat` method
1690 // https://tc39.es/ecma262/#sec-array.prototype.concat
1691 // with adding support of @@isConcatSpreadable and @@species
1692 $$6({ target: 'Array', proto: true, arity: 1, forced: FORCED$1 }, {
1693 // eslint-disable-next-line no-unused-vars -- required for `.length`
1694 concat: function concat(arg) {
1695 var O = toObject$2(this);
1696 var A = arraySpeciesCreate$1(O, 0);
1697 var n = 0;
1698 var i, k, length, len, E;
1699 for (i = -1, length = arguments.length; i < length; i++) {
1700 E = i === -1 ? O : arguments[i];
1701 if (isConcatSpreadable(E)) {
1702 len = lengthOfArrayLike$2(E);
1703 if (n + len > MAX_SAFE_INTEGER$1) throw TypeError$2(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1704 for (k = 0; k < len; k++, n++) if (k in E) createProperty$2(A, n, E[k]);
1705 } else {
1706 if (n >= MAX_SAFE_INTEGER$1) throw TypeError$2(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1707 createProperty$2(A, n++, E);
1708 }
1709 }
1710 A.length = n;
1711 return A;
1712 }
1713 });
1714
1715 var $$5 = _export;
1716 var $includes = arrayIncludes.includes;
1717 var fails$3 = fails$h;
1718 var addToUnscopables = addToUnscopables$2;
1719
1720 // FF99+ bug
1721 var BROKEN_ON_SPARSE = fails$3(function () {
1722 return !Array(1).includes();
1723 });
1724
1725 // `Array.prototype.includes` method
1726 // https://tc39.es/ecma262/#sec-array.prototype.includes
1727 $$5({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
1728 includes: function includes(el /* , fromIndex = 0 */) {
1729 return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
1730 }
1731 });
1732
1733 // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1734 addToUnscopables('includes');
1735
1736 var DESCRIPTORS = descriptors;
1737 var uncurryThis$4 = functionUncurryThis;
1738 var call$1 = functionCall;
1739 var fails$2 = fails$h;
1740 var objectKeys = objectKeys$2;
1741 var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1742 var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1743 var toObject$1 = toObject$6;
1744 var IndexedObject = indexedObject;
1745
1746 // eslint-disable-next-line es-x/no-object-assign -- safe
1747 var $assign = Object.assign;
1748 // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
1749 var defineProperty = Object.defineProperty;
1750 var concat = uncurryThis$4([].concat);
1751
1752 // `Object.assign` method
1753 // https://tc39.es/ecma262/#sec-object.assign
1754 var objectAssign = !$assign || fails$2(function () {
1755 // should have correct order of operations (Edge bug)
1756 if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1757 enumerable: true,
1758 get: function () {
1759 defineProperty(this, 'b', {
1760 value: 3,
1761 enumerable: false
1762 });
1763 }
1764 }), { b: 2 })).b !== 1) return true;
1765 // should work with symbols and should have deterministic property order (V8 bug)
1766 var A = {};
1767 var B = {};
1768 // eslint-disable-next-line es-x/no-symbol -- safe
1769 var symbol = Symbol();
1770 var alphabet = 'abcdefghijklmnopqrst';
1771 A[symbol] = 7;
1772 alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1773 return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
1774 }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1775 var T = toObject$1(target);
1776 var argumentsLength = arguments.length;
1777 var index = 1;
1778 var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1779 var propertyIsEnumerable = propertyIsEnumerableModule.f;
1780 while (argumentsLength > index) {
1781 var S = IndexedObject(arguments[index++]);
1782 var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1783 var length = keys.length;
1784 var j = 0;
1785 var key;
1786 while (length > j) {
1787 key = keys[j++];
1788 if (!DESCRIPTORS || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
1789 }
1790 } return T;
1791 } : $assign;
1792
1793 var $$4 = _export;
1794 var assign = objectAssign;
1795
1796 // `Object.assign` method
1797 // https://tc39.es/ecma262/#sec-object.assign
1798 // eslint-disable-next-line es-x/no-object-assign -- required for testing
1799 $$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1800 assign: assign
1801 });
1802
1803 var uncurryThis$3 = functionUncurryThis;
1804
1805 var arraySlice = uncurryThis$3([].slice);
1806
1807 var $$3 = _export;
1808 var global$3 = global$t;
1809 var isArray = isArray$3;
1810 var isConstructor = isConstructor$2;
1811 var isObject = isObject$8;
1812 var toAbsoluteIndex$1 = toAbsoluteIndex$4;
1813 var lengthOfArrayLike$1 = lengthOfArrayLike$7;
1814 var toIndexedObject = toIndexedObject$5;
1815 var createProperty$1 = createProperty$4;
1816 var wellKnownSymbol = wellKnownSymbol$8;
1817 var arrayMethodHasSpeciesSupport$1 = arrayMethodHasSpeciesSupport$4;
1818 var un$Slice = arraySlice;
1819
1820 var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport$1('slice');
1821
1822 var SPECIES = wellKnownSymbol('species');
1823 var Array$1 = global$3.Array;
1824 var max$1 = Math.max;
1825
1826 // `Array.prototype.slice` method
1827 // https://tc39.es/ecma262/#sec-array.prototype.slice
1828 // fallback for not array-like ES3 strings and DOM objects
1829 $$3({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
1830 slice: function slice(start, end) {
1831 var O = toIndexedObject(this);
1832 var length = lengthOfArrayLike$1(O);
1833 var k = toAbsoluteIndex$1(start, length);
1834 var fin = toAbsoluteIndex$1(end === undefined ? length : end, length);
1835 // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
1836 var Constructor, result, n;
1837 if (isArray(O)) {
1838 Constructor = O.constructor;
1839 // cross-realm fallback
1840 if (isConstructor(Constructor) && (Constructor === Array$1 || isArray(Constructor.prototype))) {
1841 Constructor = undefined;
1842 } else if (isObject(Constructor)) {
1843 Constructor = Constructor[SPECIES];
1844 if (Constructor === null) Constructor = undefined;
1845 }
1846 if (Constructor === Array$1 || Constructor === undefined) {
1847 return un$Slice(O, k, fin);
1848 }
1849 }
1850 result = new (Constructor === undefined ? Array$1 : Constructor)(max$1(fin - k, 0));
1851 for (n = 0; k < fin; k++, n++) if (k in O) createProperty$1(result, n, O[k]);
1852 result.length = n;
1853 return result;
1854 }
1855 });
1856
1857 var $$2 = _export;
1858 var global$2 = global$t;
1859 var toAbsoluteIndex = toAbsoluteIndex$4;
1860 var toIntegerOrInfinity = toIntegerOrInfinity$3;
1861 var lengthOfArrayLike = lengthOfArrayLike$7;
1862 var toObject = toObject$6;
1863 var arraySpeciesCreate = arraySpeciesCreate$3;
1864 var createProperty = createProperty$4;
1865 var arrayMethodHasSpeciesSupport = arrayMethodHasSpeciesSupport$4;
1866
1867 var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('splice');
1868
1869 var TypeError$1 = global$2.TypeError;
1870 var max = Math.max;
1871 var min = Math.min;
1872 var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1873 var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
1874
1875 // `Array.prototype.splice` method
1876 // https://tc39.es/ecma262/#sec-array.prototype.splice
1877 // with adding support of @@species
1878 $$2({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT }, {
1879 splice: function splice(start, deleteCount /* , ...items */) {
1880 var O = toObject(this);
1881 var len = lengthOfArrayLike(O);
1882 var actualStart = toAbsoluteIndex(start, len);
1883 var argumentsLength = arguments.length;
1884 var insertCount, actualDeleteCount, A, k, from, to;
1885 if (argumentsLength === 0) {
1886 insertCount = actualDeleteCount = 0;
1887 } else if (argumentsLength === 1) {
1888 insertCount = 0;
1889 actualDeleteCount = len - actualStart;
1890 } else {
1891 insertCount = argumentsLength - 2;
1892 actualDeleteCount = min(max(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
1893 }
1894 if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER) {
1895 throw TypeError$1(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
1896 }
1897 A = arraySpeciesCreate(O, actualDeleteCount);
1898 for (k = 0; k < actualDeleteCount; k++) {
1899 from = actualStart + k;
1900 if (from in O) createProperty(A, k, O[from]);
1901 }
1902 A.length = actualDeleteCount;
1903 if (insertCount < actualDeleteCount) {
1904 for (k = actualStart; k < len - actualDeleteCount; k++) {
1905 from = k + actualDeleteCount;
1906 to = k + insertCount;
1907 if (from in O) O[to] = O[from];
1908 else delete O[to];
1909 }
1910 for (k = len; k > len - actualDeleteCount + insertCount; k--) delete O[k - 1];
1911 } else if (insertCount > actualDeleteCount) {
1912 for (k = len - actualDeleteCount; k > actualStart; k--) {
1913 from = k + actualDeleteCount - 1;
1914 to = k + insertCount - 1;
1915 if (from in O) O[to] = O[from];
1916 else delete O[to];
1917 }
1918 }
1919 for (k = 0; k < insertCount; k++) {
1920 O[k + actualStart] = arguments[k + 2];
1921 }
1922 O.length = len - actualDeleteCount + insertCount;
1923 return A;
1924 }
1925 });
1926
1927 /* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
1928 var $$1 = _export;
1929 var uncurryThis$2 = functionUncurryThis;
1930 var $IndexOf = arrayIncludes.indexOf;
1931 var arrayMethodIsStrict = arrayMethodIsStrict$2;
1932
1933 var un$IndexOf = uncurryThis$2([].indexOf);
1934
1935 var NEGATIVE_ZERO = !!un$IndexOf && 1 / un$IndexOf([1], 1, -0) < 0;
1936 var STRICT_METHOD = arrayMethodIsStrict('indexOf');
1937
1938 // `Array.prototype.indexOf` method
1939 // https://tc39.es/ecma262/#sec-array.prototype.indexof
1940 $$1({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD }, {
1941 indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
1942 var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
1943 return NEGATIVE_ZERO
1944 // convert -0 to +0
1945 ? un$IndexOf(this, searchElement, fromIndex) || 0
1946 : $IndexOf(this, searchElement, fromIndex);
1947 }
1948 });
1949
1950 // a string of all valid unicode whitespaces
1951 var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
1952 '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1953
1954 var uncurryThis$1 = functionUncurryThis;
1955 var requireObjectCoercible = requireObjectCoercible$3;
1956 var toString$1 = toString$3;
1957 var whitespaces$1 = whitespaces$2;
1958
1959 var replace = uncurryThis$1(''.replace);
1960 var whitespace = '[' + whitespaces$1 + ']';
1961 var ltrim = RegExp('^' + whitespace + whitespace + '*');
1962 var rtrim = RegExp(whitespace + whitespace + '*$');
1963
1964 // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
1965 var createMethod = function (TYPE) {
1966 return function ($this) {
1967 var string = toString$1(requireObjectCoercible($this));
1968 if (TYPE & 1) string = replace(string, ltrim, '');
1969 if (TYPE & 2) string = replace(string, rtrim, '');
1970 return string;
1971 };
1972 };
1973
1974 var stringTrim = {
1975 // `String.prototype.{ trimLeft, trimStart }` methods
1976 // https://tc39.es/ecma262/#sec-string.prototype.trimstart
1977 start: createMethod(1),
1978 // `String.prototype.{ trimRight, trimEnd }` methods
1979 // https://tc39.es/ecma262/#sec-string.prototype.trimend
1980 end: createMethod(2),
1981 // `String.prototype.trim` method
1982 // https://tc39.es/ecma262/#sec-string.prototype.trim
1983 trim: createMethod(3)
1984 };
1985
1986 var global$1 = global$t;
1987 var fails$1 = fails$h;
1988 var uncurryThis = functionUncurryThis;
1989 var toString = toString$3;
1990 var trim = stringTrim.trim;
1991 var whitespaces = whitespaces$2;
1992
1993 var charAt = uncurryThis(''.charAt);
1994 var n$ParseFloat = global$1.parseFloat;
1995 var Symbol$1 = global$1.Symbol;
1996 var ITERATOR = Symbol$1 && Symbol$1.iterator;
1997 var FORCED = 1 / n$ParseFloat(whitespaces + '-0') !== -Infinity
1998 // MS Edge 18- broken with boxed symbols
1999 || (ITERATOR && !fails$1(function () { n$ParseFloat(Object(ITERATOR)); }));
2000
2001 // `parseFloat` method
2002 // https://tc39.es/ecma262/#sec-parsefloat-string
2003 var numberParseFloat = FORCED ? function parseFloat(string) {
2004 var trimmedString = trim(toString(string));
2005 var result = n$ParseFloat(trimmedString);
2006 return result === 0 && charAt(trimmedString, 0) == '-' ? -0 : result;
2007 } : n$ParseFloat;
2008
2009 var $ = _export;
2010 var $parseFloat = numberParseFloat;
2011
2012 // `parseFloat` method
2013 // https://tc39.es/ecma262/#sec-parsefloat-string
2014 $({ global: true, forced: parseFloat != $parseFloat }, {
2015 parseFloat: $parseFloat
2016 });
2017
2018 var anObject$1 = anObject$6;
2019
2020 // `RegExp.prototype.flags` getter implementation
2021 // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
2022 var regexpFlags = function () {
2023 var that = anObject$1(this);
2024 var result = '';
2025 if (that.hasIndices) result += 'd';
2026 if (that.global) result += 'g';
2027 if (that.ignoreCase) result += 'i';
2028 if (that.multiline) result += 'm';
2029 if (that.dotAll) result += 's';
2030 if (that.unicode) result += 'u';
2031 if (that.sticky) result += 'y';
2032 return result;
2033 };
2034
2035 var call = functionCall;
2036 var hasOwn = hasOwnProperty_1;
2037 var isPrototypeOf = objectIsPrototypeOf;
2038 var regExpFlags = regexpFlags;
2039
2040 var RegExpPrototype$1 = RegExp.prototype;
2041
2042 var regexpGetFlags = function (R) {
2043 var flags = R.flags;
2044 return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
2045 ? call(regExpFlags, R) : flags;
2046 };
2047
2048 var PROPER_FUNCTION_NAME = functionName.PROPER;
2049 var defineBuiltIn = defineBuiltIn$3;
2050 var anObject = anObject$6;
2051 var $toString = toString$3;
2052 var fails = fails$h;
2053 var getRegExpFlags = regexpGetFlags;
2054
2055 var TO_STRING = 'toString';
2056 var RegExpPrototype = RegExp.prototype;
2057 var n$ToString = RegExpPrototype[TO_STRING];
2058
2059 var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
2060 // FF44- RegExp#toString has a wrong name
2061 var INCORRECT_NAME = PROPER_FUNCTION_NAME && n$ToString.name != TO_STRING;
2062
2063 // `RegExp.prototype.toString` method
2064 // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
2065 if (NOT_GENERIC || INCORRECT_NAME) {
2066 defineBuiltIn(RegExp.prototype, TO_STRING, function toString() {
2067 var R = anObject(this);
2068 var pattern = $toString(R.source);
2069 var flags = $toString(getRegExpFlags(R));
2070 return '/' + pattern + '/' + flags;
2071 }, { unsafe: true });
2072 }
2073
2074 /**
2075 * @author Nadim Basalamah <dimbslmh@gmail.com>
2076 * @version: v1.1.0
2077 * https://github.com/dimbslmh/bootstrap-table/tree/master/src/extensions/multiple-sort/bootstrap-table-multiple-sort.js
2078 * Modification: ErwannNevou <https://github.com/ErwannNevou>
2079 */
2080
2081 var isSingleSort = false;
2082 var Utils = $__default["default"].fn.bootstrapTable.utils;
2083 $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults.icons, {
2084 plus: {
2085 bootstrap3: 'glyphicon-plus',
2086 bootstrap4: 'fa-plus',
2087 bootstrap5: 'bi-plus',
2088 semantic: 'fa-plus',
2089 materialize: 'plus',
2090 foundation: 'fa-plus',
2091 bulma: 'fa-plus',
2092 'bootstrap-table': 'icon-plus'
2093 }[$__default["default"].fn.bootstrapTable.theme] || 'fa-clock',
2094 minus: {
2095 bootstrap3: 'glyphicon-minus',
2096 bootstrap4: 'fa-minus',
2097 bootstrap5: 'bi-dash',
2098 semantic: 'fa-minus',
2099 materialize: 'minus',
2100 foundation: 'fa-minus',
2101 bulma: 'fa-minus',
2102 'bootstrap-table': 'icon-minus'
2103 }[$__default["default"].fn.bootstrapTable.theme] || 'fa-clock',
2104 sort: {
2105 bootstrap3: 'glyphicon-sort',
2106 bootstrap4: 'fa-sort',
2107 bootstrap5: 'bi-arrow-down-up',
2108 semantic: 'fa-sort',
2109 materialize: 'sort',
2110 foundation: 'fa-sort',
2111 bulma: 'fa-sort',
2112 'bootstrap-table': 'icon-sort-amount-asc'
2113 }[$__default["default"].fn.bootstrapTable.theme] || 'fa-clock'
2114 });
2115 var theme = {
2116 bootstrap3: {
2117 html: {
2118 multipleSortModal: "\n <div class=\"modal fade\" id=\"%s\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"%sLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>\n <h4 class=\"modal-title\" id=\"%sLabel\">%s</h4>\n </div>\n <div class=\"modal-body\">\n <div class=\"bootstrap-table\">\n <div class=\"fixed-table-toolbar\">\n <div class=\"bars\">\n <div id=\"toolbar\">\n <button id=\"add\" type=\"button\" class=\"btn btn-default\">%s %s</button>\n <button id=\"delete\" type=\"button\" class=\"btn btn-default\" disabled>%s %s</button>\n </div>\n </div>\n </div>\n <div class=\"fixed-table-container\">\n <table id=\"multi-sort\" class=\"table\">\n <thead>\n <tr>\n <th></th>\n <th><div class=\"th-inner\">%s</div></th>\n <th><div class=\"th-inner\">%s</div></th>\n </tr>\n </thead>\n <tbody></tbody>\n </table>\n </div>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-default\" data-dismiss=\"modal\">%s</button>\n <button type=\"button\" class=\"btn btn-primary multi-sort-order-button\">%s</button>\n </div>\n </div>\n </div>\n </div>\n ",
2119 multipleSortButton: '<button class="multi-sort %s" type="button" data-toggle="modal" data-target="#%s" title="%s">%s</button>',
2120 multipleSortSelect: '<select class="%s %s form-control">'
2121 }
2122 },
2123 bootstrap4: {
2124 html: {
2125 multipleSortModal: "\n <div class=\"modal fade\" id=\"%s\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"%sLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title\" id=\"%sLabel\">%s</h5>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <div class=\"bootstrap-table\">\n <div class=\"fixed-table-toolbar\">\n <div class=\"bars\">\n <div id=\"toolbar\" class=\"pb-3\">\n <button id=\"add\" type=\"button\" class=\"btn btn-secondary\">%s %s</button>\n <button id=\"delete\" type=\"button\" class=\"btn btn-secondary\" disabled>%s %s</button>\n </div>\n </div>\n </div>\n <div class=\"fixed-table-container\">\n <table id=\"multi-sort\" class=\"table\">\n <thead>\n <tr>\n <th></th>\n <th><div class=\"th-inner\">%s</div></th>\n <th><div class=\"th-inner\">%s</div></th>\n </tr>\n </thead>\n <tbody></tbody>\n </table>\n </div>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">%s</button>\n <button type=\"button\" class=\"btn btn-primary multi-sort-order-button\">%s</button>\n </div>\n </div>\n </div>\n </div>\n ",
2126 multipleSortButton: '<button class="multi-sort %s" type="button" data-toggle="modal" data-target="#%s" title="%s">%s</button>',
2127 multipleSortSelect: '<select class="%s %s form-control">'
2128 }
2129 },
2130 bootstrap5: {
2131 html: {
2132 multipleSortModal: "\n <div class=\"modal fade\" id=\"%s\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"%sLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h5 class=\"modal-title\" id=\"%sLabel\">%s</h5>\n <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\n </div>\n <div class=\"modal-body\">\n <div class=\"bootstrap-table\">\n <div class=\"fixed-table-toolbar\">\n <div class=\"bars\">\n <div id=\"toolbar\" class=\"pb-3\">\n <button id=\"add\" type=\"button\" class=\"btn btn-secondary\">%s %s</button>\n <button id=\"delete\" type=\"button\" class=\"btn btn-secondary\" disabled>%s %s</button>\n </div>\n </div>\n </div>\n <div class=\"fixed-table-container\">\n <table id=\"multi-sort\" class=\"table\">\n <thead>\n <tr>\n <th></th>\n <th><div class=\"th-inner\">%s</div></th>\n <th><div class=\"th-inner\">%s</div></th>\n </tr>\n </thead>\n <tbody></tbody>\n </table>\n </div>\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-bs-dismiss=\"modal\">%s</button>\n <button type=\"button\" class=\"btn btn-primary multi-sort-order-button\">%s</button>\n </div>\n </div>\n </div>\n </div>\n ",
2133 multipleSortButton: '<button class="multi-sort %s" type="button" data-bs-toggle="modal" data-bs-target="#%s" title="%s">%s</button>',
2134 multipleSortSelect: '<select class="%s %s form-control">'
2135 }
2136 },
2137 semantic: {
2138 html: {
2139 multipleSortModal: "\n <div class=\"ui modal tiny\" id=\"%s\" aria-labelledby=\"%sLabel\" aria-hidden=\"true\">\n <i class=\"close icon\"></i>\n <div class=\"header\" id=\"%sLabel\">\n %s\n </div>\n <div class=\"image content\">\n <div class=\"bootstrap-table\">\n <div class=\"fixed-table-toolbar\">\n <div class=\"bars\">\n <div id=\"toolbar\" class=\"pb-3\">\n <button id=\"add\" type=\"button\" class=\"ui button\">%s %s</button>\n <button id=\"delete\" type=\"button\" class=\"ui button\" disabled>%s %s</button>\n </div>\n </div>\n </div>\n <div class=\"fixed-table-container\">\n <table id=\"multi-sort\" class=\"table\">\n <thead>\n <tr>\n <th></th>\n <th><div class=\"th-inner\">%s</div></th>\n <th><div class=\"th-inner\">%s</div></th>\n </tr>\n </thead>\n <tbody></tbody>\n </table>\n </div>\n </div>\n </div>\n <div class=\"actions\">\n <div class=\"ui button deny\">%s</div>\n <div class=\"ui button approve multi-sort-order-button\">%s</div>\n </div>\n </div>\n ",
2140 multipleSortButton: '<button class="multi-sort %s" type="button" data-toggle="modal" data-target="#%s" title="%s">%s</button>',
2141 multipleSortSelect: '<select class="%s %s">'
2142 }
2143 },
2144 materialize: {
2145 html: {
2146 multipleSortModal: "\n <div id=\"%s\" class=\"modal\" aria-labelledby=\"%sLabel\" aria-hidden=\"true\">\n <div class=\"modal-content\" id=\"%sLabel\">\n <h4>%s</h4>\n <div class=\"bootstrap-table\">\n <div class=\"fixed-table-toolbar\">\n <div class=\"bars\">\n <div id=\"toolbar\" class=\"pb-3\">\n <button id=\"add\" type=\"button\" class=\"waves-effect waves-light btn\">%s %s</button>\n <button id=\"delete\" type=\"button\" class=\"waves-effect waves-light btn\" disabled>%s %s</button>\n </div>\n </div>\n </div>\n <div class=\"fixed-table-container\">\n <table id=\"multi-sort\" class=\"table\">\n <thead>\n <tr>\n <th></th>\n <th><div class=\"th-inner\">%s</div></th>\n <th><div class=\"th-inner\">%s</div></th>\n </tr>\n </thead>\n <tbody></tbody>\n </table>\n </div>\n </div>\n <div class=\"modal-footer\">\n <a href=\"javascript:void(0)\" class=\"modal-close waves-effect waves-light btn\">%s</a>\n <a href=\"javascript:void(0)\" class=\"modal-close waves-effect waves-light btn multi-sort-order-button\">%s</a>\n </div>\n </div>\n </div>\n ",
2147 multipleSortButton: '<a class="multi-sort %s modal-trigger" href="#%s" type="button" data-toggle="modal" title="%s">%s</a>',
2148 multipleSortSelect: '<select class="%s %s browser-default">'
2149 }
2150 },
2151 foundation: {
2152 html: {
2153 multipleSortModal: "\n <div class=\"reveal\" id=\"%s\" data-reveal aria-labelledby=\"%sLabel\" aria-hidden=\"true\">\n <div id=\"%sLabel\">\n <h1>%s</h1>\n <div class=\"bootstrap-table\">\n <div class=\"fixed-table-toolbar\">\n <div class=\"bars\">\n <div id=\"toolbar\" class=\"padding-bottom-2\">\n <button id=\"add\" type=\"button\" class=\"waves-effect waves-light button\">%s %s</button>\n <button id=\"delete\" type=\"button\" class=\"waves-effect waves-light button\" disabled>%s %s</button>\n </div>\n </div>\n </div>\n <div class=\"fixed-table-container\">\n <table id=\"multi-sort\" class=\"table\">\n <thead>\n <tr>\n <th></th>\n <th><div class=\"th-inner\">%s</div></th>\n <th><div class=\"th-inner\">%s</div></th>\n </tr>\n </thead>\n <tbody></tbody>\n </table>\n </div>\n </div>\n\n <button class=\"waves-effect waves-light button\" data-close aria-label=\"Close modal\" type=\"button\">\n <span aria-hidden=\"true\">%s</span>\n </button>\n <button class=\"waves-effect waves-light button multi-sort-order-button\" data-close aria-label=\"Order\" type=\"button\">\n <span aria-hidden=\"true\">%s</span>\n </button>\n </div>\n </div>\n ",
2154 multipleSortButton: '<button class="multi-sort %s" data-open="%s" title="%s">%s</button>',
2155 multipleSortSelect: '<select class="%s %s browser-default">'
2156 }
2157 },
2158 bulma: {
2159 html: {
2160 multipleSortModal: "\n <div class=\"modal\" id=\"%s\" aria-labelledby=\"%sLabel\" aria-hidden=\"true\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-content\" id=\"%sLabel\">\n <div class=\"box\">\n <h2>%s</h2>\n <div class=\"bootstrap-table\">\n <div class=\"fixed-table-toolbar\">\n <div class=\"bars\">\n <div id=\"toolbar\" class=\"padding-bottom-2\">\n <button id=\"add\" type=\"button\" class=\"waves-effect waves-light button\">%s %s</button>\n <button id=\"delete\" type=\"button\" class=\"waves-effect waves-light button\" disabled>%s %s</button>\n </div>\n </div>\n </div>\n <div class=\"fixed-table-container\">\n <table id=\"multi-sort\" class=\"table\">\n <thead>\n <tr>\n <th></th>\n <th><div class=\"th-inner\">%s</div></th>\n <th><div class=\"th-inner\">%s</div></th>\n </tr>\n </thead>\n <tbody></tbody>\n </table>\n </div>\n </div>\n <button type=\"button\" class=\"waves-effect waves-light button\" data-close>%s</button>\n <button type=\"button\" class=\"waves-effect waves-light button multi-sort-order-button\" data-close>%s</button>\n </div>\n </div>\n </div>\n ",
2161 multipleSortButton: '<button class="multi-sort %s" data-target="%s" title="%s">%s</button>',
2162 multipleSortSelect: '<select class="%s %s browser-default">'
2163 }
2164 },
2165 'bootstrap-table': {
2166 html: {
2167 multipleSortModal: "\n <div class=\"modal\" id=\"%s\" aria-labelledby=\"%sLabel\" aria-hidden=\"true\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-content\" id=\"%sLabel\">\n <div class=\"box\">\n <h2>%s</h2>\n <div class=\"bootstrap-table\">\n <div class=\"fixed-table-toolbar\">\n <div class=\"bars\">\n <div id=\"toolbar\" class=\"padding-bottom-2\">\n <button id=\"add\" type=\"button\" class=\"btn\">%s %s</button>\n <button id=\"delete\" type=\"button\" class=\"btn\" disabled>%s %s</button>\n </div>\n </div>\n </div>\n <div class=\"fixed-table-container\">\n <table id=\"multi-sort\" class=\"table\">\n <thead>\n <tr>\n <th></th>\n <th><div class=\"th-inner\">%s</div></th>\n <th><div class=\"th-inner\">%s</div></th>\n </tr>\n </thead>\n <tbody></tbody>\n </table>\n </div>\n </div>\n <div class=\"mt-30\">\n <button type=\"button\" class=\"btn\" data-close>%s</button>\n <button type=\"button\" class=\"btn multi-sort-order-button\" data-close>%s</button>\n </div>\n </div>\n </div>\n </div>\n ",
2168 multipleSortButton: '<button class="multi-sort %s" data-target="%s" title="%s">%s</button>',
2169 multipleSortSelect: '<select class="%s %s browser-default">'
2170 }
2171 }
2172 }[$__default["default"].fn.bootstrapTable.theme];
2173
2174 var showSortModal = function showSortModal(that) {
2175 var _selector = that.sortModalSelector;
2176
2177 var _id = "#".concat(_selector);
2178
2179 var o = that.options;
2180
2181 if (!$__default["default"](_id).hasClass('modal')) {
2182 var sModal = Utils.sprintf(theme.html.multipleSortModal, _selector, _selector, _selector, that.options.formatMultipleSort(), Utils.sprintf(that.constants.html.icon, o.iconsPrefix, o.icons.plus), that.options.formatAddLevel(), Utils.sprintf(that.constants.html.icon, o.iconsPrefix, o.icons.minus), that.options.formatDeleteLevel(), that.options.formatColumn(), that.options.formatOrder(), that.options.formatCancel(), that.options.formatSort());
2183 $__default["default"]('body').append($__default["default"](sModal));
2184 that.$sortModal = $__default["default"](_id);
2185 var $rows = that.$sortModal.find('tbody > tr');
2186 that.$sortModal.off('click', '#add').on('click', '#add', function () {
2187 var total = that.$sortModal.find('.multi-sort-name:first option').length;
2188 var current = that.$sortModal.find('tbody tr').length;
2189
2190 if (current < total) {
2191 current++;
2192 that.addLevel();
2193 that.setButtonStates();
2194 }
2195 });
2196 that.$sortModal.off('click', '#delete').on('click', '#delete', function () {
2197 var total = that.$sortModal.find('.multi-sort-name:first option').length;
2198 var current = that.$sortModal.find('tbody tr').length;
2199
2200 if (current > 1 && current <= total) {
2201 current--;
2202 that.$sortModal.find('tbody tr:last').remove();
2203 that.setButtonStates();
2204 }
2205 });
2206 that.$sortModal.off('click', '.multi-sort-order-button').on('click', '.multi-sort-order-button', function () {
2207 var $rows = that.$sortModal.find('tbody > tr');
2208 var $alert = that.$sortModal.find('div.alert');
2209 var fields = [];
2210 var results = [];
2211 var sortPriority = $__default["default"].map($rows, function (row) {
2212 var $row = $__default["default"](row);
2213 var name = $row.find('.multi-sort-name').val();
2214 var order = $row.find('.multi-sort-order').val();
2215 fields.push(name);
2216 return {
2217 sortName: name,
2218 sortOrder: order
2219 };
2220 });
2221 var sorted_fields = fields.sort();
2222
2223 for (var i = 0; i < fields.length - 1; i++) {
2224 if (sorted_fields[i + 1] === sorted_fields[i]) {
2225 results.push(sorted_fields[i]);
2226 }
2227 }
2228
2229 if (results.length > 0) {
2230 if ($alert.length === 0) {
2231 $alert = "<div class=\"alert alert-danger\" role=\"alert\"><strong>".concat(that.options.formatDuplicateAlertTitle(), "</strong> ").concat(that.options.formatDuplicateAlertDescription(), "</div>");
2232 $__default["default"]($alert).insertBefore(that.$sortModal.find('.bars'));
2233 }
2234 } else {
2235 if ($alert.length === 1) {
2236 $__default["default"]($alert).remove();
2237 }
2238
2239 if (['bootstrap3', 'bootstrap4', 'bootstrap5'].includes($__default["default"].fn.bootstrapTable.theme)) {
2240 that.$sortModal.modal('hide');
2241 }
2242
2243 that.multiSort(sortPriority);
2244 }
2245 });
2246
2247 if (that.options.sortPriority === null || that.options.sortPriority.length === 0) {
2248 if (that.options.sortName) {
2249 that.options.sortPriority = [{
2250 sortName: that.options.sortName,
2251 sortOrder: that.options.sortOrder
2252 }];
2253 }
2254 }
2255
2256 if (that.options.sortPriority !== null && that.options.sortPriority.length > 0) {
2257 if ($rows.length < that.options.sortPriority.length && _typeof(that.options.sortPriority) === 'object') {
2258 for (var i = 0; i < that.options.sortPriority.length; i++) {
2259 that.addLevel(i, that.options.sortPriority[i]);
2260 }
2261 }
2262 } else {
2263 that.addLevel(0);
2264 }
2265
2266 that.setButtonStates();
2267 }
2268 };
2269
2270 $__default["default"].fn.bootstrapTable.methods.push('multipleSort');
2271 $__default["default"].fn.bootstrapTable.methods.push('multiSort');
2272 $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
2273 showMultiSort: false,
2274 showMultiSortButton: true,
2275 multiSortStrictSort: false,
2276 sortPriority: null,
2277 onMultipleSort: function onMultipleSort() {
2278 return false;
2279 }
2280 });
2281 $__default["default"].extend($__default["default"].fn.bootstrapTable.Constructor.EVENTS, {
2282 'multiple-sort.bs.table': 'onMultipleSort'
2283 });
2284 $__default["default"].extend($__default["default"].fn.bootstrapTable.locales, {
2285 formatMultipleSort: function formatMultipleSort() {
2286 return 'Multiple Sort';
2287 },
2288 formatAddLevel: function formatAddLevel() {
2289 return 'Add Level';
2290 },
2291 formatDeleteLevel: function formatDeleteLevel() {
2292 return 'Delete Level';
2293 },
2294 formatColumn: function formatColumn() {
2295 return 'Column';
2296 },
2297 formatOrder: function formatOrder() {
2298 return 'Order';
2299 },
2300 formatSortBy: function formatSortBy() {
2301 return 'Sort by';
2302 },
2303 formatThenBy: function formatThenBy() {
2304 return 'Then by';
2305 },
2306 formatSort: function formatSort() {
2307 return 'Sort';
2308 },
2309 formatCancel: function formatCancel() {
2310 return 'Cancel';
2311 },
2312 formatDuplicateAlertTitle: function formatDuplicateAlertTitle() {
2313 return 'Duplicate(s) detected!';
2314 },
2315 formatDuplicateAlertDescription: function formatDuplicateAlertDescription() {
2316 return 'Please remove or change any duplicate column.';
2317 },
2318 formatSortOrders: function formatSortOrders() {
2319 return {
2320 asc: 'Ascending',
2321 desc: 'Descending'
2322 };
2323 }
2324 });
2325 $__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, $__default["default"].fn.bootstrapTable.locales);
2326 var BootstrapTable = $__default["default"].fn.bootstrapTable.Constructor;
2327 var _initToolbar = BootstrapTable.prototype.initToolbar;
2328 var _destroy = BootstrapTable.prototype.destroy;
2329
2330 BootstrapTable.prototype.initToolbar = function () {
2331 var _this = this;
2332
2333 this.showToolbar = this.showToolbar || this.options.showMultiSort;
2334 var that = this;
2335 var sortModalSelector = "sortModal_".concat(this.$el.attr('id'));
2336 var sortModalId = "#".concat(sortModalSelector);
2337 var $multiSortBtn = this.$toolbar.find('div.multi-sort');
2338 var o = this.options;
2339 this.$sortModal = $__default["default"](sortModalId);
2340 this.sortModalSelector = sortModalSelector;
2341
2342 if (that.options.sortPriority !== null) {
2343 that.onMultipleSort();
2344 }
2345
2346 if (this.options.showMultiSortButton) {
2347 this.buttons = Object.assign(this.buttons, {
2348 multipleSort: {
2349 html: Utils.sprintf(theme.html.multipleSortButton, that.constants.buttonsClass, that.sortModalSelector, this.options.formatMultipleSort(), Utils.sprintf(that.constants.html.icon, o.iconsPrefix, o.icons.sort))
2350 }
2351 });
2352 }
2353
2354 for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
2355 args[_key] = arguments[_key];
2356 }
2357
2358 _initToolbar.apply(this, Array.prototype.slice.apply(args));
2359
2360 if (that.options.sidePagination === 'server' && !isSingleSort && that.options.sortPriority !== null) {
2361 var t = that.options.queryParams;
2362
2363 that.options.queryParams = function (params) {
2364 params.multiSort = that.options.sortPriority;
2365 return t(params);
2366 };
2367 }
2368
2369 if (this.options.showMultiSort) {
2370 if (!$multiSortBtn.length && this.options.showMultiSortButton) {
2371 if ($__default["default"].fn.bootstrapTable.theme === 'semantic') {
2372 this.$toolbar.find('.multi-sort').on('click', function () {
2373 $__default["default"](sortModalId).modal('show');
2374 });
2375 } else if ($__default["default"].fn.bootstrapTable.theme === 'materialize') {
2376 this.$toolbar.find('.multi-sort').on('click', function () {
2377 $__default["default"](sortModalId).modal();
2378 });
2379 } else if ($__default["default"].fn.bootstrapTable.theme === 'bootstrap-table') {
2380 this.$toolbar.find('.multi-sort').on('click', function () {
2381 $__default["default"](sortModalId).addClass('show');
2382 });
2383 } else if ($__default["default"].fn.bootstrapTable.theme === 'foundation') {
2384 this.$toolbar.find('.multi-sort').on('click', function () {
2385 if (!_this.foundationModal) {
2386 // eslint-disable-next-line no-undef
2387 _this.foundationModal = new Foundation.Reveal($__default["default"](sortModalId));
2388 }
2389
2390 _this.foundationModal.open();
2391 });
2392 } else if ($__default["default"].fn.bootstrapTable.theme === 'bulma') {
2393 this.$toolbar.find('.multi-sort').on('click', function () {
2394 $__default["default"]('html').toggleClass('is-clipped');
2395 $__default["default"](sortModalId).toggleClass('is-active');
2396 $__default["default"]('button[data-close]').one('click', function () {
2397 $__default["default"]('html').toggleClass('is-clipped');
2398 $__default["default"](sortModalId).toggleClass('is-active');
2399 });
2400 });
2401 }
2402
2403 showSortModal(that);
2404 }
2405
2406 this.$el.on('sort.bs.table', function () {
2407 isSingleSort = true;
2408 });
2409 this.$el.on('multiple-sort.bs.table', function () {
2410 isSingleSort = false;
2411 });
2412 this.$el.on('load-success.bs.table', function () {
2413 if (!isSingleSort && that.options.sortPriority !== null && _typeof(that.options.sortPriority) === 'object' && that.options.sidePagination !== 'server') {
2414 that.onMultipleSort();
2415 }
2416 });
2417 this.$el.on('column-switch.bs.table', function (field, checked) {
2418 if (that.options.sortPriority !== null && that.options.sortPriority.length > 0) {
2419 for (var i = 0; i < that.options.sortPriority.length; i++) {
2420 if (that.options.sortPriority[i].sortName === checked) {
2421 that.options.sortPriority.splice(i, 1);
2422 }
2423 }
2424
2425 that.assignSortableArrows();
2426 }
2427
2428 that.$sortModal.remove();
2429 showSortModal(that);
2430 });
2431 this.$el.on('reset-view.bs.table', function () {
2432 if (!isSingleSort && that.options.sortPriority !== null && _typeof(that.options.sortPriority) === 'object') {
2433 that.assignSortableArrows();
2434 }
2435 });
2436 }
2437 };
2438
2439 BootstrapTable.prototype.destroy = function () {
2440 for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
2441 args[_key2] = arguments[_key2];
2442 }
2443
2444 _destroy.apply(this, Array.prototype.slice.apply(args));
2445
2446 if (this.options.showMultiSort) {
2447 this.enableCustomSort = false;
2448 this.$sortModal.remove();
2449 }
2450 };
2451
2452 BootstrapTable.prototype.multipleSort = function () {
2453 var that = this;
2454
2455 if (!isSingleSort && that.options.sortPriority !== null && _typeof(that.options.sortPriority) === 'object' && that.options.sidePagination !== 'server') {
2456 that.onMultipleSort();
2457 }
2458 };
2459
2460 BootstrapTable.prototype.onMultipleSort = function () {
2461 var that = this;
2462
2463 var cmp = function cmp(x, y) {
2464 return x > y ? 1 : x < y ? -1 : 0;
2465 };
2466
2467 var arrayCmp = function arrayCmp(a, b) {
2468 var arr1 = [];
2469 var arr2 = [];
2470
2471 for (var i = 0; i < that.options.sortPriority.length; i++) {
2472 var fieldName = that.options.sortPriority[i].sortName;
2473 var fieldIndex = that.header.fields.indexOf(fieldName);
2474 var sorterName = that.header.sorters[that.header.fields.indexOf(fieldName)];
2475
2476 if (that.header.sortNames[fieldIndex]) {
2477 fieldName = that.header.sortNames[fieldIndex];
2478 }
2479
2480 var order = that.options.sortPriority[i].sortOrder === 'desc' ? -1 : 1;
2481 var aa = Utils.getItemField(a, fieldName);
2482 var bb = Utils.getItemField(b, fieldName);
2483 var value1 = $__default["default"].fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [aa, bb]);
2484 var value2 = $__default["default"].fn.bootstrapTable.utils.calculateObjectValue(that.header, sorterName, [bb, aa]);
2485
2486 if (value1 !== undefined && value2 !== undefined) {
2487 arr1.push(order * value1);
2488 arr2.push(order * value2);
2489 continue;
2490 }
2491
2492 if (aa === undefined || aa === null) aa = '';
2493 if (bb === undefined || bb === null) bb = '';
2494
2495 if ($__default["default"].isNumeric(aa) && $__default["default"].isNumeric(bb)) {
2496 aa = parseFloat(aa);
2497 bb = parseFloat(bb);
2498 } else {
2499 aa = aa.toString();
2500 bb = bb.toString();
2501
2502 if (that.options.multiSortStrictSort) {
2503 aa = aa.toLowerCase();
2504 bb = bb.toLowerCase();
2505 }
2506 }
2507
2508 arr1.push(order * cmp(aa, bb));
2509 arr2.push(order * cmp(bb, aa));
2510 }
2511
2512 return cmp(arr1, arr2);
2513 };
2514
2515 this.enableCustomSort = true;
2516 this.data.sort(function (a, b) {
2517 return arrayCmp(a, b);
2518 });
2519 this.initBody();
2520 this.assignSortableArrows();
2521 this.trigger('multiple-sort');
2522 };
2523
2524 BootstrapTable.prototype.addLevel = function (index, sortPriority) {
2525 var text = index === 0 ? this.options.formatSortBy() : this.options.formatThenBy();
2526 this.$sortModal.find('tbody').append($__default["default"]('<tr>').append($__default["default"]('<td>').text(text)).append($__default["default"]('<td>').append($__default["default"](Utils.sprintf(theme.html.multipleSortSelect, this.constants.classes.paginationDropdown, 'multi-sort-name')))).append($__default["default"]('<td>').append($__default["default"](Utils.sprintf(theme.html.multipleSortSelect, this.constants.classes.paginationDropdown, 'multi-sort-order')))));
2527 var $multiSortName = this.$sortModal.find('.multi-sort-name').last();
2528 var $multiSortOrder = this.$sortModal.find('.multi-sort-order').last();
2529 $__default["default"].each(this.columns, function (i, column) {
2530 if (column.sortable === false || column.visible === false) {
2531 return true;
2532 }
2533
2534 $multiSortName.append("<option value=\"".concat(column.field, "\">").concat(column.title, "</option>"));
2535 });
2536 $__default["default"].each(this.options.formatSortOrders(), function (value, order) {
2537 $multiSortOrder.append("<option value=\"".concat(value, "\">").concat(order, "</option>"));
2538 });
2539
2540 if (sortPriority !== undefined) {
2541 $multiSortName.find("option[value=\"".concat(sortPriority.sortName, "\"]")).attr('selected', true);
2542 $multiSortOrder.find("option[value=\"".concat(sortPriority.sortOrder, "\"]")).attr('selected', true);
2543 }
2544 };
2545
2546 BootstrapTable.prototype.assignSortableArrows = function () {
2547 var that = this;
2548 var headers = that.$header.find('th');
2549
2550 for (var i = 0; i < headers.length; i++) {
2551 for (var c = 0; c < that.options.sortPriority.length; c++) {
2552 if ($__default["default"](headers[i]).data('field') === that.options.sortPriority[c].sortName) {
2553 $__default["default"](headers[i]).find('.sortable').removeClass('desc asc').addClass(that.options.sortPriority[c].sortOrder);
2554 }
2555 }
2556 }
2557 };
2558
2559 BootstrapTable.prototype.setButtonStates = function () {
2560 var total = this.$sortModal.find('.multi-sort-name:first option').length;
2561 var current = this.$sortModal.find('tbody tr').length;
2562
2563 if (current === total) {
2564 this.$sortModal.find('#add').attr('disabled', 'disabled');
2565 }
2566
2567 if (current > 1) {
2568 this.$sortModal.find('#delete').removeAttr('disabled');
2569 }
2570
2571 if (current < total) {
2572 this.$sortModal.find('#add').removeAttr('disabled');
2573 }
2574
2575 if (current === 1) {
2576 this.$sortModal.find('#delete').attr('disabled', 'disabled');
2577 }
2578 };
2579
2580 BootstrapTable.prototype.multiSort = function (sortPriority) {
2581 var _this2 = this;
2582
2583 this.options.sortPriority = sortPriority;
2584 this.options.sortName = undefined;
2585
2586 if (this.options.sidePagination === 'server') {
2587 var queryParams = this.options.queryParams;
2588
2589 this.options.queryParams = function (params) {
2590 params.multiSort = _this2.options.sortPriority;
2591 return $__default["default"].fn.bootstrapTable.utils.calculateObjectValue(_this2.options, queryParams, [params]);
2592 };
2593
2594 isSingleSort = false;
2595 this.initServer(this.options.silentSort);
2596 return;
2597 }
2598
2599 this.onMultipleSort();
2600 };
2601
2602}));