@bolttech/atoms-segmented-control 0.2.3 → 0.3.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 CHANGED
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
- var react = require('react');
7
6
  var styled = require('styled-components');
8
7
 
9
8
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -12,7 +11,24 @@ var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
12
11
 
13
12
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
14
13
 
15
- var fails$b = function (exec) {
14
+ var check = function (it) {
15
+ return it && it.Math == Math && it;
16
+ };
17
+
18
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
19
+ var global$b =
20
+ // eslint-disable-next-line es/no-global-this -- safe
21
+ check(typeof globalThis == 'object' && globalThis) ||
22
+ check(typeof window == 'object' && window) ||
23
+ // eslint-disable-next-line no-restricted-globals -- safe
24
+ check(typeof self == 'object' && self) ||
25
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
26
+ // eslint-disable-next-line no-new-func -- fallback
27
+ (function () { return this; })() || commonjsGlobal || Function('return this')();
28
+
29
+ var objectGetOwnPropertyDescriptor = {};
30
+
31
+ var fails$9 = function (exec) {
16
32
  try {
17
33
  return !!exec();
18
34
  } catch (error) {
@@ -20,9 +36,17 @@ var fails$b = function (exec) {
20
36
  }
21
37
  };
22
38
 
23
- var fails$a = fails$b;
39
+ var fails$8 = fails$9;
24
40
 
25
- var functionBindNative = !fails$a(function () {
41
+ // Detect IE8's incomplete defineProperty implementation
42
+ var descriptors = !fails$8(function () {
43
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
44
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
45
+ });
46
+
47
+ var fails$7 = fails$9;
48
+
49
+ var functionBindNative = !fails$7(function () {
26
50
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
27
51
  var test = (function () { /* empty */ }).bind();
28
52
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -31,40 +55,73 @@ var functionBindNative = !fails$a(function () {
31
55
 
32
56
  var NATIVE_BIND$1 = functionBindNative;
33
57
 
58
+ var call$5 = Function.prototype.call;
59
+
60
+ var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
61
+ return call$5.apply(call$5, arguments);
62
+ };
63
+
64
+ var objectPropertyIsEnumerable = {};
65
+
66
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
67
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
68
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
69
+
70
+ // Nashorn ~ JDK8 bug
71
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
72
+
73
+ // `Object.prototype.propertyIsEnumerable` method implementation
74
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
75
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
76
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
77
+ return !!descriptor && descriptor.enumerable;
78
+ } : $propertyIsEnumerable;
79
+
80
+ var createPropertyDescriptor$2 = function (bitmap, value) {
81
+ return {
82
+ enumerable: !(bitmap & 1),
83
+ configurable: !(bitmap & 2),
84
+ writable: !(bitmap & 4),
85
+ value: value
86
+ };
87
+ };
88
+
89
+ var NATIVE_BIND = functionBindNative;
90
+
34
91
  var FunctionPrototype$1 = Function.prototype;
35
- var call$6 = FunctionPrototype$1.call;
36
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$6, call$6);
92
+ var call$4 = FunctionPrototype$1.call;
93
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
37
94
 
38
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
95
+ var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
39
96
  return function () {
40
- return call$6.apply(fn, arguments);
97
+ return call$4.apply(fn, arguments);
41
98
  };
42
99
  };
43
100
 
44
- var uncurryThis$a = functionUncurryThis;
101
+ var uncurryThis$9 = functionUncurryThis;
45
102
 
46
- var toString$1 = uncurryThis$a({}.toString);
47
- var stringSlice$1 = uncurryThis$a(''.slice);
103
+ var toString$1 = uncurryThis$9({}.toString);
104
+ var stringSlice$1 = uncurryThis$9(''.slice);
48
105
 
49
106
  var classofRaw = function (it) {
50
107
  return stringSlice$1(toString$1(it), 8, -1);
51
108
  };
52
109
 
53
- var uncurryThis$9 = functionUncurryThis;
54
- var fails$9 = fails$b;
110
+ var uncurryThis$8 = functionUncurryThis;
111
+ var fails$6 = fails$9;
55
112
  var classof = classofRaw;
56
113
 
57
- var $Object$3 = Object;
58
- var split = uncurryThis$9(''.split);
114
+ var $Object$2 = Object;
115
+ var split = uncurryThis$8(''.split);
59
116
 
60
117
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
61
- var indexedObject = fails$9(function () {
118
+ var indexedObject = fails$6(function () {
62
119
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
63
120
  // eslint-disable-next-line no-prototype-builtins -- safe
64
- return !$Object$3('z').propertyIsEnumerable(0);
121
+ return !$Object$2('z').propertyIsEnumerable(0);
65
122
  }) ? function (it) {
66
- return classof(it) == 'String' ? split(it, '') : $Object$3(it);
67
- } : $Object$3;
123
+ return classof(it) == 'String' ? split(it, '') : $Object$2(it);
124
+ } : $Object$2;
68
125
 
69
126
  // we can't use just `it == null` since of `document.all` special case
70
127
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
@@ -74,12 +131,12 @@ var isNullOrUndefined$2 = function (it) {
74
131
 
75
132
  var isNullOrUndefined$1 = isNullOrUndefined$2;
76
133
 
77
- var $TypeError$6 = TypeError;
134
+ var $TypeError$5 = TypeError;
78
135
 
79
136
  // `RequireObjectCoercible` abstract operation
80
137
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
81
138
  var requireObjectCoercible$2 = function (it) {
82
- if (isNullOrUndefined$1(it)) throw $TypeError$6("Can't call method on " + it);
139
+ if (isNullOrUndefined$1(it)) throw $TypeError$5("Can't call method on " + it);
83
140
  return it;
84
141
  };
85
142
 
@@ -87,95 +144,62 @@ var requireObjectCoercible$2 = function (it) {
87
144
  var IndexedObject$1 = indexedObject;
88
145
  var requireObjectCoercible$1 = requireObjectCoercible$2;
89
146
 
90
- var toIndexedObject$5 = function (it) {
147
+ var toIndexedObject$3 = function (it) {
91
148
  return IndexedObject$1(requireObjectCoercible$1(it));
92
149
  };
93
150
 
94
- var check = function (it) {
95
- return it && it.Math == Math && it;
96
- };
97
-
98
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
99
- var global$c =
100
- // eslint-disable-next-line es/no-global-this -- safe
101
- check(typeof globalThis == 'object' && globalThis) ||
102
- check(typeof window == 'object' && window) ||
103
- // eslint-disable-next-line no-restricted-globals -- safe
104
- check(typeof self == 'object' && self) ||
105
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
106
- // eslint-disable-next-line no-new-func -- fallback
107
- (function () { return this; })() || commonjsGlobal || Function('return this')();
108
-
109
- var shared$3 = {exports: {}};
110
-
111
- var global$b = global$c;
151
+ var documentAll$2 = typeof document == 'object' && document.all;
112
152
 
113
- // eslint-disable-next-line es/no-object-defineproperty -- safe
114
- var defineProperty$5 = Object.defineProperty;
153
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
154
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
155
+ var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
115
156
 
116
- var defineGlobalProperty$3 = function (key, value) {
117
- try {
118
- defineProperty$5(global$b, key, { value: value, configurable: true, writable: true });
119
- } catch (error) {
120
- global$b[key] = value;
121
- } return value;
157
+ var documentAll_1 = {
158
+ all: documentAll$2,
159
+ IS_HTMLDDA: IS_HTMLDDA
122
160
  };
123
161
 
124
- var global$a = global$c;
125
- var defineGlobalProperty$2 = defineGlobalProperty$3;
126
-
127
- var SHARED = '__core-js_shared__';
128
- var store$3 = global$a[SHARED] || defineGlobalProperty$2(SHARED, {});
129
-
130
- var sharedStore = store$3;
162
+ var $documentAll$1 = documentAll_1;
131
163
 
132
- var store$2 = sharedStore;
164
+ var documentAll$1 = $documentAll$1.all;
133
165
 
134
- (shared$3.exports = function (key, value) {
135
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
136
- })('versions', []).push({
137
- version: '3.30.2',
138
- mode: 'global',
139
- copyright: 2014-2023 Denis Pushkarev (zloirock.ru)',
140
- license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE',
141
- source: 'https://github.com/zloirock/core-js'
142
- });
166
+ // `IsCallable` abstract operation
167
+ // https://tc39.es/ecma262/#sec-iscallable
168
+ var isCallable$a = $documentAll$1.IS_HTMLDDA ? function (argument) {
169
+ return typeof argument == 'function' || argument === documentAll$1;
170
+ } : function (argument) {
171
+ return typeof argument == 'function';
172
+ };
143
173
 
144
- var requireObjectCoercible = requireObjectCoercible$2;
174
+ var isCallable$9 = isCallable$a;
175
+ var $documentAll = documentAll_1;
145
176
 
146
- var $Object$2 = Object;
177
+ var documentAll = $documentAll.all;
147
178
 
148
- // `ToObject` abstract operation
149
- // https://tc39.es/ecma262/#sec-toobject
150
- var toObject$3 = function (argument) {
151
- return $Object$2(requireObjectCoercible(argument));
179
+ var isObject$5 = $documentAll.IS_HTMLDDA ? function (it) {
180
+ return typeof it == 'object' ? it !== null : isCallable$9(it) || it === documentAll;
181
+ } : function (it) {
182
+ return typeof it == 'object' ? it !== null : isCallable$9(it);
152
183
  };
153
184
 
154
- var uncurryThis$8 = functionUncurryThis;
155
- var toObject$2 = toObject$3;
185
+ var global$a = global$b;
186
+ var isCallable$8 = isCallable$a;
156
187
 
157
- var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
188
+ var aFunction = function (argument) {
189
+ return isCallable$8(argument) ? argument : undefined;
190
+ };
158
191
 
159
- // `HasOwnProperty` abstract operation
160
- // https://tc39.es/ecma262/#sec-hasownproperty
161
- // eslint-disable-next-line es/no-object-hasown -- safe
162
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
163
- return hasOwnProperty(toObject$2(it), key);
192
+ var getBuiltIn$2 = function (namespace, method) {
193
+ return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
164
194
  };
165
195
 
166
196
  var uncurryThis$7 = functionUncurryThis;
167
197
 
168
- var id = 0;
169
- var postfix = Math.random();
170
- var toString = uncurryThis$7(1.0.toString);
171
-
172
- var uid$2 = function (key) {
173
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
174
- };
198
+ var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
175
199
 
176
200
  var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
177
201
 
178
- var global$9 = global$c;
202
+ var global$9 = global$b;
179
203
  var userAgent = engineUserAgent;
180
204
 
181
205
  var process = global$9.process;
@@ -206,19 +230,19 @@ var engineV8Version = version;
206
230
  /* eslint-disable es/no-symbol -- required for testing */
207
231
 
208
232
  var V8_VERSION = engineV8Version;
209
- var fails$8 = fails$b;
210
- var global$8 = global$c;
233
+ var fails$5 = fails$9;
234
+ var global$8 = global$b;
211
235
 
212
- var $String$4 = global$8.String;
236
+ var $String$3 = global$8.String;
213
237
 
214
238
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
215
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
239
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
216
240
  var symbol = Symbol();
217
241
  // Chrome 38 Symbol has incorrect toString conversion
218
242
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
219
243
  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
220
244
  // of course, fail.
221
- return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
245
+ return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
222
246
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
223
247
  !Symbol.sham && V8_VERSION && V8_VERSION < 41;
224
248
  });
@@ -231,153 +255,18 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
231
255
  && !Symbol.sham
232
256
  && typeof Symbol.iterator == 'symbol';
233
257
 
234
- var global$7 = global$c;
235
- var shared$2 = shared$3.exports;
236
- var hasOwn$8 = hasOwnProperty_1;
237
- var uid$1 = uid$2;
238
- var NATIVE_SYMBOL = symbolConstructorDetection;
239
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
240
-
241
- var Symbol$1 = global$7.Symbol;
242
- var WellKnownSymbolsStore = shared$2('wks');
243
- var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
244
-
245
- var wellKnownSymbol$6 = function (name) {
246
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
247
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
248
- ? Symbol$1[name]
249
- : createWellKnownSymbol('Symbol.' + name);
250
- } return WellKnownSymbolsStore[name];
251
- };
252
-
253
- var documentAll$2 = typeof document == 'object' && document.all;
254
-
255
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
256
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
257
- var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
258
-
259
- var documentAll_1 = {
260
- all: documentAll$2,
261
- IS_HTMLDDA: IS_HTMLDDA
262
- };
263
-
264
- var $documentAll$1 = documentAll_1;
265
-
266
- var documentAll$1 = $documentAll$1.all;
267
-
268
- // `IsCallable` abstract operation
269
- // https://tc39.es/ecma262/#sec-iscallable
270
- var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) {
271
- return typeof argument == 'function' || argument === documentAll$1;
272
- } : function (argument) {
273
- return typeof argument == 'function';
274
- };
275
-
276
- var isCallable$d = isCallable$e;
277
- var $documentAll = documentAll_1;
278
-
279
- var documentAll = $documentAll.all;
280
-
281
- var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
282
- return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll;
283
- } : function (it) {
284
- return typeof it == 'object' ? it !== null : isCallable$d(it);
285
- };
286
-
287
- var isObject$5 = isObject$6;
288
-
289
- var $String$3 = String;
290
- var $TypeError$5 = TypeError;
291
-
292
- // `Assert: Type(argument) is Object`
293
- var anObject$5 = function (argument) {
294
- if (isObject$5(argument)) return argument;
295
- throw $TypeError$5($String$3(argument) + ' is not an object');
296
- };
297
-
298
- var objectDefineProperties = {};
299
-
300
- var fails$7 = fails$b;
301
-
302
- // Detect IE8's incomplete defineProperty implementation
303
- var descriptors = !fails$7(function () {
304
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
305
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
306
- });
307
-
308
- var DESCRIPTORS$9 = descriptors;
309
- var fails$6 = fails$b;
310
-
311
- // V8 ~ Chrome 36-
312
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
313
- var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$6(function () {
314
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
315
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
316
- value: 42,
317
- writable: false
318
- }).prototype != 42;
319
- });
320
-
321
- var objectDefineProperty = {};
322
-
323
- var global$6 = global$c;
324
- var isObject$4 = isObject$6;
325
-
326
- var document$1 = global$6.document;
327
- // typeof document.createElement is 'object' in old IE
328
- var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
329
-
330
- var documentCreateElement$2 = function (it) {
331
- return EXISTS$1 ? document$1.createElement(it) : {};
332
- };
333
-
334
- var DESCRIPTORS$8 = descriptors;
335
- var fails$5 = fails$b;
336
- var createElement = documentCreateElement$2;
337
-
338
- // Thanks to IE8 for its funny defineProperty
339
- var ie8DomDefine = !DESCRIPTORS$8 && !fails$5(function () {
340
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
341
- return Object.defineProperty(createElement('div'), 'a', {
342
- get: function () { return 7; }
343
- }).a != 7;
344
- });
345
-
346
- var NATIVE_BIND = functionBindNative;
347
-
348
- var call$5 = Function.prototype.call;
349
-
350
- var functionCall = NATIVE_BIND ? call$5.bind(call$5) : function () {
351
- return call$5.apply(call$5, arguments);
352
- };
353
-
354
- var global$5 = global$c;
355
- var isCallable$c = isCallable$e;
356
-
357
- var aFunction = function (argument) {
358
- return isCallable$c(argument) ? argument : undefined;
359
- };
360
-
361
- var getBuiltIn$3 = function (namespace, method) {
362
- return arguments.length < 2 ? aFunction(global$5[namespace]) : global$5[namespace] && global$5[namespace][method];
363
- };
364
-
365
- var uncurryThis$6 = functionUncurryThis;
366
-
367
- var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
368
-
369
- var getBuiltIn$2 = getBuiltIn$3;
370
- var isCallable$b = isCallable$e;
258
+ var getBuiltIn$1 = getBuiltIn$2;
259
+ var isCallable$7 = isCallable$a;
371
260
  var isPrototypeOf = objectIsPrototypeOf;
372
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
261
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
373
262
 
374
263
  var $Object$1 = Object;
375
264
 
376
- var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
265
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
377
266
  return typeof it == 'symbol';
378
267
  } : function (it) {
379
- var $Symbol = getBuiltIn$2('Symbol');
380
- return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
268
+ var $Symbol = getBuiltIn$1('Symbol');
269
+ return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
381
270
  };
382
271
 
383
272
  var $String$2 = String;
@@ -390,30 +279,30 @@ var tryToString$1 = function (argument) {
390
279
  }
391
280
  };
392
281
 
393
- var isCallable$a = isCallable$e;
282
+ var isCallable$6 = isCallable$a;
394
283
  var tryToString = tryToString$1;
395
284
 
396
285
  var $TypeError$4 = TypeError;
397
286
 
398
287
  // `Assert: IsCallable(argument) is true`
399
- var aCallable$2 = function (argument) {
400
- if (isCallable$a(argument)) return argument;
288
+ var aCallable$1 = function (argument) {
289
+ if (isCallable$6(argument)) return argument;
401
290
  throw $TypeError$4(tryToString(argument) + ' is not a function');
402
291
  };
403
292
 
404
- var aCallable$1 = aCallable$2;
293
+ var aCallable = aCallable$1;
405
294
  var isNullOrUndefined = isNullOrUndefined$2;
406
295
 
407
296
  // `GetMethod` abstract operation
408
297
  // https://tc39.es/ecma262/#sec-getmethod
409
298
  var getMethod$1 = function (V, P) {
410
299
  var func = V[P];
411
- return isNullOrUndefined(func) ? undefined : aCallable$1(func);
300
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
412
301
  };
413
302
 
414
- var call$4 = functionCall;
415
- var isCallable$9 = isCallable$e;
416
- var isObject$3 = isObject$6;
303
+ var call$3 = functionCall;
304
+ var isCallable$5 = isCallable$a;
305
+ var isObject$4 = isObject$5;
417
306
 
418
307
  var $TypeError$3 = TypeError;
419
308
 
@@ -421,402 +310,326 @@ var $TypeError$3 = TypeError;
421
310
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
422
311
  var ordinaryToPrimitive$1 = function (input, pref) {
423
312
  var fn, val;
424
- if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$3(val = call$4(fn, input))) return val;
425
- if (isCallable$9(fn = input.valueOf) && !isObject$3(val = call$4(fn, input))) return val;
426
- if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$3(val = call$4(fn, input))) return val;
313
+ if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
314
+ if (isCallable$5(fn = input.valueOf) && !isObject$4(val = call$3(fn, input))) return val;
315
+ if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
427
316
  throw $TypeError$3("Can't convert object to primitive value");
428
317
  };
