@dotcms/react 0.0.1-beta.2 → 0.0.1-beta.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +165 -62
- package/{es.regexp.to-string.esm.js → es.json.stringify.esm.js} +99 -156
- package/index.esm.js +81 -20
- package/next.esm.js +226 -248
- package/package.json +24 -3
- package/src/lib/next/__test__/mock.d.ts +1 -1
- package/src/lib/next/components/Column/Column.d.ts +1 -1
- package/src/lib/next/components/Container/Container.d.ts +1 -1
- package/src/lib/next/components/Container/{ContainerFallbakcs.d.ts → ContainerFallbacks.d.ts} +2 -2
- package/src/lib/next/components/Contentlet/Contentlet.d.ts +1 -1
- package/src/lib/next/components/DotCMSLayoutBody/DotCMSLayoutBody.d.ts +4 -15
- package/src/lib/next/components/DotCMSLayoutBody/components/ErrorMessage.d.ts +1 -4
- package/src/lib/next/components/DotCMSShow/DotCMSShow.d.ts +49 -0
- package/src/lib/next/components/FallbackComponent/FallbackComponent.d.ts +1 -1
- package/src/lib/next/components/Row/Row.d.ts +1 -1
- package/src/lib/next/contexts/DotCMSPageContext.d.ts +1 -2
- package/src/lib/next/hooks/useDotCMSShowWhen.d.ts +31 -0
- package/src/lib/next/hooks/useEditableDotCMSPage.d.ts +90 -0
- package/src/lib/next/hooks/useIsDevMode.d.ts +2 -5
- package/src/next.d.ts +3 -0
- package/src/lib/next/types.d.ts +0 -421
- package/src/lib/next/utils/index.d.ts +0 -136
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
2
|
|
|
3
|
-
var fails$
|
|
3
|
+
var fails$c = function (exec) {
|
|
4
4
|
try {
|
|
5
5
|
return !!exec();
|
|
6
6
|
} catch (error) {
|
|
@@ -8,9 +8,9 @@ var fails$d = function (exec) {
|
|
|
8
8
|
}
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
var fails$
|
|
11
|
+
var fails$b = fails$c;
|
|
12
12
|
|
|
13
|
-
var functionBindNative = !fails$
|
|
13
|
+
var functionBindNative = !fails$b(function () {
|
|
14
14
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
15
15
|
var test = (function () { /* empty */ }).bind();
|
|
16
16
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -20,12 +20,12 @@ var functionBindNative = !fails$c(function () {
|
|
|
20
20
|
var NATIVE_BIND$2 = functionBindNative;
|
|
21
21
|
|
|
22
22
|
var FunctionPrototype$2 = Function.prototype;
|
|
23
|
-
var call$
|
|
24
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
23
|
+
var call$8 = FunctionPrototype$2.call;
|
|
24
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$8, call$8);
|
|
25
25
|
|
|
26
26
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
27
27
|
return function () {
|
|
28
|
-
return call$
|
|
28
|
+
return call$8.apply(fn, arguments);
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
31
|
|
|
@@ -39,14 +39,14 @@ var classofRaw$1 = function (it) {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
var uncurryThis$c = functionUncurryThis;
|
|
42
|
-
var fails$
|
|
42
|
+
var fails$a = fails$c;
|
|
43
43
|
var classof$4 = classofRaw$1;
|
|
44
44
|
|
|
45
45
|
var $Object$4 = Object;
|
|
46
46
|
var split = uncurryThis$c(''.split);
|
|
47
47
|
|
|
48
48
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
49
|
-
var indexedObject = fails$
|
|
49
|
+
var indexedObject = fails$a(function () {
|
|
50
50
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
51
51
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
52
52
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
@@ -196,13 +196,13 @@ var engineV8Version = version;
|
|
|
196
196
|
|
|
197
197
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
198
198
|
var V8_VERSION = engineV8Version;
|
|
199
|
-
var fails$
|
|
199
|
+
var fails$9 = fails$c;
|
|
200
200
|
var global$8 = global$b;
|
|
201
201
|
|
|
202
202
|
var $String$6 = global$8.String;
|
|
203
203
|
|
|
204
204
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
205
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
205
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$9(function () {
|
|
206
206
|
var symbol = Symbol('symbol detection');
|
|
207
207
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
208
208
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
@@ -222,7 +222,7 @@ var useSymbolAsUid = NATIVE_SYMBOL$2
|
|
|
222
222
|
|
|
223
223
|
var global$7 = global$b;
|
|
224
224
|
var shared$2 = shared$3;
|
|
225
|
-
var hasOwn$
|
|
225
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
226
226
|
var uid$1 = uid$2;
|
|
227
227
|
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
228
228
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
@@ -232,8 +232,8 @@ var WellKnownSymbolsStore = shared$2('wks');
|
|
|
232
232
|
var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
233
233
|
|
|
234
234
|
var wellKnownSymbol$8 = function (name) {
|
|
235
|
-
if (!hasOwn$
|
|
236
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$
|
|
235
|
+
if (!hasOwn$8(WellKnownSymbolsStore, name)) {
|
|
236
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL$1 && hasOwn$8(Symbol$1, name)
|
|
237
237
|
? Symbol$1[name]
|
|
238
238
|
: createWellKnownSymbol('Symbol.' + name);
|
|
239
239
|
} return WellKnownSymbolsStore[name];
|
|
@@ -263,27 +263,27 @@ var $String$5 = String;
|
|
|
263
263
|
var $TypeError$5 = TypeError;
|
|
264
264
|
|
|
265
265
|
// `Assert: Type(argument) is Object`
|
|
266
|
-
var anObject$
|
|
266
|
+
var anObject$4 = function (argument) {
|
|
267
267
|
if (isObject$7(argument)) return argument;
|
|
268
268
|
throw new $TypeError$5($String$5(argument) + ' is not an object');
|
|
269
269
|
};
|
|
270
270
|
|
|
271
271
|
var objectDefineProperties = {};
|
|
272
272
|
|
|
273
|
-
var fails$
|
|
273
|
+
var fails$8 = fails$c;
|
|
274
274
|
|
|
275
275
|
// Detect IE8's incomplete defineProperty implementation
|
|
276
|
-
var descriptors = !fails$
|
|
276
|
+
var descriptors = !fails$8(function () {
|
|
277
277
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
278
278
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
279
279
|
});
|
|
280
280
|
|
|
281
281
|
var DESCRIPTORS$9 = descriptors;
|
|
282
|
-
var fails$
|
|
282
|
+
var fails$7 = fails$c;
|
|
283
283
|
|
|
284
284
|
// V8 ~ Chrome 36-
|
|
285
285
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
286
|
-
var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$
|
|
286
|
+
var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$7(function () {
|
|
287
287
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
288
288
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
289
289
|
value: 42,
|
|
@@ -305,11 +305,11 @@ var documentCreateElement$2 = function (it) {
|
|
|
305
305
|
};
|
|
306
306
|
|
|
307
307
|
var DESCRIPTORS$8 = descriptors;
|
|
308
|
-
var fails$
|
|
308
|
+
var fails$6 = fails$c;
|
|
309
309
|
var createElement = documentCreateElement$2;
|
|
310
310
|
|
|
311
311
|
// Thanks to IE8 for its funny defineProperty
|
|
312
|
-
var ie8DomDefine = !DESCRIPTORS$8 && !fails$
|
|
312
|
+
var ie8DomDefine = !DESCRIPTORS$8 && !fails$6(function () {
|
|
313
313
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
314
314
|
return Object.defineProperty(createElement('div'), 'a', {
|
|
315
315
|
get: function () { return 7; }
|
|
@@ -318,10 +318,10 @@ var ie8DomDefine = !DESCRIPTORS$8 && !fails$7(function () {
|
|
|
318
318
|
|
|
319
319
|
var NATIVE_BIND$1 = functionBindNative;
|
|
320
320
|
|
|
321
|
-
var call$
|
|
321
|
+
var call$7 = Function.prototype.call;
|
|
322
322
|
|
|
323
|
-
var functionCall = NATIVE_BIND$1 ? call$
|
|
324
|
-
return call$
|
|
323
|
+
var functionCall = NATIVE_BIND$1 ? call$7.bind(call$7) : function () {
|
|
324
|
+
return call$7.apply(call$7, arguments);
|
|
325
325
|
};
|
|
326
326
|
|
|
327
327
|
var global$5 = global$b;
|
|
@@ -341,7 +341,7 @@ var objectIsPrototypeOf = uncurryThis$9({}.isPrototypeOf);
|
|
|
341
341
|
|
|
342
342
|
var getBuiltIn$3 = getBuiltIn$4;
|
|
343
343
|
var isCallable$d = isCallable$g;
|
|
344
|
-
var isPrototypeOf
|
|
344
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
345
345
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
346
346
|
|
|
347
347
|
var $Object$2 = Object;
|
|
@@ -350,7 +350,7 @@ var isSymbol$3 = USE_SYMBOL_AS_UID ? function (it) {
|
|
|
350
350
|
return typeof it == 'symbol';
|
|
351
351
|
} : function (it) {
|
|
352
352
|
var $Symbol = getBuiltIn$3('Symbol');
|
|
353
|
-
return isCallable$d($Symbol) && isPrototypeOf
|
|
353
|
+
return isCallable$d($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
|
|
354
354
|
};
|
|
355
355
|
|
|
356
356
|
var $String$4 = String;
|
|
@@ -384,7 +384,7 @@ var getMethod$1 = function (V, P) {
|
|
|
384
384
|
return isNullOrUndefined(func) ? undefined : aCallable$1(func);
|
|
385
385
|
};
|
|
386
386
|
|
|
387
|
-
var call$
|
|
387
|
+
var call$6 = functionCall;
|
|
388
388
|
var isCallable$b = isCallable$g;
|
|
389
389
|
var isObject$5 = isObject$8;
|
|
390
390
|
|
|
@@ -394,13 +394,13 @@ var $TypeError$3 = TypeError;
|
|
|
394
394
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
395
395
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
396
396
|
var fn, val;
|
|
397
|
-
if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$
|
|
398
|
-
if (isCallable$b(fn = input.valueOf) && !isObject$5(val = call$
|
|
399
|
-
if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$
|
|
397
|
+
if (pref === 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$6(fn, input))) return val;
|
|
398
|
+
if (isCallable$b(fn = input.valueOf) && !isObject$5(val = call$6(fn, input))) return val;
|
|
399
|
+
if (pref !== 'string' && isCallable$b(fn = input.toString) && !isObject$5(val = call$6(fn, input))) return val;
|
|
400
400
|
throw new $TypeError$3("Can't convert object to primitive value");
|
|
401
401
|
};
|
|
402
402
|
|
|
403
|
-
var call$
|
|
403
|
+
var call$5 = functionCall;
|
|
404
404
|
var isObject$4 = isObject$8;
|
|
405
405
|
var isSymbol$2 = isSymbol$3;
|
|
406
406
|
var getMethod = getMethod$1;
|
|
@@ -418,7 +418,7 @@ var toPrimitive$1 = function (input, pref) {
|
|
|
418
418
|
var result;
|
|
419
419
|
if (exoticToPrim) {
|
|
420
420
|
if (pref === undefined) pref = 'default';
|
|
421
|
-
result = call$
|
|
421
|
+
result = call$5(exoticToPrim, input, pref);
|
|
422
422
|
if (!isObject$4(result) || isSymbol$2(result)) return result;
|
|
423
423
|
throw new $TypeError$2("Can't convert object to primitive value");
|
|
424
424
|
}
|
|
@@ -439,7 +439,7 @@ var toPropertyKey$2 = function (argument) {
|
|
|
439
439
|
var DESCRIPTORS$7 = descriptors;
|
|
440
440
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
441
441
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
442
|
-
var anObject$
|
|
442
|
+
var anObject$3 = anObject$4;
|
|
443
443
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
444
444
|
|
|
445
445
|
var $TypeError$1 = TypeError;
|
|
@@ -454,9 +454,9 @@ var WRITABLE = 'writable';
|
|
|
454
454
|
// `Object.defineProperty` method
|
|
455
455
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
456
456
|
objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
457
|
-
anObject$
|
|
457
|
+
anObject$3(O);
|
|
458
458
|
P = toPropertyKey$1(P);
|
|
459
|
-
anObject$
|
|
459
|
+
anObject$3(Attributes);
|
|
460
460
|
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
|
461
461
|
var current = $getOwnPropertyDescriptor$1(O, P);
|
|
462
462
|
if (current && current[WRITABLE]) {
|
|
@@ -469,9 +469,9 @@ objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
469
469
|
}
|
|
470
470
|
} return $defineProperty(O, P, Attributes);
|
|
471
471
|
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
|
472
|
-
anObject$
|
|
472
|
+
anObject$3(O);
|
|
473
473
|
P = toPropertyKey$1(P);
|
|
474
|
-
anObject$
|
|
474
|
+
anObject$3(Attributes);
|
|
475
475
|
if (IE8_DOM_DEFINE$1) try {
|
|
476
476
|
return $defineProperty(O, P, Attributes);
|
|
477
477
|
} catch (error) { /* empty */ }
|
|
@@ -570,7 +570,7 @@ var arrayIncludes = {
|
|
|
570
570
|
var hiddenKeys$4 = {};
|
|
571
571
|
|
|
572
572
|
var uncurryThis$8 = functionUncurryThis;
|
|
573
|
-
var hasOwn$
|
|
573
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
574
574
|
var toIndexedObject$3 = toIndexedObject$5;
|
|
575
575
|
var indexOf = arrayIncludes.indexOf;
|
|
576
576
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
@@ -582,9 +582,9 @@ var objectKeysInternal = function (object, names) {
|
|
|
582
582
|
var i = 0;
|
|
583
583
|
var result = [];
|
|
584
584
|
var key;
|
|
585
|
-
for (key in O) !hasOwn$
|
|
585
|
+
for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push$1(result, key);
|
|
586
586
|
// Don't enum bug & hidden keys
|
|
587
|
-
while (names.length > i) if (hasOwn$
|
|
587
|
+
while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
|
|
588
588
|
~indexOf(result, key) || push$1(result, key);
|
|
589
589
|
}
|
|
590
590
|
return result;
|
|
@@ -614,7 +614,7 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
614
614
|
var DESCRIPTORS$6 = descriptors;
|
|
615
615
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
616
616
|
var definePropertyModule$3 = objectDefineProperty;
|
|
617
|
-
var anObject$
|
|
617
|
+
var anObject$2 = anObject$4;
|
|
618
618
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
619
619
|
var objectKeys$1 = objectKeys$2;
|
|
620
620
|
|
|
@@ -622,7 +622,7 @@ var objectKeys$1 = objectKeys$2;
|
|
|
622
622
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
623
623
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
624
624
|
objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
625
|
-
anObject$
|
|
625
|
+
anObject$2(O);
|
|
626
626
|
var props = toIndexedObject$2(Properties);
|
|
627
627
|
var keys = objectKeys$1(Properties);
|
|
628
628
|
var length = keys.length;
|
|
@@ -646,7 +646,7 @@ var sharedKey$3 = function (key) {
|
|
|
646
646
|
};
|
|
647
647
|
|
|
648
648
|
/* global ActiveXObject -- old IE, WSH */
|
|
649
|
-
var anObject$
|
|
649
|
+
var anObject$1 = anObject$4;
|
|
650
650
|
var definePropertiesModule = objectDefineProperties;
|
|
651
651
|
var enumBugKeys$1 = enumBugKeys$3;
|
|
652
652
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
@@ -720,7 +720,7 @@ hiddenKeys$2[IE_PROTO$1] = true;
|
|
|
720
720
|
var objectCreate = Object.create || function create(O, Properties) {
|
|
721
721
|
var result;
|
|
722
722
|
if (O !== null) {
|
|
723
|
-
EmptyConstructor[PROTOTYPE] = anObject$
|
|
723
|
+
EmptyConstructor[PROTOTYPE] = anObject$1(O);
|
|
724
724
|
result = new EmptyConstructor();
|
|
725
725
|
EmptyConstructor[PROTOTYPE] = null;
|
|
726
726
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
|
@@ -783,7 +783,7 @@ var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
|
783
783
|
var global$3 = global$b;
|
|
784
784
|
var isObject$3 = isObject$8;
|
|
785
785
|
var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
|
|
786
|
-
var hasOwn$
|
|
786
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
787
787
|
var shared = sharedStoreExports;
|
|
788
788
|
var sharedKey$1 = sharedKey$3;
|
|
789
789
|
var hiddenKeys$1 = hiddenKeys$4;
|
|
@@ -829,16 +829,16 @@ if (NATIVE_WEAK_MAP || shared.state) {
|
|
|
829
829
|
var STATE = sharedKey$1('state');
|
|
830
830
|
hiddenKeys$1[STATE] = true;
|
|
831
831
|
set = function (it, metadata) {
|
|
832
|
-
if (hasOwn$
|
|
832
|
+
if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
|
|
833
833
|
metadata.facade = it;
|
|
834
834
|
createNonEnumerableProperty$3(it, STATE, metadata);
|
|
835
835
|
return metadata;
|
|
836
836
|
};
|
|
837
837
|
get = function (it) {
|
|
838
|
-
return hasOwn$
|
|
838
|
+
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
|
839
839
|
};
|
|
840
840
|
has = function (it) {
|
|
841
|
-
return hasOwn$
|
|
841
|
+
return hasOwn$6(it, STATE);
|
|
842
842
|
};
|
|
843
843
|
}
|
|
844
844
|
|
|
@@ -869,12 +869,12 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
869
869
|
} : $propertyIsEnumerable;
|
|
870
870
|
|
|
871
871
|
var DESCRIPTORS$4 = descriptors;
|
|
872
|
-
var call$
|
|
872
|
+
var call$4 = functionCall;
|
|
873
873
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
874
874
|
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
875
875
|
var toIndexedObject$1 = toIndexedObject$5;
|
|
876
876
|
var toPropertyKey = toPropertyKey$2;
|
|
877
|
-
var hasOwn$
|
|
877
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
878
878
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
879
879
|
|
|
880
880
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -888,19 +888,19 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : f
|
|
|
888
888
|
if (IE8_DOM_DEFINE) try {
|
|
889
889
|
return $getOwnPropertyDescriptor(O, P);
|
|
890
890
|
} catch (error) { /* empty */ }
|
|
891
|
-
if (hasOwn$
|
|
891
|
+
if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$4(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
892
892
|
};
|
|
893
893
|
|
|
894
894
|
var makeBuiltIn$2 = {exports: {}};
|
|
895
895
|
|
|
896
896
|
var DESCRIPTORS$3 = descriptors;
|
|
897
|
-
var hasOwn$
|
|
897
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
898
898
|
|
|
899
899
|
var FunctionPrototype$1 = Function.prototype;
|
|
900
900
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
901
901
|
var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
|
|
902
902
|
|
|
903
|
-
var EXISTS = hasOwn$
|
|
903
|
+
var EXISTS = hasOwn$4(FunctionPrototype$1, 'name');
|
|
904
904
|
// additional protection from minified / mangled / dropped function names
|
|
905
905
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
906
906
|
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
@@ -927,9 +927,9 @@ if (!isCallable$9(store.inspectSource)) {
|
|
|
927
927
|
var inspectSource$1 = store.inspectSource;
|
|
928
928
|
|
|
929
929
|
var uncurryThis$6 = functionUncurryThis;
|
|
930
|
-
var fails$
|
|
930
|
+
var fails$5 = fails$c;
|
|
931
931
|
var isCallable$8 = isCallable$g;
|
|
932
|
-
var hasOwn$
|
|
932
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
933
933
|
var DESCRIPTORS$2 = descriptors;
|
|
934
934
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
935
935
|
var inspectSource = inspectSource$1;
|
|
@@ -944,7 +944,7 @@ var stringSlice = uncurryThis$6(''.slice);
|
|
|
944
944
|
var replace$1 = uncurryThis$6(''.replace);
|
|
945
945
|
var join = uncurryThis$6([].join);
|
|
946
946
|
|
|
947
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$
|
|
947
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$5(function () {
|
|
948
948
|
return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
949
949
|
});
|
|
950
950
|
|
|
@@ -956,21 +956,21 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
|
|
|
956
956
|
}
|
|
957
957
|
if (options && options.getter) name = 'get ' + name;
|
|
958
958
|
if (options && options.setter) name = 'set ' + name;
|
|
959
|
-
if (!hasOwn$
|
|
959
|
+
if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
960
960
|
if (DESCRIPTORS$2) defineProperty$3(value, 'name', { value: name, configurable: true });
|
|
961
961
|
else value.name = name;
|
|
962
962
|
}
|
|
963
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
963
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
|
|
964
964
|
defineProperty$3(value, 'length', { value: options.arity });
|
|
965
965
|
}
|
|
966
966
|
try {
|
|
967
|
-
if (options && hasOwn$
|
|
967
|
+
if (options && hasOwn$3(options, 'constructor') && options.constructor) {
|
|
968
968
|
if (DESCRIPTORS$2) defineProperty$3(value, 'prototype', { writable: false });
|
|
969
969
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
970
970
|
} else if (value.prototype) value.prototype = undefined;
|
|
971
971
|
} catch (error) { /* empty */ }
|
|
972
972
|
var state = enforceInternalState(value);
|
|
973
|
-
if (!hasOwn$
|
|
973
|
+
if (!hasOwn$3(state, 'source')) {
|
|
974
974
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
975
975
|
} return value;
|
|
976
976
|
};
|
|
@@ -988,7 +988,7 @@ var definePropertyModule$1 = objectDefineProperty;
|
|
|
988
988
|
var makeBuiltIn = makeBuiltInExports;
|
|
989
989
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
990
990
|
|
|
991
|
-
var defineBuiltIn$
|
|
991
|
+
var defineBuiltIn$3 = function (O, key, value, options) {
|
|
992
992
|
if (!options) options = {};
|
|
993
993
|
var simple = options.enumerable;
|
|
994
994
|
var name = options.name !== undefined ? options.name : key;
|
|
@@ -1034,18 +1034,18 @@ var getBuiltIn$1 = getBuiltIn$4;
|
|
|
1034
1034
|
var uncurryThis$5 = functionUncurryThis;
|
|
1035
1035
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
1036
1036
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
1037
|
-
var anObject
|
|
1037
|
+
var anObject = anObject$4;
|
|
1038
1038
|
|
|
1039
1039
|
var concat$1 = uncurryThis$5([].concat);
|
|
1040
1040
|
|
|
1041
1041
|
// all object keys, includes non-enumerable and symbols
|
|
1042
1042
|
var ownKeys$1 = getBuiltIn$1('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
1043
|
-
var keys = getOwnPropertyNamesModule.f(anObject
|
|
1043
|
+
var keys = getOwnPropertyNamesModule.f(anObject(it));
|
|
1044
1044
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
1045
1045
|
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
|
1046
1046
|
};
|
|
1047
1047
|
|
|
1048
|
-
var hasOwn$
|
|
1048
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
1049
1049
|
var ownKeys = ownKeys$1;
|
|
1050
1050
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
1051
1051
|
var definePropertyModule = objectDefineProperty;
|
|
@@ -1056,13 +1056,13 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
|
1056
1056
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
1057
1057
|
for (var i = 0; i < keys.length; i++) {
|
|
1058
1058
|
var key = keys[i];
|
|
1059
|
-
if (!hasOwn$
|
|
1059
|
+
if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
|
|
1060
1060
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
1061
1061
|
}
|
|
1062
1062
|
}
|
|
1063
1063
|
};
|
|
1064
1064
|
|
|
1065
|
-
var fails$
|
|
1065
|
+
var fails$4 = fails$c;
|
|
1066
1066
|
var isCallable$6 = isCallable$g;
|
|
1067
1067
|
|
|
1068
1068
|
var replacement = /#|\.prototype\./;
|
|
@@ -1071,7 +1071,7 @@ var isForced$1 = function (feature, detection) {
|
|
|
1071
1071
|
var value = data[normalize(feature)];
|
|
1072
1072
|
return value === POLYFILL ? true
|
|
1073
1073
|
: value === NATIVE ? false
|
|
1074
|
-
: isCallable$6(detection) ? fails$
|
|
1074
|
+
: isCallable$6(detection) ? fails$4(detection)
|
|
1075
1075
|
: !!detection;
|
|
1076
1076
|
};
|
|
1077
1077
|
|
|
@@ -1088,7 +1088,7 @@ var isForced_1 = isForced$1;
|
|
|
1088
1088
|
var global$2 = global$b;
|
|
1089
1089
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
|
1090
1090
|
var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
|
|
1091
|
-
var defineBuiltIn$
|
|
1091
|
+
var defineBuiltIn$2 = defineBuiltIn$3;
|
|
1092
1092
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
1093
1093
|
var copyConstructorProperties = copyConstructorProperties$1;
|
|
1094
1094
|
var isForced = isForced_1;
|
|
@@ -1136,20 +1136,20 @@ var _export = function (options, source) {
|
|
|
1136
1136
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
1137
1137
|
createNonEnumerableProperty$2(sourceProperty, 'sham', true);
|
|
1138
1138
|
}
|
|
1139
|
-
defineBuiltIn$
|
|
1139
|
+
defineBuiltIn$2(target, key, sourceProperty, options);
|
|
1140
1140
|
}
|
|
1141
1141
|
};
|
|
1142
1142
|
|
|
1143
|
-
var fails$
|
|
1143
|
+
var fails$3 = fails$c;
|
|
1144
1144
|
|
|
1145
|
-
var correctPrototypeGetter = !fails$
|
|
1145
|
+
var correctPrototypeGetter = !fails$3(function () {
|
|
1146
1146
|
function F() { /* empty */ }
|
|
1147
1147
|
F.prototype.constructor = null;
|
|
1148
1148
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
1149
1149
|
return Object.getPrototypeOf(new F()) !== F.prototype;
|
|
1150
1150
|
});
|
|
1151
1151
|
|
|
1152
|
-
var hasOwn$
|
|
1152
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
1153
1153
|
var isCallable$5 = isCallable$g;
|
|
1154
1154
|
var toObject$1 = toObject$3;
|
|
1155
1155
|
var sharedKey = sharedKey$3;
|
|
@@ -1164,18 +1164,18 @@ var ObjectPrototype = $Object$1.prototype;
|
|
|
1164
1164
|
// eslint-disable-next-line es/no-object-getprototypeof -- safe
|
|
1165
1165
|
var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object$1.getPrototypeOf : function (O) {
|
|
1166
1166
|
var object = toObject$1(O);
|
|
1167
|
-
if (hasOwn$
|
|
1167
|
+
if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
|
|
1168
1168
|
var constructor = object.constructor;
|
|
1169
1169
|
if (isCallable$5(constructor) && object instanceof constructor) {
|
|
1170
1170
|
return constructor.prototype;
|
|
1171
1171
|
} return object instanceof $Object$1 ? ObjectPrototype : null;
|
|
1172
1172
|
};
|
|
1173
1173
|
|
|
1174
|
-
var fails$
|
|
1174
|
+
var fails$2 = fails$c;
|
|
1175
1175
|
var isCallable$4 = isCallable$g;
|
|
1176
1176
|
var isObject$2 = isObject$8;
|
|
1177
1177
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
1178
|
-
var defineBuiltIn$
|
|
1178
|
+
var defineBuiltIn$1 = defineBuiltIn$3;
|
|
1179
1179
|
var wellKnownSymbol$5 = wellKnownSymbol$8;
|
|
1180
1180
|
|
|
1181
1181
|
var ITERATOR$2 = wellKnownSymbol$5('iterator');
|
|
@@ -1196,7 +1196,7 @@ if ([].keys) {
|
|
|
1196
1196
|
}
|
|
1197
1197
|
}
|
|
1198
1198
|
|
|
1199
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$
|
|
1199
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$2(function () {
|
|
1200
1200
|
var test = {};
|
|
1201
1201
|
// FF44- legacy iterators case
|
|
1202
1202
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -1207,7 +1207,7 @@ if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
|
|
|
1207
1207
|
// `%IteratorPrototype%[@@iterator]()` method
|
|
1208
1208
|
// https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
|
|
1209
1209
|
if (!isCallable$4(IteratorPrototype$2[ITERATOR$2])) {
|
|
1210
|
-
defineBuiltIn$
|
|
1210
|
+
defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
|
|
1211
1211
|
return this;
|
|
1212
1212
|
});
|
|
1213
1213
|
}
|
|
@@ -1218,14 +1218,14 @@ var iteratorsCore = {
|
|
|
1218
1218
|
};
|
|
1219
1219
|
|
|
1220
1220
|
var defineProperty$2 = objectDefineProperty.f;
|
|
1221
|
-
var hasOwn
|
|
1221
|
+
var hasOwn = hasOwnProperty_1;
|
|
1222
1222
|
var wellKnownSymbol$4 = wellKnownSymbol$8;
|
|
1223
1223
|
|
|
1224
1224
|
var TO_STRING_TAG$2 = wellKnownSymbol$4('toStringTag');
|
|
1225
1225
|
|
|
1226
1226
|
var setToStringTag$3 = function (target, TAG, STATIC) {
|
|
1227
1227
|
if (target && !STATIC) target = target.prototype;
|
|
1228
|
-
if (target && !hasOwn
|
|
1228
|
+
if (target && !hasOwn(target, TO_STRING_TAG$2)) {
|
|
1229
1229
|
defineProperty$2(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
1230
1230
|
}
|
|
1231
1231
|
};
|
|
@@ -1302,7 +1302,7 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
1302
1302
|
}() : undefined);
|
|
1303
1303
|
|
|
1304
1304
|
var $$2 = _export;
|
|
1305
|
-
var call$
|
|
1305
|
+
var call$3 = functionCall;
|
|
1306
1306
|
var FunctionName = functionName;
|
|
1307
1307
|
var isCallable$3 = isCallable$g;
|
|
1308
1308
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
@@ -1310,12 +1310,12 @@ var getPrototypeOf = objectGetPrototypeOf;
|
|
|
1310
1310
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
1311
1311
|
var setToStringTag$1 = setToStringTag$3;
|
|
1312
1312
|
var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
|
|
1313
|
-
var defineBuiltIn
|
|
1313
|
+
var defineBuiltIn = defineBuiltIn$3;
|
|
1314
1314
|
var wellKnownSymbol$3 = wellKnownSymbol$8;
|
|
1315
1315
|
var Iterators$1 = iterators;
|
|
1316
1316
|
var IteratorsCore = iteratorsCore;
|
|
1317
1317
|
|
|
1318
|
-
var PROPER_FUNCTION_NAME
|
|
1318
|
+
var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
1319
1319
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
1320
1320
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
1321
1321
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
@@ -1360,7 +1360,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1360
1360
|
if (setPrototypeOf) {
|
|
1361
1361
|
setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
|
|
1362
1362
|
} else if (!isCallable$3(CurrentIteratorPrototype[ITERATOR$1])) {
|
|
1363
|
-
defineBuiltIn
|
|
1363
|
+
defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
1366
1366
|
// Set @@toStringTag to native iterators
|
|
@@ -1369,12 +1369,12 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1369
1369
|
}
|
|
1370
1370
|
|
|
1371
1371
|
// fix Array.prototype.{ values, @@iterator }.name in V8 / FF
|
|
1372
|
-
if (PROPER_FUNCTION_NAME
|
|
1372
|
+
if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
|
|
1373
1373
|
if (CONFIGURABLE_FUNCTION_NAME) {
|
|
1374
1374
|
createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
|
|
1375
1375
|
} else {
|
|
1376
1376
|
INCORRECT_VALUES_NAME = true;
|
|
1377
|
-
defaultIterator = function values() { return call$
|
|
1377
|
+
defaultIterator = function values() { return call$3(nativeIterator, this); };
|
|
1378
1378
|
}
|
|
1379
1379
|
}
|
|
1380
1380
|
|
|
@@ -1387,14 +1387,14 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
1387
1387
|
};
|
|
1388
1388
|
if (FORCED) for (KEY in methods) {
|
|
1389
1389
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
1390
|
-
defineBuiltIn
|
|
1390
|
+
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
1391
1391
|
}
|
|
1392
1392
|
} else $$2({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
1393
1393
|
}
|
|
1394
1394
|
|
|
1395
1395
|
// define iterator
|
|
1396
1396
|
if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
|
|
1397
|
-
defineBuiltIn
|
|
1397
|
+
defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
|
|
1398
1398
|
}
|
|
1399
1399
|
Iterators$1[NAME] = defaultIterator;
|
|
1400
1400
|
|
|
@@ -1470,8 +1470,8 @@ if (DESCRIPTORS$1 && values.name !== 'values') try {
|
|
|
1470
1470
|
|
|
1471
1471
|
var DESCRIPTORS = descriptors;
|
|
1472
1472
|
var uncurryThis$3 = functionUncurryThis;
|
|
1473
|
-
var call$
|
|
1474
|
-
var fails$
|
|
1473
|
+
var call$2 = functionCall;
|
|
1474
|
+
var fails$1 = fails$c;
|
|
1475
1475
|
var objectKeys = objectKeys$2;
|
|
1476
1476
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
1477
1477
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -1486,7 +1486,7 @@ var concat = uncurryThis$3([].concat);
|
|
|
1486
1486
|
|
|
1487
1487
|
// `Object.assign` method
|
|
1488
1488
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
1489
|
-
var objectAssign = !$assign || fails$
|
|
1489
|
+
var objectAssign = !$assign || fails$1(function () {
|
|
1490
1490
|
// should have correct order of operations (Edge bug)
|
|
1491
1491
|
if (DESCRIPTORS && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
|
1492
1492
|
enumerable: true,
|
|
@@ -1520,7 +1520,7 @@ var objectAssign = !$assign || fails$2(function () {
|
|
|
1520
1520
|
var key;
|
|
1521
1521
|
while (length > j) {
|
|
1522
1522
|
key = keys[j++];
|
|
1523
|
-
if (!DESCRIPTORS || call$
|
|
1523
|
+
if (!DESCRIPTORS || call$2(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
1524
1524
|
}
|
|
1525
1525
|
} return T;
|
|
1526
1526
|
} : $assign;
|
|
@@ -1647,11 +1647,11 @@ var NATIVE_BIND = functionBindNative;
|
|
|
1647
1647
|
|
|
1648
1648
|
var FunctionPrototype = Function.prototype;
|
|
1649
1649
|
var apply$1 = FunctionPrototype.apply;
|
|
1650
|
-
var call$
|
|
1650
|
+
var call$1 = FunctionPrototype.call;
|
|
1651
1651
|
|
|
1652
1652
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
1653
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$
|
|
1654
|
-
return call$
|
|
1653
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call$1.bind(apply$1) : function () {
|
|
1654
|
+
return call$1.apply(apply$1, arguments);
|
|
1655
1655
|
});
|
|
1656
1656
|
|
|
1657
1657
|
var uncurryThis$2 = functionUncurryThis;
|
|
@@ -1748,9 +1748,9 @@ var getJsonReplacerFunction = function (replacer) {
|
|
|
1748
1748
|
var $ = _export;
|
|
1749
1749
|
var getBuiltIn = getBuiltIn$4;
|
|
1750
1750
|
var apply = functionApply;
|
|
1751
|
-
var call
|
|
1751
|
+
var call = functionCall;
|
|
1752
1752
|
var uncurryThis = functionUncurryThis;
|
|
1753
|
-
var fails
|
|
1753
|
+
var fails = fails$c;
|
|
1754
1754
|
var isCallable = isCallable$g;
|
|
1755
1755
|
var isSymbol = isSymbol$3;
|
|
1756
1756
|
var arraySlice = arraySlice$1;
|
|
@@ -1769,7 +1769,7 @@ var tester = /[\uD800-\uDFFF]/g;
|
|
|
1769
1769
|
var low = /^[\uD800-\uDBFF]$/;
|
|
1770
1770
|
var hi = /^[\uDC00-\uDFFF]$/;
|
|
1771
1771
|
|
|
1772
|
-
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails
|
|
1772
|
+
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails(function () {
|
|
1773
1773
|
var symbol = getBuiltIn('Symbol')('stringify detection');
|
|
1774
1774
|
// MS Edge converts symbol values to JSON as {}
|
|
1775
1775
|
return $stringify([symbol]) !== '[null]'
|
|
@@ -1780,7 +1780,7 @@ var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$1(function () {
|
|
|
1780
1780
|
});
|
|
1781
1781
|
|
|
1782
1782
|
// https://github.com/tc39/proposal-well-formed-stringify
|
|
1783
|
-
var ILL_FORMED_UNICODE = fails
|
|
1783
|
+
var ILL_FORMED_UNICODE = fails(function () {
|
|
1784
1784
|
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|
|
1785
1785
|
|| $stringify('\uDEAD') !== '"\\udead"';
|
|
1786
1786
|
});
|
|
@@ -1791,7 +1791,7 @@ var stringifyWithSymbolsFix = function (it, replacer) {
|
|
|
1791
1791
|
if (!isCallable($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
|
|
1792
1792
|
args[1] = function (key, value) {
|
|
1793
1793
|
// some old implementations (like WebKit) could pass numbers as keys
|
|
1794
|
-
if (isCallable($replacer)) value = call
|
|
1794
|
+
if (isCallable($replacer)) value = call($replacer, this, $String(key), value);
|
|
1795
1795
|
if (!isSymbol(value)) return value;
|
|
1796
1796
|
};
|
|
1797
1797
|
return apply($stringify, null, args);
|
|
@@ -1818,61 +1818,4 @@ if ($stringify) {
|
|
|
1818
1818
|
});
|
|
1819
1819
|
}
|
|
1820
1820
|
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
// `RegExp.prototype.flags` getter implementation
|
|
1824
|
-
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
|
1825
|
-
var regexpFlags = function () {
|
|
1826
|
-
var that = anObject$1(this);
|
|
1827
|
-
var result = '';
|
|
1828
|
-
if (that.hasIndices) result += 'd';
|
|
1829
|
-
if (that.global) result += 'g';
|
|
1830
|
-
if (that.ignoreCase) result += 'i';
|
|
1831
|
-
if (that.multiline) result += 'm';
|
|
1832
|
-
if (that.dotAll) result += 's';
|
|
1833
|
-
if (that.unicode) result += 'u';
|
|
1834
|
-
if (that.unicodeSets) result += 'v';
|
|
1835
|
-
if (that.sticky) result += 'y';
|
|
1836
|
-
return result;
|
|
1837
|
-
};
|
|
1838
|
-
|
|
1839
|
-
var call = functionCall;
|
|
1840
|
-
var hasOwn = hasOwnProperty_1;
|
|
1841
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
1842
|
-
var regExpFlags = regexpFlags;
|
|
1843
|
-
|
|
1844
|
-
var RegExpPrototype$1 = RegExp.prototype;
|
|
1845
|
-
|
|
1846
|
-
var regexpGetFlags = function (R) {
|
|
1847
|
-
var flags = R.flags;
|
|
1848
|
-
return flags === undefined && !('flags' in RegExpPrototype$1) && !hasOwn(R, 'flags') && isPrototypeOf(RegExpPrototype$1, R)
|
|
1849
|
-
? call(regExpFlags, R) : flags;
|
|
1850
|
-
};
|
|
1851
|
-
|
|
1852
|
-
var PROPER_FUNCTION_NAME = functionName.PROPER;
|
|
1853
|
-
var defineBuiltIn = defineBuiltIn$4;
|
|
1854
|
-
var anObject = anObject$6;
|
|
1855
|
-
var $toString = toString$1;
|
|
1856
|
-
var fails = fails$d;
|
|
1857
|
-
var getRegExpFlags = regexpGetFlags;
|
|
1858
|
-
|
|
1859
|
-
var TO_STRING = 'toString';
|
|
1860
|
-
var RegExpPrototype = RegExp.prototype;
|
|
1861
|
-
var nativeToString = RegExpPrototype[TO_STRING];
|
|
1862
|
-
|
|
1863
|
-
var NOT_GENERIC = fails(function () { return nativeToString.call({ source: 'a', flags: 'b' }) !== '/a/b'; });
|
|
1864
|
-
// FF44- RegExp#toString has a wrong name
|
|
1865
|
-
var INCORRECT_NAME = PROPER_FUNCTION_NAME && nativeToString.name !== TO_STRING;
|
|
1866
|
-
|
|
1867
|
-
// `RegExp.prototype.toString` method
|
|
1868
|
-
// https://tc39.es/ecma262/#sec-regexp.prototype.tostring
|
|
1869
|
-
if (NOT_GENERIC || INCORRECT_NAME) {
|
|
1870
|
-
defineBuiltIn(RegExpPrototype, TO_STRING, function toString() {
|
|
1871
|
-
var R = anObject(this);
|
|
1872
|
-
var pattern = $toString(R.source);
|
|
1873
|
-
var flags = $toString(getRegExpFlags(R));
|
|
1874
|
-
return '/' + pattern + '/' + flags;
|
|
1875
|
-
}, { unsafe: true });
|
|
1876
|
-
}
|
|
1877
|
-
|
|
1878
|
-
export { isNullOrUndefined$2 as A, tryToString$1 as B, toObject$3 as C, lengthOfArrayLike$1 as D, global$b as E, defineBuiltIn$4 as F, arraySlice$1 as G, setToStringTag$3 as H, iteratorCreateConstructor as I, isObject$8 as J, objectCreate as K, hasOwnProperty_1 as L, objectAssign as M, _export as _, toIntegerOrInfinity$2 as a, internalState as b, createIterResultObject$1 as c, fails$d as d, descriptors as e, functionUncurryThis as f, classofRaw$1 as g, aCallable$2 as h, iteratorDefine as i, functionBindNative as j, objectIsPrototypeOf as k, functionCall as l, makeBuiltInExports as m, anObject$6 as n, objectDefineProperty as o, getMethod$1 as p, iterators as q, requireObjectCoercible$3 as r, styleInject as s, toString$1 as t, getBuiltIn$4 as u, isCallable$g as v, wellKnownSymbol$8 as w, classof$2 as x, inspectSource$1 as y, createPropertyDescriptor$3 as z };
|
|
1821
|
+
export { classof$2 as A, inspectSource$1 as B, createPropertyDescriptor$3 as C, isNullOrUndefined$2 as D, tryToString$1 as E, toObject$3 as F, lengthOfArrayLike$1 as G, global$b as H, arraySlice$1 as I, setToStringTag$3 as J, iteratorCreateConstructor as K, isObject$8 as L, objectCreate as M, objectAssign as N, _export as _, anObject$4 as a, functionName as b, fails$c as c, defineBuiltIn$3 as d, functionUncurryThis as e, functionCall as f, toIntegerOrInfinity$2 as g, hasOwnProperty_1 as h, iteratorDefine as i, internalState as j, createIterResultObject$1 as k, descriptors as l, classofRaw$1 as m, aCallable$2 as n, objectIsPrototypeOf as o, functionBindNative as p, makeBuiltInExports as q, requireObjectCoercible$3 as r, styleInject as s, toString$1 as t, objectDefineProperty as u, getMethod$1 as v, wellKnownSymbol$8 as w, iterators as x, getBuiltIn$4 as y, isCallable$g as z };
|