@ninetailed/experience.js-plugin-preview 3.7.0-beta.0 → 4.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs CHANGED
@@ -2,9 +2,12 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var union = require('lodash/union');
6
- var experience_jsPluginAnalytics = require('@ninetailed/experience.js-plugin-analytics');
5
+ var omit = require('lodash/omit');
7
6
  var experience_js = require('@ninetailed/experience.js');
7
+ var experience_jsPluginAnalytics = require('@ninetailed/experience.js-plugin-analytics');
8
+ var jsxRuntime = require('react/jsx-runtime');
9
+ var react = require('react');
10
+ var uuid = require('uuid');
8
11
 
9
12
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
10
13
 
@@ -26,7 +29,7 @@ function _interopNamespace(e) {
26
29
  return Object.freeze(n);
27
30
  }
28
31
 
29
- var union__default = /*#__PURE__*/_interopDefaultLegacy(union);
32
+ var omit__default = /*#__PURE__*/_interopDefaultLegacy(omit);
30
33
 
31
34
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
32
35
 
@@ -35,7 +38,7 @@ var check = function (it) {
35
38
  };
36
39
 
37
40
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
38
- var global$i =
41
+ var global$j =
39
42
  // eslint-disable-next-line es/no-global-this -- safe
40
43
  check(typeof globalThis == 'object' && globalThis) ||
41
44
  check(typeof window == 'object' && window) ||
@@ -47,7 +50,7 @@ var global$i =
47
50
 
48
51
  var objectGetOwnPropertyDescriptor = {};
49
52
 