429
318
 
430
- var call$3 = functionCall;
431
- var isObject$2 = isObject$6;
432
- var isSymbol$1 = isSymbol$2;
433
- var getMethod = getMethod$1;
434
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
435
- var wellKnownSymbol$5 = wellKnownSymbol$6;
319
+ var shared$3 = {exports: {}};
436
320
 
437
- var $TypeError$2 = TypeError;
438
- var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
321
+ var global$7 = global$b;
439
322
 
440
- // `ToPrimitive` abstract operation
441
- // https://tc39.es/ecma262/#sec-toprimitive
442
- var toPrimitive$1 = function (input, pref) {
443
- if (!isObject$2(input) || isSymbol$1(input)) return input;
444
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
445
- var result;
446
- if (exoticToPrim) {
447
- if (pref === undefined) pref = 'default';
448
- result = call$3(exoticToPrim, input, pref);
449
- if (!isObject$2(result) || isSymbol$1(result)) return result;
450
- throw $TypeError$2("Can't convert object to primitive value");
451
- }
452
- if (pref === undefined) pref = 'number';
453
- return ordinaryToPrimitive(input, pref);
323
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
324
+ var defineProperty$2 = Object.defineProperty;
325
+
326
+ var defineGlobalProperty$3 = function (key, value) {
327
+ try {
328
+ defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
329
+ } catch (error) {
330
+ global$7[key] = value;
331
+ } return value;
454
332
  };
455
333
 
456
- var toPrimitive = toPrimitive$1;
457
- var isSymbol = isSymbol$2;
334
+ var global$6 = global$b;
335
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
458
336
 
459
- // `ToPropertyKey` abstract operation
460
- // https://tc39.es/ecma262/#sec-topropertykey
461
- var toPropertyKey$2 = function (argument) {
462
- var key = toPrimitive(argument, 'string');
463
- return isSymbol(key) ? key : key + '';
464
- };
337
+ var SHARED = '__core-js_shared__';
338
+ var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
465
339
 
466
- var DESCRIPTORS$7 = descriptors;
467
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
468
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
469
- var anObject$4 = anObject$5;
470
- var toPropertyKey$1 = toPropertyKey$2;
340
+ var sharedStore = store$3;
471
341
 
472
- var $TypeError$1 = TypeError;
473
- // eslint-disable-next-line es/no-object-defineproperty -- safe
474
- var $defineProperty = Object.defineProperty;
475
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
476
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
477
- var ENUMERABLE = 'enumerable';
478
- var CONFIGURABLE$1 = 'configurable';
479
- var WRITABLE = 'writable';
342
+ var store$2 = sharedStore;
480
343
 
481
- // `Object.defineProperty` method
482
- // https://tc39.es/ecma262/#sec-object.defineproperty
483
- objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
484
- anObject$4(O);
485
- P = toPropertyKey$1(P);
486
- anObject$4(Attributes);
487
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
488
- var current = $getOwnPropertyDescriptor$1(O, P);
489
- if (current && current[WRITABLE]) {
490
- O[P] = Attributes.value;
491
- Attributes = {
492
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
493
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
494
- writable: false
495
- };
496
- }
497
- } return $defineProperty(O, P, Attributes);
498
- } : $defineProperty : function defineProperty(O, P, Attributes) {
499
- anObject$4(O);
500
- P = toPropertyKey$1(P);
501
- anObject$4(Attributes);
502
- if (IE8_DOM_DEFINE$1) try {
503
- return $defineProperty(O, P, Attributes);
504
- } catch (error) { /* empty */ }
505
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
506
- if ('value' in Attributes) O[P] = Attributes.value;
507
- return O;
508
- };
344
+ (shared$3.exports = function (key, value) {
345
+ return store$2[key] || (store$2[key] = value !== undefined ? value : {});
346
+ })('versions', []).push({
347
+ version: '3.30.2',
348
+ mode: 'global',
349
+ copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
350
+ license: 'https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE',
351
+ source: 'https://github.com/zloirock/core-js'
352
+ });
509
353
 
