@intrig/react 1.0.6 → 1.0.7
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/README.md +162 -17
- package/index.esm.js +1347 -526
- package/package.json +3 -3
- package/src/logger.d.ts +7 -0
- package/src/media-type-utils.d.ts +1 -0
package/index.esm.js
CHANGED
|
@@ -5,6 +5,10 @@ import { XMLParser } from 'fast-xml-parser';
|
|
|
5
5
|
|
|
6
6
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
7
7
|
|
|
8
|
+
function getDefaultExportFromCjs (x) {
|
|
9
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
var check = function (it) {
|
|
9
13
|
return it && it.Math === Math && it;
|
|
10
14
|
};
|
|
@@ -23,7 +27,7 @@ var globalThis_1 =
|
|
|
23
27
|
|
|
24
28
|
var objectGetOwnPropertyDescriptor = {};
|
|
25
29
|
|
|
26
|
-
var fails$
|
|
30
|
+
var fails$i = function (exec) {
|
|
27
31
|
try {
|
|
28
32
|
return !!exec();
|
|
29
33
|
} catch (error) {
|
|
@@ -31,17 +35,17 @@ var fails$g = function (exec) {
|
|
|
31
35
|
}
|
|
32
36
|
};
|
|
33
37
|
|
|
34
|
-
var fails$
|
|
38
|
+
var fails$h = fails$i;
|
|
35
39
|
|
|
36
40
|
// Detect IE8's incomplete defineProperty implementation
|
|
37
|
-
var descriptors = !fails$
|
|
41
|
+
var descriptors = !fails$h(function () {
|
|
38
42
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
39
43
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
40
44
|
});
|
|
41
45
|
|
|
42
|
-
var fails$
|
|
46
|
+
var fails$g = fails$i;
|
|
43
47
|
|
|
44
|
-
var functionBindNative = !fails$
|
|
48
|
+
var functionBindNative = !fails$g(function () {
|
|
45
49
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
46
50
|
var test = (function () { /* empty */ }).bind();
|
|
47
51
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -50,25 +54,25 @@ var functionBindNative = !fails$e(function () {
|
|
|
50
54
|
|
|
51
55
|
var NATIVE_BIND$3 = functionBindNative;
|
|
52
56
|
|
|
53
|
-
var call$
|
|
54
|
-
|
|
55
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
56
|
-
return call$
|
|
57
|
+
var call$g = Function.prototype.call;
|
|
58
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
59
|
+
var functionCall = NATIVE_BIND$3 ? call$g.bind(call$g) : function () {
|
|
60
|
+
return call$g.apply(call$g, arguments);
|
|
57
61
|
};
|
|
58
62
|
|
|
59
63
|
var objectPropertyIsEnumerable = {};
|
|
60
64
|
|
|
61
65
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
|
62
66
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
63
|
-
var getOwnPropertyDescriptor$
|
|
67
|
+
var getOwnPropertyDescriptor$3 = Object.getOwnPropertyDescriptor;
|
|
64
68
|
|
|
65
69
|
// Nashorn ~ JDK8 bug
|
|
66
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$
|
|
70
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$3 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
|
67
71
|
|
|
68
72
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
|
69
73
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
|
70
74
|
objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
71
|
-
var descriptor = getOwnPropertyDescriptor$
|
|
75
|
+
var descriptor = getOwnPropertyDescriptor$3(this, V);
|
|
72
76
|
return !!descriptor && descriptor.enumerable;
|
|
73
77
|
} : $propertyIsEnumerable;
|
|
74
78
|
|
|
@@ -84,12 +88,13 @@ var createPropertyDescriptor$5 = function (bitmap, value) {
|
|
|
84
88
|
var NATIVE_BIND$2 = functionBindNative;
|
|
85
89
|
|
|
86
90
|
var FunctionPrototype$2 = Function.prototype;
|
|
87
|
-
var call$
|
|
88
|
-
|
|
91
|
+
var call$f = FunctionPrototype$2.call;
|
|
92
|
+
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
93
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$f, call$f);
|
|
89
94
|
|
|
90
95
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
91
96
|
return function () {
|
|
92
|
-
return call$
|
|
97
|
+
return call$f.apply(fn, arguments);
|
|
93
98
|
};
|
|
94
99
|
};
|
|
95
100
|
|
|
@@ -103,19 +108,19 @@ var classofRaw$2 = function (it) {
|
|
|
103
108
|
};
|
|
104
109
|
|
|
105
110
|
var uncurryThis$f = functionUncurryThis;
|
|
106
|
-
var fails$
|
|
107
|
-
var classof$
|
|
111
|
+
var fails$f = fails$i;
|
|
112
|
+
var classof$7 = classofRaw$2;
|
|
108
113
|
|
|
109
114
|
var $Object$4 = Object;
|
|
110
115
|
var split = uncurryThis$f(''.split);
|
|
111
116
|
|
|
112
117
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
113
|
-
var indexedObject = fails$
|
|
118
|
+
var indexedObject = fails$f(function () {
|
|
114
119
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
115
120
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
116
121
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
117
122
|
}) ? function (it) {
|
|
118
|
-
return classof$
|
|
123
|
+
return classof$7(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
119
124
|
} : $Object$4;
|
|
120
125
|
|
|
121
126
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -126,12 +131,12 @@ var isNullOrUndefined$4 = function (it) {
|
|
|
126
131
|
|
|
127
132
|
var isNullOrUndefined$3 = isNullOrUndefined$4;
|
|
128
133
|
|
|
129
|
-
var $TypeError$
|
|
134
|
+
var $TypeError$i = TypeError;
|
|
130
135
|
|
|
131
136
|
// `RequireObjectCoercible` abstract operation
|
|
132
137
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
133
138
|
var requireObjectCoercible$4 = function (it) {
|
|
134
|
-
if (isNullOrUndefined$3(it)) throw new $TypeError$
|
|
139
|
+
if (isNullOrUndefined$3(it)) throw new $TypeError$i("Can't call method on " + it);
|
|
135
140
|
return it;
|
|
136
141
|
};
|
|
137
142
|
|
|
@@ -149,46 +154,46 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
149
154
|
// `IsCallable` abstract operation
|
|
150
155
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
151
156
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
152
|
-
var isCallable$
|
|
157
|
+
var isCallable$l = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
153
158
|
return typeof argument == 'function' || argument === documentAll;
|
|
154
159
|
} : function (argument) {
|
|
155
160
|
return typeof argument == 'function';
|
|
156
161
|
};
|
|
157
162
|
|
|
158
|
-
var isCallable$
|
|
163
|
+
var isCallable$k = isCallable$l;
|
|
159
164
|
|
|
160
165
|
var isObject$d = function (it) {
|
|
161
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
166
|
+
return typeof it == 'object' ? it !== null : isCallable$k(it);
|
|
162
167
|
};
|
|
163
168
|
|
|
164
|
-
var globalThis$
|
|
165
|
-
var isCallable$
|
|
169
|
+
var globalThis$l = globalThis_1;
|
|
170
|
+
var isCallable$j = isCallable$l;
|
|
166
171
|
|
|
167
172
|
var aFunction = function (argument) {
|
|
168
|
-
return isCallable$
|
|
173
|
+
return isCallable$j(argument) ? argument : undefined;
|
|
169
174
|
};
|
|
170
175
|
|
|
171
176
|
var getBuiltIn$8 = function (namespace, method) {
|
|
172
|
-
return arguments.length < 2 ? aFunction(globalThis$
|
|
177
|
+
return arguments.length < 2 ? aFunction(globalThis$l[namespace]) : globalThis$l[namespace] && globalThis$l[namespace][method];
|
|
173
178
|
};
|
|
174
179
|
|
|
175
180
|
var uncurryThis$e = functionUncurryThis;
|
|
176
181
|
|
|
177
182
|
var objectIsPrototypeOf = uncurryThis$e({}.isPrototypeOf);
|
|
178
183
|
|
|
179
|
-
var globalThis$
|
|
184
|
+
var globalThis$k = globalThis_1;
|
|
180
185
|
|
|
181
|
-
var navigator = globalThis$
|
|
186
|
+
var navigator = globalThis$k.navigator;
|
|
182
187
|
var userAgent$5 = navigator && navigator.userAgent;
|
|
183
188
|
|
|
184
189
|
var environmentUserAgent = userAgent$5 ? String(userAgent$5) : '';
|
|
185
190
|
|
|
186
|
-
var globalThis$
|
|
191
|
+
var globalThis$j = globalThis_1;
|
|
187
192
|
var userAgent$4 = environmentUserAgent;
|
|
188
193
|
|
|
189
|
-
var process$
|
|
190
|
-
var Deno$1 = globalThis$
|
|
191
|
-
var versions = process$
|
|
194
|
+
var process$4 = globalThis$j.process;
|
|
195
|
+
var Deno$1 = globalThis$j.Deno;
|
|
196
|
+
var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
|
|
192
197
|
var v8 = versions && versions.v8;
|
|
193
198
|
var match, version;
|
|
194
199
|
|
|
@@ -213,13 +218,13 @@ var environmentV8Version = version;
|
|
|
213
218
|
|
|
214
219
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
215
220
|
var V8_VERSION$1 = environmentV8Version;
|
|
216
|
-
var fails$
|
|
217
|
-
var globalThis$
|
|
221
|
+
var fails$e = fails$i;
|
|
222
|
+
var globalThis$i = globalThis_1;
|
|
218
223
|
|
|
219
|
-
var $String$5 = globalThis$
|
|
224
|
+
var $String$5 = globalThis$i.String;
|
|
220
225
|
|
|
221
226
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
222
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
227
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
|
|
223
228
|
var symbol = Symbol('symbol detection');
|
|
224
229
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
225
230
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -233,12 +238,12 @@ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$c(func
|
|
|
233
238
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
234
239
|
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
235
240
|
|
|
236
|
-
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
237
|
-
|
|
238
|
-
|
|
241
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1 &&
|
|
242
|
+
!Symbol.sham &&
|
|
243
|
+
typeof Symbol.iterator == 'symbol';
|
|
239
244
|
|
|
240
245
|
var getBuiltIn$7 = getBuiltIn$8;
|
|
241
|
-
var isCallable$
|
|
246
|
+
var isCallable$i = isCallable$l;
|
|
242
247
|
var isPrototypeOf$3 = objectIsPrototypeOf;
|
|
243
248
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
244
249
|
|
|
@@ -248,7 +253,7 @@ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
|
248
253
|
return typeof it == 'symbol';
|
|
249
254
|
} : function (it) {
|
|
250
255
|
var $Symbol = getBuiltIn$7('Symbol');
|
|
251
|
-
return isCallable$
|
|
256
|
+
return isCallable$i($Symbol) && isPrototypeOf$3($Symbol.prototype, $Object$3(it));
|
|
252
257
|
};
|
|
253
258
|
|
|
254
259
|
var $String$4 = String;
|
|
@@ -261,69 +266,71 @@ var tryToString$4 = function (argument) {
|
|
|
261
266
|
}
|
|
262
267
|
};
|
|
263
268
|
|
|
264
|
-
var isCallable$
|
|
269
|
+
var isCallable$h = isCallable$l;
|
|
265
270
|
var tryToString$3 = tryToString$4;
|
|
266
271
|
|
|
267
|
-
var $TypeError$
|
|
272
|
+
var $TypeError$h = TypeError;
|
|
268
273
|
|
|
269
274
|
// `Assert: IsCallable(argument) is true`
|
|
270
|
-
var aCallable$
|
|
271
|
-
if (isCallable$
|
|
272
|
-
throw new $TypeError$
|
|
275
|
+
var aCallable$d = function (argument) {
|
|
276
|
+
if (isCallable$h(argument)) return argument;
|
|
277
|
+
throw new $TypeError$h(tryToString$3(argument) + ' is not a function');
|
|
273
278
|
};
|
|
274
279
|
|
|
275
|
-
var aCallable$
|
|
280
|
+
var aCallable$c = aCallable$d;
|
|
276
281
|
var isNullOrUndefined$2 = isNullOrUndefined$4;
|
|
277
282
|
|
|
278
283
|
// `GetMethod` abstract operation
|
|
279
284
|
// https://tc39.es/ecma262/#sec-getmethod
|
|
280
|
-
var getMethod$
|
|
285
|
+
var getMethod$4 = function (V, P) {
|
|
281
286
|
var func = V[P];
|
|
282
|
-
return isNullOrUndefined$2(func) ? undefined : aCallable$
|
|
287
|
+
return isNullOrUndefined$2(func) ? undefined : aCallable$c(func);
|
|
283
288
|
};
|
|
284
289
|
|
|
285
|
-
var call$
|
|
286
|
-
var isCallable$
|
|
290
|
+
var call$e = functionCall;
|
|
291
|
+
var isCallable$g = isCallable$l;
|
|
287
292
|
var isObject$c = isObject$d;
|
|
288
293
|
|
|
289
|
-
var $TypeError$
|
|
294
|
+
var $TypeError$g = TypeError;
|
|
290
295
|
|
|
291
296
|
// `OrdinaryToPrimitive` abstract operation
|
|
292
297
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
293
298
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
294
299
|
var fn, val;
|
|
295
|
-
if (pref === 'string' && isCallable$
|
|
296
|
-
if (isCallable$
|
|
297
|
-
if (pref !== 'string' && isCallable$
|
|
298
|
-
throw new $TypeError$
|
|
300
|
+
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$c(val = call$e(fn, input))) return val;
|
|
301
|
+
if (isCallable$g(fn = input.valueOf) && !isObject$c(val = call$e(fn, input))) return val;
|
|
302
|
+
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$c(val = call$e(fn, input))) return val;
|
|
303
|
+
throw new $TypeError$g("Can't convert object to primitive value");
|
|
299
304
|
};
|
|
300
305
|
|
|
301
306
|
var sharedStore = {exports: {}};
|
|
302
307
|
|
|
303
|
-
var
|
|
308
|
+
var isPure = false;
|
|
309
|
+
|
|
310
|
+
var globalThis$h = globalThis_1;
|
|
304
311
|
|
|
305
312
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
306
313
|
var defineProperty$7 = Object.defineProperty;
|
|
307
314
|
|
|
308
315
|
var defineGlobalProperty$3 = function (key, value) {
|
|
309
316
|
try {
|
|
310
|
-
defineProperty$7(globalThis$
|
|
317
|
+
defineProperty$7(globalThis$h, key, { value: value, configurable: true, writable: true });
|
|
311
318
|
} catch (error) {
|
|
312
|
-
globalThis$
|
|
319
|
+
globalThis$h[key] = value;
|
|
313
320
|
} return value;
|
|
314
321
|
};
|
|
315
322
|
|
|
316
|
-
var globalThis$
|
|
323
|
+
var globalThis$g = globalThis_1;
|
|
317
324
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
318
325
|
|
|
319
326
|
var SHARED = '__core-js_shared__';
|
|
320
|
-
var store$3 = sharedStore.exports = globalThis$
|
|
327
|
+
var store$3 = sharedStore.exports = globalThis$g[SHARED] || defineGlobalProperty$2(SHARED, {});
|
|
321
328
|
|
|
322
329
|
(store$3.versions || (store$3.versions = [])).push({
|
|
323
|
-
version: '3.
|
|
330
|
+
version: '3.40.0',
|
|
324
331
|
mode: 'global',
|
|
325
|
-
copyright: '© 2014-
|
|
326
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
332
|
+
copyright: '© 2014-2025 Denis Pushkarev (zloirock.ru)',
|
|
333
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.40.0/LICENSE',
|
|
327
334
|
source: 'https://github.com/zloirock/core-js'
|
|
328
335
|
});
|
|
329
336
|
|
|
@@ -341,12 +348,12 @@ var $Object$2 = Object;
|
|
|
341
348
|
|
|
342
349
|
// `ToObject` abstract operation
|
|
343
350
|
// https://tc39.es/ecma262/#sec-toobject
|
|
344
|
-
var toObject$
|
|
351
|
+
var toObject$5 = function (argument) {
|
|
345
352
|
return $Object$2(requireObjectCoercible$2(argument));
|
|
346
353
|
};
|
|
347
354
|
|
|
348
355
|
var uncurryThis$d = functionUncurryThis;
|
|
349
|
-
var toObject$
|
|
356
|
+
var toObject$4 = toObject$5;
|
|
350
357
|
|
|
351
358
|
var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
|
|
352
359
|
|
|
@@ -354,7 +361,7 @@ var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
|
|
|
354
361
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
355
362
|
// eslint-disable-next-line es/no-object-hasown -- safe
|
|
356
363
|
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
357
|
-
return hasOwnProperty(toObject$
|
|
364
|
+
return hasOwnProperty(toObject$4(it), key);
|
|
358
365
|
};
|
|
359
366
|
|
|
360
367
|
var uncurryThis$c = functionUncurryThis;
|
|
@@ -367,46 +374,46 @@ var uid$2 = function (key) {
|
|
|
367
374
|
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$3(++id + postfix, 36);
|
|
368
375
|
};
|
|
369
376
|
|
|
370
|
-
var globalThis$
|
|
377
|
+
var globalThis$f = globalThis_1;
|
|
371
378
|
var shared$2 = shared$3;
|
|
372
|
-
var hasOwn$
|
|
379
|
+
var hasOwn$b = hasOwnProperty_1;
|
|
373
380
|
var uid$1 = uid$2;
|
|
374
381
|
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
375
382
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
376
383
|
|
|
377
|
-
var Symbol$1 = globalThis$
|
|
384
|
+
var Symbol$1 = globalThis$f.Symbol;
|
|
378
385
|
var WellKnownSymbolsStore = shared$2('wks');
|
|
379
386
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
380
387
|
|
|
381
|
-
var wellKnownSymbol$
|
|
382
|
-
if (!hasOwn$
|
|
383
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$
|
|
388
|
+
var wellKnownSymbol$i = function (name) {
|
|
389
|
+
if (!hasOwn$b(WellKnownSymbolsStore, name)) {
|
|
390
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$b(Symbol$1, name)
|
|
384
391
|
? Symbol$1[name]
|
|
385
392
|
: createWellKnownSymbol('Symbol.' + name);
|
|
386
393
|
} return WellKnownSymbolsStore[name];
|
|
387
394
|
};
|
|
388
395
|
|
|
389
|
-
var call$
|
|
396
|
+
var call$d = functionCall;
|
|
390
397
|
var isObject$b = isObject$d;
|
|
391
398
|
var isSymbol$1 = isSymbol$2;
|
|
392
|
-
var getMethod$
|
|
399
|
+
var getMethod$3 = getMethod$4;
|
|
393
400
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
394
|
-
var wellKnownSymbol$
|
|
401
|
+
var wellKnownSymbol$h = wellKnownSymbol$i;
|
|
395
402
|
|
|
396
|
-
var $TypeError$
|
|
397
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
403
|
+
var $TypeError$f = TypeError;
|
|
404
|
+
var TO_PRIMITIVE = wellKnownSymbol$h('toPrimitive');
|
|
398
405
|
|
|
399
406
|
// `ToPrimitive` abstract operation
|
|
400
407
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
401
408
|
var toPrimitive$1 = function (input, pref) {
|
|
402
409
|
if (!isObject$b(input) || isSymbol$1(input)) return input;
|
|
403
|
-
var exoticToPrim = getMethod$
|
|
410
|
+
var exoticToPrim = getMethod$3(input, TO_PRIMITIVE);
|
|
404
411
|
var result;
|
|
405
412
|
if (exoticToPrim) {
|
|
406
413
|
if (pref === undefined) pref = 'default';
|
|
407
|
-
result = call$
|
|
414
|
+
result = call$d(exoticToPrim, input, pref);
|
|
408
415
|
if (!isObject$b(result) || isSymbol$1(result)) return result;
|
|
409
|
-
throw new $TypeError$
|
|
416
|
+
throw new $TypeError$f("Can't convert object to primitive value");
|
|
410
417
|
}
|
|
411
418
|
if (pref === undefined) pref = 'number';
|
|
412
419
|
return ordinaryToPrimitive(input, pref);
|
|
@@ -422,10 +429,10 @@ var toPropertyKey$2 = function (argument) {
|
|
|
422
429
|
return isSymbol(key) ? key : key + '';
|
|
423
430
|
};
|
|
424
431
|
|
|
425
|
-
var globalThis$
|
|
432
|
+
var globalThis$e = globalThis_1;
|
|
426
433
|
var isObject$a = isObject$d;
|
|
427
434
|
|
|
428
|
-
var document$3 = globalThis$
|
|
435
|
+
var document$3 = globalThis$e.document;
|
|
429
436
|
// typeof document.createElement is 'object' in old IE
|
|
430
437
|
var EXISTS$1 = isObject$a(document$3) && isObject$a(document$3.createElement);
|
|
431
438
|
|
|
@@ -433,25 +440,25 @@ var documentCreateElement$2 = function (it) {
|
|
|
433
440
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
434
441
|
};
|
|
435
442
|
|
|
436
|
-
var DESCRIPTORS$
|
|
437
|
-
var fails$
|
|
443
|
+
var DESCRIPTORS$f = descriptors;
|
|
444
|
+
var fails$d = fails$i;
|
|
438
445
|
var createElement$1 = documentCreateElement$2;
|
|
439
446
|
|
|
440
447
|
// Thanks to IE8 for its funny defineProperty
|
|
441
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
448
|
+
var ie8DomDefine = !DESCRIPTORS$f && !fails$d(function () {
|
|
442
449
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
443
450
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
444
451
|
get: function () { return 7; }
|
|
445
452
|
}).a !== 7;
|
|
446
453
|
});
|
|
447
454
|
|
|
448
|
-
var DESCRIPTORS$
|
|
449
|
-
var call$
|
|
455
|
+
var DESCRIPTORS$e = descriptors;
|
|
456
|
+
var call$c = functionCall;
|
|
450
457
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
451
458
|
var createPropertyDescriptor$4 = createPropertyDescriptor$5;
|
|
452
459
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
453
460
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
454
|
-
var hasOwn$
|
|
461
|
+
var hasOwn$a = hasOwnProperty_1;
|
|
455
462
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
456
463
|
|
|
457
464
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -459,23 +466,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
459
466
|
|
|
460
467
|
// `Object.getOwnPropertyDescriptor` method
|
|
461
468
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
462
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
469
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$e ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
463
470
|
O = toIndexedObject$4(O);
|
|
464
471
|
P = toPropertyKey$1(P);
|
|
465
472
|
if (IE8_DOM_DEFINE$1) try {
|
|
466
473
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
467
474
|
} catch (error) { /* empty */ }
|
|
468
|
-
if (hasOwn$
|
|
475
|
+
if (hasOwn$a(O, P)) return createPropertyDescriptor$4(!call$c(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
469
476
|
};
|
|
470
477
|
|
|
471
478
|
var objectDefineProperty = {};
|
|
472
479
|
|
|
473
|
-
var DESCRIPTORS$
|
|
474
|
-
var fails$
|
|
480
|
+
var DESCRIPTORS$d = descriptors;
|
|
481
|
+
var fails$c = fails$i;
|
|
475
482
|
|
|
476
483
|
// V8 ~ Chrome 36-
|
|
477
484
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
478
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
485
|
+
var v8PrototypeDefineBug = DESCRIPTORS$d && fails$c(function () {
|
|
479
486
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
480
487
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
481
488
|
value: 42,
|
|
@@ -486,21 +493,21 @@ var v8PrototypeDefineBug = DESCRIPTORS$b && fails$a(function () {
|
|
|
486
493
|
var isObject$9 = isObject$d;
|
|
487
494
|
|
|
488
495
|
var $String$3 = String;
|
|
489
|
-
var $TypeError$
|
|
496
|
+
var $TypeError$e = TypeError;
|
|
490
497
|
|
|
491
498
|
// `Assert: Type(argument) is Object`
|
|
492
|
-
var anObject$
|
|
499
|
+
var anObject$f = function (argument) {
|
|
493
500
|
if (isObject$9(argument)) return argument;
|
|
494
|
-
throw new $TypeError$
|
|
501
|
+
throw new $TypeError$e($String$3(argument) + ' is not an object');
|
|
495
502
|
};
|
|
496
503
|
|
|
497
|
-
var DESCRIPTORS$
|
|
504
|
+
var DESCRIPTORS$c = descriptors;
|
|
498
505
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
499
506
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
500
|
-
var anObject$
|
|
507
|
+
var anObject$e = anObject$f;
|
|
501
508
|
var toPropertyKey = toPropertyKey$2;
|
|
502
509
|
|
|
503
|
-
var $TypeError$
|
|
510
|
+
var $TypeError$d = TypeError;
|
|
504
511
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
505
512
|
var $defineProperty = Object.defineProperty;
|
|
506
513
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -511,10 +518,10 @@ var WRITABLE = 'writable';
|
|
|
511
518
|
|
|
512
519
|
// `Object.defineProperty` method
|
|
513
520
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
514
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
515
|
-
anObject$
|
|
521
|
+
objectDefineProperty.f = DESCRIPTORS$c ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
522
|
+
anObject$e(O);
|
|
516
523
|
P = toPropertyKey(P);
|
|
517
|
-
anObject$
|
|
524
|
+
anObject$e(Attributes);
|
|
518
525
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
519
526
|
var current = $getOwnPropertyDescriptor(O, P);
|
|
520
527
|
if (current && current[WRITABLE]) {
|
|
@@ -527,22 +534,22 @@ objectDefineProperty.f = DESCRIPTORS$a ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
527
534
|
}
|
|
528
535
|
} return $defineProperty(O, P, Attributes);
|
|
529
536
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
530
|
-
anObject$
|
|
537
|
+
anObject$e(O);
|
|
531
538
|
P = toPropertyKey(P);
|
|
532
|
-
anObject$
|
|
539
|
+
anObject$e(Attributes);
|
|
533
540
|
if (IE8_DOM_DEFINE) try {
|
|
534
541
|
return $defineProperty(O, P, Attributes);
|
|
535
542
|
} catch (error) { /* empty */ }
|
|
536
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
543
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$d('Accessors not supported');
|
|
537
544
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
538
545
|
return O;
|
|
539
546
|
};
|
|
540
547
|
|
|
541
|
-
var DESCRIPTORS$
|
|
548
|
+
var DESCRIPTORS$b = descriptors;
|
|
542
549
|
var definePropertyModule$4 = objectDefineProperty;
|
|
543
550
|
var createPropertyDescriptor$3 = createPropertyDescriptor$5;
|
|
544
551
|
|
|
545
|
-
var createNonEnumerableProperty$
|
|
552
|
+
var createNonEnumerableProperty$8 = DESCRIPTORS$b ? function (object, key, value) {
|
|
546
553
|
return definePropertyModule$4.f(object, key, createPropertyDescriptor$3(1, value));
|
|
547
554
|
} : function (object, key, value) {
|
|
548
555
|
object[key] = value;
|
|
@@ -551,17 +558,17 @@ var createNonEnumerableProperty$7 = DESCRIPTORS$9 ? function (object, key, value
|
|
|
551
558
|
|
|
552
559
|
var makeBuiltIn$3 = {exports: {}};
|
|
553
560
|
|
|
554
|
-
var DESCRIPTORS$
|
|
555
|
-
var hasOwn$
|
|
561
|
+
var DESCRIPTORS$a = descriptors;
|
|
562
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
556
563
|
|
|
557
564
|
var FunctionPrototype$1 = Function.prototype;
|
|
558
565
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
559
|
-
var getDescriptor = DESCRIPTORS$
|
|
566
|
+
var getDescriptor = DESCRIPTORS$a && Object.getOwnPropertyDescriptor;
|
|
560
567
|
|
|
561
|
-
var EXISTS = hasOwn$
|
|
568
|
+
var EXISTS = hasOwn$9(FunctionPrototype$1, 'name');
|
|
562
569
|
// additional protection from minified / mangled / dropped function names
|
|
563
570
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
564
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
571
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$a || (DESCRIPTORS$a && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
565
572
|
|
|
566
573
|
var functionName = {
|
|
567
574
|
EXISTS: EXISTS,
|
|
@@ -570,13 +577,13 @@ var functionName = {
|
|
|
570
577
|
};
|
|
571
578
|
|
|
572
579
|
var uncurryThis$b = functionUncurryThis;
|
|
573
|
-
var isCallable$
|
|
580
|
+
var isCallable$f = isCallable$l;
|
|
574
581
|
var store$1 = sharedStoreExports;
|
|
575
582
|
|
|
576
583
|
var functionToString = uncurryThis$b(Function.toString);
|
|
577
584
|
|
|
578
585
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
579
|
-
if (!isCallable$
|
|
586
|
+
if (!isCallable$f(store$1.inspectSource)) {
|
|
580
587
|
store$1.inspectSource = function (it) {
|
|
581
588
|
return functionToString(it);
|
|
582
589
|
};
|
|
@@ -584,12 +591,12 @@ if (!isCallable$e(store$1.inspectSource)) {
|
|
|
584
591
|
|
|
585
592
|
var inspectSource$3 = store$1.inspectSource;
|
|
586
593
|
|
|
587
|
-
var globalThis$
|
|
588
|
-
var isCallable$
|
|
594
|
+
var globalThis$d = globalThis_1;
|
|
595
|
+
var isCallable$e = isCallable$l;
|
|
589
596
|
|
|
590
|
-
var WeakMap$1 = globalThis$
|
|
597
|
+
var WeakMap$1 = globalThis$d.WeakMap;
|
|
591
598
|
|
|
592
|
-
var weakMapBasicDetection = isCallable$
|
|
599
|
+
var weakMapBasicDetection = isCallable$e(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
593
600
|
|
|
594
601
|
var shared$1 = shared$3;
|
|
595
602
|
var uid = uid$2;
|
|
@@ -603,17 +610,17 @@ var sharedKey$3 = function (key) {
|
|
|
603
610
|
var hiddenKeys$4 = {};
|
|
604
611
|
|
|
605
612
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
606
|
-
var globalThis$
|
|
613
|
+
var globalThis$c = globalThis_1;
|
|
607
614
|
var isObject$8 = isObject$d;
|
|
608
|
-
var createNonEnumerableProperty$
|
|
609
|
-
var hasOwn$
|
|
615
|
+
var createNonEnumerableProperty$7 = createNonEnumerableProperty$8;
|
|
616
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
610
617
|
var shared = sharedStoreExports;
|
|
611
618
|
var sharedKey$2 = sharedKey$3;
|
|
612
619
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
613
620
|
|
|
614
621
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
615
|
-
var TypeError$2 = globalThis$
|
|
616
|
-
var WeakMap = globalThis$
|
|
622
|
+
var TypeError$2 = globalThis$c.TypeError;
|
|
623
|
+
var WeakMap = globalThis$c.WeakMap;
|
|
617
624
|
var set$1, get, has;
|
|
618
625
|
|
|
619
626
|
var enforce = function (it) {
|
|
@@ -652,16 +659,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
652
659
|
var STATE = sharedKey$2('state');
|
|
653
660
|
hiddenKeys$3[STATE] = true;
|
|
654
661
|
set$1 = function (it, metadata) {
|
|
655
|
-
if (hasOwn$
|
|
662
|
+
if (hasOwn$8(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
656
663
|
metadata.facade = it;
|
|
657
|
-
createNonEnumerableProperty$
|
|
664
|
+
createNonEnumerableProperty$7(it, STATE, metadata);
|
|
658
665
|
return metadata;
|
|
659
666
|
};
|
|
660
667
|
get = function (it) {
|
|
661
|
-
return hasOwn$
|
|
668
|
+
return hasOwn$8(it, STATE) ? it[STATE] : {};
|
|
662
669
|
};
|
|
663
670
|
has = function (it) {
|
|
664
|
-
return hasOwn$
|
|
671
|
+
return hasOwn$8(it, STATE);
|
|
665
672
|
};
|
|
666
673
|
}
|
|
667
674
|
|
|
@@ -674,16 +681,16 @@ var internalState = {
|
|
|
674
681
|
};
|
|
675
682
|
|
|
676
683
|
var uncurryThis$a = functionUncurryThis;
|
|
677
|
-
var fails$
|
|
678
|
-
var isCallable$
|
|
679
|
-
var hasOwn$
|
|
680
|
-
var DESCRIPTORS$
|
|
684
|
+
var fails$b = fails$i;
|
|
685
|
+
var isCallable$d = isCallable$l;
|
|
686
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
687
|
+
var DESCRIPTORS$9 = descriptors;
|
|
681
688
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
682
689
|
var inspectSource$2 = inspectSource$3;
|
|
683
|
-
var InternalStateModule$
|
|
690
|
+
var InternalStateModule$3 = internalState;
|
|
684
691
|
|
|
685
|
-
var enforceInternalState = InternalStateModule$
|
|
686
|
-
var getInternalState$1 = InternalStateModule$
|
|
692
|
+
var enforceInternalState = InternalStateModule$3.enforce;
|
|
693
|
+
var getInternalState$1 = InternalStateModule$3.get;
|
|
687
694
|
var $String$2 = String;
|
|
688
695
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
689
696
|
var defineProperty$6 = Object.defineProperty;
|
|
@@ -691,7 +698,7 @@ var stringSlice = uncurryThis$a(''.slice);
|
|
|
691
698
|
var replace$1 = uncurryThis$a(''.replace);
|
|
692
699
|
var join = uncurryThis$a([].join);
|
|
693
700
|
|
|
694
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
701
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$9 && !fails$b(function () {
|
|
695
702
|
return defineProperty$6(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
696
703
|
});
|
|
697
704
|
|
|
@@ -703,21 +710,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
703
710
|
}
|
|
704
711
|
if (options && options.getter) name = 'get ' + name;
|
|
705
712
|
if (options && options.setter) name = 'set ' + name;
|
|
706
|
-
if (!hasOwn$
|
|
707
|
-
if (DESCRIPTORS$
|
|
713
|
+
if (!hasOwn$7(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
714
|
+
if (DESCRIPTORS$9) defineProperty$6(value, 'name', { value: name, configurable: true });
|
|
708
715
|
else value.name = name;
|
|
709
716
|
}
|
|
710
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
717
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$7(options, 'arity') && value.length !== options.arity) {
|
|
711
718
|
defineProperty$6(value, 'length', { value: options.arity });
|
|
712
719
|
}
|
|
713
720
|
try {
|
|
714
|
-
if (options && hasOwn$
|
|
715
|
-
if (DESCRIPTORS$
|
|
721
|
+
if (options && hasOwn$7(options, 'constructor') && options.constructor) {
|
|
722
|
+
if (DESCRIPTORS$9) defineProperty$6(value, 'prototype', { writable: false });
|
|
716
723
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
717
724
|
} else if (value.prototype) value.prototype = undefined;
|
|
718
725
|
} catch (error) { /* empty */ }
|
|
719
726
|
var state = enforceInternalState(value);
|
|
720
|
-
if (!hasOwn$
|
|
727
|
+
if (!hasOwn$7(state, 'source')) {
|
|
721
728
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
722
729
|
} return value;
|
|
723
730
|
};
|
|
@@ -725,21 +732,21 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
725
732
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
726
733
|
// eslint-disable-next-line no-extend-native -- required
|
|
727
734
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
728
|
-
return isCallable$
|
|
735
|
+
return isCallable$d(this) && getInternalState$1(this).source || inspectSource$2(this);
|
|
729
736
|
}, 'toString');
|
|
730
737
|
|
|
731
738
|
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
732
739
|
|
|
733
|
-
var isCallable$
|
|
740
|
+
var isCallable$c = isCallable$l;
|
|
734
741
|
var definePropertyModule$3 = objectDefineProperty;
|
|
735
742
|
var makeBuiltIn$1 = makeBuiltInExports;
|
|
736
743
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
737
744
|
|
|
738
|
-
var defineBuiltIn$
|
|
745
|
+
var defineBuiltIn$6 = function (O, key, value, options) {
|
|
739
746
|
if (!options) options = {};
|
|
740
747
|
var simple = options.enumerable;
|
|
741
748
|
var name = options.name !== undefined ? options.name : key;
|
|
742
|
-
if (isCallable$
|
|
749
|
+
if (isCallable$c(value)) makeBuiltIn$1(value, name, options);
|
|
743
750
|
if (options.global) {
|
|
744
751
|
if (simple) O[key] = value;
|
|
745
752
|
else defineGlobalProperty$1(key, value);
|
|
@@ -809,19 +816,19 @@ var toLength = toLength$1;
|
|
|
809
816
|
|
|
810
817
|
// `LengthOfArrayLike` abstract operation
|
|
811
818
|
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
|
812
|
-
var lengthOfArrayLike$
|
|
819
|
+
var lengthOfArrayLike$4 = function (obj) {
|
|
813
820
|
return toLength(obj.length);
|
|
814
821
|
};
|
|
815
822
|
|
|
816
823
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
817
824
|
var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
818
|
-
var lengthOfArrayLike$
|
|
825
|
+
var lengthOfArrayLike$3 = lengthOfArrayLike$4;
|
|
819
826
|
|
|
820
827
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
821
828
|
var createMethod$1 = function (IS_INCLUDES) {
|
|
822
829
|
return function ($this, el, fromIndex) {
|
|
823
830
|
var O = toIndexedObject$3($this);
|
|
824
|
-
var length = lengthOfArrayLike$
|
|
831
|
+
var length = lengthOfArrayLike$3(O);
|
|
825
832
|
if (length === 0) return !IS_INCLUDES && -1;
|
|
826
833
|
var index = toAbsoluteIndex(fromIndex, length);
|
|
827
834
|
var value;
|
|
@@ -848,7 +855,7 @@ var arrayIncludes = {
|
|
|
848
855
|
};
|
|
849
856
|
|
|
850
857
|
var uncurryThis$9 = functionUncurryThis;
|
|
851
|
-
var hasOwn$
|
|
858
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
852
859
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
853
860
|
var indexOf = arrayIncludes.indexOf;
|
|
854
861
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -860,9 +867,9 @@ var objectKeysInternal = function (object, names) {
|
|
|
860
867
|
var i = 0;
|
|
861
868
|
var result = [];
|
|
862
869
|
var key;
|
|
863
|
-
for (key in O) !hasOwn$
|
|
870
|
+
for (key in O) !hasOwn$6(hiddenKeys$2, key) && hasOwn$6(O, key) && push(result, key);
|
|
864
871
|
// Don't enum bug & hidden keys
|
|
865
|
-
while (names.length > i) if (hasOwn$
|
|
872
|
+
while (names.length > i) if (hasOwn$6(O, key = names[i++])) {
|
|
866
873
|
~indexOf(result, key) || push(result, key);
|
|
867
874
|
}
|
|
868
875
|
return result;
|
|
@@ -900,18 +907,18 @@ var getBuiltIn$6 = getBuiltIn$8;
|
|
|
900
907
|
var uncurryThis$8 = functionUncurryThis;
|
|
901
908
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
902
909
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
903
|
-
var anObject$
|
|
910
|
+
var anObject$d = anObject$f;
|
|
904
911
|
|
|
905
912
|
var concat$1 = uncurryThis$8([].concat);
|
|
906
913
|
|
|
907
914
|
// all object keys, includes non-enumerable and symbols
|
|
908
915
|
var ownKeys$1 = getBuiltIn$6('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
909
|
-
var keys = getOwnPropertyNamesModule.f(anObject$
|
|
916
|
+
var keys = getOwnPropertyNamesModule.f(anObject$d(it));
|
|
910
917
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
911
918
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
912
919
|
};
|
|
913
920
|
|
|
914
|
-
var hasOwn$
|
|
921
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
915
922
|
var ownKeys = ownKeys$1;
|
|
916
923
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
917
924
|
var definePropertyModule$2 = objectDefineProperty;
|
|
@@ -922,14 +929,14 @@ var copyConstructorProperties$2 = function (target, source, exceptions) {
|
|
|
922
929
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
923
930
|
for (var i = 0; i < keys.length; i++) {
|
|
924
931
|
var key = keys[i];
|
|
925
|
-
if (!hasOwn$
|
|
932
|
+
if (!hasOwn$5(target, key) && !(exceptions && hasOwn$5(exceptions, key))) {
|
|
926
933
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
927
934
|
}
|
|
928
935
|
}
|
|
929
936
|
};
|
|
930
937
|
|
|
931
|
-
var fails$
|
|
932
|
-
var isCallable$
|
|
938
|
+
var fails$a = fails$i;
|
|
939
|
+
var isCallable$b = isCallable$l;
|
|
933
940
|
|
|
934
941
|
var replacement = /#|\.prototype\./;
|
|
935
942
|
|
|
@@ -937,7 +944,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
937
944
|
var value = data[normalize(feature)];
|
|
938
945
|
return value === POLYFILL ? true
|
|
939
946
|
: value === NATIVE ? false
|
|
940
|
-
: isCallable$
|
|
947
|
+
: isCallable$b(detection) ? fails$a(detection)
|
|
941
948
|
: !!detection;
|
|
942
949
|
};
|
|
943
950
|
|
|
@@ -951,10 +958,10 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
951
958
|
|
|
952
959
|
var isForced_1 = isForced$2;
|
|
953
960
|
|
|
954
|
-
var globalThis$
|
|
955
|
-
var getOwnPropertyDescriptor$
|
|
956
|
-
var createNonEnumerableProperty$
|
|
957
|
-
var defineBuiltIn$
|
|
961
|
+
var globalThis$b = globalThis_1;
|
|
962
|
+
var getOwnPropertyDescriptor$2 = objectGetOwnPropertyDescriptor.f;
|
|
963
|
+
var createNonEnumerableProperty$6 = createNonEnumerableProperty$8;
|
|
964
|
+
var defineBuiltIn$5 = defineBuiltIn$6;
|
|
958
965
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
959
966
|
var copyConstructorProperties$1 = copyConstructorProperties$2;
|
|
960
967
|
var isForced$1 = isForced_1;
|
|
@@ -980,16 +987,16 @@ var _export = function (options, source) {
|
|
|
980
987
|
var STATIC = options.stat;
|
|
981
988
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
982
989
|
if (GLOBAL) {
|
|
983
|
-
target = globalThis$
|
|
990
|
+
target = globalThis$b;
|
|
984
991
|
} else if (STATIC) {
|
|
985
|
-
target = globalThis$
|
|
992
|
+
target = globalThis$b[TARGET] || defineGlobalProperty(TARGET, {});
|
|
986
993
|
} else {
|
|
987
|
-
target = globalThis$
|
|
994
|
+
target = globalThis$b[TARGET] && globalThis$b[TARGET].prototype;
|
|
988
995
|
}
|
|
989
996
|
if (target) for (key in source) {
|
|
990
997
|
sourceProperty = source[key];
|
|
991
998
|
if (options.dontCallGetSet) {
|
|
992
|
-
descriptor = getOwnPropertyDescriptor$
|
|
999
|
+
descriptor = getOwnPropertyDescriptor$2(target, key);
|
|
993
1000
|
targetProperty = descriptor && descriptor.value;
|
|
994
1001
|
} else targetProperty = target[key];
|
|
995
1002
|
FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
|
@@ -1000,9 +1007,9 @@ var _export = function (options, source) {
|
|
|
1000
1007
|
}
|
|
1001
1008
|
// add a flag to not completely full polyfills
|
|
1002
1009
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1003
|
-
createNonEnumerableProperty$
|
|
1010
|
+
createNonEnumerableProperty$6(sourceProperty, 'sham', true);
|
|
1004
1011
|
}
|
|
1005
|
-
defineBuiltIn$
|
|
1012
|
+
defineBuiltIn$5(target, key, sourceProperty, options);
|
|
1006
1013
|
}
|
|
1007
1014
|
};
|
|
1008
1015
|
|
|
@@ -1018,18 +1025,18 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
1018
1025
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
1019
1026
|
};
|
|
1020
1027
|
|
|
1021
|
-
var DESCRIPTORS$
|
|
1028
|
+
var DESCRIPTORS$8 = descriptors;
|
|
1022
1029
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
1023
1030
|
var definePropertyModule$1 = objectDefineProperty;
|
|
1024
|
-
var anObject$
|
|
1031
|
+
var anObject$c = anObject$f;
|
|
1025
1032
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
1026
1033
|
var objectKeys$1 = objectKeys$2;
|
|
1027
1034
|
|
|
1028
1035
|
// `Object.defineProperties` method
|
|
1029
1036
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
1030
1037
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
1031
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
1032
|
-
anObject$
|
|
1038
|
+
objectDefineProperties.f = DESCRIPTORS$8 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
1039
|
+
anObject$c(O);
|
|
1033
1040
|
var props = toIndexedObject$1(Properties);
|
|
1034
1041
|
var keys = objectKeys$1(Properties);
|
|
1035
1042
|
var length = keys.length;
|
|
@@ -1044,7 +1051,7 @@ var getBuiltIn$5 = getBuiltIn$8;
|
|
|
1044
1051
|
var html$2 = getBuiltIn$5('document', 'documentElement');
|
|
1045
1052
|
|
|
1046
1053
|
/* global ActiveXObject -- old IE, WSH */
|
|
1047
|
-
var anObject$
|
|
1054
|
+
var anObject$b = anObject$f;
|
|
1048
1055
|
var definePropertiesModule = objectDefineProperties;
|
|
1049
1056
|
var enumBugKeys = enumBugKeys$3;
|
|
1050
1057
|
var hiddenKeys = hiddenKeys$4;
|
|
@@ -1119,7 +1126,7 @@ hiddenKeys[IE_PROTO$1] = true;
|
|
|
1119
1126
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
1120
1127
|
var result;
|
|
1121
1128
|
if (O !== null) {
|
|
1122
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
1129
|
+
EmptyConstructor[PROTOTYPE] = anObject$b(O);
|
|
1123
1130
|
result = new EmptyConstructor();
|
|
1124
1131
|
EmptyConstructor[PROTOTYPE] = null;
|
|
1125
1132
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -1128,11 +1135,11 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
1128
1135
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
1129
1136
|
};
|
|
1130
1137
|
|
|
1131
|
-
var wellKnownSymbol$
|
|
1132
|
-
var create$
|
|
1138
|
+
var wellKnownSymbol$g = wellKnownSymbol$i;
|
|
1139
|
+
var create$2 = objectCreate;
|
|
1133
1140
|
var defineProperty$5 = objectDefineProperty.f;
|
|
1134
1141
|
|
|
1135
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
1142
|
+
var UNSCOPABLES = wellKnownSymbol$g('unscopables');
|
|
1136
1143
|
var ArrayPrototype$1 = Array.prototype;
|
|
1137
1144
|
|
|
1138
1145
|
// Array.prototype[@@unscopables]
|
|
@@ -1140,7 +1147,7 @@ var ArrayPrototype$1 = Array.prototype;
|
|
|
1140
1147
|
if (ArrayPrototype$1[UNSCOPABLES] === undefined) {
|
|
1141
1148
|
defineProperty$5(ArrayPrototype$1, UNSCOPABLES, {
|
|
1142
1149
|
configurable: true,
|
|
1143
|
-
value: create$
|
|
1150
|
+
value: create$2(null)
|
|
1144
1151
|
});
|
|
1145
1152
|
}
|
|
1146
1153
|
|
|
@@ -1149,20 +1156,20 @@ var addToUnscopables$2 = function (key) {
|
|
|
1149
1156
|
ArrayPrototype$1[UNSCOPABLES][key] = true;
|
|
1150
1157
|
};
|
|
1151
1158
|
|
|
1152
|
-
var $$
|
|
1159
|
+
var $$i = _export;
|
|
1153
1160
|
var $includes = arrayIncludes.includes;
|
|
1154
|
-
var fails$
|
|
1161
|
+
var fails$9 = fails$i;
|
|
1155
1162
|
var addToUnscopables$1 = addToUnscopables$2;
|
|
1156
1163
|
|
|
1157
1164
|
// FF99+ bug
|
|
1158
|
-
var BROKEN_ON_SPARSE = fails$
|
|
1165
|
+
var BROKEN_ON_SPARSE = fails$9(function () {
|
|
1159
1166
|
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
1160
1167
|
return !Array(1).includes();
|
|
1161
1168
|
});
|
|
1162
1169
|
|
|
1163
1170
|
// `Array.prototype.includes` method
|
|
1164
1171
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
1165
|
-
$$
|
|
1172
|
+
$$i({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
1166
1173
|
includes: function includes(el /* , fromIndex = 0 */) {
|
|
1167
1174
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
1168
1175
|
}
|
|
@@ -1173,18 +1180,18 @@ addToUnscopables$1('includes');
|
|
|
1173
1180
|
|
|
1174
1181
|
var iterators = {};
|
|
1175
1182
|
|
|
1176
|
-
var fails$
|
|
1183
|
+
var fails$8 = fails$i;
|
|
1177
1184
|
|
|
1178
|
-
var correctPrototypeGetter = !fails$
|
|
1185
|
+
var correctPrototypeGetter = !fails$8(function () {
|
|
1179
1186
|
function F() { /* empty */ }
|
|
1180
1187
|
F.prototype.constructor = null;
|
|
1181
1188
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1182
1189
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1183
1190
|
});
|
|
1184
1191
|
|
|
1185
|
-
var hasOwn$
|
|
1186
|
-
var isCallable$
|
|
1187
|
-
var toObject$
|
|
1192
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
1193
|
+
var isCallable$a = isCallable$l;
|
|
1194
|
+
var toObject$3 = toObject$5;
|
|
1188
1195
|
var sharedKey = sharedKey$3;
|
|
1189
1196
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
1190
1197
|
|
|
@@ -1196,27 +1203,27 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1196
1203
|
// https://tc39.es/ecma262/#sec-object.getprototypeof
|
|
1197
1204
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1198
1205
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1199
|
-
var object = toObject$
|
|
1200
|
-
if (hasOwn$
|
|
1206
|
+
var object = toObject$3(O);
|
|
1207
|
+
if (hasOwn$4(object, IE_PROTO)) return object[IE_PROTO];
|
|
1201
1208
|
var constructor = object.constructor;
|
|
1202
|
-
if (isCallable$
|
|
1209
|
+
if (isCallable$a(constructor) && object instanceof constructor) {
|
|
1203
1210
|
return constructor.prototype;
|
|
1204
1211
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1205
1212
|
};
|
|
1206
1213
|
|
|
1207
|
-
var fails$
|
|
1208
|
-
var isCallable$
|
|
1214
|
+
var fails$7 = fails$i;
|
|
1215
|
+
var isCallable$9 = isCallable$l;
|
|
1209
1216
|
var isObject$7 = isObject$d;
|
|
1210
|
-
var getPrototypeOf$
|
|
1211
|
-
var defineBuiltIn$
|
|
1212
|
-
var wellKnownSymbol$
|
|
1217
|
+
var getPrototypeOf$2 = objectGetPrototypeOf;
|
|
1218
|
+
var defineBuiltIn$4 = defineBuiltIn$6;
|
|
1219
|
+
var wellKnownSymbol$f = wellKnownSymbol$i;
|
|
1213
1220
|
|
|
1214
|
-
var ITERATOR$
|
|
1221
|
+
var ITERATOR$6 = wellKnownSymbol$f('iterator');
|
|
1215
1222
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
1216
1223
|
|
|
1217
1224
|
// `%IteratorPrototype%` object
|
|
1218
1225
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-object
|
|
1219
|
-
var IteratorPrototype$
|
|
1226
|
+
var IteratorPrototype$4, PrototypeOfArrayIteratorPrototype, arrayIterator;
|
|
1220
1227
|
|
|
1221
1228
|
/* eslint-disable es/no-array-prototype-keys -- safe */
|
|
1222
1229
|
if ([].keys) {
|
|
@@ -1224,47 +1231,47 @@ if ([].keys) {
|
|
|
1224
1231
|
// Safari 8 has buggy iterators w/o `next`
|
|
1225
1232
|
if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
|
|
1226
1233
|
else {
|
|
1227
|
-
PrototypeOfArrayIteratorPrototype = getPrototypeOf$
|
|
1228
|
-
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$
|
|
1234
|
+
PrototypeOfArrayIteratorPrototype = getPrototypeOf$2(getPrototypeOf$2(arrayIterator));
|
|
1235
|
+
if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$4 = PrototypeOfArrayIteratorPrototype;
|
|
1229
1236
|
}
|
|
1230
1237
|
}
|
|
1231
1238
|
|
|
1232
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$7(IteratorPrototype$
|
|
1239
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$7(IteratorPrototype$4) || fails$7(function () {
|
|
1233
1240
|
var test = {};
|
|
1234
1241
|
// FF44- legacy iterators case
|
|
1235
|
-
return IteratorPrototype$
|
|
1242
|
+
return IteratorPrototype$4[ITERATOR$6].call(test) !== test;
|
|
1236
1243
|
});
|
|
1237
1244
|
|
|
1238
|
-
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$
|
|
1245
|
+
if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$4 = {};
|
|
1239
1246
|
|
|
1240
1247
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1241
1248
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1242
|
-
if (!isCallable$
|
|
1243
|
-
defineBuiltIn$
|
|
1249
|
+
if (!isCallable$9(IteratorPrototype$4[ITERATOR$6])) {
|
|
1250
|
+
defineBuiltIn$4(IteratorPrototype$4, ITERATOR$6, function () {
|
|
1244
1251
|
return this;
|
|
1245
1252
|
});
|
|
1246
1253
|
}
|
|
1247
1254
|
|
|
1248
1255
|
var iteratorsCore = {
|
|
1249
|
-
IteratorPrototype: IteratorPrototype$
|
|
1256
|
+
IteratorPrototype: IteratorPrototype$4,
|
|
1250
1257
|
BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
|
|
1251
1258
|
};
|
|
1252
1259
|
|
|
1253
1260
|
var defineProperty$4 = objectDefineProperty.f;
|
|
1254
|
-
var hasOwn$
|
|
1255
|
-
var wellKnownSymbol$
|
|
1261
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
1262
|
+
var wellKnownSymbol$e = wellKnownSymbol$i;
|
|
1256
1263
|
|
|
1257
|
-
var TO_STRING_TAG$
|
|
1264
|
+
var TO_STRING_TAG$4 = wellKnownSymbol$e('toStringTag');
|
|
1258
1265
|
|
|
1259
1266
|
var setToStringTag$4 = function (target, TAG, STATIC) {
|
|
1260
1267
|
if (target && !STATIC) target = target.prototype;
|
|
1261
|
-
if (target && !hasOwn$
|
|
1262
|
-
defineProperty$4(target, TO_STRING_TAG$
|
|
1268
|
+
if (target && !hasOwn$3(target, TO_STRING_TAG$4)) {
|
|
1269
|
+
defineProperty$4(target, TO_STRING_TAG$4, { configurable: true, value: TAG });
|
|
1263
1270
|
}
|
|
1264
1271
|
};
|
|
1265
1272
|
|
|
1266
|
-
var IteratorPrototype$
|
|
1267
|
-
var create = objectCreate;
|
|
1273
|
+
var IteratorPrototype$3 = iteratorsCore.IteratorPrototype;
|
|
1274
|
+
var create$1 = objectCreate;
|
|
1268
1275
|
var createPropertyDescriptor$2 = createPropertyDescriptor$5;
|
|
1269
1276
|
var setToStringTag$3 = setToStringTag$4;
|
|
1270
1277
|
var Iterators$4 = iterators;
|
|
@@ -1273,19 +1280,19 @@ var returnThis$1 = function () { return this; };
|
|
|
1273
1280
|
|
|
1274
1281
|
var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
|
|
1275
1282
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1276
|
-
IteratorConstructor.prototype = create(IteratorPrototype$
|
|
1283
|
+
IteratorConstructor.prototype = create$1(IteratorPrototype$3, { next: createPropertyDescriptor$2(+!ENUMERABLE_NEXT, next) });
|
|
1277
1284
|
setToStringTag$3(IteratorConstructor, TO_STRING_TAG, false);
|
|
1278
1285
|
Iterators$4[TO_STRING_TAG] = returnThis$1;
|
|
1279
1286
|
return IteratorConstructor;
|
|
1280
1287
|
};
|
|
1281
1288
|
|
|
1282
1289
|
var uncurryThis$7 = functionUncurryThis;
|
|
1283
|
-
var aCallable$
|
|
1290
|
+
var aCallable$b = aCallable$d;
|
|
1284
1291
|
|
|
1285
1292
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
1286
1293
|
try {
|
|
1287
1294
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
1288
|
-
return uncurryThis$7(aCallable$
|
|
1295
|
+
return uncurryThis$7(aCallable$b(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
1289
1296
|
} catch (error) { /* empty */ }
|
|
1290
1297
|
};
|
|
1291
1298
|
|
|
@@ -1298,11 +1305,11 @@ var isPossiblePrototype$1 = function (argument) {
|
|
|
1298
1305
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
1299
1306
|
|
|
1300
1307
|
var $String$1 = String;
|
|
1301
|
-
var $TypeError$
|
|
1308
|
+
var $TypeError$c = TypeError;
|
|
1302
1309
|
|
|
1303
1310
|
var aPossiblePrototype$1 = function (argument) {
|
|
1304
1311
|
if (isPossiblePrototype(argument)) return argument;
|
|
1305
|
-
throw new $TypeError$
|
|
1312
|
+
throw new $TypeError$c("Can't set " + $String$1(argument) + ' as a prototype');
|
|
1306
1313
|
};
|
|
1307
1314
|
|
|
1308
1315
|
/* eslint-disable no-proto -- safe */
|
|
@@ -1334,25 +1341,25 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1334
1341
|
};
|
|
1335
1342
|
}() : undefined);
|
|
1336
1343
|
|
|
1337
|
-
var $$
|
|
1338
|
-
var call$
|
|
1344
|
+
var $$h = _export;
|
|
1345
|
+
var call$b = functionCall;
|
|
1339
1346
|
var FunctionName = functionName;
|
|
1340
|
-
var isCallable$
|
|
1347
|
+
var isCallable$8 = isCallable$l;
|
|
1341
1348
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
1342
|
-
var getPrototypeOf = objectGetPrototypeOf;
|
|
1349
|
+
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1343
1350
|
var setPrototypeOf$3 = objectSetPrototypeOf;
|
|
1344
1351
|
var setToStringTag$2 = setToStringTag$4;
|
|
1345
|
-
var createNonEnumerableProperty$
|
|
1346
|
-
var defineBuiltIn$
|
|
1347
|
-
var wellKnownSymbol$
|
|
1352
|
+
var createNonEnumerableProperty$5 = createNonEnumerableProperty$8;
|
|
1353
|
+
var defineBuiltIn$3 = defineBuiltIn$6;
|
|
1354
|
+
var wellKnownSymbol$d = wellKnownSymbol$i;
|
|
1348
1355
|
var Iterators$3 = iterators;
|
|
1349
1356
|
var IteratorsCore = iteratorsCore;
|
|
1350
1357
|
|
|
1351
1358
|
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1352
1359
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1353
|
-
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1360
|
+
var IteratorPrototype$2 = IteratorsCore.IteratorPrototype;
|
|
1354
1361
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
1355
|
-
var ITERATOR$
|
|
1362
|
+
var ITERATOR$5 = wellKnownSymbol$d('iterator');
|
|
1356
1363
|
var KEYS = 'keys';
|
|
1357
1364
|
var VALUES = 'values';
|
|
1358
1365
|
var ENTRIES = 'entries';
|
|
@@ -1378,7 +1385,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1378
1385
|
var TO_STRING_TAG = NAME + ' Iterator';
|
|
1379
1386
|
var INCORRECT_VALUES_NAME = false;
|
|
1380
1387
|
var IterablePrototype = Iterable.prototype;
|
|
1381
|
-
var nativeIterator = IterablePrototype[ITERATOR$
|
|
1388
|
+
var nativeIterator = IterablePrototype[ITERATOR$5]
|
|
1382
1389
|
|| IterablePrototype['@@iterator']
|
|
1383
1390
|
|| DEFAULT && IterablePrototype[DEFAULT];
|
|
1384
1391
|
var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
|
|
@@ -1387,13 +1394,13 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1387
1394
|
|
|
1388
1395
|
// fix native
|
|
1389
1396
|
if (anyNativeIterator) {
|
|
1390
|
-
CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
|
|
1397
|
+
CurrentIteratorPrototype = getPrototypeOf$1(anyNativeIterator.call(new Iterable()));
|
|
1391
1398
|
if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
|
|
1392
|
-
if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
|
|
1399
|
+
if (getPrototypeOf$1(CurrentIteratorPrototype) !== IteratorPrototype$2) {
|
|
1393
1400
|
if (setPrototypeOf$3) {
|
|
1394
|
-
setPrototypeOf$3(CurrentIteratorPrototype, IteratorPrototype);
|
|
1395
|
-
} else if (!isCallable$
|
|
1396
|
-
defineBuiltIn$
|
|
1401
|
+
setPrototypeOf$3(CurrentIteratorPrototype, IteratorPrototype$2);
|
|
1402
|
+
} else if (!isCallable$8(CurrentIteratorPrototype[ITERATOR$5])) {
|
|
1403
|
+
defineBuiltIn$3(CurrentIteratorPrototype, ITERATOR$5, returnThis);
|
|
1397
1404
|
}
|
|
1398
1405
|
}
|
|
1399
1406
|
// Set @@toStringTag to native iterators
|
|
@@ -1404,10 +1411,10 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1404
1411
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1405
1412
|
if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1406
1413
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1407
|
-
createNonEnumerableProperty$
|
|
1414
|
+
createNonEnumerableProperty$5(IterablePrototype, 'name', VALUES);
|
|
1408
1415
|
} else {
|
|
1409
1416
|
INCORRECT_VALUES_NAME = true;
|
|
1410
|
-
defaultIterator = function values() { return call$
|
|
1417
|
+
defaultIterator = function values() { return call$b(nativeIterator, this); };
|
|
1411
1418
|
}
|
|
1412
1419
|
}
|
|
1413
1420
|
|
|
@@ -1420,14 +1427,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1420
1427
|
};
|
|
1421
1428
|
if (FORCED) for (KEY in methods) {
|
|
1422
1429
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1423
|
-
defineBuiltIn$
|
|
1430
|
+
defineBuiltIn$3(IterablePrototype, KEY, methods[KEY]);
|
|
1424
1431
|
}
|
|
1425
|
-
} else $$
|
|
1432
|
+
} else $$h({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1426
1433
|
}
|
|
1427
1434
|
|
|
1428
1435
|
// define iterator
|
|
1429
|
-
if (IterablePrototype[ITERATOR$
|
|
1430
|
-
defineBuiltIn$
|
|
1436
|
+
if (IterablePrototype[ITERATOR$5] !== defaultIterator) {
|
|
1437
|
+
defineBuiltIn$3(IterablePrototype, ITERATOR$5, defaultIterator, { name: DEFAULT });
|
|
1431
1438
|
}
|
|
1432
1439
|
Iterators$3[NAME] = defaultIterator;
|
|
1433
1440
|
|
|
@@ -1436,22 +1443,22 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1436
1443
|
|
|
1437
1444
|
// `CreateIterResultObject` abstract operation
|
|
1438
1445
|
// https://tc39.es/ecma262/#sec-createiterresultobject
|
|
1439
|
-
var createIterResultObject$
|
|
1446
|
+
var createIterResultObject$2 = function (value, done) {
|
|
1440
1447
|
return { value: value, done: done };
|
|
1441
1448
|
};
|
|
1442
1449
|
|
|
1443
1450
|
var toIndexedObject = toIndexedObject$5;
|
|
1444
1451
|
var addToUnscopables = addToUnscopables$2;
|
|
1445
1452
|
var Iterators$2 = iterators;
|
|
1446
|
-
var InternalStateModule$
|
|
1453
|
+
var InternalStateModule$2 = internalState;
|
|
1447
1454
|
var defineProperty$3 = objectDefineProperty.f;
|
|
1448
1455
|
var defineIterator = iteratorDefine;
|
|
1449
|
-
var createIterResultObject = createIterResultObject$
|
|
1450
|
-
var DESCRIPTORS$
|
|
1456
|
+
var createIterResultObject$1 = createIterResultObject$2;
|
|
1457
|
+
var DESCRIPTORS$7 = descriptors;
|
|
1451
1458
|
|
|
1452
1459
|
var ARRAY_ITERATOR = 'Array Iterator';
|
|
1453
|
-
var setInternalState$
|
|
1454
|
-
var getInternalState = InternalStateModule$
|
|
1460
|
+
var setInternalState$2 = InternalStateModule$2.set;
|
|
1461
|
+
var getInternalState = InternalStateModule$2.getterFor(ARRAY_ITERATOR);
|
|
1455
1462
|
|
|
1456
1463
|
// `Array.prototype.entries` method
|
|
1457
1464
|
// https://tc39.es/ecma262/#sec-array.prototype.entries
|
|
@@ -1464,7 +1471,7 @@ var getInternalState = InternalStateModule$1.getterFor(ARRAY_ITERATOR);
|
|
|
1464
1471
|
// `CreateArrayIterator` internal method
|
|
1465
1472
|
// https://tc39.es/ecma262/#sec-createarrayiterator
|
|
1466
1473
|
var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
|
|
1467
|
-
setInternalState$
|
|
1474
|
+
setInternalState$2(this, {
|
|
1468
1475
|
type: ARRAY_ITERATOR,
|
|
1469
1476
|
target: toIndexedObject(iterated), // target
|
|
1470
1477
|
index: 0, // next index
|
|
@@ -1478,12 +1485,12 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
1478
1485
|
var index = state.index++;
|
|
1479
1486
|
if (!target || index >= target.length) {
|
|
1480
1487
|
state.target = null;
|
|
1481
|
-
return createIterResultObject(undefined, true);
|
|
1488
|
+
return createIterResultObject$1(undefined, true);
|
|
1482
1489
|
}
|
|
1483
1490
|
switch (state.kind) {
|
|
1484
|
-
case 'keys': return createIterResultObject(index, false);
|
|
1485
|
-
case 'values': return createIterResultObject(target[index], false);
|
|
1486
|
-
} return createIterResultObject([index, target[index]], false);
|
|
1491
|
+
case 'keys': return createIterResultObject$1(index, false);
|
|
1492
|
+
case 'values': return createIterResultObject$1(target[index], false);
|
|
1493
|
+
} return createIterResultObject$1([index, target[index]], false);
|
|
1487
1494
|
}, 'values');
|
|
1488
1495
|
|
|
1489
1496
|
// argumentsList[@@iterator] is %ArrayProto_values%
|
|
@@ -1497,27 +1504,27 @@ addToUnscopables('values');
|
|
|
1497
1504
|
addToUnscopables('entries');
|
|
1498
1505
|
|
|
1499
1506
|
// V8 ~ Chrome 45- bug
|
|
1500
|
-
if (DESCRIPTORS$
|
|
1507
|
+
if (DESCRIPTORS$7 && values.name !== 'values') try {
|
|
1501
1508
|
defineProperty$3(values, 'name', { value: 'values' });
|
|
1502
1509
|
} catch (error) { /* empty */ }
|
|
1503
1510
|
|
|
1504
|
-
var aCallable$
|
|
1505
|
-
var toObject$
|
|
1511
|
+
var aCallable$a = aCallable$d;
|
|
1512
|
+
var toObject$2 = toObject$5;
|
|
1506
1513
|
var IndexedObject$1 = indexedObject;
|
|
1507
|
-
var lengthOfArrayLike$
|
|
1514
|
+
var lengthOfArrayLike$2 = lengthOfArrayLike$4;
|
|
1508
1515
|
|
|
1509
|
-
var $TypeError$
|
|
1516
|
+
var $TypeError$b = TypeError;
|
|
1510
1517
|
|
|
1511
1518
|
var REDUCE_EMPTY = 'Reduce of empty array with no initial value';
|
|
1512
1519
|
|
|
1513
1520
|
// `Array.prototype.{ reduce, reduceRight }` methods implementation
|
|
1514
1521
|
var createMethod = function (IS_RIGHT) {
|
|
1515
1522
|
return function (that, callbackfn, argumentsLength, memo) {
|
|
1516
|
-
var O = toObject$
|
|
1523
|
+
var O = toObject$2(that);
|
|
1517
1524
|
var self = IndexedObject$1(O);
|
|
1518
|
-
var length = lengthOfArrayLike$
|
|
1519
|
-
aCallable$
|
|
1520
|
-
if (length === 0 && argumentsLength < 2) throw new $TypeError$
|
|
1525
|
+
var length = lengthOfArrayLike$2(O);
|
|
1526
|
+
aCallable$a(callbackfn);
|
|
1527
|
+
if (length === 0 && argumentsLength < 2) throw new $TypeError$b(REDUCE_EMPTY);
|
|
1521
1528
|
var index = IS_RIGHT ? length - 1 : 0;
|
|
1522
1529
|
var i = IS_RIGHT ? -1 : 1;
|
|
1523
1530
|
if (argumentsLength < 2) while (true) {
|
|
@@ -1528,7 +1535,7 @@ var createMethod = function (IS_RIGHT) {
|
|
|
1528
1535
|
}
|
|
1529
1536
|
index += i;
|
|
1530
1537
|
if (IS_RIGHT ? index < 0 : length <= index) {
|
|
1531
|
-
throw new $TypeError$
|
|
1538
|
+
throw new $TypeError$b(REDUCE_EMPTY);
|
|
1532
1539
|
}
|
|
1533
1540
|
}
|
|
1534
1541
|
for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
|
|
@@ -1547,20 +1554,20 @@ var arrayReduce = {
|
|
|
1547
1554
|
right: createMethod(true)
|
|
1548
1555
|
};
|
|
1549
1556
|
|
|
1550
|
-
var fails$
|
|
1557
|
+
var fails$6 = fails$i;
|
|
1551
1558
|
|
|
1552
1559
|
var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
|
|
1553
1560
|
var method = [][METHOD_NAME];
|
|
1554
|
-
return !!method && fails$
|
|
1561
|
+
return !!method && fails$6(function () {
|
|
1555
1562
|
// eslint-disable-next-line no-useless-call -- required for testing
|
|
1556
1563
|
method.call(null, argument || function () { return 1; }, 1);
|
|
1557
1564
|
});
|
|
1558
1565
|
};
|
|
1559
1566
|
|
|
1560
1567
|
/* global Bun, Deno -- detection */
|
|
1561
|
-
var globalThis$
|
|
1568
|
+
var globalThis$a = globalThis_1;
|
|
1562
1569
|
var userAgent$3 = environmentUserAgent;
|
|
1563
|
-
var classof$
|
|
1570
|
+
var classof$6 = classofRaw$2;
|
|
1564
1571
|
|
|
1565
1572
|
var userAgentStartsWith = function (string) {
|
|
1566
1573
|
return userAgent$3.slice(0, string.length) === string;
|
|
@@ -1571,10 +1578,10 @@ var environment = (function () {
|
|
|
1571
1578
|
if (userAgentStartsWith('Cloudflare-Workers')) return 'CLOUDFLARE';
|
|
1572
1579
|
if (userAgentStartsWith('Deno/')) return 'DENO';
|
|
1573
1580
|
if (userAgentStartsWith('Node.js/')) return 'NODE';
|
|
1574
|
-
if (globalThis$
|
|
1575
|
-
if (globalThis$
|
|
1576
|
-
if (classof$
|
|
1577
|
-
if (globalThis$
|
|
1581
|
+
if (globalThis$a.Bun && typeof Bun.version == 'string') return 'BUN';
|
|
1582
|
+
if (globalThis$a.Deno && typeof Deno.version == 'object') return 'DENO';
|
|
1583
|
+
if (classof$6(globalThis$a.process) === 'process') return 'NODE';
|
|
1584
|
+
if (globalThis$a.window && globalThis$a.document) return 'BROWSER';
|
|
1578
1585
|
return 'REST';
|
|
1579
1586
|
})();
|
|
1580
1587
|
|
|
@@ -1582,7 +1589,7 @@ var ENVIRONMENT$1 = environment;
|
|
|
1582
1589
|
|
|
1583
1590
|
var environmentIsNode = ENVIRONMENT$1 === 'NODE';
|
|
1584
1591
|
|
|
1585
|
-
var $$
|
|
1592
|
+
var $$g = _export;
|
|
1586
1593
|
var $reduce = arrayReduce.left;
|
|
1587
1594
|
var arrayMethodIsStrict = arrayMethodIsStrict$1;
|
|
1588
1595
|
var CHROME_VERSION = environmentV8Version;
|
|
@@ -1591,25 +1598,25 @@ var IS_NODE$3 = environmentIsNode;
|
|
|
1591
1598
|
// Chrome 80-82 has a critical bug
|
|
1592
1599
|
// https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
|
|
1593
1600
|
var CHROME_BUG = !IS_NODE$3 && CHROME_VERSION > 79 && CHROME_VERSION < 83;
|
|
1594
|
-
var FORCED$
|
|
1601
|
+
var FORCED$3 = CHROME_BUG || !arrayMethodIsStrict('reduce');
|
|
1595
1602
|
|
|
1596
1603
|
// `Array.prototype.reduce` method
|
|
1597
1604
|
// https://tc39.es/ecma262/#sec-array.prototype.reduce
|
|
1598
|
-
$$
|
|
1605
|
+
$$g({ target: 'Array', proto: true, forced: FORCED$3 }, {
|
|
1599
1606
|
reduce: function reduce(callbackfn /* , initialValue */) {
|
|
1600
1607
|
var length = arguments.length;
|
|
1601
1608
|
return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
|
|
1602
1609
|
}
|
|
1603
1610
|
});
|
|
1604
1611
|
|
|
1605
|
-
var DESCRIPTORS$
|
|
1612
|
+
var DESCRIPTORS$6 = descriptors;
|
|
1606
1613
|
var uncurryThis$6 = functionUncurryThis;
|
|
1607
|
-
var call$
|
|
1608
|
-
var fails$
|
|
1614
|
+
var call$a = functionCall;
|
|
1615
|
+
var fails$5 = fails$i;
|
|
1609
1616
|
var objectKeys = objectKeys$2;
|
|
1610
1617
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1611
1618
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
1612
|
-
var toObject = toObject$
|
|
1619
|
+
var toObject$1 = toObject$5;
|
|
1613
1620
|
var IndexedObject = indexedObject;
|
|
1614
1621
|
|
|
1615
1622
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
@@ -1620,9 +1627,9 @@ var concat = uncurryThis$6([].concat);
|
|
|
1620
1627
|
|
|
1621
1628
|
// `Object.assign` method
|
|
1622
1629
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1623
|
-
var objectAssign = !$assign || fails$
|
|
1630
|
+
var objectAssign = !$assign || fails$5(function () {
|
|
1624
1631
|
// should have correct order of operations (Edge bug)
|
|
1625
|
-
if (DESCRIPTORS$
|
|
1632
|
+
if (DESCRIPTORS$6 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
|
|
1626
1633
|
enumerable: true,
|
|
1627
1634
|
get: function () {
|
|
1628
1635
|
defineProperty$2(this, 'b', {
|
|
@@ -1638,10 +1645,11 @@ var objectAssign = !$assign || fails$3(function () {
|
|
|
1638
1645
|
var symbol = Symbol('assign detection');
|
|
1639
1646
|
var alphabet = 'abcdefghijklmnopqrst';
|
|
1640
1647
|
A[symbol] = 7;
|
|
1648
|
+
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
|
1641
1649
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
|
1642
1650
|
return $assign({}, A)[symbol] !== 7 || objectKeys($assign({}, B)).join('') !== alphabet;
|
|
1643
1651
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
|
1644
|
-
var T = toObject(target);
|
|
1652
|
+
var T = toObject$1(target);
|
|
1645
1653
|
var argumentsLength = arguments.length;
|
|
1646
1654
|
var index = 1;
|
|
1647
1655
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
|
|
@@ -1654,18 +1662,18 @@ var objectAssign = !$assign || fails$3(function () {
|
|
|
1654
1662
|
var key;
|
|
1655
1663
|
while (length > j) {
|
|
1656
1664
|
key = keys[j++];
|
|
1657
|
-
if (!DESCRIPTORS$
|
|
1665
|
+
if (!DESCRIPTORS$6 || call$a(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1658
1666
|
}
|
|
1659
1667
|
} return T;
|
|
1660
1668
|
} : $assign;
|
|
1661
1669
|
|
|
1662
|
-
var $$
|
|
1670
|
+
var $$f = _export;
|
|
1663
1671
|
var assign = objectAssign;
|
|
1664
1672
|
|
|
1665
1673
|
// `Object.assign` method
|
|
1666
1674
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1667
1675
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
1668
|
-
$$
|
|
1676
|
+
$$f({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
1669
1677
|
assign: assign
|
|
1670
1678
|
});
|
|
1671
1679
|
|
|
@@ -1680,45 +1688,45 @@ var functionUncurryThisClause = function (fn) {
|
|
|
1680
1688
|
};
|
|
1681
1689
|
|
|
1682
1690
|
var uncurryThis$4 = functionUncurryThisClause;
|
|
1683
|
-
var aCallable$
|
|
1691
|
+
var aCallable$9 = aCallable$d;
|
|
1684
1692
|
var NATIVE_BIND$1 = functionBindNative;
|
|
1685
1693
|
|
|
1686
1694
|
var bind$4 = uncurryThis$4(uncurryThis$4.bind);
|
|
1687
1695
|
|
|
1688
1696
|
// optional / simple context binding
|
|
1689
1697
|
var functionBindContext = function (fn, that) {
|
|
1690
|
-
aCallable$
|
|
1698
|
+
aCallable$9(fn);
|
|
1691
1699
|
return that === undefined ? fn : NATIVE_BIND$1 ? bind$4(fn, that) : function (/* ...args */) {
|
|
1692
1700
|
return fn.apply(that, arguments);
|
|
1693
1701
|
};
|
|
1694
1702
|
};
|
|
1695
1703
|
|
|
1696
|
-
var wellKnownSymbol$
|
|
1704
|
+
var wellKnownSymbol$c = wellKnownSymbol$i;
|
|
1697
1705
|
var Iterators$1 = iterators;
|
|
1698
1706
|
|
|
1699
|
-
var ITERATOR$
|
|
1707
|
+
var ITERATOR$4 = wellKnownSymbol$c('iterator');
|
|
1700
1708
|
var ArrayPrototype = Array.prototype;
|
|
1701
1709
|
|
|
1702
1710
|
// check on default Array iterator
|
|
1703
1711
|
var isArrayIteratorMethod$1 = function (it) {
|
|
1704
|
-
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$
|
|
1712
|
+
return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$4] === it);
|
|
1705
1713
|
};
|
|
1706
1714
|
|
|
1707
|
-
var wellKnownSymbol$
|
|
1715
|
+
var wellKnownSymbol$b = wellKnownSymbol$i;
|
|
1708
1716
|
|
|
1709
|
-
var TO_STRING_TAG$
|
|
1717
|
+
var TO_STRING_TAG$3 = wellKnownSymbol$b('toStringTag');
|
|
1710
1718
|
var test = {};
|
|
1711
1719
|
|
|
1712
|
-
test[TO_STRING_TAG$
|
|
1720
|
+
test[TO_STRING_TAG$3] = 'z';
|
|
1713
1721
|
|
|
1714
1722
|
var toStringTagSupport = String(test) === '[object z]';
|
|
1715
1723
|
|
|
1716
1724
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
1717
|
-
var isCallable$
|
|
1725
|
+
var isCallable$7 = isCallable$l;
|
|
1718
1726
|
var classofRaw = classofRaw$2;
|
|
1719
|
-
var wellKnownSymbol$
|
|
1727
|
+
var wellKnownSymbol$a = wellKnownSymbol$i;
|
|
1720
1728
|
|
|
1721
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
1729
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$a('toStringTag');
|
|
1722
1730
|
var $Object = Object;
|
|
1723
1731
|
|
|
1724
1732
|
// ES3 wrong here
|
|
@@ -1732,81 +1740,81 @@ var tryGet = function (it, key) {
|
|
|
1732
1740
|
};
|
|
1733
1741
|
|
|
1734
1742
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
1735
|
-
var classof$
|
|
1743
|
+
var classof$5 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
|
|
1736
1744
|
var O, tag, result;
|
|
1737
1745
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
1738
1746
|
// @@toStringTag case
|
|
1739
|
-
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
|
|
1747
|
+
: typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG$2)) == 'string' ? tag
|
|
1740
1748
|
// builtinTag case
|
|
1741
1749
|
: CORRECT_ARGUMENTS ? classofRaw(O)
|
|
1742
1750
|
// ES3 arguments fallback
|
|
1743
|
-
: (result = classofRaw(O)) === 'Object' && isCallable$
|
|
1751
|
+
: (result = classofRaw(O)) === 'Object' && isCallable$7(O.callee) ? 'Arguments' : result;
|
|
1744
1752
|
};
|
|
1745
1753
|
|
|
1746
|
-
var classof$
|
|
1747
|
-
var getMethod$
|
|
1754
|
+
var classof$4 = classof$5;
|
|
1755
|
+
var getMethod$2 = getMethod$4;
|
|
1748
1756
|
var isNullOrUndefined$1 = isNullOrUndefined$4;
|
|
1749
1757
|
var Iterators = iterators;
|
|
1750
|
-
var wellKnownSymbol$
|
|
1758
|
+
var wellKnownSymbol$9 = wellKnownSymbol$i;
|
|
1751
1759
|
|
|
1752
|
-
var ITERATOR$
|
|
1760
|
+
var ITERATOR$3 = wellKnownSymbol$9('iterator');
|
|
1753
1761
|
|
|
1754
1762
|
var getIteratorMethod$2 = function (it) {
|
|
1755
|
-
if (!isNullOrUndefined$1(it)) return getMethod$
|
|
1756
|
-
|| getMethod$
|
|
1757
|
-
|| Iterators[classof$
|
|
1763
|
+
if (!isNullOrUndefined$1(it)) return getMethod$2(it, ITERATOR$3)
|
|
1764
|
+
|| getMethod$2(it, '@@iterator')
|
|
1765
|
+
|| Iterators[classof$4(it)];
|
|
1758
1766
|
};
|
|
1759
1767
|
|
|
1760
|
-
var call$
|
|
1761
|
-
var aCallable$
|
|
1762
|
-
var anObject$
|
|
1768
|
+
var call$9 = functionCall;
|
|
1769
|
+
var aCallable$8 = aCallable$d;
|
|
1770
|
+
var anObject$a = anObject$f;
|
|
1763
1771
|
var tryToString$2 = tryToString$4;
|
|
1764
1772
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
1765
1773
|
|
|
1766
|
-
var $TypeError$
|
|
1774
|
+
var $TypeError$a = TypeError;
|
|
1767
1775
|
|
|
1768
1776
|
var getIterator$1 = function (argument, usingIterator) {
|
|
1769
1777
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
1770
|
-
if (aCallable$
|
|
1771
|
-
throw new $TypeError$
|
|
1778
|
+
if (aCallable$8(iteratorMethod)) return anObject$a(call$9(iteratorMethod, argument));
|
|
1779
|
+
throw new $TypeError$a(tryToString$2(argument) + ' is not iterable');
|
|
1772
1780
|
};
|
|
1773
1781
|
|
|
1774
|
-
var call$
|
|
1775
|
-
var anObject$
|
|
1776
|
-
var getMethod = getMethod$
|
|
1782
|
+
var call$8 = functionCall;
|
|
1783
|
+
var anObject$9 = anObject$f;
|
|
1784
|
+
var getMethod$1 = getMethod$4;
|
|
1777
1785
|
|
|
1778
|
-
var iteratorClose$
|
|
1786
|
+
var iteratorClose$3 = function (iterator, kind, value) {
|
|
1779
1787
|
var innerResult, innerError;
|
|
1780
|
-
anObject$
|
|
1788
|
+
anObject$9(iterator);
|
|
1781
1789
|
try {
|
|
1782
|
-
innerResult = getMethod(iterator, 'return');
|
|
1790
|
+
innerResult = getMethod$1(iterator, 'return');
|
|
1783
1791
|
if (!innerResult) {
|
|
1784
1792
|
if (kind === 'throw') throw value;
|
|
1785
1793
|
return value;
|
|
1786
1794
|
}
|
|
1787
|
-
innerResult = call$
|
|
1795
|
+
innerResult = call$8(innerResult, iterator);
|
|
1788
1796
|
} catch (error) {
|
|
1789
1797
|
innerError = true;
|
|
1790
1798
|
innerResult = error;
|
|
1791
1799
|
}
|
|
1792
1800
|
if (kind === 'throw') throw value;
|
|
1793
1801
|
if (innerError) throw innerResult;
|
|
1794
|
-
anObject$
|
|
1802
|
+
anObject$9(innerResult);
|
|
1795
1803
|
return value;
|
|
1796
1804
|
};
|
|
1797
1805
|
|
|
1798
1806
|
var bind$3 = functionBindContext;
|
|
1799
|
-
var call$
|
|
1800
|
-
var anObject$
|
|
1807
|
+
var call$7 = functionCall;
|
|
1808
|
+
var anObject$8 = anObject$f;
|
|
1801
1809
|
var tryToString$1 = tryToString$4;
|
|
1802
1810
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
1803
|
-
var lengthOfArrayLike = lengthOfArrayLike$
|
|
1811
|
+
var lengthOfArrayLike$1 = lengthOfArrayLike$4;
|
|
1804
1812
|
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
1805
1813
|
var getIterator = getIterator$1;
|
|
1806
1814
|
var getIteratorMethod = getIteratorMethod$2;
|
|
1807
|
-
var iteratorClose = iteratorClose$
|
|
1815
|
+
var iteratorClose$2 = iteratorClose$3;
|
|
1808
1816
|
|
|
1809
|
-
var $TypeError$
|
|
1817
|
+
var $TypeError$9 = TypeError;
|
|
1810
1818
|
|
|
1811
1819
|
var Result = function (stopped, result) {
|
|
1812
1820
|
this.stopped = stopped;
|
|
@@ -1815,7 +1823,7 @@ var Result = function (stopped, result) {
|
|
|
1815
1823
|
|
|
1816
1824
|
var ResultPrototype = Result.prototype;
|
|
1817
1825
|
|
|
1818
|
-
var iterate$
|
|
1826
|
+
var iterate$5 = function (iterable, unboundFunction, options) {
|
|
1819
1827
|
var that = options && options.that;
|
|
1820
1828
|
var AS_ENTRIES = !!(options && options.AS_ENTRIES);
|
|
1821
1829
|
var IS_RECORD = !!(options && options.IS_RECORD);
|
|
@@ -1825,13 +1833,13 @@ var iterate$3 = function (iterable, unboundFunction, options) {
|
|
|
1825
1833
|
var iterator, iterFn, index, length, result, next, step;
|
|
1826
1834
|
|
|
1827
1835
|
var stop = function (condition) {
|
|
1828
|
-
if (iterator) iteratorClose(iterator, 'normal', condition);
|
|
1836
|
+
if (iterator) iteratorClose$2(iterator, 'normal', condition);
|
|
1829
1837
|
return new Result(true, condition);
|
|
1830
1838
|
};
|
|
1831
1839
|
|
|
1832
1840
|
var callFn = function (value) {
|
|
1833
1841
|
if (AS_ENTRIES) {
|
|
1834
|
-
anObject$
|
|
1842
|
+
anObject$8(value);
|
|
1835
1843
|
return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
|
|
1836
1844
|
} return INTERRUPTED ? fn(value, stop) : fn(value);
|
|
1837
1845
|
};
|
|
@@ -1842,10 +1850,10 @@ var iterate$3 = function (iterable, unboundFunction, options) {
|
|
|
1842
1850
|
iterator = iterable;
|
|
1843
1851
|
} else {
|
|
1844
1852
|
iterFn = getIteratorMethod(iterable);
|
|
1845
|
-
if (!iterFn) throw new $TypeError$
|
|
1853
|
+
if (!iterFn) throw new $TypeError$9(tryToString$1(iterable) + ' is not iterable');
|
|
1846
1854
|
// optimisation for array iterators
|
|
1847
1855
|
if (isArrayIteratorMethod(iterFn)) {
|
|
1848
|
-
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
1856
|
+
for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
|
|
1849
1857
|
result = callFn(iterable[index]);
|
|
1850
1858
|
if (result && isPrototypeOf$2(ResultPrototype, result)) return result;
|
|
1851
1859
|
} return new Result(false);
|
|
@@ -1854,36 +1862,36 @@ var iterate$3 = function (iterable, unboundFunction, options) {
|
|
|
1854
1862
|
}
|
|
1855
1863
|
|
|
1856
1864
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
1857
|
-
while (!(step = call$
|
|
1865
|
+
while (!(step = call$7(next, iterator)).done) {
|
|
1858
1866
|
try {
|
|
1859
1867
|
result = callFn(step.value);
|
|
1860
1868
|
} catch (error) {
|
|
1861
|
-
iteratorClose(iterator, 'throw', error);
|
|
1869
|
+
iteratorClose$2(iterator, 'throw', error);
|
|
1862
1870
|
}
|
|
1863
1871
|
if (typeof result == 'object' && result && isPrototypeOf$2(ResultPrototype, result)) return result;
|
|
1864
1872
|
} return new Result(false);
|
|
1865
1873
|
};
|
|
1866
1874
|
|
|
1867
|
-
var DESCRIPTORS$
|
|
1875
|
+
var DESCRIPTORS$5 = descriptors;
|
|
1868
1876
|
var definePropertyModule = objectDefineProperty;
|
|
1869
1877
|
var createPropertyDescriptor$1 = createPropertyDescriptor$5;
|
|
1870
1878
|
|
|
1871
|
-
var createProperty$
|
|
1872
|
-
if (DESCRIPTORS$
|
|
1879
|
+
var createProperty$2 = function (object, key, value) {
|
|
1880
|
+
if (DESCRIPTORS$5) definePropertyModule.f(object, key, createPropertyDescriptor$1(0, value));
|
|
1873
1881
|
else object[key] = value;
|
|
1874
1882
|
};
|
|
1875
1883
|
|
|
1876
|
-
var $$
|
|
1877
|
-
var iterate$
|
|
1878
|
-
var createProperty = createProperty$
|
|
1884
|
+
var $$e = _export;
|
|
1885
|
+
var iterate$4 = iterate$5;
|
|
1886
|
+
var createProperty$1 = createProperty$2;
|
|
1879
1887
|
|
|
1880
1888
|
// `Object.fromEntries` method
|
|
1881
|
-
// https://
|
|
1882
|
-
$$
|
|
1889
|
+
// https://tc39.es/ecma262/#sec-object.fromentries
|
|
1890
|
+
$$e({ target: 'Object', stat: true }, {
|
|
1883
1891
|
fromEntries: function fromEntries(iterable) {
|
|
1884
1892
|
var obj = {};
|
|
1885
|
-
iterate$
|
|
1886
|
-
createProperty(obj, k, v);
|
|
1893
|
+
iterate$4(iterable, function (k, v) {
|
|
1894
|
+
createProperty$1(obj, k, v);
|
|
1887
1895
|
}, { AS_ENTRIES: true });
|
|
1888
1896
|
return obj;
|
|
1889
1897
|
}
|
|
@@ -1892,24 +1900,24 @@ $$8({ target: 'Object', stat: true }, {
|
|
|
1892
1900
|
var makeBuiltIn = makeBuiltInExports;
|
|
1893
1901
|
var defineProperty$1 = objectDefineProperty;
|
|
1894
1902
|
|
|
1895
|
-
var defineBuiltInAccessor$
|
|
1903
|
+
var defineBuiltInAccessor$2 = function (target, name, descriptor) {
|
|
1896
1904
|
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
1897
1905
|
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
1898
1906
|
return defineProperty$1.f(target, name, descriptor);
|
|
1899
1907
|
};
|
|
1900
1908
|
|
|
1901
1909
|
var getBuiltIn$4 = getBuiltIn$8;
|
|
1902
|
-
var defineBuiltInAccessor = defineBuiltInAccessor$
|
|
1903
|
-
var wellKnownSymbol$
|
|
1904
|
-
var DESCRIPTORS$
|
|
1910
|
+
var defineBuiltInAccessor$1 = defineBuiltInAccessor$2;
|
|
1911
|
+
var wellKnownSymbol$8 = wellKnownSymbol$i;
|
|
1912
|
+
var DESCRIPTORS$4 = descriptors;
|
|
1905
1913
|
|
|
1906
|
-
var SPECIES$2 = wellKnownSymbol$
|
|
1914
|
+
var SPECIES$2 = wellKnownSymbol$8('species');
|
|
1907
1915
|
|
|
1908
1916
|
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
1909
1917
|
var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
|
|
1910
1918
|
|
|
1911
|
-
if (DESCRIPTORS$
|
|
1912
|
-
defineBuiltInAccessor(Constructor, SPECIES$2, {
|
|
1919
|
+
if (DESCRIPTORS$4 && Constructor && !Constructor[SPECIES$2]) {
|
|
1920
|
+
defineBuiltInAccessor$1(Constructor, SPECIES$2, {
|
|
1913
1921
|
configurable: true,
|
|
1914
1922
|
get: function () { return this; }
|
|
1915
1923
|
});
|
|
@@ -1918,17 +1926,17 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
1918
1926
|
|
|
1919
1927
|
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
1920
1928
|
|
|
1921
|
-
var $TypeError$
|
|
1929
|
+
var $TypeError$8 = TypeError;
|
|
1922
1930
|
|
|
1923
|
-
var anInstance$
|
|
1931
|
+
var anInstance$2 = function (it, Prototype) {
|
|
1924
1932
|
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
1925
|
-
throw new $TypeError$
|
|
1933
|
+
throw new $TypeError$8('Incorrect invocation');
|
|
1926
1934
|
};
|
|
1927
1935
|
|
|
1928
1936
|
var uncurryThis$3 = functionUncurryThis;
|
|
1929
|
-
var fails$
|
|
1930
|
-
var isCallable$
|
|
1931
|
-
var classof$
|
|
1937
|
+
var fails$4 = fails$i;
|
|
1938
|
+
var isCallable$6 = isCallable$l;
|
|
1939
|
+
var classof$3 = classof$5;
|
|
1932
1940
|
var getBuiltIn$3 = getBuiltIn$8;
|
|
1933
1941
|
var inspectSource$1 = inspectSource$3;
|
|
1934
1942
|
|
|
@@ -1939,7 +1947,7 @@ var exec = uncurryThis$3(constructorRegExp.exec);
|
|
|
1939
1947
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
1940
1948
|
|
|
1941
1949
|
var isConstructorModern = function isConstructor(argument) {
|
|
1942
|
-
if (!isCallable$
|
|
1950
|
+
if (!isCallable$6(argument)) return false;
|
|
1943
1951
|
try {
|
|
1944
1952
|
construct(noop, [], argument);
|
|
1945
1953
|
return true;
|
|
@@ -1949,8 +1957,8 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
1949
1957
|
};
|
|
1950
1958
|
|
|
1951
1959
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
1952
|
-
if (!isCallable$
|
|
1953
|
-
switch (classof$
|
|
1960
|
+
if (!isCallable$6(argument)) return false;
|
|
1961
|
+
switch (classof$3(argument)) {
|
|
1954
1962
|
case 'AsyncFunction':
|
|
1955
1963
|
case 'GeneratorFunction':
|
|
1956
1964
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -1969,7 +1977,7 @@ isConstructorLegacy.sham = true;
|
|
|
1969
1977
|
|
|
1970
1978
|
// `IsConstructor` abstract operation
|
|
1971
1979
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
1972
|
-
var isConstructor$1 = !construct || fails$
|
|
1980
|
+
var isConstructor$1 = !construct || fails$4(function () {
|
|
1973
1981
|
var called;
|
|
1974
1982
|
return isConstructorModern(isConstructorModern.call)
|
|
1975
1983
|
|| !isConstructorModern(Object)
|
|
@@ -1980,48 +1988,48 @@ var isConstructor$1 = !construct || fails$2(function () {
|
|
|
1980
1988
|
var isConstructor = isConstructor$1;
|
|
1981
1989
|
var tryToString = tryToString$4;
|
|
1982
1990
|
|
|
1983
|
-
var $TypeError$
|
|
1991
|
+
var $TypeError$7 = TypeError;
|
|
1984
1992
|
|
|
1985
1993
|
// `Assert: IsConstructor(argument) is true`
|
|
1986
1994
|
var aConstructor$1 = function (argument) {
|
|
1987
1995
|
if (isConstructor(argument)) return argument;
|
|
1988
|
-
throw new $TypeError$
|
|
1996
|
+
throw new $TypeError$7(tryToString(argument) + ' is not a constructor');
|
|
1989
1997
|
};
|
|
1990
1998
|
|
|
1991
|
-
var anObject$
|
|
1999
|
+
var anObject$7 = anObject$f;
|
|
1992
2000
|
var aConstructor = aConstructor$1;
|
|
1993
2001
|
var isNullOrUndefined = isNullOrUndefined$4;
|
|
1994
|
-
var wellKnownSymbol$
|
|
2002
|
+
var wellKnownSymbol$7 = wellKnownSymbol$i;
|
|
1995
2003
|
|
|
1996
|
-
var SPECIES$1 = wellKnownSymbol$
|
|
2004
|
+
var SPECIES$1 = wellKnownSymbol$7('species');
|
|
1997
2005
|
|
|
1998
2006
|
// `SpeciesConstructor` abstract operation
|
|
1999
2007
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
2000
2008
|
var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
2001
|
-
var C = anObject$
|
|
2009
|
+
var C = anObject$7(O).constructor;
|
|
2002
2010
|
var S;
|
|
2003
|
-
return C === undefined || isNullOrUndefined(S = anObject$
|
|
2011
|
+
return C === undefined || isNullOrUndefined(S = anObject$7(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
|
|
2004
2012
|
};
|
|
2005
2013
|
|
|
2006
2014
|
var NATIVE_BIND = functionBindNative;
|
|
2007
2015
|
|
|
2008
2016
|
var FunctionPrototype = Function.prototype;
|
|
2009
2017
|
var apply$2 = FunctionPrototype.apply;
|
|
2010
|
-
var call$
|
|
2018
|
+
var call$6 = FunctionPrototype.call;
|
|
2011
2019
|
|
|
2012
|
-
// eslint-disable-next-line es/no-reflect -- safe
|
|
2013
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$
|
|
2014
|
-
return call$
|
|
2020
|
+
// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe
|
|
2021
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$6.bind(apply$2) : function () {
|
|
2022
|
+
return call$6.apply(apply$2, arguments);
|
|
2015
2023
|
});
|
|
2016
2024
|
|
|
2017
2025
|
var uncurryThis$2 = functionUncurryThis;
|
|
2018
2026
|
|
|
2019
2027
|
var arraySlice$1 = uncurryThis$2([].slice);
|
|
2020
2028
|
|
|
2021
|
-
var $TypeError$
|
|
2029
|
+
var $TypeError$6 = TypeError;
|
|
2022
2030
|
|
|
2023
2031
|
var validateArgumentsLength$1 = function (passed, required) {
|
|
2024
|
-
if (passed < required) throw new $TypeError$
|
|
2032
|
+
if (passed < required) throw new $TypeError$6('Not enough arguments');
|
|
2025
2033
|
return passed;
|
|
2026
2034
|
};
|
|
2027
2035
|
|
|
@@ -2030,12 +2038,12 @@ var userAgent$2 = environmentUserAgent;
|
|
|
2030
2038
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
2031
2039
|
var environmentIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
2032
2040
|
|
|
2033
|
-
var globalThis$
|
|
2041
|
+
var globalThis$9 = globalThis_1;
|
|
2034
2042
|
var apply$1 = functionApply;
|
|
2035
2043
|
var bind$2 = functionBindContext;
|
|
2036
|
-
var isCallable$
|
|
2037
|
-
var hasOwn$
|
|
2038
|
-
var fails$
|
|
2044
|
+
var isCallable$5 = isCallable$l;
|
|
2045
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
2046
|
+
var fails$3 = fails$i;
|
|
2039
2047
|
var html = html$2;
|
|
2040
2048
|
var arraySlice = arraySlice$1;
|
|
2041
2049
|
var createElement = documentCreateElement$2;
|
|
@@ -2043,25 +2051,25 @@ var validateArgumentsLength = validateArgumentsLength$1;
|
|
|
2043
2051
|
var IS_IOS$1 = environmentIsIos;
|
|
2044
2052
|
var IS_NODE$2 = environmentIsNode;
|
|
2045
2053
|
|
|
2046
|
-
var set = globalThis$
|
|
2047
|
-
var clear = globalThis$
|
|
2048
|
-
var process$
|
|
2049
|
-
var Dispatch = globalThis$
|
|
2050
|
-
var Function$1 = globalThis$
|
|
2051
|
-
var MessageChannel = globalThis$
|
|
2052
|
-
var String$1 = globalThis$
|
|
2054
|
+
var set = globalThis$9.setImmediate;
|
|
2055
|
+
var clear = globalThis$9.clearImmediate;
|
|
2056
|
+
var process$3 = globalThis$9.process;
|
|
2057
|
+
var Dispatch = globalThis$9.Dispatch;
|
|
2058
|
+
var Function$1 = globalThis$9.Function;
|
|
2059
|
+
var MessageChannel = globalThis$9.MessageChannel;
|
|
2060
|
+
var String$1 = globalThis$9.String;
|
|
2053
2061
|
var counter = 0;
|
|
2054
2062
|
var queue$2 = {};
|
|
2055
2063
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
2056
2064
|
var $location, defer, channel, port;
|
|
2057
2065
|
|
|
2058
|
-
fails$
|
|
2066
|
+
fails$3(function () {
|
|
2059
2067
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
2060
|
-
$location = globalThis$
|
|
2068
|
+
$location = globalThis$9.location;
|
|
2061
2069
|
});
|
|
2062
2070
|
|
|
2063
2071
|
var run = function (id) {
|
|
2064
|
-
if (hasOwn$
|
|
2072
|
+
if (hasOwn$2(queue$2, id)) {
|
|
2065
2073
|
var fn = queue$2[id];
|
|
2066
2074
|
delete queue$2[id];
|
|
2067
2075
|
fn();
|
|
@@ -2080,14 +2088,14 @@ var eventListener = function (event) {
|
|
|
2080
2088
|
|
|
2081
2089
|
var globalPostMessageDefer = function (id) {
|
|
2082
2090
|
// old engines have not location.origin
|
|
2083
|
-
globalThis$
|
|
2091
|
+
globalThis$9.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
2084
2092
|
};
|
|
2085
2093
|
|
|
2086
2094
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
2087
2095
|
if (!set || !clear) {
|
|
2088
2096
|
set = function setImmediate(handler) {
|
|
2089
2097
|
validateArgumentsLength(arguments.length, 1);
|
|
2090
|
-
var fn = isCallable$
|
|
2098
|
+
var fn = isCallable$5(handler) ? handler : Function$1(handler);
|
|
2091
2099
|
var args = arraySlice(arguments, 1);
|
|
2092
2100
|
queue$2[++counter] = function () {
|
|
2093
2101
|
apply$1(fn, undefined, args);
|
|
@@ -2101,7 +2109,7 @@ if (!set || !clear) {
|
|
|
2101
2109
|
// Node.js 0.8-
|
|
2102
2110
|
if (IS_NODE$2) {
|
|
2103
2111
|
defer = function (id) {
|
|
2104
|
-
process$
|
|
2112
|
+
process$3.nextTick(runner(id));
|
|
2105
2113
|
};
|
|
2106
2114
|
// Sphere (JS game engine) Dispatch API
|
|
2107
2115
|
} else if (Dispatch && Dispatch.now) {
|
|
@@ -2118,14 +2126,14 @@ if (!set || !clear) {
|
|
|
2118
2126
|
// Browsers with postMessage, skip WebWorkers
|
|
2119
2127
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
2120
2128
|
} else if (
|
|
2121
|
-
globalThis$
|
|
2122
|
-
isCallable$
|
|
2123
|
-
!globalThis$
|
|
2129
|
+
globalThis$9.addEventListener &&
|
|
2130
|
+
isCallable$5(globalThis$9.postMessage) &&
|
|
2131
|
+
!globalThis$9.importScripts &&
|
|
2124
2132
|
$location && $location.protocol !== 'file:' &&
|
|
2125
|
-
!fails$
|
|
2133
|
+
!fails$3(globalPostMessageDefer)
|
|
2126
2134
|
) {
|
|
2127
2135
|
defer = globalPostMessageDefer;
|
|
2128
|
-
globalThis$
|
|
2136
|
+
globalThis$9.addEventListener('message', eventListener, false);
|
|
2129
2137
|
// IE8-
|
|
2130
2138
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
2131
2139
|
defer = function (id) {
|
|
@@ -2147,16 +2155,16 @@ var task$1 = {
|
|
|
2147
2155
|
clear: clear
|
|
2148
2156
|
};
|
|
2149
2157
|
|
|
2150
|
-
var globalThis$
|
|
2151
|
-
var DESCRIPTORS$
|
|
2158
|
+
var globalThis$8 = globalThis_1;
|
|
2159
|
+
var DESCRIPTORS$3 = descriptors;
|
|
2152
2160
|
|
|
2153
2161
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
2154
|
-
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
2162
|
+
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
2155
2163
|
|
|
2156
2164
|
// Avoid NodeJS experimental warning
|
|
2157
2165
|
var safeGetBuiltIn$1 = function (name) {
|
|
2158
|
-
if (!DESCRIPTORS$
|
|
2159
|
-
var descriptor = getOwnPropertyDescriptor(globalThis$
|
|
2166
|
+
if (!DESCRIPTORS$3) return globalThis$8[name];
|
|
2167
|
+
var descriptor = getOwnPropertyDescriptor$1(globalThis$8, name);
|
|
2160
2168
|
return descriptor && descriptor.value;
|
|
2161
2169
|
};
|
|
2162
2170
|
|
|
@@ -2193,7 +2201,7 @@ var userAgent = environmentUserAgent;
|
|
|
2193
2201
|
|
|
2194
2202
|
var environmentIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
2195
2203
|
|
|
2196
|
-
var globalThis$
|
|
2204
|
+
var globalThis$7 = globalThis_1;
|
|
2197
2205
|
var safeGetBuiltIn = safeGetBuiltIn$1;
|
|
2198
2206
|
var bind$1 = functionBindContext;
|
|
2199
2207
|
var macrotask = task$1.set;
|
|
@@ -2203,10 +2211,10 @@ var IS_IOS_PEBBLE = environmentIsIosPebble;
|
|
|
2203
2211
|
var IS_WEBOS_WEBKIT = environmentIsWebosWebkit;
|
|
2204
2212
|
var IS_NODE$1 = environmentIsNode;
|
|
2205
2213
|
|
|
2206
|
-
var MutationObserver = globalThis$
|
|
2207
|
-
var document$2 = globalThis$
|
|
2208
|
-
var process$
|
|
2209
|
-
var Promise$1 = globalThis$
|
|
2214
|
+
var MutationObserver = globalThis$7.MutationObserver || globalThis$7.WebKitMutationObserver;
|
|
2215
|
+
var document$2 = globalThis$7.document;
|
|
2216
|
+
var process$2 = globalThis$7.process;
|
|
2217
|
+
var Promise$1 = globalThis$7.Promise;
|
|
2210
2218
|
var microtask$1 = safeGetBuiltIn('queueMicrotask');
|
|
2211
2219
|
var notify$1, toggle, node, promise, then;
|
|
2212
2220
|
|
|
@@ -2216,7 +2224,7 @@ if (!microtask$1) {
|
|
|
2216
2224
|
|
|
2217
2225
|
var flush = function () {
|
|
2218
2226
|
var parent, fn;
|
|
2219
|
-
if (IS_NODE$1 && (parent = process$
|
|
2227
|
+
if (IS_NODE$1 && (parent = process$2.domain)) parent.exit();
|
|
2220
2228
|
while (fn = queue.get()) try {
|
|
2221
2229
|
fn();
|
|
2222
2230
|
} catch (error) {
|
|
@@ -2248,7 +2256,7 @@ if (!microtask$1) {
|
|
|
2248
2256
|
// Node.js without promises
|
|
2249
2257
|
} else if (IS_NODE$1) {
|
|
2250
2258
|
notify$1 = function () {
|
|
2251
|
-
process$
|
|
2259
|
+
process$2.nextTick(flush);
|
|
2252
2260
|
};
|
|
2253
2261
|
// for other environments - macrotask based on:
|
|
2254
2262
|
// - setImmediate
|
|
@@ -2258,7 +2266,7 @@ if (!microtask$1) {
|
|
|
2258
2266
|
// - setTimeout
|
|
2259
2267
|
} else {
|
|
2260
2268
|
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
2261
|
-
macrotask = bind$1(macrotask, globalThis$
|
|
2269
|
+
macrotask = bind$1(macrotask, globalThis$7);
|
|
2262
2270
|
notify$1 = function () {
|
|
2263
2271
|
macrotask(flush);
|
|
2264
2272
|
};
|
|
@@ -2287,23 +2295,23 @@ var perform$3 = function (exec) {
|
|
|
2287
2295
|
}
|
|
2288
2296
|
};
|
|
2289
2297
|
|
|
2290
|
-
var globalThis$
|
|
2298
|
+
var globalThis$6 = globalThis_1;
|
|
2291
2299
|
|
|
2292
|
-
var promiseNativeConstructor = globalThis$
|
|
2300
|
+
var promiseNativeConstructor = globalThis$6.Promise;
|
|
2293
2301
|
|
|
2294
|
-
var globalThis$
|
|
2302
|
+
var globalThis$5 = globalThis_1;
|
|
2295
2303
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
2296
|
-
var isCallable$
|
|
2304
|
+
var isCallable$4 = isCallable$l;
|
|
2297
2305
|
var isForced = isForced_1;
|
|
2298
2306
|
var inspectSource = inspectSource$3;
|
|
2299
|
-
var wellKnownSymbol$
|
|
2307
|
+
var wellKnownSymbol$6 = wellKnownSymbol$i;
|
|
2300
2308
|
var ENVIRONMENT = environment;
|
|
2301
2309
|
var V8_VERSION = environmentV8Version;
|
|
2302
2310
|
|
|
2303
2311
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
2304
|
-
var SPECIES = wellKnownSymbol$
|
|
2312
|
+
var SPECIES = wellKnownSymbol$6('species');
|
|
2305
2313
|
var SUBCLASSING = false;
|
|
2306
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$
|
|
2314
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$4(globalThis$5.PromiseRejectionEvent);
|
|
2307
2315
|
|
|
2308
2316
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
2309
2317
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -2337,19 +2345,19 @@ var promiseConstructorDetection = {
|
|
|
2337
2345
|
|
|
2338
2346
|
var newPromiseCapability$2 = {};
|
|
2339
2347
|
|
|
2340
|
-
var aCallable$
|
|
2348
|
+
var aCallable$7 = aCallable$d;
|
|
2341
2349
|
|
|
2342
|
-
var $TypeError$
|
|
2350
|
+
var $TypeError$5 = TypeError;
|
|
2343
2351
|
|
|
2344
2352
|
var PromiseCapability = function (C) {
|
|
2345
2353
|
var resolve, reject;
|
|
2346
2354
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
2347
|
-
if (resolve !== undefined || reject !== undefined) throw new $TypeError$
|
|
2355
|
+
if (resolve !== undefined || reject !== undefined) throw new $TypeError$5('Bad Promise constructor');
|
|
2348
2356
|
resolve = $$resolve;
|
|
2349
2357
|
reject = $$reject;
|
|
2350
2358
|
});
|
|
2351
|
-
this.resolve = aCallable$
|
|
2352
|
-
this.reject = aCallable$
|
|
2359
|
+
this.resolve = aCallable$7(resolve);
|
|
2360
|
+
this.reject = aCallable$7(reject);
|
|
2353
2361
|
};
|
|
2354
2362
|
|
|
2355
2363
|
// `NewPromiseCapability` abstract operation
|
|
@@ -2358,25 +2366,25 @@ newPromiseCapability$2.f = function (C) {
|
|
|
2358
2366
|
return new PromiseCapability(C);
|
|
2359
2367
|
};
|
|
2360
2368
|
|
|
2361
|
-
var $$
|
|
2369
|
+
var $$d = _export;
|
|
2362
2370
|
var IS_NODE = environmentIsNode;
|
|
2363
|
-
var globalThis$
|
|
2364
|
-
var call$
|
|
2365
|
-
var defineBuiltIn$
|
|
2371
|
+
var globalThis$4 = globalThis_1;
|
|
2372
|
+
var call$5 = functionCall;
|
|
2373
|
+
var defineBuiltIn$2 = defineBuiltIn$6;
|
|
2366
2374
|
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
2367
2375
|
var setToStringTag$1 = setToStringTag$4;
|
|
2368
2376
|
var setSpecies = setSpecies$1;
|
|
2369
|
-
var aCallable$
|
|
2370
|
-
var isCallable$
|
|
2377
|
+
var aCallable$6 = aCallable$d;
|
|
2378
|
+
var isCallable$3 = isCallable$l;
|
|
2371
2379
|
var isObject$4 = isObject$d;
|
|
2372
|
-
var anInstance = anInstance$
|
|
2380
|
+
var anInstance$1 = anInstance$2;
|
|
2373
2381
|
var speciesConstructor = speciesConstructor$1;
|
|
2374
2382
|
var task = task$1.set;
|
|
2375
2383
|
var microtask = microtask_1;
|
|
2376
2384
|
var hostReportErrors = hostReportErrors$1;
|
|
2377
2385
|
var perform$2 = perform$3;
|
|
2378
2386
|
var Queue = queue$1;
|
|
2379
|
-
var InternalStateModule = internalState;
|
|
2387
|
+
var InternalStateModule$1 = internalState;
|
|
2380
2388
|
var NativePromiseConstructor$2 = promiseNativeConstructor;
|
|
2381
2389
|
var PromiseConstructorDetection = promiseConstructorDetection;
|
|
2382
2390
|
var newPromiseCapabilityModule$3 = newPromiseCapability$2;
|
|
@@ -2385,18 +2393,18 @@ var PROMISE = 'Promise';
|
|
|
2385
2393
|
var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
|
|
2386
2394
|
var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
|
|
2387
2395
|
var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
|
|
2388
|
-
var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
|
|
2389
|
-
var setInternalState = InternalStateModule.set;
|
|
2396
|
+
var getInternalPromiseState = InternalStateModule$1.getterFor(PROMISE);
|
|
2397
|
+
var setInternalState$1 = InternalStateModule$1.set;
|
|
2390
2398
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
2391
2399
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
2392
2400
|
var PromisePrototype = NativePromisePrototype$1;
|
|
2393
|
-
var TypeError$1 = globalThis$
|
|
2394
|
-
var document$1 = globalThis$
|
|
2395
|
-
var process = globalThis$
|
|
2401
|
+
var TypeError$1 = globalThis$4.TypeError;
|
|
2402
|
+
var document$1 = globalThis$4.document;
|
|
2403
|
+
var process$1 = globalThis$4.process;
|
|
2396
2404
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
2397
2405
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
2398
2406
|
|
|
2399
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$
|
|
2407
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && globalThis$4.dispatchEvent);
|
|
2400
2408
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
2401
2409
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
2402
2410
|
var PENDING = 0;
|
|
@@ -2410,7 +2418,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
2410
2418
|
// helpers
|
|
2411
2419
|
var isThenable = function (it) {
|
|
2412
2420
|
var then;
|
|
2413
|
-
return isObject$4(it) && isCallable$
|
|
2421
|
+
return isObject$4(it) && isCallable$3(then = it.then) ? then : false;
|
|
2414
2422
|
};
|
|
2415
2423
|
|
|
2416
2424
|
var callReaction = function (reaction, state) {
|
|
@@ -2439,7 +2447,7 @@ var callReaction = function (reaction, state) {
|
|
|
2439
2447
|
if (result === reaction.promise) {
|
|
2440
2448
|
reject(new TypeError$1('Promise-chain cycle'));
|
|
2441
2449
|
} else if (then = isThenable(result)) {
|
|
2442
|
-
call$
|
|
2450
|
+
call$5(then, result, resolve, reject);
|
|
2443
2451
|
} else resolve(result);
|
|
2444
2452
|
} else reject(value);
|
|
2445
2453
|
} catch (error) {
|
|
@@ -2469,14 +2477,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
2469
2477
|
event.promise = promise;
|
|
2470
2478
|
event.reason = reason;
|
|
2471
2479
|
event.initEvent(name, false, true);
|
|
2472
|
-
globalThis$
|
|
2480
|
+
globalThis$4.dispatchEvent(event);
|
|
2473
2481
|
} else event = { promise: promise, reason: reason };
|
|
2474
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$
|
|
2482
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = globalThis$4['on' + name])) handler(event);
|
|
2475
2483
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
2476
2484
|
};
|
|
2477
2485
|
|
|
2478
2486
|
var onUnhandled = function (state) {
|
|
2479
|
-
call$
|
|
2487
|
+
call$5(task, globalThis$4, function () {
|
|
2480
2488
|
var promise = state.facade;
|
|
2481
2489
|
var value = state.value;
|
|
2482
2490
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -2484,7 +2492,7 @@ var onUnhandled = function (state) {
|
|
|
2484
2492
|
if (IS_UNHANDLED) {
|
|
2485
2493
|
result = perform$2(function () {
|
|
2486
2494
|
if (IS_NODE) {
|
|
2487
|
-
process.emit('unhandledRejection', value, promise);
|
|
2495
|
+
process$1.emit('unhandledRejection', value, promise);
|
|
2488
2496
|
} else dispatchEvent(UNHANDLED_REJECTION, promise, value);
|
|
2489
2497
|
});
|
|
2490
2498
|
// Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
|
|
@@ -2499,10 +2507,10 @@ var isUnhandled = function (state) {
|
|
|
2499
2507
|
};
|
|
2500
2508
|
|
|
2501
2509
|
var onHandleUnhandled = function (state) {
|
|
2502
|
-
call$
|
|
2510
|
+
call$5(task, globalThis$4, function () {
|
|
2503
2511
|
var promise = state.facade;
|
|
2504
2512
|
if (IS_NODE) {
|
|
2505
|
-
process.emit('rejectionHandled', promise);
|
|
2513
|
+
process$1.emit('rejectionHandled', promise);
|
|
2506
2514
|
} else dispatchEvent(REJECTION_HANDLED, promise, state.value);
|
|
2507
2515
|
});
|
|
2508
2516
|
};
|
|
@@ -2533,7 +2541,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
2533
2541
|
microtask(function () {
|
|
2534
2542
|
var wrapper = { done: false };
|
|
2535
2543
|
try {
|
|
2536
|
-
call$
|
|
2544
|
+
call$5(then, value,
|
|
2537
2545
|
bind(internalResolve, wrapper, state),
|
|
2538
2546
|
bind(internalReject, wrapper, state)
|
|
2539
2547
|
);
|
|
@@ -2555,9 +2563,9 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
2555
2563
|
if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
2556
2564
|
// 25.4.3.1 Promise(executor)
|
|
2557
2565
|
PromiseConstructor = function Promise(executor) {
|
|
2558
|
-
anInstance(this, PromisePrototype);
|
|
2559
|
-
aCallable$
|
|
2560
|
-
call$
|
|
2566
|
+
anInstance$1(this, PromisePrototype);
|
|
2567
|
+
aCallable$6(executor);
|
|
2568
|
+
call$5(Internal, this);
|
|
2561
2569
|
var state = getInternalPromiseState(this);
|
|
2562
2570
|
try {
|
|
2563
2571
|
executor(bind(internalResolve, state), bind(internalReject, state));
|
|
@@ -2570,7 +2578,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2570
2578
|
|
|
2571
2579
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
2572
2580
|
Internal = function Promise(executor) {
|
|
2573
|
-
setInternalState(this, {
|
|
2581
|
+
setInternalState$1(this, {
|
|
2574
2582
|
type: PROMISE,
|
|
2575
2583
|
done: false,
|
|
2576
2584
|
notified: false,
|
|
@@ -2584,13 +2592,13 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2584
2592
|
|
|
2585
2593
|
// `Promise.prototype.then` method
|
|
2586
2594
|
// https://tc39.es/ecma262/#sec-promise.prototype.then
|
|
2587
|
-
Internal.prototype = defineBuiltIn$
|
|
2595
|
+
Internal.prototype = defineBuiltIn$2(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
|
|
2588
2596
|
var state = getInternalPromiseState(this);
|
|
2589
2597
|
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
2590
2598
|
state.parent = true;
|
|
2591
|
-
reaction.ok = isCallable$
|
|
2592
|
-
reaction.fail = isCallable$
|
|
2593
|
-
reaction.domain = IS_NODE ? process.domain : undefined;
|
|
2599
|
+
reaction.ok = isCallable$3(onFulfilled) ? onFulfilled : true;
|
|
2600
|
+
reaction.fail = isCallable$3(onRejected) && onRejected;
|
|
2601
|
+
reaction.domain = IS_NODE ? process$1.domain : undefined;
|
|
2594
2602
|
if (state.state === PENDING) state.reactions.add(reaction);
|
|
2595
2603
|
else microtask(function () {
|
|
2596
2604
|
callReaction(reaction, state);
|
|
@@ -2612,15 +2620,15 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2612
2620
|
: newGenericPromiseCapability(C);
|
|
2613
2621
|
};
|
|
2614
2622
|
|
|
2615
|
-
if (isCallable$
|
|
2623
|
+
if (isCallable$3(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
|
|
2616
2624
|
nativeThen = NativePromisePrototype$1.then;
|
|
2617
2625
|
|
|
2618
2626
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
2619
2627
|
// make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
|
|
2620
|
-
defineBuiltIn$
|
|
2628
|
+
defineBuiltIn$2(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
2621
2629
|
var that = this;
|
|
2622
2630
|
return new PromiseConstructor(function (resolve, reject) {
|
|
2623
|
-
call$
|
|
2631
|
+
call$5(nativeThen, that, resolve, reject);
|
|
2624
2632
|
}).then(onFulfilled, onRejected);
|
|
2625
2633
|
// https://github.com/zloirock/core-js/issues/640
|
|
2626
2634
|
}, { unsafe: true });
|
|
@@ -2638,16 +2646,18 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
2638
2646
|
}
|
|
2639
2647
|
}
|
|
2640
2648
|
|
|
2641
|
-
|
|
2649
|
+
// `Promise` constructor
|
|
2650
|
+
// https://tc39.es/ecma262/#sec-promise-executor
|
|
2651
|
+
$$d({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
2642
2652
|
Promise: PromiseConstructor
|
|
2643
2653
|
});
|
|
2644
2654
|
|
|
2645
2655
|
setToStringTag$1(PromiseConstructor, PROMISE, false);
|
|
2646
2656
|
setSpecies(PROMISE);
|
|
2647
2657
|
|
|
2648
|
-
var wellKnownSymbol$
|
|
2658
|
+
var wellKnownSymbol$5 = wellKnownSymbol$i;
|
|
2649
2659
|
|
|
2650
|
-
var ITERATOR$
|
|
2660
|
+
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
|
2651
2661
|
var SAFE_CLOSING = false;
|
|
2652
2662
|
|
|
2653
2663
|
try {
|
|
@@ -2660,7 +2670,7 @@ try {
|
|
|
2660
2670
|
SAFE_CLOSING = true;
|
|
2661
2671
|
}
|
|
2662
2672
|
};
|
|
2663
|
-
iteratorWithReturn[ITERATOR$
|
|
2673
|
+
iteratorWithReturn[ITERATOR$2] = function () {
|
|
2664
2674
|
return this;
|
|
2665
2675
|
};
|
|
2666
2676
|
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
@@ -2674,7 +2684,7 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
|
2674
2684
|
var ITERATION_SUPPORT = false;
|
|
2675
2685
|
try {
|
|
2676
2686
|
var object = {};
|
|
2677
|
-
object[ITERATOR$
|
|
2687
|
+
object[ITERATOR$2] = function () {
|
|
2678
2688
|
return {
|
|
2679
2689
|
next: function () {
|
|
2680
2690
|
return { done: ITERATION_SUPPORT = true };
|
|
@@ -2694,32 +2704,32 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
2694
2704
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
2695
2705
|
});
|
|
2696
2706
|
|
|
2697
|
-
var $$
|
|
2698
|
-
var call$
|
|
2699
|
-
var aCallable$
|
|
2707
|
+
var $$c = _export;
|
|
2708
|
+
var call$4 = functionCall;
|
|
2709
|
+
var aCallable$5 = aCallable$d;
|
|
2700
2710
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
2701
2711
|
var perform$1 = perform$3;
|
|
2702
|
-
var iterate$
|
|
2712
|
+
var iterate$3 = iterate$5;
|
|
2703
2713
|
var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
2704
2714
|
|
|
2705
2715
|
// `Promise.all` method
|
|
2706
2716
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
2707
|
-
$$
|
|
2717
|
+
$$c({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
2708
2718
|
all: function all(iterable) {
|
|
2709
2719
|
var C = this;
|
|
2710
2720
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
2711
2721
|
var resolve = capability.resolve;
|
|
2712
2722
|
var reject = capability.reject;
|
|
2713
2723
|
var result = perform$1(function () {
|
|
2714
|
-
var $promiseResolve = aCallable$
|
|
2724
|
+
var $promiseResolve = aCallable$5(C.resolve);
|
|
2715
2725
|
var values = [];
|
|
2716
2726
|
var counter = 0;
|
|
2717
2727
|
var remaining = 1;
|
|
2718
|
-
iterate$
|
|
2728
|
+
iterate$3(iterable, function (promise) {
|
|
2719
2729
|
var index = counter++;
|
|
2720
2730
|
var alreadyCalled = false;
|
|
2721
2731
|
remaining++;
|
|
2722
|
-
call$
|
|
2732
|
+
call$4($promiseResolve, C, promise).then(function (value) {
|
|
2723
2733
|
if (alreadyCalled) return;
|
|
2724
2734
|
alreadyCalled = true;
|
|
2725
2735
|
values[index] = value;
|
|
@@ -2733,50 +2743,50 @@ $$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2733
2743
|
}
|
|
2734
2744
|
});
|
|
2735
2745
|
|
|
2736
|
-
var $$
|
|
2746
|
+
var $$b = _export;
|
|
2737
2747
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2738
2748
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
2739
2749
|
var getBuiltIn$2 = getBuiltIn$8;
|
|
2740
|
-
var isCallable$
|
|
2741
|
-
var defineBuiltIn = defineBuiltIn$
|
|
2750
|
+
var isCallable$2 = isCallable$l;
|
|
2751
|
+
var defineBuiltIn$1 = defineBuiltIn$6;
|
|
2742
2752
|
|
|
2743
2753
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
2744
2754
|
|
|
2745
2755
|
// `Promise.prototype.catch` method
|
|
2746
2756
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
2747
|
-
$$
|
|
2757
|
+
$$b({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
2748
2758
|
'catch': function (onRejected) {
|
|
2749
2759
|
return this.then(undefined, onRejected);
|
|
2750
2760
|
}
|
|
2751
2761
|
});
|
|
2752
2762
|
|
|
2753
2763
|
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
2754
|
-
if (isCallable$
|
|
2764
|
+
if (isCallable$2(NativePromiseConstructor)) {
|
|
2755
2765
|
var method = getBuiltIn$2('Promise').prototype['catch'];
|
|
2756
2766
|
if (NativePromisePrototype['catch'] !== method) {
|
|
2757
|
-
defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
2767
|
+
defineBuiltIn$1(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
2758
2768
|
}
|
|
2759
2769
|
}
|
|
2760
2770
|
|
|
2761
|
-
var $$
|
|
2762
|
-
var call = functionCall;
|
|
2763
|
-
var aCallable = aCallable$
|
|
2771
|
+
var $$a = _export;
|
|
2772
|
+
var call$3 = functionCall;
|
|
2773
|
+
var aCallable$4 = aCallable$d;
|
|
2764
2774
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
2765
2775
|
var perform = perform$3;
|
|
2766
|
-
var iterate = iterate$
|
|
2776
|
+
var iterate$2 = iterate$5;
|
|
2767
2777
|
var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
2768
2778
|
|
|
2769
2779
|
// `Promise.race` method
|
|
2770
2780
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
2771
|
-
$$
|
|
2781
|
+
$$a({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
2772
2782
|
race: function race(iterable) {
|
|
2773
2783
|
var C = this;
|
|
2774
2784
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
2775
2785
|
var reject = capability.reject;
|
|
2776
2786
|
var result = perform(function () {
|
|
2777
|
-
var $promiseResolve = aCallable(C.resolve);
|
|
2778
|
-
iterate(iterable, function (promise) {
|
|
2779
|
-
call($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
2787
|
+
var $promiseResolve = aCallable$4(C.resolve);
|
|
2788
|
+
iterate$2(iterable, function (promise) {
|
|
2789
|
+
call$3($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
2780
2790
|
});
|
|
2781
2791
|
});
|
|
2782
2792
|
if (result.error) reject(result.value);
|
|
@@ -2784,13 +2794,13 @@ $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
2784
2794
|
}
|
|
2785
2795
|
});
|
|
2786
2796
|
|
|
2787
|
-
var $$
|
|
2797
|
+
var $$9 = _export;
|
|
2788
2798
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
2789
2799
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
2790
2800
|
|
|
2791
2801
|
// `Promise.reject` method
|
|
2792
2802
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
2793
|
-
$$
|
|
2803
|
+
$$9({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
2794
2804
|
reject: function reject(r) {
|
|
2795
2805
|
var capability = newPromiseCapabilityModule.f(this);
|
|
2796
2806
|
var capabilityReject = capability.reject;
|
|
@@ -2799,12 +2809,12 @@ $$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
2799
2809
|
}
|
|
2800
2810
|
});
|
|
2801
2811
|
|
|
2802
|
-
var anObject = anObject$
|
|
2812
|
+
var anObject$6 = anObject$f;
|
|
2803
2813
|
var isObject$3 = isObject$d;
|
|
2804
2814
|
var newPromiseCapability = newPromiseCapability$2;
|
|
2805
2815
|
|
|
2806
2816
|
var promiseResolve$1 = function (C, x) {
|
|
2807
|
-
anObject(C);
|
|
2817
|
+
anObject$6(C);
|
|
2808
2818
|
if (isObject$3(x) && x.constructor === C) return x;
|
|
2809
2819
|
var promiseCapability = newPromiseCapability.f(C);
|
|
2810
2820
|
var resolve = promiseCapability.resolve;
|
|
@@ -2812,7 +2822,7 @@ var promiseResolve$1 = function (C, x) {
|
|
|
2812
2822
|
return promiseCapability.promise;
|
|
2813
2823
|
};
|
|
2814
2824
|
|
|
2815
|
-
var $$
|
|
2825
|
+
var $$8 = _export;
|
|
2816
2826
|
var getBuiltIn$1 = getBuiltIn$8;
|
|
2817
2827
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
2818
2828
|
var promiseResolve = promiseResolve$1;
|
|
@@ -2821,47 +2831,47 @@ getBuiltIn$1('Promise');
|
|
|
2821
2831
|
|
|
2822
2832
|
// `Promise.resolve` method
|
|
2823
2833
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
2824
|
-
$$
|
|
2834
|
+
$$8({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
2825
2835
|
resolve: function resolve(x) {
|
|
2826
2836
|
return promiseResolve(this, x);
|
|
2827
2837
|
}
|
|
2828
2838
|
});
|
|
2829
2839
|
|
|
2830
2840
|
var isObject$2 = isObject$d;
|
|
2831
|
-
var classof$
|
|
2832
|
-
var wellKnownSymbol$
|
|
2841
|
+
var classof$2 = classofRaw$2;
|
|
2842
|
+
var wellKnownSymbol$4 = wellKnownSymbol$i;
|
|
2833
2843
|
|
|
2834
|
-
var MATCH$1 = wellKnownSymbol$
|
|
2844
|
+
var MATCH$1 = wellKnownSymbol$4('match');
|
|
2835
2845
|
|
|
2836
2846
|
// `IsRegExp` abstract operation
|
|
2837
2847
|
// https://tc39.es/ecma262/#sec-isregexp
|
|
2838
2848
|
var isRegexp = function (it) {
|
|
2839
2849
|
var isRegExp;
|
|
2840
|
-
return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$
|
|
2850
|
+
return isObject$2(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$2(it) === 'RegExp');
|
|
2841
2851
|
};
|
|
2842
2852
|
|
|
2843
2853
|
var isRegExp = isRegexp;
|
|
2844
2854
|
|
|
2845
|
-
var $TypeError = TypeError;
|
|
2855
|
+
var $TypeError$4 = TypeError;
|
|
2846
2856
|
|
|
2847
2857
|
var notARegexp = function (it) {
|
|
2848
2858
|
if (isRegExp(it)) {
|
|
2849
|
-
throw new $TypeError("The method doesn't accept regular expressions");
|
|
2859
|
+
throw new $TypeError$4("The method doesn't accept regular expressions");
|
|
2850
2860
|
} return it;
|
|
2851
2861
|
};
|
|
2852
2862
|
|
|
2853
|
-
var classof = classof$
|
|
2863
|
+
var classof$1 = classof$5;
|
|
2854
2864
|
|
|
2855
2865
|
var $String = String;
|
|
2856
2866
|
|
|
2857
2867
|
var toString$2 = function (argument) {
|
|
2858
|
-
if (classof(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
2868
|
+
if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
2859
2869
|
return $String(argument);
|
|
2860
2870
|
};
|
|
2861
2871
|
|
|
2862
|
-
var wellKnownSymbol$
|
|
2872
|
+
var wellKnownSymbol$3 = wellKnownSymbol$i;
|
|
2863
2873
|
|
|
2864
|
-
var MATCH = wellKnownSymbol$
|
|
2874
|
+
var MATCH = wellKnownSymbol$3('match');
|
|
2865
2875
|
|
|
2866
2876
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
2867
2877
|
var regexp = /./;
|
|
@@ -2875,7 +2885,7 @@ var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
|
2875
2885
|
} return false;
|
|
2876
2886
|
};
|
|
2877
2887
|
|
|
2878
|
-
var $$
|
|
2888
|
+
var $$7 = _export;
|
|
2879
2889
|
var uncurryThis$1 = functionUncurryThis;
|
|
2880
2890
|
var notARegExp = notARegexp;
|
|
2881
2891
|
var requireObjectCoercible = requireObjectCoercible$4;
|
|
@@ -2886,7 +2896,7 @@ var stringIndexOf = uncurryThis$1(''.indexOf);
|
|
|
2886
2896
|
|
|
2887
2897
|
// `String.prototype.includes` method
|
|
2888
2898
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
2889
|
-
$$
|
|
2899
|
+
$$7({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
2890
2900
|
includes: function includes(searchString /* , position = 0 */) {
|
|
2891
2901
|
return !!~stringIndexOf(
|
|
2892
2902
|
toString$1(requireObjectCoercible(this)),
|
|
@@ -2896,6 +2906,277 @@ $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }
|
|
|
2896
2906
|
}
|
|
2897
2907
|
});
|
|
2898
2908
|
|
|
2909
|
+
var $$6 = _export;
|
|
2910
|
+
var globalThis$3 = globalThis_1;
|
|
2911
|
+
var anInstance = anInstance$2;
|
|
2912
|
+
var anObject$5 = anObject$f;
|
|
2913
|
+
var isCallable$1 = isCallable$l;
|
|
2914
|
+
var getPrototypeOf = objectGetPrototypeOf;
|
|
2915
|
+
var defineBuiltInAccessor = defineBuiltInAccessor$2;
|
|
2916
|
+
var createProperty = createProperty$2;
|
|
2917
|
+
var fails$2 = fails$i;
|
|
2918
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
2919
|
+
var wellKnownSymbol$2 = wellKnownSymbol$i;
|
|
2920
|
+
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
2921
|
+
var DESCRIPTORS$2 = descriptors;
|
|
2922
|
+
|
|
2923
|
+
var CONSTRUCTOR = 'constructor';
|
|
2924
|
+
var ITERATOR$1 = 'Iterator';
|
|
2925
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
|
|
2926
|
+
|
|
2927
|
+
var $TypeError$3 = TypeError;
|
|
2928
|
+
var NativeIterator = globalThis$3[ITERATOR$1];
|
|
2929
|
+
|
|
2930
|
+
// FF56- have non-standard global helper `Iterator`
|
|
2931
|
+
var FORCED$2 = !isCallable$1(NativeIterator)
|
|
2932
|
+
|| NativeIterator.prototype !== IteratorPrototype$1
|
|
2933
|
+
// FF44- non-standard `Iterator` passes previous tests
|
|
2934
|
+
|| !fails$2(function () { NativeIterator({}); });
|
|
2935
|
+
|
|
2936
|
+
var IteratorConstructor = function Iterator() {
|
|
2937
|
+
anInstance(this, IteratorPrototype$1);
|
|
2938
|
+
if (getPrototypeOf(this) === IteratorPrototype$1) throw new $TypeError$3('Abstract class Iterator not directly constructable');
|
|
2939
|
+
};
|
|
2940
|
+
|
|
2941
|
+
var defineIteratorPrototypeAccessor = function (key, value) {
|
|
2942
|
+
if (DESCRIPTORS$2) {
|
|
2943
|
+
defineBuiltInAccessor(IteratorPrototype$1, key, {
|
|
2944
|
+
configurable: true,
|
|
2945
|
+
get: function () {
|
|
2946
|
+
return value;
|
|
2947
|
+
},
|
|
2948
|
+
set: function (replacement) {
|
|
2949
|
+
anObject$5(this);
|
|
2950
|
+
if (this === IteratorPrototype$1) throw new $TypeError$3("You can't redefine this property");
|
|
2951
|
+
if (hasOwn$1(this, key)) this[key] = replacement;
|
|
2952
|
+
else createProperty(this, key, replacement);
|
|
2953
|
+
}
|
|
2954
|
+
});
|
|
2955
|
+
} else IteratorPrototype$1[key] = value;
|
|
2956
|
+
};
|
|
2957
|
+
|
|
2958
|
+
if (!hasOwn$1(IteratorPrototype$1, TO_STRING_TAG$1)) defineIteratorPrototypeAccessor(TO_STRING_TAG$1, ITERATOR$1);
|
|
2959
|
+
|
|
2960
|
+
if (FORCED$2 || !hasOwn$1(IteratorPrototype$1, CONSTRUCTOR) || IteratorPrototype$1[CONSTRUCTOR] === Object) {
|
|
2961
|
+
defineIteratorPrototypeAccessor(CONSTRUCTOR, IteratorConstructor);
|
|
2962
|
+
}
|
|
2963
|
+
|
|
2964
|
+
IteratorConstructor.prototype = IteratorPrototype$1;
|
|
2965
|
+
|
|
2966
|
+
// `Iterator` constructor
|
|
2967
|
+
// https://tc39.es/ecma262/#sec-iterator
|
|
2968
|
+
$$6({ global: true, constructor: true, forced: FORCED$2 }, {
|
|
2969
|
+
Iterator: IteratorConstructor
|
|
2970
|
+
});
|
|
2971
|
+
|
|
2972
|
+
// `GetIteratorDirect(obj)` abstract operation
|
|
2973
|
+
// https://tc39.es/proposal-iterator-helpers/#sec-getiteratordirect
|
|
2974
|
+
var getIteratorDirect$4 = function (obj) {
|
|
2975
|
+
return {
|
|
2976
|
+
iterator: obj,
|
|
2977
|
+
next: obj.next,
|
|
2978
|
+
done: false
|
|
2979
|
+
};
|
|
2980
|
+
};
|
|
2981
|
+
|
|
2982
|
+
var defineBuiltIn = defineBuiltIn$6;
|
|
2983
|
+
|
|
2984
|
+
var defineBuiltIns$1 = function (target, src, options) {
|
|
2985
|
+
for (var key in src) defineBuiltIn(target, key, src[key], options);
|
|
2986
|
+
return target;
|
|
2987
|
+
};
|
|
2988
|
+
|
|
2989
|
+
var call$2 = functionCall;
|
|
2990
|
+
var create = objectCreate;
|
|
2991
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
|
|
2992
|
+
var defineBuiltIns = defineBuiltIns$1;
|
|
2993
|
+
var wellKnownSymbol$1 = wellKnownSymbol$i;
|
|
2994
|
+
var InternalStateModule = internalState;
|
|
2995
|
+
var getMethod = getMethod$4;
|
|
2996
|
+
var IteratorPrototype = iteratorsCore.IteratorPrototype;
|
|
2997
|
+
var createIterResultObject = createIterResultObject$2;
|
|
2998
|
+
var iteratorClose$1 = iteratorClose$3;
|
|
2999
|
+
|
|
3000
|
+
var TO_STRING_TAG = wellKnownSymbol$1('toStringTag');
|
|
3001
|
+
var ITERATOR_HELPER = 'IteratorHelper';
|
|
3002
|
+
var WRAP_FOR_VALID_ITERATOR = 'WrapForValidIterator';
|
|
3003
|
+
var setInternalState = InternalStateModule.set;
|
|
3004
|
+
|
|
3005
|
+
var createIteratorProxyPrototype = function (IS_ITERATOR) {
|
|
3006
|
+
var getInternalState = InternalStateModule.getterFor(IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER);
|
|
3007
|
+
|
|
3008
|
+
return defineBuiltIns(create(IteratorPrototype), {
|
|
3009
|
+
next: function next() {
|
|
3010
|
+
var state = getInternalState(this);
|
|
3011
|
+
// for simplification:
|
|
3012
|
+
// for `%WrapForValidIteratorPrototype%.next` or with `state.returnHandlerResult` our `nextHandler` returns `IterResultObject`
|
|
3013
|
+
// for `%IteratorHelperPrototype%.next` - just a value
|
|
3014
|
+
if (IS_ITERATOR) return state.nextHandler();
|
|
3015
|
+
if (state.done) return createIterResultObject(undefined, true);
|
|
3016
|
+
try {
|
|
3017
|
+
var result = state.nextHandler();
|
|
3018
|
+
return state.returnHandlerResult ? result : createIterResultObject(result, state.done);
|
|
3019
|
+
} catch (error) {
|
|
3020
|
+
state.done = true;
|
|
3021
|
+
throw error;
|
|
3022
|
+
}
|
|
3023
|
+
},
|
|
3024
|
+
'return': function () {
|
|
3025
|
+
var state = getInternalState(this);
|
|
3026
|
+
var iterator = state.iterator;
|
|
3027
|
+
state.done = true;
|
|
3028
|
+
if (IS_ITERATOR) {
|
|
3029
|
+
var returnMethod = getMethod(iterator, 'return');
|
|
3030
|
+
return returnMethod ? call$2(returnMethod, iterator) : createIterResultObject(undefined, true);
|
|
3031
|
+
}
|
|
3032
|
+
if (state.inner) try {
|
|
3033
|
+
iteratorClose$1(state.inner.iterator, 'normal');
|
|
3034
|
+
} catch (error) {
|
|
3035
|
+
return iteratorClose$1(iterator, 'throw', error);
|
|
3036
|
+
}
|
|
3037
|
+
if (iterator) iteratorClose$1(iterator, 'normal');
|
|
3038
|
+
return createIterResultObject(undefined, true);
|
|
3039
|
+
}
|
|
3040
|
+
});
|
|
3041
|
+
};
|
|
3042
|
+
|
|
3043
|
+
var WrapForValidIteratorPrototype = createIteratorProxyPrototype(true);
|
|
3044
|
+
var IteratorHelperPrototype = createIteratorProxyPrototype(false);
|
|
3045
|
+
|
|
3046
|
+
createNonEnumerableProperty$4(IteratorHelperPrototype, TO_STRING_TAG, 'Iterator Helper');
|
|
3047
|
+
|
|
3048
|
+
var iteratorCreateProxy = function (nextHandler, IS_ITERATOR, RETURN_HANDLER_RESULT) {
|
|
3049
|
+
var IteratorProxy = function Iterator(record, state) {
|
|
3050
|
+
if (state) {
|
|
3051
|
+
state.iterator = record.iterator;
|
|
3052
|
+
state.next = record.next;
|
|
3053
|
+
} else state = record;
|
|
3054
|
+
state.type = IS_ITERATOR ? WRAP_FOR_VALID_ITERATOR : ITERATOR_HELPER;
|
|
3055
|
+
state.returnHandlerResult = !!RETURN_HANDLER_RESULT;
|
|
3056
|
+
state.nextHandler = nextHandler;
|
|
3057
|
+
state.counter = 0;
|
|
3058
|
+
state.done = false;
|
|
3059
|
+
setInternalState(this, state);
|
|
3060
|
+
};
|
|
3061
|
+
|
|
3062
|
+
IteratorProxy.prototype = IS_ITERATOR ? WrapForValidIteratorPrototype : IteratorHelperPrototype;
|
|
3063
|
+
|
|
3064
|
+
return IteratorProxy;
|
|
3065
|
+
};
|
|
3066
|
+
|
|
3067
|
+
var anObject$4 = anObject$f;
|
|
3068
|
+
var iteratorClose = iteratorClose$3;
|
|
3069
|
+
|
|
3070
|
+
// call something on iterator step with safe closing on error
|
|
3071
|
+
var callWithSafeIterationClosing$2 = function (iterator, fn, value, ENTRIES) {
|
|
3072
|
+
try {
|
|
3073
|
+
return ENTRIES ? fn(anObject$4(value)[0], value[1]) : fn(value);
|
|
3074
|
+
} catch (error) {
|
|
3075
|
+
iteratorClose(iterator, 'throw', error);
|
|
3076
|
+
}
|
|
3077
|
+
};
|
|
3078
|
+
|
|
3079
|
+
var $$5 = _export;
|
|
3080
|
+
var call$1 = functionCall;
|
|
3081
|
+
var aCallable$3 = aCallable$d;
|
|
3082
|
+
var anObject$3 = anObject$f;
|
|
3083
|
+
var getIteratorDirect$3 = getIteratorDirect$4;
|
|
3084
|
+
var createIteratorProxy$1 = iteratorCreateProxy;
|
|
3085
|
+
var callWithSafeIterationClosing$1 = callWithSafeIterationClosing$2;
|
|
3086
|
+
var IS_PURE$1 = isPure;
|
|
3087
|
+
|
|
3088
|
+
var IteratorProxy$1 = createIteratorProxy$1(function () {
|
|
3089
|
+
var iterator = this.iterator;
|
|
3090
|
+
var predicate = this.predicate;
|
|
3091
|
+
var next = this.next;
|
|
3092
|
+
var result, done, value;
|
|
3093
|
+
while (true) {
|
|
3094
|
+
result = anObject$3(call$1(next, iterator));
|
|
3095
|
+
done = this.done = !!result.done;
|
|
3096
|
+
if (done) return;
|
|
3097
|
+
value = result.value;
|
|
3098
|
+
if (callWithSafeIterationClosing$1(iterator, predicate, [value, this.counter++], true)) return value;
|
|
3099
|
+
}
|
|
3100
|
+
});
|
|
3101
|
+
|
|
3102
|
+
// `Iterator.prototype.filter` method
|
|
3103
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.filter
|
|
3104
|
+
$$5({ target: 'Iterator', proto: true, real: true, forced: IS_PURE$1 }, {
|
|
3105
|
+
filter: function filter(predicate) {
|
|
3106
|
+
anObject$3(this);
|
|
3107
|
+
aCallable$3(predicate);
|
|
3108
|
+
return new IteratorProxy$1(getIteratorDirect$3(this), {
|
|
3109
|
+
predicate: predicate
|
|
3110
|
+
});
|
|
3111
|
+
}
|
|
3112
|
+
});
|
|
3113
|
+
|
|
3114
|
+
var call = functionCall;
|
|
3115
|
+
var aCallable$2 = aCallable$d;
|
|
3116
|
+
var anObject$2 = anObject$f;
|
|
3117
|
+
var getIteratorDirect$2 = getIteratorDirect$4;
|
|
3118
|
+
var createIteratorProxy = iteratorCreateProxy;
|
|
3119
|
+
var callWithSafeIterationClosing = callWithSafeIterationClosing$2;
|
|
3120
|
+
|
|
3121
|
+
var IteratorProxy = createIteratorProxy(function () {
|
|
3122
|
+
var iterator = this.iterator;
|
|
3123
|
+
var result = anObject$2(call(this.next, iterator));
|
|
3124
|
+
var done = this.done = !!result.done;
|
|
3125
|
+
if (!done) return callWithSafeIterationClosing(iterator, this.mapper, [result.value, this.counter++], true);
|
|
3126
|
+
});
|
|
3127
|
+
|
|
3128
|
+
// `Iterator.prototype.map` method
|
|
3129
|
+
// https://github.com/tc39/proposal-iterator-helpers
|
|
3130
|
+
var iteratorMap = function map(mapper) {
|
|
3131
|
+
anObject$2(this);
|
|
3132
|
+
aCallable$2(mapper);
|
|
3133
|
+
return new IteratorProxy(getIteratorDirect$2(this), {
|
|
3134
|
+
mapper: mapper
|
|
3135
|
+
});
|
|
3136
|
+
};
|
|
3137
|
+
|
|
3138
|
+
var $$4 = _export;
|
|
3139
|
+
var map = iteratorMap;
|
|
3140
|
+
var IS_PURE = isPure;
|
|
3141
|
+
|
|
3142
|
+
// `Iterator.prototype.map` method
|
|
3143
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.map
|
|
3144
|
+
$$4({ target: 'Iterator', proto: true, real: true, forced: IS_PURE }, {
|
|
3145
|
+
map: map
|
|
3146
|
+
});
|
|
3147
|
+
|
|
3148
|
+
var $$3 = _export;
|
|
3149
|
+
var iterate$1 = iterate$5;
|
|
3150
|
+
var aCallable$1 = aCallable$d;
|
|
3151
|
+
var anObject$1 = anObject$f;
|
|
3152
|
+
var getIteratorDirect$1 = getIteratorDirect$4;
|
|
3153
|
+
|
|
3154
|
+
var $TypeError$2 = TypeError;
|
|
3155
|
+
|
|
3156
|
+
// `Iterator.prototype.reduce` method
|
|
3157
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.reduce
|
|
3158
|
+
$$3({ target: 'Iterator', proto: true, real: true }, {
|
|
3159
|
+
reduce: function reduce(reducer /* , initialValue */) {
|
|
3160
|
+
anObject$1(this);
|
|
3161
|
+
aCallable$1(reducer);
|
|
3162
|
+
var record = getIteratorDirect$1(this);
|
|
3163
|
+
var noInitial = arguments.length < 2;
|
|
3164
|
+
var accumulator = noInitial ? undefined : arguments[1];
|
|
3165
|
+
var counter = 0;
|
|
3166
|
+
iterate$1(record, function (value) {
|
|
3167
|
+
if (noInitial) {
|
|
3168
|
+
noInitial = false;
|
|
3169
|
+
accumulator = value;
|
|
3170
|
+
} else {
|
|
3171
|
+
accumulator = reducer(accumulator, value, counter);
|
|
3172
|
+
}
|
|
3173
|
+
counter++;
|
|
3174
|
+
}, { IS_RECORD: true });
|
|
3175
|
+
if (noInitial) throw new $TypeError$2('Reduce of empty iterator with no initial value');
|
|
3176
|
+
return accumulator;
|
|
3177
|
+
}
|
|
3178
|
+
});
|
|
3179
|
+
|
|
2899
3180
|
// iterable DOM collections
|
|
2900
3181
|
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
|
2901
3182
|
var domIterables = {
|
|
@@ -2944,9 +3225,9 @@ var globalThis$2 = globalThis_1;
|
|
|
2944
3225
|
var DOMIterables = domIterables;
|
|
2945
3226
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
2946
3227
|
var ArrayIteratorMethods = es_array_iterator;
|
|
2947
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$
|
|
3228
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
2948
3229
|
var setToStringTag = setToStringTag$4;
|
|
2949
|
-
var wellKnownSymbol = wellKnownSymbol$
|
|
3230
|
+
var wellKnownSymbol = wellKnownSymbol$i;
|
|
2950
3231
|
|
|
2951
3232
|
var ITERATOR = wellKnownSymbol('iterator');
|
|
2952
3233
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
@@ -3179,6 +3460,377 @@ function useIntrigContext() {
|
|
|
3179
3460
|
return useContext(Context);
|
|
3180
3461
|
}
|
|
3181
3462
|
|
|
3463
|
+
var loglevel = {exports: {}};
|
|
3464
|
+
|
|
3465
|
+
/*
|
|
3466
|
+
* loglevel - https://github.com/pimterry/loglevel
|
|
3467
|
+
*
|
|
3468
|
+
* Copyright (c) 2013 Tim Perry
|
|
3469
|
+
* Licensed under the MIT license.
|
|
3470
|
+
*/
|
|
3471
|
+
|
|
3472
|
+
(function (module) {
|
|
3473
|
+
(function (root, definition) {
|
|
3474
|
+
if (module.exports) {
|
|
3475
|
+
module.exports = definition();
|
|
3476
|
+
} else {
|
|
3477
|
+
root.log = definition();
|
|
3478
|
+
}
|
|
3479
|
+
}(commonjsGlobal, function () {
|
|
3480
|
+
|
|
3481
|
+
// Slightly dubious tricks to cut down minimized file size
|
|
3482
|
+
var noop = function() {};
|
|
3483
|
+
var undefinedType = "undefined";
|
|
3484
|
+
var isIE = (typeof window !== undefinedType) && (typeof window.navigator !== undefinedType) && (
|
|
3485
|
+
/Trident\/|MSIE /.test(window.navigator.userAgent)
|
|
3486
|
+
);
|
|
3487
|
+
|
|
3488
|
+
var logMethods = [
|
|
3489
|
+
"trace",
|
|
3490
|
+
"debug",
|
|
3491
|
+
"info",
|
|
3492
|
+
"warn",
|
|
3493
|
+
"error"
|
|
3494
|
+
];
|
|
3495
|
+
|
|
3496
|
+
var _loggersByName = {};
|
|
3497
|
+
var defaultLogger = null;
|
|
3498
|
+
|
|
3499
|
+
// Cross-browser bind equivalent that works at least back to IE6
|
|
3500
|
+
function bindMethod(obj, methodName) {
|
|
3501
|
+
var method = obj[methodName];
|
|
3502
|
+
if (typeof method.bind === 'function') {
|
|
3503
|
+
return method.bind(obj);
|
|
3504
|
+
} else {
|
|
3505
|
+
try {
|
|
3506
|
+
return Function.prototype.bind.call(method, obj);
|
|
3507
|
+
} catch (e) {
|
|
3508
|
+
// Missing bind shim or IE8 + Modernizr, fallback to wrapping
|
|
3509
|
+
return function() {
|
|
3510
|
+
return Function.prototype.apply.apply(method, [obj, arguments]);
|
|
3511
|
+
};
|
|
3512
|
+
}
|
|
3513
|
+
}
|
|
3514
|
+
}
|
|
3515
|
+
|
|
3516
|
+
// Trace() doesn't print the message in IE, so for that case we need to wrap it
|
|
3517
|
+
function traceForIE() {
|
|
3518
|
+
if (console.log) {
|
|
3519
|
+
if (console.log.apply) {
|
|
3520
|
+
console.log.apply(console, arguments);
|
|
3521
|
+
} else {
|
|
3522
|
+
// In old IE, native console methods themselves don't have apply().
|
|
3523
|
+
Function.prototype.apply.apply(console.log, [console, arguments]);
|
|
3524
|
+
}
|
|
3525
|
+
}
|
|
3526
|
+
if (console.trace) console.trace();
|
|
3527
|
+
}
|
|
3528
|
+
|
|
3529
|
+
// Build the best logging method possible for this env
|
|
3530
|
+
// Wherever possible we want to bind, not wrap, to preserve stack traces
|
|
3531
|
+
function realMethod(methodName) {
|
|
3532
|
+
if (methodName === 'debug') {
|
|
3533
|
+
methodName = 'log';
|
|
3534
|
+
}
|
|
3535
|
+
|
|
3536
|
+
if (typeof console === undefinedType) {
|
|
3537
|
+
return false; // No method possible, for now - fixed later by enableLoggingWhenConsoleArrives
|
|
3538
|
+
} else if (methodName === 'trace' && isIE) {
|
|
3539
|
+
return traceForIE;
|
|
3540
|
+
} else if (console[methodName] !== undefined) {
|
|
3541
|
+
return bindMethod(console, methodName);
|
|
3542
|
+
} else if (console.log !== undefined) {
|
|
3543
|
+
return bindMethod(console, 'log');
|
|
3544
|
+
} else {
|
|
3545
|
+
return noop;
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3548
|
+
|
|
3549
|
+
// These private functions always need `this` to be set properly
|
|
3550
|
+
|
|
3551
|
+
function replaceLoggingMethods() {
|
|
3552
|
+
/*jshint validthis:true */
|
|
3553
|
+
var level = this.getLevel();
|
|
3554
|
+
|
|
3555
|
+
// Replace the actual methods.
|
|
3556
|
+
for (var i = 0; i < logMethods.length; i++) {
|
|
3557
|
+
var methodName = logMethods[i];
|
|
3558
|
+
this[methodName] = (i < level) ?
|
|
3559
|
+
noop :
|
|
3560
|
+
this.methodFactory(methodName, level, this.name);
|
|
3561
|
+
}
|
|
3562
|
+
|
|
3563
|
+
// Define log.log as an alias for log.debug
|
|
3564
|
+
this.log = this.debug;
|
|
3565
|
+
|
|
3566
|
+
// Return any important warnings.
|
|
3567
|
+
if (typeof console === undefinedType && level < this.levels.SILENT) {
|
|
3568
|
+
return "No console available for logging";
|
|
3569
|
+
}
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
// In old IE versions, the console isn't present until you first open it.
|
|
3573
|
+
// We build realMethod() replacements here that regenerate logging methods
|
|
3574
|
+
function enableLoggingWhenConsoleArrives(methodName) {
|
|
3575
|
+
return function () {
|
|
3576
|
+
if (typeof console !== undefinedType) {
|
|
3577
|
+
replaceLoggingMethods.call(this);
|
|
3578
|
+
this[methodName].apply(this, arguments);
|
|
3579
|
+
}
|
|
3580
|
+
};
|
|
3581
|
+
}
|
|
3582
|
+
|
|
3583
|
+
// By default, we use closely bound real methods wherever possible, and
|
|
3584
|
+
// otherwise we wait for a console to appear, and then try again.
|
|
3585
|
+
function defaultMethodFactory(methodName, _level, _loggerName) {
|
|
3586
|
+
/*jshint validthis:true */
|
|
3587
|
+
return realMethod(methodName) ||
|
|
3588
|
+
enableLoggingWhenConsoleArrives.apply(this, arguments);
|
|
3589
|
+
}
|
|
3590
|
+
|
|
3591
|
+
function Logger(name, factory) {
|
|
3592
|
+
// Private instance variables.
|
|
3593
|
+
var self = this;
|
|
3594
|
+
/**
|
|
3595
|
+
* The level inherited from a parent logger (or a global default). We
|
|
3596
|
+
* cache this here rather than delegating to the parent so that it stays
|
|
3597
|
+
* in sync with the actual logging methods that we have installed (the
|
|
3598
|
+
* parent could change levels but we might not have rebuilt the loggers
|
|
3599
|
+
* in this child yet).
|
|
3600
|
+
* @type {number}
|
|
3601
|
+
*/
|
|
3602
|
+
var inheritedLevel;
|
|
3603
|
+
/**
|
|
3604
|
+
* The default level for this logger, if any. If set, this overrides
|
|
3605
|
+
* `inheritedLevel`.
|
|
3606
|
+
* @type {number|null}
|
|
3607
|
+
*/
|
|
3608
|
+
var defaultLevel;
|
|
3609
|
+
/**
|
|
3610
|
+
* A user-specific level for this logger. If set, this overrides
|
|
3611
|
+
* `defaultLevel`.
|
|
3612
|
+
* @type {number|null}
|
|
3613
|
+
*/
|
|
3614
|
+
var userLevel;
|
|
3615
|
+
|
|
3616
|
+
var storageKey = "loglevel";
|
|
3617
|
+
if (typeof name === "string") {
|
|
3618
|
+
storageKey += ":" + name;
|
|
3619
|
+
} else if (typeof name === "symbol") {
|
|
3620
|
+
storageKey = undefined;
|
|
3621
|
+
}
|
|
3622
|
+
|
|
3623
|
+
function persistLevelIfPossible(levelNum) {
|
|
3624
|
+
var levelName = (logMethods[levelNum] || 'silent').toUpperCase();
|
|
3625
|
+
|
|
3626
|
+
if (typeof window === undefinedType || !storageKey) return;
|
|
3627
|
+
|
|
3628
|
+
// Use localStorage if available
|
|
3629
|
+
try {
|
|
3630
|
+
window.localStorage[storageKey] = levelName;
|
|
3631
|
+
return;
|
|
3632
|
+
} catch (ignore) {}
|
|
3633
|
+
|
|
3634
|
+
// Use session cookie as fallback
|
|
3635
|
+
try {
|
|
3636
|
+
window.document.cookie =
|
|
3637
|
+
encodeURIComponent(storageKey) + "=" + levelName + ";";
|
|
3638
|
+
} catch (ignore) {}
|
|
3639
|
+
}
|
|
3640
|
+
|
|
3641
|
+
function getPersistedLevel() {
|
|
3642
|
+
var storedLevel;
|
|
3643
|
+
|
|
3644
|
+
if (typeof window === undefinedType || !storageKey) return;
|
|
3645
|
+
|
|
3646
|
+
try {
|
|
3647
|
+
storedLevel = window.localStorage[storageKey];
|
|
3648
|
+
} catch (ignore) {}
|
|
3649
|
+
|
|
3650
|
+
// Fallback to cookies if local storage gives us nothing
|
|
3651
|
+
if (typeof storedLevel === undefinedType) {
|
|
3652
|
+
try {
|
|
3653
|
+
var cookie = window.document.cookie;
|
|
3654
|
+
var cookieName = encodeURIComponent(storageKey);
|
|
3655
|
+
var location = cookie.indexOf(cookieName + "=");
|
|
3656
|
+
if (location !== -1) {
|
|
3657
|
+
storedLevel = /^([^;]+)/.exec(
|
|
3658
|
+
cookie.slice(location + cookieName.length + 1)
|
|
3659
|
+
)[1];
|
|
3660
|
+
}
|
|
3661
|
+
} catch (ignore) {}
|
|
3662
|
+
}
|
|
3663
|
+
|
|
3664
|
+
// If the stored level is not valid, treat it as if nothing was stored.
|
|
3665
|
+
if (self.levels[storedLevel] === undefined) {
|
|
3666
|
+
storedLevel = undefined;
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
return storedLevel;
|
|
3670
|
+
}
|
|
3671
|
+
|
|
3672
|
+
function clearPersistedLevel() {
|
|
3673
|
+
if (typeof window === undefinedType || !storageKey) return;
|
|
3674
|
+
|
|
3675
|
+
// Use localStorage if available
|
|
3676
|
+
try {
|
|
3677
|
+
window.localStorage.removeItem(storageKey);
|
|
3678
|
+
} catch (ignore) {}
|
|
3679
|
+
|
|
3680
|
+
// Use session cookie as fallback
|
|
3681
|
+
try {
|
|
3682
|
+
window.document.cookie =
|
|
3683
|
+
encodeURIComponent(storageKey) + "=; expires=Thu, 01 Jan 1970 00:00:00 UTC";
|
|
3684
|
+
} catch (ignore) {}
|
|
3685
|
+
}
|
|
3686
|
+
|
|
3687
|
+
function normalizeLevel(input) {
|
|
3688
|
+
var level = input;
|
|
3689
|
+
if (typeof level === "string" && self.levels[level.toUpperCase()] !== undefined) {
|
|
3690
|
+
level = self.levels[level.toUpperCase()];
|
|
3691
|
+
}
|
|
3692
|
+
if (typeof level === "number" && level >= 0 && level <= self.levels.SILENT) {
|
|
3693
|
+
return level;
|
|
3694
|
+
} else {
|
|
3695
|
+
throw new TypeError("log.setLevel() called with invalid level: " + input);
|
|
3696
|
+
}
|
|
3697
|
+
}
|
|
3698
|
+
|
|
3699
|
+
/*
|
|
3700
|
+
*
|
|
3701
|
+
* Public logger API - see https://github.com/pimterry/loglevel for details
|
|
3702
|
+
*
|
|
3703
|
+
*/
|
|
3704
|
+
|
|
3705
|
+
self.name = name;
|
|
3706
|
+
|
|
3707
|
+
self.levels = { "TRACE": 0, "DEBUG": 1, "INFO": 2, "WARN": 3,
|
|
3708
|
+
"ERROR": 4, "SILENT": 5};
|
|
3709
|
+
|
|
3710
|
+
self.methodFactory = factory || defaultMethodFactory;
|
|
3711
|
+
|
|
3712
|
+
self.getLevel = function () {
|
|
3713
|
+
if (userLevel != null) {
|
|
3714
|
+
return userLevel;
|
|
3715
|
+
} else if (defaultLevel != null) {
|
|
3716
|
+
return defaultLevel;
|
|
3717
|
+
} else {
|
|
3718
|
+
return inheritedLevel;
|
|
3719
|
+
}
|
|
3720
|
+
};
|
|
3721
|
+
|
|
3722
|
+
self.setLevel = function (level, persist) {
|
|
3723
|
+
userLevel = normalizeLevel(level);
|
|
3724
|
+
if (persist !== false) { // defaults to true
|
|
3725
|
+
persistLevelIfPossible(userLevel);
|
|
3726
|
+
}
|
|
3727
|
+
|
|
3728
|
+
// NOTE: in v2, this should call rebuild(), which updates children.
|
|
3729
|
+
return replaceLoggingMethods.call(self);
|
|
3730
|
+
};
|
|
3731
|
+
|
|
3732
|
+
self.setDefaultLevel = function (level) {
|
|
3733
|
+
defaultLevel = normalizeLevel(level);
|
|
3734
|
+
if (!getPersistedLevel()) {
|
|
3735
|
+
self.setLevel(level, false);
|
|
3736
|
+
}
|
|
3737
|
+
};
|
|
3738
|
+
|
|
3739
|
+
self.resetLevel = function () {
|
|
3740
|
+
userLevel = null;
|
|
3741
|
+
clearPersistedLevel();
|
|
3742
|
+
replaceLoggingMethods.call(self);
|
|
3743
|
+
};
|
|
3744
|
+
|
|
3745
|
+
self.enableAll = function(persist) {
|
|
3746
|
+
self.setLevel(self.levels.TRACE, persist);
|
|
3747
|
+
};
|
|
3748
|
+
|
|
3749
|
+
self.disableAll = function(persist) {
|
|
3750
|
+
self.setLevel(self.levels.SILENT, persist);
|
|
3751
|
+
};
|
|
3752
|
+
|
|
3753
|
+
self.rebuild = function () {
|
|
3754
|
+
if (defaultLogger !== self) {
|
|
3755
|
+
inheritedLevel = normalizeLevel(defaultLogger.getLevel());
|
|
3756
|
+
}
|
|
3757
|
+
replaceLoggingMethods.call(self);
|
|
3758
|
+
|
|
3759
|
+
if (defaultLogger === self) {
|
|
3760
|
+
for (var childName in _loggersByName) {
|
|
3761
|
+
_loggersByName[childName].rebuild();
|
|
3762
|
+
}
|
|
3763
|
+
}
|
|
3764
|
+
};
|
|
3765
|
+
|
|
3766
|
+
// Initialize all the internal levels.
|
|
3767
|
+
inheritedLevel = normalizeLevel(
|
|
3768
|
+
defaultLogger ? defaultLogger.getLevel() : "WARN"
|
|
3769
|
+
);
|
|
3770
|
+
var initialLevel = getPersistedLevel();
|
|
3771
|
+
if (initialLevel != null) {
|
|
3772
|
+
userLevel = normalizeLevel(initialLevel);
|
|
3773
|
+
}
|
|
3774
|
+
replaceLoggingMethods.call(self);
|
|
3775
|
+
}
|
|
3776
|
+
|
|
3777
|
+
/*
|
|
3778
|
+
*
|
|
3779
|
+
* Top-level API
|
|
3780
|
+
*
|
|
3781
|
+
*/
|
|
3782
|
+
|
|
3783
|
+
defaultLogger = new Logger();
|
|
3784
|
+
|
|
3785
|
+
defaultLogger.getLogger = function getLogger(name) {
|
|
3786
|
+
if ((typeof name !== "symbol" && typeof name !== "string") || name === "") {
|
|
3787
|
+
throw new TypeError("You must supply a name when creating a logger.");
|
|
3788
|
+
}
|
|
3789
|
+
|
|
3790
|
+
var logger = _loggersByName[name];
|
|
3791
|
+
if (!logger) {
|
|
3792
|
+
logger = _loggersByName[name] = new Logger(
|
|
3793
|
+
name,
|
|
3794
|
+
defaultLogger.methodFactory
|
|
3795
|
+
);
|
|
3796
|
+
}
|
|
3797
|
+
return logger;
|
|
3798
|
+
};
|
|
3799
|
+
|
|
3800
|
+
// Grab the current global log variable in case of overwrite
|
|
3801
|
+
var _log = (typeof window !== undefinedType) ? window.log : undefined;
|
|
3802
|
+
defaultLogger.noConflict = function() {
|
|
3803
|
+
if (typeof window !== undefinedType &&
|
|
3804
|
+
window.log === defaultLogger) {
|
|
3805
|
+
window.log = _log;
|
|
3806
|
+
}
|
|
3807
|
+
|
|
3808
|
+
return defaultLogger;
|
|
3809
|
+
};
|
|
3810
|
+
|
|
3811
|
+
defaultLogger.getLoggers = function getLoggers() {
|
|
3812
|
+
return _loggersByName;
|
|
3813
|
+
};
|
|
3814
|
+
|
|
3815
|
+
// ES6 default export, for compatibility
|
|
3816
|
+
defaultLogger['default'] = defaultLogger;
|
|
3817
|
+
|
|
3818
|
+
return defaultLogger;
|
|
3819
|
+
}));
|
|
3820
|
+
} (loglevel));
|
|
3821
|
+
|
|
3822
|
+
var loglevelExports = loglevel.exports;
|
|
3823
|
+
var log = /*@__PURE__*/getDefaultExportFromCjs(loglevelExports);
|
|
3824
|
+
|
|
3825
|
+
// Set the default logging level (can be overridden via environment variables)
|
|
3826
|
+
log.setLevel(process.env.LOG_LEVEL || 'info');
|
|
3827
|
+
const logWrapper = {
|
|
3828
|
+
info: (msg, meta) => meta ? log.info(msg, meta) : log.info(msg),
|
|
3829
|
+
warn: (msg, meta) => meta ? log.warn(msg, meta) : log.warn(msg),
|
|
3830
|
+
error: (msg, meta) => meta ? log.error(msg, meta) : log.error(msg),
|
|
3831
|
+
debug: (msg, meta) => meta ? log.debug(msg, meta) : log.debug(msg)
|
|
3832
|
+
};
|
|
3833
|
+
|
|
3182
3834
|
/**
|
|
3183
3835
|
* Handles state updates for network requests based on the provided action.
|
|
3184
3836
|
*
|
|
@@ -3241,8 +3893,8 @@ function IntrigProvider({
|
|
|
3241
3893
|
let {
|
|
3242
3894
|
data,
|
|
3243
3895
|
error: validationError
|
|
3244
|
-
} = (_errorSchema$safePars2 = errorSchema == null ?
|
|
3245
|
-
dispatch(error(data != null ? data : (_e$response2 = e.response) == null ?
|
|
3896
|
+
} = (_errorSchema$safePars2 = errorSchema == null ? undefined : errorSchema.safeParse((_e$response$data = (_e$response = e.response) == null ? undefined : _e$response.data) != null ? _e$response$data : {})) != null ? _errorSchema$safePars2 : {};
|
|
3897
|
+
dispatch(error(data != null ? data : (_e$response2 = e.response) == null ? undefined : _e$response2.data, (_e$response3 = e.response) == null ? undefined : _e$response3.status, request));
|
|
3246
3898
|
} else {
|
|
3247
3899
|
dispatch(error(e));
|
|
3248
3900
|
}
|
|
@@ -3380,13 +4032,15 @@ function useNetworkState({
|
|
|
3380
4032
|
errorSchema,
|
|
3381
4033
|
debounceDelay: requestDebounceDelay
|
|
3382
4034
|
}) {
|
|
3383
|
-
var _context$
|
|
4035
|
+
var _context$state4;
|
|
3384
4036
|
const context = useContext(Context);
|
|
3385
4037
|
const [abortController, setAbortController] = useState();
|
|
3386
4038
|
const networkState = useMemo(() => {
|
|
3387
|
-
var _context$state, _context$state2;
|
|
3388
|
-
|
|
3389
|
-
|
|
4039
|
+
var _context$state, _context$state2, _context$state3;
|
|
4040
|
+
logWrapper.info(`Updating status ${key} ${operation} ${source}`);
|
|
4041
|
+
logWrapper.debug(`<=`, (_context$state = context.state) == null ? undefined : _context$state[`${source}:${operation}:${key}`]);
|
|
4042
|
+
return (_context$state2 = (_context$state3 = context.state) == null ? undefined : _context$state3[`${source}:${operation}:${key}`]) != null ? _context$state2 : init();
|
|
4043
|
+
}, [(_context$state4 = context.state) == null ? undefined : _context$state4[`${source}:${operation}:${key}`]]);
|
|
3390
4044
|
const dispatch = useCallback(state => {
|
|
3391
4045
|
context.dispatch({
|
|
3392
4046
|
key,
|
|
@@ -3397,9 +4051,11 @@ function useNetworkState({
|
|
|
3397
4051
|
}, [key, operation, source, context.dispatch]);
|
|
3398
4052
|
const debounceDelay = useMemo(() => {
|
|
3399
4053
|
var _ref2, _context$configs;
|
|
3400
|
-
return (_ref2 = requestDebounceDelay != null ? requestDebounceDelay : (_context$configs = context.configs) == null ?
|
|
4054
|
+
return (_ref2 = requestDebounceDelay != null ? requestDebounceDelay : (_context$configs = context.configs) == null ? undefined : _context$configs.debounceDelay) != null ? _ref2 : 0;
|
|
3401
4055
|
}, [context.configs, requestDebounceDelay]);
|
|
3402
4056
|
const execute = useCallback(async request => {
|
|
4057
|
+
logWrapper.info(`Executing request ${key} ${operation} ${source}`);
|
|
4058
|
+
logWrapper.debug(`=>`, request);
|
|
3403
4059
|
let abortController = new AbortController();
|
|
3404
4060
|
setAbortController(abortController);
|
|
3405
4061
|
let requestConfig = Object.assign({}, request, {
|
|
@@ -3425,8 +4081,10 @@ function useNetworkState({
|
|
|
3425
4081
|
}, [networkState, context.dispatch, axios]);
|
|
3426
4082
|
const deboundedExecute = useMemo(() => debounce(execute, debounceDelay != null ? debounceDelay : 0), [execute]);
|
|
3427
4083
|
const clear = useCallback(() => {
|
|
4084
|
+
logWrapper.info(`Clearing request ${key} ${operation} ${source}`);
|
|
3428
4085
|
dispatch(init());
|
|
3429
4086
|
setAbortController(abortController => {
|
|
4087
|
+
logWrapper.info(`Aborting request ${key} ${operation} ${source}`);
|
|
3430
4088
|
abortController == null || abortController.abort();
|
|
3431
4089
|
return undefined;
|
|
3432
4090
|
});
|
|
@@ -3478,8 +4136,8 @@ function useCentralPendingState() {
|
|
|
3478
4136
|
let progress = pendingStates.filter(a => a.progress).reduce((progress, current) => {
|
|
3479
4137
|
var _current$progress$tot, _current$progress, _current$progress$loa, _current$progress2;
|
|
3480
4138
|
return {
|
|
3481
|
-
total: progress.total + ((_current$progress$tot = (_current$progress = current.progress) == null ?
|
|
3482
|
-
loaded: progress.loaded + ((_current$progress$loa = (_current$progress2 = current.progress) == null ?
|
|
4139
|
+
total: progress.total + ((_current$progress$tot = (_current$progress = current.progress) == null ? undefined : _current$progress.total) != null ? _current$progress$tot : 0),
|
|
4140
|
+
loaded: progress.loaded + ((_current$progress$loa = (_current$progress2 = current.progress) == null ? undefined : _current$progress2.loaded) != null ? _current$progress$loa : 0)
|
|
3483
4141
|
};
|
|
3484
4142
|
}, {
|
|
3485
4143
|
total: 0,
|
|
@@ -3561,8 +4219,8 @@ function useAsNetworkState(fn, key = 'default') {
|
|
|
3561
4219
|
let context = useIntrigContext();
|
|
3562
4220
|
const networkState = useMemo(() => {
|
|
3563
4221
|
var _context$state, _context$state2;
|
|
3564
|
-
return (_context$state = (_context$state2 = context.state) == null ?
|
|
3565
|
-
}, [(_context$state3 = context.state) == null ?
|
|
4222
|
+
return (_context$state = (_context$state2 = context.state) == null ? undefined : _context$state2[`promiseState:${id}:${key}}`]) != null ? _context$state : init();
|
|
4223
|
+
}, [(_context$state3 = context.state) == null ? undefined : _context$state3[`promiseState:${id}:${key}}`]]);
|
|
3566
4224
|
const dispatch = useCallback(state => {
|
|
3567
4225
|
context.dispatch({
|
|
3568
4226
|
key,
|
|
@@ -3595,7 +4253,7 @@ var proxyAccessor$1 = function (Target, Source, key) {
|
|
|
3595
4253
|
});
|
|
3596
4254
|
};
|
|
3597
4255
|
|
|
3598
|
-
var isCallable = isCallable$
|
|
4256
|
+
var isCallable = isCallable$l;
|
|
3599
4257
|
var isObject$1 = isObject$d;
|
|
3600
4258
|
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
3601
4259
|
|
|
@@ -3621,7 +4279,7 @@ var normalizeStringArgument$1 = function (argument, $default) {
|
|
|
3621
4279
|
};
|
|
3622
4280
|
|
|
3623
4281
|
var isObject = isObject$d;
|
|
3624
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$
|
|
4282
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
3625
4283
|
|
|
3626
4284
|
// `InstallErrorCause` abstract operation
|
|
3627
4285
|
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
@@ -3637,7 +4295,7 @@ var $Error = Error;
|
|
|
3637
4295
|
var replace = uncurryThis(''.replace);
|
|
3638
4296
|
|
|
3639
4297
|
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
3640
|
-
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
4298
|
+
// eslint-disable-next-line redos/no-vulnerable, sonarjs/slow-regex -- safe
|
|
3641
4299
|
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
3642
4300
|
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
3643
4301
|
|
|
@@ -3647,10 +4305,10 @@ var errorStackClear = function (stack, dropEntries) {
|
|
|
3647
4305
|
} return stack;
|
|
3648
4306
|
};
|
|
3649
4307
|
|
|
3650
|
-
var fails = fails$
|
|
4308
|
+
var fails$1 = fails$i;
|
|
3651
4309
|
var createPropertyDescriptor = createPropertyDescriptor$5;
|
|
3652
4310
|
|
|
3653
|
-
var errorStackInstallable = !fails(function () {
|
|
4311
|
+
var errorStackInstallable = !fails$1(function () {
|
|
3654
4312
|
var error = new Error('a');
|
|
3655
4313
|
if (!('stack' in error)) return true;
|
|
3656
4314
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
@@ -3658,7 +4316,7 @@ var errorStackInstallable = !fails(function () {
|
|
|
3658
4316
|
return error.stack !== 7;
|
|
3659
4317
|
});
|
|
3660
4318
|
|
|
3661
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$
|
|
4319
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$8;
|
|
3662
4320
|
var clearErrorStack = errorStackClear;
|
|
3663
4321
|
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
3664
4322
|
|
|
@@ -3674,7 +4332,7 @@ var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
|
3674
4332
|
|
|
3675
4333
|
var getBuiltIn = getBuiltIn$8;
|
|
3676
4334
|
var hasOwn = hasOwnProperty_1;
|
|
3677
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
4335
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$8;
|
|
3678
4336
|
var isPrototypeOf = objectIsPrototypeOf;
|
|
3679
4337
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
3680
4338
|
var copyConstructorProperties = copyConstructorProperties$2;
|
|
@@ -3683,7 +4341,7 @@ var inheritIfRequired = inheritIfRequired$1;
|
|
|
3683
4341
|
var normalizeStringArgument = normalizeStringArgument$1;
|
|
3684
4342
|
var installErrorCause = installErrorCause$1;
|
|
3685
4343
|
var installErrorStack = errorStackInstall;
|
|
3686
|
-
var DESCRIPTORS = descriptors;
|
|
4344
|
+
var DESCRIPTORS$1 = descriptors;
|
|
3687
4345
|
|
|
3688
4346
|
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
3689
4347
|
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
@@ -3718,7 +4376,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
|
|
|
3718
4376
|
if (ERROR_NAME !== 'Error') {
|
|
3719
4377
|
if (setPrototypeOf) setPrototypeOf(WrappedError, BaseError);
|
|
3720
4378
|
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
3721
|
-
} else if (DESCRIPTORS && STACK_TRACE_LIMIT in OriginalError) {
|
|
4379
|
+
} else if (DESCRIPTORS$1 && STACK_TRACE_LIMIT in OriginalError) {
|
|
3722
4380
|
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
3723
4381
|
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
3724
4382
|
}
|
|
@@ -3737,7 +4395,7 @@ var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_A
|
|
|
3737
4395
|
};
|
|
3738
4396
|
|
|
3739
4397
|
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
3740
|
-
var
|
|
4398
|
+
var $$2 = _export;
|
|
3741
4399
|
var globalThis$1 = globalThis_1;
|
|
3742
4400
|
var apply = functionApply;
|
|
3743
4401
|
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
@@ -3746,19 +4404,19 @@ var WEB_ASSEMBLY = 'WebAssembly';
|
|
|
3746
4404
|
var WebAssembly = globalThis$1[WEB_ASSEMBLY];
|
|
3747
4405
|
|
|
3748
4406
|
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
3749
|
-
var FORCED = new Error('e', { cause: 7 }).cause !== 7;
|
|
4407
|
+
var FORCED$1 = new Error('e', { cause: 7 }).cause !== 7;
|
|
3750
4408
|
|
|
3751
4409
|
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3752
4410
|
var O = {};
|
|
3753
|
-
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED);
|
|
3754
|
-
|
|
4411
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$1);
|
|
4412
|
+
$$2({ global: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
|
|
3755
4413
|
};
|
|
3756
4414
|
|
|
3757
4415
|
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
3758
4416
|
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
3759
4417
|
var O = {};
|
|
3760
|
-
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED);
|
|
3761
|
-
|
|
4418
|
+
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$1);
|
|
4419
|
+
$$2({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
|
|
3762
4420
|
}
|
|
3763
4421
|
};
|
|
3764
4422
|
|
|
@@ -3794,6 +4452,160 @@ exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
|
3794
4452
|
return function RuntimeError(message) { return apply(init, this, arguments); };
|
|
3795
4453
|
});
|
|
3796
4454
|
|
|
4455
|
+
var classof = classofRaw$2;
|
|
4456
|
+
|
|
4457
|
+
// `IsArray` abstract operation
|
|
4458
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
4459
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
4460
|
+
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
4461
|
+
return classof(argument) === 'Array';
|
|
4462
|
+
};
|
|
4463
|
+
|
|
4464
|
+
var DESCRIPTORS = descriptors;
|
|
4465
|
+
var isArray = isArray$1;
|
|
4466
|
+
|
|
4467
|
+
var $TypeError$1 = TypeError;
|
|
4468
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
4469
|
+
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
4470
|
+
|
|
4471
|
+
// Safari < 13 does not throw an error in this case
|
|
4472
|
+
var SILENT_ON_NON_WRITABLE_LENGTH_SET = DESCRIPTORS && !function () {
|
|
4473
|
+
// makes no sense without proper strict mode support
|
|
4474
|
+
if (this !== undefined) return true;
|
|
4475
|
+
try {
|
|
4476
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
4477
|
+
Object.defineProperty([], 'length', { writable: false }).length = 1;
|
|
4478
|
+
} catch (error) {
|
|
4479
|
+
return error instanceof TypeError;
|
|
4480
|
+
}
|
|
4481
|
+
}();
|
|
4482
|
+
|
|
4483
|
+
var arraySetLength = SILENT_ON_NON_WRITABLE_LENGTH_SET ? function (O, length) {
|
|
4484
|
+
if (isArray(O) && !getOwnPropertyDescriptor(O, 'length').writable) {
|
|
4485
|
+
throw new $TypeError$1('Cannot set read only .length');
|
|
4486
|
+
} return O.length = length;
|
|
4487
|
+
} : function (O, length) {
|
|
4488
|
+
return O.length = length;
|
|
4489
|
+
};
|
|
4490
|
+
|
|
4491
|
+
var $TypeError = TypeError;
|
|
4492
|
+
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF; // 2 ** 53 - 1 == 9007199254740991
|
|
4493
|
+
|
|
4494
|
+
var doesNotExceedSafeInteger$1 = function (it) {
|
|
4495
|
+
if (it > MAX_SAFE_INTEGER) throw $TypeError('Maximum allowed index exceeded');
|
|
4496
|
+
return it;
|
|
4497
|
+
};
|
|
4498
|
+
|
|
4499
|
+
var $$1 = _export;
|
|
4500
|
+
var toObject = toObject$5;
|
|
4501
|
+
var lengthOfArrayLike = lengthOfArrayLike$4;
|
|
4502
|
+
var setArrayLength = arraySetLength;
|
|
4503
|
+
var doesNotExceedSafeInteger = doesNotExceedSafeInteger$1;
|
|
4504
|
+
var fails = fails$i;
|
|
4505
|
+
|
|
4506
|
+
var INCORRECT_TO_LENGTH = fails(function () {
|
|
4507
|
+
return [].push.call({ length: 0x100000000 }, 1) !== 4294967297;
|
|
4508
|
+
});
|
|
4509
|
+
|
|
4510
|
+
// V8 <= 121 and Safari <= 15.4; FF < 23 throws InternalError
|
|
4511
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=12681
|
|
4512
|
+
var properErrorOnNonWritableLength = function () {
|
|
4513
|
+
try {
|
|
4514
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
4515
|
+
Object.defineProperty([], 'length', { writable: false }).push();
|
|
4516
|
+
} catch (error) {
|
|
4517
|
+
return error instanceof TypeError;
|
|
4518
|
+
}
|
|
4519
|
+
};
|
|
4520
|
+
|
|
4521
|
+
var FORCED = INCORRECT_TO_LENGTH || !properErrorOnNonWritableLength();
|
|
4522
|
+
|
|
4523
|
+
// `Array.prototype.push` method
|
|
4524
|
+
// https://tc39.es/ecma262/#sec-array.prototype.push
|
|
4525
|
+
$$1({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
|
4526
|
+
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
4527
|
+
push: function push(item) {
|
|
4528
|
+
var O = toObject(this);
|
|
4529
|
+
var len = lengthOfArrayLike(O);
|
|
4530
|
+
var argCount = arguments.length;
|
|
4531
|
+
doesNotExceedSafeInteger(len + argCount);
|
|
4532
|
+
for (var i = 0; i < argCount; i++) {
|
|
4533
|
+
O[len] = arguments[i];
|
|
4534
|
+
len++;
|
|
4535
|
+
}
|
|
4536
|
+
setArrayLength(O, len);
|
|
4537
|
+
return len;
|
|
4538
|
+
}
|
|
4539
|
+
});
|
|
4540
|
+
|
|
4541
|
+
var $ = _export;
|
|
4542
|
+
var iterate = iterate$5;
|
|
4543
|
+
var aCallable = aCallable$d;
|
|
4544
|
+
var anObject = anObject$f;
|
|
4545
|
+
var getIteratorDirect = getIteratorDirect$4;
|
|
4546
|
+
|
|
4547
|
+
// `Iterator.prototype.forEach` method
|
|
4548
|
+
// https://tc39.es/ecma262/#sec-iterator.prototype.foreach
|
|
4549
|
+
$({ target: 'Iterator', proto: true, real: true }, {
|
|
4550
|
+
forEach: function forEach(fn) {
|
|
4551
|
+
anObject(this);
|
|
4552
|
+
aCallable(fn);
|
|
4553
|
+
var record = getIteratorDirect(this);
|
|
4554
|
+
var counter = 0;
|
|
4555
|
+
iterate(record, function (value) {
|
|
4556
|
+
fn(value, counter++);
|
|
4557
|
+
}, { IS_RECORD: true });
|
|
4558
|
+
}
|
|
4559
|
+
});
|
|
4560
|
+
|
|
4561
|
+
const encoders = {};
|
|
4562
|
+
function encode(request, mediaType, schema) {
|
|
4563
|
+
if (encoders[mediaType]) {
|
|
4564
|
+
return encoders[mediaType](request, mediaType, schema);
|
|
4565
|
+
}
|
|
4566
|
+
return request;
|
|
4567
|
+
}
|
|
4568
|
+
encoders['application/json'] = async (request, mediaType, schema) => {
|
|
4569
|
+
return request;
|
|
4570
|
+
};
|
|
4571
|
+
function appendFormData(formData, data, parentKey) {
|
|
4572
|
+
if (data instanceof Blob || typeof data === 'string') {
|
|
4573
|
+
formData.append(parentKey, data);
|
|
4574
|
+
} else if (data !== null && typeof data === 'object') {
|
|
4575
|
+
if (Array.isArray(data)) {
|
|
4576
|
+
data.forEach((item, index) => {
|
|
4577
|
+
const key = `${parentKey}`;
|
|
4578
|
+
appendFormData(formData, item, key);
|
|
4579
|
+
});
|
|
4580
|
+
} else {
|
|
4581
|
+
Object.keys(data).forEach(key => {
|
|
4582
|
+
const newKey = parentKey ? `${parentKey}[${key}]` : key;
|
|
4583
|
+
appendFormData(formData, data[key], newKey);
|
|
4584
|
+
});
|
|
4585
|
+
}
|
|
4586
|
+
} else {
|
|
4587
|
+
formData.append(parentKey, data == null ? '' : String(data));
|
|
4588
|
+
}
|
|
4589
|
+
}
|
|
4590
|
+
encoders['multipart/form-data'] = async (request, mediaType, schema) => {
|
|
4591
|
+
let _request = request;
|
|
4592
|
+
let formData = new FormData();
|
|
4593
|
+
Object.keys(_request).forEach(key => {
|
|
4594
|
+
appendFormData(formData, _request[key], key);
|
|
4595
|
+
});
|
|
4596
|
+
return formData;
|
|
4597
|
+
};
|
|
4598
|
+
encoders['application/octet-stream'] = async (request, mediaType, schema) => {
|
|
4599
|
+
return request;
|
|
4600
|
+
};
|
|
4601
|
+
encoders['application/x-www-form-urlencoded'] = async (request, mediaType, schema) => {
|
|
4602
|
+
let formData = new FormData();
|
|
4603
|
+
for (let key in request) {
|
|
4604
|
+
const value = request[key];
|
|
4605
|
+
formData.append(key, value instanceof Blob || typeof value === 'string' ? value : String(value));
|
|
4606
|
+
}
|
|
4607
|
+
return formData;
|
|
4608
|
+
};
|
|
3797
4609
|
const transformers = {};
|
|
3798
4610
|
function transform(request, mediaType, schema) {
|
|
3799
4611
|
if (transformers[mediaType]) {
|
|
@@ -3807,7 +4619,16 @@ transformers['application/json'] = async (request, mediaType, schema) => {
|
|
|
3807
4619
|
transformers['multipart/form-data'] = async (request, mediaType, schema) => {
|
|
3808
4620
|
let formData = await request.formData();
|
|
3809
4621
|
let content = {};
|
|
3810
|
-
formData.forEach((value, key) =>
|
|
4622
|
+
formData.forEach((value, key) => {
|
|
4623
|
+
if (content[key]) {
|
|
4624
|
+
if (!(content[key] instanceof Array)) {
|
|
4625
|
+
content[key] = [content[key]];
|
|
4626
|
+
}
|
|
4627
|
+
content[key].push(value);
|
|
4628
|
+
} else {
|
|
4629
|
+
content[key] = value;
|
|
4630
|
+
}
|
|
4631
|
+
});
|
|
3811
4632
|
return schema.parse(content);
|
|
3812
4633
|
};
|
|
3813
4634
|
transformers['application/octet-stream'] = async (request, mediaType, schema) => {
|
|
@@ -3853,4 +4674,4 @@ async function transformResponse(data, mediaType, schema) {
|
|
|
3853
4674
|
return data;
|
|
3854
4675
|
}
|
|
3855
4676
|
|
|
3856
|
-
export { IntrigProvider, IntrigProviderStub, StatusTrap, error, init, isError, isInit, isNetworkError, isPending, isRequestValidationError, isResponseValidationError, isSuccess, isSuccessfulDispatch, isValidationError, networkError, pending, requestValidationError, responseValidationError, success, successfulDispatch, transform, transformResponse, useAsNetworkState, useAsPromise, useCentralError, useCentralPendingState, useNetworkState, useResolvedCachedValue, useResolvedValue, validationError };
|
|
4677
|
+
export { IntrigProvider, IntrigProviderStub, StatusTrap, encode, error, init, isError, isInit, isNetworkError, isPending, isRequestValidationError, isResponseValidationError, isSuccess, isSuccessfulDispatch, isValidationError, networkError, pending, requestValidationError, responseValidationError, success, successfulDispatch, transform, transformResponse, useAsNetworkState, useAsPromise, useCentralError, useCentralPendingState, useNetworkState, useResolvedCachedValue, useResolvedValue, validationError };
|