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