510
- var ceil = Math.ceil;
511
- var floor = Math.floor;
354
+ var requireObjectCoercible = requireObjectCoercible$2;
512
355
 
513
- // `Math.trunc` method
514
- // https://tc39.es/ecma262/#sec-math.trunc
515
- // eslint-disable-next-line es/no-math-trunc -- safe
516
- var mathTrunc = Math.trunc || function trunc(x) {
517
- var n = +x;
518
- return (n > 0 ? floor : ceil)(n);
356
+ var $Object = Object;
357
+
358
+ // `ToObject` abstract operation
359
+ // https://tc39.es/ecma262/#sec-toobject
360
+ var toObject$2 = function (argument) {
361
+ return $Object(requireObjectCoercible(argument));
519
362
  };
520
363
 
521
- var trunc = mathTrunc;
364
+ var uncurryThis$6 = functionUncurryThis;
365
+ var toObject$1 = toObject$2;
522
366
 
523
- // `ToIntegerOrInfinity` abstract operation
524
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
525
- var toIntegerOrInfinity$2 = function (argument) {
526
- var number = +argument;
527
- // eslint-disable-next-line no-self-compare -- NaN check
528
- return number !== number || number === 0 ? 0 : trunc(number);
367
+ var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
368
+
369
+ // `HasOwnProperty` abstract operation
370
+ // https://tc39.es/ecma262/#sec-hasownproperty
371
+ // eslint-disable-next-line es/no-object-hasown -- safe
372
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
373
+ return hasOwnProperty(toObject$1(it), key);
529
374
  };
530
375
 
531
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
376
+ var uncurryThis$5 = functionUncurryThis;
532
377
 
533
- var max = Math.max;
534
- var min$1 = Math.min;
378
+ var id = 0;
379
+ var postfix = Math.random();
380
+ var toString = uncurryThis$5(1.0.toString);
535
381
 
536
- // Helper for a popular repeating case of the spec:
537
- // Let integer be ? ToInteger(index).
538
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
539
- var toAbsoluteIndex$1 = function (index, length) {
540
- var integer = toIntegerOrInfinity$1(index);
541
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
382
+ var uid$2 = function (key) {
383
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
542
384
  };
543
385
 
544
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
386
+ var global$5 = global$b;
387
+ var shared$2 = shared$3.exports;
388
+ var hasOwn$6 = hasOwnProperty_1;
389
+ var uid$1 = uid$2;
390
+ var NATIVE_SYMBOL = symbolConstructorDetection;
391
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
545
392
 
546
- var min = Math.min;
393
+ var Symbol$1 = global$5.Symbol;
394
+ var WellKnownSymbolsStore = shared$2('wks');
395
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
547
396
 
548
- // `ToLength` abstract operation
549
- // https://tc39.es/ecma262/#sec-tolength
550
- var toLength$1 = function (argument) {
551
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
397
+ var wellKnownSymbol$1 = function (name) {
398
+ if (!hasOwn$6(WellKnownSymbolsStore, name)) {
399
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
400
+ ? Symbol$1[name]
401
+ : createWellKnownSymbol('Symbol.' + name);
402
+ } return WellKnownSymbolsStore[name];
552
403
  };
553
404
 
554
- var toLength = toLength$1;
405
+ var call$2 = functionCall;
406
+ var isObject$3 = isObject$5;
407
+ var isSymbol$1 = isSymbol$2;
408
+ var getMethod = getMethod$1;
409
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
410
+ var wellKnownSymbol = wellKnownSymbol$1;
555
411
 
556
- // `LengthOfArrayLike` abstract operation
557
- // https://tc39.es/ecma262/#sec-lengthofarraylike
558
- var lengthOfArrayLike$1 = function (obj) {
559
- return toLength(obj.length);
412
+ var $TypeError$2 = TypeError;
413
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
414
+
415
+ // `ToPrimitive` abstract operation
416
+ // https://tc39.es/ecma262/#sec-toprimitive
417
+ var toPrimitive$1 = function (input, pref) {
418
+ if (!isObject$3(input) || isSymbol$1(input)) return input;
419
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
420
+ var result;
421
+ if (exoticToPrim) {
422
+ if (pref === undefined) pref = 'default';
423
+ result = call$2(exoticToPrim, input, pref);
424
+ if (!isObject$3(result) || isSymbol$1(result)) return result;
425
+ throw $TypeError$2("Can't convert object to primitive value");
426
+ }
427
+ if (pref === undefined) pref = 'number';
428
+ return ordinaryToPrimitive(input, pref);
560
429
  };
561
430
 
562
- var toIndexedObject$4 = toIndexedObject$5;
563
- var toAbsoluteIndex = toAbsoluteIndex$1;
564
- var lengthOfArrayLike = lengthOfArrayLike$1;
431
+ var toPrimitive = toPrimitive$1;
432
+ var isSymbol = isSymbol$2;
565
433
 
566
- // `Array.prototype.{ indexOf, includes }` methods implementation
567
- var createMethod = function (IS_INCLUDES) {
568
- return function ($this, el, fromIndex) {
569
- var O = toIndexedObject$4($this);
570
- var length = lengthOfArrayLike(O);
571
- var index = toAbsoluteIndex(fromIndex, length);
572
- var value;
573
- // Array#includes uses SameValueZero equality algorithm
574
- // eslint-disable-next-line no-self-compare -- NaN check
575
- if (IS_INCLUDES && el != el) while (length > index) {
576
- value = O[index++];
577
- // eslint-disable-next-line no-self-compare -- NaN check
578
- if (value != value) return true;
579
- // Array#indexOf ignores holes, Array#includes - not
580
- } else for (;length > index; index++) {
581
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
582
- } return !IS_INCLUDES && -1;
583
- };
434
+ // `ToPropertyKey` abstract operation
435
+ // https://tc39.es/ecma262/#sec-topropertykey
436
+ var toPropertyKey$2 = function (argument) {
437
+ var key = toPrimitive(argument, 'string');
438
+ return isSymbol(key) ? key : key + '';
584
439
  };
585
440
 
586
- var arrayIncludes = {
587
- // `Array.prototype.includes` method
588
- // https://tc39.es/ecma262/#sec-array.prototype.includes
589
- includes: createMethod(true),
590
- // `Array.prototype.indexOf` method
591
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
592
- indexOf: createMethod(false)
593
- };
441
+ var global$4 = global$b;
442
+ var isObject$2 = isObject$5;
594
443
 
595
- var hiddenKeys$4 = {};
444
+ var document$1 = global$4.document;
445
+ // typeof document.createElement is 'object' in old IE
446
+ var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
596
447
 
597
- var uncurryThis$5 = functionUncurryThis;
598
- var hasOwn$7 = hasOwnProperty_1;
599
- var toIndexedObject$3 = toIndexedObject$5;
600
- var indexOf = arrayIncludes.indexOf;
601
- var hiddenKeys$3 = hiddenKeys$4;
448
+ var documentCreateElement = function (it) {
449
+ return EXISTS$1 ? document$1.createElement(it) : {};
450
+ };
602
451
 
603
- var push = uncurryThis$5([].push);
452
+ var DESCRIPTORS$7 = descriptors;
453
+ var fails$4 = fails$9;
454
+ var createElement = documentCreateElement;
604
455
 
605
- var objectKeysInternal = function (object, names) {
606
- var O = toIndexedObject$3(object);
607
- var i = 0;
608
- var result = [];
609
- var key;
610
- for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push(result, key);
611
- // Don't enum bug & hidden keys
612
- while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
613
- ~indexOf(result, key) || push(result, key);
614
- }
615
- return result;
616
- };
456
+ // Thanks to IE8 for its funny defineProperty
457
+ var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
458
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
459
+ return Object.defineProperty(createElement('div'), 'a', {
460
+ get: function () { return 7; }
461
+ }).a != 7;
462
+ });
617
463
 
618
- // IE8- don't enum bug keys
619
- var enumBugKeys$3 = [
620
- 'constructor',
621
- 'hasOwnProperty',
622
- 'isPrototypeOf',
623
- 'propertyIsEnumerable',
624
- 'toLocaleString',
625
- 'toString',
626
- 'valueOf'
627
- ];
464
+ var DESCRIPTORS$6 = descriptors;
465
+ var call$1 = functionCall;
466
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
467
+ var createPropertyDescriptor$1 = createPropertyDescriptor$2;
468
+ var toIndexedObject$2 = toIndexedObject$3;
469
+ var toPropertyKey$1 = toPropertyKey$2;
470
+ var hasOwn$5 = hasOwnProperty_1;
471
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
628
472
 
629
- var internalObjectKeys$1 = objectKeysInternal;
630
- var enumBugKeys$2 = enumBugKeys$3;
473
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
474
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
631
475
 
632
- // `Object.keys` method
633
- // https://tc39.es/ecma262/#sec-object.keys
634
- // eslint-disable-next-line es/no-object-keys -- safe
635
- var objectKeys$2 = Object.keys || function keys(O) {
636
- return internalObjectKeys$1(O, enumBugKeys$2);
476
+ // `Object.getOwnPropertyDescriptor` method
477
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
478
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
479
+ O = toIndexedObject$2(O);
480
+ P = toPropertyKey$1(P);
481
+ if (IE8_DOM_DEFINE$1) try {
482
+ return $getOwnPropertyDescriptor$1(O, P);
483
+ } catch (error) { /* empty */ }
484
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
637
485
  };
638
486
 
639
- var DESCRIPTORS$6 = descriptors;
640
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
641
- var definePropertyModule$3 = objectDefineProperty;
642
- var anObject$3 = anObject$5;
643
- var toIndexedObject$2 = toIndexedObject$5;
644
- var objectKeys$1 = objectKeys$2;
645
-
646
- // `Object.defineProperties` method
647
- // https://tc39.es/ecma262/#sec-object.defineproperties
648
- // eslint-disable-next-line es/no-object-defineproperties -- safe
649
- objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
650
- anObject$3(O);
651
- var props = toIndexedObject$2(Properties);
652
- var keys = objectKeys$1(Properties);
653
- var length = keys.length;
654
- var index = 0;
655
- var key;
656
- while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
657
- return O;
658
- };
487
+ var objectDefineProperty = {};
659
488
 
660
- var getBuiltIn$1 = getBuiltIn$3;
489
+ var DESCRIPTORS$5 = descriptors;
490
+ var fails$3 = fails$9;
661
491
 
662
- var html$1 = getBuiltIn$1('document', 'documentElement');
492
+ // V8 ~ Chrome 36-
493
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
494
+ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
495
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
496
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
497
+ value: 42,
498
+ writable: false
499
+ }).prototype != 42;
500
+ });
663
501
 
