@ninetailed/experience.js-react 1.0.0-beta.8 → 1.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -1,6 +1,8 @@
1
- import React, { createContext, useMemo, useContext, useState, useEffect, useCallback, useRef } from 'react';
1
+ import React, { createContext, useMemo, useContext, useState, useEffect } from 'react';
2
2
  import { Ninetailed, selectVariant } from '@ninetailed/experience.js';
3
- import VisibilitySensor from 'react-visibility-sensor';
3
+ import { useInView } from 'react-intersection-observer';
4
+ import { isBrowser } from '@ninetailed/experience.js-shared';
5
+ import get$1 from 'lodash/get';
4
6
 
5
7
  const NinetailedContext = /*#__PURE__*/createContext(undefined);
6
8
 
@@ -8,6 +10,7 @@ const NinetailedProvider = ({
8
10
  children,
9
11
  clientId,
10
12
  environment,
13
+ preview,
11
14
  url,
12
15
  profile,
13
16
  locale,
@@ -15,7 +18,8 @@ const NinetailedProvider = ({
15
18
  }) => {
16
19
  const ninetailed = useMemo(() => new Ninetailed({
17
20
  clientId,
18
- environment
21
+ environment,
22
+ preview
19
23
  }, {
20
24
  url,
21
25
  plugins: _plugins,
@@ -44,7 +48,7 @@ var check = function (it) {
44
48
  };
45
49
 
46
50
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
47
- var global$o =
51
+ var global$u =
48
52
  // eslint-disable-next-line es/no-global-this -- safe
49
53
  check(typeof globalThis == 'object' && globalThis) ||
50
54
  check(typeof window == 'object' && window) ||
@@ -54,7 +58,7 @@ var global$o =
54
58
  // eslint-disable-next-line no-new-func -- fallback
55
59
  (function () { return this; })() || Function('return this')();
56
60
 
57
- var fails$a = function (exec) {
61
+ var fails$f = function (exec) {
58
62
  try {
59
63
  return !!exec();
60
64
  } catch (error) {
@@ -62,100 +66,100 @@ var fails$a = function (exec) {
62
66
  }
63
67
  };
64
68
 
65
- var fails$9 = fails$a;
69
+ var fails$e = fails$f;
66
70
 
67
- var functionBindNative = !fails$9(function () {
71
+ var functionBindNative = !fails$e(function () {
68
72
  var test = (function () { /* empty */ }).bind();
69
73
  // eslint-disable-next-line no-prototype-builtins -- safe
70
74
  return typeof test != 'function' || test.hasOwnProperty('prototype');
71
75
  });
72
76
 
73
- var NATIVE_BIND$1 = functionBindNative;
77
+ var NATIVE_BIND$2 = functionBindNative;
74
78
 
75
- var FunctionPrototype$1 = Function.prototype;
76
- var bind = FunctionPrototype$1.bind;
77
- var call$6 = FunctionPrototype$1.call;
78
- var uncurryThis$b = NATIVE_BIND$1 && bind.bind(call$6, call$6);
79
+ var FunctionPrototype$2 = Function.prototype;
80
+ var bind = FunctionPrototype$2.bind;
81
+ var call$a = FunctionPrototype$2.call;
82
+ var uncurryThis$g = NATIVE_BIND$2 && bind.bind(call$a, call$a);
79
83
 
80
- var functionUncurryThis = NATIVE_BIND$1 ? function (fn) {
81
- return fn && uncurryThis$b(fn);
84
+ var functionUncurryThis = NATIVE_BIND$2 ? function (fn) {
85
+ return fn && uncurryThis$g(fn);
82
86
  } : function (fn) {
83
87
  return fn && function () {
84
- return call$6.apply(fn, arguments);
88
+ return call$a.apply(fn, arguments);
85
89
  };
86
90
  };
87
91
 
88
- var uncurryThis$a = functionUncurryThis;
92
+ var uncurryThis$f = functionUncurryThis;
89
93
 
90
- var toString$1 = uncurryThis$a({}.toString);
91
- var stringSlice = uncurryThis$a(''.slice);
94
+ var toString$5 = uncurryThis$f({}.toString);
95
+ var stringSlice$4 = uncurryThis$f(''.slice);
92
96
 
93
- var classofRaw = function (it) {
94
- return stringSlice(toString$1(it), 8, -1);
97
+ var classofRaw$1 = function (it) {
98
+ return stringSlice$4(toString$5(it), 8, -1);
95
99
  };
96
100
 
97
- var global$n = global$o;
98
- var uncurryThis$9 = functionUncurryThis;
99
- var fails$8 = fails$a;
100
- var classof = classofRaw;
101
+ var global$t = global$u;
102
+ var uncurryThis$e = functionUncurryThis;
103
+ var fails$d = fails$f;
104
+ var classof$3 = classofRaw$1;
101
105
 
102
- var Object$4 = global$n.Object;
103
- var split = uncurryThis$9(''.split);
106
+ var Object$5 = global$t.Object;
107
+ var split = uncurryThis$e(''.split);
104
108
 
105
109
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
106
- var indexedObject = fails$8(function () {
110
+ var indexedObject = fails$d(function () {
107
111
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
108
112
  // eslint-disable-next-line no-prototype-builtins -- safe
109
- return !Object$4('z').propertyIsEnumerable(0);
113
+ return !Object$5('z').propertyIsEnumerable(0);
110
114
  }) ? function (it) {
111
- return classof(it) == 'String' ? split(it, '') : Object$4(it);
112
- } : Object$4;
115
+ return classof$3(it) == 'String' ? split(it, '') : Object$5(it);
116
+ } : Object$5;
113
117
 
114
- var global$m = global$o;
118
+ var global$s = global$u;
115
119
 
116
- var TypeError$7 = global$m.TypeError;
120
+ var TypeError$9 = global$s.TypeError;
117
121
 
118
122
  // `RequireObjectCoercible` abstract operation
119
123
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
120
- var requireObjectCoercible$2 = function (it) {
121
- if (it == undefined) throw TypeError$7("Can't call method on " + it);
124
+ var requireObjectCoercible$4 = function (it) {
125
+ if (it == undefined) throw TypeError$9("Can't call method on " + it);
122
126
  return it;
123
127
  };
124
128
 
125
129
  // toObject with fallback for non-array-like ES3 strings
126
130
  var IndexedObject$1 = indexedObject;
127
- var requireObjectCoercible$1 = requireObjectCoercible$2;
131
+ var requireObjectCoercible$3 = requireObjectCoercible$4;
128
132
 
129
133
  var toIndexedObject$5 = function (it) {
130
- return IndexedObject$1(requireObjectCoercible$1(it));
134
+ return IndexedObject$1(requireObjectCoercible$3(it));
131
135
  };
132
136
 
133
- var shared$3 = {exports: {}};
137
+ var shared$4 = {exports: {}};
134
138
 
135
- var global$l = global$o;
139
+ var global$r = global$u;
136
140
 
137
141
  // eslint-disable-next-line es/no-object-defineproperty -- safe
138
142
  var defineProperty$3 = Object.defineProperty;
139
143
 
140
144
  var setGlobal$3 = function (key, value) {
141
145
  try {
142
- defineProperty$3(global$l, key, { value: value, configurable: true, writable: true });
146
+ defineProperty$3(global$r, key, { value: value, configurable: true, writable: true });
143
147
  } catch (error) {
144
- global$l[key] = value;
148
+ global$r[key] = value;
145
149
  } return value;
146
150
  };
147
151
 
148
- var global$k = global$o;
152
+ var global$q = global$u;
149
153
  var setGlobal$2 = setGlobal$3;
150
154
 
151
155
  var SHARED = '__core-js_shared__';
152
- var store$3 = global$k[SHARED] || setGlobal$2(SHARED, {});
156
+ var store$3 = global$q[SHARED] || setGlobal$2(SHARED, {});
153
157
 
154
158
  var sharedStore = store$3;
155
159
 
156
160
  var store$2 = sharedStore;
157
161
 
158
- (shared$3.exports = function (key, value) {
162
+ (shared$4.exports = function (key, value) {
159
163
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
160
164
  })('versions', []).push({
161
165
  version: '3.21.1',
@@ -165,64 +169,64 @@ var store$2 = sharedStore;
165
169
  source: 'https://github.com/zloirock/core-js'
166
170
  });
167
171
 
168
- var global$j = global$o;
169
- var requireObjectCoercible = requireObjectCoercible$2;
172
+ var global$p = global$u;
173
+ var requireObjectCoercible$2 = requireObjectCoercible$4;
170
174
 
171
- var Object$3 = global$j.Object;
175
+ var Object$4 = global$p.Object;
172
176
 
173
177
  // `ToObject` abstract operation
174
178
  // https://tc39.es/ecma262/#sec-toobject
175
- var toObject$3 = function (argument) {
176
- return Object$3(requireObjectCoercible(argument));
179
+ var toObject$4 = function (argument) {
180
+ return Object$4(requireObjectCoercible$2(argument));
177
181
  };
178
182
 
179
- var uncurryThis$8 = functionUncurryThis;
180
- var toObject$2 = toObject$3;
183
+ var uncurryThis$d = functionUncurryThis;
184
+ var toObject$3 = toObject$4;
181
185
 
182
- var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
186
+ var hasOwnProperty = uncurryThis$d({}.hasOwnProperty);
183
187
 
184
188
  // `HasOwnProperty` abstract operation
185
189
  // https://tc39.es/ecma262/#sec-hasownproperty
186
190
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
187
- return hasOwnProperty(toObject$2(it), key);
191
+ return hasOwnProperty(toObject$3(it), key);
188
192
  };
189
193
 
190
- var uncurryThis$7 = functionUncurryThis;
194
+ var uncurryThis$c = functionUncurryThis;
191
195
 
192
196
  var id = 0;
193
197
  var postfix = Math.random();
194
- var toString = uncurryThis$7(1.0.toString);
198
+ var toString$4 = uncurryThis$c(1.0.toString);
195
199
 
196
200
  var uid$2 = function (key) {
197
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
201
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$4(++id + postfix, 36);
198
202
  };
199
203
 
200
204
  // `IsCallable` abstract operation
201
205
  // https://tc39.es/ecma262/#sec-iscallable
202
- var isCallable$d = function (argument) {
206
+ var isCallable$g = function (argument) {
203
207
  return typeof argument == 'function';
204
208
  };
205
209
 
206
- var global$i = global$o;
207
- var isCallable$c = isCallable$d;
210
+ var global$o = global$u;
211
+ var isCallable$f = isCallable$g;
208
212
 
209
213
  var aFunction = function (argument) {
210
- return isCallable$c(argument) ? argument : undefined;
214
+ return isCallable$f(argument) ? argument : undefined;
211
215
  };
212
216
 
213
217
  var getBuiltIn$4 = function (namespace, method) {
214
- return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
218
+ return arguments.length < 2 ? aFunction(global$o[namespace]) : global$o[namespace] && global$o[namespace][method];
215
219
  };
216
220
 
217
221
  var getBuiltIn$3 = getBuiltIn$4;
218
222
 
219
223
  var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
220
224
 
221
- var global$h = global$o;
225
+ var global$n = global$u;
222
226
  var userAgent = engineUserAgent;
223
227
 
224
- var process = global$h.process;
225
- var Deno = global$h.Deno;
228
+ var process = global$n.process;
229
+ var Deno = global$n.Deno;
226
230
  var versions = process && process.versions || Deno && Deno.version;
227
231
  var v8 = versions && versions.v8;
228
232
  var match, version;
@@ -249,10 +253,10 @@ var engineV8Version = version;
249
253
  /* eslint-disable es/no-symbol -- required for testing */
250
254
 
251
255
  var V8_VERSION = engineV8Version;
252
- var fails$7 = fails$a;
256
+ var fails$c = fails$f;
253
257
 
254
258
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
255
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$7(function () {
259
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$c(function () {
256
260
  var symbol = Symbol();
257
261
  // Chrome 38 Symbol has incorrect toString conversion
258
262
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -269,19 +273,19 @@ var useSymbolAsUid = NATIVE_SYMBOL$1
269
273
  && !Symbol.sham
270
274
  && typeof Symbol.iterator == 'symbol';
271
275
 
272
- var global$g = global$o;
273
- var shared$2 = shared$3.exports;
276
+ var global$m = global$u;
277
+ var shared$3 = shared$4.exports;
274
278
  var hasOwn$8 = hasOwnProperty_1;
275
279
  var uid$1 = uid$2;
276
280
  var NATIVE_SYMBOL = nativeSymbol;
277
281
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
278
282
 
279
- var WellKnownSymbolsStore = shared$2('wks');
280
- var Symbol$1 = global$g.Symbol;
283
+ var WellKnownSymbolsStore = shared$3('wks');
284
+ var Symbol$1 = global$m.Symbol;
281
285
  var symbolFor = Symbol$1 && Symbol$1['for'];
282
286
  var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
283
287
 
284
- var wellKnownSymbol$6 = function (name) {
288
+ var wellKnownSymbol$a = function (name) {
285
289
  if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
286
290
  var description = 'Symbol.' + name;
287
291
  if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
@@ -294,40 +298,40 @@ var wellKnownSymbol$6 = function (name) {
294
298
  } return WellKnownSymbolsStore[name];
295
299
  };
296
300
 
297
- var isCallable$b = isCallable$d;
301
+ var isCallable$e = isCallable$g;
298
302
 
299
303
  var isObject$5 = function (it) {
300
- return typeof it == 'object' ? it !== null : isCallable$b(it);
304
+ return typeof it == 'object' ? it !== null : isCallable$e(it);
301
305
  };
302
306
 
303
- var global$f = global$o;
307
+ var global$l = global$u;
304
308
  var isObject$4 = isObject$5;
305
309
 
306
- var String$3 = global$f.String;
307
- var TypeError$6 = global$f.TypeError;
310
+ var String$4 = global$l.String;
311
+ var TypeError$8 = global$l.TypeError;
308
312
 
309
313
  // `Assert: Type(argument) is Object`
310
- var anObject$5 = function (argument) {
314
+ var anObject$8 = function (argument) {
311
315
  if (isObject$4(argument)) return argument;
312
- throw TypeError$6(String$3(argument) + ' is not an object');
316
+ throw TypeError$8(String$4(argument) + ' is not an object');
313
317
  };
314
318
 
315
319
  var objectDefineProperties = {};
316
320
 
317
- var fails$6 = fails$a;
321
+ var fails$b = fails$f;
318
322
 
319
323
  // Detect IE8's incomplete defineProperty implementation
320
- var descriptors = !fails$6(function () {
324
+ var descriptors = !fails$b(function () {
321
325
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
322
326
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
323
327
  });
324
328
 
325
329
  var DESCRIPTORS$8 = descriptors;
326
- var fails$5 = fails$a;
330
+ var fails$a = fails$f;
327
331
 
328
332
  // V8 ~ Chrome 36-
329
333
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
330
- var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$5(function () {
334
+ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$a(function () {
331
335
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
332
336
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
333
337
  value: 42,
@@ -337,10 +341,10 @@ var v8PrototypeDefineBug = DESCRIPTORS$8 && fails$5(function () {
337
341
 
338
342
  var objectDefineProperty = {};
339
343
 
340
- var global$e = global$o;
344
+ var global$k = global$u;
341
345
  var isObject$3 = isObject$5;
342
346
 
343
- var document$1 = global$e.document;
347
+ var document$1 = global$k.document;
344
348
  // typeof document.createElement is 'object' in old IE
345
349
  var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
346
350
 
@@ -349,116 +353,116 @@ var documentCreateElement$2 = function (it) {
349
353
  };
350
354
 
351
355
  var DESCRIPTORS$7 = descriptors;
352
- var fails$4 = fails$a;
356
+ var fails$9 = fails$f;
353
357
  var createElement = documentCreateElement$2;
354
358
 
355
359
  // Thanks to IE8 for its funny defineProperty
356
- var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
360
+ var ie8DomDefine = !DESCRIPTORS$7 && !fails$9(function () {
357
361
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
358
362
  return Object.defineProperty(createElement('div'), 'a', {
359
363
  get: function () { return 7; }
360
364
  }).a != 7;
361
365
  });
362
366
 
363
- var NATIVE_BIND = functionBindNative;
367
+ var NATIVE_BIND$1 = functionBindNative;
364
368
 
365
- var call$5 = Function.prototype.call;
369
+ var call$9 = Function.prototype.call;
366
370
 
367
- var functionCall = NATIVE_BIND ? call$5.bind(call$5) : function () {
368
- return call$5.apply(call$5, arguments);
371
+ var functionCall = NATIVE_BIND$1 ? call$9.bind(call$9) : function () {
372
+ return call$9.apply(call$9, arguments);
369
373
  };
370
374
 
371
- var uncurryThis$6 = functionUncurryThis;
375
+ var uncurryThis$b = functionUncurryThis;
372
376
 
373
- var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
377
+ var objectIsPrototypeOf = uncurryThis$b({}.isPrototypeOf);
374
378
 
375
- var global$d = global$o;
379
+ var global$j = global$u;
376
380
  var getBuiltIn$2 = getBuiltIn$4;
377
- var isCallable$a = isCallable$d;
381
+ var isCallable$d = isCallable$g;
378
382
  var isPrototypeOf = objectIsPrototypeOf;
379
383
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
380
384
 
381
- var Object$2 = global$d.Object;
385
+ var Object$3 = global$j.Object;
382
386
 
383
387
  var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
384
388
  return typeof it == 'symbol';
385
389
  } : function (it) {
386
390
  var $Symbol = getBuiltIn$2('Symbol');
387
- return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, Object$2(it));
391
+ return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, Object$3(it));
388
392
  };
389
393
 
390
- var global$c = global$o;
394
+ var global$i = global$u;
391
395
 
392
- var String$2 = global$c.String;
396
+ var String$3 = global$i.String;
393
397
 
394
398
  var tryToString$1 = function (argument) {
395
399
  try {
396
- return String$2(argument);
400
+ return String$3(argument);
397
401
  } catch (error) {
398
402
  return 'Object';
399
403
  }
400
404
  };
401
405
 
402
- var global$b = global$o;
403
- var isCallable$9 = isCallable$d;
406
+ var global$h = global$u;
407
+ var isCallable$c = isCallable$g;
404
408
  var tryToString = tryToString$1;
405
409
 
406
- var TypeError$5 = global$b.TypeError;
410
+ var TypeError$7 = global$h.TypeError;
407
411
 
408
412
  // `Assert: IsCallable(argument) is true`
409
413
  var aCallable$1 = function (argument) {
410
- if (isCallable$9(argument)) return argument;
411
- throw TypeError$5(tryToString(argument) + ' is not a function');
414
+ if (isCallable$c(argument)) return argument;
415
+ throw TypeError$7(tryToString(argument) + ' is not a function');
412
416
  };
413
417
 
414
418
  var aCallable = aCallable$1;
415
419
 
416
420
  // `GetMethod` abstract operation
417
421
  // https://tc39.es/ecma262/#sec-getmethod
418
- var getMethod$1 = function (V, P) {
422
+ var getMethod$2 = function (V, P) {
419
423
  var func = V[P];
420
424
  return func == null ? undefined : aCallable(func);
421
425
  };
422
426
 
423
- var global$a = global$o;
424
- var call$4 = functionCall;
425
- var isCallable$8 = isCallable$d;
427
+ var global$g = global$u;
428
+ var call$8 = functionCall;
429
+ var isCallable$b = isCallable$g;
426
430
  var isObject$2 = isObject$5;
427
431
 
428
- var TypeError$4 = global$a.TypeError;
432
+ var TypeError$6 = global$g.TypeError;
429
433
 
430
434
  // `OrdinaryToPrimitive` abstract operation
431
435
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
432
436
  var ordinaryToPrimitive$1 = function (input, pref) {
433
437
  var fn, val;
434
- if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$2(val = call$4(fn, input))) return val;
435
- if (isCallable$8(fn = input.valueOf) && !isObject$2(val = call$4(fn, input))) return val;
436
- if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$2(val = call$4(fn, input))) return val;
437
- throw TypeError$4("Can't convert object to primitive value");
438
+ if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$2(val = call$8(fn, input))) return val;
439
+ if (isCallable$b(fn = input.valueOf) && !isObject$2(val = call$8(fn, input))) return val;
440
+ if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$2(val = call$8(fn, input))) return val;
441
+ throw TypeError$6("Can't convert object to primitive value");
438
442
  };
439
443
 
440
- var global$9 = global$o;
441
- var call$3 = functionCall;
444
+ var global$f = global$u;
445
+ var call$7 = functionCall;
442
446
  var isObject$1 = isObject$5;
443
447
  var isSymbol$1 = isSymbol$2;
444
- var getMethod = getMethod$1;
448
+ var getMethod$1 = getMethod$2;
445
449
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
446
- var wellKnownSymbol$5 = wellKnownSymbol$6;
450
+ var wellKnownSymbol$9 = wellKnownSymbol$a;
447
451
 
448
- var TypeError$3 = global$9.TypeError;
449
- var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
452
+ var TypeError$5 = global$f.TypeError;
453
+ var TO_PRIMITIVE = wellKnownSymbol$9('toPrimitive');
450
454
 
451
455
  // `ToPrimitive` abstract operation
452
456
  // https://tc39.es/ecma262/#sec-toprimitive
453
457
  var toPrimitive$1 = function (input, pref) {
454
458
  if (!isObject$1(input) || isSymbol$1(input)) return input;
455
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
459
+ var exoticToPrim = getMethod$1(input, TO_PRIMITIVE);
456
460
  var result;
457
461
  if (exoticToPrim) {
458
462
  if (pref === undefined) pref = 'default';
459
- result = call$3(exoticToPrim, input, pref);
463
+ result = call$7(exoticToPrim, input, pref);
460
464
  if (!isObject$1(result) || isSymbol$1(result)) return result;
461
- throw TypeError$3("Can't convert object to primitive value");
465
+ throw TypeError$5("Can't convert object to primitive value");
462
466
  }
463
467
  if (pref === undefined) pref = 'number';
464
468
  return ordinaryToPrimitive(input, pref);
@@ -474,14 +478,14 @@ var toPropertyKey$2 = function (argument) {
474
478
  return isSymbol(key) ? key : key + '';
475
479
  };
476
480
 
477
- var global$8 = global$o;
481
+ var global$e = global$u;
478
482
  var DESCRIPTORS$6 = descriptors;
479
483
  var IE8_DOM_DEFINE$1 = ie8DomDefine;
480
484
  var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
481
- var anObject$4 = anObject$5;
485
+ var anObject$7 = anObject$8;
482
486
  var toPropertyKey$1 = toPropertyKey$2;
483
487
 
484
- var TypeError$2 = global$8.TypeError;
488
+ var TypeError$4 = global$e.TypeError;
485
489
  // eslint-disable-next-line es/no-object-defineproperty -- safe
486
490
  var $defineProperty = Object.defineProperty;
487
491
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -493,9 +497,9 @@ var WRITABLE = 'writable';
493
497
  // `Object.defineProperty` method
494
498
  // https://tc39.es/ecma262/#sec-object.defineproperty
495
499
  objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
496
- anObject$4(O);
500
+ anObject$7(O);
497
501
  P = toPropertyKey$1(P);
498
- anObject$4(Attributes);
502
+ anObject$7(Attributes);
499
503
  if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
500
504
  var current = $getOwnPropertyDescriptor$1(O, P);
501
505
  if (current && current[WRITABLE]) {
@@ -508,57 +512,57 @@ objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
508
512
  }
509
513
  } return $defineProperty(O, P, Attributes);
510
514
  } : $defineProperty : function defineProperty(O, P, Attributes) {
511
- anObject$4(O);
515
+ anObject$7(O);
512
516
  P = toPropertyKey$1(P);
513
- anObject$4(Attributes);
517
+ anObject$7(Attributes);
514
518
  if (IE8_DOM_DEFINE$1) try {
515
519
  return $defineProperty(O, P, Attributes);
516
520
  } catch (error) { /* empty */ }
517
- if ('get' in Attributes || 'set' in Attributes) throw TypeError$2('Accessors not supported');
521
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError$4('Accessors not supported');
518
522
  if ('value' in Attributes) O[P] = Attributes.value;
519
523
  return O;
520
524
  };
521
525
 
522
526
  var ceil = Math.ceil;
523
- var floor = Math.floor;
527
+ var floor$1 = Math.floor;
524
528
 
525
529
  // `ToIntegerOrInfinity` abstract operation
526
530
  // https://tc39.es/ecma262/#sec-tointegerorinfinity
527
- var toIntegerOrInfinity$2 = function (argument) {
531
+ var toIntegerOrInfinity$4 = function (argument) {
528
532
  var number = +argument;
529
533
  // eslint-disable-next-line no-self-compare -- safe
530
- return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
534
+ return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
531
535
  };
532
536
 
533
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
537
+ var toIntegerOrInfinity$3 = toIntegerOrInfinity$4;
534
538
 
535
- var max = Math.max;
536
- var min$1 = Math.min;
539
+ var max$1 = Math.max;
540
+ var min$2 = Math.min;
537
541
 
538
542
  // Helper for a popular repeating case of the spec:
539
543
  // Let integer be ? ToInteger(index).
540
544
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
541
545
  var toAbsoluteIndex$1 = function (index, length) {
542
- var integer = toIntegerOrInfinity$1(index);
543
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
546
+ var integer = toIntegerOrInfinity$3(index);
547
+ return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
544
548
  };
545
549
 
546
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
550
+ var toIntegerOrInfinity$2 = toIntegerOrInfinity$4;
547
551
 
548
- var min = Math.min;
552
+ var min$1 = Math.min;
549
553
 
550
554
  // `ToLength` abstract operation
551
555
  // https://tc39.es/ecma262/#sec-tolength
552
- var toLength$1 = function (argument) {
553
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
556
+ var toLength$2 = function (argument) {
557
+ return argument > 0 ? min$1(toIntegerOrInfinity$2(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
554
558
  };
555
559
 
556
- var toLength = toLength$1;
560
+ var toLength$1 = toLength$2;
557
561
 
558
562
  // `LengthOfArrayLike` abstract operation
559
563
  // https://tc39.es/ecma262/#sec-lengthofarraylike
560
564
  var lengthOfArrayLike$1 = function (obj) {
561
- return toLength(obj.length);
565
+ return toLength$1(obj.length);
562
566
  };
563
567
 
564
568
  var toIndexedObject$4 = toIndexedObject$5;
@@ -566,7 +570,7 @@ var toAbsoluteIndex = toAbsoluteIndex$1;
566
570
  var lengthOfArrayLike = lengthOfArrayLike$1;
567
571
 
568
572
  // `Array.prototype.{ indexOf, includes }` methods implementation
569
- var createMethod = function (IS_INCLUDES) {
573
+ var createMethod$1 = function (IS_INCLUDES) {
570
574
  return function ($this, el, fromIndex) {
571
575
  var O = toIndexedObject$4($this);
572
576
  var length = lengthOfArrayLike(O);
@@ -588,31 +592,31 @@ var createMethod = function (IS_INCLUDES) {
588
592
  var arrayIncludes = {
589
593
  // `Array.prototype.includes` method
590
594
  // https://tc39.es/ecma262/#sec-array.prototype.includes
591
- includes: createMethod(true),
595
+ includes: createMethod$1(true),
592
596
  // `Array.prototype.indexOf` method
593
597
  // https://tc39.es/ecma262/#sec-array.prototype.indexof
594
- indexOf: createMethod(false)
598
+ indexOf: createMethod$1(false)
595
599
  };
596
600
 
597
601
  var hiddenKeys$4 = {};
598
602
 
599
- var uncurryThis$5 = functionUncurryThis;
603
+ var uncurryThis$a = functionUncurryThis;
600
604
  var hasOwn$7 = hasOwnProperty_1;
601
605
  var toIndexedObject$3 = toIndexedObject$5;
602
- var indexOf = arrayIncludes.indexOf;
606
+ var indexOf$1 = arrayIncludes.indexOf;
603
607
  var hiddenKeys$3 = hiddenKeys$4;
604
608
 
605
- var push = uncurryThis$5([].push);
609
+ var push$1 = uncurryThis$a([].push);
606
610
 
607
611
  var objectKeysInternal = function (object, names) {
608
612
  var O = toIndexedObject$3(object);
609
613
  var i = 0;
610
614
  var result = [];
611
615
  var key;
612
- for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push(result, key);
616
+ for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push$1(result, key);
613
617
  // Don't enum bug & hidden keys
614
618
  while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
615
- ~indexOf(result, key) || push(result, key);
619
+ ~indexOf$1(result, key) || push$1(result, key);
616
620
  }
617
621
  return result;
618
622
  };
@@ -641,7 +645,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
641
645
  var DESCRIPTORS$5 = descriptors;
642
646
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
643
647
  var definePropertyModule$3 = objectDefineProperty;
644
- var anObject$3 = anObject$5;
648
+ var anObject$6 = anObject$8;
645
649
  var toIndexedObject$2 = toIndexedObject$5;
646
650
  var objectKeys$1 = objectKeys$2;
647
651
 
@@ -649,7 +653,7 @@ var objectKeys$1 = objectKeys$2;
649
653
  // https://tc39.es/ecma262/#sec-object.defineproperties
650
654
  // eslint-disable-next-line es/no-object-defineproperties -- safe
651
655
  objectDefineProperties.f = DESCRIPTORS$5 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
652
- anObject$3(O);
656
+ anObject$6(O);
653
657
  var props = toIndexedObject$2(Properties);
654
658
  var keys = objectKeys$1(Properties);
655
659
  var length = keys.length;
@@ -663,10 +667,10 @@ var getBuiltIn$1 = getBuiltIn$4;
663
667
 
664
668
  var html$1 = getBuiltIn$1('document', 'documentElement');
665
669
 
666
- var shared$1 = shared$3.exports;
670
+ var shared$2 = shared$4.exports;
667
671
  var uid = uid$2;
668
672
 
669
- var keys = shared$1('keys');
673
+ var keys = shared$2('keys');
670
674
 
671
675
  var sharedKey$3 = function (key) {
672
676
  return keys[key] || (keys[key] = uid(key));
@@ -674,7 +678,7 @@ var sharedKey$3 = function (key) {
674
678
 
675
679
  /* global ActiveXObject -- old IE, WSH */
676
680
 
677
- var anObject$2 = anObject$5;
681
+ var anObject$5 = anObject$8;
678
682
  var definePropertiesModule = objectDefineProperties;
679
683
  var enumBugKeys$1 = enumBugKeys$3;
680
684
  var hiddenKeys$2 = hiddenKeys$4;
@@ -747,7 +751,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
747
751
  var objectCreate = Object.create || function create(O, Properties) {
748
752
  var result;
749
753
  if (O !== null) {
750
- EmptyConstructor[PROTOTYPE] = anObject$2(O);
754
+ EmptyConstructor[PROTOTYPE] = anObject$5(O);
751
755
  result = new EmptyConstructor();
752
756
  EmptyConstructor[PROTOTYPE] = null;
753
757
  // add "__proto__" for Object.getPrototypeOf polyfill
@@ -756,11 +760,11 @@ var objectCreate = Object.create || function create(O, Properties) {
756
760
  return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
757
761
  };
758
762
 
759
- var wellKnownSymbol$4 = wellKnownSymbol$6;
760
- var create$1 = objectCreate;
763
+ var wellKnownSymbol$8 = wellKnownSymbol$a;
764
+ var create$2 = objectCreate;
761
765
  var definePropertyModule$2 = objectDefineProperty;
762
766
 
763
- var UNSCOPABLES = wellKnownSymbol$4('unscopables');
767
+ var UNSCOPABLES = wellKnownSymbol$8('unscopables');
764
768
  var ArrayPrototype = Array.prototype;
765
769
 
766
770
  // Array.prototype[@@unscopables]
@@ -768,7 +772,7 @@ var ArrayPrototype = Array.prototype;
768
772
  if (ArrayPrototype[UNSCOPABLES] == undefined) {
769
773
  definePropertyModule$2.f(ArrayPrototype, UNSCOPABLES, {
770
774
  configurable: true,
771
- value: create$1(null)
775
+ value: create$2(null)
772
776
  });
773
777
  }
774
778
 
@@ -779,14 +783,14 @@ var addToUnscopables$1 = function (key) {
779
783
 
780
784
  var iterators = {};
781
785
 
782
- var uncurryThis$4 = functionUncurryThis;
783
- var isCallable$7 = isCallable$d;
786
+ var uncurryThis$9 = functionUncurryThis;
787
+ var isCallable$a = isCallable$g;
784
788
  var store$1 = sharedStore;
785
789
 
786
- var functionToString = uncurryThis$4(Function.toString);
790
+ var functionToString = uncurryThis$9(Function.toString);
787
791
 
788
792
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
789
- if (!isCallable$7(store$1.inspectSource)) {
793
+ if (!isCallable$a(store$1.inspectSource)) {
790
794
  store$1.inspectSource = function (it) {
791
795
  return functionToString(it);
792
796
  };
@@ -794,13 +798,13 @@ if (!isCallable$7(store$1.inspectSource)) {
794
798
 
795
799
  var inspectSource$2 = store$1.inspectSource;
796
800
 
797
- var global$7 = global$o;
798
- var isCallable$6 = isCallable$d;
801
+ var global$d = global$u;
802
+ var isCallable$9 = isCallable$g;
799
803
  var inspectSource$1 = inspectSource$2;
800
804
 
801
- var WeakMap$1 = global$7.WeakMap;
805
+ var WeakMap$1 = global$d.WeakMap;
802
806
 
803
- var nativeWeakMap = isCallable$6(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
807
+ var nativeWeakMap = isCallable$9(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
804
808
 
805
809
  var createPropertyDescriptor$3 = function (bitmap, value) {
806
810
  return {
@@ -815,7 +819,7 @@ var DESCRIPTORS$4 = descriptors;
815
819
  var definePropertyModule$1 = objectDefineProperty;
816
820
  var createPropertyDescriptor$2 = createPropertyDescriptor$3;
817
821
 
818
- var createNonEnumerableProperty$5 = DESCRIPTORS$4 ? function (object, key, value) {
822
+ var createNonEnumerableProperty$6 = DESCRIPTORS$4 ? function (object, key, value) {
819
823
  return definePropertyModule$1.f(object, key, createPropertyDescriptor$2(1, value));
820
824
  } : function (object, key, value) {
821
825
  object[key] = value;
@@ -823,18 +827,18 @@ var createNonEnumerableProperty$5 = DESCRIPTORS$4 ? function (object, key, value
823
827
  };
824
828
 
825
829
  var NATIVE_WEAK_MAP = nativeWeakMap;
826
- var global$6 = global$o;
827
- var uncurryThis$3 = functionUncurryThis;
830
+ var global$c = global$u;
831
+ var uncurryThis$8 = functionUncurryThis;
828
832
  var isObject = isObject$5;
829
- var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
833
+ var createNonEnumerableProperty$5 = createNonEnumerableProperty$6;
830
834
  var hasOwn$6 = hasOwnProperty_1;
831
- var shared = sharedStore;
835
+ var shared$1 = sharedStore;
832
836
  var sharedKey$1 = sharedKey$3;
833
837
  var hiddenKeys$1 = hiddenKeys$4;
834
838
 
835
839
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
836
- var TypeError$1 = global$6.TypeError;
837
- var WeakMap = global$6.WeakMap;
840
+ var TypeError$3 = global$c.TypeError;
841
+ var WeakMap = global$c.WeakMap;
838
842
  var set, get, has;
839
843
 
840
844
  var enforce = function (it) {
@@ -845,18 +849,18 @@ var getterFor = function (TYPE) {
845
849
  return function (it) {
846
850
  var state;
847
851
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
848
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
852
+ throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
849
853
  } return state;
850
854
  };
851
855
  };
852
856
 
853
- if (NATIVE_WEAK_MAP || shared.state) {
854
- var store = shared.state || (shared.state = new WeakMap());
855
- var wmget = uncurryThis$3(store.get);
856
- var wmhas = uncurryThis$3(store.has);
857
- var wmset = uncurryThis$3(store.set);
857
+ if (NATIVE_WEAK_MAP || shared$1.state) {
858
+ var store = shared$1.state || (shared$1.state = new WeakMap());
859
+ var wmget = uncurryThis$8(store.get);
860
+ var wmhas = uncurryThis$8(store.has);
861
+ var wmset = uncurryThis$8(store.set);
858
862
  set = function (it, metadata) {
859
- if (wmhas(store, it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
863
+ if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
860
864
  metadata.facade = it;
861
865
  wmset(store, it, metadata);
862
866
  return metadata;
@@ -871,9 +875,9 @@ if (NATIVE_WEAK_MAP || shared.state) {
871
875
  var STATE = sharedKey$1('state');
872
876
  hiddenKeys$1[STATE] = true;
873
877
  set = function (it, metadata) {
874
- if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
878
+ if (hasOwn$6(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
875
879
  metadata.facade = it;
876
- createNonEnumerableProperty$4(it, STATE, metadata);
880
+ createNonEnumerableProperty$5(it, STATE, metadata);
877
881
  return metadata;
878
882
  };
879
883
  get = function (it) {
@@ -911,7 +915,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
911
915
  } : $propertyIsEnumerable;
912
916
 
913
917
  var DESCRIPTORS$3 = descriptors;
914
- var call$2 = functionCall;
918
+ var call$6 = functionCall;
915
919
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
916
920
  var createPropertyDescriptor$1 = createPropertyDescriptor$3;
917
921
  var toIndexedObject$1 = toIndexedObject$5;
@@ -930,22 +934,22 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$3 ? $getOwnPropertyDescriptor : f
930
934
  if (IE8_DOM_DEFINE) try {
931
935
  return $getOwnPropertyDescriptor(O, P);
932
936
  } catch (error) { /* empty */ }
933
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
937
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$6(propertyIsEnumerableModule$1.f, O, P), O[P]);
934
938
  };
935
939
 
936
- var redefine$3 = {exports: {}};
940
+ var redefine$4 = {exports: {}};
937
941
 
938
942
  var DESCRIPTORS$2 = descriptors;
939
943
  var hasOwn$4 = hasOwnProperty_1;
940
944
 
941
- var FunctionPrototype = Function.prototype;
945
+ var FunctionPrototype$1 = Function.prototype;
942
946
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
943
947
  var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
944
948
 
945
- var EXISTS = hasOwn$4(FunctionPrototype, 'name');
949
+ var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
946
950
  // additional protection from minified / mangled / dropped function names
947
951
  var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
948
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
952
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype$1, 'name').configurable));
949
953
 
950
954
  var functionName = {
951
955
  EXISTS: EXISTS,
@@ -953,38 +957,38 @@ var functionName = {
953
957
  CONFIGURABLE: CONFIGURABLE
954
958
  };
955
959
 
956
- var global$5 = global$o;
957
- var isCallable$5 = isCallable$d;
960
+ var global$b = global$u;
961
+ var isCallable$8 = isCallable$g;
958
962
  var hasOwn$3 = hasOwnProperty_1;
959
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
963
+ var createNonEnumerableProperty$4 = createNonEnumerableProperty$6;
960
964
  var setGlobal$1 = setGlobal$3;
961
965
  var inspectSource = inspectSource$2;
962
966
  var InternalStateModule$1 = internalState;
963
967
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
964
968
 
965
- var getInternalState$1 = InternalStateModule$1.get;
969
+ var getInternalState$2 = InternalStateModule$1.get;
966
970
  var enforceInternalState = InternalStateModule$1.enforce;
967
971
  var TEMPLATE = String(String).split('String');
968
972
 
969
- (redefine$3.exports = function (O, key, value, options) {
973
+ (redefine$4.exports = function (O, key, value, options) {
970
974
  var unsafe = options ? !!options.unsafe : false;
971
975
  var simple = options ? !!options.enumerable : false;
972
976
  var noTargetGet = options ? !!options.noTargetGet : false;
973
977
  var name = options && options.name !== undefined ? options.name : key;
974
978
  var state;
975
- if (isCallable$5(value)) {
979
+ if (isCallable$8(value)) {
976
980
  if (String(name).slice(0, 7) === 'Symbol(') {
977
981
  name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
978
982
  }
979
983
  if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
980
- createNonEnumerableProperty$3(value, 'name', name);
984
+ createNonEnumerableProperty$4(value, 'name', name);
981
985
  }
982
986
  state = enforceInternalState(value);
983
987
  if (!state.source) {
984
988
  state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
985
989
  }
986
990
  }
987
- if (O === global$5) {
991
+ if (O === global$b) {
988
992
  if (simple) O[key] = value;
989
993
  else setGlobal$1(key, value);
990
994
  return;
@@ -994,10 +998,10 @@ var TEMPLATE = String(String).split('String');
994
998
  simple = true;
995
999
  }
996
1000
  if (simple) O[key] = value;
997
- else createNonEnumerableProperty$3(O, key, value);
1001
+ else createNonEnumerableProperty$4(O, key, value);
998
1002
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
999
1003
  })(Function.prototype, 'toString', function toString() {
1000
- return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
1004
+ return isCallable$8(this) && getInternalState$2(this).source || inspectSource(this);
1001
1005
  });
1002
1006
 
1003
1007
  var objectGetOwnPropertyNames = {};
@@ -1020,18 +1024,18 @@ var objectGetOwnPropertySymbols = {};
1020
1024
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1021
1025
 
1022
1026
  var getBuiltIn = getBuiltIn$4;
1023
- var uncurryThis$2 = functionUncurryThis;
1027
+ var uncurryThis$7 = functionUncurryThis;
1024
1028
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1025
1029
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1026
- var anObject$1 = anObject$5;
1030
+ var anObject$4 = anObject$8;
1027
1031
 
1028
- var concat$1 = uncurryThis$2([].concat);
1032
+ var concat$2 = uncurryThis$7([].concat);
1029
1033
 
1030
1034
  // all object keys, includes non-enumerable and symbols
1031
1035
  var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1032
- var keys = getOwnPropertyNamesModule.f(anObject$1(it));
1036
+ var keys = getOwnPropertyNamesModule.f(anObject$4(it));
1033
1037
  var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
1034
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1038
+ return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
1035
1039
  };
1036
1040
 
1037
1041
  var hasOwn$2 = hasOwnProperty_1;
@@ -1051,8 +1055,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
1051
1055
  }
1052
1056
  };
1053
1057
 
1054
- var fails$3 = fails$a;
1055
- var isCallable$4 = isCallable$d;
1058
+ var fails$8 = fails$f;
1059
+ var isCallable$7 = isCallable$g;
1056
1060
 
1057
1061
  var replacement = /#|\.prototype\./;
1058
1062
 
@@ -1060,7 +1064,7 @@ var isForced$1 = function (feature, detection) {
1060
1064
  var value = data[normalize(feature)];
1061
1065
  return value == POLYFILL ? true
1062
1066
  : value == NATIVE ? false
1063
- : isCallable$4(detection) ? fails$3(detection)
1067
+ : isCallable$7(detection) ? fails$8(detection)
1064
1068
  : !!detection;
1065
1069
  };
1066
1070
 
@@ -1074,10 +1078,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
1074
1078
 
1075
1079
  var isForced_1 = isForced$1;
1076
1080
 
1077
- var global$4 = global$o;
1081
+ var global$a = global$u;
1078
1082
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1079
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
1080
- var redefine$2 = redefine$3.exports;
1083
+ var createNonEnumerableProperty$3 = createNonEnumerableProperty$6;
1084
+ var redefine$3 = redefine$4.exports;
1081
1085
  var setGlobal = setGlobal$3;
1082
1086
  var copyConstructorProperties = copyConstructorProperties$1;
1083
1087
  var isForced = isForced_1;
@@ -1103,11 +1107,11 @@ var _export = function (options, source) {
1103
1107
  var STATIC = options.stat;
1104
1108
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1105
1109
  if (GLOBAL) {
1106
- target = global$4;
1110
+ target = global$a;
1107
1111
  } else if (STATIC) {
1108
- target = global$4[TARGET] || setGlobal(TARGET, {});
1112
+ target = global$a[TARGET] || setGlobal(TARGET, {});
1109
1113
  } else {
1110
- target = (global$4[TARGET] || {}).prototype;
1114
+ target = (global$a[TARGET] || {}).prototype;
1111
1115
  }
1112
1116
  if (target) for (key in source) {
1113
1117
  sourceProperty = source[key];
@@ -1123,51 +1127,51 @@ var _export = function (options, source) {
1123
1127
  }
1124
1128
  // add a flag to not completely full polyfills
1125
1129
  if (options.sham || (targetProperty && targetProperty.sham)) {
1126
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1130
+ createNonEnumerableProperty$3(sourceProperty, 'sham', true);
1127
1131
  }
1128
1132
  // extend global
1129
- redefine$2(target, key, sourceProperty, options);
1133
+ redefine$3(target, key, sourceProperty, options);
1130
1134
  }
1131
1135
  };
1132
1136
 
1133
- var fails$2 = fails$a;
1137
+ var fails$7 = fails$f;
1134
1138
 
1135
- var correctPrototypeGetter = !fails$2(function () {
1139
+ var correctPrototypeGetter = !fails$7(function () {
1136
1140
  function F() { /* empty */ }
1137
1141
  F.prototype.constructor = null;
1138
1142
  // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1139
1143
  return Object.getPrototypeOf(new F()) !== F.prototype;
1140
1144
  });
1141
1145
 
1142
- var global$3 = global$o;
1146
+ var global$9 = global$u;
1143
1147
  var hasOwn$1 = hasOwnProperty_1;
1144
- var isCallable$3 = isCallable$d;
1145
- var toObject$1 = toObject$3;
1148
+ var isCallable$6 = isCallable$g;
1149
+ var toObject$2 = toObject$4;
1146
1150
  var sharedKey = sharedKey$3;
1147
1151
  var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1148
1152
 
1149
1153
  var IE_PROTO = sharedKey('IE_PROTO');
1150
- var Object$1 = global$3.Object;
1151
- var ObjectPrototype = Object$1.prototype;
1154
+ var Object$2 = global$9.Object;
1155
+ var ObjectPrototype = Object$2.prototype;
1152
1156
 
1153
1157
  // `Object.getPrototypeOf` method
1154
1158
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1155
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$1.getPrototypeOf : function (O) {
1156
- var object = toObject$1(O);
1159
+ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? Object$2.getPrototypeOf : function (O) {
1160
+ var object = toObject$2(O);
1157
1161
  if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1158
1162
  var constructor = object.constructor;
1159
- if (isCallable$3(constructor) && object instanceof constructor) {
1163
+ if (isCallable$6(constructor) && object instanceof constructor) {
1160
1164
  return constructor.prototype;
1161
- } return object instanceof Object$1 ? ObjectPrototype : null;
1165
+ } return object instanceof Object$2 ? ObjectPrototype : null;
1162
1166
  };
1163
1167
 
1164
- var fails$1 = fails$a;
1165
- var isCallable$2 = isCallable$d;
1168
+ var fails$6 = fails$f;
1169
+ var isCallable$5 = isCallable$g;
1166
1170
  var getPrototypeOf$1 = objectGetPrototypeOf;
1167
- var redefine$1 = redefine$3.exports;
1168
- var wellKnownSymbol$3 = wellKnownSymbol$6;
1171
+ var redefine$2 = redefine$4.exports;
1172
+ var wellKnownSymbol$7 = wellKnownSymbol$a;
1169
1173
 
1170
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
1174
+ var ITERATOR$2 = wellKnownSymbol$7('iterator');
1171
1175
  var BUGGY_SAFARI_ITERATORS$1 = false;
1172
1176
 
1173
1177
  // `%IteratorPrototype%` object
@@ -1185,7 +1189,7 @@ if ([].keys) {
1185
1189
  }
1186
1190
  }
1187
1191
 
1188
- var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$1(function () {
1192
+ var NEW_ITERATOR_PROTOTYPE = IteratorPrototype$2 == undefined || fails$6(function () {
1189
1193
  var test = {};
1190
1194
  // FF44- legacy iterators case
1191
1195
  return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
@@ -1195,8 +1199,8 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1195
1199
 
1196
1200
  // `%IteratorPrototype%[@@iterator]()` method
1197
1201
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1198
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
1199
- redefine$1(IteratorPrototype$2, ITERATOR$2, function () {
1202
+ if (!isCallable$5(IteratorPrototype$2[ITERATOR$2])) {
1203
+ redefine$2(IteratorPrototype$2, ITERATOR$2, function () {
1200
1204
  return this;
1201
1205
  });
1202
1206
  }
@@ -1208,19 +1212,19 @@ var iteratorsCore = {
1208
1212
 
1209
1213
  var defineProperty$2 = objectDefineProperty.f;
1210
1214
  var hasOwn = hasOwnProperty_1;
1211
- var wellKnownSymbol$2 = wellKnownSymbol$6;
1215
+ var wellKnownSymbol$6 = wellKnownSymbol$a;
1212
1216
 
1213
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1217
+ var TO_STRING_TAG$3 = wellKnownSymbol$6('toStringTag');
1214
1218
 
1215
1219
  var setToStringTag$2 = function (target, TAG, STATIC) {
1216
1220
  if (target && !STATIC) target = target.prototype;
1217
- if (target && !hasOwn(target, TO_STRING_TAG$1)) {
1218
- defineProperty$2(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
1221
+ if (target && !hasOwn(target, TO_STRING_TAG$3)) {
1222
+ defineProperty$2(target, TO_STRING_TAG$3, { configurable: true, value: TAG });
1219
1223
  }
1220
1224
  };
1221
1225
 
1222
1226
  var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1223
- var create = objectCreate;
1227
+ var create$1 = objectCreate;
1224
1228
  var createPropertyDescriptor = createPropertyDescriptor$3;
1225
1229
  var setToStringTag$1 = setToStringTag$2;
1226
1230
  var Iterators$2 = iterators;
@@ -1229,27 +1233,27 @@ var returnThis$1 = function () { return this; };
1229
1233
 
1230
1234
  var createIteratorConstructor$1 = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1231
1235
  var TO_STRING_TAG = NAME + ' Iterator';
1232
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1236
+ IteratorConstructor.prototype = create$1(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1233
1237
  setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
1234
1238
  Iterators$2[TO_STRING_TAG] = returnThis$1;
1235
1239
  return IteratorConstructor;
1236
1240
  };
1237
1241
 
1238
- var global$2 = global$o;
1239
- var isCallable$1 = isCallable$d;
1242
+ var global$8 = global$u;
1243
+ var isCallable$4 = isCallable$g;
1240
1244
 
1241
- var String$1 = global$2.String;
1242
- var TypeError = global$2.TypeError;
1245
+ var String$2 = global$8.String;
1246
+ var TypeError$2 = global$8.TypeError;
1243
1247
 
1244
1248
  var aPossiblePrototype$1 = function (argument) {
1245
- if (typeof argument == 'object' || isCallable$1(argument)) return argument;
1246
- throw TypeError("Can't set " + String$1(argument) + ' as a prototype');
1249
+ if (typeof argument == 'object' || isCallable$4(argument)) return argument;
1250
+ throw TypeError$2("Can't set " + String$2(argument) + ' as a prototype');
1247
1251
  };
1248
1252
 
1249
1253
  /* eslint-disable no-proto -- safe */
1250
1254
 
1251
- var uncurryThis$1 = functionUncurryThis;
1252
- var anObject = anObject$5;
1255
+ var uncurryThis$6 = functionUncurryThis;
1256
+ var anObject$3 = anObject$8;
1253
1257
  var aPossiblePrototype = aPossiblePrototype$1;
1254
1258
 
1255
1259
  // `Object.setPrototypeOf` method
@@ -1262,12 +1266,12 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1262
1266
  var setter;
1263
1267
  try {
1264
1268
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1265
- setter = uncurryThis$1(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1269
+ setter = uncurryThis$6(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1266
1270
  setter(test, []);
1267
1271
  CORRECT_SETTER = test instanceof Array;
1268
1272
  } catch (error) { /* empty */ }
1269
1273
  return function setPrototypeOf(O, proto) {
1270
- anObject(O);
1274
+ anObject$3(O);
1271
1275
  aPossiblePrototype(proto);
1272
1276
  if (CORRECT_SETTER) setter(O, proto);
1273
1277
  else O.__proto__ = proto;
@@ -1275,17 +1279,17 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
1275
1279
  };
1276
1280
  }() : undefined);
1277
1281
 
1278
- var $$1 = _export;
1279
- var call$1 = functionCall;
1282
+ var $$2 = _export;
1283
+ var call$5 = functionCall;
1280
1284
  var FunctionName = functionName;
1281
- var isCallable = isCallable$d;
1285
+ var isCallable$3 = isCallable$g;
1282
1286
  var createIteratorConstructor = createIteratorConstructor$1;
1283
1287
  var getPrototypeOf = objectGetPrototypeOf;
1284
1288
  var setPrototypeOf = objectSetPrototypeOf;
1285
1289
  var setToStringTag = setToStringTag$2;
1286
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
1287
- var redefine = redefine$3.exports;
1288
- var wellKnownSymbol$1 = wellKnownSymbol$6;
1290
+ var createNonEnumerableProperty$2 = createNonEnumerableProperty$6;
1291
+ var redefine$1 = redefine$4.exports;
1292
+ var wellKnownSymbol$5 = wellKnownSymbol$a;
1289
1293
  var Iterators$1 = iterators;
1290
1294
  var IteratorsCore = iteratorsCore;
1291
1295
 
@@ -1293,7 +1297,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1293
1297
  var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1294
1298
  var IteratorPrototype = IteratorsCore.IteratorPrototype;
1295
1299
  var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1296
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1300
+ var ITERATOR$1 = wellKnownSymbol$5('iterator');
1297
1301
  var KEYS = 'keys';
1298
1302
  var VALUES = 'values';
1299
1303
  var ENTRIES = 'entries';
@@ -1330,8 +1334,8 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1330
1334
  if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1331
1335
  if (setPrototypeOf) {
1332
1336
  setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1333
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
1334
- redefine(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1337
+ } else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$1])) {
1338
+ redefine$1(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1335
1339
  }
1336
1340
  }
1337
1341
  // Set @@toStringTag to native iterators
@@ -1342,10 +1346,10 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1342
1346
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1343
1347
  if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1344
1348
  if (CONFIGURABLE_FUNCTION_NAME) {
1345
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1349
+ createNonEnumerableProperty$2(IterablePrototype, 'name', VALUES);
1346
1350
  } else {
1347
1351
  INCORRECT_VALUES_NAME = true;
1348
- defaultIterator = function values() { return call$1(nativeIterator, this); };
1352
+ defaultIterator = function values() { return call$5(nativeIterator, this); };
1349
1353
  }
1350
1354
  }
1351
1355
 
@@ -1358,14 +1362,14 @@ var defineIterator$1 = function (Iterable, NAME, IteratorConstructor, next, DEFA
1358
1362
  };
1359
1363
  if (FORCED) for (KEY in methods) {
1360
1364
  if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1361
- redefine(IterablePrototype, KEY, methods[KEY]);
1365
+ redefine$1(IterablePrototype, KEY, methods[KEY]);
1362
1366
  }
1363
- } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1367
+ } else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1364
1368
  }
1365
1369
 
1366
1370
  // define iterator
1367
1371
  if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1368
- redefine(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1372
+ redefine$1(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1369
1373
  }
1370
1374
  Iterators$1[NAME] = defaultIterator;
1371
1375
 
@@ -1382,7 +1386,7 @@ var DESCRIPTORS$1 = descriptors;
1382
1386
 
1383
1387
  var ARRAY_ITERATOR = 'Array Iterator';
1384
1388
  var setInternalState = InternalStateModule.set;
1385
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1389
+ var getInternalState$1 = InternalStateModule.getterFor(ARRAY_ITERATOR);
1386
1390
 
1387
1391
  // `Array.prototype.entries` method
1388
1392
  // https://tc39.es/ecma262/#sec-array.prototype.entries
@@ -1404,7 +1408,7 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
1404
1408
  // `%ArrayIteratorPrototype%.next` method
1405
1409
  // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1406
1410
  }, function () {
1407
- var state = getInternalState(this);
1411
+ var state = getInternalState$1(this);
1408
1412
  var target = state.target;
1409
1413
  var kind = state.kind;
1410
1414
  var index = state.index++;
@@ -1476,32 +1480,32 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
1476
1480
 
1477
1481
  var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1478
1482
 
1479
- var global$1 = global$o;
1483
+ var global$7 = global$u;
1480
1484
  var DOMIterables = domIterables;
1481
1485
  var DOMTokenListPrototype = domTokenListPrototype;
1482
1486
  var ArrayIteratorMethods = es_array_iterator;
1483
- var createNonEnumerableProperty = createNonEnumerableProperty$5;
1484
- var wellKnownSymbol = wellKnownSymbol$6;
1487
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$6;
1488
+ var wellKnownSymbol$4 = wellKnownSymbol$a;
1485
1489
 
1486
- var ITERATOR = wellKnownSymbol('iterator');
1487
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1490
+ var ITERATOR = wellKnownSymbol$4('iterator');
1491
+ var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
1488
1492
  var ArrayValues = ArrayIteratorMethods.values;
1489
1493
 
1490
1494
  var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1491
1495
  if (CollectionPrototype) {
1492
1496
  // some Chrome versions have non-configurable methods on DOMTokenList
1493
1497
  if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1494
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
1498
+ createNonEnumerableProperty$1(CollectionPrototype, ITERATOR, ArrayValues);
1495
1499
  } catch (error) {
1496
1500
  CollectionPrototype[ITERATOR] = ArrayValues;
1497
1501
  }
1498
- if (!CollectionPrototype[TO_STRING_TAG]) {
1499
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
1502
+ if (!CollectionPrototype[TO_STRING_TAG$2]) {
1503
+ createNonEnumerableProperty$1(CollectionPrototype, TO_STRING_TAG$2, COLLECTION_NAME);
1500
1504
  }
1501
1505
  if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1502
1506
  // some Chrome versions have non-configurable methods on DOMTokenList
1503
1507
  if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1504
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1508
+ createNonEnumerableProperty$1(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1505
1509
  } catch (error) {
1506
1510
  CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1507
1511
  }
@@ -1510,7 +1514,7 @@ var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1510
1514
  };
1511
1515
 
1512
1516
  for (var COLLECTION_NAME in DOMIterables) {
1513
- handlePrototype(global$1[COLLECTION_NAME] && global$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
1517
+ handlePrototype(global$7[COLLECTION_NAME] && global$7[COLLECTION_NAME].prototype, COLLECTION_NAME);
1514
1518
  }
1515
1519
 
1516
1520
  handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
@@ -1527,24 +1531,24 @@ const useProfile = () => {
1527
1531
  };
1528
1532
 
1529
1533
  var DESCRIPTORS = descriptors;
1530
- var uncurryThis = functionUncurryThis;
1531
- var call = functionCall;
1532
- var fails = fails$a;
1534
+ var uncurryThis$5 = functionUncurryThis;
1535
+ var call$4 = functionCall;
1536
+ var fails$5 = fails$f;
1533
1537
  var objectKeys = objectKeys$2;
1534
1538
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1535
1539
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1536
- var toObject = toObject$3;
1540
+ var toObject$1 = toObject$4;
1537
1541
  var IndexedObject = indexedObject;
1538
1542
 
1539
1543
  // eslint-disable-next-line es/no-object-assign -- safe
1540
1544
  var $assign = Object.assign;
1541
1545
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1542
1546
  var defineProperty = Object.defineProperty;
1543
- var concat = uncurryThis([].concat);
1547
+ var concat$1 = uncurryThis$5([].concat);
1544
1548
 
1545
1549
  // `Object.assign` method
1546
1550
  // https://tc39.es/ecma262/#sec-object.assign
1547
- var objectAssign = !$assign || fails(function () {
1551
+ var objectAssign = !$assign || fails$5(function () {
1548
1552
  // should have correct order of operations (Edge bug)
1549
1553
  if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
1550
1554
  enumerable: true,
@@ -1565,31 +1569,31 @@ var objectAssign = !$assign || fails(function () {
1565
1569
  alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1566
1570
  return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
1567
1571
  }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1568
- var T = toObject(target);
1572
+ var T = toObject$1(target);
1569
1573
  var argumentsLength = arguments.length;
1570
1574
  var index = 1;
1571
1575
  var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1572
1576
  var propertyIsEnumerable = propertyIsEnumerableModule.f;
1573
1577
  while (argumentsLength > index) {
1574
1578
  var S = IndexedObject(arguments[index++]);
1575
- var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1579
+ var keys = getOwnPropertySymbols ? concat$1(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
1576
1580
  var length = keys.length;
1577
1581
  var j = 0;
1578
1582
  var key;
1579
1583
  while (length > j) {
1580
1584
  key = keys[j++];
1581
- if (!DESCRIPTORS || call(propertyIsEnumerable, S, key)) T[key] = S[key];
1585
+ if (!DESCRIPTORS || call$4(propertyIsEnumerable, S, key)) T[key] = S[key];
1582
1586
  }
1583
1587
  } return T;
1584
1588
  } : $assign;
1585
1589
 
1586
- var $ = _export;
1590
+ var $$1 = _export;
1587
1591
  var assign = objectAssign;
1588
1592
 
1589
1593
  // `Object.assign` method
1590
1594
  // https://tc39.es/ecma262/#sec-object.assign
1591
1595
  // eslint-disable-next-line es/no-object-assign -- required for testing
1592
- $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
1596
+ $$1({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
1593
1597
  assign: assign
1594
1598
  });
1595
1599
 
@@ -1620,8 +1624,6 @@ function __rest(s, e) {
1620
1624
  return t;
1621
1625
  }
1622
1626
 
1623
- const isBrowser = () => typeof window !== 'undefined';
1624
-
1625
1627
  const usePersonalize = (baseline, variants, options = {
1626
1628
  holdout: -1
1627
1629
  }) => {
@@ -1629,6 +1631,33 @@ const usePersonalize = (baseline, variants, options = {
1629
1631
  return selectVariant(baseline, variants, profile, options);
1630
1632
  };
1631
1633
 
1634
+ const TrackHasSeen = ({
1635
+ children,
1636
+ variant,
1637
+ audience,
1638
+ isPersonalized
1639
+ }) => {
1640
+ const ninetailed = useNinetailed();
1641
+ const {
1642
+ ref,
1643
+ inView
1644
+ } = useInView({
1645
+ triggerOnce: true
1646
+ });
1647
+ useEffect(() => {
1648
+ if (isBrowser() && inView) {
1649
+ ninetailed.trackHasSeenComponent({
1650
+ variant,
1651
+ audience,
1652
+ isPersonalized
1653
+ });
1654
+ }
1655
+ }, [inView]);
1656
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
1657
+ ref: ref
1658
+ }), children);
1659
+ };
1660
+
1632
1661
  const Personalize = _a => {
1633
1662
  var {
1634
1663
  component: Component,
@@ -1645,26 +1674,8 @@ const Personalize = _a => {
1645
1674
  audience
1646
1675
  } = usePersonalize(baseline, variants, {
1647
1676
  holdout
1648
- }); // const trackSeenComponent = useTrackSeenComponent<P>();
1649
-
1650
- const [isVisible, setIsVisible] = useState(false);
1651
- const onChangeVisibility = useCallback(visibility => {
1652
- if (visibility) {
1653
- setIsVisible(true);
1654
- }
1655
- }, []);
1656
- const trackCallFired = useRef(false);
1677
+ });
1657
1678
  const hasVariants = variants.length > 0;
1658
- useEffect(() => {
1659
- if (isBrowser() && hasVariants && !loading && isVisible && variant && audience && audience.id !== 'baseline' && !trackCallFired.current) {
1660
- // trackSeenComponent({
1661
- // variant,
1662
- // audience,
1663
- // isPersonalized,
1664
- // });
1665
- trackCallFired.current = true;
1666
- }
1667
- }, [loading, isVisible, variant, baseline, isPersonalized]);
1668
1679
 
1669
1680
  if (!hasVariants) {
1670
1681
  return /*#__PURE__*/React.createElement(Component, Object.assign({}, baseline, {
@@ -1693,11 +1704,12 @@ const Personalize = _a => {
1693
1704
  })));
1694
1705
  }
1695
1706
 
1696
- return /*#__PURE__*/React.createElement(VisibilitySensor, {
1697
- key: `${audience.id}-${variant.id}`,
1698
- partialVisibility: true,
1699
- onChange: onChangeVisibility
1707
+ return /*#__PURE__*/React.createElement(TrackHasSeen, {
1708
+ variant: variant,
1709
+ audience: audience,
1710
+ isPersonalized: isPersonalized
1700
1711
  }, /*#__PURE__*/React.createElement(Component, Object.assign({}, variant, {
1712
+ key: `${audience.id}-${variant.id}`,
1701
1713
  ninetailed: {
1702
1714
  isPersonalized,
1703
1715
  audience
@@ -1705,4 +1717,600 @@ const Personalize = _a => {
1705
1717
  })));
1706
1718
  };
1707
1719
 
1708
- export { NinetailedProvider, Personalize, useNinetailed, useProfile };
1720
+ var wellKnownSymbol$3 = wellKnownSymbol$a;
1721
+
1722
+ var TO_STRING_TAG$1 = wellKnownSymbol$3('toStringTag');
1723
+ var test = {};
1724
+
1725
+ test[TO_STRING_TAG$1] = 'z';
1726
+
1727
+ var toStringTagSupport = String(test) === '[object z]';
1728
+
1729
+ var global$6 = global$u;
1730
+ var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1731
+ var isCallable$2 = isCallable$g;
1732
+ var classofRaw = classofRaw$1;
1733
+ var wellKnownSymbol$2 = wellKnownSymbol$a;
1734
+
1735
+ var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1736
+ var Object$1 = global$6.Object;
1737
+
1738
+ // ES3 wrong here
1739
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1740
+
1741
+ // fallback for IE11 Script Access Denied error
1742
+ var tryGet = function (it, key) {
1743
+ try {
1744
+ return it[key];
1745
+ } catch (error) { /* empty */ }
1746
+ };
1747
+
1748
+ // getting tag from ES6+ `Object.prototype.toString`
1749
+ var classof$2 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1750
+ var O, tag, result;
1751
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1752
+ // @@toStringTag case
1753
+ : typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
1754
+ // builtinTag case
1755
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1756
+ // ES3 arguments fallback
1757
+ : (result = classofRaw(O)) == 'Object' && isCallable$2(O.callee) ? 'Arguments' : result;
1758
+ };
1759
+
1760
+ var global$5 = global$u;
1761
+ var classof$1 = classof$2;
1762
+
1763
+ var String$1 = global$5.String;
1764
+
1765
+ var toString$3 = function (argument) {
1766
+ if (classof$1(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1767
+ return String$1(argument);
1768
+ };
1769
+
1770
+ var anObject$2 = anObject$8;
1771
+
1772
+ // `RegExp.prototype.flags` getter implementation
1773
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
1774
+ var regexpFlags$1 = function () {
1775
+ var that = anObject$2(this);
1776
+ var result = '';
1777
+ if (that.global) result += 'g';
1778
+ if (that.ignoreCase) result += 'i';
1779
+ if (that.multiline) result += 'm';
1780
+ if (that.dotAll) result += 's';
1781
+ if (that.unicode) result += 'u';
1782
+ if (that.sticky) result += 'y';
1783
+ return result;
1784
+ };
1785
+
1786
+ var fails$4 = fails$f;
1787
+ var global$4 = global$u;
1788
+
1789
+ // babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1790
+ var $RegExp$2 = global$4.RegExp;
1791
+
1792
+ var UNSUPPORTED_Y$1 = fails$4(function () {
1793
+ var re = $RegExp$2('a', 'y');
1794
+ re.lastIndex = 2;
1795
+ return re.exec('abcd') != null;
1796
+ });
1797
+
1798
+ // UC Browser bug
1799
+ // https://github.com/zloirock/core-js/issues/1008
1800
+ var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$4(function () {
1801
+ return !$RegExp$2('a', 'y').sticky;
1802
+ });
1803
+
1804
+ var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$4(function () {
1805
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1806
+ var re = $RegExp$2('^r', 'gy');
1807
+ re.lastIndex = 2;
1808
+ return re.exec('str') != null;
1809
+ });
1810
+
1811
+ var regexpStickyHelpers = {
1812
+ BROKEN_CARET: BROKEN_CARET,
1813
+ MISSED_STICKY: MISSED_STICKY,
1814
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1
1815
+ };
1816
+
1817
+ var fails$3 = fails$f;
1818
+ var global$3 = global$u;
1819
+
1820
+ // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
1821
+ var $RegExp$1 = global$3.RegExp;
1822
+
1823
+ var regexpUnsupportedDotAll = fails$3(function () {
1824
+ var re = $RegExp$1('.', 's');
1825
+ return !(re.dotAll && re.exec('\n') && re.flags === 's');
1826
+ });
1827
+
1828
+ var fails$2 = fails$f;
1829
+ var global$2 = global$u;
1830
+
1831
+ // babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
1832
+ var $RegExp = global$2.RegExp;
1833
+
1834
+ var regexpUnsupportedNcg = fails$2(function () {
1835
+ var re = $RegExp('(?<a>b)', 'g');
1836
+ return re.exec('b').groups.a !== 'b' ||
1837
+ 'b'.replace(re, '$<a>c') !== 'bc';
1838
+ });
1839
+
1840
+ /* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
1841
+ /* eslint-disable regexp/no-useless-quantifier -- testing */
1842
+ var call$3 = functionCall;
1843
+ var uncurryThis$4 = functionUncurryThis;
1844
+ var toString$2 = toString$3;
1845
+ var regexpFlags = regexpFlags$1;
1846
+ var stickyHelpers = regexpStickyHelpers;
1847
+ var shared = shared$4.exports;
1848
+ var create = objectCreate;
1849
+ var getInternalState = internalState.get;
1850
+ var UNSUPPORTED_DOT_ALL = regexpUnsupportedDotAll;
1851
+ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
1852
+
1853
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
1854
+ var nativeExec = RegExp.prototype.exec;
1855
+ var patchedExec = nativeExec;
1856
+ var charAt$3 = uncurryThis$4(''.charAt);
1857
+ var indexOf = uncurryThis$4(''.indexOf);
1858
+ var replace$1 = uncurryThis$4(''.replace);
1859
+ var stringSlice$3 = uncurryThis$4(''.slice);
1860
+
1861
+ var UPDATES_LAST_INDEX_WRONG = (function () {
1862
+ var re1 = /a/;
1863
+ var re2 = /b*/g;
1864
+ call$3(nativeExec, re1, 'a');
1865
+ call$3(nativeExec, re2, 'a');
1866
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1867
+ })();
1868
+
1869
+ var UNSUPPORTED_Y = stickyHelpers.BROKEN_CARET;
1870
+
1871
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
1872
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1873
+
1874
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || UNSUPPORTED_DOT_ALL || UNSUPPORTED_NCG;
1875
+
1876
+ if (PATCH) {
1877
+ patchedExec = function exec(string) {
1878
+ var re = this;
1879
+ var state = getInternalState(re);
1880
+ var str = toString$2(string);
1881
+ var raw = state.raw;
1882
+ var result, reCopy, lastIndex, match, i, object, group;
1883
+
1884
+ if (raw) {
1885
+ raw.lastIndex = re.lastIndex;
1886
+ result = call$3(patchedExec, raw, str);
1887
+ re.lastIndex = raw.lastIndex;
1888
+ return result;
1889
+ }
1890
+
1891
+ var groups = state.groups;
1892
+ var sticky = UNSUPPORTED_Y && re.sticky;
1893
+ var flags = call$3(regexpFlags, re);
1894
+ var source = re.source;
1895
+ var charsAdded = 0;
1896
+ var strCopy = str;
1897
+
1898
+ if (sticky) {
1899
+ flags = replace$1(flags, 'y', '');
1900
+ if (indexOf(flags, 'g') === -1) {
1901
+ flags += 'g';
1902
+ }
1903
+
1904
+ strCopy = stringSlice$3(str, re.lastIndex);
1905
+ // Support anchored sticky behavior.
1906
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
1907
+ source = '(?: ' + source + ')';
1908
+ strCopy = ' ' + strCopy;
1909
+ charsAdded++;
1910
+ }
1911
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
1912
+ // simulate the 'y' flag.
1913
+ reCopy = new RegExp('^(?:' + source + ')', flags);
1914
+ }
1915
+
1916
+ if (NPCG_INCLUDED) {
1917
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1918
+ }
1919
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1920
+
1921
+ match = call$3(nativeExec, sticky ? reCopy : re, strCopy);
1922
+
1923
+ if (sticky) {
1924
+ if (match) {
1925
+ match.input = stringSlice$3(match.input, charsAdded);
1926
+ match[0] = stringSlice$3(match[0], charsAdded);
1927
+ match.index = re.lastIndex;
1928
+ re.lastIndex += match[0].length;
1929
+ } else re.lastIndex = 0;
1930
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
1931
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1932
+ }
1933
+ if (NPCG_INCLUDED && match && match.length > 1) {
1934
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
1935
+ // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1936
+ call$3(nativeReplace, match[0], reCopy, function () {
1937
+ for (i = 1; i < arguments.length - 2; i++) {
1938
+ if (arguments[i] === undefined) match[i] = undefined;
1939
+ }
1940
+ });
1941
+ }
1942
+
1943
+ if (match && groups) {
1944
+ match.groups = object = create(null);
1945
+ for (i = 0; i < groups.length; i++) {
1946
+ group = groups[i];
1947
+ object[group[0]] = match[group[1]];
1948
+ }
1949
+ }
1950
+
1951
+ return match;
1952
+ };
1953
+ }
1954
+
1955
+ var regexpExec$2 = patchedExec;
1956
+
1957
+ var $ = _export;
1958
+ var exec = regexpExec$2;
1959
+
1960
+ // `RegExp.prototype.exec` method
1961
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
1962
+ $({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
1963
+ exec: exec
1964
+ });
1965
+
1966
+ var NATIVE_BIND = functionBindNative;
1967
+
1968
+ var FunctionPrototype = Function.prototype;
1969
+ var apply$1 = FunctionPrototype.apply;
1970
+ var call$2 = FunctionPrototype.call;
1971
+
1972
+ // eslint-disable-next-line es/no-reflect -- safe
1973
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$2.bind(apply$1) : function () {
1974
+ return call$2.apply(apply$1, arguments);
1975
+ });
1976
+
1977
+ // TODO: Remove from `core-js@4` since it's moved to entry points
1978
+
1979
+ var uncurryThis$3 = functionUncurryThis;
1980
+ var redefine = redefine$4.exports;
1981
+ var regexpExec$1 = regexpExec$2;
1982
+ var fails$1 = fails$f;
1983
+ var wellKnownSymbol$1 = wellKnownSymbol$a;
1984
+ var createNonEnumerableProperty = createNonEnumerableProperty$6;
1985
+
1986
+ var SPECIES = wellKnownSymbol$1('species');
1987
+ var RegExpPrototype = RegExp.prototype;
1988
+
1989
+ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
1990
+ var SYMBOL = wellKnownSymbol$1(KEY);
1991
+
1992
+ var DELEGATES_TO_SYMBOL = !fails$1(function () {
1993
+ // String methods call symbol-named RegEp methods
1994
+ var O = {};
1995
+ O[SYMBOL] = function () { return 7; };
1996
+ return ''[KEY](O) != 7;
1997
+ });
1998
+
1999
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$1(function () {
2000
+ // Symbol-named RegExp methods call .exec
2001
+ var execCalled = false;
2002
+ var re = /a/;
2003
+
2004
+ if (KEY === 'split') {
2005
+ // We can't use real regex here since it causes deoptimization
2006
+ // and serious performance degradation in V8
2007
+ // https://github.com/zloirock/core-js/issues/306
2008
+ re = {};
2009
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
2010
+ // a new one. We need to return the patched regex when creating the new one.
2011
+ re.constructor = {};
2012
+ re.constructor[SPECIES] = function () { return re; };
2013
+ re.flags = '';
2014
+ re[SYMBOL] = /./[SYMBOL];
2015
+ }
2016
+
2017
+ re.exec = function () { execCalled = true; return null; };
2018
+
2019
+ re[SYMBOL]('');
2020
+ return !execCalled;
2021
+ });
2022
+
2023
+ if (
2024
+ !DELEGATES_TO_SYMBOL ||
2025
+ !DELEGATES_TO_EXEC ||
2026
+ FORCED
2027
+ ) {
2028
+ var uncurriedNativeRegExpMethod = uncurryThis$3(/./[SYMBOL]);
2029
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
2030
+ var uncurriedNativeMethod = uncurryThis$3(nativeMethod);
2031
+ var $exec = regexp.exec;
2032
+ if ($exec === regexpExec$1 || $exec === RegExpPrototype.exec) {
2033
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
2034
+ // The native String method already delegates to @@method (this
2035
+ // polyfilled function), leasing to infinite recursion.
2036
+ // We avoid it by directly calling the native @@method method.
2037
+ return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
2038
+ }
2039
+ return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
2040
+ }
2041
+ return { done: false };
2042
+ });
2043
+
2044
+ redefine(String.prototype, KEY, methods[0]);
2045
+ redefine(RegExpPrototype, SYMBOL, methods[1]);
2046
+ }
2047
+
2048
+ if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
2049
+ };
2050
+
2051
+ var uncurryThis$2 = functionUncurryThis;
2052
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
2053
+ var toString$1 = toString$3;
2054
+ var requireObjectCoercible$1 = requireObjectCoercible$4;
2055
+
2056
+ var charAt$2 = uncurryThis$2(''.charAt);
2057
+ var charCodeAt = uncurryThis$2(''.charCodeAt);
2058
+ var stringSlice$2 = uncurryThis$2(''.slice);
2059
+
2060
+ var createMethod = function (CONVERT_TO_STRING) {
2061
+ return function ($this, pos) {
2062
+ var S = toString$1(requireObjectCoercible$1($this));
2063
+ var position = toIntegerOrInfinity$1(pos);
2064
+ var size = S.length;
2065
+ var first, second;
2066
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
2067
+ first = charCodeAt(S, position);
2068
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
2069
+ || (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
2070
+ ? CONVERT_TO_STRING
2071
+ ? charAt$2(S, position)
2072
+ : first
2073
+ : CONVERT_TO_STRING
2074
+ ? stringSlice$2(S, position, position + 2)
2075
+ : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
2076
+ };
2077
+ };
2078
+
2079
+ var stringMultibyte = {
2080
+ // `String.prototype.codePointAt` method
2081
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
2082
+ codeAt: createMethod(false),
2083
+ // `String.prototype.at` method
2084
+ // https://github.com/mathiasbynens/String.prototype.at
2085
+ charAt: createMethod(true)
2086
+ };
2087
+
2088
+ var charAt$1 = stringMultibyte.charAt;
2089
+
2090
+ // `AdvanceStringIndex` abstract operation
2091
+ // https://tc39.es/ecma262/#sec-advancestringindex
2092
+ var advanceStringIndex$1 = function (S, index, unicode) {
2093
+ return index + (unicode ? charAt$1(S, index).length : 1);
2094
+ };
2095
+
2096
+ var uncurryThis$1 = functionUncurryThis;
2097
+ var toObject = toObject$4;
2098
+
2099
+ var floor = Math.floor;
2100
+ var charAt = uncurryThis$1(''.charAt);
2101
+ var replace = uncurryThis$1(''.replace);
2102
+ var stringSlice$1 = uncurryThis$1(''.slice);
2103
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
2104
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
2105
+
2106
+ // `GetSubstitution` abstract operation
2107
+ // https://tc39.es/ecma262/#sec-getsubstitution
2108
+ var getSubstitution$1 = function (matched, str, position, captures, namedCaptures, replacement) {
2109
+ var tailPos = position + matched.length;
2110
+ var m = captures.length;
2111
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
2112
+ if (namedCaptures !== undefined) {
2113
+ namedCaptures = toObject(namedCaptures);
2114
+ symbols = SUBSTITUTION_SYMBOLS;
2115
+ }
2116
+ return replace(replacement, symbols, function (match, ch) {
2117
+ var capture;
2118
+ switch (charAt(ch, 0)) {
2119
+ case '$': return '$';
2120
+ case '&': return matched;
2121
+ case '`': return stringSlice$1(str, 0, position);
2122
+ case "'": return stringSlice$1(str, tailPos);
2123
+ case '<':
2124
+ capture = namedCaptures[stringSlice$1(ch, 1, -1)];
2125
+ break;
2126
+ default: // \d\d?
2127
+ var n = +ch;
2128
+ if (n === 0) return match;
2129
+ if (n > m) {
2130
+ var f = floor(n / 10);
2131
+ if (f === 0) return match;
2132
+ if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
2133
+ return match;
2134
+ }
2135
+ capture = captures[n - 1];
2136
+ }
2137
+ return capture === undefined ? '' : capture;
2138
+ });
2139
+ };
2140
+
2141
+ var global$1 = global$u;
2142
+ var call$1 = functionCall;
2143
+ var anObject$1 = anObject$8;
2144
+ var isCallable$1 = isCallable$g;
2145
+ var classof = classofRaw$1;
2146
+ var regexpExec = regexpExec$2;
2147
+
2148
+ var TypeError$1 = global$1.TypeError;
2149
+
2150
+ // `RegExpExec` abstract operation
2151
+ // https://tc39.es/ecma262/#sec-regexpexec
2152
+ var regexpExecAbstract = function (R, S) {
2153
+ var exec = R.exec;
2154
+ if (isCallable$1(exec)) {
2155
+ var result = call$1(exec, R, S);
2156
+ if (result !== null) anObject$1(result);
2157
+ return result;
2158
+ }
2159
+ if (classof(R) === 'RegExp') return call$1(regexpExec, R, S);
2160
+ throw TypeError$1('RegExp#exec called on incompatible receiver');
2161
+ };
2162
+
2163
+ var apply = functionApply;
2164
+ var call = functionCall;
2165
+ var uncurryThis = functionUncurryThis;
2166
+ var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
2167
+ var fails = fails$f;
2168
+ var anObject = anObject$8;
2169
+ var isCallable = isCallable$g;
2170
+ var toIntegerOrInfinity = toIntegerOrInfinity$4;
2171
+ var toLength = toLength$2;
2172
+ var toString = toString$3;
2173
+ var requireObjectCoercible = requireObjectCoercible$4;
2174
+ var advanceStringIndex = advanceStringIndex$1;
2175
+ var getMethod = getMethod$2;
2176
+ var getSubstitution = getSubstitution$1;
2177
+ var regExpExec = regexpExecAbstract;
2178
+ var wellKnownSymbol = wellKnownSymbol$a;
2179
+
2180
+ var REPLACE = wellKnownSymbol('replace');
2181
+ var max = Math.max;
2182
+ var min = Math.min;
2183
+ var concat = uncurryThis([].concat);
2184
+ var push = uncurryThis([].push);
2185
+ var stringIndexOf = uncurryThis(''.indexOf);
2186
+ var stringSlice = uncurryThis(''.slice);
2187
+
2188
+ var maybeToString = function (it) {
2189
+ return it === undefined ? it : String(it);
2190
+ };
2191
+
2192
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
2193
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
2194
+ var REPLACE_KEEPS_$0 = (function () {
2195
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
2196
+ return 'a'.replace(/./, '$0') === '$0';
2197
+ })();
2198
+
2199
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
2200
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
2201
+ if (/./[REPLACE]) {
2202
+ return /./[REPLACE]('a', '$0') === '';
2203
+ }
2204
+ return false;
2205
+ })();
2206
+
2207
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
2208
+ var re = /./;
2209
+ re.exec = function () {
2210
+ var result = [];
2211
+ result.groups = { a: '7' };
2212
+ return result;
2213
+ };
2214
+ // eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
2215
+ return ''.replace(re, '$<a>') !== '7';
2216
+ });
2217
+
2218
+ // @@replace logic
2219
+ fixRegExpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
2220
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
2221
+
2222
+ return [
2223
+ // `String.prototype.replace` method
2224
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
2225
+ function replace(searchValue, replaceValue) {
2226
+ var O = requireObjectCoercible(this);
2227
+ var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
2228
+ return replacer
2229
+ ? call(replacer, searchValue, O, replaceValue)
2230
+ : call(nativeReplace, toString(O), searchValue, replaceValue);
2231
+ },
2232
+ // `RegExp.prototype[@@replace]` method
2233
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
2234
+ function (string, replaceValue) {
2235
+ var rx = anObject(this);
2236
+ var S = toString(string);
2237
+
2238
+ if (
2239
+ typeof replaceValue == 'string' &&
2240
+ stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
2241
+ stringIndexOf(replaceValue, '$<') === -1
2242
+ ) {
2243
+ var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
2244
+ if (res.done) return res.value;
2245
+ }
2246
+
2247
+ var functionalReplace = isCallable(replaceValue);
2248
+ if (!functionalReplace) replaceValue = toString(replaceValue);
2249
+
2250
+ var global = rx.global;
2251
+ if (global) {
2252
+ var fullUnicode = rx.unicode;
2253
+ rx.lastIndex = 0;
2254
+ }
2255
+ var results = [];
2256
+ while (true) {
2257
+ var result = regExpExec(rx, S);
2258
+ if (result === null) break;
2259
+
2260
+ push(results, result);
2261
+ if (!global) break;
2262
+
2263
+ var matchStr = toString(result[0]);
2264
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
2265
+ }
2266
+
2267
+ var accumulatedResult = '';
2268
+ var nextSourcePosition = 0;
2269
+ for (var i = 0; i < results.length; i++) {
2270
+ result = results[i];
2271
+
2272
+ var matched = toString(result[0]);
2273
+ var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
2274
+ var captures = [];
2275
+ // NOTE: This is equivalent to
2276
+ // captures = result.slice(1).map(maybeToString)
2277
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
2278
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
2279
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
2280
+ for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
2281
+ var namedCaptures = result.groups;
2282
+ if (functionalReplace) {
2283
+ var replacerArgs = concat([matched], captures, position, S);
2284
+ if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
2285
+ var replacement = toString(apply(replaceValue, undefined, replacerArgs));
2286
+ } else {
2287
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
2288
+ }
2289
+ if (position >= nextSourcePosition) {
2290
+ accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
2291
+ nextSourcePosition = position + matched.length;
2292
+ }
2293
+ }
2294
+ return accumulatedResult + stringSlice(S, nextSourcePosition);
2295
+ }
2296
+ ];
2297
+ }, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
2298
+
2299
+ const MergeTag = ({
2300
+ id
2301
+ }) => {
2302
+ const {
2303
+ loading,
2304
+ profile
2305
+ } = useProfile();
2306
+
2307
+ if (loading || !profile) {
2308
+ return null;
2309
+ }
2310
+
2311
+ const value = get$1(profile, id.replace(/_/g, '.')); // DON'T CHANGE
2312
+
2313
+ return /*#__PURE__*/React.createElement(React.Fragment, null, value);
2314
+ };
2315
+
2316
+ export { MergeTag, NinetailedProvider, Personalize, useNinetailed, useProfile };