@ninetailed/experience.js-react 6.4.0-beta.8 → 7.0.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.cjs +0 -1688
  2. package/index.js +8 -1696
  3. package/package.json +3 -3
package/index.js CHANGED
@@ -1,1094 +1,11 @@
1
1
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import React, { createContext, useMemo, useContext, useState, useRef, useEffect, createElement as createElement$1, forwardRef } from 'react';
2
+ import React, { createContext, useMemo, useContext, useState, useRef, useEffect, createElement, forwardRef } from 'react';
3
3
  import { Ninetailed, selectVariant, makeExperienceSelectMiddleware, selectHasExperienceVariants, selectExperience, selectExperienceVariant } from '@ninetailed/experience.js';
4
4
  import { logger, isBrowser } from '@ninetailed/experience.js-shared';
5
- import { isEqual, get as get$1 } from 'radash';
5
+ import { isEqual, get } from 'radash';
6
6
  import { useInView } from 'react-intersection-observer';
7
7
  import { isForwardRef } from 'react-is';
8
8
 
9
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
-
11
- var check = function (it) {
12
- return it && it.Math == Math && it;
13
- };
14
-
15
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
16
- var global$c =
17
- // eslint-disable-next-line es/no-global-this -- safe
18
- check(typeof globalThis == 'object' && globalThis) ||
19
- check(typeof window == 'object' && window) ||
20
- // eslint-disable-next-line no-restricted-globals -- safe
21
- check(typeof self == 'object' && self) ||
22
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
23
- // eslint-disable-next-line no-new-func -- fallback
24
- (function () { return this; })() || Function('return this')();
25
-
26
- var objectGetOwnPropertyDescriptor = {};
27
-
28
- var fails$c = function (exec) {
29
- try {
30
- return !!exec();
31
- } catch (error) {
32
- return true;
33
- }
34
- };
35
-
36
- var fails$b = fails$c;
37
-
38
- // Detect IE8's incomplete defineProperty implementation
39
- var descriptors = !fails$b(function () {
40
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
41
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
42
- });
43
-
44
- var fails$a = fails$c;
45
-
46
- var functionBindNative = !fails$a(function () {
47
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
48
- var test = (function () { /* empty */ }).bind();
49
- // eslint-disable-next-line no-prototype-builtins -- safe
50
- return typeof test != 'function' || test.hasOwnProperty('prototype');
51
- });
52
-
53
- var NATIVE_BIND$1 = functionBindNative;
54
-
55
- var call$6 = Function.prototype.call;
56
-
57
- var functionCall = NATIVE_BIND$1 ? call$6.bind(call$6) : function () {
58
- return call$6.apply(call$6, arguments);
59
- };
60
-
61
- var objectPropertyIsEnumerable = {};
62
-
63
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
64
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
65
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
66
-
67
- // Nashorn ~ JDK8 bug
68
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
69
-
70
- // `Object.prototype.propertyIsEnumerable` method implementation
71
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
72
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
73
- var descriptor = getOwnPropertyDescriptor$1(this, V);
74
- return !!descriptor && descriptor.enumerable;
75
- } : $propertyIsEnumerable;
76
-
77
- var createPropertyDescriptor$3 = function (bitmap, value) {
78
- return {
79
- enumerable: !(bitmap & 1),
80
- configurable: !(bitmap & 2),
81
- writable: !(bitmap & 4),
82
- value: value
83
- };
84
- };
85
-
86
- var NATIVE_BIND = functionBindNative;
87
-
88
- var FunctionPrototype$1 = Function.prototype;
89
- var call$5 = FunctionPrototype$1.call;
90
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$5, call$5);
91
-
92
- var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
93
- return function () {
94
- return call$5.apply(fn, arguments);
95
- };
96
- };
97
-
98
- var uncurryThis$9 = functionUncurryThis;
99
-
100
- var toString$1 = uncurryThis$9({}.toString);
101
- var stringSlice = uncurryThis$9(''.slice);
102
-
103
- var classofRaw = function (it) {
104
- return stringSlice(toString$1(it), 8, -1);
105
- };
106
-
107
- var uncurryThis$8 = functionUncurryThis;
108
- var fails$9 = fails$c;
109
- var classof$1 = classofRaw;
110
-
111
- var $Object$3 = Object;
112
- var split = uncurryThis$8(''.split);
113
-
114
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
115
- var indexedObject = fails$9(function () {
116
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
117
- // eslint-disable-next-line no-prototype-builtins -- safe
118
- return !$Object$3('z').propertyIsEnumerable(0);
119
- }) ? function (it) {
120
- return classof$1(it) == 'String' ? split(it, '') : $Object$3(it);
121
- } : $Object$3;
122
-
123
- // we can't use just `it == null` since of `document.all` special case
124
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
125
- var isNullOrUndefined$2 = function (it) {
126
- return it === null || it === undefined;
127
- };
128
-
129
- var isNullOrUndefined$1 = isNullOrUndefined$2;
130
-
131
- var $TypeError$7 = TypeError;
132
-
133
- // `RequireObjectCoercible` abstract operation
134
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
135
- var requireObjectCoercible$2 = function (it) {
136
- if (isNullOrUndefined$1(it)) throw $TypeError$7("Can't call method on " + it);
137
- return it;
138
- };
139
-
140
- // toObject with fallback for non-array-like ES3 strings
141
- var IndexedObject$2 = indexedObject;
142
- var requireObjectCoercible$1 = requireObjectCoercible$2;
143
-
144
- var toIndexedObject$5 = function (it) {
145
- return IndexedObject$2(requireObjectCoercible$1(it));
146
- };
147
-
148
- var documentAll$2 = typeof document == 'object' && document.all;
149
-
150
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
151
- var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
152
-
153
- var documentAll_1 = {
154
- all: documentAll$2,
155
- IS_HTMLDDA: IS_HTMLDDA
156
- };
157
-
158
- var $documentAll$1 = documentAll_1;
159
-
160
- var documentAll$1 = $documentAll$1.all;
161
-
162
- // `IsCallable` abstract operation
163
- // https://tc39.es/ecma262/#sec-iscallable
164
- var isCallable$e = $documentAll$1.IS_HTMLDDA ? function (argument) {
165
- return typeof argument == 'function' || argument === documentAll$1;
166
- } : function (argument) {
167
- return typeof argument == 'function';
168
- };
169
-
170
- var isCallable$d = isCallable$e;
171
- var $documentAll = documentAll_1;
172
-
173
- var documentAll = $documentAll.all;
174
-
175
- var isObject$6 = $documentAll.IS_HTMLDDA ? function (it) {
176
- return typeof it == 'object' ? it !== null : isCallable$d(it) || it === documentAll;
177
- } : function (it) {
178
- return typeof it == 'object' ? it !== null : isCallable$d(it);
179
- };
180
-
181
- var global$b = global$c;
182
- var isCallable$c = isCallable$e;
183
-
184
- var aFunction = function (argument) {
185
- return isCallable$c(argument) ? argument : undefined;
186
- };
187
-
188
- var getBuiltIn$4 = function (namespace, method) {
189
- return arguments.length < 2 ? aFunction(global$b[namespace]) : global$b[namespace] && global$b[namespace][method];
190
- };
191
-
192
- var uncurryThis$7 = functionUncurryThis;
193
-
194
- var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
195
-
196
- var getBuiltIn$3 = getBuiltIn$4;
197
-
198
- var engineUserAgent = getBuiltIn$3('navigator', 'userAgent') || '';
199
-
200
- var global$a = global$c;
201
- var userAgent = engineUserAgent;
202
-
203
- var process = global$a.process;
204
- var Deno = global$a.Deno;
205
- var versions = process && process.versions || Deno && Deno.version;
206
- var v8 = versions && versions.v8;
207
- var match, version;
208
-
209
- if (v8) {
210
- match = v8.split('.');
211
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
212
- // but their correct versions are not interesting for us
213
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
214
- }
215
-
216
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
217
- // so check `userAgent` even if `.v8` exists, but 0
218
- if (!version && userAgent) {
219
- match = userAgent.match(/Edge\/(\d+)/);
220
- if (!match || match[1] >= 74) {
221
- match = userAgent.match(/Chrome\/(\d+)/);
222
- if (match) version = +match[1];
223
- }
224
- }
225
-
226
- var engineV8Version = version;
227
-
228
- /* eslint-disable es/no-symbol -- required for testing */
229
-
230
- var V8_VERSION = engineV8Version;
231
- var fails$8 = fails$c;
232
-
233
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
234
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
235
- var symbol = Symbol();
236
- // Chrome 38 Symbol has incorrect toString conversion
237
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
238
- return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
239
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
240
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
241
- });
242
-
243
- /* eslint-disable es/no-symbol -- required for testing */
244
-
245
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
246
-
247
- var useSymbolAsUid = NATIVE_SYMBOL$1
248
- && !Symbol.sham
249
- && typeof Symbol.iterator == 'symbol';
250
-
251
- var getBuiltIn$2 = getBuiltIn$4;
252
- var isCallable$b = isCallable$e;
253
- var isPrototypeOf = objectIsPrototypeOf;
254
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
255
-
256
- var $Object$2 = Object;
257
-
258
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
259
- return typeof it == 'symbol';
260
- } : function (it) {
261
- var $Symbol = getBuiltIn$2('Symbol');
262
- return isCallable$b($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
263
- };
264
-
265
- var $String$2 = String;
266
-
267
- var tryToString$1 = function (argument) {
268
- try {
269
- return $String$2(argument);
270
- } catch (error) {
271
- return 'Object';
272
- }
273
- };
274
-
275
- var isCallable$a = isCallable$e;
276
- var tryToString = tryToString$1;
277
-
278
- var $TypeError$6 = TypeError;
279
-
280
- // `Assert: IsCallable(argument) is true`
281
- var aCallable$2 = function (argument) {
282
- if (isCallable$a(argument)) return argument;
283
- throw $TypeError$6(tryToString(argument) + ' is not a function');
284
- };
285
-
286
- var aCallable$1 = aCallable$2;
287
- var isNullOrUndefined = isNullOrUndefined$2;
288
-
289
- // `GetMethod` abstract operation
290
- // https://tc39.es/ecma262/#sec-getmethod
291
- var getMethod$1 = function (V, P) {
292
- var func = V[P];
293
- return isNullOrUndefined(func) ? undefined : aCallable$1(func);
294
- };
295
-
296
- var call$4 = functionCall;
297
- var isCallable$9 = isCallable$e;
298
- var isObject$5 = isObject$6;
299
-
300
- var $TypeError$5 = TypeError;
301
-
302
- // `OrdinaryToPrimitive` abstract operation
303
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
304
- var ordinaryToPrimitive$1 = function (input, pref) {
305
- var fn, val;
306
- if (pref === 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
307
- if (isCallable$9(fn = input.valueOf) && !isObject$5(val = call$4(fn, input))) return val;
308
- if (pref !== 'string' && isCallable$9(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
309
- throw $TypeError$5("Can't convert object to primitive value");
310
- };
311
-
312
- var shared$3 = {exports: {}};
313
-
314
- var global$9 = global$c;
315
-
316
- // eslint-disable-next-line es/no-object-defineproperty -- safe
317
- var defineProperty$5 = Object.defineProperty;
318
-
319
- var defineGlobalProperty$3 = function (key, value) {
320
- try {
321
- defineProperty$5(global$9, key, { value: value, configurable: true, writable: true });
322
- } catch (error) {
323
- global$9[key] = value;
324
- } return value;
325
- };
326
-
327
- var global$8 = global$c;
328
- var defineGlobalProperty$2 = defineGlobalProperty$3;
329
-
330
- var SHARED = '__core-js_shared__';
331
- var store$3 = global$8[SHARED] || defineGlobalProperty$2(SHARED, {});
332
-
333
- var sharedStore = store$3;
334
-
335
- var store$2 = sharedStore;
336
-
337
- (shared$3.exports = function (key, value) {
338
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
339
- })('versions', []).push({
340
- version: '3.26.1',
341
- mode: 'global',
342
- copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
343
- license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
344
- source: 'https://github.com/zloirock/core-js'
345
- });
346
-
347
- var requireObjectCoercible = requireObjectCoercible$2;
348
-
349
- var $Object$1 = Object;
350
-
351
- // `ToObject` abstract operation
352
- // https://tc39.es/ecma262/#sec-toobject
353
- var toObject$4 = function (argument) {
354
- return $Object$1(requireObjectCoercible(argument));
355
- };
356
-
357
- var uncurryThis$6 = functionUncurryThis;
358
- var toObject$3 = toObject$4;
359
-
360
- var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
361
-
362
- // `HasOwnProperty` abstract operation
363
- // https://tc39.es/ecma262/#sec-hasownproperty
364
- // eslint-disable-next-line es/no-object-hasown -- safe
365
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
366
- return hasOwnProperty(toObject$3(it), key);
367
- };
368
-
369
- var uncurryThis$5 = functionUncurryThis;
370
-
371
- var id = 0;
372
- var postfix = Math.random();
373
- var toString = uncurryThis$5(1.0.toString);
374
-
375
- var uid$2 = function (key) {
376
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
377
- };
378
-
379
- var global$7 = global$c;
380
- var shared$2 = shared$3.exports;
381
- var hasOwn$8 = hasOwnProperty_1;
382
- var uid$1 = uid$2;
383
- var NATIVE_SYMBOL = symbolConstructorDetection;
384
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
385
-
386
- var WellKnownSymbolsStore = shared$2('wks');
387
- var Symbol$1 = global$7.Symbol;
388
- var symbolFor = Symbol$1 && Symbol$1['for'];
389
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
390
-
391
- var wellKnownSymbol$6 = function (name) {
392
- if (!hasOwn$8(WellKnownSymbolsStore, name) || !(NATIVE_SYMBOL || typeof WellKnownSymbolsStore[name] == 'string')) {
393
- var description = 'Symbol.' + name;
394
- if (NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)) {
395
- WellKnownSymbolsStore[name] = Symbol$1[name];
396
- } else if (USE_SYMBOL_AS_UID && symbolFor) {
397
- WellKnownSymbolsStore[name] = symbolFor(description);
398
- } else {
399
- WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
400
- }
401
- } return WellKnownSymbolsStore[name];
402
- };
403
-
404
- var call$3 = functionCall;
405
- var isObject$4 = isObject$6;
406
- var isSymbol$1 = isSymbol$2;
407
- var getMethod = getMethod$1;
408
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
409
- var wellKnownSymbol$5 = wellKnownSymbol$6;
410
-
411
- var $TypeError$4 = TypeError;
412
- var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
413
-
414
- // `ToPrimitive` abstract operation
415
- // https://tc39.es/ecma262/#sec-toprimitive
416
- var toPrimitive$1 = function (input, pref) {
417
- if (!isObject$4(input) || isSymbol$1(input)) return input;
418
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
419
- var result;
420
- if (exoticToPrim) {
421
- if (pref === undefined) pref = 'default';
422
- result = call$3(exoticToPrim, input, pref);
423
- if (!isObject$4(result) || isSymbol$1(result)) return result;
424
- throw $TypeError$4("Can't convert object to primitive value");
425
- }
426
- if (pref === undefined) pref = 'number';
427
- return ordinaryToPrimitive(input, pref);
428
- };
429
-
430
- var toPrimitive = toPrimitive$1;
431
- var isSymbol = isSymbol$2;
432
-
433
- // `ToPropertyKey` abstract operation
434
- // https://tc39.es/ecma262/#sec-topropertykey
435
- var toPropertyKey$2 = function (argument) {
436
- var key = toPrimitive(argument, 'string');
437
- return isSymbol(key) ? key : key + '';
438
- };
439
-
440
- var global$6 = global$c;
441
- var isObject$3 = isObject$6;
442
-
443
- var document$1 = global$6.document;
444
- // typeof document.createElement is 'object' in old IE
445
- var EXISTS$1 = isObject$3(document$1) && isObject$3(document$1.createElement);
446
-
447
- var documentCreateElement$2 = function (it) {
448
- return EXISTS$1 ? document$1.createElement(it) : {};
449
- };
450
-
451
- var DESCRIPTORS$9 = descriptors;
452
- var fails$7 = fails$c;
453
- var createElement = documentCreateElement$2;
454
-
455
- // Thanks to IE8 for its funny defineProperty
456
- var ie8DomDefine = !DESCRIPTORS$9 && !fails$7(function () {
457
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
458
- return Object.defineProperty(createElement('div'), 'a', {
459
- get: function () { return 7; }
460
- }).a != 7;
461
- });
462
-
463
- var DESCRIPTORS$8 = descriptors;
464
- var call$2 = functionCall;
465
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
466
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
467
- var toIndexedObject$4 = toIndexedObject$5;
468
- var toPropertyKey$1 = toPropertyKey$2;
469
- var hasOwn$7 = hasOwnProperty_1;
470
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
471
-
472
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
473
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
474
-
475
- // `Object.getOwnPropertyDescriptor` method
476
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
477
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$8 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
478
- O = toIndexedObject$4(O);
479
- P = toPropertyKey$1(P);
480
- if (IE8_DOM_DEFINE$1) try {
481
- return $getOwnPropertyDescriptor$1(O, P);
482
- } catch (error) { /* empty */ }
483
- if (hasOwn$7(O, P)) return createPropertyDescriptor$2(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
484
- };
485
-
486
- var objectDefineProperty = {};
487
-
488
- var DESCRIPTORS$7 = descriptors;
489
- var fails$6 = fails$c;
490
-
491
- // V8 ~ Chrome 36-
492
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
493
- var v8PrototypeDefineBug = DESCRIPTORS$7 && fails$6(function () {
494
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
495
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
496
- value: 42,
497
- writable: false
498
- }).prototype != 42;
499
- });
500
-
501
- var isObject$2 = isObject$6;
502
-
503
- var $String$1 = String;
504
- var $TypeError$3 = TypeError;
505
-
506
- // `Assert: Type(argument) is Object`
507
- var anObject$5 = function (argument) {
508
- if (isObject$2(argument)) return argument;
509
- throw $TypeError$3($String$1(argument) + ' is not an object');
510
- };
511
-
512
- var DESCRIPTORS$6 = descriptors;
513
- var IE8_DOM_DEFINE = ie8DomDefine;
514
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
515
- var anObject$4 = anObject$5;
516
- var toPropertyKey = toPropertyKey$2;
517
-
518
- var $TypeError$2 = TypeError;
519
- // eslint-disable-next-line es/no-object-defineproperty -- safe
520
- var $defineProperty = Object.defineProperty;
521
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
522
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
523
- var ENUMERABLE = 'enumerable';
524
- var CONFIGURABLE$1 = 'configurable';
525
- var WRITABLE = 'writable';
526
-
527
- // `Object.defineProperty` method
528
- // https://tc39.es/ecma262/#sec-object.defineproperty
529
- objectDefineProperty.f = DESCRIPTORS$6 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
530
- anObject$4(O);
531
- P = toPropertyKey(P);
532
- anObject$4(Attributes);
533
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
534
- var current = $getOwnPropertyDescriptor(O, P);
535
- if (current && current[WRITABLE]) {
536
- O[P] = Attributes.value;
537
- Attributes = {
538
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
539
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
540
- writable: false
541
- };
542
- }
543
- } return $defineProperty(O, P, Attributes);
544
- } : $defineProperty : function defineProperty(O, P, Attributes) {
545
- anObject$4(O);
546
- P = toPropertyKey(P);
547
- anObject$4(Attributes);
548
- if (IE8_DOM_DEFINE) try {
549
- return $defineProperty(O, P, Attributes);
550
- } catch (error) { /* empty */ }
551
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError$2('Accessors not supported');
552
- if ('value' in Attributes) O[P] = Attributes.value;
553
- return O;
554
- };
555
-
556
- var DESCRIPTORS$5 = descriptors;
557
- var definePropertyModule$3 = objectDefineProperty;
558
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
559
-
560
- var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
561
- return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
562
- } : function (object, key, value) {
563
- object[key] = value;
564
- return object;
565
- };
566
-
567
- var makeBuiltIn$2 = {exports: {}};
568
-
569
- var DESCRIPTORS$4 = descriptors;
570
- var hasOwn$6 = hasOwnProperty_1;
571
-
572
- var FunctionPrototype = Function.prototype;
573
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
574
- var getDescriptor = DESCRIPTORS$4 && Object.getOwnPropertyDescriptor;
575
-
576
- var EXISTS = hasOwn$6(FunctionPrototype, 'name');
577
- // additional protection from minified / mangled / dropped function names
578
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
579
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$4 || (DESCRIPTORS$4 && getDescriptor(FunctionPrototype, 'name').configurable));
580
-
581
- var functionName = {
582
- EXISTS: EXISTS,
583
- PROPER: PROPER,
584
- CONFIGURABLE: CONFIGURABLE
585
- };
586
-
587
- var uncurryThis$4 = functionUncurryThis;
588
- var isCallable$8 = isCallable$e;
589
- var store$1 = sharedStore;
590
-
591
- var functionToString = uncurryThis$4(Function.toString);
592
-
593
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
594
- if (!isCallable$8(store$1.inspectSource)) {
595
- store$1.inspectSource = function (it) {
596
- return functionToString(it);
597
- };
598
- }
599
-
600
- var inspectSource$1 = store$1.inspectSource;
601
-
602
- var global$5 = global$c;
603
- var isCallable$7 = isCallable$e;
604
-
605
- var WeakMap$1 = global$5.WeakMap;
606
-
607
- var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
608
-
609
- var shared$1 = shared$3.exports;
610
- var uid = uid$2;
611
-
612
- var keys = shared$1('keys');
613
-
614
- var sharedKey$3 = function (key) {
615
- return keys[key] || (keys[key] = uid(key));
616
- };
617
-
618
- var hiddenKeys$4 = {};
619
-
620
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
621
- var global$4 = global$c;
622
- var isObject$1 = isObject$6;
623
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
624
- var hasOwn$5 = hasOwnProperty_1;
625
- var shared = sharedStore;
626
- var sharedKey$2 = sharedKey$3;
627
- var hiddenKeys$3 = hiddenKeys$4;
628
-
629
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
630
- var TypeError$1 = global$4.TypeError;
631
- var WeakMap = global$4.WeakMap;
632
- var set, get, has;
633
-
634
- var enforce = function (it) {
635
- return has(it) ? get(it) : set(it, {});
636
- };
637
-
638
- var getterFor = function (TYPE) {
639
- return function (it) {
640
- var state;
641
- if (!isObject$1(it) || (state = get(it)).type !== TYPE) {
642
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
643
- } return state;
644
- };
645
- };
646
-
647
- if (NATIVE_WEAK_MAP || shared.state) {
648
- var store = shared.state || (shared.state = new WeakMap());
649
- /* eslint-disable no-self-assign -- prototype methods protection */
650
- store.get = store.get;
651
- store.has = store.has;
652
- store.set = store.set;
653
- /* eslint-enable no-self-assign -- prototype methods protection */
654
- set = function (it, metadata) {
655
- if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
656
- metadata.facade = it;
657
- store.set(it, metadata);
658
- return metadata;
659
- };
660
- get = function (it) {
661
- return store.get(it) || {};
662
- };
663
- has = function (it) {
664
- return store.has(it);
665
- };
666
- } else {
667
- var STATE = sharedKey$2('state');
668
- hiddenKeys$3[STATE] = true;
669
- set = function (it, metadata) {
670
- if (hasOwn$5(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
671
- metadata.facade = it;
672
- createNonEnumerableProperty$3(it, STATE, metadata);
673
- return metadata;
674
- };
675
- get = function (it) {
676
- return hasOwn$5(it, STATE) ? it[STATE] : {};
677
- };
678
- has = function (it) {
679
- return hasOwn$5(it, STATE);
680
- };
681
- }
682
-
683
- var internalState = {
684
- set: set,
685
- get: get,
686
- has: has,
687
- enforce: enforce,
688
- getterFor: getterFor
689
- };
690
-
691
- var fails$5 = fails$c;
692
- var isCallable$6 = isCallable$e;
693
- var hasOwn$4 = hasOwnProperty_1;
694
- var DESCRIPTORS$3 = descriptors;
695
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
696
- var inspectSource = inspectSource$1;
697
- var InternalStateModule$1 = internalState;
698
-
699
- var enforceInternalState = InternalStateModule$1.enforce;
700
- var getInternalState$1 = InternalStateModule$1.get;
701
- // eslint-disable-next-line es/no-object-defineproperty -- safe
702
- var defineProperty$4 = Object.defineProperty;
703
-
704
- var CONFIGURABLE_LENGTH = DESCRIPTORS$3 && !fails$5(function () {
705
- return defineProperty$4(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
706
- });
707
-
708
- var TEMPLATE = String(String).split('String');
709
-
710
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
711
- if (String(name).slice(0, 7) === 'Symbol(') {
712
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
713
- }
714
- if (options && options.getter) name = 'get ' + name;
715
- if (options && options.setter) name = 'set ' + name;
716
- if (!hasOwn$4(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
717
- if (DESCRIPTORS$3) defineProperty$4(value, 'name', { value: name, configurable: true });
718
- else value.name = name;
719
- }
720
- if (CONFIGURABLE_LENGTH && options && hasOwn$4(options, 'arity') && value.length !== options.arity) {
721
- defineProperty$4(value, 'length', { value: options.arity });
722
- }
723
- try {
724
- if (options && hasOwn$4(options, 'constructor') && options.constructor) {
725
- if (DESCRIPTORS$3) defineProperty$4(value, 'prototype', { writable: false });
726
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
727
- } else if (value.prototype) value.prototype = undefined;
728
- } catch (error) { /* empty */ }
729
- var state = enforceInternalState(value);
730
- if (!hasOwn$4(state, 'source')) {
731
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
732
- } return value;
733
- };
734
-
735
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
736
- // eslint-disable-next-line no-extend-native -- required
737
- Function.prototype.toString = makeBuiltIn$1(function toString() {
738
- return isCallable$6(this) && getInternalState$1(this).source || inspectSource(this);
739
- }, 'toString');
740
-
741
- var isCallable$5 = isCallable$e;
742
- var definePropertyModule$2 = objectDefineProperty;
743
- var makeBuiltIn = makeBuiltIn$2.exports;
744
- var defineGlobalProperty$1 = defineGlobalProperty$3;
745
-
746
- var defineBuiltIn$3 = function (O, key, value, options) {
747
- if (!options) options = {};
748
- var simple = options.enumerable;
749
- var name = options.name !== undefined ? options.name : key;
750
- if (isCallable$5(value)) makeBuiltIn(value, name, options);
751
- if (options.global) {
752
- if (simple) O[key] = value;
753
- else defineGlobalProperty$1(key, value);
754
- } else {
755
- try {
756
- if (!options.unsafe) delete O[key];
757
- else if (O[key]) simple = true;
758
- } catch (error) { /* empty */ }
759
- if (simple) O[key] = value;
760
- else definePropertyModule$2.f(O, key, {
761
- value: value,
762
- enumerable: false,
763
- configurable: !options.nonConfigurable,
764
- writable: !options.nonWritable
765
- });
766
- } return O;
767
- };
768
-
769
- var objectGetOwnPropertyNames = {};
770
-
771
- var ceil = Math.ceil;
772
- var floor = Math.floor;
773
-
774
- // `Math.trunc` method
775
- // https://tc39.es/ecma262/#sec-math.trunc
776
- // eslint-disable-next-line es/no-math-trunc -- safe
777
- var mathTrunc = Math.trunc || function trunc(x) {
778
- var n = +x;
779
- return (n > 0 ? floor : ceil)(n);
780
- };
781
-
782
- var trunc = mathTrunc;
783
-
784
- // `ToIntegerOrInfinity` abstract operation
785
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
786
- var toIntegerOrInfinity$2 = function (argument) {
787
- var number = +argument;
788
- // eslint-disable-next-line no-self-compare -- NaN check
789
- return number !== number || number === 0 ? 0 : trunc(number);
790
- };
791
-
792
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
793
-
794
- var max = Math.max;
795
- var min$1 = Math.min;
796
-
797
- // Helper for a popular repeating case of the spec:
798
- // Let integer be ? ToInteger(index).
799
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
800
- var toAbsoluteIndex$1 = function (index, length) {
801
- var integer = toIntegerOrInfinity$1(index);
802
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
803
- };
804
-
805
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
806
-
807
- var min = Math.min;
808
-
809
- // `ToLength` abstract operation
810
- // https://tc39.es/ecma262/#sec-tolength
811
- var toLength$1 = function (argument) {
812
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
813
- };
814
-
815
- var toLength = toLength$1;
816
-
817
- // `LengthOfArrayLike` abstract operation
818
- // https://tc39.es/ecma262/#sec-lengthofarraylike
819
- var lengthOfArrayLike$2 = function (obj) {
820
- return toLength(obj.length);
821
- };
822
-
823
- var toIndexedObject$3 = toIndexedObject$5;
824
- var toAbsoluteIndex = toAbsoluteIndex$1;
825
- var lengthOfArrayLike$1 = lengthOfArrayLike$2;
826
-
827
- // `Array.prototype.{ indexOf, includes }` methods implementation
828
- var createMethod$1 = function (IS_INCLUDES) {
829
- return function ($this, el, fromIndex) {
830
- var O = toIndexedObject$3($this);
831
- var length = lengthOfArrayLike$1(O);
832
- var index = toAbsoluteIndex(fromIndex, length);
833
- var value;
834
- // Array#includes uses SameValueZero equality algorithm
835
- // eslint-disable-next-line no-self-compare -- NaN check
836
- if (IS_INCLUDES && el != el) while (length > index) {
837
- value = O[index++];
838
- // eslint-disable-next-line no-self-compare -- NaN check
839
- if (value != value) return true;
840
- // Array#indexOf ignores holes, Array#includes - not
841
- } else for (;length > index; index++) {
842
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
843
- } return !IS_INCLUDES && -1;
844
- };
845
- };
846
-
847
- var arrayIncludes = {
848
- // `Array.prototype.includes` method
849
- // https://tc39.es/ecma262/#sec-array.prototype.includes
850
- includes: createMethod$1(true),
851
- // `Array.prototype.indexOf` method
852
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
853
- indexOf: createMethod$1(false)
854
- };
855
-
856
- var uncurryThis$3 = functionUncurryThis;
857
- var hasOwn$3 = hasOwnProperty_1;
858
- var toIndexedObject$2 = toIndexedObject$5;
859
- var indexOf = arrayIncludes.indexOf;
860
- var hiddenKeys$2 = hiddenKeys$4;
861
-
862
- var push = uncurryThis$3([].push);
863
-
864
- var objectKeysInternal = function (object, names) {
865
- var O = toIndexedObject$2(object);
866
- var i = 0;
867
- var result = [];
868
- var key;
869
- for (key in O) !hasOwn$3(hiddenKeys$2, key) && hasOwn$3(O, key) && push(result, key);
870
- // Don't enum bug & hidden keys
871
- while (names.length > i) if (hasOwn$3(O, key = names[i++])) {
872
- ~indexOf(result, key) || push(result, key);
873
- }
874
- return result;
875
- };
876
-
877
- // IE8- don't enum bug keys
878
- var enumBugKeys$3 = [
879
- 'constructor',
880
- 'hasOwnProperty',
881
- 'isPrototypeOf',
882
- 'propertyIsEnumerable',
883
- 'toLocaleString',
884
- 'toString',
885
- 'valueOf'
886
- ];
887
-
888
- var internalObjectKeys$1 = objectKeysInternal;
889
- var enumBugKeys$2 = enumBugKeys$3;
890
-
891
- var hiddenKeys$1 = enumBugKeys$2.concat('length', 'prototype');
892
-
893
- // `Object.getOwnPropertyNames` method
894
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
895
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
896
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
897
- return internalObjectKeys$1(O, hiddenKeys$1);
898
- };
899
-
900
- var objectGetOwnPropertySymbols = {};
901
-
902
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
903
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
904
-
905
- var getBuiltIn$1 = getBuiltIn$4;
906
- var uncurryThis$2 = functionUncurryThis;
907
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
908
- var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
909
- var anObject$3 = anObject$5;
910
-
911
- var concat$1 = uncurryThis$2([].concat);
912
-
913
- // all object keys, includes non-enumerable and symbols
914
- var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
915
- var keys = getOwnPropertyNamesModule.f(anObject$3(it));
916
- var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
917
- return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
918
- };
919
-
920
- var hasOwn$2 = hasOwnProperty_1;
921
- var ownKeys = ownKeys$1;
922
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
923
- var definePropertyModule$1 = objectDefineProperty;
924
-
925
- var copyConstructorProperties$1 = function (target, source, exceptions) {
926
- var keys = ownKeys(source);
927
- var defineProperty = definePropertyModule$1.f;
928
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
929
- for (var i = 0; i < keys.length; i++) {
930
- var key = keys[i];
931
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
932
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
933
- }
934
- }
935
- };
936
-
937
- var fails$4 = fails$c;
938
- var isCallable$4 = isCallable$e;
939
-
940
- var replacement = /#|\.prototype\./;
941
-
942
- var isForced$1 = function (feature, detection) {
943
- var value = data[normalize(feature)];
944
- return value == POLYFILL ? true
945
- : value == NATIVE ? false
946
- : isCallable$4(detection) ? fails$4(detection)
947
- : !!detection;
948
- };
949
-
950
- var normalize = isForced$1.normalize = function (string) {
951
- return String(string).replace(replacement, '.').toLowerCase();
952
- };
953
-
954
- var data = isForced$1.data = {};
955
- var NATIVE = isForced$1.NATIVE = 'N';
956
- var POLYFILL = isForced$1.POLYFILL = 'P';
957
-
958
- var isForced_1 = isForced$1;
959
-
960
- var global$3 = global$c;
961
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
962
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
963
- var defineBuiltIn$2 = defineBuiltIn$3;
964
- var defineGlobalProperty = defineGlobalProperty$3;
965
- var copyConstructorProperties = copyConstructorProperties$1;
966
- var isForced = isForced_1;
967
-
968
- /*
969
- options.target - name of the target object
970
- options.global - target is the global object
971
- options.stat - export as static methods of target
972
- options.proto - export as prototype methods of target
973
- options.real - real prototype method for the `pure` version
974
- options.forced - export even if the native feature is available
975
- options.bind - bind methods to the target, required for the `pure` version
976
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
977
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
978
- options.sham - add a flag to not completely full polyfills
979
- options.enumerable - export as enumerable property
980
- options.dontCallGetSet - prevent calling a getter on target
981
- options.name - the .name of the function if it does not match the key
982
- */
983
- var _export = function (options, source) {
984
- var TARGET = options.target;
985
- var GLOBAL = options.global;
986
- var STATIC = options.stat;
987
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
988
- if (GLOBAL) {
989
- target = global$3;
990
- } else if (STATIC) {
991
- target = global$3[TARGET] || defineGlobalProperty(TARGET, {});
992
- } else {
993
- target = (global$3[TARGET] || {}).prototype;
994
- }
995
- if (target) for (key in source) {
996
- sourceProperty = source[key];
997
- if (options.dontCallGetSet) {
998
- descriptor = getOwnPropertyDescriptor(target, key);
999
- targetProperty = descriptor && descriptor.value;
1000
- } else targetProperty = target[key];
1001
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1002
- // contained in target
1003
- if (!FORCED && targetProperty !== undefined) {
1004
- if (typeof sourceProperty == typeof targetProperty) continue;
1005
- copyConstructorProperties(sourceProperty, targetProperty);
1006
- }
1007
- // add a flag to not completely full polyfills
1008
- if (options.sham || (targetProperty && targetProperty.sham)) {
1009
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1010
- }
1011
- defineBuiltIn$2(target, key, sourceProperty, options);
1012
- }
1013
- };
1014
-
1015
- var internalObjectKeys = objectKeysInternal;
1016
- var enumBugKeys$1 = enumBugKeys$3;
1017
-
1018
- // `Object.keys` method
1019
- // https://tc39.es/ecma262/#sec-object.keys
1020
- // eslint-disable-next-line es/no-object-keys -- safe
1021
- var objectKeys$2 = Object.keys || function keys(O) {
1022
- return internalObjectKeys(O, enumBugKeys$1);
1023
- };
1024
-
1025
- var DESCRIPTORS$2 = descriptors;
1026
- var uncurryThis$1 = functionUncurryThis;
1027
- var call$1 = functionCall;
1028
- var fails$3 = fails$c;
1029
- var objectKeys$1 = objectKeys$2;
1030
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1031
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1032
- var toObject$2 = toObject$4;
1033
- var IndexedObject$1 = indexedObject;
1034
-
1035
- // eslint-disable-next-line es/no-object-assign -- safe
1036
- var $assign = Object.assign;
1037
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1038
- var defineProperty$3 = Object.defineProperty;
1039
- var concat = uncurryThis$1([].concat);
1040
-
1041
- // `Object.assign` method
1042
- // https://tc39.es/ecma262/#sec-object.assign
1043
- var objectAssign = !$assign || fails$3(function () {
1044
- // should have correct order of operations (Edge bug)
1045
- if (DESCRIPTORS$2 && $assign({ b: 1 }, $assign(defineProperty$3({}, 'a', {
1046
- enumerable: true,
1047
- get: function () {
1048
- defineProperty$3(this, 'b', {
1049
- value: 3,
1050
- enumerable: false
1051
- });
1052
- }
1053
- }), { b: 2 })).b !== 1) return true;
1054
- // should work with symbols and should have deterministic property order (V8 bug)
1055
- var A = {};
1056
- var B = {};
1057
- // eslint-disable-next-line es/no-symbol -- safe
1058
- var symbol = Symbol();
1059
- var alphabet = 'abcdefghijklmnopqrst';
1060
- A[symbol] = 7;
1061
- alphabet.split('').forEach(function (chr) { B[chr] = chr; });
1062
- return $assign({}, A)[symbol] != 7 || objectKeys$1($assign({}, B)).join('') != alphabet;
1063
- }) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
1064
- var T = toObject$2(target);
1065
- var argumentsLength = arguments.length;
1066
- var index = 1;
1067
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
1068
- var propertyIsEnumerable = propertyIsEnumerableModule.f;
1069
- while (argumentsLength > index) {
1070
- var S = IndexedObject$1(arguments[index++]);
1071
- var keys = getOwnPropertySymbols ? concat(objectKeys$1(S), getOwnPropertySymbols(S)) : objectKeys$1(S);
1072
- var length = keys.length;
1073
- var j = 0;
1074
- var key;
1075
- while (length > j) {
1076
- key = keys[j++];
1077
- if (!DESCRIPTORS$2 || call$1(propertyIsEnumerable, S, key)) T[key] = S[key];
1078
- }
1079
- } return T;
1080
- } : $assign;
1081
-
1082
- var $$2 = _export;
1083
- var assign = objectAssign;
1084
-
1085
- // `Object.assign` method
1086
- // https://tc39.es/ecma262/#sec-object.assign
1087
- // eslint-disable-next-line es/no-object-assign -- required for testing
1088
- $$2({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1089
- assign: assign
1090
- });
1091
-
1092
9
  const NinetailedContext = /*#__PURE__*/createContext(undefined);