664
- var shared$1 = shared$3.exports;
665
- var uid = uid$2;
502
+ var isObject$1 = isObject$5;
666
503
 
667
- var keys = shared$1('keys');
504
+ var $String$1 = String;
505
+ var $TypeError$1 = TypeError;
668
506
 
669
- var sharedKey$3 = function (key) {
670
- return keys[key] || (keys[key] = uid(key));
507
+ // `Assert: Type(argument) is Object`
508
+ var anObject$2 = function (argument) {
509
+ if (isObject$1(argument)) return argument;
510
+ throw $TypeError$1($String$1(argument) + ' is not an object');
671
511
  };
672
512
 
673
- /* global ActiveXObject -- old IE, WSH */
513
+ var DESCRIPTORS$4 = descriptors;
514
+ var IE8_DOM_DEFINE = ie8DomDefine;
515
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
516
+ var anObject$1 = anObject$2;
517
+ var toPropertyKey = toPropertyKey$2;
674
518
 
675
- var anObject$2 = anObject$5;
676
- var definePropertiesModule = objectDefineProperties;
677
- var enumBugKeys$1 = enumBugKeys$3;
678
- var hiddenKeys$2 = hiddenKeys$4;
679
- var html = html$1;
680
- var documentCreateElement$1 = documentCreateElement$2;
681
- var sharedKey$2 = sharedKey$3;
519
+ var $TypeError = TypeError;
520
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
521
+ var $defineProperty = Object.defineProperty;
522
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
523
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
524
+ var ENUMERABLE = 'enumerable';
525
+ var CONFIGURABLE$1 = 'configurable';
526
+ var WRITABLE = 'writable';
682
527
 
683
- var GT = '>';
684
- var LT = '<';
685
- var PROTOTYPE = 'prototype';
686
- var SCRIPT = 'script';
687
- var IE_PROTO$1 = sharedKey$2('IE_PROTO');
528
+ // `Object.defineProperty` method
529
+ // https://tc39.es/ecma262/#sec-object.defineproperty
530
+ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
531
+ anObject$1(O);
532
+ P = toPropertyKey(P);
533
+ anObject$1(Attributes);
534
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
535
+ var current = $getOwnPropertyDescriptor(O, P);
536
+ if (current && current[WRITABLE]) {
537
+ O[P] = Attributes.value;
538
+ Attributes = {
539
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
540
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
541
+ writable: false
542
+ };
543
+ }
544
+ } return $defineProperty(O, P, Attributes);
545
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
546
+ anObject$1(O);
547
+ P = toPropertyKey(P);
548
+ anObject$1(Attributes);
549
+ if (IE8_DOM_DEFINE) try {
550
+ return $defineProperty(O, P, Attributes);
551
+ } catch (error) { /* empty */ }
552
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
553
+ if ('value' in Attributes) O[P] = Attributes.value;
554
+ return O;
555
+ };
688
556
 
689
- var EmptyConstructor = function () { /* empty */ };
557
+ var DESCRIPTORS$3 = descriptors;
558
+ var definePropertyModule$2 = objectDefineProperty;
559
+ var createPropertyDescriptor = createPropertyDescriptor$2;
690
560
 
