@ninetailed/experience.js-plugin-google-analytics 6.4.0-beta.8 → 7.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs +0 -2200
  2. package/index.js +0 -2200
  3. package/package.json +4 -4
package/index.cjs CHANGED
@@ -5,2206 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var experience_jsPluginAnalytics = require('@ninetailed/experience.js-plugin-analytics');
6
6
  var experience_jsShared = require('@ninetailed/experience.js-shared');
7
7
 
8
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
9
-
10
- var check = function (it) {
11
- return it && it.Math == Math && it;
12
- };
13
-
14
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
15
- var global$i =
16
- // eslint-disable-next-line es/no-global-this -- safe
17
- check(typeof globalThis == 'object' && globalThis) ||
18
- check(typeof window == 'object' && window) ||
19
- // eslint-disable-next-line no-restricted-globals -- safe
20
- check(typeof self == 'object' && self) ||
21
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
22
- // eslint-disable-next-line no-new-func -- fallback
23
- (function () { return this; })() || Function('return this')();
24
-
25
- var objectGetOwnPropertyDescriptor = {};
26
-
27
- var fails$a = function (exec) {
28
- try {
29
- return !!exec();
30
- } catch (error) {
31
- return true;
32
- }
33
- };
34
-
35
- var fails$9 = fails$a;
36
-
37
- // Detect IE8's incomplete defineProperty implementation
38
- var descriptors = !fails$9(function () {
39
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
40
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
41
- });
42
-
43
- var fails$8 = fails$a;
44
-
45
- var functionBindNative = !fails$8(function () {
46
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
47
- var test = (function () { /* empty */ }).bind();
48
- // eslint-disable-next-line no-prototype-builtins -- safe
49
- return typeof test != 'function' || test.hasOwnProperty('prototype');
50
- });
51
-
52
- var NATIVE_BIND$3 = functionBindNative;
53
-
54
- var call$c = Function.prototype.call;
55
-
56
- var functionCall = NATIVE_BIND$3 ? call$c.bind(call$c) : function () {
57
- return call$c.apply(call$c, arguments);
58
- };
59
-
60
- var objectPropertyIsEnumerable = {};
61
-
62
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
63
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
64
- var getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
65
-
66
- // Nashorn ~ JDK8 bug
67
- var NASHORN_BUG = getOwnPropertyDescriptor$2 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
68
-
69
- // `Object.prototype.propertyIsEnumerable` method implementation
70
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
71
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
72
- var descriptor = getOwnPropertyDescriptor$2(this, V);
73
- return !!descriptor && descriptor.enumerable;
74
- } : $propertyIsEnumerable;
75
-
76
- var createPropertyDescriptor$2 = function (bitmap, value) {
77
- return {
78
- enumerable: !(bitmap & 1),
79
- configurable: !(bitmap & 2),
80
- writable: !(bitmap & 4),
81
- value: value
82
- };
83
- };
84
-
85
- var NATIVE_BIND$2 = functionBindNative;
86
-
87
- var FunctionPrototype$2 = Function.prototype;
88
- var call$b = FunctionPrototype$2.call;
89
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$b, call$b);
90
-
91
- var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
92
- return function () {
93
- return call$b.apply(fn, arguments);
94
- };
95
- };
96
-
97
- var uncurryThis$c = functionUncurryThis;
98
-
99
- var toString$1 = uncurryThis$c({}.toString);
100
- var stringSlice = uncurryThis$c(''.slice);
101
-
102
- var classofRaw$2 = function (it) {
103
- return stringSlice(toString$1(it), 8, -1);
104
- };
105
-
106
- var uncurryThis$b = functionUncurryThis;
107
- var fails$7 = fails$a;
108
- var classof$4 = classofRaw$2;
109
-
110
- var $Object$3 = Object;
111
- var split = uncurryThis$b(''.split);
112
-
113
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
114
- var indexedObject = fails$7(function () {
115
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
116
- // eslint-disable-next-line no-prototype-builtins -- safe
117
- return !$Object$3('z').propertyIsEnumerable(0);
118
- }) ? function (it) {
119
- return classof$4(it) == 'String' ? split(it, '') : $Object$3(it);
120
- } : $Object$3;
121
-
122
- // we can't use just `it == null` since of `document.all` special case
123
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
124
- var isNullOrUndefined$4 = function (it) {
125
- return it === null || it === undefined;
126
- };
127
-
128
- var isNullOrUndefined$3 = isNullOrUndefined$4;
129
-
130
- var $TypeError$c = TypeError;
131
-
132
- // `RequireObjectCoercible` abstract operation
133
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
134
- var requireObjectCoercible$2 = function (it) {
135
- if (isNullOrUndefined$3(it)) throw $TypeError$c("Can't call method on " + it);
136
- return it;
137
- };
138
-
139
- // toObject with fallback for non-array-like ES3 strings
140
- var IndexedObject = indexedObject;
141
- var requireObjectCoercible$1 = requireObjectCoercible$2;
142
-
143
- var toIndexedObject$3 = function (it) {
144
- return IndexedObject(requireObjectCoercible$1(it));
145
- };
146
-
147
- var documentAll$2 = typeof document == 'object' && document.all;
148
-
149
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
150
- var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
151
-
152
- var documentAll_1 = {
153
- all: documentAll$2,
154
- IS_HTMLDDA: IS_HTMLDDA
155
- };
156
-
157
- var $documentAll$1 = documentAll_1;
158
-
159
- var documentAll$1 = $documentAll$1.all;
160
-
161
- // `IsCallable` abstract operation
162
- // https://tc39.es/ecma262/#sec-iscallable
163
- var isCallable$h = $documentAll$1.IS_HTMLDDA ? function (argument) {
164
- return typeof argument == 'function' || argument === documentAll$1;
165
- } : function (argument) {
166
- return typeof argument == 'function';
167
- };
168
-
169
- var isCallable$g = isCallable$h;
170
- var $documentAll = documentAll_1;
171
-
172
- var documentAll = $documentAll.all;
173
-
174
- var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) {
175
- return typeof it == 'object' ? it !== null : isCallable$g(it) || it === documentAll;
176
- } : function (it) {
177
- return typeof it == 'object' ? it !== null : isCallable$g(it);
178
- };
179
-
180
- var global$h = global$i;
181
- var isCallable$f = isCallable$h;
182
-
183
- var aFunction = function (argument) {
184
- return isCallable$f(argument) ? argument : undefined;
185
- };
186
-
187
- var getBuiltIn$8 = function (namespace, method) {
188
- return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
189
- };
190
-
191
- var uncurryThis$a = functionUncurryThis;
192
-
193
- var objectIsPrototypeOf = uncurryThis$a({}.isPrototypeOf);
194
-
195
- var getBuiltIn$7 = getBuiltIn$8;
196
-
197
- var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
198
-
199
- var global$g = global$i;
200
- var userAgent$3 = engineUserAgent;
201
-
202
- var process$3 = global$g.process;
203
- var Deno$1 = global$g.Deno;
204
- var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
205
- var v8 = versions && versions.v8;
206
- var match, version;
207
-
208
- if (v8) {
209
- match = v8.split('.');
210
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
211
- // but their correct versions are not interesting for us
212
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
213
- }
214
-
215
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
216
- // so check `userAgent` even if `.v8` exists, but 0
217
- if (!version && userAgent$3) {
218
- match = userAgent$3.match(/Edge\/(\d+)/);
219
- if (!match || match[1] >= 74) {
220
- match = userAgent$3.match(/Chrome\/(\d+)/);
221
- if (match) version = +match[1];
222
- }
223
- }
224
-
225
- var engineV8Version = version;
226
-
227
- /* eslint-disable es/no-symbol -- required for testing */
228
-
229
- var V8_VERSION$1 = engineV8Version;
230
- var fails$6 = fails$a;
231
-
232
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
233
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$6(function () {
234
- var symbol = Symbol();
235
- // Chrome 38 Symbol has incorrect toString conversion
236
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
237
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
238
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
239
- !Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
240
- });
241
-
242
- /* eslint-disable es/no-symbol -- required for testing */
243
-
244
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
245
-
246
- var useSymbolAsUid = NATIVE_SYMBOL$1
247
- && !Symbol.sham
248
- && typeof Symbol.iterator == 'symbol';
249
-
250
- var getBuiltIn$6 = getBuiltIn$8;
251
- var isCallable$e = isCallable$h;
252
- var isPrototypeOf$2 = objectIsPrototypeOf;
253
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
254
-
255
- var $Object$2 = Object;
256
-
257
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
258
- return typeof it == 'symbol';
259
- } : function (it) {
260
- var $Symbol = getBuiltIn$6('Symbol');
261
- return isCallable$e($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
262
- };
263
-
264
- var $String$2 = String;
265
-
266
- var tryToString$4 = function (argument) {
267
- try {
268
- return $String$2(argument);
269
- } catch (error) {
270
- return 'Object';
271
- }
272
- };
273
-
274
- var isCallable$d = isCallable$h;
275
- var tryToString$3 = tryToString$4;
276
-
277
- var $TypeError$b = TypeError;
278
-
279
- // `Assert: IsCallable(argument) is true`
280
- var aCallable$7 = function (argument) {
281
- if (isCallable$d(argument)) return argument;
282
- throw $TypeError$b(tryToString$3(argument) + ' is not a function');
283
- };
284
-
285
- var aCallable$6 = aCallable$7;
286
- var isNullOrUndefined$2 = isNullOrUndefined$4;
287
-
288
- // `GetMethod` abstract operation
289
- // https://tc39.es/ecma262/#sec-getmethod
290
- var getMethod$3 = function (V, P) {
291
- var func = V[P];
292
- return isNullOrUndefined$2(func) ? undefined : aCallable$6(func);
293
- };
294
-
295
- var call$a = functionCall;
296
- var isCallable$c = isCallable$h;
297
- var isObject$6 = isObject$7;
298
-
299
- var $TypeError$a = TypeError;
300
-
301
- // `OrdinaryToPrimitive` abstract operation
302
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
303
- var ordinaryToPrimitive$1 = function (input, pref) {
304
- var fn, val;
305
- if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$a(fn, input))) return val;
306
- if (isCallable$c(fn = input.valueOf) && !isObject$6(val = call$a(fn, input))) return val;
307
- if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$a(fn, input))) return val;
308
- throw $TypeError$a("Can't convert object to primitive value");
309
- };
310
-
311
- var shared$3 = {exports: {}};
312
-
313
- var global$f = global$i;
314
-
315
- // eslint-disable-next-line es/no-object-defineproperty -- safe
316
- var defineProperty$2 = Object.defineProperty;
317
-
318
- var defineGlobalProperty$3 = function (key, value) {
319
- try {
320
- defineProperty$2(global$f, key, { value: value, configurable: true, writable: true });
321
- } catch (error) {
322
- global$f[key] = value;
323
- } return value;
324
- };
325
-
326
- var global$e = global$i;
327
- var defineGlobalProperty$2 = defineGlobalProperty$3;
328
-
329
- var SHARED = '__core-js_shared__';
330
- var store$3 = global$e[SHARED] || defineGlobalProperty$2(SHARED, {});
331
-
332
- var sharedStore = store$3;
333
-
334
- var store$2 = sharedStore;
335
-
336
- (shared$3.exports = function (key, value) {
337
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
338
- })('versions', []).push({
339
- version: '3.26.1',
340
- mode: 'global',
341
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
342
- license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
343
- source: 'https://github.com/zloirock/core-js'
344
- });
345
-
346
- var requireObjectCoercible = requireObjectCoercible$2;
347
-
348
- var $Object$1 = Object;
349
-
350
- // `ToObject` abstract operation
351
- // https://tc39.es/ecma262/#sec-toobject
352
- var toObject$1 = function (argument) {
353
- return $Object$1(requireObjectCoercible(argument));
354
- };
355
-
356
- var uncurryThis$9 = functionUncurryThis;
357
- var toObject = toObject$1;
358
-
359
- var hasOwnProperty = uncurryThis$9({}.hasOwnProperty);
360
-
361
- // `HasOwnProperty` abstract operation
362
- // https://tc39.es/ecma262/#sec-hasownproperty
363
- // eslint-disable-next-line es/no-object-hasown -- safe
364
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
365
- return hasOwnProperty(toObject(it), key);
366
- };
367
-
368
- var uncurryThis$8 = functionUncurryThis;
369
-
370
- var id = 0;
371
- var postfix = Math.random();
372
- var toString = uncurryThis$8(1.0.toString);
373
-
374
- var uid$2 = function (key) {
375
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
376
- };
377
-
378
- var global$d = global$i;
379
- var shared$2 = shared$3.exports;
380
- var hasOwn$8 = hasOwnProperty_1;
381
- var uid$1 = uid$2;
382
- var NATIVE_SYMBOL = symbolConstructorDetection;
383
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
384
-
385
- var WellKnownSymbolsStore = shared$2('wks');
386
- var Symbol$1 = global$d.Symbol;
387
- var symbolFor = Symbol$1 && Symbol$1['for'];
388
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
389
-
390
- var wellKnownSymbol$a = function (name) {
391
- if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
392
- var description = 'Symbol.' + name;
393
- if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
394
- WellKnownSymbolsStore[name] = Symbol$1[name];
395
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
396
- WellKnownSymbolsStore[name] = symbolFor(description);
397
- } else {
398
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
399
- }
400
- } return WellKnownSymbolsStore[name];
401
- };
402
-
403
- var call$9 = functionCall;
404
- var isObject$5 = isObject$7;
405
- var isSymbol$1 = isSymbol$2;
406
- var getMethod$2 = getMethod$3;
407
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
408
- var wellKnownSymbol$9 = wellKnownSymbol$a;
409
-
410
- var $TypeError$9 = TypeError;
411
- var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
412
-
413
- // `ToPrimitive` abstract operation
414
- // https://tc39.es/ecma262/#sec-toprimitive
415
- var toPrimitive$1 = function (input, pref) {
416
- if (!isObject$5(input) || isSymbol$1(input)) return input;
417
- var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
418
- var result;
419
- if (exoticToPrim) {
420
- if (pref === undefined) pref = 'default';
421
- result = call$9(exoticToPrim, input, pref);
422
- if (!isObject$5(result) || isSymbol$1(result)) return result;
423
- throw $TypeError$9("Can't convert object to primitive value");
424
- }
425
- if (pref === undefined) pref = 'number';
426
- return ordinaryToPrimitive(input, pref);
427
- };
428
-
429
- var toPrimitive = toPrimitive$1;
430
- var isSymbol = isSymbol$2;
431
-
432
- // `ToPropertyKey` abstract operation
433
- // https://tc39.es/ecma262/#sec-topropertykey
434
- var toPropertyKey$2 = function (argument) {
435
- var key = toPrimitive(argument, 'string');
436
- return isSymbol(key) ? key : key + '';
437
- };
438
-
439
- var global$c = global$i;
440
- var isObject$4 = isObject$7;
441
-
442
- var document$3 = global$c.document;
443
- // typeof document.createElement is 'object' in old IE
444
- var EXISTS$1 = isObject$4(document$3) && isObject$4(document$3.createElement);
445
-
446
- var documentCreateElement = function (it) {
447
- return EXISTS$1 ? document$3.createElement(it) : {};
448
- };
449
-
450
- var DESCRIPTORS$7 = descriptors;
451
- var fails$5 = fails$a;
452
- var createElement$1 = documentCreateElement;
453
-
454
- // Thanks to IE8 for its funny defineProperty
455
- var ie8DomDefine = !DESCRIPTORS$7 && !fails$5(function () {
456
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
457
- return Object.defineProperty(createElement$1('div'), 'a', {
458
- get: function () { return 7; }
459
- }).a != 7;
460
- });
461
-
462
- var DESCRIPTORS$6 = descriptors;
463
- var call$8 = functionCall;
464
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
465
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
466
- var toIndexedObject$2 = toIndexedObject$3;
467
- var toPropertyKey$1 = toPropertyKey$2;
468
- var hasOwn$7 = hasOwnProperty_1;
469
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
470
-
471
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
472
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
473
-
474
- // `Object.getOwnPropertyDescriptor` method
475
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
476
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
477
- O = toIndexedObject$2(O);
478
- P = toPropertyKey$1(P);
479
- if (IE8_DOM_DEFINE$1) try {
480
- return $getOwnPropertyDescriptor$1(O, P);
481
- } catch (error) { /* empty */ }
482
- if (hasOwn$7(O, P)) return createPropertyDescriptor$1(!call$8(propertyIsEnumerableModule.f, O, P), O[P]);
483
- };
484
-
485
- var objectDefineProperty = {};
486
-
487
- var DESCRIPTORS$5 = descriptors;
488
- var fails$4 = fails$a;
489
-
490
- // V8 ~ Chrome 36-
491
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
492
- var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$4(function () {
493
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
494
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
495
- value: 42,
496
- writable: false
497
- }).prototype != 42;
498
- });
499
-
500
- var isObject$3 = isObject$7;
501
-
502
- var $String$1 = String;
503
- var $TypeError$8 = TypeError;
504
-
505
- // `Assert: Type(argument) is Object`
506
- var anObject$8 = function (argument) {
507
- if (isObject$3(argument)) return argument;
508
- throw $TypeError$8($String$1(argument) + ' is not an object');
509
- };
510
-
511
- var DESCRIPTORS$4 = descriptors;
512
- var IE8_DOM_DEFINE = ie8DomDefine;
513
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
514
- var anObject$7 = anObject$8;
515
- var toPropertyKey = toPropertyKey$2;
516
-
517
- var $TypeError$7 = TypeError;
518
- // eslint-disable-next-line es/no-object-defineproperty -- safe
519
- var $defineProperty = Object.defineProperty;
520
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
521
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
522
- var ENUMERABLE = 'enumerable';
523
- var CONFIGURABLE$1 = 'configurable';
524
- var WRITABLE = 'writable';
525
-
526
- // `Object.defineProperty` method
527
- // https://tc39.es/ecma262/#sec-object.defineproperty
528
- objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
529
- anObject$7(O);
530
- P = toPropertyKey(P);
531
- anObject$7(Attributes);
532
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
533
- var current = $getOwnPropertyDescriptor(O, P);
534
- if (current && current[WRITABLE]) {
535
- O[P] = Attributes.value;
536
- Attributes = {
537
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
538
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
539
- writable: false
540
- };
541
- }
542
- } return $defineProperty(O, P, Attributes);
543
- } : $defineProperty : function defineProperty(O, P, Attributes) {
544
- anObject$7(O);
545
- P = toPropertyKey(P);
546
- anObject$7(Attributes);
547
- if (IE8_DOM_DEFINE) try {
548
- return $defineProperty(O, P, Attributes);
549
- } catch (error) { /* empty */ }
550
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$7('Accessors not supported');
551
- if ('value' in Attributes) O[P] = Attributes.value;
552
- return O;
553
- };
554
-
555
- var DESCRIPTORS$3 = descriptors;
556
- var definePropertyModule$3 = objectDefineProperty;
557
- var createPropertyDescriptor = createPropertyDescriptor$2;
558
-
559
- var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {
560
- return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
561
- } : function (object, key, value) {
562
- object[key] = value;
563
- return object;
564
- };
565
-
566
- var makeBuiltIn$2 = {exports: {}};
567
-
568
- var DESCRIPTORS$2 = descriptors;
569
- var hasOwn$6 = hasOwnProperty_1;
570
-
571
- var FunctionPrototype$1 = Function.prototype;
572
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
573
- var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
574
-
575
- var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
576
- // additional protection from minified / mangled / dropped function names
577
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
578
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype$1, 'name').configurable));
579
-
580
- var functionName = {
581
- EXISTS: EXISTS,
582
- PROPER: PROPER,
583
- CONFIGURABLE: CONFIGURABLE
584
- };
585
-
586
- var uncurryThis$7 = functionUncurryThis;
587
- var isCallable$b = isCallable$h;
588
- var store$1 = sharedStore;
589
-
590
- var functionToString = uncurryThis$7(Function.toString);
591
-
592
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
593
- if (!isCallable$b(store$1.inspectSource)) {
594
- store$1.inspectSource = function (it) {
595
- return functionToString(it);
596
- };
597
- }
598
-
599
- var inspectSource$3 = store$1.inspectSource;
600
-
601
- var global$b = global$i;
602
- var isCallable$a = isCallable$h;
603
-
604
- var WeakMap$1 = global$b.WeakMap;
605
-
606
- var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
607
-
608
- var shared$1 = shared$3.exports;
609
- var uid = uid$2;
610
-
611
- var keys = shared$1('keys');
612
-
613
- var sharedKey$1 = function (key) {
614
- return keys[key] || (keys[key] = uid(key));
615
- };
616
-
617
- var hiddenKeys$3 = {};
618
-
619
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
620
- var global$a = global$i;
621
- var isObject$2 = isObject$7;
622
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
623
- var hasOwn$5 = hasOwnProperty_1;
624
- var shared = sharedStore;
625
- var sharedKey = sharedKey$1;
626
- var hiddenKeys$2 = hiddenKeys$3;
627
-
628
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
629
- var TypeError$2 = global$a.TypeError;
630
- var WeakMap = global$a.WeakMap;
631
- var set$1, get, has;
632
-
633
- var enforce = function (it) {
634
- return has(it) ? get(it) : set$1(it, {});
635
- };
636
-
637
- var getterFor = function (TYPE) {
638
- return function (it) {
639
- var state;
640
- if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
641
- throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
642
- } return state;
643
- };
644
- };
645
-
646
- if (NATIVE_WEAK_MAP || shared.state) {
647
- var store = shared.state || (shared.state = new WeakMap());
648
- /* eslint-disable no-self-assign -- prototype methods protection */
649
- store.get = store.get;
650
- store.has = store.has;
651
- store.set = store.set;
652
- /* eslint-enable no-self-assign -- prototype methods protection */
653
- set$1 = function (it, metadata) {
654
- if (store.has(it)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
655
- metadata.facade = it;
656
- store.set(it, metadata);
657
- return metadata;
658
- };
659
- get = function (it) {
660
- return store.get(it) || {};
661
- };
662
- has = function (it) {
663
- return store.has(it);
664
- };
665
- } else {
666
- var STATE = sharedKey('state');
667
- hiddenKeys$2[STATE] = true;
668
- set$1 = function (it, metadata) {
669
- if (hasOwn$5(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
670
- metadata.facade = it;
671
- createNonEnumerableProperty$1(it, STATE, metadata);
672
- return metadata;
673
- };
674
- get = function (it) {
675
- return hasOwn$5(it, STATE) ? it[STATE] : {};
676
- };
677
- has = function (it) {
678
- return hasOwn$5(it, STATE);
679
- };
680
- }
681
-
682
- var internalState = {
683
- set: set$1,
684
- get: get,
685
- has: has,
686
- enforce: enforce,
687
- getterFor: getterFor
688
- };
689
-
690
- var fails$3 = fails$a;
691
- var isCallable$9 = isCallable$h;
692
- var hasOwn$4 = hasOwnProperty_1;
693
- var DESCRIPTORS$1 = descriptors;
694
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
695
- var inspectSource$2 = inspectSource$3;
696
- var InternalStateModule$1 = internalState;
697
-
698
- var enforceInternalState = InternalStateModule$1.enforce;
699
- var getInternalState = InternalStateModule$1.get;
700
- // eslint-disable-next-line es/no-object-defineproperty -- safe
701
- var defineProperty$1 = Object.defineProperty;
702
-
703
- var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$3(function () {
704
- return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
705
- });
706
-
707
- var TEMPLATE = String(String).split('String');
708
-
709
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
710
- if (String(name).slice(0, 7) === 'Symbol(') {
711
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
712
- }
713
- if (options && options.getter) name = 'get ' + name;
714
- if (options && options.setter) name = 'set ' + name;
715
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
716
- if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
717
- else value.name = name;
718
- }
719
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
720
- defineProperty$1(value, 'length', { value: options.arity });
721
- }
722
- try {
723
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
724
- if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
725
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
726
- } else if (value.prototype) value.prototype = undefined;
727
- } catch (error) { /* empty */ }
728
- var state = enforceInternalState(value);
729
- if (!hasOwn$4(state, 'source')) {
730
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
731
- } return value;
732
- };
733
-
734
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
735
- // eslint-disable-next-line no-extend-native -- required
736
- Function.prototype.toString = makeBuiltIn$1(function toString() {
737
- return isCallable$9(this) && getInternalState(this).source || inspectSource$2(this);
738
- }, 'toString');
739
-
740
- var isCallable$8 = isCallable$h;
741
- var definePropertyModule$2 = objectDefineProperty;
742
- var makeBuiltIn = makeBuiltIn$2.exports;
743
- var defineGlobalProperty$1 = defineGlobalProperty$3;
744
-
745
- var defineBuiltIn$3 = function (O, key, value, options) {
746
- if (!options) options = {};
747
- var simple = options.enumerable;
748
- var name = options.name !== undefined ? options.name : key;
749
- if (isCallable$8(value)) makeBuiltIn(value, name, options);
750
- if (options.global) {
751
- if (simple) O[key] = value;
752
- else defineGlobalProperty$1(key, value);
753
- } else {
754
- try {
755
- if (!options.unsafe) delete O[key];
756
- else if (O[key]) simple = true;
757
- } catch (error) { /* empty */ }
758
- if (simple) O[key] = value;
759
- else definePropertyModule$2.f(O, key, {
760
- value: value,
761
- enumerable: false,
762
- configurable: !options.nonConfigurable,
763
- writable: !options.nonWritable
764
- });
765
- } return O;
766
- };
767
-
768
- var objectGetOwnPropertyNames = {};
769
-
770
- var ceil = Math.ceil;
771
- var floor = Math.floor;
772
-
773
- // `Math.trunc` method
774
- // https://tc39.es/ecma262/#sec-math.trunc
775
- // eslint-disable-next-line es/no-math-trunc -- safe
776
- var mathTrunc = Math.trunc || function trunc(x) {
777
- var n = +x;
778
- return (n > 0 ? floor : ceil)(n);
779
- };
780
-
781
- var trunc = mathTrunc;
782
-
783
- // `ToIntegerOrInfinity` abstract operation
784
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
785
- var toIntegerOrInfinity$2 = function (argument) {
786
- var number = +argument;
787
- // eslint-disable-next-line no-self-compare -- NaN check
788
- return number !== number || number === 0 ? 0 : trunc(number);
789
- };
790
-
791
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
792
-
793
- var max = Math.max;
794
- var min$1 = Math.min;
795
-
796
- // Helper for a popular repeating case of the spec:
797
- // Let integer be ? ToInteger(index).
798
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
799
- var toAbsoluteIndex$1 = function (index, length) {
800
- var integer = toIntegerOrInfinity$1(index);
801
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
802
- };
803
-
804
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
805
-
806
- var min = Math.min;
807
-
808
- // `ToLength` abstract operation
809
- // https://tc39.es/ecma262/#sec-tolength
810
- var toLength$1 = function (argument) {
811
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
812
- };
813
-
814
- var toLength = toLength$1;
815
-
816
- // `LengthOfArrayLike` abstract operation
817
- // https://tc39.es/ecma262/#sec-lengthofarraylike
818
- var lengthOfArrayLike$2 = function (obj) {
819
- return toLength(obj.length);
820
- };
821
-
822
- var toIndexedObject$1 = toIndexedObject$3;
823
- var toAbsoluteIndex = toAbsoluteIndex$1;
824
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
825
-
826
- // `Array.prototype.{ indexOf, includes }` methods implementation
827
- var createMethod = function (IS_INCLUDES) {
828
- return function ($this, el, fromIndex) {
829
- var O = toIndexedObject$1($this);
830
- var length = lengthOfArrayLike$1(O);
831
- var index = toAbsoluteIndex(fromIndex, length);
832
- var value;
833
- // Array#includes uses SameValueZero equality algorithm
834
- // eslint-disable-next-line no-self-compare -- NaN check
835
- if (IS_INCLUDES && el != el) while (length > index) {
836
- value = O[index++];
837
- // eslint-disable-next-line no-self-compare -- NaN check
838
- if (value != value) return true;
839
- // Array#indexOf ignores holes, Array#includes - not
840
- } else for (;length > index; index++) {
841
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
842
- } return !IS_INCLUDES && -1;
843
- };
844
- };
845
-
846
- var arrayIncludes = {
847
- // `Array.prototype.includes` method
848
- // https://tc39.es/ecma262/#sec-array.prototype.includes
849
- includes: createMethod(true),
850
- // `Array.prototype.indexOf` method
851
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
852
- indexOf: createMethod(false)
853
- };
854
-
855
- var uncurryThis$6 = functionUncurryThis;
856
- var hasOwn$3 = hasOwnProperty_1;
857
- var toIndexedObject = toIndexedObject$3;
858
- var indexOf = arrayIncludes.indexOf;
859
- var hiddenKeys$1 = hiddenKeys$3;
860
-
861
- var push = uncurryThis$6([].push);
862
-
863
- var objectKeysInternal = function (object, names) {
864
- var O = toIndexedObject(object);
865
- var i = 0;
866
- var result = [];
867
- var key;
868
- for (key in O) !hasOwn$3(hiddenKeys$1, key) && hasOwn$3(O, key) && push(result, key);
869
- // Don't enum bug & hidden keys
870
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
871
- ~indexOf(result, key) || push(result, key);
872
- }
873
- return result;
874
- };
875
-
876
- // IE8- don't enum bug keys
877
- var enumBugKeys$1 = [
878
- 'constructor',
879
- 'hasOwnProperty',
880
- 'isPrototypeOf',
881
- 'propertyIsEnumerable',
882
- 'toLocaleString',
883
- 'toString',
884
- 'valueOf'
885
- ];
886
-
887
- var internalObjectKeys = objectKeysInternal;
888
- var enumBugKeys = enumBugKeys$1;
889
-
890
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
891
-
892
- // `Object.getOwnPropertyNames` method
893
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
894
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
895
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
896
- return internalObjectKeys(O, hiddenKeys);
897
- };
898
-
899
- var objectGetOwnPropertySymbols = {};
900
-
901
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
902
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
903
-
904
- var getBuiltIn$5 = getBuiltIn$8;
905
- var uncurryThis$5 = functionUncurryThis;
906
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
907
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
908
- var anObject$6 = anObject$8;
909
-
910
- var concat = uncurryThis$5([].concat);
911
-
912
- // all object keys, includes non-enumerable and symbols
913
- var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
914
- var keys = getOwnPropertyNamesModule.f(anObject$6(it));
915
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
916
- return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
917
- };
918
-
919
- var hasOwn$2 = hasOwnProperty_1;
920
- var ownKeys = ownKeys$1;
921
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
922
- var definePropertyModule$1 = objectDefineProperty;
923
-
924
- var copyConstructorProperties$1 = function (target, source, exceptions) {
925
- var keys = ownKeys(source);
926
- var defineProperty = definePropertyModule$1.f;
927
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
928
- for (var i = 0; i < keys.length; i++) {
929
- var key = keys[i];
930
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
931
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
932
- }
933
- }
934
- };
935
-
936
- var fails$2 = fails$a;
937
- var isCallable$7 = isCallable$h;
938
-
939
- var replacement = /#|\.prototype\./;
940
-
941
- var isForced$2 = function (feature, detection) {
942
- var value = data[normalize(feature)];
943
- return value == POLYFILL ? true
944
- : value == NATIVE ? false
945
- : isCallable$7(detection) ? fails$2(detection)
946
- : !!detection;
947
- };
948
-
949
- var normalize = isForced$2.normalize = function (string) {
950
- return String(string).replace(replacement, '.').toLowerCase();
951
- };
952
-
953
- var data = isForced$2.data = {};
954
- var NATIVE = isForced$2.NATIVE = 'N';
955
- var POLYFILL = isForced$2.POLYFILL = 'P';
956
-
957
- var isForced_1 = isForced$2;
958
-
959
- var global$9 = global$i;
960
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
961
- var createNonEnumerableProperty = createNonEnumerableProperty$2;
962
- var defineBuiltIn$2 = defineBuiltIn$3;
963
- var defineGlobalProperty = defineGlobalProperty$3;
964
- var copyConstructorProperties = copyConstructorProperties$1;
965
- var isForced$1 = isForced_1;
966
-
967
- /*
968
- options.target - name of the target object
969
- options.global - target is the global object
970
- options.stat - export as static methods of target
971
- options.proto - export as prototype methods of target
972
- options.real - real prototype method for the `pure` version
973
- options.forced - export even if the native feature is available
974
- options.bind - bind methods to the target, required for the `pure` version
975
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
976
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
977
- options.sham - add a flag to not completely full polyfills
978
- options.enumerable - export as enumerable property
979
- options.dontCallGetSet - prevent calling a getter on target
980
- options.name - the .name of the function if it does not match the key
981
- */
982
- var _export = function (options, source) {
983
- var TARGET = options.target;
984
- var GLOBAL = options.global;
985
- var STATIC = options.stat;
986
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
987
- if (GLOBAL) {
988
- target = global$9;
989
- } else if (STATIC) {
990
- target = global$9[TARGET] || defineGlobalProperty(TARGET, {});
991
- } else {
992
- target = (global$9[TARGET] || {}).prototype;
993
- }
994
- if (target) for (key in source) {
995
- sourceProperty = source[key];
996
- if (options.dontCallGetSet) {
997
- descriptor = getOwnPropertyDescriptor$1(target, key);
998
- targetProperty = descriptor && descriptor.value;
999
- } else targetProperty = target[key];
1000
- FORCED = isForced$1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1001
- // contained in target
1002
- if (!FORCED && targetProperty !== undefined) {
1003
- if (typeof sourceProperty == typeof targetProperty) continue;
1004
- copyConstructorProperties(sourceProperty, targetProperty);
1005
- }
1006
- // add a flag to not completely full polyfills
1007
- if (options.sham || (targetProperty && targetProperty.sham)) {
1008
- createNonEnumerableProperty(sourceProperty, 'sham', true);
1009
- }
1010
- defineBuiltIn$2(target, key, sourceProperty, options);
1011
- }
1012
- };
1013
-
1014
- var classof$3 = classofRaw$2;
1015
- var global$8 = global$i;
1016
-
1017
- var engineIsNode = classof$3(global$8.process) == 'process';
1018
-
1019
- var isCallable$6 = isCallable$h;
1020
-
1021
- var $String = String;
1022
- var $TypeError$6 = TypeError;
1023
-
1024
- var aPossiblePrototype$1 = function (argument) {
1025
- if (typeof argument == 'object' || isCallable$6(argument)) return argument;
1026
- throw $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
1027
- };
1028
-
1029
- /* eslint-disable no-proto -- safe */
1030
-
1031
- var uncurryThis$4 = functionUncurryThis;
1032
- var anObject$5 = anObject$8;
1033
- var aPossiblePrototype = aPossiblePrototype$1;
1034
-
1035
- // `Object.setPrototypeOf` method
1036
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1037
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1038
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1039
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1040
- var CORRECT_SETTER = false;
1041
- var test = {};
1042
- var setter;
1043
- try {
1044
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1045
- setter = uncurryThis$4(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1046
- setter(test, []);
1047
- CORRECT_SETTER = test instanceof Array;
1048
- } catch (error) { /* empty */ }
1049
- return function setPrototypeOf(O, proto) {
1050
- anObject$5(O);
1051
- aPossiblePrototype(proto);
1052
- if (CORRECT_SETTER) setter(O, proto);
1053
- else O.__proto__ = proto;
1054
- return O;
1055
- };
1056
- }() : undefined);
1057
-
1058
- var defineProperty = objectDefineProperty.f;
1059
- var hasOwn$1 = hasOwnProperty_1;
1060
- var wellKnownSymbol$8 = wellKnownSymbol$a;
1061
-
1062
- var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1063
-
1064
- var setToStringTag$1 = function (target, TAG, STATIC) {
1065
- if (target && !STATIC) target = target.prototype;
1066
- if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
1067
- defineProperty(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1068
- }
1069
- };
1070
-
1071
- var getBuiltIn$4 = getBuiltIn$8;
1072
- var definePropertyModule = objectDefineProperty;
1073
- var wellKnownSymbol$7 = wellKnownSymbol$a;
1074
- var DESCRIPTORS = descriptors;
1075
-
1076
- var SPECIES$2 = wellKnownSymbol$7('species');
1077
-
1078
- var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1079
- var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
1080
- var defineProperty = definePropertyModule.f;
1081
-
1082
- if (DESCRIPTORS && Constructor && !Constructor[SPECIES$2]) {
1083
- defineProperty(Constructor, SPECIES$2, {
1084
- configurable: true,
1085
- get: function () { return this; }
1086
- });
1087
- }
1088
- };
1089
-
1090
- var isPrototypeOf$1 = objectIsPrototypeOf;
1091
-
1092
- var $TypeError$5 = TypeError;
1093
-
1094
- var anInstance$1 = function (it, Prototype) {
1095
- if (isPrototypeOf$1(Prototype, it)) return it;
1096
- throw $TypeError$5('Incorrect invocation');
1097
- };
1098
-
1099
- var wellKnownSymbol$6 = wellKnownSymbol$a;
1100
-
1101
- var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
1102
- var test = {};
1103
-
1104
- test[TO_STRING_TAG$1] = 'z';
1105
-
1106
- var toStringTagSupport = String(test) === '[object z]';
1107
-
1108
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1109
- var isCallable$5 = isCallable$h;
1110
- var classofRaw$1 = classofRaw$2;
1111
- var wellKnownSymbol$5 = wellKnownSymbol$a;
1112
-
1113
- var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
1114
- var $Object = Object;
1115
-
1116
- // ES3 wrong here
1117
- var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
1118
-
1119
- // fallback for IE11 Script Access Denied error
1120
- var tryGet = function (it, key) {
1121
- try {
1122
- return it[key];
1123
- } catch (error) { /* empty */ }
1124
- };
1125
-
1126
- // getting tag from ES6+ `Object.prototype.toString`
1127
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1128
- var O, tag, result;
1129
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1130
- // @@toStringTag case
1131
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1132
- // builtinTag case
1133
- : CORRECT_ARGUMENTS ? classofRaw$1(O)
1134
- // ES3 arguments fallback
1135
- : (result = classofRaw$1(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1136
- };
1137
-
1138
- var uncurryThis$3 = functionUncurryThis;
1139
- var fails$1 = fails$a;
1140
- var isCallable$4 = isCallable$h;
1141
- var classof$1 = classof$2;
1142
- var getBuiltIn$3 = getBuiltIn$8;
1143
- var inspectSource$1 = inspectSource$3;
1144
-
1145
- var noop = function () { /* empty */ };
1146
- var empty = [];
1147
- var construct = getBuiltIn$3('Reflect', 'construct');
1148
- var constructorRegExp = /^\s*(?:class|function)\b/;
1149
- var exec = uncurryThis$3(constructorRegExp.exec);
1150
- var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1151
-
1152
- var isConstructorModern = function isConstructor(argument) {
1153
- if (!isCallable$4(argument)) return false;
1154
- try {
1155
- construct(noop, empty, argument);
1156
- return true;
1157
- } catch (error) {
1158
- return false;
1159
- }
1160
- };
1161
-
1162
- var isConstructorLegacy = function isConstructor(argument) {
1163
- if (!isCallable$4(argument)) return false;
1164
- switch (classof$1(argument)) {
1165
- case 'AsyncFunction':
1166
- case 'GeneratorFunction':
1167
- case 'AsyncGeneratorFunction': return false;
1168
- }
1169
- try {
1170
- // we can't check .prototype since constructors produced by .bind haven't it
1171
- // `Function#toString` throws on some built-it function in some legacy engines
1172
- // (for example, `DOMQuad` and similar in FF41-)
1173
- return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource$1(argument));
1174
- } catch (error) {
1175
- return true;
1176
- }
1177
- };
1178
-
1179
- isConstructorLegacy.sham = true;
1180
-
1181
- // `IsConstructor` abstract operation
1182
- // https://tc39.es/ecma262/#sec-isconstructor
1183
- var isConstructor$1 = !construct || fails$1(function () {
1184
- var called;
1185
- return isConstructorModern(isConstructorModern.call)
1186
- || !isConstructorModern(Object)
1187
- || !isConstructorModern(function () { called = true; })
1188
- || called;
1189
- }) ? isConstructorLegacy : isConstructorModern;
1190
-
1191
- var isConstructor = isConstructor$1;
1192
- var tryToString$2 = tryToString$4;
1193
-
1194
- var $TypeError$4 = TypeError;
1195
-
1196
- // `Assert: IsConstructor(argument) is true`
1197
- var aConstructor$1 = function (argument) {
1198
- if (isConstructor(argument)) return argument;
1199
- throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
1200
- };
1201
-
1202
- var anObject$4 = anObject$8;
1203
- var aConstructor = aConstructor$1;
1204
- var isNullOrUndefined$1 = isNullOrUndefined$4;
1205
- var wellKnownSymbol$4 = wellKnownSymbol$a;
1206
-
1207
- var SPECIES$1 = wellKnownSymbol$4('species');
1208
-
1209
- // `SpeciesConstructor` abstract operation
1210
- // https://tc39.es/ecma262/#sec-speciesconstructor
1211
- var speciesConstructor$1 = function (O, defaultConstructor) {
1212
- var C = anObject$4(O).constructor;
1213
- var S;
1214
- return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1215
- };
1216
-
1217
- var NATIVE_BIND$1 = functionBindNative;
1218
-
1219
- var FunctionPrototype = Function.prototype;
1220
- var apply$1 = FunctionPrototype.apply;
1221
- var call$7 = FunctionPrototype.call;
1222
-
1223
- // eslint-disable-next-line es/no-reflect -- safe
1224
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$7.bind(apply$1) : function () {
1225
- return call$7.apply(apply$1, arguments);
1226
- });
1227
-
1228
- var classofRaw = classofRaw$2;
1229
- var uncurryThis$2 = functionUncurryThis;
1230
-
1231
- var functionUncurryThisClause = function (fn) {
1232
- // Nashorn bug:
1233
- // https://github.com/zloirock/core-js/issues/1128
1234
- // https://github.com/zloirock/core-js/issues/1130
1235
- if (classofRaw(fn) === 'Function') return uncurryThis$2(fn);
1236
- };
1237
-
1238
- var uncurryThis$1 = functionUncurryThisClause;
1239
- var aCallable$5 = aCallable$7;
1240
- var NATIVE_BIND = functionBindNative;
1241
-
1242
- var bind$4 = uncurryThis$1(uncurryThis$1.bind);
1243
-
1244
- // optional / simple context binding
1245
- var functionBindContext = function (fn, that) {
1246
- aCallable$5(fn);
1247
- return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1248
- return fn.apply(that, arguments);
1249
- };
1250
- };
1251
-
1252
- var getBuiltIn$2 = getBuiltIn$8;
1253
-
1254
- var html$1 = getBuiltIn$2('document', 'documentElement');
1255
-
1256
- var uncurryThis = functionUncurryThis;
1257
-
1258
- var arraySlice$1 = uncurryThis([].slice);
1259
-
1260
- var $TypeError$3 = TypeError;
1261
-
1262
- var validateArgumentsLength$1 = function (passed, required) {
1263
- if (passed < required) throw $TypeError$3('Not enough arguments');
1264
- return passed;
1265
- };
1266
-
1267
- var userAgent$2 = engineUserAgent;
1268
-
1269
- var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1270
-
1271
- var global$7 = global$i;
1272
- var apply = functionApply;
1273
- var bind$3 = functionBindContext;
1274
- var isCallable$3 = isCallable$h;
1275
- var hasOwn = hasOwnProperty_1;
1276
- var fails = fails$a;
1277
- var html = html$1;
1278
- var arraySlice = arraySlice$1;
1279
- var createElement = documentCreateElement;
1280
- var validateArgumentsLength = validateArgumentsLength$1;
1281
- var IS_IOS$1 = engineIsIos;
1282
- var IS_NODE$3 = engineIsNode;
1283
-
1284
- var set = global$7.setImmediate;
1285
- var clear = global$7.clearImmediate;
1286
- var process$2 = global$7.process;
1287
- var Dispatch = global$7.Dispatch;
1288
- var Function$1 = global$7.Function;
1289
- var MessageChannel = global$7.MessageChannel;
1290
- var String$1 = global$7.String;
1291
- var counter = 0;
1292
- var queue$1 = {};
1293
- var ONREADYSTATECHANGE = 'onreadystatechange';
1294
- var $location, defer, channel, port;
1295
-
1296
- try {
1297
- // Deno throws a ReferenceError on `location` access without `--location` flag
1298
- $location = global$7.location;
1299
- } catch (error) { /* empty */ }
1300
-
1301
- var run = function (id) {
1302
- if (hasOwn(queue$1, id)) {
1303
- var fn = queue$1[id];
1304
- delete queue$1[id];
1305
- fn();
1306
- }
1307
- };
1308
-
1309
- var runner = function (id) {
1310
- return function () {
1311
- run(id);
1312
- };
1313
- };
1314
-
1315
- var listener = function (event) {
1316
- run(event.data);
1317
- };
1318
-
1319
- var post = function (id) {
1320
- // old engines have not location.origin
1321
- global$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1322
- };
1323
-
1324
- // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1325
- if (!set || !clear) {
1326
- set = function setImmediate(handler) {
1327
- validateArgumentsLength(arguments.length, 1);
1328
- var fn = isCallable$3(handler) ? handler : Function$1(handler);
1329
- var args = arraySlice(arguments, 1);
1330
- queue$1[++counter] = function () {
1331
- apply(fn, undefined, args);
1332
- };
1333
- defer(counter);
1334
- return counter;
1335
- };
1336
- clear = function clearImmediate(id) {
1337
- delete queue$1[id];
1338
- };
1339
- // Node.js 0.8-
1340
- if (IS_NODE$3) {
1341
- defer = function (id) {
1342
- process$2.nextTick(runner(id));
1343
- };
1344
- // Sphere (JS game engine) Dispatch API
1345
- } else if (Dispatch && Dispatch.now) {
1346
- defer = function (id) {
1347
- Dispatch.now(runner(id));
1348
- };
1349
- // Browsers with MessageChannel, includes WebWorkers
1350
- // except iOS - https://github.com/zloirock/core-js/issues/624
1351
- } else if (MessageChannel && !IS_IOS$1) {
1352
- channel = new MessageChannel();
1353
- port = channel.port2;
1354
- channel.port1.onmessage = listener;
1355
- defer = bind$3(port.postMessage, port);
1356
- // Browsers with postMessage, skip WebWorkers
1357
- // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1358
- } else if (
1359
- global$7.addEventListener &&
1360
- isCallable$3(global$7.postMessage) &&
1361
- !global$7.importScripts &&
1362
- $location && $location.protocol !== 'file:' &&
1363
- !fails(post)
1364
- ) {
1365
- defer = post;
1366
- global$7.addEventListener('message', listener, false);
1367
- // IE8-
1368
- } else if (ONREADYSTATECHANGE in createElement('script')) {
1369
- defer = function (id) {
1370
- html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
1371
- html.removeChild(this);
1372
- run(id);
1373
- };
1374
- };
1375
- // Rest old browsers
1376
- } else {
1377
- defer = function (id) {
1378
- setTimeout(runner(id), 0);
1379
- };
1380
- }
1381
- }
1382
-
1383
- var task$1 = {
1384
- set: set,
1385
- clear: clear
1386
- };
1387
-
1388
- var userAgent$1 = engineUserAgent;
1389
- var global$6 = global$i;
1390
-
1391
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$6.Pebble !== undefined;
1392
-
1393
- var userAgent = engineUserAgent;
1394
-
1395
- var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1396
-
1397
- var global$5 = global$i;
1398
- var bind$2 = functionBindContext;
1399
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1400
- var macrotask = task$1.set;
1401
- var IS_IOS = engineIsIos;
1402
- var IS_IOS_PEBBLE = engineIsIosPebble;
1403
- var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
1404
- var IS_NODE$2 = engineIsNode;
1405
-
1406
- var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
1407
- var document$2 = global$5.document;
1408
- var process$1 = global$5.process;
1409
- var Promise$1 = global$5.Promise;
1410
- // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
1411
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$5, 'queueMicrotask');
1412
- var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
1413
-
1414
- var flush, head, last, notify$1, toggle, node, promise, then;
1415
-
1416
- // modern engines have queueMicrotask method
1417
- if (!queueMicrotask) {
1418
- flush = function () {
1419
- var parent, fn;
1420
- if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
1421
- while (head) {
1422
- fn = head.fn;
1423
- head = head.next;
1424
- try {
1425
- fn();
1426
- } catch (error) {
1427
- if (head) notify$1();
1428
- else last = undefined;
1429
- throw error;
1430
- }
1431
- } last = undefined;
1432
- if (parent) parent.enter();
1433
- };
1434
-
1435
- // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
1436
- // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
1437
- if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1438
- toggle = true;
1439
- node = document$2.createTextNode('');
1440
- new MutationObserver(flush).observe(node, { characterData: true });
1441
- notify$1 = function () {
1442
- node.data = toggle = !toggle;
1443
- };
1444
- // environments with maybe non-completely correct, but existent Promise
1445
- } else if (!IS_IOS_PEBBLE && Promise$1 && Promise$1.resolve) {
1446
- // Promise.resolve without an argument throws an error in LG WebOS 2
1447
- promise = Promise$1.resolve(undefined);
1448
- // workaround of WebKit ~ iOS Safari 10.1 bug
1449
- promise.constructor = Promise$1;
1450
- then = bind$2(promise.then, promise);
1451
- notify$1 = function () {
1452
- then(flush);
1453
- };
1454
- // Node.js without promises
1455
- } else if (IS_NODE$2) {
1456
- notify$1 = function () {
1457
- process$1.nextTick(flush);
1458
- };
1459
- // for other environments - macrotask based on:
1460
- // - setImmediate
1461
- // - MessageChannel
1462
- // - window.postMessage
1463
- // - onreadystatechange
1464
- // - setTimeout
1465
- } else {
1466
- // strange IE + webpack dev server bug - use .bind(global)
1467
- macrotask = bind$2(macrotask, global$5);
1468
- notify$1 = function () {
1469
- macrotask(flush);
1470
- };
1471
- }
1472
- }
1473
-
1474
- var microtask$1 = queueMicrotask || function (fn) {
1475
- var task = { fn: fn, next: undefined };
1476
- if (last) last.next = task;
1477
- if (!head) {
1478
- head = task;
1479
- notify$1();
1480
- } last = task;
1481
- };
1482
-
1483
- var global$4 = global$i;
1484
-
1485
- var hostReportErrors$1 = function (a, b) {
1486
- var console = global$4.console;
1487
- if (console && console.error) {
1488
- arguments.length == 1 ? console.error(a) : console.error(a, b);
1489
- }
1490
- };
1491
-
1492
- var perform$3 = function (exec) {
1493
- try {
1494
- return { error: false, value: exec() };
1495
- } catch (error) {
1496
- return { error: true, value: error };
1497
- }
1498
- };
1499
-
1500
- var Queue$1 = function () {
1501
- this.head = null;
1502
- this.tail = null;
1503
- };
1504
-
1505
- Queue$1.prototype = {
1506
- add: function (item) {
1507
- var entry = { item: item, next: null };
1508
- if (this.head) this.tail.next = entry;
1509
- else this.head = entry;
1510
- this.tail = entry;
1511
- },
1512
- get: function () {
1513
- var entry = this.head;
1514
- if (entry) {
1515
- this.head = entry.next;
1516
- if (this.tail === entry) this.tail = null;
1517
- return entry.item;
1518
- }
1519
- }
1520
- };
1521
-
1522
- var queue = Queue$1;
1523
-
1524
- var global$3 = global$i;
1525
-
1526
- var promiseNativeConstructor = global$3.Promise;
1527
-
1528
- /* global Deno -- Deno case */
1529
-
1530
- var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
1531
-
1532
- var IS_DENO$1 = engineIsDeno;
1533
- var IS_NODE$1 = engineIsNode;
1534
-
1535
- var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
1536
- && typeof window == 'object'
1537
- && typeof document == 'object';
1538
-
1539
- var global$2 = global$i;
1540
- var NativePromiseConstructor$3 = promiseNativeConstructor;
1541
- var isCallable$2 = isCallable$h;
1542
- var isForced = isForced_1;
1543
- var inspectSource = inspectSource$3;
1544
- var wellKnownSymbol$3 = wellKnownSymbol$a;
1545
- var IS_BROWSER = engineIsBrowser;
1546
- var IS_DENO = engineIsDeno;
1547
- var V8_VERSION = engineV8Version;
1548
-
1549
- NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1550
- var SPECIES = wellKnownSymbol$3('species');
1551
- var SUBCLASSING = false;
1552
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
1553
-
1554
- var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
1555
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
1556
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(NativePromiseConstructor$3);
1557
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
1558
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
1559
- // We can't detect it synchronously, so just check versions
1560
- if (!GLOBAL_CORE_JS_PROMISE && V8_VERSION === 66) return true;
1561
- // We can't use @@species feature detection in V8 since it causes
1562
- // deoptimization and performance degradation
1563
- // https://github.com/zloirock/core-js/issues/679
1564
- if (!V8_VERSION || V8_VERSION < 51 || !/native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) {
1565
- // Detect correctness of subclassing with @@species support
1566
- var promise = new NativePromiseConstructor$3(function (resolve) { resolve(1); });
1567
- var FakePromise = function (exec) {
1568
- exec(function () { /* empty */ }, function () { /* empty */ });
1569
- };
1570
- var constructor = promise.constructor = {};
1571
- constructor[SPECIES] = FakePromise;
1572
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
1573
- if (!SUBCLASSING) return true;
1574
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
1575
- } return !GLOBAL_CORE_JS_PROMISE && (IS_BROWSER || IS_DENO) && !NATIVE_PROMISE_REJECTION_EVENT$1;
1576
- });
1577
-
1578
- var promiseConstructorDetection = {
1579
- CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
1580
- REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
1581
- SUBCLASSING: SUBCLASSING
1582
- };
1583
-
1584
- var newPromiseCapability$2 = {};
1585
-
1586
- var aCallable$4 = aCallable$7;
1587
-
1588
- var $TypeError$2 = TypeError;
1589
-
1590
- var PromiseCapability = function (C) {
1591
- var resolve, reject;
1592
- this.promise = new C(function ($$resolve, $$reject) {
1593
- if (resolve !== undefined || reject !== undefined) throw $TypeError$2('Bad Promise constructor');
1594
- resolve = $$resolve;
1595
- reject = $$reject;
1596
- });
1597
- this.resolve = aCallable$4(resolve);
1598
- this.reject = aCallable$4(reject);
1599
- };
1600
-
1601
- // `NewPromiseCapability` abstract operation
1602
- // https://tc39.es/ecma262/#sec-newpromisecapability
1603
- newPromiseCapability$2.f = function (C) {
1604
- return new PromiseCapability(C);
1605
- };
1606
-
1607
- var $$5 = _export;
1608
- var IS_NODE = engineIsNode;
1609
- var global$1 = global$i;
1610
- var call$6 = functionCall;
1611
- var defineBuiltIn$1 = defineBuiltIn$3;
1612
- var setPrototypeOf = objectSetPrototypeOf;
1613
- var setToStringTag = setToStringTag$1;
1614
- var setSpecies = setSpecies$1;
1615
- var aCallable$3 = aCallable$7;
1616
- var isCallable$1 = isCallable$h;
1617
- var isObject$1 = isObject$7;
1618
- var anInstance = anInstance$1;
1619
- var speciesConstructor = speciesConstructor$1;
1620
- var task = task$1.set;
1621
- var microtask = microtask$1;
1622
- var hostReportErrors = hostReportErrors$1;
1623
- var perform$2 = perform$3;
1624
- var Queue = queue;
1625
- var InternalStateModule = internalState;
1626
- var NativePromiseConstructor$2 = promiseNativeConstructor;
1627
- var PromiseConstructorDetection = promiseConstructorDetection;
1628
- var newPromiseCapabilityModule$3 = newPromiseCapability$2;
1629
-
1630
- var PROMISE = 'Promise';
1631
- var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
1632
- var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
1633
- var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
1634
- var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
1635
- var setInternalState = InternalStateModule.set;
1636
- var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
1637
- var PromiseConstructor = NativePromiseConstructor$2;
1638
- var PromisePrototype = NativePromisePrototype$1;
1639
- var TypeError$1 = global$1.TypeError;
1640
- var document$1 = global$1.document;
1641
- var process = global$1.process;
1642
- var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
1643
- var newGenericPromiseCapability = newPromiseCapability$1;
1644
-
1645
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
1646
- var UNHANDLED_REJECTION = 'unhandledrejection';
1647
- var REJECTION_HANDLED = 'rejectionhandled';
1648
- var PENDING = 0;
1649
- var FULFILLED = 1;
1650
- var REJECTED = 2;
1651
- var HANDLED = 1;
1652
- var UNHANDLED = 2;
1653
-
1654
- var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
1655
-
1656
- // helpers
1657
- var isThenable = function (it) {
1658
- var then;
1659
- return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
1660
- };
1661
-
1662
- var callReaction = function (reaction, state) {
1663
- var value = state.value;
1664
- var ok = state.state == FULFILLED;
1665
- var handler = ok ? reaction.ok : reaction.fail;
1666
- var resolve = reaction.resolve;
1667
- var reject = reaction.reject;
1668
- var domain = reaction.domain;
1669
- var result, then, exited;
1670
- try {
1671
- if (handler) {
1672
- if (!ok) {
1673
- if (state.rejection === UNHANDLED) onHandleUnhandled(state);
1674
- state.rejection = HANDLED;
1675
- }
1676
- if (handler === true) result = value;
1677
- else {
1678
- if (domain) domain.enter();
1679
- result = handler(value); // can throw
1680
- if (domain) {
1681
- domain.exit();
1682
- exited = true;
1683
- }
1684
- }
1685
- if (result === reaction.promise) {
1686
- reject(TypeError$1('Promise-chain cycle'));
1687
- } else if (then = isThenable(result)) {
1688
- call$6(then, result, resolve, reject);
1689
- } else resolve(result);
1690
- } else reject(value);
1691
- } catch (error) {
1692
- if (domain && !exited) domain.exit();
1693
- reject(error);
1694
- }
1695
- };
1696
-
1697
- var notify = function (state, isReject) {
1698
- if (state.notified) return;
1699
- state.notified = true;
1700
- microtask(function () {
1701
- var reactions = state.reactions;
1702
- var reaction;
1703
- while (reaction = reactions.get()) {
1704
- callReaction(reaction, state);
1705
- }
1706
- state.notified = false;
1707
- if (isReject && !state.rejection) onUnhandled(state);
1708
- });
1709
- };
1710
-
1711
- var dispatchEvent = function (name, promise, reason) {
1712
- var event, handler;
1713
- if (DISPATCH_EVENT) {
1714
- event = document$1.createEvent('Event');
1715
- event.promise = promise;
1716
- event.reason = reason;
1717
- event.initEvent(name, false, true);
1718
- global$1.dispatchEvent(event);
1719
- } else event = { promise: promise, reason: reason };
1720
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
1721
- else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
1722
- };
1723
-
1724
- var onUnhandled = function (state) {
1725
- call$6(task, global$1, function () {
1726
- var promise = state.facade;
1727
- var value = state.value;
1728
- var IS_UNHANDLED = isUnhandled(state);
1729
- var result;
1730
- if (IS_UNHANDLED) {
1731
- result = perform$2(function () {
1732
- if (IS_NODE) {
1733
- process.emit('unhandledRejection', value, promise);
1734
- } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
1735
- });
1736
- // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
1737
- state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
1738
- if (result.error) throw result.value;
1739
- }
1740
- });
1741
- };
1742
-
1743
- var isUnhandled = function (state) {
1744
- return state.rejection !== HANDLED && !state.parent;
1745
- };
1746
-
1747
- var onHandleUnhandled = function (state) {
1748
- call$6(task, global$1, function () {
1749
- var promise = state.facade;
1750
- if (IS_NODE) {
1751
- process.emit('rejectionHandled', promise);
1752
- } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
1753
- });
1754
- };
1755
-
1756
- var bind$1 = function (fn, state, unwrap) {
1757
- return function (value) {
1758
- fn(state, value, unwrap);
1759
- };
1760
- };
1761
-
1762
- var internalReject = function (state, value, unwrap) {
1763
- if (state.done) return;
1764
- state.done = true;
1765
- if (unwrap) state = unwrap;
1766
- state.value = value;
1767
- state.state = REJECTED;
1768
- notify(state, true);
1769
- };
1770
-
1771
- var internalResolve = function (state, value, unwrap) {
1772
- if (state.done) return;
1773
- state.done = true;
1774
- if (unwrap) state = unwrap;
1775
- try {
1776
- if (state.facade === value) throw TypeError$1("Promise can't be resolved itself");
1777
- var then = isThenable(value);
1778
- if (then) {
1779
- microtask(function () {
1780
- var wrapper = { done: false };
1781
- try {
1782
- call$6(then, value,
1783
- bind$1(internalResolve, wrapper, state),
1784
- bind$1(internalReject, wrapper, state)
1785
- );
1786
- } catch (error) {
1787
- internalReject(wrapper, error, state);
1788
- }
1789
- });
1790
- } else {
1791
- state.value = value;
1792
- state.state = FULFILLED;
1793
- notify(state, false);
1794
- }
1795
- } catch (error) {
1796
- internalReject({ done: false }, error, state);
1797
- }
1798
- };
1799
-
1800
- // constructor polyfill
1801
- if (FORCED_PROMISE_CONSTRUCTOR$4) {
1802
- // 25.4.3.1 Promise(executor)
1803
- PromiseConstructor = function Promise(executor) {
1804
- anInstance(this, PromisePrototype);
1805
- aCallable$3(executor);
1806
- call$6(Internal, this);
1807
- var state = getInternalPromiseState(this);
1808
- try {
1809
- executor(bind$1(internalResolve, state), bind$1(internalReject, state));
1810
- } catch (error) {
1811
- internalReject(state, error);
1812
- }
1813
- };
1814
-
1815
- PromisePrototype = PromiseConstructor.prototype;
1816
-
1817
- // eslint-disable-next-line no-unused-vars -- required for `.length`
1818
- Internal = function Promise(executor) {
1819
- setInternalState(this, {
1820
- type: PROMISE,
1821
- done: false,
1822
- notified: false,
1823
- parent: false,
1824
- reactions: new Queue(),
1825
- rejection: false,
1826
- state: PENDING,
1827
- value: undefined
1828
- });
1829
- };
1830
-
1831
- // `Promise.prototype.then` method
1832
- // https://tc39.es/ecma262/#sec-promise.prototype.then
1833
- Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
1834
- var state = getInternalPromiseState(this);
1835
- var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
1836
- state.parent = true;
1837
- reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
1838
- reaction.fail = isCallable$1(onRejected) && onRejected;
1839
- reaction.domain = IS_NODE ? process.domain : undefined;
1840
- if (state.state == PENDING) state.reactions.add(reaction);
1841
- else microtask(function () {
1842
- callReaction(reaction, state);
1843
- });
1844
- return reaction.promise;
1845
- });
1846
-
1847
- OwnPromiseCapability = function () {
1848
- var promise = new Internal();
1849
- var state = getInternalPromiseState(promise);
1850
- this.promise = promise;
1851
- this.resolve = bind$1(internalResolve, state);
1852
- this.reject = bind$1(internalReject, state);
1853
- };
1854
-
1855
- newPromiseCapabilityModule$3.f = newPromiseCapability$1 = function (C) {
1856
- return C === PromiseConstructor || C === PromiseWrapper
1857
- ? new OwnPromiseCapability(C)
1858
- : newGenericPromiseCapability(C);
1859
- };
1860
-
1861
- if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
1862
- nativeThen = NativePromisePrototype$1.then;
1863
-
1864
- if (!NATIVE_PROMISE_SUBCLASSING) {
1865
- // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
1866
- defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
1867
- var that = this;
1868
- return new PromiseConstructor(function (resolve, reject) {
1869
- call$6(nativeThen, that, resolve, reject);
1870
- }).then(onFulfilled, onRejected);
1871
- // https://github.com/zloirock/core-js/issues/640
1872
- }, { unsafe: true });
1873
- }
1874
-
1875
- // make `.constructor === Promise` work for native promise-based APIs
1876
- try {
1877
- delete NativePromisePrototype$1.constructor;
1878
- } catch (error) { /* empty */ }
1879
-
1880
- // make `instanceof Promise` work for native promise-based APIs
1881
- if (setPrototypeOf) {
1882
- setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
1883
- }
1884
- }
1885
- }
1886
-
1887
- $$5({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
1888
- Promise: PromiseConstructor
1889
- });
1890
-
1891
- setToStringTag(PromiseConstructor, PROMISE, false);
1892
- setSpecies(PROMISE);
1893
-
1894
- var iterators = {};
1895
-
1896
- var wellKnownSymbol$2 = wellKnownSymbol$a;
1897
- var Iterators$1 = iterators;
1898
-
1899
- var ITERATOR$2 = wellKnownSymbol$2('iterator');
1900
- var ArrayPrototype = Array.prototype;
1901
-
1902
- // check on default Array iterator
1903
- var isArrayIteratorMethod$1 = function (it) {
1904
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
1905
- };
1906
-
1907
- var classof = classof$2;
1908
- var getMethod$1 = getMethod$3;
1909
- var isNullOrUndefined = isNullOrUndefined$4;
1910
- var Iterators = iterators;
1911
- var wellKnownSymbol$1 = wellKnownSymbol$a;
1912
-
1913
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1914
-
1915
- var getIteratorMethod$2 = function (it) {
1916
- if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
1917
- || getMethod$1(it, '@@iterator')
1918
- || Iterators[classof(it)];
1919
- };
1920
-
1921
- var call$5 = functionCall;
1922
- var aCallable$2 = aCallable$7;
1923
- var anObject$3 = anObject$8;
1924
- var tryToString$1 = tryToString$4;
1925
- var getIteratorMethod$1 = getIteratorMethod$2;
1926
-
1927
- var $TypeError$1 = TypeError;
1928
-
1929
- var getIterator$1 = function (argument, usingIterator) {
1930
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1931
- if (aCallable$2(iteratorMethod)) return anObject$3(call$5(iteratorMethod, argument));
1932
- throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
1933
- };
1934
-
1935
- var call$4 = functionCall;
1936
- var anObject$2 = anObject$8;
1937
- var getMethod = getMethod$3;
1938
-
1939
- var iteratorClose$1 = function (iterator, kind, value) {
1940
- var innerResult, innerError;
1941
- anObject$2(iterator);
1942
- try {
1943
- innerResult = getMethod(iterator, 'return');
1944
- if (!innerResult) {
1945
- if (kind === 'throw') throw value;
1946
- return value;
1947
- }
1948
- innerResult = call$4(innerResult, iterator);
1949
- } catch (error) {
1950
- innerError = true;
1951
- innerResult = error;
1952
- }
1953
- if (kind === 'throw') throw value;
1954
- if (innerError) throw innerResult;
1955
- anObject$2(innerResult);
1956
- return value;
1957
- };
1958
-
1959
- var bind = functionBindContext;
1960
- var call$3 = functionCall;
1961
- var anObject$1 = anObject$8;
1962
- var tryToString = tryToString$4;
1963
- var isArrayIteratorMethod = isArrayIteratorMethod$1;
1964
- var lengthOfArrayLike = lengthOfArrayLike$2;
1965
- var isPrototypeOf = objectIsPrototypeOf;
1966
- var getIterator = getIterator$1;
1967
- var getIteratorMethod = getIteratorMethod$2;
1968
- var iteratorClose = iteratorClose$1;
1969
-
1970
- var $TypeError = TypeError;
1971
-
1972
- var Result = function (stopped, result) {
1973
- this.stopped = stopped;
1974
- this.result = result;
1975
- };
1976
-
1977
- var ResultPrototype = Result.prototype;
1978
-
1979
- var iterate$2 = function (iterable, unboundFunction, options) {
1980
- var that = options && options.that;
1981
- var AS_ENTRIES = !!(options && options.AS_ENTRIES);
1982
- var IS_RECORD = !!(options && options.IS_RECORD);
1983
- var IS_ITERATOR = !!(options && options.IS_ITERATOR);
1984
- var INTERRUPTED = !!(options && options.INTERRUPTED);
1985
- var fn = bind(unboundFunction, that);
1986
- var iterator, iterFn, index, length, result, next, step;
1987
-
1988
- var stop = function (condition) {
1989
- if (iterator) iteratorClose(iterator, 'normal', condition);
1990
- return new Result(true, condition);
1991
- };
1992
-
1993
- var callFn = function (value) {
1994
- if (AS_ENTRIES) {
1995
- anObject$1(value);
1996
- return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
1997
- } return INTERRUPTED ? fn(value, stop) : fn(value);
1998
- };
1999
-
2000
- if (IS_RECORD) {
2001
- iterator = iterable.iterator;
2002
- } else if (IS_ITERATOR) {
2003
- iterator = iterable;
2004
- } else {
2005
- iterFn = getIteratorMethod(iterable);
2006
- if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
2007
- // optimisation for array iterators
2008
- if (isArrayIteratorMethod(iterFn)) {
2009
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2010
- result = callFn(iterable[index]);
2011
- if (result && isPrototypeOf(ResultPrototype, result)) return result;
2012
- } return new Result(false);
2013
- }
2014
- iterator = getIterator(iterable, iterFn);
2015
- }
2016
-
2017
- next = IS_RECORD ? iterable.next : iterator.next;
2018
- while (!(step = call$3(next, iterator)).done) {
2019
- try {
2020
- result = callFn(step.value);
2021
- } catch (error) {
2022
- iteratorClose(iterator, 'throw', error);
2023
- }
2024
- if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
2025
- } return new Result(false);
2026
- };
2027
-
2028
- var wellKnownSymbol = wellKnownSymbol$a;
2029
-
2030
- var ITERATOR = wellKnownSymbol('iterator');
2031
- var SAFE_CLOSING = false;
2032
-
2033
- try {
2034
- var called = 0;
2035
- var iteratorWithReturn = {
2036
- next: function () {
2037
- return { done: !!called++ };
2038
- },
2039
- 'return': function () {
2040
- SAFE_CLOSING = true;
2041
- }
2042
- };
2043
- iteratorWithReturn[ITERATOR] = function () {
2044
- return this;
2045
- };
2046
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
2047
- Array.from(iteratorWithReturn, function () { throw 2; });
2048
- } catch (error) { /* empty */ }
2049
-
2050
- var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2051
- if (!SKIP_CLOSING && !SAFE_CLOSING) return false;
2052
- var ITERATION_SUPPORT = false;
2053
- try {
2054
- var object = {};
2055
- object[ITERATOR] = function () {
2056
- return {
2057
- next: function () {
2058
- return { done: ITERATION_SUPPORT = true };
2059
- }
2060
- };
2061
- };
2062
- exec(object);
2063
- } catch (error) { /* empty */ }
2064
- return ITERATION_SUPPORT;
2065
- };
2066
-
2067
- var NativePromiseConstructor$1 = promiseNativeConstructor;
2068
- var checkCorrectnessOfIteration = checkCorrectnessOfIteration$1;
2069
- var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
2070
-
2071
- var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
2072
- NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2073
- });
2074
-
2075
- var $$4 = _export;
2076
- var call$2 = functionCall;
2077
- var aCallable$1 = aCallable$7;
2078
- var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2079
- var perform$1 = perform$3;
2080
- var iterate$1 = iterate$2;
2081
- var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2082
-
2083
- // `Promise.all` method
2084
- // https://tc39.es/ecma262/#sec-promise.all
2085
- $$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2086
- all: function all(iterable) {
2087
- var C = this;
2088
- var capability = newPromiseCapabilityModule$2.f(C);
2089
- var resolve = capability.resolve;
2090
- var reject = capability.reject;
2091
- var result = perform$1(function () {
2092
- var $promiseResolve = aCallable$1(C.resolve);
2093
- var values = [];
2094
- var counter = 0;
2095
- var remaining = 1;
2096
- iterate$1(iterable, function (promise) {
2097
- var index = counter++;
2098
- var alreadyCalled = false;
2099
- remaining++;
2100
- call$2($promiseResolve, C, promise).then(function (value) {
2101
- if (alreadyCalled) return;
2102
- alreadyCalled = true;
2103
- values[index] = value;
2104
- --remaining || resolve(values);
2105
- }, reject);
2106
- });
2107
- --remaining || resolve(values);
2108
- });
2109
- if (result.error) reject(result.value);
2110
- return capability.promise;
2111
- }
2112
- });
2113
-
2114
- var $$3 = _export;
2115
- var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2116
- var NativePromiseConstructor = promiseNativeConstructor;
2117
- var getBuiltIn$1 = getBuiltIn$8;
2118
- var isCallable = isCallable$h;
2119
- var defineBuiltIn = defineBuiltIn$3;
2120
-
2121
- var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2122
-
2123
- // `Promise.prototype.catch` method
2124
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
2125
- $$3({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2126
- 'catch': function (onRejected) {
2127
- return this.then(undefined, onRejected);
2128
- }
2129
- });
2130
-
2131
- // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2132
- if (isCallable(NativePromiseConstructor)) {
2133
- var method = getBuiltIn$1('Promise').prototype['catch'];
2134
- if (NativePromisePrototype['catch'] !== method) {
2135
- defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
2136
- }
2137
- }
2138
-
2139
- var $$2 = _export;
2140
- var call$1 = functionCall;
2141
- var aCallable = aCallable$7;
2142
- var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2143
- var perform = perform$3;
2144
- var iterate = iterate$2;
2145
- var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2146
-
2147
- // `Promise.race` method
2148
- // https://tc39.es/ecma262/#sec-promise.race
2149
- $$2({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2150
- race: function race(iterable) {
2151
- var C = this;
2152
- var capability = newPromiseCapabilityModule$1.f(C);
2153
- var reject = capability.reject;
2154
- var result = perform(function () {
2155
- var $promiseResolve = aCallable(C.resolve);
2156
- iterate(iterable, function (promise) {
2157
- call$1($promiseResolve, C, promise).then(capability.resolve, reject);
2158
- });
2159
- });
2160
- if (result.error) reject(result.value);
2161
- return capability.promise;
2162
- }
2163
- });
2164
-
2165
- var $$1 = _export;
2166
- var call = functionCall;
2167
- var newPromiseCapabilityModule = newPromiseCapability$2;
2168
- var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2169
-
2170
- // `Promise.reject` method
2171
- // https://tc39.es/ecma262/#sec-promise.reject
2172
- $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2173
- reject: function reject(r) {
2174
- var capability = newPromiseCapabilityModule.f(this);
2175
- call(capability.reject, undefined, r);
2176
- return capability.promise;
2177
- }
2178
- });
2179
-
2180
- var anObject = anObject$8;
2181
- var isObject = isObject$7;
2182
- var newPromiseCapability = newPromiseCapability$2;
2183
-
2184
- var promiseResolve$1 = function (C, x) {
2185
- anObject(C);
2186
- if (isObject(x) && x.constructor === C) return x;
2187
- var promiseCapability = newPromiseCapability.f(C);
2188
- var resolve = promiseCapability.resolve;
2189
- resolve(x);
2190
- return promiseCapability.promise;
2191
- };
2192
-
2193
- var $ = _export;
2194
- var getBuiltIn = getBuiltIn$8;
2195
- var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2196
- var promiseResolve = promiseResolve$1;
2197
-
2198
- getBuiltIn('Promise');
2199
-
2200
- // `Promise.resolve` method
2201
- // https://tc39.es/ecma262/#sec-promise.resolve
2202
- $({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2203
- resolve: function resolve(x) {
2204
- return promiseResolve(this, x);
2205
- }
2206
- });
2207
-
2208
8
  /******************************************************************************
2209
9
  Copyright (c) Microsoft Corporation.
2210
10