1093
10
 
1094
11
  const NinetailedProvider = props => {
@@ -1146,533 +63,6 @@ const useNinetailed = () => {
1146
63
  return ninetailed;
1147
64
  };
1148
65
 
1149
- var objectDefineProperties = {};
1150
-
1151
- var DESCRIPTORS$1 = descriptors;
1152
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1153
- var definePropertyModule = objectDefineProperty;
1154
- var anObject$2 = anObject$5;
1155
- var toIndexedObject$1 = toIndexedObject$5;
1156
- var objectKeys = objectKeys$2;
1157
-
1158
- // `Object.defineProperties` method
1159
- // https://tc39.es/ecma262/#sec-object.defineproperties
1160
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1161
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1162
- anObject$2(O);
1163
- var props = toIndexedObject$1(Properties);
1164
- var keys = objectKeys(Properties);
1165
- var length = keys.length;
1166
- var index = 0;
1167
- var key;
1168
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1169
- return O;
1170
- };
1171
-
1172
- var getBuiltIn = getBuiltIn$4;
1173
-
1174
- var html$1 = getBuiltIn('document', 'documentElement');
1175
-
1176
- /* global ActiveXObject -- old IE, WSH */
1177
-
1178
- var anObject$1 = anObject$5;
1179
- var definePropertiesModule = objectDefineProperties;
1180
- var enumBugKeys = enumBugKeys$3;
1181
- var hiddenKeys = hiddenKeys$4;
1182
- var html = html$1;
1183
- var documentCreateElement$1 = documentCreateElement$2;
1184
- var sharedKey$1 = sharedKey$3;
1185
-
1186
- var GT = '>';
1187
- var LT = '<';
1188
- var PROTOTYPE = 'prototype';
1189
- var SCRIPT = 'script';
1190
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1191
-
1192
- var EmptyConstructor = function () { /* empty */ };
1193
-
1194
- var scriptTag = function (content) {
1195
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1196
- };
1197
-
1198
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1199
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1200
- activeXDocument.write(scriptTag(''));
1201
- activeXDocument.close();
1202
- var temp = activeXDocument.parentWindow.Object;
1203
- activeXDocument = null; // avoid memory leak
1204
- return temp;
1205
- };
1206
-
1207
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1208
- var NullProtoObjectViaIFrame = function () {
1209
- // Thrash, waste and sodomy: IE GC bug
1210
- var iframe = documentCreateElement$1('iframe');
1211
- var JS = 'java' + SCRIPT + ':';
1212
- var iframeDocument;
1213
- iframe.style.display = 'none';
1214
- html.appendChild(iframe);
1215
- // https://github.com/zloirock/core-js/issues/475
1216
- iframe.src = String(JS);
1217
- iframeDocument = iframe.contentWindow.document;
1218
- iframeDocument.open();
1219
- iframeDocument.write(scriptTag('document.F=Object'));
1220
- iframeDocument.close();
1221
- return iframeDocument.F;
1222
- };
1223
-
1224
- // Check for document.domain and active x support
1225
- // No need to use active x approach when document.domain is not set
1226
- // see https://github.com/es-shims/es5-shim/issues/150
1227
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1228
- // avoid IE GC bug
1229
- var activeXDocument;
1230
- var NullProtoObject = function () {
1231
- try {
1232
- activeXDocument = new ActiveXObject('htmlfile');
1233
- } catch (error) { /* ignore */ }
1234
- NullProtoObject = typeof document != 'undefined'
1235
- ? document.domain && activeXDocument
1236
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1237
- : NullProtoObjectViaIFrame()
1238
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1239
- var length = enumBugKeys.length;
1240
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1241
- return NullProtoObject();
1242
- };
1243
-
1244
- hiddenKeys[IE_PROTO$1] = true;
1245
-
1246
- // `Object.create` method
1247
- // https://tc39.es/ecma262/#sec-object.create
1248
- // eslint-disable-next-line es/no-object-create -- safe
1249
- var objectCreate = Object.create || function create(O, Properties) {
1250
- var result;
1251
- if (O !== null) {
1252
- EmptyConstructor[PROTOTYPE] = anObject$1(O);
1253
- result = new EmptyConstructor();
1254
- EmptyConstructor[PROTOTYPE] = null;
1255
- // add "__proto__" for Object.getPrototypeOf polyfill
1256
- result[IE_PROTO$1] = O;
1257
- } else result = NullProtoObject();
1258
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1259
- };
1260
-
1261
- var wellKnownSymbol$4 = wellKnownSymbol$6;
1262
- var create$1 = objectCreate;
1263
- var defineProperty$2 = objectDefineProperty.f;
1264
-
1265
- var UNSCOPABLES = wellKnownSymbol$4('unscopables');
1266
- var ArrayPrototype = Array.prototype;
1267
-
1268
- // Array.prototype[@@unscopables]
1269
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1270
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
1271
- defineProperty$2(ArrayPrototype, UNSCOPABLES, {
1272
- configurable: true,
1273
- value: create$1(null)
1274
- });
1275
- }
1276
-
1277
- // add a key to Array.prototype[@@unscopables]
1278
- var addToUnscopables$1 = function (key) {
1279
- ArrayPrototype[UNSCOPABLES][key] = true;
1280
- };
1281
-
1282
- var iterators = {};
1283
-
1284
- var fails$2 = fails$c;
1285
-
1286
- var correctPrototypeGetter = !fails$2(function () {
1287
- function F() { /* empty */ }
1288
- F.prototype.constructor = null;
1289
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1290
- return Object.getPrototypeOf(new F()) !== F.prototype;
1291
- });
1292
-
1293
- var hasOwn$1 = hasOwnProperty_1;
1294
- var isCallable$3 = isCallable$e;
1295
- var toObject$1 = toObject$4;
1296
- var sharedKey = sharedKey$3;
1297
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1298
-
1299
- var IE_PROTO = sharedKey('IE_PROTO');
1300
- var $Object = Object;
1301
- var ObjectPrototype = $Object.prototype;
1302
-
1303
- // `Object.getPrototypeOf` method
1304
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1305
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1306
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1307
- var object = toObject$1(O);
1308
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1309
- var constructor = object.constructor;
1310
- if (isCallable$3(constructor) && object instanceof constructor) {
1311
- return constructor.prototype;
1312
- } return object instanceof $Object ? ObjectPrototype : null;
1313
- };
1314
-
1315
- var fails$1 = fails$c;
1316
- var isCallable$2 = isCallable$e;
1317
- var isObject = isObject$6;
1318
- var getPrototypeOf$1 = objectGetPrototypeOf;
1319
- var defineBuiltIn$1 = defineBuiltIn$3;
1320
- var wellKnownSymbol$3 = wellKnownSymbol$6;
1321
-
1322
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
1323
- var BUGGY_SAFARI_ITERATORS$1 = false;
1324
-
1325
- // `%IteratorPrototype%` object
1326
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1327
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1328
-
1329
- /* eslint-disable es/no-array-prototype-keys -- safe */
1330
- if ([].keys) {
1331
- arrayIterator = [].keys();
1332
- // Safari 8 has buggy iterators w/o `next`
1333
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1334
- else {
1335
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1336
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1337
- }
1338
- }
1339
-
1340
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$1(function () {
1341
- var test = {};
1342
- // FF44- legacy iterators case
1343
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1344
- });
1345
-
1346
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1347
-
1348
- // `%IteratorPrototype%[@@iterator]()` method
1349
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1350
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
1351
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
1352
- return this;
1353
- });
1354
- }
1355
-
1356
- var iteratorsCore = {
1357
- IteratorPrototype: IteratorPrototype$2,
1358
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1359
- };
1360
-
1361
- var defineProperty$1 = objectDefineProperty.f;
1362
- var hasOwn = hasOwnProperty_1;
1363
- var wellKnownSymbol$2 = wellKnownSymbol$6;
1364
-
1365
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1366
-
1367
- var setToStringTag$2 = function (target, TAG, STATIC) {
1368
- if (target && !STATIC) target = target.prototype;
1369
- if (target && !hasOwn(target, TO_STRING_TAG$1)) {
1370
- defineProperty$1(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
1371
- }
1372
- };
1373
-
1374
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1375
- var create = objectCreate;
1376
- var createPropertyDescriptor = createPropertyDescriptor$3;
1377
- var setToStringTag$1 = setToStringTag$2;
1378
- var Iterators$2 = iterators;
1379
-
1380
- var returnThis$1 = function () { return this; };
1381
-
1382
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1383
- var TO_STRING_TAG = NAME + ' Iterator';
1384
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1385
- setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
1386
- Iterators$2[TO_STRING_TAG] = returnThis$1;
1387
- return IteratorConstructor;
1388
- };
1389
-
1390
- var isCallable$1 = isCallable$e;
1391
-
1392
- var $String = String;
1393
- var $TypeError$1 = TypeError;
1394
-
1395
- var aPossiblePrototype$1 = function (argument) {
1396
- if (typeof argument == 'object' || isCallable$1(argument)) return argument;
1397
- throw $TypeError$1("Can't set " + $String(argument) + ' as a prototype');
1398
- };
1399
-
1400
- /* eslint-disable no-proto -- safe */
1401
-
1402
- var uncurryThis = functionUncurryThis;
1403
- var anObject = anObject$5;
1404
- var aPossiblePrototype = aPossiblePrototype$1;
1405
-
1406
- // `Object.setPrototypeOf` method
1407
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1408
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1409
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1410
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1411
- var CORRECT_SETTER = false;
1412
- var test = {};
1413
- var setter;
1414
- try {
1415
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1416
- setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1417
- setter(test, []);
1418
- CORRECT_SETTER = test instanceof Array;
1419
- } catch (error) { /* empty */ }
1420
- return function setPrototypeOf(O, proto) {
1421
- anObject(O);
1422
- aPossiblePrototype(proto);
1423
- if (CORRECT_SETTER) setter(O, proto);
1424
- else O.__proto__ = proto;
1425
- return O;
1426
- };
1427
- }() : undefined);
1428
-
1429
- var $$1 = _export;
1430
- var call = functionCall;
1431
- var FunctionName = functionName;
1432
- var isCallable = isCallable$e;
1433
- var createIteratorConstructor = iteratorCreateConstructor;
1434
- var getPrototypeOf = objectGetPrototypeOf;
1435
- var setPrototypeOf = objectSetPrototypeOf;
1436
- var setToStringTag = setToStringTag$2;
1437
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1438
- var defineBuiltIn = defineBuiltIn$3;
1439
- var wellKnownSymbol$1 = wellKnownSymbol$6;
1440
- var Iterators$1 = iterators;
1441
- var IteratorsCore = iteratorsCore;
1442
-
1443
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1444
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1445
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
1446
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1447
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1448
- var KEYS = 'keys';
1449
- var VALUES = 'values';
1450
- var ENTRIES = 'entries';
1451
-
1452
- var returnThis = function () { return this; };
1453
-
1454
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1455
- createIteratorConstructor(IteratorConstructor, NAME, next);
1456
-
1457
- var getIterationMethod = function (KIND) {
1458
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1459
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1460
- switch (KIND) {
1461
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1462
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1463
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1464
- } return function () { return new IteratorConstructor(this); };
1465
- };
1466
-
1467
- var TO_STRING_TAG = NAME + ' Iterator';
1468
- var INCORRECT_VALUES_NAME = false;
1469
- var IterablePrototype = Iterable.prototype;
1470
- var nativeIterator = IterablePrototype[ITERATOR$1]
1471
- || IterablePrototype['@@iterator']
1472
- || DEFAULT && IterablePrototype[DEFAULT];
1473
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1474
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1475
- var CurrentIteratorPrototype, methods, KEY;
1476
-
1477
- // fix native
1478
- if (anyNativeIterator) {
1479
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1480
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1481
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1482
- if (setPrototypeOf) {
1483
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1484
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
1485
- defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1486
- }
1487
- }
1488
- // Set @@toStringTag to native iterators
1489
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1490
- }
1491
- }
1492
-
1493
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1494
- if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1495
- if (CONFIGURABLE_FUNCTION_NAME) {
1496
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1497
- } else {
1498
- INCORRECT_VALUES_NAME = true;
1499
- defaultIterator = function values() { return call(nativeIterator, this); };
1500
- }
1501
- }
1502
-
1503
- // export additional methods
1504
- if (DEFAULT) {
1505
- methods = {
1506
- values: getIterationMethod(VALUES),
1507
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1508
- entries: getIterationMethod(ENTRIES)
1509
- };
1510
- if (FORCED) for (KEY in methods) {
1511
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1512
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1513
- }
1514
- } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1515
- }
1516
-
1517
- // define iterator
1518
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1519
- defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1520
- }
1521
- Iterators$1[NAME] = defaultIterator;
1522
-
1523
- return methods;
1524
- };
1525
-
1526
- // `CreateIterResultObject` abstract operation
1527
- // https://tc39.es/ecma262/#sec-createiterresultobject
1528
- var createIterResultObject$1 = function (value, done) {
1529
- return { value: value, done: done };
1530
- };
1531
-
1532
- var toIndexedObject = toIndexedObject$5;
1533
- var addToUnscopables = addToUnscopables$1;
1534
- var Iterators = iterators;
1535
- var InternalStateModule = internalState;
1536
- var defineProperty = objectDefineProperty.f;
1537
- var defineIterator = iteratorDefine;
1538
- var createIterResultObject = createIterResultObject$1;
1539
- var DESCRIPTORS = descriptors;
1540
-
1541
- var ARRAY_ITERATOR = 'Array Iterator';
1542
- var setInternalState = InternalStateModule.set;
1543
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1544
-
1545
- // `Array.prototype.entries` method
1546
- // https://tc39.es/ecma262/#sec-array.prototype.entries
1547
- // `Array.prototype.keys` method
1548
- // https://tc39.es/ecma262/#sec-array.prototype.keys
1549
- // `Array.prototype.values` method
1550
- // https://tc39.es/ecma262/#sec-array.prototype.values
1551
- // `Array.prototype[@@iterator]` method
1552
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1553
- // `CreateArrayIterator` internal method
1554
- // https://tc39.es/ecma262/#sec-createarrayiterator
1555
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1556
- setInternalState(this, {
1557
- type: ARRAY_ITERATOR,
1558
- target: toIndexedObject(iterated), // target
1559
- index: 0, // next index
1560
- kind: kind // kind
1561
- });
1562
- // `%ArrayIteratorPrototype%.next` method
1563
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1564
- }, function () {
1565
- var state = getInternalState(this);
1566
- var target = state.target;
1567
- var kind = state.kind;
1568
- var index = state.index++;
1569
- if (!target || index >= target.length) {
1570
- state.target = undefined;
1571
- return createIterResultObject(undefined, true);
1572
- }
1573
- if (kind == 'keys') return createIterResultObject(index, false);
1574
- if (kind == 'values') return createIterResultObject(target[index], false);
1575
- return createIterResultObject([index, target[index]], false);
1576
- }, 'values');
1577
-
1578
- // argumentsList[@@iterator] is %ArrayProto_values%
1579
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1580
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1581
- var values = Iterators.Arguments = Iterators.Array;
1582
-
1583
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1584
- addToUnscopables('keys');
1585
- addToUnscopables('values');
1586
- addToUnscopables('entries');
1587
-
1588
- // V8 ~ Chrome 45- bug
1589
- if (DESCRIPTORS && values.name !== 'values') try {
1590
- defineProperty(values, 'name', { value: 'values' });
1591
- } catch (error) { /* empty */ }
1592
-
1593
- // iterable DOM collections
1594
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1595
- var domIterables = {
1596
- CSSRuleList: 0,
1597
- CSSStyleDeclaration: 0,
1598
- CSSValueList: 0,
1599
- ClientRectList: 0,
1600
- DOMRectList: 0,
1601
- DOMStringList: 0,
1602
- DOMTokenList: 1,
1603
- DataTransferItemList: 0,
1604
- FileList: 0,
1605
- HTMLAllCollection: 0,
1606
- HTMLCollection: 0,
1607
- HTMLFormElement: 0,
1608
- HTMLSelectElement: 0,
1609
- MediaList: 0,
1610
- MimeTypeArray: 0,
1611
- NamedNodeMap: 0,
1612
- NodeList: 1,
1613
- PaintRequestList: 0,
1614
- Plugin: 0,
1615
- PluginArray: 0,
1616
- SVGLengthList: 0,
1617
- SVGNumberList: 0,
1618
- SVGPathSegList: 0,
1619
- SVGPointList: 0,
1620
- SVGStringList: 0,
1621
- SVGTransformList: 0,
1622
- SourceBufferList: 0,
1623
- StyleSheetList: 0,
1624
- TextTrackCueList: 0,
1625
- TextTrackList: 0,
1626
- TouchList: 0
1627
- };
1628
-
1629
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1630
- var documentCreateElement = documentCreateElement$2;
1631
-
1632
- var classList = documentCreateElement('span').classList;
1633
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1634
-
1635
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1636
-
1637
- var global$2 = global$c;
1638
- var DOMIterables = domIterables;
1639
- var DOMTokenListPrototype = domTokenListPrototype;
1640
- var ArrayIteratorMethods = es_array_iterator;
1641
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
1642
- var wellKnownSymbol = wellKnownSymbol$6;
1643
-
1644
- var ITERATOR = wellKnownSymbol('iterator');
1645
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1646
- var ArrayValues = ArrayIteratorMethods.values;
1647
-
1648
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1649
- if (CollectionPrototype) {
1650
- // some Chrome versions have non-configurable methods on DOMTokenList
1651
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1652
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
1653
- } catch (error) {
1654
- CollectionPrototype[ITERATOR] = ArrayValues;
1655
- }
1656
- if (!CollectionPrototype[TO_STRING_TAG]) {
1657
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
1658
- }
1659
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1660
- // some Chrome versions have non-configurable methods on DOMTokenList
1661
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1662
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1663
- } catch (error) {
1664
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1665
- }
1666
- }
1667
- }
1668
- };
1669
-
1670
- for (var COLLECTION_NAME in DOMIterables) {
1671
- handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
1672
- }
1673
-
1674
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1675
-
1676
66
  const useProfile = () => {
1677
67
  const ninetailed = useNinetailed();
1678
68
  const [profileState, setProfileState] = useState(ninetailed.profileState);
@@ -1819,7 +209,7 @@ const Personalize = _a => {
1819
209
  audience: audience,
1820
210
  isPersonalized: isPersonalized
1821
211
  }, {
1822
- children: /*#__PURE__*/createElement$1(Component, Object.assign({}, variant, {
212
+ children: /*#__PURE__*/createElement(Component, Object.assign({}, variant, {
1823
213
  key: `${audience.id}-${variant.id}`,
1824
214
  ninetailed: {
1825
215
  isPersonalized,
@@ -1838,11 +228,11 @@ const generateSelectors = id => {
1838
228
  };
1839
229
  const selectValueFromProfile = (profile, id) => {
1840
230
  const selectors = generateSelectors(id);
1841
- const matchingSelector = selectors.find(selector => get$1(profile, selector));
231
+ const matchingSelector = selectors.find(selector => get(profile, selector));
1842
232
  if (!matchingSelector) {
1843
233
  return null;
1844
234
  }
1845
- return get$1(profile, matchingSelector);
235
+ return get(profile, matchingSelector);
1846
236
  };
1847
237
  const MergeTag = ({
1848
238
  id
@@ -1861,84 +251,6 @@ const MergeTag = ({
1861
251
  });
1862
252
  };
1863
253
 
1864
- var aCallable = aCallable$2;
1865
- var toObject = toObject$4;
1866
- var IndexedObject = indexedObject;
1867
- var lengthOfArrayLike = lengthOfArrayLike$2;
1868
-
1869
- var $TypeError = TypeError;
1870
-
1871
- // `Array.prototype.{ reduce, reduceRight }` methods implementation
1872
- var createMethod = function (IS_RIGHT) {
1873
- return function (that, callbackfn, argumentsLength, memo) {
1874
- aCallable(callbackfn);
1875
- var O = toObject(that);
1876
- var self = IndexedObject(O);
1877
- var length = lengthOfArrayLike(O);
1878
- var index = IS_RIGHT ? length - 1 : 0;
1879
- var i = IS_RIGHT ? -1 : 1;
1880
- if (argumentsLength < 2) while (true) {
1881
- if (index in self) {
1882
- memo = self[index];
1883
- index += i;
1884
- break;
1885
- }
1886
- index += i;
1887
- if (IS_RIGHT ? index < 0 : length <= index) {
1888
- throw $TypeError('Reduce of empty array with no initial value');
1889
- }
1890
- }
1891
- for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
1892
- memo = callbackfn(memo, self[index], index, O);
1893
- }
1894
- return memo;
1895
- };
1896
- };
1897
-
1898
- var arrayReduce = {
1899
- // `Array.prototype.reduce` method
1900
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
1901
- left: createMethod(false),
1902
- // `Array.prototype.reduceRight` method
1903
- // https://tc39.es/ecma262/#sec-array.prototype.reduceright
1904
- right: createMethod(true)
1905
- };
1906
-
1907
- var fails = fails$c;
1908
-
1909
- var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
1910
- var method = [][METHOD_NAME];
1911
- return !!method && fails(function () {
1912
- // eslint-disable-next-line no-useless-call -- required for testing
1913
- method.call(null, argument || function () { return 1; }, 1);
1914
- });
1915
- };
1916
-
1917
- var classof = classofRaw;
1918
- var global$1 = global$c;
1919
-
1920
- var engineIsNode = classof(global$1.process) == 'process';
1921
-
1922
- var $ = _export;
1923
- var $reduce = arrayReduce.left;
1924
- var arrayMethodIsStrict = arrayMethodIsStrict$1;
1925
- var CHROME_VERSION = engineV8Version;
1926
- var IS_NODE = engineIsNode;
1927
-
1928
- var STRICT_METHOD = arrayMethodIsStrict('reduce');
1929
- // Chrome 80-82 has a critical bug
1930
- // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
1931
- var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
1932
-
1933
- // `Array.prototype.reduce` method
1934
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
1935
- $({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
1936
- reduce: function reduce(callbackfn /* , initialValue */) {
1937
- var length = arguments.length;
1938
- return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
1939
- }
1940
- });
1941
-
1942
254
  const useExperienceSelectionMiddleware = ({
1943
255
  experiences,
1944
256
  baseline,
@@ -2192,7 +504,7 @@ const Experience = _a => {
2192
504
  return jsxs(Fragment, {
2193
505
  children: [!isComponentForwardRef && jsx(ComponentMarker, {
2194
506
  ref: componentRef
2195
- }, `marker-no-variants-${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`), /*#__PURE__*/createElement$1(Component, Object.assign({}, passthroughProps, baseline, {
507
+ }, `marker-no-variants-${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`), /*#__PURE__*/createElement(Component, Object.assign({}, passthroughProps, baseline, {
2196
508
  key: baseline.id
2197
509
  }, isComponentForwardRef ? {
2198
510
  ref: componentRef
@@ -2200,7 +512,7 @@ const Experience = _a => {
2200
512
  });
2201
513
  }
2202
514
  if (status === 'loading') {
2203
- return /*#__PURE__*/createElement$1(LoadingComponent, Object.assign({}, baseline, {
515
+ return /*#__PURE__*/createElement(LoadingComponent, Object.assign({}, baseline, {
2204
516
  key: baseline.id,
2205
517
  passthroughProps: passthroughProps,
2206
518
  experiences: experiences,
@@ -2216,7 +528,7 @@ const Experience = _a => {
2216
528
  return jsxs(Fragment, {
2217
529
  children: [!isComponentForwardRef && jsx(ComponentMarker, {
2218
530
  ref: componentRef
2219
- }, `marker-${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`), /*#__PURE__*/createElement$1(Component, Object.assign({}, Object.assign(Object.assign({}, passthroughProps), variant), {
531
+ }, `marker-${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`), /*#__PURE__*/createElement(Component, Object.assign({}, Object.assign(Object.assign({}, passthroughProps), variant), {
2220
532
  key: `${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`,
2221
533
  ninetailed: {
2222
534
  isPersonalized,