691
- var scriptTag = function (content) {
692
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
561
+ var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {
562
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
563
+ } : function (object, key, value) {
564
+ object[key] = value;
565
+ return object;
693
566
  };
694
567
 
695
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
696
- var NullProtoObjectViaActiveX = function (activeXDocument) {
697
- activeXDocument.write(scriptTag(''));
698
- activeXDocument.close();
699
- var temp = activeXDocument.parentWindow.Object;
700
- activeXDocument = null; // avoid memory leak
701
- return temp;
702
- };
568
+ var makeBuiltIn$2 = {exports: {}};
703
569
 
704
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
705
- var NullProtoObjectViaIFrame = function () {
706
- // Thrash, waste and sodomy: IE GC bug
707
- var iframe = documentCreateElement$1('iframe');
708
- var JS = 'java' + SCRIPT + ':';
709
- var iframeDocument;
710
- iframe.style.display = 'none';
711
- html.appendChild(iframe);
712
- // https://github.com/zloirock/core-js/issues/475
713
- iframe.src = String(JS);
714
- iframeDocument = iframe.contentWindow.document;
715
- iframeDocument.open();
716
- iframeDocument.write(scriptTag('document.F=Object'));
717
- iframeDocument.close();
718
- return iframeDocument.F;
719
- };
570
+ var DESCRIPTORS$2 = descriptors;
571
+ var hasOwn$4 = hasOwnProperty_1;
720
572
 
721
- // Check for document.domain and active x support
722
- // No need to use active x approach when document.domain is not set
723
- // see https://github.com/es-shims/es5-shim/issues/150
724
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
725
- // avoid IE GC bug
726
- var activeXDocument;
727
- var NullProtoObject = function () {
728
- try {
729
- activeXDocument = new ActiveXObject('htmlfile');
730
- } catch (error) { /* ignore */ }
731
- NullProtoObject = typeof document != 'undefined'
732
- ? document.domain && activeXDocument
733
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
734
- : NullProtoObjectViaIFrame()
735
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
736
- var length = enumBugKeys$1.length;
737
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
738
- return NullProtoObject();
739
- };
573
+ var FunctionPrototype = Function.prototype;
574
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
575
+ var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
740
576
 
741
- hiddenKeys$2[IE_PROTO$1] = true;
577
+ var EXISTS = hasOwn$4(FunctionPrototype, 'name');
578
+ // additional protection from minified / mangled / dropped function names
579
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
580
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
742
581
 
743
- // `Object.create` method
744
- // https://tc39.es/ecma262/#sec-object.create
745
- // eslint-disable-next-line es/no-object-create -- safe
746
- var objectCreate = Object.create || function create(O, Properties) {
747
- var result;
748
- if (O !== null) {
749
- EmptyConstructor[PROTOTYPE] = anObject$2(O);
750
- result = new EmptyConstructor();
751
- EmptyConstructor[PROTOTYPE] = null;
752
- // add "__proto__" for Object.getPrototypeOf polyfill
753
- result[IE_PROTO$1] = O;
754
- } else result = NullProtoObject();
755
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
582
+ var functionName = {
583
+ EXISTS: EXISTS,
584
+ PROPER: PROPER,
585
+ CONFIGURABLE: CONFIGURABLE
756
586
  };
757
587
 
758
- var wellKnownSymbol$4 = wellKnownSymbol$6;
759
- var create$1 = objectCreate;
760
- var defineProperty$4 = objectDefineProperty.f;
588
+ var uncurryThis$4 = functionUncurryThis;
589
+ var isCallable$4 = isCallable$a;
590
+ var store$1 = sharedStore;
761
591
 
762
- var UNSCOPABLES = wellKnownSymbol$4('unscopables');
763
- var ArrayPrototype = Array.prototype;
592
+ var functionToString = uncurryThis$4(Function.toString);
764
593
 
765
- // Array.prototype[@@unscopables]
766
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
767
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
768
- defineProperty$4(ArrayPrototype, UNSCOPABLES, {
769
- configurable: true,
770
- value: create$1(null)
771
- });
594
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
595
+ if (!isCallable$4(store$1.inspectSource)) {
596
+ store$1.inspectSource = function (it) {
597
+ return functionToString(it);
598
+ };
772
599
  }
773
600
 
774
- // add a key to Array.prototype[@@unscopables]
775
- var addToUnscopables$1 = function (key) {
776
- ArrayPrototype[UNSCOPABLES][key] = true;
777
- };
778
-
779
- var iterators = {};
601
+ var inspectSource$1 = store$1.inspectSource;
780
602
 
781
- var global$4 = global$c;
782
- var isCallable$8 = isCallable$e;
603
+ var global$3 = global$b;
604
+ var isCallable$3 = isCallable$a;
783
605
 
784
- var WeakMap$1 = global$4.WeakMap;
606
+ var WeakMap$1 = global$3.WeakMap;
785
607
 
786
- var weakMapBasicDetection = isCallable$8(WeakMap$1) && /native code/.test(String(WeakMap$1));
608
+ var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
787
609
 
788
- var createPropertyDescriptor$3 = function (bitmap, value) {
789
- return {
790
- enumerable: !(bitmap & 1),
791
- configurable: !(bitmap & 2),
792
- writable: !(bitmap & 4),
793
- value: value
794
- };
795
- };
610
+ var shared$1 = shared$3.exports;
611
+ var uid = uid$2;
796
612
 
797
- var DESCRIPTORS$5 = descriptors;
798
- var definePropertyModule$2 = objectDefineProperty;
799
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
613
+ var keys = shared$1('keys');
800
614
 
801
- var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
802
- return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
803
- } : function (object, key, value) {
804
- object[key] = value;
805
- return object;
615
+ var sharedKey$1 = function (key) {
616
+ return keys[key] || (keys[key] = uid(key));
806
617
  };
807
618
 
619
+ var hiddenKeys$3 = {};
620
+
808
621
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
809
- var global$3 = global$c;
810
- var isObject$1 = isObject$6;
811
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
812
- var hasOwn$6 = hasOwnProperty_1;
622
+ var global$2 = global$b;
623
+ var isObject = isObject$5;
624
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
625
+ var hasOwn$3 = hasOwnProperty_1;
813
626
  var shared = sharedStore;
814
- var sharedKey$1 = sharedKey$3;
815
- var hiddenKeys$1 = hiddenKeys$4;
627
+ var sharedKey = sharedKey$1;
628
+ var hiddenKeys$2 = hiddenKeys$3;
816
629
 
817
630
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
818
- var TypeError$1 = global$3.TypeError;
819
- var WeakMap = global$3.WeakMap;
631
+ var TypeError$1 = global$2.TypeError;
632
+ var WeakMap = global$2.WeakMap;
820
633
  var set, get, has;
821
634
 
822
635
  var enforce = function (it) {
@@ -826,177 +639,101 @@ var enforce = function (it) {
826
639
  var getterFor = function (TYPE) {
827
640
  return function (it) {
828
641
  var state;
829
- if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
642
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
830
643
  throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
831
- } return state;
832
- };
833
- };
834
-
835
- if (NATIVE_WEAK_MAP || shared.state) {
836
- var store$1 = shared.state || (shared.state = new WeakMap());
837
- /* eslint-disable no-self-assign -- prototype methods protection */
838
- store$1.get = store$1.get;
839
- store$1.has = store$1.has;
840
- store$1.set = store$1.set;
841
- /* eslint-enable no-self-assign -- prototype methods protection */
842
- set = function (it, metadata) {
843
- if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
844
- metadata.facade = it;
845
- store$1.set(it, metadata);
846
- return metadata;
847
- };
848
- get = function (it) {
849
- return store$1.get(it) || {};
850
- };
851
- has = function (it) {
852
- return store$1.has(it);
853
- };
854
- } else {
855
- var STATE = sharedKey$1('state');
856
- hiddenKeys$1[STATE] = true;
857
- set = function (it, metadata) {
858
- if (hasOwn$6(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
859
- metadata.facade = it;
860
- createNonEnumerableProperty$3(it, STATE, metadata);
861
- return metadata;
862
- };
863
- get = function (it) {
864
- return hasOwn$6(it, STATE) ? it[STATE] : {};
865
- };
866
- has = function (it) {
867
- return hasOwn$6(it, STATE);
868
- };
869
- }
870
-
871
- var internalState = {
872
- set: set,
873
- get: get,
874
- has: has,
875
- enforce: enforce,
876
- getterFor: getterFor
877
- };
878
-
879
- var objectGetOwnPropertyDescriptor = {};
880
-
881
- var objectPropertyIsEnumerable = {};
882
-
883
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
884
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
885
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
886
-
887
- // Nashorn ~ JDK8 bug
888
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
889
-
890
- // `Object.prototype.propertyIsEnumerable` method implementation
891
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
892
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
893
- var descriptor = getOwnPropertyDescriptor$1(this, V);
894
- return !!descriptor && descriptor.enumerable;
895
- } : $propertyIsEnumerable;
896
-
897
- var DESCRIPTORS$4 = descriptors;
898
- var call$2 = functionCall;
899
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
900
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
901
- var toIndexedObject$1 = toIndexedObject$5;
902
- var toPropertyKey = toPropertyKey$2;
903
- var hasOwn$5 = hasOwnProperty_1;
904
- var IE8_DOM_DEFINE = ie8DomDefine;
905
-
906
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
907
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
908
-
909
- // `Object.getOwnPropertyDescriptor` method
910
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
911
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
912
- O = toIndexedObject$1(O);
913
- P = toPropertyKey(P);
914
- if (IE8_DOM_DEFINE) try {
915
- return $getOwnPropertyDescriptor(O, P);
916
- } catch (error) { /* empty */ }
917
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
918
- };
919
-
920
- var makeBuiltIn$2 = {exports: {}};
921
-
922
- var DESCRIPTORS$3 = descriptors;
923
- var hasOwn$4 = hasOwnProperty_1;
924
-
925
- var FunctionPrototype = Function.prototype;
926
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
927
- var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
928
-
929
- var EXISTS = hasOwn$4(FunctionPrototype, 'name');
930
- // additional protection from minified / mangled / dropped function names
931
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
932
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
933
-
934
- var functionName = {
935
- EXISTS: EXISTS,
936
- PROPER: PROPER,
937
- CONFIGURABLE: CONFIGURABLE
644
+ } return state;
645
+ };
938
646
  };
939
647
 
940
- var uncurryThis$4 = functionUncurryThis;
941
- var isCallable$7 = isCallable$e;
942
- var store = sharedStore;
943
-
944
- var functionToString = uncurryThis$4(Function.toString);
945
-
946
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
947
- if (!isCallable$7(store.inspectSource)) {
948
- store.inspectSource = function (it) {
949
- return functionToString(it);
648
+ if (NATIVE_WEAK_MAP || shared.state) {
649
+ var store = shared.state || (shared.state = new WeakMap());
650
+ /* eslint-disable no-self-assign -- prototype methods protection */
651
+ store.get = store.get;
652
+ store.has = store.has;
653
+ store.set = store.set;
654
+ /* eslint-enable no-self-assign -- prototype methods protection */
655
+ set = function (it, metadata) {
656
+ if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
657
+ metadata.facade = it;
658
+ store.set(it, metadata);
659
+ return metadata;
660
+ };
661
+ get = function (it) {
662
+ return store.get(it) || {};
663
+ };
664
+ has = function (it) {
665
+ return store.has(it);
666
+ };
667
+ } else {
668
+ var STATE = sharedKey('state');
669
+ hiddenKeys$2[STATE] = true;
670
+ set = function (it, metadata) {
671
+ if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
672
+ metadata.facade = it;
673
+ createNonEnumerableProperty$1(it, STATE, metadata);
674
+ return metadata;
675
+ };
676
+ get = function (it) {
677
+ return hasOwn$3(it, STATE) ? it[STATE] : {};
678
+ };
679
+ has = function (it) {
680
+ return hasOwn$3(it, STATE);
950
681
  };
951
682
  }
952
683
 
953
- var inspectSource$1 = store.inspectSource;
684
+ var internalState = {
685
+ set: set,
686
+ get: get,
687
+ has: has,
688
+ enforce: enforce,
689
+ getterFor: getterFor
690
+ };
954
691
 
955
692
  var uncurryThis$3 = functionUncurryThis;
956
- var fails$4 = fails$b;
957
- var isCallable$6 = isCallable$e;
958
- var hasOwn$3 = hasOwnProperty_1;
959
- var DESCRIPTORS$2 = descriptors;
960
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
693
+ var fails$2 = fails$9;
694
+ var isCallable$2 = isCallable$a;
695
+ var hasOwn$2 = hasOwnProperty_1;
696
+ var DESCRIPTORS$1 = descriptors;
697
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
961
698
  var inspectSource = inspectSource$1;
962
- var InternalStateModule$1 = internalState;
699
+ var InternalStateModule = internalState;
963
700
 
964
- var enforceInternalState = InternalStateModule$1.enforce;
965
- var getInternalState$1 = InternalStateModule$1.get;
966
- var $String$1 = String;
701
+ var enforceInternalState = InternalStateModule.enforce;
702
+ var getInternalState = InternalStateModule.get;
703
+ var $String = String;
967
704
  // eslint-disable-next-line es/no-object-defineproperty -- safe
968
- var defineProperty$3 = Object.defineProperty;
705
+ var defineProperty$1 = Object.defineProperty;
969
706
  var stringSlice = uncurryThis$3(''.slice);
970
707
  var replace = uncurryThis$3(''.replace);
971
708
  var join = uncurryThis$3([].join);
972
709
 
973
- var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$4(function () {
974
- return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
710
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$2(function () {
711
+ return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
975
712
  });
976
713
 
977
714
  var TEMPLATE = String(String).split('String');
978
715
 
979
716
  var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
980
- if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
981
- name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
717
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
718
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
982
719
  }
983
720
  if (options && options.getter) name = 'get ' + name;
984
721
  if (options && options.setter) name = 'set ' + name;
985
- if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
986
- if (DESCRIPTORS$2) defineProperty$3(value, 'name', { value: name, configurable: true });
722
+ if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
723
+ if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
987
724
  else value.name = name;
988
725
  }
989
- if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
990
- defineProperty$3(value, 'length', { value: options.arity });
726
+ if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
727
+ defineProperty$1(value, 'length', { value: options.arity });
991
728
  }
992
729
  try {
993
- if (options && hasOwn$3(options, 'constructor') && options.constructor) {
994
- if (DESCRIPTORS$2) defineProperty$3(value, 'prototype', { writable: false });
730
+ if (options && hasOwn$2(options, 'constructor') && options.constructor) {
731
+ if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
995
732
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
996
733
  } else if (value.prototype) value.prototype = undefined;
997
734
  } catch (error) { /* empty */ }
998
735
  var state = enforceInternalState(value);
999
- if (!hasOwn$3(state, 'source')) {
736
+ if (!hasOwn$2(state, 'source')) {
1000
737
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
1001
738
  } return value;
1002
739
  };
@@ -1004,19 +741,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
1004
741
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1005
742
  // eslint-disable-next-line no-extend-native -- required
1006
743
  Function.prototype.toString = makeBuiltIn$1(function toString() {
1007
- return isCallable$6(this) && getInternalState$1(this).source || inspectSource(this);
744
+ return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
1008
745
  }, 'toString');
1009
746
 
1010
- var isCallable$5 = isCallable$e;
747
+ var isCallable$1 = isCallable$a;
1011
748
  var definePropertyModule$1 = objectDefineProperty;
1012
749
  var makeBuiltIn = makeBuiltIn$2.exports;
1013
750
  var defineGlobalProperty$1 = defineGlobalProperty$3;
1014
751
 
1015
- var defineBuiltIn$3 = function (O, key, value, options) {
752
+ var defineBuiltIn$1 = function (O, key, value, options) {
1016
753
  if (!options) options = {};
1017
754
  var simple = options.enumerable;
1018
755
  var name = options.name !== undefined ? options.name : key;
1019
- if (isCallable$5(value)) makeBuiltIn(value, name, options);
756
+ if (isCallable$1(value)) makeBuiltIn(value, name, options);
1020
757
  if (options.global) {
1021
758
  if (simple) O[key] = value;
1022
759
  else defineGlobalProperty$1(key, value);
@@ -1037,16 +774,133 @@ var defineBuiltIn$3 = function (O, key, value, options) {
1037
774
 
1038
775
  var objectGetOwnPropertyNames = {};
1039
776
 
1040
- var internalObjectKeys = objectKeysInternal;
1041
- var enumBugKeys = enumBugKeys$3;
777
+ var ceil = Math.ceil;
778
+ var floor = Math.floor;
779
+
780
+ // `Math.trunc` method
781
+ // https://tc39.es/ecma262/#sec-math.trunc
782
+ // eslint-disable-next-line es/no-math-trunc -- safe
783
+ var mathTrunc = Math.trunc || function trunc(x) {
784
+ var n = +x;
785
+ return (n > 0 ? floor : ceil)(n);
786
+ };
787
+
788
+ var trunc = mathTrunc;
789
+
790
+ // `ToIntegerOrInfinity` abstract operation
791
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
792
+ var toIntegerOrInfinity$2 = function (argument) {
793
+ var number = +argument;
794
+ // eslint-disable-next-line no-self-compare -- NaN check
795
+ return number !== number || number === 0 ? 0 : trunc(number);
796
+ };
797
+
798
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
799
+
800
+ var max = Math.max;
801
+ var min$1 = Math.min;
802
+
803
+ // Helper for a popular repeating case of the spec:
804
+ // Let integer be ? ToInteger(index).
805
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
806
+ var toAbsoluteIndex$1 = function (index, length) {
807
+ var integer = toIntegerOrInfinity$1(index);
808
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
809
+ };
810
+
811
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
812
+
813
+ var min = Math.min;
814
+
815
+ // `ToLength` abstract operation
816
+ // https://tc39.es/ecma262/#sec-tolength
817
+ var toLength$1 = function (argument) {
818
+ return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
819
+ };
820
+
821
+ var toLength = toLength$1;
822
+
823
+ // `LengthOfArrayLike` abstract operation
824
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
825
+ var lengthOfArrayLike$1 = function (obj) {
826
+ return toLength(obj.length);
827
+ };
828
+
829
+ var toIndexedObject$1 = toIndexedObject$3;
830
+ var toAbsoluteIndex = toAbsoluteIndex$1;
831
+ var lengthOfArrayLike = lengthOfArrayLike$1;
832
+
833
+ // `Array.prototype.{ indexOf, includes }` methods implementation
834
+ var createMethod = function (IS_INCLUDES) {
835
+ return function ($this, el, fromIndex) {
836
+ var O = toIndexedObject$1($this);
837
+ var length = lengthOfArrayLike(O);
838
+ var index = toAbsoluteIndex(fromIndex, length);
839
+ var value;
840
+ // Array#includes uses SameValueZero equality algorithm
841
+ // eslint-disable-next-line no-self-compare -- NaN check
842
+ if (IS_INCLUDES && el != el) while (length > index) {
843
+ value = O[index++];
844
+ // eslint-disable-next-line no-self-compare -- NaN check
845
+ if (value != value) return true;
846
+ // Array#indexOf ignores holes, Array#includes - not
847
+ } else for (;length > index; index++) {
848
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
849
+ } return !IS_INCLUDES && -1;
850
+ };
851
+ };
852
+
853
+ var arrayIncludes = {
854
+ // `Array.prototype.includes` method
855
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
856
+ includes: createMethod(true),
857
+ // `Array.prototype.indexOf` method
858
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
859
+ indexOf: createMethod(false)
860
+ };
861
+
862
+ var uncurryThis$2 = functionUncurryThis;
863
+ var hasOwn$1 = hasOwnProperty_1;
864
+ var toIndexedObject = toIndexedObject$3;
865
+ var indexOf = arrayIncludes.indexOf;
866
+ var hiddenKeys$1 = hiddenKeys$3;
1042
867
 
1043
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
868
+ var push = uncurryThis$2([].push);
869
+
870
+ var objectKeysInternal = function (object, names) {
871
+ var O = toIndexedObject(object);
872
+ var i = 0;
873
+ var result = [];
874
+ var key;
875
+ for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
876
+ // Don't enum bug & hidden keys
877
+ while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
878
+ ~indexOf(result, key) || push(result, key);
879
+ }
880
+ return result;
881
+ };
882
+
883
+ // IE8- don't enum bug keys
884
+ var enumBugKeys$2 = [
885
+ 'constructor',
886
+ 'hasOwnProperty',
887
+ 'isPrototypeOf',
888
+ 'propertyIsEnumerable',
889
+ 'toLocaleString',
890
+ 'toString',
891
+ 'valueOf'
892
+ ];
893
+
894
+ var internalObjectKeys$1 = objectKeysInternal;
895
+ var enumBugKeys$1 = enumBugKeys$2;
896
+
897
+ var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
1044
898
 
1045
899
  // `Object.getOwnPropertyNames` method
1046
900
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
1047
901
  // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1048
902
  objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1049
- return internalObjectKeys(O, hiddenKeys);
903
+ return internalObjectKeys$1(O, hiddenKeys);
1050
904
  };
1051
905
 
1052
906
  var objectGetOwnPropertySymbols = {};
@@ -1054,22 +908,22 @@ var objectGetOwnPropertySymbols = {};
1054
908
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1055
909
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1056
910
 
1057
- var getBuiltIn = getBuiltIn$3;
1058
- var uncurryThis$2 = functionUncurryThis;
911
+ var getBuiltIn = getBuiltIn$2;
912
+ var uncurryThis$1 = functionUncurryThis;
1059
913
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1060
914
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1061
- var anObject$1 = anObject$5;
915
+ var anObject = anObject$2;
1062
916
 
1063
- var concat$1 = uncurryThis$2([].concat);
917
+ var concat$1 = uncurryThis$1([].concat);
1064
918
 
1065
919
  // all object keys, includes non-enumerable and symbols
1066
920
  var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1067
- var keys = getOwnPropertyNamesModule.f(anObject$1(it));
921
+ var keys = getOwnPropertyNamesModule.f(anObject(it));
1068
922
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1069
923
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1070
924
  };
1071
925
 
1072
- var hasOwn$2 = hasOwnProperty_1;
926
+ var hasOwn = hasOwnProperty_1;
1073
927
  var ownKeys = ownKeys$1;
1074
928
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1075
929
  var definePropertyModule = objectDefineProperty;
@@ -1080,14 +934,14 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
1080
934
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1081
935
  for (var i = 0; i < keys.length; i++) {
1082
936
  var key = keys[i];
1083
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
937
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1084
938
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1085
939
  }
1086
940
  }
1087
941
  };
1088
942
 
1089
- var fails$3 = fails$b;
1090
- var isCallable$4 = isCallable$e;
943
+ var fails$1 = fails$9;
944
+ var isCallable = isCallable$a;
1091
945
 
1092
946
  var replacement = /#|\.prototype\./;
1093
947
 
@@ -1095,7 +949,7 @@ var isForced$1 = function (feature, detection) {
1095
949
  var value = data[normalize(feature)];
1096
950
  return value == POLYFILL ? true
1097
951
  : value == NATIVE ? false
1098
- : isCallable$4(detection) ? fails$3(detection)
952
+ : isCallable(detection) ? fails$1(detection)
1099
953
  : !!detection;
1100
954
  };
1101
955
 
@@ -1109,10 +963,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
1109
963
 
1110
964
  var isForced_1 = isForced$1;
1111
965
 
1112
- var global$2 = global$c;
966
+ var global$1 = global$b;
1113
967
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1114
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1115
- var defineBuiltIn$2 = defineBuiltIn$3;
968
+ var createNonEnumerableProperty = createNonEnumerableProperty$2;
969
+ var defineBuiltIn = defineBuiltIn$1;
1116
970
  var defineGlobalProperty = defineGlobalProperty$3;
1117
971
  var copyConstructorProperties = copyConstructorProperties$1;
1118
972
  var isForced = isForced_1;
@@ -1138,11 +992,11 @@ var _export = function (options, source) {
1138
992
  var STATIC = options.stat;
1139
993
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1140
994
  if (GLOBAL) {
1141
- target = global$2;
995
+ target = global$1;
1142
996
  } else if (STATIC) {
1143
- target = global$2[TARGET] || defineGlobalProperty(TARGET, {});
997
+ target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
1144
998
  } else {
1145
- target = (global$2[TARGET] || {}).prototype;
999
+ target = (global$1[TARGET] || {}).prototype;
1146
1000
  }
1147
1001
  if (target) for (key in source) {
1148
1002
  sourceProperty = source[key];
@@ -1158,421 +1012,30 @@ var _export = function (options, source) {
1158
1012
  }
1159
1013
  // add a flag to not completely full polyfills
1160
1014
  if (options.sham || (targetProperty && targetProperty.sham)) {
1161
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1162
- }
1163
- defineBuiltIn$2(target, key, sourceProperty, options);
1164
- }
1165
- };
1166
-
1167
- var fails$2 = fails$b;
1168
-
1169
- var correctPrototypeGetter = !fails$2(function () {
1170
- function F() { /* empty */ }
1171
- F.prototype.constructor = null;
1172
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1173
- return Object.getPrototypeOf(new F()) !== F.prototype;
1174
- });
1175
-
1176
- var hasOwn$1 = hasOwnProperty_1;
1177
- var isCallable$3 = isCallable$e;
1178
- var toObject$1 = toObject$3;
1179
- var sharedKey = sharedKey$3;
1180
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1181
-
1182
- var IE_PROTO = sharedKey('IE_PROTO');
1183
- var $Object = Object;
1184
- var ObjectPrototype = $Object.prototype;
1185
-
1186
- // `Object.getPrototypeOf` method
1187
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1188
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1189
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1190
- var object = toObject$1(O);
1191
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1192
- var constructor = object.constructor;
1193
- if (isCallable$3(constructor) && object instanceof constructor) {
1194
- return constructor.prototype;
1195
- } return object instanceof $Object ? ObjectPrototype : null;
1196
- };
1197
-
1198
- var fails$1 = fails$b;
1199
- var isCallable$2 = isCallable$e;
1200
- var isObject = isObject$6;
1201
- var getPrototypeOf$1 = objectGetPrototypeOf;
1202
- var defineBuiltIn$1 = defineBuiltIn$3;
1203
- var wellKnownSymbol$3 = wellKnownSymbol$6;
1204
-
1205
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
1206
- var BUGGY_SAFARI_ITERATORS$1 = false;
1207
-
1208
- // `%IteratorPrototype%` object
1209
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1210
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1211
-
1212
- /* eslint-disable es/no-array-prototype-keys -- safe */
1213
- if ([].keys) {
1214
- arrayIterator = [].keys();
1215
- // Safari 8 has buggy iterators w/o `next`
1216
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1217
- else {
1218
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1219
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1220
- }
1221
- }
1222
-
1223
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$1(function () {
1224
- var test = {};
1225
- // FF44- legacy iterators case
1226
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1227
- });
1228
-
1229
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1230
-
1231
- // `%IteratorPrototype%[@@iterator]()` method
1232
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1233
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
1234
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
1235
- return this;
1236
- });
1237
- }
1238
-
1239
- var iteratorsCore = {
1240
- IteratorPrototype: IteratorPrototype$2,
1241
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1242
- };
1243
-
1244
- var defineProperty$2 = objectDefineProperty.f;
1245
- var hasOwn = hasOwnProperty_1;
1246
- var wellKnownSymbol$2 = wellKnownSymbol$6;
1247
-
1248
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1249
-
1250
- var setToStringTag$2 = function (target, TAG, STATIC) {
1251
- if (target && !STATIC) target = target.prototype;
1252
- if (target && !hasOwn(target, TO_STRING_TAG$1)) {
1253
- defineProperty$2(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
1254
- }
1255
- };
1256
-
1257
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1258
- var create = objectCreate;
1259
- var createPropertyDescriptor = createPropertyDescriptor$3;
1260
- var setToStringTag$1 = setToStringTag$2;
1261
- var Iterators$2 = iterators;
1262
-
1263
- var returnThis$1 = function () { return this; };
1264
-
1265
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1266
- var TO_STRING_TAG = NAME + ' Iterator';
1267
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1268
- setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
1269
- Iterators$2[TO_STRING_TAG] = returnThis$1;
1270
- return IteratorConstructor;
1271
- };
1272
-
1273
- var uncurryThis$1 = functionUncurryThis;
1274
- var aCallable = aCallable$2;
1275
-
1276
- var functionUncurryThisAccessor = function (object, key, method) {
1277
- try {
1278
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1279
- return uncurryThis$1(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1280
- } catch (error) { /* empty */ }
1281
- };
1282
-
1283
- var isCallable$1 = isCallable$e;
1284
-
1285
- var $String = String;
1286
- var $TypeError = TypeError;
1287
-
1288
- var aPossiblePrototype$1 = function (argument) {
1289
- if (typeof argument == 'object' || isCallable$1(argument)) return argument;
1290
- throw $TypeError("Can't set " + $String(argument) + ' as a prototype');
1291
- };
1292
-
1293
- /* eslint-disable no-proto -- safe */
1294
-
1295
- var uncurryThisAccessor = functionUncurryThisAccessor;
1296
- var anObject = anObject$5;
1297
- var aPossiblePrototype = aPossiblePrototype$1;
1298
-
1299
- // `Object.setPrototypeOf` method
1300
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1301
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1302
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1303
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1304
- var CORRECT_SETTER = false;
1305
- var test = {};
1306
- var setter;
1307
- try {
1308
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1309
- setter(test, []);
1310
- CORRECT_SETTER = test instanceof Array;
1311
- } catch (error) { /* empty */ }
1312
- return function setPrototypeOf(O, proto) {
1313
- anObject(O);
1314
- aPossiblePrototype(proto);
1315
- if (CORRECT_SETTER) setter(O, proto);
1316
- else O.__proto__ = proto;
1317
- return O;
1318
- };
1319
- }() : undefined);
1320
-
1321
- var $$1 = _export;
1322
- var call$1 = functionCall;
1323
- var FunctionName = functionName;
1324
- var isCallable = isCallable$e;
1325
- var createIteratorConstructor = iteratorCreateConstructor;
1326
- var getPrototypeOf = objectGetPrototypeOf;
1327
- var setPrototypeOf = objectSetPrototypeOf;
1328
- var setToStringTag = setToStringTag$2;
1329
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1330
- var defineBuiltIn = defineBuiltIn$3;
1331
- var wellKnownSymbol$1 = wellKnownSymbol$6;
1332
- var Iterators$1 = iterators;
1333
- var IteratorsCore = iteratorsCore;
1334
-
1335
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1336
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1337
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
1338
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1339
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1340
- var KEYS = 'keys';
1341
- var VALUES = 'values';
1342
- var ENTRIES = 'entries';
1343
-
1344
- var returnThis = function () { return this; };
1345
-
1346
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1347
- createIteratorConstructor(IteratorConstructor, NAME, next);
1348
-
1349
- var getIterationMethod = function (KIND) {
1350
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1351
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1352
- switch (KIND) {
1353
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1354
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1355
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1356
- } return function () { return new IteratorConstructor(this); };
1357
- };
1358
-
1359
- var TO_STRING_TAG = NAME + ' Iterator';
1360
- var INCORRECT_VALUES_NAME = false;
1361
- var IterablePrototype = Iterable.prototype;
1362
- var nativeIterator = IterablePrototype[ITERATOR$1]
1363
- || IterablePrototype['@@iterator']
1364
- || DEFAULT && IterablePrototype[DEFAULT];
1365
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1366
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1367
- var CurrentIteratorPrototype, methods, KEY;
1368
-
1369
- // fix native
1370
- if (anyNativeIterator) {
1371
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1372
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1373
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1374
- if (setPrototypeOf) {
1375
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1376
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
1377
- defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1378
- }
1379
- }
1380
- // Set @@toStringTag to native iterators
1381
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1015
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
1382
1016
  }