50
- var fails$b = function (exec) {
53
+ var fails$f = function (exec) {
51
54
  try {
52
55
  return !!exec();
53
56
  } catch (error) {
@@ -55,17 +58,17 @@ var fails$b = function (exec) {
55
58
  }
56
59
  };
57
60
 
58
- var fails$a = fails$b;
61
+ var fails$e = fails$f;
59
62
 
60
63
  // Detect IE8's incomplete defineProperty implementation
61
- var descriptors = !fails$a(function () {
64
+ var descriptors = !fails$e(function () {
62
65
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
63
66
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
64
67
  });
65
68
 
66
- var fails$9 = fails$b;
69
+ var fails$d = fails$f;
67
70
 
68
- var functionBindNative = !fails$9(function () {
71
+ var functionBindNative = !fails$d(function () {
69
72
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
70
73
  var test = (function () { /* empty */ }).bind();
71
74
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -74,10 +77,10 @@ var functionBindNative = !fails$9(function () {
74
77
 
75
78
  var NATIVE_BIND$3 = functionBindNative;
76
79
 
77
- var call$d = Function.prototype.call;
80
+ var call$e = Function.prototype.call;
78
81
 
79
- var functionCall = NATIVE_BIND$3 ? call$d.bind(call$d) : function () {
80
- return call$d.apply(call$d, arguments);
82
+ var functionCall = NATIVE_BIND$3 ? call$e.bind(call$e) : function () {
83
+ return call$e.apply(call$e, arguments);
81
84
  };
82
85
 
83
86
  var objectPropertyIsEnumerable = {};
@@ -96,7 +99,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
96
99
  return !!descriptor && descriptor.enumerable;
97
100
  } : $propertyIsEnumerable;
98
101
 
99
- var createPropertyDescriptor$2 = function (bitmap, value) {
102
+ var createPropertyDescriptor$3 = function (bitmap, value) {
100
103
  return {
101
104
  enumerable: !(bitmap & 1),
102
105
  configurable: !(bitmap & 2),
@@ -108,39 +111,39 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
108
111
  var NATIVE_BIND$2 = functionBindNative;
109
112
 
110
113
  var FunctionPrototype$2 = Function.prototype;
111
- var call$c = FunctionPrototype$2.call;
112
- var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$c, call$c);
114
+ var call$d = FunctionPrototype$2.call;
115
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$d, call$d);
113
116
 
114
117
  var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
115
118
  return function () {
116
- return call$c.apply(fn, arguments);
119
+ return call$d.apply(fn, arguments);
117
120
  };
118
121
  };
119
122
 
120
- var uncurryThis$d = functionUncurryThis;
123
+ var uncurryThis$e = functionUncurryThis;
121
124
 
122
- var toString$1 = uncurryThis$d({}.toString);
123
- var stringSlice = uncurryThis$d(''.slice);
125
+ var toString$3 = uncurryThis$e({}.toString);
126
+ var stringSlice = uncurryThis$e(''.slice);
124
127
 
125
128
  var classofRaw$2 = function (it) {
126
- return stringSlice(toString$1(it), 8, -1);
129
+ return stringSlice(toString$3(it), 8, -1);
127
130
  };
128
131
 
129
- var uncurryThis$c = functionUncurryThis;
130
- var fails$8 = fails$b;
131
- var classof$4 = classofRaw$2;
132
+ var uncurryThis$d = functionUncurryThis;
133
+ var fails$c = fails$f;
134
+ var classof$6 = classofRaw$2;
132
135
 
133
- var $Object$3 = Object;
134
- var split = uncurryThis$c(''.split);
136
+ var $Object$4 = Object;
137
+ var split = uncurryThis$d(''.split);
135
138
 
136
139
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
137
- var indexedObject = fails$8(function () {
140
+ var indexedObject = fails$c(function () {
138
141
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
139
142
  // eslint-disable-next-line no-prototype-builtins -- safe
140
- return !$Object$3('z').propertyIsEnumerable(0);
143
+ return !$Object$4('z').propertyIsEnumerable(0);
141
144
  }) ? function (it) {
142
- return classof$4(it) == 'String' ? split(it, '') : $Object$3(it);
143
- } : $Object$3;
145
+ return classof$6(it) == 'String' ? split(it, '') : $Object$4(it);
146
+ } : $Object$4;
144
147
 
145
148
  // we can't use just `it == null` since of `document.all` special case
146
149
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
@@ -150,21 +153,21 @@ var isNullOrUndefined$4 = function (it) {
150
153
 
151
154
  var isNullOrUndefined$3 = isNullOrUndefined$4;
152
155
 
153
- var $TypeError$c = TypeError;
156
+ var $TypeError$e = TypeError;
154
157
 
155
158
  // `RequireObjectCoercible` abstract operation
156
159
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
157
- var requireObjectCoercible$2 = function (it) {
158
- if (isNullOrUndefined$3(it)) throw $TypeError$c("Can't call method on " + it);
160
+ var requireObjectCoercible$3 = function (it) {
161
+ if (isNullOrUndefined$3(it)) throw $TypeError$e("Can't call method on " + it);
159
162
  return it;
160
163
  };
161
164
 
162
165
  // toObject with fallback for non-array-like ES3 strings
163
- var IndexedObject$1 = indexedObject;
164
- var requireObjectCoercible$1 = requireObjectCoercible$2;
166
+ var IndexedObject$2 = indexedObject;
167
+ var requireObjectCoercible$2 = requireObjectCoercible$3;
165
168
 
166
- var toIndexedObject$3 = function (it) {
167
- return IndexedObject$1(requireObjectCoercible$1(it));
169
+ var toIndexedObject$5 = function (it) {
170
+ return IndexedObject$2(requireObjectCoercible$2(it));
168
171
  };
169
172
 
170
173
  var documentAll$2 = typeof document == 'object' && document.all;
@@ -183,47 +186,47 @@ var documentAll$1 = $documentAll$1.all;
183
186
 
184
187
  // `IsCallable` abstract operation
185
188
  // https://tc39.es/ecma262/#sec-iscallable
186
- var isCallable$h = $documentAll$1.IS_HTMLDDA ? function (argument) {
189
+ var isCallable$k = $documentAll$1.IS_HTMLDDA ? function (argument) {
187
190
  return typeof argument == 'function' || argument === documentAll$1;
188
191
  } : function (argument) {
189
192
  return typeof argument == 'function';
190
193
  };
191
194
 
192
- var isCallable$g = isCallable$h;
195
+ var isCallable$j = isCallable$k;
193
196
  var $documentAll = documentAll_1;
194
197
 
195
198
  var documentAll = $documentAll.all;
196
199
 
197
- var isObject$7 = $documentAll.IS_HTMLDDA ? function (it) {
198
- return typeof it == 'object' ? it !== null : isCallable$g(it) || it === documentAll;
200
+ var isObject$9 = $documentAll.IS_HTMLDDA ? function (it) {
201
+ return typeof it == 'object' ? it !== null : isCallable$j(it) || it === documentAll;
199
202
  } : function (it) {
200
- return typeof it == 'object' ? it !== null : isCallable$g(it);
203
+ return typeof it == 'object' ? it !== null : isCallable$j(it);
201
204
  };
202
205
 
203
- var global$h = global$i;
204
- var isCallable$f = isCallable$h;
206
+ var global$i = global$j;
207
+ var isCallable$i = isCallable$k;
205
208
 
206
209
  var aFunction = function (argument) {
207
- return isCallable$f(argument) ? argument : undefined;
210
+ return isCallable$i(argument) ? argument : undefined;
208
211
  };
209
212
 
210
213
  var getBuiltIn$8 = function (namespace, method) {
211
- return arguments.length < 2 ? aFunction(global$h[namespace]) : global$h[namespace] && global$h[namespace][method];
214
+ return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
212
215
  };
213
216
 
214
- var uncurryThis$b = functionUncurryThis;
217
+ var uncurryThis$c = functionUncurryThis;
215
218
 
216
- var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
219
+ var objectIsPrototypeOf = uncurryThis$c({}.isPrototypeOf);
217
220
 
218
221
  var getBuiltIn$7 = getBuiltIn$8;
219
222
 
220
223
  var engineUserAgent = getBuiltIn$7('navigator', 'userAgent') || '';
221
224
 
222
- var global$g = global$i;
225
+ var global$h = global$j;
223
226
  var userAgent$3 = engineUserAgent;
224
227
 
225
- var process$3 = global$g.process;
226
- var Deno$1 = global$g.Deno;
228
+ var process$3 = global$h.process;
229
+ var Deno$1 = global$h.Deno;
227
230
  var versions = process$3 && process$3.versions || Deno$1 && Deno$1.version;
228
231
  var v8 = versions && versions.v8;
229
232
  var match, version;
@@ -250,10 +253,10 @@ var engineV8Version = version;
250
253
  /* eslint-disable es/no-symbol -- required for testing */
251
254
 
252
255
  var V8_VERSION$1 = engineV8Version;
253
- var fails$7 = fails$b;
256
+ var fails$b = fails$f;
254
257
 
255
258
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
256
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$7(function () {
259
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$b(function () {
257
260
  var symbol = Symbol();
258
261
  // Chrome 38 Symbol has incorrect toString conversion
259
262
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -271,86 +274,86 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
271
274
  && typeof Symbol.iterator == 'symbol';
272
275
 
273
276
  var getBuiltIn$6 = getBuiltIn$8;
274
- var isCallable$e = isCallable$h;
277
+ var isCallable$h = isCallable$k;
275
278
  var isPrototypeOf$2 = objectIsPrototypeOf;
276
279
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
277
280
 
278
- var $Object$2 = Object;
281
+ var $Object$3 = Object;
279
282
 
280
283
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
281
284
  return typeof it == 'symbol';
282
285
  } : function (it) {
283
286
  var $Symbol = getBuiltIn$6('Symbol');
284
- return isCallable$e($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$2(it));
287
+ return isCallable$h($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
285
288
  };
286
289
 
287
- var $String$2 = String;
290
+ var $String$3 = String;
288
291
 
289
292
  var tryToString$4 = function (argument) {
290
293
  try {
291
- return $String$2(argument);
294
+ return $String$3(argument);
292
295
  } catch (error) {
293
296
  return 'Object';
294
297
  }
295
298
  };
296
299
 
297
- var isCallable$d = isCallable$h;
300
+ var isCallable$g = isCallable$k;
298
301
  var tryToString$3 = tryToString$4;
299
302
 
300
- var $TypeError$b = TypeError;
303
+ var $TypeError$d = TypeError;
301
304
 
302
305
  // `Assert: IsCallable(argument) is true`
303
- var aCallable$7 = function (argument) {
304
- if (isCallable$d(argument)) return argument;
305
- throw $TypeError$b(tryToString$3(argument) + ' is not a function');
306
+ var aCallable$8 = function (argument) {
307
+ if (isCallable$g(argument)) return argument;
308
+ throw $TypeError$d(tryToString$3(argument) + ' is not a function');
306
309
  };
307
310
 
308
- var aCallable$6 = aCallable$7;
311
+ var aCallable$7 = aCallable$8;
309
312
  var isNullOrUndefined$2 = isNullOrUndefined$4;
310
313
 
311
314
  // `GetMethod` abstract operation
312
315
  // https://tc39.es/ecma262/#sec-getmethod
313
316
  var getMethod$3 = function (V, P) {
314
317
  var func = V[P];
315
- return isNullOrUndefined$2(func) ? undefined : aCallable$6(func);
318
+ return isNullOrUndefined$2(func) ? undefined : aCallable$7(func);
316
319
  };
317
320
 
318
- var call$b = functionCall;
319
- var isCallable$c = isCallable$h;
320
- var isObject$6 = isObject$7;
321
+ var call$c = functionCall;
322
+ var isCallable$f = isCallable$k;
323
+ var isObject$8 = isObject$9;
321
324
 
322
- var $TypeError$a = TypeError;
325
+ var $TypeError$c = TypeError;
323
326
 
324
327
  // `OrdinaryToPrimitive` abstract operation
325
328
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
326
329
  var ordinaryToPrimitive$1 = function (input, pref) {
327
330
  var fn, val;
328
- if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$b(fn, input))) return val;
329
- if (isCallable$c(fn = input.valueOf) && !isObject$6(val = call$b(fn, input))) return val;
330
- if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$6(val = call$b(fn, input))) return val;
331
- throw $TypeError$a("Can't convert object to primitive value");
331
+ if (pref === 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
332
+ if (isCallable$f(fn = input.valueOf) && !isObject$8(val = call$c(fn, input))) return val;
333
+ if (pref !== 'string' && isCallable$f(fn = input.toString) && !isObject$8(val = call$c(fn, input))) return val;
334
+ throw $TypeError$c("Can't convert object to primitive value");
332
335
  };
333
336
 
334
337
  var shared$3 = {exports: {}};
335
338
 
336
- var global$f = global$i;
339
+ var global$g = global$j;
337
340
 
338
341
  // eslint-disable-next-line es/no-object-defineproperty -- safe
339
- var defineProperty$3 = Object.defineProperty;
342
+ var defineProperty$5 = Object.defineProperty;
340
343
 
341
344
  var defineGlobalProperty$3 = function (key, value) {
342
345
  try {
343
- defineProperty$3(global$f, key, { value: value, configurable: true, writable: true });
346
+ defineProperty$5(global$g, key, { value: value, configurable: true, writable: true });
344
347
  } catch (error) {
345
- global$f[key] = value;
348
+ global$g[key] = value;
346
349
  } return value;
347
350
  };
348
351
 
349
- var global$e = global$i;
352
+ var global$f = global$j;
350
353
  var defineGlobalProperty$2 = defineGlobalProperty$3;
351
354
 
352
355
  var SHARED = '__core-js_shared__';
353
- var store$3 = global$e[SHARED] || defineGlobalProperty$2(SHARED, {});
356
+ var store$3 = global$f[SHARED] || defineGlobalProperty$2(SHARED, {});
354
357
 
355
358
  var sharedStore = store$3;
356
359
 
@@ -366,54 +369,54 @@ var store$2 = sharedStore;
366
369
  source: 'https://github.com/zloirock/core-js'
367
370
  });
368
371
 
369
- var requireObjectCoercible = requireObjectCoercible$2;
372
+ var requireObjectCoercible$1 = requireObjectCoercible$3;
370
373
 
371
- var $Object$1 = Object;
374
+ var $Object$2 = Object;
372
375
 
373
376
  // `ToObject` abstract operation
374
377
  // https://tc39.es/ecma262/#sec-toobject
375
- var toObject$2 = function (argument) {
376
- return $Object$1(requireObjectCoercible(argument));
378
+ var toObject$4 = function (argument) {
379
+ return $Object$2(requireObjectCoercible$1(argument));
377
380
  };
378
381
 
379
- var uncurryThis$a = functionUncurryThis;
380
- var toObject$1 = toObject$2;
382
+ var uncurryThis$b = functionUncurryThis;
383
+ var toObject$3 = toObject$4;
381
384
 
382
- var hasOwnProperty = uncurryThis$a({}.hasOwnProperty);
385
+ var hasOwnProperty = uncurryThis$b({}.hasOwnProperty);
383
386
 
384
387
  // `HasOwnProperty` abstract operation
385
388
  // https://tc39.es/ecma262/#sec-hasownproperty
386
389
  // eslint-disable-next-line es/no-object-hasown -- safe
387
390
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
388
- return hasOwnProperty(toObject$1(it), key);
391
+ return hasOwnProperty(toObject$3(it), key);
389
392
  };
390
393
 
391
- var uncurryThis$9 = functionUncurryThis;
394
+ var uncurryThis$a = functionUncurryThis;
392
395
 
393
396
  var id = 0;
394
397
  var postfix = Math.random();
395
- var toString = uncurryThis$9(1.0.toString);
398
+ var toString$2 = uncurryThis$a(1.0.toString);
396
399
 
397
400
  var uid$2 = function (key) {
398
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
401
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
399
402
  };
400
403
 
401
- var global$d = global$i;
404
+ var global$e = global$j;
402
405
  var shared$2 = shared$3.exports;
403
- var hasOwn$8 = hasOwnProperty_1;
406
+ var hasOwn$9 = hasOwnProperty_1;
404
407
  var uid$1 = uid$2;
405
408
  var NATIVE_SYMBOL = symbolConstructorDetection;
406
409
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
407
410
 
408
411
  var WellKnownSymbolsStore = shared$2('wks');
409
- var Symbol$1 = global$d.Symbol;
412
+ var Symbol$1 = global$e.Symbol;
410
413
  var symbolFor = Symbol$1 && Symbol$1['for'];
411
414
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
412
415
 
413
- var wellKnownSymbol$a = function (name) {
414
- if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
416
+ var wellKnownSymbol$g = function (name) {
417
+ if (!hasOwn$9(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
415
418
  var description = 'Symbol.' + name;
416
- if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
419
+ if (NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)) {
417
420
  WellKnownSymbolsStore[name] = Symbol$1[name];
418
421
  } else if (USE_SYMBOL_AS_UID && symbolFor) {
419
422
  WellKnownSymbolsStore[name] = symbolFor(description);
@@ -423,27 +426,27 @@ var wellKnownSymbol$a = function (name) {
423
426
  } return WellKnownSymbolsStore[name];
424
427
  };
425
428
 
426
- var call$a = functionCall;
427
- var isObject$5 = isObject$7;
429
+ var call$b = functionCall;
430
+ var isObject$7 = isObject$9;
428
431
  var isSymbol$1 = isSymbol$2;
429
432
  var getMethod$2 = getMethod$3;
430
433
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
431
- var wellKnownSymbol$9 = wellKnownSymbol$a;
434
+ var wellKnownSymbol$f = wellKnownSymbol$g;
432
435
 
433
- var $TypeError$9 = TypeError;
434
- var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
436
+ var $TypeError$b = TypeError;
437
+ var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
435
438
 
436
439
  // `ToPrimitive` abstract operation
437
440
  // https://tc39.es/ecma262/#sec-toprimitive
438
441
  var toPrimitive$1 = function (input, pref) {
439
- if (!isObject$5(input) || isSymbol$1(input)) return input;
442
+ if (!isObject$7(input) || isSymbol$1(input)) return input;
440
443
  var exoticToPrim = getMethod$2(input, TO_PRIMITIVE);
441
444
  var result;
442
445
  if (exoticToPrim) {
443
446
  if (pref === undefined) pref = 'default';
444
- result = call$a(exoticToPrim, input, pref);
445
- if (!isObject$5(result) || isSymbol$1(result)) return result;
446
- throw $TypeError$9("Can't convert object to primitive value");
447
+ result = call$b(exoticToPrim, input, pref);
448
+ if (!isObject$7(result) || isSymbol$1(result)) return result;
449
+ throw $TypeError$b("Can't convert object to primitive value");
447
450
  }
448
451
  if (pref === undefined) pref = 'number';
449
452
  return ordinaryToPrimitive(input, pref);
@@ -459,36 +462,36 @@ var toPropertyKey$2 = function (argument) {
459
462
  return isSymbol(key) ? key : key + '';
460
463
  };
461
464
 
462
- var global$c = global$i;
463
- var isObject$4 = isObject$7;
465
+ var global$d = global$j;
466
+ var isObject$6 = isObject$9;
464
467
 
465
- var document$3 = global$c.document;
468
+ var document$3 = global$d.document;
466
469
  // typeof document.createElement is 'object' in old IE
467
- var EXISTS$1 = isObject$4(document$3) && isObject$4(document$3.createElement);
470
+ var EXISTS$1 = isObject$6(document$3) && isObject$6(document$3.createElement);
468
471
 
469
- var documentCreateElement = function (it) {
472
+ var documentCreateElement$2 = function (it) {
470
473
  return EXISTS$1 ? document$3.createElement(it) : {};
471
474
  };
472
475
 
473
- var DESCRIPTORS$8 = descriptors;
474
- var fails$6 = fails$b;
475
- var createElement$1 = documentCreateElement;
476
+ var DESCRIPTORS$a = descriptors;
477
+ var fails$a = fails$f;
478
+ var createElement$1 = documentCreateElement$2;
476
479
 
477
480
  // Thanks to IE8 for its funny defineProperty
478
- var ie8DomDefine = !DESCRIPTORS$8 && !fails$6(function () {
481
+ var ie8DomDefine = !DESCRIPTORS$a && !fails$a(function () {
479
482
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
480
483
  return Object.defineProperty(createElement$1('div'), 'a', {
481
484
  get: function () { return 7; }
482
485
  }).a != 7;
483
486
  });
484
487
 
485
- var DESCRIPTORS$7 = descriptors;
486
- var call$9 = functionCall;
488
+ var DESCRIPTORS$9 = descriptors;
489
+ var call$a = functionCall;
487
490
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
488
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
489
- var toIndexedObject$2 = toIndexedObject$3;
491
+ var createPropertyDescriptor$2 = createPropertyDescriptor$3;
492
+ var toIndexedObject$4 = toIndexedObject$5;
490
493
  var toPropertyKey$1 = toPropertyKey$2;
491
- var hasOwn$7 = hasOwnProperty_1;
494
+ var hasOwn$8 = hasOwnProperty_1;
492
495
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
493
496
 
494
497
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -496,23 +499,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
496
499
 
497
500
  // `Object.getOwnPropertyDescriptor` method
498
501
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
499
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$7 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
500
- O = toIndexedObject$2(O);
502
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$9 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
503
+ O = toIndexedObject$4(O);
501
504
  P = toPropertyKey$1(P);
502
505
  if (IE8_DOM_DEFINE$1) try {
503
506
  return $getOwnPropertyDescriptor$1(O, P);
504
507
  } catch (error) { /* empty */ }
505
- if (hasOwn$7(O, P)) return createPropertyDescriptor$1(!call$9(propertyIsEnumerableModule$1.f, O, P), O[P]);
508
+ if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$a(propertyIsEnumerableModule$1.f, O, P), O[P]);
506
509
  };
507
510
 
508
511
  var objectDefineProperty = {};
509
512
 
510
- var DESCRIPTORS$6 = descriptors;
511
- var fails$5 = fails$b;
513
+ var DESCRIPTORS$8 = descriptors;
514
+ var fails$9 = fails$f;
512
515
 
513
516
  // V8 ~ Chrome 36-
514
517
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
515
- var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$5(function () {
518
+ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$9(function () {
516
519
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
517
520
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
518
521
  value: 42,
@@ -520,24 +523,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$6 && fails$5(function () {
520
523
  }).prototype != 42;
521
524
  });
522
525
 
523
- var isObject$3 = isObject$7;
526
+ var isObject$5 = isObject$9;
524
527
 
525
- var $String$1 = String;
526
- var $TypeError$8 = TypeError;
528
+ var $String$2 = String;
529
+ var $TypeError$a = TypeError;
527
530
 
528
531
  // `Assert: Type(argument) is Object`
529
- var anObject$8 = function (argument) {
530
- if (isObject$3(argument)) return argument;
531
- throw $TypeError$8($String$1(argument) + ' is not an object');
532
+ var anObject$a = function (argument) {
533
+ if (isObject$5(argument)) return argument;
534
+ throw $TypeError$a($String$2(argument) + ' is not an object');
532
535
  };
533
536
 
534
- var DESCRIPTORS$5 = descriptors;
537
+ var DESCRIPTORS$7 = descriptors;
535
538
  var IE8_DOM_DEFINE = ie8DomDefine;
536
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
537
- var anObject$7 = anObject$8;
539
+ var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
540
+ var anObject$9 = anObject$a;
538
541
  var toPropertyKey = toPropertyKey$2;
539
542
 
540
- var $TypeError$7 = TypeError;
543
+ var $TypeError$9 = TypeError;
541
544
  // eslint-disable-next-line es/no-object-defineproperty -- safe
542
545
  var $defineProperty = Object.defineProperty;
543
546
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -548,10 +551,10 @@ var WRITABLE = 'writable';
548
551
 
549
552
  // `Object.defineProperty` method
550
553
  // https://tc39.es/ecma262/#sec-object.defineproperty
551
- objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
552
- anObject$7(O);
554
+ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
555
+ anObject$9(O);
553
556
  P = toPropertyKey(P);
554
- anObject$7(Attributes);
557
+ anObject$9(Attributes);
555
558
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
556
559
  var current = $getOwnPropertyDescriptor(O, P);
557
560
  if (current && current[WRITABLE]) {
@@ -564,23 +567,23 @@ objectDefineProperty.f = DESCRIPTORS$5 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
564
567
  }
565
568
  } return $defineProperty(O, P, Attributes);
566
569
  } : $defineProperty : function defineProperty(O, P, Attributes) {
567
- anObject$7(O);
570
+ anObject$9(O);
568
571
  P = toPropertyKey(P);
569
- anObject$7(Attributes);
572
+ anObject$9(Attributes);
570
573
  if (IE8_DOM_DEFINE) try {
571
574
  return $defineProperty(O, P, Attributes);
572
575
  } catch (error) { /* empty */ }
573
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$7('Accessors not supported');
576
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$9('Accessors not supported');
574
577
  if ('value' in Attributes) O[P] = Attributes.value;
575
578
  return O;
576
579
  };
577
580
 
578
- var DESCRIPTORS$4 = descriptors;
579
- var definePropertyModule$3 = objectDefineProperty;
580
- var createPropertyDescriptor = createPropertyDescriptor$2;
581
+ var DESCRIPTORS$6 = descriptors;
582
+ var definePropertyModule$4 = objectDefineProperty;
583
+ var createPropertyDescriptor$1 = createPropertyDescriptor$3;
581
584
 
582
- var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value) {
583
- return definePropertyModule$3.f(object, key, createPropertyDescriptor(1, value));
585
+ var createNonEnumerableProperty$4 = DESCRIPTORS$6 ? function (object, key, value) {
586
+ return definePropertyModule$4.f(object, key, createPropertyDescriptor$1(1, value));
584
587
  } : function (object, key, value) {
585
588
  object[key] = value;
586
589
  return object;
@@ -588,17 +591,17 @@ var createNonEnumerableProperty$2 = DESCRIPTORS$4 ? function (object, key, value
588
591
 
589
592
  var makeBuiltIn$2 = {exports: {}};
590
593
 
591
- var DESCRIPTORS$3 = descriptors;
592
- var hasOwn$6 = hasOwnProperty_1;
594
+ var DESCRIPTORS$5 = descriptors;
595
+ var hasOwn$7 = hasOwnProperty_1;
593
596
 
594
597
  var FunctionPrototype$1 = Function.prototype;
595
598
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
596
- var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
599
+ var getDescriptor = DESCRIPTORS$5 && Object.getOwnPropertyDescriptor;
597
600
 
598
- var EXISTS = hasOwn$6(FunctionPrototype$1, 'name');
601
+ var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
599
602
  // additional protection from minified / mangled / dropped function names
600
603
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
601
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
604
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$5 || (DESCRIPTORS$5 && getDescriptor(FunctionPrototype$1, 'name').configurable));
602
605
 
603
606
  var functionName = {
604
607
  EXISTS: EXISTS,
@@ -606,14 +609,14 @@ var functionName = {
606
609
  CONFIGURABLE: CONFIGURABLE
607
610
  };
608
611
 
609
- var uncurryThis$8 = functionUncurryThis;
610
- var isCallable$b = isCallable$h;
612
+ var uncurryThis$9 = functionUncurryThis;
613
+ var isCallable$e = isCallable$k;
611
614
  var store$1 = sharedStore;
612
615
 
613
- var functionToString = uncurryThis$8(Function.toString);
616
+ var functionToString = uncurryThis$9(Function.toString);
614
617
 
615
618
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
616
- if (!isCallable$b(store$1.inspectSource)) {
619
+ if (!isCallable$e(store$1.inspectSource)) {
617
620
  store$1.inspectSource = function (it) {
618
621
  return functionToString(it);
619
622
  };
@@ -621,36 +624,36 @@ if (!isCallable$b(store$1.inspectSource)) {
621
624
 
622
625
  var inspectSource$3 = store$1.inspectSource;
623
626
 
624
- var global$b = global$i;
625
- var isCallable$a = isCallable$h;
627
+ var global$c = global$j;
628
+ var isCallable$d = isCallable$k;
626
629
 
627
- var WeakMap$1 = global$b.WeakMap;
630
+ var WeakMap$1 = global$c.WeakMap;
628
631
 
629
- var weakMapBasicDetection = isCallable$a(WeakMap$1) && /native code/.test(String(WeakMap$1));
632
+ var weakMapBasicDetection = isCallable$d(WeakMap$1) && /native code/.test(String(WeakMap$1));
630
633
 
631
634
  var shared$1 = shared$3.exports;
632
635
  var uid = uid$2;
633
636
 
634
637
  var keys = shared$1('keys');
635
638
 
636
- var sharedKey$1 = function (key) {
639
+ var sharedKey$3 = function (key) {
637
640
  return keys[key] || (keys[key] = uid(key));
638
641
  };
639
642
 
640
- var hiddenKeys$3 = {};
643
+ var hiddenKeys$4 = {};
641
644
 
642
645
  var NATIVE_WEAK_MAP = weakMapBasicDetection;
643
- var global$a = global$i;
644
- var isObject$2 = isObject$7;
645
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
646
- var hasOwn$5 = hasOwnProperty_1;
646
+ var global$b = global$j;
647
+ var isObject$4 = isObject$9;
648
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
649
+ var hasOwn$6 = hasOwnProperty_1;
647
650
  var shared = sharedStore;
648
- var sharedKey = sharedKey$1;
649
- var hiddenKeys$2 = hiddenKeys$3;
651
+ var sharedKey$2 = sharedKey$3;
652
+ var hiddenKeys$3 = hiddenKeys$4;
650
653
 
651
654
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
652
- var TypeError$2 = global$a.TypeError;
653
- var WeakMap = global$a.WeakMap;
655
+ var TypeError$2 = global$b.TypeError;
656
+ var WeakMap = global$b.WeakMap;
654
657
  var set$1, get, has;
655
658
 
656
659
  var enforce = function (it) {
@@ -660,7 +663,7 @@ var enforce = function (it) {
660
663
  var getterFor = function (TYPE) {
661
664
  return function (it) {
662
665
  var state;
663
- if (!isObject$2(it) || (state = get(it)).type !== TYPE) {
666
+ if (!isObject$4(it) || (state = get(it)).type !== TYPE) {
664
667
  throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
665
668
  } return state;
666
669
  };
@@ -686,19 +689,19 @@ if (NATIVE_WEAK_MAP || shared.state) {
686
689
  return store.has(it);
687
690
  };
688
691
  } else {
689
- var STATE = sharedKey('state');
690
- hiddenKeys$2[STATE] = true;
692
+ var STATE = sharedKey$2('state');
693
+ hiddenKeys$3[STATE] = true;
691
694
  set$1 = function (it, metadata) {
692
- if (hasOwn$5(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
695
+ if (hasOwn$6(it, STATE)) throw TypeError$2(OBJECT_ALREADY_INITIALIZED);
693
696
  metadata.facade = it;
694
- createNonEnumerableProperty$1(it, STATE, metadata);
697
+ createNonEnumerableProperty$3(it, STATE, metadata);
695
698
  return metadata;
696
699
  };
697
700
  get = function (it) {
698
- return hasOwn$5(it, STATE) ? it[STATE] : {};
701
+ return hasOwn$6(it, STATE) ? it[STATE] : {};
699
702
  };
700
703
  has = function (it) {
701
- return hasOwn$5(it, STATE);
704
+ return hasOwn$6(it, STATE);
702
705
  };
703
706
  }
704
707
 
@@ -710,21 +713,21 @@ var internalState = {
710
713
  getterFor: getterFor
711
714
  };
712
715
 
713
- var fails$4 = fails$b;
714
- var isCallable$9 = isCallable$h;
715
- var hasOwn$4 = hasOwnProperty_1;
716
- var DESCRIPTORS$2 = descriptors;
717
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
716
+ var fails$8 = fails$f;
717
+ var isCallable$c = isCallable$k;
718
+ var hasOwn$5 = hasOwnProperty_1;
719
+ var DESCRIPTORS$4 = descriptors;
720
+ var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
718
721
  var inspectSource$2 = inspectSource$3;
719
- var InternalStateModule$1 = internalState;
722
+ var InternalStateModule$2 = internalState;
720
723
 
721
- var enforceInternalState = InternalStateModule$1.enforce;
722
- var getInternalState = InternalStateModule$1.get;
724
+ var enforceInternalState = InternalStateModule$2.enforce;
725
+ var getInternalState$1 = InternalStateModule$2.get;
723
726
  // eslint-disable-next-line es/no-object-defineproperty -- safe
724
- var defineProperty$2 = Object.defineProperty;
727
+ var defineProperty$4 = Object.defineProperty;
725
728
 
726
- var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$4(function () {
727
- return defineProperty$2(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
729
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$4 && !fails$8(function () {
730
+ return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
728
731
  });
729
732
 
730
733
  var TEMPLATE = String(String).split('String');
@@ -735,21 +738,21 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
735
738
  }
736
739
  if (options && options.getter) name = 'get ' + name;
737
740
  if (options && options.setter) name = 'set ' + name;
738
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
739
- if (DESCRIPTORS$2) defineProperty$2(value, 'name', { value: name, configurable: true });
741
+ if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
742
+ if (DESCRIPTORS$4) defineProperty$4(value, 'name', { value: name, configurable: true });
740
743
  else value.name = name;
741
744
  }
742
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
743
- defineProperty$2(value, 'length', { value: options.arity });
745
+ if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
746
+ defineProperty$4(value, 'length', { value: options.arity });
744
747
  }
745
748
  try {
746
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
747
- if (DESCRIPTORS$2) defineProperty$2(value, 'prototype', { writable: false });
749
+ if (options && hasOwn$5(options, 'constructor') && options.constructor) {
750
+ if (DESCRIPTORS$4) defineProperty$4(value, 'prototype', { writable: false });
748
751
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
749
752
  } else if (value.prototype) value.prototype = undefined;
750
753
  } catch (error) { /* empty */ }
751
754
  var state = enforceInternalState(value);
752
- if (!hasOwn$4(state, 'source')) {
755
+ if (!hasOwn$5(state, 'source')) {
753
756
  state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
754
757
  } return value;
755
758
  };
@@ -757,19 +760,19 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
757
760
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
758
761
  // eslint-disable-next-line no-extend-native -- required
759
762
  Function.prototype.toString = makeBuiltIn$1(function toString() {
760
- return isCallable$9(this) && getInternalState(this).source || inspectSource$2(this);
763
+ return isCallable$c(this) && getInternalState$1(this).source || inspectSource$2(this);
761
764
  }, 'toString');
762
765
 
763
- var isCallable$8 = isCallable$h;
764
- var definePropertyModule$2 = objectDefineProperty;
766
+ var isCallable$b = isCallable$k;
767
+ var definePropertyModule$3 = objectDefineProperty;
765
768
  var makeBuiltIn = makeBuiltIn$2.exports;
766
769
  var defineGlobalProperty$1 = defineGlobalProperty$3;
767
770
 
768
- var defineBuiltIn$3 = function (O, key, value, options) {
771
+ var defineBuiltIn$5 = function (O, key, value, options) {
769
772
  if (!options) options = {};
770
773
  var simple = options.enumerable;
771
774
  var name = options.name !== undefined ? options.name : key;
772
- if (isCallable$8(value)) makeBuiltIn(value, name, options);
775
+ if (isCallable$b(value)) makeBuiltIn(value, name, options);
773
776
  if (options.global) {
774
777
  if (simple) O[key] = value;
775
778
  else defineGlobalProperty$1(key, value);
@@ -779,7 +782,7 @@ var defineBuiltIn$3 = function (O, key, value, options) {
779
782
  else if (O[key]) simple = true;
780
783
  } catch (error) { /* empty */ }
781
784
  if (simple) O[key] = value;
782
- else definePropertyModule$2.f(O, key, {
785
+ else definePropertyModule$3.f(O, key, {
783
786
  value: value,
784
787
  enumerable: false,
785
788
  configurable: !options.nonConfigurable,
@@ -838,19 +841,19 @@ var toLength = toLength$1;
838
841
 
839
842
  // `LengthOfArrayLike` abstract operation
840
843
  // https://tc39.es/ecma262/#sec-lengthofarraylike
841
- var lengthOfArrayLike$2 = function (obj) {
844
+ var lengthOfArrayLike$3 = function (obj) {
842
845
  return toLength(obj.length);
843
846
  };
844
847
 
845
- var toIndexedObject$1 = toIndexedObject$3;
848
+ var toIndexedObject$3 = toIndexedObject$5;
846
849
  var toAbsoluteIndex = toAbsoluteIndex$1;
847
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
850
+ var lengthOfArrayLike$2 = lengthOfArrayLike$3;
848
851
 
849
852
  // `Array.prototype.{ indexOf, includes }` methods implementation
850
- var createMethod = function (IS_INCLUDES) {
853
+ var createMethod$1 = function (IS_INCLUDES) {
851
854
  return function ($this, el, fromIndex) {
852
- var O = toIndexedObject$1($this);
853
- var length = lengthOfArrayLike$1(O);
855
+ var O = toIndexedObject$3($this);
856
+ var length = lengthOfArrayLike$2(O);
854
857
  var index = toAbsoluteIndex(fromIndex, length);
855
858
  var value;
856
859
  // Array#includes uses SameValueZero equality algorithm
@@ -869,35 +872,35 @@ var createMethod = function (IS_INCLUDES) {
869
872
  var arrayIncludes = {
870
873
  // `Array.prototype.includes` method
871
874
  // https://tc39.es/ecma262/#sec-array.prototype.includes
872
- includes: createMethod(true),
875
+ includes: createMethod$1(true),
873
876
  // `Array.prototype.indexOf` method
874
877
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
875
- indexOf: createMethod(false)
878
+ indexOf: createMethod$1(false)
876
879
  };
877
880
 
878
- var uncurryThis$7 = functionUncurryThis;
879
- var hasOwn$3 = hasOwnProperty_1;
880
- var toIndexedObject = toIndexedObject$3;
881
+ var uncurryThis$8 = functionUncurryThis;
882
+ var hasOwn$4 = hasOwnProperty_1;
883
+ var toIndexedObject$2 = toIndexedObject$5;
881
884
  var indexOf = arrayIncludes.indexOf;
882
- var hiddenKeys$1 = hiddenKeys$3;
885
+ var hiddenKeys$2 = hiddenKeys$4;
883
886
 
884
- var push = uncurryThis$7([].push);
887
+ var push = uncurryThis$8([].push);
885
888
 
886
889
  var objectKeysInternal = function (object, names) {
887
- var O = toIndexedObject(object);
890
+ var O = toIndexedObject$2(object);
888
891
  var i = 0;
889
892
  var result = [];
890
893
  var key;
891
- for (key in O) !hasOwn$3(hiddenKeys$1, key) && hasOwn$3(O, key) && push(result, key);
894
+ for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push(result, key);
892
895
  // Don't enum bug & hidden keys
893
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
896
+ while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
894
897
  ~indexOf(result, key) || push(result, key);
895
898
  }
896
899
  return result;
897
900
  };
898
901
 
899
902
  // IE8- don't enum bug keys
900
- var enumBugKeys$2 = [
903
+ var enumBugKeys$3 = [
901
904
  'constructor',
902
905
  'hasOwnProperty',
903
906
  'isPrototypeOf',
@@ -908,15 +911,15 @@ var enumBugKeys$2 = [
908
911
  ];
909
912
 
910
913
  var internalObjectKeys$1 = objectKeysInternal;
911
- var enumBugKeys$1 = enumBugKeys$2;
914
+ var enumBugKeys$2 = enumBugKeys$3;
912
915
 
913
- var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
916
+ var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
914
917
 
915
918
  // `Object.getOwnPropertyNames` method
916
919
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
917
920
  // eslint-disable-next-line es/no-object-getownpropertynames -- safe
918
921
  objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
919
- return internalObjectKeys$1(O, hiddenKeys);
922
+ return internalObjectKeys$1(O, hiddenKeys$1);
920
923
  };
921
924
 
922
925
  var objectGetOwnPropertySymbols = {};
@@ -925,39 +928,39 @@ var objectGetOwnPropertySymbols = {};
925
928
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
926
929
 
927
930
  var getBuiltIn$5 = getBuiltIn$8;
928
- var uncurryThis$6 = functionUncurryThis;
931
+ var uncurryThis$7 = functionUncurryThis;
929
932
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
930
933
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
931
- var anObject$6 = anObject$8;
934
+ var anObject$8 = anObject$a;
932
935
 
933
- var concat$1 = uncurryThis$6([].concat);
936
+ var concat$1 = uncurryThis$7([].concat);
934
937
 
935
938
  // all object keys, includes non-enumerable and symbols
936
939
  var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
937
- var keys = getOwnPropertyNamesModule.f(anObject$6(it));
940
+ var keys = getOwnPropertyNamesModule.f(anObject$8(it));
938
941
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
939
942
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
940
943
  };
941
944
 
942
- var hasOwn$2 = hasOwnProperty_1;
945
+ var hasOwn$3 = hasOwnProperty_1;
943
946
  var ownKeys = ownKeys$1;
944
947
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
945
- var definePropertyModule$1 = objectDefineProperty;
948
+ var definePropertyModule$2 = objectDefineProperty;
946
949
 
947
950
  var copyConstructorProperties$1 = function (target, source, exceptions) {
948
951
  var keys = ownKeys(source);
949
- var defineProperty = definePropertyModule$1.f;
952
+ var defineProperty = definePropertyModule$2.f;
950
953
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
951
954
  for (var i = 0; i < keys.length; i++) {
952
955
  var key = keys[i];
953
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
956
+ if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
954
957
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
955
958
  }
956
959
  }
957
960
  };
958
961
 
959
- var fails$3 = fails$b;
960
- var isCallable$7 = isCallable$h;
962
+ var fails$7 = fails$f;
963
+ var isCallable$a = isCallable$k;
961
964
 
962
965
  var replacement = /#|\.prototype\./;
963
966
 
@@ -965,7 +968,7 @@ var isForced$2 = function (feature, detection) {
965
968
  var value = data[normalize(feature)];
966
969
  return value == POLYFILL ? true
967
970
  : value == NATIVE ? false
968
- : isCallable$7(detection) ? fails$3(detection)
971
+ : isCallable$a(detection) ? fails$7(detection)
969
972
  : !!detection;
970
973
  };
971
974
 
@@ -979,10 +982,10 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
979
982
 
980
983
  var isForced_1 = isForced$2;
981
984
 
982
- var global$9 = global$i;
985
+ var global$a = global$j;
983
986
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
984
- var createNonEnumerableProperty = createNonEnumerableProperty$2;
985
- var defineBuiltIn$2 = defineBuiltIn$3;
987
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
988
+ var defineBuiltIn$4 = defineBuiltIn$5;
986
989
  var defineGlobalProperty = defineGlobalProperty$3;
987
990
  var copyConstructorProperties = copyConstructorProperties$1;
988
991
  var isForced$1 = isForced_1;
@@ -1008,11 +1011,11 @@ var _export = function (options, source) {
1008
1011
  var STATIC = options.stat;
1009
1012
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1010
1013
  if (GLOBAL) {
1011
- target = global$9;
1014
+ target = global$a;
1012
1015
  } else if (STATIC) {
1013
- target = global$9[TARGET] || defineGlobalProperty(TARGET, {});
1016
+ target = global$a[TARGET] || defineGlobalProperty(TARGET, {});
1014
1017
  } else {
1015
- target = (global$9[TARGET] || {}).prototype;
1018
+ target = (global$a[TARGET] || {}).prototype;
1016
1019
  }
1017
1020
  if (target) for (key in source) {
1018
1021
  sourceProperty = source[key];
@@ -1028,31 +1031,31 @@ var _export = function (options, source) {
1028
1031
  }
1029
1032
  // add a flag to not completely full polyfills
1030
1033
  if (options.sham || (targetProperty && targetProperty.sham)) {
1031
- createNonEnumerableProperty(sourceProperty, 'sham', true);
1034
+ createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1032
1035
  }
1033
- defineBuiltIn$2(target, key, sourceProperty, options);
1036
+ defineBuiltIn$4(target, key, sourceProperty, options);
1034
1037
  }
1035
1038
  };
1036
1039
 
1037
- var classof$3 = classofRaw$2;
1038
- var global$8 = global$i;
1040
+ var classof$5 = classofRaw$2;
1041
+ var global$9 = global$j;
1039
1042
 
1040
- var engineIsNode = classof$3(global$8.process) == 'process';
1043
+ var engineIsNode = classof$5(global$9.process) == 'process';
1041
1044
 
1042
- var isCallable$6 = isCallable$h;
1045
+ var isCallable$9 = isCallable$k;
1043
1046
 
1044
- var $String = String;
1045
- var $TypeError$6 = TypeError;
1047
+ var $String$1 = String;
1048
+ var $TypeError$8 = TypeError;
1046
1049
 
1047
1050
  var aPossiblePrototype$1 = function (argument) {
1048
- if (typeof argument == 'object' || isCallable$6(argument)) return argument;
1049
- throw $TypeError$6("Can't set " + $String(argument) + ' as a prototype');
1051
+ if (typeof argument == 'object' || isCallable$9(argument)) return argument;
1052
+ throw $TypeError$8("Can't set " + $String$1(argument) + ' as a prototype');
1050
1053
  };
1051
1054
 
1052
1055
  /* eslint-disable no-proto -- safe */
1053
1056
 
1054
- var uncurryThis$5 = functionUncurryThis;
1055
- var anObject$5 = anObject$8;
1057
+ var uncurryThis$6 = functionUncurryThis;
1058
+ var anObject$7 = anObject$a;
1056
1059
  var aPossiblePrototype = aPossiblePrototype$1;
1057
1060
 
1058
1061
  // `Object.setPrototypeOf` method
@@ -1065,12 +1068,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1065
1068
  var setter;
1066
1069
  try {
1067
1070
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1068
- setter = uncurryThis$5(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1071
+ setter = uncurryThis$6(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1069
1072
  setter(test, []);
1070
1073
  CORRECT_SETTER = test instanceof Array;
1071
1074
  } catch (error) { /* empty */ }
1072
1075
  return function setPrototypeOf(O, proto) {
1073
- anObject$5(O);
1076
+ anObject$7(O);
1074
1077
  aPossiblePrototype(proto);
1075
1078
  if (CORRECT_SETTER) setter(O, proto);
1076
1079
  else O.__proto__ = proto;
@@ -1078,31 +1081,31 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1078
1081
  };
1079
1082
  }() : undefined);
1080
1083
 
1081
- var defineProperty$1 = objectDefineProperty.f;
1082
- var hasOwn$1 = hasOwnProperty_1;
1083
- var wellKnownSymbol$8 = wellKnownSymbol$a;
1084
+ var defineProperty$3 = objectDefineProperty.f;
1085
+ var hasOwn$2 = hasOwnProperty_1;
1086
+ var wellKnownSymbol$e = wellKnownSymbol$g;
1084
1087
 
1085
- var TO_STRING_TAG$2 = wellKnownSymbol$8('toStringTag');
1088
+ var TO_STRING_TAG$3 = wellKnownSymbol$e('toStringTag');
1086
1089
 
1087
- var setToStringTag$1 = function (target, TAG, STATIC) {
1090
+ var setToStringTag$3 = function (target, TAG, STATIC) {
1088
1091
  if (target && !STATIC) target = target.prototype;
1089
- if (target && !hasOwn$1(target, TO_STRING_TAG$2)) {
1090
- defineProperty$1(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
1092
+ if (target && !hasOwn$2(target, TO_STRING_TAG$3)) {
1093
+ defineProperty$3(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1091
1094
  }
1092
1095
  };
1093
1096
 
1094
1097
  var getBuiltIn$4 = getBuiltIn$8;
1095
- var definePropertyModule = objectDefineProperty;
1096
- var wellKnownSymbol$7 = wellKnownSymbol$a;
1097
- var DESCRIPTORS$1 = descriptors;
1098
+ var definePropertyModule$1 = objectDefineProperty;
1099
+ var wellKnownSymbol$d = wellKnownSymbol$g;
1100
+ var DESCRIPTORS$3 = descriptors;
1098
1101
 
1099
- var SPECIES$2 = wellKnownSymbol$7('species');
1102
+ var SPECIES$2 = wellKnownSymbol$d('species');
1100
1103
 
1101
1104
  var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1102
1105
  var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
1103
- var defineProperty = definePropertyModule.f;
1106
+ var defineProperty = definePropertyModule$1.f;
1104
1107
 
1105
- if (DESCRIPTORS$1 && Constructor && !Constructor[SPECIES$2]) {
1108
+ if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$2]) {
1106
1109
  defineProperty(Constructor, SPECIES$2, {
1107
1110
  configurable: true,
1108
1111
  get: function () { return this; }
@@ -1112,29 +1115,29 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
1112
1115
 
1113
1116
  var isPrototypeOf$1 = objectIsPrototypeOf;
1114
1117
 
1115
- var $TypeError$5 = TypeError;
1118
+ var $TypeError$7 = TypeError;
1116
1119
 
1117
1120
  var anInstance$1 = function (it, Prototype) {
1118
1121
  if (isPrototypeOf$1(Prototype, it)) return it;
1119
- throw $TypeError$5('Incorrect invocation');
1122
+ throw $TypeError$7('Incorrect invocation');
1120
1123
  };
1121
1124
 
1122
- var wellKnownSymbol$6 = wellKnownSymbol$a;
1125
+ var wellKnownSymbol$c = wellKnownSymbol$g;
1123
1126
 
1124
- var TO_STRING_TAG$1 = wellKnownSymbol$6('toStringTag');
1127
+ var TO_STRING_TAG$2 = wellKnownSymbol$c('toStringTag');
1125
1128
  var test = {};
1126
1129
 
1127
- test[TO_STRING_TAG$1] = 'z';
1130
+ test[TO_STRING_TAG$2] = 'z';
1128
1131
 
1129
1132
  var toStringTagSupport = String(test) === '[object z]';
1130
1133
 
1131
1134
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1132
- var isCallable$5 = isCallable$h;
1135
+ var isCallable$8 = isCallable$k;
1133
1136
  var classofRaw$1 = classofRaw$2;
1134
- var wellKnownSymbol$5 = wellKnownSymbol$a;
1137
+ var wellKnownSymbol$b = wellKnownSymbol$g;
1135
1138
 
1136
- var TO_STRING_TAG = wellKnownSymbol$5('toStringTag');
1137
- var $Object = Object;
1139
+ var TO_STRING_TAG$1 = wellKnownSymbol$b('toStringTag');
1140
+ var $Object$1 = Object;
1138
1141
 
1139
1142
  // ES3 wrong here
1140
1143
  var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
@@ -1147,21 +1150,21 @@ var tryGet = function (it, key) {
1147
1150
  };
1148
1151
 
1149
1152
  // getting tag from ES6+ `Object.prototype.toString`
1150
- var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1153
+ var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1151
1154
  var O, tag, result;
1152
1155
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1153
1156
  // @@toStringTag case
1154
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1157
+ : typeof (tag = tryGet(O = $Object$1(it), TO_STRING_TAG$1)) == 'string' ? tag
1155
1158
  // builtinTag case
1156
1159
  : CORRECT_ARGUMENTS ? classofRaw$1(O)
1157
1160
  // ES3 arguments fallback
1158
- : (result = classofRaw$1(O)) == 'Object' && isCallable$5(O.callee) ? 'Arguments' : result;
1161
+ : (result = classofRaw$1(O)) == 'Object' && isCallable$8(O.callee) ? 'Arguments' : result;
1159
1162
  };
1160
1163
 
1161
- var uncurryThis$4 = functionUncurryThis;
1162
- var fails$2 = fails$b;
1163
- var isCallable$4 = isCallable$h;
1164
- var classof$1 = classof$2;
1164
+ var uncurryThis$5 = functionUncurryThis;
1165
+ var fails$6 = fails$f;
1166
+ var isCallable$7 = isCallable$k;
1167
+ var classof$3 = classof$4;
1165
1168
  var getBuiltIn$3 = getBuiltIn$8;
1166
1169
  var inspectSource$1 = inspectSource$3;
1167
1170
 
@@ -1169,11 +1172,11 @@ var noop = function () { /* empty */ };
1169
1172
  var empty = [];
1170
1173
  var construct = getBuiltIn$3('Reflect', 'construct');
1171
1174
  var constructorRegExp = /^\s*(?:class|function)\b/;
1172
- var exec = uncurryThis$4(constructorRegExp.exec);
1175
+ var exec = uncurryThis$5(constructorRegExp.exec);
1173
1176
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
1174
1177
 
1175
1178
  var isConstructorModern = function isConstructor(argument) {
1176
- if (!isCallable$4(argument)) return false;
1179
+ if (!isCallable$7(argument)) return false;
1177
1180
  try {
1178
1181
  construct(noop, empty, argument);
1179
1182
  return true;
@@ -1183,8 +1186,8 @@ var isConstructorModern = function isConstructor(argument) {
1183
1186
  };
1184
1187
 
1185
1188
  var isConstructorLegacy = function isConstructor(argument) {
1186
- if (!isCallable$4(argument)) return false;
1187
- switch (classof$1(argument)) {
1189
+ if (!isCallable$7(argument)) return false;
1190
+ switch (classof$3(argument)) {
1188
1191
  case 'AsyncFunction':
1189
1192
  case 'GeneratorFunction':
1190
1193
  case 'AsyncGeneratorFunction': return false;
@@ -1203,7 +1206,7 @@ isConstructorLegacy.sham = true;
1203
1206
 
1204
1207
  // `IsConstructor` abstract operation
1205
1208
  // https://tc39.es/ecma262/#sec-isconstructor
1206
- var isConstructor$1 = !construct || fails$2(function () {
1209
+ var isConstructor$1 = !construct || fails$6(function () {
1207
1210
  var called;
1208
1211
  return isConstructorModern(isConstructorModern.call)
1209
1212
  || !isConstructorModern(Object)
@@ -1214,59 +1217,59 @@ var isConstructor$1 = !construct || fails$2(function () {
1214
1217
  var isConstructor = isConstructor$1;
1215
1218
  var tryToString$2 = tryToString$4;
1216
1219
 
1217
- var $TypeError$4 = TypeError;
1220
+ var $TypeError$6 = TypeError;
1218
1221
 
1219
1222
  // `Assert: IsConstructor(argument) is true`
1220
1223
  var aConstructor$1 = function (argument) {
1221
1224
  if (isConstructor(argument)) return argument;
1222
- throw $TypeError$4(tryToString$2(argument) + ' is not a constructor');
1225
+ throw $TypeError$6(tryToString$2(argument) + ' is not a constructor');
1223
1226
  };
1224
1227
 
1225
- var anObject$4 = anObject$8;
1228
+ var anObject$6 = anObject$a;
1226
1229
  var aConstructor = aConstructor$1;
1227
1230
  var isNullOrUndefined$1 = isNullOrUndefined$4;
1228
- var wellKnownSymbol$4 = wellKnownSymbol$a;
1231
+ var wellKnownSymbol$a = wellKnownSymbol$g;
1229
1232
 
1230
- var SPECIES$1 = wellKnownSymbol$4('species');
1233
+ var SPECIES$1 = wellKnownSymbol$a('species');
1231
1234
 
1232
1235
  // `SpeciesConstructor` abstract operation
1233
1236
  // https://tc39.es/ecma262/#sec-speciesconstructor
1234
1237
  var speciesConstructor$1 = function (O, defaultConstructor) {
1235
- var C = anObject$4(O).constructor;
1238
+ var C = anObject$6(O).constructor;
1236
1239
  var S;
1237
- return C === undefined || isNullOrUndefined$1(S = anObject$4(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1240
+ return C === undefined || isNullOrUndefined$1(S = anObject$6(C)[SPECIES$1]) ? defaultConstructor : aConstructor(S);
1238
1241
  };
1239
1242
 
1240
1243
  var NATIVE_BIND$1 = functionBindNative;
1241
1244
 
1242
1245
  var FunctionPrototype = Function.prototype;
1243
1246
  var apply$1 = FunctionPrototype.apply;
1244
- var call$8 = FunctionPrototype.call;
1247
+ var call$9 = FunctionPrototype.call;
1245
1248
 
1246
1249
  // eslint-disable-next-line es/no-reflect -- safe
1247
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$8.bind(apply$1) : function () {
1248
- return call$8.apply(apply$1, arguments);
1250
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$9.bind(apply$1) : function () {
1251
+ return call$9.apply(apply$1, arguments);
1249
1252
  });
1250
1253
 
1251
1254
  var classofRaw = classofRaw$2;
1252
- var uncurryThis$3 = functionUncurryThis;
1255
+ var uncurryThis$4 = functionUncurryThis;
1253
1256
 
1254
1257
  var functionUncurryThisClause = function (fn) {
1255
1258
  // Nashorn bug:
1256
1259
  // https://github.com/zloirock/core-js/issues/1128
1257
1260
  // https://github.com/zloirock/core-js/issues/1130
1258
- if (classofRaw(fn) === 'Function') return uncurryThis$3(fn);
1261
+ if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
1259
1262
  };
1260
1263
 
1261
- var uncurryThis$2 = functionUncurryThisClause;
1262
- var aCallable$5 = aCallable$7;
1264
+ var uncurryThis$3 = functionUncurryThisClause;
1265
+ var aCallable$6 = aCallable$8;
1263
1266
  var NATIVE_BIND = functionBindNative;
1264
1267
 
1265
- var bind$4 = uncurryThis$2(uncurryThis$2.bind);
1268
+ var bind$4 = uncurryThis$3(uncurryThis$3.bind);
1266
1269
 
1267
1270
  // optional / simple context binding
1268
1271
  var functionBindContext = function (fn, that) {
1269
- aCallable$5(fn);
1272
+ aCallable$6(fn);
1270
1273
  return that === undefined ? fn : NATIVE_BIND ? bind$4(fn, that) : function (/* ...args */) {
1271
1274
  return fn.apply(that, arguments);
1272
1275
  };
@@ -1274,16 +1277,16 @@ var functionBindContext = function (fn, that) {
1274
1277
 
1275
1278
  var getBuiltIn$2 = getBuiltIn$8;
1276
1279
 
1277
- var html$1 = getBuiltIn$2('document', 'documentElement');
1280
+ var html$2 = getBuiltIn$2('document', 'documentElement');
1278
1281
 
1279
- var uncurryThis$1 = functionUncurryThis;
1282
+ var uncurryThis$2 = functionUncurryThis;
1280
1283
 
1281
- var arraySlice$1 = uncurryThis$1([].slice);
1284
+ var arraySlice$1 = uncurryThis$2([].slice);
1282
1285
 
1283
- var $TypeError$3 = TypeError;
1286
+ var $TypeError$5 = TypeError;
1284
1287
 
1285
1288
  var validateArgumentsLength$1 = function (passed, required) {
1286
- if (passed < required) throw $TypeError$3('Not enough arguments');
1289
+ if (passed < required) throw $TypeError$5('Not enough arguments');
1287
1290
  return passed;
1288
1291
  };
1289
1292
 
@@ -1291,26 +1294,26 @@ var userAgent$2 = engineUserAgent;
1291
1294
 
1292
1295
  var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
1293
1296
 
1294
- var global$7 = global$i;
1297
+ var global$8 = global$j;
1295
1298
  var apply = functionApply;
1296
1299
  var bind$3 = functionBindContext;
1297
- var isCallable$3 = isCallable$h;
1298
- var hasOwn = hasOwnProperty_1;
1299
- var fails$1 = fails$b;
1300
- var html = html$1;
1300
+ var isCallable$6 = isCallable$k;
1301
+ var hasOwn$1 = hasOwnProperty_1;
1302
+ var fails$5 = fails$f;
1303
+ var html$1 = html$2;
1301
1304
  var arraySlice = arraySlice$1;
1302
- var createElement = documentCreateElement;
1305
+ var createElement = documentCreateElement$2;
1303
1306
  var validateArgumentsLength = validateArgumentsLength$1;
1304
1307
  var IS_IOS$1 = engineIsIos;
1305
- var IS_NODE$3 = engineIsNode;
1306
-
1307
- var set = global$7.setImmediate;
1308
- var clear = global$7.clearImmediate;
1309
- var process$2 = global$7.process;
1310
- var Dispatch = global$7.Dispatch;
1311
- var Function$1 = global$7.Function;
1312
- var MessageChannel = global$7.MessageChannel;
1313
- var String$1 = global$7.String;
1308
+ var IS_NODE$4 = engineIsNode;
1309
+
1310
+ var set = global$8.setImmediate;
1311
+ var clear = global$8.clearImmediate;
1312
+ var process$2 = global$8.process;
1313
+ var Dispatch = global$8.Dispatch;
1314
+ var Function$1 = global$8.Function;
1315
+ var MessageChannel = global$8.MessageChannel;
1316
+ var String$1 = global$8.String;
1314
1317
  var counter = 0;
1315
1318
  var queue$1 = {};
1316
1319
  var ONREADYSTATECHANGE = 'onreadystatechange';
@@ -1318,11 +1321,11 @@ var $location, defer, channel, port;
1318
1321
 
1319
1322
  try {
1320
1323
  // Deno throws a ReferenceError on `location` access without `--location` flag
1321
- $location = global$7.location;
1324
+ $location = global$8.location;
1322
1325
  } catch (error) { /* empty */ }
1323
1326
 
1324
1327
  var run = function (id) {
1325
- if (hasOwn(queue$1, id)) {
1328
+ if (hasOwn$1(queue$1, id)) {
1326
1329
  var fn = queue$1[id];
1327
1330
  delete queue$1[id];
1328
1331
  fn();
@@ -1341,14 +1344,14 @@ var listener = function (event) {
1341
1344
 
1342
1345
  var post = function (id) {
1343
1346
  // old engines have not location.origin
1344
- global$7.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1347
+ global$8.postMessage(String$1(id), $location.protocol + '//' + $location.host);
1345
1348
  };
1346
1349
 
1347
1350
  // Node.js 0.9+ & IE10+ has setImmediate, otherwise:
1348
1351
  if (!set || !clear) {
1349
1352
  set = function setImmediate(handler) {
1350
1353
  validateArgumentsLength(arguments.length, 1);
1351
- var fn = isCallable$3(handler) ? handler : Function$1(handler);
1354
+ var fn = isCallable$6(handler) ? handler : Function$1(handler);
1352
1355
  var args = arraySlice(arguments, 1);
1353
1356
  queue$1[++counter] = function () {
1354
1357
  apply(fn, undefined, args);
@@ -1360,7 +1363,7 @@ if (!set || !clear) {
1360
1363
  delete queue$1[id];
1361
1364
  };
1362
1365
  // Node.js 0.8-
1363
- if (IS_NODE$3) {
1366
+ if (IS_NODE$4) {
1364
1367
  defer = function (id) {
1365
1368
  process$2.nextTick(runner(id));
1366
1369
  };
@@ -1379,19 +1382,19 @@ if (!set || !clear) {
1379
1382
  // Browsers with postMessage, skip WebWorkers
1380
1383
  // IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
1381
1384
  } else if (
1382
- global$7.addEventListener &&
1383
- isCallable$3(global$7.postMessage) &&
1384
- !global$7.importScripts &&
1385
+ global$8.addEventListener &&
1386
+ isCallable$6(global$8.postMessage) &&
1387
+ !global$8.importScripts &&
1385
1388
  $location && $location.protocol !== 'file:' &&
1386
- !fails$1(post)
1389
+ !fails$5(post)
1387
1390
  ) {
1388
1391
  defer = post;
1389
- global$7.addEventListener('message', listener, false);
1392
+ global$8.addEventListener('message', listener, false);
1390
1393
  // IE8-
1391
1394
  } else if (ONREADYSTATECHANGE in createElement('script')) {
1392
1395
  defer = function (id) {
1393
- html.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
1394
- html.removeChild(this);
1396
+ html$1.appendChild(createElement('script'))[ONREADYSTATECHANGE] = function () {
1397
+ html$1.removeChild(this);
1395
1398
  run(id);
1396
1399
  };
1397
1400
  };
@@ -1409,29 +1412,29 @@ var task$1 = {
1409
1412
  };
1410
1413
 
1411
1414
  var userAgent$1 = engineUserAgent;
1412
- var global$6 = global$i;
1415
+ var global$7 = global$j;
1413
1416
 
1414
- var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$6.Pebble !== undefined;
1417
+ var engineIsIosPebble = /ipad|iphone|ipod/i.test(userAgent$1) && global$7.Pebble !== undefined;
1415
1418
 
1416
1419
  var userAgent = engineUserAgent;
1417
1420
 
1418
1421
  var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
1419
1422
 
1420
- var global$5 = global$i;
1423
+ var global$6 = global$j;
1421
1424
  var bind$2 = functionBindContext;
1422
1425
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1423
1426
  var macrotask = task$1.set;
1424
1427
  var IS_IOS = engineIsIos;
1425
1428
  var IS_IOS_PEBBLE = engineIsIosPebble;
1426
1429
  var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
1427
- var IS_NODE$2 = engineIsNode;
1430
+ var IS_NODE$3 = engineIsNode;
1428
1431
 
1429
- var MutationObserver = global$5.MutationObserver || global$5.WebKitMutationObserver;
1430
- var document$2 = global$5.document;
1431
- var process$1 = global$5.process;
1432
- var Promise$1 = global$5.Promise;
1432
+ var MutationObserver = global$6.MutationObserver || global$6.WebKitMutationObserver;
1433
+ var document$2 = global$6.document;
1434
+ var process$1 = global$6.process;
1435
+ var Promise$1 = global$6.Promise;
1433
1436
  // Node.js 11 shows ExperimentalWarning on getting `queueMicrotask`
1434
- var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$5, 'queueMicrotask');
1437
+ var queueMicrotaskDescriptor = getOwnPropertyDescriptor(global$6, 'queueMicrotask');
1435
1438
  var queueMicrotask = queueMicrotaskDescriptor && queueMicrotaskDescriptor.value;
1436
1439
 
1437
1440
  var flush, head, last, notify$1, toggle, node, promise, then;
@@ -1440,7 +1443,7 @@ var flush, head, last, notify$1, toggle, node, promise, then;
1440
1443
  if (!queueMicrotask) {
1441
1444
  flush = function () {
1442
1445
  var parent, fn;
1443
- if (IS_NODE$2 && (parent = process$1.domain)) parent.exit();
1446
+ if (IS_NODE$3 && (parent = process$1.domain)) parent.exit();
1444
1447
  while (head) {
1445
1448
  fn = head.fn;
1446
1449
  head = head.next;
@@ -1457,7 +1460,7 @@ if (!queueMicrotask) {
1457
1460
 
1458
1461
  // browsers with MutationObserver, except iOS - https://github.com/zloirock/core-js/issues/339
1459
1462
  // also except WebOS Webkit https://github.com/zloirock/core-js/issues/898
1460
- if (!IS_IOS && !IS_NODE$2 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1463
+ if (!IS_IOS && !IS_NODE$3 && !IS_WEBOS_WEBKIT && MutationObserver && document$2) {
1461
1464
  toggle = true;
1462
1465
  node = document$2.createTextNode('');
1463
1466
  new MutationObserver(flush).observe(node, { characterData: true });
@@ -1475,7 +1478,7 @@ if (!queueMicrotask) {
1475
1478
  then(flush);
1476
1479
  };
1477
1480
  // Node.js without promises
1478
- } else if (IS_NODE$2) {
1481
+ } else if (IS_NODE$3) {
1479
1482
  notify$1 = function () {
1480
1483
  process$1.nextTick(flush);
1481
1484
  };
@@ -1487,7 +1490,7 @@ if (!queueMicrotask) {
1487
1490
  // - setTimeout
1488
1491
  } else {
1489
1492
  // strange IE + webpack dev server bug - use .bind(global)
1490
- macrotask = bind$2(macrotask, global$5);
1493
+ macrotask = bind$2(macrotask, global$6);
1491
1494
  notify$1 = function () {
1492
1495
  macrotask(flush);
1493
1496
  };
@@ -1503,10 +1506,10 @@ var microtask$1 = queueMicrotask || function (fn) {
1503
1506
  } last = task;
1504
1507
  };
1505
1508
 
1506
- var global$4 = global$i;
1509
+ var global$5 = global$j;
1507
1510
 
1508
1511
  var hostReportErrors$1 = function (a, b) {
1509
- var console = global$4.console;
1512
+ var console = global$5.console;
1510
1513
  if (console && console.error) {
1511
1514
  arguments.length == 1 ? console.error(a) : console.error(a, b);
1512
1515
  }
@@ -1544,35 +1547,35 @@ Queue$1.prototype = {
1544
1547
 
1545
1548
  var queue = Queue$1;
1546
1549
 
1547
- var global$3 = global$i;
1550
+ var global$4 = global$j;
1548
1551
 
1549
- var promiseNativeConstructor = global$3.Promise;
1552
+ var promiseNativeConstructor = global$4.Promise;
1550
1553
 
1551
1554
  /* global Deno -- Deno case */
1552
1555
 
1553
1556
  var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
1554
1557
 
1555
1558
  var IS_DENO$1 = engineIsDeno;
1556
- var IS_NODE$1 = engineIsNode;
1559
+ var IS_NODE$2 = engineIsNode;
1557
1560
 
1558
- var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
1561
+ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$2
1559
1562
  && typeof window == 'object'
1560
1563
  && typeof document == 'object';
1561
1564
 
1562
- var global$2 = global$i;
1565
+ var global$3 = global$j;
1563
1566
  var NativePromiseConstructor$3 = promiseNativeConstructor;
1564
- var isCallable$2 = isCallable$h;
1567
+ var isCallable$5 = isCallable$k;
1565
1568
  var isForced = isForced_1;
1566
1569
  var inspectSource = inspectSource$3;
1567
- var wellKnownSymbol$3 = wellKnownSymbol$a;
1570
+ var wellKnownSymbol$9 = wellKnownSymbol$g;
1568
1571
  var IS_BROWSER = engineIsBrowser;
1569
1572
  var IS_DENO = engineIsDeno;
1570
1573
  var V8_VERSION = engineV8Version;
1571
1574
 
1572
1575
  NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
1573
- var SPECIES = wellKnownSymbol$3('species');
1576
+ var SPECIES = wellKnownSymbol$9('species');
1574
1577
  var SUBCLASSING = false;
1575
- var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$2(global$2.PromiseRejectionEvent);
1578
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$5(global$3.PromiseRejectionEvent);
1576
1579
 
1577
1580
  var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
1578
1581
  var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
@@ -1606,19 +1609,19 @@ var promiseConstructorDetection = {
1606
1609
 
1607
1610
  var newPromiseCapability$2 = {};
1608
1611
 
1609
- var aCallable$4 = aCallable$7;
1612
+ var aCallable$5 = aCallable$8;
1610
1613
 
1611
- var $TypeError$2 = TypeError;
1614
+ var $TypeError$4 = TypeError;
1612
1615
 
1613
1616
  var PromiseCapability = function (C) {
1614
1617
  var resolve, reject;
1615
1618
  this.promise = new C(function ($$resolve, $$reject) {
1616
- if (resolve !== undefined || reject !== undefined) throw $TypeError$2('Bad Promise constructor');
1619
+ if (resolve !== undefined || reject !== undefined) throw $TypeError$4('Bad Promise constructor');
1617
1620
  resolve = $$resolve;
1618
1621
  reject = $$reject;
1619
1622
  });
1620
- this.resolve = aCallable$4(resolve);
1621
- this.reject = aCallable$4(reject);
1623
+ this.resolve = aCallable$5(resolve);
1624
+ this.reject = aCallable$5(reject);
1622
1625
  };
1623
1626
 
1624
1627
  // `NewPromiseCapability` abstract operation
@@ -1627,17 +1630,17 @@ newPromiseCapability$2.f = function (C) {
1627
1630
  return new PromiseCapability(C);
1628
1631
  };
1629
1632
 
1630
- var $$6 = _export;
1631
- var IS_NODE = engineIsNode;
1632
- var global$1 = global$i;
1633
- var call$7 = functionCall;
1634
- var defineBuiltIn$1 = defineBuiltIn$3;
1635
- var setPrototypeOf = objectSetPrototypeOf;
1636
- var setToStringTag = setToStringTag$1;
1633
+ var $$a = _export;
1634
+ var IS_NODE$1 = engineIsNode;
1635
+ var global$2 = global$j;
1636
+ var call$8 = functionCall;
1637
+ var defineBuiltIn$3 = defineBuiltIn$5;
1638
+ var setPrototypeOf$1 = objectSetPrototypeOf;
1639
+ var setToStringTag$2 = setToStringTag$3;
1637
1640
  var setSpecies = setSpecies$1;
1638
- var aCallable$3 = aCallable$7;
1639
- var isCallable$1 = isCallable$h;
1640
- var isObject$1 = isObject$7;
1641
+ var aCallable$4 = aCallable$8;
1642
+ var isCallable$4 = isCallable$k;
1643
+ var isObject$3 = isObject$9;
1641
1644
  var anInstance = anInstance$1;
1642
1645
  var speciesConstructor = speciesConstructor$1;
1643
1646
  var task = task$1.set;
@@ -1645,7 +1648,7 @@ var microtask = microtask$1;
1645
1648
  var hostReportErrors = hostReportErrors$1;
1646
1649
  var perform$2 = perform$3;
1647
1650
  var Queue = queue;
1648
- var InternalStateModule = internalState;
1651
+ var InternalStateModule$1 = internalState;
1649
1652
  var NativePromiseConstructor$2 = promiseNativeConstructor;
1650
1653
  var PromiseConstructorDetection = promiseConstructorDetection;
1651
1654
  var newPromiseCapabilityModule$3 = newPromiseCapability$2;
@@ -1654,18 +1657,18 @@ var PROMISE = 'Promise';
1654
1657
  var FORCED_PROMISE_CONSTRUCTOR$4 = PromiseConstructorDetection.CONSTRUCTOR;
1655
1658
  var NATIVE_PROMISE_REJECTION_EVENT = PromiseConstructorDetection.REJECTION_EVENT;
1656
1659
  var NATIVE_PROMISE_SUBCLASSING = PromiseConstructorDetection.SUBCLASSING;
1657
- var getInternalPromiseState = InternalStateModule.getterFor(PROMISE);
1658
- var setInternalState = InternalStateModule.set;
1660
+ var getInternalPromiseState = InternalStateModule$1.getterFor(PROMISE);
1661
+ var setInternalState$1 = InternalStateModule$1.set;
1659
1662
  var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
1660
1663
  var PromiseConstructor = NativePromiseConstructor$2;
1661
1664
  var PromisePrototype = NativePromisePrototype$1;
1662
- var TypeError$1 = global$1.TypeError;
1663
- var document$1 = global$1.document;
1664
- var process = global$1.process;
1665
+ var TypeError$1 = global$2.TypeError;
1666
+ var document$1 = global$2.document;
1667
+ var process = global$2.process;
1665
1668
  var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
1666
1669
  var newGenericPromiseCapability = newPromiseCapability$1;
1667
1670
 
1668
- var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$1.dispatchEvent);
1671
+ var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$2.dispatchEvent);
1669
1672
  var UNHANDLED_REJECTION = 'unhandledrejection';
1670
1673
  var REJECTION_HANDLED = 'rejectionhandled';
1671
1674
  var PENDING = 0;
@@ -1679,7 +1682,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
1679
1682
  // helpers
1680
1683
  var isThenable = function (it) {
1681
1684
  var then;
1682
- return isObject$1(it) && isCallable$1(then = it.then) ? then : false;
1685
+ return isObject$3(it) && isCallable$4(then = it.then) ? then : false;
1683
1686
  };
1684
1687
 
1685
1688
  var callReaction = function (reaction, state) {
@@ -1708,7 +1711,7 @@ var callReaction = function (reaction, state) {
1708
1711
  if (result === reaction.promise) {
1709
1712
  reject(TypeError$1('Promise-chain cycle'));
1710
1713
  } else if (then = isThenable(result)) {
1711
- call$7(then, result, resolve, reject);
1714
+ call$8(then, result, resolve, reject);
1712
1715
  } else resolve(result);
1713
1716
  } else reject(value);
1714
1717
  } catch (error) {
@@ -1738,26 +1741,26 @@ var dispatchEvent = function (name, promise, reason) {
1738
1741
  event.promise = promise;
1739
1742
  event.reason = reason;
1740
1743
  event.initEvent(name, false, true);
1741
- global$1.dispatchEvent(event);
1744
+ global$2.dispatchEvent(event);
1742
1745
  } else event = { promise: promise, reason: reason };
1743
- if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$1['on' + name])) handler(event);
1746
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$2['on' + name])) handler(event);
1744
1747
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
1745
1748
  };
1746
1749
 
1747
1750
  var onUnhandled = function (state) {
1748
- call$7(task, global$1, function () {
1751
+ call$8(task, global$2, function () {
1749
1752
  var promise = state.facade;
1750
1753
  var value = state.value;
1751
1754
  var IS_UNHANDLED = isUnhandled(state);
1752
1755
  var result;
1753
1756
  if (IS_UNHANDLED) {
1754
1757
  result = perform$2(function () {
1755
- if (IS_NODE) {
1758
+ if (IS_NODE$1) {
1756
1759
  process.emit('unhandledRejection', value, promise);
1757
1760
  } else dispatchEvent(UNHANDLED_REJECTION, promise, value);
1758
1761
  });
1759
1762
  // Browsers should not trigger `rejectionHandled` event if it was handled here, NodeJS - should
1760
- state.rejection = IS_NODE || isUnhandled(state) ? UNHANDLED : HANDLED;
1763
+ state.rejection = IS_NODE$1 || isUnhandled(state) ? UNHANDLED : HANDLED;
1761
1764
  if (result.error) throw result.value;
1762
1765
  }
1763
1766
  });
@@ -1768,9 +1771,9 @@ var isUnhandled = function (state) {
1768
1771
  };
1769
1772
 
1770
1773
  var onHandleUnhandled = function (state) {
1771
- call$7(task, global$1, function () {
1774
+ call$8(task, global$2, function () {
1772
1775
  var promise = state.facade;
1773
- if (IS_NODE) {
1776
+ if (IS_NODE$1) {
1774
1777
  process.emit('rejectionHandled', promise);
1775
1778
  } else dispatchEvent(REJECTION_HANDLED, promise, state.value);
1776
1779
  });
@@ -1802,7 +1805,7 @@ var internalResolve = function (state, value, unwrap) {
1802
1805
  microtask(function () {
1803
1806
  var wrapper = { done: false };
1804
1807
  try {
1805
- call$7(then, value,
1808
+ call$8(then, value,
1806
1809
  bind$1(internalResolve, wrapper, state),
1807
1810
  bind$1(internalReject, wrapper, state)
1808
1811
  );
@@ -1825,8 +1828,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1825
1828
  // 25.4.3.1 Promise(executor)
1826
1829
  PromiseConstructor = function Promise(executor) {
1827
1830
  anInstance(this, PromisePrototype);
1828
- aCallable$3(executor);
1829
- call$7(Internal, this);
1831
+ aCallable$4(executor);
1832
+ call$8(Internal, this);
1830
1833
  var state = getInternalPromiseState(this);
1831
1834
  try {
1832
1835
  executor(bind$1(internalResolve, state), bind$1(internalReject, state));
@@ -1839,7 +1842,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1839
1842
 
1840
1843
  // eslint-disable-next-line no-unused-vars -- required for `.length`
1841
1844
  Internal = function Promise(executor) {
1842
- setInternalState(this, {
1845
+ setInternalState$1(this, {
1843
1846
  type: PROMISE,
1844
1847
  done: false,
1845
1848
  notified: false,
@@ -1853,13 +1856,13 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1853
1856
 
1854
1857
  // `Promise.prototype.then` method
1855
1858
  // https://tc39.es/ecma262/#sec-promise.prototype.then
1856
- Internal.prototype = defineBuiltIn$1(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
1859
+ Internal.prototype = defineBuiltIn$3(PromisePrototype, 'then', function then(onFulfilled, onRejected) {
1857
1860
  var state = getInternalPromiseState(this);
1858
1861
  var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
1859
1862
  state.parent = true;
1860
- reaction.ok = isCallable$1(onFulfilled) ? onFulfilled : true;
1861
- reaction.fail = isCallable$1(onRejected) && onRejected;
1862
- reaction.domain = IS_NODE ? process.domain : undefined;
1863
+ reaction.ok = isCallable$4(onFulfilled) ? onFulfilled : true;
1864
+ reaction.fail = isCallable$4(onRejected) && onRejected;
1865
+ reaction.domain = IS_NODE$1 ? process.domain : undefined;
1863
1866
  if (state.state == PENDING) state.reactions.add(reaction);
1864
1867
  else microtask(function () {
1865
1868
  callReaction(reaction, state);
@@ -1881,15 +1884,15 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1881
1884
  : newGenericPromiseCapability(C);
1882
1885
  };
1883
1886
 
1884
- if (isCallable$1(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
1887
+ if (isCallable$4(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
1885
1888
  nativeThen = NativePromisePrototype$1.then;
1886
1889
 
1887
1890
  if (!NATIVE_PROMISE_SUBCLASSING) {
1888
1891
  // make `Promise#then` return a polyfilled `Promise` for native promise-based APIs
1889
- defineBuiltIn$1(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
1892
+ defineBuiltIn$3(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
1890
1893
  var that = this;
1891
1894
  return new PromiseConstructor(function (resolve, reject) {
1892
- call$7(nativeThen, that, resolve, reject);
1895
+ call$8(nativeThen, that, resolve, reject);
1893
1896
  }).then(onFulfilled, onRejected);
1894
1897
  // https://github.com/zloirock/core-js/issues/640
1895
1898
  }, { unsafe: true });
@@ -1901,96 +1904,96 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
1901
1904
  } catch (error) { /* empty */ }
1902
1905
 
1903
1906
  // make `instanceof Promise` work for native promise-based APIs
1904
- if (setPrototypeOf) {
1905
- setPrototypeOf(NativePromisePrototype$1, PromisePrototype);
1907
+ if (setPrototypeOf$1) {
1908
+ setPrototypeOf$1(NativePromisePrototype$1, PromisePrototype);
1906
1909
  }
1907
1910
  }
1908
1911
  }
1909
1912
 
1910
- $$6({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
1913
+ $$a({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
1911
1914
  Promise: PromiseConstructor
1912
1915
  });
1913
1916
 
1914
- setToStringTag(PromiseConstructor, PROMISE, false);
1917
+ setToStringTag$2(PromiseConstructor, PROMISE, false);
1915
1918
  setSpecies(PROMISE);
1916
1919
 
1917
1920
  var iterators = {};
1918
1921
 
1919
- var wellKnownSymbol$2 = wellKnownSymbol$a;
1920
- var Iterators$1 = iterators;
1922
+ var wellKnownSymbol$8 = wellKnownSymbol$g;
1923
+ var Iterators$4 = iterators;
1921
1924
 
1922
- var ITERATOR$2 = wellKnownSymbol$2('iterator');
1923
- var ArrayPrototype = Array.prototype;
1925
+ var ITERATOR$5 = wellKnownSymbol$8('iterator');
1926
+ var ArrayPrototype$1 = Array.prototype;
1924
1927
 
1925
1928
  // check on default Array iterator
1926
1929
  var isArrayIteratorMethod$1 = function (it) {
1927
- return it !== undefined && (Iterators$1.Array === it || ArrayPrototype[ITERATOR$2] === it);
1930
+ return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$5] === it);
1928
1931
  };
1929
1932
 
1930
- var classof = classof$2;
1933
+ var classof$2 = classof$4;
1931
1934
  var getMethod$1 = getMethod$3;
1932
1935
  var isNullOrUndefined = isNullOrUndefined$4;
1933
- var Iterators = iterators;
1934
- var wellKnownSymbol$1 = wellKnownSymbol$a;
1936
+ var Iterators$3 = iterators;
1937
+ var wellKnownSymbol$7 = wellKnownSymbol$g;
1935
1938
 
1936
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1939
+ var ITERATOR$4 = wellKnownSymbol$7('iterator');
1937
1940
 
1938
1941
  var getIteratorMethod$2 = function (it) {
1939
- if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$1)
1942
+ if (!isNullOrUndefined(it)) return getMethod$1(it, ITERATOR$4)
1940
1943
  || getMethod$1(it, '@@iterator')
1941
- || Iterators[classof(it)];
1944
+ || Iterators$3[classof$2(it)];
1942
1945
  };
1943
1946
 
1944
- var call$6 = functionCall;
1945
- var aCallable$2 = aCallable$7;
1946
- var anObject$3 = anObject$8;
1947
+ var call$7 = functionCall;
1948
+ var aCallable$3 = aCallable$8;
1949
+ var anObject$5 = anObject$a;
1947
1950
  var tryToString$1 = tryToString$4;
1948
1951
  var getIteratorMethod$1 = getIteratorMethod$2;
1949
1952
 
1950
- var $TypeError$1 = TypeError;
1953
+ var $TypeError$3 = TypeError;
1951
1954
 
1952
1955
  var getIterator$1 = function (argument, usingIterator) {
1953
1956
  var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
1954
- if (aCallable$2(iteratorMethod)) return anObject$3(call$6(iteratorMethod, argument));
1955
- throw $TypeError$1(tryToString$1(argument) + ' is not iterable');
1957
+ if (aCallable$3(iteratorMethod)) return anObject$5(call$7(iteratorMethod, argument));
1958
+ throw $TypeError$3(tryToString$1(argument) + ' is not iterable');
1956
1959
  };
1957
1960
 
1958
- var call$5 = functionCall;
1959
- var anObject$2 = anObject$8;
1961
+ var call$6 = functionCall;
1962
+ var anObject$4 = anObject$a;
1960
1963
  var getMethod = getMethod$3;
1961
1964
 
1962
1965
  var iteratorClose$1 = function (iterator, kind, value) {
1963
1966
  var innerResult, innerError;
1964
- anObject$2(iterator);
1967
+ anObject$4(iterator);
1965
1968
  try {
1966
1969
  innerResult = getMethod(iterator, 'return');
1967
1970
  if (!innerResult) {
1968
1971
  if (kind === 'throw') throw value;
1969
1972
  return value;
1970
1973
  }
1971
- innerResult = call$5(innerResult, iterator);
1974
+ innerResult = call$6(innerResult, iterator);
1972
1975
  } catch (error) {
1973
1976
  innerError = true;
1974
1977
  innerResult = error;
1975
1978
  }
1976
1979
  if (kind === 'throw') throw value;
1977
1980
  if (innerError) throw innerResult;
1978
- anObject$2(innerResult);
1981
+ anObject$4(innerResult);
1979
1982
  return value;
1980
1983
  };
1981
1984
 
1982
1985
  var bind = functionBindContext;
1983
- var call$4 = functionCall;
1984
- var anObject$1 = anObject$8;
1986
+ var call$5 = functionCall;
1987
+ var anObject$3 = anObject$a;
1985
1988
  var tryToString = tryToString$4;
1986
1989
  var isArrayIteratorMethod = isArrayIteratorMethod$1;
1987
- var lengthOfArrayLike = lengthOfArrayLike$2;
1990
+ var lengthOfArrayLike$1 = lengthOfArrayLike$3;
1988
1991
  var isPrototypeOf = objectIsPrototypeOf;
1989
1992
  var getIterator = getIterator$1;
1990
1993
  var getIteratorMethod = getIteratorMethod$2;
1991
1994
  var iteratorClose = iteratorClose$1;
1992
1995
 
1993
- var $TypeError = TypeError;
1996
+ var $TypeError$2 = TypeError;
1994
1997
 
1995
1998
  var Result = function (stopped, result) {
1996
1999
  this.stopped = stopped;
@@ -2015,7 +2018,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2015
2018
 
2016
2019
  var callFn = function (value) {
2017
2020
  if (AS_ENTRIES) {
2018
- anObject$1(value);
2021
+ anObject$3(value);
2019
2022
  return INTERRUPTED ? fn(value[0], value[1], stop) : fn(value[0], value[1]);
2020
2023
  } return INTERRUPTED ? fn(value, stop) : fn(value);
2021
2024
  };
@@ -2026,10 +2029,10 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2026
2029
  iterator = iterable;
2027
2030
  } else {
2028
2031
  iterFn = getIteratorMethod(iterable);
2029
- if (!iterFn) throw $TypeError(tryToString(iterable) + ' is not iterable');
2032
+ if (!iterFn) throw $TypeError$2(tryToString(iterable) + ' is not iterable');
2030
2033
  // optimisation for array iterators
2031
2034
  if (isArrayIteratorMethod(iterFn)) {
2032
- for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
2035
+ for (index = 0, length = lengthOfArrayLike$1(iterable); length > index; index++) {
2033
2036
  result = callFn(iterable[index]);
2034
2037
  if (result && isPrototypeOf(ResultPrototype, result)) return result;
2035
2038
  } return new Result(false);
@@ -2038,7 +2041,7 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2038
2041
  }
2039
2042
 
2040
2043
  next = IS_RECORD ? iterable.next : iterator.next;
2041
- while (!(step = call$4(next, iterator)).done) {
2044
+ while (!(step = call$5(next, iterator)).done) {
2042
2045
  try {
2043
2046
  result = callFn(step.value);
2044
2047
  } catch (error) {
@@ -2048,9 +2051,9 @@ var iterate$2 = function (iterable, unboundFunction, options) {
2048
2051
  } return new Result(false);
2049
2052
  };
2050
2053
 
2051
- var wellKnownSymbol = wellKnownSymbol$a;
2054
+ var wellKnownSymbol$6 = wellKnownSymbol$g;
2052
2055
 
2053
- var ITERATOR = wellKnownSymbol('iterator');
2056
+ var ITERATOR$3 = wellKnownSymbol$6('iterator');
2054
2057
  var SAFE_CLOSING = false;
2055
2058
 
2056
2059
  try {
@@ -2063,7 +2066,7 @@ try {
2063
2066
  SAFE_CLOSING = true;
2064
2067
  }
2065
2068
  };
2066
- iteratorWithReturn[ITERATOR] = function () {
2069
+ iteratorWithReturn[ITERATOR$3] = function () {
2067
2070
  return this;
2068
2071
  };
2069
2072
  // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
@@ -2075,7 +2078,7 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
2075
2078
  var ITERATION_SUPPORT = false;
2076
2079
  try {
2077
2080
  var object = {};
2078
- object[ITERATOR] = function () {
2081
+ object[ITERATOR$3] = function () {
2079
2082
  return {
2080
2083
  next: function () {
2081
2084
  return { done: ITERATION_SUPPORT = true };
@@ -2095,9 +2098,9 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
2095
2098
  NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
2096
2099
  });
2097
2100
 
2098
- var $$5 = _export;
2099
- var call$3 = functionCall;
2100
- var aCallable$1 = aCallable$7;
2101
+ var $$9 = _export;
2102
+ var call$4 = functionCall;
2103
+ var aCallable$2 = aCallable$8;
2101
2104
  var newPromiseCapabilityModule$2 = newPromiseCapability$2;
2102
2105
  var perform$1 = perform$3;
2103
2106
  var iterate$1 = iterate$2;
@@ -2105,14 +2108,14 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
2105
2108
 
2106
2109
  // `Promise.all` method
2107
2110
  // https://tc39.es/ecma262/#sec-promise.all
2108
- $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2111
+ $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
2109
2112
  all: function all(iterable) {
2110
2113
  var C = this;
2111
2114
  var capability = newPromiseCapabilityModule$2.f(C);
2112
2115
  var resolve = capability.resolve;
2113
2116
  var reject = capability.reject;
2114
2117
  var result = perform$1(function () {
2115
- var $promiseResolve = aCallable$1(C.resolve);
2118
+ var $promiseResolve = aCallable$2(C.resolve);
2116
2119
  var values = [];
2117
2120
  var counter = 0;
2118
2121
  var remaining = 1;
@@ -2120,7 +2123,7 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2120
2123
  var index = counter++;
2121
2124
  var alreadyCalled = false;
2122
2125
  remaining++;
2123
- call$3($promiseResolve, C, promise).then(function (value) {
2126
+ call$4($promiseResolve, C, promise).then(function (value) {
2124
2127
  if (alreadyCalled) return;
2125
2128
  alreadyCalled = true;
2126
2129
  values[index] = value;
@@ -2134,34 +2137,34 @@ $$5({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2134
2137
  }
2135
2138
  });
2136
2139
 
2137
- var $$4 = _export;
2140
+ var $$8 = _export;
2138
2141
  var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
2139
2142
  var NativePromiseConstructor = promiseNativeConstructor;
2140
2143
  var getBuiltIn$1 = getBuiltIn$8;
2141
- var isCallable = isCallable$h;
2142
- var defineBuiltIn = defineBuiltIn$3;
2144
+ var isCallable$3 = isCallable$k;
2145
+ var defineBuiltIn$2 = defineBuiltIn$5;
2143
2146
 
2144
2147
  var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
2145
2148
 
2146
2149
  // `Promise.prototype.catch` method
2147
2150
  // https://tc39.es/ecma262/#sec-promise.prototype.catch
2148
- $$4({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2151
+ $$8({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
2149
2152
  'catch': function (onRejected) {
2150
2153
  return this.then(undefined, onRejected);
2151
2154
  }
2152
2155
  });
2153
2156
 
2154
2157
  // makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
2155
- if (isCallable(NativePromiseConstructor)) {
2158
+ if (isCallable$3(NativePromiseConstructor)) {
2156
2159
  var method = getBuiltIn$1('Promise').prototype['catch'];
2157
2160
  if (NativePromisePrototype['catch'] !== method) {
2158
- defineBuiltIn(NativePromisePrototype, 'catch', method, { unsafe: true });
2161
+ defineBuiltIn$2(NativePromisePrototype, 'catch', method, { unsafe: true });
2159
2162
  }
2160
2163
  }
2161
2164
 
2162
- var $$3 = _export;
2163
- var call$2 = functionCall;
2164
- var aCallable = aCallable$7;
2165
+ var $$7 = _export;
2166
+ var call$3 = functionCall;
2167
+ var aCallable$1 = aCallable$8;
2165
2168
  var newPromiseCapabilityModule$1 = newPromiseCapability$2;
2166
2169
  var perform = perform$3;
2167
2170
  var iterate = iterate$2;
@@ -2169,15 +2172,15 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
2169
2172
 
2170
2173
  // `Promise.race` method
2171
2174
  // https://tc39.es/ecma262/#sec-promise.race
2172
- $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2175
+ $$7({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
2173
2176
  race: function race(iterable) {
2174
2177
  var C = this;
2175
2178
  var capability = newPromiseCapabilityModule$1.f(C);
2176
2179
  var reject = capability.reject;
2177
2180
  var result = perform(function () {
2178
- var $promiseResolve = aCallable(C.resolve);
2181
+ var $promiseResolve = aCallable$1(C.resolve);
2179
2182
  iterate(iterable, function (promise) {
2180
- call$2($promiseResolve, C, promise).then(capability.resolve, reject);
2183
+ call$3($promiseResolve, C, promise).then(capability.resolve, reject);
2181
2184
  });
2182
2185
  });
2183
2186
  if (result.error) reject(result.value);
@@ -2185,35 +2188,35 @@ $$3({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
2185
2188
  }
2186
2189
  });
2187
2190
 
2188
- var $$2 = _export;
2189
- var call$1 = functionCall;
2191
+ var $$6 = _export;
2192
+ var call$2 = functionCall;
2190
2193
  var newPromiseCapabilityModule = newPromiseCapability$2;
2191
2194
  var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
2192
2195
 
2193
2196
  // `Promise.reject` method
2194
2197
  // https://tc39.es/ecma262/#sec-promise.reject
2195
- $$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2198
+ $$6({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
2196
2199
  reject: function reject(r) {
2197
2200
  var capability = newPromiseCapabilityModule.f(this);
2198
- call$1(capability.reject, undefined, r);
2201
+ call$2(capability.reject, undefined, r);
2199
2202
  return capability.promise;
2200
2203
  }
2201
2204
  });
2202
2205
 
2203
- var anObject = anObject$8;
2204
- var isObject = isObject$7;
2206
+ var anObject$2 = anObject$a;
2207
+ var isObject$2 = isObject$9;
2205
2208
  var newPromiseCapability = newPromiseCapability$2;
2206
2209
 
2207
2210
  var promiseResolve$1 = function (C, x) {
2208
- anObject(C);
2209
- if (isObject(x) && x.constructor === C) return x;
2211
+ anObject$2(C);
2212
+ if (isObject$2(x) && x.constructor === C) return x;
2210
2213
  var promiseCapability = newPromiseCapability.f(C);
2211
2214
  var resolve = promiseCapability.resolve;
2212
2215
  resolve(x);
2213
2216
  return promiseCapability.promise;
2214
2217
  };
2215
2218
 
2216
- var $$1 = _export;
2219
+ var $$5 = _export;
2217
2220
  var getBuiltIn = getBuiltIn$8;
2218
2221
  var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
2219
2222
  var promiseResolve = promiseResolve$1;
@@ -2222,46 +2225,46 @@ getBuiltIn('Promise');
2222
2225
 
2223
2226
  // `Promise.resolve` method
2224
2227
  // https://tc39.es/ecma262/#sec-promise.resolve
2225
- $$1({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2228
+ $$5({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
2226
2229
  resolve: function resolve(x) {
2227
2230
  return promiseResolve(this, x);
2228
2231
  }
2229
2232
  });
2230
2233
 
2231
2234
  var internalObjectKeys = objectKeysInternal;
2232
- var enumBugKeys = enumBugKeys$2;
2235
+ var enumBugKeys$1 = enumBugKeys$3;
2233
2236
 
2234
2237
  // `Object.keys` method
2235
2238
  // https://tc39.es/ecma262/#sec-object.keys
2236
2239
  // eslint-disable-next-line es/no-object-keys -- safe
2237
- var objectKeys$1 = Object.keys || function keys(O) {
2238
- return internalObjectKeys(O, enumBugKeys);
2240
+ var objectKeys$2 = Object.keys || function keys(O) {
2241
+ return internalObjectKeys(O, enumBugKeys$1);
2239
2242
  };
2240
2243
 
2241
- var DESCRIPTORS = descriptors;
2242
- var uncurryThis = functionUncurryThis;
2243
- var call = functionCall;
2244
- var fails = fails$b;
2245
- var objectKeys = objectKeys$1;
2244
+ var DESCRIPTORS$2 = descriptors;
2245
+ var uncurryThis$1 = functionUncurryThis;
2246
+ var call$1 = functionCall;
2247
+ var fails$4 = fails$f;
2248
+ var objectKeys$1 = objectKeys$2;
2246
2249
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
2247
2250
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
2248
- var toObject = toObject$2;
2249
- var IndexedObject = indexedObject;
2251
+ var toObject$2 = toObject$4;
2252
+ var IndexedObject$1 = indexedObject;
2250
2253
 
2251
2254
  // eslint-disable-next-line es/no-object-assign -- safe
2252
2255
  var $assign = Object.assign;
2253
2256
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
2254
- var defineProperty = Object.defineProperty;
2255
- var concat = uncurryThis([].concat);
2257
+ var defineProperty$2 = Object.defineProperty;
2258
+ var concat = uncurryThis$1([].concat);
2256
2259
 
2257
2260
  // `Object.assign` method
2258
2261
  // https://tc39.es/ecma262/#sec-object.assign
2259
- var objectAssign = !$assign || fails(function () {
2262
+ var objectAssign = !$assign || fails$4(function () {
2260
2263
  // should have correct order of operations (Edge bug)
2261
- if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
2264
+ if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$2({}, 'a', {
2262
2265
  enumerable: true,
2263
2266
  get: function () {
2264
- defineProperty(this, 'b', {
2267
+ defineProperty$2(this, 'b', {
2265
2268
  value: 3,
2266
2269
  enumerable: false
2267
2270
  });
@@ -2275,36 +2278,668 @@ var objectAssign = !$assign || fails(function () {
2275
2278
  var alphabet = 'abcdefghijklmnopqrst';
2276
2279
  A[symbol] = 7;
2277
2280
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
2278
- return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
2281
+ return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
2279
2282
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
2280
- var T = toObject(target);
2283
+ var T = toObject$2(target);
2281
2284
  var argumentsLength = arguments.length;
2282
2285
  var index = 1;
2283
2286
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
2284
2287
  var propertyIsEnumerable = propertyIsEnumerableModule.f;
2285
2288
  while (argumentsLength > index) {
2286
- var S = IndexedObject(arguments[index++]);
2287
- var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
2289
+ var S = IndexedObject$1(arguments[index++]);
2290
+ var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
2288
2291
  var length = keys.length;
2289
2292
  var j = 0;
2290
2293
  var key;
2291
2294
  while (length > j) {
2292
2295
  key = keys[j++];
2293
- if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
2296
+ if (!DESCRIPTORS$2 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
2294
2297
  }
2295
2298
  } return T;
2296
2299
  } : $assign;
2297
2300
 
2298
- var $ = _export;
2301
+ var $$4 = _export;
2299
2302
  var assign = objectAssign;
2300
2303
 
2301
2304
  // `Object.assign` method
2302
2305
  // https://tc39.es/ecma262/#sec-object.assign
2303
2306
  // eslint-disable-next-line es/no-object-assign -- required for testing
2304
- $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2307
+ $$4({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
2305
2308
  assign: assign
2306
2309
  });
2307
2310
 
2311
+ var objectDefineProperties = {};
2312
+
2313
+ var DESCRIPTORS$1 = descriptors;
2314
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
2315
+ var definePropertyModule = objectDefineProperty;
2316
+ var anObject$1 = anObject$a;
2317
+ var toIndexedObject$1 = toIndexedObject$5;
2318
+ var objectKeys = objectKeys$2;
2319
+
2320
+ // `Object.defineProperties` method
2321
+ // https://tc39.es/ecma262/#sec-object.defineproperties
2322
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
2323
+ objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
2324
+ anObject$1(O);
2325
+ var props = toIndexedObject$1(Properties);
2326
+ var keys = objectKeys(Properties);
2327
+ var length = keys.length;
2328
+ var index = 0;
2329
+ var key;
2330
+ while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
2331
+ return O;
2332
+ };
2333
+
2334
+ /* global ActiveXObject -- old IE, WSH */
2335
+
2336
+ var anObject = anObject$a;
2337
+ var definePropertiesModule = objectDefineProperties;
2338
+ var enumBugKeys = enumBugKeys$3;
2339
+ var hiddenKeys = hiddenKeys$4;
2340
+ var html = html$2;
2341
+ var documentCreateElement$1 = documentCreateElement$2;
2342
+ var sharedKey$1 = sharedKey$3;
2343
+
2344
+ var GT = '>';
2345
+ var LT = '<';
2346
+ var PROTOTYPE = 'prototype';
2347
+ var SCRIPT = 'script';
2348
+ var IE_PROTO$1 = sharedKey$1('IE_PROTO');
2349
+
2350
+ var EmptyConstructor = function () { /* empty */ };
2351
+
2352
+ var scriptTag = function (content) {
2353
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
2354
+ };
2355
+
2356
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
2357
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
2358
+ activeXDocument.write(scriptTag(''));
2359
+ activeXDocument.close();
2360
+ var temp = activeXDocument.parentWindow.Object;
2361
+ activeXDocument = null; // avoid memory leak
2362
+ return temp;
2363
+ };
2364
+
2365
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
2366
+ var NullProtoObjectViaIFrame = function () {
2367
+ // Thrash, waste and sodomy: IE GC bug
2368
+ var iframe = documentCreateElement$1('iframe');
2369
+ var JS = 'java' + SCRIPT + ':';
2370
+ var iframeDocument;
2371
+ iframe.style.display = 'none';
2372
+ html.appendChild(iframe);
2373
+ // https://github.com/zloirock/core-js/issues/475
2374
+ iframe.src = String(JS);
2375
+ iframeDocument = iframe.contentWindow.document;
2376
+ iframeDocument.open();
2377
+ iframeDocument.write(scriptTag('document.F=Object'));
2378
+ iframeDocument.close();
2379
+ return iframeDocument.F;
2380
+ };
2381
+
2382
+ // Check for document.domain and active x support
2383
+ // No need to use active x approach when document.domain is not set
2384
+ // see https://github.com/es-shims/es5-shim/issues/150
2385
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
2386
+ // avoid IE GC bug
2387
+ var activeXDocument;
2388
+ var NullProtoObject = function () {
2389
+ try {
2390
+ activeXDocument = new ActiveXObject('htmlfile');
2391
+ } catch (error) { /* ignore */ }
2392
+ NullProtoObject = typeof document != 'undefined'
2393
+ ? document.domain && activeXDocument
2394
+ ? NullProtoObjectViaActiveX(activeXDocument) // old IE
2395
+ : NullProtoObjectViaIFrame()
2396
+ : NullProtoObjectViaActiveX(activeXDocument); // WSH
2397
+ var length = enumBugKeys.length;
2398
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
2399
+ return NullProtoObject();
2400
+ };
2401
+
2402
+ hiddenKeys[IE_PROTO$1] = true;
2403
+
2404
+ // `Object.create` method
2405
+ // https://tc39.es/ecma262/#sec-object.create
2406
+ // eslint-disable-next-line es/no-object-create -- safe
2407
+ var objectCreate = Object.create || function create(O, Properties) {
2408
+ var result;
2409
+ if (O !== null) {
2410
+ EmptyConstructor[PROTOTYPE] = anObject(O);
2411
+ result = new EmptyConstructor();
2412
+ EmptyConstructor[PROTOTYPE] = null;
2413
+ // add "__proto__" for Object.getPrototypeOf polyfill
2414
+ result[IE_PROTO$1] = O;
2415
+ } else result = NullProtoObject();
2416
+ return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
2417
+ };
2418
+
2419
+ var wellKnownSymbol$5 = wellKnownSymbol$g;
2420
+ var create$1 = objectCreate;
2421
+ var defineProperty$1 = objectDefineProperty.f;
2422
+
2423
+ var UNSCOPABLES = wellKnownSymbol$5('unscopables');
2424
+ var ArrayPrototype = Array.prototype;
2425
+
2426
+ // Array.prototype[@@unscopables]
2427
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2428
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
2429
+ defineProperty$1(ArrayPrototype, UNSCOPABLES, {
2430
+ configurable: true,
2431
+ value: create$1(null)
2432
+ });
2433
+ }
2434
+
2435
+ // add a key to Array.prototype[@@unscopables]
2436
+ var addToUnscopables$2 = function (key) {
2437
+ ArrayPrototype[UNSCOPABLES][key] = true;
2438
+ };
2439
+
2440
+ var fails$3 = fails$f;
2441
+
2442
+ var correctPrototypeGetter = !fails$3(function () {
2443
+ function F() { /* empty */ }
2444
+ F.prototype.constructor = null;
2445
+ // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
2446
+ return Object.getPrototypeOf(new F()) !== F.prototype;
2447
+ });
2448
+
2449
+ var hasOwn = hasOwnProperty_1;
2450
+ var isCallable$2 = isCallable$k;
2451
+ var toObject$1 = toObject$4;
2452
+ var sharedKey = sharedKey$3;
2453
+ var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
2454
+
2455
+ var IE_PROTO = sharedKey('IE_PROTO');
2456
+ var $Object = Object;
2457
+ var ObjectPrototype = $Object.prototype;
2458
+
2459
+ // `Object.getPrototypeOf` method
2460
+ // https://tc39.es/ecma262/#sec-object.getprototypeof
2461
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
2462
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
2463
+ var object = toObject$1(O);
2464
+ if (hasOwn(object, IE_PROTO)) return object[IE_PROTO];
2465
+ var constructor = object.constructor;
2466
+ if (isCallable$2(constructor) && object instanceof constructor) {
2467
+ return constructor.prototype;
2468
+ } return object instanceof $Object ? ObjectPrototype : null;
2469
+ };
2470
+
2471
+ var fails$2 = fails$f;
2472
+ var isCallable$1 = isCallable$k;
2473
+ var isObject$1 = isObject$9;
2474
+ var getPrototypeOf$1 = objectGetPrototypeOf;
2475
+ var defineBuiltIn$1 = defineBuiltIn$5;
2476
+ var wellKnownSymbol$4 = wellKnownSymbol$g;
2477
+
2478
+ var ITERATOR$2 = wellKnownSymbol$4('iterator');
2479
+ var BUGGY_SAFARI_ITERATORS$1 = false;
2480
+
2481
+ // `%IteratorPrototype%` object
2482
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
2483
+ var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
2484
+
2485
+ /* eslint-disable es/no-array-prototype-keys -- safe */
2486
+ if ([].keys) {
2487
+ arrayIterator = [].keys();
2488
+ // Safari 8 has buggy iterators w/o `next`
2489
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
2490
+ else {
2491
+ PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
2492
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
2493
+ }
2494
+ }
2495
+
2496
+ var NEW_ITERATOR_PROTOTYPE = !isObject$1(IteratorPrototype$2) || fails$2(function () {
2497
+ var test = {};
2498
+ // FF44- legacy iterators case
2499
+ return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
2500
+ });
2501
+
2502
+ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
2503
+
2504
+ // `%IteratorPrototype%[@@iterator]()` method
2505
+ // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
2506
+ if (!isCallable$1(IteratorPrototype$2[ITERATOR$2])) {
2507
+ defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
2508
+ return this;
2509
+ });
2510
+ }
2511
+
2512
+ var iteratorsCore = {
2513
+ IteratorPrototype: IteratorPrototype$2,
2514
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
2515
+ };
2516
+
2517
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
2518
+ var create = objectCreate;
2519
+ var createPropertyDescriptor = createPropertyDescriptor$3;
2520
+ var setToStringTag$1 = setToStringTag$3;
2521
+ var Iterators$2 = iterators;
2522
+
2523
+ var returnThis$1 = function () { return this; };
2524
+
2525
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
2526
+ var TO_STRING_TAG = NAME + ' Iterator';
2527
+ IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
2528
+ setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
2529
+ Iterators$2[TO_STRING_TAG] = returnThis$1;
2530
+ return IteratorConstructor;
2531
+ };
2532
+
2533
+ var $$3 = _export;
2534
+ var call = functionCall;
2535
+ var FunctionName = functionName;
2536
+ var isCallable = isCallable$k;
2537
+ var createIteratorConstructor = iteratorCreateConstructor;
2538
+ var getPrototypeOf = objectGetPrototypeOf;
2539
+ var setPrototypeOf = objectSetPrototypeOf;
2540
+ var setToStringTag = setToStringTag$3;
2541
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
2542
+ var defineBuiltIn = defineBuiltIn$5;
2543
+ var wellKnownSymbol$3 = wellKnownSymbol$g;
2544
+ var Iterators$1 = iterators;
2545
+ var IteratorsCore = iteratorsCore;
2546
+
2547
+ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
2548
+ var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
2549
+ var IteratorPrototype = IteratorsCore.IteratorPrototype;
2550
+ var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
2551
+ var ITERATOR$1 = wellKnownSymbol$3('iterator');
2552
+ var KEYS = 'keys';
2553
+ var VALUES = 'values';
2554
+ var ENTRIES = 'entries';
2555
+
2556
+ var returnThis = function () { return this; };
2557
+
2558
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
2559
+ createIteratorConstructor(IteratorConstructor, NAME, next);
2560
+
2561
+ var getIterationMethod = function (KIND) {
2562
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
2563
+ if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
2564
+ switch (KIND) {
2565
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
2566
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
2567
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
2568
+ } return function () { return new IteratorConstructor(this); };
2569
+ };
2570
+
2571
+ var TO_STRING_TAG = NAME + ' Iterator';
2572
+ var INCORRECT_VALUES_NAME = false;
2573
+ var IterablePrototype = Iterable.prototype;
2574
+ var nativeIterator = IterablePrototype[ITERATOR$1]
2575
+ || IterablePrototype['@@iterator']
2576
+ || DEFAULT && IterablePrototype[DEFAULT];
2577
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
2578
+ var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
2579
+ var CurrentIteratorPrototype, methods, KEY;
2580
+
2581
+ // fix native
2582
+ if (anyNativeIterator) {
2583
+ CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
2584
+ if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
2585
+ if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
2586
+ if (setPrototypeOf) {
2587
+ setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
2588
+ } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
2589
+ defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
2590
+ }
2591
+ }
2592
+ // Set @@toStringTag to native iterators
2593
+ setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
2594
+ }
2595
+ }
2596
+
2597
+ // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
2598
+ if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
2599
+ if (CONFIGURABLE_FUNCTION_NAME) {
2600
+ createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
2601
+ } else {
2602
+ INCORRECT_VALUES_NAME = true;
2603
+ defaultIterator = function values() { return call(nativeIterator, this); };
2604
+ }
2605
+ }
2606
+
2607
+ // export additional methods
2608
+ if (DEFAULT) {
2609
+ methods = {
2610
+ values: getIterationMethod(VALUES),
2611
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
2612
+ entries: getIterationMethod(ENTRIES)
2613
+ };
2614
+ if (FORCED) for (KEY in methods) {
2615
+ if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
2616
+ defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
2617
+ }
2618
+ } else $$3({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
2619
+ }
2620
+
2621
+ // define iterator
2622
+ if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
2623
+ defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
2624
+ }
2625
+ Iterators$1[NAME] = defaultIterator;
2626
+
2627
+ return methods;
2628
+ };
2629
+
2630
+ // `CreateIterResultObject` abstract operation
2631
+ // https://tc39.es/ecma262/#sec-createiterresultobject
2632
+ var createIterResultObject$1 = function (value, done) {
2633
+ return { value: value, done: done };
2634
+ };
2635
+
2636
+ var toIndexedObject = toIndexedObject$5;
2637
+ var addToUnscopables$1 = addToUnscopables$2;
2638
+ var Iterators = iterators;
2639
+ var InternalStateModule = internalState;
2640
+ var defineProperty = objectDefineProperty.f;
2641
+ var defineIterator = iteratorDefine;
2642
+ var createIterResultObject = createIterResultObject$1;
2643
+ var DESCRIPTORS = descriptors;
2644
+
2645
+ var ARRAY_ITERATOR = 'Array Iterator';
2646
+ var setInternalState = InternalStateModule.set;
2647
+ var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
2648
+
2649
+ // `Array.prototype.entries` method
2650
+ // https://tc39.es/ecma262/#sec-array.prototype.entries
2651
+ // `Array.prototype.keys` method
2652
+ // https://tc39.es/ecma262/#sec-array.prototype.keys
2653
+ // `Array.prototype.values` method
2654
+ // https://tc39.es/ecma262/#sec-array.prototype.values
2655
+ // `Array.prototype[@@iterator]` method
2656
+ // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
2657
+ // `CreateArrayIterator` internal method
2658
+ // https://tc39.es/ecma262/#sec-createarrayiterator
2659
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
2660
+ setInternalState(this, {
2661
+ type: ARRAY_ITERATOR,
2662
+ target: toIndexedObject(iterated), // target
2663
+ index: 0, // next index
2664
+ kind: kind // kind
2665
+ });
2666
+ // `%ArrayIteratorPrototype%.next` method
2667
+ // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
2668
+ }, function () {
2669
+ var state = getInternalState(this);
2670
+ var target = state.target;
2671
+ var kind = state.kind;
2672
+ var index = state.index++;
2673
+ if (!target || index >= target.length) {
2674
+ state.target = undefined;
2675
+ return createIterResultObject(undefined, true);
2676
+ }
2677
+ if (kind == 'keys') return createIterResultObject(index, false);
2678
+ if (kind == 'values') return createIterResultObject(target[index], false);
2679
+ return createIterResultObject([index, target[index]], false);
2680
+ }, 'values');
2681
+
2682
+ // argumentsList[@@iterator] is %ArrayProto_values%
2683
+ // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
2684
+ // https://tc39.es/ecma262/#sec-createmappedargumentsobject
2685
+ var values = Iterators.Arguments = Iterators.Array;
2686
+
2687
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2688
+ addToUnscopables$1('keys');
2689
+ addToUnscopables$1('values');
2690
+ addToUnscopables$1('entries');
2691
+
2692
+ // V8 ~ Chrome 45- bug
2693
+ if (DESCRIPTORS && values.name !== 'values') try {
2694
+ defineProperty(values, 'name', { value: 'values' });
2695
+ } catch (error) { /* empty */ }
2696
+
2697
+ // iterable DOM collections
2698
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
2699
+ var domIterables = {
2700
+ CSSRuleList: 0,
2701
+ CSSStyleDeclaration: 0,
2702
+ CSSValueList: 0,
2703
+ ClientRectList: 0,
2704
+ DOMRectList: 0,
2705
+ DOMStringList: 0,
2706
+ DOMTokenList: 1,
2707
+ DataTransferItemList: 0,
2708
+ FileList: 0,
2709
+ HTMLAllCollection: 0,
2710
+ HTMLCollection: 0,
2711
+ HTMLFormElement: 0,
2712
+ HTMLSelectElement: 0,
2713
+ MediaList: 0,
2714
+ MimeTypeArray: 0,
2715
+ NamedNodeMap: 0,
2716
+ NodeList: 1,
2717
+ PaintRequestList: 0,
2718
+ Plugin: 0,
2719
+ PluginArray: 0,
2720
+ SVGLengthList: 0,
2721
+ SVGNumberList: 0,
2722
+ SVGPathSegList: 0,
2723
+ SVGPointList: 0,
2724
+ SVGStringList: 0,
2725
+ SVGTransformList: 0,
2726
+ SourceBufferList: 0,
2727
+ StyleSheetList: 0,
2728
+ TextTrackCueList: 0,
2729
+ TextTrackList: 0,
2730
+ TouchList: 0
2731
+ };
2732
+
2733
+ // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
2734
+ var documentCreateElement = documentCreateElement$2;
2735
+
2736
+ var classList = documentCreateElement('span').classList;
2737
+ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
2738
+
2739
+ var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
2740
+
2741
+ var global$1 = global$j;
2742
+ var DOMIterables = domIterables;
2743
+ var DOMTokenListPrototype = domTokenListPrototype;
2744
+ var ArrayIteratorMethods = es_array_iterator;
2745
+ var createNonEnumerableProperty = createNonEnumerableProperty$4;
2746
+ var wellKnownSymbol$2 = wellKnownSymbol$g;
2747
+
2748
+ var ITERATOR = wellKnownSymbol$2('iterator');
2749
+ var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
2750
+ var ArrayValues = ArrayIteratorMethods.values;
2751
+
2752
+ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
2753
+ if (CollectionPrototype) {
2754
+ // some Chrome versions have non-configurable methods on DOMTokenList
2755
+ if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
2756
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
2757
+ } catch (error) {
2758
+ CollectionPrototype[ITERATOR] = ArrayValues;
2759
+ }
2760
+ if (!CollectionPrototype[TO_STRING_TAG]) {
2761
+ createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
2762
+ }
2763
+ if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
2764
+ // some Chrome versions have non-configurable methods on DOMTokenList
2765
+ if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
2766
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
2767
+ } catch (error) {
2768
+ CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
2769
+ }
2770
+ }
2771
+ }
2772
+ };
2773
+
2774
+ for (var COLLECTION_NAME in DOMIterables) {
2775
+ handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
2776
+ }
2777
+
2778
+ handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
2779
+
2780
+ var $$2 = _export;
2781
+ var $includes = arrayIncludes.includes;
2782
+ var fails$1 = fails$f;
2783
+ var addToUnscopables = addToUnscopables$2;
2784
+
2785
+ // FF99+ bug
2786
+ var BROKEN_ON_SPARSE = fails$1(function () {
2787
+ return !Array(1).includes();
2788
+ });
2789
+
2790
+ // `Array.prototype.includes` method
2791
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
2792
+ $$2({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
2793
+ includes: function includes(el /* , fromIndex = 0 */) {
2794
+ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
2795
+ }
2796
+ });
2797
+
2798
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
2799
+ addToUnscopables('includes');
2800
+
2801
+ var isObject = isObject$9;
2802
+ var classof$1 = classofRaw$2;
2803
+ var wellKnownSymbol$1 = wellKnownSymbol$g;
2804
+
2805
+ var MATCH$1 = wellKnownSymbol$1('match');
2806
+
2807
+ // `IsRegExp` abstract operation
2808
+ // https://tc39.es/ecma262/#sec-isregexp
2809
+ var isRegexp = function (it) {
2810
+ var isRegExp;
2811
+ return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof$1(it) == 'RegExp');
2812
+ };
2813
+
2814
+ var isRegExp = isRegexp;
2815
+
2816
+ var $TypeError$1 = TypeError;
2817
+
2818
+ var notARegexp = function (it) {
2819
+ if (isRegExp(it)) {
2820
+ throw $TypeError$1("The method doesn't accept regular expressions");
2821
+ } return it;
2822
+ };
2823
+
2824
+ var classof = classof$4;
2825
+
2826
+ var $String = String;
2827
+
2828
+ var toString$1 = function (argument) {
2829
+ if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
2830
+ return $String(argument);
2831
+ };
2832
+
2833
+ var wellKnownSymbol = wellKnownSymbol$g;
2834
+
2835
+ var MATCH = wellKnownSymbol('match');
2836
+
2837
+ var correctIsRegexpLogic = function (METHOD_NAME) {
2838
+ var regexp = /./;
2839
+ try {
2840
+ '/./'[METHOD_NAME](regexp);
2841
+ } catch (error1) {
2842
+ try {
2843
+ regexp[MATCH] = false;
2844
+ return '/./'[METHOD_NAME](regexp);
2845
+ } catch (error2) { /* empty */ }
2846
+ } return false;
2847
+ };
2848
+
2849
+ var $$1 = _export;
2850
+ var uncurryThis = functionUncurryThis;
2851
+ var notARegExp = notARegexp;
2852
+ var requireObjectCoercible = requireObjectCoercible$3;
2853
+ var toString = toString$1;
2854
+ var correctIsRegExpLogic = correctIsRegexpLogic;
2855
+
2856
+ var stringIndexOf = uncurryThis(''.indexOf);
2857
+
2858
+ // `String.prototype.includes` method
2859
+ // https://tc39.es/ecma262/#sec-string.prototype.includes
2860
+ $$1({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
2861
+ includes: function includes(searchString /* , position = 0 */) {
2862
+ return !!~stringIndexOf(
2863
+ toString(requireObjectCoercible(this)),
2864
+ toString(notARegExp(searchString)),
2865
+ arguments.length > 1 ? arguments[1] : undefined
2866
+ );
2867
+ }
2868
+ });
2869
+
2870
+ var aCallable = aCallable$8;
2871
+ var toObject = toObject$4;
2872
+ var IndexedObject = indexedObject;
2873
+ var lengthOfArrayLike = lengthOfArrayLike$3;
2874
+
2875
+ var $TypeError = TypeError;
2876
+
2877
+ // `Array.prototype.{ reduce, reduceRight }` methods implementation
2878
+ var createMethod = function (IS_RIGHT) {
2879
+ return function (that, callbackfn, argumentsLength, memo) {
2880
+ aCallable(callbackfn);
2881
+ var O = toObject(that);
2882
+ var self = IndexedObject(O);
2883
+ var length = lengthOfArrayLike(O);
2884
+ var index = IS_RIGHT ? length - 1 : 0;
2885
+ var i = IS_RIGHT ? -1 : 1;
2886
+ if (argumentsLength < 2) while (true) {
2887
+ if (index in self) {
2888
+ memo = self[index];
2889
+ index += i;
2890
+ break;
2891
+ }
2892
+ index += i;
2893
+ if (IS_RIGHT ? index < 0 : length <= index) {
2894
+ throw $TypeError('Reduce of empty array with no initial value');
2895
+ }
2896
+ }
2897
+ for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
2898
+ memo = callbackfn(memo, self[index], index, O);
2899
+ }
2900
+ return memo;
2901
+ };
2902
+ };
2903
+
2904
+ var arrayReduce = {
2905
+ // `Array.prototype.reduce` method
2906
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
2907
+ left: createMethod(false),
2908
+ // `Array.prototype.reduceRight` method
2909
+ // https://tc39.es/ecma262/#sec-array.prototype.reduceright
2910
+ right: createMethod(true)
2911
+ };
2912
+
2913
+ var fails = fails$f;
2914
+
2915
+ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
2916
+ var method = [][METHOD_NAME];
2917
+ return !!method && fails(function () {
2918
+ // eslint-disable-next-line no-useless-call -- required for testing
2919
+ method.call(null, argument || function () { return 1; }, 1);
2920
+ });
2921
+ };
2922
+
2923
+ var $ = _export;
2924
+ var $reduce = arrayReduce.left;
2925
+ var arrayMethodIsStrict = arrayMethodIsStrict$1;
2926
+ var CHROME_VERSION = engineV8Version;
2927
+ var IS_NODE = engineIsNode;
2928
+
2929
+ var STRICT_METHOD = arrayMethodIsStrict('reduce');
2930
+ // Chrome 80-82 has a critical bug
2931
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
2932
+ var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
2933
+
2934
+ // `Array.prototype.reduce` method
2935
+ // https://tc39.es/ecma262/#sec-array.prototype.reduce
2936
+ $({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
2937
+ reduce: function reduce(callbackfn /* , initialValue */) {
2938
+ var length = arguments.length;
2939
+ return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
2940
+ }
2941
+ });
2942
+
2308
2943
  /******************************************************************************
2309
2944
  Copyright (c) Microsoft Corporation.
2310
2945
 
@@ -2320,6 +2955,18 @@ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2320
2955
  PERFORMANCE OF THIS SOFTWARE.
2321
2956
  ***************************************************************************** */
2322
2957
 
2958
+ function __rest(s, e) {
2959
+ var t = {};
2960
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
2961
+ t[p] = s[p];
2962
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
2963
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2964
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
2965
+ t[p[i]] = s[p[i]];
2966
+ }
2967
+ return t;
2968
+ }
2969
+
2323
2970
  function __awaiter(thisArg, _arguments, P, generator) {
2324
2971
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
2325
2972
  return new (P || (P = Promise))(function (resolve, reject) {
@@ -2380,6 +3027,75 @@ class WidgetContainer {
2380
3027
  }
2381
3028
  }
2382
3029
 
3030
+ const PreviewRenderPlugin = ctx => {
3031
+ const PrevivewPluginWrapper = props => {
3032
+ const [pluginApi, setPluginApi] = react.useState(ctx.pluginApi);
3033
+ const {
3034
+ children,
3035
+ setComponentProps,
3036
+ experiences,
3037
+ baseline
3038
+ } = props;
3039
+ const {
3040
+ current: id
3041
+ } = react.useRef(uuid.v4());
3042
+ react.useEffect(() => {
3043
+ ctx.registerSetPluginApi(id, setPluginApi);
3044
+ return () => {
3045
+ ctx.unregisterSetPluginApi(id);
3046
+ };
3047
+ }, [id]);
3048
+ react.useEffect(() => {
3049
+ const overWrittenExperienceIds = Object.keys(pluginApi.experienceVariantIndexOverwrites);
3050
+ const overWrittenExperience = experiences.find(experience => {
3051
+ return overWrittenExperienceIds.includes(experience.id);
3052
+ });
3053
+ if (!overWrittenExperience) {
3054
+ setComponentProps({});
3055
+ return;
3056
+ }
3057
+ const baselineComponent = overWrittenExperience.components.find(component => component.baseline.id === baseline.id);
3058
+ if (!baselineComponent) {
3059
+ setComponentProps({});
3060
+ return;
3061
+ }
3062
+ const allVariants = [baseline, ...baselineComponent.variants];
3063
+ const variantIndex = pluginApi.experienceVariantIndexOverwrites[overWrittenExperience.id];
3064
+ if (allVariants.length <= variantIndex) {
3065
+ setComponentProps({});
3066
+ return;
3067
+ }
3068
+ const variant = allVariants[variantIndex];
3069
+ if (!variant) {
3070
+ setComponentProps({});
3071
+ return;
3072
+ }
3073
+ setComponentProps(Object.assign({}, variant));
3074
+ }, [experiences, baseline, setComponentProps, pluginApi.experienceVariantIndexOverwrites]);
3075
+ return jsxRuntime.jsx(jsxRuntime.Fragment, {
3076
+ children: children
3077
+ });
3078
+ };
3079
+ return PrevivewPluginWrapper;
3080
+ };
3081
+
3082
+ class PreviewRenderPluginContext {
3083
+ constructor(pluginApi) {
3084
+ this.pluginApi = pluginApi;
3085
+ this.setPluginApiCallbacks = new Map();
3086
+ this.registerSetPluginApi = (id, setPluginApi) => {
3087
+ this.setPluginApiCallbacks.set(id, setPluginApi);
3088
+ };
3089
+ this.unregisterSetPluginApi = id => {
3090
+ this.setPluginApiCallbacks.delete(id);
3091
+ };
3092
+ this.setPluginApi = pluginApi => {
3093
+ this.pluginApi = pluginApi;
3094
+ this.setPluginApiCallbacks.forEach(callback => callback(pluginApi));
3095
+ };
3096
+ }
3097
+ }
3098
+
2383
3099
  var _a;
2384
3100
  class NinetailedPreviewPlugin extends experience_jsPluginAnalytics.NinetailedPlugin {
2385
3101
  constructor(options) {
@@ -2387,115 +3103,257 @@ class NinetailedPreviewPlugin extends experience_jsPluginAnalytics.NinetailedPlu
2387
3103
  this.options = options;
2388
3104
  this.name = 'ninetailed:preview' + Math.random();
2389
3105
  this.isOpen = false;
2390
- this.activatedAudiences = [];
2391
- this.audiences = [];
2392
- this.initialize = ({
2393
- instance
2394
- }) => __awaiter(this, void 0, void 0, function* () {
3106
+ this.experiences = [];
3107
+ this.audienceOverwrites = {};
3108
+ this.experienceVariantIndexOverwrites = {};
3109
+ this.profile = null;
3110
+ this.container = null;
3111
+ this.bridge = null;
3112
+ this.renderPluginContext = new PreviewRenderPluginContext(this.pluginApi);
3113
+ this.initialize = () => __awaiter(this, void 0, void 0, function* () {
2395
3114
  var _b;
2396
3115
  if (typeof window !== 'undefined') {
2397
3116
  const {
2398
3117
  PreviewBridge
2399
3118
  } = yield Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require('@ninetailed/experience.js-preview-bridge')); });
2400
- const container = new WidgetContainer({
3119
+ this.container = new WidgetContainer({
2401
3120
  ui: this.options.ui
2402
3121
  });
2403
- const preview = PreviewBridge({
3122
+ this.bridge = PreviewBridge({
2404
3123
  url: this.options.url
2405
3124
  });
2406
- preview.render(container.element);
2407
- const open = () => {
2408
- container.open();
2409
- this.isOpen = true;
2410
- instance.dispatch({
2411
- type: 'preview:change'
2412
- });
2413
- };
2414
- const close = () => {
2415
- container.close();
2416
- setTimeout(() => {
2417
- this.isOpen = false;
2418
- instance.dispatch({
2419
- type: 'preview:change'
2420
- });
2421
- }, 700);
2422
- };
2423
- const toggle = () => {
2424
- if (this.isOpen) {
2425
- close();
2426
- } else {
2427
- open();
2428
- }
2429
- };
2430
- const activateAudience = id => {
2431
- this.activatedAudiences = union__default["default"](this.activatedAudiences, [id]);
2432
- instance.dispatch({
2433
- type: experience_js.PROFILE_CHANGE,
2434
- profile: this.lastProfile
2435
- });
2436
- };
2437
- const deactivateAudience = id => {
2438
- this.activatedAudiences = this.activatedAudiences.filter(activatedAudience => activatedAudience !== id);
2439
- instance.dispatch({
2440
- type: experience_js.PROFILE_CHANGE,
2441
- profile: this.lastProfile
2442
- });
2443
- };
2444
- const buildPreviewPlugin = () => ({
2445
- open: () => open(),
2446
- close: () => close(),
2447
- toggle: () => toggle(),
2448
- isOpen: this.isOpen,
2449
- activateAudience: id => activateAudience(id),
2450
- deactivateAudience: id => deactivateAudience(id),
2451
- activatedAudiences: this.activatedAudiences,
2452
- audiences: this.audiences
2453
- });
3125
+ this.bridge.render(this.container.element);
2454
3126
  window.ninetailed = Object.assign({}, window.ninetailed, {
2455
3127
  plugins: Object.assign(Object.assign({}, (_b = window.ninetailed) === null || _b === void 0 ? void 0 : _b.plugins), {
2456
- preview: buildPreviewPlugin()
3128
+ preview: this.windowApi
2457
3129
  })
2458
3130
  });
2459
- const buildNinetailed = () => {
2460
- var _b;
2461
- return Object.assign({}, window.ninetailed, {
2462
- version: '1.5.1',
2463
- plugins: Object.assign(Object.assign({}, (_b = window.ninetailed) === null || _b === void 0 ? void 0 : _b.plugins), {
2464
- preview: buildPreviewPlugin()
2465
- }),
2466
- credentials: {
2467
- clientId: this.options.clientId,
2468
- secret: this.options.secret,
2469
- environment: this.options.environment
2470
- }
2471
- });
2472
- };
2473
- instance.on(experience_js.PROFILE_CHANGE, () => {
2474
- preview.updateProps({
2475
- props: buildNinetailed()
2476
- });
2477
- });
2478
- instance.on('preview:change', () => {
2479
- preview.updateProps({
2480
- props: buildNinetailed()
2481
- });
3131
+ this.bridge.updateProps({
3132
+ props: this.pluginApi
2482
3133
  });
2483
3134
  }
2484
3135
  });
3136
+ this.getRenderWrapper = () => {
3137
+ return this.renderPluginComponent;
3138
+ };
2485
3139
  this.loaded = () => true;
2486
3140
  this[_a] = ({
2487
3141
  payload
2488
3142
  }) => {
3143
+ if (payload === null || payload === void 0 ? void 0 : payload.profile) {
3144
+ this.onProfileChange(payload.profile);
3145
+ }
3146
+ };
3147
+ this.onChange = () => {
2489
3148
  var _b;
2490
- this.audiences = ((_b = payload === null || payload === void 0 ? void 0 : payload.profile) === null || _b === void 0 ? void 0 : _b.audiences) || [];
2491
- this.lastProfile = payload.profile;
2492
- return Object.assign(Object.assign({}, payload), {
2493
- profile: Object.assign(Object.assign({}, payload.profile), {
2494
- audiences: union__default["default"](this.audiences, this.activatedAudiences)
3149
+ console.debug('Ninetailed Preview Plugin onChange pluginApi:', this.pluginApi);
3150
+ Object.assign({}, window.ninetailed, {
3151
+ plugins: Object.assign(Object.assign({}, (_b = window.ninetailed) === null || _b === void 0 ? void 0 : _b.plugins), {
3152
+ preview: this.windowApi
2495
3153
  })
2496
3154
  });
3155
+ this.bridge.updateProps({
3156
+ props: this.pluginApi
3157
+ });
3158
+ if (this.renderPluginContext.setPluginApi) {
3159
+ this.renderPluginContext.setPluginApi(this.pluginApi);
3160
+ }
3161
+ };
3162
+ this.onProfileChange = profile => {
3163
+ this.profile = profile;
3164
+ this.onChange();
3165
+ };
3166
+ this.experiences = options.experiences || [];
3167
+ this.renderPluginComponent = PreviewRenderPlugin(this.renderPluginContext);
3168
+ }
3169
+ open() {
3170
+ var _b;
3171
+ (_b = this.container) === null || _b === void 0 ? void 0 : _b.open();
3172
+ this.isOpen = true;
3173
+ this.onChange();
3174
+ }
3175
+ close() {
3176
+ var _b;
3177
+ (_b = this.container) === null || _b === void 0 ? void 0 : _b.close();
3178
+ setTimeout(() => {
3179
+ this.isOpen = false;
3180
+ this.onChange();
3181
+ }, 700);
3182
+ }
3183
+ toggle() {
3184
+ if (this.isOpen) {
3185
+ this.close();
3186
+ } else {
3187
+ this.open();
3188
+ }
3189
+ }
3190
+ activateAudience(id) {
3191
+ if (!this.isKnownAudience(id)) {
3192
+ console.log(`You cannot activate an unkown audience (id: ${id}).`);
3193
+ return;
3194
+ }
3195
+ this.audienceOverwrites = Object.assign(Object.assign({}, this.audienceOverwrites), {
3196
+ [id]: true
3197
+ });
3198
+ this.experienceVariantIndexOverwrites = omit__default["default"](this.experienceVariantIndexOverwrites, this.experiences.filter(experience => {
3199
+ var _b;
3200
+ return ((_b = experience.audience) === null || _b === void 0 ? void 0 : _b.id) === id;
3201
+ }).map(experience => experience.id));
3202
+ this.onChange();
3203
+ }
3204
+ deactivateAudience(id) {
3205
+ if (!this.isKnownAudience(id)) {
3206
+ console.log(`You cannot deactivate an unkown audience (id: ${id}). How did you get it in the first place?`);
3207
+ return;
3208
+ }
3209
+ // When a audience is deactivated, the normal state will be that the experience goes into the control
3210
+ this.experiences.filter(experience => {
3211
+ var _b;
3212
+ return ((_b = experience.audience) === null || _b === void 0 ? void 0 : _b.id) === id;
3213
+ }).forEach(experience => {
3214
+ this.setExperienceVariant({
3215
+ experienceId: experience.id,
3216
+ variantIndex: 0
3217
+ });
3218
+ });
3219
+ this.audienceOverwrites = Object.assign(Object.assign({}, this.audienceOverwrites), {
3220
+ [id]: false
3221
+ });
3222
+ this.onChange();
3223
+ }
3224
+ resetAudience(id) {
3225
+ if (!this.isKnownAudience(id)) {
3226
+ console.log(`You cannot reset an unkown audience (id: ${id}). How did you get it in the first place?`);
3227
+ return;
3228
+ }
3229
+ const _b = this.audienceOverwrites,
3230
+ _c = id;
3231
+ _b[_c];
3232
+ const audienceOverwrites = __rest(_b, [typeof _c === "symbol" ? _c : _c + ""]);
3233
+ this.audienceOverwrites = audienceOverwrites;
3234
+ this.onChange();
3235
+ }
3236
+ setExperienceVariant({
3237
+ experienceId,
3238
+ variantIndex
3239
+ }) {
3240
+ const experience = this.experiences.find(experience => experience.id === experienceId);
3241
+ if (!experience) {
3242
+ console.log(`You cannot active a variant for an unknown experience (id: ${experienceId})`);
3243
+ return;
3244
+ }
3245
+ if (experience.audience &&
3246
+ // if the experience has no audience, it's a all visitors experience
3247
+ !this.activeAudiences.some(id => {
3248
+ var _b;
3249
+ return id === ((_b = experience.audience) === null || _b === void 0 ? void 0 : _b.id);
3250
+ })) {
3251
+ console.log(`You cannot active a variant for an experience (id: ${experienceId}), which is not in the active audiences.`);
3252
+ return;
3253
+ }
3254
+ const isValidIndex = experience.components.map(component => component.variants.length + 1).every(length => length > variantIndex);
3255
+ if (!isValidIndex) {
3256
+ console.warn(`You activated a variant at index ${variantIndex} for the experience (id: ${experienceId}). Not all components have that many variants, you may see the baseline for some.`);
3257
+ }
3258
+ this.experienceVariantIndexOverwrites = Object.assign(Object.assign({}, this.experienceVariantIndexOverwrites), {
3259
+ [experienceId]: variantIndex
3260
+ });
3261
+ this.onChange();
3262
+ }
3263
+ resetExperience(experienceId) {
3264
+ const _b = this.experienceVariantIndexOverwrites,
3265
+ _c = experienceId;
3266
+ _b[_c];
3267
+ const experienceVariantIndexOverwrites = __rest(_b, [typeof _c === "symbol" ? _c : _c + ""]);
3268
+ this.experienceVariantIndexOverwrites = experienceVariantIndexOverwrites;
3269
+ this.onChange();
3270
+ }
3271
+ reset() {
3272
+ if (typeof window !== 'undefined' && window.ninetailed && typeof window.ninetailed.reset === 'function') {
3273
+ window.ninetailed.reset();
3274
+ }
3275
+ }
3276
+ get pluginApi() {
3277
+ var _b;
3278
+ return {
3279
+ version: '2.0.0',
3280
+ open: this.open.bind(this),
3281
+ close: this.close.bind(this),
3282
+ toggle: this.toggle.bind(this),
3283
+ isOpen: this.isOpen,
3284
+ activateAudience: this.activateAudience.bind(this),
3285
+ deactivateAudience: this.deactivateAudience.bind(this),
3286
+ resetAudience: this.resetAudience.bind(this),
3287
+ apiAudiences: ((_b = this.profile) === null || _b === void 0 ? void 0 : _b.audiences) || [],
3288
+ audienceOverwrites: this.audienceOverwrites,
3289
+ activeAudiences: this.activeAudiences,
3290
+ setExperienceVariant: this.setExperienceVariant.bind(this),
3291
+ resetExperience: this.resetExperience.bind(this),
3292
+ experienceVariantIndexes: Object.assign(Object.assign({}, this.experienceVariantIndexes), this.experienceVariantIndexOverwrites),
3293
+ experienceVariantIndexOverwrites: this.experienceVariantIndexOverwrites,
3294
+ reset: this.reset.bind(this),
3295
+ experiences: this.experiences
2497
3296
  };
2498
3297
  }
3298
+ get windowApi() {
3299
+ return {
3300
+ version: '2.0.0',
3301
+ open: this.open.bind(this),
3302
+ close: this.close.bind(this),
3303
+ toggle: this.toggle.bind(this),
3304
+ activateAudience: this.activateAudience.bind(this),
3305
+ deactivateAudience: this.deactivateAudience.bind(this),
3306
+ resetAudience: this.resetAudience.bind(this),
3307
+ activeAudiences: this.activeAudiences,
3308
+ setExperienceVariant: this.setExperienceVariant.bind(this),
3309
+ resetExperience: this.resetExperience.bind(this),
3310
+ experienceVariantIndexes: Object.assign(Object.assign({}, this.experienceVariantIndexes), this.experienceVariantIndexOverwrites)
3311
+ };
3312
+ }
3313
+ isKnownAudience(id) {
3314
+ return this.potentialAudiences.some(audience => audience.id === id);
3315
+ }
3316
+ get potentialAudiences() {
3317
+ return this.experiences.map(experience => experience.audience).filter(audience => !!audience);
3318
+ }
3319
+ get activeAudiences() {
3320
+ var _b;
3321
+ const deactivatedAudiences = Object.entries(this.audienceOverwrites).filter(([id, active]) => !active).map(([id]) => id);
3322
+ const activatedAudiences = Object.entries(this.audienceOverwrites).filter(([id, active]) => active).map(([id]) => id);
3323
+ return [...(((_b = this.profile) === null || _b === void 0 ? void 0 : _b.audiences) || []), ...activatedAudiences].filter(id => !deactivatedAudiences.includes(id));
3324
+ }
3325
+ get experienceVariantIndexes() {
3326
+ const profile = this.profile;
3327
+ if (!profile) {
3328
+ return {};
3329
+ }
3330
+ const experiments = this.experiences.filter(experience => experience.type === 'nt_experiment');
3331
+ const activeExperiments = experience_js.selectActiveExperiments(experiments, Object.assign(Object.assign({}, profile), {
3332
+ audiences: this.activeAudiences
3333
+ }));
3334
+ const eligibleExperiences = experience_js.selectEligibleExperiences({
3335
+ experiences: this.experiences,
3336
+ activeExperiments
3337
+ });
3338
+ const matchedExperiences = eligibleExperiences.filter(experience => experience_js.isExperienceMatch({
3339
+ experience,
3340
+ activeExperiments,
3341
+ profile: Object.assign(Object.assign({}, profile), {
3342
+ audiences: this.activeAudiences
3343
+ })
3344
+ }));
3345
+ return matchedExperiences.reduce((acc, experience) => {
3346
+ const distribution = experience_js.selectDistribution({
3347
+ experience,
3348
+ profile: Object.assign(Object.assign({}, profile), {
3349
+ audiences: this.activeAudiences
3350
+ })
3351
+ });
3352
+ return Object.assign(Object.assign({}, acc), {
3353
+ [experience.id]: distribution.index
3354
+ });
3355
+ }, {});
3356
+ }
2499
3357
  }
2500
3358
  _a = experience_js.PROFILE_CHANGE;
2501
3359