@silas-test/ob-molecules-accordion-group 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js ADDED
@@ -0,0 +1,2338 @@
1
+ 'use strict';
2
+
3
+ var jsxRuntime = require('react/jsx-runtime');
4
+ var react = require('react');
5
+ var uiUtils = require('@silas-test/ui-utils');
6
+ var obAtomsAccordion = require('@silas-test/ob-atoms-accordion');
7
+
8
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
+
10
+ var fails$d = function (exec) {
11
+ try {
12
+ return !!exec();
13
+ } catch (error) {
14
+ return true;
15
+ }
16
+ };
17
+
18
+ var fails$c = fails$d;
19
+
20
+ var functionBindNative = !fails$c(function () {
21
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
22
+ var test = (function () { /* empty */ }).bind();
23
+ // eslint-disable-next-line no-prototype-builtins -- safe
24
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
25
+ });
26
+
27
+ var NATIVE_BIND$2 = functionBindNative;
28
+
29
+ var FunctionPrototype$1 = Function.prototype;
30
+ var call$c = FunctionPrototype$1.call;
31
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
32
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$1.bind.bind(call$c, call$c);
33
+
34
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
35
+ return function () {
36
+ return call$c.apply(fn, arguments);
37
+ };
38
+ };
39
+
40
+ var uncurryThis$c = functionUncurryThis;
41
+
42
+ var toString$1 = uncurryThis$c({}.toString);
43
+ var stringSlice$1 = uncurryThis$c(''.slice);
44
+
45
+ var classofRaw$2 = function (it) {
46
+ return stringSlice$1(toString$1(it), 8, -1);
47
+ };
48
+
49
+ var uncurryThis$b = functionUncurryThis;
50
+ var fails$b = fails$d;
51
+ var classof$3 = classofRaw$2;
52
+
53
+ var $Object$4 = Object;
54
+ var split = uncurryThis$b(''.split);
55
+
56
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
57
+ var indexedObject = fails$b(function () {
58
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
59
+ // eslint-disable-next-line no-prototype-builtins -- safe
60
+ return !$Object$4('z').propertyIsEnumerable(0);
61
+ }) ? function (it) {
62
+ return classof$3(it) === 'String' ? split(it, '') : $Object$4(it);
63
+ } : $Object$4;
64
+
65
+ // we can't use just `it == null` since of `document.all` special case
66
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
67
+ var isNullOrUndefined$3 = function (it) {
68
+ return it === null || it === undefined;
69
+ };
70
+
71
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
72
+
73
+ var $TypeError$c = TypeError;
74
+
75
+ // `RequireObjectCoercible` abstract operation
76
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
77
+ var requireObjectCoercible$3 = function (it) {
78
+ if (isNullOrUndefined$2(it)) throw new $TypeError$c("Can't call method on " + it);
79
+ return it;
80
+ };
81
+
82
+ // toObject with fallback for non-array-like ES3 strings
83
+ var IndexedObject$1 = indexedObject;
84
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
85
+
86
+ var toIndexedObject$5 = function (it) {
87
+ return IndexedObject$1(requireObjectCoercible$2(it));
88
+ };
89
+
90
+ var check = function (it) {
91
+ return it && it.Math === Math && it;
92
+ };
93
+
94
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
95
+ var globalThis_1 =
96
+ // eslint-disable-next-line es/no-global-this -- safe
97
+ check(typeof globalThis == 'object' && globalThis) ||
98
+ check(typeof window == 'object' && window) ||
99
+ // eslint-disable-next-line no-restricted-globals -- safe
100
+ check(typeof self == 'object' && self) ||
101
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
102
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
103
+ // eslint-disable-next-line no-new-func -- fallback
104
+ (function () { return this; })() || Function('return this')();
105
+
106
+ var sharedStore = {exports: {}};
107
+
108
+ var globalThis$e = globalThis_1;
109
+
110
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
111
+ var defineProperty$6 = Object.defineProperty;
112
+
113
+ var defineGlobalProperty$3 = function (key, value) {
114
+ try {
115
+ defineProperty$6(globalThis$e, key, { value: value, configurable: true, writable: true });
116
+ } catch (error) {
117
+ globalThis$e[key] = value;
118
+ } return value;
119
+ };
120
+
121
+ var globalThis$d = globalThis_1;
122
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
123
+
124
+ var SHARED = '__core-js_shared__';
125
+ var store$3 = sharedStore.exports = globalThis$d[SHARED] || defineGlobalProperty$2(SHARED, {});
126
+
127
+ (store$3.versions || (store$3.versions = [])).push({
128
+ version: '3.48.0',
129
+ mode: 'global',
130
+ copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
131
+ license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
132
+ source: 'https://github.com/zloirock/core-js'
133
+ });
134
+
135
+ var sharedStoreExports = sharedStore.exports;
136
+
137
+ var store$2 = sharedStoreExports;
138
+
139
+ var shared$3 = function (key, value) {
140
+ return store$2[key] || (store$2[key] = value || {});
141
+ };
142
+
143
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
144
+
145
+ var $Object$3 = Object;
146
+
147
+ // `ToObject` abstract operation
148
+ // https://tc39.es/ecma262/#sec-toobject
149
+ var toObject$4 = function (argument) {
150
+ return $Object$3(requireObjectCoercible$1(argument));
151
+ };
152
+
153
+ var uncurryThis$a = functionUncurryThis;
154
+ var toObject$3 = toObject$4;
155
+
156
+ var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
157
+
158
+ // `HasOwnProperty` abstract operation
159
+ // https://tc39.es/ecma262/#sec-hasownproperty
160
+ // eslint-disable-next-line es/no-object-hasown -- safe
161
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
162
+ return hasOwnProperty(toObject$3(it), key);
163
+ };
164
+
165
+ var uncurryThis$9 = functionUncurryThis;
166
+
167
+ var id = 0;
168
+ var postfix = Math.random();
169
+ var toString = uncurryThis$9(1.1.toString);
170
+
171
+ var uid$2 = function (key) {
172
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
173
+ };
174
+
175
+ var globalThis$c = globalThis_1;
176
+
177
+ var navigator = globalThis$c.navigator;
178
+ var userAgent$1 = navigator && navigator.userAgent;
179
+
180
+ var environmentUserAgent = userAgent$1 ? String(userAgent$1) : '';
181
+
182
+ var globalThis$b = globalThis_1;
183
+ var userAgent = environmentUserAgent;
184
+
185
+ var process = globalThis$b.process;
186
+ var Deno = globalThis$b.Deno;
187
+ var versions = process && process.versions || Deno && Deno.version;
188
+ var v8 = versions && versions.v8;
189
+ var match, version;
190
+
191
+ if (v8) {
192
+ match = v8.split('.');
193
+ // in old Chrome, versions of V8 isn't V8 = Chrome / 10
194
+ // but their correct versions are not interesting for us
195
+ version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
196
+ }
197
+
198
+ // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
199
+ // so check `userAgent` even if `.v8` exists, but 0
200
+ if (!version && userAgent) {
201
+ match = userAgent.match(/Edge\/(\d+)/);
202
+ if (!match || match[1] >= 74) {
203
+ match = userAgent.match(/Chrome\/(\d+)/);
204
+ if (match) version = +match[1];
205
+ }
206
+ }
207
+
208
+ var environmentV8Version = version;
209
+
210
+ /* eslint-disable es/no-symbol -- required for testing */
211
+ var V8_VERSION = environmentV8Version;
212
+ var fails$a = fails$d;
213
+ var globalThis$a = globalThis_1;
214
+
215
+ var $String$4 = globalThis$a.String;
216
+
217
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
218
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
219
+ var symbol = Symbol('symbol detection');
220
+ // Chrome 38 Symbol has incorrect toString conversion
221
+ // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
222
+ // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
223
+ // of course, fail.
224
+ return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
225
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
226
+ !Symbol.sham && V8_VERSION && V8_VERSION < 41;
227
+ });
228
+
229
+ /* eslint-disable es/no-symbol -- required for testing */
230
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
231
+
232
+ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
233
+ !Symbol.sham &&
234
+ typeof Symbol.iterator == 'symbol';
235
+
236
+ var globalThis$9 = globalThis_1;
237
+ var shared$2 = shared$3;
238
+ var hasOwn$9 = hasOwnProperty_1;
239
+ var uid$1 = uid$2;
240
+ var NATIVE_SYMBOL = symbolConstructorDetection;
241
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
242
+
243
+ var Symbol$1 = globalThis$9.Symbol;
244
+ var WellKnownSymbolsStore = shared$2('wks');
245
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
246
+
247
+ var wellKnownSymbol$c = function (name) {
248
+ if (!hasOwn$9(WellKnownSymbolsStore, name)) {
249
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
250
+ ? Symbol$1[name]
251
+ : createWellKnownSymbol('Symbol.' + name);
252
+ } return WellKnownSymbolsStore[name];
253
+ };
254
+
255
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
256
+ var documentAll = typeof document == 'object' && document.all;
257
+
258
+ // `IsCallable` abstract operation
259
+ // https://tc39.es/ecma262/#sec-iscallable
260
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
261
+ var isCallable$f = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
262
+ return typeof argument == 'function' || argument === documentAll;
263
+ } : function (argument) {
264
+ return typeof argument == 'function';
265
+ };
266
+
267
+ var isCallable$e = isCallable$f;
268
+
269
+ var isObject$8 = function (it) {
270
+ return typeof it == 'object' ? it !== null : isCallable$e(it);
271
+ };
272
+
273
+ var isObject$7 = isObject$8;
274
+
275
+ var $String$3 = String;
276
+ var $TypeError$b = TypeError;
277
+
278
+ // `Assert: Type(argument) is Object`
279
+ var anObject$b = function (argument) {
280
+ if (isObject$7(argument)) return argument;
281
+ throw new $TypeError$b($String$3(argument) + ' is not an object');
282
+ };
283
+
284
+ var objectDefineProperties = {};
285
+
286
+ var fails$9 = fails$d;
287
+
288
+ // Detect IE8's incomplete defineProperty implementation
289
+ var descriptors = !fails$9(function () {
290
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
291
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
292
+ });
293
+
294
+ var DESCRIPTORS$c = descriptors;
295
+ var fails$8 = fails$d;
296
+
297
+ // V8 ~ Chrome 36-
298
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
299
+ var v8PrototypeDefineBug = DESCRIPTORS$c && fails$8(function () {
300
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
301
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
302
+ value: 42,
303
+ writable: false
304
+ }).prototype !== 42;
305
+ });
306
+
307
+ var objectDefineProperty = {};
308
+
309
+ var globalThis$8 = globalThis_1;
310
+ var isObject$6 = isObject$8;
311
+
312
+ var document$1 = globalThis$8.document;
313
+ // typeof document.createElement is 'object' in old IE
314
+ var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
315
+
316
+ var documentCreateElement$2 = function (it) {
317
+ return EXISTS$1 ? document$1.createElement(it) : {};
318
+ };
319
+
320
+ var DESCRIPTORS$b = descriptors;
321
+ var fails$7 = fails$d;
322
+ var createElement = documentCreateElement$2;
323
+
324
+ // Thanks to IE8 for its funny defineProperty
325
+ var ie8DomDefine = !DESCRIPTORS$b && !fails$7(function () {
326
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
327
+ return Object.defineProperty(createElement('div'), 'a', {
328
+ get: function () { return 7; }
329
+ }).a !== 7;
330
+ });
331
+
332
+ var NATIVE_BIND$1 = functionBindNative;
333
+
334
+ var call$b = Function.prototype.call;
335
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
336
+ var functionCall = NATIVE_BIND$1 ? call$b.bind(call$b) : function () {
337
+ return call$b.apply(call$b, arguments);
338
+ };
339
+
340
+ var globalThis$7 = globalThis_1;
341
+ var isCallable$d = isCallable$f;
342
+
343
+ var aFunction = function (argument) {
344
+ return isCallable$d(argument) ? argument : undefined;
345
+ };
346
+
347
+ var getBuiltIn$3 = function (namespace, method) {
348
+ return arguments.length < 2 ? aFunction(globalThis$7[namespace]) : globalThis$7[namespace] && globalThis$7[namespace][method];
349
+ };
350
+
351
+ var uncurryThis$8 = functionUncurryThis;
352
+
353
+ var objectIsPrototypeOf = uncurryThis$8({}.isPrototypeOf);
354
+
355
+ var getBuiltIn$2 = getBuiltIn$3;
356
+ var isCallable$c = isCallable$f;
357
+ var isPrototypeOf$2 = objectIsPrototypeOf;
358
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
359
+
360
+ var $Object$2 = Object;
361
+
362
+ var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
363
+ return typeof it == 'symbol';
364
+ } : function (it) {
365
+ var $Symbol = getBuiltIn$2('Symbol');
366
+ return isCallable$c($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
367
+ };
368
+
369
+ var $String$2 = String;
370
+
371
+ var tryToString$3 = function (argument) {
372
+ try {
373
+ return $String$2(argument);
374
+ } catch (error) {
375
+ return 'Object';
376
+ }
377
+ };
378
+
379
+ var isCallable$b = isCallable$f;
380
+ var tryToString$2 = tryToString$3;
381
+
382
+ var $TypeError$a = TypeError;
383
+
384
+ // `Assert: IsCallable(argument) is true`
385
+ var aCallable$6 = function (argument) {
386
+ if (isCallable$b(argument)) return argument;
387
+ throw new $TypeError$a(tryToString$2(argument) + ' is not a function');
388
+ };
389
+
390
+ var aCallable$5 = aCallable$6;
391
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
392
+
393
+ // `GetMethod` abstract operation
394
+ // https://tc39.es/ecma262/#sec-getmethod
395
+ var getMethod$4 = function (V, P) {
396
+ var func = V[P];
397
+ return isNullOrUndefined$1(func) ? undefined : aCallable$5(func);
398
+ };
399
+
400
+ var call$a = functionCall;
401
+ var isCallable$a = isCallable$f;
402
+ var isObject$5 = isObject$8;
403
+
404
+ var $TypeError$9 = TypeError;
405
+
406
+ // `OrdinaryToPrimitive` abstract operation
407
+ // https://tc39.es/ecma262/#sec-ordinarytoprimitive
408
+ var ordinaryToPrimitive$1 = function (input, pref) {
409
+ var fn, val;
410
+ if (pref === 'string' && isCallable$a(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
411
+ if (isCallable$a(fn = input.valueOf) && !isObject$5(val = call$a(fn, input))) return val;
412
+ if (pref !== 'string' && isCallable$a(fn = input.toString) && !isObject$5(val = call$a(fn, input))) return val;
413
+ throw new $TypeError$9("Can't convert object to primitive value");
414
+ };
415
+
416
+ var call$9 = functionCall;
417
+ var isObject$4 = isObject$8;
418
+ var isSymbol$1 = isSymbol$2;
419
+ var getMethod$3 = getMethod$4;
420
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
421
+ var wellKnownSymbol$b = wellKnownSymbol$c;
422
+
423
+ var $TypeError$8 = TypeError;
424
+ var TO_PRIMITIVE = wellKnownSymbol$b('toPrimitive');
425
+
426
+ // `ToPrimitive` abstract operation
427
+ // https://tc39.es/ecma262/#sec-toprimitive
428
+ var toPrimitive$1 = function (input, pref) {
429
+ if (!isObject$4(input) || isSymbol$1(input)) return input;
430
+ var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
431
+ var result;
432
+ if (exoticToPrim) {
433
+ if (pref === undefined) pref = 'default';
434
+ result = call$9(exoticToPrim, input, pref);
435
+ if (!isObject$4(result) || isSymbol$1(result)) return result;
436
+ throw new $TypeError$8("Can't convert object to primitive value");
437
+ }
438
+ if (pref === undefined) pref = 'number';
439
+ return ordinaryToPrimitive(input, pref);
440
+ };
441
+
442
+ var toPrimitive = toPrimitive$1;
443
+ var isSymbol = isSymbol$2;
444
+
445
+ // `ToPropertyKey` abstract operation
446
+ // https://tc39.es/ecma262/#sec-topropertykey
447
+ var toPropertyKey$2 = function (argument) {
448
+ var key = toPrimitive(argument, 'string');
449
+ return isSymbol(key) ? key : key + '';
450
+ };
451
+
452
+ var DESCRIPTORS$a = descriptors;
453
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
454
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
455
+ var anObject$a = anObject$b;
456
+ var toPropertyKey$1 = toPropertyKey$2;
457
+
458
+ var $TypeError$7 = TypeError;
459
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
460
+ var $defineProperty = Object.defineProperty;
461
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
462
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
463
+ var ENUMERABLE = 'enumerable';
464
+ var CONFIGURABLE$1 = 'configurable';
465
+ var WRITABLE = 'writable';
466
+
467
+ // `Object.defineProperty` method
468
+ // https://tc39.es/ecma262/#sec-object.defineproperty
469
+ objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
470
+ anObject$a(O);
471
+ P = toPropertyKey$1(P);
472
+ anObject$a(Attributes);
473
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
474
+ var current = $getOwnPropertyDescriptor$1(O, P);
475
+ if (current && current[WRITABLE]) {
476
+ O[P] = Attributes.value;
477
+ Attributes = {
478
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
479
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
480
+ writable: false
481
+ };
482
+ }
483
+ } return $defineProperty(O, P, Attributes);
484
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
485
+ anObject$a(O);
486
+ P = toPropertyKey$1(P);
487
+ anObject$a(Attributes);
488
+ if (IE8_DOM_DEFINE$1) try {
489
+ return $defineProperty(O, P, Attributes);
490
+ } catch (error) { /* empty */ }
491
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$7('Accessors not supported');
492
+ if ('value' in Attributes) O[P] = Attributes.value;
493
+ return O;
494
+ };
495
+
496
+ var ceil = Math.ceil;
497
+ var floor = Math.floor;
498
+
499
+ // `Math.trunc` method
500
+ // https://tc39.es/ecma262/#sec-math.trunc
501
+ // eslint-disable-next-line es/no-math-trunc -- safe
502
+ var mathTrunc = Math.trunc || function trunc(x) {
503
+ var n = +x;
504
+ return (n > 0 ? floor : ceil)(n);
505
+ };
506
+
507
+ var trunc = mathTrunc;
508
+
509
+ // `ToIntegerOrInfinity` abstract operation
510
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
511
+ var toIntegerOrInfinity$2 = function (argument) {
512
+ var number = +argument;
513
+ // eslint-disable-next-line no-self-compare -- NaN check
514
+ return number !== number || number === 0 ? 0 : trunc(number);
515
+ };
516
+
517
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
518
+
519
+ var max = Math.max;
520
+ var min$1 = Math.min;
521
+
522
+ // Helper for a popular repeating case of the spec:
523
+ // Let integer be ? ToInteger(index).
524
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
525
+ var toAbsoluteIndex$1 = function (index, length) {
526
+ var integer = toIntegerOrInfinity$1(index);
527
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
528
+ };
529
+
530
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
531
+
532
+ var min = Math.min;
533
+
534
+ // `ToLength` abstract operation
535
+ // https://tc39.es/ecma262/#sec-tolength
536
+ var toLength$1 = function (argument) {
537
+ var len = toIntegerOrInfinity(argument);
538
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
539
+ };
540
+
541
+ var toLength = toLength$1;
542
+
543
+ // `LengthOfArrayLike` abstract operation
544
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
545
+ var lengthOfArrayLike$3 = function (obj) {
546
+ return toLength(obj.length);
547
+ };
548
+
549
+ var toIndexedObject$4 = toIndexedObject$5;
550
+ var toAbsoluteIndex = toAbsoluteIndex$1;
551
+ var lengthOfArrayLike$2 = lengthOfArrayLike$3;
552
+
553
+ // `Array.prototype.{ indexOf, includes }` methods implementation
554
+ var createMethod = function (IS_INCLUDES) {
555
+ return function ($this, el, fromIndex) {
556
+ var O = toIndexedObject$4($this);
557
+ var length = lengthOfArrayLike$2(O);
558
+ if (length === 0) return !IS_INCLUDES && -1;
559
+ var index = toAbsoluteIndex(fromIndex, length);
560
+ var value;
561
+ // Array#includes uses SameValueZero equality algorithm
562
+ // eslint-disable-next-line no-self-compare -- NaN check
563
+ if (IS_INCLUDES && el !== el) while (length > index) {
564
+ value = O[index++];
565
+ // eslint-disable-next-line no-self-compare -- NaN check
566
+ if (value !== value) return true;
567
+ // Array#indexOf ignores holes, Array#includes - not
568
+ } else for (;length > index; index++) {
569
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
570
+ } return !IS_INCLUDES && -1;
571
+ };
572
+ };
573
+
574
+ var arrayIncludes = {
575
+ // `Array.prototype.indexOf` method
576
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
577
+ indexOf: createMethod(false)
578
+ };
579
+
580
+ var hiddenKeys$4 = {};
581
+
582
+ var uncurryThis$7 = functionUncurryThis;
583
+ var hasOwn$8 = hasOwnProperty_1;
584
+ var toIndexedObject$3 = toIndexedObject$5;
585
+ var indexOf = arrayIncludes.indexOf;
586
+ var hiddenKeys$3 = hiddenKeys$4;
587
+
588
+ var push = uncurryThis$7([].push);
589
+
590
+ var objectKeysInternal = function (object, names) {
591
+ var O = toIndexedObject$3(object);
592
+ var i = 0;
593
+ var result = [];
594
+ var key;
595
+ for (key in O) !hasOwn$8(hiddenKeys$3, key) && hasOwn$8(O, key) && push(result, key);
596
+ // Don't enum bug & hidden keys
597
+ while (names.length > i) if (hasOwn$8(O, key = names[i++])) {
598
+ ~indexOf(result, key) || push(result, key);
599
+ }
600
+ return result;
601
+ };
602
+
603
+ // IE8- don't enum bug keys
604
+ var enumBugKeys$3 = [
605
+ 'constructor',
606
+ 'hasOwnProperty',
607
+ 'isPrototypeOf',
608
+ 'propertyIsEnumerable',
609
+ 'toLocaleString',
610
+ 'toString',
611
+ 'valueOf'
612
+ ];
613
+
614
+ var internalObjectKeys$1 = objectKeysInternal;
615
+ var enumBugKeys$2 = enumBugKeys$3;
616
+
617
+ // `Object.keys` method
618
+ // https://tc39.es/ecma262/#sec-object.keys
619
+ // eslint-disable-next-line es/no-object-keys -- safe
620
+ var objectKeys$2 = Object.keys || function keys(O) {
621
+ return internalObjectKeys$1(O, enumBugKeys$2);
622
+ };
623
+
624
+ var DESCRIPTORS$9 = descriptors;
625
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
626
+ var definePropertyModule$4 = objectDefineProperty;
627
+ var anObject$9 = anObject$b;
628
+ var toIndexedObject$2 = toIndexedObject$5;
629
+ var objectKeys$1 = objectKeys$2;
630
+
631
+ // `Object.defineProperties` method
632
+ // https://tc39.es/ecma262/#sec-object.defineproperties
633
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
634
+ objectDefineProperties.f = DESCRIPTORS$9 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
635
+ anObject$9(O);
636
+ var props = toIndexedObject$2(Properties);
637
+ var keys = objectKeys$1(Properties);
638
+ var length = keys.length;
639
+ var index = 0;
640
+ var key;
641
+ while (length > index) definePropertyModule$4.f(O, key = keys[index++], props[key]);
642
+ return O;
643
+ };
644
+
645
+ var getBuiltIn$1 = getBuiltIn$3;
646
+
647
+ var html$1 = getBuiltIn$1('document', 'documentElement');
648
+
649
+ var shared$1 = shared$3;
650
+ var uid = uid$2;
651
+
652
+ var keys = shared$1('keys');
653
+
654
+ var sharedKey$3 = function (key) {
655
+ return keys[key] || (keys[key] = uid(key));
656
+ };
657
+
658
+ /* global ActiveXObject -- old IE, WSH */
659
+ var anObject$8 = anObject$b;
660
+ var definePropertiesModule = objectDefineProperties;
661
+ var enumBugKeys$1 = enumBugKeys$3;
662
+ var hiddenKeys$2 = hiddenKeys$4;
663
+ var html = html$1;
664
+ var documentCreateElement$1 = documentCreateElement$2;
665
+ var sharedKey$2 = sharedKey$3;
666
+
667
+ var GT = '>';
668
+ var LT = '<';
669
+ var PROTOTYPE = 'prototype';
670
+ var SCRIPT = 'script';
671
+ var IE_PROTO$1 = sharedKey$2('IE_PROTO');
672
+
673
+ var EmptyConstructor = function () { /* empty */ };
674
+
675
+ var scriptTag = function (content) {
676
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
677
+ };
678
+
679
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
680
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
681
+ activeXDocument.write(scriptTag(''));
682
+ activeXDocument.close();
683
+ var temp = activeXDocument.parentWindow.Object;
684
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
685
+ activeXDocument = null;
686
+ return temp;
687
+ };
688
+
689
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
690
+ var NullProtoObjectViaIFrame = function () {
691
+ // Thrash, waste and sodomy: IE GC bug
692
+ var iframe = documentCreateElement$1('iframe');
693
+ var JS = 'java' + SCRIPT + ':';
694
+ var iframeDocument;
695
+ iframe.style.display = 'none';
696
+ html.appendChild(iframe);
697
+ // https://github.com/zloirock/core-js/issues/475
698
+ iframe.src = String(JS);
699
+ iframeDocument = iframe.contentWindow.document;
700
+ iframeDocument.open();
701
+ iframeDocument.write(scriptTag('document.F=Object'));
702
+ iframeDocument.close();
703
+ return iframeDocument.F;
704
+ };
705
+
706
+ // Check for document.domain and active x support
707
+ // No need to use active x approach when document.domain is not set
708
+ // see https://github.com/es-shims/es5-shim/issues/150
709
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
710
+ // avoid IE GC bug
711
+ var activeXDocument;
712
+ var NullProtoObject = function () {
713
+ try {
714
+ activeXDocument = new ActiveXObject('htmlfile');
715
+ } catch (error) { /* ignore */ }
716
+ NullProtoObject = typeof document != 'undefined'
717
+ ? document.domain && activeXDocument
718
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
719
+ : NullProtoObjectViaIFrame()
720
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
721
+ var length = enumBugKeys$1.length;
722
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
723
+ return NullProtoObject();
724
+ };
725
+
726
+ hiddenKeys$2[IE_PROTO$1] = true;
727
+
728
+ // `Object.create` method
729
+ // https://tc39.es/ecma262/#sec-object.create
730
+ // eslint-disable-next-line es/no-object-create -- safe
731
+ var objectCreate = Object.create || function create(O, Properties) {
732
+ var result;
733
+ if (O !== null) {
734
+ EmptyConstructor[PROTOTYPE] = anObject$8(O);
735
+ result = new EmptyConstructor();
736
+ EmptyConstructor[PROTOTYPE] = null;
737
+ // add "__proto__" for Object.getPrototypeOf polyfill
738
+ result[IE_PROTO$1] = O;
739
+ } else result = NullProtoObject();
740
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
741
+ };
742
+
743
+ var wellKnownSymbol$a = wellKnownSymbol$c;
744
+ var create$2 = objectCreate;
745
+ var defineProperty$5 = objectDefineProperty.f;
746
+
747
+ var UNSCOPABLES = wellKnownSymbol$a('unscopables');
748
+ var ArrayPrototype$1 = Array.prototype;
749
+
750
+ // Array.prototype[@@unscopables]
751
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
752
+ if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
753
+ defineProperty$5(ArrayPrototype$1, UNSCOPABLES, {
754
+ configurable: true,
755
+ value: create$2(null)
756
+ });
757
+ }
758
+
759
+ // add a key to Array.prototype[@@unscopables]
760
+ var addToUnscopables$1 = function (key) {
761
+ ArrayPrototype$1[UNSCOPABLES][key] = true;
762
+ };
763
+
764
+ var iterators = {};
765
+
766
+ var globalThis$6 = globalThis_1;
767
+ var isCallable$9 = isCallable$f;
768
+
769
+ var WeakMap$1 = globalThis$6.WeakMap;
770
+
771
+ var weakMapBasicDetection = isCallable$9(WeakMap$1) && /native code/.test(String(WeakMap$1));
772
+
773
+ var createPropertyDescriptor$4 = function (bitmap, value) {
774
+ return {
775
+ enumerable: !(bitmap & 1),
776
+ configurable: !(bitmap & 2),
777
+ writable: !(bitmap & 4),
778
+ value: value
779
+ };
780
+ };
781
+
782
+ var DESCRIPTORS$8 = descriptors;
783
+ var definePropertyModule$3 = objectDefineProperty;
784
+ var createPropertyDescriptor$3 = createPropertyDescriptor$4;
785
+
786
+ var createNonEnumerableProperty$5 = DESCRIPTORS$8 ? function (object, key, value) {
787
+ return definePropertyModule$3.f(object, key, createPropertyDescriptor$3(1, value));
788
+ } : function (object, key, value) {
789
+ object[key] = value;
790
+ return object;
791
+ };
792
+
793
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
794
+ var globalThis$5 = globalThis_1;
795
+ var isObject$3 = isObject$8;
796
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
797
+ var hasOwn$7 = hasOwnProperty_1;
798
+ var shared = sharedStoreExports;
799
+ var sharedKey$1 = sharedKey$3;
800
+ var hiddenKeys$1 = hiddenKeys$4;
801
+
802
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
803
+ var TypeError$1 = globalThis$5.TypeError;
804
+ var WeakMap = globalThis$5.WeakMap;
805
+ var set, get, has;
806
+
807
+ var enforce = function (it) {
808
+ return has(it) ? get(it) : set(it, {});
809
+ };
810
+
811
+ var getterFor = function (TYPE) {
812
+ return function (it) {
813
+ var state;
814
+ if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
815
+ throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
816
+ } return state;
817
+ };
818
+ };
819
+
820
+ if (NATIVE_WEAK_MAP || shared.state) {
821
+ var store$1 = shared.state || (shared.state = new WeakMap());
822
+ /* eslint-disable no-self-assign -- prototype methods protection */
823
+ store$1.get = store$1.get;
824
+ store$1.has = store$1.has;
825
+ store$1.set = store$1.set;
826
+ /* eslint-enable no-self-assign -- prototype methods protection */
827
+ set = function (it, metadata) {
828
+ if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
829
+ metadata.facade = it;
830
+ store$1.set(it, metadata);
831
+ return metadata;
832
+ };
833
+ get = function (it) {
834
+ return store$1.get(it) || {};
835
+ };
836
+ has = function (it) {
837
+ return store$1.has(it);
838
+ };
839
+ } else {
840
+ var STATE = sharedKey$1('state');
841
+ hiddenKeys$1[STATE] = true;
842
+ set = function (it, metadata) {
843
+ if (hasOwn$7(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
844
+ metadata.facade = it;
845
+ createNonEnumerableProperty$4(it, STATE, metadata);
846
+ return metadata;
847
+ };
848
+ get = function (it) {
849
+ return hasOwn$7(it, STATE) ? it[STATE] : {};
850
+ };
851
+ has = function (it) {
852
+ return hasOwn$7(it, STATE);
853
+ };
854
+ }
855
+
856
+ var internalState = {
857
+ set: set,
858
+ get: get,
859
+ has: has,
860
+ enforce: enforce,
861
+ getterFor: getterFor
862
+ };
863
+
864
+ var objectGetOwnPropertyDescriptor = {};
865
+
866
+ var objectPropertyIsEnumerable = {};
867
+
868
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
869
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
870
+ var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
871
+
872
+ // Nashorn ~ JDK8 bug
873
+ var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
874
+
875
+ // `Object.prototype.propertyIsEnumerable` method implementation
876
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
877
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
878
+ var descriptor = getOwnPropertyDescriptor$2(this, V);
879
+ return !!descriptor && descriptor.enumerable;
880
+ } : $propertyIsEnumerable;
881
+
882
+ var DESCRIPTORS$7 = descriptors;
883
+ var call$8 = functionCall;
884
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
885
+ var createPropertyDescriptor$2 = createPropertyDescriptor$4;
886
+ var toIndexedObject$1 = toIndexedObject$5;
887
+ var toPropertyKey = toPropertyKey$2;
888
+ var hasOwn$6 = hasOwnProperty_1;
889
+ var IE8_DOM_DEFINE = ie8DomDefine;
890
+
891
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
892
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
893
+
894
+ // `Object.getOwnPropertyDescriptor` method
895
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
896
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
897
+ O = toIndexedObject$1(O);
898
+ P = toPropertyKey(P);
899
+ if (IE8_DOM_DEFINE) try {
900
+ return $getOwnPropertyDescriptor(O, P);
901
+ } catch (error) { /* empty */ }
902
+ if (hasOwn$6(O, P)) return createPropertyDescriptor$2(!call$8(propertyIsEnumerableModule$1.f, O, P), O[P]);
903
+ };
904
+
905
+ var makeBuiltIn$3 = {exports: {}};
906
+
907
+ var DESCRIPTORS$6 = descriptors;
908
+ var hasOwn$5 = hasOwnProperty_1;
909
+
910
+ var FunctionPrototype = Function.prototype;
911
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
912
+ var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
913
+
914
+ var EXISTS = hasOwn$5(FunctionPrototype, 'name');
915
+ // additional protection from minified / mangled / dropped function names
916
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
917
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype, 'name').configurable));
918
+
919
+ var functionName = {
920
+ PROPER: PROPER,
921
+ CONFIGURABLE: CONFIGURABLE
922
+ };
923
+
924
+ var uncurryThis$6 = functionUncurryThis;
925
+ var isCallable$8 = isCallable$f;
926
+ var store = sharedStoreExports;
927
+
928
+ var functionToString = uncurryThis$6(Function.toString);
929
+
930
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
931
+ if (!isCallable$8(store.inspectSource)) {
932
+ store.inspectSource = function (it) {
933
+ return functionToString(it);
934
+ };
935
+ }
936
+
937
+ var inspectSource$1 = store.inspectSource;
938
+
939
+ var uncurryThis$5 = functionUncurryThis;
940
+ var fails$6 = fails$d;
941
+ var isCallable$7 = isCallable$f;
942
+ var hasOwn$4 = hasOwnProperty_1;
943
+ var DESCRIPTORS$5 = descriptors;
944
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
945
+ var inspectSource = inspectSource$1;
946
+ var InternalStateModule$2 = internalState;
947
+
948
+ var enforceInternalState = InternalStateModule$2.enforce;
949
+ var getInternalState$1 = InternalStateModule$2.get;
950
+ var $String$1 = String;
951
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
952
+ var defineProperty$4 = Object.defineProperty;
953
+ var stringSlice = uncurryThis$5(''.slice);
954
+ var replace = uncurryThis$5(''.replace);
955
+ var join = uncurryThis$5([].join);
956
+
957
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$6(function () {
958
+ return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
959
+ });
960
+
961
+ var TEMPLATE = String(String).split('String');
962
+
963
+ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
964
+ if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
965
+ name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
966
+ }
967
+ if (options && options.getter) name = 'get ' + name;
968
+ if (options && options.setter) name = 'set ' + name;
969
+ if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
970
+ if (DESCRIPTORS$5) defineProperty$4(value, 'name', { value: name, configurable: true });
971
+ else value.name = name;
972
+ }
973
+ if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
974
+ defineProperty$4(value, 'length', { value: options.arity });
975
+ }
976
+ try {
977
+ if (options && hasOwn$4(options, 'constructor') && options.constructor) {
978
+ if (DESCRIPTORS$5) defineProperty$4(value, 'prototype', { writable: false });
979
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
980
+ } else if (value.prototype) value.prototype = undefined;
981
+ } catch (error) { /* empty */ }
982
+ var state = enforceInternalState(value);
983
+ if (!hasOwn$4(state, 'source')) {
984
+ state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
985
+ } return value;
986
+ };
987
+
988
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
989
+ // eslint-disable-next-line no-extend-native -- required
990
+ Function.prototype.toString = makeBuiltIn$2(function toString() {
991
+ return isCallable$7(this) && getInternalState$1(this).source || inspectSource(this);
992
+ }, 'toString');
993
+
994
+ var makeBuiltInExports = makeBuiltIn$3.exports;
995
+
996
+ var isCallable$6 = isCallable$f;
997
+ var definePropertyModule$2 = objectDefineProperty;
998
+ var makeBuiltIn$1 = makeBuiltInExports;
999
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
1000
+
1001
+ var defineBuiltIn$4 = function (O, key, value, options) {
1002
+ if (!options) options = {};
1003
+ var simple = options.enumerable;
1004
+ var name = options.name !== undefined ? options.name : key;
1005
+ if (isCallable$6(value)) makeBuiltIn$1(value, name, options);
1006
+ if (options.global) {
1007
+ if (simple) O[key] = value;
1008
+ else defineGlobalProperty$1(key, value);
1009
+ } else {
1010
+ try {
1011
+ if (!options.unsafe) delete O[key];
1012
+ else if (O[key]) simple = true;
1013
+ } catch (error) { /* empty */ }
1014
+ if (simple) O[key] = value;
1015
+ else definePropertyModule$2.f(O, key, {
1016
+ value: value,
1017
+ enumerable: false,
1018
+ configurable: !options.nonConfigurable,
1019
+ writable: !options.nonWritable
1020
+ });
1021
+ } return O;
1022
+ };
1023
+
1024
+ var objectGetOwnPropertyNames = {};
1025
+
1026
+ var internalObjectKeys = objectKeysInternal;
1027
+ var enumBugKeys = enumBugKeys$3;
1028
+
1029
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1030
+
1031
+ // `Object.getOwnPropertyNames` method
1032
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1033
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1034
+ objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1035
+ return internalObjectKeys(O, hiddenKeys);
1036
+ };
1037
+
1038
+ var objectGetOwnPropertySymbols = {};
1039
+
1040
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1041
+ objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1042
+
1043
+ var getBuiltIn = getBuiltIn$3;
1044
+ var uncurryThis$4 = functionUncurryThis;
1045
+ var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1046
+ var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1047
+ var anObject$7 = anObject$b;
1048
+
1049
+ var concat$1 = uncurryThis$4([].concat);
1050
+
1051
+ // all object keys, includes non-enumerable and symbols
1052
+ var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1053
+ var keys = getOwnPropertyNamesModule.f(anObject$7(it));
1054
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1055
+ return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1056
+ };
1057
+
1058
+ var hasOwn$3 = hasOwnProperty_1;
1059
+ var ownKeys = ownKeys$1;
1060
+ var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1061
+ var definePropertyModule$1 = objectDefineProperty;
1062
+
1063
+ var copyConstructorProperties$1 = function (target, source, exceptions) {
1064
+ var keys = ownKeys(source);
1065
+ var defineProperty = definePropertyModule$1.f;
1066
+ var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1067
+ for (var i = 0; i < keys.length; i++) {
1068
+ var key = keys[i];
1069
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
1070
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1071
+ }
1072
+ }
1073
+ };
1074
+
1075
+ var fails$5 = fails$d;
1076
+ var isCallable$5 = isCallable$f;
1077
+
1078
+ var replacement = /#|\.prototype\./;
1079
+
1080
+ var isForced$1 = function (feature, detection) {
1081
+ var value = data[normalize(feature)];
1082
+ return value === POLYFILL ? true
1083
+ : value === NATIVE ? false
1084
+ : isCallable$5(detection) ? fails$5(detection)
1085
+ : !!detection;
1086
+ };
1087
+
1088
+ var normalize = isForced$1.normalize = function (string) {
1089
+ return String(string).replace(replacement, '.').toLowerCase();
1090
+ };
1091
+
1092
+ var data = isForced$1.data = {};
1093
+ var NATIVE = isForced$1.NATIVE = 'N';
1094
+ var POLYFILL = isForced$1.POLYFILL = 'P';
1095
+
1096
+ var isForced_1 = isForced$1;
1097
+
1098
+ var globalThis$4 = globalThis_1;
1099
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1100
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
1101
+ var defineBuiltIn$3 = defineBuiltIn$4;
1102
+ var defineGlobalProperty = defineGlobalProperty$3;
1103
+ var copyConstructorProperties = copyConstructorProperties$1;
1104
+ var isForced = isForced_1;
1105
+
1106
+ /*
1107
+ options.target - name of the target object
1108
+ options.global - target is the global object
1109
+ options.stat - export as static methods of target
1110
+ options.proto - export as prototype methods of target
1111
+ options.real - real prototype method for the `pure` version
1112
+ options.forced - export even if the native feature is available
1113
+ options.bind - bind methods to the target, required for the `pure` version
1114
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1115
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1116
+ options.sham - add a flag to not completely full polyfills
1117
+ options.enumerable - export as enumerable property
1118
+ options.dontCallGetSet - prevent calling a getter on target
1119
+ options.name - the .name of the function if it does not match the key
1120
+ */
1121
+ var _export = function (options, source) {
1122
+ var TARGET = options.target;
1123
+ var GLOBAL = options.global;
1124
+ var STATIC = options.stat;
1125
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1126
+ if (GLOBAL) {
1127
+ target = globalThis$4;
1128
+ } else if (STATIC) {
1129
+ target = globalThis$4[TARGET] || defineGlobalProperty(TARGET, {});
1130
+ } else {
1131
+ target = globalThis$4[TARGET] && globalThis$4[TARGET].prototype;
1132
+ }
1133
+ if (target) for (key in source) {
1134
+ sourceProperty = source[key];
1135
+ if (options.dontCallGetSet) {
1136
+ descriptor = getOwnPropertyDescriptor$1(target, key);
1137
+ targetProperty = descriptor && descriptor.value;
1138
+ } else targetProperty = target[key];
1139
+ FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1140
+ // contained in target
1141
+ if (!FORCED && targetProperty !== undefined) {
1142
+ if (typeof sourceProperty == typeof targetProperty) continue;
1143
+ copyConstructorProperties(sourceProperty, targetProperty);
1144
+ }
1145
+ // add a flag to not completely full polyfills
1146
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1147
+ createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1148
+ }
1149
+ defineBuiltIn$3(target, key, sourceProperty, options);
1150
+ }
1151
+ };
1152
+
1153
+ var fails$4 = fails$d;
1154
+
1155
+ var correctPrototypeGetter = !fails$4(function () {
1156
+ function F() { /* empty */ }
1157
+ F.prototype.constructor = null;
1158
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1159
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1160
+ });
1161
+
1162
+ var hasOwn$2 = hasOwnProperty_1;
1163
+ var isCallable$4 = isCallable$f;
1164
+ var toObject$2 = toObject$4;
1165
+ var sharedKey = sharedKey$3;
1166
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1167
+
1168
+ var IE_PROTO = sharedKey('IE_PROTO');
1169
+ var $Object$1 = Object;
1170
+ var ObjectPrototype = $Object$1.prototype;
1171
+
1172
+ // `Object.getPrototypeOf` method
1173
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
1174
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1175
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1176
+ var object = toObject$2(O);
1177
+ if (hasOwn$2(object, IE_PROTO)) return object[IE_PROTO];
1178
+ var constructor = object.constructor;
1179
+ if (isCallable$4(constructor) && object instanceof constructor) {
1180
+ return constructor.prototype;
1181
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1182
+ };
1183
+
1184
+ var fails$3 = fails$d;
1185
+ var isCallable$3 = isCallable$f;
1186
+ var isObject$2 = isObject$8;
1187
+ var getPrototypeOf$2 = objectGetPrototypeOf;
1188
+ var defineBuiltIn$2 = defineBuiltIn$4;
1189
+ var wellKnownSymbol$9 = wellKnownSymbol$c;
1190
+
1191
+ var ITERATOR$5 = wellKnownSymbol$9('iterator');
1192
+ var BUGGY_SAFARI_ITERATORS$1 = false;
1193
+
1194
+ // `%IteratorPrototype%` object
1195
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1196
+ var IteratorPrototype$4, PrototypeOfArrayIteratorPrototype, arrayIterator;
1197
+
1198
+ /* eslint-disable es/no-array-prototype-keys -- safe */
1199
+ if ([].keys) {
1200
+ arrayIterator = [].keys();
1201
+ // Safari 8 has buggy iterators w/o `next`
1202
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1203
+ else {
1204
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$2(getPrototypeOf$2(arrayIterator));
1205
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$4 = PrototypeOfArrayIteratorPrototype;
1206
+ }
1207
+ }
1208
+
1209
+ var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$4) || fails$3(function () {
1210
+ var test = {};
1211
+ // FF44- legacy iterators case
1212
+ return IteratorPrototype$4[ITERATOR$5].call(test) !== test;
1213
+ });
1214
+
1215
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$4 = {};
1216
+
1217
+ // `%IteratorPrototype%[@@iterator]()` method
1218
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1219
+ if (!isCallable$3(IteratorPrototype$4[ITERATOR$5])) {
1220
+ defineBuiltIn$2(IteratorPrototype$4, ITERATOR$5, function () {
1221
+ return this;
1222
+ });
1223
+ }
1224
+
1225
+ var iteratorsCore = {
1226
+ IteratorPrototype: IteratorPrototype$4,
1227
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1228
+ };
1229
+
1230
+ var defineProperty$3 = objectDefineProperty.f;
1231
+ var hasOwn$1 = hasOwnProperty_1;
1232
+ var wellKnownSymbol$8 = wellKnownSymbol$c;
1233
+
1234
+ var TO_STRING_TAG$4 = wellKnownSymbol$8('toStringTag');
1235
+
1236
+ var setToStringTag$3 = function (target, TAG, STATIC) {
1237
+ if (target && !STATIC) target = target.prototype;
1238
+ if (target && !hasOwn$1(target, TO_STRING_TAG$4)) {
1239
+ defineProperty$3(target, TO_STRING_TAG$4, { configurable: true, value: TAG });
1240
+ }
1241
+ };
1242
+
1243
+ var IteratorPrototype$3 = iteratorsCore.IteratorPrototype;
1244
+ var create$1 = objectCreate;
1245
+ var createPropertyDescriptor$1 = createPropertyDescriptor$4;
1246
+ var setToStringTag$2 = setToStringTag$3;
1247
+ var Iterators$4 = iterators;
1248
+
1249
+ var returnThis$1 = function () { return this; };
1250
+
1251
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1252
+ var TO_STRING_TAG = NAME + ' Iterator';
1253
+ IteratorConstructor.prototype = create$1(IteratorPrototype$3, { next: createPropertyDescriptor$1(+!ENUMERABLE_NEXT, next) });
1254
+ setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1255
+ Iterators$4[TO_STRING_TAG] = returnThis$1;
1256
+ return IteratorConstructor;
1257
+ };
1258
+
1259
+ var uncurryThis$3 = functionUncurryThis;
1260
+ var aCallable$4 = aCallable$6;
1261
+
1262
+ var functionUncurryThisAccessor = function (object, key, method) {
1263
+ try {
1264
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1265
+ return uncurryThis$3(aCallable$4(Object.getOwnPropertyDescriptor(object, key)[method]));
1266
+ } catch (error) { /* empty */ }
1267
+ };
1268
+
1269
+ var isObject$1 = isObject$8;
1270
+
1271
+ var isPossiblePrototype$1 = function (argument) {
1272
+ return isObject$1(argument) || argument === null;
1273
+ };
1274
+
1275
+ var isPossiblePrototype = isPossiblePrototype$1;
1276
+
1277
+ var $String = String;
1278
+ var $TypeError$6 = TypeError;
1279
+
1280
+ var aPossiblePrototype$1 = function (argument) {
1281
+ if (isPossiblePrototype(argument)) return argument;
1282
+ throw new $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
1283
+ };
1284
+
1285
+ /* eslint-disable no-proto -- safe */
1286
+ var uncurryThisAccessor = functionUncurryThisAccessor;
1287
+ var isObject = isObject$8;
1288
+ var requireObjectCoercible = requireObjectCoercible$3;
1289
+ var aPossiblePrototype = aPossiblePrototype$1;
1290
+
1291
+ // `Object.setPrototypeOf` method
1292
+ // https://tc39.es/ecma262/#sec-object.setprototypeof
1293
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1294
+ // eslint-disable-next-line es/no-object-setprototypeof -- safe
1295
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1296
+ var CORRECT_SETTER = false;
1297
+ var test = {};
1298
+ var setter;
1299
+ try {
1300
+ setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1301
+ setter(test, []);
1302
+ CORRECT_SETTER = test instanceof Array;
1303
+ } catch (error) { /* empty */ }
1304
+ return function setPrototypeOf(O, proto) {
1305
+ requireObjectCoercible(O);
1306
+ aPossiblePrototype(proto);
1307
+ if (!isObject(O)) return O;
1308
+ if (CORRECT_SETTER) setter(O, proto);
1309
+ else O.__proto__ = proto;
1310
+ return O;
1311
+ };
1312
+ }() : undefined);
1313
+
1314
+ var $$5 = _export;
1315
+ var call$7 = functionCall;
1316
+ var FunctionName = functionName;
1317
+ var isCallable$2 = isCallable$f;
1318
+ var createIteratorConstructor = iteratorCreateConstructor;
1319
+ var getPrototypeOf$1 = objectGetPrototypeOf;
1320
+ var setPrototypeOf = objectSetPrototypeOf;
1321
+ var setToStringTag$1 = setToStringTag$3;
1322
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1323
+ var defineBuiltIn$1 = defineBuiltIn$4;
1324
+ var wellKnownSymbol$7 = wellKnownSymbol$c;
1325
+ var Iterators$3 = iterators;
1326
+ var IteratorsCore = iteratorsCore;
1327
+
1328
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1329
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1330
+ var IteratorPrototype$2 = IteratorsCore.IteratorPrototype;
1331
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1332
+ var ITERATOR$4 = wellKnownSymbol$7('iterator');
1333
+ var KEYS = 'keys';
1334
+ var VALUES = 'values';
1335
+ var ENTRIES = 'entries';
1336
+
1337
+ var returnThis = function () { return this; };
1338
+
1339
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1340
+ createIteratorConstructor(IteratorConstructor, NAME, next);
1341
+
1342
+ var getIterationMethod = function (KIND) {
1343
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1344
+ if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1345
+
1346
+ switch (KIND) {
1347
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1348
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1349
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1350
+ }
1351
+
1352
+ return function () { return new IteratorConstructor(this); };
1353
+ };
1354
+
1355
+ var TO_STRING_TAG = NAME + ' Iterator';
1356
+ var INCORRECT_VALUES_NAME = false;
1357
+ var IterablePrototype = Iterable.prototype;
1358
+ var nativeIterator = IterablePrototype[ITERATOR$4]
1359
+ || IterablePrototype['@@iterator']
1360
+ || DEFAULT && IterablePrototype[DEFAULT];
1361
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1362
+ var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1363
+ var CurrentIteratorPrototype, methods, KEY;
1364
+
1365
+ // fix native
1366
+ if (anyNativeIterator) {
1367
+ CurrentIteratorPrototype = getPrototypeOf$1(anyNativeIterator.call(new Iterable()));
1368
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1369
+ if (getPrototypeOf$1(CurrentIteratorPrototype) !== IteratorPrototype$2) {
1370
+ if (setPrototypeOf) {
1371
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
1372
+ } else if (!isCallable$2(CurrentIteratorPrototype[ITERATOR$4])) {
1373
+ defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$4, returnThis);
1374
+ }
1375
+ }
1376
+ // Set @@toStringTag to native iterators
1377
+ setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
1378
+ }
1379
+ }
1380
+
1381
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1382
+ if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1383
+ if (CONFIGURABLE_FUNCTION_NAME) {
1384
+ createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1385
+ } else {
1386
+ INCORRECT_VALUES_NAME = true;
1387
+ defaultIterator = function values() { return call$7(nativeIterator, this); };
1388
+ }
1389
+ }
1390
+
1391
+ // export additional methods
1392
+ if (DEFAULT) {
1393
+ methods = {
1394
+ values: getIterationMethod(VALUES),
1395
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1396
+ entries: getIterationMethod(ENTRIES)
1397
+ };
1398
+ if (FORCED) for (KEY in methods) {
1399
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1400
+ defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1401
+ }
1402
+ } else $$5({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1403
+ }
1404
+
1405
+ // define iterator
1406
+ if (IterablePrototype[ITERATOR$4] !== defaultIterator) {
1407
+ defineBuiltIn$1(IterablePrototype, ITERATOR$4, defaultIterator, { name: DEFAULT });
1408
+ }
1409
+ Iterators$3[NAME] = defaultIterator;
1410
+
1411
+ return methods;
1412
+ };
1413
+
1414
+ // `CreateIterResultObject` abstract operation
1415
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1416
+ var createIterResultObject$2 = function (value, done) {
1417
+ return { value: value, done: done };
1418
+ };
1419
+
1420
+ var toIndexedObject = toIndexedObject$5;
1421
+ var addToUnscopables = addToUnscopables$1;
1422
+ var Iterators$2 = iterators;
1423
+ var InternalStateModule$1 = internalState;
1424
+ var defineProperty$2 = objectDefineProperty.f;
1425
+ var defineIterator = iteratorDefine;
1426
+ var createIterResultObject$1 = createIterResultObject$2;
1427
+ var DESCRIPTORS$4 = descriptors;
1428
+
1429
+ var ARRAY_ITERATOR = 'Array Iterator';
1430
+ var setInternalState$1 = InternalStateModule$1.set;
1431
+ var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
1432
+
1433
+ // `Array.prototype.entries` method
1434
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
1435
+ // `Array.prototype.keys` method
1436
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
1437
+ // `Array.prototype.values` method
1438
+ // https://tc39.es/ecma262/#sec-array.prototype.values
1439
+ // `Array.prototype[@@iterator]` method
1440
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1441
+ // `CreateArrayIterator` internal method
1442
+ // https://tc39.es/ecma262/#sec-createarrayiterator
1443
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1444
+ setInternalState$1(this, {
1445
+ type: ARRAY_ITERATOR,
1446
+ target: toIndexedObject(iterated), // target
1447
+ index: 0, // next index
1448
+ kind: kind // kind
1449
+ });
1450
+ // `%ArrayIteratorPrototype%.next` method
1451
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1452
+ }, function () {
1453
+ var state = getInternalState(this);
1454
+ var target = state.target;
1455
+ var index = state.index++;
1456
+ if (!target || index >= target.length) {
1457
+ state.target = null;
1458
+ return createIterResultObject$1(undefined, true);
1459
+ }
1460
+ switch (state.kind) {
1461
+ case 'keys': return createIterResultObject$1(index, false);
1462
+ case 'values': return createIterResultObject$1(target[index], false);
1463
+ } return createIterResultObject$1([index, target[index]], false);
1464
+ }, 'values');
1465
+
1466
+ // argumentsList[@@iterator] is %ArrayProto_values%
1467
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1468
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1469
+ var values = Iterators$2.Arguments = Iterators$2.Array;
1470
+
1471
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1472
+ addToUnscopables('keys');
1473
+ addToUnscopables('values');
1474
+ addToUnscopables('entries');
1475
+
1476
+ // V8 ~ Chrome 45- bug
1477
+ if (DESCRIPTORS$4 && values.name !== 'values') try {
1478
+ defineProperty$2(values, 'name', { value: 'values' });
1479
+ } catch (error) { /* empty */ }
1480
+
1481
+ var classof$2 = classofRaw$2;
1482
+
1483
+ // `IsArray` abstract operation
1484
+ // https://tc39.es/ecma262/#sec-isarray
1485
+ // eslint-disable-next-line es/no-array-isarray -- safe
1486
+ var isArray$1 = Array.isArray || function isArray(argument) {
1487
+ return classof$2(argument) === 'Array';
1488
+ };
1489
+
1490
+ var DESCRIPTORS$3 = descriptors;
1491
+ var isArray = isArray$1;
1492
+
1493
+ var $TypeError$5 = TypeError;
1494
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1495
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1496
+
1497
+ // Safari < 13 does not throw an error in this case
1498
+ var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS$3 && !function () {
1499
+ // makes no sense without proper strict mode support
1500
+ if (this !== undefined) return true;
1501
+ try {
1502
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1503
+ Object.defineProperty([], 'length', { writable: false }).length = 1;
1504
+ } catch (error) {
1505
+ return error instanceof TypeError;
1506
+ }
1507
+ }();
1508
+
1509
+ var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
1510
+ if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
1511
+ throw new $TypeError$5('Cannot set read only .length');
1512
+ } return O.length = length;
1513
+ } : function (O, length) {
1514
+ return O.length = length;
1515
+ };
1516
+
1517
+ var $TypeError$4 = TypeError;
1518
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
1519
+
1520
+ var doesNotExceedSafeInteger$1 = function (it) {
1521
+ if (it > MAX_SAFE_INTEGER) throw $TypeError$4('Maximum allowed index exceeded');
1522
+ return it;
1523
+ };
1524
+
1525
+ var $$4 = _export;
1526
+ var toObject$1 = toObject$4;
1527
+ var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1528
+ var setArrayLength = arraySetLength;
1529
+ var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
1530
+ var fails$2 = fails$d;
1531
+
1532
+ var INCORRECT_TO_LENGTH = fails$2(function () {
1533
+ return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
1534
+ });
1535
+
1536
+ // V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
1537
+ // https://bugs.chromium.org/p/v8/issues/detail?id=12681
1538
+ var properErrorOnNonWritableLength = function () {
1539
+ try {
1540
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1541
+ Object.defineProperty([], 'length', { writable: false }).push();
1542
+ } catch (error) {
1543
+ return error instanceof TypeError;
1544
+ }
1545
+ };
1546
+
1547
+ var FORCED$2 = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
1548
+
1549
+ // `Array.prototype.push` method
1550
+ // https://tc39.es/ecma262/#sec-array.prototype.push
1551
+ $$4({ target: 'Array', proto: true, arity: 1, forced: FORCED$2 }, {
1552
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
1553
+ push: function push(item) {
1554
+ var O = toObject$1(this);
1555
+ var len = lengthOfArrayLike$1(O);
1556
+ var argCount = arguments.length;
1557
+ doesNotExceedSafeInteger(len + argCount);
1558
+ for (var i = 0; i < argCount; i++) {
1559
+ O[len] = arguments[i];
1560
+ len++;
1561
+ }
1562
+ setArrayLength(O, len);
1563
+ return len;
1564
+ }
1565
+ });
1566
+
1567
+ var isPrototypeOf$1 = objectIsPrototypeOf;
1568
+
1569
+ var $TypeError$3 = TypeError;
1570
+
1571
+ var anInstance$1 = function (it, Prototype) {
1572
+ if (isPrototypeOf$1(Prototype, it)) return it;
1573
+ throw new $TypeError$3('Incorrect invocation');
1574
+ };
1575
+
1576
+ var makeBuiltIn = makeBuiltInExports;
1577
+ var defineProperty$1 = objectDefineProperty;
1578
+
1579
+ var defineBuiltInAccessor$1 = function (target, name, descriptor) {
1580
+ if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
1581
+ if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
1582
+ return defineProperty$1.f(target, name, descriptor);
1583
+ };
1584
+
1585
+ var DESCRIPTORS$2 = descriptors;
1586
+ var definePropertyModule = objectDefineProperty;
1587
+ var createPropertyDescriptor = createPropertyDescriptor$4;
1588
+
1589
+ var createProperty$1 = function (object, key, value) {
1590
+ if (DESCRIPTORS$2) definePropertyModule.f(object, key, createPropertyDescriptor(0, value));
1591
+ else object[key] = value;
1592
+ };
1593
+
1594
+ var $$3 = _export;
1595
+ var globalThis$3 = globalThis_1;
1596
+ var anInstance = anInstance$1;
1597
+ var anObject$6 = anObject$b;
1598
+ var isCallable$1 = isCallable$f;
1599
+ var getPrototypeOf = objectGetPrototypeOf;
1600
+ var defineBuiltInAccessor = defineBuiltInAccessor$1;
1601
+ var createProperty = createProperty$1;
1602
+ var fails$1 = fails$d;
1603
+ var hasOwn = hasOwnProperty_1;
1604
+ var wellKnownSymbol$6 = wellKnownSymbol$c;
1605
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1606
+ var DESCRIPTORS$1 = descriptors;
1607
+
1608
+ var CONSTRUCTOR = 'constructor';
1609
+ var ITERATOR$3 = 'Iterator';
1610
+ var TO_STRING_TAG$3 = wellKnownSymbol$6('toStringTag');
1611
+
1612
+ var $TypeError$2 = TypeError;
1613
+ var NativeIterator = globalThis$3[ITERATOR$3];
1614
+
1615
+ // FF56- have non-standard global helper `Iterator`
1616
+ var FORCED$1 = !isCallable$1(NativeIterator)
1617
+ || NativeIterator.prototype !== IteratorPrototype$1
1618
+ // FF44- non-standard `Iterator` passes previous tests
1619
+ || !fails$1(function () { NativeIterator({}); });
1620
+
1621
+ var IteratorConstructor = function Iterator() {
1622
+ anInstance(this, IteratorPrototype$1);
1623
+ if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$2('Abstract class Iterator not directly constructable');
1624
+ };
1625
+
1626
+ var defineIteratorPrototypeAccessor = function (key, value) {
1627
+ if (DESCRIPTORS$1) {
1628
+ defineBuiltInAccessor(IteratorPrototype$1, key, {
1629
+ configurable: true,
1630
+ get: function () {
1631
+ return value;
1632
+ },
1633
+ set: function (replacement) {
1634
+ anObject$6(this);
1635
+ if (this === IteratorPrototype$1) throw new $TypeError$2("You can't redefine this property");
1636
+ if (hasOwn(this, key)) this[key] = replacement;
1637
+ else createProperty(this, key, replacement);
1638
+ }
1639
+ });
1640
+ } else IteratorPrototype$1[key] = value;
1641
+ };
1642
+
1643
+ if (!hasOwn(IteratorPrototype$1, TO_STRING_TAG$3)) defineIteratorPrototypeAccessor(TO_STRING_TAG$3, ITERATOR$3);
1644
+
1645
+ if (FORCED$1 || !hasOwn(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
1646
+ defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
1647
+ }
1648
+
1649
+ IteratorConstructor.prototype = IteratorPrototype$1;
1650
+
1651
+ // `Iterator` constructor
1652
+ // https://tc39.es/ecma262/#sec-iterator
1653
+ $$3({ global: true, constructor: true, forced: FORCED$1 }, {
1654
+ Iterator: IteratorConstructor
1655
+ });
1656
+
1657
+ var classofRaw$1 = classofRaw$2;
1658
+ var uncurryThis$2 = functionUncurryThis;
1659
+
1660
+ var functionUncurryThisClause = function (fn) {
1661
+ // Nashorn bug:
1662
+ // https://github.com/zloirock/core-js/issues/1128
1663
+ // https://github.com/zloirock/core-js/issues/1130
1664
+ if (classofRaw$1(fn) === 'Function') return uncurryThis$2(fn);
1665
+ };
1666
+
1667
+ var uncurryThis$1 = functionUncurryThisClause;
1668
+ var aCallable$3 = aCallable$6;
1669
+ var NATIVE_BIND = functionBindNative;
1670
+
1671
+ var bind$1 = uncurryThis$1(uncurryThis$1.bind);
1672
+
1673
+ // optional / simple context binding
1674
+ var functionBindContext = function (fn, that) {
1675
+ aCallable$3(fn);
1676
+ return that === undefined ? fn : NATIVE_BIND ? bind$1(fn, that) : function (/* ...args */) {
1677
+ return fn.apply(that, arguments);
1678
+ };
1679
+ };
1680
+
1681
+ var wellKnownSymbol$5 = wellKnownSymbol$c;
1682
+ var Iterators$1 = iterators;
1683
+
1684
+ var ITERATOR$2 = wellKnownSymbol$5('iterator');
1685
+ var ArrayPrototype = Array.prototype;
1686
+
1687
+ // check on default Array iterator
1688
+ var isArrayIteratorMethod$1 = function (it) {
1689
+ return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
1690
+ };
1691
+
1692
+ var wellKnownSymbol$4 = wellKnownSymbol$c;
1693
+
1694
+ var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
1695
+ var test = {};
1696
+ // eslint-disable-next-line unicorn/no-immediate-mutation -- ES3 syntax limitation
1697
+ test[TO_STRING_TAG$2] = 'z';
1698
+
1699
+ var toStringTagSupport = String(test) === '[object z]';
1700
+
1701
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1702
+ var isCallable = isCallable$f;
1703
+ var classofRaw = classofRaw$2;
1704
+ var wellKnownSymbol$3 = wellKnownSymbol$c;
1705
+
1706
+ var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
1707
+ var $Object = Object;
1708
+
1709
+ // ES3 wrong here
1710
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1711
+
1712
+ // fallback for IE11 Script Access Denied error
1713
+ var tryGet = function (it, key) {
1714
+ try {
1715
+ return it[key];
1716
+ } catch (error) { /* empty */ }
1717
+ };
1718
+
1719
+ // getting tag from ES6+ `Object.prototype.toString`
1720
+ var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1721
+ var O, tag, result;
1722
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1723
+ // @@toStringTag case
1724
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$1)) == 'string' ? tag
1725
+ // builtinTag case
1726
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1727
+ // ES3 arguments fallback
1728
+ : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1729
+ };
1730
+
1731
+ var classof = classof$1;
1732
+ var getMethod$2 = getMethod$4;
1733
+ var isNullOrUndefined = isNullOrUndefined$3;
1734
+ var Iterators = iterators;
1735
+ var wellKnownSymbol$2 = wellKnownSymbol$c;
1736
+
1737
+ var ITERATOR$1 = wellKnownSymbol$2('iterator');
1738
+
1739
+ var getIteratorMethod$2 = function (it) {
1740
+ if (!isNullOrUndefined(it)) return getMethod$2(it, ITERATOR$1)
1741
+ || getMethod$2(it, '@@iterator')
1742
+ || Iterators[classof(it)];
1743
+ };
1744
+
1745
+ var call$6 = functionCall;
1746
+ var aCallable$2 = aCallable$6;
1747
+ var anObject$5 = anObject$b;
1748
+ var tryToString$1 = tryToString$3;
1749
+ var getIteratorMethod$1 = getIteratorMethod$2;
1750
+
1751
+ var $TypeError$1 = TypeError;
1752
+
1753
+ var getIterator$1 = function (argument, usingIterator) {
1754
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1755
+ if (aCallable$2(iteratorMethod)) return anObject$5(call$6(iteratorMethod, argument));
1756
+ throw new $TypeError$1(tryToString$1(argument) + ' is not iterable');
1757
+ };
1758
+
1759
+ var call$5 = functionCall;
1760
+ var anObject$4 = anObject$b;
1761
+ var getMethod$1 = getMethod$4;
1762
+
1763
+ var iteratorClose$6 = function (iterator, kind, value) {
1764
+ var innerResult, innerError;
1765
+ anObject$4(iterator);
1766
+ try {
1767
+ innerResult = getMethod$1(iterator, 'return');
1768
+ if (!innerResult) {
1769
+ if (kind === 'throw') throw value;
1770
+ return value;
1771
+ }
1772
+ innerResult = call$5(innerResult, iterator);
1773
+ } catch (error) {
1774
+ innerError = true;
1775
+ innerResult = error;
1776
+ }
1777
+ if (kind === 'throw') throw value;
1778
+ if (innerError) throw innerResult;
1779
+ anObject$4(innerResult);
1780
+ return value;
1781
+ };
1782
+
1783
+ var bind = functionBindContext;
1784
+ var call$4 = functionCall;
1785
+ var anObject$3 = anObject$b;
1786
+ var tryToString = tryToString$3;
1787
+ var isArrayIteratorMethod = isArrayIteratorMethod$1;
1788
+ var lengthOfArrayLike = lengthOfArrayLike$3;
1789
+ var isPrototypeOf = objectIsPrototypeOf;
1790
+ var getIterator = getIterator$1;
1791
+ var getIteratorMethod = getIteratorMethod$2;
1792
+ var iteratorClose$5 = iteratorClose$6;
1793
+
1794
+ var $TypeError = TypeError;
1795
+
1796
+ var Result = function (stopped, result) {
1797
+ this.stopped = stopped;
1798
+ this.result = result;
1799
+ };
1800
+
1801
+ var ResultPrototype = Result.prototype;
1802
+
1803
+ var iterate$1 = function (iterable, unboundFunction, options) {
1804
+ var that = options && options.that;
1805
+ var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1806
+ var IS_RECORD = !!(options && options.IS_RECORD);
1807
+ var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1808
+ var INTERRUPTED = !!(options && options.INTERRUPTED);
1809
+ var fn = bind(unboundFunction, that);
1810
+ var iterator, iterFn, index, length, result, next, step;
1811
+
1812
+ var stop = function (condition) {
1813
+ if (iterator) iteratorClose$5(iterator, 'normal');
1814
+ return new Result(true, condition);
1815
+ };
1816
+
1817
+ var callFn = function (value) {
1818
+ if (AS_ENTRIES) {
1819
+ anObject$3(value);
1820
+ return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1821
+ } return INTERRUPTED ? fn(value, stop) : fn(value);
1822
+ };
1823
+
1824
+ if (IS_RECORD) {
1825
+ iterator = iterable.iterator;
1826
+ } else if (IS_ITERATOR) {
1827
+ iterator = iterable;
1828
+ } else {
1829
+ iterFn = getIteratorMethod(iterable);
1830
+ if (!iterFn) throw new $TypeError(tryToString(iterable) + ' is not iterable');
1831
+ // optimisation for array iterators
1832
+ if (isArrayIteratorMethod(iterFn)) {
1833
+ for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
1834
+ result = callFn(iterable[index]);
1835
+ if (result && isPrototypeOf(ResultPrototype, result)) return result;
1836
+ } return new Result(false);
1837
+ }
1838
+ iterator = getIterator(iterable, iterFn);
1839
+ }
1840
+
1841
+ next = IS_RECORD ? iterable.next : iterator.next;
1842
+ while (!(step = call$4(next, iterator)).done) {
1843
+ try {
1844
+ result = callFn(step.value);
1845
+ } catch (error) {
1846
+ iteratorClose$5(iterator, 'throw', error);
1847
+ }
1848
+ if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
1849
+ } return new Result(false);
1850
+ };
1851
+
1852
+ // `GetIteratorDirect(obj)` abstract operation
1853
+ // https://tc39.es/ecma262/#sec-getiteratordirect
1854
+ var getIteratorDirect$2 = function (obj) {
1855
+ return {
1856
+ iterator: obj,
1857
+ next: obj.next,
1858
+ done: false
1859
+ };
1860
+ };
1861
+
1862
+ var globalThis$2 = globalThis_1;
1863
+
1864
+ // https://github.com/tc39/ecma262/pull/3467
1865
+ var iteratorHelperWithoutClosingOnEarlyError$2 = function (METHOD_NAME, ExpectedError) {
1866
+ var Iterator = globalThis$2.Iterator;
1867
+ var IteratorPrototype = Iterator && Iterator.prototype;
1868
+ var method = IteratorPrototype && IteratorPrototype[METHOD_NAME];
1869
+
1870
+ var CLOSED = false;
1871
+
1872
+ if (method) try {
1873
+ method.call({
1874
+ next: function () { return { done: true }; },
1875
+ 'return': function () { CLOSED = true; }
1876
+ }, -1);
1877
+ } catch (error) {
1878
+ // https://bugs.webkit.org/show_bug.cgi?id=291195
1879
+ if (!(error instanceof ExpectedError)) CLOSED = false;
1880
+ }
1881
+
1882
+ if (!CLOSED) return method;
1883
+ };
1884
+
1885
+ var $$2 = _export;
1886
+ var call$3 = functionCall;
1887
+ var iterate = iterate$1;
1888
+ var aCallable$1 = aCallable$6;
1889
+ var anObject$2 = anObject$b;
1890
+ var getIteratorDirect$1 = getIteratorDirect$2;
1891
+ var iteratorClose$4 = iteratorClose$6;
1892
+ var iteratorHelperWithoutClosingOnEarlyError$1 = iteratorHelperWithoutClosingOnEarlyError$2;
1893
+
1894
+ var forEachWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$1('forEach', TypeError);
1895
+
1896
+ // `Iterator.prototype.forEach` method
1897
+ // https://tc39.es/ecma262/#sec-iterator.prototype.foreach
1898
+ $$2({ target: 'Iterator', proto: true, real: true, forced: forEachWithoutClosingOnEarlyError }, {
1899
+ forEach: function forEach(fn) {
1900
+ anObject$2(this);
1901
+ try {
1902
+ aCallable$1(fn);
1903
+ } catch (error) {
1904
+ iteratorClose$4(this, 'throw', error);
1905
+ }
1906
+
1907
+ if (forEachWithoutClosingOnEarlyError) return call$3(forEachWithoutClosingOnEarlyError, this, fn);
1908
+
1909
+ var record = getIteratorDirect$1(this);
1910
+ var counter = 0;
1911
+ iterate(record, function (value) {
1912
+ fn(value, counter++);
1913
+ }, { IS_RECORD: true });
1914
+ }
1915
+ });
1916
+
1917
+ var defineBuiltIn = defineBuiltIn$4;
1918
+
1919
+ var defineBuiltIns$1 = function (target, src, options) {
1920
+ for (var key in src) defineBuiltIn(target, key, src[key], options);
1921
+ return target;
1922
+ };
1923
+
1924
+ var iteratorClose$3 = iteratorClose$6;
1925
+
1926
+ var iteratorCloseAll$1 = function (iters, kind, value) {
1927
+ for (var i = iters.length - 1; i >= 0; i--) {
1928
+ if (iters[i] === undefined) continue;
1929
+ try {
1930
+ value = iteratorClose$3(iters[i].iterator, kind, value);
1931
+ } catch (error) {
1932
+ kind = 'throw';
1933
+ value = error;
1934
+ }
1935
+ }
1936
+ if (kind === 'throw') throw value;
1937
+ return value;
1938
+ };
1939
+
1940
+ var call$2 = functionCall;
1941
+ var create = objectCreate;
1942
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1943
+ var defineBuiltIns = defineBuiltIns$1;
1944
+ var wellKnownSymbol$1 = wellKnownSymbol$c;
1945
+ var InternalStateModule = internalState;
1946
+ var getMethod = getMethod$4;
1947
+ var IteratorPrototype = iteratorsCore.IteratorPrototype;
1948
+ var createIterResultObject = createIterResultObject$2;
1949
+ var iteratorClose$2 = iteratorClose$6;
1950
+ var iteratorCloseAll = iteratorCloseAll$1;
1951
+
1952
+ var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
1953
+ var ITERATOR_HELPER = 'IteratorHelper';
1954
+ var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
1955
+ var NORMAL = 'normal';
1956
+ var THROW = 'throw';
1957
+ var setInternalState = InternalStateModule.set;
1958
+
1959
+ var createIteratorProxyPrototype = function (IS_ITERATOR) {
1960
+ var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
1961
+
1962
+ return defineBuiltIns(create(IteratorPrototype), {
1963
+ next: function next() {
1964
+ var state = getInternalState(this);
1965
+ // for simplification:
1966
+ // for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
1967
+ // for `%IteratorHelperPrototype%.next` - just a value
1968
+ if (IS_ITERATOR) return state.nextHandler();
1969
+ if (state.done) return createIterResultObject(undefined, true);
1970
+ try {
1971
+ var result = state.nextHandler();
1972
+ return state.returnHandlerResult ? result : createIterResultObject(result, state.done);
1973
+ } catch (error) {
1974
+ state.done = true;
1975
+ throw error;
1976
+ }
1977
+ },
1978
+ 'return': function () {
1979
+ var state = getInternalState(this);
1980
+ var iterator = state.iterator;
1981
+ state.done = true;
1982
+ if (IS_ITERATOR) {
1983
+ var returnMethod = getMethod(iterator, 'return');
1984
+ return returnMethod ? call$2(returnMethod, iterator) : createIterResultObject(undefined, true);
1985
+ }
1986
+ if (state.inner) try {
1987
+ iteratorClose$2(state.inner.iterator, NORMAL);
1988
+ } catch (error) {
1989
+ return iteratorClose$2(iterator, THROW, error);
1990
+ }
1991
+ if (state.openIters) try {
1992
+ iteratorCloseAll(state.openIters, NORMAL);
1993
+ } catch (error) {
1994
+ return iteratorClose$2(iterator, THROW, error);
1995
+ }
1996
+ if (iterator) iteratorClose$2(iterator, NORMAL);
1997
+ return createIterResultObject(undefined, true);
1998
+ }
1999
+ });
2000
+ };
2001
+
2002
+ var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
2003
+ var IteratorHelperPrototype = createIteratorProxyPrototype(false);
2004
+
2005
+ createNonEnumerableProperty$1(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
2006
+
2007
+ var iteratorCreateProxy = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
2008
+ var IteratorProxy = function Iterator(record, state) {
2009
+ if (state) {
2010
+ state.iterator = record.iterator;
2011
+ state.next = record.next;
2012
+ } else state = record;
2013
+ state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
2014
+ state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
2015
+ state.nextHandler = nextHandler;
2016
+ state.counter = 0;
2017
+ state.done = false;
2018
+ setInternalState(this, state);
2019
+ };
2020
+
2021
+ IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
2022
+
2023
+ return IteratorProxy;
2024
+ };
2025
+
2026
+ var anObject$1 = anObject$b;
2027
+ var iteratorClose$1 = iteratorClose$6;
2028
+
2029
+ // call something on iterator step with safe closing on error
2030
+ var callWithSafeIterationClosing$1 = function (iterator, fn, value, ENTRIES) {
2031
+ try {
2032
+ return ENTRIES ? fn(anObject$1(value)[0], value[1]) : fn(value);
2033
+ } catch (error) {
2034
+ iteratorClose$1(iterator, 'throw', error);
2035
+ }
2036
+ };
2037
+
2038
+ // Should throw an error on invalid iterator
2039
+ // https://issues.chromium.org/issues/336839115
2040
+ var iteratorHelperThrowsOnInvalidIterator$1 = function (methodName, argument) {
2041
+ // eslint-disable-next-line es/no-iterator -- required for testing
2042
+ var method = typeof Iterator == 'function' && Iterator.prototype[methodName];
2043
+ if (method) try {
2044
+ method.call({ next: null }, argument).next();
2045
+ } catch (error) {
2046
+ return true;
2047
+ }
2048
+ };
2049
+
2050
+ var $$1 = _export;
2051
+ var call$1 = functionCall;
2052
+ var aCallable = aCallable$6;
2053
+ var anObject = anObject$b;
2054
+ var getIteratorDirect = getIteratorDirect$2;
2055
+ var createIteratorProxy = iteratorCreateProxy;
2056
+ var callWithSafeIterationClosing = callWithSafeIterationClosing$1;
2057
+ var iteratorClose = iteratorClose$6;
2058
+ var iteratorHelperThrowsOnInvalidIterator = iteratorHelperThrowsOnInvalidIterator$1;
2059
+ var iteratorHelperWithoutClosingOnEarlyError = iteratorHelperWithoutClosingOnEarlyError$2;
2060
+
2061
+ var MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR = !iteratorHelperThrowsOnInvalidIterator('map', function () { /* empty */ });
2062
+ var mapWithoutClosingOnEarlyError = !MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR
2063
+ && iteratorHelperWithoutClosingOnEarlyError('map', TypeError);
2064
+
2065
+ var FORCED = MAP_WITHOUT_THROWING_ON_INVALID_ITERATOR || mapWithoutClosingOnEarlyError;
2066
+
2067
+ var IteratorProxy = createIteratorProxy(function () {
2068
+ var iterator = this.iterator;
2069
+ var result = anObject(call$1(this.next, iterator));
2070
+ var done = this.done = !!result.done;
2071
+ if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
2072
+ });
2073
+
2074
+ // `Iterator.prototype.map` method
2075
+ // https://tc39.es/ecma262/#sec-iterator.prototype.map
2076
+ $$1({ target: 'Iterator', proto: true, real: true, forced: FORCED }, {
2077
+ map: function map(mapper) {
2078
+ anObject(this);
2079
+ try {
2080
+ aCallable(mapper);
2081
+ } catch (error) {
2082
+ iteratorClose(this, 'throw', error);
2083
+ }
2084
+
2085
+ if (mapWithoutClosingOnEarlyError) return call$1(mapWithoutClosingOnEarlyError, this, mapper);
2086
+
2087
+ return new IteratorProxy(getIteratorDirect(this), {
2088
+ mapper: mapper
2089
+ });
2090
+ }
2091
+ });
2092
+
2093
+ var DESCRIPTORS = descriptors;
2094
+ var uncurryThis = functionUncurryThis;
2095
+ var call = functionCall;
2096
+ var fails = fails$d;
2097
+ var objectKeys = objectKeys$2;
2098
+ var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2099
+ var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2100
+ var toObject = toObject$4;
2101
+ var IndexedObject = indexedObject;
2102
+
2103
+ // eslint-disable-next-line es/no-object-assign -- safe
2104
+ var $assign = Object.assign;
2105
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2106
+ var defineProperty = Object.defineProperty;
2107
+ var concat = uncurryThis([].concat);
2108
+
2109
+ // `Object.assign` method
2110
+ // https://tc39.es/ecma262/#sec-object.assign
2111
+ var objectAssign = !$assign || fails(function () {
2112
+ // should have correct order of operations (Edge bug)
2113
+ if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
2114
+ enumerable: true,
2115
+ get: function () {
2116
+ defineProperty(this, 'b', {
2117
+ value: 3,
2118
+ enumerable: false
2119
+ });
2120
+ }
2121
+ }), { b: 2 })).b !== 1) return true;
2122
+ // should work with symbols and should have deterministic property order (V8 bug)
2123
+ var A = {};
2124
+ var B = {};
2125
+ // eslint-disable-next-line es/no-symbol -- safe
2126
+ var symbol = Symbol('assign detection');
2127
+ var alphabet = 'abcdefghijklmnopqrst';
2128
+ A[symbol] = 7;
2129
+ // eslint-disable-next-line es/no-array-prototype-foreach -- safe
2130
+ alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2131
+ return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
2132
+ }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2133
+ var T = toObject(target);
2134
+ var argumentsLength = arguments.length;
2135
+ var index = 1;
2136
+ var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2137
+ var propertyIsEnumerable = propertyIsEnumerableModule.f;
2138
+ while (argumentsLength > index) {
2139
+ var S = IndexedObject(arguments[index++]);
2140
+ var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
2141
+ var length = keys.length;
2142
+ var j = 0;
2143
+ var key;
2144
+ while (length > j) {
2145
+ key = keys[j++];
2146
+ if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
2147
+ }
2148
+ } return T;
2149
+ } : $assign;
2150
+
2151
+ var $ = _export;
2152
+ var assign = objectAssign;
2153
+
2154
+ // `Object.assign` method
2155
+ // https://tc39.es/ecma262/#sec-object.assign
2156
+ // eslint-disable-next-line es/no-object-assign -- required for testing
2157
+ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2158
+ assign: assign
2159
+ });
2160
+
2161
+ // iterable DOM collections
2162
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2163
+ var domIterables = {
2164
+ CSSRuleList: 0,
2165
+ CSSStyleDeclaration: 0,
2166
+ CSSValueList: 0,
2167
+ ClientRectList: 0,
2168
+ DOMRectList: 0,
2169
+ DOMStringList: 0,
2170
+ DOMTokenList: 1,
2171
+ DataTransferItemList: 0,
2172
+ FileList: 0,
2173
+ HTMLAllCollection: 0,
2174
+ HTMLCollection: 0,
2175
+ HTMLFormElement: 0,
2176
+ HTMLSelectElement: 0,
2177
+ MediaList: 0,
2178
+ MimeTypeArray: 0,
2179
+ NamedNodeMap: 0,
2180
+ NodeList: 1,
2181
+ PaintRequestList: 0,
2182
+ Plugin: 0,
2183
+ PluginArray: 0,
2184
+ SVGLengthList: 0,
2185
+ SVGNumberList: 0,
2186
+ SVGPathSegList: 0,
2187
+ SVGPointList: 0,
2188
+ SVGStringList: 0,
2189
+ SVGTransformList: 0,
2190
+ SourceBufferList: 0,
2191
+ StyleSheetList: 0,
2192
+ TextTrackCueList: 0,
2193
+ TextTrackList: 0,
2194
+ TouchList: 0
2195
+ };
2196
+
2197
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2198
+ var documentCreateElement = documentCreateElement$2;
2199
+
2200
+ var classList = documentCreateElement('span').classList;
2201
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
2202
+
2203
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2204
+
2205
+ var globalThis$1 = globalThis_1;
2206
+ var DOMIterables = domIterables;
2207
+ var DOMTokenListPrototype = domTokenListPrototype;
2208
+ var ArrayIteratorMethods = es_array_iterator;
2209
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
2210
+ var setToStringTag = setToStringTag$3;
2211
+ var wellKnownSymbol = wellKnownSymbol$c;
2212
+
2213
+ var ITERATOR = wellKnownSymbol('iterator');
2214
+ var ArrayValues = ArrayIteratorMethods.values;
2215
+
2216
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2217
+ if (CollectionPrototype) {
2218
+ // some Chrome versions have non-configurable methods on DOMTokenList
2219
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
2220
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
2221
+ } catch (error) {
2222
+ CollectionPrototype[ITERATOR] = ArrayValues;
2223
+ }
2224
+ setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
2225
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
2226
+ // some Chrome versions have non-configurable methods on DOMTokenList
2227
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
2228
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
2229
+ } catch (error) {
2230
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
2231
+ }
2232
+ }
2233
+ }
2234
+ };
2235
+
2236
+ for (var COLLECTION_NAME in DOMIterables) {
2237
+ handlePrototype(globalThis$1[COLLECTION_NAME] && globalThis$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
2238
+ }
2239
+
2240
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
2241
+
2242
+ /******************************************************************************
2243
+ Copyright (c) Microsoft Corporation.
2244
+
2245
+ Permission to use, copy, modify, and/or distribute this software for any
2246
+ purpose with or without fee is hereby granted.
2247
+
2248
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
2249
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
2250
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
2251
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
2252
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
2253
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2254
+ PERFORMANCE OF THIS SOFTWARE.
2255
+ ***************************************************************************** */
2256
+ /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
2257
+
2258
+
2259
+ function __rest(s, e) {
2260
+ var t = {};
2261
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2262
+ t[p] = s[p];
2263
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
2264
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2265
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2266
+ t[p[i]] = s[p[i]];
2267
+ }
2268
+ return t;
2269
+ }
2270
+
2271
+ typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
2272
+ var e = new Error(message);
2273
+ return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
2274
+ };
2275
+
2276
+ const AccordionGroup = /*#__PURE__*/react.forwardRef((_a, ref) => {
2277
+ var {
2278
+ data,
2279
+ multi
2280
+ } = _a,
2281
+ props = __rest(_a, ["data", "multi"]);
2282
+ const [showContent, setShowContent] = react.useState([]);
2283
+ react.useEffect(() => {
2284
+ /**
2285
+ * Mount the Array of booleans to control if the accordion is opened or closed, and set only one opened if multi is false
2286
+ */
2287
+ const mountShowContent = [];
2288
+ let hasShowContent = false;
2289
+ data.forEach(accordion => {
2290
+ if (!multi && accordion.showContent) {
2291
+ if (hasShowContent) accordion.showContent = false;
2292
+ hasShowContent = true;
2293
+ }
2294
+ mountShowContent.push(accordion.showContent);
2295
+ });
2296
+ setShowContent(mountShowContent);
2297
+ }, [data, multi]);
2298
+ /**
2299
+ * handle the open or close of accordion
2300
+ */
2301
+ const handleOnClick = index => {
2302
+ const auxShowContent = [...showContent];
2303
+ if (!multi) {
2304
+ auxShowContent.fill(false);
2305
+ }
2306
+ auxShowContent[index] = !showContent[index];
2307
+ setShowContent(auxShowContent);
2308
+ };
2309
+ return jsxRuntime.jsx("div", Object.assign({
2310
+ ref: ref,
2311
+ className: props.className
2312
+ }, uiUtils.applyDataAttributes(props), {
2313
+ children: data.map(({
2314
+ contentText,
2315
+ headerText,
2316
+ id,
2317
+ disabled,
2318
+ icon,
2319
+ children,
2320
+ onClick
2321
+ }, index) => jsxRuntime.jsx(obAtomsAccordion.Accordion, Object.assign({
2322
+ disabled: disabled,
2323
+ id: id,
2324
+ showContent: showContent[index],
2325
+ onClick: () => {
2326
+ onClick && onClick(!showContent[index]);
2327
+ handleOnClick(index);
2328
+ },
2329
+ contentText: contentText,
2330
+ headerText: headerText,
2331
+ icon: icon ? icon : showContent[index] ? 'remove' : 'add'
2332
+ }, uiUtils.applyDataAttributes(props, 'accordion'), {
2333
+ children: children
2334
+ }), index + headerText))
2335
+ }));
2336
+ });
2337
+
2338
+ exports.AccordionGroup = AccordionGroup;