1017
+ defineBuiltIn(target, key, sourceProperty, options);
1383
1018
  }
1384
-
1385
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1386
- if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1387
- if (CONFIGURABLE_FUNCTION_NAME) {
1388
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1389
- } else {
1390
- INCORRECT_VALUES_NAME = true;
1391
- defaultIterator = function values() { return call$1(nativeIterator, this); };
1392
- }
1393
- }
1394
-
1395
- // export additional methods
1396
- if (DEFAULT) {
1397
- methods = {
1398
- values: getIterationMethod(VALUES),
1399
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1400
- entries: getIterationMethod(ENTRIES)
1401
- };
1402
- if (FORCED) for (KEY in methods) {
1403
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1404
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1405
- }
1406
- } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1407
- }
1408
-
1409
- // define iterator
1410
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1411
- defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1412
- }
1413
- Iterators$1[NAME] = defaultIterator;
1414
-
1415
- return methods;
1416
- };
1417
-
1418
- // `CreateIterResultObject` abstract operation
1419
- // https://tc39.es/ecma262/#sec-createiterresultobject
1420
- var createIterResultObject$1 = function (value, done) {
1421
- return { value: value, done: done };
1422
- };
1423
-
1424
- var toIndexedObject = toIndexedObject$5;
1425
- var addToUnscopables = addToUnscopables$1;
1426
- var Iterators = iterators;
1427
- var InternalStateModule = internalState;
1428
- var defineProperty$1 = objectDefineProperty.f;
1429
- var defineIterator = iteratorDefine;
1430
- var createIterResultObject = createIterResultObject$1;
1431
- var DESCRIPTORS$1 = descriptors;
1432
-
1433
- var ARRAY_ITERATOR = 'Array Iterator';
1434
- var setInternalState = InternalStateModule.set;
1435
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1436
-
1437
- // `Array.prototype.entries` method
1438
- // https://tc39.es/ecma262/#sec-array.prototype.entries
1439
- // `Array.prototype.keys` method
1440
- // https://tc39.es/ecma262/#sec-array.prototype.keys
1441
- // `Array.prototype.values` method
1442
- // https://tc39.es/ecma262/#sec-array.prototype.values
1443
- // `Array.prototype[@@iterator]` method
1444
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1445
- // `CreateArrayIterator` internal method
1446
- // https://tc39.es/ecma262/#sec-createarrayiterator
1447
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1448
- setInternalState(this, {
1449
- type: ARRAY_ITERATOR,
1450
- target: toIndexedObject(iterated), // target
1451
- index: 0, // next index
1452
- kind: kind // kind
1453
- });
1454
- // `%ArrayIteratorPrototype%.next` method
1455
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1456
- }, function () {
1457
- var state = getInternalState(this);
1458
- var target = state.target;
1459
- var kind = state.kind;
1460
- var index = state.index++;
1461
- if (!target || index >= target.length) {
1462
- state.target = undefined;
1463
- return createIterResultObject(undefined, true);
1464
- }
1465
- if (kind == 'keys') return createIterResultObject(index, false);
1466
- if (kind == 'values') return createIterResultObject(target[index], false);
1467
- return createIterResultObject([index, target[index]], false);
1468
- }, 'values');
1469
-
1470
- // argumentsList[@@iterator] is %ArrayProto_values%
1471
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1472
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1473
- var values = Iterators.Arguments = Iterators.Array;
1474
-
1475
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1476
- addToUnscopables('keys');
1477
- addToUnscopables('values');
1478
- addToUnscopables('entries');
1479
-
1480
- // V8 ~ Chrome 45- bug
1481
- if (DESCRIPTORS$1 && values.name !== 'values') try {
1482
- defineProperty$1(values, 'name', { value: 'values' });
1483
- } catch (error) { /* empty */ }
1484
-
1485
- // iterable DOM collections
1486
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1487
- var domIterables = {
1488
- CSSRuleList: 0,
1489
- CSSStyleDeclaration: 0,
1490
- CSSValueList: 0,
1491
- ClientRectList: 0,
1492
- DOMRectList: 0,
1493
- DOMStringList: 0,
1494
- DOMTokenList: 1,
1495
- DataTransferItemList: 0,
1496
- FileList: 0,
1497
- HTMLAllCollection: 0,
1498
- HTMLCollection: 0,
1499
- HTMLFormElement: 0,
1500
- HTMLSelectElement: 0,
1501
- MediaList: 0,
1502
- MimeTypeArray: 0,
1503
- NamedNodeMap: 0,
1504
- NodeList: 1,
1505
- PaintRequestList: 0,
1506
- Plugin: 0,
1507
- PluginArray: 0,
1508
- SVGLengthList: 0,
1509
- SVGNumberList: 0,
1510
- SVGPathSegList: 0,
1511
- SVGPointList: 0,
1512
- SVGStringList: 0,
1513
- SVGTransformList: 0,
1514
- SourceBufferList: 0,
1515
- StyleSheetList: 0,
1516
- TextTrackCueList: 0,
1517
- TextTrackList: 0,
1518
- TouchList: 0
1519
1019
  };
