@bolttech/atoms-segmented-control 0.14.2 → 0.14.3
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 +968 -263
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -19,7 +19,7 @@ var check = function (it) {
|
|
|
19
19
|
};
|
|
20
20
|
|
|
21
21
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
22
|
-
var global$
|
|
22
|
+
var global$e =
|
|
23
23
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
24
24
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
25
25
|
check(typeof window == 'object' && window) ||
|
|
@@ -31,7 +31,7 @@ var global$b =
|
|
|
31
31
|
|
|
32
32
|
var objectGetOwnPropertyDescriptor = {};
|
|
33
33
|
|
|
34
|
-
var fails$
|
|
34
|
+
var fails$e = function (exec) {
|
|
35
35
|
try {
|
|
36
36
|
return !!exec();
|
|
37
37
|
} catch (error) {
|
|
@@ -39,29 +39,29 @@ var fails$9 = function (exec) {
|
|
|
39
39
|
}
|
|
40
40
|
};
|
|
41
41
|
|
|
42
|
-
var fails$
|
|
42
|
+
var fails$d = fails$e;
|
|
43
43
|
|
|
44
44
|
// Detect IE8's incomplete defineProperty implementation
|
|
45
|
-
var descriptors = !fails$
|
|
45
|
+
var descriptors = !fails$d(function () {
|
|
46
46
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
47
47
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
var fails$
|
|
50
|
+
var fails$c = fails$e;
|
|
51
51
|
|
|
52
|
-
var functionBindNative = !fails$
|
|
52
|
+
var functionBindNative = !fails$c(function () {
|
|
53
53
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
54
54
|
var test = (function () { /* empty */ }).bind();
|
|
55
55
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
56
56
|
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
var NATIVE_BIND$
|
|
59
|
+
var NATIVE_BIND$2 = functionBindNative;
|
|
60
60
|
|
|
61
|
-
var call$
|
|
61
|
+
var call$9 = Function.prototype.call;
|
|
62
62
|
|
|
63
|
-
var functionCall = NATIVE_BIND$
|
|
64
|
-
return call$
|
|
63
|
+
var functionCall = NATIVE_BIND$2 ? call$9.bind(call$9) : function () {
|
|
64
|
+
return call$9.apply(call$9, arguments);
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
var objectPropertyIsEnumerable = {};
|
|
@@ -89,66 +89,66 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
|
|
|
89
89
|
};
|
|
90
90
|
};
|
|
91
91
|
|
|
92
|
-
var NATIVE_BIND = functionBindNative;
|
|
92
|
+
var NATIVE_BIND$1 = functionBindNative;
|
|
93
93
|
|
|
94
|
-
var FunctionPrototype$
|
|
95
|
-
var call$
|
|
96
|
-
var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$
|
|
94
|
+
var FunctionPrototype$2 = Function.prototype;
|
|
95
|
+
var call$8 = FunctionPrototype$2.call;
|
|
96
|
+
var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$2.bind.bind(call$8, call$8);
|
|
97
97
|
|
|
98
|
-
var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
|
|
98
|
+
var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
|
|
99
99
|
return function () {
|
|
100
|
-
return call$
|
|
100
|
+
return call$8.apply(fn, arguments);
|
|
101
101
|
};
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
-
var uncurryThis$
|
|
104
|
+
var uncurryThis$f = functionUncurryThis;
|
|
105
105
|
|
|
106
|
-
var toString$
|
|
107
|
-
var stringSlice$
|
|
106
|
+
var toString$5 = uncurryThis$f({}.toString);
|
|
107
|
+
var stringSlice$5 = uncurryThis$f(''.slice);
|
|
108
108
|
|
|
109
|
-
var classofRaw = function (it) {
|
|
110
|
-
return stringSlice$
|
|
109
|
+
var classofRaw$2 = function (it) {
|
|
110
|
+
return stringSlice$5(toString$5(it), 8, -1);
|
|
111
111
|
};
|
|
112
112
|
|
|
113
|
-
var uncurryThis$
|
|
114
|
-
var fails$
|
|
115
|
-
var classof = classofRaw;
|
|
113
|
+
var uncurryThis$e = functionUncurryThis;
|
|
114
|
+
var fails$b = fails$e;
|
|
115
|
+
var classof$3 = classofRaw$2;
|
|
116
116
|
|
|
117
|
-
var $Object$
|
|
118
|
-
var split = uncurryThis$
|
|
117
|
+
var $Object$3 = Object;
|
|
118
|
+
var split = uncurryThis$e(''.split);
|
|
119
119
|
|
|
120
120
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
121
|
-
var indexedObject = fails$
|
|
121
|
+
var indexedObject = fails$b(function () {
|
|
122
122
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
123
123
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
124
|
-
return !$Object$
|
|
124
|
+
return !$Object$3('z').propertyIsEnumerable(0);
|
|
125
125
|
}) ? function (it) {
|
|
126
|
-
return classof(it) == 'String' ? split(it, '') : $Object$
|
|
127
|
-
} : $Object$
|
|
126
|
+
return classof$3(it) == 'String' ? split(it, '') : $Object$3(it);
|
|
127
|
+
} : $Object$3;
|
|
128
128
|
|
|
129
129
|
// we can't use just `it == null` since of `document.all` special case
|
|
130
130
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
|
|
131
|
-
var isNullOrUndefined$
|
|
131
|
+
var isNullOrUndefined$3 = function (it) {
|
|
132
132
|
return it === null || it === undefined;
|
|
133
133
|
};
|
|
134
134
|
|
|
135
|
-
var isNullOrUndefined$
|
|
135
|
+
var isNullOrUndefined$2 = isNullOrUndefined$3;
|
|
136
136
|
|
|
137
|
-
var $TypeError$
|
|
137
|
+
var $TypeError$6 = TypeError;
|
|
138
138
|
|
|
139
139
|
// `RequireObjectCoercible` abstract operation
|
|
140
140
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
141
|
-
var requireObjectCoercible$
|
|
142
|
-
if (isNullOrUndefined$
|
|
141
|
+
var requireObjectCoercible$4 = function (it) {
|
|
142
|
+
if (isNullOrUndefined$2(it)) throw $TypeError$6("Can't call method on " + it);
|
|
143
143
|
return it;
|
|
144
144
|
};
|
|
145
145
|
|
|
146
146
|
// toObject with fallback for non-array-like ES3 strings
|
|
147
147
|
var IndexedObject$1 = indexedObject;
|
|
148
|
-
var requireObjectCoercible$
|
|
148
|
+
var requireObjectCoercible$3 = requireObjectCoercible$4;
|
|
149
149
|
|
|
150
|
-
var toIndexedObject$
|
|
151
|
-
return IndexedObject$1(requireObjectCoercible$
|
|
150
|
+
var toIndexedObject$4 = function (it) {
|
|
151
|
+
return IndexedObject$1(requireObjectCoercible$3(it));
|
|
152
152
|
};
|
|
153
153
|
|
|
154
154
|
var documentAll$2 = typeof document == 'object' && document.all;
|
|
@@ -168,45 +168,45 @@ var documentAll$1 = $documentAll$1.all;
|
|
|
168
168
|
|
|
169
169
|
// `IsCallable` abstract operation
|
|
170
170
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
171
|
-
var isCallable$
|
|
171
|
+
var isCallable$d = $documentAll$1.IS_HTMLDDA ? function (argument) {
|
|
172
172
|
return typeof argument == 'function' || argument === documentAll$1;
|
|
173
173
|
} : function (argument) {
|
|
174
174
|
return typeof argument == 'function';
|
|
175
175
|
};
|
|
176
176
|
|
|
177
|
-
var isCallable$
|
|
177
|
+
var isCallable$c = isCallable$d;
|
|
178
178
|
var $documentAll = documentAll_1;
|
|
179
179
|
|
|
180
180
|
var documentAll = $documentAll.all;
|
|
181
181
|
|
|
182
182
|
var isObject$5 = $documentAll.IS_HTMLDDA ? function (it) {
|
|
183
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
183
|
+
return typeof it == 'object' ? it !== null : isCallable$c(it) || it === documentAll;
|
|
184
184
|
} : function (it) {
|
|
185
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
185
|
+
return typeof it == 'object' ? it !== null : isCallable$c(it);
|
|
186
186
|
};
|
|
187
187
|
|
|
188
|
-
var global$
|
|
189
|
-
var isCallable$
|
|
188
|
+
var global$d = global$e;
|
|
189
|
+
var isCallable$b = isCallable$d;
|
|
190
190
|
|
|
191
191
|
var aFunction = function (argument) {
|
|
192
|
-
return isCallable$
|
|
192
|
+
return isCallable$b(argument) ? argument : undefined;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
-
var getBuiltIn$
|
|
196
|
-
return arguments.length < 2 ? aFunction(global$
|
|
195
|
+
var getBuiltIn$3 = function (namespace, method) {
|
|
196
|
+
return arguments.length < 2 ? aFunction(global$d[namespace]) : global$d[namespace] && global$d[namespace][method];
|
|
197
197
|
};
|
|
198
198
|
|
|
199
|
-
var uncurryThis$
|
|
199
|
+
var uncurryThis$d = functionUncurryThis;
|
|
200
200
|
|
|
201
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
201
|
+
var objectIsPrototypeOf = uncurryThis$d({}.isPrototypeOf);
|
|
202
202
|
|
|
203
203
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
204
204
|
|
|
205
|
-
var global$
|
|
205
|
+
var global$c = global$e;
|
|
206
206
|
var userAgent = engineUserAgent;
|
|
207
207
|
|
|
208
|
-
var process = global$
|
|
209
|
-
var Deno = global$
|
|
208
|
+
var process = global$c.process;
|
|
209
|
+
var Deno = global$c.Deno;
|
|
210
210
|
var versions = process && process.versions || Deno && Deno.version;
|
|
211
211
|
var v8 = versions && versions.v8;
|
|
212
212
|
var match, version;
|
|
@@ -233,19 +233,19 @@ var engineV8Version = version;
|
|
|
233
233
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
234
234
|
|
|
235
235
|
var V8_VERSION = engineV8Version;
|
|
236
|
-
var fails$
|
|
237
|
-
var global$
|
|
236
|
+
var fails$a = fails$e;
|
|
237
|
+
var global$b = global$e;
|
|
238
238
|
|
|
239
|
-
var $String$
|
|
239
|
+
var $String$4 = global$b.String;
|
|
240
240
|
|
|
241
241
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
242
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
242
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$a(function () {
|
|
243
243
|
var symbol = Symbol();
|
|
244
244
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
245
245
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
246
246
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
247
247
|
// of course, fail.
|
|
248
|
-
return !$String$
|
|
248
|
+
return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
249
249
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
250
250
|
!Symbol.sham && V8_VERSION && V8_VERSION < 41;
|
|
251
251
|
});
|
|
@@ -258,93 +258,93 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
258
258
|
&& !Symbol.sham
|
|
259
259
|
&& typeof Symbol.iterator == 'symbol';
|
|
260
260
|
|
|
261
|
-
var getBuiltIn$
|
|
262
|
-
var isCallable$
|
|
261
|
+
var getBuiltIn$2 = getBuiltIn$3;
|
|
262
|
+
var isCallable$a = isCallable$d;
|
|
263
263
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
264
264
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
265
265
|
|
|
266
|
-
var $Object$
|
|
266
|
+
var $Object$2 = Object;
|
|
267
267
|
|
|
268
268
|
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
269
269
|
return typeof it == 'symbol';
|
|
270
270
|
} : function (it) {
|
|
271
|
-
var $Symbol = getBuiltIn$
|
|
272
|
-
return isCallable$
|
|
271
|
+
var $Symbol = getBuiltIn$2('Symbol');
|
|
272
|
+
return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
-
var $String$
|
|
275
|
+
var $String$3 = String;
|
|
276
276
|
|
|
277
277
|
var tryToString$1 = function (argument) {
|
|
278
278
|
try {
|
|
279
|
-
return $String$
|
|
279
|
+
return $String$3(argument);
|
|
280
280
|
} catch (error) {
|
|
281
281
|
return 'Object';
|
|
282
282
|
}
|
|
283
283
|
};
|
|
284
284
|
|
|
285
|
-
var isCallable$
|
|
285
|
+
var isCallable$9 = isCallable$d;
|
|
286
286
|
var tryToString = tryToString$1;
|
|
287
287
|
|
|
288
|
-
var $TypeError$
|
|
288
|
+
var $TypeError$5 = TypeError;
|
|
289
289
|
|
|
290
290
|
// `Assert: IsCallable(argument) is true`
|
|
291
291
|
var aCallable$1 = function (argument) {
|
|
292
|
-
if (isCallable$
|
|
293
|
-
throw $TypeError$
|
|
292
|
+
if (isCallable$9(argument)) return argument;
|
|
293
|
+
throw $TypeError$5(tryToString(argument) + ' is not a function');
|
|
294
294
|
};
|
|
295
295
|
|
|
296
296
|
var aCallable = aCallable$1;
|
|
297
|
-
var isNullOrUndefined = isNullOrUndefined$
|
|
297
|
+
var isNullOrUndefined$1 = isNullOrUndefined$3;
|
|
298
298
|
|
|
299
299
|
// `GetMethod` abstract operation
|
|
300
300
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
301
|
-
var getMethod$
|
|
301
|
+
var getMethod$2 = function (V, P) {
|
|
302
302
|
var func = V[P];
|
|
303
|
-
return isNullOrUndefined(func) ? undefined : aCallable(func);
|
|
303
|
+
return isNullOrUndefined$1(func) ? undefined : aCallable(func);
|
|
304
304
|
};
|
|
305
305
|
|
|
306
|
-
var call$
|
|
307
|
-
var isCallable$
|
|
306
|
+
var call$7 = functionCall;
|
|
307
|
+
var isCallable$8 = isCallable$d;
|
|
308
308
|
var isObject$4 = isObject$5;
|
|
309
309
|
|
|
310
|
-
var $TypeError$
|
|
310
|
+
var $TypeError$4 = TypeError;
|
|
311
311
|
|
|
312
312
|
// `OrdinaryToPrimitive` abstract operation
|
|
313
313
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
314
314
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
315
315
|
var fn, val;
|
|
316
|
-
if (pref === 'string' && isCallable$
|
|
317
|
-
if (isCallable$
|
|
318
|
-
if (pref !== 'string' && isCallable$
|
|
319
|
-
throw $TypeError$
|
|
316
|
+
if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$4(val = call$7(fn, input))) return val;
|
|
317
|
+
if (isCallable$8(fn = input.valueOf) && !isObject$4(val = call$7(fn, input))) return val;
|
|
318
|
+
if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$4(val = call$7(fn, input))) return val;
|
|
319
|
+
throw $TypeError$4("Can't convert object to primitive value");
|
|
320
320
|
};
|
|
321
321
|
|
|
322
|
-
var shared$
|
|
322
|
+
var shared$4 = {exports: {}};
|
|
323
323
|
|
|
324
|
-
var global$
|
|
324
|
+
var global$a = global$e;
|
|
325
325
|
|
|
326
326
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
327
327
|
var defineProperty$2 = Object.defineProperty;
|
|
328
328
|
|
|
329
329
|
var defineGlobalProperty$3 = function (key, value) {
|
|
330
330
|
try {
|
|
331
|
-
defineProperty$2(global$
|
|
331
|
+
defineProperty$2(global$a, key, { value: value, configurable: true, writable: true });
|
|
332
332
|
} catch (error) {
|
|
333
|
-
global$
|
|
333
|
+
global$a[key] = value;
|
|
334
334
|
} return value;
|
|
335
335
|
};
|
|
336
336
|
|
|
337
|
-
var global$
|
|
337
|
+
var global$9 = global$e;
|
|
338
338
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
339
339
|
|
|
340
340
|
var SHARED = '__core-js_shared__';
|
|
341
|
-
var store$3 = global$
|
|
341
|
+
var store$3 = global$9[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
342
342
|
|
|
343
343
|
var sharedStore = store$3;
|
|
344
344
|
|
|
345
345
|
var store$2 = sharedStore;
|
|
346
346
|
|
|
347
|
-
(shared$
|
|
347
|
+
(shared$4.exports = function (key, value) {
|
|
348
348
|
return store$2[key] || (store$2[key] = value !== undefined ? value : {});
|
|
349
349
|
})('versions', []).push({
|
|
350
350
|
version: '3.30.2',
|
|
@@ -354,50 +354,50 @@ var store$2 = sharedStore;
|
|
|
354
354
|
source: 'https://github.com/zloirock/core-js'
|
|
355
355
|
});
|
|
356
356
|
|
|
357
|
-
var requireObjectCoercible = requireObjectCoercible$
|
|
357
|
+
var requireObjectCoercible$2 = requireObjectCoercible$4;
|
|
358
358
|
|
|
359
|
-
var $Object = Object;
|
|
359
|
+
var $Object$1 = Object;
|
|
360
360
|
|
|
361
361
|
// `ToObject` abstract operation
|
|
362
362
|
// https://tc39.es/ecma262/#sec-toobject
|
|
363
|
-
var toObject$
|
|
364
|
-
return $Object(requireObjectCoercible(argument));
|
|
363
|
+
var toObject$3 = function (argument) {
|
|
364
|
+
return $Object$1(requireObjectCoercible$2(argument));
|
|
365
365
|
};
|
|
366
366
|
|
|
367
|
-
var uncurryThis$
|
|
368
|
-
var toObject$
|
|
367
|
+
var uncurryThis$c = functionUncurryThis;
|
|
368
|
+
var toObject$2 = toObject$3;
|
|
369
369
|
|
|
370
|
-
var hasOwnProperty = uncurryThis$
|
|
370
|
+
var hasOwnProperty = uncurryThis$c({}.hasOwnProperty);
|
|
371
371
|
|
|
372
372
|
// `HasOwnProperty` abstract operation
|
|
373
373
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
374
374
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
375
375
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
376
|
-
return hasOwnProperty(toObject$
|
|
376
|
+
return hasOwnProperty(toObject$2(it), key);
|
|
377
377
|
};
|
|
378
378
|
|
|
379
|
-
var uncurryThis$
|
|
379
|
+
var uncurryThis$b = functionUncurryThis;
|
|
380
380
|
|
|
381
381
|
var id = 0;
|
|
382
382
|
var postfix = Math.random();
|
|
383
|
-
var toString = uncurryThis$
|
|
383
|
+
var toString$4 = uncurryThis$b(1.0.toString);
|
|
384
384
|
|
|
385
385
|
var uid$2 = function (key) {
|
|
386
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
|
386
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
|
|
387
387
|
};
|
|
388
388
|
|
|
389
|
-
var global$
|
|
390
|
-
var shared$
|
|
389
|
+
var global$8 = global$e;
|
|
390
|
+
var shared$3 = shared$4.exports;
|
|
391
391
|
var hasOwn$6 = hasOwnProperty_1;
|
|
392
392
|
var uid$1 = uid$2;
|
|
393
393
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
394
394
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
395
395
|
|
|
396
|
-
var Symbol$1 = global$
|
|
397
|
-
var WellKnownSymbolsStore = shared$
|
|
396
|
+
var Symbol$1 = global$8.Symbol;
|
|
397
|
+
var WellKnownSymbolsStore = shared$3('wks');
|
|
398
398
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
399
399
|
|
|
400
|
-
var wellKnownSymbol$
|
|
400
|
+
var wellKnownSymbol$5 = function (name) {
|
|
401
401
|
if (!hasOwn$6(WellKnownSymbolsStore, name)) {
|
|
402
402
|
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
|
|
403
403
|
? Symbol$1[name]
|
|
@@ -405,27 +405,27 @@ var wellKnownSymbol$1 = function (name) {
|
|
|
405
405
|
} return WellKnownSymbolsStore[name];
|
|
406
406
|
};
|
|
407
407
|
|
|
408
|
-
var call$
|
|
408
|
+
var call$6 = functionCall;
|
|
409
409
|
var isObject$3 = isObject$5;
|
|
410
410
|
var isSymbol$1 = isSymbol$2;
|
|
411
|
-
var getMethod = getMethod$
|
|
411
|
+
var getMethod$1 = getMethod$2;
|
|
412
412
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
413
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
413
|
+
var wellKnownSymbol$4 = wellKnownSymbol$5;
|
|
414
414
|
|
|
415
|
-
var $TypeError$
|
|
416
|
-
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
|
415
|
+
var $TypeError$3 = TypeError;
|
|
416
|
+
var TO_PRIMITIVE = wellKnownSymbol$4('toPrimitive');
|
|
417
417
|
|
|
418
418
|
// `ToPrimitive` abstract operation
|
|
419
419
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
420
420
|
var toPrimitive$1 = function (input, pref) {
|
|
421
421
|
if (!isObject$3(input) || isSymbol$1(input)) return input;
|
|
422
|
-
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
|
422
|
+
var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
|
|
423
423
|
var result;
|
|
424
424
|
if (exoticToPrim) {
|
|
425
425
|
if (pref === undefined) pref = 'default';
|
|
426
|
-
result = call$
|
|
426
|
+
result = call$6(exoticToPrim, input, pref);
|
|
427
427
|
if (!isObject$3(result) || isSymbol$1(result)) return result;
|
|
428
|
-
throw $TypeError$
|
|
428
|
+
throw $TypeError$3("Can't convert object to primitive value");
|
|
429
429
|
}
|
|
430
430
|
if (pref === undefined) pref = 'number';
|
|
431
431
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -441,34 +441,34 @@ var toPropertyKey$2 = function (argument) {
|
|
|
441
441
|
return isSymbol(key) ? key : key + '';
|
|
442
442
|
};
|
|
443
443
|
|
|
444
|
-
var global$
|
|
444
|
+
var global$7 = global$e;
|
|
445
445
|
var isObject$2 = isObject$5;
|
|
446
446
|
|
|
447
|
-
var document$1 = global$
|
|
447
|
+
var document$1 = global$7.document;
|
|
448
448
|
// typeof document.createElement is 'object' in old IE
|
|
449
449
|
var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
|
|
450
450
|
|
|
451
|
-
var documentCreateElement = function (it) {
|
|
451
|
+
var documentCreateElement$1 = function (it) {
|
|
452
452
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
453
453
|
};
|
|
454
454
|
|
|
455
|
-
var DESCRIPTORS$
|
|
456
|
-
var fails$
|
|
457
|
-
var createElement = documentCreateElement;
|
|
455
|
+
var DESCRIPTORS$8 = descriptors;
|
|
456
|
+
var fails$9 = fails$e;
|
|
457
|
+
var createElement = documentCreateElement$1;
|
|
458
458
|
|
|
459
459
|
// Thanks to IE8 for its funny defineProperty
|
|
460
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
460
|
+
var ie8DomDefine = !DESCRIPTORS$8 && !fails$9(function () {
|
|
461
461
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
462
462
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
463
463
|
get: function () { return 7; }
|
|
464
464
|
}).a != 7;
|
|
465
465
|
});
|
|
466
466
|
|
|
467
|
-
var DESCRIPTORS$
|
|
468
|
-
var call$
|
|
467
|
+
var DESCRIPTORS$7 = descriptors;
|
|
468
|
+
var call$5 = functionCall;
|
|
469
469
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
470
470
|
var createPropertyDescriptor$1 = createPropertyDescriptor$2;
|
|
471
|
-
var toIndexedObject$
|
|
471
|
+
var toIndexedObject$3 = toIndexedObject$4;
|
|
472
472
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
473
473
|
var hasOwn$5 = hasOwnProperty_1;
|
|
474
474
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
@@ -478,23 +478,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
478
478
|
|
|
479
479
|
// `Object.getOwnPropertyDescriptor` method
|
|
480
480
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
481
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
482
|
-
O = toIndexedObject$
|
|
481
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
482
|
+
O = toIndexedObject$3(O);
|
|
483
483
|
P = toPropertyKey$1(P);
|
|
484
484
|
if (IE8_DOM_DEFINE$1) try {
|
|
485
485
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
486
486
|
} catch (error) { /* empty */ }
|
|
487
|
-
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$
|
|
487
|
+
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$5(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
488
488
|
};
|
|
489
489
|
|
|
490
490
|
var objectDefineProperty = {};
|
|
491
491
|
|
|
492
|
-
var DESCRIPTORS$
|
|
493
|
-
var fails$
|
|
492
|
+
var DESCRIPTORS$6 = descriptors;
|
|
493
|
+
var fails$8 = fails$e;
|
|
494
494
|
|
|
495
495
|
// V8 ~ Chrome 36-
|
|
496
496
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
497
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
497
|
+
var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$8(function () {
|
|
498
498
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
499
499
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
500
500
|
value: 42,
|
|
@@ -504,22 +504,22 @@ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
|
|
|
504
504
|
|
|
505
505
|
var isObject$1 = isObject$5;
|
|
506
506
|
|
|
507
|
-
var $String$
|
|
508
|
-
var $TypeError$
|
|
507
|
+
var $String$2 = String;
|
|
508
|
+
var $TypeError$2 = TypeError;
|
|
509
509
|
|
|
510
510
|
// `Assert: Type(argument) is Object`
|
|
511
|
-
var anObject$
|
|
511
|
+
var anObject$7 = function (argument) {
|
|
512
512
|
if (isObject$1(argument)) return argument;
|
|
513
|
-
throw $TypeError$
|
|
513
|
+
throw $TypeError$2($String$2(argument) + ' is not an object');
|
|
514
514
|
};
|
|
515
515
|
|
|
516
|
-
var DESCRIPTORS$
|
|
516
|
+
var DESCRIPTORS$5 = descriptors;
|
|
517
517
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
518
|
-
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
519
|
-
var anObject$
|
|
518
|
+
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
519
|
+
var anObject$6 = anObject$7;
|
|
520
520
|
var toPropertyKey = toPropertyKey$2;
|
|
521
521
|
|
|
522
|
-
var $TypeError = TypeError;
|
|
522
|
+
var $TypeError$1 = TypeError;
|
|
523
523
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
524
524
|
var $defineProperty = Object.defineProperty;
|
|
525
525
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -530,10 +530,10 @@ var WRITABLE = 'writable';
|
|
|
530
530
|
|
|
531
531
|
// `Object.defineProperty` method
|
|
532
532
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
533
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
534
|
-
anObject$
|
|
533
|
+
objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
534
|
+
anObject$6(O);
|
|
535
535
|
P = toPropertyKey(P);
|
|
536
|
-
anObject$
|
|
536
|
+
anObject$6(Attributes);
|
|
537
537
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
538
538
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
539
539
|
if (current && current[WRITABLE]) {
|
|
@@ -546,23 +546,23 @@ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
|
|
|
546
546
|
}
|
|
547
547
|
} return $defineProperty(O, P, Attributes);
|
|
548
548
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
549
|
-
anObject$
|
|
549
|
+
anObject$6(O);
|
|
550
550
|
P = toPropertyKey(P);
|
|
551
|
-
anObject$
|
|
551
|
+
anObject$6(Attributes);
|
|
552
552
|
if (IE8_DOM_DEFINE) try {
|
|
553
553
|
return $defineProperty(O, P, Attributes);
|
|
554
554
|
} catch (error) { /* empty */ }
|
|
555
|
-
if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
|
|
555
|
+
if ('get' in Attributes || 'set' in Attributes) throw $TypeError$1('Accessors not supported');
|
|
556
556
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
557
557
|
return O;
|
|
558
558
|
};
|
|
559
559
|
|
|
560
|
-
var DESCRIPTORS$
|
|
561
|
-
var definePropertyModule$
|
|
560
|
+
var DESCRIPTORS$4 = descriptors;
|
|
561
|
+
var definePropertyModule$3 = objectDefineProperty;
|
|
562
562
|
var createPropertyDescriptor = createPropertyDescriptor$2;
|
|
563
563
|
|
|
564
|
-
var createNonEnumerableProperty$
|
|
565
|
-
return definePropertyModule$
|
|
564
|
+
var createNonEnumerableProperty$3 = DESCRIPTORS$4 ? function (object, key, value) {
|
|
565
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
|
|
566
566
|
} : function (object, key, value) {
|
|
567
567
|
object[key] = value;
|
|
568
568
|
return object;
|
|
@@ -570,17 +570,17 @@ var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value
|
|
|
570
570
|
|
|
571
571
|
var makeBuiltIn$2 = {exports: {}};
|
|
572
572
|
|
|
573
|
-
var DESCRIPTORS$
|
|
573
|
+
var DESCRIPTORS$3 = descriptors;
|
|
574
574
|
var hasOwn$4 = hasOwnProperty_1;
|
|
575
575
|
|
|
576
|
-
var FunctionPrototype = Function.prototype;
|
|
576
|
+
var FunctionPrototype$1 = Function.prototype;
|
|
577
577
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
578
|
-
var getDescriptor = DESCRIPTORS$
|
|
578
|
+
var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
|
|
579
579
|
|
|
580
|
-
var EXISTS = hasOwn$4(FunctionPrototype, 'name');
|
|
580
|
+
var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
|
|
581
581
|
// additional protection from minified / mangled / dropped function names
|
|
582
582
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
583
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
583
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
584
584
|
|
|
585
585
|
var functionName = {
|
|
586
586
|
EXISTS: EXISTS,
|
|
@@ -588,14 +588,14 @@ var functionName = {
|
|
|
588
588
|
CONFIGURABLE: CONFIGURABLE
|
|
589
589
|
};
|
|
590
590
|
|
|
591
|
-
var uncurryThis$
|
|
592
|
-
var isCallable$
|
|
591
|
+
var uncurryThis$a = functionUncurryThis;
|
|
592
|
+
var isCallable$7 = isCallable$d;
|
|
593
593
|
var store$1 = sharedStore;
|
|
594
594
|
|
|
595
|
-
var functionToString = uncurryThis$
|
|
595
|
+
var functionToString = uncurryThis$a(Function.toString);
|
|
596
596
|
|
|
597
597
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
598
|
-
if (!isCallable$
|
|
598
|
+
if (!isCallable$7(store$1.inspectSource)) {
|
|
599
599
|
store$1.inspectSource = function (it) {
|
|
600
600
|
return functionToString(it);
|
|
601
601
|
};
|
|
@@ -603,36 +603,36 @@ if (!isCallable$4(store$1.inspectSource)) {
|
|
|
603
603
|
|
|
604
604
|
var inspectSource$1 = store$1.inspectSource;
|
|
605
605
|
|
|
606
|
-
var global$
|
|
607
|
-
var isCallable$
|
|
606
|
+
var global$6 = global$e;
|
|
607
|
+
var isCallable$6 = isCallable$d;
|
|
608
608
|
|
|
609
|
-
var WeakMap$1 = global$
|
|
609
|
+
var WeakMap$1 = global$6.WeakMap;
|
|
610
610
|
|
|
611
|
-
var weakMapBasicDetection = isCallable$
|
|
611
|
+
var weakMapBasicDetection = isCallable$6(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
612
612
|
|
|
613
|
-
var shared$
|
|
613
|
+
var shared$2 = shared$4.exports;
|
|
614
614
|
var uid = uid$2;
|
|
615
615
|
|
|
616
|
-
var keys = shared$
|
|
616
|
+
var keys = shared$2('keys');
|
|
617
617
|
|
|
618
|
-
var sharedKey$
|
|
618
|
+
var sharedKey$2 = function (key) {
|
|
619
619
|
return keys[key] || (keys[key] = uid(key));
|
|
620
620
|
};
|
|
621
621
|
|
|
622
|
-
var hiddenKeys$
|
|
622
|
+
var hiddenKeys$4 = {};
|
|
623
623
|
|
|
624
624
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
625
|
-
var global$
|
|
625
|
+
var global$5 = global$e;
|
|
626
626
|
var isObject = isObject$5;
|
|
627
|
-
var createNonEnumerableProperty$
|
|
627
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
|
|
628
628
|
var hasOwn$3 = hasOwnProperty_1;
|
|
629
|
-
var shared = sharedStore;
|
|
630
|
-
var sharedKey = sharedKey$
|
|
631
|
-
var hiddenKeys$
|
|
629
|
+
var shared$1 = sharedStore;
|
|
630
|
+
var sharedKey$1 = sharedKey$2;
|
|
631
|
+
var hiddenKeys$3 = hiddenKeys$4;
|
|
632
632
|
|
|
633
633
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
634
|
-
var TypeError$1 = global$
|
|
635
|
-
var WeakMap = global$
|
|
634
|
+
var TypeError$1 = global$5.TypeError;
|
|
635
|
+
var WeakMap = global$5.WeakMap;
|
|
636
636
|
var set, get, has;
|
|
637
637
|
|
|
638
638
|
var enforce = function (it) {
|
|
@@ -648,8 +648,8 @@ var getterFor = function (TYPE) {
|
|
|
648
648
|
};
|
|
649
649
|
};
|
|
650
650
|
|
|
651
|
-
if (NATIVE_WEAK_MAP || shared.state) {
|
|
652
|
-
var store = shared.state || (shared.state = new WeakMap());
|
|
651
|
+
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
652
|
+
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
653
653
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
654
654
|
store.get = store.get;
|
|
655
655
|
store.has = store.has;
|
|
@@ -668,12 +668,12 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
668
668
|
return store.has(it);
|
|
669
669
|
};
|
|
670
670
|
} else {
|
|
671
|
-
var STATE = sharedKey('state');
|
|
672
|
-
hiddenKeys$
|
|
671
|
+
var STATE = sharedKey$1('state');
|
|
672
|
+
hiddenKeys$3[STATE] = true;
|
|
673
673
|
set = function (it, metadata) {
|
|
674
674
|
if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
675
675
|
metadata.facade = it;
|
|
676
|
-
createNonEnumerableProperty$
|
|
676
|
+
createNonEnumerableProperty$2(it, STATE, metadata);
|
|
677
677
|
return metadata;
|
|
678
678
|
};
|
|
679
679
|
get = function (it) {
|
|
@@ -692,38 +692,38 @@ var internalState = {
|
|
|
692
692
|
getterFor: getterFor
|
|
693
693
|
};
|
|
694
694
|
|
|
695
|
-
var uncurryThis$
|
|
696
|
-
var fails$
|
|
697
|
-
var isCallable$
|
|
695
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
696
|
+
var fails$7 = fails$e;
|
|
697
|
+
var isCallable$5 = isCallable$d;
|
|
698
698
|
var hasOwn$2 = hasOwnProperty_1;
|
|
699
|
-
var DESCRIPTORS$
|
|
699
|
+
var DESCRIPTORS$2 = descriptors;
|
|
700
700
|
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
|
701
701
|
var inspectSource = inspectSource$1;
|
|
702
702
|
var InternalStateModule = internalState;
|
|
703
703
|
|
|
704
704
|
var enforceInternalState = InternalStateModule.enforce;
|
|
705
|
-
var getInternalState = InternalStateModule.get;
|
|
706
|
-
var $String = String;
|
|
705
|
+
var getInternalState$1 = InternalStateModule.get;
|
|
706
|
+
var $String$1 = String;
|
|
707
707
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
708
708
|
var defineProperty$1 = Object.defineProperty;
|
|
709
|
-
var stringSlice = uncurryThis$
|
|
710
|
-
var replace = uncurryThis$
|
|
711
|
-
var join = uncurryThis$
|
|
709
|
+
var stringSlice$4 = uncurryThis$9(''.slice);
|
|
710
|
+
var replace$2 = uncurryThis$9(''.replace);
|
|
711
|
+
var join = uncurryThis$9([].join);
|
|
712
712
|
|
|
713
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
713
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$7(function () {
|
|
714
714
|
return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
715
715
|
});
|
|
716
716
|
|
|
717
717
|
var TEMPLATE = String(String).split('String');
|
|
718
718
|
|
|
719
719
|
var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
720
|
-
if (stringSlice($String(name), 0, 7) === 'Symbol(') {
|
|
721
|
-
name = '[' + replace($String(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
720
|
+
if (stringSlice$4($String$1(name), 0, 7) === 'Symbol(') {
|
|
721
|
+
name = '[' + replace$2($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
|
|
722
722
|
}
|
|
723
723
|
if (options && options.getter) name = 'get ' + name;
|
|
724
724
|
if (options && options.setter) name = 'set ' + name;
|
|
725
725
|
if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
|
726
|
-
if (DESCRIPTORS$
|
|
726
|
+
if (DESCRIPTORS$2) defineProperty$1(value, 'name', { value: name, configurable: true });
|
|
727
727
|
else value.name = name;
|
|
728
728
|
}
|
|
729
729
|
if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
|
|
@@ -731,7 +731,7 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
731
731
|
}
|
|
732
732
|
try {
|
|
733
733
|
if (options && hasOwn$2(options, 'constructor') && options.constructor) {
|
|
734
|
-
if (DESCRIPTORS$
|
|
734
|
+
if (DESCRIPTORS$2) defineProperty$1(value, 'prototype', { writable: false });
|
|
735
735
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
736
736
|
} else if (value.prototype) value.prototype = undefined;
|
|
737
737
|
} catch (error) { /* empty */ }
|
|
@@ -744,19 +744,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
744
744
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
745
745
|
// eslint-disable-next-line no-extend-native -- required
|
|
746
746
|
Function.prototype.toString = makeBuiltIn$1(function toString() {
|
|
747
|
-
return isCallable$
|
|
747
|
+
return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
|
|
748
748
|
}, 'toString');
|
|
749
749
|
|
|
750
|
-
var isCallable$
|
|
751
|
-
var definePropertyModule$
|
|
750
|
+
var isCallable$4 = isCallable$d;
|
|
751
|
+
var definePropertyModule$2 = objectDefineProperty;
|
|
752
752
|
var makeBuiltIn = makeBuiltIn$2.exports;
|
|
753
753
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
754
754
|
|
|
755
|
-
var defineBuiltIn$
|
|
755
|
+
var defineBuiltIn$2 = function (O, key, value, options) {
|
|
756
756
|
if (!options) options = {};
|
|
757
757
|
var simple = options.enumerable;
|
|
758
758
|
var name = options.name !== undefined ? options.name : key;
|
|
759
|
-
if (isCallable$
|
|
759
|
+
if (isCallable$4(value)) makeBuiltIn(value, name, options);
|
|
760
760
|
if (options.global) {
|
|
761
761
|
if (simple) O[key] = value;
|
|
762
762
|
else defineGlobalProperty$1(key, value);
|
|
@@ -766,7 +766,7 @@ var defineBuiltIn$1 = function (O, key, value, options) {
|
|
|
766
766
|
else if (O[key]) simple = true;
|
|
767
767
|
} catch (error) { /* empty */ }
|
|
768
768
|
if (simple) O[key] = value;
|
|
769
|
-
else definePropertyModule$
|
|
769
|
+
else definePropertyModule$2.f(O, key, {
|
|
770
770
|
value: value,
|
|
771
771
|
enumerable: false,
|
|
772
772
|
configurable: !options.nonConfigurable,
|
|
@@ -778,65 +778,65 @@ var defineBuiltIn$1 = function (O, key, value, options) {
|
|
|
778
778
|
var objectGetOwnPropertyNames = {};
|
|
779
779
|
|
|
780
780
|
var ceil = Math.ceil;
|
|
781
|
-
var floor = Math.floor;
|
|
781
|
+
var floor$1 = Math.floor;
|
|
782
782
|
|
|
783
783
|
// `Math.trunc` method
|
|
784
784
|
// https://tc39.es/ecma262/#sec-math.trunc
|
|
785
785
|
// eslint-disable-next-line es/no-math-trunc -- safe
|
|
786
786
|
var mathTrunc = Math.trunc || function trunc(x) {
|
|
787
787
|
var n = +x;
|
|
788
|
-
return (n > 0 ? floor : ceil)(n);
|
|
788
|
+
return (n > 0 ? floor$1 : ceil)(n);
|
|
789
789
|
};
|
|
790
790
|
|
|
791
791
|
var trunc = mathTrunc;
|
|
792
792
|
|
|
793
793
|
// `ToIntegerOrInfinity` abstract operation
|
|
794
794
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
795
|
-
var toIntegerOrInfinity$
|
|
795
|
+
var toIntegerOrInfinity$4 = function (argument) {
|
|
796
796
|
var number = +argument;
|
|
797
797
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
798
798
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
799
799
|
};
|
|
800
800
|
|
|
801
|
-
var toIntegerOrInfinity$
|
|
801
|
+
var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
|
|
802
802
|
|
|
803
|
-
var max = Math.max;
|
|
804
|
-
var min$
|
|
803
|
+
var max$1 = Math.max;
|
|
804
|
+
var min$2 = Math.min;
|
|
805
805
|
|
|
806
806
|
// Helper for a popular repeating case of the spec:
|
|
807
807
|
// Let integer be ? ToInteger(index).
|
|
808
808
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
809
809
|
var toAbsoluteIndex$1 = function (index, length) {
|
|
810
|
-
var integer = toIntegerOrInfinity$
|
|
811
|
-
return integer < 0 ? max(integer + length, 0) : min$
|
|
810
|
+
var integer = toIntegerOrInfinity$3(index);
|
|
811
|
+
return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
|
|
812
812
|
};
|
|
813
813
|
|
|
814
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$
|
|
814
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
|
|
815
815
|
|
|
816
|
-
var min = Math.min;
|
|
816
|
+
var min$1 = Math.min;
|
|
817
817
|
|
|
818
818
|
// `ToLength` abstract operation
|
|
819
819
|
// https://tc39.es/ecma262/#sec-tolength
|
|
820
|
-
var toLength$
|
|
821
|
-
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
820
|
+
var toLength$2 = function (argument) {
|
|
821
|
+
return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
822
822
|
};
|
|
823
823
|
|
|
824
|
-
var toLength = toLength$
|
|
824
|
+
var toLength$1 = toLength$2;
|
|
825
825
|
|
|
826
826
|
// `LengthOfArrayLike` abstract operation
|
|
827
827
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
828
828
|
var lengthOfArrayLike$1 = function (obj) {
|
|
829
|
-
return toLength(obj.length);
|
|
829
|
+
return toLength$1(obj.length);
|
|
830
830
|
};
|
|
831
831
|
|
|
832
|
-
var toIndexedObject$
|
|
832
|
+
var toIndexedObject$2 = toIndexedObject$4;
|
|
833
833
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
834
834
|
var lengthOfArrayLike = lengthOfArrayLike$1;
|
|
835
835
|
|
|
836
836
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
837
|
-
var createMethod = function (IS_INCLUDES) {
|
|
837
|
+
var createMethod$1 = function (IS_INCLUDES) {
|
|
838
838
|
return function ($this, el, fromIndex) {
|
|
839
|
-
var O = toIndexedObject$
|
|
839
|
+
var O = toIndexedObject$2($this);
|
|
840
840
|
var length = lengthOfArrayLike(O);
|
|
841
841
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
842
842
|
var value;
|
|
@@ -856,35 +856,35 @@ var createMethod = function (IS_INCLUDES) {
|
|
|
856
856
|
var arrayIncludes = {
|
|
857
857
|
// `Array.prototype.includes` method
|
|
858
858
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
859
|
-
includes: createMethod(true),
|
|
859
|
+
includes: createMethod$1(true),
|
|
860
860
|
// `Array.prototype.indexOf` method
|
|
861
861
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
862
|
-
indexOf: createMethod(false)
|
|
862
|
+
indexOf: createMethod$1(false)
|
|
863
863
|
};
|
|
864
864
|
|
|
865
|
-
var uncurryThis$
|
|
865
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
866
866
|
var hasOwn$1 = hasOwnProperty_1;
|
|
867
|
-
var toIndexedObject = toIndexedObject$
|
|
868
|
-
var indexOf = arrayIncludes.indexOf;
|
|
869
|
-
var hiddenKeys$
|
|
867
|
+
var toIndexedObject$1 = toIndexedObject$4;
|
|
868
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
|
869
|
+
var hiddenKeys$2 = hiddenKeys$4;
|
|
870
870
|
|
|
871
|
-
var push = uncurryThis$
|
|
871
|
+
var push$1 = uncurryThis$8([].push);
|
|
872
872
|
|
|
873
873
|
var objectKeysInternal = function (object, names) {
|
|
874
|
-
var O = toIndexedObject(object);
|
|
874
|
+
var O = toIndexedObject$1(object);
|
|
875
875
|
var i = 0;
|
|
876
876
|
var result = [];
|
|
877
877
|
var key;
|
|
878
|
-
for (key in O) !hasOwn$1(hiddenKeys$
|
|
878
|
+
for (key in O) !hasOwn$1(hiddenKeys$2, key) && hasOwn$1(O, key) && push$1(result, key);
|
|
879
879
|
// Don't enum bug & hidden keys
|
|
880
880
|
while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
|
|
881
|
-
~indexOf(result, key) || push(result, key);
|
|
881
|
+
~indexOf$1(result, key) || push$1(result, key);
|
|
882
882
|
}
|
|
883
883
|
return result;
|
|
884
884
|
};
|
|
885
885
|
|
|
886
886
|
// IE8- don't enum bug keys
|
|
887
|
-
var enumBugKeys$
|
|
887
|
+
var enumBugKeys$3 = [
|
|
888
888
|
'constructor',
|
|
889
889
|
'hasOwnProperty',
|
|
890
890
|
'isPrototypeOf',
|
|
@@ -895,15 +895,15 @@ var enumBugKeys$2 = [
|
|
|
895
895
|
];
|
|
896
896
|
|
|
897
897
|
var internalObjectKeys$1 = objectKeysInternal;
|
|
898
|
-
var enumBugKeys$
|
|
898
|
+
var enumBugKeys$2 = enumBugKeys$3;
|
|
899
899
|
|
|
900
|
-
var hiddenKeys = enumBugKeys$
|
|
900
|
+
var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
|
|
901
901
|
|
|
902
902
|
// `Object.getOwnPropertyNames` method
|
|
903
903
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
|
904
904
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
|
905
905
|
objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
|
906
|
-
return internalObjectKeys$1(O, hiddenKeys);
|
|
906
|
+
return internalObjectKeys$1(O, hiddenKeys$1);
|
|
907
907
|
};
|
|
908
908
|
|
|
909
909
|
var objectGetOwnPropertySymbols = {};
|
|
@@ -911,29 +911,29 @@ var objectGetOwnPropertySymbols = {};
|
|
|
911
911
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
912
912
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
913
913
|
|
|
914
|
-
var getBuiltIn = getBuiltIn$
|
|
915
|
-
var uncurryThis$
|
|
914
|
+
var getBuiltIn$1 = getBuiltIn$3;
|
|
915
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
916
916
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
917
917
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
918
|
-
var anObject = anObject$
|
|
918
|
+
var anObject$5 = anObject$7;
|
|
919
919
|
|
|
920
|
-
var concat$
|
|
920
|
+
var concat$2 = uncurryThis$7([].concat);
|
|
921
921
|
|
|
922
922
|
// all object keys, includes non-enumerable and symbols
|
|
923
|
-
var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
924
|
-
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
923
|
+
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
924
|
+
var keys = getOwnPropertyNamesModule.f(anObject$5(it));
|
|
925
925
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
926
|
-
return getOwnPropertySymbols ? concat$
|
|
926
|
+
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
927
927
|
};
|
|
928
928
|
|
|
929
929
|
var hasOwn = hasOwnProperty_1;
|
|
930
930
|
var ownKeys = ownKeys$1;
|
|
931
931
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
932
|
-
var definePropertyModule = objectDefineProperty;
|
|
932
|
+
var definePropertyModule$1 = objectDefineProperty;
|
|
933
933
|
|
|
934
934
|
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
935
935
|
var keys = ownKeys(source);
|
|
936
|
-
var defineProperty = definePropertyModule.f;
|
|
936
|
+
var defineProperty = definePropertyModule$1.f;
|
|
937
937
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
938
938
|
for (var i = 0; i < keys.length; i++) {
|
|
939
939
|
var key = keys[i];
|
|
@@ -943,8 +943,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
943
943
|
}
|
|
944
944
|
};
|
|
945
945
|
|
|
946
|
-
var fails$
|
|
947
|
-
var isCallable = isCallable$
|
|
946
|
+
var fails$6 = fails$e;
|
|
947
|
+
var isCallable$3 = isCallable$d;
|
|
948
948
|
|
|
949
949
|
var replacement = /#|\.prototype\./;
|
|
950
950
|
|
|
@@ -952,7 +952,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
952
952
|
var value = data[normalize(feature)];
|
|
953
953
|
return value == POLYFILL ? true
|
|
954
954
|
: value == NATIVE ? false
|
|
955
|
-
: isCallable(detection) ? fails$
|
|
955
|
+
: isCallable$3(detection) ? fails$6(detection)
|
|
956
956
|
: !!detection;
|
|
957
957
|
};
|
|
958
958
|
|
|
@@ -966,10 +966,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
966
966
|
|
|
967
967
|
var isForced_1 = isForced$1;
|
|
968
968
|
|
|
969
|
-
var global$
|
|
969
|
+
var global$4 = global$e;
|
|
970
970
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
971
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
972
|
-
var defineBuiltIn = defineBuiltIn$
|
|
971
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
|
|
972
|
+
var defineBuiltIn$1 = defineBuiltIn$2;
|
|
973
973
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
974
974
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
975
975
|
var isForced = isForced_1;
|
|
@@ -995,11 +995,11 @@ var _export = function (options, source) {
|
|
|
995
995
|
var STATIC = options.stat;
|
|
996
996
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
997
997
|
if (GLOBAL) {
|
|
998
|
-
target = global$
|
|
998
|
+
target = global$4;
|
|
999
999
|
} else if (STATIC) {
|
|
1000
|
-
target = global$
|
|
1000
|
+
target = global$4[TARGET] || defineGlobalProperty(TARGET, {});
|
|
1001
1001
|
} else {
|
|
1002
|
-
target = (global$
|
|
1002
|
+
target = (global$4[TARGET] || {}).prototype;
|
|
1003
1003
|
}
|
|
1004
1004
|
if (target) for (key in source) {
|
|
1005
1005
|
sourceProperty = source[key];
|
|
@@ -1015,43 +1015,43 @@ var _export = function (options, source) {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
// add a flag to not completely full polyfills
|
|
1017
1017
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1018
|
-
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
|
1018
|
+
createNonEnumerableProperty$1(sourceProperty, 'sham', true);
|
|
1019
1019
|
}
|
|
1020
|
-
defineBuiltIn(target, key, sourceProperty, options);
|
|
1020
|
+
defineBuiltIn$1(target, key, sourceProperty, options);
|
|
1021
1021
|
}
|
|
1022
1022
|
};
|
|
1023
1023
|
|
|
1024
1024
|
var internalObjectKeys = objectKeysInternal;
|
|
1025
|
-
var enumBugKeys = enumBugKeys$
|
|
1025
|
+
var enumBugKeys$1 = enumBugKeys$3;
|
|
1026
1026
|
|
|
1027
1027
|
// `Object.keys` method
|
|
1028
1028
|
// https://tc39.es/ecma262/#sec-object.keys
|
|
1029
1029
|
// eslint-disable-next-line es/no-object-keys -- safe
|
|
1030
|
-
var objectKeys$
|
|
1031
|
-
return internalObjectKeys(O, enumBugKeys);
|
|
1030
|
+
var objectKeys$2 = Object.keys || function keys(O) {
|
|
1031
|
+
return internalObjectKeys(O, enumBugKeys$1);
|
|
1032
1032
|
};
|
|
1033
1033
|
|
|
1034
|
-
var DESCRIPTORS = descriptors;
|
|
1035
|
-
var uncurryThis = functionUncurryThis;
|
|
1036
|
-
var call = functionCall;
|
|
1037
|
-
var fails = fails$
|
|
1038
|
-
var objectKeys = objectKeys$
|
|
1034
|
+
var DESCRIPTORS$1 = descriptors;
|
|
1035
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
1036
|
+
var call$4 = functionCall;
|
|
1037
|
+
var fails$5 = fails$e;
|
|
1038
|
+
var objectKeys$1 = objectKeys$2;
|
|
1039
1039
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1040
1040
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1041
|
-
var toObject = toObject$
|
|
1041
|
+
var toObject$1 = toObject$3;
|
|
1042
1042
|
var IndexedObject = indexedObject;
|
|
1043
1043
|
|
|
1044
1044
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1045
1045
|
var $assign = Object.assign;
|
|
1046
1046
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1047
1047
|
var defineProperty = Object.defineProperty;
|
|
1048
|
-
var concat = uncurryThis([].concat);
|
|
1048
|
+
var concat$1 = uncurryThis$6([].concat);
|
|
1049
1049
|
|
|
1050
1050
|
// `Object.assign` method
|
|
1051
1051
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1052
|
-
var objectAssign = !$assign || fails(function () {
|
|
1052
|
+
var objectAssign = !$assign || fails$5(function () {
|
|
1053
1053
|
// should have correct order of operations (Edge bug)
|
|
1054
|
-
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
1054
|
+
if (DESCRIPTORS$1 && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
1055
1055
|
enumerable: true,
|
|
1056
1056
|
get: function () {
|
|
1057
1057
|
defineProperty(this, 'b', {
|
|
@@ -1068,33 +1068,33 @@ var objectAssign = !$assign || fails(function () {
|
|
|
1068
1068
|
var alphabet = 'abcdefghijklmnopqrst';
|
|
1069
1069
|
A[symbol] = 7;
|
|
1070
1070
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1071
|
-
return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
|
|
1071
|
+
return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
|
|
1072
1072
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1073
|
-
var T = toObject(target);
|
|
1073
|
+
var T = toObject$1(target);
|
|
1074
1074
|
var argumentsLength = arguments.length;
|
|
1075
1075
|
var index = 1;
|
|
1076
1076
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1077
1077
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1078
1078
|
while (argumentsLength > index) {
|
|
1079
1079
|
var S = IndexedObject(arguments[index++]);
|
|
1080
|
-
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
1080
|
+
var keys = getOwnPropertySymbols ? concat$1(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
|
|
1081
1081
|
var length = keys.length;
|
|
1082
1082
|
var j = 0;
|
|
1083
1083
|
var key;
|
|
1084
1084
|
while (length > j) {
|
|
1085
1085
|
key = keys[j++];
|
|
1086
|
-
if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1086
|
+
if (!DESCRIPTORS$1 || call$4(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1087
1087
|
}
|
|
1088
1088
|
} return T;
|
|
1089
1089
|
} : $assign;
|
|
1090
1090
|
|
|
1091
|
-
var
|
|
1091
|
+
var $$1 = _export;
|
|
1092
1092
|
var assign = objectAssign;
|
|
1093
1093
|
|
|
1094
1094
|
// `Object.assign` method
|
|
1095
1095
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1096
1096
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1097
|
-
|
|
1097
|
+
$$1({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1098
1098
|
assign: assign
|
|
1099
1099
|
});
|
|
1100
1100
|
|
|
@@ -1125,10 +1125,713 @@ function __rest(s, e) {
|
|
|
1125
1125
|
return t;
|
|
1126
1126
|
}
|
|
1127
1127
|
|
|
1128
|
+
var wellKnownSymbol$3 = wellKnownSymbol$5;
|
|
1129
|
+
|
|
1130
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
|
|
1131
|
+
var test = {};
|
|
1132
|
+
|
|
1133
|
+
test[TO_STRING_TAG$1] = 'z';
|
|
1134
|
+
|
|
1135
|
+
var toStringTagSupport = String(test) === '[object z]';
|
|
1136
|
+
|
|
1137
|
+
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1138
|
+
var isCallable$2 = isCallable$d;
|
|
1139
|
+
var classofRaw$1 = classofRaw$2;
|
|
1140
|
+
var wellKnownSymbol$2 = wellKnownSymbol$5;
|
|
1141
|
+
|
|
1142
|
+
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
1143
|
+
var $Object = Object;
|
|
1144
|
+
|
|
1145
|
+
// ES3 wrong here
|
|
1146
|
+
var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
|
|
1147
|
+
|
|
1148
|
+
// fallback for IE11 Script Access Denied error
|
|
1149
|
+
var tryGet = function (it, key) {
|
|
1150
|
+
try {
|
|
1151
|
+
return it[key];
|
|
1152
|
+
} catch (error) { /* empty */ }
|
|
1153
|
+
};
|
|
1154
|
+
|
|
1155
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
|
1156
|
+
var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
1157
|
+
var O, tag, result;
|
|
1158
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1159
|
+
// @@toStringTag case
|
|
1160
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1161
|
+
// builtinTag case
|
|
1162
|
+
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
1163
|
+
// ES3 arguments fallback
|
|
1164
|
+
: (result = classofRaw$1(O)) == 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1167
|
+
var classof$1 = classof$2;
|
|
1168
|
+
|
|
1169
|
+
var $String = String;
|
|
1170
|
+
|
|
1171
|
+
var toString$3 = function (argument) {
|
|
1172
|
+
if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
|
1173
|
+
return $String(argument);
|
|
1174
|
+
};
|
|
1175
|
+
|
|
1176
|
+
var anObject$4 = anObject$7;
|
|
1177
|
+
|
|
1178
|
+
// `RegExp.prototype.flags` getter implementation
|
|
1179
|
+
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1180
|
+
var regexpFlags$1 = function () {
|
|
1181
|
+
var that = anObject$4(this);
|
|
1182
|
+
var result = '';
|
|
1183
|
+
if (that.hasIndices) result += 'd';
|
|
1184
|
+
if (that.global) result += 'g';
|
|
1185
|
+
if (that.ignoreCase) result += 'i';
|
|
1186
|
+
if (that.multiline) result += 'm';
|
|
1187
|
+
if (that.dotAll) result += 's';
|
|
1188
|
+
if (that.unicode) result += 'u';
|
|
1189
|
+
if (that.unicodeSets) result += 'v';
|
|
1190
|
+
if (that.sticky) result += 'y';
|
|
1191
|
+
return result;
|
|
1192
|
+
};
|
|
1193
|
+
|
|
1194
|
+
var fails$4 = fails$e;
|
|
1195
|
+
var global$3 = global$e;
|
|
1196
|
+
|
|
1197
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1198
|
+
var $RegExp$2 = global$3.RegExp;
|
|
1199
|
+
|
|
1200
|
+
var UNSUPPORTED_Y$1 = fails$4(function () {
|
|
1201
|
+
var re = $RegExp$2('a', 'y');
|
|
1202
|
+
re.lastIndex = 2;
|
|
1203
|
+
return re.exec('abcd') != null;
|
|
1204
|
+
});
|
|
1205
|
+
|
|
1206
|
+
// UC Browser bug
|
|
1207
|
+
// https://github.com/zloirock/core-js/issues/1008
|
|
1208
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
1209
|
+
return !$RegExp$2('a', 'y').sticky;
|
|
1210
|
+
});
|
|
1211
|
+
|
|
1212
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
|
|
1213
|
+
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1214
|
+
var re = $RegExp$2('^r', 'gy');
|
|
1215
|
+
re.lastIndex = 2;
|
|
1216
|
+
return re.exec('str') != null;
|
|
1217
|
+
});
|
|
1218
|
+
|
|
1219
|
+
var regexpStickyHelpers = {
|
|
1220
|
+
BROKEN_CARET: BROKEN_CARET,
|
|
1221
|
+
MISSED_STICKY: MISSED_STICKY,
|
|
1222
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
1223
|
+
};
|
|
1224
|
+
|
|
1225
|
+
var objectDefineProperties = {};
|
|
1226
|
+
|
|
1227
|
+
var DESCRIPTORS = descriptors;
|
|
1228
|
+
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1229
|
+
var definePropertyModule = objectDefineProperty;
|
|
1230
|
+
var anObject$3 = anObject$7;
|
|
1231
|
+
var toIndexedObject = toIndexedObject$4;
|
|
1232
|
+
var objectKeys = objectKeys$2;
|
|
1233
|
+
|
|
1234
|
+
// `Object.defineProperties` method
|
|
1235
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1236
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1237
|
+
objectDefineProperties.f = DESCRIPTORS && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1238
|
+
anObject$3(O);
|
|
1239
|
+
var props = toIndexedObject(Properties);
|
|
1240
|
+
var keys = objectKeys(Properties);
|
|
1241
|
+
var length = keys.length;
|
|
1242
|
+
var index = 0;
|
|
1243
|
+
var key;
|
|
1244
|
+
while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
|
|
1245
|
+
return O;
|
|
1246
|
+
};
|
|
1247
|
+
|
|
1248
|
+
var getBuiltIn = getBuiltIn$3;
|
|
1249
|
+
|
|
1250
|
+
var html$1 = getBuiltIn('document', 'documentElement');
|
|
1251
|
+
|
|
1252
|
+
/* global ActiveXObject -- old IE, WSH */
|
|
1253
|
+
|
|
1254
|
+
var anObject$2 = anObject$7;
|
|
1255
|
+
var definePropertiesModule = objectDefineProperties;
|
|
1256
|
+
var enumBugKeys = enumBugKeys$3;
|
|
1257
|
+
var hiddenKeys = hiddenKeys$4;
|
|
1258
|
+
var html = html$1;
|
|
1259
|
+
var documentCreateElement = documentCreateElement$1;
|
|
1260
|
+
var sharedKey = sharedKey$2;
|
|
1261
|
+
|
|
1262
|
+
var GT = '>';
|
|
1263
|
+
var LT = '<';
|
|
1264
|
+
var PROTOTYPE = 'prototype';
|
|
1265
|
+
var SCRIPT = 'script';
|
|
1266
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
|
1267
|
+
|
|
1268
|
+
var EmptyConstructor = function () { /* empty */ };
|
|
1269
|
+
|
|
1270
|
+
var scriptTag = function (content) {
|
|
1271
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
|
1272
|
+
};
|
|
1273
|
+
|
|
1274
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
|
1275
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
|
1276
|
+
activeXDocument.write(scriptTag(''));
|
|
1277
|
+
activeXDocument.close();
|
|
1278
|
+
var temp = activeXDocument.parentWindow.Object;
|
|
1279
|
+
activeXDocument = null; // avoid memory leak
|
|
1280
|
+
return temp;
|
|
1281
|
+
};
|
|
1282
|
+
|
|
1283
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
|
1284
|
+
var NullProtoObjectViaIFrame = function () {
|
|
1285
|
+
// Thrash, waste and sodomy: IE GC bug
|
|
1286
|
+
var iframe = documentCreateElement('iframe');
|
|
1287
|
+
var JS = 'java' + SCRIPT + ':';
|
|
1288
|
+
var iframeDocument;
|
|
1289
|
+
iframe.style.display = 'none';
|
|
1290
|
+
html.appendChild(iframe);
|
|
1291
|
+
// https://github.com/zloirock/core-js/issues/475
|
|
1292
|
+
iframe.src = String(JS);
|
|
1293
|
+
iframeDocument = iframe.contentWindow.document;
|
|
1294
|
+
iframeDocument.open();
|
|
1295
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
|
1296
|
+
iframeDocument.close();
|
|
1297
|
+
return iframeDocument.F;
|
|
1298
|
+
};
|
|
1299
|
+
|
|
1300
|
+
// Check for document.domain and active x support
|
|
1301
|
+
// No need to use active x approach when document.domain is not set
|
|
1302
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
|
1303
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
|
1304
|
+
// avoid IE GC bug
|
|
1305
|
+
var activeXDocument;
|
|
1306
|
+
var NullProtoObject = function () {
|
|
1307
|
+
try {
|
|
1308
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
|
1309
|
+
} catch (error) { /* ignore */ }
|
|
1310
|
+
NullProtoObject = typeof document != 'undefined'
|
|
1311
|
+
? document.domain && activeXDocument
|
|
1312
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
|
1313
|
+
: NullProtoObjectViaIFrame()
|
|
1314
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
|
1315
|
+
var length = enumBugKeys.length;
|
|
1316
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
|
1317
|
+
return NullProtoObject();
|
|
1318
|
+
};
|
|
1319
|
+
|
|
1320
|
+
hiddenKeys[IE_PROTO] = true;
|
|
1321
|
+
|
|
1322
|
+
// `Object.create` method
|
|
1323
|
+
// https://tc39.es/ecma262/#sec-object.create
|
|
1324
|
+
// eslint-disable-next-line es/no-object-create -- safe
|
|
1325
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
|
1326
|
+
var result;
|
|
1327
|
+
if (O !== null) {
|
|
1328
|
+
EmptyConstructor[PROTOTYPE] = anObject$2(O);
|
|
1329
|
+
result = new EmptyConstructor();
|
|
1330
|
+
EmptyConstructor[PROTOTYPE] = null;
|
|
1331
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
1332
|
+
result[IE_PROTO] = O;
|
|
1333
|
+
} else result = NullProtoObject();
|
|
1334
|
+
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1335
|
+
};
|
|
1336
|
+
|
|
1337
|
+
var fails$3 = fails$e;
|
|
1338
|
+
var global$2 = global$e;
|
|
1339
|
+
|
|
1340
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1341
|
+
var $RegExp$1 = global$2.RegExp;
|
|
1342
|
+
|
|
1343
|
+
var regexpUnsupportedDotAll = fails$3(function () {
|
|
1344
|
+
var re = $RegExp$1('.', 's');
|
|
1345
|
+
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
|
1346
|
+
});
|
|
1347
|
+
|
|
1348
|
+
var fails$2 = fails$e;
|
|
1349
|
+
var global$1 = global$e;
|
|
1350
|
+
|
|
1351
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1352
|
+
var $RegExp = global$1.RegExp;
|
|
1353
|
+
|
|
1354
|
+
var regexpUnsupportedNcg = fails$2(function () {
|
|
1355
|
+
var re = $RegExp('(?<a>b)', 'g');
|
|
1356
|
+
return re.exec('b').groups.a !== 'b' ||
|
|
1357
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
|
1358
|
+
});
|
|
1359
|
+
|
|
1360
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1361
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1362
|
+
var call$3 = functionCall;
|
|
1363
|
+
var uncurryThis$5 = functionUncurryThis;
|
|
1364
|
+
var toString$2 = toString$3;
|
|
1365
|
+
var regexpFlags = regexpFlags$1;
|
|
1366
|
+
var stickyHelpers = regexpStickyHelpers;
|
|
1367
|
+
var shared = shared$4.exports;
|
|
1368
|
+
var create = objectCreate;
|
|
1369
|
+
var getInternalState = internalState.get;
|
|
1370
|
+
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
1371
|
+
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
1372
|
+
|
|
1373
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1374
|
+
var nativeExec = RegExp.prototype.exec;
|
|
1375
|
+
var patchedExec = nativeExec;
|
|
1376
|
+
var charAt$3 = uncurryThis$5(''.charAt);
|
|
1377
|
+
var indexOf = uncurryThis$5(''.indexOf);
|
|
1378
|
+
var replace$1 = uncurryThis$5(''.replace);
|
|
1379
|
+
var stringSlice$3 = uncurryThis$5(''.slice);
|
|
1380
|
+
|
|
1381
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1382
|
+
var re1 = /a/;
|
|
1383
|
+
var re2 = /b*/g;
|
|
1384
|
+
call$3(nativeExec, re1, 'a');
|
|
1385
|
+
call$3(nativeExec, re2, 'a');
|
|
1386
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1387
|
+
})();
|
|
1388
|
+
|
|
1389
|
+
var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
|
|
1390
|
+
|
|
1391
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
|
1392
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
|
1393
|
+
|
|
1394
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
|
|
1395
|
+
|
|
1396
|
+
if (PATCH) {
|
|
1397
|
+
patchedExec = function exec(string) {
|
|
1398
|
+
var re = this;
|
|
1399
|
+
var state = getInternalState(re);
|
|
1400
|
+
var str = toString$2(string);
|
|
1401
|
+
var raw = state.raw;
|
|
1402
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
|
1403
|
+
|
|
1404
|
+
if (raw) {
|
|
1405
|
+
raw.lastIndex = re.lastIndex;
|
|
1406
|
+
result = call$3(patchedExec, raw, str);
|
|
1407
|
+
re.lastIndex = raw.lastIndex;
|
|
1408
|
+
return result;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
var groups = state.groups;
|
|
1412
|
+
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
1413
|
+
var flags = call$3(regexpFlags, re);
|
|
1414
|
+
var source = re.source;
|
|
1415
|
+
var charsAdded = 0;
|
|
1416
|
+
var strCopy = str;
|
|
1417
|
+
|
|
1418
|
+
if (sticky) {
|
|
1419
|
+
flags = replace$1(flags, 'y', '');
|
|
1420
|
+
if (indexOf(flags, 'g') === -1) {
|
|
1421
|
+
flags += 'g';
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
strCopy = stringSlice$3(str, re.lastIndex);
|
|
1425
|
+
// Support anchored sticky behavior.
|
|
1426
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
|
1427
|
+
source = '(?: ' + source + ')';
|
|
1428
|
+
strCopy = ' ' + strCopy;
|
|
1429
|
+
charsAdded++;
|
|
1430
|
+
}
|
|
1431
|
+
// ^(? + rx + ) is needed, in combination with some str slicing, to
|
|
1432
|
+
// simulate the 'y' flag.
|
|
1433
|
+
reCopy = new RegExp('^(?:' + source + ')', flags);
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
if (NPCG_INCLUDED) {
|
|
1437
|
+
reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
|
|
1438
|
+
}
|
|
1439
|
+
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1440
|
+
|
|
1441
|
+
match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1442
|
+
|
|
1443
|
+
if (sticky) {
|
|
1444
|
+
if (match) {
|
|
1445
|
+
match.input = stringSlice$3(match.input, charsAdded);
|
|
1446
|
+
match[0] = stringSlice$3(match[0], charsAdded);
|
|
1447
|
+
match.index = re.lastIndex;
|
|
1448
|
+
re.lastIndex += match[0].length;
|
|
1449
|
+
} else re.lastIndex = 0;
|
|
1450
|
+
} else if (UPDATES_LAST_INDEX_WRONG && match) {
|
|
1451
|
+
re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
|
|
1452
|
+
}
|
|
1453
|
+
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1454
|
+
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1455
|
+
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
1456
|
+
call$3(nativeReplace, match[0], reCopy, function () {
|
|
1457
|
+
for (i = 1; i < arguments.length - 2; i++) {
|
|
1458
|
+
if (arguments[i] === undefined) match[i] = undefined;
|
|
1459
|
+
}
|
|
1460
|
+
});
|
|
1461
|
+
}
|
|
1462
|
+
|
|
1463
|
+
if (match && groups) {
|
|
1464
|
+
match.groups = object = create(null);
|
|
1465
|
+
for (i = 0; i < groups.length; i++) {
|
|
1466
|
+
group = groups[i];
|
|
1467
|
+
object[group[0]] = match[group[1]];
|
|
1468
|
+
}
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
return match;
|
|
1472
|
+
};
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
var regexpExec$2 = patchedExec;
|
|
1476
|
+
|
|
1477
|
+
var $ = _export;
|
|
1478
|
+
var exec = regexpExec$2;
|
|
1479
|
+
|
|
1480
|
+
// `RegExp.prototype.exec` method
|
|
1481
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1482
|
+
$({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
1483
|
+
exec: exec
|
|
1484
|
+
});
|
|
1485
|
+
|
|
1486
|
+
var NATIVE_BIND = functionBindNative;
|
|
1487
|
+
|
|
1488
|
+
var FunctionPrototype = Function.prototype;
|
|
1489
|
+
var apply$1 = FunctionPrototype.apply;
|
|
1490
|
+
var call$2 = FunctionPrototype.call;
|
|
1491
|
+
|
|
1492
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
|
1493
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$2.bind(apply$1) : function () {
|
|
1494
|
+
return call$2.apply(apply$1, arguments);
|
|
1495
|
+
});
|
|
1496
|
+
|
|
1497
|
+
var classofRaw = classofRaw$2;
|
|
1498
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
1499
|
+
|
|
1500
|
+
var functionUncurryThisClause = function (fn) {
|
|
1501
|
+
// Nashorn bug:
|
|
1502
|
+
// https://github.com/zloirock/core-js/issues/1128
|
|
1503
|
+
// https://github.com/zloirock/core-js/issues/1130
|
|
1504
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
|
|
1505
|
+
};
|
|
1506
|
+
|
|
1507
|
+
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
1508
|
+
|
|
1509
|
+
var uncurryThis$3 = functionUncurryThisClause;
|
|
1510
|
+
var defineBuiltIn = defineBuiltIn$2;
|
|
1511
|
+
var regexpExec$1 = regexpExec$2;
|
|
1512
|
+
var fails$1 = fails$e;
|
|
1513
|
+
var wellKnownSymbol$1 = wellKnownSymbol$5;
|
|
1514
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$3;
|
|
1515
|
+
|
|
1516
|
+
var SPECIES = wellKnownSymbol$1('species');
|
|
1517
|
+
var RegExpPrototype = RegExp.prototype;
|
|
1518
|
+
|
|
1519
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
1520
|
+
var SYMBOL = wellKnownSymbol$1(KEY);
|
|
1521
|
+
|
|
1522
|
+
var DELEGATES_TO_SYMBOL = !fails$1(function () {
|
|
1523
|
+
// String methods call symbol-named RegEp methods
|
|
1524
|
+
var O = {};
|
|
1525
|
+
O[SYMBOL] = function () { return 7; };
|
|
1526
|
+
return ''[KEY](O) != 7;
|
|
1527
|
+
});
|
|
1528
|
+
|
|
1529
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
|
|
1530
|
+
// Symbol-named RegExp methods call .exec
|
|
1531
|
+
var execCalled = false;
|
|
1532
|
+
var re = /a/;
|
|
1533
|
+
|
|
1534
|
+
if (KEY === 'split') {
|
|
1535
|
+
// We can't use real regex here since it causes deoptimization
|
|
1536
|
+
// and serious performance degradation in V8
|
|
1537
|
+
// https://github.com/zloirock/core-js/issues/306
|
|
1538
|
+
re = {};
|
|
1539
|
+
// RegExp[@@split] doesn't call the regex's exec method, but first creates
|
|
1540
|
+
// a new one. We need to return the patched regex when creating the new one.
|
|
1541
|
+
re.constructor = {};
|
|
1542
|
+
re.constructor[SPECIES] = function () { return re; };
|
|
1543
|
+
re.flags = '';
|
|
1544
|
+
re[SYMBOL] = /./[SYMBOL];
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
re.exec = function () { execCalled = true; return null; };
|
|
1548
|
+
|
|
1549
|
+
re[SYMBOL]('');
|
|
1550
|
+
return !execCalled;
|
|
1551
|
+
});
|
|
1552
|
+
|
|
1553
|
+
if (
|
|
1554
|
+
!DELEGATES_TO_SYMBOL ||
|
|
1555
|
+
!DELEGATES_TO_EXEC ||
|
|
1556
|
+
FORCED
|
|
1557
|
+
) {
|
|
1558
|
+
var uncurriedNativeRegExpMethod = uncurryThis$3(/./[SYMBOL]);
|
|
1559
|
+
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
|
1560
|
+
var uncurriedNativeMethod = uncurryThis$3(nativeMethod);
|
|
1561
|
+
var $exec = regexp.exec;
|
|
1562
|
+
if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
|
|
1563
|
+
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
|
1564
|
+
// The native String method already delegates to @@method (this
|
|
1565
|
+
// polyfilled function), leasing to infinite recursion.
|
|
1566
|
+
// We avoid it by directly calling the native @@method method.
|
|
1567
|
+
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
|
1568
|
+
}
|
|
1569
|
+
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
|
1570
|
+
}
|
|
1571
|
+
return { done: false };
|
|
1572
|
+
});
|
|
1573
|
+
|
|
1574
|
+
defineBuiltIn(String.prototype, KEY, methods[0]);
|
|
1575
|
+
defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
|
|
1576
|
+
}
|
|
1577
|
+
|
|
1578
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
|
1579
|
+
};
|
|
1580
|
+
|
|
1581
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
1582
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
1583
|
+
var toString$1 = toString$3;
|
|
1584
|
+
var requireObjectCoercible$1 = requireObjectCoercible$4;
|
|
1585
|
+
|
|
1586
|
+
var charAt$2 = uncurryThis$2(''.charAt);
|
|
1587
|
+
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
1588
|
+
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
1589
|
+
|
|
1590
|
+
var createMethod = function (CONVERT_TO_STRING) {
|
|
1591
|
+
return function ($this, pos) {
|
|
1592
|
+
var S = toString$1(requireObjectCoercible$1($this));
|
|
1593
|
+
var position = toIntegerOrInfinity$1(pos);
|
|
1594
|
+
var size = S.length;
|
|
1595
|
+
var first, second;
|
|
1596
|
+
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
1597
|
+
first = charCodeAt(S, position);
|
|
1598
|
+
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
1599
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
1600
|
+
? CONVERT_TO_STRING
|
|
1601
|
+
? charAt$2(S, position)
|
|
1602
|
+
: first
|
|
1603
|
+
: CONVERT_TO_STRING
|
|
1604
|
+
? stringSlice$2(S, position, position + 2)
|
|
1605
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
|
1606
|
+
};
|
|
1607
|
+
};
|
|
1608
|
+
|
|
1609
|
+
var stringMultibyte = {
|
|
1610
|
+
// `String.prototype.codePointAt` method
|
|
1611
|
+
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
1612
|
+
codeAt: createMethod(false),
|
|
1613
|
+
// `String.prototype.at` method
|
|
1614
|
+
// https://github.com/mathiasbynens/String.prototype.at
|
|
1615
|
+
charAt: createMethod(true)
|
|
1616
|
+
};
|
|
1617
|
+
|
|
1618
|
+
var charAt$1 = stringMultibyte.charAt;
|
|
1619
|
+
|
|
1620
|
+
// `AdvanceStringIndex` abstract operation
|
|
1621
|
+
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
1622
|
+
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
1623
|
+
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
1624
|
+
};
|
|
1625
|
+
|
|
1626
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
1627
|
+
var toObject = toObject$3;
|
|
1628
|
+
|
|
1629
|
+
var floor = Math.floor;
|
|
1630
|
+
var charAt = uncurryThis$1(''.charAt);
|
|
1631
|
+
var replace = uncurryThis$1(''.replace);
|
|
1632
|
+
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
1633
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
1634
|
+
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
1635
|
+
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
1636
|
+
|
|
1637
|
+
// `GetSubstitution` abstract operation
|
|
1638
|
+
// https://tc39.es/ecma262/#sec-getsubstitution
|
|
1639
|
+
var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
|
|
1640
|
+
var tailPos = position + matched.length;
|
|
1641
|
+
var m = captures.length;
|
|
1642
|
+
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
1643
|
+
if (namedCaptures !== undefined) {
|
|
1644
|
+
namedCaptures = toObject(namedCaptures);
|
|
1645
|
+
symbols = SUBSTITUTION_SYMBOLS;
|
|
1646
|
+
}
|
|
1647
|
+
return replace(replacement, symbols, function (match, ch) {
|
|
1648
|
+
var capture;
|
|
1649
|
+
switch (charAt(ch, 0)) {
|
|
1650
|
+
case '$': return '$';
|
|
1651
|
+
case '&': return matched;
|
|
1652
|
+
case '`': return stringSlice$1(str, 0, position);
|
|
1653
|
+
case "'": return stringSlice$1(str, tailPos);
|
|
1654
|
+
case '<':
|
|
1655
|
+
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
|
1656
|
+
break;
|
|
1657
|
+
default: // \d\d?
|
|
1658
|
+
var n = +ch;
|
|
1659
|
+
if (n === 0) return match;
|
|
1660
|
+
if (n > m) {
|
|
1661
|
+
var f = floor(n / 10);
|
|
1662
|
+
if (f === 0) return match;
|
|
1663
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
1664
|
+
return match;
|
|
1665
|
+
}
|
|
1666
|
+
capture = captures[n - 1];
|
|
1667
|
+
}
|
|
1668
|
+
return capture === undefined ? '' : capture;
|
|
1669
|
+
});
|
|
1670
|
+
};
|
|
1671
|
+
|
|
1672
|
+
var call$1 = functionCall;
|
|
1673
|
+
var anObject$1 = anObject$7;
|
|
1674
|
+
var isCallable$1 = isCallable$d;
|
|
1675
|
+
var classof = classofRaw$2;
|
|
1676
|
+
var regexpExec = regexpExec$2;
|
|
1677
|
+
|
|
1678
|
+
var $TypeError = TypeError;
|
|
1679
|
+
|
|
1680
|
+
// `RegExpExec` abstract operation
|
|
1681
|
+
// https://tc39.es/ecma262/#sec-regexpexec
|
|
1682
|
+
var regexpExecAbstract = function (R, S) {
|
|
1683
|
+
var exec = R.exec;
|
|
1684
|
+
if (isCallable$1(exec)) {
|
|
1685
|
+
var result = call$1(exec, R, S);
|
|
1686
|
+
if (result !== null) anObject$1(result);
|
|
1687
|
+
return result;
|
|
1688
|
+
}
|
|
1689
|
+
if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
|
|
1690
|
+
throw $TypeError('RegExp#exec called on incompatible receiver');
|
|
1691
|
+
};
|
|
1692
|
+
|
|
1693
|
+
var apply = functionApply;
|
|
1694
|
+
var call = functionCall;
|
|
1695
|
+
var uncurryThis = functionUncurryThis;
|
|
1696
|
+
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
1697
|
+
var fails = fails$e;
|
|
1698
|
+
var anObject = anObject$7;
|
|
1699
|
+
var isCallable = isCallable$d;
|
|
1700
|
+
var isNullOrUndefined = isNullOrUndefined$3;
|
|
1701
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
1702
|
+
var toLength = toLength$2;
|
|
1703
|
+
var toString = toString$3;
|
|
1704
|
+
var requireObjectCoercible = requireObjectCoercible$4;
|
|
1705
|
+
var advanceStringIndex = advanceStringIndex$1;
|
|
1706
|
+
var getMethod = getMethod$2;
|
|
1707
|
+
var getSubstitution = getSubstitution$1;
|
|
1708
|
+
var regExpExec = regexpExecAbstract;
|
|
1709
|
+
var wellKnownSymbol = wellKnownSymbol$5;
|
|
1710
|
+
|
|
1711
|
+
var REPLACE = wellKnownSymbol('replace');
|
|
1712
|
+
var max = Math.max;
|
|
1713
|
+
var min = Math.min;
|
|
1714
|
+
var concat = uncurryThis([].concat);
|
|
1715
|
+
var push = uncurryThis([].push);
|
|
1716
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
1717
|
+
var stringSlice = uncurryThis(''.slice);
|
|
1718
|
+
|
|
1719
|
+
var maybeToString = function (it) {
|
|
1720
|
+
return it === undefined ? it : String(it);
|
|
1721
|
+
};
|
|
1722
|
+
|
|
1723
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
|
1724
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
|
1725
|
+
var REPLACE_KEEPS_$0 = (function () {
|
|
1726
|
+
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
|
1727
|
+
return 'a'.replace(/./, '$0') === '$0';
|
|
1728
|
+
})();
|
|
1729
|
+
|
|
1730
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
|
1731
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
1732
|
+
if (/./[REPLACE]) {
|
|
1733
|
+
return /./[REPLACE]('a', '$0') === '';
|
|
1734
|
+
}
|
|
1735
|
+
return false;
|
|
1736
|
+
})();
|
|
1737
|
+
|
|
1738
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
|
1739
|
+
var re = /./;
|
|
1740
|
+
re.exec = function () {
|
|
1741
|
+
var result = [];
|
|
1742
|
+
result.groups = { a: '7' };
|
|
1743
|
+
return result;
|
|
1744
|
+
};
|
|
1745
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
|
1746
|
+
return ''.replace(re, '$<a>') !== '7';
|
|
1747
|
+
});
|
|
1748
|
+
|
|
1749
|
+
// @@replace logic
|
|
1750
|
+
fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
|
1751
|
+
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
|
1752
|
+
|
|
1753
|
+
return [
|
|
1754
|
+
// `String.prototype.replace` method
|
|
1755
|
+
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
1756
|
+
function replace(searchValue, replaceValue) {
|
|
1757
|
+
var O = requireObjectCoercible(this);
|
|
1758
|
+
var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
|
|
1759
|
+
return replacer
|
|
1760
|
+
? call(replacer, searchValue, O, replaceValue)
|
|
1761
|
+
: call(nativeReplace, toString(O), searchValue, replaceValue);
|
|
1762
|
+
},
|
|
1763
|
+
// `RegExp.prototype[@@replace]` method
|
|
1764
|
+
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
1765
|
+
function (string, replaceValue) {
|
|
1766
|
+
var rx = anObject(this);
|
|
1767
|
+
var S = toString(string);
|
|
1768
|
+
|
|
1769
|
+
if (
|
|
1770
|
+
typeof replaceValue == 'string' &&
|
|
1771
|
+
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
1772
|
+
stringIndexOf(replaceValue, '$<') === -1
|
|
1773
|
+
) {
|
|
1774
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
1775
|
+
if (res.done) return res.value;
|
|
1776
|
+
}
|
|
1777
|
+
|
|
1778
|
+
var functionalReplace = isCallable(replaceValue);
|
|
1779
|
+
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
1780
|
+
|
|
1781
|
+
var global = rx.global;
|
|
1782
|
+
if (global) {
|
|
1783
|
+
var fullUnicode = rx.unicode;
|
|
1784
|
+
rx.lastIndex = 0;
|
|
1785
|
+
}
|
|
1786
|
+
var results = [];
|
|
1787
|
+
while (true) {
|
|
1788
|
+
var result = regExpExec(rx, S);
|
|
1789
|
+
if (result === null) break;
|
|
1790
|
+
|
|
1791
|
+
push(results, result);
|
|
1792
|
+
if (!global) break;
|
|
1793
|
+
|
|
1794
|
+
var matchStr = toString(result[0]);
|
|
1795
|
+
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
var accumulatedResult = '';
|
|
1799
|
+
var nextSourcePosition = 0;
|
|
1800
|
+
for (var i = 0; i < results.length; i++) {
|
|
1801
|
+
result = results[i];
|
|
1802
|
+
|
|
1803
|
+
var matched = toString(result[0]);
|
|
1804
|
+
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
1805
|
+
var captures = [];
|
|
1806
|
+
// NOTE: This is equivalent to
|
|
1807
|
+
// captures = result.slice(1).map(maybeToString)
|
|
1808
|
+
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
1809
|
+
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
1810
|
+
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
1811
|
+
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
1812
|
+
var namedCaptures = result.groups;
|
|
1813
|
+
if (functionalReplace) {
|
|
1814
|
+
var replacerArgs = concat([matched], captures, position, S);
|
|
1815
|
+
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
1816
|
+
var replacement = toString(apply(replaceValue, undefined, replacerArgs));
|
|
1817
|
+
} else {
|
|
1818
|
+
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
1819
|
+
}
|
|
1820
|
+
if (position >= nextSourcePosition) {
|
|
1821
|
+
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
|
1822
|
+
nextSourcePosition = position + matched.length;
|
|
1823
|
+
}
|
|
1824
|
+
}
|
|
1825
|
+
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
|
1826
|
+
}
|
|
1827
|
+
];
|
|
1828
|
+
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
|
1829
|
+
|
|
1830
|
+
const tokenToInteger = token => Number(token.replace('px', ''));
|
|
1128
1831
|
const Option = /*#__PURE__*/styled__default["default"].button.withConfig({
|
|
1129
1832
|
displayName: "atoms-segmented-controlstyles__Option",
|
|
1130
1833
|
componentId: "sc-1lpqq2u-0"
|
|
1131
|
-
})(["background-color:", ";border:1px solid ", ";padding:", ";cursor:pointer
|
|
1834
|
+
})(["background-color:", ";border:1px solid ", ";padding:", ";cursor:pointer;", " *{cursor:pointer;}"], ({
|
|
1132
1835
|
theme,
|
|
1133
1836
|
pressed,
|
|
1134
1837
|
hasError
|
|
@@ -1138,7 +1841,9 @@ const Option = /*#__PURE__*/styled__default["default"].button.withConfig({
|
|
|
1138
1841
|
hasError
|
|
1139
1842
|
}) => hasError ? theme.tokens.red['600'] : pressed ? theme.components.segmentControl.border.color.pressed : theme.components.segmentControl.border.color.default, ({
|
|
1140
1843
|
theme
|
|
1141
|
-
}) => `${theme.components.segmentControl.paddingVertical} ${theme.components.segmentControl.paddingVertical}
|
|
1844
|
+
}) => `${theme.components.segmentControl.paddingVertical} ${theme.components.segmentControl.paddingVertical}`, ({
|
|
1845
|
+
theme
|
|
1846
|
+
}) => tokenToInteger(theme.components.segmentControl.gap) === 0 && styled.css(["&: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;}"]));
|
|
1142
1847
|
const SegmentedControlContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
1143
1848
|
displayName: "atoms-segmented-controlstyles__SegmentedControlContainer",
|
|
1144
1849
|
componentId: "sc-1lpqq2u-1"
|