@ninetailed/experience.js-react 6.4.0-beta.1 → 6.4.0-beta.4

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 +8 -10
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 => {
@@ -1144,533 +61,6 @@ const useNinetailed = () => {
1144
61
  return ninetailed;
1145
62
  };
1146
63
 
1147
- var objectDefineProperties = {};
1148
-
1149
- var DESCRIPTORS$1 = descriptors;
1150
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
1151
- var definePropertyModule = objectDefineProperty;
1152
- var anObject$2 = anObject$5;
1153
- var toIndexedObject$1 = toIndexedObject$5;
1154
- var objectKeys = objectKeys$2;
1155
-
1156
- // `Object.defineProperties` method
1157
- // https://tc39.es/ecma262/#sec-object.defineproperties
1158
- // eslint-disable-next-line es/no-object-defineproperties -- safe
1159
- objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
1160
- anObject$2(O);
1161
- var props = toIndexedObject$1(Properties);
1162
- var keys = objectKeys(Properties);
1163
- var length = keys.length;
1164
- var index = 0;
1165
- var key;
1166
- while (length > index) definePropertyModule.f(O, key = keys[index++], props[key]);
1167
- return O;
1168
- };
1169
-
1170
- var getBuiltIn = getBuiltIn$4;
1171
-
1172
- var html$1 = getBuiltIn('document', 'documentElement');
1173
-
1174
- /* global ActiveXObject -- old IE, WSH */
1175
-
1176
- var anObject$1 = anObject$5;
1177
- var definePropertiesModule = objectDefineProperties;
1178
- var enumBugKeys = enumBugKeys$3;
1179
- var hiddenKeys = hiddenKeys$4;
1180
- var html = html$1;
1181
- var documentCreateElement$1 = documentCreateElement$2;
1182
- var sharedKey$1 = sharedKey$3;
1183
-
1184
- var GT = '>';
1185
- var LT = '<';
1186
- var PROTOTYPE = 'prototype';
1187
- var SCRIPT = 'script';
1188
- var IE_PROTO$1 = sharedKey$1('IE_PROTO');
1189
-
1190
- var EmptyConstructor = function () { /* empty */ };
1191
-
1192
- var scriptTag = function (content) {
1193
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1194
- };
1195
-
1196
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1197
- var NullProtoObjectViaActiveX = function (activeXDocument) {
1198
- activeXDocument.write(scriptTag(''));
1199
- activeXDocument.close();
1200
- var temp = activeXDocument.parentWindow.Object;
1201
- activeXDocument = null; // avoid memory leak
1202
- return temp;
1203
- };
1204
-
1205
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
1206
- var NullProtoObjectViaIFrame = function () {
1207
- // Thrash, waste and sodomy: IE GC bug
1208
- var iframe = documentCreateElement$1('iframe');
1209
- var JS = 'java' + SCRIPT + ':';
1210
- var iframeDocument;
1211
- iframe.style.display = 'none';
1212
- html.appendChild(iframe);
1213
- // https://github.com/zloirock/core-js/issues/475
1214
- iframe.src = String(JS);
1215
- iframeDocument = iframe.contentWindow.document;
1216
- iframeDocument.open();
1217
- iframeDocument.write(scriptTag('document.F=Object'));
1218
- iframeDocument.close();
1219
- return iframeDocument.F;
1220
- };
1221
-
1222
- // Check for document.domain and active x support
1223
- // No need to use active x approach when document.domain is not set
1224
- // see https://github.com/es-shims/es5-shim/issues/150
1225
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1226
- // avoid IE GC bug
1227
- var activeXDocument;
1228
- var NullProtoObject = function () {
1229
- try {
1230
- activeXDocument = new ActiveXObject('htmlfile');
1231
- } catch (error) { /* ignore */ }
1232
- NullProtoObject = typeof document != 'undefined'
1233
- ? document.domain && activeXDocument
1234
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
1235
- : NullProtoObjectViaIFrame()
1236
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
1237
- var length = enumBugKeys.length;
1238
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1239
- return NullProtoObject();
1240
- };
1241
-
1242
- hiddenKeys[IE_PROTO$1] = true;
1243
-
1244
- // `Object.create` method
1245
- // https://tc39.es/ecma262/#sec-object.create
1246
- // eslint-disable-next-line es/no-object-create -- safe
1247
- var objectCreate = Object.create || function create(O, Properties) {
1248
- var result;
1249
- if (O !== null) {
1250
- EmptyConstructor[PROTOTYPE] = anObject$1(O);
1251
- result = new EmptyConstructor();
1252
- EmptyConstructor[PROTOTYPE] = null;
1253
- // add "__proto__" for Object.getPrototypeOf polyfill
1254
- result[IE_PROTO$1] = O;
1255
- } else result = NullProtoObject();
1256
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
1257
- };
1258
-
1259
- var wellKnownSymbol$4 = wellKnownSymbol$6;
1260
- var create$1 = objectCreate;
1261
- var defineProperty$2 = objectDefineProperty.f;
1262
-
1263
- var UNSCOPABLES = wellKnownSymbol$4('unscopables');
1264
- var ArrayPrototype = Array.prototype;
1265
-
1266
- // Array.prototype[@@unscopables]
1267
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1268
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
1269
- defineProperty$2(ArrayPrototype, UNSCOPABLES, {
1270
- configurable: true,
1271
- value: create$1(null)
1272
- });
1273
- }
1274
-
1275
- // add a key to Array.prototype[@@unscopables]
1276
- var addToUnscopables$1 = function (key) {
1277
- ArrayPrototype[UNSCOPABLES][key] = true;
1278
- };
1279
-
1280
- var iterators = {};
1281
-
1282
- var fails$2 = fails$c;
1283
-
1284
- var correctPrototypeGetter = !fails$2(function () {
1285
- function F() { /* empty */ }
1286
- F.prototype.constructor = null;
1287
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1288
- return Object.getPrototypeOf(new F()) !== F.prototype;
1289
- });
1290
-
1291
- var hasOwn$1 = hasOwnProperty_1;
1292
- var isCallable$3 = isCallable$e;
1293
- var toObject$1 = toObject$4;
1294
- var sharedKey = sharedKey$3;
1295
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1296
-
1297
- var IE_PROTO = sharedKey('IE_PROTO');
1298
- var $Object = Object;
1299
- var ObjectPrototype = $Object.prototype;
1300
-
1301
- // `Object.getPrototypeOf` method
1302
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1303
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1304
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1305
- var object = toObject$1(O);
1306
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1307
- var constructor = object.constructor;
1308
- if (isCallable$3(constructor) && object instanceof constructor) {
1309
- return constructor.prototype;
1310
- } return object instanceof $Object ? ObjectPrototype : null;
1311
- };
1312
-
1313
- var fails$1 = fails$c;
1314
- var isCallable$2 = isCallable$e;
1315
- var isObject = isObject$6;
1316
- var getPrototypeOf$1 = objectGetPrototypeOf;
1317
- var defineBuiltIn$1 = defineBuiltIn$3;
1318
- var wellKnownSymbol$3 = wellKnownSymbol$6;
1319
-
1320
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
1321
- var BUGGY_SAFARI_ITERATORS$1 = false;
1322
-
1323
- // `%IteratorPrototype%` object
1324
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1325
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1326
-
1327
- /* eslint-disable es/no-array-prototype-keys -- safe */
1328
- if ([].keys) {
1329
- arrayIterator = [].keys();
1330
- // Safari 8 has buggy iterators w/o `next`
1331
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1332
- else {
1333
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1334
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1335
- }
1336
- }
1337
-
1338
- var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails$1(function () {
1339
- var test = {};
1340
- // FF44- legacy iterators case
1341
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1342
- });
1343
-
1344
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1345
-
1346
- // `%IteratorPrototype%[@@iterator]()` method
1347
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1348
- if (!isCallable$2(IteratorPrototype$2[ITERATOR$2])) {
1349
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
1350
- return this;
1351
- });
1352
- }
1353
-
1354
- var iteratorsCore = {
1355
- IteratorPrototype: IteratorPrototype$2,
1356
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1357
- };
1358
-
1359
- var defineProperty$1 = objectDefineProperty.f;
1360
- var hasOwn = hasOwnProperty_1;
1361
- var wellKnownSymbol$2 = wellKnownSymbol$6;
1362
-
1363
- var TO_STRING_TAG$1 = wellKnownSymbol$2('toStringTag');
1364
-
1365
- var setToStringTag$2 = function (target, TAG, STATIC) {
1366
- if (target && !STATIC) target = target.prototype;
1367
- if (target && !hasOwn(target, TO_STRING_TAG$1)) {
1368
- defineProperty$1(target, TO_STRING_TAG$1, { configurable: true, value: TAG });
1369
- }
1370
- };
1371
-
1372
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1373
- var create = objectCreate;
1374
- var createPropertyDescriptor = createPropertyDescriptor$3;
1375
- var setToStringTag$1 = setToStringTag$2;
1376
- var Iterators$2 = iterators;
1377
-
1378
- var returnThis$1 = function () { return this; };
1379
-
1380
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1381
- var TO_STRING_TAG = NAME + ' Iterator';
1382
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1383
- setToStringTag$1(IteratorConstructor, TO_STRING_TAG, false);
1384
- Iterators$2[TO_STRING_TAG] = returnThis$1;
1385
- return IteratorConstructor;
1386
- };
1387
-
1388
- var isCallable$1 = isCallable$e;
1389
-
1390
- var $String = String;
1391
- var $TypeError$1 = TypeError;
1392
-
1393
- var aPossiblePrototype$1 = function (argument) {
1394
- if (typeof argument == 'object' || isCallable$1(argument)) return argument;
1395
- throw $TypeError$1("Can't set " + $String(argument) + ' as a prototype');
1396
- };
1397
-
1398
- /* eslint-disable no-proto -- safe */
1399
-
1400
- var uncurryThis = functionUncurryThis;
1401
- var anObject = anObject$5;
1402
- var aPossiblePrototype = aPossiblePrototype$1;
1403
-
1404
- // `Object.setPrototypeOf` method
1405
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1406
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1407
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1408
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1409
- var CORRECT_SETTER = false;
1410
- var test = {};
1411
- var setter;
1412
- try {
1413
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1414
- setter = uncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1415
- setter(test, []);
1416
- CORRECT_SETTER = test instanceof Array;
1417
- } catch (error) { /* empty */ }
1418
- return function setPrototypeOf(O, proto) {
1419
- anObject(O);
1420
- aPossiblePrototype(proto);
1421
- if (CORRECT_SETTER) setter(O, proto);
1422
- else O.__proto__ = proto;
1423
- return O;
1424
- };
1425
- }() : undefined);
1426
-
1427
- var $$1 = _export;
1428
- var call = functionCall;
1429
- var FunctionName = functionName;
1430
- var isCallable = isCallable$e;
1431
- var createIteratorConstructor = iteratorCreateConstructor;
1432
- var getPrototypeOf = objectGetPrototypeOf;
1433
- var setPrototypeOf = objectSetPrototypeOf;
1434
- var setToStringTag = setToStringTag$2;
1435
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1436
- var defineBuiltIn = defineBuiltIn$3;
1437
- var wellKnownSymbol$1 = wellKnownSymbol$6;
1438
- var Iterators$1 = iterators;
1439
- var IteratorsCore = iteratorsCore;
1440
-
1441
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1442
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1443
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
1444
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1445
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1446
- var KEYS = 'keys';
1447
- var VALUES = 'values';
1448
- var ENTRIES = 'entries';
1449
-
1450
- var returnThis = function () { return this; };
1451
-
1452
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1453
- createIteratorConstructor(IteratorConstructor, NAME, next);
1454
-
1455
- var getIterationMethod = function (KIND) {
1456
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1457
- if (!BUGGY_SAFARI_ITERATORS && KIND in IterablePrototype) return IterablePrototype[KIND];
1458
- switch (KIND) {
1459
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1460
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1461
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1462
- } return function () { return new IteratorConstructor(this); };
1463
- };
1464
-
1465
- var TO_STRING_TAG = NAME + ' Iterator';
1466
- var INCORRECT_VALUES_NAME = false;
1467
- var IterablePrototype = Iterable.prototype;
1468
- var nativeIterator = IterablePrototype[ITERATOR$1]
1469
- || IterablePrototype['@@iterator']
1470
- || DEFAULT && IterablePrototype[DEFAULT];
1471
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1472
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1473
- var CurrentIteratorPrototype, methods, KEY;
1474
-
1475
- // fix native
1476
- if (anyNativeIterator) {
1477
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1478
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1479
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1480
- if (setPrototypeOf) {
1481
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1482
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
1483
- defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1484
- }
1485
- }
1486
- // Set @@toStringTag to native iterators
1487
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1488
- }
1489
- }
1490
-
1491
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1492
- if (PROPER_FUNCTION_NAME && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1493
- if (CONFIGURABLE_FUNCTION_NAME) {
1494
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1495
- } else {
1496
- INCORRECT_VALUES_NAME = true;
1497
- defaultIterator = function values() { return call(nativeIterator, this); };
1498
- }
1499
- }
1500
-
1501
- // export additional methods
1502
- if (DEFAULT) {
1503
- methods = {
1504
- values: getIterationMethod(VALUES),
1505
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1506
- entries: getIterationMethod(ENTRIES)
1507
- };
1508
- if (FORCED) for (KEY in methods) {
1509
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1510
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1511
- }
1512
- } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1513
- }
1514
-
1515
- // define iterator
1516
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1517
- defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1518
- }
1519
- Iterators$1[NAME] = defaultIterator;
1520
-
1521
- return methods;
1522
- };
1523
-
1524
- // `CreateIterResultObject` abstract operation
1525
- // https://tc39.es/ecma262/#sec-createiterresultobject
1526
- var createIterResultObject$1 = function (value, done) {
1527
- return { value: value, done: done };
1528
- };
1529
-
1530
- var toIndexedObject = toIndexedObject$5;
1531
- var addToUnscopables = addToUnscopables$1;
1532
- var Iterators = iterators;
1533
- var InternalStateModule = internalState;
1534
- var defineProperty = objectDefineProperty.f;
1535
- var defineIterator = iteratorDefine;
1536
- var createIterResultObject = createIterResultObject$1;
1537
- var DESCRIPTORS = descriptors;
1538
-
1539
- var ARRAY_ITERATOR = 'Array Iterator';
1540
- var setInternalState = InternalStateModule.set;
1541
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1542
-
1543
- // `Array.prototype.entries` method
1544
- // https://tc39.es/ecma262/#sec-array.prototype.entries
1545
- // `Array.prototype.keys` method
1546
- // https://tc39.es/ecma262/#sec-array.prototype.keys
1547
- // `Array.prototype.values` method
1548
- // https://tc39.es/ecma262/#sec-array.prototype.values
1549
- // `Array.prototype[@@iterator]` method
1550
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1551
- // `CreateArrayIterator` internal method
1552
- // https://tc39.es/ecma262/#sec-createarrayiterator
1553
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1554
- setInternalState(this, {
1555
- type: ARRAY_ITERATOR,
1556
- target: toIndexedObject(iterated), // target
1557
- index: 0, // next index
1558
- kind: kind // kind
1559
- });
1560
- // `%ArrayIteratorPrototype%.next` method
1561
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1562
- }, function () {
1563
- var state = getInternalState(this);
1564
- var target = state.target;
1565
- var kind = state.kind;
1566
- var index = state.index++;
1567
- if (!target || index >= target.length) {
1568
- state.target = undefined;
1569
- return createIterResultObject(undefined, true);
1570
- }
1571
- if (kind == 'keys') return createIterResultObject(index, false);
1572
- if (kind == 'values') return createIterResultObject(target[index], false);
1573
- return createIterResultObject([index, target[index]], false);
1574
- }, 'values');
1575
-
1576
- // argumentsList[@@iterator] is %ArrayProto_values%
1577
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1578
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1579
- var values = Iterators.Arguments = Iterators.Array;
1580
-
1581
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1582
- addToUnscopables('keys');
1583
- addToUnscopables('values');
1584
- addToUnscopables('entries');
1585
-
1586
- // V8 ~ Chrome 45- bug
1587
- if (DESCRIPTORS && values.name !== 'values') try {
1588
- defineProperty(values, 'name', { value: 'values' });
1589
- } catch (error) { /* empty */ }
1590
-
1591
- // iterable DOM collections
1592
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1593
- var domIterables = {
1594
- CSSRuleList: 0,
1595
- CSSStyleDeclaration: 0,
1596
- CSSValueList: 0,
1597
- ClientRectList: 0,
1598
- DOMRectList: 0,
1599
- DOMStringList: 0,
1600
- DOMTokenList: 1,
1601
- DataTransferItemList: 0,
1602
- FileList: 0,
1603
- HTMLAllCollection: 0,
1604
- HTMLCollection: 0,
1605
- HTMLFormElement: 0,
1606
- HTMLSelectElement: 0,
1607
- MediaList: 0,
1608
- MimeTypeArray: 0,
1609
- NamedNodeMap: 0,
1610
- NodeList: 1,
1611
- PaintRequestList: 0,
1612
- Plugin: 0,
1613
- PluginArray: 0,
1614
- SVGLengthList: 0,
1615
- SVGNumberList: 0,
1616
- SVGPathSegList: 0,
1617
- SVGPointList: 0,
1618
- SVGStringList: 0,
1619
- SVGTransformList: 0,
1620
- SourceBufferList: 0,
1621
- StyleSheetList: 0,
1622
- TextTrackCueList: 0,
1623
- TextTrackList: 0,
1624
- TouchList: 0
1625
- };
1626
-
1627
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1628
- var documentCreateElement = documentCreateElement$2;
1629
-
1630
- var classList = documentCreateElement('span').classList;
1631
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1632
-
1633
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1634
-
1635
- var global$2 = global$c;
1636
- var DOMIterables = domIterables;
1637
- var DOMTokenListPrototype = domTokenListPrototype;
1638
- var ArrayIteratorMethods = es_array_iterator;
1639
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
1640
- var wellKnownSymbol = wellKnownSymbol$6;
1641
-
1642
- var ITERATOR = wellKnownSymbol('iterator');
1643
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1644
- var ArrayValues = ArrayIteratorMethods.values;
1645
-
1646
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1647
- if (CollectionPrototype) {
1648
- // some Chrome versions have non-configurable methods on DOMTokenList
1649
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1650
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
1651
- } catch (error) {
1652
- CollectionPrototype[ITERATOR] = ArrayValues;
1653
- }
1654
- if (!CollectionPrototype[TO_STRING_TAG]) {
1655
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG, COLLECTION_NAME);
1656
- }
1657
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1658
- // some Chrome versions have non-configurable methods on DOMTokenList
1659
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1660
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1661
- } catch (error) {
1662
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1663
- }
1664
- }
1665
- }
1666
- };
1667
-
1668
- for (var COLLECTION_NAME in DOMIterables) {
1669
- handlePrototype(global$2[COLLECTION_NAME] && global$2[COLLECTION_NAME].prototype, COLLECTION_NAME);
1670
- }
1671
-
1672
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1673
-
1674
64
  const useProfile = () => {
1675
65
  const ninetailed = useNinetailed();
1676
66
  const [profileState, setProfileState] = useState(ninetailed.profileState);
@@ -1817,7 +207,7 @@ const Personalize = _a => {
1817
207
  audience: audience,
1818
208
  isPersonalized: isPersonalized
1819
209
  }, {
1820
- children: /*#__PURE__*/createElement$1(Component, Object.assign({}, variant, {
210
+ children: /*#__PURE__*/createElement(Component, Object.assign({}, variant, {
1821
211
  key: `${audience.id}-${variant.id}`,
1822
212
  ninetailed: {
1823
213
  isPersonalized,
@@ -1836,11 +226,11 @@ const generateSelectors = id => {
1836
226
  };
1837
227
  const selectValueFromProfile = (profile, id) => {
1838
228
  const selectors = generateSelectors(id);
1839
- const matchingSelector = selectors.find(selector => get$1(profile, selector));
229
+ const matchingSelector = selectors.find(selector => get(profile, selector));
1840
230
  if (!matchingSelector) {
1841
231
  return null;
1842
232
  }
1843
- return get$1(profile, matchingSelector);
233
+ return get(profile, matchingSelector);
1844
234
  };
1845
235
  const MergeTag = ({
1846
236
  id
@@ -1859,84 +249,6 @@ const MergeTag = ({
1859
249
  });
1860
250
  };
1861
251
 
1862
- var aCallable = aCallable$2;
1863
- var toObject = toObject$4;
1864
- var IndexedObject = indexedObject;
1865
- var lengthOfArrayLike = lengthOfArrayLike$2;
1866
-
1867
- var $TypeError = TypeError;
1868
-
1869
- // `Array.prototype.{ reduce, reduceRight }` methods implementation
1870
- var createMethod = function (IS_RIGHT) {
1871
- return function (that, callbackfn, argumentsLength, memo) {
1872
- aCallable(callbackfn);
1873
- var O = toObject(that);
1874
- var self = IndexedObject(O);
1875
- var length = lengthOfArrayLike(O);
1876
- var index = IS_RIGHT ? length - 1 : 0;
1877
- var i = IS_RIGHT ? -1 : 1;
1878
- if (argumentsLength < 2) while (true) {
1879
- if (index in self) {
1880
- memo = self[index];
1881
- index += i;
1882
- break;
1883
- }
1884
- index += i;
1885
- if (IS_RIGHT ? index < 0 : length <= index) {
1886
- throw $TypeError('Reduce of empty array with no initial value');
1887
- }
1888
- }
1889
- for (;IS_RIGHT ? index >= 0 : length > index; index += i) if (index in self) {
1890
- memo = callbackfn(memo, self[index], index, O);
1891
- }
1892
- return memo;
1893
- };
1894
- };
1895
-
1896
- var arrayReduce = {
1897
- // `Array.prototype.reduce` method
1898
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
1899
- left: createMethod(false),
1900
- // `Array.prototype.reduceRight` method
1901
- // https://tc39.es/ecma262/#sec-array.prototype.reduceright
1902
- right: createMethod(true)
1903
- };
1904
-
1905
- var fails = fails$c;
1906
-
1907
- var arrayMethodIsStrict$1 = function (METHOD_NAME, argument) {
1908
- var method = [][METHOD_NAME];
1909
- return !!method && fails(function () {
1910
- // eslint-disable-next-line no-useless-call -- required for testing
1911
- method.call(null, argument || function () { return 1; }, 1);
1912
- });
1913
- };
1914
-
1915
- var classof = classofRaw;
1916
- var global$1 = global$c;
1917
-
1918
- var engineIsNode = classof(global$1.process) == 'process';
1919
-
1920
- var $ = _export;
1921
- var $reduce = arrayReduce.left;
1922
- var arrayMethodIsStrict = arrayMethodIsStrict$1;
1923
- var CHROME_VERSION = engineV8Version;
1924
- var IS_NODE = engineIsNode;
1925
-
1926
- var STRICT_METHOD = arrayMethodIsStrict('reduce');
1927
- // Chrome 80-82 has a critical bug
1928
- // https://bugs.chromium.org/p/chromium/issues/detail?id=1049982
1929
- var CHROME_BUG = !IS_NODE && CHROME_VERSION > 79 && CHROME_VERSION < 83;
1930
-
1931
- // `Array.prototype.reduce` method
1932
- // https://tc39.es/ecma262/#sec-array.prototype.reduce
1933
- $({ target: 'Array', proto: true, forced: !STRICT_METHOD || CHROME_BUG }, {
1934
- reduce: function reduce(callbackfn /* , initialValue */) {
1935
- var length = arguments.length;
1936
- return $reduce(this, callbackfn, length, length > 1 ? arguments[1] : undefined);
1937
- }
1938
- });
1939
-
1940
252
  const useExperienceSelectionMiddleware = ({
1941
253
  experiences,
1942
254
  baseline,
@@ -2190,7 +502,7 @@ const Experience = _a => {
2190
502
  return jsxs(Fragment, {
2191
503
  children: [!isComponentForwardRef && jsx(ComponentMarker, {
2192
504
  ref: componentRef
2193
- }, `marker-no-variants-${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`), /*#__PURE__*/createElement$1(Component, Object.assign({}, passthroughProps, baseline, {
505
+ }, `marker-no-variants-${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`), /*#__PURE__*/createElement(Component, Object.assign({}, passthroughProps, baseline, {
2194
506
  key: baseline.id
2195
507
  }, isComponentForwardRef ? {
2196
508
  ref: componentRef
@@ -2198,7 +510,7 @@ const Experience = _a => {
2198
510
  });
2199
511
  }
2200
512
  if (status === 'loading') {
2201
- return /*#__PURE__*/createElement$1(LoadingComponent, Object.assign({}, baseline, {
513
+ return /*#__PURE__*/createElement(LoadingComponent, Object.assign({}, baseline, {
2202
514
  key: baseline.id,
2203
515
  passthroughProps: passthroughProps,
2204
516
  experiences: experiences,
@@ -2214,7 +526,7 @@ const Experience = _a => {
2214
526
  return jsxs(Fragment, {
2215
527
  children: [!isComponentForwardRef && jsx(ComponentMarker, {
2216
528
  ref: componentRef
2217
- }, `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), {
529
+ }, `marker-${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`), /*#__PURE__*/createElement(Component, Object.assign({}, Object.assign(Object.assign({}, passthroughProps), variant), {
2218
530
  key: `${(experience === null || experience === void 0 ? void 0 : experience.id) || 'baseline'}-${variant.id}`,
2219
531
  ninetailed: {
2220
532
  isPersonalized,