1520
1020
 
1521
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1522
- var documentCreateElement = documentCreateElement$2;
1523
-
1524
- var classList = documentCreateElement('span').classList;
1525
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1526
-
1527
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1528
-
1529
- var global$1 = global$c;
1530
- var DOMIterables = domIterables;
1531
- var DOMTokenListPrototype = domTokenListPrototype;
1532
- var ArrayIteratorMethods = es_array_iterator;
1533
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
1534
- var wellKnownSymbol = wellKnownSymbol$6;
1535
-
1536
- var ITERATOR = wellKnownSymbol('iterator');
1537
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1538
- var ArrayValues = ArrayIteratorMethods.values;
1021
+ var internalObjectKeys = objectKeysInternal;
1022
+ var enumBugKeys = enumBugKeys$2;
1539
1023
 
1540
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1541
- if (CollectionPrototype) {
1542
- // some Chrome versions have non-configurable methods on DOMTokenList
1543
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1544
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
1545
- } catch (error) {
1546
- CollectionPrototype[ITERATOR] = ArrayValues;
1547
- }
1548
- if (!CollectionPrototype[TO_STRING_TAG]) {
1549
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
1550
- }
1551
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1552
- // some Chrome versions have non-configurable methods on DOMTokenList
1553
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1554
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1555
- } catch (error) {
1556
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1557
- }
1558
- }
1559
- }
1024
+ // `Object.keys` method
1025
+ // https://tc39.es/ecma262/#sec-object.keys
1026
+ // eslint-disable-next-line es/no-object-keys -- safe
1027
+ var objectKeys$1 = Object.keys || function keys(O) {
1028
+ return internalObjectKeys(O, enumBugKeys);
1560
1029
  };
