@opengeoweb/authentication 9.12.0 → 9.14.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.esm.js +1697 -873
- package/package.json +1 -1
package/index.esm.js
CHANGED
|
@@ -15,7 +15,7 @@ var check = function (it) {
|
|
|
15
15
|
};
|
|
16
16
|
|
|
17
17
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
18
|
-
var global$
|
|
18
|
+
var global$u =
|
|
19
19
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
20
20
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
21
21
|
check(typeof window == 'object' && window) ||
|
|
@@ -28,7 +28,7 @@ var global$o =
|
|
|
28
28
|
|
|
29
29
|
var objectGetOwnPropertyDescriptor = {};
|
|
30
30
|
|
|
31
|
-
var fails$
|
|
31
|
+
var fails$v = function (exec) {
|
|
32
32
|
try {
|
|
33
33
|
return !!exec();
|
|
34
34
|
} catch (error) {
|
|
@@ -36,17 +36,17 @@ var fails$r = function (exec) {
|
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
|
|
39
|
-
var fails$
|
|
39
|
+
var fails$u = fails$v;
|
|
40
40
|
|
|
41
41
|
// Detect IE8's incomplete defineProperty implementation
|
|
42
|
-
var descriptors = !fails$
|
|
42
|
+
var descriptors = !fails$u(function () {
|
|
43
43
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
44
44
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
var fails$
|
|
47
|
+
var fails$t = fails$v;
|
|
48
48
|
|
|
49
|
-
var functionBindNative = !fails$
|
|
49
|
+
var functionBindNative = !fails$t(function () {
|
|
50
50
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
51
51
|
var test = (function () { /* empty */ }).bind();
|
|
52
52
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -55,10 +55,10 @@ var functionBindNative = !fails$p(function () {
|
|
|
55
55
|
|
|
56
56
|
var NATIVE_BIND$3 = functionBindNative;
|
|
57
57
|
|
|
58
|
-
var call$
|
|
58
|
+
var call$m = Function.prototype.call;
|
|
59
59
|
|
|
60
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
61
|
-
return call$
|
|
60
|
+
var functionCall = NATIVE_BIND$3 ? call$m.bind(call$m) : function () {
|
|
61
|
+
return call$m.apply(call$m, arguments);
|
|
62
62
|
};
|
|
63
63
|
|
|
64
64
|
var objectPropertyIsEnumerable = {};
|
|
@@ -77,7 +77,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
77
77
|
return !!descriptor && descriptor.enumerable;
|
|
78
78
|
} : $propertyIsEnumerable;
|
|
79
79
|
|
|
80
|
-
var createPropertyDescriptor$
|
|
80
|
+
var createPropertyDescriptor$8 = function (bitmap, value) {
|
|
81
81
|
return {
|
|
82
82
|
enumerable: !(bitmap & 1),
|
|
83
83
|
configurable: !(bitmap & 2),
|
|
@@ -89,38 +89,38 @@ var createPropertyDescriptor$6 = function (bitmap, value) {
|
|
|
89
89
|
var NATIVE_BIND$2 = functionBindNative;
|
|
90
90
|
|
|
91
91
|
var FunctionPrototype$2 = Function.prototype;
|
|
92
|
-
var call$
|
|
93
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
92
|
+
var call$l = FunctionPrototype$2.call;
|
|
93
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$l, call$l);
|
|
94
94
|
|
|
95
95
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
96
96
|
return function () {
|
|
97
|
-
return call$
|
|
97
|
+
return call$l.apply(fn, arguments);
|
|
98
98
|
};
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
var uncurryThis$
|
|
101
|
+
var uncurryThis$x = functionUncurryThis;
|
|
102
102
|
|
|
103
|
-
var toString$
|
|
104
|
-
var stringSlice$6 = uncurryThis$
|
|
103
|
+
var toString$b = uncurryThis$x({}.toString);
|
|
104
|
+
var stringSlice$6 = uncurryThis$x(''.slice);
|
|
105
105
|
|
|
106
106
|
var classofRaw$2 = function (it) {
|
|
107
|
-
return stringSlice$6(toString$
|
|
107
|
+
return stringSlice$6(toString$b(it), 8, -1);
|
|
108
108
|
};
|
|
109
109
|
|
|
110
|
-
var uncurryThis$
|
|
111
|
-
var fails$
|
|
112
|
-
var classof$
|
|
110
|
+
var uncurryThis$w = functionUncurryThis;
|
|
111
|
+
var fails$s = fails$v;
|
|
112
|
+
var classof$e = classofRaw$2;
|
|
113
113
|
|
|
114
114
|
var $Object$4 = Object;
|
|
115
|
-
var split$1 = uncurryThis$
|
|
115
|
+
var split$1 = uncurryThis$w(''.split);
|
|
116
116
|
|
|
117
117
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
118
|
-
var indexedObject = fails$
|
|
118
|
+
var indexedObject = fails$s(function () {
|
|
119
119
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
120
120
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
121
121
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
122
122
|
}) ? function (it) {
|
|
123
|
-
return classof$
|
|
123
|
+
return classof$e(it) === 'String' ? split$1(it, '') : $Object$4(it);
|
|
124
124
|
} : $Object$4;
|
|
125
125
|
|
|
126
126
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -131,21 +131,21 @@ var isNullOrUndefined$6 = function (it) {
|
|
|
131
131
|
|
|
132
132
|
var isNullOrUndefined$5 = isNullOrUndefined$6;
|
|
133
133
|
|
|
134
|
-
var $TypeError$
|
|
134
|
+
var $TypeError$f = TypeError;
|
|
135
135
|
|
|
136
136
|
// `RequireObjectCoercible` abstract operation
|
|
137
137
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
138
138
|
var requireObjectCoercible$6 = function (it) {
|
|
139
|
-
if (isNullOrUndefined$5(it)) throw new $TypeError$
|
|
139
|
+
if (isNullOrUndefined$5(it)) throw new $TypeError$f("Can't call method on " + it);
|
|
140
140
|
return it;
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
// toObject with fallback for non-array-like ES3 strings
|
|
144
|
-
var IndexedObject$
|
|
144
|
+
var IndexedObject$3 = indexedObject;
|
|
145
145
|
var requireObjectCoercible$5 = requireObjectCoercible$6;
|
|
146
146
|
|
|
147
147
|
var toIndexedObject$6 = function (it) {
|
|
148
|
-
return IndexedObject$
|
|
148
|
+
return IndexedObject$3(requireObjectCoercible$5(it));
|
|
149
149
|
};
|
|
150
150
|
|
|
151
151
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
@@ -166,29 +166,29 @@ var isObject$e = function (it) {
|
|
|
166
166
|
return typeof it == 'object' ? it !== null : isCallable$j(it);
|
|
167
167
|
};
|
|
168
168
|
|
|
169
|
-
var global$
|
|
169
|
+
var global$t = global$u;
|
|
170
170
|
var isCallable$i = isCallable$k;
|
|
171
171
|
|
|
172
172
|
var aFunction = function (argument) {
|
|
173
173
|
return isCallable$i(argument) ? argument : undefined;
|
|
174
174
|
};
|
|
175
175
|
|
|
176
|
-
var getBuiltIn$
|
|
177
|
-
return arguments.length < 2 ? aFunction(global$
|
|
176
|
+
var getBuiltIn$9 = function (namespace, method) {
|
|
177
|
+
return arguments.length < 2 ? aFunction(global$t[namespace]) : global$t[namespace] && global$t[namespace][method];
|
|
178
178
|
};
|
|
179
179
|
|
|
180
|
-
var uncurryThis$
|
|
180
|
+
var uncurryThis$v = functionUncurryThis;
|
|
181
181
|
|
|
182
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
182
|
+
var objectIsPrototypeOf = uncurryThis$v({}.isPrototypeOf);
|
|
183
183
|
|
|
184
184
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
185
185
|
|
|
186
|
-
var global$
|
|
186
|
+
var global$s = global$u;
|
|
187
187
|
var userAgent$2 = engineUserAgent;
|
|
188
188
|
|
|
189
|
-
var process = global$
|
|
190
|
-
var Deno = global$
|
|
191
|
-
var versions = process && process.versions || Deno && Deno.version;
|
|
189
|
+
var process = global$s.process;
|
|
190
|
+
var Deno$1 = global$s.Deno;
|
|
191
|
+
var versions = process && process.versions || Deno$1 && Deno$1.version;
|
|
192
192
|
var v8 = versions && versions.v8;
|
|
193
193
|
var match, version;
|
|
194
194
|
|
|
@@ -213,13 +213,13 @@ var engineV8Version = version;
|
|
|
213
213
|
|
|
214
214
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
215
215
|
var V8_VERSION = engineV8Version;
|
|
216
|
-
var fails$
|
|
217
|
-
var global$
|
|
216
|
+
var fails$r = fails$v;
|
|
217
|
+
var global$r = global$u;
|
|
218
218
|
|
|
219
|
-
var $String$5 = global$
|
|
219
|
+
var $String$5 = global$r.String;
|
|
220
220
|
|
|
221
221
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
222
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
222
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$r(function () {
|
|
223
223
|
var symbol = Symbol('symbol detection');
|
|
224
224
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
225
225
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -237,7 +237,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
|
237
237
|
&& !Symbol.sham
|
|
238
238
|
&& typeof Symbol.iterator == 'symbol';
|
|
239
239
|
|
|
240
|
-
var getBuiltIn$
|
|
240
|
+
var getBuiltIn$8 = getBuiltIn$9;
|
|
241
241
|
var isCallable$h = isCallable$k;
|
|
242
242
|
var isPrototypeOf$5 = objectIsPrototypeOf;
|
|
243
243
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
@@ -247,7 +247,7 @@ var $Object$3 = Object;
|
|
|
247
247
|
var isSymbol$3 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
248
248
|
return typeof it == 'symbol';
|
|
249
249
|
} : function (it) {
|
|
250
|
-
var $Symbol = getBuiltIn$
|
|
250
|
+
var $Symbol = getBuiltIn$8('Symbol');
|
|
251
251
|
return isCallable$h($Symbol) && isPrototypeOf$5($Symbol.prototype, $Object$3(it));
|
|
252
252
|
};
|
|
253
253
|
|
|
@@ -264,62 +264,62 @@ var tryToString$5 = function (argument) {
|
|
|
264
264
|
var isCallable$g = isCallable$k;
|
|
265
265
|
var tryToString$4 = tryToString$5;
|
|
266
266
|
|
|
267
|
-
var $TypeError$
|
|
267
|
+
var $TypeError$e = TypeError;
|
|
268
268
|
|
|
269
269
|
// `Assert: IsCallable(argument) is true`
|
|
270
|
-
var aCallable$
|
|
270
|
+
var aCallable$6 = function (argument) {
|
|
271
271
|
if (isCallable$g(argument)) return argument;
|
|
272
|
-
throw new $TypeError$
|
|
272
|
+
throw new $TypeError$e(tryToString$4(argument) + ' is not a function');
|
|
273
273
|
};
|
|
274
274
|
|
|
275
|
-
var aCallable$
|
|
275
|
+
var aCallable$5 = aCallable$6;
|
|
276
276
|
var isNullOrUndefined$4 = isNullOrUndefined$6;
|
|
277
277
|
|
|
278
278
|
// `GetMethod` abstract operation
|
|
279
279
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
280
280
|
var getMethod$5 = function (V, P) {
|
|
281
281
|
var func = V[P];
|
|
282
|
-
return isNullOrUndefined$4(func) ? undefined : aCallable$
|
|
282
|
+
return isNullOrUndefined$4(func) ? undefined : aCallable$5(func);
|
|
283
283
|
};
|
|
284
284
|
|
|
285
|
-
var call$
|
|
285
|
+
var call$k = functionCall;
|
|
286
286
|
var isCallable$f = isCallable$k;
|
|
287
287
|
var isObject$d = isObject$e;
|
|
288
288
|
|
|
289
|
-
var $TypeError$
|
|
289
|
+
var $TypeError$d = TypeError;
|
|
290
290
|
|
|
291
291
|
// `OrdinaryToPrimitive` abstract operation
|
|
292
292
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
293
293
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
294
294
|
var fn, val;
|
|
295
|
-
if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$d(val = call$
|
|
296
|
-
if (isCallable$f(fn = input.valueOf) && !isObject$d(val = call$
|
|
297
|
-
if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$d(val = call$
|
|
298
|
-
throw new $TypeError$
|
|
295
|
+
if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$d(val = call$k(fn, input))) return val;
|
|
296
|
+
if (isCallable$f(fn = input.valueOf) && !isObject$d(val = call$k(fn, input))) return val;
|
|
297
|
+
if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$d(val = call$k(fn, input))) return val;
|
|
298
|
+
throw new $TypeError$d("Can't convert object to primitive value");
|
|
299
299
|
};
|
|
300
300
|
|
|
301
301
|
var shared$4 = {exports: {}};
|
|
302
302
|
|
|
303
303
|
var isPure = false;
|
|
304
304
|
|
|
305
|
-
var global$
|
|
305
|
+
var global$q = global$u;
|
|
306
306
|
|
|
307
307
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
308
|
-
var defineProperty$
|
|
308
|
+
var defineProperty$8 = Object.defineProperty;
|
|
309
309
|
|
|
310
310
|
var defineGlobalProperty$3 = function (key, value) {
|
|
311
311
|
try {
|
|
312
|
-
defineProperty$
|
|
312
|
+
defineProperty$8(global$q, key, { value: value, configurable: true, writable: true });
|
|
313
313
|
} catch (error) {
|
|
314
|
-
global$
|
|
314
|
+
global$q[key] = value;
|
|
315
315
|
} return value;
|
|
316
316
|
};
|
|
317
317
|
|
|
318
|
-
var global$
|
|
318
|
+
var global$p = global$u;
|
|
319
319
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
320
320
|
|
|
321
321
|
var SHARED = '__core-js_shared__';
|
|
322
|
-
var store$3 = global$
|
|
322
|
+
var store$3 = global$p[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
323
323
|
|
|
324
324
|
var sharedStore = store$3;
|
|
325
325
|
|
|
@@ -341,59 +341,59 @@ var $Object$2 = Object;
|
|
|
341
341
|
|
|
342
342
|
// `ToObject` abstract operation
|
|
343
343
|
// https://tc39.es/ecma262/#sec-toobject
|
|
344
|
-
var toObject$
|
|
344
|
+
var toObject$8 = function (argument) {
|
|
345
345
|
return $Object$2(requireObjectCoercible$4(argument));
|
|
346
346
|
};
|
|
347
347
|
|
|
348
|
-
var uncurryThis$
|
|
349
|
-
var toObject$
|
|
348
|
+
var uncurryThis$u = functionUncurryThis;
|
|
349
|
+
var toObject$7 = toObject$8;
|
|
350
350
|
|
|
351
|
-
var hasOwnProperty = uncurryThis$
|
|
351
|
+
var hasOwnProperty = uncurryThis$u({}.hasOwnProperty);
|
|
352
352
|
|
|
353
353
|
// `HasOwnProperty` abstract operation
|
|
354
354
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
355
355
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
356
356
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
357
|
-
return hasOwnProperty(toObject$
|
|
357
|
+
return hasOwnProperty(toObject$7(it), key);
|
|
358
358
|
};
|
|
359
359
|
|
|
360
|
-
var uncurryThis$
|
|
360
|
+
var uncurryThis$t = functionUncurryThis;
|
|
361
361
|
|
|
362
362
|
var id = 0;
|
|
363
363
|
var postfix = Math.random();
|
|
364
|
-
var toString$
|
|
364
|
+
var toString$a = uncurryThis$t(1.0.toString);
|
|
365
365
|
|
|
366
366
|
var uid$3 = function (key) {
|
|
367
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
367
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$a(++id + postfix, 36);
|
|
368
368
|
};
|
|
369
369
|
|
|
370
|
-
var global$
|
|
370
|
+
var global$o = global$u;
|
|
371
371
|
var shared$3 = shared$4.exports;
|
|
372
|
-
var hasOwn$
|
|
372
|
+
var hasOwn$e = hasOwnProperty_1;
|
|
373
373
|
var uid$2 = uid$3;
|
|
374
374
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
375
375
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
376
376
|
|
|
377
|
-
var Symbol$1 = global$
|
|
377
|
+
var Symbol$1 = global$o.Symbol;
|
|
378
378
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
379
379
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$2;
|
|
380
380
|
|
|
381
381
|
var wellKnownSymbol$l = function (name) {
|
|
382
|
-
if (!hasOwn$
|
|
383
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$
|
|
382
|
+
if (!hasOwn$e(WellKnownSymbolsStore, name)) {
|
|
383
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$e(Symbol$1, name)
|
|
384
384
|
? Symbol$1[name]
|
|
385
385
|
: createWellKnownSymbol('Symbol.' + name);
|
|
386
386
|
} return WellKnownSymbolsStore[name];
|
|
387
387
|
};
|
|
388
388
|
|
|
389
|
-
var call$
|
|
389
|
+
var call$j = functionCall;
|
|
390
390
|
var isObject$c = isObject$e;
|
|
391
391
|
var isSymbol$2 = isSymbol$3;
|
|
392
392
|
var getMethod$4 = getMethod$5;
|
|
393
393
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
394
394
|
var wellKnownSymbol$k = wellKnownSymbol$l;
|
|
395
395
|
|
|
396
|
-
var $TypeError$
|
|
396
|
+
var $TypeError$c = TypeError;
|
|
397
397
|
var TO_PRIMITIVE = wellKnownSymbol$k('toPrimitive');
|
|
398
398
|
|
|
399
399
|
// `ToPrimitive` abstract operation
|
|
@@ -404,9 +404,9 @@ var toPrimitive$2 = function (input, pref) {
|
|
|
404
404
|
var result;
|
|
405
405
|
if (exoticToPrim) {
|
|
406
406
|
if (pref === undefined) pref = 'default';
|
|
407
|
-
result = call$
|
|
407
|
+
result = call$j(exoticToPrim, input, pref);
|
|
408
408
|
if (!isObject$c(result) || isSymbol$2(result)) return result;
|
|
409
|
-
throw new $TypeError$
|
|
409
|
+
throw new $TypeError$c("Can't convert object to primitive value");
|
|
410
410
|
}
|
|
411
411
|
if (pref === undefined) pref = 'number';
|
|
412
412
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -422,10 +422,10 @@ var toPropertyKey$4 = function (argument) {
|
|
|
422
422
|
return isSymbol$1(key) ? key : key + '';
|
|
423
423
|
};
|
|
424
424
|
|
|
425
|
-
var global$
|
|
425
|
+
var global$n = global$u;
|
|
426
426
|
var isObject$b = isObject$e;
|
|
427
427
|
|
|
428
|
-
var document$1 = global$
|
|
428
|
+
var document$1 = global$n.document;
|
|
429
429
|
// typeof document.createElement is 'object' in old IE
|
|
430
430
|
var EXISTS$1 = isObject$b(document$1) && isObject$b(document$1.createElement);
|
|
431
431
|
|
|
@@ -433,25 +433,25 @@ var documentCreateElement$2 = function (it) {
|
|
|
433
433
|
return EXISTS$1 ? document$1.createElement(it) : {};
|
|
434
434
|
};
|
|
435
435
|
|
|
436
|
-
var DESCRIPTORS$
|
|
437
|
-
var fails$
|
|
436
|
+
var DESCRIPTORS$l = descriptors;
|
|
437
|
+
var fails$q = fails$v;
|
|
438
438
|
var createElement = documentCreateElement$2;
|
|
439
439
|
|
|
440
440
|
// Thanks to IE8 for its funny defineProperty
|
|
441
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
441
|
+
var ie8DomDefine = !DESCRIPTORS$l && !fails$q(function () {
|
|
442
442
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
443
443
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
444
444
|
get: function () { return 7; }
|
|
445
445
|
}).a !== 7;
|
|
446
446
|
});
|
|
447
447
|
|
|
448
|
-
var DESCRIPTORS$
|
|
449
|
-
var call$
|
|
448
|
+
var DESCRIPTORS$k = descriptors;
|
|
449
|
+
var call$i = functionCall;
|
|
450
450
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
451
|
-
var createPropertyDescriptor$
|
|
451
|
+
var createPropertyDescriptor$7 = createPropertyDescriptor$8;
|
|
452
452
|
var toIndexedObject$5 = toIndexedObject$6;
|
|
453
453
|
var toPropertyKey$3 = toPropertyKey$4;
|
|
454
|
-
var hasOwn$
|
|
454
|
+
var hasOwn$d = hasOwnProperty_1;
|
|
455
455
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
456
456
|
|
|
457
457
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -459,23 +459,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
459
459
|
|
|
460
460
|
// `Object.getOwnPropertyDescriptor` method
|
|
461
461
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
462
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
462
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$k ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
463
463
|
O = toIndexedObject$5(O);
|
|
464
464
|
P = toPropertyKey$3(P);
|
|
465
465
|
if (IE8_DOM_DEFINE$1) try {
|
|
466
466
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
467
467
|
} catch (error) { /* empty */ }
|
|
468
|
-
if (hasOwn$
|
|
468
|
+
if (hasOwn$d(O, P)) return createPropertyDescriptor$7(!call$i(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
469
469
|
};
|
|
470
470
|
|
|
471
471
|
var objectDefineProperty = {};
|
|
472
472
|
|
|
473
|
-
var DESCRIPTORS$
|
|
474
|
-
var fails$
|
|
473
|
+
var DESCRIPTORS$j = descriptors;
|
|
474
|
+
var fails$p = fails$v;
|
|
475
475
|
|
|
476
476
|
// V8 ~ Chrome 36-
|
|
477
477
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
478
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
478
|
+
var v8PrototypeDefineBug = DESCRIPTORS$j && fails$p(function () {
|
|
479
479
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
480
480
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
481
481
|
value: 42,
|
|
@@ -486,21 +486,21 @@ var v8PrototypeDefineBug = DESCRIPTORS$e && fails$l(function () {
|
|
|
486
486
|
var isObject$a = isObject$e;
|
|
487
487
|
|
|
488
488
|
var $String$3 = String;
|
|
489
|
-
var $TypeError$
|
|
489
|
+
var $TypeError$b = TypeError;
|
|
490
490
|
|
|
491
491
|
// `Assert: Type(argument) is Object`
|
|
492
|
-
var anObject$
|
|
492
|
+
var anObject$i = function (argument) {
|
|
493
493
|
if (isObject$a(argument)) return argument;
|
|
494
|
-
throw new $TypeError$
|
|
494
|
+
throw new $TypeError$b($String$3(argument) + ' is not an object');
|
|
495
495
|
};
|
|
496
496
|
|
|
497
|
-
var DESCRIPTORS$
|
|
497
|
+
var DESCRIPTORS$i = descriptors;
|
|
498
498
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
499
499
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
500
|
-
var anObject$
|
|
500
|
+
var anObject$h = anObject$i;
|
|
501
501
|
var toPropertyKey$2 = toPropertyKey$4;
|
|
502
502
|
|
|
503
|
-
var $TypeError$
|
|
503
|
+
var $TypeError$a = TypeError;
|
|
504
504
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
505
505
|
var $defineProperty = Object.defineProperty;
|
|
506
506
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -511,10 +511,10 @@ var WRITABLE = 'writable';
|
|
|
511
511
|
|
|
512
512
|
// `Object.defineProperty` method
|
|
513
513
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
514
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
515
|
-
anObject$
|
|
514
|
+
objectDefineProperty.f = DESCRIPTORS$i ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
515
|
+
anObject$h(O);
|
|
516
516
|
P = toPropertyKey$2(P);
|
|
517
|
-
anObject$
|
|
517
|
+
anObject$h(Attributes);
|
|
518
518
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
519
519
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
520
520
|
if (current && current[WRITABLE]) {
|
|
@@ -527,23 +527,23 @@ objectDefineProperty.f = DESCRIPTORS$d ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
527
527
|
}
|
|
528
528
|
} return $defineProperty(O, P, Attributes);
|
|
529
529
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
530
|
-
anObject$
|
|
530
|
+
anObject$h(O);
|
|
531
531
|
P = toPropertyKey$2(P);
|
|
532
|
-
anObject$
|
|
532
|
+
anObject$h(Attributes);
|
|
533
533
|
if (IE8_DOM_DEFINE) try {
|
|
534
534
|
return $defineProperty(O, P, Attributes);
|
|
535
535
|
} catch (error) { /* empty */ }
|
|
536
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
536
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$a('Accessors not supported');
|
|
537
537
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
538
538
|
return O;
|
|
539
539
|
};
|
|
540
540
|
|
|
541
|
-
var DESCRIPTORS$
|
|
541
|
+
var DESCRIPTORS$h = descriptors;
|
|
542
542
|
var definePropertyModule$5 = objectDefineProperty;
|
|
543
|
-
var createPropertyDescriptor$
|
|
543
|
+
var createPropertyDescriptor$6 = createPropertyDescriptor$8;
|
|
544
544
|
|
|
545
|
-
var createNonEnumerableProperty$8 = DESCRIPTORS$
|
|
546
|
-
return definePropertyModule$5.f(object, key, createPropertyDescriptor$
|
|
545
|
+
var createNonEnumerableProperty$8 = DESCRIPTORS$h ? function (object, key, value) {
|
|
546
|
+
return definePropertyModule$5.f(object, key, createPropertyDescriptor$6(1, value));
|
|
547
547
|
} : function (object, key, value) {
|
|
548
548
|
object[key] = value;
|
|
549
549
|
return object;
|
|
@@ -551,17 +551,17 @@ var createNonEnumerableProperty$8 = DESCRIPTORS$c ? function (object, key, value
|
|
|
551
551
|
|
|
552
552
|
var makeBuiltIn$3 = {exports: {}};
|
|
553
553
|
|
|
554
|
-
var DESCRIPTORS$
|
|
555
|
-
var hasOwn$
|
|
554
|
+
var DESCRIPTORS$g = descriptors;
|
|
555
|
+
var hasOwn$c = hasOwnProperty_1;
|
|
556
556
|
|
|
557
557
|
var FunctionPrototype$1 = Function.prototype;
|
|
558
558
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
559
|
-
var getDescriptor = DESCRIPTORS$
|
|
559
|
+
var getDescriptor = DESCRIPTORS$g && Object.getOwnPropertyDescriptor;
|
|
560
560
|
|
|
561
|
-
var EXISTS = hasOwn$
|
|
561
|
+
var EXISTS = hasOwn$c(FunctionPrototype$1, 'name');
|
|
562
562
|
// additional protection from minified / mangled / dropped function names
|
|
563
563
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
564
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
564
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$g || (DESCRIPTORS$g && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
565
565
|
|
|
566
566
|
var functionName = {
|
|
567
567
|
EXISTS: EXISTS,
|
|
@@ -569,11 +569,11 @@ var functionName = {
|
|
|
569
569
|
CONFIGURABLE: CONFIGURABLE
|
|
570
570
|
};
|
|
571
571
|
|
|
572
|
-
var uncurryThis$
|
|
572
|
+
var uncurryThis$s = functionUncurryThis;
|
|
573
573
|
var isCallable$e = isCallable$k;
|
|
574
574
|
var store$1 = sharedStore;
|
|
575
575
|
|
|
576
|
-
var functionToString = uncurryThis$
|
|
576
|
+
var functionToString = uncurryThis$s(Function.toString);
|
|
577
577
|
|
|
578
578
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
579
579
|
if (!isCallable$e(store$1.inspectSource)) {
|
|
@@ -584,12 +584,12 @@ if (!isCallable$e(store$1.inspectSource)) {
|
|
|
584
584
|
|
|
585
585
|
var inspectSource$2 = store$1.inspectSource;
|
|
586
586
|
|
|
587
|
-
var global$
|
|
587
|
+
var global$m = global$u;
|
|
588
588
|
var isCallable$d = isCallable$k;
|
|
589
589
|
|
|
590
|
-
var WeakMap$
|
|
590
|
+
var WeakMap$2 = global$m.WeakMap;
|
|
591
591
|
|
|
592
|
-
var weakMapBasicDetection = isCallable$d(WeakMap$
|
|
592
|
+
var weakMapBasicDetection = isCallable$d(WeakMap$2) && /native code/.test(String(WeakMap$2));
|
|
593
593
|
|
|
594
594
|
var shared$2 = shared$4.exports;
|
|
595
595
|
var uid$1 = uid$3;
|
|
@@ -603,41 +603,41 @@ var sharedKey$3 = function (key) {
|
|
|
603
603
|
var hiddenKeys$4 = {};
|
|
604
604
|
|
|
605
605
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
606
|
-
var global$
|
|
606
|
+
var global$l = global$u;
|
|
607
607
|
var isObject$9 = isObject$e;
|
|
608
608
|
var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
|
|
609
|
-
var hasOwn$
|
|
609
|
+
var hasOwn$b = hasOwnProperty_1;
|
|
610
610
|
var shared$1 = sharedStore;
|
|
611
611
|
var sharedKey$2 = sharedKey$3;
|
|
612
612
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
613
613
|
|
|
614
614
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
615
|
-
var TypeError$
|
|
616
|
-
var WeakMap = global$
|
|
615
|
+
var TypeError$4 = global$l.TypeError;
|
|
616
|
+
var WeakMap$1 = global$l.WeakMap;
|
|
617
617
|
var set$1, get$1, has;
|
|
618
618
|
|
|
619
619
|
var enforce = function (it) {
|
|
620
620
|
return has(it) ? get$1(it) : set$1(it, {});
|
|
621
621
|
};
|
|
622
622
|
|
|
623
|
-
var getterFor = function (TYPE) {
|
|
623
|
+
var getterFor$1 = function (TYPE) {
|
|
624
624
|
return function (it) {
|
|
625
625
|
var state;
|
|
626
626
|
if (!isObject$9(it) || (state = get$1(it)).type !== TYPE) {
|
|
627
|
-
throw new TypeError$
|
|
627
|
+
throw new TypeError$4('Incompatible receiver, ' + TYPE + ' required');
|
|
628
628
|
} return state;
|
|
629
629
|
};
|
|
630
630
|
};
|
|
631
631
|
|
|
632
632
|
if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
633
|
-
var store = shared$1.state || (shared$1.state = new WeakMap());
|
|
633
|
+
var store = shared$1.state || (shared$1.state = new WeakMap$1());
|
|
634
634
|
/* eslint-disable no-self-assign -- prototype methods protection */
|
|
635
635
|
store.get = store.get;
|
|
636
636
|
store.has = store.has;
|
|
637
637
|
store.set = store.set;
|
|
638
638
|
/* eslint-enable no-self-assign -- prototype methods protection */
|
|
639
639
|
set$1 = function (it, metadata) {
|
|
640
|
-
if (store.has(it)) throw new TypeError$
|
|
640
|
+
if (store.has(it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
641
641
|
metadata.facade = it;
|
|
642
642
|
store.set(it, metadata);
|
|
643
643
|
return metadata;
|
|
@@ -652,16 +652,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
652
652
|
var STATE = sharedKey$2('state');
|
|
653
653
|
hiddenKeys$3[STATE] = true;
|
|
654
654
|
set$1 = function (it, metadata) {
|
|
655
|
-
if (hasOwn$
|
|
655
|
+
if (hasOwn$b(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
|
|
656
656
|
metadata.facade = it;
|
|
657
657
|
createNonEnumerableProperty$7(it, STATE, metadata);
|
|
658
658
|
return metadata;
|
|
659
659
|
};
|
|
660
660
|
get$1 = function (it) {
|
|
661
|
-
return hasOwn$
|
|
661
|
+
return hasOwn$b(it, STATE) ? it[STATE] : {};
|
|
662
662
|
};
|
|
663
663
|
has = function (it) {
|
|
664
|
-
return hasOwn$
|
|
664
|
+
return hasOwn$b(it, STATE);
|
|
665
665
|
};
|
|
666
666
|
}
|
|
667
667
|
|
|
@@ -670,54 +670,54 @@ var internalState = {
|
|
|
670
670
|
get: get$1,
|
|
671
671
|
has: has,
|
|
672
672
|
enforce: enforce,
|
|
673
|
-
getterFor: getterFor
|
|
673
|
+
getterFor: getterFor$1
|
|
674
674
|
};
|
|
675
675
|
|
|
676
|
-
var uncurryThis$
|
|
677
|
-
var fails$
|
|
676
|
+
var uncurryThis$r = functionUncurryThis;
|
|
677
|
+
var fails$o = fails$v;
|
|
678
678
|
var isCallable$c = isCallable$k;
|
|
679
|
-
var hasOwn$
|
|
680
|
-
var DESCRIPTORS$
|
|
679
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
680
|
+
var DESCRIPTORS$f = descriptors;
|
|
681
681
|
var CONFIGURABLE_FUNCTION_NAME$2 = functionName.CONFIGURABLE;
|
|
682
682
|
var inspectSource$1 = inspectSource$2;
|
|
683
|
-
var InternalStateModule$
|
|
683
|
+
var InternalStateModule$6 = internalState;
|
|
684
684
|
|
|
685
|
-
var enforceInternalState$2 = InternalStateModule$
|
|
686
|
-
var getInternalState$
|
|
685
|
+
var enforceInternalState$2 = InternalStateModule$6.enforce;
|
|
686
|
+
var getInternalState$5 = InternalStateModule$6.get;
|
|
687
687
|
var $String$2 = String;
|
|
688
688
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
689
|
-
var defineProperty$
|
|
690
|
-
var stringSlice$5 = uncurryThis$
|
|
691
|
-
var replace$
|
|
692
|
-
var join$1 = uncurryThis$
|
|
689
|
+
var defineProperty$7 = Object.defineProperty;
|
|
690
|
+
var stringSlice$5 = uncurryThis$r(''.slice);
|
|
691
|
+
var replace$4 = uncurryThis$r(''.replace);
|
|
692
|
+
var join$1 = uncurryThis$r([].join);
|
|
693
693
|
|
|
694
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
695
|
-
return defineProperty$
|
|
694
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$f && !fails$o(function () {
|
|
695
|
+
return defineProperty$7(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
696
696
|
});
|
|
697
697
|
|
|
698
698
|
var TEMPLATE = String(String).split('String');
|
|
699
699
|
|
|
700
700
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
701
701
|
if (stringSlice$5($String$2(name), 0, 7) === 'Symbol(') {
|
|
702
|
-
name = '[' + replace$
|
|
702
|
+
name = '[' + replace$4($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
703
703
|
}
|
|
704
704
|
if (options && options.getter) name = 'get ' + name;
|
|
705
705
|
if (options && options.setter) name = 'set ' + name;
|
|
706
|
-
if (!hasOwn$
|
|
707
|
-
if (DESCRIPTORS$
|
|
706
|
+
if (!hasOwn$a(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$2 && value.name !== name)) {
|
|
707
|
+
if (DESCRIPTORS$f) defineProperty$7(value, 'name', { value: name, configurable: true });
|
|
708
708
|
else value.name = name;
|
|
709
709
|
}
|
|
710
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
711
|
-
defineProperty$
|
|
710
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$a(options, 'arity') && value.length !== options.arity) {
|
|
711
|
+
defineProperty$7(value, 'length', { value: options.arity });
|
|
712
712
|
}
|
|
713
713
|
try {
|
|
714
|
-
if (options && hasOwn$
|
|
715
|
-
if (DESCRIPTORS$
|
|
714
|
+
if (options && hasOwn$a(options, 'constructor') && options.constructor) {
|
|
715
|
+
if (DESCRIPTORS$f) defineProperty$7(value, 'prototype', { writable: false });
|
|
716
716
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
717
717
|
} else if (value.prototype) value.prototype = undefined;
|
|
718
718
|
} catch (error) { /* empty */ }
|
|
719
719
|
var state = enforceInternalState$2(value);
|
|
720
|
-
if (!hasOwn$
|
|
720
|
+
if (!hasOwn$a(state, 'source')) {
|
|
721
721
|
state.source = join$1(TEMPLATE, typeof name == 'string' ? name : '');
|
|
722
722
|
} return value;
|
|
723
723
|
};
|
|
@@ -725,7 +725,7 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
725
725
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
726
726
|
// eslint-disable-next-line no-extend-native -- required
|
|
727
727
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
728
|
-
return isCallable$c(this) && getInternalState$
|
|
728
|
+
return isCallable$c(this) && getInternalState$5(this).source || inspectSource$1(this);
|
|
729
729
|
}, 'toString');
|
|
730
730
|
|
|
731
731
|
var isCallable$b = isCallable$k;
|
|
@@ -733,7 +733,7 @@ var definePropertyModule$4 = objectDefineProperty;
|
|
|
733
733
|
var makeBuiltIn$1 = makeBuiltIn$3.exports;
|
|
734
734
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
735
735
|
|
|
736
|
-
var defineBuiltIn$
|
|
736
|
+
var defineBuiltIn$b = function (O, key, value, options) {
|
|
737
737
|
if (!options) options = {};
|
|
738
738
|
var simple = options.enumerable;
|
|
739
739
|
var name = options.name !== undefined ? options.name : key;
|
|
@@ -773,53 +773,53 @@ var trunc = mathTrunc;
|
|
|
773
773
|
|
|
774
774
|
// `ToIntegerOrInfinity` abstract operation
|
|
775
775
|
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
|
776
|
-
var toIntegerOrInfinity$
|
|
776
|
+
var toIntegerOrInfinity$a = function (argument) {
|
|
777
777
|
var number = +argument;
|
|
778
778
|
// eslint-disable-next-line no-self-compare -- NaN check
|
|
779
779
|
return number !== number || number === 0 ? 0 : trunc(number);
|
|
780
780
|
};
|
|
781
781
|
|
|
782
|
-
var toIntegerOrInfinity$
|
|
782
|
+
var toIntegerOrInfinity$9 = toIntegerOrInfinity$a;
|
|
783
783
|
|
|
784
784
|
var max$1 = Math.max;
|
|
785
|
-
var min$
|
|
785
|
+
var min$3 = Math.min;
|
|
786
786
|
|
|
787
787
|
// Helper for a popular repeating case of the spec:
|
|
788
788
|
// Let integer be ? ToInteger(index).
|
|
789
789
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
|
790
790
|
var toAbsoluteIndex$3 = function (index, length) {
|
|
791
|
-
var integer = toIntegerOrInfinity$
|
|
792
|
-
return integer < 0 ? max$1(integer + length, 0) : min$
|
|
791
|
+
var integer = toIntegerOrInfinity$9(index);
|
|
792
|
+
return integer < 0 ? max$1(integer + length, 0) : min$3(integer, length);
|
|
793
793
|
};
|
|
794
794
|
|
|
795
|
-
var toIntegerOrInfinity$
|
|
795
|
+
var toIntegerOrInfinity$8 = toIntegerOrInfinity$a;
|
|
796
796
|
|
|
797
|
-
var min$
|
|
797
|
+
var min$2 = Math.min;
|
|
798
798
|
|
|
799
799
|
// `ToLength` abstract operation
|
|
800
800
|
// https://tc39.es/ecma262/#sec-tolength
|
|
801
801
|
var toLength$6 = function (argument) {
|
|
802
|
-
var len = toIntegerOrInfinity$
|
|
803
|
-
return len > 0 ? min$
|
|
802
|
+
var len = toIntegerOrInfinity$8(argument);
|
|
803
|
+
return len > 0 ? min$2(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
|
804
804
|
};
|
|
805
805
|
|
|
806
806
|
var toLength$5 = toLength$6;
|
|
807
807
|
|
|
808
808
|
// `LengthOfArrayLike` abstract operation
|
|
809
809
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
810
|
-
var lengthOfArrayLike$
|
|
810
|
+
var lengthOfArrayLike$b = function (obj) {
|
|
811
811
|
return toLength$5(obj.length);
|
|
812
812
|
};
|
|
813
813
|
|
|
814
814
|
var toIndexedObject$4 = toIndexedObject$6;
|
|
815
815
|
var toAbsoluteIndex$2 = toAbsoluteIndex$3;
|
|
816
|
-
var lengthOfArrayLike$
|
|
816
|
+
var lengthOfArrayLike$a = lengthOfArrayLike$b;
|
|
817
817
|
|
|
818
818
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
819
|
-
var createMethod$
|
|
819
|
+
var createMethod$3 = function (IS_INCLUDES) {
|
|
820
820
|
return function ($this, el, fromIndex) {
|
|
821
821
|
var O = toIndexedObject$4($this);
|
|
822
|
-
var length = lengthOfArrayLike$
|
|
822
|
+
var length = lengthOfArrayLike$a(O);
|
|
823
823
|
var index = toAbsoluteIndex$2(fromIndex, length);
|
|
824
824
|
var value;
|
|
825
825
|
// Array#includes uses SameValueZero equality algorithm
|
|
@@ -838,29 +838,29 @@ var createMethod$2 = function (IS_INCLUDES) {
|
|
|
838
838
|
var arrayIncludes = {
|
|
839
839
|
// `Array.prototype.includes` method
|
|
840
840
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
841
|
-
includes: createMethod$
|
|
841
|
+
includes: createMethod$3(true),
|
|
842
842
|
// `Array.prototype.indexOf` method
|
|
843
843
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
844
|
-
indexOf: createMethod$
|
|
844
|
+
indexOf: createMethod$3(false)
|
|
845
845
|
};
|
|
846
846
|
|
|
847
|
-
var uncurryThis$
|
|
848
|
-
var hasOwn$
|
|
847
|
+
var uncurryThis$q = functionUncurryThis;
|
|
848
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
849
849
|
var toIndexedObject$3 = toIndexedObject$6;
|
|
850
850
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
851
851
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
852
852
|
|
|
853
|
-
var push$
|
|
853
|
+
var push$4 = uncurryThis$q([].push);
|
|
854
854
|
|
|
855
855
|
var objectKeysInternal = function (object, names) {
|
|
856
856
|
var O = toIndexedObject$3(object);
|
|
857
857
|
var i = 0;
|
|
858
858
|
var result = [];
|
|
859
859
|
var key;
|
|
860
|
-
for (key in O) !hasOwn$
|
|
860
|
+
for (key in O) !hasOwn$9(hiddenKeys$2, key) && hasOwn$9(O, key) && push$4(result, key);
|
|
861
861
|
// Don't enum bug & hidden keys
|
|
862
|
-
while (names.length > i) if (hasOwn$
|
|
863
|
-
~indexOf$1(result, key) || push$
|
|
862
|
+
while (names.length > i) if (hasOwn$9(O, key = names[i++])) {
|
|
863
|
+
~indexOf$1(result, key) || push$4(result, key);
|
|
864
864
|
}
|
|
865
865
|
return result;
|
|
866
866
|
};
|
|
@@ -893,22 +893,22 @@ var objectGetOwnPropertySymbols = {};
|
|
|
893
893
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
894
894
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
895
895
|
|
|
896
|
-
var getBuiltIn$
|
|
897
|
-
var uncurryThis$
|
|
896
|
+
var getBuiltIn$7 = getBuiltIn$9;
|
|
897
|
+
var uncurryThis$p = functionUncurryThis;
|
|
898
898
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
899
899
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
900
|
-
var anObject$
|
|
900
|
+
var anObject$g = anObject$i;
|
|
901
901
|
|
|
902
|
-
var concat$2 = uncurryThis$
|
|
902
|
+
var concat$2 = uncurryThis$p([].concat);
|
|
903
903
|
|
|
904
904
|
// all object keys, includes non-enumerable and symbols
|
|
905
|
-
var ownKeys$1 = getBuiltIn$
|
|
906
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
905
|
+
var ownKeys$1 = getBuiltIn$7('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
906
|
+
var keys = getOwnPropertyNamesModule.f(anObject$g(it));
|
|
907
907
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
908
908
|
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
909
909
|
};
|
|
910
910
|
|
|
911
|
-
var hasOwn$
|
|
911
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
912
912
|
var ownKeys = ownKeys$1;
|
|
913
913
|
var getOwnPropertyDescriptorModule$1 = objectGetOwnPropertyDescriptor;
|
|
914
914
|
var definePropertyModule$3 = objectDefineProperty;
|
|
@@ -919,13 +919,13 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
|
919
919
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule$1.f;
|
|
920
920
|
for (var i = 0; i < keys.length; i++) {
|
|
921
921
|
var key = keys[i];
|
|
922
|
-
if (!hasOwn$
|
|
922
|
+
if (!hasOwn$8(target, key) && !(exceptions && hasOwn$8(exceptions, key))) {
|
|
923
923
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
927
|
|
|
928
|
-
var fails$
|
|
928
|
+
var fails$n = fails$v;
|
|
929
929
|
var isCallable$a = isCallable$k;
|
|
930
930
|
|
|
931
931
|
var replacement = /#|\.prototype\./;
|
|
@@ -934,7 +934,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
934
934
|
var value = data[normalize(feature)];
|
|
935
935
|
return value === POLYFILL ? true
|
|
936
936
|
: value === NATIVE ? false
|
|
937
|
-
: isCallable$a(detection) ? fails$
|
|
937
|
+
: isCallable$a(detection) ? fails$n(detection)
|
|
938
938
|
: !!detection;
|
|
939
939
|
};
|
|
940
940
|
|
|
@@ -948,10 +948,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
|
|
|
948
948
|
|
|
949
949
|
var isForced_1 = isForced$1;
|
|
950
950
|
|
|
951
|
-
var global$
|
|
951
|
+
var global$k = global$u;
|
|
952
952
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
953
953
|
var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
|
|
954
|
-
var defineBuiltIn$
|
|
954
|
+
var defineBuiltIn$a = defineBuiltIn$b;
|
|
955
955
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
956
956
|
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
957
957
|
var isForced = isForced_1;
|
|
@@ -977,11 +977,11 @@ var _export = function (options, source) {
|
|
|
977
977
|
var STATIC = options.stat;
|
|
978
978
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
979
979
|
if (GLOBAL) {
|
|
980
|
-
target = global$
|
|
980
|
+
target = global$k;
|
|
981
981
|
} else if (STATIC) {
|
|
982
|
-
target = global$
|
|
982
|
+
target = global$k[TARGET] || defineGlobalProperty(TARGET, {});
|
|
983
983
|
} else {
|
|
984
|
-
target = global$
|
|
984
|
+
target = global$k[TARGET] && global$k[TARGET].prototype;
|
|
985
985
|
}
|
|
986
986
|
if (target) for (key in source) {
|
|
987
987
|
sourceProperty = source[key];
|
|
@@ -999,7 +999,7 @@ var _export = function (options, source) {
|
|
|
999
999
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1000
1000
|
createNonEnumerableProperty$6(sourceProperty, 'sham', true);
|
|
1001
1001
|
}
|
|
1002
|
-
defineBuiltIn$
|
|
1002
|
+
defineBuiltIn$a(target, key, sourceProperty, options);
|
|
1003
1003
|
}
|
|
1004
1004
|
};
|
|
1005
1005
|
|
|
@@ -1015,18 +1015,18 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1015
1015
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1016
1016
|
};
|
|
1017
1017
|
|
|
1018
|
-
var DESCRIPTORS$
|
|
1018
|
+
var DESCRIPTORS$e = descriptors;
|
|
1019
1019
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1020
1020
|
var definePropertyModule$2 = objectDefineProperty;
|
|
1021
|
-
var anObject$
|
|
1021
|
+
var anObject$f = anObject$i;
|
|
1022
1022
|
var toIndexedObject$2 = toIndexedObject$6;
|
|
1023
1023
|
var objectKeys$1 = objectKeys$2;
|
|
1024
1024
|
|
|
1025
1025
|
// `Object.defineProperties` method
|
|
1026
1026
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1027
1027
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1028
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
1029
|
-
anObject$
|
|
1028
|
+
objectDefineProperties.f = DESCRIPTORS$e && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1029
|
+
anObject$f(O);
|
|
1030
1030
|
var props = toIndexedObject$2(Properties);
|
|
1031
1031
|
var keys = objectKeys$1(Properties);
|
|
1032
1032
|
var length = keys.length;
|
|
@@ -1036,12 +1036,12 @@ objectDefineProperties.f = DESCRIPTORS$9 && !V8_PROTOTYPE_DEFINE_BUG ? Object.de
|
|
|
1036
1036
|
return O;
|
|
1037
1037
|
};
|
|
1038
1038
|
|
|
1039
|
-
var getBuiltIn$
|
|
1039
|
+
var getBuiltIn$6 = getBuiltIn$9;
|
|
1040
1040
|
|
|
1041
|
-
var html$1 = getBuiltIn$
|
|
1041
|
+
var html$1 = getBuiltIn$6('document', 'documentElement');
|
|
1042
1042
|
|
|
1043
1043
|
/* global ActiveXObject -- old IE, WSH */
|
|
1044
|
-
var anObject$
|
|
1044
|
+
var anObject$e = anObject$i;
|
|
1045
1045
|
var definePropertiesModule = objectDefineProperties;
|
|
1046
1046
|
var enumBugKeys = enumBugKeys$3;
|
|
1047
1047
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -1115,7 +1115,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1115
1115
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1116
1116
|
var result;
|
|
1117
1117
|
if (O !== null) {
|
|
1118
|
-
EmptyConstructor[PROTOTYPE$1] = anObject$
|
|
1118
|
+
EmptyConstructor[PROTOTYPE$1] = anObject$e(O);
|
|
1119
1119
|
result = new EmptyConstructor();
|
|
1120
1120
|
EmptyConstructor[PROTOTYPE$1] = null;
|
|
1121
1121
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1125,8 +1125,8 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1125
1125
|
};
|
|
1126
1126
|
|
|
1127
1127
|
var wellKnownSymbol$j = wellKnownSymbol$l;
|
|
1128
|
-
var create$
|
|
1129
|
-
var defineProperty$
|
|
1128
|
+
var create$5 = objectCreate;
|
|
1129
|
+
var defineProperty$6 = objectDefineProperty.f;
|
|
1130
1130
|
|
|
1131
1131
|
var UNSCOPABLES = wellKnownSymbol$j('unscopables');
|
|
1132
1132
|
var ArrayPrototype$1 = Array.prototype;
|
|
@@ -1134,9 +1134,9 @@ var ArrayPrototype$1 = Array.prototype;
|
|
|
1134
1134
|
// Array.prototype[@@unscopables]
|
|
1135
1135
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
1136
1136
|
if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
|
|
1137
|
-
defineProperty$
|
|
1137
|
+
defineProperty$6(ArrayPrototype$1, UNSCOPABLES, {
|
|
1138
1138
|
configurable: true,
|
|
1139
|
-
value: create$
|
|
1139
|
+
value: create$5(null)
|
|
1140
1140
|
});
|
|
1141
1141
|
}
|
|
1142
1142
|
|
|
@@ -1145,20 +1145,20 @@ var addToUnscopables$2 = function (key) {
|
|
|
1145
1145
|
ArrayPrototype$1[UNSCOPABLES][key] = true;
|
|
1146
1146
|
};
|
|
1147
1147
|
|
|
1148
|
-
var $$
|
|
1148
|
+
var $$d = _export;
|
|
1149
1149
|
var $includes = arrayIncludes.includes;
|
|
1150
|
-
var fails$
|
|
1150
|
+
var fails$m = fails$v;
|
|
1151
1151
|
var addToUnscopables$1 = addToUnscopables$2;
|
|
1152
1152
|
|
|
1153
1153
|
// FF99+ bug
|
|
1154
|
-
var BROKEN_ON_SPARSE = fails$
|
|
1154
|
+
var BROKEN_ON_SPARSE = fails$m(function () {
|
|
1155
1155
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
1156
1156
|
return !Array(1).includes();
|
|
1157
1157
|
});
|
|
1158
1158
|
|
|
1159
1159
|
// `Array.prototype.includes` method
|
|
1160
1160
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1161
|
-
$$
|
|
1161
|
+
$$d({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
1162
1162
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1163
1163
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1164
1164
|
}
|
|
@@ -1169,18 +1169,18 @@ addToUnscopables$1('includes');
|
|
|
1169
1169
|
|
|
1170
1170
|
var iterators = {};
|
|
1171
1171
|
|
|
1172
|
-
var fails$
|
|
1172
|
+
var fails$l = fails$v;
|
|
1173
1173
|
|
|
1174
|
-
var correctPrototypeGetter = !fails$
|
|
1174
|
+
var correctPrototypeGetter = !fails$l(function () {
|
|
1175
1175
|
function F() { /* empty */ }
|
|
1176
1176
|
F.prototype.constructor = null;
|
|
1177
1177
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1178
1178
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1179
1179
|
});
|
|
1180
1180
|
|
|
1181
|
-
var hasOwn$
|
|
1181
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
1182
1182
|
var isCallable$9 = isCallable$k;
|
|
1183
|
-
var toObject$
|
|
1183
|
+
var toObject$6 = toObject$8;
|
|
1184
1184
|
var sharedKey = sharedKey$3;
|
|
1185
1185
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1186
1186
|
|
|
@@ -1192,19 +1192,19 @@ var ObjectPrototype$2 = $Object$1.prototype;
|
|
|
1192
1192
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1193
1193
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1194
1194
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1195
|
-
var object = toObject$
|
|
1196
|
-
if (hasOwn$
|
|
1195
|
+
var object = toObject$6(O);
|
|
1196
|
+
if (hasOwn$7(object, IE_PROTO)) return object[IE_PROTO];
|
|
1197
1197
|
var constructor = object.constructor;
|
|
1198
1198
|
if (isCallable$9(constructor) && object instanceof constructor) {
|
|
1199
1199
|
return constructor.prototype;
|
|
1200
1200
|
} return object instanceof $Object$1 ? ObjectPrototype$2 : null;
|
|
1201
1201
|
};
|
|
1202
1202
|
|
|
1203
|
-
var fails$
|
|
1203
|
+
var fails$k = fails$v;
|
|
1204
1204
|
var isCallable$8 = isCallable$k;
|
|
1205
1205
|
var isObject$8 = isObject$e;
|
|
1206
1206
|
var getPrototypeOf$3 = objectGetPrototypeOf;
|
|
1207
|
-
var defineBuiltIn$
|
|
1207
|
+
var defineBuiltIn$9 = defineBuiltIn$b;
|
|
1208
1208
|
var wellKnownSymbol$i = wellKnownSymbol$l;
|
|
1209
1209
|
|
|
1210
1210
|
var ITERATOR$7 = wellKnownSymbol$i('iterator');
|
|
@@ -1225,7 +1225,7 @@ if ([].keys) {
|
|
|
1225
1225
|
}
|
|
1226
1226
|
}
|
|
1227
1227
|
|
|
1228
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$8(IteratorPrototype$2) || fails$
|
|
1228
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$8(IteratorPrototype$2) || fails$k(function () {
|
|
1229
1229
|
var test = {};
|
|
1230
1230
|
// FF44- legacy iterators case
|
|
1231
1231
|
return IteratorPrototype$2[ITERATOR$7].call(test) !== test;
|
|
@@ -1236,7 +1236,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1236
1236
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1237
1237
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1238
1238
|
if (!isCallable$8(IteratorPrototype$2[ITERATOR$7])) {
|
|
1239
|
-
defineBuiltIn$
|
|
1239
|
+
defineBuiltIn$9(IteratorPrototype$2, ITERATOR$7, function () {
|
|
1240
1240
|
return this;
|
|
1241
1241
|
});
|
|
1242
1242
|
}
|
|
@@ -1246,42 +1246,42 @@ var iteratorsCore = {
|
|
|
1246
1246
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1247
1247
|
};
|
|
1248
1248
|
|
|
1249
|
-
var defineProperty$
|
|
1250
|
-
var hasOwn$
|
|
1249
|
+
var defineProperty$5 = objectDefineProperty.f;
|
|
1250
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
1251
1251
|
var wellKnownSymbol$h = wellKnownSymbol$l;
|
|
1252
1252
|
|
|
1253
1253
|
var TO_STRING_TAG$3 = wellKnownSymbol$h('toStringTag');
|
|
1254
1254
|
|
|
1255
|
-
var setToStringTag$
|
|
1255
|
+
var setToStringTag$6 = function (target, TAG, STATIC) {
|
|
1256
1256
|
if (target && !STATIC) target = target.prototype;
|
|
1257
|
-
if (target && !hasOwn$
|
|
1258
|
-
defineProperty$
|
|
1257
|
+
if (target && !hasOwn$6(target, TO_STRING_TAG$3)) {
|
|
1258
|
+
defineProperty$5(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
|
|
1259
1259
|
}
|
|
1260
1260
|
};
|
|
1261
1261
|
|
|
1262
1262
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
1263
|
-
var create$
|
|
1264
|
-
var createPropertyDescriptor$
|
|
1265
|
-
var setToStringTag$
|
|
1263
|
+
var create$4 = objectCreate;
|
|
1264
|
+
var createPropertyDescriptor$5 = createPropertyDescriptor$8;
|
|
1265
|
+
var setToStringTag$5 = setToStringTag$6;
|
|
1266
1266
|
var Iterators$4 = iterators;
|
|
1267
1267
|
|
|
1268
1268
|
var returnThis$1 = function () { return this; };
|
|
1269
1269
|
|
|
1270
1270
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1271
1271
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1272
|
-
IteratorConstructor.prototype = create$
|
|
1273
|
-
setToStringTag$
|
|
1272
|
+
IteratorConstructor.prototype = create$4(IteratorPrototype$1, { next: createPropertyDescriptor$5(+!ENUMERABLE_NEXT, next) });
|
|
1273
|
+
setToStringTag$5(IteratorConstructor, TO_STRING_TAG, false);
|
|
1274
1274
|
Iterators$4[TO_STRING_TAG] = returnThis$1;
|
|
1275
1275
|
return IteratorConstructor;
|
|
1276
1276
|
};
|
|
1277
1277
|
|
|
1278
|
-
var uncurryThis$
|
|
1279
|
-
var aCallable$
|
|
1278
|
+
var uncurryThis$o = functionUncurryThis;
|
|
1279
|
+
var aCallable$4 = aCallable$6;
|
|
1280
1280
|
|
|
1281
1281
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1282
1282
|
try {
|
|
1283
1283
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1284
|
-
return uncurryThis$
|
|
1284
|
+
return uncurryThis$o(aCallable$4(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1285
1285
|
} catch (error) { /* empty */ }
|
|
1286
1286
|
};
|
|
1287
1287
|
|
|
@@ -1294,16 +1294,16 @@ var isPossiblePrototype$1 = function (argument) {
|
|
|
1294
1294
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1295
1295
|
|
|
1296
1296
|
var $String$1 = String;
|
|
1297
|
-
var $TypeError$
|
|
1297
|
+
var $TypeError$9 = TypeError;
|
|
1298
1298
|
|
|
1299
1299
|
var aPossiblePrototype$1 = function (argument) {
|
|
1300
1300
|
if (isPossiblePrototype(argument)) return argument;
|
|
1301
|
-
throw new $TypeError$
|
|
1301
|
+
throw new $TypeError$9("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1302
1302
|
};
|
|
1303
1303
|
|
|
1304
1304
|
/* eslint-disable no-proto -- safe */
|
|
1305
|
-
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
1306
|
-
var anObject$
|
|
1305
|
+
var uncurryThisAccessor$2 = functionUncurryThisAccessor;
|
|
1306
|
+
var anObject$d = anObject$i;
|
|
1307
1307
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
1308
1308
|
|
|
1309
1309
|
// `Object.setPrototypeOf` method
|
|
@@ -1315,12 +1315,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1315
1315
|
var test = {};
|
|
1316
1316
|
var setter;
|
|
1317
1317
|
try {
|
|
1318
|
-
setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
|
|
1318
|
+
setter = uncurryThisAccessor$2(Object.prototype, '__proto__', 'set');
|
|
1319
1319
|
setter(test, []);
|
|
1320
1320
|
CORRECT_SETTER = test instanceof Array;
|
|
1321
1321
|
} catch (error) { /* empty */ }
|
|
1322
1322
|
return function setPrototypeOf(O, proto) {
|
|
1323
|
-
anObject$
|
|
1323
|
+
anObject$d(O);
|
|
1324
1324
|
aPossiblePrototype(proto);
|
|
1325
1325
|
if (CORRECT_SETTER) setter(O, proto);
|
|
1326
1326
|
else O.__proto__ = proto;
|
|
@@ -1328,16 +1328,16 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1328
1328
|
};
|
|
1329
1329
|
}() : undefined);
|
|
1330
1330
|
|
|
1331
|
-
var $$
|
|
1332
|
-
var call$
|
|
1331
|
+
var $$c = _export;
|
|
1332
|
+
var call$h = functionCall;
|
|
1333
1333
|
var FunctionName$1 = functionName;
|
|
1334
1334
|
var isCallable$7 = isCallable$k;
|
|
1335
1335
|
var createIteratorConstructor$1 = iteratorCreateConstructor;
|
|
1336
1336
|
var getPrototypeOf$2 = objectGetPrototypeOf;
|
|
1337
1337
|
var setPrototypeOf$4 = objectSetPrototypeOf;
|
|
1338
|
-
var setToStringTag$
|
|
1338
|
+
var setToStringTag$4 = setToStringTag$6;
|
|
1339
1339
|
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
1340
|
-
var defineBuiltIn$
|
|
1340
|
+
var defineBuiltIn$8 = defineBuiltIn$b;
|
|
1341
1341
|
var wellKnownSymbol$g = wellKnownSymbol$l;
|
|
1342
1342
|
var Iterators$3 = iterators;
|
|
1343
1343
|
var IteratorsCore = iteratorsCore;
|
|
@@ -1387,11 +1387,11 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1387
1387
|
if (setPrototypeOf$4) {
|
|
1388
1388
|
setPrototypeOf$4(CurrentIteratorPrototype, IteratorPrototype);
|
|
1389
1389
|
} else if (!isCallable$7(CurrentIteratorPrototype[ITERATOR$6])) {
|
|
1390
|
-
defineBuiltIn$
|
|
1390
|
+
defineBuiltIn$8(CurrentIteratorPrototype, ITERATOR$6, returnThis);
|
|
1391
1391
|
}
|
|
1392
1392
|
}
|
|
1393
1393
|
// Set @@toStringTag to native iterators
|
|
1394
|
-
setToStringTag$
|
|
1394
|
+
setToStringTag$4(CurrentIteratorPrototype, TO_STRING_TAG, true);
|
|
1395
1395
|
}
|
|
1396
1396
|
}
|
|
1397
1397
|
|
|
@@ -1401,7 +1401,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1401
1401
|
createNonEnumerableProperty$5(IterablePrototype, 'name', VALUES);
|
|
1402
1402
|
} else {
|
|
1403
1403
|
INCORRECT_VALUES_NAME = true;
|
|
1404
|
-
defaultIterator = function values() { return call$
|
|
1404
|
+
defaultIterator = function values() { return call$h(nativeIterator, this); };
|
|
1405
1405
|
}
|
|
1406
1406
|
}
|
|
1407
1407
|
|
|
@@ -1414,14 +1414,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1414
1414
|
};
|
|
1415
1415
|
if (FORCED) for (KEY in methods) {
|
|
1416
1416
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1417
|
-
defineBuiltIn$
|
|
1417
|
+
defineBuiltIn$8(IterablePrototype, KEY, methods[KEY]);
|
|
1418
1418
|
}
|
|
1419
|
-
} else $$
|
|
1419
|
+
} else $$c({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1420
1420
|
}
|
|
1421
1421
|
|
|
1422
1422
|
// define iterator
|
|
1423
1423
|
if (IterablePrototype[ITERATOR$6] !== defaultIterator) {
|
|
1424
|
-
defineBuiltIn$
|
|
1424
|
+
defineBuiltIn$8(IterablePrototype, ITERATOR$6, defaultIterator, { name: DEFAULT });
|
|
1425
1425
|
}
|
|
1426
1426
|
Iterators$3[NAME] = defaultIterator;
|
|
1427
1427
|
|
|
@@ -1437,15 +1437,15 @@ var createIterResultObject$2 = function (value, done) {
|
|
|
1437
1437
|
var toIndexedObject$1 = toIndexedObject$6;
|
|
1438
1438
|
var addToUnscopables = addToUnscopables$2;
|
|
1439
1439
|
var Iterators$2 = iterators;
|
|
1440
|
-
var InternalStateModule$
|
|
1441
|
-
var defineProperty$
|
|
1440
|
+
var InternalStateModule$5 = internalState;
|
|
1441
|
+
var defineProperty$4 = objectDefineProperty.f;
|
|
1442
1442
|
var defineIterator = iteratorDefine;
|
|
1443
1443
|
var createIterResultObject$1 = createIterResultObject$2;
|
|
1444
|
-
var DESCRIPTORS$
|
|
1444
|
+
var DESCRIPTORS$d = descriptors;
|
|
1445
1445
|
|
|
1446
1446
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1447
|
-
var setInternalState$
|
|
1448
|
-
var getInternalState$
|
|
1447
|
+
var setInternalState$4 = InternalStateModule$5.set;
|
|
1448
|
+
var getInternalState$4 = InternalStateModule$5.getterFor(ARRAY_ITERATOR);
|
|
1449
1449
|
|
|
1450
1450
|
// `Array.prototype.entries` method
|
|
1451
1451
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -1458,7 +1458,7 @@ var getInternalState$3 = InternalStateModule$4.getterFor(ARRAY_ITERATOR);
|
|
|
1458
1458
|
// `CreateArrayIterator` internal method
|
|
1459
1459
|
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
1460
1460
|
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
1461
|
-
setInternalState$
|
|
1461
|
+
setInternalState$4(this, {
|
|
1462
1462
|
type: ARRAY_ITERATOR,
|
|
1463
1463
|
target: toIndexedObject$1(iterated), // target
|
|
1464
1464
|
index: 0, // next index
|
|
@@ -1467,7 +1467,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1467
1467
|
// `%ArrayIteratorPrototype%.next` method
|
|
1468
1468
|
// https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
|
|
1469
1469
|
}, function () {
|
|
1470
|
-
var state = getInternalState$
|
|
1470
|
+
var state = getInternalState$4(this);
|
|
1471
1471
|
var target = state.target;
|
|
1472
1472
|
var index = state.index++;
|
|
1473
1473
|
if (!target || index >= target.length) {
|
|
@@ -1491,34 +1491,34 @@ addToUnscopables('values');
|
|
|
1491
1491
|
addToUnscopables('entries');
|
|
1492
1492
|
|
|
1493
1493
|
// V8 ~ Chrome 45- bug
|
|
1494
|
-
if (DESCRIPTORS$
|
|
1495
|
-
defineProperty$
|
|
1494
|
+
if (DESCRIPTORS$d && values.name !== 'values') try {
|
|
1495
|
+
defineProperty$4(values, 'name', { value: 'values' });
|
|
1496
1496
|
} catch (error) { /* empty */ }
|
|
1497
1497
|
|
|
1498
|
-
var DESCRIPTORS$
|
|
1499
|
-
var uncurryThis$
|
|
1500
|
-
var call$
|
|
1501
|
-
var fails$
|
|
1498
|
+
var DESCRIPTORS$c = descriptors;
|
|
1499
|
+
var uncurryThis$n = functionUncurryThis;
|
|
1500
|
+
var call$g = functionCall;
|
|
1501
|
+
var fails$j = fails$v;
|
|
1502
1502
|
var objectKeys = objectKeys$2;
|
|
1503
1503
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1504
1504
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1505
|
-
var toObject$
|
|
1506
|
-
var IndexedObject$
|
|
1505
|
+
var toObject$5 = toObject$8;
|
|
1506
|
+
var IndexedObject$2 = indexedObject;
|
|
1507
1507
|
|
|
1508
1508
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
1509
1509
|
var $assign = Object.assign;
|
|
1510
1510
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
1511
|
-
var defineProperty$
|
|
1512
|
-
var concat$1 = uncurryThis$
|
|
1511
|
+
var defineProperty$3 = Object.defineProperty;
|
|
1512
|
+
var concat$1 = uncurryThis$n([].concat);
|
|
1513
1513
|
|
|
1514
1514
|
// `Object.assign` method
|
|
1515
1515
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1516
|
-
var objectAssign = !$assign || fails$
|
|
1516
|
+
var objectAssign = !$assign || fails$j(function () {
|
|
1517
1517
|
// should have correct order of operations (Edge bug)
|
|
1518
|
-
if (DESCRIPTORS$
|
|
1518
|
+
if (DESCRIPTORS$c && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
|
|
1519
1519
|
enumerable: true,
|
|
1520
1520
|
get: function () {
|
|
1521
|
-
defineProperty$
|
|
1521
|
+
defineProperty$3(this, 'b', {
|
|
1522
1522
|
value: 3,
|
|
1523
1523
|
enumerable: false
|
|
1524
1524
|
});
|
|
@@ -1534,54 +1534,54 @@ var objectAssign = !$assign || fails$f(function () {
|
|
|
1534
1534
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1535
1535
|
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1536
1536
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1537
|
-
var T = toObject$
|
|
1537
|
+
var T = toObject$5(target);
|
|
1538
1538
|
var argumentsLength = arguments.length;
|
|
1539
1539
|
var index = 1;
|
|
1540
1540
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
1541
1541
|
var propertyIsEnumerable = propertyIsEnumerableModule.f;
|
|
1542
1542
|
while (argumentsLength > index) {
|
|
1543
|
-
var S = IndexedObject$
|
|
1543
|
+
var S = IndexedObject$2(arguments[index++]);
|
|
1544
1544
|
var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
|
1545
1545
|
var length = keys.length;
|
|
1546
1546
|
var j = 0;
|
|
1547
1547
|
var key;
|
|
1548
1548
|
while (length > j) {
|
|
1549
1549
|
key = keys[j++];
|
|
1550
|
-
if (!DESCRIPTORS$
|
|
1550
|
+
if (!DESCRIPTORS$c || call$g(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1551
1551
|
}
|
|
1552
1552
|
} return T;
|
|
1553
1553
|
} : $assign;
|
|
1554
1554
|
|
|
1555
|
-
var $$
|
|
1555
|
+
var $$b = _export;
|
|
1556
1556
|
var assign = objectAssign;
|
|
1557
1557
|
|
|
1558
1558
|
// `Object.assign` method
|
|
1559
1559
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1560
1560
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1561
|
-
$$
|
|
1561
|
+
$$b({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1562
1562
|
assign: assign
|
|
1563
1563
|
});
|
|
1564
1564
|
|
|
1565
1565
|
var classofRaw$1 = classofRaw$2;
|
|
1566
|
-
var uncurryThis$
|
|
1566
|
+
var uncurryThis$m = functionUncurryThis;
|
|
1567
1567
|
|
|
1568
1568
|
var functionUncurryThisClause = function (fn) {
|
|
1569
1569
|
// Nashorn bug:
|
|
1570
1570
|
// https://github.com/zloirock/core-js/issues/1128
|
|
1571
1571
|
// https://github.com/zloirock/core-js/issues/1130
|
|
1572
|
-
if (classofRaw$1(fn) === 'Function') return uncurryThis$
|
|
1572
|
+
if (classofRaw$1(fn) === 'Function') return uncurryThis$m(fn);
|
|
1573
1573
|
};
|
|
1574
1574
|
|
|
1575
|
-
var uncurryThis$
|
|
1576
|
-
var aCallable$
|
|
1575
|
+
var uncurryThis$l = functionUncurryThisClause;
|
|
1576
|
+
var aCallable$3 = aCallable$6;
|
|
1577
1577
|
var NATIVE_BIND$1 = functionBindNative;
|
|
1578
1578
|
|
|
1579
|
-
var bind$
|
|
1579
|
+
var bind$5 = uncurryThis$l(uncurryThis$l.bind);
|
|
1580
1580
|
|
|
1581
1581
|
// optional / simple context binding
|
|
1582
1582
|
var functionBindContext = function (fn, that) {
|
|
1583
|
-
aCallable$
|
|
1584
|
-
return that === undefined ? fn : NATIVE_BIND$1 ? bind$
|
|
1583
|
+
aCallable$3(fn);
|
|
1584
|
+
return that === undefined ? fn : NATIVE_BIND$1 ? bind$5(fn, that) : function (/* ...args */) {
|
|
1585
1585
|
return fn.apply(that, arguments);
|
|
1586
1586
|
};
|
|
1587
1587
|
};
|
|
@@ -1625,7 +1625,7 @@ var tryGet = function (it, key) {
|
|
|
1625
1625
|
};
|
|
1626
1626
|
|
|
1627
1627
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1628
|
-
var classof$
|
|
1628
|
+
var classof$d = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1629
1629
|
var O, tag, result;
|
|
1630
1630
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1631
1631
|
// @@toStringTag case
|
|
@@ -1636,7 +1636,7 @@ var classof$b = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
|
1636
1636
|
: (result = classofRaw(O)) === 'Object' && isCallable$6(O.callee) ? 'Arguments' : result;
|
|
1637
1637
|
};
|
|
1638
1638
|
|
|
1639
|
-
var classof$
|
|
1639
|
+
var classof$c = classof$d;
|
|
1640
1640
|
var getMethod$3 = getMethod$5;
|
|
1641
1641
|
var isNullOrUndefined$3 = isNullOrUndefined$6;
|
|
1642
1642
|
var Iterators = iterators;
|
|
@@ -1647,59 +1647,59 @@ var ITERATOR$4 = wellKnownSymbol$c('iterator');
|
|
|
1647
1647
|
var getIteratorMethod$4 = function (it) {
|
|
1648
1648
|
if (!isNullOrUndefined$3(it)) return getMethod$3(it, ITERATOR$4)
|
|
1649
1649
|
|| getMethod$3(it, '@@iterator')
|
|
1650
|
-
|| Iterators[classof$
|
|
1650
|
+
|| Iterators[classof$c(it)];
|
|
1651
1651
|
};
|
|
1652
1652
|
|
|
1653
|
-
var call$
|
|
1654
|
-
var aCallable$
|
|
1655
|
-
var anObject$
|
|
1653
|
+
var call$f = functionCall;
|
|
1654
|
+
var aCallable$2 = aCallable$6;
|
|
1655
|
+
var anObject$c = anObject$i;
|
|
1656
1656
|
var tryToString$3 = tryToString$5;
|
|
1657
1657
|
var getIteratorMethod$3 = getIteratorMethod$4;
|
|
1658
1658
|
|
|
1659
|
-
var $TypeError$
|
|
1659
|
+
var $TypeError$8 = TypeError;
|
|
1660
1660
|
|
|
1661
1661
|
var getIterator$3 = function (argument, usingIterator) {
|
|
1662
1662
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$3(argument) : usingIterator;
|
|
1663
|
-
if (aCallable$
|
|
1664
|
-
throw new $TypeError$
|
|
1663
|
+
if (aCallable$2(iteratorMethod)) return anObject$c(call$f(iteratorMethod, argument));
|
|
1664
|
+
throw new $TypeError$8(tryToString$3(argument) + ' is not iterable');
|
|
1665
1665
|
};
|
|
1666
1666
|
|
|
1667
|
-
var call$
|
|
1668
|
-
var anObject$
|
|
1667
|
+
var call$e = functionCall;
|
|
1668
|
+
var anObject$b = anObject$i;
|
|
1669
1669
|
var getMethod$2 = getMethod$5;
|
|
1670
1670
|
|
|
1671
1671
|
var iteratorClose$1 = function (iterator, kind, value) {
|
|
1672
1672
|
var innerResult, innerError;
|
|
1673
|
-
anObject$
|
|
1673
|
+
anObject$b(iterator);
|
|
1674
1674
|
try {
|
|
1675
1675
|
innerResult = getMethod$2(iterator, 'return');
|
|
1676
1676
|
if (!innerResult) {
|
|
1677
1677
|
if (kind === 'throw') throw value;
|
|
1678
1678
|
return value;
|
|
1679
1679
|
}
|
|
1680
|
-
innerResult = call$
|
|
1680
|
+
innerResult = call$e(innerResult, iterator);
|
|
1681
1681
|
} catch (error) {
|
|
1682
1682
|
innerError = true;
|
|
1683
1683
|
innerResult = error;
|
|
1684
1684
|
}
|
|
1685
1685
|
if (kind === 'throw') throw value;
|
|
1686
1686
|
if (innerError) throw innerResult;
|
|
1687
|
-
anObject$
|
|
1687
|
+
anObject$b(innerResult);
|
|
1688
1688
|
return value;
|
|
1689
1689
|
};
|
|
1690
1690
|
|
|
1691
|
-
var bind$
|
|
1692
|
-
var call$
|
|
1693
|
-
var anObject$
|
|
1691
|
+
var bind$4 = functionBindContext;
|
|
1692
|
+
var call$d = functionCall;
|
|
1693
|
+
var anObject$a = anObject$i;
|
|
1694
1694
|
var tryToString$2 = tryToString$5;
|
|
1695
1695
|
var isArrayIteratorMethod$1 = isArrayIteratorMethod$2;
|
|
1696
|
-
var lengthOfArrayLike$
|
|
1696
|
+
var lengthOfArrayLike$9 = lengthOfArrayLike$b;
|
|
1697
1697
|
var isPrototypeOf$4 = objectIsPrototypeOf;
|
|
1698
1698
|
var getIterator$2 = getIterator$3;
|
|
1699
1699
|
var getIteratorMethod$2 = getIteratorMethod$4;
|
|
1700
1700
|
var iteratorClose = iteratorClose$1;
|
|
1701
1701
|
|
|
1702
|
-
var $TypeError$
|
|
1702
|
+
var $TypeError$7 = TypeError;
|
|
1703
1703
|
|
|
1704
1704
|
var Result = function (stopped, result) {
|
|
1705
1705
|
this.stopped = stopped;
|
|
@@ -1714,7 +1714,7 @@ var iterate$1 = function (iterable, unboundFunction, options) {
|
|
|
1714
1714
|
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
1715
1715
|
var IS_ITERATOR = !!(options && options.IS_ITERATOR);
|
|
1716
1716
|
var INTERRUPTED = !!(options && options.INTERRUPTED);
|
|
1717
|
-
var fn = bind$
|
|
1717
|
+
var fn = bind$4(unboundFunction, that);
|
|
1718
1718
|
var iterator, iterFn, index, length, result, next, step;
|
|
1719
1719
|
|
|
1720
1720
|
var stop = function (condition) {
|
|
@@ -1724,7 +1724,7 @@ var iterate$1 = function (iterable, unboundFunction, options) {
|
|
|
1724
1724
|
|
|
1725
1725
|
var callFn = function (value) {
|
|
1726
1726
|
if (AS_ENTRIES) {
|
|
1727
|
-
anObject$
|
|
1727
|
+
anObject$a(value);
|
|
1728
1728
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
1729
1729
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
1730
1730
|
};
|
|
@@ -1735,10 +1735,10 @@ var iterate$1 = function (iterable, unboundFunction, options) {
|
|
|
1735
1735
|
iterator = iterable;
|
|
1736
1736
|
} else {
|
|
1737
1737
|
iterFn = getIteratorMethod$2(iterable);
|
|
1738
|
-
if (!iterFn) throw new $TypeError$
|
|
1738
|
+
if (!iterFn) throw new $TypeError$7(tryToString$2(iterable) + ' is not iterable');
|
|
1739
1739
|
// optimisation for array iterators
|
|
1740
1740
|
if (isArrayIteratorMethod$1(iterFn)) {
|
|
1741
|
-
for (index = 0, length = lengthOfArrayLike$
|
|
1741
|
+
for (index = 0, length = lengthOfArrayLike$9(iterable); length > index; index++) {
|
|
1742
1742
|
result = callFn(iterable[index]);
|
|
1743
1743
|
if (result && isPrototypeOf$4(ResultPrototype, result)) return result;
|
|
1744
1744
|
} return new Result(false);
|
|
@@ -1747,7 +1747,7 @@ var iterate$1 = function (iterable, unboundFunction, options) {
|
|
|
1747
1747
|
}
|
|
1748
1748
|
|
|
1749
1749
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
1750
|
-
while (!(step = call$
|
|
1750
|
+
while (!(step = call$d(next, iterator)).done) {
|
|
1751
1751
|
try {
|
|
1752
1752
|
result = callFn(step.value);
|
|
1753
1753
|
} catch (error) {
|
|
@@ -1759,21 +1759,21 @@ var iterate$1 = function (iterable, unboundFunction, options) {
|
|
|
1759
1759
|
|
|
1760
1760
|
var toPropertyKey$1 = toPropertyKey$4;
|
|
1761
1761
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1762
|
-
var createPropertyDescriptor$
|
|
1762
|
+
var createPropertyDescriptor$4 = createPropertyDescriptor$8;
|
|
1763
1763
|
|
|
1764
1764
|
var createProperty$1 = function (object, key, value) {
|
|
1765
1765
|
var propertyKey = toPropertyKey$1(key);
|
|
1766
|
-
if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor$
|
|
1766
|
+
if (propertyKey in object) definePropertyModule$1.f(object, propertyKey, createPropertyDescriptor$4(0, value));
|
|
1767
1767
|
else object[propertyKey] = value;
|
|
1768
1768
|
};
|
|
1769
1769
|
|
|
1770
|
-
var $$
|
|
1770
|
+
var $$a = _export;
|
|
1771
1771
|
var iterate = iterate$1;
|
|
1772
1772
|
var createProperty = createProperty$1;
|
|
1773
1773
|
|
|
1774
1774
|
// `Object.fromEntries` method
|
|
1775
1775
|
// https://github.com/tc39/proposal-object-from-entries
|
|
1776
|
-
$$
|
|
1776
|
+
$$a({ target: 'Object', stat: true }, {
|
|
1777
1777
|
fromEntries: function fromEntries(iterable) {
|
|
1778
1778
|
var obj = {};
|
|
1779
1779
|
iterate(iterable, function (k, v) {
|
|
@@ -1783,21 +1783,21 @@ $$5({ target: 'Object', stat: true }, {
|
|
|
1783
1783
|
}
|
|
1784
1784
|
});
|
|
1785
1785
|
|
|
1786
|
-
var classof$
|
|
1786
|
+
var classof$b = classof$d;
|
|
1787
1787
|
|
|
1788
1788
|
var $String = String;
|
|
1789
1789
|
|
|
1790
|
-
var toString$
|
|
1791
|
-
if (classof$
|
|
1790
|
+
var toString$9 = function (argument) {
|
|
1791
|
+
if (classof$b(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
1792
1792
|
return $String(argument);
|
|
1793
1793
|
};
|
|
1794
1794
|
|
|
1795
|
-
var anObject$
|
|
1795
|
+
var anObject$9 = anObject$i;
|
|
1796
1796
|
|
|
1797
1797
|
// `RegExp.prototype.flags` getter implementation
|
|
1798
1798
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1799
1799
|
var regexpFlags$1 = function () {
|
|
1800
|
-
var that = anObject$
|
|
1800
|
+
var that = anObject$9(this);
|
|
1801
1801
|
var result = '';
|
|
1802
1802
|
if (that.hasIndices) result += 'd';
|
|
1803
1803
|
if (that.global) result += 'g';
|
|
@@ -1810,13 +1810,13 @@ var regexpFlags$1 = function () {
|
|
|
1810
1810
|
return result;
|
|
1811
1811
|
};
|
|
1812
1812
|
|
|
1813
|
-
var fails$
|
|
1814
|
-
var global$
|
|
1813
|
+
var fails$i = fails$v;
|
|
1814
|
+
var global$j = global$u;
|
|
1815
1815
|
|
|
1816
1816
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
1817
|
-
var $RegExp$2 = global$
|
|
1817
|
+
var $RegExp$2 = global$j.RegExp;
|
|
1818
1818
|
|
|
1819
|
-
var UNSUPPORTED_Y$1 = fails$
|
|
1819
|
+
var UNSUPPORTED_Y$1 = fails$i(function () {
|
|
1820
1820
|
var re = $RegExp$2('a', 'y');
|
|
1821
1821
|
re.lastIndex = 2;
|
|
1822
1822
|
return re.exec('abcd') !== null;
|
|
@@ -1824,11 +1824,11 @@ var UNSUPPORTED_Y$1 = fails$e(function () {
|
|
|
1824
1824
|
|
|
1825
1825
|
// UC Browser bug
|
|
1826
1826
|
// https://github.com/zloirock/core-js/issues/1008
|
|
1827
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$
|
|
1827
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$i(function () {
|
|
1828
1828
|
return !$RegExp$2('a', 'y').sticky;
|
|
1829
1829
|
});
|
|
1830
1830
|
|
|
1831
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$
|
|
1831
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$i(function () {
|
|
1832
1832
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
1833
1833
|
var re = $RegExp$2('^r', 'gy');
|
|
1834
1834
|
re.lastIndex = 2;
|
|
@@ -1841,24 +1841,24 @@ var regexpStickyHelpers = {
|
|
|
1841
1841
|
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
|
1842
1842
|
};
|
|
1843
1843
|
|
|
1844
|
-
var fails$
|
|
1845
|
-
var global$
|
|
1844
|
+
var fails$h = fails$v;
|
|
1845
|
+
var global$i = global$u;
|
|
1846
1846
|
|
|
1847
1847
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
1848
|
-
var $RegExp$1 = global$
|
|
1848
|
+
var $RegExp$1 = global$i.RegExp;
|
|
1849
1849
|
|
|
1850
|
-
var regexpUnsupportedDotAll = fails$
|
|
1850
|
+
var regexpUnsupportedDotAll = fails$h(function () {
|
|
1851
1851
|
var re = $RegExp$1('.', 's');
|
|
1852
1852
|
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
1853
1853
|
});
|
|
1854
1854
|
|
|
1855
|
-
var fails$
|
|
1856
|
-
var global$
|
|
1855
|
+
var fails$g = fails$v;
|
|
1856
|
+
var global$h = global$u;
|
|
1857
1857
|
|
|
1858
1858
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
1859
|
-
var $RegExp = global$
|
|
1859
|
+
var $RegExp = global$h.RegExp;
|
|
1860
1860
|
|
|
1861
|
-
var regexpUnsupportedNcg = fails$
|
|
1861
|
+
var regexpUnsupportedNcg = fails$g(function () {
|
|
1862
1862
|
var re = $RegExp('(?<a>b)', 'g');
|
|
1863
1863
|
return re.exec('b').groups.a !== 'b' ||
|
|
1864
1864
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -1866,30 +1866,30 @@ var regexpUnsupportedNcg = fails$c(function () {
|
|
|
1866
1866
|
|
|
1867
1867
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
1868
1868
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
1869
|
-
var call$
|
|
1870
|
-
var uncurryThis$
|
|
1871
|
-
var toString$
|
|
1869
|
+
var call$c = functionCall;
|
|
1870
|
+
var uncurryThis$k = functionUncurryThis;
|
|
1871
|
+
var toString$8 = toString$9;
|
|
1872
1872
|
var regexpFlags = regexpFlags$1;
|
|
1873
1873
|
var stickyHelpers = regexpStickyHelpers;
|
|
1874
1874
|
var shared = shared$4.exports;
|
|
1875
|
-
var create$
|
|
1876
|
-
var getInternalState$
|
|
1875
|
+
var create$3 = objectCreate;
|
|
1876
|
+
var getInternalState$3 = internalState.get;
|
|
1877
1877
|
var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
|
|
1878
1878
|
var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
1879
1879
|
|
|
1880
1880
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
1881
1881
|
var nativeExec = RegExp.prototype.exec;
|
|
1882
1882
|
var patchedExec = nativeExec;
|
|
1883
|
-
var charAt$
|
|
1884
|
-
var indexOf = uncurryThis$
|
|
1885
|
-
var replace$
|
|
1886
|
-
var stringSlice$4 = uncurryThis$
|
|
1883
|
+
var charAt$5 = uncurryThis$k(''.charAt);
|
|
1884
|
+
var indexOf = uncurryThis$k(''.indexOf);
|
|
1885
|
+
var replace$3 = uncurryThis$k(''.replace);
|
|
1886
|
+
var stringSlice$4 = uncurryThis$k(''.slice);
|
|
1887
1887
|
|
|
1888
1888
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
1889
1889
|
var re1 = /a/;
|
|
1890
1890
|
var re2 = /b*/g;
|
|
1891
|
-
call$
|
|
1892
|
-
call$
|
|
1891
|
+
call$c(nativeExec, re1, 'a');
|
|
1892
|
+
call$c(nativeExec, re2, 'a');
|
|
1893
1893
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
1894
1894
|
})();
|
|
1895
1895
|
|
|
@@ -1903,34 +1903,34 @@ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPP
|
|
|
1903
1903
|
if (PATCH) {
|
|
1904
1904
|
patchedExec = function exec(string) {
|
|
1905
1905
|
var re = this;
|
|
1906
|
-
var state = getInternalState$
|
|
1907
|
-
var str = toString$
|
|
1906
|
+
var state = getInternalState$3(re);
|
|
1907
|
+
var str = toString$8(string);
|
|
1908
1908
|
var raw = state.raw;
|
|
1909
1909
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
1910
1910
|
|
|
1911
1911
|
if (raw) {
|
|
1912
1912
|
raw.lastIndex = re.lastIndex;
|
|
1913
|
-
result = call$
|
|
1913
|
+
result = call$c(patchedExec, raw, str);
|
|
1914
1914
|
re.lastIndex = raw.lastIndex;
|
|
1915
1915
|
return result;
|
|
1916
1916
|
}
|
|
1917
1917
|
|
|
1918
1918
|
var groups = state.groups;
|
|
1919
1919
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
1920
|
-
var flags = call$
|
|
1920
|
+
var flags = call$c(regexpFlags, re);
|
|
1921
1921
|
var source = re.source;
|
|
1922
1922
|
var charsAdded = 0;
|
|
1923
1923
|
var strCopy = str;
|
|
1924
1924
|
|
|
1925
1925
|
if (sticky) {
|
|
1926
|
-
flags = replace$
|
|
1926
|
+
flags = replace$3(flags, 'y', '');
|
|
1927
1927
|
if (indexOf(flags, 'g') === -1) {
|
|
1928
1928
|
flags += 'g';
|
|
1929
1929
|
}
|
|
1930
1930
|
|
|
1931
1931
|
strCopy = stringSlice$4(str, re.lastIndex);
|
|
1932
1932
|
// Support anchored sticky behavior.
|
|
1933
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$
|
|
1933
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$5(str, re.lastIndex - 1) !== '\n')) {
|
|
1934
1934
|
source = '(?: ' + source + ')';
|
|
1935
1935
|
strCopy = ' ' + strCopy;
|
|
1936
1936
|
charsAdded++;
|
|
@@ -1945,7 +1945,7 @@ if (PATCH) {
|
|
|
1945
1945
|
}
|
|
1946
1946
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
1947
1947
|
|
|
1948
|
-
match = call$
|
|
1948
|
+
match = call$c(nativeExec, sticky ? reCopy : re, strCopy);
|
|
1949
1949
|
|
|
1950
1950
|
if (sticky) {
|
|
1951
1951
|
if (match) {
|
|
@@ -1960,7 +1960,7 @@ if (PATCH) {
|
|
|
1960
1960
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
1961
1961
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
1962
1962
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
1963
|
-
call$
|
|
1963
|
+
call$c(nativeReplace, match[0], reCopy, function () {
|
|
1964
1964
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
1965
1965
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
1966
1966
|
}
|
|
@@ -1968,7 +1968,7 @@ if (PATCH) {
|
|
|
1968
1968
|
}
|
|
1969
1969
|
|
|
1970
1970
|
if (match && groups) {
|
|
1971
|
-
match.groups = object = create$
|
|
1971
|
+
match.groups = object = create$3(null);
|
|
1972
1972
|
for (i = 0; i < groups.length; i++) {
|
|
1973
1973
|
group = groups[i];
|
|
1974
1974
|
object[group[0]] = match[group[1]];
|
|
@@ -1981,17 +1981,17 @@ if (PATCH) {
|
|
|
1981
1981
|
|
|
1982
1982
|
var regexpExec$2 = patchedExec;
|
|
1983
1983
|
|
|
1984
|
-
var $$
|
|
1984
|
+
var $$9 = _export;
|
|
1985
1985
|
var exec$1 = regexpExec$2;
|
|
1986
1986
|
|
|
1987
1987
|
// `RegExp.prototype.exec` method
|
|
1988
1988
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
1989
|
-
$$
|
|
1989
|
+
$$9({ target: 'RegExp', proto: true, forced: /./.exec !== exec$1 }, {
|
|
1990
1990
|
exec: exec$1
|
|
1991
1991
|
});
|
|
1992
1992
|
|
|
1993
1993
|
var isObject$6 = isObject$e;
|
|
1994
|
-
var classof$
|
|
1994
|
+
var classof$a = classofRaw$2;
|
|
1995
1995
|
var wellKnownSymbol$b = wellKnownSymbol$l;
|
|
1996
1996
|
|
|
1997
1997
|
var MATCH$1 = wellKnownSymbol$b('match');
|
|
@@ -2000,16 +2000,16 @@ var MATCH$1 = wellKnownSymbol$b('match');
|
|
|
2000
2000
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
2001
2001
|
var isRegexp = function (it) {
|
|
2002
2002
|
var isRegExp;
|
|
2003
|
-
return isObject$6(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$
|
|
2003
|
+
return isObject$6(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$a(it) === 'RegExp');
|
|
2004
2004
|
};
|
|
2005
2005
|
|
|
2006
2006
|
var isRegExp = isRegexp;
|
|
2007
2007
|
|
|
2008
|
-
var $TypeError$
|
|
2008
|
+
var $TypeError$6 = TypeError;
|
|
2009
2009
|
|
|
2010
2010
|
var notARegexp = function (it) {
|
|
2011
2011
|
if (isRegExp(it)) {
|
|
2012
|
-
throw new $TypeError$
|
|
2012
|
+
throw new $TypeError$6("The method doesn't accept regular expressions");
|
|
2013
2013
|
} return it;
|
|
2014
2014
|
};
|
|
2015
2015
|
|
|
@@ -2029,22 +2029,22 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
2029
2029
|
} return false;
|
|
2030
2030
|
};
|
|
2031
2031
|
|
|
2032
|
-
var $$
|
|
2033
|
-
var uncurryThis$
|
|
2032
|
+
var $$8 = _export;
|
|
2033
|
+
var uncurryThis$j = functionUncurryThis;
|
|
2034
2034
|
var notARegExp = notARegexp;
|
|
2035
2035
|
var requireObjectCoercible$3 = requireObjectCoercible$6;
|
|
2036
|
-
var toString$
|
|
2036
|
+
var toString$7 = toString$9;
|
|
2037
2037
|
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
2038
2038
|
|
|
2039
|
-
var stringIndexOf$1 = uncurryThis$
|
|
2039
|
+
var stringIndexOf$1 = uncurryThis$j(''.indexOf);
|
|
2040
2040
|
|
|
2041
2041
|
// `String.prototype.includes` method
|
|
2042
2042
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
2043
|
-
$$
|
|
2043
|
+
$$8({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
2044
2044
|
includes: function includes(searchString /* , position = 0 */) {
|
|
2045
2045
|
return !!~stringIndexOf$1(
|
|
2046
|
-
toString$
|
|
2047
|
-
toString$
|
|
2046
|
+
toString$7(requireObjectCoercible$3(this)),
|
|
2047
|
+
toString$7(notARegExp(searchString)),
|
|
2048
2048
|
arguments.length > 1 ? arguments[1] : undefined
|
|
2049
2049
|
);
|
|
2050
2050
|
}
|
|
@@ -2052,10 +2052,10 @@ $$3({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }
|
|
|
2052
2052
|
|
|
2053
2053
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
2054
2054
|
|
|
2055
|
-
var call$
|
|
2056
|
-
var defineBuiltIn$
|
|
2055
|
+
var call$b = functionCall;
|
|
2056
|
+
var defineBuiltIn$7 = defineBuiltIn$b;
|
|
2057
2057
|
var regexpExec$1 = regexpExec$2;
|
|
2058
|
-
var fails$
|
|
2058
|
+
var fails$f = fails$v;
|
|
2059
2059
|
var wellKnownSymbol$9 = wellKnownSymbol$l;
|
|
2060
2060
|
var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
|
|
2061
2061
|
|
|
@@ -2065,14 +2065,14 @@ var RegExpPrototype$2 = RegExp.prototype;
|
|
|
2065
2065
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
2066
2066
|
var SYMBOL = wellKnownSymbol$9(KEY);
|
|
2067
2067
|
|
|
2068
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
2068
|
+
var DELEGATES_TO_SYMBOL = !fails$f(function () {
|
|
2069
2069
|
// String methods call symbol-named RegExp methods
|
|
2070
2070
|
var O = {};
|
|
2071
2071
|
O[SYMBOL] = function () { return 7; };
|
|
2072
2072
|
return ''[KEY](O) !== 7;
|
|
2073
2073
|
});
|
|
2074
2074
|
|
|
2075
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
2075
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$f(function () {
|
|
2076
2076
|
// Symbol-named RegExp methods call .exec
|
|
2077
2077
|
var execCalled = false;
|
|
2078
2078
|
var re = /a/;
|
|
@@ -2112,15 +2112,15 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
2112
2112
|
// The native String method already delegates to @@method (this
|
|
2113
2113
|
// polyfilled function), leasing to infinite recursion.
|
|
2114
2114
|
// We avoid it by directly calling the native @@method method.
|
|
2115
|
-
return { done: true, value: call$
|
|
2115
|
+
return { done: true, value: call$b(nativeRegExpMethod, regexp, str, arg2) };
|
|
2116
2116
|
}
|
|
2117
|
-
return { done: true, value: call$
|
|
2117
|
+
return { done: true, value: call$b(nativeMethod, str, regexp, arg2) };
|
|
2118
2118
|
}
|
|
2119
2119
|
return { done: false };
|
|
2120
2120
|
});
|
|
2121
2121
|
|
|
2122
|
-
defineBuiltIn$
|
|
2123
|
-
defineBuiltIn$
|
|
2122
|
+
defineBuiltIn$7(String.prototype, KEY, methods[0]);
|
|
2123
|
+
defineBuiltIn$7(RegExpPrototype$2, SYMBOL, methods[1]);
|
|
2124
2124
|
}
|
|
2125
2125
|
|
|
2126
2126
|
if (SHAM) createNonEnumerableProperty$4(RegExpPrototype$2[SYMBOL], 'sham', true);
|
|
@@ -2134,34 +2134,34 @@ var sameValue$1 = Object.is || function is(x, y) {
|
|
|
2134
2134
|
return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
|
|
2135
2135
|
};
|
|
2136
2136
|
|
|
2137
|
-
var call$
|
|
2138
|
-
var anObject$
|
|
2137
|
+
var call$a = functionCall;
|
|
2138
|
+
var anObject$8 = anObject$i;
|
|
2139
2139
|
var isCallable$5 = isCallable$k;
|
|
2140
|
-
var classof$
|
|
2140
|
+
var classof$9 = classofRaw$2;
|
|
2141
2141
|
var regexpExec = regexpExec$2;
|
|
2142
2142
|
|
|
2143
|
-
var $TypeError$
|
|
2143
|
+
var $TypeError$5 = TypeError;
|
|
2144
2144
|
|
|
2145
2145
|
// `RegExpExec` abstract operation
|
|
2146
2146
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
2147
2147
|
var regexpExecAbstract = function (R, S) {
|
|
2148
2148
|
var exec = R.exec;
|
|
2149
2149
|
if (isCallable$5(exec)) {
|
|
2150
|
-
var result = call$
|
|
2151
|
-
if (result !== null) anObject$
|
|
2150
|
+
var result = call$a(exec, R, S);
|
|
2151
|
+
if (result !== null) anObject$8(result);
|
|
2152
2152
|
return result;
|
|
2153
2153
|
}
|
|
2154
|
-
if (classof$
|
|
2155
|
-
throw new $TypeError$
|
|
2154
|
+
if (classof$9(R) === 'RegExp') return call$a(regexpExec, R, S);
|
|
2155
|
+
throw new $TypeError$5('RegExp#exec called on incompatible receiver');
|
|
2156
2156
|
};
|
|
2157
2157
|
|
|
2158
|
-
var call$
|
|
2158
|
+
var call$9 = functionCall;
|
|
2159
2159
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
2160
|
-
var anObject$
|
|
2160
|
+
var anObject$7 = anObject$i;
|
|
2161
2161
|
var isNullOrUndefined$2 = isNullOrUndefined$6;
|
|
2162
2162
|
var requireObjectCoercible$2 = requireObjectCoercible$6;
|
|
2163
2163
|
var sameValue = sameValue$1;
|
|
2164
|
-
var toString$
|
|
2164
|
+
var toString$6 = toString$9;
|
|
2165
2165
|
var getMethod$1 = getMethod$5;
|
|
2166
2166
|
var regExpExec$1 = regexpExecAbstract;
|
|
2167
2167
|
|
|
@@ -2173,13 +2173,13 @@ fixRegExpWellKnownSymbolLogic$1('search', function (SEARCH, nativeSearch, maybeC
|
|
|
2173
2173
|
function search(regexp) {
|
|
2174
2174
|
var O = requireObjectCoercible$2(this);
|
|
2175
2175
|
var searcher = isNullOrUndefined$2(regexp) ? undefined : getMethod$1(regexp, SEARCH);
|
|
2176
|
-
return searcher ? call$
|
|
2176
|
+
return searcher ? call$9(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString$6(O));
|
|
2177
2177
|
},
|
|
2178
2178
|
// `RegExp.prototype[@@search]` method
|
|
2179
2179
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
|
|
2180
2180
|
function (string) {
|
|
2181
|
-
var rx = anObject$
|
|
2182
|
-
var S = toString$
|
|
2181
|
+
var rx = anObject$7(this);
|
|
2182
|
+
var S = toString$6(string);
|
|
2183
2183
|
var res = maybeCallNative(nativeSearch, rx, S);
|
|
2184
2184
|
|
|
2185
2185
|
if (res.done) return res.value;
|
|
@@ -2237,12 +2237,12 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
2237
2237
|
|
|
2238
2238
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
2239
2239
|
|
|
2240
|
-
var global$
|
|
2240
|
+
var global$g = global$u;
|
|
2241
2241
|
var DOMIterables = domIterables;
|
|
2242
2242
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
2243
2243
|
var ArrayIteratorMethods = es_array_iterator;
|
|
2244
2244
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
2245
|
-
var setToStringTag$
|
|
2245
|
+
var setToStringTag$3 = setToStringTag$6;
|
|
2246
2246
|
var wellKnownSymbol$8 = wellKnownSymbol$l;
|
|
2247
2247
|
|
|
2248
2248
|
var ITERATOR$3 = wellKnownSymbol$8('iterator');
|
|
@@ -2256,7 +2256,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
2256
2256
|
} catch (error) {
|
|
2257
2257
|
CollectionPrototype[ITERATOR$3] = ArrayValues;
|
|
2258
2258
|
}
|
|
2259
|
-
setToStringTag$
|
|
2259
|
+
setToStringTag$3(CollectionPrototype, COLLECTION_NAME, true);
|
|
2260
2260
|
if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
|
|
2261
2261
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
|
2262
2262
|
if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
|
|
@@ -2269,32 +2269,32 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
|
2269
2269
|
};
|
|
2270
2270
|
|
|
2271
2271
|
for (var COLLECTION_NAME in DOMIterables) {
|
|
2272
|
-
handlePrototype(global$
|
|
2272
|
+
handlePrototype(global$g[COLLECTION_NAME] && global$g[COLLECTION_NAME].prototype, COLLECTION_NAME);
|
|
2273
2273
|
}
|
|
2274
2274
|
|
|
2275
2275
|
handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
|
|
2276
2276
|
|
|
2277
|
-
var global$
|
|
2278
|
-
var DESCRIPTORS$
|
|
2277
|
+
var global$f = global$u;
|
|
2278
|
+
var DESCRIPTORS$b = descriptors;
|
|
2279
2279
|
|
|
2280
2280
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2281
2281
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2282
2282
|
|
|
2283
2283
|
// Avoid NodeJS experimental warning
|
|
2284
2284
|
var safeGetBuiltIn$1 = function (name) {
|
|
2285
|
-
if (!DESCRIPTORS$
|
|
2286
|
-
var descriptor = getOwnPropertyDescriptor(global$
|
|
2285
|
+
if (!DESCRIPTORS$b) return global$f[name];
|
|
2286
|
+
var descriptor = getOwnPropertyDescriptor(global$f, name);
|
|
2287
2287
|
return descriptor && descriptor.value;
|
|
2288
2288
|
};
|
|
2289
2289
|
|
|
2290
|
-
var fails$
|
|
2290
|
+
var fails$e = fails$v;
|
|
2291
2291
|
var wellKnownSymbol$7 = wellKnownSymbol$l;
|
|
2292
|
-
var DESCRIPTORS$
|
|
2292
|
+
var DESCRIPTORS$a = descriptors;
|
|
2293
2293
|
var IS_PURE = isPure;
|
|
2294
2294
|
|
|
2295
2295
|
var ITERATOR$2 = wellKnownSymbol$7('iterator');
|
|
2296
2296
|
|
|
2297
|
-
var urlConstructorDetection = !fails$
|
|
2297
|
+
var urlConstructorDetection = !fails$e(function () {
|
|
2298
2298
|
// eslint-disable-next-line unicorn/relative-url-style -- required for testing
|
|
2299
2299
|
var url = new URL('b?a=1&b=2&c=3', 'http://a');
|
|
2300
2300
|
var params = url.searchParams;
|
|
@@ -2310,7 +2310,7 @@ var urlConstructorDetection = !fails$a(function () {
|
|
|
2310
2310
|
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
|
|
2311
2311
|
params2['delete']('b', undefined);
|
|
2312
2312
|
return (IS_PURE && (!url.toJSON || !params2.has('a', 1) || params2.has('a', 2) || !params2.has('a', undefined) || params2.has('b')))
|
|
2313
|
-
|| (!params.size && (IS_PURE || !DESCRIPTORS$
|
|
2313
|
+
|| (!params.size && (IS_PURE || !DESCRIPTORS$a))
|
|
2314
2314
|
|| !params.sort
|
|
2315
2315
|
|| url.href !== 'http://a/c%20d?a=1&c=3'
|
|
2316
2316
|
|| params.get('c') !== '3'
|
|
@@ -2330,46 +2330,46 @@ var urlConstructorDetection = !fails$a(function () {
|
|
|
2330
2330
|
});
|
|
2331
2331
|
|
|
2332
2332
|
var makeBuiltIn = makeBuiltIn$3.exports;
|
|
2333
|
-
var defineProperty = objectDefineProperty;
|
|
2333
|
+
var defineProperty$2 = objectDefineProperty;
|
|
2334
2334
|
|
|
2335
|
-
var defineBuiltInAccessor$
|
|
2335
|
+
var defineBuiltInAccessor$8 = function (target, name, descriptor) {
|
|
2336
2336
|
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
2337
2337
|
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
2338
|
-
return defineProperty.f(target, name, descriptor);
|
|
2338
|
+
return defineProperty$2.f(target, name, descriptor);
|
|
2339
2339
|
};
|
|
2340
2340
|
|
|
2341
|
-
var defineBuiltIn$
|
|
2341
|
+
var defineBuiltIn$6 = defineBuiltIn$b;
|
|
2342
2342
|
|
|
2343
2343
|
var defineBuiltIns$2 = function (target, src, options) {
|
|
2344
|
-
for (var key in src) defineBuiltIn$
|
|
2344
|
+
for (var key in src) defineBuiltIn$6(target, key, src[key], options);
|
|
2345
2345
|
return target;
|
|
2346
2346
|
};
|
|
2347
2347
|
|
|
2348
2348
|
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
2349
2349
|
|
|
2350
|
-
var $TypeError$
|
|
2350
|
+
var $TypeError$4 = TypeError;
|
|
2351
2351
|
|
|
2352
|
-
var anInstance$
|
|
2352
|
+
var anInstance$5 = function (it, Prototype) {
|
|
2353
2353
|
if (isPrototypeOf$3(Prototype, it)) return it;
|
|
2354
|
-
throw new $TypeError$
|
|
2354
|
+
throw new $TypeError$4('Incorrect invocation');
|
|
2355
2355
|
};
|
|
2356
2356
|
|
|
2357
|
-
var $TypeError$
|
|
2357
|
+
var $TypeError$3 = TypeError;
|
|
2358
2358
|
|
|
2359
|
-
var validateArgumentsLength$
|
|
2360
|
-
if (passed < required) throw new $TypeError$
|
|
2359
|
+
var validateArgumentsLength$4 = function (passed, required) {
|
|
2360
|
+
if (passed < required) throw new $TypeError$3('Not enough arguments');
|
|
2361
2361
|
return passed;
|
|
2362
2362
|
};
|
|
2363
2363
|
|
|
2364
|
-
var uncurryThis$
|
|
2364
|
+
var uncurryThis$i = functionUncurryThis;
|
|
2365
2365
|
|
|
2366
|
-
var arraySlice$3 = uncurryThis$
|
|
2366
|
+
var arraySlice$3 = uncurryThis$i([].slice);
|
|
2367
2367
|
|
|
2368
2368
|
var arraySlice$2 = arraySlice$3;
|
|
2369
2369
|
|
|
2370
2370
|
var floor$3 = Math.floor;
|
|
2371
2371
|
|
|
2372
|
-
var sort = function (array, comparefn) {
|
|
2372
|
+
var sort$1 = function (array, comparefn) {
|
|
2373
2373
|
var length = array.length;
|
|
2374
2374
|
|
|
2375
2375
|
if (length < 8) {
|
|
@@ -2388,8 +2388,8 @@ var sort = function (array, comparefn) {
|
|
|
2388
2388
|
} else {
|
|
2389
2389
|
// merge sort
|
|
2390
2390
|
var middle = floor$3(length / 2);
|
|
2391
|
-
var left = sort(arraySlice$2(array, 0, middle), comparefn);
|
|
2392
|
-
var right = sort(arraySlice$2(array, middle), comparefn);
|
|
2391
|
+
var left = sort$1(arraySlice$2(array, 0, middle), comparefn);
|
|
2392
|
+
var right = sort$1(arraySlice$2(array, middle), comparefn);
|
|
2393
2393
|
var llength = left.length;
|
|
2394
2394
|
var rlength = right.length;
|
|
2395
2395
|
var lindex = 0;
|
|
@@ -2405,64 +2405,64 @@ var sort = function (array, comparefn) {
|
|
|
2405
2405
|
return array;
|
|
2406
2406
|
};
|
|
2407
2407
|
|
|
2408
|
-
var arraySort$1 = sort;
|
|
2408
|
+
var arraySort$1 = sort$1;
|
|
2409
2409
|
|
|
2410
2410
|
// TODO: in core-js@4, move /modules/ dependencies to public entries for better optimization by tools like `preset-env`
|
|
2411
2411
|
|
|
2412
|
-
var $$
|
|
2413
|
-
var global$
|
|
2412
|
+
var $$7 = _export;
|
|
2413
|
+
var global$e = global$u;
|
|
2414
2414
|
var safeGetBuiltIn = safeGetBuiltIn$1;
|
|
2415
|
-
var call$
|
|
2416
|
-
var uncurryThis$
|
|
2417
|
-
var DESCRIPTORS$
|
|
2415
|
+
var call$8 = functionCall;
|
|
2416
|
+
var uncurryThis$h = functionUncurryThis;
|
|
2417
|
+
var DESCRIPTORS$9 = descriptors;
|
|
2418
2418
|
var USE_NATIVE_URL = urlConstructorDetection;
|
|
2419
|
-
var defineBuiltIn$
|
|
2420
|
-
var defineBuiltInAccessor$
|
|
2419
|
+
var defineBuiltIn$5 = defineBuiltIn$b;
|
|
2420
|
+
var defineBuiltInAccessor$7 = defineBuiltInAccessor$8;
|
|
2421
2421
|
var defineBuiltIns$1 = defineBuiltIns$2;
|
|
2422
|
-
var setToStringTag$
|
|
2422
|
+
var setToStringTag$2 = setToStringTag$6;
|
|
2423
2423
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
2424
|
-
var InternalStateModule$
|
|
2425
|
-
var anInstance$
|
|
2424
|
+
var InternalStateModule$4 = internalState;
|
|
2425
|
+
var anInstance$4 = anInstance$5;
|
|
2426
2426
|
var isCallable$4 = isCallable$k;
|
|
2427
|
-
var hasOwn$
|
|
2428
|
-
var bind$
|
|
2429
|
-
var classof$
|
|
2430
|
-
var anObject$
|
|
2427
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
2428
|
+
var bind$3 = functionBindContext;
|
|
2429
|
+
var classof$8 = classof$d;
|
|
2430
|
+
var anObject$6 = anObject$i;
|
|
2431
2431
|
var isObject$5 = isObject$e;
|
|
2432
|
-
var $toString$1 = toString$
|
|
2433
|
-
var create$
|
|
2434
|
-
var createPropertyDescriptor$
|
|
2432
|
+
var $toString$1 = toString$9;
|
|
2433
|
+
var create$2 = objectCreate;
|
|
2434
|
+
var createPropertyDescriptor$3 = createPropertyDescriptor$8;
|
|
2435
2435
|
var getIterator$1 = getIterator$3;
|
|
2436
2436
|
var getIteratorMethod$1 = getIteratorMethod$4;
|
|
2437
2437
|
var createIterResultObject = createIterResultObject$2;
|
|
2438
|
-
var validateArgumentsLength = validateArgumentsLength$
|
|
2438
|
+
var validateArgumentsLength$3 = validateArgumentsLength$4;
|
|
2439
2439
|
var wellKnownSymbol$6 = wellKnownSymbol$l;
|
|
2440
2440
|
var arraySort = arraySort$1;
|
|
2441
2441
|
|
|
2442
2442
|
var ITERATOR$1 = wellKnownSymbol$6('iterator');
|
|
2443
2443
|
var URL_SEARCH_PARAMS = 'URLSearchParams';
|
|
2444
2444
|
var URL_SEARCH_PARAMS_ITERATOR = URL_SEARCH_PARAMS + 'Iterator';
|
|
2445
|
-
var setInternalState$
|
|
2446
|
-
var getInternalParamsState = InternalStateModule$
|
|
2447
|
-
var getInternalIteratorState = InternalStateModule$
|
|
2445
|
+
var setInternalState$3 = InternalStateModule$4.set;
|
|
2446
|
+
var getInternalParamsState = InternalStateModule$4.getterFor(URL_SEARCH_PARAMS);
|
|
2447
|
+
var getInternalIteratorState = InternalStateModule$4.getterFor(URL_SEARCH_PARAMS_ITERATOR);
|
|
2448
2448
|
|
|
2449
2449
|
var nativeFetch = safeGetBuiltIn('fetch');
|
|
2450
2450
|
var NativeRequest = safeGetBuiltIn('Request');
|
|
2451
2451
|
var Headers = safeGetBuiltIn('Headers');
|
|
2452
2452
|
var RequestPrototype = NativeRequest && NativeRequest.prototype;
|
|
2453
2453
|
var HeadersPrototype = Headers && Headers.prototype;
|
|
2454
|
-
var RegExp$1 = global$
|
|
2455
|
-
var TypeError$
|
|
2456
|
-
var decodeURIComponent = global$
|
|
2457
|
-
var encodeURIComponent = global$
|
|
2458
|
-
var charAt$
|
|
2459
|
-
var join = uncurryThis$
|
|
2460
|
-
var push$
|
|
2461
|
-
var replace$
|
|
2462
|
-
var shift = uncurryThis$
|
|
2463
|
-
var splice = uncurryThis$
|
|
2464
|
-
var split = uncurryThis$
|
|
2465
|
-
var stringSlice$3 = uncurryThis$
|
|
2454
|
+
var RegExp$1 = global$e.RegExp;
|
|
2455
|
+
var TypeError$3 = global$e.TypeError;
|
|
2456
|
+
var decodeURIComponent = global$e.decodeURIComponent;
|
|
2457
|
+
var encodeURIComponent = global$e.encodeURIComponent;
|
|
2458
|
+
var charAt$4 = uncurryThis$h(''.charAt);
|
|
2459
|
+
var join = uncurryThis$h([].join);
|
|
2460
|
+
var push$3 = uncurryThis$h([].push);
|
|
2461
|
+
var replace$2 = uncurryThis$h(''.replace);
|
|
2462
|
+
var shift = uncurryThis$h([].shift);
|
|
2463
|
+
var splice = uncurryThis$h([].splice);
|
|
2464
|
+
var split = uncurryThis$h(''.split);
|
|
2465
|
+
var stringSlice$3 = uncurryThis$h(''.slice);
|
|
2466
2466
|
|
|
2467
2467
|
var plus = /\+/g;
|
|
2468
2468
|
var sequences = Array(4);
|
|
@@ -2480,13 +2480,13 @@ var percentDecode = function (sequence) {
|
|
|
2480
2480
|
};
|
|
2481
2481
|
|
|
2482
2482
|
var deserialize = function (it) {
|
|
2483
|
-
var result = replace$
|
|
2483
|
+
var result = replace$2(it, plus, ' ');
|
|
2484
2484
|
var bytes = 4;
|
|
2485
2485
|
try {
|
|
2486
2486
|
return decodeURIComponent(result);
|
|
2487
2487
|
} catch (error) {
|
|
2488
2488
|
while (bytes) {
|
|
2489
|
-
result = replace$
|
|
2489
|
+
result = replace$2(result, percentSequence(bytes--), percentDecode);
|
|
2490
2490
|
}
|
|
2491
2491
|
return result;
|
|
2492
2492
|
}
|
|
@@ -2508,11 +2508,11 @@ var replacer = function (match) {
|
|
|
2508
2508
|
};
|
|
2509
2509
|
|
|
2510
2510
|
var serialize = function (it) {
|
|
2511
|
-
return replace$
|
|
2511
|
+
return replace$2(encodeURIComponent(it), find, replacer);
|
|
2512
2512
|
};
|
|
2513
2513
|
|
|
2514
2514
|
var URLSearchParamsIterator = createIteratorConstructor(function Iterator(params, kind) {
|
|
2515
|
-
setInternalState$
|
|
2515
|
+
setInternalState$3(this, {
|
|
2516
2516
|
type: URL_SEARCH_PARAMS_ITERATOR,
|
|
2517
2517
|
target: getInternalParamsState(params).entries,
|
|
2518
2518
|
index: 0,
|
|
@@ -2539,7 +2539,7 @@ var URLSearchParamsState = function (init) {
|
|
|
2539
2539
|
|
|
2540
2540
|
if (init !== undefined) {
|
|
2541
2541
|
if (isObject$5(init)) this.parseObject(init);
|
|
2542
|
-
else this.parseQuery(typeof init == 'string' ? charAt$
|
|
2542
|
+
else this.parseQuery(typeof init == 'string' ? charAt$4(init, 0) === '?' ? stringSlice$3(init, 1) : init : $toString$1(init));
|
|
2543
2543
|
}
|
|
2544
2544
|
};
|
|
2545
2545
|
|
|
@@ -2557,18 +2557,18 @@ URLSearchParamsState.prototype = {
|
|
|
2557
2557
|
if (iteratorMethod) {
|
|
2558
2558
|
iterator = getIterator$1(object, iteratorMethod);
|
|
2559
2559
|
next = iterator.next;
|
|
2560
|
-
while (!(step = call$
|
|
2561
|
-
entryIterator = getIterator$1(anObject$
|
|
2560
|
+
while (!(step = call$8(next, iterator)).done) {
|
|
2561
|
+
entryIterator = getIterator$1(anObject$6(step.value));
|
|
2562
2562
|
entryNext = entryIterator.next;
|
|
2563
2563
|
if (
|
|
2564
|
-
(first = call$
|
|
2565
|
-
(second = call$
|
|
2566
|
-
!call$
|
|
2567
|
-
) throw new TypeError$
|
|
2568
|
-
push$
|
|
2564
|
+
(first = call$8(entryNext, entryIterator)).done ||
|
|
2565
|
+
(second = call$8(entryNext, entryIterator)).done ||
|
|
2566
|
+
!call$8(entryNext, entryIterator).done
|
|
2567
|
+
) throw new TypeError$3('Expected sequence with length 2');
|
|
2568
|
+
push$3(entries, { key: $toString$1(first.value), value: $toString$1(second.value) });
|
|
2569
2569
|
}
|
|
2570
|
-
} else for (var key in object) if (hasOwn$
|
|
2571
|
-
push$
|
|
2570
|
+
} else for (var key in object) if (hasOwn$5(object, key)) {
|
|
2571
|
+
push$3(entries, { key: key, value: $toString$1(object[key]) });
|
|
2572
2572
|
}
|
|
2573
2573
|
},
|
|
2574
2574
|
parseQuery: function (query) {
|
|
@@ -2581,7 +2581,7 @@ URLSearchParamsState.prototype = {
|
|
|
2581
2581
|
attribute = attributes[index++];
|
|
2582
2582
|
if (attribute.length) {
|
|
2583
2583
|
entry = split(attribute, '=');
|
|
2584
|
-
push$
|
|
2584
|
+
push$3(entries, {
|
|
2585
2585
|
key: deserialize(shift(entry)),
|
|
2586
2586
|
value: deserialize(join(entry, '='))
|
|
2587
2587
|
});
|
|
@@ -2596,7 +2596,7 @@ URLSearchParamsState.prototype = {
|
|
|
2596
2596
|
var entry;
|
|
2597
2597
|
while (index < entries.length) {
|
|
2598
2598
|
entry = entries[index++];
|
|
2599
|
-
push$
|
|
2599
|
+
push$3(result, serialize(entry.key) + '=' + serialize(entry.value));
|
|
2600
2600
|
} return join(result, '&');
|
|
2601
2601
|
},
|
|
2602
2602
|
update: function () {
|
|
@@ -2611,29 +2611,29 @@ URLSearchParamsState.prototype = {
|
|
|
2611
2611
|
// `URLSearchParams` constructor
|
|
2612
2612
|
// https://url.spec.whatwg.org/#interface-urlsearchparams
|
|
2613
2613
|
var URLSearchParamsConstructor = function URLSearchParams(/* init */) {
|
|
2614
|
-
anInstance$
|
|
2614
|
+
anInstance$4(this, URLSearchParamsPrototype$3);
|
|
2615
2615
|
var init = arguments.length > 0 ? arguments[0] : undefined;
|
|
2616
|
-
var state = setInternalState$
|
|
2617
|
-
if (!DESCRIPTORS$
|
|
2616
|
+
var state = setInternalState$3(this, new URLSearchParamsState(init));
|
|
2617
|
+
if (!DESCRIPTORS$9) this.size = state.entries.length;
|
|
2618
2618
|
};
|
|
2619
2619
|
|
|
2620
|
-
var URLSearchParamsPrototype = URLSearchParamsConstructor.prototype;
|
|
2620
|
+
var URLSearchParamsPrototype$3 = URLSearchParamsConstructor.prototype;
|
|
2621
2621
|
|
|
2622
|
-
defineBuiltIns$1(URLSearchParamsPrototype, {
|
|
2622
|
+
defineBuiltIns$1(URLSearchParamsPrototype$3, {
|
|
2623
2623
|
// `URLSearchParams.prototype.append` method
|
|
2624
2624
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-append
|
|
2625
2625
|
append: function append(name, value) {
|
|
2626
2626
|
var state = getInternalParamsState(this);
|
|
2627
|
-
validateArgumentsLength(arguments.length, 2);
|
|
2628
|
-
push$
|
|
2629
|
-
if (!DESCRIPTORS$
|
|
2627
|
+
validateArgumentsLength$3(arguments.length, 2);
|
|
2628
|
+
push$3(state.entries, { key: $toString$1(name), value: $toString$1(value) });
|
|
2629
|
+
if (!DESCRIPTORS$9) this.length++;
|
|
2630
2630
|
state.updateURL();
|
|
2631
2631
|
},
|
|
2632
2632
|
// `URLSearchParams.prototype.delete` method
|
|
2633
2633
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-delete
|
|
2634
2634
|
'delete': function (name /* , value */) {
|
|
2635
2635
|
var state = getInternalParamsState(this);
|
|
2636
|
-
var length = validateArgumentsLength(arguments.length, 1);
|
|
2636
|
+
var length = validateArgumentsLength$3(arguments.length, 1);
|
|
2637
2637
|
var entries = state.entries;
|
|
2638
2638
|
var key = $toString$1(name);
|
|
2639
2639
|
var $value = length < 2 ? undefined : arguments[1];
|
|
@@ -2646,14 +2646,14 @@ defineBuiltIns$1(URLSearchParamsPrototype, {
|
|
|
2646
2646
|
if (value !== undefined) break;
|
|
2647
2647
|
} else index++;
|
|
2648
2648
|
}
|
|
2649
|
-
if (!DESCRIPTORS$
|
|
2649
|
+
if (!DESCRIPTORS$9) this.size = entries.length;
|
|
2650
2650
|
state.updateURL();
|
|
2651
2651
|
},
|
|
2652
2652
|
// `URLSearchParams.prototype.get` method
|
|
2653
2653
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-get
|
|
2654
2654
|
get: function get(name) {
|
|
2655
2655
|
var entries = getInternalParamsState(this).entries;
|
|
2656
|
-
validateArgumentsLength(arguments.length, 1);
|
|
2656
|
+
validateArgumentsLength$3(arguments.length, 1);
|
|
2657
2657
|
var key = $toString$1(name);
|
|
2658
2658
|
var index = 0;
|
|
2659
2659
|
for (; index < entries.length; index++) {
|
|
@@ -2665,12 +2665,12 @@ defineBuiltIns$1(URLSearchParamsPrototype, {
|
|
|
2665
2665
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-getall
|
|
2666
2666
|
getAll: function getAll(name) {
|
|
2667
2667
|
var entries = getInternalParamsState(this).entries;
|
|
2668
|
-
validateArgumentsLength(arguments.length, 1);
|
|
2668
|
+
validateArgumentsLength$3(arguments.length, 1);
|
|
2669
2669
|
var key = $toString$1(name);
|
|
2670
2670
|
var result = [];
|
|
2671
2671
|
var index = 0;
|
|
2672
2672
|
for (; index < entries.length; index++) {
|
|
2673
|
-
if (entries[index].key === key) push$
|
|
2673
|
+
if (entries[index].key === key) push$3(result, entries[index].value);
|
|
2674
2674
|
}
|
|
2675
2675
|
return result;
|
|
2676
2676
|
},
|
|
@@ -2678,7 +2678,7 @@ defineBuiltIns$1(URLSearchParamsPrototype, {
|
|
|
2678
2678
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-has
|
|
2679
2679
|
has: function has(name /* , value */) {
|
|
2680
2680
|
var entries = getInternalParamsState(this).entries;
|
|
2681
|
-
var length = validateArgumentsLength(arguments.length, 1);
|
|
2681
|
+
var length = validateArgumentsLength$3(arguments.length, 1);
|
|
2682
2682
|
var key = $toString$1(name);
|
|
2683
2683
|
var $value = length < 2 ? undefined : arguments[1];
|
|
2684
2684
|
var value = $value === undefined ? $value : $toString$1($value);
|
|
@@ -2693,7 +2693,7 @@ defineBuiltIns$1(URLSearchParamsPrototype, {
|
|
|
2693
2693
|
// https://url.spec.whatwg.org/#dom-urlsearchparams-set
|
|
2694
2694
|
set: function set(name, value) {
|
|
2695
2695
|
var state = getInternalParamsState(this);
|
|
2696
|
-
validateArgumentsLength(arguments.length, 1);
|
|
2696
|
+
validateArgumentsLength$3(arguments.length, 1);
|
|
2697
2697
|
var entries = state.entries;
|
|
2698
2698
|
var found = false;
|
|
2699
2699
|
var key = $toString$1(name);
|
|
@@ -2710,8 +2710,8 @@ defineBuiltIns$1(URLSearchParamsPrototype, {
|
|
|
2710
2710
|
}
|
|
2711
2711
|
}
|
|
2712
2712
|
}
|
|
2713
|
-
if (!found) push$
|
|
2714
|
-
if (!DESCRIPTORS$
|
|
2713
|
+
if (!found) push$3(entries, { key: key, value: val });
|
|
2714
|
+
if (!DESCRIPTORS$9) this.size = entries.length;
|
|
2715
2715
|
state.updateURL();
|
|
2716
2716
|
},
|
|
2717
2717
|
// `URLSearchParams.prototype.sort` method
|
|
@@ -2726,7 +2726,7 @@ defineBuiltIns$1(URLSearchParamsPrototype, {
|
|
|
2726
2726
|
// `URLSearchParams.prototype.forEach` method
|
|
2727
2727
|
forEach: function forEach(callback /* , thisArg */) {
|
|
2728
2728
|
var entries = getInternalParamsState(this).entries;
|
|
2729
|
-
var boundFunction = bind$
|
|
2729
|
+
var boundFunction = bind$3(callback, arguments.length > 1 ? arguments[1] : undefined);
|
|
2730
2730
|
var index = 0;
|
|
2731
2731
|
var entry;
|
|
2732
2732
|
while (index < entries.length) {
|
|
@@ -2749,17 +2749,17 @@ defineBuiltIns$1(URLSearchParamsPrototype, {
|
|
|
2749
2749
|
}, { enumerable: true });
|
|
2750
2750
|
|
|
2751
2751
|
// `URLSearchParams.prototype[@@iterator]` method
|
|
2752
|
-
defineBuiltIn$
|
|
2752
|
+
defineBuiltIn$5(URLSearchParamsPrototype$3, ITERATOR$1, URLSearchParamsPrototype$3.entries, { name: 'entries' });
|
|
2753
2753
|
|
|
2754
2754
|
// `URLSearchParams.prototype.toString` method
|
|
2755
2755
|
// https://url.spec.whatwg.org/#urlsearchparams-stringification-behavior
|
|
2756
|
-
defineBuiltIn$
|
|
2756
|
+
defineBuiltIn$5(URLSearchParamsPrototype$3, 'toString', function toString() {
|
|
2757
2757
|
return getInternalParamsState(this).serialize();
|
|
2758
2758
|
}, { enumerable: true });
|
|
2759
2759
|
|
|
2760
2760
|
// `URLSearchParams.prototype.size` getter
|
|
2761
2761
|
// https://github.com/whatwg/url/pull/734
|
|
2762
|
-
if (DESCRIPTORS$
|
|
2762
|
+
if (DESCRIPTORS$9) defineBuiltInAccessor$7(URLSearchParamsPrototype$3, 'size', {
|
|
2763
2763
|
get: function size() {
|
|
2764
2764
|
return getInternalParamsState(this).entries.length;
|
|
2765
2765
|
},
|
|
@@ -2767,36 +2767,36 @@ if (DESCRIPTORS$4) defineBuiltInAccessor$4(URLSearchParamsPrototype, 'size', {
|
|
|
2767
2767
|
enumerable: true
|
|
2768
2768
|
});
|
|
2769
2769
|
|
|
2770
|
-
setToStringTag$
|
|
2770
|
+
setToStringTag$2(URLSearchParamsConstructor, URL_SEARCH_PARAMS);
|
|
2771
2771
|
|
|
2772
|
-
$$
|
|
2772
|
+
$$7({ global: true, constructor: true, forced: !USE_NATIVE_URL }, {
|
|
2773
2773
|
URLSearchParams: URLSearchParamsConstructor
|
|
2774
2774
|
});
|
|
2775
2775
|
|
|
2776
2776
|
// Wrap `fetch` and `Request` for correct work with polyfilled `URLSearchParams`
|
|
2777
2777
|
if (!USE_NATIVE_URL && isCallable$4(Headers)) {
|
|
2778
|
-
var headersHas = uncurryThis$
|
|
2779
|
-
var headersSet = uncurryThis$
|
|
2778
|
+
var headersHas = uncurryThis$h(HeadersPrototype.has);
|
|
2779
|
+
var headersSet = uncurryThis$h(HeadersPrototype.set);
|
|
2780
2780
|
|
|
2781
2781
|
var wrapRequestOptions = function (init) {
|
|
2782
2782
|
if (isObject$5(init)) {
|
|
2783
2783
|
var body = init.body;
|
|
2784
2784
|
var headers;
|
|
2785
|
-
if (classof$
|
|
2785
|
+
if (classof$8(body) === URL_SEARCH_PARAMS) {
|
|
2786
2786
|
headers = init.headers ? new Headers(init.headers) : new Headers();
|
|
2787
2787
|
if (!headersHas(headers, 'content-type')) {
|
|
2788
2788
|
headersSet(headers, 'content-type', 'application/x-www-form-urlencoded;charset=UTF-8');
|
|
2789
2789
|
}
|
|
2790
|
-
return create$
|
|
2791
|
-
body: createPropertyDescriptor$
|
|
2792
|
-
headers: createPropertyDescriptor$
|
|
2790
|
+
return create$2(init, {
|
|
2791
|
+
body: createPropertyDescriptor$3(0, $toString$1(body)),
|
|
2792
|
+
headers: createPropertyDescriptor$3(0, headers)
|
|
2793
2793
|
});
|
|
2794
2794
|
}
|
|
2795
2795
|
} return init;
|
|
2796
2796
|
};
|
|
2797
2797
|
|
|
2798
2798
|
if (isCallable$4(nativeFetch)) {
|
|
2799
|
-
$$
|
|
2799
|
+
$$7({ global: true, enumerable: true, dontCallGetSet: true, forced: true }, {
|
|
2800
2800
|
fetch: function fetch(input /* , init */) {
|
|
2801
2801
|
return nativeFetch(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
2802
2802
|
}
|
|
@@ -2805,19 +2805,117 @@ if (!USE_NATIVE_URL && isCallable$4(Headers)) {
|
|
|
2805
2805
|
|
|
2806
2806
|
if (isCallable$4(NativeRequest)) {
|
|
2807
2807
|
var RequestConstructor = function Request(input /* , init */) {
|
|
2808
|
-
anInstance$
|
|
2808
|
+
anInstance$4(this, RequestPrototype);
|
|
2809
2809
|
return new NativeRequest(input, arguments.length > 1 ? wrapRequestOptions(arguments[1]) : {});
|
|
2810
2810
|
};
|
|
2811
2811
|
|
|
2812
2812
|
RequestPrototype.constructor = RequestConstructor;
|
|
2813
2813
|
RequestConstructor.prototype = RequestPrototype;
|
|
2814
2814
|
|
|
2815
|
-
$$
|
|
2815
|
+
$$7({ global: true, constructor: true, dontCallGetSet: true, forced: true }, {
|
|
2816
2816
|
Request: RequestConstructor
|
|
2817
2817
|
});
|
|
2818
2818
|
}
|
|
2819
2819
|
}
|
|
2820
2820
|
|
|
2821
|
+
var defineBuiltIn$4 = defineBuiltIn$b;
|
|
2822
|
+
var uncurryThis$g = functionUncurryThis;
|
|
2823
|
+
var toString$5 = toString$9;
|
|
2824
|
+
var validateArgumentsLength$2 = validateArgumentsLength$4;
|
|
2825
|
+
|
|
2826
|
+
var $URLSearchParams$1 = URLSearchParams;
|
|
2827
|
+
var URLSearchParamsPrototype$2 = $URLSearchParams$1.prototype;
|
|
2828
|
+
var append = uncurryThis$g(URLSearchParamsPrototype$2.append);
|
|
2829
|
+
var $delete = uncurryThis$g(URLSearchParamsPrototype$2['delete']);
|
|
2830
|
+
var forEach$2 = uncurryThis$g(URLSearchParamsPrototype$2.forEach);
|
|
2831
|
+
var push$2 = uncurryThis$g([].push);
|
|
2832
|
+
var params$1 = new $URLSearchParams$1('a=1&a=2&b=3');
|
|
2833
|
+
|
|
2834
|
+
params$1['delete']('a', 1);
|
|
2835
|
+
// `undefined` case is a Chromium 117 bug
|
|
2836
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
|
|
2837
|
+
params$1['delete']('b', undefined);
|
|
2838
|
+
|
|
2839
|
+
if (params$1 + '' !== 'a=2') {
|
|
2840
|
+
defineBuiltIn$4(URLSearchParamsPrototype$2, 'delete', function (name /* , value */) {
|
|
2841
|
+
var length = arguments.length;
|
|
2842
|
+
var $value = length < 2 ? undefined : arguments[1];
|
|
2843
|
+
if (length && $value === undefined) return $delete(this, name);
|
|
2844
|
+
var entries = [];
|
|
2845
|
+
forEach$2(this, function (v, k) { // also validates `this`
|
|
2846
|
+
push$2(entries, { key: k, value: v });
|
|
2847
|
+
});
|
|
2848
|
+
validateArgumentsLength$2(length, 1);
|
|
2849
|
+
var key = toString$5(name);
|
|
2850
|
+
var value = toString$5($value);
|
|
2851
|
+
var index = 0;
|
|
2852
|
+
var dindex = 0;
|
|
2853
|
+
var found = false;
|
|
2854
|
+
var entriesLength = entries.length;
|
|
2855
|
+
var entry;
|
|
2856
|
+
while (index < entriesLength) {
|
|
2857
|
+
entry = entries[index++];
|
|
2858
|
+
if (found || entry.key === key) {
|
|
2859
|
+
found = true;
|
|
2860
|
+
$delete(this, entry.key);
|
|
2861
|
+
} else dindex++;
|
|
2862
|
+
}
|
|
2863
|
+
while (dindex < entriesLength) {
|
|
2864
|
+
entry = entries[dindex++];
|
|
2865
|
+
if (!(entry.key === key && entry.value === value)) append(this, entry.key, entry.value);
|
|
2866
|
+
}
|
|
2867
|
+
}, { enumerable: true, unsafe: true });
|
|
2868
|
+
}
|
|
2869
|
+
|
|
2870
|
+
var defineBuiltIn$3 = defineBuiltIn$b;
|
|
2871
|
+
var uncurryThis$f = functionUncurryThis;
|
|
2872
|
+
var toString$4 = toString$9;
|
|
2873
|
+
var validateArgumentsLength$1 = validateArgumentsLength$4;
|
|
2874
|
+
|
|
2875
|
+
var $URLSearchParams = URLSearchParams;
|
|
2876
|
+
var URLSearchParamsPrototype$1 = $URLSearchParams.prototype;
|
|
2877
|
+
var getAll = uncurryThis$f(URLSearchParamsPrototype$1.getAll);
|
|
2878
|
+
var $has = uncurryThis$f(URLSearchParamsPrototype$1.has);
|
|
2879
|
+
var params = new $URLSearchParams('a=1');
|
|
2880
|
+
|
|
2881
|
+
// `undefined` case is a Chromium 117 bug
|
|
2882
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=14222
|
|
2883
|
+
if (params.has('a', 2) || !params.has('a', undefined)) {
|
|
2884
|
+
defineBuiltIn$3(URLSearchParamsPrototype$1, 'has', function has(name /* , value */) {
|
|
2885
|
+
var length = arguments.length;
|
|
2886
|
+
var $value = length < 2 ? undefined : arguments[1];
|
|
2887
|
+
if (length && $value === undefined) return $has(this, name);
|
|
2888
|
+
var values = getAll(this, name); // also validates `this`
|
|
2889
|
+
validateArgumentsLength$1(length, 1);
|
|
2890
|
+
var value = toString$4($value);
|
|
2891
|
+
var index = 0;
|
|
2892
|
+
while (index < values.length) {
|
|
2893
|
+
if (values[index++] === value) return true;
|
|
2894
|
+
} return false;
|
|
2895
|
+
}, { enumerable: true, unsafe: true });
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2898
|
+
var DESCRIPTORS$8 = descriptors;
|
|
2899
|
+
var uncurryThis$e = functionUncurryThis;
|
|
2900
|
+
var defineBuiltInAccessor$6 = defineBuiltInAccessor$8;
|
|
2901
|
+
|
|
2902
|
+
var URLSearchParamsPrototype = URLSearchParams.prototype;
|
|
2903
|
+
var forEach$1 = uncurryThis$e(URLSearchParamsPrototype.forEach);
|
|
2904
|
+
|
|
2905
|
+
// `URLSearchParams.prototype.size` getter
|
|
2906
|
+
// https://github.com/whatwg/url/pull/734
|
|
2907
|
+
if (DESCRIPTORS$8 && !('size' in URLSearchParamsPrototype)) {
|
|
2908
|
+
defineBuiltInAccessor$6(URLSearchParamsPrototype, 'size', {
|
|
2909
|
+
get: function size() {
|
|
2910
|
+
var count = 0;
|
|
2911
|
+
forEach$1(this, function () { count++; });
|
|
2912
|
+
return count;
|
|
2913
|
+
},
|
|
2914
|
+
configurable: true,
|
|
2915
|
+
enumerable: true
|
|
2916
|
+
});
|
|
2917
|
+
}
|
|
2918
|
+
|
|
2821
2919
|
/******************************************************************************
|
|
2822
2920
|
Copyright (c) Microsoft Corporation.
|
|
2823
2921
|
|
|
@@ -2851,18 +2949,18 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
2851
2949
|
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
2852
2950
|
var arrayBufferBasicDetection = typeof ArrayBuffer != 'undefined' && typeof DataView != 'undefined';
|
|
2853
2951
|
|
|
2854
|
-
var toIntegerOrInfinity$
|
|
2952
|
+
var toIntegerOrInfinity$7 = toIntegerOrInfinity$a;
|
|
2855
2953
|
var toLength$4 = toLength$6;
|
|
2856
2954
|
|
|
2857
|
-
var $RangeError$
|
|
2955
|
+
var $RangeError$3 = RangeError;
|
|
2858
2956
|
|
|
2859
2957
|
// `ToIndex` abstract operation
|
|
2860
2958
|
// https://tc39.es/ecma262/#sec-toindex
|
|
2861
|
-
var toIndex$
|
|
2959
|
+
var toIndex$3 = function (it) {
|
|
2862
2960
|
if (it === undefined) return 0;
|
|
2863
|
-
var number = toIntegerOrInfinity$
|
|
2961
|
+
var number = toIntegerOrInfinity$7(it);
|
|
2864
2962
|
var length = toLength$4(number);
|
|
2865
|
-
if (number !== length) throw new $RangeError$
|
|
2963
|
+
if (number !== length) throw new $RangeError$3('Wrong length or index');
|
|
2866
2964
|
return length;
|
|
2867
2965
|
};
|
|
2868
2966
|
|
|
@@ -3014,15 +3112,15 @@ var ieee754 = {
|
|
|
3014
3112
|
unpack: unpack
|
|
3015
3113
|
};
|
|
3016
3114
|
|
|
3017
|
-
var toObject$
|
|
3115
|
+
var toObject$4 = toObject$8;
|
|
3018
3116
|
var toAbsoluteIndex$1 = toAbsoluteIndex$3;
|
|
3019
|
-
var lengthOfArrayLike$
|
|
3117
|
+
var lengthOfArrayLike$8 = lengthOfArrayLike$b;
|
|
3020
3118
|
|
|
3021
3119
|
// `Array.prototype.fill` method implementation
|
|
3022
3120
|
// https://tc39.es/ecma262/#sec-array.prototype.fill
|
|
3023
3121
|
var arrayFill$1 = function fill(value /* , start = 0, end = @length */) {
|
|
3024
|
-
var O = toObject$
|
|
3025
|
-
var length = lengthOfArrayLike$
|
|
3122
|
+
var O = toObject$4(this);
|
|
3123
|
+
var length = lengthOfArrayLike$8(O);
|
|
3026
3124
|
var argumentsLength = arguments.length;
|
|
3027
3125
|
var index = toAbsoluteIndex$1(argumentsLength > 1 ? arguments[1] : undefined, length);
|
|
3028
3126
|
var end = argumentsLength > 2 ? arguments[2] : undefined;
|
|
@@ -3036,7 +3134,7 @@ var isObject$4 = isObject$e;
|
|
|
3036
3134
|
var setPrototypeOf$3 = objectSetPrototypeOf;
|
|
3037
3135
|
|
|
3038
3136
|
// makes subclassing work correct for wrapped built-ins
|
|
3039
|
-
var inheritIfRequired$
|
|
3137
|
+
var inheritIfRequired$3 = function ($this, dummy, Wrapper) {
|
|
3040
3138
|
var NewTarget, NewTargetPrototype;
|
|
3041
3139
|
if (
|
|
3042
3140
|
// it can work only with native `setPrototypeOf`
|
|
@@ -3050,29 +3148,29 @@ var inheritIfRequired$2 = function ($this, dummy, Wrapper) {
|
|
|
3050
3148
|
return $this;
|
|
3051
3149
|
};
|
|
3052
3150
|
|
|
3053
|
-
var global$
|
|
3054
|
-
var uncurryThis$
|
|
3055
|
-
var DESCRIPTORS$
|
|
3151
|
+
var global$d = global$u;
|
|
3152
|
+
var uncurryThis$d = functionUncurryThis;
|
|
3153
|
+
var DESCRIPTORS$7 = descriptors;
|
|
3056
3154
|
var NATIVE_ARRAY_BUFFER$1 = arrayBufferBasicDetection;
|
|
3057
3155
|
var FunctionName = functionName;
|
|
3058
3156
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
3059
|
-
var defineBuiltInAccessor$
|
|
3157
|
+
var defineBuiltInAccessor$5 = defineBuiltInAccessor$8;
|
|
3060
3158
|
var defineBuiltIns = defineBuiltIns$2;
|
|
3061
|
-
var fails$
|
|
3062
|
-
var anInstance$
|
|
3063
|
-
var toIntegerOrInfinity$
|
|
3159
|
+
var fails$d = fails$v;
|
|
3160
|
+
var anInstance$3 = anInstance$5;
|
|
3161
|
+
var toIntegerOrInfinity$6 = toIntegerOrInfinity$a;
|
|
3064
3162
|
var toLength$3 = toLength$6;
|
|
3065
|
-
var toIndex$
|
|
3163
|
+
var toIndex$2 = toIndex$3;
|
|
3066
3164
|
var fround = mathFround;
|
|
3067
3165
|
var IEEE754 = ieee754;
|
|
3068
3166
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
3069
3167
|
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
3070
3168
|
var arrayFill = arrayFill$1;
|
|
3071
3169
|
var arraySlice$1 = arraySlice$3;
|
|
3072
|
-
var inheritIfRequired$
|
|
3170
|
+
var inheritIfRequired$2 = inheritIfRequired$3;
|
|
3073
3171
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
3074
|
-
var setToStringTag = setToStringTag$
|
|
3075
|
-
var InternalStateModule$
|
|
3172
|
+
var setToStringTag$1 = setToStringTag$6;
|
|
3173
|
+
var InternalStateModule$3 = internalState;
|
|
3076
3174
|
|
|
3077
3175
|
var PROPER_FUNCTION_NAME$1 = FunctionName.PROPER;
|
|
3078
3176
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
@@ -3081,19 +3179,19 @@ var DATA_VIEW = 'DataView';
|
|
|
3081
3179
|
var PROTOTYPE = 'prototype';
|
|
3082
3180
|
var WRONG_LENGTH$1 = 'Wrong length';
|
|
3083
3181
|
var WRONG_INDEX = 'Wrong index';
|
|
3084
|
-
var getInternalArrayBufferState = InternalStateModule$
|
|
3085
|
-
var getInternalDataViewState = InternalStateModule$
|
|
3086
|
-
var setInternalState$
|
|
3087
|
-
var NativeArrayBuffer = global$
|
|
3088
|
-
var $ArrayBuffer = NativeArrayBuffer;
|
|
3089
|
-
var ArrayBufferPrototype$
|
|
3090
|
-
var $DataView = global$
|
|
3091
|
-
var DataViewPrototype$
|
|
3182
|
+
var getInternalArrayBufferState = InternalStateModule$3.getterFor(ARRAY_BUFFER);
|
|
3183
|
+
var getInternalDataViewState = InternalStateModule$3.getterFor(DATA_VIEW);
|
|
3184
|
+
var setInternalState$2 = InternalStateModule$3.set;
|
|
3185
|
+
var NativeArrayBuffer = global$d[ARRAY_BUFFER];
|
|
3186
|
+
var $ArrayBuffer$1 = NativeArrayBuffer;
|
|
3187
|
+
var ArrayBufferPrototype$3 = $ArrayBuffer$1 && $ArrayBuffer$1[PROTOTYPE];
|
|
3188
|
+
var $DataView = global$d[DATA_VIEW];
|
|
3189
|
+
var DataViewPrototype$2 = $DataView && $DataView[PROTOTYPE];
|
|
3092
3190
|
var ObjectPrototype$1 = Object.prototype;
|
|
3093
|
-
var Array$1 = global$
|
|
3094
|
-
var RangeError$3 = global$
|
|
3095
|
-
var fill = uncurryThis$
|
|
3096
|
-
var reverse = uncurryThis$
|
|
3191
|
+
var Array$1 = global$d.Array;
|
|
3192
|
+
var RangeError$3 = global$d.RangeError;
|
|
3193
|
+
var fill = uncurryThis$d(arrayFill);
|
|
3194
|
+
var reverse = uncurryThis$d([].reverse);
|
|
3097
3195
|
|
|
3098
3196
|
var packIEEE754 = IEEE754.pack;
|
|
3099
3197
|
var unpackIEEE754 = IEEE754.unpack;
|
|
@@ -3123,7 +3221,7 @@ var packFloat64 = function (number) {
|
|
|
3123
3221
|
};
|
|
3124
3222
|
|
|
3125
3223
|
var addGetter$1 = function (Constructor, key, getInternalState) {
|
|
3126
|
-
defineBuiltInAccessor$
|
|
3224
|
+
defineBuiltInAccessor$5(Constructor[PROTOTYPE], key, {
|
|
3127
3225
|
configurable: true,
|
|
3128
3226
|
get: function () {
|
|
3129
3227
|
return getInternalState(this)[key];
|
|
@@ -3133,7 +3231,7 @@ var addGetter$1 = function (Constructor, key, getInternalState) {
|
|
|
3133
3231
|
|
|
3134
3232
|
var get = function (view, count, index, isLittleEndian) {
|
|
3135
3233
|
var store = getInternalDataViewState(view);
|
|
3136
|
-
var intIndex = toIndex$
|
|
3234
|
+
var intIndex = toIndex$2(index);
|
|
3137
3235
|
var boolIsLittleEndian = !!isLittleEndian;
|
|
3138
3236
|
if (intIndex + count > store.byteLength) throw new RangeError$3(WRONG_INDEX);
|
|
3139
3237
|
var bytes = store.bytes;
|
|
@@ -3144,7 +3242,7 @@ var get = function (view, count, index, isLittleEndian) {
|
|
|
3144
3242
|
|
|
3145
3243
|
var set = function (view, count, index, conversion, value, isLittleEndian) {
|
|
3146
3244
|
var store = getInternalDataViewState(view);
|
|
3147
|
-
var intIndex = toIndex$
|
|
3245
|
+
var intIndex = toIndex$2(index);
|
|
3148
3246
|
var pack = conversion(+value);
|
|
3149
3247
|
var boolIsLittleEndian = !!isLittleEndian;
|
|
3150
3248
|
if (intIndex + count > store.byteLength) throw new RangeError$3(WRONG_INDEX);
|
|
@@ -3154,55 +3252,55 @@ var set = function (view, count, index, conversion, value, isLittleEndian) {
|
|
|
3154
3252
|
};
|
|
3155
3253
|
|
|
3156
3254
|
if (!NATIVE_ARRAY_BUFFER$1) {
|
|
3157
|
-
$ArrayBuffer = function ArrayBuffer(length) {
|
|
3158
|
-
anInstance$
|
|
3159
|
-
var byteLength = toIndex$
|
|
3160
|
-
setInternalState$
|
|
3255
|
+
$ArrayBuffer$1 = function ArrayBuffer(length) {
|
|
3256
|
+
anInstance$3(this, ArrayBufferPrototype$3);
|
|
3257
|
+
var byteLength = toIndex$2(length);
|
|
3258
|
+
setInternalState$2(this, {
|
|
3161
3259
|
type: ARRAY_BUFFER,
|
|
3162
3260
|
bytes: fill(Array$1(byteLength), 0),
|
|
3163
3261
|
byteLength: byteLength
|
|
3164
3262
|
});
|
|
3165
|
-
if (!DESCRIPTORS$
|
|
3263
|
+
if (!DESCRIPTORS$7) {
|
|
3166
3264
|
this.byteLength = byteLength;
|
|
3167
3265
|
this.detached = false;
|
|
3168
3266
|
}
|
|
3169
3267
|
};
|
|
3170
3268
|
|
|
3171
|
-
ArrayBufferPrototype$
|
|
3269
|
+
ArrayBufferPrototype$3 = $ArrayBuffer$1[PROTOTYPE];
|
|
3172
3270
|
|
|
3173
3271
|
$DataView = function DataView(buffer, byteOffset, byteLength) {
|
|
3174
|
-
anInstance$
|
|
3175
|
-
anInstance$
|
|
3272
|
+
anInstance$3(this, DataViewPrototype$2);
|
|
3273
|
+
anInstance$3(buffer, ArrayBufferPrototype$3);
|
|
3176
3274
|
var bufferState = getInternalArrayBufferState(buffer);
|
|
3177
3275
|
var bufferLength = bufferState.byteLength;
|
|
3178
|
-
var offset = toIntegerOrInfinity$
|
|
3276
|
+
var offset = toIntegerOrInfinity$6(byteOffset);
|
|
3179
3277
|
if (offset < 0 || offset > bufferLength) throw new RangeError$3('Wrong offset');
|
|
3180
3278
|
byteLength = byteLength === undefined ? bufferLength - offset : toLength$3(byteLength);
|
|
3181
3279
|
if (offset + byteLength > bufferLength) throw new RangeError$3(WRONG_LENGTH$1);
|
|
3182
|
-
setInternalState$
|
|
3280
|
+
setInternalState$2(this, {
|
|
3183
3281
|
type: DATA_VIEW,
|
|
3184
3282
|
buffer: buffer,
|
|
3185
3283
|
byteLength: byteLength,
|
|
3186
3284
|
byteOffset: offset,
|
|
3187
3285
|
bytes: bufferState.bytes
|
|
3188
3286
|
});
|
|
3189
|
-
if (!DESCRIPTORS$
|
|
3287
|
+
if (!DESCRIPTORS$7) {
|
|
3190
3288
|
this.buffer = buffer;
|
|
3191
3289
|
this.byteLength = byteLength;
|
|
3192
3290
|
this.byteOffset = offset;
|
|
3193
3291
|
}
|
|
3194
3292
|
};
|
|
3195
3293
|
|
|
3196
|
-
DataViewPrototype$
|
|
3294
|
+
DataViewPrototype$2 = $DataView[PROTOTYPE];
|
|
3197
3295
|
|
|
3198
|
-
if (DESCRIPTORS$
|
|
3199
|
-
addGetter$1($ArrayBuffer, 'byteLength', getInternalArrayBufferState);
|
|
3296
|
+
if (DESCRIPTORS$7) {
|
|
3297
|
+
addGetter$1($ArrayBuffer$1, 'byteLength', getInternalArrayBufferState);
|
|
3200
3298
|
addGetter$1($DataView, 'buffer', getInternalDataViewState);
|
|
3201
3299
|
addGetter$1($DataView, 'byteLength', getInternalDataViewState);
|
|
3202
3300
|
addGetter$1($DataView, 'byteOffset', getInternalDataViewState);
|
|
3203
3301
|
}
|
|
3204
3302
|
|
|
3205
|
-
defineBuiltIns(DataViewPrototype$
|
|
3303
|
+
defineBuiltIns(DataViewPrototype$2, {
|
|
3206
3304
|
getInt8: function getInt8(byteOffset) {
|
|
3207
3305
|
return get(this, 1, byteOffset)[0] << 24 >> 24;
|
|
3208
3306
|
},
|
|
@@ -3257,42 +3355,42 @@ if (!NATIVE_ARRAY_BUFFER$1) {
|
|
|
3257
3355
|
} else {
|
|
3258
3356
|
var INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME$1 && NativeArrayBuffer.name !== ARRAY_BUFFER;
|
|
3259
3357
|
/* eslint-disable no-new -- required for testing */
|
|
3260
|
-
if (!fails$
|
|
3358
|
+
if (!fails$d(function () {
|
|
3261
3359
|
NativeArrayBuffer(1);
|
|
3262
|
-
}) || !fails$
|
|
3360
|
+
}) || !fails$d(function () {
|
|
3263
3361
|
new NativeArrayBuffer(-1);
|
|
3264
|
-
}) || fails$
|
|
3362
|
+
}) || fails$d(function () {
|
|
3265
3363
|
new NativeArrayBuffer();
|
|
3266
3364
|
new NativeArrayBuffer(1.5);
|
|
3267
3365
|
new NativeArrayBuffer(NaN);
|
|
3268
3366
|
return NativeArrayBuffer.length !== 1 || INCORRECT_ARRAY_BUFFER_NAME && !CONFIGURABLE_FUNCTION_NAME;
|
|
3269
3367
|
})) {
|
|
3270
3368
|
/* eslint-enable no-new -- required for testing */
|
|
3271
|
-
$ArrayBuffer = function ArrayBuffer(length) {
|
|
3272
|
-
anInstance$
|
|
3273
|
-
return inheritIfRequired$
|
|
3369
|
+
$ArrayBuffer$1 = function ArrayBuffer(length) {
|
|
3370
|
+
anInstance$3(this, ArrayBufferPrototype$3);
|
|
3371
|
+
return inheritIfRequired$2(new NativeArrayBuffer(toIndex$2(length)), this, $ArrayBuffer$1);
|
|
3274
3372
|
};
|
|
3275
3373
|
|
|
3276
|
-
$ArrayBuffer[PROTOTYPE] = ArrayBufferPrototype$
|
|
3374
|
+
$ArrayBuffer$1[PROTOTYPE] = ArrayBufferPrototype$3;
|
|
3277
3375
|
|
|
3278
|
-
ArrayBufferPrototype$
|
|
3376
|
+
ArrayBufferPrototype$3.constructor = $ArrayBuffer$1;
|
|
3279
3377
|
|
|
3280
|
-
copyConstructorProperties($ArrayBuffer, NativeArrayBuffer);
|
|
3378
|
+
copyConstructorProperties($ArrayBuffer$1, NativeArrayBuffer);
|
|
3281
3379
|
} else if (INCORRECT_ARRAY_BUFFER_NAME && CONFIGURABLE_FUNCTION_NAME) {
|
|
3282
3380
|
createNonEnumerableProperty$2(NativeArrayBuffer, 'name', ARRAY_BUFFER);
|
|
3283
3381
|
}
|
|
3284
3382
|
|
|
3285
3383
|
// WebKit bug - the same parent prototype for typed arrays and data view
|
|
3286
|
-
if (setPrototypeOf$2 && getPrototypeOf$1(DataViewPrototype$
|
|
3287
|
-
setPrototypeOf$2(DataViewPrototype$
|
|
3384
|
+
if (setPrototypeOf$2 && getPrototypeOf$1(DataViewPrototype$2) !== ObjectPrototype$1) {
|
|
3385
|
+
setPrototypeOf$2(DataViewPrototype$2, ObjectPrototype$1);
|
|
3288
3386
|
}
|
|
3289
3387
|
|
|
3290
3388
|
// iOS Safari 7.x bug
|
|
3291
|
-
var testView = new $DataView(new $ArrayBuffer(2));
|
|
3292
|
-
var $setInt8 = uncurryThis$
|
|
3389
|
+
var testView = new $DataView(new $ArrayBuffer$1(2));
|
|
3390
|
+
var $setInt8 = uncurryThis$d(DataViewPrototype$2.setInt8);
|
|
3293
3391
|
testView.setInt8(0, 2147483648);
|
|
3294
3392
|
testView.setInt8(1, 2147483649);
|
|
3295
|
-
if (testView.getInt8(0) || !testView.getInt8(1)) defineBuiltIns(DataViewPrototype$
|
|
3393
|
+
if (testView.getInt8(0) || !testView.getInt8(1)) defineBuiltIns(DataViewPrototype$2, {
|
|
3296
3394
|
setInt8: function setInt8(byteOffset, value) {
|
|
3297
3395
|
$setInt8(this, byteOffset, value << 24 >> 24);
|
|
3298
3396
|
},
|
|
@@ -3302,26 +3400,26 @@ if (!NATIVE_ARRAY_BUFFER$1) {
|
|
|
3302
3400
|
}, { unsafe: true });
|
|
3303
3401
|
}
|
|
3304
3402
|
|
|
3305
|
-
setToStringTag($ArrayBuffer, ARRAY_BUFFER);
|
|
3306
|
-
setToStringTag($DataView, DATA_VIEW);
|
|
3403
|
+
setToStringTag$1($ArrayBuffer$1, ARRAY_BUFFER);
|
|
3404
|
+
setToStringTag$1($DataView, DATA_VIEW);
|
|
3307
3405
|
|
|
3308
3406
|
var arrayBuffer = {
|
|
3309
|
-
ArrayBuffer: $ArrayBuffer,
|
|
3407
|
+
ArrayBuffer: $ArrayBuffer$1,
|
|
3310
3408
|
DataView: $DataView
|
|
3311
3409
|
};
|
|
3312
3410
|
|
|
3313
|
-
var uncurryThis$
|
|
3314
|
-
var fails$
|
|
3411
|
+
var uncurryThis$c = functionUncurryThis;
|
|
3412
|
+
var fails$c = fails$v;
|
|
3315
3413
|
var isCallable$2 = isCallable$k;
|
|
3316
|
-
var classof$
|
|
3317
|
-
var getBuiltIn$
|
|
3414
|
+
var classof$7 = classof$d;
|
|
3415
|
+
var getBuiltIn$5 = getBuiltIn$9;
|
|
3318
3416
|
var inspectSource = inspectSource$2;
|
|
3319
3417
|
|
|
3320
3418
|
var noop = function () { /* empty */ };
|
|
3321
|
-
var construct = getBuiltIn$
|
|
3419
|
+
var construct = getBuiltIn$5('Reflect', 'construct');
|
|
3322
3420
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
3323
|
-
var exec = uncurryThis$
|
|
3324
|
-
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
3421
|
+
var exec = uncurryThis$c(constructorRegExp.exec);
|
|
3422
|
+
var INCORRECT_TO_STRING$2 = !constructorRegExp.test(noop);
|
|
3325
3423
|
|
|
3326
3424
|
var isConstructorModern = function isConstructor(argument) {
|
|
3327
3425
|
if (!isCallable$2(argument)) return false;
|
|
@@ -3335,7 +3433,7 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
3335
3433
|
|
|
3336
3434
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
3337
3435
|
if (!isCallable$2(argument)) return false;
|
|
3338
|
-
switch (classof$
|
|
3436
|
+
switch (classof$7(argument)) {
|
|
3339
3437
|
case 'AsyncFunction':
|
|
3340
3438
|
case 'GeneratorFunction':
|
|
3341
3439
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -3344,7 +3442,7 @@ var isConstructorLegacy = function isConstructor(argument) {
|
|
|
3344
3442
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
3345
3443
|
// `Function#toString` throws on some built-it function in some legacy engines
|
|
3346
3444
|
// (for example, `DOMQuad` and similar in FF41-)
|
|
3347
|
-
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
|
3445
|
+
return INCORRECT_TO_STRING$2 || !!exec(constructorRegExp, inspectSource(argument));
|
|
3348
3446
|
} catch (error) {
|
|
3349
3447
|
return true;
|
|
3350
3448
|
}
|
|
@@ -3354,7 +3452,7 @@ isConstructorLegacy.sham = true;
|
|
|
3354
3452
|
|
|
3355
3453
|
// `IsConstructor` abstract operation
|
|
3356
3454
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
3357
|
-
var isConstructor$2 = !construct || fails$
|
|
3455
|
+
var isConstructor$2 = !construct || fails$c(function () {
|
|
3358
3456
|
var called;
|
|
3359
3457
|
return isConstructorModern(isConstructorModern.call)
|
|
3360
3458
|
|| !isConstructorModern(Object)
|
|
@@ -3365,15 +3463,15 @@ var isConstructor$2 = !construct || fails$8(function () {
|
|
|
3365
3463
|
var isConstructor$1 = isConstructor$2;
|
|
3366
3464
|
var tryToString$1 = tryToString$5;
|
|
3367
3465
|
|
|
3368
|
-
var $TypeError$
|
|
3466
|
+
var $TypeError$2 = TypeError;
|
|
3369
3467
|
|
|
3370
3468
|
// `Assert: IsConstructor(argument) is true`
|
|
3371
3469
|
var aConstructor$2 = function (argument) {
|
|
3372
3470
|
if (isConstructor$1(argument)) return argument;
|
|
3373
|
-
throw new $TypeError$
|
|
3471
|
+
throw new $TypeError$2(tryToString$1(argument) + ' is not a constructor');
|
|
3374
3472
|
};
|
|
3375
3473
|
|
|
3376
|
-
var anObject$
|
|
3474
|
+
var anObject$5 = anObject$i;
|
|
3377
3475
|
var aConstructor$1 = aConstructor$2;
|
|
3378
3476
|
var isNullOrUndefined$1 = isNullOrUndefined$6;
|
|
3379
3477
|
var wellKnownSymbol$5 = wellKnownSymbol$l;
|
|
@@ -3383,44 +3481,44 @@ var SPECIES$2 = wellKnownSymbol$5('species');
|
|
|
3383
3481
|
// `SpeciesConstructor` abstract operation
|
|
3384
3482
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
3385
3483
|
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
3386
|
-
var C = anObject$
|
|
3484
|
+
var C = anObject$5(O).constructor;
|
|
3387
3485
|
var S;
|
|
3388
|
-
return C === undefined || isNullOrUndefined$1(S = anObject$
|
|
3486
|
+
return C === undefined || isNullOrUndefined$1(S = anObject$5(C)[SPECIES$2]) ? defaultConstructor : aConstructor$1(S);
|
|
3389
3487
|
};
|
|
3390
3488
|
|
|
3391
|
-
var $$
|
|
3392
|
-
var uncurryThis$
|
|
3393
|
-
var fails$
|
|
3489
|
+
var $$6 = _export;
|
|
3490
|
+
var uncurryThis$b = functionUncurryThisClause;
|
|
3491
|
+
var fails$b = fails$v;
|
|
3394
3492
|
var ArrayBufferModule$1 = arrayBuffer;
|
|
3395
|
-
var anObject$
|
|
3493
|
+
var anObject$4 = anObject$i;
|
|
3396
3494
|
var toAbsoluteIndex = toAbsoluteIndex$3;
|
|
3397
3495
|
var toLength$2 = toLength$6;
|
|
3398
3496
|
var speciesConstructor = speciesConstructor$1;
|
|
3399
3497
|
|
|
3400
|
-
var ArrayBuffer$
|
|
3401
|
-
var DataView$
|
|
3402
|
-
var DataViewPrototype = DataView$
|
|
3403
|
-
var nativeArrayBufferSlice = uncurryThis$
|
|
3404
|
-
var getUint8 = uncurryThis$
|
|
3405
|
-
var setUint8 = uncurryThis$
|
|
3498
|
+
var ArrayBuffer$4 = ArrayBufferModule$1.ArrayBuffer;
|
|
3499
|
+
var DataView$3 = ArrayBufferModule$1.DataView;
|
|
3500
|
+
var DataViewPrototype$1 = DataView$3.prototype;
|
|
3501
|
+
var nativeArrayBufferSlice = uncurryThis$b(ArrayBuffer$4.prototype.slice);
|
|
3502
|
+
var getUint8 = uncurryThis$b(DataViewPrototype$1.getUint8);
|
|
3503
|
+
var setUint8 = uncurryThis$b(DataViewPrototype$1.setUint8);
|
|
3406
3504
|
|
|
3407
|
-
var INCORRECT_SLICE = fails$
|
|
3408
|
-
return !new ArrayBuffer$
|
|
3505
|
+
var INCORRECT_SLICE = fails$b(function () {
|
|
3506
|
+
return !new ArrayBuffer$4(2).slice(1, undefined).byteLength;
|
|
3409
3507
|
});
|
|
3410
3508
|
|
|
3411
3509
|
// `ArrayBuffer.prototype.slice` method
|
|
3412
3510
|
// https://tc39.es/ecma262/#sec-arraybuffer.prototype.slice
|
|
3413
|
-
$$
|
|
3511
|
+
$$6({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE }, {
|
|
3414
3512
|
slice: function slice(start, end) {
|
|
3415
3513
|
if (nativeArrayBufferSlice && end === undefined) {
|
|
3416
|
-
return nativeArrayBufferSlice(anObject$
|
|
3514
|
+
return nativeArrayBufferSlice(anObject$4(this), start); // FF fix
|
|
3417
3515
|
}
|
|
3418
|
-
var length = anObject$
|
|
3516
|
+
var length = anObject$4(this).byteLength;
|
|
3419
3517
|
var first = toAbsoluteIndex(start, length);
|
|
3420
3518
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
|
3421
|
-
var result = new (speciesConstructor(this, ArrayBuffer$
|
|
3422
|
-
var viewSource = new DataView$
|
|
3423
|
-
var viewTarget = new DataView$
|
|
3519
|
+
var result = new (speciesConstructor(this, ArrayBuffer$4))(toLength$2(fin - first));
|
|
3520
|
+
var viewSource = new DataView$3(this);
|
|
3521
|
+
var viewTarget = new DataView$3(result);
|
|
3424
3522
|
var index = 0;
|
|
3425
3523
|
while (first < fin) {
|
|
3426
3524
|
setUint8(viewTarget, index++, getUint8(viewSource, first++));
|
|
@@ -3428,8 +3526,8 @@ $$1({ target: 'ArrayBuffer', proto: true, unsafe: true, forced: INCORRECT_SLICE
|
|
|
3428
3526
|
}
|
|
3429
3527
|
});
|
|
3430
3528
|
|
|
3431
|
-
var call$
|
|
3432
|
-
var hasOwn$
|
|
3529
|
+
var call$7 = functionCall;
|
|
3530
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
3433
3531
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
3434
3532
|
var regExpFlags = regexpFlags$1;
|
|
3435
3533
|
|
|
@@ -3437,30 +3535,30 @@ var RegExpPrototype$1 = RegExp.prototype;
|
|
|
3437
3535
|
|
|
3438
3536
|
var regexpGetFlags = function (R) {
|
|
3439
3537
|
var flags = R.flags;
|
|
3440
|
-
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$
|
|
3441
|
-
? call$
|
|
3538
|
+
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn$4(R, 'flags') && isPrototypeOf$2(RegExpPrototype$1, R)
|
|
3539
|
+
? call$7(regExpFlags, R) : flags;
|
|
3442
3540
|
};
|
|
3443
3541
|
|
|
3444
3542
|
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
3445
|
-
var defineBuiltIn$
|
|
3446
|
-
var anObject$
|
|
3447
|
-
var $toString = toString$
|
|
3448
|
-
var fails$
|
|
3543
|
+
var defineBuiltIn$2 = defineBuiltIn$b;
|
|
3544
|
+
var anObject$3 = anObject$i;
|
|
3545
|
+
var $toString = toString$9;
|
|
3546
|
+
var fails$a = fails$v;
|
|
3449
3547
|
var getRegExpFlags = regexpGetFlags;
|
|
3450
3548
|
|
|
3451
3549
|
var TO_STRING = 'toString';
|
|
3452
3550
|
var RegExpPrototype = RegExp.prototype;
|
|
3453
3551
|
var nativeToString = RegExpPrototype[TO_STRING];
|
|
3454
3552
|
|
|
3455
|
-
var NOT_GENERIC = fails$
|
|
3553
|
+
var NOT_GENERIC = fails$a(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
3456
3554
|
// FF44- RegExp#toString has a wrong name
|
|
3457
3555
|
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
|
|
3458
3556
|
|
|
3459
3557
|
// `RegExp.prototype.toString` method
|
|
3460
3558
|
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
3461
3559
|
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
3462
|
-
defineBuiltIn$
|
|
3463
|
-
var R = anObject$
|
|
3560
|
+
defineBuiltIn$2(RegExpPrototype, TO_STRING, function toString() {
|
|
3561
|
+
var R = anObject$3(this);
|
|
3464
3562
|
var pattern = $toString(R.source);
|
|
3465
3563
|
var flags = $toString(getRegExpFlags(R));
|
|
3466
3564
|
return '/' + pattern + '/' + flags;
|
|
@@ -3471,34 +3569,34 @@ var NATIVE_BIND = functionBindNative;
|
|
|
3471
3569
|
|
|
3472
3570
|
var FunctionPrototype = Function.prototype;
|
|
3473
3571
|
var apply$2 = FunctionPrototype.apply;
|
|
3474
|
-
var call$
|
|
3572
|
+
var call$6 = FunctionPrototype.call;
|
|
3475
3573
|
|
|
3476
3574
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
3477
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$
|
|
3478
|
-
return call$
|
|
3575
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$6.bind(apply$2) : function () {
|
|
3576
|
+
return call$6.apply(apply$2, arguments);
|
|
3479
3577
|
});
|
|
3480
3578
|
|
|
3481
|
-
var uncurryThis$
|
|
3482
|
-
var toIntegerOrInfinity$
|
|
3483
|
-
var toString$
|
|
3579
|
+
var uncurryThis$a = functionUncurryThis;
|
|
3580
|
+
var toIntegerOrInfinity$5 = toIntegerOrInfinity$a;
|
|
3581
|
+
var toString$3 = toString$9;
|
|
3484
3582
|
var requireObjectCoercible$1 = requireObjectCoercible$6;
|
|
3485
3583
|
|
|
3486
|
-
var charAt$
|
|
3487
|
-
var charCodeAt = uncurryThis$
|
|
3488
|
-
var stringSlice$2 = uncurryThis$
|
|
3584
|
+
var charAt$3 = uncurryThis$a(''.charAt);
|
|
3585
|
+
var charCodeAt$1 = uncurryThis$a(''.charCodeAt);
|
|
3586
|
+
var stringSlice$2 = uncurryThis$a(''.slice);
|
|
3489
3587
|
|
|
3490
|
-
var createMethod$
|
|
3588
|
+
var createMethod$2 = function (CONVERT_TO_STRING) {
|
|
3491
3589
|
return function ($this, pos) {
|
|
3492
|
-
var S = toString$
|
|
3493
|
-
var position = toIntegerOrInfinity$
|
|
3590
|
+
var S = toString$3(requireObjectCoercible$1($this));
|
|
3591
|
+
var position = toIntegerOrInfinity$5(pos);
|
|
3494
3592
|
var size = S.length;
|
|
3495
3593
|
var first, second;
|
|
3496
3594
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
3497
|
-
first = charCodeAt(S, position);
|
|
3595
|
+
first = charCodeAt$1(S, position);
|
|
3498
3596
|
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
3499
|
-
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
3597
|
+
|| (second = charCodeAt$1(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
3500
3598
|
? CONVERT_TO_STRING
|
|
3501
|
-
? charAt$
|
|
3599
|
+
? charAt$3(S, position)
|
|
3502
3600
|
: first
|
|
3503
3601
|
: CONVERT_TO_STRING
|
|
3504
3602
|
? stringSlice$2(S, position, position + 2)
|
|
@@ -3509,27 +3607,27 @@ var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
|
3509
3607
|
var stringMultibyte = {
|
|
3510
3608
|
// `String.prototype.codePointAt` method
|
|
3511
3609
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
3512
|
-
codeAt: createMethod$
|
|
3610
|
+
codeAt: createMethod$2(false),
|
|
3513
3611
|
// `String.prototype.at` method
|
|
3514
3612
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
3515
|
-
charAt: createMethod$
|
|
3613
|
+
charAt: createMethod$2(true)
|
|
3516
3614
|
};
|
|
3517
3615
|
|
|
3518
|
-
var charAt$
|
|
3616
|
+
var charAt$2 = stringMultibyte.charAt;
|
|
3519
3617
|
|
|
3520
3618
|
// `AdvanceStringIndex` abstract operation
|
|
3521
3619
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
3522
3620
|
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
3523
|
-
return index + (unicode ? charAt$
|
|
3621
|
+
return index + (unicode ? charAt$2(S, index).length : 1);
|
|
3524
3622
|
};
|
|
3525
3623
|
|
|
3526
|
-
var uncurryThis$
|
|
3527
|
-
var toObject$
|
|
3624
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
3625
|
+
var toObject$3 = toObject$8;
|
|
3528
3626
|
|
|
3529
3627
|
var floor$1 = Math.floor;
|
|
3530
|
-
var charAt = uncurryThis$
|
|
3531
|
-
var replace = uncurryThis$
|
|
3532
|
-
var stringSlice$1 = uncurryThis$
|
|
3628
|
+
var charAt$1 = uncurryThis$9(''.charAt);
|
|
3629
|
+
var replace$1 = uncurryThis$9(''.replace);
|
|
3630
|
+
var stringSlice$1 = uncurryThis$9(''.slice);
|
|
3533
3631
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
3534
3632
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
3535
3633
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
@@ -3541,12 +3639,12 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
3541
3639
|
var m = captures.length;
|
|
3542
3640
|
var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
|
|
3543
3641
|
if (namedCaptures !== undefined) {
|
|
3544
|
-
namedCaptures = toObject$
|
|
3642
|
+
namedCaptures = toObject$3(namedCaptures);
|
|
3545
3643
|
symbols = SUBSTITUTION_SYMBOLS;
|
|
3546
3644
|
}
|
|
3547
|
-
return replace(replacement, symbols, function (match, ch) {
|
|
3645
|
+
return replace$1(replacement, symbols, function (match, ch) {
|
|
3548
3646
|
var capture;
|
|
3549
|
-
switch (charAt(ch, 0)) {
|
|
3647
|
+
switch (charAt$1(ch, 0)) {
|
|
3550
3648
|
case '$': return '$';
|
|
3551
3649
|
case '&': return matched;
|
|
3552
3650
|
case '`': return stringSlice$1(str, 0, position);
|
|
@@ -3560,7 +3658,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
3560
3658
|
if (n > m) {
|
|
3561
3659
|
var f = floor$1(n / 10);
|
|
3562
3660
|
if (f === 0) return match;
|
|
3563
|
-
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
3661
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt$1(ch, 1) : captures[f - 1] + charAt$1(ch, 1);
|
|
3564
3662
|
return match;
|
|
3565
3663
|
}
|
|
3566
3664
|
capture = captures[n - 1];
|
|
@@ -3570,16 +3668,16 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
3570
3668
|
};
|
|
3571
3669
|
|
|
3572
3670
|
var apply$1 = functionApply;
|
|
3573
|
-
var call$
|
|
3574
|
-
var uncurryThis$
|
|
3671
|
+
var call$5 = functionCall;
|
|
3672
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
3575
3673
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
3576
|
-
var fails$
|
|
3577
|
-
var anObject = anObject$
|
|
3674
|
+
var fails$9 = fails$v;
|
|
3675
|
+
var anObject$2 = anObject$i;
|
|
3578
3676
|
var isCallable$1 = isCallable$k;
|
|
3579
3677
|
var isNullOrUndefined = isNullOrUndefined$6;
|
|
3580
|
-
var toIntegerOrInfinity$
|
|
3678
|
+
var toIntegerOrInfinity$4 = toIntegerOrInfinity$a;
|
|
3581
3679
|
var toLength$1 = toLength$6;
|
|
3582
|
-
var toString = toString$
|
|
3680
|
+
var toString$2 = toString$9;
|
|
3583
3681
|
var requireObjectCoercible = requireObjectCoercible$6;
|
|
3584
3682
|
var advanceStringIndex = advanceStringIndex$1;
|
|
3585
3683
|
var getMethod = getMethod$5;
|
|
@@ -3589,11 +3687,11 @@ var wellKnownSymbol$4 = wellKnownSymbol$l;
|
|
|
3589
3687
|
|
|
3590
3688
|
var REPLACE = wellKnownSymbol$4('replace');
|
|
3591
3689
|
var max = Math.max;
|
|
3592
|
-
var min = Math.min;
|
|
3593
|
-
var concat = uncurryThis$
|
|
3594
|
-
var push$1 = uncurryThis$
|
|
3595
|
-
var stringIndexOf = uncurryThis$
|
|
3596
|
-
var stringSlice = uncurryThis$
|
|
3690
|
+
var min$1 = Math.min;
|
|
3691
|
+
var concat = uncurryThis$8([].concat);
|
|
3692
|
+
var push$1 = uncurryThis$8([].push);
|
|
3693
|
+
var stringIndexOf = uncurryThis$8(''.indexOf);
|
|
3694
|
+
var stringSlice = uncurryThis$8(''.slice);
|
|
3597
3695
|
|
|
3598
3696
|
var maybeToString = function (it) {
|
|
3599
3697
|
return it === undefined ? it : String(it);
|
|
@@ -3614,7 +3712,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
|
3614
3712
|
return false;
|
|
3615
3713
|
})();
|
|
3616
3714
|
|
|
3617
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$
|
|
3715
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$9(function () {
|
|
3618
3716
|
var re = /./;
|
|
3619
3717
|
re.exec = function () {
|
|
3620
3718
|
var result = [];
|
|
@@ -3636,14 +3734,14 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
3636
3734
|
var O = requireObjectCoercible(this);
|
|
3637
3735
|
var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
|
|
3638
3736
|
return replacer
|
|
3639
|
-
? call$
|
|
3640
|
-
: call$
|
|
3737
|
+
? call$5(replacer, searchValue, O, replaceValue)
|
|
3738
|
+
: call$5(nativeReplace, toString$2(O), searchValue, replaceValue);
|
|
3641
3739
|
},
|
|
3642
3740
|
// `RegExp.prototype[@@replace]` method
|
|
3643
3741
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
3644
3742
|
function (string, replaceValue) {
|
|
3645
|
-
var rx = anObject(this);
|
|
3646
|
-
var S = toString(string);
|
|
3743
|
+
var rx = anObject$2(this);
|
|
3744
|
+
var S = toString$2(string);
|
|
3647
3745
|
|
|
3648
3746
|
if (
|
|
3649
3747
|
typeof replaceValue == 'string' &&
|
|
@@ -3655,7 +3753,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
3655
3753
|
}
|
|
3656
3754
|
|
|
3657
3755
|
var functionalReplace = isCallable$1(replaceValue);
|
|
3658
|
-
if (!functionalReplace) replaceValue = toString(replaceValue);
|
|
3756
|
+
if (!functionalReplace) replaceValue = toString$2(replaceValue);
|
|
3659
3757
|
|
|
3660
3758
|
var global = rx.global;
|
|
3661
3759
|
var fullUnicode;
|
|
@@ -3673,7 +3771,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
3673
3771
|
push$1(results, result);
|
|
3674
3772
|
if (!global) break;
|
|
3675
3773
|
|
|
3676
|
-
var matchStr = toString(result[0]);
|
|
3774
|
+
var matchStr = toString$2(result[0]);
|
|
3677
3775
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength$1(rx.lastIndex), fullUnicode);
|
|
3678
3776
|
}
|
|
3679
3777
|
|
|
@@ -3682,8 +3780,8 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
3682
3780
|
for (var i = 0; i < results.length; i++) {
|
|
3683
3781
|
result = results[i];
|
|
3684
3782
|
|
|
3685
|
-
var matched = toString(result[0]);
|
|
3686
|
-
var position = max(min(toIntegerOrInfinity$
|
|
3783
|
+
var matched = toString$2(result[0]);
|
|
3784
|
+
var position = max(min$1(toIntegerOrInfinity$4(result.index), S.length), 0);
|
|
3687
3785
|
var captures = [];
|
|
3688
3786
|
var replacement;
|
|
3689
3787
|
// NOTE: This is equivalent to
|
|
@@ -3696,7 +3794,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
|
|
|
3696
3794
|
if (functionalReplace) {
|
|
3697
3795
|
var replacerArgs = concat([matched], captures, position, S);
|
|
3698
3796
|
if (namedCaptures !== undefined) push$1(replacerArgs, namedCaptures);
|
|
3699
|
-
replacement = toString(apply$1(replaceValue, undefined, replacerArgs));
|
|
3797
|
+
replacement = toString$2(apply$1(replaceValue, undefined, replacerArgs));
|
|
3700
3798
|
} else {
|
|
3701
3799
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
3702
3800
|
}
|
|
@@ -3755,39 +3853,39 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
|
3755
3853
|
};
|
|
3756
3854
|
|
|
3757
3855
|
var NATIVE_ARRAY_BUFFER = arrayBufferBasicDetection;
|
|
3758
|
-
var DESCRIPTORS$
|
|
3759
|
-
var global$
|
|
3856
|
+
var DESCRIPTORS$6 = descriptors;
|
|
3857
|
+
var global$c = global$u;
|
|
3760
3858
|
var isCallable = isCallable$k;
|
|
3761
3859
|
var isObject$3 = isObject$e;
|
|
3762
|
-
var hasOwn$
|
|
3763
|
-
var classof$
|
|
3860
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
3861
|
+
var classof$6 = classof$d;
|
|
3764
3862
|
var tryToString = tryToString$5;
|
|
3765
3863
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
3766
|
-
var defineBuiltIn = defineBuiltIn$
|
|
3767
|
-
var defineBuiltInAccessor$
|
|
3864
|
+
var defineBuiltIn$1 = defineBuiltIn$b;
|
|
3865
|
+
var defineBuiltInAccessor$4 = defineBuiltInAccessor$8;
|
|
3768
3866
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
3769
3867
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
3770
3868
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
3771
3869
|
var wellKnownSymbol$2 = wellKnownSymbol$l;
|
|
3772
3870
|
var uid = uid$3;
|
|
3773
|
-
var InternalStateModule$
|
|
3871
|
+
var InternalStateModule$2 = internalState;
|
|
3774
3872
|
|
|
3775
|
-
var enforceInternalState$1 = InternalStateModule$
|
|
3776
|
-
var getInternalState$
|
|
3777
|
-
var Int8Array$4 = global$
|
|
3873
|
+
var enforceInternalState$1 = InternalStateModule$2.enforce;
|
|
3874
|
+
var getInternalState$2 = InternalStateModule$2.get;
|
|
3875
|
+
var Int8Array$4 = global$c.Int8Array;
|
|
3778
3876
|
var Int8ArrayPrototype$1 = Int8Array$4 && Int8Array$4.prototype;
|
|
3779
|
-
var Uint8ClampedArray$1 = global$
|
|
3877
|
+
var Uint8ClampedArray$1 = global$c.Uint8ClampedArray;
|
|
3780
3878
|
var Uint8ClampedArrayPrototype = Uint8ClampedArray$1 && Uint8ClampedArray$1.prototype;
|
|
3781
3879
|
var TypedArray$1 = Int8Array$4 && getPrototypeOf(Int8Array$4);
|
|
3782
3880
|
var TypedArrayPrototype$1 = Int8ArrayPrototype$1 && getPrototypeOf(Int8ArrayPrototype$1);
|
|
3783
3881
|
var ObjectPrototype = Object.prototype;
|
|
3784
|
-
var TypeError$
|
|
3882
|
+
var TypeError$2 = global$c.TypeError;
|
|
3785
3883
|
|
|
3786
3884
|
var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
|
|
3787
3885
|
var TYPED_ARRAY_TAG$1 = uid('TYPED_ARRAY_TAG');
|
|
3788
3886
|
var TYPED_ARRAY_CONSTRUCTOR = 'TypedArrayConstructor';
|
|
3789
3887
|
// Fixing native typed arrays in Opera Presto crashes the browser, see #595
|
|
3790
|
-
var NATIVE_ARRAY_BUFFER_VIEWS$2 = NATIVE_ARRAY_BUFFER && !!setPrototypeOf$1 && classof$
|
|
3888
|
+
var NATIVE_ARRAY_BUFFER_VIEWS$2 = NATIVE_ARRAY_BUFFER && !!setPrototypeOf$1 && classof$6(global$c.opera) !== 'Opera';
|
|
3791
3889
|
var TYPED_ARRAY_TAG_REQUIRED = false;
|
|
3792
3890
|
var NAME, Constructor, Prototype;
|
|
3793
3891
|
|
|
@@ -3810,41 +3908,41 @@ var BigIntArrayConstructorsList = {
|
|
|
3810
3908
|
|
|
3811
3909
|
var isView = function isView(it) {
|
|
3812
3910
|
if (!isObject$3(it)) return false;
|
|
3813
|
-
var klass = classof$
|
|
3911
|
+
var klass = classof$6(it);
|
|
3814
3912
|
return klass === 'DataView'
|
|
3815
|
-
|| hasOwn$
|
|
3816
|
-
|| hasOwn$
|
|
3913
|
+
|| hasOwn$3(TypedArrayConstructorsList, klass)
|
|
3914
|
+
|| hasOwn$3(BigIntArrayConstructorsList, klass);
|
|
3817
3915
|
};
|
|
3818
3916
|
|
|
3819
|
-
var getTypedArrayConstructor = function (it) {
|
|
3917
|
+
var getTypedArrayConstructor$3 = function (it) {
|
|
3820
3918
|
var proto = getPrototypeOf(it);
|
|
3821
3919
|
if (!isObject$3(proto)) return;
|
|
3822
|
-
var state = getInternalState$
|
|
3823
|
-
return (state && hasOwn$
|
|
3920
|
+
var state = getInternalState$2(proto);
|
|
3921
|
+
return (state && hasOwn$3(state, TYPED_ARRAY_CONSTRUCTOR)) ? state[TYPED_ARRAY_CONSTRUCTOR] : getTypedArrayConstructor$3(proto);
|
|
3824
3922
|
};
|
|
3825
3923
|
|
|
3826
3924
|
var isTypedArray$1 = function (it) {
|
|
3827
3925
|
if (!isObject$3(it)) return false;
|
|
3828
|
-
var klass = classof$
|
|
3829
|
-
return hasOwn$
|
|
3830
|
-
|| hasOwn$
|
|
3926
|
+
var klass = classof$6(it);
|
|
3927
|
+
return hasOwn$3(TypedArrayConstructorsList, klass)
|
|
3928
|
+
|| hasOwn$3(BigIntArrayConstructorsList, klass);
|
|
3831
3929
|
};
|
|
3832
3930
|
|
|
3833
|
-
var aTypedArray$
|
|
3931
|
+
var aTypedArray$a = function (it) {
|
|
3834
3932
|
if (isTypedArray$1(it)) return it;
|
|
3835
|
-
throw new TypeError$
|
|
3933
|
+
throw new TypeError$2('Target is not a typed array');
|
|
3836
3934
|
};
|
|
3837
3935
|
|
|
3838
3936
|
var aTypedArrayConstructor$1 = function (C) {
|
|
3839
3937
|
if (isCallable(C) && (!setPrototypeOf$1 || isPrototypeOf$1(TypedArray$1, C))) return C;
|
|
3840
|
-
throw new TypeError$
|
|
3938
|
+
throw new TypeError$2(tryToString(C) + ' is not a typed array constructor');
|
|
3841
3939
|
};
|
|
3842
3940
|
|
|
3843
|
-
var exportTypedArrayMethod$
|
|
3844
|
-
if (!DESCRIPTORS$
|
|
3941
|
+
var exportTypedArrayMethod$a = function (KEY, property, forced, options) {
|
|
3942
|
+
if (!DESCRIPTORS$6) return;
|
|
3845
3943
|
if (forced) for (var ARRAY in TypedArrayConstructorsList) {
|
|
3846
|
-
var TypedArrayConstructor = global$
|
|
3847
|
-
if (TypedArrayConstructor && hasOwn$
|
|
3944
|
+
var TypedArrayConstructor = global$c[ARRAY];
|
|
3945
|
+
if (TypedArrayConstructor && hasOwn$3(TypedArrayConstructor.prototype, KEY)) try {
|
|
3848
3946
|
delete TypedArrayConstructor.prototype[KEY];
|
|
3849
3947
|
} catch (error) {
|
|
3850
3948
|
// old WebKit bug - some methods are non-configurable
|
|
@@ -3854,45 +3952,45 @@ var exportTypedArrayMethod$4 = function (KEY, property, forced, options) {
|
|
|
3854
3952
|
}
|
|
3855
3953
|
}
|
|
3856
3954
|
if (!TypedArrayPrototype$1[KEY] || forced) {
|
|
3857
|
-
defineBuiltIn(TypedArrayPrototype$1, KEY, forced ? property
|
|
3955
|
+
defineBuiltIn$1(TypedArrayPrototype$1, KEY, forced ? property
|
|
3858
3956
|
: NATIVE_ARRAY_BUFFER_VIEWS$2 && Int8ArrayPrototype$1[KEY] || property, options);
|
|
3859
3957
|
}
|
|
3860
3958
|
};
|
|
3861
3959
|
|
|
3862
3960
|
var exportTypedArrayStaticMethod = function (KEY, property, forced) {
|
|
3863
3961
|
var ARRAY, TypedArrayConstructor;
|
|
3864
|
-
if (!DESCRIPTORS$
|
|
3962
|
+
if (!DESCRIPTORS$6) return;
|
|
3865
3963
|
if (setPrototypeOf$1) {
|
|
3866
3964
|
if (forced) for (ARRAY in TypedArrayConstructorsList) {
|
|
3867
|
-
TypedArrayConstructor = global$
|
|
3868
|
-
if (TypedArrayConstructor && hasOwn$
|
|
3965
|
+
TypedArrayConstructor = global$c[ARRAY];
|
|
3966
|
+
if (TypedArrayConstructor && hasOwn$3(TypedArrayConstructor, KEY)) try {
|
|
3869
3967
|
delete TypedArrayConstructor[KEY];
|
|
3870
3968
|
} catch (error) { /* empty */ }
|
|
3871
3969
|
}
|
|
3872
3970
|
if (!TypedArray$1[KEY] || forced) {
|
|
3873
3971
|
// V8 ~ Chrome 49-50 `%TypedArray%` methods are non-writable non-configurable
|
|
3874
3972
|
try {
|
|
3875
|
-
return defineBuiltIn(TypedArray$1, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS$2 && TypedArray$1[KEY] || property);
|
|
3973
|
+
return defineBuiltIn$1(TypedArray$1, KEY, forced ? property : NATIVE_ARRAY_BUFFER_VIEWS$2 && TypedArray$1[KEY] || property);
|
|
3876
3974
|
} catch (error) { /* empty */ }
|
|
3877
3975
|
} else return;
|
|
3878
3976
|
}
|
|
3879
3977
|
for (ARRAY in TypedArrayConstructorsList) {
|
|
3880
|
-
TypedArrayConstructor = global$
|
|
3978
|
+
TypedArrayConstructor = global$c[ARRAY];
|
|
3881
3979
|
if (TypedArrayConstructor && (!TypedArrayConstructor[KEY] || forced)) {
|
|
3882
|
-
defineBuiltIn(TypedArrayConstructor, KEY, property);
|
|
3980
|
+
defineBuiltIn$1(TypedArrayConstructor, KEY, property);
|
|
3883
3981
|
}
|
|
3884
3982
|
}
|
|
3885
3983
|
};
|
|
3886
3984
|
|
|
3887
3985
|
for (NAME in TypedArrayConstructorsList) {
|
|
3888
|
-
Constructor = global$
|
|
3986
|
+
Constructor = global$c[NAME];
|
|
3889
3987
|
Prototype = Constructor && Constructor.prototype;
|
|
3890
3988
|
if (Prototype) enforceInternalState$1(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
|
|
3891
3989
|
else NATIVE_ARRAY_BUFFER_VIEWS$2 = false;
|
|
3892
3990
|
}
|
|
3893
3991
|
|
|
3894
3992
|
for (NAME in BigIntArrayConstructorsList) {
|
|
3895
|
-
Constructor = global$
|
|
3993
|
+
Constructor = global$c[NAME];
|
|
3896
3994
|
Prototype = Constructor && Constructor.prototype;
|
|
3897
3995
|
if (Prototype) enforceInternalState$1(Prototype)[TYPED_ARRAY_CONSTRUCTOR] = Constructor;
|
|
3898
3996
|
}
|
|
@@ -3901,17 +3999,17 @@ for (NAME in BigIntArrayConstructorsList) {
|
|
|
3901
3999
|
if (!NATIVE_ARRAY_BUFFER_VIEWS$2 || !isCallable(TypedArray$1) || TypedArray$1 === Function.prototype) {
|
|
3902
4000
|
// eslint-disable-next-line no-shadow -- safe
|
|
3903
4001
|
TypedArray$1 = function TypedArray() {
|
|
3904
|
-
throw new TypeError$
|
|
4002
|
+
throw new TypeError$2('Incorrect invocation');
|
|
3905
4003
|
};
|
|
3906
4004
|
if (NATIVE_ARRAY_BUFFER_VIEWS$2) for (NAME in TypedArrayConstructorsList) {
|
|
3907
|
-
if (global$
|
|
4005
|
+
if (global$c[NAME]) setPrototypeOf$1(global$c[NAME], TypedArray$1);
|
|
3908
4006
|
}
|
|
3909
4007
|
}
|
|
3910
4008
|
|
|
3911
4009
|
if (!NATIVE_ARRAY_BUFFER_VIEWS$2 || !TypedArrayPrototype$1 || TypedArrayPrototype$1 === ObjectPrototype) {
|
|
3912
4010
|
TypedArrayPrototype$1 = TypedArray$1.prototype;
|
|
3913
4011
|
if (NATIVE_ARRAY_BUFFER_VIEWS$2) for (NAME in TypedArrayConstructorsList) {
|
|
3914
|
-
if (global$
|
|
4012
|
+
if (global$c[NAME]) setPrototypeOf$1(global$c[NAME].prototype, TypedArrayPrototype$1);
|
|
3915
4013
|
}
|
|
3916
4014
|
}
|
|
3917
4015
|
|
|
@@ -3920,27 +4018,27 @@ if (NATIVE_ARRAY_BUFFER_VIEWS$2 && getPrototypeOf(Uint8ClampedArrayPrototype) !=
|
|
|
3920
4018
|
setPrototypeOf$1(Uint8ClampedArrayPrototype, TypedArrayPrototype$1);
|
|
3921
4019
|
}
|
|
3922
4020
|
|
|
3923
|
-
if (DESCRIPTORS$
|
|
4021
|
+
if (DESCRIPTORS$6 && !hasOwn$3(TypedArrayPrototype$1, TO_STRING_TAG)) {
|
|
3924
4022
|
TYPED_ARRAY_TAG_REQUIRED = true;
|
|
3925
|
-
defineBuiltInAccessor$
|
|
4023
|
+
defineBuiltInAccessor$4(TypedArrayPrototype$1, TO_STRING_TAG, {
|
|
3926
4024
|
configurable: true,
|
|
3927
4025
|
get: function () {
|
|
3928
4026
|
return isObject$3(this) ? this[TYPED_ARRAY_TAG$1] : undefined;
|
|
3929
4027
|
}
|
|
3930
4028
|
});
|
|
3931
|
-
for (NAME in TypedArrayConstructorsList) if (global$
|
|
3932
|
-
createNonEnumerableProperty$1(global$
|
|
4029
|
+
for (NAME in TypedArrayConstructorsList) if (global$c[NAME]) {
|
|
4030
|
+
createNonEnumerableProperty$1(global$c[NAME], TYPED_ARRAY_TAG$1, NAME);
|
|
3933
4031
|
}
|
|
3934
4032
|
}
|
|
3935
4033
|
|
|
3936
4034
|
var arrayBufferViewCore = {
|
|
3937
4035
|
NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS$2,
|
|
3938
4036
|
TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG$1,
|
|
3939
|
-
aTypedArray: aTypedArray$
|
|
4037
|
+
aTypedArray: aTypedArray$a,
|
|
3940
4038
|
aTypedArrayConstructor: aTypedArrayConstructor$1,
|
|
3941
|
-
exportTypedArrayMethod: exportTypedArrayMethod$
|
|
4039
|
+
exportTypedArrayMethod: exportTypedArrayMethod$a,
|
|
3942
4040
|
exportTypedArrayStaticMethod: exportTypedArrayStaticMethod,
|
|
3943
|
-
getTypedArrayConstructor: getTypedArrayConstructor,
|
|
4041
|
+
getTypedArrayConstructor: getTypedArrayConstructor$3,
|
|
3944
4042
|
isView: isView,
|
|
3945
4043
|
isTypedArray: isTypedArray$1,
|
|
3946
4044
|
TypedArray: TypedArray$1,
|
|
@@ -3948,26 +4046,26 @@ var arrayBufferViewCore = {
|
|
|
3948
4046
|
};
|
|
3949
4047
|
|
|
3950
4048
|
/* eslint-disable no-new -- required for testing */
|
|
3951
|
-
var global$
|
|
3952
|
-
var fails$
|
|
4049
|
+
var global$b = global$u;
|
|
4050
|
+
var fails$8 = fails$v;
|
|
3953
4051
|
var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
|
|
3954
4052
|
var NATIVE_ARRAY_BUFFER_VIEWS$1 = arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
|
|
3955
4053
|
|
|
3956
|
-
var ArrayBuffer$
|
|
3957
|
-
var Int8Array$3 = global$
|
|
4054
|
+
var ArrayBuffer$3 = global$b.ArrayBuffer;
|
|
4055
|
+
var Int8Array$3 = global$b.Int8Array;
|
|
3958
4056
|
|
|
3959
|
-
var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fails$
|
|
4057
|
+
var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS$1 || !fails$8(function () {
|
|
3960
4058
|
Int8Array$3(1);
|
|
3961
|
-
}) || !fails$
|
|
4059
|
+
}) || !fails$8(function () {
|
|
3962
4060
|
new Int8Array$3(-1);
|
|
3963
4061
|
}) || !checkCorrectnessOfIteration(function (iterable) {
|
|
3964
4062
|
new Int8Array$3();
|
|
3965
4063
|
new Int8Array$3(null);
|
|
3966
4064
|
new Int8Array$3(1.5);
|
|
3967
4065
|
new Int8Array$3(iterable);
|
|
3968
|
-
}, true) || fails$
|
|
4066
|
+
}, true) || fails$8(function () {
|
|
3969
4067
|
// Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill
|
|
3970
|
-
return new Int8Array$3(new ArrayBuffer$
|
|
4068
|
+
return new Int8Array$3(new ArrayBuffer$3(2), 1, undefined).length !== 1;
|
|
3971
4069
|
});
|
|
3972
4070
|
|
|
3973
4071
|
var isObject$2 = isObject$e;
|
|
@@ -3981,23 +4079,23 @@ var isIntegralNumber$1 = Number.isInteger || function isInteger(it) {
|
|
|
3981
4079
|
return !isObject$2(it) && isFinite(it) && floor(it) === it;
|
|
3982
4080
|
};
|
|
3983
4081
|
|
|
3984
|
-
var toIntegerOrInfinity = toIntegerOrInfinity$
|
|
4082
|
+
var toIntegerOrInfinity$3 = toIntegerOrInfinity$a;
|
|
3985
4083
|
|
|
3986
|
-
var $RangeError$
|
|
4084
|
+
var $RangeError$2 = RangeError;
|
|
3987
4085
|
|
|
3988
4086
|
var toPositiveInteger$1 = function (it) {
|
|
3989
|
-
var result = toIntegerOrInfinity(it);
|
|
3990
|
-
if (result < 0) throw new $RangeError$
|
|
4087
|
+
var result = toIntegerOrInfinity$3(it);
|
|
4088
|
+
if (result < 0) throw new $RangeError$2("The argument can't be less than 0");
|
|
3991
4089
|
return result;
|
|
3992
4090
|
};
|
|
3993
4091
|
|
|
3994
4092
|
var toPositiveInteger = toPositiveInteger$1;
|
|
3995
4093
|
|
|
3996
|
-
var $RangeError = RangeError;
|
|
4094
|
+
var $RangeError$1 = RangeError;
|
|
3997
4095
|
|
|
3998
4096
|
var toOffset$2 = function (it, BYTES) {
|
|
3999
4097
|
var offset = toPositiveInteger(it);
|
|
4000
|
-
if (offset % BYTES) throw new $RangeError('Wrong offset');
|
|
4098
|
+
if (offset % BYTES) throw new $RangeError$1('Wrong offset');
|
|
4001
4099
|
return offset;
|
|
4002
4100
|
};
|
|
4003
4101
|
|
|
@@ -4008,41 +4106,41 @@ var toUint8Clamped$1 = function (it) {
|
|
|
4008
4106
|
return value < 0 ? 0 : value > 0xFF ? 0xFF : value & 0xFF;
|
|
4009
4107
|
};
|
|
4010
4108
|
|
|
4011
|
-
var classof$
|
|
4109
|
+
var classof$5 = classof$d;
|
|
4012
4110
|
|
|
4013
|
-
var isBigIntArray$
|
|
4014
|
-
var klass = classof$
|
|
4111
|
+
var isBigIntArray$2 = function (it) {
|
|
4112
|
+
var klass = classof$5(it);
|
|
4015
4113
|
return klass === 'BigInt64Array' || klass === 'BigUint64Array';
|
|
4016
4114
|
};
|
|
4017
4115
|
|
|
4018
4116
|
var toPrimitive = toPrimitive$2;
|
|
4019
4117
|
|
|
4020
|
-
var $TypeError = TypeError;
|
|
4118
|
+
var $TypeError$1 = TypeError;
|
|
4021
4119
|
|
|
4022
4120
|
// `ToBigInt` abstract operation
|
|
4023
4121
|
// https://tc39.es/ecma262/#sec-tobigint
|
|
4024
|
-
var toBigInt$
|
|
4122
|
+
var toBigInt$3 = function (argument) {
|
|
4025
4123
|
var prim = toPrimitive(argument, 'number');
|
|
4026
|
-
if (typeof prim == 'number') throw new $TypeError("Can't convert number to bigint");
|
|
4124
|
+
if (typeof prim == 'number') throw new $TypeError$1("Can't convert number to bigint");
|
|
4027
4125
|
// eslint-disable-next-line es/no-bigint -- safe
|
|
4028
4126
|
return BigInt(prim);
|
|
4029
4127
|
};
|
|
4030
4128
|
|
|
4031
|
-
var bind$
|
|
4032
|
-
var call$
|
|
4129
|
+
var bind$2 = functionBindContext;
|
|
4130
|
+
var call$4 = functionCall;
|
|
4033
4131
|
var aConstructor = aConstructor$2;
|
|
4034
|
-
var toObject$
|
|
4035
|
-
var lengthOfArrayLike$
|
|
4132
|
+
var toObject$2 = toObject$8;
|
|
4133
|
+
var lengthOfArrayLike$7 = lengthOfArrayLike$b;
|
|
4036
4134
|
var getIterator = getIterator$3;
|
|
4037
4135
|
var getIteratorMethod = getIteratorMethod$4;
|
|
4038
4136
|
var isArrayIteratorMethod = isArrayIteratorMethod$2;
|
|
4039
|
-
var isBigIntArray = isBigIntArray$
|
|
4137
|
+
var isBigIntArray$1 = isBigIntArray$2;
|
|
4040
4138
|
var aTypedArrayConstructor = arrayBufferViewCore.aTypedArrayConstructor;
|
|
4041
|
-
var toBigInt$
|
|
4139
|
+
var toBigInt$2 = toBigInt$3;
|
|
4042
4140
|
|
|
4043
4141
|
var typedArrayFrom$1 = function from(source /* , mapfn, thisArg */) {
|
|
4044
4142
|
var C = aConstructor(this);
|
|
4045
|
-
var O = toObject$
|
|
4143
|
+
var O = toObject$2(source);
|
|
4046
4144
|
var argumentsLength = arguments.length;
|
|
4047
4145
|
var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
|
|
4048
4146
|
var mapping = mapfn !== undefined;
|
|
@@ -4052,31 +4150,31 @@ var typedArrayFrom$1 = function from(source /* , mapfn, thisArg */) {
|
|
|
4052
4150
|
iterator = getIterator(O, iteratorMethod);
|
|
4053
4151
|
next = iterator.next;
|
|
4054
4152
|
O = [];
|
|
4055
|
-
while (!(step = call$
|
|
4153
|
+
while (!(step = call$4(next, iterator)).done) {
|
|
4056
4154
|
O.push(step.value);
|
|
4057
4155
|
}
|
|
4058
4156
|
}
|
|
4059
4157
|
if (mapping && argumentsLength > 2) {
|
|
4060
|
-
mapfn = bind$
|
|
4158
|
+
mapfn = bind$2(mapfn, arguments[2]);
|
|
4061
4159
|
}
|
|
4062
|
-
length = lengthOfArrayLike$
|
|
4160
|
+
length = lengthOfArrayLike$7(O);
|
|
4063
4161
|
result = new (aTypedArrayConstructor(C))(length);
|
|
4064
|
-
thisIsBigIntArray = isBigIntArray(result);
|
|
4162
|
+
thisIsBigIntArray = isBigIntArray$1(result);
|
|
4065
4163
|
for (i = 0; length > i; i++) {
|
|
4066
4164
|
value = mapping ? mapfn(O[i], i) : O[i];
|
|
4067
4165
|
// FF30- typed arrays doesn't properly convert objects to typed array values
|
|
4068
|
-
result[i] = thisIsBigIntArray ? toBigInt$
|
|
4166
|
+
result[i] = thisIsBigIntArray ? toBigInt$2(value) : +value;
|
|
4069
4167
|
}
|
|
4070
4168
|
return result;
|
|
4071
4169
|
};
|
|
4072
4170
|
|
|
4073
|
-
var classof$
|
|
4171
|
+
var classof$4 = classofRaw$2;
|
|
4074
4172
|
|
|
4075
4173
|
// `IsArray` abstract operation
|
|
4076
4174
|
// https://tc39.es/ecma262/#sec-isarray
|
|
4077
4175
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
4078
4176
|
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
4079
|
-
return classof$
|
|
4177
|
+
return classof$4(argument) === 'Array';
|
|
4080
4178
|
};
|
|
4081
4179
|
|
|
4082
4180
|
var isArray = isArray$1;
|
|
@@ -4110,17 +4208,17 @@ var arraySpeciesCreate$1 = function (originalArray, length) {
|
|
|
4110
4208
|
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
|
4111
4209
|
};
|
|
4112
4210
|
|
|
4113
|
-
var bind = functionBindContext;
|
|
4114
|
-
var uncurryThis$
|
|
4115
|
-
var IndexedObject = indexedObject;
|
|
4116
|
-
var toObject = toObject$
|
|
4117
|
-
var lengthOfArrayLike$
|
|
4211
|
+
var bind$1 = functionBindContext;
|
|
4212
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
4213
|
+
var IndexedObject$1 = indexedObject;
|
|
4214
|
+
var toObject$1 = toObject$8;
|
|
4215
|
+
var lengthOfArrayLike$6 = lengthOfArrayLike$b;
|
|
4118
4216
|
var arraySpeciesCreate = arraySpeciesCreate$1;
|
|
4119
4217
|
|
|
4120
|
-
var push = uncurryThis$
|
|
4218
|
+
var push = uncurryThis$7([].push);
|
|
4121
4219
|
|
|
4122
4220
|
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
|
4123
|
-
var createMethod = function (TYPE) {
|
|
4221
|
+
var createMethod$1 = function (TYPE) {
|
|
4124
4222
|
var IS_MAP = TYPE === 1;
|
|
4125
4223
|
var IS_FILTER = TYPE === 2;
|
|
4126
4224
|
var IS_SOME = TYPE === 3;
|
|
@@ -4129,10 +4227,10 @@ var createMethod = function (TYPE) {
|
|
|
4129
4227
|
var IS_FILTER_REJECT = TYPE === 7;
|
|
4130
4228
|
var NO_HOLES = TYPE === 5 || IS_FIND_INDEX;
|
|
4131
4229
|
return function ($this, callbackfn, that, specificCreate) {
|
|
4132
|
-
var O = toObject($this);
|
|
4133
|
-
var self = IndexedObject(O);
|
|
4134
|
-
var length = lengthOfArrayLike$
|
|
4135
|
-
var boundFunction = bind(callbackfn, that);
|
|
4230
|
+
var O = toObject$1($this);
|
|
4231
|
+
var self = IndexedObject$1(O);
|
|
4232
|
+
var length = lengthOfArrayLike$6(self);
|
|
4233
|
+
var boundFunction = bind$1(callbackfn, that);
|
|
4136
4234
|
var index = 0;
|
|
4137
4235
|
var create = specificCreate || arraySpeciesCreate;
|
|
4138
4236
|
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
|
@@ -4160,121 +4258,121 @@ var createMethod = function (TYPE) {
|
|
|
4160
4258
|
var arrayIteration = {
|
|
4161
4259
|
// `Array.prototype.forEach` method
|
|
4162
4260
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
|
4163
|
-
forEach: createMethod(0),
|
|
4261
|
+
forEach: createMethod$1(0),
|
|
4164
4262
|
// `Array.prototype.map` method
|
|
4165
4263
|
// https://tc39.es/ecma262/#sec-array.prototype.map
|
|
4166
|
-
map: createMethod(1),
|
|
4264
|
+
map: createMethod$1(1),
|
|
4167
4265
|
// `Array.prototype.filter` method
|
|
4168
4266
|
// https://tc39.es/ecma262/#sec-array.prototype.filter
|
|
4169
|
-
filter: createMethod(2),
|
|
4267
|
+
filter: createMethod$1(2),
|
|
4170
4268
|
// `Array.prototype.some` method
|
|
4171
4269
|
// https://tc39.es/ecma262/#sec-array.prototype.some
|
|
4172
|
-
some: createMethod(3),
|
|
4270
|
+
some: createMethod$1(3),
|
|
4173
4271
|
// `Array.prototype.every` method
|
|
4174
4272
|
// https://tc39.es/ecma262/#sec-array.prototype.every
|
|
4175
|
-
every: createMethod(4),
|
|
4273
|
+
every: createMethod$1(4),
|
|
4176
4274
|
// `Array.prototype.find` method
|
|
4177
4275
|
// https://tc39.es/ecma262/#sec-array.prototype.find
|
|
4178
|
-
find: createMethod(5),
|
|
4276
|
+
find: createMethod$1(5),
|
|
4179
4277
|
// `Array.prototype.findIndex` method
|
|
4180
4278
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
|
4181
|
-
findIndex: createMethod(6),
|
|
4279
|
+
findIndex: createMethod$1(6),
|
|
4182
4280
|
// `Array.prototype.filterReject` method
|
|
4183
4281
|
// https://github.com/tc39/proposal-array-filtering
|
|
4184
|
-
filterReject: createMethod(7)
|
|
4282
|
+
filterReject: createMethod$1(7)
|
|
4185
4283
|
};
|
|
4186
4284
|
|
|
4187
|
-
var getBuiltIn = getBuiltIn$
|
|
4188
|
-
var defineBuiltInAccessor$
|
|
4285
|
+
var getBuiltIn$4 = getBuiltIn$9;
|
|
4286
|
+
var defineBuiltInAccessor$3 = defineBuiltInAccessor$8;
|
|
4189
4287
|
var wellKnownSymbol = wellKnownSymbol$l;
|
|
4190
|
-
var DESCRIPTORS$
|
|
4288
|
+
var DESCRIPTORS$5 = descriptors;
|
|
4191
4289
|
|
|
4192
4290
|
var SPECIES = wellKnownSymbol('species');
|
|
4193
4291
|
|
|
4194
4292
|
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
4195
|
-
var Constructor = getBuiltIn(CONSTRUCTOR_NAME);
|
|
4293
|
+
var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
|
|
4196
4294
|
|
|
4197
|
-
if (DESCRIPTORS$
|
|
4198
|
-
defineBuiltInAccessor$
|
|
4295
|
+
if (DESCRIPTORS$5 && Constructor && !Constructor[SPECIES]) {
|
|
4296
|
+
defineBuiltInAccessor$3(Constructor, SPECIES, {
|
|
4199
4297
|
configurable: true,
|
|
4200
4298
|
get: function () { return this; }
|
|
4201
4299
|
});
|
|
4202
4300
|
}
|
|
4203
4301
|
};
|
|
4204
4302
|
|
|
4205
|
-
var lengthOfArrayLike$
|
|
4303
|
+
var lengthOfArrayLike$5 = lengthOfArrayLike$b;
|
|
4206
4304
|
|
|
4207
|
-
var arrayFromConstructorAndList$
|
|
4305
|
+
var arrayFromConstructorAndList$2 = function (Constructor, list, $length) {
|
|
4208
4306
|
var index = 0;
|
|
4209
|
-
var length = arguments.length > 2 ? $length : lengthOfArrayLike$
|
|
4307
|
+
var length = arguments.length > 2 ? $length : lengthOfArrayLike$5(list);
|
|
4210
4308
|
var result = new Constructor(length);
|
|
4211
4309
|
while (length > index) result[index] = list[index++];
|
|
4212
4310
|
return result;
|
|
4213
4311
|
};
|
|
4214
4312
|
|
|
4215
|
-
var
|
|
4216
|
-
var global$
|
|
4217
|
-
var call$
|
|
4218
|
-
var DESCRIPTORS = descriptors;
|
|
4313
|
+
var $$5 = _export;
|
|
4314
|
+
var global$a = global$u;
|
|
4315
|
+
var call$3 = functionCall;
|
|
4316
|
+
var DESCRIPTORS$4 = descriptors;
|
|
4219
4317
|
var TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS = typedArrayConstructorsRequireWrappers;
|
|
4220
|
-
var ArrayBufferViewCore$
|
|
4318
|
+
var ArrayBufferViewCore$a = arrayBufferViewCore;
|
|
4221
4319
|
var ArrayBufferModule = arrayBuffer;
|
|
4222
|
-
var anInstance = anInstance$
|
|
4223
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
4320
|
+
var anInstance$2 = anInstance$5;
|
|
4321
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$8;
|
|
4224
4322
|
var createNonEnumerableProperty = createNonEnumerableProperty$8;
|
|
4225
4323
|
var isIntegralNumber = isIntegralNumber$1;
|
|
4226
4324
|
var toLength = toLength$6;
|
|
4227
|
-
var toIndex = toIndex$
|
|
4325
|
+
var toIndex$1 = toIndex$3;
|
|
4228
4326
|
var toOffset$1 = toOffset$2;
|
|
4229
4327
|
var toUint8Clamped = toUint8Clamped$1;
|
|
4230
4328
|
var toPropertyKey = toPropertyKey$4;
|
|
4231
|
-
var hasOwn = hasOwnProperty_1;
|
|
4232
|
-
var classof$
|
|
4329
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
4330
|
+
var classof$3 = classof$d;
|
|
4233
4331
|
var isObject = isObject$e;
|
|
4234
4332
|
var isSymbol = isSymbol$3;
|
|
4235
|
-
var create = objectCreate;
|
|
4333
|
+
var create$1 = objectCreate;
|
|
4236
4334
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
4237
4335
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
4238
4336
|
var getOwnPropertyNames = objectGetOwnPropertyNames.f;
|
|
4239
4337
|
var typedArrayFrom = typedArrayFrom$1;
|
|
4240
4338
|
var forEach = arrayIteration.forEach;
|
|
4241
4339
|
var setSpecies = setSpecies$1;
|
|
4242
|
-
var defineBuiltInAccessor = defineBuiltInAccessor$
|
|
4340
|
+
var defineBuiltInAccessor$2 = defineBuiltInAccessor$8;
|
|
4243
4341
|
var definePropertyModule = objectDefineProperty;
|
|
4244
4342
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
4245
|
-
var arrayFromConstructorAndList = arrayFromConstructorAndList$
|
|
4246
|
-
var InternalStateModule = internalState;
|
|
4247
|
-
var inheritIfRequired = inheritIfRequired$
|
|
4343
|
+
var arrayFromConstructorAndList$1 = arrayFromConstructorAndList$2;
|
|
4344
|
+
var InternalStateModule$1 = internalState;
|
|
4345
|
+
var inheritIfRequired$1 = inheritIfRequired$3;
|
|
4248
4346
|
|
|
4249
|
-
var getInternalState = InternalStateModule.get;
|
|
4250
|
-
var setInternalState = InternalStateModule.set;
|
|
4251
|
-
var enforceInternalState = InternalStateModule.enforce;
|
|
4347
|
+
var getInternalState$1 = InternalStateModule$1.get;
|
|
4348
|
+
var setInternalState$1 = InternalStateModule$1.set;
|
|
4349
|
+
var enforceInternalState = InternalStateModule$1.enforce;
|
|
4252
4350
|
var nativeDefineProperty = definePropertyModule.f;
|
|
4253
4351
|
var nativeGetOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
4254
|
-
var RangeError$2 = global$
|
|
4255
|
-
var ArrayBuffer$
|
|
4256
|
-
var ArrayBufferPrototype = ArrayBuffer$
|
|
4257
|
-
var DataView$
|
|
4258
|
-
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore$
|
|
4259
|
-
var TYPED_ARRAY_TAG = ArrayBufferViewCore$
|
|
4260
|
-
var TypedArray = ArrayBufferViewCore$
|
|
4261
|
-
var TypedArrayPrototype = ArrayBufferViewCore$
|
|
4262
|
-
var isTypedArray = ArrayBufferViewCore$
|
|
4352
|
+
var RangeError$2 = global$a.RangeError;
|
|
4353
|
+
var ArrayBuffer$2 = ArrayBufferModule.ArrayBuffer;
|
|
4354
|
+
var ArrayBufferPrototype$2 = ArrayBuffer$2.prototype;
|
|
4355
|
+
var DataView$2 = ArrayBufferModule.DataView;
|
|
4356
|
+
var NATIVE_ARRAY_BUFFER_VIEWS = ArrayBufferViewCore$a.NATIVE_ARRAY_BUFFER_VIEWS;
|
|
4357
|
+
var TYPED_ARRAY_TAG = ArrayBufferViewCore$a.TYPED_ARRAY_TAG;
|
|
4358
|
+
var TypedArray = ArrayBufferViewCore$a.TypedArray;
|
|
4359
|
+
var TypedArrayPrototype = ArrayBufferViewCore$a.TypedArrayPrototype;
|
|
4360
|
+
var isTypedArray = ArrayBufferViewCore$a.isTypedArray;
|
|
4263
4361
|
var BYTES_PER_ELEMENT = 'BYTES_PER_ELEMENT';
|
|
4264
4362
|
var WRONG_LENGTH = 'Wrong length';
|
|
4265
4363
|
|
|
4266
4364
|
var addGetter = function (it, key) {
|
|
4267
|
-
defineBuiltInAccessor(it, key, {
|
|
4365
|
+
defineBuiltInAccessor$2(it, key, {
|
|
4268
4366
|
configurable: true,
|
|
4269
4367
|
get: function () {
|
|
4270
|
-
return getInternalState(this)[key];
|
|
4368
|
+
return getInternalState$1(this)[key];
|
|
4271
4369
|
}
|
|
4272
4370
|
});
|
|
4273
4371
|
};
|
|
4274
4372
|
|
|
4275
4373
|
var isArrayBuffer = function (it) {
|
|
4276
4374
|
var klass;
|
|
4277
|
-
return isPrototypeOf(ArrayBufferPrototype, it) || (klass = classof$
|
|
4375
|
+
return isPrototypeOf(ArrayBufferPrototype$2, it) || (klass = classof$3(it)) === 'ArrayBuffer' || klass === 'SharedArrayBuffer';
|
|
4278
4376
|
};
|
|
4279
4377
|
|
|
4280
4378
|
var isTypedArrayIndex = function (target, key) {
|
|
@@ -4288,7 +4386,7 @@ var isTypedArrayIndex = function (target, key) {
|
|
|
4288
4386
|
var wrappedGetOwnPropertyDescriptor = function getOwnPropertyDescriptor(target, key) {
|
|
4289
4387
|
key = toPropertyKey(key);
|
|
4290
4388
|
return isTypedArrayIndex(target, key)
|
|
4291
|
-
? createPropertyDescriptor(2, target[key])
|
|
4389
|
+
? createPropertyDescriptor$2(2, target[key])
|
|
4292
4390
|
: nativeGetOwnPropertyDescriptor(target, key);
|
|
4293
4391
|
};
|
|
4294
4392
|
|
|
@@ -4296,20 +4394,20 @@ var wrappedDefineProperty = function defineProperty(target, key, descriptor) {
|
|
|
4296
4394
|
key = toPropertyKey(key);
|
|
4297
4395
|
if (isTypedArrayIndex(target, key)
|
|
4298
4396
|
&& isObject(descriptor)
|
|
4299
|
-
&& hasOwn(descriptor, 'value')
|
|
4300
|
-
&& !hasOwn(descriptor, 'get')
|
|
4301
|
-
&& !hasOwn(descriptor, 'set')
|
|
4397
|
+
&& hasOwn$2(descriptor, 'value')
|
|
4398
|
+
&& !hasOwn$2(descriptor, 'get')
|
|
4399
|
+
&& !hasOwn$2(descriptor, 'set')
|
|
4302
4400
|
// TODO: add validation descriptor w/o calling accessors
|
|
4303
4401
|
&& !descriptor.configurable
|
|
4304
|
-
&& (!hasOwn(descriptor, 'writable') || descriptor.writable)
|
|
4305
|
-
&& (!hasOwn(descriptor, 'enumerable') || descriptor.enumerable)
|
|
4402
|
+
&& (!hasOwn$2(descriptor, 'writable') || descriptor.writable)
|
|
4403
|
+
&& (!hasOwn$2(descriptor, 'enumerable') || descriptor.enumerable)
|
|
4306
4404
|
) {
|
|
4307
4405
|
target[key] = descriptor.value;
|
|
4308
4406
|
return target;
|
|
4309
4407
|
} return nativeDefineProperty(target, key, descriptor);
|
|
4310
4408
|
};
|
|
4311
4409
|
|
|
4312
|
-
if (DESCRIPTORS) {
|
|
4410
|
+
if (DESCRIPTORS$4) {
|
|
4313
4411
|
if (!NATIVE_ARRAY_BUFFER_VIEWS) {
|
|
4314
4412
|
getOwnPropertyDescriptorModule.f = wrappedGetOwnPropertyDescriptor;
|
|
4315
4413
|
definePropertyModule.f = wrappedDefineProperty;
|
|
@@ -4319,7 +4417,7 @@ if (DESCRIPTORS) {
|
|
|
4319
4417
|
addGetter(TypedArrayPrototype, 'length');
|
|
4320
4418
|
}
|
|
4321
4419
|
|
|
4322
|
-
|
|
4420
|
+
$$5({ target: 'Object', stat: true, forced: !NATIVE_ARRAY_BUFFER_VIEWS }, {
|
|
4323
4421
|
getOwnPropertyDescriptor: wrappedGetOwnPropertyDescriptor,
|
|
4324
4422
|
defineProperty: wrappedDefineProperty
|
|
4325
4423
|
});
|
|
@@ -4329,18 +4427,18 @@ if (DESCRIPTORS) {
|
|
|
4329
4427
|
var CONSTRUCTOR_NAME = TYPE + (CLAMPED ? 'Clamped' : '') + 'Array';
|
|
4330
4428
|
var GETTER = 'get' + TYPE;
|
|
4331
4429
|
var SETTER = 'set' + TYPE;
|
|
4332
|
-
var NativeTypedArrayConstructor = global$
|
|
4430
|
+
var NativeTypedArrayConstructor = global$a[CONSTRUCTOR_NAME];
|
|
4333
4431
|
var TypedArrayConstructor = NativeTypedArrayConstructor;
|
|
4334
4432
|
var TypedArrayConstructorPrototype = TypedArrayConstructor && TypedArrayConstructor.prototype;
|
|
4335
4433
|
var exported = {};
|
|
4336
4434
|
|
|
4337
4435
|
var getter = function (that, index) {
|
|
4338
|
-
var data = getInternalState(that);
|
|
4436
|
+
var data = getInternalState$1(that);
|
|
4339
4437
|
return data.view[GETTER](index * BYTES + data.byteOffset, true);
|
|
4340
4438
|
};
|
|
4341
4439
|
|
|
4342
4440
|
var setter = function (that, index, value) {
|
|
4343
|
-
var data = getInternalState(that);
|
|
4441
|
+
var data = getInternalState$1(that);
|
|
4344
4442
|
data.view[SETTER](index * BYTES + data.byteOffset, CLAMPED ? toUint8Clamped(value) : value, true);
|
|
4345
4443
|
};
|
|
4346
4444
|
|
|
@@ -4358,14 +4456,14 @@ if (DESCRIPTORS) {
|
|
|
4358
4456
|
|
|
4359
4457
|
if (!NATIVE_ARRAY_BUFFER_VIEWS) {
|
|
4360
4458
|
TypedArrayConstructor = wrapper(function (that, data, offset, $length) {
|
|
4361
|
-
anInstance(that, TypedArrayConstructorPrototype);
|
|
4459
|
+
anInstance$2(that, TypedArrayConstructorPrototype);
|
|
4362
4460
|
var index = 0;
|
|
4363
4461
|
var byteOffset = 0;
|
|
4364
4462
|
var buffer, byteLength, length;
|
|
4365
4463
|
if (!isObject(data)) {
|
|
4366
|
-
length = toIndex(data);
|
|
4464
|
+
length = toIndex$1(data);
|
|
4367
4465
|
byteLength = length * BYTES;
|
|
4368
|
-
buffer = new ArrayBuffer$
|
|
4466
|
+
buffer = new ArrayBuffer$2(byteLength);
|
|
4369
4467
|
} else if (isArrayBuffer(data)) {
|
|
4370
4468
|
buffer = data;
|
|
4371
4469
|
byteOffset = toOffset$1(offset, BYTES);
|
|
@@ -4380,34 +4478,34 @@ if (DESCRIPTORS) {
|
|
|
4380
4478
|
}
|
|
4381
4479
|
length = byteLength / BYTES;
|
|
4382
4480
|
} else if (isTypedArray(data)) {
|
|
4383
|
-
return arrayFromConstructorAndList(TypedArrayConstructor, data);
|
|
4481
|
+
return arrayFromConstructorAndList$1(TypedArrayConstructor, data);
|
|
4384
4482
|
} else {
|
|
4385
|
-
return call$
|
|
4483
|
+
return call$3(typedArrayFrom, TypedArrayConstructor, data);
|
|
4386
4484
|
}
|
|
4387
|
-
setInternalState(that, {
|
|
4485
|
+
setInternalState$1(that, {
|
|
4388
4486
|
buffer: buffer,
|
|
4389
4487
|
byteOffset: byteOffset,
|
|
4390
4488
|
byteLength: byteLength,
|
|
4391
4489
|
length: length,
|
|
4392
|
-
view: new DataView$
|
|
4490
|
+
view: new DataView$2(buffer)
|
|
4393
4491
|
});
|
|
4394
4492
|
while (index < length) addElement(that, index++);
|
|
4395
4493
|
});
|
|
4396
4494
|
|
|
4397
4495
|
if (setPrototypeOf) setPrototypeOf(TypedArrayConstructor, TypedArray);
|
|
4398
|
-
TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create(TypedArrayPrototype);
|
|
4496
|
+
TypedArrayConstructorPrototype = TypedArrayConstructor.prototype = create$1(TypedArrayPrototype);
|
|
4399
4497
|
} else if (TYPED_ARRAYS_CONSTRUCTORS_REQUIRES_WRAPPERS) {
|
|
4400
4498
|
TypedArrayConstructor = wrapper(function (dummy, data, typedArrayOffset, $length) {
|
|
4401
|
-
anInstance(dummy, TypedArrayConstructorPrototype);
|
|
4402
|
-
return inheritIfRequired(function () {
|
|
4403
|
-
if (!isObject(data)) return new NativeTypedArrayConstructor(toIndex(data));
|
|
4499
|
+
anInstance$2(dummy, TypedArrayConstructorPrototype);
|
|
4500
|
+
return inheritIfRequired$1(function () {
|
|
4501
|
+
if (!isObject(data)) return new NativeTypedArrayConstructor(toIndex$1(data));
|
|
4404
4502
|
if (isArrayBuffer(data)) return $length !== undefined
|
|
4405
4503
|
? new NativeTypedArrayConstructor(data, toOffset$1(typedArrayOffset, BYTES), $length)
|
|
4406
4504
|
: typedArrayOffset !== undefined
|
|
4407
4505
|
? new NativeTypedArrayConstructor(data, toOffset$1(typedArrayOffset, BYTES))
|
|
4408
4506
|
: new NativeTypedArrayConstructor(data);
|
|
4409
|
-
if (isTypedArray(data)) return arrayFromConstructorAndList(TypedArrayConstructor, data);
|
|
4410
|
-
return call$
|
|
4507
|
+
if (isTypedArray(data)) return arrayFromConstructorAndList$1(TypedArrayConstructor, data);
|
|
4508
|
+
return call$3(typedArrayFrom, TypedArrayConstructor, data);
|
|
4411
4509
|
}(), dummy, TypedArrayConstructor);
|
|
4412
4510
|
});
|
|
4413
4511
|
|
|
@@ -4434,7 +4532,7 @@ if (DESCRIPTORS) {
|
|
|
4434
4532
|
|
|
4435
4533
|
exported[CONSTRUCTOR_NAME] = TypedArrayConstructor;
|
|
4436
4534
|
|
|
4437
|
-
|
|
4535
|
+
$$5({ global: true, constructor: true, forced: FORCED, sham: !NATIVE_ARRAY_BUFFER_VIEWS }, exported);
|
|
4438
4536
|
|
|
4439
4537
|
if (!(BYTES_PER_ELEMENT in TypedArrayConstructor)) {
|
|
4440
4538
|
createNonEnumerableProperty(TypedArrayConstructor, BYTES_PER_ELEMENT, BYTES);
|
|
@@ -4468,20 +4566,37 @@ createTypedArrayConstructor('Uint32', function (init) {
|
|
|
4468
4566
|
};
|
|
4469
4567
|
});
|
|
4470
4568
|
|
|
4471
|
-
var ArrayBufferViewCore$
|
|
4569
|
+
var ArrayBufferViewCore$9 = arrayBufferViewCore;
|
|
4570
|
+
var lengthOfArrayLike$4 = lengthOfArrayLike$b;
|
|
4571
|
+
var toIntegerOrInfinity$2 = toIntegerOrInfinity$a;
|
|
4572
|
+
|
|
4573
|
+
var aTypedArray$9 = ArrayBufferViewCore$9.aTypedArray;
|
|
4574
|
+
var exportTypedArrayMethod$9 = ArrayBufferViewCore$9.exportTypedArrayMethod;
|
|
4575
|
+
|
|
4576
|
+
// `%TypedArray%.prototype.at` method
|
|
4577
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.at
|
|
4578
|
+
exportTypedArrayMethod$9('at', function at(index) {
|
|
4579
|
+
var O = aTypedArray$9(this);
|
|
4580
|
+
var len = lengthOfArrayLike$4(O);
|
|
4581
|
+
var relativeIndex = toIntegerOrInfinity$2(index);
|
|
4582
|
+
var k = relativeIndex >= 0 ? relativeIndex : len + relativeIndex;
|
|
4583
|
+
return (k < 0 || k >= len) ? undefined : O[k];
|
|
4584
|
+
});
|
|
4585
|
+
|
|
4586
|
+
var ArrayBufferViewCore$8 = arrayBufferViewCore;
|
|
4472
4587
|
var $fill = arrayFill$1;
|
|
4473
|
-
var toBigInt = toBigInt$
|
|
4474
|
-
var classof = classof$
|
|
4475
|
-
var call$
|
|
4476
|
-
var uncurryThis$
|
|
4477
|
-
var fails$
|
|
4588
|
+
var toBigInt$1 = toBigInt$3;
|
|
4589
|
+
var classof$2 = classof$d;
|
|
4590
|
+
var call$2 = functionCall;
|
|
4591
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
4592
|
+
var fails$7 = fails$v;
|
|
4478
4593
|
|
|
4479
|
-
var aTypedArray$
|
|
4480
|
-
var exportTypedArrayMethod$
|
|
4481
|
-
var slice = uncurryThis$
|
|
4594
|
+
var aTypedArray$8 = ArrayBufferViewCore$8.aTypedArray;
|
|
4595
|
+
var exportTypedArrayMethod$8 = ArrayBufferViewCore$8.exportTypedArrayMethod;
|
|
4596
|
+
var slice$2 = uncurryThis$6(''.slice);
|
|
4482
4597
|
|
|
4483
4598
|
// V8 ~ Chrome < 59, Safari < 14.1, FF < 55, Edge <=18
|
|
4484
|
-
var CONVERSION_BUG = fails$
|
|
4599
|
+
var CONVERSION_BUG = fails$7(function () {
|
|
4485
4600
|
var count = 0;
|
|
4486
4601
|
// eslint-disable-next-line es/no-typed-arrays -- safe
|
|
4487
4602
|
new Int8Array(2).fill({ valueOf: function () { return count++; } });
|
|
@@ -4490,37 +4605,96 @@ var CONVERSION_BUG = fails$3(function () {
|
|
|
4490
4605
|
|
|
4491
4606
|
// `%TypedArray%.prototype.fill` method
|
|
4492
4607
|
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.fill
|
|
4493
|
-
exportTypedArrayMethod$
|
|
4608
|
+
exportTypedArrayMethod$8('fill', function fill(value /* , start, end */) {
|
|
4494
4609
|
var length = arguments.length;
|
|
4495
|
-
aTypedArray$
|
|
4496
|
-
var actualValue = slice(classof(this), 0, 3) === 'Big' ? toBigInt(value) : +value;
|
|
4497
|
-
return call$
|
|
4610
|
+
aTypedArray$8(this);
|
|
4611
|
+
var actualValue = slice$2(classof$2(this), 0, 3) === 'Big' ? toBigInt$1(value) : +value;
|
|
4612
|
+
return call$2($fill, this, actualValue, length > 1 ? arguments[1] : undefined, length > 2 ? arguments[2] : undefined);
|
|
4498
4613
|
}, CONVERSION_BUG);
|
|
4499
4614
|
|
|
4500
|
-
var
|
|
4501
|
-
var
|
|
4502
|
-
var
|
|
4503
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
4615
|
+
var bind = functionBindContext;
|
|
4616
|
+
var IndexedObject = indexedObject;
|
|
4617
|
+
var toObject = toObject$8;
|
|
4618
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$b;
|
|
4619
|
+
|
|
4620
|
+
// `Array.prototype.{ findLast, findLastIndex }` methods implementation
|
|
4621
|
+
var createMethod = function (TYPE) {
|
|
4622
|
+
var IS_FIND_LAST_INDEX = TYPE === 1;
|
|
4623
|
+
return function ($this, callbackfn, that) {
|
|
4624
|
+
var O = toObject($this);
|
|
4625
|
+
var self = IndexedObject(O);
|
|
4626
|
+
var index = lengthOfArrayLike$3(self);
|
|
4627
|
+
var boundFunction = bind(callbackfn, that);
|
|
4628
|
+
var value, result;
|
|
4629
|
+
while (index-- > 0) {
|
|
4630
|
+
value = self[index];
|
|
4631
|
+
result = boundFunction(value, index, O);
|
|
4632
|
+
if (result) switch (TYPE) {
|
|
4633
|
+
case 0: return value; // findLast
|
|
4634
|
+
case 1: return index; // findLastIndex
|
|
4635
|
+
}
|
|
4636
|
+
}
|
|
4637
|
+
return IS_FIND_LAST_INDEX ? -1 : undefined;
|
|
4638
|
+
};
|
|
4639
|
+
};
|
|
4640
|
+
|
|
4641
|
+
var arrayIterationFromLast = {
|
|
4642
|
+
// `Array.prototype.findLast` method
|
|
4643
|
+
// https://github.com/tc39/proposal-array-find-from-last
|
|
4644
|
+
findLast: createMethod(0),
|
|
4645
|
+
// `Array.prototype.findLastIndex` method
|
|
4646
|
+
// https://github.com/tc39/proposal-array-find-from-last
|
|
4647
|
+
findLastIndex: createMethod(1)
|
|
4648
|
+
};
|
|
4649
|
+
|
|
4650
|
+
var ArrayBufferViewCore$7 = arrayBufferViewCore;
|
|
4651
|
+
var $findLast = arrayIterationFromLast.findLast;
|
|
4652
|
+
|
|
4653
|
+
var aTypedArray$7 = ArrayBufferViewCore$7.aTypedArray;
|
|
4654
|
+
var exportTypedArrayMethod$7 = ArrayBufferViewCore$7.exportTypedArrayMethod;
|
|
4655
|
+
|
|
4656
|
+
// `%TypedArray%.prototype.findLast` method
|
|
4657
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlast
|
|
4658
|
+
exportTypedArrayMethod$7('findLast', function findLast(predicate /* , thisArg */) {
|
|
4659
|
+
return $findLast(aTypedArray$7(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
|
|
4660
|
+
});
|
|
4661
|
+
|
|
4662
|
+
var ArrayBufferViewCore$6 = arrayBufferViewCore;
|
|
4663
|
+
var $findLastIndex = arrayIterationFromLast.findLastIndex;
|
|
4664
|
+
|
|
4665
|
+
var aTypedArray$6 = ArrayBufferViewCore$6.aTypedArray;
|
|
4666
|
+
var exportTypedArrayMethod$6 = ArrayBufferViewCore$6.exportTypedArrayMethod;
|
|
4667
|
+
|
|
4668
|
+
// `%TypedArray%.prototype.findLastIndex` method
|
|
4669
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.findlastindex
|
|
4670
|
+
exportTypedArrayMethod$6('findLastIndex', function findLastIndex(predicate /* , thisArg */) {
|
|
4671
|
+
return $findLastIndex(aTypedArray$6(this), predicate, arguments.length > 1 ? arguments[1] : undefined);
|
|
4672
|
+
});
|
|
4673
|
+
|
|
4674
|
+
var global$9 = global$u;
|
|
4675
|
+
var call$1 = functionCall;
|
|
4676
|
+
var ArrayBufferViewCore$5 = arrayBufferViewCore;
|
|
4677
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$b;
|
|
4504
4678
|
var toOffset = toOffset$2;
|
|
4505
|
-
var toIndexedObject = toObject$
|
|
4506
|
-
var fails$
|
|
4679
|
+
var toIndexedObject = toObject$8;
|
|
4680
|
+
var fails$6 = fails$v;
|
|
4507
4681
|
|
|
4508
|
-
var RangeError$1 = global$
|
|
4509
|
-
var Int8Array$2 = global$
|
|
4682
|
+
var RangeError$1 = global$9.RangeError;
|
|
4683
|
+
var Int8Array$2 = global$9.Int8Array;
|
|
4510
4684
|
var Int8ArrayPrototype = Int8Array$2 && Int8Array$2.prototype;
|
|
4511
4685
|
var $set = Int8ArrayPrototype && Int8ArrayPrototype.set;
|
|
4512
|
-
var aTypedArray$
|
|
4513
|
-
var exportTypedArrayMethod$
|
|
4686
|
+
var aTypedArray$5 = ArrayBufferViewCore$5.aTypedArray;
|
|
4687
|
+
var exportTypedArrayMethod$5 = ArrayBufferViewCore$5.exportTypedArrayMethod;
|
|
4514
4688
|
|
|
4515
|
-
var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails$
|
|
4689
|
+
var WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS = !fails$6(function () {
|
|
4516
4690
|
// eslint-disable-next-line es/no-typed-arrays -- required for testing
|
|
4517
4691
|
var array = new Uint8ClampedArray(2);
|
|
4518
|
-
call($set, array, { length: 1, 0: 3 }, 1);
|
|
4692
|
+
call$1($set, array, { length: 1, 0: 3 }, 1);
|
|
4519
4693
|
return array[1] !== 3;
|
|
4520
4694
|
});
|
|
4521
4695
|
|
|
4522
4696
|
// https://bugs.chromium.org/p/v8/issues/detail?id=11294 and other
|
|
4523
|
-
var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore$
|
|
4697
|
+
var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBufferViewCore$5.NATIVE_ARRAY_BUFFER_VIEWS && fails$6(function () {
|
|
4524
4698
|
var array = new Int8Array$2(2);
|
|
4525
4699
|
array.set(1);
|
|
4526
4700
|
array.set('2', 1);
|
|
@@ -4529,13 +4703,13 @@ var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS && ArrayBuffe
|
|
|
4529
4703
|
|
|
4530
4704
|
// `%TypedArray%.prototype.set` method
|
|
4531
4705
|
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.set
|
|
4532
|
-
exportTypedArrayMethod$
|
|
4533
|
-
aTypedArray$
|
|
4706
|
+
exportTypedArrayMethod$5('set', function set(arrayLike /* , offset */) {
|
|
4707
|
+
aTypedArray$5(this);
|
|
4534
4708
|
var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
|
|
4535
4709
|
var src = toIndexedObject(arrayLike);
|
|
4536
|
-
if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS) return call($set, this, src, offset);
|
|
4710
|
+
if (WORKS_WITH_OBJECTS_AND_GENERIC_ON_TYPED_ARRAYS) return call$1($set, this, src, offset);
|
|
4537
4711
|
var length = this.length;
|
|
4538
|
-
var len = lengthOfArrayLike(src);
|
|
4712
|
+
var len = lengthOfArrayLike$2(src);
|
|
4539
4713
|
var index = 0;
|
|
4540
4714
|
if (len + offset > length) throw new RangeError$1('Wrong length');
|
|
4541
4715
|
while (index < len) this[offset + index] = src[index++];
|
|
@@ -4557,32 +4731,32 @@ var webkit = userAgent.match(/AppleWebKit\/(\d+)\./);
|
|
|
4557
4731
|
|
|
4558
4732
|
var engineWebkitVersion = !!webkit && +webkit[1];
|
|
4559
4733
|
|
|
4560
|
-
var global$
|
|
4561
|
-
var uncurryThis = functionUncurryThisClause;
|
|
4562
|
-
var fails$
|
|
4563
|
-
var aCallable = aCallable$
|
|
4734
|
+
var global$8 = global$u;
|
|
4735
|
+
var uncurryThis$5 = functionUncurryThisClause;
|
|
4736
|
+
var fails$5 = fails$v;
|
|
4737
|
+
var aCallable$1 = aCallable$6;
|
|
4564
4738
|
var internalSort = arraySort$1;
|
|
4565
|
-
var ArrayBufferViewCore$
|
|
4739
|
+
var ArrayBufferViewCore$4 = arrayBufferViewCore;
|
|
4566
4740
|
var FF = engineFfVersion;
|
|
4567
4741
|
var IE_OR_EDGE = engineIsIeOrEdge;
|
|
4568
|
-
var V8 = engineV8Version;
|
|
4742
|
+
var V8$1 = engineV8Version;
|
|
4569
4743
|
var WEBKIT = engineWebkitVersion;
|
|
4570
4744
|
|
|
4571
|
-
var aTypedArray$
|
|
4572
|
-
var exportTypedArrayMethod$
|
|
4573
|
-
var Uint16Array = global$
|
|
4574
|
-
var nativeSort = Uint16Array && uncurryThis(Uint16Array.prototype.sort);
|
|
4745
|
+
var aTypedArray$4 = ArrayBufferViewCore$4.aTypedArray;
|
|
4746
|
+
var exportTypedArrayMethod$4 = ArrayBufferViewCore$4.exportTypedArrayMethod;
|
|
4747
|
+
var Uint16Array = global$8.Uint16Array;
|
|
4748
|
+
var nativeSort = Uint16Array && uncurryThis$5(Uint16Array.prototype.sort);
|
|
4575
4749
|
|
|
4576
4750
|
// WebKit
|
|
4577
|
-
var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort && !(fails$
|
|
4751
|
+
var ACCEPT_INCORRECT_ARGUMENTS = !!nativeSort && !(fails$5(function () {
|
|
4578
4752
|
nativeSort(new Uint16Array(2), null);
|
|
4579
|
-
}) && fails$
|
|
4753
|
+
}) && fails$5(function () {
|
|
4580
4754
|
nativeSort(new Uint16Array(2), {});
|
|
4581
4755
|
}));
|
|
4582
4756
|
|
|
4583
|
-
var STABLE_SORT = !!nativeSort && !fails$
|
|
4757
|
+
var STABLE_SORT = !!nativeSort && !fails$5(function () {
|
|
4584
4758
|
// feature detection can be too slow, so check engines versions
|
|
4585
|
-
if (V8) return V8 < 74;
|
|
4759
|
+
if (V8$1) return V8$1 < 74;
|
|
4586
4760
|
if (FF) return FF < 67;
|
|
4587
4761
|
if (IE_OR_EDGE) return true;
|
|
4588
4762
|
if (WEBKIT) return WEBKIT < 602;
|
|
@@ -4620,45 +4794,695 @@ var getSortCompare = function (comparefn) {
|
|
|
4620
4794
|
|
|
4621
4795
|
// `%TypedArray%.prototype.sort` method
|
|
4622
4796
|
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.sort
|
|
4623
|
-
exportTypedArrayMethod$
|
|
4624
|
-
if (comparefn !== undefined) aCallable(comparefn);
|
|
4797
|
+
exportTypedArrayMethod$4('sort', function sort(comparefn) {
|
|
4798
|
+
if (comparefn !== undefined) aCallable$1(comparefn);
|
|
4625
4799
|
if (STABLE_SORT) return nativeSort(this, comparefn);
|
|
4626
4800
|
|
|
4627
|
-
return internalSort(aTypedArray$
|
|
4801
|
+
return internalSort(aTypedArray$4(this), getSortCompare(comparefn));
|
|
4628
4802
|
}, !STABLE_SORT || ACCEPT_INCORRECT_ARGUMENTS);
|
|
4629
4803
|
|
|
4630
|
-
var global$
|
|
4804
|
+
var global$7 = global$u;
|
|
4631
4805
|
var apply = functionApply;
|
|
4632
|
-
var ArrayBufferViewCore = arrayBufferViewCore;
|
|
4633
|
-
var fails = fails$
|
|
4806
|
+
var ArrayBufferViewCore$3 = arrayBufferViewCore;
|
|
4807
|
+
var fails$4 = fails$v;
|
|
4634
4808
|
var arraySlice = arraySlice$3;
|
|
4635
4809
|
|
|
4636
|
-
var Int8Array$1 = global$
|
|
4637
|
-
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
4638
|
-
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
4810
|
+
var Int8Array$1 = global$7.Int8Array;
|
|
4811
|
+
var aTypedArray$3 = ArrayBufferViewCore$3.aTypedArray;
|
|
4812
|
+
var exportTypedArrayMethod$3 = ArrayBufferViewCore$3.exportTypedArrayMethod;
|
|
4639
4813
|
var $toLocaleString = [].toLocaleString;
|
|
4640
4814
|
|
|
4641
4815
|
// iOS Safari 6.x fails here
|
|
4642
|
-
var TO_LOCALE_STRING_BUG = !!Int8Array$1 && fails(function () {
|
|
4816
|
+
var TO_LOCALE_STRING_BUG = !!Int8Array$1 && fails$4(function () {
|
|
4643
4817
|
$toLocaleString.call(new Int8Array$1(1));
|
|
4644
4818
|
});
|
|
4645
4819
|
|
|
4646
|
-
var FORCED = fails(function () {
|
|
4820
|
+
var FORCED = fails$4(function () {
|
|
4647
4821
|
return [1, 2].toLocaleString() !== new Int8Array$1([1, 2]).toLocaleString();
|
|
4648
|
-
}) || !fails(function () {
|
|
4822
|
+
}) || !fails$4(function () {
|
|
4649
4823
|
Int8Array$1.prototype.toLocaleString.call([1, 2]);
|
|
4650
4824
|
});
|
|
4651
4825
|
|
|
4652
4826
|
// `%TypedArray%.prototype.toLocaleString` method
|
|
4653
4827
|
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tolocalestring
|
|
4654
|
-
exportTypedArrayMethod('toLocaleString', function toLocaleString() {
|
|
4828
|
+
exportTypedArrayMethod$3('toLocaleString', function toLocaleString() {
|
|
4655
4829
|
return apply(
|
|
4656
4830
|
$toLocaleString,
|
|
4657
|
-
TO_LOCALE_STRING_BUG ? arraySlice(aTypedArray(this)) : aTypedArray(this),
|
|
4831
|
+
TO_LOCALE_STRING_BUG ? arraySlice(aTypedArray$3(this)) : aTypedArray$3(this),
|
|
4658
4832
|
arraySlice(arguments)
|
|
4659
4833
|
);
|
|
4660
4834
|
}, FORCED);
|
|
4661
4835
|
|
|
4836
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$b;
|
|
4837
|
+
|
|
4838
|
+
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.toReversed
|
|
4839
|
+
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.toReversed
|
|
4840
|
+
var arrayToReversed$1 = function (O, C) {
|
|
4841
|
+
var len = lengthOfArrayLike$1(O);
|
|
4842
|
+
var A = new C(len);
|
|
4843
|
+
var k = 0;
|
|
4844
|
+
for (; k < len; k++) A[k] = O[len - k - 1];
|
|
4845
|
+
return A;
|
|
4846
|
+
};
|
|
4847
|
+
|
|
4848
|
+
var arrayToReversed = arrayToReversed$1;
|
|
4849
|
+
var ArrayBufferViewCore$2 = arrayBufferViewCore;
|
|
4850
|
+
|
|
4851
|
+
var aTypedArray$2 = ArrayBufferViewCore$2.aTypedArray;
|
|
4852
|
+
var exportTypedArrayMethod$2 = ArrayBufferViewCore$2.exportTypedArrayMethod;
|
|
4853
|
+
var getTypedArrayConstructor$2 = ArrayBufferViewCore$2.getTypedArrayConstructor;
|
|
4854
|
+
|
|
4855
|
+
// `%TypedArray%.prototype.toReversed` method
|
|
4856
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.toreversed
|
|
4857
|
+
exportTypedArrayMethod$2('toReversed', function toReversed() {
|
|
4858
|
+
return arrayToReversed(aTypedArray$2(this), getTypedArrayConstructor$2(this));
|
|
4859
|
+
});
|
|
4860
|
+
|
|
4861
|
+
var ArrayBufferViewCore$1 = arrayBufferViewCore;
|
|
4862
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
4863
|
+
var aCallable = aCallable$6;
|
|
4864
|
+
var arrayFromConstructorAndList = arrayFromConstructorAndList$2;
|
|
4865
|
+
|
|
4866
|
+
var aTypedArray$1 = ArrayBufferViewCore$1.aTypedArray;
|
|
4867
|
+
var getTypedArrayConstructor$1 = ArrayBufferViewCore$1.getTypedArrayConstructor;
|
|
4868
|
+
var exportTypedArrayMethod$1 = ArrayBufferViewCore$1.exportTypedArrayMethod;
|
|
4869
|
+
var sort = uncurryThis$4(ArrayBufferViewCore$1.TypedArrayPrototype.sort);
|
|
4870
|
+
|
|
4871
|
+
// `%TypedArray%.prototype.toSorted` method
|
|
4872
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.tosorted
|
|
4873
|
+
exportTypedArrayMethod$1('toSorted', function toSorted(compareFn) {
|
|
4874
|
+
if (compareFn !== undefined) aCallable(compareFn);
|
|
4875
|
+
var O = aTypedArray$1(this);
|
|
4876
|
+
var A = arrayFromConstructorAndList(getTypedArrayConstructor$1(O), O);
|
|
4877
|
+
return sort(A, compareFn);
|
|
4878
|
+
});
|
|
4879
|
+
|
|
4880
|
+
var lengthOfArrayLike = lengthOfArrayLike$b;
|
|
4881
|
+
var toIntegerOrInfinity$1 = toIntegerOrInfinity$a;
|
|
4882
|
+
|
|
4883
|
+
var $RangeError = RangeError;
|
|
4884
|
+
|
|
4885
|
+
// https://tc39.es/proposal-change-array-by-copy/#sec-array.prototype.with
|
|
4886
|
+
// https://tc39.es/proposal-change-array-by-copy/#sec-%typedarray%.prototype.with
|
|
4887
|
+
var arrayWith$1 = function (O, C, index, value) {
|
|
4888
|
+
var len = lengthOfArrayLike(O);
|
|
4889
|
+
var relativeIndex = toIntegerOrInfinity$1(index);
|
|
4890
|
+
var actualIndex = relativeIndex < 0 ? len + relativeIndex : relativeIndex;
|
|
4891
|
+
if (actualIndex >= len || actualIndex < 0) throw new $RangeError('Incorrect index');
|
|
4892
|
+
var A = new C(len);
|
|
4893
|
+
var k = 0;
|
|
4894
|
+
for (; k < len; k++) A[k] = k === actualIndex ? value : O[k];
|
|
4895
|
+
return A;
|
|
4896
|
+
};
|
|
4897
|
+
|
|
4898
|
+
var arrayWith = arrayWith$1;
|
|
4899
|
+
var ArrayBufferViewCore = arrayBufferViewCore;
|
|
4900
|
+
var isBigIntArray = isBigIntArray$2;
|
|
4901
|
+
var toIntegerOrInfinity = toIntegerOrInfinity$a;
|
|
4902
|
+
var toBigInt = toBigInt$3;
|
|
4903
|
+
|
|
4904
|
+
var aTypedArray = ArrayBufferViewCore.aTypedArray;
|
|
4905
|
+
var getTypedArrayConstructor = ArrayBufferViewCore.getTypedArrayConstructor;
|
|
4906
|
+
var exportTypedArrayMethod = ArrayBufferViewCore.exportTypedArrayMethod;
|
|
4907
|
+
|
|
4908
|
+
var PROPER_ORDER = !!function () {
|
|
4909
|
+
try {
|
|
4910
|
+
// eslint-disable-next-line no-throw-literal, es/no-typed-arrays, es/no-array-prototype-with -- required for testing
|
|
4911
|
+
new Int8Array(1)['with'](2, { valueOf: function () { throw 8; } });
|
|
4912
|
+
} catch (error) {
|
|
4913
|
+
// some early implementations, like WebKit, does not follow the final semantic
|
|
4914
|
+
// https://github.com/tc39/proposal-change-array-by-copy/pull/86
|
|
4915
|
+
return error === 8;
|
|
4916
|
+
}
|
|
4917
|
+
}();
|
|
4918
|
+
|
|
4919
|
+
// `%TypedArray%.prototype.with` method
|
|
4920
|
+
// https://tc39.es/ecma262/#sec-%typedarray%.prototype.with
|
|
4921
|
+
exportTypedArrayMethod('with', { 'with': function (index, value) {
|
|
4922
|
+
var O = aTypedArray(this);
|
|
4923
|
+
var relativeIndex = toIntegerOrInfinity(index);
|
|
4924
|
+
var actualValue = isBigIntArray(O) ? toBigInt(value) : +value;
|
|
4925
|
+
return arrayWith(O, getTypedArrayConstructor(O), relativeIndex, actualValue);
|
|
4926
|
+
} }['with'], !PROPER_ORDER);
|
|
4927
|
+
|
|
4928
|
+
var uncurryThisAccessor$1 = functionUncurryThisAccessor;
|
|
4929
|
+
var classof$1 = classofRaw$2;
|
|
4930
|
+
|
|
4931
|
+
var $TypeError = TypeError;
|
|
4932
|
+
|
|
4933
|
+
// Includes
|
|
4934
|
+
// - Perform ? RequireInternalSlot(O, [[ArrayBufferData]]).
|
|
4935
|
+
// - If IsSharedArrayBuffer(O) is true, throw a TypeError exception.
|
|
4936
|
+
var arrayBufferByteLength$2 = uncurryThisAccessor$1(ArrayBuffer.prototype, 'byteLength', 'get') || function (O) {
|
|
4937
|
+
if (classof$1(O) !== 'ArrayBuffer') throw new $TypeError('ArrayBuffer expected');
|
|
4938
|
+
return O.byteLength;
|
|
4939
|
+
};
|
|
4940
|
+
|
|
4941
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
4942
|
+
var arrayBufferByteLength$1 = arrayBufferByteLength$2;
|
|
4943
|
+
|
|
4944
|
+
var slice$1 = uncurryThis$3(ArrayBuffer.prototype.slice);
|
|
4945
|
+
|
|
4946
|
+
var arrayBufferIsDetached = function (O) {
|
|
4947
|
+
if (arrayBufferByteLength$1(O) !== 0) return false;
|
|
4948
|
+
try {
|
|
4949
|
+
slice$1(O, 0, 0);
|
|
4950
|
+
return false;
|
|
4951
|
+
} catch (error) {
|
|
4952
|
+
return true;
|
|
4953
|
+
}
|
|
4954
|
+
};
|
|
4955
|
+
|
|
4956
|
+
var DESCRIPTORS$3 = descriptors;
|
|
4957
|
+
var defineBuiltInAccessor$1 = defineBuiltInAccessor$8;
|
|
4958
|
+
var isDetached$1 = arrayBufferIsDetached;
|
|
4959
|
+
|
|
4960
|
+
var ArrayBufferPrototype$1 = ArrayBuffer.prototype;
|
|
4961
|
+
|
|
4962
|
+
if (DESCRIPTORS$3 && !('detached' in ArrayBufferPrototype$1)) {
|
|
4963
|
+
defineBuiltInAccessor$1(ArrayBufferPrototype$1, 'detached', {
|
|
4964
|
+
configurable: true,
|
|
4965
|
+
get: function detached() {
|
|
4966
|
+
return isDetached$1(this);
|
|
4967
|
+
}
|
|
4968
|
+
});
|
|
4969
|
+
}
|
|
4970
|
+
|
|
4971
|
+
var global$6 = global$u;
|
|
4972
|
+
var classof = classofRaw$2;
|
|
4973
|
+
|
|
4974
|
+
var engineIsNode = classof(global$6.process) === 'process';
|
|
4975
|
+
|
|
4976
|
+
var IS_NODE$2 = engineIsNode;
|
|
4977
|
+
|
|
4978
|
+
var tryNodeRequire$2 = function (name) {
|
|
4979
|
+
try {
|
|
4980
|
+
// eslint-disable-next-line no-new-func -- safe
|
|
4981
|
+
if (IS_NODE$2) return Function('return require("' + name + '")')();
|
|
4982
|
+
} catch (error) { /* empty */ }
|
|
4983
|
+
};
|
|
4984
|
+
|
|
4985
|
+
/* global Deno -- Deno case */
|
|
4986
|
+
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
4987
|
+
|
|
4988
|
+
var IS_DENO$1 = engineIsDeno;
|
|
4989
|
+
var IS_NODE$1 = engineIsNode;
|
|
4990
|
+
|
|
4991
|
+
var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
4992
|
+
&& typeof window == 'object'
|
|
4993
|
+
&& typeof document == 'object';
|
|
4994
|
+
|
|
4995
|
+
var global$5 = global$u;
|
|
4996
|
+
var fails$3 = fails$v;
|
|
4997
|
+
var V8 = engineV8Version;
|
|
4998
|
+
var IS_BROWSER = engineIsBrowser;
|
|
4999
|
+
var IS_DENO = engineIsDeno;
|
|
5000
|
+
var IS_NODE = engineIsNode;
|
|
5001
|
+
|
|
5002
|
+
var structuredClone$2 = global$5.structuredClone;
|
|
5003
|
+
|
|
5004
|
+
var structuredCloneProperTransfer = !!structuredClone$2 && !fails$3(function () {
|
|
5005
|
+
// prevent V8 ArrayBufferDetaching protector cell invalidation and performance degradation
|
|
5006
|
+
// https://github.com/zloirock/core-js/issues/679
|
|
5007
|
+
if ((IS_DENO && V8 > 92) || (IS_NODE && V8 > 94) || (IS_BROWSER && V8 > 97)) return false;
|
|
5008
|
+
var buffer = new ArrayBuffer(8);
|
|
5009
|
+
var clone = structuredClone$2(buffer, { transfer: [buffer] });
|
|
5010
|
+
return buffer.byteLength !== 0 || clone.byteLength !== 8;
|
|
5011
|
+
});
|
|
5012
|
+
|
|
5013
|
+
var global$4 = global$u;
|
|
5014
|
+
var tryNodeRequire$1 = tryNodeRequire$2;
|
|
5015
|
+
var PROPER_STRUCTURED_CLONE_TRANSFER$1 = structuredCloneProperTransfer;
|
|
5016
|
+
|
|
5017
|
+
var structuredClone$1 = global$4.structuredClone;
|
|
5018
|
+
var $ArrayBuffer = global$4.ArrayBuffer;
|
|
5019
|
+
var $MessageChannel = global$4.MessageChannel;
|
|
5020
|
+
var detach = false;
|
|
5021
|
+
var WorkerThreads, channel, buffer, $detach;
|
|
5022
|
+
|
|
5023
|
+
if (PROPER_STRUCTURED_CLONE_TRANSFER$1) {
|
|
5024
|
+
detach = function (transferable) {
|
|
5025
|
+
structuredClone$1(transferable, { transfer: [transferable] });
|
|
5026
|
+
};
|
|
5027
|
+
} else if ($ArrayBuffer) try {
|
|
5028
|
+
if (!$MessageChannel) {
|
|
5029
|
+
WorkerThreads = tryNodeRequire$1('worker_threads');
|
|
5030
|
+
if (WorkerThreads) $MessageChannel = WorkerThreads.MessageChannel;
|
|
5031
|
+
}
|
|
5032
|
+
|
|
5033
|
+
if ($MessageChannel) {
|
|
5034
|
+
channel = new $MessageChannel();
|
|
5035
|
+
buffer = new $ArrayBuffer(2);
|
|
5036
|
+
|
|
5037
|
+
$detach = function (transferable) {
|
|
5038
|
+
channel.port1.postMessage(null, [transferable]);
|
|
5039
|
+
};
|
|
5040
|
+
|
|
5041
|
+
if (buffer.byteLength === 2) {
|
|
5042
|
+
$detach(buffer);
|
|
5043
|
+
if (buffer.byteLength === 0) detach = $detach;
|
|
5044
|
+
}
|
|
5045
|
+
}
|
|
5046
|
+
} catch (error) { /* empty */ }
|
|
5047
|
+
|
|
5048
|
+
var detachTransferable$1 = detach;
|
|
5049
|
+
|
|
5050
|
+
var global$3 = global$u;
|
|
5051
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
5052
|
+
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
5053
|
+
var toIndex = toIndex$3;
|
|
5054
|
+
var isDetached = arrayBufferIsDetached;
|
|
5055
|
+
var arrayBufferByteLength = arrayBufferByteLength$2;
|
|
5056
|
+
var detachTransferable = detachTransferable$1;
|
|
5057
|
+
var PROPER_STRUCTURED_CLONE_TRANSFER = structuredCloneProperTransfer;
|
|
5058
|
+
|
|
5059
|
+
var structuredClone = global$3.structuredClone;
|
|
5060
|
+
var ArrayBuffer$1 = global$3.ArrayBuffer;
|
|
5061
|
+
var DataView$1 = global$3.DataView;
|
|
5062
|
+
var TypeError$1 = global$3.TypeError;
|
|
5063
|
+
var min = Math.min;
|
|
5064
|
+
var ArrayBufferPrototype = ArrayBuffer$1.prototype;
|
|
5065
|
+
var DataViewPrototype = DataView$1.prototype;
|
|
5066
|
+
var slice = uncurryThis$2(ArrayBufferPrototype.slice);
|
|
5067
|
+
var isResizable = uncurryThisAccessor(ArrayBufferPrototype, 'resizable', 'get');
|
|
5068
|
+
var maxByteLength = uncurryThisAccessor(ArrayBufferPrototype, 'maxByteLength', 'get');
|
|
5069
|
+
var getInt8 = uncurryThis$2(DataViewPrototype.getInt8);
|
|
5070
|
+
var setInt8 = uncurryThis$2(DataViewPrototype.setInt8);
|
|
5071
|
+
|
|
5072
|
+
var arrayBufferTransfer = (PROPER_STRUCTURED_CLONE_TRANSFER || detachTransferable) && function (arrayBuffer, newLength, preserveResizability) {
|
|
5073
|
+
var byteLength = arrayBufferByteLength(arrayBuffer);
|
|
5074
|
+
var newByteLength = newLength === undefined ? byteLength : toIndex(newLength);
|
|
5075
|
+
var fixedLength = !isResizable || !isResizable(arrayBuffer);
|
|
5076
|
+
var newBuffer;
|
|
5077
|
+
if (isDetached(arrayBuffer)) throw new TypeError$1('ArrayBuffer is detached');
|
|
5078
|
+
if (PROPER_STRUCTURED_CLONE_TRANSFER) {
|
|
5079
|
+
arrayBuffer = structuredClone(arrayBuffer, { transfer: [arrayBuffer] });
|
|
5080
|
+
if (byteLength === newByteLength && (preserveResizability || fixedLength)) return arrayBuffer;
|
|
5081
|
+
}
|
|
5082
|
+
if (byteLength >= newByteLength && (!preserveResizability || fixedLength)) {
|
|
5083
|
+
newBuffer = slice(arrayBuffer, 0, newByteLength);
|
|
5084
|
+
} else {
|
|
5085
|
+
var options = preserveResizability && !fixedLength && maxByteLength ? { maxByteLength: maxByteLength(arrayBuffer) } : undefined;
|
|
5086
|
+
newBuffer = new ArrayBuffer$1(newByteLength, options);
|
|
5087
|
+
var a = new DataView$1(arrayBuffer);
|
|
5088
|
+
var b = new DataView$1(newBuffer);
|
|
5089
|
+
var copyLength = min(newByteLength, byteLength);
|
|
5090
|
+
for (var i = 0; i < copyLength; i++) setInt8(b, i, getInt8(a, i));
|
|
5091
|
+
}
|
|
5092
|
+
if (!PROPER_STRUCTURED_CLONE_TRANSFER) detachTransferable(arrayBuffer);
|
|
5093
|
+
return newBuffer;
|
|
5094
|
+
};
|
|
5095
|
+
|
|
5096
|
+
var $$4 = _export;
|
|
5097
|
+
var $transfer$1 = arrayBufferTransfer;
|
|
5098
|
+
|
|
5099
|
+
// `ArrayBuffer.prototype.transfer` method
|
|
5100
|
+
// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfer
|
|
5101
|
+
if ($transfer$1) $$4({ target: 'ArrayBuffer', proto: true }, {
|
|
5102
|
+
transfer: function transfer() {
|
|
5103
|
+
return $transfer$1(this, arguments.length ? arguments[0] : undefined, true);
|
|
5104
|
+
}
|
|
5105
|
+
});
|
|
5106
|
+
|
|
5107
|
+
var $$3 = _export;
|
|
5108
|
+
var $transfer = arrayBufferTransfer;
|
|
5109
|
+
|
|
5110
|
+
// `ArrayBuffer.prototype.transferToFixedLength` method
|
|
5111
|
+
// https://tc39.es/proposal-arraybuffer-transfer/#sec-arraybuffer.prototype.transfertofixedlength
|
|
5112
|
+
if ($transfer) $$3({ target: 'ArrayBuffer', proto: true }, {
|
|
5113
|
+
transferToFixedLength: function transferToFixedLength() {
|
|
5114
|
+
return $transfer(this, arguments.length ? arguments[0] : undefined, false);
|
|
5115
|
+
}
|
|
5116
|
+
});
|
|
5117
|
+
|
|
5118
|
+
var commonAlphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';
|
|
5119
|
+
var base64Alphabet = commonAlphabet + '+/';
|
|
5120
|
+
var base64UrlAlphabet = commonAlphabet + '-_';
|
|
5121
|
+
|
|
5122
|
+
var inverse = function (characters) {
|
|
5123
|
+
// TODO: use `Object.create(null)` in `core-js@4`
|
|
5124
|
+
var result = {};
|
|
5125
|
+
var index = 0;
|
|
5126
|
+
for (; index < 64; index++) result[characters.charAt(index)] = index;
|
|
5127
|
+
return result;
|
|
5128
|
+
};
|
|
5129
|
+
|
|
5130
|
+
var base64Map = {
|
|
5131
|
+
i2c: base64Alphabet,
|
|
5132
|
+
c2i: inverse(base64Alphabet),
|
|
5133
|
+
i2cUrl: base64UrlAlphabet,
|
|
5134
|
+
c2iUrl: inverse(base64UrlAlphabet)
|
|
5135
|
+
};
|
|
5136
|
+
|
|
5137
|
+
var $$2 = _export;
|
|
5138
|
+
var global$2 = global$u;
|
|
5139
|
+
var getBuiltIn$3 = getBuiltIn$9;
|
|
5140
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
5141
|
+
var call = functionCall;
|
|
5142
|
+
var fails$2 = fails$v;
|
|
5143
|
+
var toString$1 = toString$9;
|
|
5144
|
+
var validateArgumentsLength = validateArgumentsLength$4;
|
|
5145
|
+
var i2c = base64Map.i2c;
|
|
5146
|
+
|
|
5147
|
+
var $btoa = getBuiltIn$3('btoa');
|
|
5148
|
+
var charAt = uncurryThis$1(''.charAt);
|
|
5149
|
+
var charCodeAt = uncurryThis$1(''.charCodeAt);
|
|
5150
|
+
|
|
5151
|
+
var BASIC = !!$btoa && !fails$2(function () {
|
|
5152
|
+
return $btoa('hi') !== 'aGk=';
|
|
5153
|
+
});
|
|
5154
|
+
|
|
5155
|
+
var NO_ARG_RECEIVING_CHECK = BASIC && !fails$2(function () {
|
|
5156
|
+
$btoa();
|
|
5157
|
+
});
|
|
5158
|
+
|
|
5159
|
+
var WRONG_ARG_CONVERSION = BASIC && fails$2(function () {
|
|
5160
|
+
return $btoa(null) !== 'bnVsbA==';
|
|
5161
|
+
});
|
|
5162
|
+
|
|
5163
|
+
var WRONG_ARITY = BASIC && $btoa.length !== 1;
|
|
5164
|
+
|
|
5165
|
+
// `btoa` method
|
|
5166
|
+
// https://html.spec.whatwg.org/multipage/webappapis.html#dom-btoa
|
|
5167
|
+
$$2({ global: true, bind: true, enumerable: true, forced: !BASIC || NO_ARG_RECEIVING_CHECK || WRONG_ARG_CONVERSION || WRONG_ARITY }, {
|
|
5168
|
+
btoa: function btoa(data) {
|
|
5169
|
+
validateArgumentsLength(arguments.length, 1);
|
|
5170
|
+
// `webpack` dev server bug on IE global methods - use call(fn, global, ...)
|
|
5171
|
+
if (BASIC) return call($btoa, global$2, toString$1(data));
|
|
5172
|
+
var string = toString$1(data);
|
|
5173
|
+
var output = '';
|
|
5174
|
+
var position = 0;
|
|
5175
|
+
var map = i2c;
|
|
5176
|
+
var block, charCode;
|
|
5177
|
+
while (charAt(string, position) || (map = '=', position % 1)) {
|
|
5178
|
+
charCode = charCodeAt(string, position += 3 / 4);
|
|
5179
|
+
if (charCode > 0xFF) {
|
|
5180
|
+
throw new (getBuiltIn$3('DOMException'))('The string contains characters outside of the Latin1 range', 'InvalidCharacterError');
|
|
5181
|
+
}
|
|
5182
|
+
block = block << 8 | charCode;
|
|
5183
|
+
output += charAt(map, 63 & block >> 8 - position % 1 * 8);
|
|
5184
|
+
} return output;
|
|
5185
|
+
}
|
|
5186
|
+
});
|
|
5187
|
+
|
|
5188
|
+
var toString = toString$9;
|
|
5189
|
+
|
|
5190
|
+
var normalizeStringArgument$3 = function (argument, $default) {
|
|
5191
|
+
return argument === undefined ? arguments.length < 2 ? '' : $default : toString(argument);
|
|
5192
|
+
};
|
|
5193
|
+
|
|
5194
|
+
var DESCRIPTORS$2 = descriptors;
|
|
5195
|
+
var fails$1 = fails$v;
|
|
5196
|
+
var anObject$1 = anObject$i;
|
|
5197
|
+
var normalizeStringArgument$2 = normalizeStringArgument$3;
|
|
5198
|
+
|
|
5199
|
+
var nativeErrorToString = Error.prototype.toString;
|
|
5200
|
+
|
|
5201
|
+
var INCORRECT_TO_STRING$1 = fails$1(function () {
|
|
5202
|
+
if (DESCRIPTORS$2) {
|
|
5203
|
+
// Chrome 32- incorrectly call accessor
|
|
5204
|
+
// eslint-disable-next-line es/no-object-create, es/no-object-defineproperty -- safe
|
|
5205
|
+
var object = Object.create(Object.defineProperty({}, 'name', { get: function () {
|
|
5206
|
+
return this === object;
|
|
5207
|
+
} }));
|
|
5208
|
+
if (nativeErrorToString.call(object) !== 'true') return true;
|
|
5209
|
+
}
|
|
5210
|
+
// FF10- does not properly handle non-strings
|
|
5211
|
+
return nativeErrorToString.call({ message: 1, name: 2 }) !== '2: 1'
|
|
5212
|
+
// IE8 does not properly handle defaults
|
|
5213
|
+
|| nativeErrorToString.call({}) !== 'Error';
|
|
5214
|
+
});
|
|
5215
|
+
|
|
5216
|
+
var errorToString$1 = INCORRECT_TO_STRING$1 ? function toString() {
|
|
5217
|
+
var O = anObject$1(this);
|
|
5218
|
+
var name = normalizeStringArgument$2(O.name, 'Error');
|
|
5219
|
+
var message = normalizeStringArgument$2(O.message);
|
|
5220
|
+
return !name ? message : !message ? name : name + ': ' + message;
|
|
5221
|
+
} : nativeErrorToString;
|
|
5222
|
+
|
|
5223
|
+
var domExceptionConstants = {
|
|
5224
|
+
IndexSizeError: { s: 'INDEX_SIZE_ERR', c: 1, m: 1 },
|
|
5225
|
+
DOMStringSizeError: { s: 'DOMSTRING_SIZE_ERR', c: 2, m: 0 },
|
|
5226
|
+
HierarchyRequestError: { s: 'HIERARCHY_REQUEST_ERR', c: 3, m: 1 },
|
|
5227
|
+
WrongDocumentError: { s: 'WRONG_DOCUMENT_ERR', c: 4, m: 1 },
|
|
5228
|
+
InvalidCharacterError: { s: 'INVALID_CHARACTER_ERR', c: 5, m: 1 },
|
|
5229
|
+
NoDataAllowedError: { s: 'NO_DATA_ALLOWED_ERR', c: 6, m: 0 },
|
|
5230
|
+
NoModificationAllowedError: { s: 'NO_MODIFICATION_ALLOWED_ERR', c: 7, m: 1 },
|
|
5231
|
+
NotFoundError: { s: 'NOT_FOUND_ERR', c: 8, m: 1 },
|
|
5232
|
+
NotSupportedError: { s: 'NOT_SUPPORTED_ERR', c: 9, m: 1 },
|
|
5233
|
+
InUseAttributeError: { s: 'INUSE_ATTRIBUTE_ERR', c: 10, m: 1 },
|
|
5234
|
+
InvalidStateError: { s: 'INVALID_STATE_ERR', c: 11, m: 1 },
|
|
5235
|
+
SyntaxError: { s: 'SYNTAX_ERR', c: 12, m: 1 },
|
|
5236
|
+
InvalidModificationError: { s: 'INVALID_MODIFICATION_ERR', c: 13, m: 1 },
|
|
5237
|
+
NamespaceError: { s: 'NAMESPACE_ERR', c: 14, m: 1 },
|
|
5238
|
+
InvalidAccessError: { s: 'INVALID_ACCESS_ERR', c: 15, m: 1 },
|
|
5239
|
+
ValidationError: { s: 'VALIDATION_ERR', c: 16, m: 0 },
|
|
5240
|
+
TypeMismatchError: { s: 'TYPE_MISMATCH_ERR', c: 17, m: 1 },
|
|
5241
|
+
SecurityError: { s: 'SECURITY_ERR', c: 18, m: 1 },
|
|
5242
|
+
NetworkError: { s: 'NETWORK_ERR', c: 19, m: 1 },
|
|
5243
|
+
AbortError: { s: 'ABORT_ERR', c: 20, m: 1 },
|
|
5244
|
+
URLMismatchError: { s: 'URL_MISMATCH_ERR', c: 21, m: 1 },
|
|
5245
|
+
QuotaExceededError: { s: 'QUOTA_EXCEEDED_ERR', c: 22, m: 1 },
|
|
5246
|
+
TimeoutError: { s: 'TIMEOUT_ERR', c: 23, m: 1 },
|
|
5247
|
+
InvalidNodeTypeError: { s: 'INVALID_NODE_TYPE_ERR', c: 24, m: 1 },
|
|
5248
|
+
DataCloneError: { s: 'DATA_CLONE_ERR', c: 25, m: 1 }
|
|
5249
|
+
};
|
|
5250
|
+
|
|
5251
|
+
var uncurryThis = functionUncurryThis;
|
|
5252
|
+
|
|
5253
|
+
var $Error = Error;
|
|
5254
|
+
var replace = uncurryThis(''.replace);
|
|
5255
|
+
|
|
5256
|
+
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
5257
|
+
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
5258
|
+
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
5259
|
+
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
5260
|
+
|
|
5261
|
+
var errorStackClear = function (stack, dropEntries) {
|
|
5262
|
+
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
5263
|
+
while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
5264
|
+
} return stack;
|
|
5265
|
+
};
|
|
5266
|
+
|
|
5267
|
+
var $$1 = _export;
|
|
5268
|
+
var tryNodeRequire = tryNodeRequire$2;
|
|
5269
|
+
var getBuiltIn$2 = getBuiltIn$9;
|
|
5270
|
+
var fails = fails$v;
|
|
5271
|
+
var create = objectCreate;
|
|
5272
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$8;
|
|
5273
|
+
var defineProperty$1 = objectDefineProperty.f;
|
|
5274
|
+
var defineBuiltIn = defineBuiltIn$b;
|
|
5275
|
+
var defineBuiltInAccessor = defineBuiltInAccessor$8;
|
|
5276
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
5277
|
+
var anInstance$1 = anInstance$5;
|
|
5278
|
+
var anObject = anObject$i;
|
|
5279
|
+
var errorToString = errorToString$1;
|
|
5280
|
+
var normalizeStringArgument$1 = normalizeStringArgument$3;
|
|
5281
|
+
var DOMExceptionConstants$1 = domExceptionConstants;
|
|
5282
|
+
var clearErrorStack$1 = errorStackClear;
|
|
5283
|
+
var InternalStateModule = internalState;
|
|
5284
|
+
var DESCRIPTORS$1 = descriptors;
|
|
5285
|
+
|
|
5286
|
+
var DOM_EXCEPTION$2 = 'DOMException';
|
|
5287
|
+
var DATA_CLONE_ERR = 'DATA_CLONE_ERR';
|
|
5288
|
+
var Error$2 = getBuiltIn$2('Error');
|
|
5289
|
+
// NodeJS < 17.0 does not expose `DOMException` to global
|
|
5290
|
+
var NativeDOMException$1 = getBuiltIn$2(DOM_EXCEPTION$2) || (function () {
|
|
5291
|
+
try {
|
|
5292
|
+
// NodeJS < 15.0 does not expose `MessageChannel` to global
|
|
5293
|
+
var MessageChannel = getBuiltIn$2('MessageChannel') || tryNodeRequire('worker_threads').MessageChannel;
|
|
5294
|
+
// eslint-disable-next-line es/no-weak-map, unicorn/require-post-message-target-origin -- safe
|
|
5295
|
+
new MessageChannel().port1.postMessage(new WeakMap());
|
|
5296
|
+
} catch (error) {
|
|
5297
|
+
if (error.name === DATA_CLONE_ERR && error.code === 25) return error.constructor;
|
|
5298
|
+
}
|
|
5299
|
+
})();
|
|
5300
|
+
var NativeDOMExceptionPrototype = NativeDOMException$1 && NativeDOMException$1.prototype;
|
|
5301
|
+
var ErrorPrototype = Error$2.prototype;
|
|
5302
|
+
var setInternalState = InternalStateModule.set;
|
|
5303
|
+
var getInternalState = InternalStateModule.getterFor(DOM_EXCEPTION$2);
|
|
5304
|
+
var HAS_STACK = 'stack' in new Error$2(DOM_EXCEPTION$2);
|
|
5305
|
+
|
|
5306
|
+
var codeFor = function (name) {
|
|
5307
|
+
return hasOwn$1(DOMExceptionConstants$1, name) && DOMExceptionConstants$1[name].m ? DOMExceptionConstants$1[name].c : 0;
|
|
5308
|
+
};
|
|
5309
|
+
|
|
5310
|
+
var $DOMException$1 = function DOMException() {
|
|
5311
|
+
anInstance$1(this, DOMExceptionPrototype$1);
|
|
5312
|
+
var argumentsLength = arguments.length;
|
|
5313
|
+
var message = normalizeStringArgument$1(argumentsLength < 1 ? undefined : arguments[0]);
|
|
5314
|
+
var name = normalizeStringArgument$1(argumentsLength < 2 ? undefined : arguments[1], 'Error');
|
|
5315
|
+
var code = codeFor(name);
|
|
5316
|
+
setInternalState(this, {
|
|
5317
|
+
type: DOM_EXCEPTION$2,
|
|
5318
|
+
name: name,
|
|
5319
|
+
message: message,
|
|
5320
|
+
code: code
|
|
5321
|
+
});
|
|
5322
|
+
if (!DESCRIPTORS$1) {
|
|
5323
|
+
this.name = name;
|
|
5324
|
+
this.message = message;
|
|
5325
|
+
this.code = code;
|
|
5326
|
+
}
|
|
5327
|
+
if (HAS_STACK) {
|
|
5328
|
+
var error = new Error$2(message);
|
|
5329
|
+
error.name = DOM_EXCEPTION$2;
|
|
5330
|
+
defineProperty$1(this, 'stack', createPropertyDescriptor$1(1, clearErrorStack$1(error.stack, 1)));
|
|
5331
|
+
}
|
|
5332
|
+
};
|
|
5333
|
+
|
|
5334
|
+
var DOMExceptionPrototype$1 = $DOMException$1.prototype = create(ErrorPrototype);
|
|
5335
|
+
|
|
5336
|
+
var createGetterDescriptor = function (get) {
|
|
5337
|
+
return { enumerable: true, configurable: true, get: get };
|
|
5338
|
+
};
|
|
5339
|
+
|
|
5340
|
+
var getterFor = function (key) {
|
|
5341
|
+
return createGetterDescriptor(function () {
|
|
5342
|
+
return getInternalState(this)[key];
|
|
5343
|
+
});
|
|
5344
|
+
};
|
|
5345
|
+
|
|
5346
|
+
if (DESCRIPTORS$1) {
|
|
5347
|
+
// `DOMException.prototype.code` getter
|
|
5348
|
+
defineBuiltInAccessor(DOMExceptionPrototype$1, 'code', getterFor('code'));
|
|
5349
|
+
// `DOMException.prototype.message` getter
|
|
5350
|
+
defineBuiltInAccessor(DOMExceptionPrototype$1, 'message', getterFor('message'));
|
|
5351
|
+
// `DOMException.prototype.name` getter
|
|
5352
|
+
defineBuiltInAccessor(DOMExceptionPrototype$1, 'name', getterFor('name'));
|
|
5353
|
+
}
|
|
5354
|
+
|
|
5355
|
+
defineProperty$1(DOMExceptionPrototype$1, 'constructor', createPropertyDescriptor$1(1, $DOMException$1));
|
|
5356
|
+
|
|
5357
|
+
// FF36- DOMException is a function, but can't be constructed
|
|
5358
|
+
var INCORRECT_CONSTRUCTOR = fails(function () {
|
|
5359
|
+
return !(new NativeDOMException$1() instanceof Error$2);
|
|
5360
|
+
});
|
|
5361
|
+
|
|
5362
|
+
// Safari 10.1 / Chrome 32- / IE8- DOMException.prototype.toString bugs
|
|
5363
|
+
var INCORRECT_TO_STRING = INCORRECT_CONSTRUCTOR || fails(function () {
|
|
5364
|
+
return ErrorPrototype.toString !== errorToString || String(new NativeDOMException$1(1, 2)) !== '2: 1';
|
|
5365
|
+
});
|
|
5366
|
+
|
|
5367
|
+
// Deno 1.6.3- DOMException.prototype.code just missed
|
|
5368
|
+
var INCORRECT_CODE = INCORRECT_CONSTRUCTOR || fails(function () {
|
|
5369
|
+
return new NativeDOMException$1(1, 'DataCloneError').code !== 25;
|
|
5370
|
+
});
|
|
5371
|
+
|
|
5372
|
+
// Deno 1.6.3- DOMException constants just missed
|
|
5373
|
+
INCORRECT_CONSTRUCTOR
|
|
5374
|
+
|| NativeDOMException$1[DATA_CLONE_ERR] !== 25
|
|
5375
|
+
|| NativeDOMExceptionPrototype[DATA_CLONE_ERR] !== 25;
|
|
5376
|
+
|
|
5377
|
+
var FORCED_CONSTRUCTOR$1 = INCORRECT_CONSTRUCTOR;
|
|
5378
|
+
|
|
5379
|
+
// `DOMException` constructor
|
|
5380
|
+
// https://webidl.spec.whatwg.org/#idl-DOMException
|
|
5381
|
+
$$1({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR$1 }, {
|
|
5382
|
+
DOMException: FORCED_CONSTRUCTOR$1 ? $DOMException$1 : NativeDOMException$1
|
|
5383
|
+
});
|
|
5384
|
+
|
|
5385
|
+
var PolyfilledDOMException$1 = getBuiltIn$2(DOM_EXCEPTION$2);
|
|
5386
|
+
var PolyfilledDOMExceptionPrototype$1 = PolyfilledDOMException$1.prototype;
|
|
5387
|
+
|
|
5388
|
+
if (INCORRECT_TO_STRING && (NativeDOMException$1 === PolyfilledDOMException$1)) {
|
|
5389
|
+
defineBuiltIn(PolyfilledDOMExceptionPrototype$1, 'toString', errorToString);
|
|
5390
|
+
}
|
|
5391
|
+
|
|
5392
|
+
if (INCORRECT_CODE && DESCRIPTORS$1 && NativeDOMException$1 === PolyfilledDOMException$1) {
|
|
5393
|
+
defineBuiltInAccessor(PolyfilledDOMExceptionPrototype$1, 'code', createGetterDescriptor(function () {
|
|
5394
|
+
return codeFor(anObject(this).name);
|
|
5395
|
+
}));
|
|
5396
|
+
}
|
|
5397
|
+
|
|
5398
|
+
// `DOMException` constants
|
|
5399
|
+
for (var key$1 in DOMExceptionConstants$1) if (hasOwn$1(DOMExceptionConstants$1, key$1)) {
|
|
5400
|
+
var constant$1 = DOMExceptionConstants$1[key$1];
|
|
5401
|
+
var constantName$1 = constant$1.s;
|
|
5402
|
+
var descriptor$1 = createPropertyDescriptor$1(6, constant$1.c);
|
|
5403
|
+
if (!hasOwn$1(PolyfilledDOMException$1, constantName$1)) {
|
|
5404
|
+
defineProperty$1(PolyfilledDOMException$1, constantName$1, descriptor$1);
|
|
5405
|
+
}
|
|
5406
|
+
if (!hasOwn$1(PolyfilledDOMExceptionPrototype$1, constantName$1)) {
|
|
5407
|
+
defineProperty$1(PolyfilledDOMExceptionPrototype$1, constantName$1, descriptor$1);
|
|
5408
|
+
}
|
|
5409
|
+
}
|
|
5410
|
+
|
|
5411
|
+
var $ = _export;
|
|
5412
|
+
var global$1 = global$u;
|
|
5413
|
+
var getBuiltIn$1 = getBuiltIn$9;
|
|
5414
|
+
var createPropertyDescriptor = createPropertyDescriptor$8;
|
|
5415
|
+
var defineProperty = objectDefineProperty.f;
|
|
5416
|
+
var hasOwn = hasOwnProperty_1;
|
|
5417
|
+
var anInstance = anInstance$5;
|
|
5418
|
+
var inheritIfRequired = inheritIfRequired$3;
|
|
5419
|
+
var normalizeStringArgument = normalizeStringArgument$3;
|
|
5420
|
+
var DOMExceptionConstants = domExceptionConstants;
|
|
5421
|
+
var clearErrorStack = errorStackClear;
|
|
5422
|
+
var DESCRIPTORS = descriptors;
|
|
5423
|
+
|
|
5424
|
+
var DOM_EXCEPTION$1 = 'DOMException';
|
|
5425
|
+
var Error$1 = getBuiltIn$1('Error');
|
|
5426
|
+
var NativeDOMException = getBuiltIn$1(DOM_EXCEPTION$1);
|
|
5427
|
+
|
|
5428
|
+
var $DOMException = function DOMException() {
|
|
5429
|
+
anInstance(this, DOMExceptionPrototype);
|
|
5430
|
+
var argumentsLength = arguments.length;
|
|
5431
|
+
var message = normalizeStringArgument(argumentsLength < 1 ? undefined : arguments[0]);
|
|
5432
|
+
var name = normalizeStringArgument(argumentsLength < 2 ? undefined : arguments[1], 'Error');
|
|
5433
|
+
var that = new NativeDOMException(message, name);
|
|
5434
|
+
var error = new Error$1(message);
|
|
5435
|
+
error.name = DOM_EXCEPTION$1;
|
|
5436
|
+
defineProperty(that, 'stack', createPropertyDescriptor(1, clearErrorStack(error.stack, 1)));
|
|
5437
|
+
inheritIfRequired(that, this, $DOMException);
|
|
5438
|
+
return that;
|
|
5439
|
+
};
|
|
5440
|
+
|
|
5441
|
+
var DOMExceptionPrototype = $DOMException.prototype = NativeDOMException.prototype;
|
|
5442
|
+
|
|
5443
|
+
var ERROR_HAS_STACK = 'stack' in new Error$1(DOM_EXCEPTION$1);
|
|
5444
|
+
var DOM_EXCEPTION_HAS_STACK = 'stack' in new NativeDOMException(1, 2);
|
|
5445
|
+
|
|
5446
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
5447
|
+
var descriptor = NativeDOMException && DESCRIPTORS && Object.getOwnPropertyDescriptor(global$1, DOM_EXCEPTION$1);
|
|
5448
|
+
|
|
5449
|
+
// Bun ~ 0.1.1 DOMException have incorrect descriptor and we can't redefine it
|
|
5450
|
+
// https://github.com/Jarred-Sumner/bun/issues/399
|
|
5451
|
+
var BUGGY_DESCRIPTOR = !!descriptor && !(descriptor.writable && descriptor.configurable);
|
|
5452
|
+
|
|
5453
|
+
var FORCED_CONSTRUCTOR = ERROR_HAS_STACK && !BUGGY_DESCRIPTOR && !DOM_EXCEPTION_HAS_STACK;
|
|
5454
|
+
|
|
5455
|
+
// `DOMException` constructor patch for `.stack` where it's required
|
|
5456
|
+
// https://webidl.spec.whatwg.org/#es-DOMException-specialness
|
|
5457
|
+
$({ global: true, constructor: true, forced: FORCED_CONSTRUCTOR }, { // TODO: fix export logic
|
|
5458
|
+
DOMException: FORCED_CONSTRUCTOR ? $DOMException : NativeDOMException
|
|
5459
|
+
});
|
|
5460
|
+
|
|
5461
|
+
var PolyfilledDOMException = getBuiltIn$1(DOM_EXCEPTION$1);
|
|
5462
|
+
var PolyfilledDOMExceptionPrototype = PolyfilledDOMException.prototype;
|
|
5463
|
+
|
|
5464
|
+
if (PolyfilledDOMExceptionPrototype.constructor !== PolyfilledDOMException) {
|
|
5465
|
+
{
|
|
5466
|
+
defineProperty(PolyfilledDOMExceptionPrototype, 'constructor', createPropertyDescriptor(1, PolyfilledDOMException));
|
|
5467
|
+
}
|
|
5468
|
+
|
|
5469
|
+
for (var key in DOMExceptionConstants) if (hasOwn(DOMExceptionConstants, key)) {
|
|
5470
|
+
var constant = DOMExceptionConstants[key];
|
|
5471
|
+
var constantName = constant.s;
|
|
5472
|
+
if (!hasOwn(PolyfilledDOMException, constantName)) {
|
|
5473
|
+
defineProperty(PolyfilledDOMException, constantName, createPropertyDescriptor(6, constant.c));
|
|
5474
|
+
}
|
|
5475
|
+
}
|
|
5476
|
+
}
|
|
5477
|
+
|
|
5478
|
+
var getBuiltIn = getBuiltIn$9;
|
|
5479
|
+
var setToStringTag = setToStringTag$6;
|
|
5480
|
+
|
|
5481
|
+
var DOM_EXCEPTION = 'DOMException';
|
|
5482
|
+
|
|
5483
|
+
// `DOMException.prototype[@@toStringTag]` property
|
|
5484
|
+
setToStringTag(getBuiltIn(DOM_EXCEPTION), DOM_EXCEPTION);
|
|
5485
|
+
|
|
4662
5486
|
var SessionStorageKey;
|
|
4663
5487
|
(function (SessionStorageKey) {
|
|
4664
5488
|
SessionStorageKey["OAUTH_STATE"] = "oauth_state";
|