@ninetailed/experience.js-react 3.0.0-beta.15 → 3.0.0-beta.16

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.
@@ -57,32 +57,15 @@ const NinetailedProvider = ({
57
57
 
58
58
  const useNinetailed = () => {
59
59
  const ninetailed = useContext(NinetailedContext);
60
-
61
60
  if (ninetailed === undefined) {
62
61
  throw new Error('The component using the the context must be a descendant of the NinetailedProvider');
63
62
  }
64
-
65
63
  return ninetailed;
66
64
  };
67
65
 
68
66
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
69
67
 
70
- var check = function (it) {
71
- return it && it.Math == Math && it;
72
- };
73
-
74
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
75
- var global$w =
76
- // eslint-disable-next-line es/no-global-this -- safe
77
- check(typeof globalThis == 'object' && globalThis) ||
78
- check(typeof window == 'object' && window) ||
79
- // eslint-disable-next-line no-restricted-globals -- safe
80
- check(typeof self == 'object' && self) ||
81
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
82
- // eslint-disable-next-line no-new-func -- fallback
83
- (function () { return this; })() || Function('return this')();
84
-
85
- var fails$g = function (exec) {
68
+ var fails$h = function (exec) {
86
69
  try {
87
70
  return !!exec();
88
71
  } catch (error) {
@@ -90,9 +73,10 @@ var fails$g = function (exec) {
90
73
  }
91
74
  };
92
75
 
93
- var fails$f = fails$g;
76
+ var fails$g = fails$h;
94
77
 
95
- var functionBindNative = !fails$f(function () {
78
+ var functionBindNative = !fails$g(function () {
79
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
96
80
  var test = (function () { /* empty */ }).bind();
97
81
  // eslint-disable-next-line no-prototype-builtins -- safe
98
82
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -101,14 +85,11 @@ var functionBindNative = !fails$f(function () {
101
85
  var NATIVE_BIND$2 = functionBindNative;
102
86
 
103
87
  var FunctionPrototype$2 = Function.prototype;
104
- var bind = FunctionPrototype$2.bind;
105
88
  var call$a = FunctionPrototype$2.call;
106
- var uncurryThis$g = NATIVE_BIND$2 && bind.bind(call$a, call$a);
89
+ var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$a, call$a);
107
90
 
108
- var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
109
- return fn && uncurryThis$g(fn);
110
- } : function (fn) {
111
- return fn && function () {
91
+ var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
92
+ return function () {
112
93
  return call$a.apply(fn, arguments);
113
94
  };
114
95
  };
@@ -118,35 +99,40 @@ var uncurryThis$f = functionUncurryThis;
118
99
  var toString$5 = uncurryThis$f({}.toString);
119
100
  var stringSlice$4 = uncurryThis$f(''.slice);
120
101
 
121
- var classofRaw$1 = function (it) {
102
+ var classofRaw$2 = function (it) {
122
103
  return stringSlice$4(toString$5(it), 8, -1);
123
104
  };
124
105
 
125
- var global$v = global$w;
126
106
  var uncurryThis$e = functionUncurryThis;
127
- var fails$e = fails$g;
128
- var classof$4 = classofRaw$1;
107
+ var fails$f = fails$h;
108
+ var classof$4 = classofRaw$2;
129
109
 
130
- var Object$5 = global$v.Object;
110
+ var $Object$4 = Object;
131
111
  var split = uncurryThis$e(''.split);
132
112
 
133
113
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
134
- var indexedObject = fails$e(function () {
114
+ var indexedObject = fails$f(function () {
135
115
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
136
116
  // eslint-disable-next-line no-prototype-builtins -- safe
137
- return !Object$5('z').propertyIsEnumerable(0);
117
+ return !$Object$4('z').propertyIsEnumerable(0);
138
118
  }) ? function (it) {
139
- return classof$4(it) == 'String' ? split(it, '') : Object$5(it);
140
- } : Object$5;
119
+ return classof$4(it) == 'String' ? split(it, '') : $Object$4(it);
120
+ } : $Object$4;
141
121
 
142
- var global$u = global$w;
122
+ // we can't use just `it == null` since of `document.all` special case
123
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
124
+ var isNullOrUndefined$3 = function (it) {
125
+ return it === null || it === undefined;
126
+ };
143
127
 
144
- var TypeError$a = global$u.TypeError;
128
+ var isNullOrUndefined$2 = isNullOrUndefined$3;
129
+
130
+ var $TypeError$8 = TypeError;
145
131
 
146
132
  // `RequireObjectCoercible` abstract operation
147
133
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
148
134
  var requireObjectCoercible$4 = function (it) {
149
- if (it == undefined) throw TypeError$a("Can't call method on " + it);
135
+ if (isNullOrUndefined$2(it)) throw $TypeError$8("Can't call method on " + it);
150
136
  return it;
151
137
  };
152
138
 
@@ -158,26 +144,41 @@ var toIndexedObject$5 = function (it) {
158
144
  return IndexedObject$2(requireObjectCoercible$3(it));
159
145
  };
160
146
 
147
+ var check = function (it) {
148
+ return it && it.Math == Math && it;
149
+ };
150
+
151
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
152
+ var global$f =
153
+ // eslint-disable-next-line es/no-global-this -- safe
154
+ check(typeof globalThis == 'object' && globalThis) ||
155
+ check(typeof window == 'object' && window) ||
156
+ // eslint-disable-next-line no-restricted-globals -- safe
157
+ check(typeof self == 'object' && self) ||
158
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
159
+ // eslint-disable-next-line no-new-func -- fallback
160
+ (function () { return this; })() || Function('return this')();
161
+
161
162
  var shared$4 = {exports: {}};
162
163
 
163
- var global$t = global$w;
164
+ var global$e = global$f;
164
165
 
165
166
  // eslint-disable-next-line es/no-object-defineproperty -- safe
166
- var defineProperty$3 = Object.defineProperty;
167
+ var defineProperty$5 = Object.defineProperty;
167
168
 
168
- var setGlobal$3 = function (key, value) {
169
+ var defineGlobalProperty$3 = function (key, value) {
169
170
  try {
170
- defineProperty$3(global$t, key, { value: value, configurable: true, writable: true });
171
+ defineProperty$5(global$e, key, { value: value, configurable: true, writable: true });
171
172
  } catch (error) {
172
- global$t[key] = value;
173
+ global$e[key] = value;
173
174
  } return value;
174
175
  };
175
176
 
176
- var global$s = global$w;
177
- var setGlobal$2 = setGlobal$3;
177
+ var global$d = global$f;
178
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
178
179
 
179
180
  var SHARED = '__core-js_shared__';
180
- var store$3 = global$s[SHARED] || setGlobal$2(SHARED, {});
181
+ var store$3 = global$d[SHARED] || defineGlobalProperty$2(SHARED, {});
181
182
 
182
183
  var sharedStore = store$3;
183
184
 
@@ -186,22 +187,21 @@ var store$2 = sharedStore;
186
187
  (shared$4.exports = function (key, value) {
187
188
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
188
189
  })('versions', []).push({
189
- version: '3.21.1',
190
+ version: '3.26.1',
190
191
  mode: 'global',
191
192
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
192
- license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
193
+ license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
193
194
  source: 'https://github.com/zloirock/core-js'
194
195
  });
195
196
 
196
- var global$r = global$w;
197
197
  var requireObjectCoercible$2 = requireObjectCoercible$4;
198
198
 
199
- var Object$4 = global$r.Object;
199
+ var $Object$3 = Object;
200
200
 
201
201
  // `ToObject` abstract operation
202
202
  // https://tc39.es/ecma262/#sec-toobject
203
203
  var toObject$5 = function (argument) {
204
- return Object$4(requireObjectCoercible$2(argument));
204
+ return $Object$3(requireObjectCoercible$2(argument));
205
205
  };
206
206
 
207
207
  var uncurryThis$d = functionUncurryThis;
@@ -211,6 +211,7 @@ var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
211
211
 
212
212
  // `HasOwnProperty` abstract operation
213
213
  // https://tc39.es/ecma262/#sec-hasownproperty
214
+ // eslint-disable-next-line es/no-object-hasown -- safe
214
215
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
215
216
  return hasOwnProperty(toObject$4(it), key);
216
217
  };
@@ -225,32 +226,48 @@ var uid$2 = function (key) {
225
226
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
226
227
  };
227
228
 
229
+ var documentAll$2 = typeof document == 'object' && document.all;
230
+
231
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
232
+ var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
233
+
234
+ var documentAll_1 = {
235
+ all: documentAll$2,
236
+ IS_HTMLDDA: IS_HTMLDDA
237
+ };
238
+
239
+ var $documentAll$1 = documentAll_1;
240
+
241
+ var documentAll$1 = $documentAll$1.all;
242
+
228
243
  // `IsCallable` abstract operation
229
244
  // https://tc39.es/ecma262/#sec-iscallable
230
- var isCallable$g = function (argument) {
245
+ var isCallable$h = $documentAll$1.IS_HTMLDDA ? function (argument) {
246
+ return typeof argument == 'function' || argument === documentAll$1;
247
+ } : function (argument) {
231
248
  return typeof argument == 'function';
232
249
  };
233
250
 
234
- var global$q = global$w;
235
- var isCallable$f = isCallable$g;
251
+ var global$c = global$f;
252
+ var isCallable$g = isCallable$h;
236
253
 
237
254
  var aFunction = function (argument) {
238
- return isCallable$f(argument) ? argument : undefined;
255
+ return isCallable$g(argument) ? argument : undefined;
239
256
  };
240
257
 
241
258
  var getBuiltIn$4 = function (namespace, method) {
242
- return arguments.length < 2 ? aFunction(global$q[namespace]) : global$q[namespace] && global$q[namespace][method];
259
+ return arguments.length < 2 ? aFunction(global$c[namespace]) : global$c[namespace] && global$c[namespace][method];
243
260
  };
244
261
 
245
262
  var getBuiltIn$3 = getBuiltIn$4;
246
263
 
247
264
  var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
248
265
 
249
- var global$p = global$w;
266
+ var global$b = global$f;
250
267
  var userAgent = engineUserAgent;
251
268
 
252
- var process = global$p.process;
253
- var Deno = global$p.Deno;
269
+ var process = global$b.process;
270
+ var Deno = global$b.Deno;
254
271
  var versions = process && process.versions || Deno && Deno.version;
255
272
  var v8 = versions && versions.v8;
256
273
  var match, version;
@@ -277,10 +294,10 @@ var engineV8Version = version;
277
294
  /* eslint-disable es/no-symbol -- required for testing */
278
295
 
279
296
  var V8_VERSION = engineV8Version;
280
- var fails$d = fails$g;
297
+ var fails$e = fails$h;
281
298
 
282
299
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
283
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$d(function () {
300
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
284
301
  var symbol = Symbol();
285
302
  // Chrome 38 Symbol has incorrect toString conversion
286
303
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -291,21 +308,21 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$d(function () {
291
308
 
292
309
  /* eslint-disable es/no-symbol -- required for testing */
293
310
 
294
- var NATIVE_SYMBOL$1 = nativeSymbol;
311
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
295
312
 
296
313
  var useSymbolAsUid = NATIVE_SYMBOL$1
297
314
  && !Symbol.sham
298
315
  && typeof Symbol.iterator == 'symbol';
299
316
 
300
- var global$o = global$w;
317
+ var global$a = global$f;
301
318
  var shared$3 = shared$4.exports;
302
319
  var hasOwn$8 = hasOwnProperty_1;
303
320
  var uid$1 = uid$2;
304
- var NATIVE_SYMBOL = nativeSymbol;
321
+ var NATIVE_SYMBOL = symbolConstructorDetection;
305
322
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
306
323
 
307
324
  var WellKnownSymbolsStore = shared$3('wks');
308
- var Symbol$1 = global$o.Symbol;
325
+ var Symbol$1 = global$a.Symbol;
309
326
  var symbolFor = Symbol$1 && Symbol$1['for'];
310
327
  var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
311
328
 
@@ -322,40 +339,44 @@ var wellKnownSymbol$a = function (name) {
322
339
  } return WellKnownSymbolsStore[name];
323
340
  };
324
341
 
325
- var isCallable$e = isCallable$g;
342
+ var isCallable$f = isCallable$h;
343
+ var $documentAll = documentAll_1;
344
+
345
+ var documentAll = $documentAll.all;
326
346
 
327
- var isObject$5 = function (it) {
328
- return typeof it == 'object' ? it !== null : isCallable$e(it);
347
+ var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
348
+ return typeof it == 'object' ? it !== null : isCallable$f(it) || it === documentAll;
349
+ } : function (it) {
350
+ return typeof it == 'object' ? it !== null : isCallable$f(it);
329
351
  };
330
352
 
331
- var global$n = global$w;
332
- var isObject$4 = isObject$5;
353
+ var isObject$5 = isObject$6;
333
354
 
334
- var String$4 = global$n.String;
335
- var TypeError$9 = global$n.TypeError;
355
+ var $String$3 = String;
356
+ var $TypeError$7 = TypeError;
336
357
 
337
358
  // `Assert: Type(argument) is Object`
338
359
  var anObject$8 = function (argument) {
339
- if (isObject$4(argument)) return argument;
340
- throw TypeError$9(String$4(argument) + ' is not an object');
360
+ if (isObject$5(argument)) return argument;
361
+ throw $TypeError$7($String$3(argument) + ' is not an object');
341
362
  };
342
363
 
343
364
  var objectDefineProperties = {};
344
365
 
345
- var fails$c = fails$g;
366
+ var fails$d = fails$h;
346
367
 
347
368
  // Detect IE8's incomplete defineProperty implementation
348
- var descriptors = !fails$c(function () {
369
+ var descriptors = !fails$d(function () {
349
370
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
350
371
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
351
372
  });
352
373
 
353
- var DESCRIPTORS$8 = descriptors;
354
- var fails$b = fails$g;
374
+ var DESCRIPTORS$9 = descriptors;
375
+ var fails$c = fails$h;
355
376
 
356
377
  // V8 ~ Chrome 36-
357
378
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
358
- var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$b(function () {
379
+ var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$c(function () {
359
380
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
360
381
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
361
382
  value: 42,
@@ -365,23 +386,23 @@ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$b(function () {
365
386
 
366
387
  var objectDefineProperty = {};
367
388
 
368
- var global$m = global$w;
369
- var isObject$3 = isObject$5;
389
+ var global$9 = global$f;
390
+ var isObject$4 = isObject$6;
370
391
 
371
- var document$1 = global$m.document;
392
+ var document$1 = global$9.document;
372
393
  // typeof document.createElement is 'object' in old IE
373
- var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
394
+ var EXISTS$1 = isObject$4(document$1) && isObject$4(document$1.createElement);
374
395
 
375
396
  var documentCreateElement$2 = function (it) {
376
397
  return EXISTS$1 ? document$1.createElement(it) : {};
377
398
  };
378
399
 
379
- var DESCRIPTORS$7 = descriptors;
380
- var fails$a = fails$g;
400
+ var DESCRIPTORS$8 = descriptors;
401
+ var fails$b = fails$h;
381
402
  var createElement = documentCreateElement$2;
382
403
 
383
404
  // Thanks to IE8 for its funny defineProperty
384
- var ie8DomDefine = !DESCRIPTORS$7 && !fails$a(function () {
405
+ var ie8DomDefine = !DESCRIPTORS$8 && !fails$b(function () {
385
406
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
386
407
  return Object.defineProperty(createElement('div'), 'a', {
387
408
  get: function () { return 7; }
@@ -400,93 +421,88 @@ var uncurryThis$b = functionUncurryThis;
400
421
 
401
422
  var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
402
423
 
403
- var global$l = global$w;
404
424
  var getBuiltIn$2 = getBuiltIn$4;
405
- var isCallable$d = isCallable$g;
425
+ var isCallable$e = isCallable$h;
406
426
  var isPrototypeOf = objectIsPrototypeOf;
407
427
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
408
428
 
409
- var Object$3 = global$l.Object;
429
+ var $Object$2 = Object;
410
430
 
411
431
  var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
412
432
  return typeof it == 'symbol';
413
433
  } : function (it) {
414
434
  var $Symbol = getBuiltIn$2('Symbol');
415
- return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
435
+ return isCallable$e($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
416
436
  };
417
437
 
418
- var global$k = global$w;
419
-
420
- var String$3 = global$k.String;
438
+ var $String$2 = String;
421
439
 
422
440
  var tryToString$1 = function (argument) {
423
441
  try {
424
- return String$3(argument);
442
+ return $String$2(argument);
425
443
  } catch (error) {
426
444
  return 'Object';
427
445
  }
428
446
  };
429
447
 
430
- var global$j = global$w;
431
- var isCallable$c = isCallable$g;
448
+ var isCallable$d = isCallable$h;
432
449
  var tryToString = tryToString$1;
433
450
 
434
- var TypeError$8 = global$j.TypeError;
451
+ var $TypeError$6 = TypeError;
435
452
 
436
453
  // `Assert: IsCallable(argument) is true`
437
454
  var aCallable$2 = function (argument) {
438
- if (isCallable$c(argument)) return argument;
439
- throw TypeError$8(tryToString(argument) + ' is not a function');
455
+ if (isCallable$d(argument)) return argument;
456
+ throw $TypeError$6(tryToString(argument) + ' is not a function');
440
457
  };
441
458
 
442
459
  var aCallable$1 = aCallable$2;
460
+ var isNullOrUndefined$1 = isNullOrUndefined$3;
443
461
 
444
462
  // `GetMethod` abstract operation
445
463
  // https://tc39.es/ecma262/#sec-getmethod
446
464
  var getMethod$2 = function (V, P) {
447
465
  var func = V[P];
448
- return func == null ? undefined : aCallable$1(func);
466
+ return isNullOrUndefined$1(func) ? undefined : aCallable$1(func);
449
467
  };
450
468
 
451
- var global$i = global$w;
452
469
  var call$8 = functionCall;
453
- var isCallable$b = isCallable$g;
454
- var isObject$2 = isObject$5;
470
+ var isCallable$c = isCallable$h;
471
+ var isObject$3 = isObject$6;
455
472
 
456
- var TypeError$7 = global$i.TypeError;
473
+ var $TypeError$5 = TypeError;
457
474
 
458
475
  // `OrdinaryToPrimitive` abstract operation
459
476
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
460
477
  var ordinaryToPrimitive$1 = function (input, pref) {
461
478
  var fn, val;
462
- if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$2(val = call$8(fn, input))) return val;
463
- if (isCallable$b(fn = input.valueOf) && !isObject$2(val = call$8(fn, input))) return val;
464
- if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$2(val = call$8(fn, input))) return val;
465
- throw TypeError$7("Can't convert object to primitive value");
479
+ if (pref === 'string' && isCallable$c(fn = input.toString) && !isObject$3(val = call$8(fn, input))) return val;
480
+ if (isCallable$c(fn = input.valueOf) && !isObject$3(val = call$8(fn, input))) return val;
481
+ if (pref !== 'string' && isCallable$c(fn = input.toString) && !isObject$3(val = call$8(fn, input))) return val;
482
+ throw $TypeError$5("Can't convert object to primitive value");
466
483
  };
467
484
 
468
- var global$h = global$w;
469
485
  var call$7 = functionCall;
470
- var isObject$1 = isObject$5;
486
+ var isObject$2 = isObject$6;
471
487
  var isSymbol$1 = isSymbol$2;
472
488
  var getMethod$1 = getMethod$2;
473
489
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
474
490
  var wellKnownSymbol$9 = wellKnownSymbol$a;
475
491
 
476
- var TypeError$6 = global$h.TypeError;
492
+ var $TypeError$4 = TypeError;
477
493
  var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
478
494
 
479
495
  // `ToPrimitive` abstract operation
480
496
  // https://tc39.es/ecma262/#sec-toprimitive
481
497
  var toPrimitive$1 = function (input, pref) {
482
- if (!isObject$1(input) || isSymbol$1(input)) return input;
498
+ if (!isObject$2(input) || isSymbol$1(input)) return input;
483
499
  var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
484
500
  var result;
485
501
  if (exoticToPrim) {
486
502
  if (pref === undefined) pref = 'default';
487
503
  result = call$7(exoticToPrim, input, pref);
488
- if (!isObject$1(result) || isSymbol$1(result)) return result;
489
- throw TypeError$6("Can't convert object to primitive value");
504
+ if (!isObject$2(result) || isSymbol$1(result)) return result;
505
+ throw $TypeError$4("Can't convert object to primitive value");
490
506
  }
491
507
  if (pref === undefined) pref = 'number';
492
508
  return ordinaryToPrimitive(input, pref);
@@ -502,14 +518,13 @@ var toPropertyKey$2 = function (argument) {
502
518
  return isSymbol(key) ? key : key + '';
503
519
  };
504
520
 
505
- var global$g = global$w;
506
- var DESCRIPTORS$6 = descriptors;
521
+ var DESCRIPTORS$7 = descriptors;
507
522
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
508
523
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
509
524
  var anObject$7 = anObject$8;
510
525
  var toPropertyKey$1 = toPropertyKey$2;
511
526
 
512
- var TypeError$5 = global$g.TypeError;
527
+ var $TypeError$3 = TypeError;
513
528
  // eslint-disable-next-line es/no-object-defineproperty -- safe
514
529
  var $defineProperty = Object.defineProperty;
515
530
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -520,7 +535,7 @@ var WRITABLE = 'writable';
520
535
 
521
536
  // `Object.defineProperty` method
522
537
  // https://tc39.es/ecma262/#sec-object.defineproperty
523
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
538
+ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
524
539
  anObject$7(O);
525
540
  P = toPropertyKey$1(P);
526
541
  anObject$7(Attributes);
@@ -542,7 +557,7 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
542
557
  if (IE8_DOM_DEFINE$1) try {
543
558
  return $defineProperty(O, P, Attributes);
544
559
  } catch (error) { /* empty */ }
545
- if ('get' in Attributes || 'set' in Attributes) throw TypeError$5('Accessors not supported');
560
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError$3('Accessors not supported');
546
561
  if ('value' in Attributes) O[P] = Attributes.value;
547
562
  return O;
548
563
  };
@@ -550,12 +565,22 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
550
565
  var ceil = Math.ceil;
551
566
  var floor$1 = Math.floor;
552
567
 
568
+ // `Math.trunc` method
569
+ // https://tc39.es/ecma262/#sec-math.trunc
570
+ // eslint-disable-next-line es/no-math-trunc -- safe
571
+ var mathTrunc = Math.trunc || function trunc(x) {
572
+ var n = +x;
573
+ return (n > 0 ? floor$1 : ceil)(n);
574
+ };
575
+
576
+ var trunc = mathTrunc;
577
+
553
578
  // `ToIntegerOrInfinity` abstract operation
554
579
  // https://tc39.es/ecma262/#sec-tointegerorinfinity
555
580
  var toIntegerOrInfinity$4 = function (argument) {
556
581
  var number = +argument;
557
- // eslint-disable-next-line no-self-compare -- safe
558
- return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
582
+ // eslint-disable-next-line no-self-compare -- NaN check
583
+ return number !== number || number === 0 ? 0 : trunc(number);
559
584
  };
560
585
 
561
586
  var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
@@ -666,7 +691,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
666
691
  return internalObjectKeys$1(O, enumBugKeys$2);
667
692
  };
668
693
 
669
- var DESCRIPTORS$5 = descriptors;
694
+ var DESCRIPTORS$6 = descriptors;
670
695
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
671
696
  var definePropertyModule$3 = objectDefineProperty;
672
697
  var anObject$6 = anObject$8;
@@ -676,7 +701,7 @@ var objectKeys$1 = objectKeys$2;
676
701
  // `Object.defineProperties` method
677
702
  // https://tc39.es/ecma262/#sec-object.defineproperties
678
703
  // eslint-disable-next-line es/no-object-defineproperties -- safe
679
- objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
704
+ objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
680
705
  anObject$6(O);
681
706
  var props = toIndexedObject$2(Properties);
682
707
  var keys = objectKeys$1(Properties);
@@ -772,6 +797,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
772
797
 
773
798
  // `Object.create` method
774
799
  // https://tc39.es/ecma262/#sec-object.create
800
+ // eslint-disable-next-line es/no-object-create -- safe
775
801
  var objectCreate = Object.create || function create(O, Properties) {
776
802
  var result;
777
803
  if (O !== null) {
@@ -786,7 +812,7 @@ var objectCreate = Object.create || function create(O, Properties) {
786
812
 
787
813
  var wellKnownSymbol$8 = wellKnownSymbol$a;
788
814
  var create$2 = objectCreate;
789
- var definePropertyModule$2 = objectDefineProperty;
815
+ var defineProperty$4 = objectDefineProperty.f;
790
816
 
791
817
  var UNSCOPABLES = wellKnownSymbol$8('unscopables');
792
818
  var ArrayPrototype = Array.prototype;
@@ -794,7 +820,7 @@ var ArrayPrototype = Array.prototype;
794
820
  // Array.prototype[@@unscopables]
795
821
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
796
822
  if (ArrayPrototype[UNSCOPABLES] == undefined) {
797
- definePropertyModule$2.f(ArrayPrototype, UNSCOPABLES, {
823
+ defineProperty$4(ArrayPrototype, UNSCOPABLES, {
798
824
  configurable: true,
799
825
  value: create$2(null)
800
826
  });
@@ -807,28 +833,12 @@ var addToUnscopables$1 = function (key) {
807
833
 
808
834
  var iterators = {};
809
835
 
810
- var uncurryThis$9 = functionUncurryThis;
811
- var isCallable$a = isCallable$g;
812
- var store$1 = sharedStore;
836
+ var global$8 = global$f;
837
+ var isCallable$b = isCallable$h;
813
838
 
814
- var functionToString = uncurryThis$9(Function.toString);
815
-
816
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
817
- if (!isCallable$a(store$1.inspectSource)) {
818
- store$1.inspectSource = function (it) {
819
- return functionToString(it);
820
- };
821
- }
822
-
823
- var inspectSource$2 = store$1.inspectSource;
824
-
825
- var global$f = global$w;
826
- var isCallable$9 = isCallable$g;
827
- var inspectSource$1 = inspectSource$2;
839
+ var WeakMap$1 = global$8.WeakMap;
828
840
 
829
- var WeakMap$1 = global$f.WeakMap;
830
-
831
- var nativeWeakMap = isCallable$9(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
841
+ var weakMapBasicDetection = isCallable$b(WeakMap$1) && /native code/.test(String(WeakMap$1));
832
842
 
833
843
  var createPropertyDescriptor$3 = function (bitmap, value) {
834
844
  return {
@@ -839,30 +849,29 @@ var createPropertyDescriptor$3 = function (bitmap, value) {
839
849
  };
840
850
  };
841
851
 
842
- var DESCRIPTORS$4 = descriptors;
843
- var definePropertyModule$1 = objectDefineProperty;
852
+ var DESCRIPTORS$5 = descriptors;
853
+ var definePropertyModule$2 = objectDefineProperty;
844
854
  var createPropertyDescriptor$2 = createPropertyDescriptor$3;
845
855
 
846
- var createNonEnumerableProperty$6 = DESCRIPTORS$4 ? function (object, key, value) {
847
- return definePropertyModule$1.f(object, key, createPropertyDescriptor$2(1, value));
856
+ var createNonEnumerableProperty$5 = DESCRIPTORS$5 ? function (object, key, value) {
857
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
848
858
  } : function (object, key, value) {
849
859
  object[key] = value;
850
860
  return object;
851
861
  };
852
862
 
853
- var NATIVE_WEAK_MAP = nativeWeakMap;
854
- var global$e = global$w;
855
- var uncurryThis$8 = functionUncurryThis;
856
- var isObject = isObject$5;
857
- var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
863
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
864
+ var global$7 = global$f;
865
+ var isObject$1 = isObject$6;
866
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
858
867
  var hasOwn$6 = hasOwnProperty_1;
859
868
  var shared$1 = sharedStore;
860
869
  var sharedKey$1 = sharedKey$3;
861
870
  var hiddenKeys$1 = hiddenKeys$4;
862
871
 
863
872
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
864
- var TypeError$4 = global$e.TypeError;
865
- var WeakMap = global$e.WeakMap;
873
+ var TypeError$1 = global$7.TypeError;
874
+ var WeakMap = global$7.WeakMap;
866
875
  var set, get, has;
867
876
 
868
877
  var enforce = function (it) {
@@ -872,36 +881,38 @@ var enforce = function (it) {
872
881
  var getterFor = function (TYPE) {
873
882
  return function (it) {
874
883
  var state;
875
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
876
- throw TypeError$4('Incompatible receiver, ' + TYPE + ' required');
884
+ if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
885
+ throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
877
886
  } return state;
878
887
  };
879
888
  };
880
889
 
881
890
  if (NATIVE_WEAK_MAP || shared$1.state) {
882
- var store = shared$1.state || (shared$1.state = new WeakMap());
883
- var wmget = uncurryThis$8(store.get);
884
- var wmhas = uncurryThis$8(store.has);
885
- var wmset = uncurryThis$8(store.set);
891
+ var store$1 = shared$1.state || (shared$1.state = new WeakMap());
892
+ /* eslint-disable no-self-assign -- prototype methods protection */
893
+ store$1.get = store$1.get;
894
+ store$1.has = store$1.has;
895
+ store$1.set = store$1.set;
896
+ /* eslint-enable no-self-assign -- prototype methods protection */
886
897
  set = function (it, metadata) {
887
- if (wmhas(store, it)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
898
+ if (store$1.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
888
899
  metadata.facade = it;
889
- wmset(store, it, metadata);
900
+ store$1.set(it, metadata);
890
901
  return metadata;
891
902
  };
892
903
  get = function (it) {
893
- return wmget(store, it) || {};
904
+ return store$1.get(it) || {};
894
905
  };
895
906
  has = function (it) {
896
- return wmhas(store, it);
907
+ return store$1.has(it);
897
908
  };
898
909
  } else {
899
910
  var STATE = sharedKey$1('state');
900
911
  hiddenKeys$1[STATE] = true;
901
912
  set = function (it, metadata) {
902
- if (hasOwn$6(it, STATE)) throw new TypeError$4(OBJECT_ALREADY_INITIALIZED);
913
+ if (hasOwn$6(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
903
914
  metadata.facade = it;
904
- createNonEnumerableProperty$5(it, STATE, metadata);
915
+ createNonEnumerableProperty$4(it, STATE, metadata);
905
916
  return metadata;
906
917
  };
907
918
  get = function (it) {
@@ -938,7 +949,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
938
949
  return !!descriptor && descriptor.enumerable;
939
950
  } : $propertyIsEnumerable;
940
951
 
941
- var DESCRIPTORS$3 = descriptors;
952
+ var DESCRIPTORS$4 = descriptors;
942
953
  var call$6 = functionCall;
943
954
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
944
955
  var createPropertyDescriptor$1 = createPropertyDescriptor$3;
@@ -952,7 +963,7 @@ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
952
963
 
953
964
  // `Object.getOwnPropertyDescriptor` method
954
965
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
955
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
966
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
956
967
  O = toIndexedObject$1(O);
957
968
  P = toPropertyKey(P);
958
969
  if (IE8_DOM_DEFINE) try {
@@ -961,19 +972,19 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : f
961
972
  if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$6(propertyIsEnumerableModule$1.f, O, P), O[P]);
962
973
  };
963
974
 
964
- var redefine$4 = {exports: {}};
975
+ var makeBuiltIn$2 = {exports: {}};
965
976
 
966
- var DESCRIPTORS$2 = descriptors;
977
+ var DESCRIPTORS$3 = descriptors;
967
978
  var hasOwn$4 = hasOwnProperty_1;
968
979
 
969
980
  var FunctionPrototype$1 = Function.prototype;
970
981
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
971
- var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
982
+ var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
972
983
 
973
984
  var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
974
985
  // additional protection from minified / mangled / dropped function names
975
986
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
976
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype$1, 'name').configurable));
987
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
977
988
 
978
989
  var functionName = {
979
990
  EXISTS: EXISTS,
@@ -981,52 +992,98 @@ var functionName = {
981
992
  CONFIGURABLE: CONFIGURABLE
982
993
  };
983
994
 
984
- var global$d = global$w;
985
- var isCallable$8 = isCallable$g;
995
+ var uncurryThis$9 = functionUncurryThis;
996
+ var isCallable$a = isCallable$h;
997
+ var store = sharedStore;
998
+
999
+ var functionToString = uncurryThis$9(Function.toString);
1000
+
1001
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
1002
+ if (!isCallable$a(store.inspectSource)) {
1003
+ store.inspectSource = function (it) {
1004
+ return functionToString(it);
1005
+ };
1006
+ }
1007
+
1008
+ var inspectSource$1 = store.inspectSource;
1009
+
1010
+ var fails$a = fails$h;
1011
+ var isCallable$9 = isCallable$h;
986
1012
  var hasOwn$3 = hasOwnProperty_1;
987
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
988
- var setGlobal$1 = setGlobal$3;
989
- var inspectSource = inspectSource$2;
990
- var InternalStateModule$1 = internalState;
1013
+ var DESCRIPTORS$2 = descriptors;
991
1014
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
1015
+ var inspectSource = inspectSource$1;
1016
+ var InternalStateModule$1 = internalState;
992
1017
 
993
- var getInternalState$2 = InternalStateModule$1.get;
994
1018
  var enforceInternalState = InternalStateModule$1.enforce;
1019
+ var getInternalState$2 = InternalStateModule$1.get;
1020
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1021
+ var defineProperty$3 = Object.defineProperty;
1022
+
1023
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$a(function () {
1024
+ return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
1025
+ });
1026
+
995
1027
  var TEMPLATE = String(String).split('String');
996
1028
 
997
- (redefine$4.exports = function (O, key, value, options) {
998
- var unsafe = options ? !!options.unsafe : false;
999
- var simple = options ? !!options.enumerable : false;
1000
- var noTargetGet = options ? !!options.noTargetGet : false;
1001
- var name = options && options.name !== undefined ? options.name : key;
1002
- var state;
1003
- if (isCallable$8(value)) {
1004
- if (String(name).slice(0, 7) === 'Symbol(') {
1005
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
1006
- }
1007
- if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
1008
- createNonEnumerableProperty$4(value, 'name', name);
1009
- }
1010
- state = enforceInternalState(value);
1011
- if (!state.source) {
1012
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
1013
- }
1029
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
1030
+ if (String(name).slice(0, 7) === 'Symbol(') {
1031
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
1014
1032
  }
1015
- if (O === global$d) {
1016
- if (simple) O[key] = value;
1017
- else setGlobal$1(key, value);
1018
- return;
1019
- } else if (!unsafe) {
1020
- delete O[key];
1021
- } else if (!noTargetGet && O[key]) {
1022
- simple = true;
1033
+ if (options && options.getter) name = 'get ' + name;
1034
+ if (options && options.setter) name = 'set ' + name;
1035
+ if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
1036
+ if (DESCRIPTORS$2) defineProperty$3(value, 'name', { value: name, configurable: true });
1037
+ else value.name = name;
1023
1038
  }
1024
- if (simple) O[key] = value;
1025
- else createNonEnumerableProperty$4(O, key, value);
1039
+ if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
1040
+ defineProperty$3(value, 'length', { value: options.arity });
1041
+ }
1042
+ try {
1043
+ if (options && hasOwn$3(options, 'constructor') && options.constructor) {
1044
+ if (DESCRIPTORS$2) defineProperty$3(value, 'prototype', { writable: false });
1045
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
1046
+ } else if (value.prototype) value.prototype = undefined;
1047
+ } catch (error) { /* empty */ }
1048
+ var state = enforceInternalState(value);
1049
+ if (!hasOwn$3(state, 'source')) {
1050
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
1051
+ } return value;
1052
+ };
1053
+
1026
1054
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1027
- })(Function.prototype, 'toString', function toString() {
1028
- return isCallable$8(this) && getInternalState$2(this).source || inspectSource(this);
1029
- });
1055
+ // eslint-disable-next-line no-extend-native -- required
1056
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
1057
+ return isCallable$9(this) && getInternalState$2(this).source || inspectSource(this);
1058
+ }, 'toString');
1059
+
1060
+ var isCallable$8 = isCallable$h;
1061
+ var definePropertyModule$1 = objectDefineProperty;
1062
+ var makeBuiltIn = makeBuiltIn$2.exports;
1063
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
1064
+
1065
+ var defineBuiltIn$4 = function (O, key, value, options) {
1066
+ if (!options) options = {};
1067
+ var simple = options.enumerable;
1068
+ var name = options.name !== undefined ? options.name : key;
1069
+ if (isCallable$8(value)) makeBuiltIn(value, name, options);
1070
+ if (options.global) {
1071
+ if (simple) O[key] = value;
1072
+ else defineGlobalProperty$1(key, value);
1073
+ } else {
1074
+ try {
1075
+ if (!options.unsafe) delete O[key];
1076
+ else if (O[key]) simple = true;
1077
+ } catch (error) { /* empty */ }
1078
+ if (simple) O[key] = value;
1079
+ else definePropertyModule$1.f(O, key, {
1080
+ value: value,
1081
+ enumerable: false,
1082
+ configurable: !options.nonConfigurable,
1083
+ writable: !options.nonWritable
1084
+ });
1085
+ } return O;
1086
+ };
1030
1087
 
1031
1088
  var objectGetOwnPropertyNames = {};
1032
1089
 
@@ -1048,12 +1105,12 @@ var objectGetOwnPropertySymbols = {};
1048
1105
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1049
1106
 
1050
1107
  var getBuiltIn = getBuiltIn$4;
1051
- var uncurryThis$7 = functionUncurryThis;
1108
+ var uncurryThis$8 = functionUncurryThis;
1052
1109
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1053
1110
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1054
1111
  var anObject$4 = anObject$8;
1055
1112
 
1056
- var concat$2 = uncurryThis$7([].concat);
1113
+ var concat$2 = uncurryThis$8([].concat);
1057
1114
 
1058
1115
  // all object keys, includes non-enumerable and symbols
1059
1116
  var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
@@ -1079,8 +1136,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
1079
1136
  }
1080
1137
  };
1081
1138
 
1082
- var fails$9 = fails$g;
1083
- var isCallable$7 = isCallable$g;
1139
+ var fails$9 = fails$h;
1140
+ var isCallable$7 = isCallable$h;
1084
1141
 
1085
1142
  var replacement = /#|\.prototype\./;
1086
1143
 
@@ -1102,28 +1159,28 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
1102
1159
 
1103
1160
  var isForced_1 = isForced$1;
1104
1161
 
1105
- var global$c = global$w;
1162
+ var global$6 = global$f;
1106
1163
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1107
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$6;
1108
- var redefine$3 = redefine$4.exports;
1109
- var setGlobal = setGlobal$3;
1164
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
1165
+ var defineBuiltIn$3 = defineBuiltIn$4;
1166
+ var defineGlobalProperty = defineGlobalProperty$3;
1110
1167
  var copyConstructorProperties = copyConstructorProperties$1;
1111
1168
  var isForced = isForced_1;
1112
1169
 
1113
1170
  /*
1114
- options.target - name of the target object
1115
- options.global - target is the global object
1116
- options.stat - export as static methods of target
1117
- options.proto - export as prototype methods of target
1118
- options.real - real prototype method for the `pure` version
1119
- options.forced - export even if the native feature is available
1120
- options.bind - bind methods to the target, required for the `pure` version
1121
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1122
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
1123
- options.sham - add a flag to not completely full polyfills
1124
- options.enumerable - export as enumerable property
1125
- options.noTargetGet - prevent calling a getter on target
1126
- options.name - the .name of the function if it does not match the key
1171
+ options.target - name of the target object
1172
+ options.global - target is the global object
1173
+ options.stat - export as static methods of target
1174
+ options.proto - export as prototype methods of target
1175
+ options.real - real prototype method for the `pure` version
1176
+ options.forced - export even if the native feature is available
1177
+ options.bind - bind methods to the target, required for the `pure` version
1178
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1179
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1180
+ options.sham - add a flag to not completely full polyfills
1181
+ options.enumerable - export as enumerable property
1182
+ options.dontCallGetSet - prevent calling a getter on target
1183
+ options.name - the .name of the function if it does not match the key
1127
1184
  */
1128
1185
  var _export = function (options, source) {
1129
1186
  var TARGET = options.target;
@@ -1131,15 +1188,15 @@ var _export = function (options, source) {
1131
1188
  var STATIC = options.stat;
1132
1189
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1133
1190
  if (GLOBAL) {
1134
- target = global$c;
1191
+ target = global$6;
1135
1192
  } else if (STATIC) {
1136
- target = global$c[TARGET] || setGlobal(TARGET, {});
1193
+ target = global$6[TARGET] || defineGlobalProperty(TARGET, {});
1137
1194
  } else {
1138
- target = (global$c[TARGET] || {}).prototype;
1195
+ target = (global$6[TARGET] || {}).prototype;
1139
1196
  }
1140
1197
  if (target) for (key in source) {
1141
1198
  sourceProperty = source[key];
1142
- if (options.noTargetGet) {
1199
+ if (options.dontCallGetSet) {
1143
1200
  descriptor = getOwnPropertyDescriptor(target, key);
1144
1201
  targetProperty = descriptor && descriptor.value;
1145
1202
  } else targetProperty = target[key];
@@ -1153,12 +1210,11 @@ var _export = function (options, source) {
1153
1210
  if (options.sham || (targetProperty && targetProperty.sham)) {
1154
1211
  createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1155
1212
  }
1156
- // extend global
1157
- redefine$3(target, key, sourceProperty, options);
1213
+ defineBuiltIn$3(target, key, sourceProperty, options);
1158
1214
  }
1159
1215
  };
1160
1216
 
1161
- var fails$8 = fails$g;
1217
+ var fails$8 = fails$h;
1162
1218
 
1163
1219
  var correctPrototypeGetter = !fails$8(function () {
1164
1220
  function F() { /* empty */ }
@@ -1167,32 +1223,33 @@ var correctPrototypeGetter = !fails$8(function () {
1167
1223
  return Object.getPrototypeOf(new F()) !== F.prototype;
1168
1224
  });
1169
1225
 
1170
- var global$b = global$w;
1171
1226
  var hasOwn$1 = hasOwnProperty_1;
1172
- var isCallable$6 = isCallable$g;
1227
+ var isCallable$6 = isCallable$h;
1173
1228
  var toObject$3 = toObject$5;
1174
1229
  var sharedKey = sharedKey$3;
1175
1230
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1176
1231
 
1177
1232
  var IE_PROTO = sharedKey('IE_PROTO');
1178
- var Object$2 = global$b.Object;
1179
- var ObjectPrototype = Object$2.prototype;
1233
+ var $Object$1 = Object;
1234
+ var ObjectPrototype = $Object$1.prototype;
1180
1235
 
1181
1236
  // `Object.getPrototypeOf` method
1182
1237
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1183
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$2.getPrototypeOf : function (O) {
1238
+ // eslint-disable-next-line es/no-object-getprototypeof -- safe
1239
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
1184
1240
  var object = toObject$3(O);
1185
1241
  if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1186
1242
  var constructor = object.constructor;
1187
1243
  if (isCallable$6(constructor) && object instanceof constructor) {
1188
1244
  return constructor.prototype;
1189
- } return object instanceof Object$2 ? ObjectPrototype : null;
1245
+ } return object instanceof $Object$1 ? ObjectPrototype : null;
1190
1246
  };
1191
1247
 
1192
- var fails$7 = fails$g;
1193
- var isCallable$5 = isCallable$g;
1248
+ var fails$7 = fails$h;
1249
+ var isCallable$5 = isCallable$h;
1250
+ var isObject = isObject$6;
1194
1251
  var getPrototypeOf$1 = objectGetPrototypeOf;
1195
- var redefine$2 = redefine$4.exports;
1252
+ var defineBuiltIn$2 = defineBuiltIn$4;
1196
1253
  var wellKnownSymbol$7 = wellKnownSymbol$a;
1197
1254
 
1198
1255
  var ITERATOR$2 = wellKnownSymbol$7('iterator');
@@ -1213,7 +1270,7 @@ if ([].keys) {
1213
1270
  }
1214
1271
  }
1215
1272
 
1216
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$7(function () {
1273
+ var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$7(function () {
1217
1274
  var test = {};
1218
1275
  // FF44- legacy iterators case
1219
1276
  return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
@@ -1224,7 +1281,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1224
1281
  // `%IteratorPrototype%[@@iterator]()` method
1225
1282
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1226
1283
  if (!isCallable$5(IteratorPrototype$2[ITERATOR$2])) {
1227
- redefine$2(IteratorPrototype$2, ITERATOR$2, function () {
1284
+ defineBuiltIn$2(IteratorPrototype$2, ITERATOR$2, function () {
1228
1285
  return this;
1229
1286
  });
1230
1287
  }
@@ -1255,7 +1312,7 @@ var Iterators$2 = iterators;
1255
1312
 
1256
1313
  var returnThis$1 = function () { return this; };
1257
1314
 
1258
- var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1315
+ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1259
1316
  var TO_STRING_TAG = NAME + ' Iterator';
1260
1317
  IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1261
1318
  setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
@@ -1263,20 +1320,19 @@ var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENU
1263
1320
  return IteratorConstructor;
1264
1321
  };
1265
1322
 
1266
- var global$a = global$w;
1267
- var isCallable$4 = isCallable$g;
1323
+ var isCallable$4 = isCallable$h;
1268
1324
 
1269
- var String$2 = global$a.String;
1270
- var TypeError$3 = global$a.TypeError;
1325
+ var $String$1 = String;
1326
+ var $TypeError$2 = TypeError;
1271
1327
 
1272
1328
  var aPossiblePrototype$1 = function (argument) {
1273
1329
  if (typeof argument == 'object' || isCallable$4(argument)) return argument;
1274
- throw TypeError$3("Can't set " + String$2(argument) + ' as a prototype');
1330
+ throw $TypeError$2("Can't set " + $String$1(argument) + ' as a prototype');
1275
1331
  };
1276
1332
 
1277
1333
  /* eslint-disable no-proto -- safe */
1278
1334
 
1279
- var uncurryThis$6 = functionUncurryThis;
1335
+ var uncurryThis$7 = functionUncurryThis;
1280
1336
  var anObject$3 = anObject$8;
1281
1337
  var aPossiblePrototype = aPossiblePrototype$1;
1282
1338
 
@@ -1290,7 +1346,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1290
1346
  var setter;
1291
1347
  try {
1292
1348
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1293
- setter = uncurryThis$6(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1349
+ setter = uncurryThis$7(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1294
1350
  setter(test, []);
1295
1351
  CORRECT_SETTER = test instanceof Array;
1296
1352
  } catch (error) { /* empty */ }
@@ -1306,13 +1362,13 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1306
1362
  var $$3 = _export;
1307
1363
  var call$5 = functionCall;
1308
1364
  var FunctionName = functionName;
1309
- var isCallable$3 = isCallable$g;
1310
- var createIteratorConstructor = createIteratorConstructor$1;
1365
+ var isCallable$3 = isCallable$h;
1366
+ var createIteratorConstructor = iteratorCreateConstructor;
1311
1367
  var getPrototypeOf = objectGetPrototypeOf;
1312
1368
  var setPrototypeOf = objectSetPrototypeOf;
1313
1369
  var setToStringTag = setToStringTag$2;
1314
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
1315
- var redefine$1 = redefine$4.exports;
1370
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1371
+ var defineBuiltIn$1 = defineBuiltIn$4;
1316
1372
  var wellKnownSymbol$5 = wellKnownSymbol$a;
1317
1373
  var Iterators$1 = iterators;
1318
1374
  var IteratorsCore = iteratorsCore;
@@ -1328,7 +1384,7 @@ var ENTRIES = 'entries';
1328
1384
 
1329
1385
  var returnThis = function () { return this; };
1330
1386
 
1331
- var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1387
+ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1332
1388
  createIteratorConstructor(IteratorConstructor, NAME, next);
1333
1389
 
1334
1390
  var getIterationMethod = function (KIND) {
@@ -1359,7 +1415,7 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1359
1415
  if (setPrototypeOf) {
1360
1416
  setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1361
1417
  } else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$1])) {
1362
- redefine$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1418
+ defineBuiltIn$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1363
1419
  }
1364
1420
  }
1365
1421
  // Set @@toStringTag to native iterators
@@ -1386,26 +1442,33 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1386
1442
  };
1387
1443
  if (FORCED) for (KEY in methods) {
1388
1444
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1389
- redefine$1(IterablePrototype, KEY, methods[KEY]);
1445
+ defineBuiltIn$1(IterablePrototype, KEY, methods[KEY]);
1390
1446
  }
1391
1447
  } else $$3({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1392
1448
  }
1393
1449
 
1394
1450
  // define iterator
1395
1451
  if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1396
- redefine$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1452
+ defineBuiltIn$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1397
1453
  }
1398
1454
  Iterators$1[NAME] = defaultIterator;
1399
1455
 
1400
1456
  return methods;
1401
1457
  };
1402
1458
 
1459
+ // `CreateIterResultObject` abstract operation
1460
+ // https://tc39.es/ecma262/#sec-createiterresultobject
1461
+ var createIterResultObject$1 = function (value, done) {
1462
+ return { value: value, done: done };
1463
+ };
1464
+
1403
1465
  var toIndexedObject = toIndexedObject$5;
1404
1466
  var addToUnscopables = addToUnscopables$1;
1405
1467
  var Iterators = iterators;
1406
1468
  var InternalStateModule = internalState;
1407
1469
  var defineProperty$1 = objectDefineProperty.f;
1408
- var defineIterator = defineIterator$1;
1470
+ var defineIterator = iteratorDefine;
1471
+ var createIterResultObject = createIterResultObject$1;
1409
1472
  var DESCRIPTORS$1 = descriptors;
1410
1473
 
1411
1474
  var ARRAY_ITERATOR = 'Array Iterator';
@@ -1438,11 +1501,11 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1438
1501
  var index = state.index++;
1439
1502
  if (!target || index >= target.length) {
1440
1503
  state.target = undefined;
1441
- return { value: undefined, done: true };
1504
+ return createIterResultObject(undefined, true);
1442
1505
  }
1443
- if (kind == 'keys') return { value: index, done: false };
1444
- if (kind == 'values') return { value: target[index], done: false };
1445
- return { value: [index, target[index]], done: false };
1506
+ if (kind == 'keys') return createIterResultObject(index, false);
1507
+ if (kind == 'values') return createIterResultObject(target[index], false);
1508
+ return createIterResultObject([index, target[index]], false);
1446
1509
  }, 'values');
1447
1510
 
1448
1511
  // argumentsList[@@iterator] is %ArrayProto_values%
@@ -1504,11 +1567,11 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1504
1567
 
1505
1568
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1506
1569
 
1507
- var global$9 = global$w;
1570
+ var global$5 = global$f;
1508
1571
  var DOMIterables = domIterables;
1509
1572
  var DOMTokenListPrototype = domTokenListPrototype;
1510
1573
  var ArrayIteratorMethods = es_array_iterator;
1511
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
1574
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1512
1575
  var wellKnownSymbol$4 = wellKnownSymbol$a;
1513
1576
 
1514
1577
  var ITERATOR = wellKnownSymbol$4('iterator');
@@ -1538,15 +1601,15 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1538
1601
  };
1539
1602
 
1540
1603
  for (var COLLECTION_NAME in DOMIterables) {
1541
- handlePrototype(global$9[COLLECTION_NAME] && global$9[COLLECTION_NAME].prototype, COLLECTION_NAME);
1604
+ handlePrototype(global$5[COLLECTION_NAME] && global$5[COLLECTION_NAME].prototype, COLLECTION_NAME);
1542
1605
  }
1543
1606
 
1544
1607
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1545
1608
 
1546
1609
  var DESCRIPTORS = descriptors;
1547
- var uncurryThis$5 = functionUncurryThis;
1610
+ var uncurryThis$6 = functionUncurryThis;
1548
1611
  var call$4 = functionCall;
1549
- var fails$6 = fails$g;
1612
+ var fails$6 = fails$h;
1550
1613
  var objectKeys = objectKeys$2;
1551
1614
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1552
1615
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -1557,7 +1620,7 @@ var IndexedObject$1 = indexedObject;
1557
1620
  var $assign = Object.assign;
1558
1621
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1559
1622
  var defineProperty = Object.defineProperty;
1560
- var concat$1 = uncurryThis$5([].concat);
1623
+ var concat$1 = uncurryThis$6([].concat);
1561
1624
 
1562
1625
  // `Object.assign` method
1563
1626
  // https://tc39.es/ecma262/#sec-object.assign
@@ -1606,7 +1669,7 @@ var assign = objectAssign;
1606
1669
  // `Object.assign` method
1607
1670
  // https://tc39.es/ecma262/#sec-object.assign
1608
1671
  // eslint-disable-next-line es/no-object-assign -- required for testing
1609
- $$2({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
1672
+ $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1610
1673
  assign: assign
1611
1674
  });
1612
1675
 
@@ -1620,7 +1683,6 @@ const useProfile = () => {
1620
1683
  * This behaviour occurred as the validation handling on the error property was not set properly in the "CreateProfile" and "UpdateProfile" endpoint types.
1621
1684
  * Furthermore, it was also observed, that it "only" occurred when the preview plugin was used in parallel.
1622
1685
  */
1623
-
1624
1686
  useEffect(() => {
1625
1687
  ninetailed.onProfileChange(profileState => {
1626
1688
  if (isEqual(profileState, profileStateRef.current)) {
@@ -1636,14 +1698,12 @@ const useProfile = () => {
1636
1698
  /**
1637
1699
  * Old implementation without profile state deep comparison
1638
1700
  */
1639
-
1640
1701
  /*useEffect(() => {
1641
1702
  return ninetailed.onProfileChange((profileState) => {
1642
1703
  console.log('profileState', profileState);
1643
1704
  setProfileState(profileState);
1644
1705
  });
1645
1706
  }, []);*/
1646
-
1647
1707
  return Object.assign(Object.assign({}, profileState), {
1648
1708
  loading: profileState.status === 'loading'
1649
1709
  });
@@ -1656,7 +1716,7 @@ const usePersonalize = (baseline, variants, options = {
1656
1716
  return selectVariant(baseline, variants, profile, options);
1657
1717
  };
1658
1718
 
1659
- /*! *****************************************************************************
1719
+ /******************************************************************************
1660
1720
  Copyright (c) Microsoft Corporation.
1661
1721
 
1662
1722
  Permission to use, copy, modify, and/or distribute this software for any
@@ -1710,15 +1770,15 @@ const TrackHasSeenComponent = ({
1710
1770
  }), children);
1711
1771
  };
1712
1772
 
1773
+ // eslint-disable-next-line @typescript-eslint/ban-types
1713
1774
  const Personalize = _a => {
1714
1775
  var {
1715
- component: Component,
1716
- loadingComponent: LoadingComponent,
1717
- variants = [],
1718
- holdout = -1
1719
- } = _a,
1720
- baseline = __rest(_a, ["component", "loadingComponent", "variants", "holdout"]);
1721
-
1776
+ component: Component,
1777
+ loadingComponent: LoadingComponent,
1778
+ variants = [],
1779
+ holdout = -1
1780
+ } = _a,
1781
+ baseline = __rest(_a, ["component", "loadingComponent", "variants", "holdout"]);
1722
1782
  const {
1723
1783
  loading,
1724
1784
  variant,
@@ -1728,7 +1788,6 @@ const Personalize = _a => {
1728
1788
  holdout
1729
1789
  });
1730
1790
  const hasVariants = variants.length > 0;
1731
-
1732
1791
  if (!hasVariants) {
1733
1792
  return /*#__PURE__*/React.createElement(Component, Object.assign({}, baseline, {
1734
1793
  ninetailed: {
@@ -1737,12 +1796,10 @@ const Personalize = _a => {
1737
1796
  }
1738
1797
  }));
1739
1798
  }
1740
-
1741
1799
  if (loading) {
1742
1800
  if (LoadingComponent) {
1743
1801
  return /*#__PURE__*/React.createElement(LoadingComponent, null);
1744
1802
  }
1745
-
1746
1803
  return /*#__PURE__*/React.createElement("div", {
1747
1804
  key: "hide",
1748
1805
  style: {
@@ -1755,7 +1812,6 @@ const Personalize = _a => {
1755
1812
  }
1756
1813
  })));
1757
1814
  }
1758
-
1759
1815
  return /*#__PURE__*/React.createElement(TrackHasSeenComponent, {
1760
1816
  variant: variant,
1761
1817
  audience: audience,
@@ -1778,17 +1834,16 @@ test[TO_STRING_TAG$1] = 'z';
1778
1834
 
1779
1835
  var toStringTagSupport = String(test) === '[object z]';
1780
1836
 
1781
- var global$8 = global$w;
1782
1837
  var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1783
- var isCallable$2 = isCallable$g;
1784
- var classofRaw = classofRaw$1;
1838
+ var isCallable$2 = isCallable$h;
1839
+ var classofRaw$1 = classofRaw$2;
1785
1840
  var wellKnownSymbol$2 = wellKnownSymbol$a;
1786
1841
 
1787
1842
  var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1788
- var Object$1 = global$8.Object;
1843
+ var $Object = Object;
1789
1844
 
1790
1845
  // ES3 wrong here
1791
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1846
+ var CORRECT_ARGUMENTS = classofRaw$1(function () { return arguments; }()) == 'Arguments';
1792
1847
 
1793
1848
  // fallback for IE11 Script Access Denied error
1794
1849
  var tryGet = function (it, key) {
@@ -1798,25 +1853,24 @@ var tryGet = function (it, key) {
1798
1853
  };
1799
1854
 
1800
1855
  // getting tag from ES6+ `Object.prototype.toString`
1801
- var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1856
+ var classof$3 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
1802
1857
  var O, tag, result;
1803
1858
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1804
1859
  // @@toStringTag case
1805
- : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
1860
+ : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1806
1861
  // builtinTag case
1807
- : CORRECT_ARGUMENTS ? classofRaw(O)
1862
+ : CORRECT_ARGUMENTS ? classofRaw$1(O)
1808
1863
  // ES3 arguments fallback
1809
- : (result = classofRaw(O)) == 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1864
+ : (result = classofRaw$1(O)) == 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1810
1865
  };
1811
1866
 
1812
- var global$7 = global$w;
1813
1867
  var classof$2 = classof$3;
1814
1868
 
1815
- var String$1 = global$7.String;
1869
+ var $String = String;
1816
1870
 
1817
1871
  var toString$3 = function (argument) {
1818
1872
  if (classof$2(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1819
- return String$1(argument);
1873
+ return $String(argument);
1820
1874
  };
1821
1875
 
1822
1876
  var anObject$2 = anObject$8;
@@ -1826,20 +1880,22 @@ var anObject$2 = anObject$8;
1826
1880
  var regexpFlags$1 = function () {
1827
1881
  var that = anObject$2(this);
1828
1882
  var result = '';
1883
+ if (that.hasIndices) result += 'd';
1829
1884
  if (that.global) result += 'g';
1830
1885
  if (that.ignoreCase) result += 'i';
1831
1886
  if (that.multiline) result += 'm';
1832
1887
  if (that.dotAll) result += 's';
1833
1888
  if (that.unicode) result += 'u';
1889
+ if (that.unicodeSets) result += 'v';
1834
1890
  if (that.sticky) result += 'y';
1835
1891
  return result;
1836
1892
  };
1837
1893
 
1838
- var fails$5 = fails$g;
1839
- var global$6 = global$w;
1894
+ var fails$5 = fails$h;
1895
+ var global$4 = global$f;
1840
1896
 
1841
1897
  // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1842
- var $RegExp$2 = global$6.RegExp;
1898
+ var $RegExp$2 = global$4.RegExp;
1843
1899
 
1844
1900
  var UNSUPPORTED_Y$1 = fails$5(function () {
1845
1901
  var re = $RegExp$2('a', 'y');
@@ -1866,22 +1922,22 @@ var regexpStickyHelpers = {
1866
1922
  UNSUPPORTED_Y: UNSUPPORTED_Y$1
1867
1923
  };
1868
1924
 
1869
- var fails$4 = fails$g;
1870
- var global$5 = global$w;
1925
+ var fails$4 = fails$h;
1926
+ var global$3 = global$f;
1871
1927
 
1872
1928
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1873
- var $RegExp$1 = global$5.RegExp;
1929
+ var $RegExp$1 = global$3.RegExp;
1874
1930
 
1875
1931
  var regexpUnsupportedDotAll = fails$4(function () {
1876
1932
  var re = $RegExp$1('.', 's');
1877
1933
  return !(re.dotAll && re.exec('\n') && re.flags === 's');
1878
1934
  });
1879
1935
 
1880
- var fails$3 = fails$g;
1881
- var global$4 = global$w;
1936
+ var fails$3 = fails$h;
1937
+ var global$2 = global$f;
1882
1938
 
1883
1939
  // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1884
- var $RegExp = global$4.RegExp;
1940
+ var $RegExp = global$2.RegExp;
1885
1941
 
1886
1942
  var regexpUnsupportedNcg = fails$3(function () {
1887
1943
  var re = $RegExp('(?<a>b)', 'g');
@@ -1892,7 +1948,7 @@ var regexpUnsupportedNcg = fails$3(function () {
1892
1948
  /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1893
1949
  /* eslint-disable regexp/no-useless-quantifier -- testing */
1894
1950
  var call$3 = functionCall;
1895
- var uncurryThis$4 = functionUncurryThis;
1951
+ var uncurryThis$5 = functionUncurryThis;
1896
1952
  var toString$2 = toString$3;
1897
1953
  var regexpFlags = regexpFlags$1;
1898
1954
  var stickyHelpers = regexpStickyHelpers;
@@ -1905,10 +1961,10 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1905
1961
  var nativeReplace = shared('native-string-replace', String.prototype.replace);
1906
1962
  var nativeExec = RegExp.prototype.exec;
1907
1963
  var patchedExec = nativeExec;
1908
- var charAt$3 = uncurryThis$4(''.charAt);
1909
- var indexOf = uncurryThis$4(''.indexOf);
1910
- var replace$1 = uncurryThis$4(''.replace);
1911
- var stringSlice$3 = uncurryThis$4(''.slice);
1964
+ var charAt$3 = uncurryThis$5(''.charAt);
1965
+ var indexOf = uncurryThis$5(''.indexOf);
1966
+ var replace$1 = uncurryThis$5(''.replace);
1967
+ var stringSlice$3 = uncurryThis$5(''.slice);
1912
1968
 
1913
1969
  var UPDATES_LAST_INDEX_WRONG = (function () {
1914
1970
  var re1 = /a/;
@@ -1984,7 +2040,7 @@ if (PATCH) {
1984
2040
  }
1985
2041
  if (NPCG_INCLUDED && match && match.length > 1) {
1986
2042
  // Fix browsers whose `exec` methods don't consistently return `undefined`
1987
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
2043
+ // for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
1988
2044
  call$3(nativeReplace, match[0], reCopy, function () {
1989
2045
  for (i = 1; i < arguments.length - 2; i++) {
1990
2046
  if (arguments[i] === undefined) match[i] = undefined;
@@ -2026,14 +2082,24 @@ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND
2026
2082
  return call$2.apply(apply$1, arguments);
2027
2083
  });
2028
2084
 
2085
+ var classofRaw = classofRaw$2;
2086
+ var uncurryThis$4 = functionUncurryThis;
2087
+
2088
+ var functionUncurryThisClause = function (fn) {
2089
+ // Nashorn bug:
2090
+ // https://github.com/zloirock/core-js/issues/1128
2091
+ // https://github.com/zloirock/core-js/issues/1130
2092
+ if (classofRaw(fn) === 'Function') return uncurryThis$4(fn);
2093
+ };
2094
+
2029
2095
  // TODO: Remove from `core-js@4` since it's moved to entry points
2030
2096
 
2031
- var uncurryThis$3 = functionUncurryThis;
2032
- var redefine = redefine$4.exports;
2097
+ var uncurryThis$3 = functionUncurryThisClause;
2098
+ var defineBuiltIn = defineBuiltIn$4;
2033
2099
  var regexpExec$1 = regexpExec$2;
2034
- var fails$2 = fails$g;
2100
+ var fails$2 = fails$h;
2035
2101
  var wellKnownSymbol$1 = wellKnownSymbol$a;
2036
- var createNonEnumerableProperty = createNonEnumerableProperty$6;
2102
+ var createNonEnumerableProperty = createNonEnumerableProperty$5;
2037
2103
 
2038
2104
  var SPECIES = wellKnownSymbol$1('species');
2039
2105
  var RegExpPrototype = RegExp.prototype;
@@ -2093,8 +2159,8 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
2093
2159
  return { done: false };
2094
2160
  });
2095
2161
 
2096
- redefine(String.prototype, KEY, methods[0]);
2097
- redefine(RegExpPrototype, SYMBOL, methods[1]);
2162
+ defineBuiltIn(String.prototype, KEY, methods[0]);
2163
+ defineBuiltIn(RegExpPrototype, SYMBOL, methods[1]);
2098
2164
  }
2099
2165
 
2100
2166
  if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
@@ -2190,14 +2256,13 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
2190
2256
  });
2191
2257
  };
2192
2258
 
2193
- var global$3 = global$w;
2194
2259
  var call$1 = functionCall;
2195
2260
  var anObject$1 = anObject$8;
2196
- var isCallable$1 = isCallable$g;
2197
- var classof$1 = classofRaw$1;
2261
+ var isCallable$1 = isCallable$h;
2262
+ var classof$1 = classofRaw$2;
2198
2263
  var regexpExec = regexpExec$2;
2199
2264
 
2200
- var TypeError$2 = global$3.TypeError;
2265
+ var $TypeError$1 = TypeError;
2201
2266
 
2202
2267
  // `RegExpExec` abstract operation
2203
2268
  // https://tc39.es/ecma262/#sec-regexpexec
@@ -2209,16 +2274,17 @@ var regexpExecAbstract = function (R, S) {
2209
2274
  return result;
2210
2275
  }
2211
2276
  if (classof$1(R) === 'RegExp') return call$1(regexpExec, R, S);
2212
- throw TypeError$2('RegExp#exec called on incompatible receiver');
2277
+ throw $TypeError$1('RegExp#exec called on incompatible receiver');
2213
2278
  };
2214
2279
 
2215
2280
  var apply = functionApply;
2216
2281
  var call = functionCall;
2217
2282
  var uncurryThis = functionUncurryThis;
2218
2283
  var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2219
- var fails$1 = fails$g;
2284
+ var fails$1 = fails$h;
2220
2285
  var anObject = anObject$8;
2221
- var isCallable = isCallable$g;
2286
+ var isCallable = isCallable$h;
2287
+ var isNullOrUndefined = isNullOrUndefined$3;
2222
2288
  var toIntegerOrInfinity = toIntegerOrInfinity$4;
2223
2289
  var toLength = toLength$2;
2224
2290
  var toString = toString$3;
@@ -2276,7 +2342,7 @@ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNa
2276
2342
  // https://tc39.es/ecma262/#sec-string.prototype.replace
2277
2343
  function replace(searchValue, replaceValue) {
2278
2344
  var O = requireObjectCoercible(this);
2279
- var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
2345
+ var replacer = isNullOrUndefined(searchValue) ? undefined : getMethod(searchValue, REPLACE);
2280
2346
  return replacer
2281
2347
  ? call(replacer, searchValue, O, replaceValue)
2282
2348
  : call(nativeReplace, toString(O), searchValue, replaceValue);
@@ -2355,13 +2421,11 @@ const MergeTag = ({
2355
2421
  loading,
2356
2422
  profile
2357
2423
  } = useProfile();
2358
-
2359
2424
  if (loading || !profile) {
2360
2425
  return null;
2361
2426
  }
2362
-
2363
- const value = get$1(profile, id.replace(/_/g, '.')); // DON'T CHANGE
2364
-
2427
+ const value = get$1(profile, id.replace(/_/g, '.'));
2428
+ // DON'T CHANGE
2365
2429
  return /*#__PURE__*/React.createElement(React.Fragment, null, value);
2366
2430
  };
2367
2431
 
@@ -2397,13 +2461,12 @@ const TrackExperience = ({
2397
2461
  }), children);
2398
2462
  };
2399
2463
 
2400
- var global$2 = global$w;
2401
2464
  var aCallable = aCallable$2;
2402
2465
  var toObject = toObject$5;
2403
2466
  var IndexedObject = indexedObject;
2404
2467
  var lengthOfArrayLike = lengthOfArrayLike$2;
2405
2468
 
2406
- var TypeError$1 = global$2.TypeError;
2469
+ var $TypeError = TypeError;
2407
2470
 
2408
2471
  // `Array.prototype.{ reduce, reduceRight }` methods implementation
2409
2472
  var createMethod = function (IS_RIGHT) {
@@ -2422,7 +2485,7 @@ var createMethod = function (IS_RIGHT) {
2422
2485
  }
2423
2486
  index += i;
2424
2487
  if (IS_RIGHT ? index < 0 : length <= index) {
2425
- throw TypeError$1('Reduce of empty array with no initial value');
2488
+ throw $TypeError('Reduce of empty array with no initial value');
2426
2489
  }
2427
2490
  }
2428
2491
  for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
@@ -2441,7 +2504,7 @@ var arrayReduce = {
2441
2504
  right: createMethod(true)
2442
2505
  };
2443
2506
 
2444
- var fails = fails$g;
2507
+ var fails = fails$h;
2445
2508
 
2446
2509
  var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
2447
2510
  var method = [][METHOD_NAME];
@@ -2451,8 +2514,8 @@ var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
2451
2514
  });
2452
2515
  };
2453
2516
 
2454
- var classof = classofRaw$1;
2455
- var global$1 = global$w;
2517
+ var classof = classofRaw$2;
2518
+ var global$1 = global$f;
2456
2519
 
2457
2520
  var engineIsNode = classof(global$1.process) == 'process';
2458
2521
 
@@ -2478,11 +2541,9 @@ $({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
2478
2541
 
2479
2542
  const useExperiments = () => {
2480
2543
  const context = useContext(ExperimentsContext);
2481
-
2482
2544
  if (context === undefined) {
2483
2545
  throw new Error('The component using the the context must be a descendant of the ExperimentsProvider');
2484
2546
  }
2485
-
2486
2547
  return {
2487
2548
  experiments: context.experiments
2488
2549
  };
@@ -2512,45 +2573,38 @@ const useExperience = ({
2512
2573
  isPersonalized: false,
2513
2574
  profile: null
2514
2575
  });
2515
-
2516
2576
  if (status === 'loading') {
2517
2577
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2518
2578
  // @ts-ignore
2519
2579
  return emptyReturn;
2520
2580
  }
2521
-
2522
2581
  if (status === 'error') {
2523
2582
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2524
2583
  // @ts-ignore
2525
2584
  return emptyReturn;
2526
2585
  }
2527
-
2528
2586
  if (!profile) {
2529
2587
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2530
2588
  // @ts-ignore
2531
2589
  return emptyReturn;
2532
2590
  }
2533
-
2534
2591
  const activeExperiments = selectActiveExperiments(experiments, profile);
2535
2592
  const experience = selectExperience({
2536
2593
  experiences,
2537
2594
  activeExperiments,
2538
2595
  profile
2539
2596
  });
2540
-
2541
2597
  if (!experience) {
2542
2598
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2543
2599
  // @ts-ignore
2544
2600
  return emptyReturn;
2545
2601
  }
2546
-
2547
2602
  const audience = experience.audience;
2548
2603
  const variant = selectExperienceVariant({
2549
2604
  baseline,
2550
2605
  experience,
2551
2606
  profile
2552
2607
  });
2553
-
2554
2608
  if (!variant) {
2555
2609
  return Object.assign(Object.assign({}, baseReturn), {
2556
2610
  status: 'success',
@@ -2563,7 +2617,6 @@ const useExperience = ({
2563
2617
  isPersonalized: false
2564
2618
  });
2565
2619
  }
2566
-
2567
2620
  return Object.assign(Object.assign({}, baseReturn), {
2568
2621
  status: 'success',
2569
2622
  loading: false,
@@ -2583,14 +2636,13 @@ const useJoinExperiment = ({
2583
2636
  }) => {
2584
2637
  const {
2585
2638
  identify
2586
- } = useNinetailed(); // TODO this gets called twice
2587
-
2639
+ } = useNinetailed();
2640
+ // TODO this gets called twice
2588
2641
  return useCallback(({
2589
2642
  experiment,
2590
2643
  profile
2591
2644
  }) => {
2592
2645
  const activeExperiments = selectActiveExperiments(experiences, profile);
2593
-
2594
2646
  if (!activeExperiments.length && experiment.type === 'nt_experiment') {
2595
2647
  identify(profile.id, {
2596
2648
  [`${EXPERIENCE_TRAIT_PREFIX}${experiment.id}`]: true
@@ -2601,13 +2653,12 @@ const useJoinExperiment = ({
2601
2653
 
2602
2654
  const DefaultExperienceLoadingComponent = _a => {
2603
2655
  var {
2604
- component: Component,
2605
- experiences,
2606
- unhideAfterMs = 5000,
2607
- passthroughProps
2608
- } = _a,
2609
- baseline = __rest(_a, ["component", "experiences", "unhideAfterMs", "passthroughProps"]);
2610
-
2656
+ component: Component,
2657
+ experiences,
2658
+ unhideAfterMs = 5000,
2659
+ passthroughProps
2660
+ } = _a,
2661
+ baseline = __rest(_a, ["component", "experiences", "unhideAfterMs", "passthroughProps"]);
2611
2662
  const {
2612
2663
  logger
2613
2664
  } = useNinetailed();
@@ -2621,7 +2672,6 @@ const DefaultExperienceLoadingComponent = _a => {
2621
2672
  clearTimeout(timer);
2622
2673
  };
2623
2674
  }, []);
2624
-
2625
2675
  if (hidden) {
2626
2676
  return /*#__PURE__*/React.createElement("div", {
2627
2677
  key: "hide",
@@ -2637,7 +2687,6 @@ const DefaultExperienceLoadingComponent = _a => {
2637
2687
  }
2638
2688
  })));
2639
2689
  }
2640
-
2641
2690
  return /*#__PURE__*/React.createElement(Component, Object.assign({}, passthroughProps, baseline, {
2642
2691
  ninetailed: {
2643
2692
  isPersonalized: false,
@@ -2649,13 +2698,12 @@ const DefaultExperienceLoadingComponent = _a => {
2649
2698
  };
2650
2699
  const Experience = _a => {
2651
2700
  var {
2652
- experiences,
2653
- component: Component,
2654
- loadingComponent: LoadingComponent = DefaultExperienceLoadingComponent,
2655
- passthroughProps
2656
- } = _a,
2657
- baseline = __rest(_a, ["experiences", "component", "loadingComponent", "passthroughProps"]);
2658
-
2701
+ experiences,
2702
+ component: Component,
2703
+ loadingComponent: LoadingComponent = DefaultExperienceLoadingComponent,
2704
+ passthroughProps
2705
+ } = _a,
2706
+ baseline = __rest(_a, ["experiences", "component", "loadingComponent", "passthroughProps"]);
2659
2707
  const {
2660
2708
  status,
2661
2709
  hasVariants,
@@ -2679,11 +2727,9 @@ const Experience = _a => {
2679
2727
  });
2680
2728
  }
2681
2729
  }, [status, experience, profile]);
2682
-
2683
2730
  if (!hasVariants) {
2684
2731
  return /*#__PURE__*/React.createElement(Component, Object.assign({}, passthroughProps, baseline));
2685
2732
  }
2686
-
2687
2733
  if (status === 'loading') {
2688
2734
  return /*#__PURE__*/React.createElement(LoadingComponent, Object.assign({}, baseline, {
2689
2735
  passthroughProps: passthroughProps,
@@ -2691,7 +2737,6 @@ const Experience = _a => {
2691
2737
  component: Component
2692
2738
  }));
2693
2739
  }
2694
-
2695
2740
  if (!experience) {
2696
2741
  return /*#__PURE__*/React.createElement(Component, Object.assign({}, passthroughProps, baseline, {
2697
2742
  key: baseline.id,
@@ -2703,7 +2748,6 @@ const Experience = _a => {
2703
2748
  }
2704
2749
  }));
2705
2750
  }
2706
-
2707
2751
  if (!variant) {
2708
2752
  return /*#__PURE__*/React.createElement(TrackExperience, {
2709
2753
  experience: experience,
@@ -2720,7 +2764,6 @@ const Experience = _a => {
2720
2764
  }
2721
2765
  })));
2722
2766
  }
2723
-
2724
2767
  return /*#__PURE__*/React.createElement(TrackExperience, {
2725
2768
  experience: experience,
2726
2769
  variant: variant,
@@ -2750,28 +2793,24 @@ const ESRProvider = ({
2750
2793
  };
2751
2794
  const useESR = () => {
2752
2795
  const context = React.useContext(ESRContext);
2753
-
2754
2796
  if (context === undefined) {
2755
2797
  throw new Error('The component using the the context must be a descendant of the ESRProvider');
2756
2798
  }
2757
-
2758
2799
  return {
2759
2800
  experienceVariantsMap: context.experienceVariantsMap
2760
2801
  };
2761
2802
  };
2762
2803
  const ESRLoadingComponent = _a => {
2763
2804
  var {
2764
- experiences,
2765
- component: Component,
2766
- passthroughProps
2767
- } = _a,
2768
- baseline = __rest(_a, ["experiences", "component", "passthroughProps"]);
2769
-
2805
+ experiences,
2806
+ component: Component,
2807
+ passthroughProps
2808
+ } = _a,
2809
+ baseline = __rest(_a, ["experiences", "component", "passthroughProps"]);
2770
2810
  const {
2771
2811
  experienceVariantsMap
2772
2812
  } = useESR();
2773
2813
  const experience = experiences.find(experience => has$1(experienceVariantsMap, experience.id));
2774
-
2775
2814
  if (!experience) {
2776
2815
  return /*#__PURE__*/React.createElement(Component, Object.assign({}, passthroughProps, baseline, {
2777
2816
  ninetailed: {
@@ -2782,9 +2821,7 @@ const ESRLoadingComponent = _a => {
2782
2821
  }
2783
2822
  }));
2784
2823
  }
2785
-
2786
2824
  const component = experience.components.find(component => component.baseline.id === baseline.id);
2787
-
2788
2825
  if (!component) {
2789
2826
  return /*#__PURE__*/React.createElement(Component, Object.assign({}, passthroughProps, baseline, {
2790
2827
  ninetailed: {
@@ -2795,7 +2832,6 @@ const ESRLoadingComponent = _a => {
2795
2832
  }
2796
2833
  }));
2797
2834
  }
2798
-
2799
2835
  if (experienceVariantsMap[experience.id] === 0) {
2800
2836
  return /*#__PURE__*/React.createElement(Component, Object.assign({}, passthroughProps, baseline, {
2801
2837
  ninetailed: {
@@ -2806,9 +2842,7 @@ const ESRLoadingComponent = _a => {
2806
2842
  }
2807
2843
  }));
2808
2844
  }
2809
-
2810
2845
  const variant = component.variants[experienceVariantsMap[experience.id] - 1];
2811
-
2812
2846
  if (!variant) {
2813
2847
  return /*#__PURE__*/React.createElement(Component, Object.assign({}, passthroughProps, baseline, {
2814
2848
  ninetailed: {
@@ -2819,7 +2853,6 @@ const ESRLoadingComponent = _a => {
2819
2853
  }
2820
2854
  }));
2821
2855
  }
2822
-
2823
2856
  return /*#__PURE__*/React.createElement(Component, Object.assign({}, passthroughProps, variant, {
2824
2857
  ninetailed: {
2825
2858
  isPersonalized: false,