1561
1030
 
1562
- for (var COLLECTION_NAME in DOMIterables) {
1563
- handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
1564
- }
1565
-
1566
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1567
-
1568
1031
  var DESCRIPTORS = descriptors;
1569
1032
  var uncurryThis = functionUncurryThis;
1570
1033
  var call = functionCall;
1571
- var fails = fails$b;
1572
- var objectKeys = objectKeys$2;
1034
+ var fails = fails$9;
1035
+ var objectKeys = objectKeys$1;
1573
1036
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1574
1037
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1575
- var toObject = toObject$3;
1038
+ var toObject = toObject$2;
1576
1039
  var IndexedObject = indexedObject;
1577
1040
 
1578
1041
  // eslint-disable-next-line es/no-object-assign -- safe
@@ -1632,9 +1095,15 @@ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign },
1632
1095
  assign: assign
1633
1096
  });
1634
1097
 
1635
- const StyledAtomsSegmentedControl = /*#__PURE__*/styled__default["default"].div.withConfig({
1636
- displayName: "atoms-segmented-controlstyles__StyledAtomsSegmentedControl",
1098
+ const SegmentedControlContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
1099
+ displayName: "atoms-segmented-controlstyles__SegmentedControlContainer",
1637
1100
  componentId: "sc-1lpqq2u-0"
1101
+ })(["display:flex;flex-direction:column;gap:", ";"], ({
1102
+ theme
1103
+ }) => theme.tokens.padding.XS);
1104
+ const SegmentedControlWrapper = /*#__PURE__*/styled__default["default"].div.withConfig({
1105
+ displayName: "atoms-segmented-controlstyles__SegmentedControlWrapper",
1106
+ componentId: "sc-1lpqq2u-1"
1638
1107
  })(["border-radius:", ";box-shadow:", ";display:flex;flex-direction:row;gap:", ";"], ({
1639
1108
  theme
1640
1109
  }) => theme.spacing.borderRadius.none, ({
@@ -1648,19 +1117,21 @@ const StyledAtomsSegmentedControl = /*#__PURE__*/styled__default["default"].div.
1648
1117
  }) => theme.components.segmentControl.gap);
1649
1118
  const Option = /*#__PURE__*/styled__default["default"].button.withConfig({
1650
1119
  displayName: "atoms-segmented-controlstyles__Option",
1651
- componentId: "sc-1lpqq2u-1"
1120
+ componentId: "sc-1lpqq2u-2"
1652
1121
  })(["background-color:", ";border:1px solid ", ";padding:", ";:first-of-type{border-right:0;}:last-of-type{border-left:0;}:not(:first-of-type) +:not(:last-of-type){border-right:0;border-left:0;}"], ({
1653
1122
  theme,
1654
- pressed
1655
- }) => pressed ? theme.components.segmentControl.container.color.pressed : theme.components.segmentControl.container.color.default, ({
1123
+ pressed,
1124
+ hasError
1125
+ }) => pressed ? hasError ? theme.tokens.red['200'] : theme.components.segmentControl.container.color.pressed : theme.components.segmentControl.container.color.default, ({
1656
1126
  theme,
1657
- pressed
1658
- }) => pressed ? theme.components.segmentControl.border.color.pressed : theme.components.segmentControl.border.color.default, ({
1127
+ pressed,
1128
+ hasError
1129
+ }) => hasError ? theme.tokens.red['600'] : pressed ? theme.components.segmentControl.border.color.pressed : theme.components.segmentControl.border.color.default, ({
1659
1130
  theme
1660
1131
  }) => `${theme.components.segmentControl.paddingVertical} ${theme.components.segmentControl.paddingVertical}`);
1661
1132
  const OptionLabel = /*#__PURE__*/styled__default["default"].label.withConfig({
1662
1133
  displayName: "atoms-segmented-controlstyles__OptionLabel",
1663
- componentId: "sc-1lpqq2u-2"
1134
+ componentId: "sc-1lpqq2u-3"
1664
1135
  })(["color:", ";font-size:", ";font-weight:", ";letter-spacing:", ";line-height:", ";text-decoration:", ";text-indent:", ";text-transform:", ";"], ({
1665
1136
  theme,
1666
1137
  pressed
@@ -1679,21 +1150,48 @@ const OptionLabel = /*#__PURE__*/styled__default["default"].label.withConfig({
1679
1150
  }) => theme.components.segmentControl.fieldLabel.paragraphSpacing, ({
1680
1151
  theme
1681
1152
  }) => theme.components.segmentControl.fieldLabel.textCase);
1682
-
1683
- function SegmentedControl(props) {
1684
- const [value, setValue] = react.useState(props.selected || '');
1685
- const onPressOption = valueSelected => {
1686
- setValue(valueSelected);
1687
- if (typeof props.onSelect === 'function') props.onSelect(valueSelected);
1153
+ const LabelError = /*#__PURE__*/styled__default["default"].label.withConfig({
1154
+ displayName: "atoms-segmented-controlstyles__LabelError",
1155
+ componentId: "sc-1lpqq2u-4"
1156
+ })(["color:", ";font-size:", ";font-weight:700;letter-spacing:", ";line-height:", ";text-decoration:", ";text-indent:", ";text-transform:", ";"], ({
1157
+ theme
1158
+ }) => theme.tokens.red['600'], ({
1159
+ theme
1160
+ }) => theme.typography.desktop.input.secondary.fontSize, ({
1161
+ theme
1162
+ }) => theme.typography.desktop.input.secondary.letterSpacing, ({
1163
+ theme
1164
+ }) => theme.typography.desktop.input.secondary.lineHeight, ({
1165
+ theme
1166
+ }) => theme.typography.desktop.input.secondary.textDecoration, ({
1167
+ theme
1168
+ }) => theme.typography.desktop.input.secondary.paragraphSpacing, ({
1169
+ theme
1170
+ }) => theme.typography.desktop.input.secondary.textCase);
1171
+
1172
+ function SegmentedControl({
1173
+ id = 'segmented-control-id',
1174
+ dataTestId = 'segmented-control-date-testid',
1175
+ value,
1176
+ options,
1177
+ errorMessage,
1178
+ onChange,
1179
+ onBlur,
1180
+ onFocus
1181
+ }) {
1182
+ const onClick = valueSelected => {
1183
+ onChange && onChange(valueSelected);
1688
1184
  };
1689
1185
  const renderOptions = () => {
1690
- if (props.options.length < 1) return jsxRuntime.jsx("p", {
1186
+ if (options.length < 1) return jsxRuntime.jsx("p", {
1691
1187
  children: "Two options at minimum are required."
1692
1188
  });
1693
- return props.options.map(option => jsxRuntime.jsx(Option, Object.assign({
1189
+ return options.map(option => jsxRuntime.jsx(Option, Object.assign({
1694
1190
  "data-testid": `segmentedcontrol-option-${option.value}`,
1695
- onClick: () => onPressOption(option.value),
1696
- pressed: option.value === value
1191
+ onClick: () => onClick(option.value),
1192
+ pressed: option.value === value,
1193
+ type: "button",
1194
+ hasError: !!errorMessage
1697
1195
  }, {
1698
1196
  children: jsxRuntime.jsx(OptionLabel, Object.assign({
1699
1197
  pressed: option.value === value
@@ -1702,9 +1200,21 @@ function SegmentedControl(props) {
1702
1200
  }))
1703
1201
  }), `segmentedcontrol-option-${option.value}`));
1704
1202
  };
1705
- return jsxRuntime.jsx(StyledAtomsSegmentedControl, {
1706
- children: renderOptions()
1707
- });
1203
+ return jsxRuntime.jsxs(SegmentedControlContainer, Object.assign({
1204
+ id: id,
1205
+ "data-testid": dataTestId
1206
+ }, {
1207
+ children: [jsxRuntime.jsx(SegmentedControlWrapper, Object.assign({
1208
+ onBlur: onBlur,
1209
+ onFocus: onFocus
1210
+ }, {
1211
+ children: renderOptions()
1212
+ })), errorMessage && jsxRuntime.jsx(LabelError, Object.assign({
1213
+ "data-testid": `${dataTestId}-error`
1214
+ }, {
1215
+ children: errorMessage
1216
+ }))]
1217
+ }));
1708
1218
  }
1709
1219
 
1710
1220
  exports.SegmentedControl = SegmentedControl;