@bcrumbs.net/bc-api 0.0.31 → 0.0.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.cjs.js +793 -1954
- package/index.esm.js +789 -1945
- package/package.json +4 -9
- package/src/index.d.ts +3 -4
- package/src/lib/clients/botClient.d.ts +2 -0
- package/src/lib/clients/coreClient.d.ts +2 -0
- package/src/lib/config/index.d.ts +6 -0
- package/src/lib/endpoints/graphql/companies/index.d.ts +1 -1
- package/src/lib/endpoints/graphql/config/index.d.ts +2 -0
- package/src/lib/endpoints/graphql/showcase/index.d.ts +3 -5
- package/src/lib/endpoints/rest/companies/index.d.ts +1 -1
- package/src/lib/endpoints/rest/showcase/index.d.ts +3 -3
- package/src/lib/models/model.d.ts +2 -1
- package/src/lib/models/message.d.ts +0 -20
- package/src/lib/services/auth/index.d.ts +0 -123
- package/src/lib/services/i18n/index.d.ts +0 -11
- package/src/lib/utils/httpStatusCode.d.ts +0 -381
- package/src/lib/utils/index.d.ts +0 -2
- package/src/lib/utils/strings.d.ts +0 -5
package/index.esm.js
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import { InMemoryCache, ApolloClient, from, useQuery, createHttpLink,
|
|
1
|
+
import { InMemoryCache, ApolloClient, from, useQuery, createHttpLink, useLazyQuery, useMutation } from '@apollo/client';
|
|
2
2
|
import { onError } from '@apollo/client/link/error';
|
|
3
3
|
import { setContext } from '@apollo/client/link/context';
|
|
4
4
|
import { RestLink } from 'apollo-link-rest';
|
|
5
5
|
import { withApollo } from 'next-with-apollo';
|
|
6
|
-
import decode from 'jwt-decode';
|
|
7
|
-
import { isAfter } from 'date-fns';
|
|
8
6
|
import Stream from 'stream';
|
|
9
7
|
import http from 'http';
|
|
10
8
|
import Url from 'url';
|
|
11
9
|
import require$$0$1 from 'punycode';
|
|
12
10
|
import https from 'https';
|
|
13
11
|
import zlib from 'zlib';
|
|
14
|
-
import i18n from 'i18next';
|
|
15
|
-
import { initReactI18next } from 'react-i18next';
|
|
16
|
-
import Backend from 'i18next-http-backend';
|
|
17
12
|
|
|
18
13
|
/******************************************************************************
|
|
19
14
|
Copyright (c) Microsoft Corporation.
|
|
@@ -1682,7 +1677,7 @@ function isNameStart(code) {
|
|
|
1682
1677
|
* Given a GraphQL source, parses it into a Document.
|
|
1683
1678
|
* Throws GraphQLError if a syntax error is encountered.
|
|
1684
1679
|
*/
|
|
1685
|
-
function parse
|
|
1680
|
+
function parse(source, options) {
|
|
1686
1681
|
var parser = new Parser(source, options);
|
|
1687
1682
|
return parser.parseDocument();
|
|
1688
1683
|
}
|
|
@@ -3241,7 +3236,7 @@ function stripLoc(doc) {
|
|
|
3241
3236
|
function parseDocument(source) {
|
|
3242
3237
|
var cacheKey = normalize$2(source);
|
|
3243
3238
|
if (!docCache.has(cacheKey)) {
|
|
3244
|
-
var parsed = parse
|
|
3239
|
+
var parsed = parse(source, {
|
|
3245
3240
|
experimentalFragmentVariables: experimentalFragmentVariables,
|
|
3246
3241
|
allowLegacyFragmentVariables: experimentalFragmentVariables
|
|
3247
3242
|
});
|
|
@@ -3333,7 +3328,7 @@ var check = function (it) {
|
|
|
3333
3328
|
};
|
|
3334
3329
|
|
|
3335
3330
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
|
3336
|
-
var global$
|
|
3331
|
+
var global$l =
|
|
3337
3332
|
// eslint-disable-next-line es/no-global-this -- safe
|
|
3338
3333
|
check(typeof globalThis == 'object' && globalThis) ||
|
|
3339
3334
|
check(typeof window == 'object' && window) ||
|
|
@@ -3346,7 +3341,7 @@ var global$n =
|
|
|
3346
3341
|
|
|
3347
3342
|
var objectGetOwnPropertyDescriptor = {};
|
|
3348
3343
|
|
|
3349
|
-
var fails$
|
|
3344
|
+
var fails$i = function (exec) {
|
|
3350
3345
|
try {
|
|
3351
3346
|
return !!exec();
|
|
3352
3347
|
} catch (error) {
|
|
@@ -3354,17 +3349,17 @@ var fails$m = function (exec) {
|
|
|
3354
3349
|
}
|
|
3355
3350
|
};
|
|
3356
3351
|
|
|
3357
|
-
var fails$
|
|
3352
|
+
var fails$h = fails$i;
|
|
3358
3353
|
|
|
3359
3354
|
// Detect IE8's incomplete defineProperty implementation
|
|
3360
|
-
var descriptors = !fails$
|
|
3355
|
+
var descriptors = !fails$h(function () {
|
|
3361
3356
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
3362
3357
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
|
|
3363
3358
|
});
|
|
3364
3359
|
|
|
3365
|
-
var fails$
|
|
3360
|
+
var fails$g = fails$i;
|
|
3366
3361
|
|
|
3367
|
-
var functionBindNative = !fails$
|
|
3362
|
+
var functionBindNative = !fails$g(function () {
|
|
3368
3363
|
// eslint-disable-next-line es/no-function-prototype-bind -- safe
|
|
3369
3364
|
var test = (function () { /* empty */ }).bind();
|
|
3370
3365
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
@@ -3373,10 +3368,10 @@ var functionBindNative = !fails$k(function () {
|
|
|
3373
3368
|
|
|
3374
3369
|
var NATIVE_BIND$3 = functionBindNative;
|
|
3375
3370
|
|
|
3376
|
-
var call$
|
|
3371
|
+
var call$i = Function.prototype.call;
|
|
3377
3372
|
|
|
3378
|
-
var functionCall = NATIVE_BIND$3 ? call$
|
|
3379
|
-
return call$
|
|
3373
|
+
var functionCall = NATIVE_BIND$3 ? call$i.bind(call$i) : function () {
|
|
3374
|
+
return call$i.apply(call$i, arguments);
|
|
3380
3375
|
};
|
|
3381
3376
|
|
|
3382
3377
|
var objectPropertyIsEnumerable = {};
|
|
@@ -3395,7 +3390,7 @@ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
|
|
3395
3390
|
return !!descriptor && descriptor.enumerable;
|
|
3396
3391
|
} : $propertyIsEnumerable;
|
|
3397
3392
|
|
|
3398
|
-
var createPropertyDescriptor$
|
|
3393
|
+
var createPropertyDescriptor$3 = function (bitmap, value) {
|
|
3399
3394
|
return {
|
|
3400
3395
|
enumerable: !(bitmap & 1),
|
|
3401
3396
|
configurable: !(bitmap & 2),
|
|
@@ -3407,38 +3402,38 @@ var createPropertyDescriptor$4 = function (bitmap, value) {
|
|
|
3407
3402
|
var NATIVE_BIND$2 = functionBindNative;
|
|
3408
3403
|
|
|
3409
3404
|
var FunctionPrototype$2 = Function.prototype;
|
|
3410
|
-
var call$
|
|
3411
|
-
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$
|
|
3405
|
+
var call$h = FunctionPrototype$2.call;
|
|
3406
|
+
var uncurryThisWithBind = NATIVE_BIND$2 && FunctionPrototype$2.bind.bind(call$h, call$h);
|
|
3412
3407
|
|
|
3413
3408
|
var functionUncurryThis = NATIVE_BIND$2 ? uncurryThisWithBind : function (fn) {
|
|
3414
3409
|
return function () {
|
|
3415
|
-
return call$
|
|
3410
|
+
return call$h.apply(fn, arguments);
|
|
3416
3411
|
};
|
|
3417
3412
|
};
|
|
3418
3413
|
|
|
3419
|
-
var uncurryThis$
|
|
3414
|
+
var uncurryThis$i = functionUncurryThis;
|
|
3420
3415
|
|
|
3421
|
-
var toString$
|
|
3422
|
-
var stringSlice$5 = uncurryThis$
|
|
3416
|
+
var toString$6 = uncurryThis$i({}.toString);
|
|
3417
|
+
var stringSlice$5 = uncurryThis$i(''.slice);
|
|
3423
3418
|
|
|
3424
3419
|
var classofRaw$2 = function (it) {
|
|
3425
|
-
return stringSlice$5(toString$
|
|
3420
|
+
return stringSlice$5(toString$6(it), 8, -1);
|
|
3426
3421
|
};
|
|
3427
3422
|
|
|
3428
|
-
var uncurryThis$
|
|
3429
|
-
var fails$
|
|
3430
|
-
var classof$
|
|
3423
|
+
var uncurryThis$h = functionUncurryThis;
|
|
3424
|
+
var fails$f = fails$i;
|
|
3425
|
+
var classof$6 = classofRaw$2;
|
|
3431
3426
|
|
|
3432
3427
|
var $Object$4 = Object;
|
|
3433
|
-
var split = uncurryThis$
|
|
3428
|
+
var split = uncurryThis$h(''.split);
|
|
3434
3429
|
|
|
3435
3430
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
|
3436
|
-
var indexedObject = fails$
|
|
3431
|
+
var indexedObject = fails$f(function () {
|
|
3437
3432
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
|
3438
3433
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
|
3439
3434
|
return !$Object$4('z').propertyIsEnumerable(0);
|
|
3440
3435
|
}) ? function (it) {
|
|
3441
|
-
return classof$
|
|
3436
|
+
return classof$6(it) === 'String' ? split(it, '') : $Object$4(it);
|
|
3442
3437
|
} : $Object$4;
|
|
3443
3438
|
|
|
3444
3439
|
// we can't use just `it == null` since of `document.all` special case
|
|
@@ -3449,21 +3444,21 @@ var isNullOrUndefined$6 = function (it) {
|
|
|
3449
3444
|
|
|
3450
3445
|
var isNullOrUndefined$5 = isNullOrUndefined$6;
|
|
3451
3446
|
|
|
3452
|
-
var $TypeError$
|
|
3447
|
+
var $TypeError$d = TypeError;
|
|
3453
3448
|
|
|
3454
3449
|
// `RequireObjectCoercible` abstract operation
|
|
3455
3450
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
|
3456
|
-
var requireObjectCoercible$
|
|
3457
|
-
if (isNullOrUndefined$5(it)) throw new $TypeError$
|
|
3451
|
+
var requireObjectCoercible$6 = function (it) {
|
|
3452
|
+
if (isNullOrUndefined$5(it)) throw new $TypeError$d("Can't call method on " + it);
|
|
3458
3453
|
return it;
|
|
3459
3454
|
};
|
|
3460
3455
|
|
|
3461
3456
|
// toObject with fallback for non-array-like ES3 strings
|
|
3462
3457
|
var IndexedObject$1 = indexedObject;
|
|
3463
|
-
var requireObjectCoercible$
|
|
3458
|
+
var requireObjectCoercible$5 = requireObjectCoercible$6;
|
|
3464
3459
|
|
|
3465
3460
|
var toIndexedObject$5 = function (it) {
|
|
3466
|
-
return IndexedObject$1(requireObjectCoercible$
|
|
3461
|
+
return IndexedObject$1(requireObjectCoercible$5(it));
|
|
3467
3462
|
};
|
|
3468
3463
|
|
|
3469
3464
|
// https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
|
|
@@ -3472,40 +3467,40 @@ var documentAll = typeof document == 'object' && document.all;
|
|
|
3472
3467
|
// `IsCallable` abstract operation
|
|
3473
3468
|
// https://tc39.es/ecma262/#sec-iscallable
|
|
3474
3469
|
// eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
|
|
3475
|
-
var isCallable$
|
|
3470
|
+
var isCallable$l = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
|
|
3476
3471
|
return typeof argument == 'function' || argument === documentAll;
|
|
3477
3472
|
} : function (argument) {
|
|
3478
3473
|
return typeof argument == 'function';
|
|
3479
3474
|
};
|
|
3480
3475
|
|
|
3481
|
-
var isCallable$
|
|
3476
|
+
var isCallable$k = isCallable$l;
|
|
3482
3477
|
|
|
3483
|
-
var isObject$
|
|
3484
|
-
return typeof it == 'object' ? it !== null : isCallable$
|
|
3478
|
+
var isObject$a = function (it) {
|
|
3479
|
+
return typeof it == 'object' ? it !== null : isCallable$k(it);
|
|
3485
3480
|
};
|
|
3486
3481
|
|
|
3487
|
-
var global$
|
|
3488
|
-
var isCallable$
|
|
3482
|
+
var global$k = global$l;
|
|
3483
|
+
var isCallable$j = isCallable$l;
|
|
3489
3484
|
|
|
3490
3485
|
var aFunction = function (argument) {
|
|
3491
|
-
return isCallable$
|
|
3486
|
+
return isCallable$j(argument) ? argument : undefined;
|
|
3492
3487
|
};
|
|
3493
3488
|
|
|
3494
|
-
var getBuiltIn$
|
|
3495
|
-
return arguments.length < 2 ? aFunction(global$
|
|
3489
|
+
var getBuiltIn$7 = function (namespace, method) {
|
|
3490
|
+
return arguments.length < 2 ? aFunction(global$k[namespace]) : global$k[namespace] && global$k[namespace][method];
|
|
3496
3491
|
};
|
|
3497
3492
|
|
|
3498
|
-
var uncurryThis$
|
|
3493
|
+
var uncurryThis$g = functionUncurryThis;
|
|
3499
3494
|
|
|
3500
|
-
var objectIsPrototypeOf = uncurryThis$
|
|
3495
|
+
var objectIsPrototypeOf = uncurryThis$g({}.isPrototypeOf);
|
|
3501
3496
|
|
|
3502
3497
|
var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
|
|
3503
3498
|
|
|
3504
|
-
var global$
|
|
3499
|
+
var global$j = global$l;
|
|
3505
3500
|
var userAgent$3 = engineUserAgent;
|
|
3506
3501
|
|
|
3507
|
-
var process$4 = global$
|
|
3508
|
-
var Deno$1 = global$
|
|
3502
|
+
var process$4 = global$j.process;
|
|
3503
|
+
var Deno$1 = global$j.Deno;
|
|
3509
3504
|
var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
|
|
3510
3505
|
var v8 = versions && versions.v8;
|
|
3511
3506
|
var match, version;
|
|
@@ -3531,63 +3526,63 @@ var engineV8Version = version;
|
|
|
3531
3526
|
|
|
3532
3527
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
3533
3528
|
var V8_VERSION$1 = engineV8Version;
|
|
3534
|
-
var fails$
|
|
3535
|
-
var global$
|
|
3529
|
+
var fails$e = fails$i;
|
|
3530
|
+
var global$i = global$l;
|
|
3536
3531
|
|
|
3537
|
-
var $String$
|
|
3532
|
+
var $String$5 = global$i.String;
|
|
3538
3533
|
|
|
3539
3534
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
|
3540
|
-
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$
|
|
3535
|
+
var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$e(function () {
|
|
3541
3536
|
var symbol = Symbol('symbol detection');
|
|
3542
3537
|
// Chrome 38 Symbol has incorrect toString conversion
|
|
3543
3538
|
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
|
3544
3539
|
// nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
|
|
3545
3540
|
// of course, fail.
|
|
3546
|
-
return !$String$
|
|
3541
|
+
return !$String$5(symbol) || !(Object(symbol) instanceof Symbol) ||
|
|
3547
3542
|
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
|
3548
3543
|
!Symbol.sham && V8_VERSION$1 && V8_VERSION$1 < 41;
|
|
3549
3544
|
});
|
|
3550
3545
|
|
|
3551
3546
|
/* eslint-disable es/no-symbol -- required for testing */
|
|
3552
|
-
var NATIVE_SYMBOL$
|
|
3547
|
+
var NATIVE_SYMBOL$1 = symbolConstructorDetection;
|
|
3553
3548
|
|
|
3554
|
-
var useSymbolAsUid = NATIVE_SYMBOL$
|
|
3549
|
+
var useSymbolAsUid = NATIVE_SYMBOL$1
|
|
3555
3550
|
&& !Symbol.sham
|
|
3556
3551
|
&& typeof Symbol.iterator == 'symbol';
|
|
3557
3552
|
|
|
3558
|
-
var getBuiltIn$
|
|
3559
|
-
var isCallable$
|
|
3560
|
-
var isPrototypeOf$
|
|
3553
|
+
var getBuiltIn$6 = getBuiltIn$7;
|
|
3554
|
+
var isCallable$i = isCallable$l;
|
|
3555
|
+
var isPrototypeOf$2 = objectIsPrototypeOf;
|
|
3561
3556
|
var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
|
|
3562
3557
|
|
|
3563
3558
|
var $Object$3 = Object;
|
|
3564
3559
|
|
|
3565
|
-
var isSymbol$
|
|
3560
|
+
var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
|
|
3566
3561
|
return typeof it == 'symbol';
|
|
3567
3562
|
} : function (it) {
|
|
3568
|
-
var $Symbol = getBuiltIn$
|
|
3569
|
-
return isCallable$
|
|
3563
|
+
var $Symbol = getBuiltIn$6('Symbol');
|
|
3564
|
+
return isCallable$i($Symbol) && isPrototypeOf$2($Symbol.prototype, $Object$3(it));
|
|
3570
3565
|
};
|
|
3571
3566
|
|
|
3572
|
-
var $String$
|
|
3567
|
+
var $String$4 = String;
|
|
3573
3568
|
|
|
3574
3569
|
var tryToString$4 = function (argument) {
|
|
3575
3570
|
try {
|
|
3576
|
-
return $String$
|
|
3571
|
+
return $String$4(argument);
|
|
3577
3572
|
} catch (error) {
|
|
3578
3573
|
return 'Object';
|
|
3579
3574
|
}
|
|
3580
3575
|
};
|
|
3581
3576
|
|
|
3582
|
-
var isCallable$
|
|
3577
|
+
var isCallable$h = isCallable$l;
|
|
3583
3578
|
var tryToString$3 = tryToString$4;
|
|
3584
3579
|
|
|
3585
|
-
var $TypeError$
|
|
3580
|
+
var $TypeError$c = TypeError;
|
|
3586
3581
|
|
|
3587
3582
|
// `Assert: IsCallable(argument) is true`
|
|
3588
3583
|
var aCallable$8 = function (argument) {
|
|
3589
|
-
if (isCallable$
|
|
3590
|
-
throw new $TypeError$
|
|
3584
|
+
if (isCallable$h(argument)) return argument;
|
|
3585
|
+
throw new $TypeError$c(tryToString$3(argument) + ' is not a function');
|
|
3591
3586
|
};
|
|
3592
3587
|
|
|
3593
3588
|
var aCallable$7 = aCallable$8;
|
|
@@ -3600,38 +3595,38 @@ var getMethod$5 = function (V, P) {
|
|
|
3600
3595
|
return isNullOrUndefined$4(func) ? undefined : aCallable$7(func);
|
|
3601
3596
|
};
|
|
3602
3597
|
|
|
3603
|
-
var call$
|
|
3604
|
-
var isCallable$
|
|
3605
|
-
var isObject$
|
|
3598
|
+
var call$g = functionCall;
|
|
3599
|
+
var isCallable$g = isCallable$l;
|
|
3600
|
+
var isObject$9 = isObject$a;
|
|
3606
3601
|
|
|
3607
|
-
var $TypeError$
|
|
3602
|
+
var $TypeError$b = TypeError;
|
|
3608
3603
|
|
|
3609
3604
|
// `OrdinaryToPrimitive` abstract operation
|
|
3610
3605
|
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
|
3611
3606
|
var ordinaryToPrimitive$1 = function (input, pref) {
|
|
3612
3607
|
var fn, val;
|
|
3613
|
-
if (pref === 'string' && isCallable$
|
|
3614
|
-
if (isCallable$
|
|
3615
|
-
if (pref !== 'string' && isCallable$
|
|
3616
|
-
throw new $TypeError$
|
|
3608
|
+
if (pref === 'string' && isCallable$g(fn = input.toString) && !isObject$9(val = call$g(fn, input))) return val;
|
|
3609
|
+
if (isCallable$g(fn = input.valueOf) && !isObject$9(val = call$g(fn, input))) return val;
|
|
3610
|
+
if (pref !== 'string' && isCallable$g(fn = input.toString) && !isObject$9(val = call$g(fn, input))) return val;
|
|
3611
|
+
throw new $TypeError$b("Can't convert object to primitive value");
|
|
3617
3612
|
};
|
|
3618
3613
|
|
|
3619
3614
|
var sharedStore = {exports: {}};
|
|
3620
3615
|
|
|
3621
|
-
var global$
|
|
3616
|
+
var global$h = global$l;
|
|
3622
3617
|
|
|
3623
3618
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3624
|
-
var defineProperty$
|
|
3619
|
+
var defineProperty$6 = Object.defineProperty;
|
|
3625
3620
|
|
|
3626
3621
|
var defineGlobalProperty$3 = function (key, value) {
|
|
3627
3622
|
try {
|
|
3628
|
-
defineProperty$
|
|
3623
|
+
defineProperty$6(global$h, key, { value: value, configurable: true, writable: true });
|
|
3629
3624
|
} catch (error) {
|
|
3630
|
-
global$
|
|
3625
|
+
global$h[key] = value;
|
|
3631
3626
|
} return value;
|
|
3632
3627
|
};
|
|
3633
3628
|
|
|
3634
|
-
var globalThis$1 = global$
|
|
3629
|
+
var globalThis$1 = global$l;
|
|
3635
3630
|
var defineGlobalProperty$2 = defineGlobalProperty$3;
|
|
3636
3631
|
|
|
3637
3632
|
var SHARED = '__core-js_shared__';
|
|
@@ -3653,20 +3648,20 @@ var shared$4 = function (key, value) {
|
|
|
3653
3648
|
return store$2[key] || (store$2[key] = value || {});
|
|
3654
3649
|
};
|
|
3655
3650
|
|
|
3656
|
-
var requireObjectCoercible$
|
|
3651
|
+
var requireObjectCoercible$4 = requireObjectCoercible$6;
|
|
3657
3652
|
|
|
3658
3653
|
var $Object$2 = Object;
|
|
3659
3654
|
|
|
3660
3655
|
// `ToObject` abstract operation
|
|
3661
3656
|
// https://tc39.es/ecma262/#sec-toobject
|
|
3662
3657
|
var toObject$4 = function (argument) {
|
|
3663
|
-
return $Object$2(requireObjectCoercible$
|
|
3658
|
+
return $Object$2(requireObjectCoercible$4(argument));
|
|
3664
3659
|
};
|
|
3665
3660
|
|
|
3666
|
-
var uncurryThis$
|
|
3661
|
+
var uncurryThis$f = functionUncurryThis;
|
|
3667
3662
|
var toObject$3 = toObject$4;
|
|
3668
3663
|
|
|
3669
|
-
var hasOwnProperty = uncurryThis$
|
|
3664
|
+
var hasOwnProperty = uncurryThis$f({}.hasOwnProperty);
|
|
3670
3665
|
|
|
3671
3666
|
// `HasOwnProperty` abstract operation
|
|
3672
3667
|
// https://tc39.es/ecma262/#sec-hasownproperty
|
|
@@ -3675,101 +3670,101 @@ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
|
|
3675
3670
|
return hasOwnProperty(toObject$3(it), key);
|
|
3676
3671
|
};
|
|
3677
3672
|
|
|
3678
|
-
var uncurryThis$
|
|
3673
|
+
var uncurryThis$e = functionUncurryThis;
|
|
3679
3674
|
|
|
3680
3675
|
var id = 0;
|
|
3681
3676
|
var postfix = Math.random();
|
|
3682
|
-
var toString$
|
|
3677
|
+
var toString$5 = uncurryThis$e(1.0.toString);
|
|
3683
3678
|
|
|
3684
3679
|
var uid$2 = function (key) {
|
|
3685
|
-
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$
|
|
3680
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$5(++id + postfix, 36);
|
|
3686
3681
|
};
|
|
3687
3682
|
|
|
3688
|
-
var global$
|
|
3683
|
+
var global$g = global$l;
|
|
3689
3684
|
var shared$3 = shared$4;
|
|
3690
|
-
var hasOwn$
|
|
3685
|
+
var hasOwn$9 = hasOwnProperty_1;
|
|
3691
3686
|
var uid$1 = uid$2;
|
|
3692
|
-
var NATIVE_SYMBOL
|
|
3687
|
+
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
3693
3688
|
var USE_SYMBOL_AS_UID = useSymbolAsUid;
|
|
3694
3689
|
|
|
3695
|
-
var Symbol$
|
|
3690
|
+
var Symbol$1 = global$g.Symbol;
|
|
3696
3691
|
var WellKnownSymbolsStore = shared$3('wks');
|
|
3697
|
-
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$
|
|
3692
|
+
var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
|
|
3698
3693
|
|
|
3699
|
-
var wellKnownSymbol$
|
|
3700
|
-
if (!hasOwn$
|
|
3701
|
-
WellKnownSymbolsStore[name] = NATIVE_SYMBOL
|
|
3702
|
-
? Symbol$
|
|
3694
|
+
var wellKnownSymbol$g = function (name) {
|
|
3695
|
+
if (!hasOwn$9(WellKnownSymbolsStore, name)) {
|
|
3696
|
+
WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$9(Symbol$1, name)
|
|
3697
|
+
? Symbol$1[name]
|
|
3703
3698
|
: createWellKnownSymbol('Symbol.' + name);
|
|
3704
3699
|
} return WellKnownSymbolsStore[name];
|
|
3705
3700
|
};
|
|
3706
3701
|
|
|
3707
|
-
var call$
|
|
3708
|
-
var isObject$
|
|
3709
|
-
var isSymbol$
|
|
3702
|
+
var call$f = functionCall;
|
|
3703
|
+
var isObject$8 = isObject$a;
|
|
3704
|
+
var isSymbol$1 = isSymbol$2;
|
|
3710
3705
|
var getMethod$4 = getMethod$5;
|
|
3711
3706
|
var ordinaryToPrimitive = ordinaryToPrimitive$1;
|
|
3712
|
-
var wellKnownSymbol$
|
|
3707
|
+
var wellKnownSymbol$f = wellKnownSymbol$g;
|
|
3713
3708
|
|
|
3714
|
-
var $TypeError$
|
|
3715
|
-
var TO_PRIMITIVE = wellKnownSymbol$
|
|
3709
|
+
var $TypeError$a = TypeError;
|
|
3710
|
+
var TO_PRIMITIVE = wellKnownSymbol$f('toPrimitive');
|
|
3716
3711
|
|
|
3717
3712
|
// `ToPrimitive` abstract operation
|
|
3718
3713
|
// https://tc39.es/ecma262/#sec-toprimitive
|
|
3719
3714
|
var toPrimitive$1 = function (input, pref) {
|
|
3720
|
-
if (!isObject$
|
|
3715
|
+
if (!isObject$8(input) || isSymbol$1(input)) return input;
|
|
3721
3716
|
var exoticToPrim = getMethod$4(input, TO_PRIMITIVE);
|
|
3722
3717
|
var result;
|
|
3723
3718
|
if (exoticToPrim) {
|
|
3724
3719
|
if (pref === undefined) pref = 'default';
|
|
3725
|
-
result = call$
|
|
3726
|
-
if (!isObject$
|
|
3727
|
-
throw new $TypeError$
|
|
3720
|
+
result = call$f(exoticToPrim, input, pref);
|
|
3721
|
+
if (!isObject$8(result) || isSymbol$1(result)) return result;
|
|
3722
|
+
throw new $TypeError$a("Can't convert object to primitive value");
|
|
3728
3723
|
}
|
|
3729
3724
|
if (pref === undefined) pref = 'number';
|
|
3730
3725
|
return ordinaryToPrimitive(input, pref);
|
|
3731
3726
|
};
|
|
3732
3727
|
|
|
3733
3728
|
var toPrimitive = toPrimitive$1;
|
|
3734
|
-
var isSymbol
|
|
3729
|
+
var isSymbol = isSymbol$2;
|
|
3735
3730
|
|
|
3736
3731
|
// `ToPropertyKey` abstract operation
|
|
3737
3732
|
// https://tc39.es/ecma262/#sec-topropertykey
|
|
3738
3733
|
var toPropertyKey$2 = function (argument) {
|
|
3739
3734
|
var key = toPrimitive(argument, 'string');
|
|
3740
|
-
return isSymbol
|
|
3735
|
+
return isSymbol(key) ? key : key + '';
|
|
3741
3736
|
};
|
|
3742
3737
|
|
|
3743
|
-
var global$
|
|
3744
|
-
var isObject$
|
|
3738
|
+
var global$f = global$l;
|
|
3739
|
+
var isObject$7 = isObject$a;
|
|
3745
3740
|
|
|
3746
|
-
var document$3 = global$
|
|
3741
|
+
var document$3 = global$f.document;
|
|
3747
3742
|
// typeof document.createElement is 'object' in old IE
|
|
3748
|
-
var EXISTS$1 = isObject$
|
|
3743
|
+
var EXISTS$1 = isObject$7(document$3) && isObject$7(document$3.createElement);
|
|
3749
3744
|
|
|
3750
3745
|
var documentCreateElement$2 = function (it) {
|
|
3751
3746
|
return EXISTS$1 ? document$3.createElement(it) : {};
|
|
3752
3747
|
};
|
|
3753
3748
|
|
|
3754
|
-
var DESCRIPTORS$
|
|
3755
|
-
var fails$
|
|
3749
|
+
var DESCRIPTORS$b = descriptors;
|
|
3750
|
+
var fails$d = fails$i;
|
|
3756
3751
|
var createElement$1 = documentCreateElement$2;
|
|
3757
3752
|
|
|
3758
3753
|
// Thanks to IE8 for its funny defineProperty
|
|
3759
|
-
var ie8DomDefine = !DESCRIPTORS$
|
|
3754
|
+
var ie8DomDefine = !DESCRIPTORS$b && !fails$d(function () {
|
|
3760
3755
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
3761
3756
|
return Object.defineProperty(createElement$1('div'), 'a', {
|
|
3762
3757
|
get: function () { return 7; }
|
|
3763
3758
|
}).a !== 7;
|
|
3764
3759
|
});
|
|
3765
3760
|
|
|
3766
|
-
var DESCRIPTORS$
|
|
3767
|
-
var call$
|
|
3761
|
+
var DESCRIPTORS$a = descriptors;
|
|
3762
|
+
var call$e = functionCall;
|
|
3768
3763
|
var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
|
|
3769
|
-
var createPropertyDescriptor$
|
|
3764
|
+
var createPropertyDescriptor$2 = createPropertyDescriptor$3;
|
|
3770
3765
|
var toIndexedObject$4 = toIndexedObject$5;
|
|
3771
3766
|
var toPropertyKey$1 = toPropertyKey$2;
|
|
3772
|
-
var hasOwn$
|
|
3767
|
+
var hasOwn$8 = hasOwnProperty_1;
|
|
3773
3768
|
var IE8_DOM_DEFINE$1 = ie8DomDefine;
|
|
3774
3769
|
|
|
3775
3770
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -3777,23 +3772,23 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
|
|
3777
3772
|
|
|
3778
3773
|
// `Object.getOwnPropertyDescriptor` method
|
|
3779
3774
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
|
3780
|
-
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$
|
|
3775
|
+
objectGetOwnPropertyDescriptor.f = DESCRIPTORS$a ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
|
3781
3776
|
O = toIndexedObject$4(O);
|
|
3782
3777
|
P = toPropertyKey$1(P);
|
|
3783
3778
|
if (IE8_DOM_DEFINE$1) try {
|
|
3784
3779
|
return $getOwnPropertyDescriptor$1(O, P);
|
|
3785
3780
|
} catch (error) { /* empty */ }
|
|
3786
|
-
if (hasOwn$
|
|
3781
|
+
if (hasOwn$8(O, P)) return createPropertyDescriptor$2(!call$e(propertyIsEnumerableModule$1.f, O, P), O[P]);
|
|
3787
3782
|
};
|
|
3788
3783
|
|
|
3789
3784
|
var objectDefineProperty = {};
|
|
3790
3785
|
|
|
3791
|
-
var DESCRIPTORS$
|
|
3792
|
-
var fails$
|
|
3786
|
+
var DESCRIPTORS$9 = descriptors;
|
|
3787
|
+
var fails$c = fails$i;
|
|
3793
3788
|
|
|
3794
3789
|
// V8 ~ Chrome 36-
|
|
3795
3790
|
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
|
3796
|
-
var v8PrototypeDefineBug = DESCRIPTORS$
|
|
3791
|
+
var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$c(function () {
|
|
3797
3792
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
3798
3793
|
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
|
3799
3794
|
value: 42,
|
|
@@ -3801,24 +3796,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$a && fails$g(function () {
|
|
|
3801
3796
|
}).prototype !== 42;
|
|
3802
3797
|
});
|
|
3803
3798
|
|
|
3804
|
-
var isObject$
|
|
3799
|
+
var isObject$6 = isObject$a;
|
|
3805
3800
|
|
|
3806
|
-
var $String$
|
|
3807
|
-
var $TypeError$
|
|
3801
|
+
var $String$3 = String;
|
|
3802
|
+
var $TypeError$9 = TypeError;
|
|
3808
3803
|
|
|
3809
3804
|
// `Assert: Type(argument) is Object`
|
|
3810
3805
|
var anObject$d = function (argument) {
|
|
3811
|
-
if (isObject$
|
|
3812
|
-
throw new $TypeError$
|
|
3806
|
+
if (isObject$6(argument)) return argument;
|
|
3807
|
+
throw new $TypeError$9($String$3(argument) + ' is not an object');
|
|
3813
3808
|
};
|
|
3814
3809
|
|
|
3815
|
-
var DESCRIPTORS$
|
|
3810
|
+
var DESCRIPTORS$8 = descriptors;
|
|
3816
3811
|
var IE8_DOM_DEFINE = ie8DomDefine;
|
|
3817
3812
|
var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
|
|
3818
3813
|
var anObject$c = anObject$d;
|
|
3819
3814
|
var toPropertyKey = toPropertyKey$2;
|
|
3820
3815
|
|
|
3821
|
-
var $TypeError$
|
|
3816
|
+
var $TypeError$8 = TypeError;
|
|
3822
3817
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
3823
3818
|
var $defineProperty = Object.defineProperty;
|
|
3824
3819
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
@@ -3829,7 +3824,7 @@ var WRITABLE = 'writable';
|
|
|
3829
3824
|
|
|
3830
3825
|
// `Object.defineProperty` method
|
|
3831
3826
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
|
3832
|
-
objectDefineProperty.f = DESCRIPTORS$
|
|
3827
|
+
objectDefineProperty.f = DESCRIPTORS$8 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
|
|
3833
3828
|
anObject$c(O);
|
|
3834
3829
|
P = toPropertyKey(P);
|
|
3835
3830
|
anObject$c(Attributes);
|
|
@@ -3851,17 +3846,17 @@ objectDefineProperty.f = DESCRIPTORS$9 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function de
|
|
|
3851
3846
|
if (IE8_DOM_DEFINE) try {
|
|
3852
3847
|
return $defineProperty(O, P, Attributes);
|
|
3853
3848
|
} catch (error) { /* empty */ }
|
|
3854
|
-
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$
|
|
3849
|
+
if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$8('Accessors not supported');
|
|
3855
3850
|
if ('value' in Attributes) O[P] = Attributes.value;
|
|
3856
3851
|
return O;
|
|
3857
3852
|
};
|
|
3858
3853
|
|
|
3859
|
-
var DESCRIPTORS$
|
|
3854
|
+
var DESCRIPTORS$7 = descriptors;
|
|
3860
3855
|
var definePropertyModule$3 = objectDefineProperty;
|
|
3861
|
-
var createPropertyDescriptor$
|
|
3856
|
+
var createPropertyDescriptor$1 = createPropertyDescriptor$3;
|
|
3862
3857
|
|
|
3863
|
-
var createNonEnumerableProperty$
|
|
3864
|
-
return definePropertyModule$3.f(object, key, createPropertyDescriptor$
|
|
3858
|
+
var createNonEnumerableProperty$5 = DESCRIPTORS$7 ? function (object, key, value) {
|
|
3859
|
+
return definePropertyModule$3.f(object, key, createPropertyDescriptor$1(1, value));
|
|
3865
3860
|
} : function (object, key, value) {
|
|
3866
3861
|
object[key] = value;
|
|
3867
3862
|
return object;
|
|
@@ -3869,17 +3864,17 @@ var createNonEnumerableProperty$8 = DESCRIPTORS$8 ? function (object, key, value
|
|
|
3869
3864
|
|
|
3870
3865
|
var makeBuiltIn$3 = {exports: {}};
|
|
3871
3866
|
|
|
3872
|
-
var DESCRIPTORS$
|
|
3873
|
-
var hasOwn$
|
|
3867
|
+
var DESCRIPTORS$6 = descriptors;
|
|
3868
|
+
var hasOwn$7 = hasOwnProperty_1;
|
|
3874
3869
|
|
|
3875
3870
|
var FunctionPrototype$1 = Function.prototype;
|
|
3876
3871
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
3877
|
-
var getDescriptor = DESCRIPTORS$
|
|
3872
|
+
var getDescriptor = DESCRIPTORS$6 && Object.getOwnPropertyDescriptor;
|
|
3878
3873
|
|
|
3879
|
-
var EXISTS = hasOwn$
|
|
3874
|
+
var EXISTS = hasOwn$7(FunctionPrototype$1, 'name');
|
|
3880
3875
|
// additional protection from minified / mangled / dropped function names
|
|
3881
3876
|
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
|
3882
|
-
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$
|
|
3877
|
+
var CONFIGURABLE = EXISTS && (!DESCRIPTORS$6 || (DESCRIPTORS$6 && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
|
3883
3878
|
|
|
3884
3879
|
var functionName = {
|
|
3885
3880
|
EXISTS: EXISTS,
|
|
@@ -3887,14 +3882,14 @@ var functionName = {
|
|
|
3887
3882
|
CONFIGURABLE: CONFIGURABLE
|
|
3888
3883
|
};
|
|
3889
3884
|
|
|
3890
|
-
var uncurryThis$
|
|
3891
|
-
var isCallable$
|
|
3885
|
+
var uncurryThis$d = functionUncurryThis;
|
|
3886
|
+
var isCallable$f = isCallable$l;
|
|
3892
3887
|
var store$1 = sharedStoreExports;
|
|
3893
3888
|
|
|
3894
|
-
var functionToString = uncurryThis$
|
|
3889
|
+
var functionToString = uncurryThis$d(Function.toString);
|
|
3895
3890
|
|
|
3896
3891
|
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
|
3897
|
-
if (!isCallable$
|
|
3892
|
+
if (!isCallable$f(store$1.inspectSource)) {
|
|
3898
3893
|
store$1.inspectSource = function (it) {
|
|
3899
3894
|
return functionToString(it);
|
|
3900
3895
|
};
|
|
@@ -3902,12 +3897,12 @@ if (!isCallable$i(store$1.inspectSource)) {
|
|
|
3902
3897
|
|
|
3903
3898
|
var inspectSource$3 = store$1.inspectSource;
|
|
3904
3899
|
|
|
3905
|
-
var global$
|
|
3906
|
-
var isCallable$
|
|
3900
|
+
var global$e = global$l;
|
|
3901
|
+
var isCallable$e = isCallable$l;
|
|
3907
3902
|
|
|
3908
|
-
var WeakMap$1 = global$
|
|
3903
|
+
var WeakMap$1 = global$e.WeakMap;
|
|
3909
3904
|
|
|
3910
|
-
var weakMapBasicDetection = isCallable$
|
|
3905
|
+
var weakMapBasicDetection = isCallable$e(WeakMap$1) && /native code/.test(String(WeakMap$1));
|
|
3911
3906
|
|
|
3912
3907
|
var shared$2 = shared$4;
|
|
3913
3908
|
var uid = uid$2;
|
|
@@ -3921,17 +3916,17 @@ var sharedKey$3 = function (key) {
|
|
|
3921
3916
|
var hiddenKeys$4 = {};
|
|
3922
3917
|
|
|
3923
3918
|
var NATIVE_WEAK_MAP = weakMapBasicDetection;
|
|
3924
|
-
var global$
|
|
3925
|
-
var isObject$
|
|
3926
|
-
var createNonEnumerableProperty$
|
|
3927
|
-
var hasOwn$
|
|
3919
|
+
var global$d = global$l;
|
|
3920
|
+
var isObject$5 = isObject$a;
|
|
3921
|
+
var createNonEnumerableProperty$4 = createNonEnumerableProperty$5;
|
|
3922
|
+
var hasOwn$6 = hasOwnProperty_1;
|
|
3928
3923
|
var shared$1 = sharedStoreExports;
|
|
3929
3924
|
var sharedKey$2 = sharedKey$3;
|
|
3930
3925
|
var hiddenKeys$3 = hiddenKeys$4;
|
|
3931
3926
|
|
|
3932
3927
|
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
|
3933
|
-
var TypeError$2 = global$
|
|
3934
|
-
var WeakMap = global$
|
|
3928
|
+
var TypeError$2 = global$d.TypeError;
|
|
3929
|
+
var WeakMap = global$d.WeakMap;
|
|
3935
3930
|
var set$1, get, has;
|
|
3936
3931
|
|
|
3937
3932
|
var enforce = function (it) {
|
|
@@ -3941,7 +3936,7 @@ var enforce = function (it) {
|
|
|
3941
3936
|
var getterFor = function (TYPE) {
|
|
3942
3937
|
return function (it) {
|
|
3943
3938
|
var state;
|
|
3944
|
-
if (!isObject$
|
|
3939
|
+
if (!isObject$5(it) || (state = get(it)).type !== TYPE) {
|
|
3945
3940
|
throw new TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
|
3946
3941
|
} return state;
|
|
3947
3942
|
};
|
|
@@ -3970,16 +3965,16 @@ if (NATIVE_WEAK_MAP || shared$1.state) {
|
|
|
3970
3965
|
var STATE = sharedKey$2('state');
|
|
3971
3966
|
hiddenKeys$3[STATE] = true;
|
|
3972
3967
|
set$1 = function (it, metadata) {
|
|
3973
|
-
if (hasOwn$
|
|
3968
|
+
if (hasOwn$6(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
|
3974
3969
|
metadata.facade = it;
|
|
3975
|
-
createNonEnumerableProperty$
|
|
3970
|
+
createNonEnumerableProperty$4(it, STATE, metadata);
|
|
3976
3971
|
return metadata;
|
|
3977
3972
|
};
|
|
3978
3973
|
get = function (it) {
|
|
3979
|
-
return hasOwn$
|
|
3974
|
+
return hasOwn$6(it, STATE) ? it[STATE] : {};
|
|
3980
3975
|
};
|
|
3981
3976
|
has = function (it) {
|
|
3982
|
-
return hasOwn$
|
|
3977
|
+
return hasOwn$6(it, STATE);
|
|
3983
3978
|
};
|
|
3984
3979
|
}
|
|
3985
3980
|
|
|
@@ -3991,51 +3986,51 @@ var internalState = {
|
|
|
3991
3986
|
getterFor: getterFor
|
|
3992
3987
|
};
|
|
3993
3988
|
|
|
3994
|
-
var uncurryThis$
|
|
3995
|
-
var fails$
|
|
3996
|
-
var isCallable$
|
|
3997
|
-
var hasOwn$
|
|
3998
|
-
var DESCRIPTORS$
|
|
3989
|
+
var uncurryThis$c = functionUncurryThis;
|
|
3990
|
+
var fails$b = fails$i;
|
|
3991
|
+
var isCallable$d = isCallable$l;
|
|
3992
|
+
var hasOwn$5 = hasOwnProperty_1;
|
|
3993
|
+
var DESCRIPTORS$5 = descriptors;
|
|
3999
3994
|
var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
|
|
4000
3995
|
var inspectSource$2 = inspectSource$3;
|
|
4001
3996
|
var InternalStateModule$2 = internalState;
|
|
4002
3997
|
|
|
4003
3998
|
var enforceInternalState = InternalStateModule$2.enforce;
|
|
4004
3999
|
var getInternalState$2 = InternalStateModule$2.get;
|
|
4005
|
-
var $String$
|
|
4000
|
+
var $String$2 = String;
|
|
4006
4001
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
4007
|
-
var defineProperty$
|
|
4008
|
-
var stringSlice$4 = uncurryThis$
|
|
4009
|
-
var replace$
|
|
4010
|
-
var join = uncurryThis$
|
|
4002
|
+
var defineProperty$5 = Object.defineProperty;
|
|
4003
|
+
var stringSlice$4 = uncurryThis$c(''.slice);
|
|
4004
|
+
var replace$2 = uncurryThis$c(''.replace);
|
|
4005
|
+
var join = uncurryThis$c([].join);
|
|
4011
4006
|
|
|
4012
|
-
var CONFIGURABLE_LENGTH = DESCRIPTORS$
|
|
4013
|
-
return defineProperty$
|
|
4007
|
+
var CONFIGURABLE_LENGTH = DESCRIPTORS$5 && !fails$b(function () {
|
|
4008
|
+
return defineProperty$5(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
|
4014
4009
|
});
|
|
4015
4010
|
|
|
4016
4011
|
var TEMPLATE = String(String).split('String');
|
|
4017
4012
|
|
|
4018
4013
|
var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
4019
|
-
if (stringSlice$4($String$
|
|
4020
|
-
name = '[' + replace$
|
|
4014
|
+
if (stringSlice$4($String$2(name), 0, 7) === 'Symbol(') {
|
|
4015
|
+
name = '[' + replace$2($String$2(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
|
|
4021
4016
|
}
|
|
4022
4017
|
if (options && options.getter) name = 'get ' + name;
|
|
4023
4018
|
if (options && options.setter) name = 'set ' + name;
|
|
4024
|
-
if (!hasOwn$
|
|
4025
|
-
if (DESCRIPTORS$
|
|
4019
|
+
if (!hasOwn$5(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
|
|
4020
|
+
if (DESCRIPTORS$5) defineProperty$5(value, 'name', { value: name, configurable: true });
|
|
4026
4021
|
else value.name = name;
|
|
4027
4022
|
}
|
|
4028
|
-
if (CONFIGURABLE_LENGTH && options && hasOwn$
|
|
4029
|
-
defineProperty$
|
|
4023
|
+
if (CONFIGURABLE_LENGTH && options && hasOwn$5(options, 'arity') && value.length !== options.arity) {
|
|
4024
|
+
defineProperty$5(value, 'length', { value: options.arity });
|
|
4030
4025
|
}
|
|
4031
4026
|
try {
|
|
4032
|
-
if (options && hasOwn$
|
|
4033
|
-
if (DESCRIPTORS$
|
|
4027
|
+
if (options && hasOwn$5(options, 'constructor') && options.constructor) {
|
|
4028
|
+
if (DESCRIPTORS$5) defineProperty$5(value, 'prototype', { writable: false });
|
|
4034
4029
|
// in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
|
|
4035
4030
|
} else if (value.prototype) value.prototype = undefined;
|
|
4036
4031
|
} catch (error) { /* empty */ }
|
|
4037
4032
|
var state = enforceInternalState(value);
|
|
4038
|
-
if (!hasOwn$
|
|
4033
|
+
if (!hasOwn$5(state, 'source')) {
|
|
4039
4034
|
state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
|
|
4040
4035
|
} return value;
|
|
4041
4036
|
};
|
|
@@ -4043,12 +4038,12 @@ var makeBuiltIn$2 = makeBuiltIn$3.exports = function (value, name, options) {
|
|
|
4043
4038
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
|
4044
4039
|
// eslint-disable-next-line no-extend-native -- required
|
|
4045
4040
|
Function.prototype.toString = makeBuiltIn$2(function toString() {
|
|
4046
|
-
return isCallable$
|
|
4041
|
+
return isCallable$d(this) && getInternalState$2(this).source || inspectSource$2(this);
|
|
4047
4042
|
}, 'toString');
|
|
4048
4043
|
|
|
4049
4044
|
var makeBuiltInExports = makeBuiltIn$3.exports;
|
|
4050
4045
|
|
|
4051
|
-
var isCallable$
|
|
4046
|
+
var isCallable$c = isCallable$l;
|
|
4052
4047
|
var definePropertyModule$2 = objectDefineProperty;
|
|
4053
4048
|
var makeBuiltIn$1 = makeBuiltInExports;
|
|
4054
4049
|
var defineGlobalProperty$1 = defineGlobalProperty$3;
|
|
@@ -4057,7 +4052,7 @@ var defineBuiltIn$6 = function (O, key, value, options) {
|
|
|
4057
4052
|
if (!options) options = {};
|
|
4058
4053
|
var simple = options.enumerable;
|
|
4059
4054
|
var name = options.name !== undefined ? options.name : key;
|
|
4060
|
-
if (isCallable$
|
|
4055
|
+
if (isCallable$c(value)) makeBuiltIn$1(value, name, options);
|
|
4061
4056
|
if (options.global) {
|
|
4062
4057
|
if (simple) O[key] = value;
|
|
4063
4058
|
else defineGlobalProperty$1(key, value);
|
|
@@ -4136,7 +4131,7 @@ var toAbsoluteIndex = toAbsoluteIndex$1;
|
|
|
4136
4131
|
var lengthOfArrayLike$1 = lengthOfArrayLike$2;
|
|
4137
4132
|
|
|
4138
4133
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
|
4139
|
-
var createMethod$
|
|
4134
|
+
var createMethod$1 = function (IS_INCLUDES) {
|
|
4140
4135
|
return function ($this, el, fromIndex) {
|
|
4141
4136
|
var O = toIndexedObject$3($this);
|
|
4142
4137
|
var length = lengthOfArrayLike$1(O);
|
|
@@ -4159,29 +4154,29 @@ var createMethod$2 = function (IS_INCLUDES) {
|
|
|
4159
4154
|
var arrayIncludes = {
|
|
4160
4155
|
// `Array.prototype.includes` method
|
|
4161
4156
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
4162
|
-
includes: createMethod$
|
|
4157
|
+
includes: createMethod$1(true),
|
|
4163
4158
|
// `Array.prototype.indexOf` method
|
|
4164
4159
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
|
4165
|
-
indexOf: createMethod$
|
|
4160
|
+
indexOf: createMethod$1(false)
|
|
4166
4161
|
};
|
|
4167
4162
|
|
|
4168
|
-
var uncurryThis$
|
|
4169
|
-
var hasOwn$
|
|
4163
|
+
var uncurryThis$b = functionUncurryThis;
|
|
4164
|
+
var hasOwn$4 = hasOwnProperty_1;
|
|
4170
4165
|
var toIndexedObject$2 = toIndexedObject$5;
|
|
4171
4166
|
var indexOf$1 = arrayIncludes.indexOf;
|
|
4172
4167
|
var hiddenKeys$2 = hiddenKeys$4;
|
|
4173
4168
|
|
|
4174
|
-
var push$
|
|
4169
|
+
var push$1 = uncurryThis$b([].push);
|
|
4175
4170
|
|
|
4176
4171
|
var objectKeysInternal = function (object, names) {
|
|
4177
4172
|
var O = toIndexedObject$2(object);
|
|
4178
4173
|
var i = 0;
|
|
4179
4174
|
var result = [];
|
|
4180
4175
|
var key;
|
|
4181
|
-
for (key in O) !hasOwn$
|
|
4176
|
+
for (key in O) !hasOwn$4(hiddenKeys$2, key) && hasOwn$4(O, key) && push$1(result, key);
|
|
4182
4177
|
// Don't enum bug & hidden keys
|
|
4183
|
-
while (names.length > i) if (hasOwn$
|
|
4184
|
-
~indexOf$1(result, key) || push$
|
|
4178
|
+
while (names.length > i) if (hasOwn$4(O, key = names[i++])) {
|
|
4179
|
+
~indexOf$1(result, key) || push$1(result, key);
|
|
4185
4180
|
}
|
|
4186
4181
|
return result;
|
|
4187
4182
|
};
|
|
@@ -4214,40 +4209,40 @@ var objectGetOwnPropertySymbols = {};
|
|
|
4214
4209
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
|
4215
4210
|
objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
|
|
4216
4211
|
|
|
4217
|
-
var getBuiltIn$
|
|
4218
|
-
var uncurryThis$
|
|
4212
|
+
var getBuiltIn$5 = getBuiltIn$7;
|
|
4213
|
+
var uncurryThis$a = functionUncurryThis;
|
|
4219
4214
|
var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
|
|
4220
4215
|
var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
|
|
4221
4216
|
var anObject$b = anObject$d;
|
|
4222
4217
|
|
|
4223
|
-
var concat$2 = uncurryThis$
|
|
4218
|
+
var concat$2 = uncurryThis$a([].concat);
|
|
4224
4219
|
|
|
4225
4220
|
// all object keys, includes non-enumerable and symbols
|
|
4226
|
-
var ownKeys$1 = getBuiltIn$
|
|
4221
|
+
var ownKeys$1 = getBuiltIn$5('Reflect', 'ownKeys') || function ownKeys(it) {
|
|
4227
4222
|
var keys = getOwnPropertyNamesModule.f(anObject$b(it));
|
|
4228
4223
|
var getOwnPropertySymbols = getOwnPropertySymbolsModule$1.f;
|
|
4229
4224
|
return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
|
|
4230
4225
|
};
|
|
4231
4226
|
|
|
4232
|
-
var hasOwn$
|
|
4227
|
+
var hasOwn$3 = hasOwnProperty_1;
|
|
4233
4228
|
var ownKeys = ownKeys$1;
|
|
4234
4229
|
var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
|
|
4235
4230
|
var definePropertyModule$1 = objectDefineProperty;
|
|
4236
4231
|
|
|
4237
|
-
var copyConstructorProperties$
|
|
4232
|
+
var copyConstructorProperties$1 = function (target, source, exceptions) {
|
|
4238
4233
|
var keys = ownKeys(source);
|
|
4239
4234
|
var defineProperty = definePropertyModule$1.f;
|
|
4240
4235
|
var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
|
|
4241
4236
|
for (var i = 0; i < keys.length; i++) {
|
|
4242
4237
|
var key = keys[i];
|
|
4243
|
-
if (!hasOwn$
|
|
4238
|
+
if (!hasOwn$3(target, key) && !(exceptions && hasOwn$3(exceptions, key))) {
|
|
4244
4239
|
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
|
4245
4240
|
}
|
|
4246
4241
|
}
|
|
4247
4242
|
};
|
|
4248
4243
|
|
|
4249
|
-
var fails$
|
|
4250
|
-
var isCallable$
|
|
4244
|
+
var fails$a = fails$i;
|
|
4245
|
+
var isCallable$b = isCallable$l;
|
|
4251
4246
|
|
|
4252
4247
|
var replacement = /#|\.prototype\./;
|
|
4253
4248
|
|
|
@@ -4255,7 +4250,7 @@ var isForced$2 = function (feature, detection) {
|
|
|
4255
4250
|
var value = data[normalize$1(feature)];
|
|
4256
4251
|
return value === POLYFILL ? true
|
|
4257
4252
|
: value === NATIVE ? false
|
|
4258
|
-
: isCallable$
|
|
4253
|
+
: isCallable$b(detection) ? fails$a(detection)
|
|
4259
4254
|
: !!detection;
|
|
4260
4255
|
};
|
|
4261
4256
|
|
|
@@ -4269,12 +4264,12 @@ var POLYFILL = isForced$2.POLYFILL = 'P';
|
|
|
4269
4264
|
|
|
4270
4265
|
var isForced_1 = isForced$2;
|
|
4271
4266
|
|
|
4272
|
-
var global$
|
|
4267
|
+
var global$c = global$l;
|
|
4273
4268
|
var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
|
|
4274
|
-
var createNonEnumerableProperty$
|
|
4269
|
+
var createNonEnumerableProperty$3 = createNonEnumerableProperty$5;
|
|
4275
4270
|
var defineBuiltIn$5 = defineBuiltIn$6;
|
|
4276
4271
|
var defineGlobalProperty = defineGlobalProperty$3;
|
|
4277
|
-
var copyConstructorProperties
|
|
4272
|
+
var copyConstructorProperties = copyConstructorProperties$1;
|
|
4278
4273
|
var isForced$1 = isForced_1;
|
|
4279
4274
|
|
|
4280
4275
|
/*
|
|
@@ -4298,11 +4293,11 @@ var _export = function (options, source) {
|
|
|
4298
4293
|
var STATIC = options.stat;
|
|
4299
4294
|
var FORCED, target, key, targetProperty, sourceProperty, descriptor;
|
|
4300
4295
|
if (GLOBAL) {
|
|
4301
|
-
target = global$
|
|
4296
|
+
target = global$c;
|
|
4302
4297
|
} else if (STATIC) {
|
|
4303
|
-
target = global$
|
|
4298
|
+
target = global$c[TARGET] || defineGlobalProperty(TARGET, {});
|
|
4304
4299
|
} else {
|
|
4305
|
-
target = global$
|
|
4300
|
+
target = global$c[TARGET] && global$c[TARGET].prototype;
|
|
4306
4301
|
}
|
|
4307
4302
|
if (target) for (key in source) {
|
|
4308
4303
|
sourceProperty = source[key];
|
|
@@ -4314,11 +4309,11 @@ var _export = function (options, source) {
|
|
|
4314
4309
|
// contained in target
|
|
4315
4310
|
if (!FORCED && targetProperty !== undefined) {
|
|
4316
4311
|
if (typeof sourceProperty == typeof targetProperty) continue;
|
|
4317
|
-
copyConstructorProperties
|
|
4312
|
+
copyConstructorProperties(sourceProperty, targetProperty);
|
|
4318
4313
|
}
|
|
4319
4314
|
// add a flag to not completely full polyfills
|
|
4320
4315
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
|
4321
|
-
createNonEnumerableProperty$
|
|
4316
|
+
createNonEnumerableProperty$3(sourceProperty, 'sham', true);
|
|
4322
4317
|
}
|
|
4323
4318
|
defineBuiltIn$5(target, key, sourceProperty, options);
|
|
4324
4319
|
}
|
|
@@ -4334,10 +4329,10 @@ var objectKeys$2 = Object.keys || function keys(O) {
|
|
|
4334
4329
|
return internalObjectKeys(O, enumBugKeys$1);
|
|
4335
4330
|
};
|
|
4336
4331
|
|
|
4337
|
-
var DESCRIPTORS$
|
|
4338
|
-
var uncurryThis$
|
|
4339
|
-
var call$
|
|
4340
|
-
var fails$
|
|
4332
|
+
var DESCRIPTORS$4 = descriptors;
|
|
4333
|
+
var uncurryThis$9 = functionUncurryThis;
|
|
4334
|
+
var call$d = functionCall;
|
|
4335
|
+
var fails$9 = fails$i;
|
|
4341
4336
|
var objectKeys$1 = objectKeys$2;
|
|
4342
4337
|
var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
|
|
4343
4338
|
var propertyIsEnumerableModule = objectPropertyIsEnumerable;
|
|
@@ -4347,17 +4342,17 @@ var IndexedObject = indexedObject;
|
|
|
4347
4342
|
// eslint-disable-next-line es/no-object-assign -- safe
|
|
4348
4343
|
var $assign = Object.assign;
|
|
4349
4344
|
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
|
4350
|
-
var defineProperty$
|
|
4351
|
-
var concat$1 = uncurryThis$
|
|
4345
|
+
var defineProperty$4 = Object.defineProperty;
|
|
4346
|
+
var concat$1 = uncurryThis$9([].concat);
|
|
4352
4347
|
|
|
4353
4348
|
// `Object.assign` method
|
|
4354
4349
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
4355
|
-
var objectAssign = !$assign || fails$
|
|
4350
|
+
var objectAssign = !$assign || fails$9(function () {
|
|
4356
4351
|
// should have correct order of operations (Edge bug)
|
|
4357
|
-
if (DESCRIPTORS$
|
|
4352
|
+
if (DESCRIPTORS$4 && $assign({ b: 1 }, $assign(defineProperty$4({}, 'a', {
|
|
4358
4353
|
enumerable: true,
|
|
4359
4354
|
get: function () {
|
|
4360
|
-
defineProperty$
|
|
4355
|
+
defineProperty$4(this, 'b', {
|
|
4361
4356
|
value: 3,
|
|
4362
4357
|
enumerable: false
|
|
4363
4358
|
});
|
|
@@ -4386,56 +4381,56 @@ var objectAssign = !$assign || fails$d(function () {
|
|
|
4386
4381
|
var key;
|
|
4387
4382
|
while (length > j) {
|
|
4388
4383
|
key = keys[j++];
|
|
4389
|
-
if (!DESCRIPTORS$
|
|
4384
|
+
if (!DESCRIPTORS$4 || call$d(propertyIsEnumerable, S, key)) T[key] = S[key];
|
|
4390
4385
|
}
|
|
4391
4386
|
} return T;
|
|
4392
4387
|
} : $assign;
|
|
4393
4388
|
|
|
4394
|
-
var $$
|
|
4389
|
+
var $$8 = _export;
|
|
4395
4390
|
var assign = objectAssign;
|
|
4396
4391
|
|
|
4397
4392
|
// `Object.assign` method
|
|
4398
4393
|
// https://tc39.es/ecma262/#sec-object.assign
|
|
4399
4394
|
// eslint-disable-next-line es/no-object-assign -- required for testing
|
|
4400
|
-
$$
|
|
4395
|
+
$$8({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
|
|
4401
4396
|
assign: assign
|
|
4402
4397
|
});
|
|
4403
4398
|
|
|
4404
|
-
var global$
|
|
4405
|
-
var classof$
|
|
4399
|
+
var global$b = global$l;
|
|
4400
|
+
var classof$5 = classofRaw$2;
|
|
4406
4401
|
|
|
4407
|
-
var engineIsNode = classof$
|
|
4402
|
+
var engineIsNode = classof$5(global$b.process) === 'process';
|
|
4408
4403
|
|
|
4409
|
-
var uncurryThis$
|
|
4404
|
+
var uncurryThis$8 = functionUncurryThis;
|
|
4410
4405
|
var aCallable$6 = aCallable$8;
|
|
4411
4406
|
|
|
4412
4407
|
var functionUncurryThisAccessor = function (object, key, method) {
|
|
4413
4408
|
try {
|
|
4414
4409
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
4415
|
-
return uncurryThis$
|
|
4410
|
+
return uncurryThis$8(aCallable$6(Object.getOwnPropertyDescriptor(object, key)[method]));
|
|
4416
4411
|
} catch (error) { /* empty */ }
|
|
4417
4412
|
};
|
|
4418
4413
|
|
|
4419
|
-
var isObject$
|
|
4414
|
+
var isObject$4 = isObject$a;
|
|
4420
4415
|
|
|
4421
4416
|
var isPossiblePrototype$1 = function (argument) {
|
|
4422
|
-
return isObject$
|
|
4417
|
+
return isObject$4(argument) || argument === null;
|
|
4423
4418
|
};
|
|
4424
4419
|
|
|
4425
4420
|
var isPossiblePrototype = isPossiblePrototype$1;
|
|
4426
4421
|
|
|
4427
|
-
var $String$
|
|
4428
|
-
var $TypeError$
|
|
4422
|
+
var $String$1 = String;
|
|
4423
|
+
var $TypeError$7 = TypeError;
|
|
4429
4424
|
|
|
4430
4425
|
var aPossiblePrototype$1 = function (argument) {
|
|
4431
4426
|
if (isPossiblePrototype(argument)) return argument;
|
|
4432
|
-
throw new $TypeError$
|
|
4427
|
+
throw new $TypeError$7("Can't set " + $String$1(argument) + ' as a prototype');
|
|
4433
4428
|
};
|
|
4434
4429
|
|
|
4435
4430
|
/* eslint-disable no-proto -- safe */
|
|
4436
4431
|
var uncurryThisAccessor = functionUncurryThisAccessor;
|
|
4437
|
-
var isObject$
|
|
4438
|
-
var requireObjectCoercible$
|
|
4432
|
+
var isObject$3 = isObject$a;
|
|
4433
|
+
var requireObjectCoercible$3 = requireObjectCoercible$6;
|
|
4439
4434
|
var aPossiblePrototype = aPossiblePrototype$1;
|
|
4440
4435
|
|
|
4441
4436
|
// `Object.setPrototypeOf` method
|
|
@@ -4452,48 +4447,48 @@ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? functio
|
|
|
4452
4447
|
CORRECT_SETTER = test instanceof Array;
|
|
4453
4448
|
} catch (error) { /* empty */ }
|
|
4454
4449
|
return function setPrototypeOf(O, proto) {
|
|
4455
|
-
requireObjectCoercible$
|
|
4450
|
+
requireObjectCoercible$3(O);
|
|
4456
4451
|
aPossiblePrototype(proto);
|
|
4457
|
-
if (!isObject$
|
|
4452
|
+
if (!isObject$3(O)) return O;
|
|
4458
4453
|
if (CORRECT_SETTER) setter(O, proto);
|
|
4459
4454
|
else O.__proto__ = proto;
|
|
4460
4455
|
return O;
|
|
4461
4456
|
};
|
|
4462
4457
|
}() : undefined);
|
|
4463
4458
|
|
|
4464
|
-
var defineProperty$
|
|
4465
|
-
var hasOwn$
|
|
4466
|
-
var wellKnownSymbol$
|
|
4459
|
+
var defineProperty$3 = objectDefineProperty.f;
|
|
4460
|
+
var hasOwn$2 = hasOwnProperty_1;
|
|
4461
|
+
var wellKnownSymbol$e = wellKnownSymbol$g;
|
|
4467
4462
|
|
|
4468
|
-
var TO_STRING_TAG$2 = wellKnownSymbol$
|
|
4463
|
+
var TO_STRING_TAG$2 = wellKnownSymbol$e('toStringTag');
|
|
4469
4464
|
|
|
4470
4465
|
var setToStringTag$4 = function (target, TAG, STATIC) {
|
|
4471
4466
|
if (target && !STATIC) target = target.prototype;
|
|
4472
|
-
if (target && !hasOwn$
|
|
4473
|
-
defineProperty$
|
|
4467
|
+
if (target && !hasOwn$2(target, TO_STRING_TAG$2)) {
|
|
4468
|
+
defineProperty$3(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
|
|
4474
4469
|
}
|
|
4475
4470
|
};
|
|
4476
4471
|
|
|
4477
4472
|
var makeBuiltIn = makeBuiltInExports;
|
|
4478
|
-
var defineProperty$
|
|
4473
|
+
var defineProperty$2 = objectDefineProperty;
|
|
4479
4474
|
|
|
4480
4475
|
var defineBuiltInAccessor$1 = function (target, name, descriptor) {
|
|
4481
4476
|
if (descriptor.get) makeBuiltIn(descriptor.get, name, { getter: true });
|
|
4482
4477
|
if (descriptor.set) makeBuiltIn(descriptor.set, name, { setter: true });
|
|
4483
|
-
return defineProperty$
|
|
4478
|
+
return defineProperty$2.f(target, name, descriptor);
|
|
4484
4479
|
};
|
|
4485
4480
|
|
|
4486
|
-
var getBuiltIn$
|
|
4481
|
+
var getBuiltIn$4 = getBuiltIn$7;
|
|
4487
4482
|
var defineBuiltInAccessor = defineBuiltInAccessor$1;
|
|
4488
|
-
var wellKnownSymbol$
|
|
4489
|
-
var DESCRIPTORS$
|
|
4483
|
+
var wellKnownSymbol$d = wellKnownSymbol$g;
|
|
4484
|
+
var DESCRIPTORS$3 = descriptors;
|
|
4490
4485
|
|
|
4491
|
-
var SPECIES$3 = wellKnownSymbol$
|
|
4486
|
+
var SPECIES$3 = wellKnownSymbol$d('species');
|
|
4492
4487
|
|
|
4493
4488
|
var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
4494
|
-
var Constructor = getBuiltIn$
|
|
4489
|
+
var Constructor = getBuiltIn$4(CONSTRUCTOR_NAME);
|
|
4495
4490
|
|
|
4496
|
-
if (DESCRIPTORS$
|
|
4491
|
+
if (DESCRIPTORS$3 && Constructor && !Constructor[SPECIES$3]) {
|
|
4497
4492
|
defineBuiltInAccessor(Constructor, SPECIES$3, {
|
|
4498
4493
|
configurable: true,
|
|
4499
4494
|
get: function () { return this; }
|
|
@@ -4501,18 +4496,18 @@ var setSpecies$1 = function (CONSTRUCTOR_NAME) {
|
|
|
4501
4496
|
}
|
|
4502
4497
|
};
|
|
4503
4498
|
|
|
4504
|
-
var isPrototypeOf$
|
|
4499
|
+
var isPrototypeOf$1 = objectIsPrototypeOf;
|
|
4505
4500
|
|
|
4506
|
-
var $TypeError$
|
|
4501
|
+
var $TypeError$6 = TypeError;
|
|
4507
4502
|
|
|
4508
4503
|
var anInstance$1 = function (it, Prototype) {
|
|
4509
|
-
if (isPrototypeOf$
|
|
4510
|
-
throw new $TypeError$
|
|
4504
|
+
if (isPrototypeOf$1(Prototype, it)) return it;
|
|
4505
|
+
throw new $TypeError$6('Incorrect invocation');
|
|
4511
4506
|
};
|
|
4512
4507
|
|
|
4513
|
-
var wellKnownSymbol$
|
|
4508
|
+
var wellKnownSymbol$c = wellKnownSymbol$g;
|
|
4514
4509
|
|
|
4515
|
-
var TO_STRING_TAG$1 = wellKnownSymbol$
|
|
4510
|
+
var TO_STRING_TAG$1 = wellKnownSymbol$c('toStringTag');
|
|
4516
4511
|
var test = {};
|
|
4517
4512
|
|
|
4518
4513
|
test[TO_STRING_TAG$1] = 'z';
|
|
@@ -4520,11 +4515,11 @@ test[TO_STRING_TAG$1] = 'z';
|
|
|
4520
4515
|
var toStringTagSupport = String(test) === '[object z]';
|
|
4521
4516
|
|
|
4522
4517
|
var TO_STRING_TAG_SUPPORT = toStringTagSupport;
|
|
4523
|
-
var isCallable$
|
|
4518
|
+
var isCallable$a = isCallable$l;
|
|
4524
4519
|
var classofRaw$1 = classofRaw$2;
|
|
4525
|
-
var wellKnownSymbol$
|
|
4520
|
+
var wellKnownSymbol$b = wellKnownSymbol$g;
|
|
4526
4521
|
|
|
4527
|
-
var TO_STRING_TAG = wellKnownSymbol$
|
|
4522
|
+
var TO_STRING_TAG = wellKnownSymbol$b('toStringTag');
|
|
4528
4523
|
var $Object$1 = Object;
|
|
4529
4524
|
|
|
4530
4525
|
// ES3 wrong here
|
|
@@ -4538,7 +4533,7 @@ var tryGet = function (it, key) {
|
|
|
4538
4533
|
};
|
|
4539
4534
|
|
|
4540
4535
|
// getting tag from ES6+ `Object.prototype.toString`
|
|
4541
|
-
var classof$
|
|
4536
|
+
var classof$4 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
4542
4537
|
var O, tag, result;
|
|
4543
4538
|
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
|
4544
4539
|
// @@toStringTag case
|
|
@@ -4546,24 +4541,24 @@ var classof$7 = TO_STRING_TAG_SUPPORT ? classofRaw$1 : function (it) {
|
|
|
4546
4541
|
// builtinTag case
|
|
4547
4542
|
: CORRECT_ARGUMENTS ? classofRaw$1(O)
|
|
4548
4543
|
// ES3 arguments fallback
|
|
4549
|
-
: (result = classofRaw$1(O)) === 'Object' && isCallable$
|
|
4544
|
+
: (result = classofRaw$1(O)) === 'Object' && isCallable$a(O.callee) ? 'Arguments' : result;
|
|
4550
4545
|
};
|
|
4551
4546
|
|
|
4552
|
-
var uncurryThis$
|
|
4553
|
-
var fails$
|
|
4554
|
-
var isCallable$
|
|
4555
|
-
var classof$
|
|
4556
|
-
var getBuiltIn$
|
|
4547
|
+
var uncurryThis$7 = functionUncurryThis;
|
|
4548
|
+
var fails$8 = fails$i;
|
|
4549
|
+
var isCallable$9 = isCallable$l;
|
|
4550
|
+
var classof$3 = classof$4;
|
|
4551
|
+
var getBuiltIn$3 = getBuiltIn$7;
|
|
4557
4552
|
var inspectSource$1 = inspectSource$3;
|
|
4558
4553
|
|
|
4559
4554
|
var noop = function () { /* empty */ };
|
|
4560
|
-
var construct = getBuiltIn$
|
|
4555
|
+
var construct = getBuiltIn$3('Reflect', 'construct');
|
|
4561
4556
|
var constructorRegExp = /^\s*(?:class|function)\b/;
|
|
4562
|
-
var exec$
|
|
4557
|
+
var exec$1 = uncurryThis$7(constructorRegExp.exec);
|
|
4563
4558
|
var INCORRECT_TO_STRING = !constructorRegExp.test(noop);
|
|
4564
4559
|
|
|
4565
4560
|
var isConstructorModern = function isConstructor(argument) {
|
|
4566
|
-
if (!isCallable$
|
|
4561
|
+
if (!isCallable$9(argument)) return false;
|
|
4567
4562
|
try {
|
|
4568
4563
|
construct(noop, [], argument);
|
|
4569
4564
|
return true;
|
|
@@ -4573,8 +4568,8 @@ var isConstructorModern = function isConstructor(argument) {
|
|
|
4573
4568
|
};
|
|
4574
4569
|
|
|
4575
4570
|
var isConstructorLegacy = function isConstructor(argument) {
|
|
4576
|
-
if (!isCallable$
|
|
4577
|
-
switch (classof$
|
|
4571
|
+
if (!isCallable$9(argument)) return false;
|
|
4572
|
+
switch (classof$3(argument)) {
|
|
4578
4573
|
case 'AsyncFunction':
|
|
4579
4574
|
case 'GeneratorFunction':
|
|
4580
4575
|
case 'AsyncGeneratorFunction': return false;
|
|
@@ -4583,7 +4578,7 @@ var isConstructorLegacy = function isConstructor(argument) {
|
|
|
4583
4578
|
// we can't check .prototype since constructors produced by .bind haven't it
|
|
4584
4579
|
// `Function#toString` throws on some built-it function in some legacy engines
|
|
4585
4580
|
// (for example, `DOMQuad` and similar in FF41-)
|
|
4586
|
-
return INCORRECT_TO_STRING || !!exec$
|
|
4581
|
+
return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource$1(argument));
|
|
4587
4582
|
} catch (error) {
|
|
4588
4583
|
return true;
|
|
4589
4584
|
}
|
|
@@ -4593,7 +4588,7 @@ isConstructorLegacy.sham = true;
|
|
|
4593
4588
|
|
|
4594
4589
|
// `IsConstructor` abstract operation
|
|
4595
4590
|
// https://tc39.es/ecma262/#sec-isconstructor
|
|
4596
|
-
var isConstructor$1 = !construct || fails$
|
|
4591
|
+
var isConstructor$1 = !construct || fails$8(function () {
|
|
4597
4592
|
var called;
|
|
4598
4593
|
return isConstructorModern(isConstructorModern.call)
|
|
4599
4594
|
|| !isConstructorModern(Object)
|
|
@@ -4604,20 +4599,20 @@ var isConstructor$1 = !construct || fails$c(function () {
|
|
|
4604
4599
|
var isConstructor = isConstructor$1;
|
|
4605
4600
|
var tryToString$2 = tryToString$4;
|
|
4606
4601
|
|
|
4607
|
-
var $TypeError$
|
|
4602
|
+
var $TypeError$5 = TypeError;
|
|
4608
4603
|
|
|
4609
4604
|
// `Assert: IsConstructor(argument) is true`
|
|
4610
4605
|
var aConstructor$1 = function (argument) {
|
|
4611
4606
|
if (isConstructor(argument)) return argument;
|
|
4612
|
-
throw new $TypeError$
|
|
4607
|
+
throw new $TypeError$5(tryToString$2(argument) + ' is not a constructor');
|
|
4613
4608
|
};
|
|
4614
4609
|
|
|
4615
4610
|
var anObject$a = anObject$d;
|
|
4616
4611
|
var aConstructor = aConstructor$1;
|
|
4617
4612
|
var isNullOrUndefined$3 = isNullOrUndefined$6;
|
|
4618
|
-
var wellKnownSymbol$
|
|
4613
|
+
var wellKnownSymbol$a = wellKnownSymbol$g;
|
|
4619
4614
|
|
|
4620
|
-
var SPECIES$2 = wellKnownSymbol$
|
|
4615
|
+
var SPECIES$2 = wellKnownSymbol$a('species');
|
|
4621
4616
|
|
|
4622
4617
|
// `SpeciesConstructor` abstract operation
|
|
4623
4618
|
// https://tc39.es/ecma262/#sec-speciesconstructor
|
|
@@ -4630,29 +4625,29 @@ var speciesConstructor$1 = function (O, defaultConstructor) {
|
|
|
4630
4625
|
var NATIVE_BIND$1 = functionBindNative;
|
|
4631
4626
|
|
|
4632
4627
|
var FunctionPrototype = Function.prototype;
|
|
4633
|
-
var apply$
|
|
4634
|
-
var call$
|
|
4628
|
+
var apply$2 = FunctionPrototype.apply;
|
|
4629
|
+
var call$c = FunctionPrototype.call;
|
|
4635
4630
|
|
|
4636
4631
|
// eslint-disable-next-line es/no-reflect -- safe
|
|
4637
|
-
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$
|
|
4638
|
-
return call$
|
|
4632
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND$1 ? call$c.bind(apply$2) : function () {
|
|
4633
|
+
return call$c.apply(apply$2, arguments);
|
|
4639
4634
|
});
|
|
4640
4635
|
|
|
4641
4636
|
var classofRaw = classofRaw$2;
|
|
4642
|
-
var uncurryThis$
|
|
4637
|
+
var uncurryThis$6 = functionUncurryThis;
|
|
4643
4638
|
|
|
4644
4639
|
var functionUncurryThisClause = function (fn) {
|
|
4645
4640
|
// Nashorn bug:
|
|
4646
4641
|
// https://github.com/zloirock/core-js/issues/1128
|
|
4647
4642
|
// https://github.com/zloirock/core-js/issues/1130
|
|
4648
|
-
if (classofRaw(fn) === 'Function') return uncurryThis$
|
|
4643
|
+
if (classofRaw(fn) === 'Function') return uncurryThis$6(fn);
|
|
4649
4644
|
};
|
|
4650
4645
|
|
|
4651
|
-
var uncurryThis$
|
|
4646
|
+
var uncurryThis$5 = functionUncurryThisClause;
|
|
4652
4647
|
var aCallable$5 = aCallable$8;
|
|
4653
4648
|
var NATIVE_BIND = functionBindNative;
|
|
4654
4649
|
|
|
4655
|
-
var bind$4 = uncurryThis$
|
|
4650
|
+
var bind$4 = uncurryThis$5(uncurryThis$5.bind);
|
|
4656
4651
|
|
|
4657
4652
|
// optional / simple context binding
|
|
4658
4653
|
var functionBindContext = function (fn, that) {
|
|
@@ -4662,18 +4657,18 @@ var functionBindContext = function (fn, that) {
|
|
|
4662
4657
|
};
|
|
4663
4658
|
};
|
|
4664
4659
|
|
|
4665
|
-
var getBuiltIn$
|
|
4660
|
+
var getBuiltIn$2 = getBuiltIn$7;
|
|
4666
4661
|
|
|
4667
|
-
var html$2 = getBuiltIn$
|
|
4662
|
+
var html$2 = getBuiltIn$2('document', 'documentElement');
|
|
4668
4663
|
|
|
4669
|
-
var uncurryThis$
|
|
4664
|
+
var uncurryThis$4 = functionUncurryThis;
|
|
4670
4665
|
|
|
4671
|
-
var arraySlice$
|
|
4666
|
+
var arraySlice$1 = uncurryThis$4([].slice);
|
|
4672
4667
|
|
|
4673
|
-
var $TypeError$
|
|
4668
|
+
var $TypeError$4 = TypeError;
|
|
4674
4669
|
|
|
4675
4670
|
var validateArgumentsLength$1 = function (passed, required) {
|
|
4676
|
-
if (passed < required) throw new $TypeError$
|
|
4671
|
+
if (passed < required) throw new $TypeError$4('Not enough arguments');
|
|
4677
4672
|
return passed;
|
|
4678
4673
|
};
|
|
4679
4674
|
|
|
@@ -4682,38 +4677,38 @@ var userAgent$2 = engineUserAgent;
|
|
|
4682
4677
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
4683
4678
|
var engineIsIos = /(?:ipad|iphone|ipod).*applewebkit/i.test(userAgent$2);
|
|
4684
4679
|
|
|
4685
|
-
var global$
|
|
4686
|
-
var apply$
|
|
4680
|
+
var global$a = global$l;
|
|
4681
|
+
var apply$1 = functionApply;
|
|
4687
4682
|
var bind$3 = functionBindContext;
|
|
4688
|
-
var isCallable$
|
|
4689
|
-
var hasOwn$
|
|
4690
|
-
var fails$
|
|
4683
|
+
var isCallable$8 = isCallable$l;
|
|
4684
|
+
var hasOwn$1 = hasOwnProperty_1;
|
|
4685
|
+
var fails$7 = fails$i;
|
|
4691
4686
|
var html$1 = html$2;
|
|
4692
|
-
var arraySlice
|
|
4687
|
+
var arraySlice = arraySlice$1;
|
|
4693
4688
|
var createElement = documentCreateElement$2;
|
|
4694
4689
|
var validateArgumentsLength = validateArgumentsLength$1;
|
|
4695
4690
|
var IS_IOS$1 = engineIsIos;
|
|
4696
4691
|
var IS_NODE$3 = engineIsNode;
|
|
4697
4692
|
|
|
4698
|
-
var set = global$
|
|
4699
|
-
var clear = global$
|
|
4700
|
-
var process$3 = global$
|
|
4701
|
-
var Dispatch = global$
|
|
4702
|
-
var Function$1 = global$
|
|
4703
|
-
var MessageChannel = global$
|
|
4704
|
-
var String$1 = global$
|
|
4693
|
+
var set = global$a.setImmediate;
|
|
4694
|
+
var clear = global$a.clearImmediate;
|
|
4695
|
+
var process$3 = global$a.process;
|
|
4696
|
+
var Dispatch = global$a.Dispatch;
|
|
4697
|
+
var Function$1 = global$a.Function;
|
|
4698
|
+
var MessageChannel = global$a.MessageChannel;
|
|
4699
|
+
var String$1 = global$a.String;
|
|
4705
4700
|
var counter = 0;
|
|
4706
4701
|
var queue$2 = {};
|
|
4707
4702
|
var ONREADYSTATECHANGE = 'onreadystatechange';
|
|
4708
4703
|
var $location, defer, channel, port;
|
|
4709
4704
|
|
|
4710
|
-
fails$
|
|
4705
|
+
fails$7(function () {
|
|
4711
4706
|
// Deno throws a ReferenceError on `location` access without `--location` flag
|
|
4712
|
-
$location = global$
|
|
4707
|
+
$location = global$a.location;
|
|
4713
4708
|
});
|
|
4714
4709
|
|
|
4715
4710
|
var run = function (id) {
|
|
4716
|
-
if (hasOwn$
|
|
4711
|
+
if (hasOwn$1(queue$2, id)) {
|
|
4717
4712
|
var fn = queue$2[id];
|
|
4718
4713
|
delete queue$2[id];
|
|
4719
4714
|
fn();
|
|
@@ -4732,17 +4727,17 @@ var eventListener = function (event) {
|
|
|
4732
4727
|
|
|
4733
4728
|
var globalPostMessageDefer = function (id) {
|
|
4734
4729
|
// old engines have not location.origin
|
|
4735
|
-
global$
|
|
4730
|
+
global$a.postMessage(String$1(id), $location.protocol + '//' + $location.host);
|
|
4736
4731
|
};
|
|
4737
4732
|
|
|
4738
4733
|
// Node.js 0.9+ & IE10+ has setImmediate, otherwise:
|
|
4739
4734
|
if (!set || !clear) {
|
|
4740
4735
|
set = function setImmediate(handler) {
|
|
4741
4736
|
validateArgumentsLength(arguments.length, 1);
|
|
4742
|
-
var fn = isCallable$
|
|
4743
|
-
var args = arraySlice
|
|
4737
|
+
var fn = isCallable$8(handler) ? handler : Function$1(handler);
|
|
4738
|
+
var args = arraySlice(arguments, 1);
|
|
4744
4739
|
queue$2[++counter] = function () {
|
|
4745
|
-
apply$
|
|
4740
|
+
apply$1(fn, undefined, args);
|
|
4746
4741
|
};
|
|
4747
4742
|
defer(counter);
|
|
4748
4743
|
return counter;
|
|
@@ -4770,14 +4765,14 @@ if (!set || !clear) {
|
|
|
4770
4765
|
// Browsers with postMessage, skip WebWorkers
|
|
4771
4766
|
// IE8 has postMessage, but it's sync & typeof its postMessage is 'object'
|
|
4772
4767
|
} else if (
|
|
4773
|
-
global$
|
|
4774
|
-
isCallable$
|
|
4775
|
-
!global$
|
|
4768
|
+
global$a.addEventListener &&
|
|
4769
|
+
isCallable$8(global$a.postMessage) &&
|
|
4770
|
+
!global$a.importScripts &&
|
|
4776
4771
|
$location && $location.protocol !== 'file:' &&
|
|
4777
|
-
!fails$
|
|
4772
|
+
!fails$7(globalPostMessageDefer)
|
|
4778
4773
|
) {
|
|
4779
4774
|
defer = globalPostMessageDefer;
|
|
4780
|
-
global$
|
|
4775
|
+
global$a.addEventListener('message', eventListener, false);
|
|
4781
4776
|
// IE8-
|
|
4782
4777
|
} else if (ONREADYSTATECHANGE in createElement('script')) {
|
|
4783
4778
|
defer = function (id) {
|
|
@@ -4799,16 +4794,16 @@ var task$1 = {
|
|
|
4799
4794
|
clear: clear
|
|
4800
4795
|
};
|
|
4801
4796
|
|
|
4802
|
-
var global$
|
|
4803
|
-
var DESCRIPTORS$
|
|
4797
|
+
var global$9 = global$l;
|
|
4798
|
+
var DESCRIPTORS$2 = descriptors;
|
|
4804
4799
|
|
|
4805
4800
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
|
4806
4801
|
var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
|
4807
4802
|
|
|
4808
4803
|
// Avoid NodeJS experimental warning
|
|
4809
4804
|
var safeGetBuiltIn$1 = function (name) {
|
|
4810
|
-
if (!DESCRIPTORS$
|
|
4811
|
-
var descriptor = getOwnPropertyDescriptor(global$
|
|
4805
|
+
if (!DESCRIPTORS$2) return global$9[name];
|
|
4806
|
+
var descriptor = getOwnPropertyDescriptor(global$9, name);
|
|
4812
4807
|
return descriptor && descriptor.value;
|
|
4813
4808
|
};
|
|
4814
4809
|
|
|
@@ -4845,7 +4840,7 @@ var userAgent = engineUserAgent;
|
|
|
4845
4840
|
|
|
4846
4841
|
var engineIsWebosWebkit = /web0s(?!.*chrome)/i.test(userAgent);
|
|
4847
4842
|
|
|
4848
|
-
var global$
|
|
4843
|
+
var global$8 = global$l;
|
|
4849
4844
|
var safeGetBuiltIn = safeGetBuiltIn$1;
|
|
4850
4845
|
var bind$2 = functionBindContext;
|
|
4851
4846
|
var macrotask = task$1.set;
|
|
@@ -4855,10 +4850,10 @@ var IS_IOS_PEBBLE = engineIsIosPebble;
|
|
|
4855
4850
|
var IS_WEBOS_WEBKIT = engineIsWebosWebkit;
|
|
4856
4851
|
var IS_NODE$2 = engineIsNode;
|
|
4857
4852
|
|
|
4858
|
-
var MutationObserver = global$
|
|
4859
|
-
var document$2 = global$
|
|
4860
|
-
var process$2 = global$
|
|
4861
|
-
var Promise$1 = global$
|
|
4853
|
+
var MutationObserver = global$8.MutationObserver || global$8.WebKitMutationObserver;
|
|
4854
|
+
var document$2 = global$8.document;
|
|
4855
|
+
var process$2 = global$8.process;
|
|
4856
|
+
var Promise$1 = global$8.Promise;
|
|
4862
4857
|
var microtask$1 = safeGetBuiltIn('queueMicrotask');
|
|
4863
4858
|
var notify$1, toggle, node, promise, then;
|
|
4864
4859
|
|
|
@@ -4910,7 +4905,7 @@ if (!microtask$1) {
|
|
|
4910
4905
|
// - setTimeout
|
|
4911
4906
|
} else {
|
|
4912
4907
|
// `webpack` dev server bug on IE global methods - use bind(fn, global)
|
|
4913
|
-
macrotask = bind$2(macrotask, global$
|
|
4908
|
+
macrotask = bind$2(macrotask, global$8);
|
|
4914
4909
|
notify$1 = function () {
|
|
4915
4910
|
macrotask(flush);
|
|
4916
4911
|
};
|
|
@@ -4939,9 +4934,9 @@ var perform$3 = function (exec) {
|
|
|
4939
4934
|
}
|
|
4940
4935
|
};
|
|
4941
4936
|
|
|
4942
|
-
var global$
|
|
4937
|
+
var global$7 = global$l;
|
|
4943
4938
|
|
|
4944
|
-
var promiseNativeConstructor = global$
|
|
4939
|
+
var promiseNativeConstructor = global$7.Promise;
|
|
4945
4940
|
|
|
4946
4941
|
/* global Deno -- Deno case */
|
|
4947
4942
|
var engineIsDeno = typeof Deno == 'object' && Deno && typeof Deno.version == 'object';
|
|
@@ -4953,20 +4948,20 @@ var engineIsBrowser = !IS_DENO$1 && !IS_NODE$1
|
|
|
4953
4948
|
&& typeof window == 'object'
|
|
4954
4949
|
&& typeof document == 'object';
|
|
4955
4950
|
|
|
4956
|
-
var global$
|
|
4951
|
+
var global$6 = global$l;
|
|
4957
4952
|
var NativePromiseConstructor$3 = promiseNativeConstructor;
|
|
4958
|
-
var isCallable$
|
|
4953
|
+
var isCallable$7 = isCallable$l;
|
|
4959
4954
|
var isForced = isForced_1;
|
|
4960
4955
|
var inspectSource = inspectSource$3;
|
|
4961
|
-
var wellKnownSymbol$
|
|
4956
|
+
var wellKnownSymbol$9 = wellKnownSymbol$g;
|
|
4962
4957
|
var IS_BROWSER = engineIsBrowser;
|
|
4963
4958
|
var IS_DENO = engineIsDeno;
|
|
4964
4959
|
var V8_VERSION = engineV8Version;
|
|
4965
4960
|
|
|
4966
4961
|
NativePromiseConstructor$3 && NativePromiseConstructor$3.prototype;
|
|
4967
|
-
var SPECIES$1 = wellKnownSymbol$
|
|
4962
|
+
var SPECIES$1 = wellKnownSymbol$9('species');
|
|
4968
4963
|
var SUBCLASSING = false;
|
|
4969
|
-
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$
|
|
4964
|
+
var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable$7(global$6.PromiseRejectionEvent);
|
|
4970
4965
|
|
|
4971
4966
|
var FORCED_PROMISE_CONSTRUCTOR$5 = isForced('Promise', function () {
|
|
4972
4967
|
var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(NativePromiseConstructor$3);
|
|
@@ -5002,12 +4997,12 @@ var newPromiseCapability$2 = {};
|
|
|
5002
4997
|
|
|
5003
4998
|
var aCallable$4 = aCallable$8;
|
|
5004
4999
|
|
|
5005
|
-
var $TypeError$
|
|
5000
|
+
var $TypeError$3 = TypeError;
|
|
5006
5001
|
|
|
5007
5002
|
var PromiseCapability = function (C) {
|
|
5008
5003
|
var resolve, reject;
|
|
5009
5004
|
this.promise = new C(function ($$resolve, $$reject) {
|
|
5010
|
-
if (resolve !== undefined || reject !== undefined) throw new $TypeError$
|
|
5005
|
+
if (resolve !== undefined || reject !== undefined) throw new $TypeError$3('Bad Promise constructor');
|
|
5011
5006
|
resolve = $$resolve;
|
|
5012
5007
|
reject = $$reject;
|
|
5013
5008
|
});
|
|
@@ -5021,17 +5016,17 @@ newPromiseCapability$2.f = function (C) {
|
|
|
5021
5016
|
return new PromiseCapability(C);
|
|
5022
5017
|
};
|
|
5023
5018
|
|
|
5024
|
-
var $$
|
|
5019
|
+
var $$7 = _export;
|
|
5025
5020
|
var IS_NODE = engineIsNode;
|
|
5026
|
-
var global$
|
|
5027
|
-
var call$
|
|
5021
|
+
var global$5 = global$l;
|
|
5022
|
+
var call$b = functionCall;
|
|
5028
5023
|
var defineBuiltIn$4 = defineBuiltIn$6;
|
|
5029
|
-
var setPrototypeOf$
|
|
5024
|
+
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
5030
5025
|
var setToStringTag$3 = setToStringTag$4;
|
|
5031
5026
|
var setSpecies = setSpecies$1;
|
|
5032
5027
|
var aCallable$3 = aCallable$8;
|
|
5033
|
-
var isCallable$
|
|
5034
|
-
var isObject$
|
|
5028
|
+
var isCallable$6 = isCallable$l;
|
|
5029
|
+
var isObject$2 = isObject$a;
|
|
5035
5030
|
var anInstance = anInstance$1;
|
|
5036
5031
|
var speciesConstructor = speciesConstructor$1;
|
|
5037
5032
|
var task = task$1.set;
|
|
@@ -5053,13 +5048,13 @@ var setInternalState$1 = InternalStateModule$1.set;
|
|
|
5053
5048
|
var NativePromisePrototype$1 = NativePromiseConstructor$2 && NativePromiseConstructor$2.prototype;
|
|
5054
5049
|
var PromiseConstructor = NativePromiseConstructor$2;
|
|
5055
5050
|
var PromisePrototype = NativePromisePrototype$1;
|
|
5056
|
-
var TypeError$1 = global$
|
|
5057
|
-
var document$1 = global$
|
|
5058
|
-
var process$1 = global$
|
|
5051
|
+
var TypeError$1 = global$5.TypeError;
|
|
5052
|
+
var document$1 = global$5.document;
|
|
5053
|
+
var process$1 = global$5.process;
|
|
5059
5054
|
var newPromiseCapability$1 = newPromiseCapabilityModule$3.f;
|
|
5060
5055
|
var newGenericPromiseCapability = newPromiseCapability$1;
|
|
5061
5056
|
|
|
5062
|
-
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$
|
|
5057
|
+
var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global$5.dispatchEvent);
|
|
5063
5058
|
var UNHANDLED_REJECTION = 'unhandledrejection';
|
|
5064
5059
|
var REJECTION_HANDLED = 'rejectionhandled';
|
|
5065
5060
|
var PENDING = 0;
|
|
@@ -5073,7 +5068,7 @@ var Internal, OwnPromiseCapability, PromiseWrapper, nativeThen;
|
|
|
5073
5068
|
// helpers
|
|
5074
5069
|
var isThenable = function (it) {
|
|
5075
5070
|
var then;
|
|
5076
|
-
return isObject$
|
|
5071
|
+
return isObject$2(it) && isCallable$6(then = it.then) ? then : false;
|
|
5077
5072
|
};
|
|
5078
5073
|
|
|
5079
5074
|
var callReaction = function (reaction, state) {
|
|
@@ -5102,7 +5097,7 @@ var callReaction = function (reaction, state) {
|
|
|
5102
5097
|
if (result === reaction.promise) {
|
|
5103
5098
|
reject(new TypeError$1('Promise-chain cycle'));
|
|
5104
5099
|
} else if (then = isThenable(result)) {
|
|
5105
|
-
call$
|
|
5100
|
+
call$b(then, result, resolve, reject);
|
|
5106
5101
|
} else resolve(result);
|
|
5107
5102
|
} else reject(value);
|
|
5108
5103
|
} catch (error) {
|
|
@@ -5132,14 +5127,14 @@ var dispatchEvent = function (name, promise, reason) {
|
|
|
5132
5127
|
event.promise = promise;
|
|
5133
5128
|
event.reason = reason;
|
|
5134
5129
|
event.initEvent(name, false, true);
|
|
5135
|
-
global$
|
|
5130
|
+
global$5.dispatchEvent(event);
|
|
5136
5131
|
} else event = { promise: promise, reason: reason };
|
|
5137
|
-
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$
|
|
5132
|
+
if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global$5['on' + name])) handler(event);
|
|
5138
5133
|
else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
|
|
5139
5134
|
};
|
|
5140
5135
|
|
|
5141
5136
|
var onUnhandled = function (state) {
|
|
5142
|
-
call$
|
|
5137
|
+
call$b(task, global$5, function () {
|
|
5143
5138
|
var promise = state.facade;
|
|
5144
5139
|
var value = state.value;
|
|
5145
5140
|
var IS_UNHANDLED = isUnhandled(state);
|
|
@@ -5162,7 +5157,7 @@ var isUnhandled = function (state) {
|
|
|
5162
5157
|
};
|
|
5163
5158
|
|
|
5164
5159
|
var onHandleUnhandled = function (state) {
|
|
5165
|
-
call$
|
|
5160
|
+
call$b(task, global$5, function () {
|
|
5166
5161
|
var promise = state.facade;
|
|
5167
5162
|
if (IS_NODE) {
|
|
5168
5163
|
process$1.emit('rejectionHandled', promise);
|
|
@@ -5196,7 +5191,7 @@ var internalResolve = function (state, value, unwrap) {
|
|
|
5196
5191
|
microtask(function () {
|
|
5197
5192
|
var wrapper = { done: false };
|
|
5198
5193
|
try {
|
|
5199
|
-
call$
|
|
5194
|
+
call$b(then, value,
|
|
5200
5195
|
bind$1(internalResolve, wrapper, state),
|
|
5201
5196
|
bind$1(internalReject, wrapper, state)
|
|
5202
5197
|
);
|
|
@@ -5220,7 +5215,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
5220
5215
|
PromiseConstructor = function Promise(executor) {
|
|
5221
5216
|
anInstance(this, PromisePrototype);
|
|
5222
5217
|
aCallable$3(executor);
|
|
5223
|
-
call$
|
|
5218
|
+
call$b(Internal, this);
|
|
5224
5219
|
var state = getInternalPromiseState(this);
|
|
5225
5220
|
try {
|
|
5226
5221
|
executor(bind$1(internalResolve, state), bind$1(internalReject, state));
|
|
@@ -5251,8 +5246,8 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
5251
5246
|
var state = getInternalPromiseState(this);
|
|
5252
5247
|
var reaction = newPromiseCapability$1(speciesConstructor(this, PromiseConstructor));
|
|
5253
5248
|
state.parent = true;
|
|
5254
|
-
reaction.ok = isCallable$
|
|
5255
|
-
reaction.fail = isCallable$
|
|
5249
|
+
reaction.ok = isCallable$6(onFulfilled) ? onFulfilled : true;
|
|
5250
|
+
reaction.fail = isCallable$6(onRejected) && onRejected;
|
|
5256
5251
|
reaction.domain = IS_NODE ? process$1.domain : undefined;
|
|
5257
5252
|
if (state.state === PENDING) state.reactions.add(reaction);
|
|
5258
5253
|
else microtask(function () {
|
|
@@ -5275,7 +5270,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
5275
5270
|
: newGenericPromiseCapability(C);
|
|
5276
5271
|
};
|
|
5277
5272
|
|
|
5278
|
-
if (isCallable$
|
|
5273
|
+
if (isCallable$6(NativePromiseConstructor$2) && NativePromisePrototype$1 !== Object.prototype) {
|
|
5279
5274
|
nativeThen = NativePromisePrototype$1.then;
|
|
5280
5275
|
|
|
5281
5276
|
if (!NATIVE_PROMISE_SUBCLASSING) {
|
|
@@ -5283,7 +5278,7 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
5283
5278
|
defineBuiltIn$4(NativePromisePrototype$1, 'then', function then(onFulfilled, onRejected) {
|
|
5284
5279
|
var that = this;
|
|
5285
5280
|
return new PromiseConstructor(function (resolve, reject) {
|
|
5286
|
-
call$
|
|
5281
|
+
call$b(nativeThen, that, resolve, reject);
|
|
5287
5282
|
}).then(onFulfilled, onRejected);
|
|
5288
5283
|
// https://github.com/zloirock/core-js/issues/640
|
|
5289
5284
|
}, { unsafe: true });
|
|
@@ -5295,13 +5290,13 @@ if (FORCED_PROMISE_CONSTRUCTOR$4) {
|
|
|
5295
5290
|
} catch (error) { /* empty */ }
|
|
5296
5291
|
|
|
5297
5292
|
// make `instanceof Promise` work for native promise-based APIs
|
|
5298
|
-
if (setPrototypeOf$
|
|
5299
|
-
setPrototypeOf$
|
|
5293
|
+
if (setPrototypeOf$1) {
|
|
5294
|
+
setPrototypeOf$1(NativePromisePrototype$1, PromisePrototype);
|
|
5300
5295
|
}
|
|
5301
5296
|
}
|
|
5302
5297
|
}
|
|
5303
5298
|
|
|
5304
|
-
$$
|
|
5299
|
+
$$7({ global: true, constructor: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
|
|
5305
5300
|
Promise: PromiseConstructor
|
|
5306
5301
|
});
|
|
5307
5302
|
|
|
@@ -5310,46 +5305,46 @@ setSpecies(PROMISE);
|
|
|
5310
5305
|
|
|
5311
5306
|
var iterators = {};
|
|
5312
5307
|
|
|
5313
|
-
var wellKnownSymbol$
|
|
5308
|
+
var wellKnownSymbol$8 = wellKnownSymbol$g;
|
|
5314
5309
|
var Iterators$4 = iterators;
|
|
5315
5310
|
|
|
5316
|
-
var ITERATOR$
|
|
5311
|
+
var ITERATOR$5 = wellKnownSymbol$8('iterator');
|
|
5317
5312
|
var ArrayPrototype$1 = Array.prototype;
|
|
5318
5313
|
|
|
5319
5314
|
// check on default Array iterator
|
|
5320
5315
|
var isArrayIteratorMethod$1 = function (it) {
|
|
5321
|
-
return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$
|
|
5316
|
+
return it !== undefined && (Iterators$4.Array === it || ArrayPrototype$1[ITERATOR$5] === it);
|
|
5322
5317
|
};
|
|
5323
5318
|
|
|
5324
|
-
var classof$
|
|
5319
|
+
var classof$2 = classof$4;
|
|
5325
5320
|
var getMethod$3 = getMethod$5;
|
|
5326
5321
|
var isNullOrUndefined$2 = isNullOrUndefined$6;
|
|
5327
5322
|
var Iterators$3 = iterators;
|
|
5328
|
-
var wellKnownSymbol$
|
|
5323
|
+
var wellKnownSymbol$7 = wellKnownSymbol$g;
|
|
5329
5324
|
|
|
5330
|
-
var ITERATOR$
|
|
5325
|
+
var ITERATOR$4 = wellKnownSymbol$7('iterator');
|
|
5331
5326
|
|
|
5332
5327
|
var getIteratorMethod$2 = function (it) {
|
|
5333
|
-
if (!isNullOrUndefined$2(it)) return getMethod$3(it, ITERATOR$
|
|
5328
|
+
if (!isNullOrUndefined$2(it)) return getMethod$3(it, ITERATOR$4)
|
|
5334
5329
|
|| getMethod$3(it, '@@iterator')
|
|
5335
|
-
|| Iterators$3[classof$
|
|
5330
|
+
|| Iterators$3[classof$2(it)];
|
|
5336
5331
|
};
|
|
5337
5332
|
|
|
5338
|
-
var call$
|
|
5333
|
+
var call$a = functionCall;
|
|
5339
5334
|
var aCallable$2 = aCallable$8;
|
|
5340
5335
|
var anObject$9 = anObject$d;
|
|
5341
5336
|
var tryToString$1 = tryToString$4;
|
|
5342
5337
|
var getIteratorMethod$1 = getIteratorMethod$2;
|
|
5343
5338
|
|
|
5344
|
-
var $TypeError$
|
|
5339
|
+
var $TypeError$2 = TypeError;
|
|
5345
5340
|
|
|
5346
5341
|
var getIterator$1 = function (argument, usingIterator) {
|
|
5347
5342
|
var iteratorMethod = arguments.length < 2 ? getIteratorMethod$1(argument) : usingIterator;
|
|
5348
|
-
if (aCallable$2(iteratorMethod)) return anObject$9(call$
|
|
5349
|
-
throw new $TypeError$
|
|
5343
|
+
if (aCallable$2(iteratorMethod)) return anObject$9(call$a(iteratorMethod, argument));
|
|
5344
|
+
throw new $TypeError$2(tryToString$1(argument) + ' is not iterable');
|
|
5350
5345
|
};
|
|
5351
5346
|
|
|
5352
|
-
var call$
|
|
5347
|
+
var call$9 = functionCall;
|
|
5353
5348
|
var anObject$8 = anObject$d;
|
|
5354
5349
|
var getMethod$2 = getMethod$5;
|
|
5355
5350
|
|
|
@@ -5362,7 +5357,7 @@ var iteratorClose$1 = function (iterator, kind, value) {
|
|
|
5362
5357
|
if (kind === 'throw') throw value;
|
|
5363
5358
|
return value;
|
|
5364
5359
|
}
|
|
5365
|
-
innerResult = call$
|
|
5360
|
+
innerResult = call$9(innerResult, iterator);
|
|
5366
5361
|
} catch (error) {
|
|
5367
5362
|
innerError = true;
|
|
5368
5363
|
innerResult = error;
|
|
@@ -5374,17 +5369,17 @@ var iteratorClose$1 = function (iterator, kind, value) {
|
|
|
5374
5369
|
};
|
|
5375
5370
|
|
|
5376
5371
|
var bind = functionBindContext;
|
|
5377
|
-
var call$
|
|
5372
|
+
var call$8 = functionCall;
|
|
5378
5373
|
var anObject$7 = anObject$d;
|
|
5379
5374
|
var tryToString = tryToString$4;
|
|
5380
5375
|
var isArrayIteratorMethod = isArrayIteratorMethod$1;
|
|
5381
5376
|
var lengthOfArrayLike = lengthOfArrayLike$2;
|
|
5382
|
-
var isPrototypeOf
|
|
5377
|
+
var isPrototypeOf = objectIsPrototypeOf;
|
|
5383
5378
|
var getIterator = getIterator$1;
|
|
5384
5379
|
var getIteratorMethod = getIteratorMethod$2;
|
|
5385
5380
|
var iteratorClose = iteratorClose$1;
|
|
5386
5381
|
|
|
5387
|
-
var $TypeError$
|
|
5382
|
+
var $TypeError$1 = TypeError;
|
|
5388
5383
|
|
|
5389
5384
|
var Result = function (stopped, result) {
|
|
5390
5385
|
this.stopped = stopped;
|
|
@@ -5420,31 +5415,31 @@ var iterate$2 = function (iterable, unboundFunction, options) {
|
|
|
5420
5415
|
iterator = iterable;
|
|
5421
5416
|
} else {
|
|
5422
5417
|
iterFn = getIteratorMethod(iterable);
|
|
5423
|
-
if (!iterFn) throw new $TypeError$
|
|
5418
|
+
if (!iterFn) throw new $TypeError$1(tryToString(iterable) + ' is not iterable');
|
|
5424
5419
|
// optimisation for array iterators
|
|
5425
5420
|
if (isArrayIteratorMethod(iterFn)) {
|
|
5426
5421
|
for (index = 0, length = lengthOfArrayLike(iterable); length > index; index++) {
|
|
5427
5422
|
result = callFn(iterable[index]);
|
|
5428
|
-
if (result && isPrototypeOf
|
|
5423
|
+
if (result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
5429
5424
|
} return new Result(false);
|
|
5430
5425
|
}
|
|
5431
5426
|
iterator = getIterator(iterable, iterFn);
|
|
5432
5427
|
}
|
|
5433
5428
|
|
|
5434
5429
|
next = IS_RECORD ? iterable.next : iterator.next;
|
|
5435
|
-
while (!(step = call$
|
|
5430
|
+
while (!(step = call$8(next, iterator)).done) {
|
|
5436
5431
|
try {
|
|
5437
5432
|
result = callFn(step.value);
|
|
5438
5433
|
} catch (error) {
|
|
5439
5434
|
iteratorClose(iterator, 'throw', error);
|
|
5440
5435
|
}
|
|
5441
|
-
if (typeof result == 'object' && result && isPrototypeOf
|
|
5436
|
+
if (typeof result == 'object' && result && isPrototypeOf(ResultPrototype, result)) return result;
|
|
5442
5437
|
} return new Result(false);
|
|
5443
5438
|
};
|
|
5444
5439
|
|
|
5445
|
-
var wellKnownSymbol$
|
|
5440
|
+
var wellKnownSymbol$6 = wellKnownSymbol$g;
|
|
5446
5441
|
|
|
5447
|
-
var ITERATOR$
|
|
5442
|
+
var ITERATOR$3 = wellKnownSymbol$6('iterator');
|
|
5448
5443
|
var SAFE_CLOSING = false;
|
|
5449
5444
|
|
|
5450
5445
|
try {
|
|
@@ -5457,7 +5452,7 @@ try {
|
|
|
5457
5452
|
SAFE_CLOSING = true;
|
|
5458
5453
|
}
|
|
5459
5454
|
};
|
|
5460
|
-
iteratorWithReturn[ITERATOR$
|
|
5455
|
+
iteratorWithReturn[ITERATOR$3] = function () {
|
|
5461
5456
|
return this;
|
|
5462
5457
|
};
|
|
5463
5458
|
// eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
|
|
@@ -5471,7 +5466,7 @@ var checkCorrectnessOfIteration$1 = function (exec, SKIP_CLOSING) {
|
|
|
5471
5466
|
var ITERATION_SUPPORT = false;
|
|
5472
5467
|
try {
|
|
5473
5468
|
var object = {};
|
|
5474
|
-
object[ITERATOR$
|
|
5469
|
+
object[ITERATOR$3] = function () {
|
|
5475
5470
|
return {
|
|
5476
5471
|
next: function () {
|
|
5477
5472
|
return { done: ITERATION_SUPPORT = true };
|
|
@@ -5491,8 +5486,8 @@ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCor
|
|
|
5491
5486
|
NativePromiseConstructor$1.all(iterable).then(undefined, function () { /* empty */ });
|
|
5492
5487
|
});
|
|
5493
5488
|
|
|
5494
|
-
var $$
|
|
5495
|
-
var call$
|
|
5489
|
+
var $$6 = _export;
|
|
5490
|
+
var call$7 = functionCall;
|
|
5496
5491
|
var aCallable$1 = aCallable$8;
|
|
5497
5492
|
var newPromiseCapabilityModule$2 = newPromiseCapability$2;
|
|
5498
5493
|
var perform$1 = perform$3;
|
|
@@ -5501,7 +5496,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION$1 = promiseStaticsIncorrectIteration;
|
|
|
5501
5496
|
|
|
5502
5497
|
// `Promise.all` method
|
|
5503
5498
|
// https://tc39.es/ecma262/#sec-promise.all
|
|
5504
|
-
$$
|
|
5499
|
+
$$6({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION$1 }, {
|
|
5505
5500
|
all: function all(iterable) {
|
|
5506
5501
|
var C = this;
|
|
5507
5502
|
var capability = newPromiseCapabilityModule$2.f(C);
|
|
@@ -5516,7 +5511,7 @@ $$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
5516
5511
|
var index = counter++;
|
|
5517
5512
|
var alreadyCalled = false;
|
|
5518
5513
|
remaining++;
|
|
5519
|
-
call$
|
|
5514
|
+
call$7($promiseResolve, C, promise).then(function (value) {
|
|
5520
5515
|
if (alreadyCalled) return;
|
|
5521
5516
|
alreadyCalled = true;
|
|
5522
5517
|
values[index] = value;
|
|
@@ -5530,33 +5525,33 @@ $$b({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
5530
5525
|
}
|
|
5531
5526
|
});
|
|
5532
5527
|
|
|
5533
|
-
var $$
|
|
5528
|
+
var $$5 = _export;
|
|
5534
5529
|
var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
|
|
5535
5530
|
var NativePromiseConstructor = promiseNativeConstructor;
|
|
5536
|
-
var getBuiltIn$
|
|
5537
|
-
var isCallable$
|
|
5531
|
+
var getBuiltIn$1 = getBuiltIn$7;
|
|
5532
|
+
var isCallable$5 = isCallable$l;
|
|
5538
5533
|
var defineBuiltIn$3 = defineBuiltIn$6;
|
|
5539
5534
|
|
|
5540
5535
|
var NativePromisePrototype = NativePromiseConstructor && NativePromiseConstructor.prototype;
|
|
5541
5536
|
|
|
5542
5537
|
// `Promise.prototype.catch` method
|
|
5543
5538
|
// https://tc39.es/ecma262/#sec-promise.prototype.catch
|
|
5544
|
-
$$
|
|
5539
|
+
$$5({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
|
|
5545
5540
|
'catch': function (onRejected) {
|
|
5546
5541
|
return this.then(undefined, onRejected);
|
|
5547
5542
|
}
|
|
5548
5543
|
});
|
|
5549
5544
|
|
|
5550
5545
|
// makes sure that native promise-based APIs `Promise#catch` properly works with patched `Promise#then`
|
|
5551
|
-
if (isCallable$
|
|
5552
|
-
var method = getBuiltIn$
|
|
5546
|
+
if (isCallable$5(NativePromiseConstructor)) {
|
|
5547
|
+
var method = getBuiltIn$1('Promise').prototype['catch'];
|
|
5553
5548
|
if (NativePromisePrototype['catch'] !== method) {
|
|
5554
5549
|
defineBuiltIn$3(NativePromisePrototype, 'catch', method, { unsafe: true });
|
|
5555
5550
|
}
|
|
5556
5551
|
}
|
|
5557
5552
|
|
|
5558
|
-
var $$
|
|
5559
|
-
var call$
|
|
5553
|
+
var $$4 = _export;
|
|
5554
|
+
var call$6 = functionCall;
|
|
5560
5555
|
var aCallable = aCallable$8;
|
|
5561
5556
|
var newPromiseCapabilityModule$1 = newPromiseCapability$2;
|
|
5562
5557
|
var perform = perform$3;
|
|
@@ -5565,7 +5560,7 @@ var PROMISE_STATICS_INCORRECT_ITERATION = promiseStaticsIncorrectIteration;
|
|
|
5565
5560
|
|
|
5566
5561
|
// `Promise.race` method
|
|
5567
5562
|
// https://tc39.es/ecma262/#sec-promise.race
|
|
5568
|
-
$$
|
|
5563
|
+
$$4({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION }, {
|
|
5569
5564
|
race: function race(iterable) {
|
|
5570
5565
|
var C = this;
|
|
5571
5566
|
var capability = newPromiseCapabilityModule$1.f(C);
|
|
@@ -5573,7 +5568,7 @@ $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
5573
5568
|
var result = perform(function () {
|
|
5574
5569
|
var $promiseResolve = aCallable(C.resolve);
|
|
5575
5570
|
iterate(iterable, function (promise) {
|
|
5576
|
-
call$
|
|
5571
|
+
call$6($promiseResolve, C, promise).then(capability.resolve, reject);
|
|
5577
5572
|
});
|
|
5578
5573
|
});
|
|
5579
5574
|
if (result.error) reject(result.value);
|
|
@@ -5581,13 +5576,13 @@ $$9({ target: 'Promise', stat: true, forced: PROMISE_STATICS_INCORRECT_ITERATION
|
|
|
5581
5576
|
}
|
|
5582
5577
|
});
|
|
5583
5578
|
|
|
5584
|
-
var $$
|
|
5579
|
+
var $$3 = _export;
|
|
5585
5580
|
var newPromiseCapabilityModule = newPromiseCapability$2;
|
|
5586
5581
|
var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
|
|
5587
5582
|
|
|
5588
5583
|
// `Promise.reject` method
|
|
5589
5584
|
// https://tc39.es/ecma262/#sec-promise.reject
|
|
5590
|
-
$$
|
|
5585
|
+
$$3({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
5591
5586
|
reject: function reject(r) {
|
|
5592
5587
|
var capability = newPromiseCapabilityModule.f(this);
|
|
5593
5588
|
var capabilityReject = capability.reject;
|
|
@@ -5597,40 +5592,40 @@ $$8({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
|
|
|
5597
5592
|
});
|
|
5598
5593
|
|
|
5599
5594
|
var anObject$6 = anObject$d;
|
|
5600
|
-
var isObject$
|
|
5595
|
+
var isObject$1 = isObject$a;
|
|
5601
5596
|
var newPromiseCapability = newPromiseCapability$2;
|
|
5602
5597
|
|
|
5603
5598
|
var promiseResolve$1 = function (C, x) {
|
|
5604
5599
|
anObject$6(C);
|
|
5605
|
-
if (isObject$
|
|
5600
|
+
if (isObject$1(x) && x.constructor === C) return x;
|
|
5606
5601
|
var promiseCapability = newPromiseCapability.f(C);
|
|
5607
5602
|
var resolve = promiseCapability.resolve;
|
|
5608
5603
|
resolve(x);
|
|
5609
5604
|
return promiseCapability.promise;
|
|
5610
5605
|
};
|
|
5611
5606
|
|
|
5612
|
-
var $$
|
|
5613
|
-
var getBuiltIn
|
|
5607
|
+
var $$2 = _export;
|
|
5608
|
+
var getBuiltIn = getBuiltIn$7;
|
|
5614
5609
|
var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
|
|
5615
5610
|
var promiseResolve = promiseResolve$1;
|
|
5616
5611
|
|
|
5617
|
-
getBuiltIn
|
|
5612
|
+
getBuiltIn('Promise');
|
|
5618
5613
|
|
|
5619
5614
|
// `Promise.resolve` method
|
|
5620
5615
|
// https://tc39.es/ecma262/#sec-promise.resolve
|
|
5621
|
-
$$
|
|
5616
|
+
$$2({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR }, {
|
|
5622
5617
|
resolve: function resolve(x) {
|
|
5623
5618
|
return promiseResolve(this, x);
|
|
5624
5619
|
}
|
|
5625
5620
|
});
|
|
5626
5621
|
|
|
5627
|
-
var classof$
|
|
5622
|
+
var classof$1 = classof$4;
|
|
5628
5623
|
|
|
5629
|
-
var $String
|
|
5624
|
+
var $String = String;
|
|
5630
5625
|
|
|
5631
|
-
var toString$
|
|
5632
|
-
if (classof$
|
|
5633
|
-
return $String
|
|
5626
|
+
var toString$4 = function (argument) {
|
|
5627
|
+
if (classof$1(argument) === 'Symbol') throw new TypeError('Cannot convert a Symbol value to a string');
|
|
5628
|
+
return $String(argument);
|
|
5634
5629
|
};
|
|
5635
5630
|
|
|
5636
5631
|
var anObject$5 = anObject$d;
|
|
@@ -5651,13 +5646,13 @@ var regexpFlags$1 = function () {
|
|
|
5651
5646
|
return result;
|
|
5652
5647
|
};
|
|
5653
5648
|
|
|
5654
|
-
var fails$
|
|
5655
|
-
var global$
|
|
5649
|
+
var fails$6 = fails$i;
|
|
5650
|
+
var global$4 = global$l;
|
|
5656
5651
|
|
|
5657
5652
|
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
|
5658
|
-
var $RegExp$2 = global$
|
|
5653
|
+
var $RegExp$2 = global$4.RegExp;
|
|
5659
5654
|
|
|
5660
|
-
var UNSUPPORTED_Y$1 = fails$
|
|
5655
|
+
var UNSUPPORTED_Y$1 = fails$6(function () {
|
|
5661
5656
|
var re = $RegExp$2('a', 'y');
|
|
5662
5657
|
re.lastIndex = 2;
|
|
5663
5658
|
return re.exec('abcd') !== null;
|
|
@@ -5665,11 +5660,11 @@ var UNSUPPORTED_Y$1 = fails$a(function () {
|
|
|
5665
5660
|
|
|
5666
5661
|
// UC Browser bug
|
|
5667
5662
|
// https://github.com/zloirock/core-js/issues/1008
|
|
5668
|
-
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$
|
|
5663
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails$6(function () {
|
|
5669
5664
|
return !$RegExp$2('a', 'y').sticky;
|
|
5670
5665
|
});
|
|
5671
5666
|
|
|
5672
|
-
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$
|
|
5667
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails$6(function () {
|
|
5673
5668
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
|
5674
5669
|
var re = $RegExp$2('^r', 'gy');
|
|
5675
5670
|
re.lastIndex = 2;
|
|
@@ -5684,7 +5679,7 @@ var regexpStickyHelpers = {
|
|
|
5684
5679
|
|
|
5685
5680
|
var objectDefineProperties = {};
|
|
5686
5681
|
|
|
5687
|
-
var DESCRIPTORS$
|
|
5682
|
+
var DESCRIPTORS$1 = descriptors;
|
|
5688
5683
|
var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
|
|
5689
5684
|
var definePropertyModule = objectDefineProperty;
|
|
5690
5685
|
var anObject$4 = anObject$d;
|
|
@@ -5694,7 +5689,7 @@ var objectKeys = objectKeys$2;
|
|
|
5694
5689
|
// `Object.defineProperties` method
|
|
5695
5690
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
|
5696
5691
|
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
|
5697
|
-
objectDefineProperties.f = DESCRIPTORS$
|
|
5692
|
+
objectDefineProperties.f = DESCRIPTORS$1 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
|
|
5698
5693
|
anObject$4(O);
|
|
5699
5694
|
var props = toIndexedObject$1(Properties);
|
|
5700
5695
|
var keys = objectKeys(Properties);
|
|
@@ -5789,24 +5784,24 @@ var objectCreate = Object.create || function create(O, Properties) {
|
|
|
5789
5784
|
return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
|
|
5790
5785
|
};
|
|
5791
5786
|
|
|
5792
|
-
var fails$
|
|
5793
|
-
var global$
|
|
5787
|
+
var fails$5 = fails$i;
|
|
5788
|
+
var global$3 = global$l;
|
|
5794
5789
|
|
|
5795
5790
|
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
|
5796
|
-
var $RegExp$1 = global$
|
|
5791
|
+
var $RegExp$1 = global$3.RegExp;
|
|
5797
5792
|
|
|
5798
|
-
var regexpUnsupportedDotAll = fails$
|
|
5793
|
+
var regexpUnsupportedDotAll = fails$5(function () {
|
|
5799
5794
|
var re = $RegExp$1('.', 's');
|
|
5800
5795
|
return !(re.dotAll && re.test('\n') && re.flags === 's');
|
|
5801
5796
|
});
|
|
5802
5797
|
|
|
5803
|
-
var fails$
|
|
5804
|
-
var global$
|
|
5798
|
+
var fails$4 = fails$i;
|
|
5799
|
+
var global$2 = global$l;
|
|
5805
5800
|
|
|
5806
5801
|
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
|
5807
|
-
var $RegExp = global$
|
|
5802
|
+
var $RegExp = global$2.RegExp;
|
|
5808
5803
|
|
|
5809
|
-
var regexpUnsupportedNcg = fails$
|
|
5804
|
+
var regexpUnsupportedNcg = fails$4(function () {
|
|
5810
5805
|
var re = $RegExp('(?<a>b)', 'g');
|
|
5811
5806
|
return re.exec('b').groups.a !== 'b' ||
|
|
5812
5807
|
'b'.replace(re, '$<a>c') !== 'bc';
|
|
@@ -5814,9 +5809,9 @@ var regexpUnsupportedNcg = fails$8(function () {
|
|
|
5814
5809
|
|
|
5815
5810
|
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
|
5816
5811
|
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
|
5817
|
-
var call$
|
|
5818
|
-
var uncurryThis$
|
|
5819
|
-
var toString$
|
|
5812
|
+
var call$5 = functionCall;
|
|
5813
|
+
var uncurryThis$3 = functionUncurryThis;
|
|
5814
|
+
var toString$3 = toString$4;
|
|
5820
5815
|
var regexpFlags = regexpFlags$1;
|
|
5821
5816
|
var stickyHelpers = regexpStickyHelpers;
|
|
5822
5817
|
var shared = shared$4;
|
|
@@ -5828,16 +5823,16 @@ var UNSUPPORTED_NCG = regexpUnsupportedNcg;
|
|
|
5828
5823
|
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
|
5829
5824
|
var nativeExec = RegExp.prototype.exec;
|
|
5830
5825
|
var patchedExec = nativeExec;
|
|
5831
|
-
var charAt$
|
|
5832
|
-
var indexOf = uncurryThis$
|
|
5833
|
-
var replace$
|
|
5834
|
-
var stringSlice$3 = uncurryThis$
|
|
5826
|
+
var charAt$3 = uncurryThis$3(''.charAt);
|
|
5827
|
+
var indexOf = uncurryThis$3(''.indexOf);
|
|
5828
|
+
var replace$1 = uncurryThis$3(''.replace);
|
|
5829
|
+
var stringSlice$3 = uncurryThis$3(''.slice);
|
|
5835
5830
|
|
|
5836
5831
|
var UPDATES_LAST_INDEX_WRONG = (function () {
|
|
5837
5832
|
var re1 = /a/;
|
|
5838
5833
|
var re2 = /b*/g;
|
|
5839
|
-
call$
|
|
5840
|
-
call$
|
|
5834
|
+
call$5(nativeExec, re1, 'a');
|
|
5835
|
+
call$5(nativeExec, re2, 'a');
|
|
5841
5836
|
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
|
5842
5837
|
})();
|
|
5843
5838
|
|
|
@@ -5852,33 +5847,33 @@ if (PATCH) {
|
|
|
5852
5847
|
patchedExec = function exec(string) {
|
|
5853
5848
|
var re = this;
|
|
5854
5849
|
var state = getInternalState$1(re);
|
|
5855
|
-
var str = toString$
|
|
5850
|
+
var str = toString$3(string);
|
|
5856
5851
|
var raw = state.raw;
|
|
5857
5852
|
var result, reCopy, lastIndex, match, i, object, group;
|
|
5858
5853
|
|
|
5859
5854
|
if (raw) {
|
|
5860
5855
|
raw.lastIndex = re.lastIndex;
|
|
5861
|
-
result = call$
|
|
5856
|
+
result = call$5(patchedExec, raw, str);
|
|
5862
5857
|
re.lastIndex = raw.lastIndex;
|
|
5863
5858
|
return result;
|
|
5864
5859
|
}
|
|
5865
5860
|
|
|
5866
5861
|
var groups = state.groups;
|
|
5867
5862
|
var sticky = UNSUPPORTED_Y && re.sticky;
|
|
5868
|
-
var flags = call$
|
|
5863
|
+
var flags = call$5(regexpFlags, re);
|
|
5869
5864
|
var source = re.source;
|
|
5870
5865
|
var charsAdded = 0;
|
|
5871
5866
|
var strCopy = str;
|
|
5872
5867
|
|
|
5873
5868
|
if (sticky) {
|
|
5874
|
-
flags = replace$
|
|
5869
|
+
flags = replace$1(flags, 'y', '');
|
|
5875
5870
|
if (indexOf(flags, 'g') === -1) {
|
|
5876
5871
|
flags += 'g';
|
|
5877
5872
|
}
|
|
5878
5873
|
|
|
5879
5874
|
strCopy = stringSlice$3(str, re.lastIndex);
|
|
5880
5875
|
// Support anchored sticky behavior.
|
|
5881
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$
|
|
5876
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
|
5882
5877
|
source = '(?: ' + source + ')';
|
|
5883
5878
|
strCopy = ' ' + strCopy;
|
|
5884
5879
|
charsAdded++;
|
|
@@ -5893,7 +5888,7 @@ if (PATCH) {
|
|
|
5893
5888
|
}
|
|
5894
5889
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
|
5895
5890
|
|
|
5896
|
-
match = call$
|
|
5891
|
+
match = call$5(nativeExec, sticky ? reCopy : re, strCopy);
|
|
5897
5892
|
|
|
5898
5893
|
if (sticky) {
|
|
5899
5894
|
if (match) {
|
|
@@ -5908,7 +5903,7 @@ if (PATCH) {
|
|
|
5908
5903
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
|
5909
5904
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
|
5910
5905
|
// for NPCG, like IE8. NOTE: This doesn't work for /(.?)?/
|
|
5911
|
-
call$
|
|
5906
|
+
call$5(nativeReplace, match[0], reCopy, function () {
|
|
5912
5907
|
for (i = 1; i < arguments.length - 2; i++) {
|
|
5913
5908
|
if (arguments[i] === undefined) match[i] = undefined;
|
|
5914
5909
|
}
|
|
@@ -5929,38 +5924,38 @@ if (PATCH) {
|
|
|
5929
5924
|
|
|
5930
5925
|
var regexpExec$2 = patchedExec;
|
|
5931
5926
|
|
|
5932
|
-
var $$
|
|
5933
|
-
var exec
|
|
5927
|
+
var $$1 = _export;
|
|
5928
|
+
var exec = regexpExec$2;
|
|
5934
5929
|
|
|
5935
5930
|
// `RegExp.prototype.exec` method
|
|
5936
5931
|
// https://tc39.es/ecma262/#sec-regexp.prototype.exec
|
|
5937
|
-
$$
|
|
5938
|
-
exec: exec
|
|
5932
|
+
$$1({ target: 'RegExp', proto: true, forced: /./.exec !== exec }, {
|
|
5933
|
+
exec: exec
|
|
5939
5934
|
});
|
|
5940
5935
|
|
|
5941
5936
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
|
5942
5937
|
|
|
5943
|
-
var call$
|
|
5938
|
+
var call$4 = functionCall;
|
|
5944
5939
|
var defineBuiltIn$2 = defineBuiltIn$6;
|
|
5945
5940
|
var regexpExec$1 = regexpExec$2;
|
|
5946
|
-
var fails$
|
|
5947
|
-
var wellKnownSymbol$
|
|
5948
|
-
var createNonEnumerableProperty$
|
|
5941
|
+
var fails$3 = fails$i;
|
|
5942
|
+
var wellKnownSymbol$5 = wellKnownSymbol$g;
|
|
5943
|
+
var createNonEnumerableProperty$2 = createNonEnumerableProperty$5;
|
|
5949
5944
|
|
|
5950
|
-
var SPECIES = wellKnownSymbol$
|
|
5945
|
+
var SPECIES = wellKnownSymbol$5('species');
|
|
5951
5946
|
var RegExpPrototype = RegExp.prototype;
|
|
5952
5947
|
|
|
5953
5948
|
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
5954
|
-
var SYMBOL = wellKnownSymbol$
|
|
5949
|
+
var SYMBOL = wellKnownSymbol$5(KEY);
|
|
5955
5950
|
|
|
5956
|
-
var DELEGATES_TO_SYMBOL = !fails$
|
|
5951
|
+
var DELEGATES_TO_SYMBOL = !fails$3(function () {
|
|
5957
5952
|
// String methods call symbol-named RegExp methods
|
|
5958
5953
|
var O = {};
|
|
5959
5954
|
O[SYMBOL] = function () { return 7; };
|
|
5960
5955
|
return ''[KEY](O) !== 7;
|
|
5961
5956
|
});
|
|
5962
5957
|
|
|
5963
|
-
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$
|
|
5958
|
+
var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails$3(function () {
|
|
5964
5959
|
// Symbol-named RegExp methods call .exec
|
|
5965
5960
|
var execCalled = false;
|
|
5966
5961
|
var re = /a/;
|
|
@@ -6000,9 +5995,9 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
6000
5995
|
// The native String method already delegates to @@method (this
|
|
6001
5996
|
// polyfilled function), leasing to infinite recursion.
|
|
6002
5997
|
// We avoid it by directly calling the native @@method method.
|
|
6003
|
-
return { done: true, value: call$
|
|
5998
|
+
return { done: true, value: call$4(nativeRegExpMethod, regexp, str, arg2) };
|
|
6004
5999
|
}
|
|
6005
|
-
return { done: true, value: call$
|
|
6000
|
+
return { done: true, value: call$4(nativeMethod, str, regexp, arg2) };
|
|
6006
6001
|
}
|
|
6007
6002
|
return { done: false };
|
|
6008
6003
|
});
|
|
@@ -6011,30 +6006,30 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
|
|
6011
6006
|
defineBuiltIn$2(RegExpPrototype, SYMBOL, methods[1]);
|
|
6012
6007
|
}
|
|
6013
6008
|
|
|
6014
|
-
if (SHAM) createNonEnumerableProperty$
|
|
6009
|
+
if (SHAM) createNonEnumerableProperty$2(RegExpPrototype[SYMBOL], 'sham', true);
|
|
6015
6010
|
};
|
|
6016
6011
|
|
|
6017
|
-
var uncurryThis$
|
|
6012
|
+
var uncurryThis$2 = functionUncurryThis;
|
|
6018
6013
|
var toIntegerOrInfinity$1 = toIntegerOrInfinity$4;
|
|
6019
|
-
var toString$
|
|
6020
|
-
var requireObjectCoercible$
|
|
6014
|
+
var toString$2 = toString$4;
|
|
6015
|
+
var requireObjectCoercible$2 = requireObjectCoercible$6;
|
|
6021
6016
|
|
|
6022
|
-
var charAt$
|
|
6023
|
-
var charCodeAt
|
|
6024
|
-
var stringSlice$2 = uncurryThis$
|
|
6017
|
+
var charAt$2 = uncurryThis$2(''.charAt);
|
|
6018
|
+
var charCodeAt = uncurryThis$2(''.charCodeAt);
|
|
6019
|
+
var stringSlice$2 = uncurryThis$2(''.slice);
|
|
6025
6020
|
|
|
6026
|
-
var createMethod
|
|
6021
|
+
var createMethod = function (CONVERT_TO_STRING) {
|
|
6027
6022
|
return function ($this, pos) {
|
|
6028
|
-
var S = toString$
|
|
6023
|
+
var S = toString$2(requireObjectCoercible$2($this));
|
|
6029
6024
|
var position = toIntegerOrInfinity$1(pos);
|
|
6030
6025
|
var size = S.length;
|
|
6031
6026
|
var first, second;
|
|
6032
6027
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
|
6033
|
-
first = charCodeAt
|
|
6028
|
+
first = charCodeAt(S, position);
|
|
6034
6029
|
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
|
6035
|
-
|| (second = charCodeAt
|
|
6030
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
|
6036
6031
|
? CONVERT_TO_STRING
|
|
6037
|
-
? charAt$
|
|
6032
|
+
? charAt$2(S, position)
|
|
6038
6033
|
: first
|
|
6039
6034
|
: CONVERT_TO_STRING
|
|
6040
6035
|
? stringSlice$2(S, position, position + 2)
|
|
@@ -6045,27 +6040,27 @@ var createMethod$1 = function (CONVERT_TO_STRING) {
|
|
|
6045
6040
|
var stringMultibyte = {
|
|
6046
6041
|
// `String.prototype.codePointAt` method
|
|
6047
6042
|
// https://tc39.es/ecma262/#sec-string.prototype.codepointat
|
|
6048
|
-
codeAt: createMethod
|
|
6043
|
+
codeAt: createMethod(false),
|
|
6049
6044
|
// `String.prototype.at` method
|
|
6050
6045
|
// https://github.com/mathiasbynens/String.prototype.at
|
|
6051
|
-
charAt: createMethod
|
|
6046
|
+
charAt: createMethod(true)
|
|
6052
6047
|
};
|
|
6053
6048
|
|
|
6054
|
-
var charAt$
|
|
6049
|
+
var charAt$1 = stringMultibyte.charAt;
|
|
6055
6050
|
|
|
6056
6051
|
// `AdvanceStringIndex` abstract operation
|
|
6057
6052
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
|
6058
6053
|
var advanceStringIndex$1 = function (S, index, unicode) {
|
|
6059
|
-
return index + (unicode ? charAt$
|
|
6054
|
+
return index + (unicode ? charAt$1(S, index).length : 1);
|
|
6060
6055
|
};
|
|
6061
6056
|
|
|
6062
|
-
var uncurryThis$
|
|
6057
|
+
var uncurryThis$1 = functionUncurryThis;
|
|
6063
6058
|
var toObject$1 = toObject$4;
|
|
6064
6059
|
|
|
6065
6060
|
var floor = Math.floor;
|
|
6066
|
-
var charAt
|
|
6067
|
-
var replace
|
|
6068
|
-
var stringSlice$1 = uncurryThis$
|
|
6061
|
+
var charAt = uncurryThis$1(''.charAt);
|
|
6062
|
+
var replace = uncurryThis$1(''.replace);
|
|
6063
|
+
var stringSlice$1 = uncurryThis$1(''.slice);
|
|
6069
6064
|
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
6070
6065
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
|
6071
6066
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
|
@@ -6080,9 +6075,9 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
6080
6075
|
namedCaptures = toObject$1(namedCaptures);
|
|
6081
6076
|
symbols = SUBSTITUTION_SYMBOLS;
|
|
6082
6077
|
}
|
|
6083
|
-
return replace
|
|
6078
|
+
return replace(replacement, symbols, function (match, ch) {
|
|
6084
6079
|
var capture;
|
|
6085
|
-
switch (charAt
|
|
6080
|
+
switch (charAt(ch, 0)) {
|
|
6086
6081
|
case '$': return '$';
|
|
6087
6082
|
case '&': return matched;
|
|
6088
6083
|
case '`': return stringSlice$1(str, 0, position);
|
|
@@ -6096,7 +6091,7 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
6096
6091
|
if (n > m) {
|
|
6097
6092
|
var f = floor(n / 10);
|
|
6098
6093
|
if (f === 0) return match;
|
|
6099
|
-
if (f <= m) return captures[f - 1] === undefined ? charAt
|
|
6094
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
|
6100
6095
|
return match;
|
|
6101
6096
|
}
|
|
6102
6097
|
capture = captures[n - 1];
|
|
@@ -6105,52 +6100,52 @@ var getSubstitution$1 = function (matched, str, position, captures, namedCapture
|
|
|
6105
6100
|
});
|
|
6106
6101
|
};
|
|
6107
6102
|
|
|
6108
|
-
var call$
|
|
6103
|
+
var call$3 = functionCall;
|
|
6109
6104
|
var anObject$2 = anObject$d;
|
|
6110
|
-
var isCallable$
|
|
6111
|
-
var classof
|
|
6105
|
+
var isCallable$4 = isCallable$l;
|
|
6106
|
+
var classof = classofRaw$2;
|
|
6112
6107
|
var regexpExec = regexpExec$2;
|
|
6113
6108
|
|
|
6114
|
-
var $TypeError
|
|
6109
|
+
var $TypeError = TypeError;
|
|
6115
6110
|
|
|
6116
6111
|
// `RegExpExec` abstract operation
|
|
6117
6112
|
// https://tc39.es/ecma262/#sec-regexpexec
|
|
6118
6113
|
var regexpExecAbstract = function (R, S) {
|
|
6119
6114
|
var exec = R.exec;
|
|
6120
|
-
if (isCallable$
|
|
6121
|
-
var result = call$
|
|
6115
|
+
if (isCallable$4(exec)) {
|
|
6116
|
+
var result = call$3(exec, R, S);
|
|
6122
6117
|
if (result !== null) anObject$2(result);
|
|
6123
6118
|
return result;
|
|
6124
6119
|
}
|
|
6125
|
-
if (classof
|
|
6126
|
-
throw new $TypeError
|
|
6120
|
+
if (classof(R) === 'RegExp') return call$3(regexpExec, R, S);
|
|
6121
|
+
throw new $TypeError('RegExp#exec called on incompatible receiver');
|
|
6127
6122
|
};
|
|
6128
6123
|
|
|
6129
|
-
var apply
|
|
6130
|
-
var call$
|
|
6131
|
-
var uncurryThis
|
|
6124
|
+
var apply = functionApply;
|
|
6125
|
+
var call$2 = functionCall;
|
|
6126
|
+
var uncurryThis = functionUncurryThis;
|
|
6132
6127
|
var fixRegExpWellKnownSymbolLogic$1 = fixRegexpWellKnownSymbolLogic;
|
|
6133
|
-
var fails$
|
|
6128
|
+
var fails$2 = fails$i;
|
|
6134
6129
|
var anObject$1 = anObject$d;
|
|
6135
|
-
var isCallable$
|
|
6130
|
+
var isCallable$3 = isCallable$l;
|
|
6136
6131
|
var isNullOrUndefined$1 = isNullOrUndefined$6;
|
|
6137
6132
|
var toIntegerOrInfinity = toIntegerOrInfinity$4;
|
|
6138
6133
|
var toLength = toLength$2;
|
|
6139
|
-
var toString$
|
|
6140
|
-
var requireObjectCoercible$
|
|
6134
|
+
var toString$1 = toString$4;
|
|
6135
|
+
var requireObjectCoercible$1 = requireObjectCoercible$6;
|
|
6141
6136
|
var advanceStringIndex = advanceStringIndex$1;
|
|
6142
6137
|
var getMethod$1 = getMethod$5;
|
|
6143
6138
|
var getSubstitution = getSubstitution$1;
|
|
6144
6139
|
var regExpExec$1 = regexpExecAbstract;
|
|
6145
|
-
var wellKnownSymbol$
|
|
6140
|
+
var wellKnownSymbol$4 = wellKnownSymbol$g;
|
|
6146
6141
|
|
|
6147
|
-
var REPLACE = wellKnownSymbol$
|
|
6142
|
+
var REPLACE = wellKnownSymbol$4('replace');
|
|
6148
6143
|
var max = Math.max;
|
|
6149
6144
|
var min = Math.min;
|
|
6150
|
-
var concat = uncurryThis
|
|
6151
|
-
var push
|
|
6152
|
-
var stringIndexOf
|
|
6153
|
-
var stringSlice = uncurryThis
|
|
6145
|
+
var concat = uncurryThis([].concat);
|
|
6146
|
+
var push = uncurryThis([].push);
|
|
6147
|
+
var stringIndexOf = uncurryThis(''.indexOf);
|
|
6148
|
+
var stringSlice = uncurryThis(''.slice);
|
|
6154
6149
|
|
|
6155
6150
|
var maybeToString = function (it) {
|
|
6156
6151
|
return it === undefined ? it : String(it);
|
|
@@ -6171,7 +6166,7 @@ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
|
|
6171
6166
|
return false;
|
|
6172
6167
|
})();
|
|
6173
6168
|
|
|
6174
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$
|
|
6169
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails$2(function () {
|
|
6175
6170
|
var re = /./;
|
|
6176
6171
|
re.exec = function () {
|
|
6177
6172
|
var result = [];
|
|
@@ -6190,29 +6185,29 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
|
|
|
6190
6185
|
// `String.prototype.replace` method
|
|
6191
6186
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
|
6192
6187
|
function replace(searchValue, replaceValue) {
|
|
6193
|
-
var O = requireObjectCoercible$
|
|
6188
|
+
var O = requireObjectCoercible$1(this);
|
|
6194
6189
|
var replacer = isNullOrUndefined$1(searchValue) ? undefined : getMethod$1(searchValue, REPLACE);
|
|
6195
6190
|
return replacer
|
|
6196
|
-
? call$
|
|
6197
|
-
: call$
|
|
6191
|
+
? call$2(replacer, searchValue, O, replaceValue)
|
|
6192
|
+
: call$2(nativeReplace, toString$1(O), searchValue, replaceValue);
|
|
6198
6193
|
},
|
|
6199
6194
|
// `RegExp.prototype[@@replace]` method
|
|
6200
6195
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
|
6201
6196
|
function (string, replaceValue) {
|
|
6202
6197
|
var rx = anObject$1(this);
|
|
6203
|
-
var S = toString$
|
|
6198
|
+
var S = toString$1(string);
|
|
6204
6199
|
|
|
6205
6200
|
if (
|
|
6206
6201
|
typeof replaceValue == 'string' &&
|
|
6207
|
-
stringIndexOf
|
|
6208
|
-
stringIndexOf
|
|
6202
|
+
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
|
6203
|
+
stringIndexOf(replaceValue, '$<') === -1
|
|
6209
6204
|
) {
|
|
6210
6205
|
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
|
6211
6206
|
if (res.done) return res.value;
|
|
6212
6207
|
}
|
|
6213
6208
|
|
|
6214
|
-
var functionalReplace = isCallable$
|
|
6215
|
-
if (!functionalReplace) replaceValue = toString$
|
|
6209
|
+
var functionalReplace = isCallable$3(replaceValue);
|
|
6210
|
+
if (!functionalReplace) replaceValue = toString$1(replaceValue);
|
|
6216
6211
|
|
|
6217
6212
|
var global = rx.global;
|
|
6218
6213
|
var fullUnicode;
|
|
@@ -6227,10 +6222,10 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
|
|
|
6227
6222
|
result = regExpExec$1(rx, S);
|
|
6228
6223
|
if (result === null) break;
|
|
6229
6224
|
|
|
6230
|
-
push
|
|
6225
|
+
push(results, result);
|
|
6231
6226
|
if (!global) break;
|
|
6232
6227
|
|
|
6233
|
-
var matchStr = toString$
|
|
6228
|
+
var matchStr = toString$1(result[0]);
|
|
6234
6229
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
|
6235
6230
|
}
|
|
6236
6231
|
|
|
@@ -6239,7 +6234,7 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
|
|
|
6239
6234
|
for (var i = 0; i < results.length; i++) {
|
|
6240
6235
|
result = results[i];
|
|
6241
6236
|
|
|
6242
|
-
var matched = toString$
|
|
6237
|
+
var matched = toString$1(result[0]);
|
|
6243
6238
|
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
|
6244
6239
|
var captures = [];
|
|
6245
6240
|
var replacement;
|
|
@@ -6248,12 +6243,12 @@ fixRegExpWellKnownSymbolLogic$1('replace', function (_, nativeReplace, maybeCall
|
|
|
6248
6243
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
|
6249
6244
|
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
|
6250
6245
|
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
|
6251
|
-
for (var j = 1; j < result.length; j++) push
|
|
6246
|
+
for (var j = 1; j < result.length; j++) push(captures, maybeToString(result[j]));
|
|
6252
6247
|
var namedCaptures = result.groups;
|
|
6253
6248
|
if (functionalReplace) {
|
|
6254
6249
|
var replacerArgs = concat([matched], captures, position, S);
|
|
6255
|
-
if (namedCaptures !== undefined) push
|
|
6256
|
-
replacement = toString$
|
|
6250
|
+
if (namedCaptures !== undefined) push(replacerArgs, namedCaptures);
|
|
6251
|
+
replacement = toString$1(apply(replaceValue, undefined, replacerArgs));
|
|
6257
6252
|
} else {
|
|
6258
6253
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
|
6259
6254
|
}
|
|
@@ -6276,13 +6271,13 @@ var sameValue$1 = Object.is || function is(x, y) {
|
|
|
6276
6271
|
return x === y ? x !== 0 || 1 / x === 1 / y : x !== x && y !== y;
|
|
6277
6272
|
};
|
|
6278
6273
|
|
|
6279
|
-
var call$
|
|
6274
|
+
var call$1 = functionCall;
|
|
6280
6275
|
var fixRegExpWellKnownSymbolLogic = fixRegexpWellKnownSymbolLogic;
|
|
6281
6276
|
var anObject = anObject$d;
|
|
6282
6277
|
var isNullOrUndefined = isNullOrUndefined$6;
|
|
6283
|
-
var requireObjectCoercible
|
|
6278
|
+
var requireObjectCoercible = requireObjectCoercible$6;
|
|
6284
6279
|
var sameValue = sameValue$1;
|
|
6285
|
-
var toString
|
|
6280
|
+
var toString = toString$4;
|
|
6286
6281
|
var getMethod = getMethod$5;
|
|
6287
6282
|
var regExpExec = regexpExecAbstract;
|
|
6288
6283
|
|
|
@@ -6292,15 +6287,15 @@ fixRegExpWellKnownSymbolLogic('search', function (SEARCH, nativeSearch, maybeCal
|
|
|
6292
6287
|
// `String.prototype.search` method
|
|
6293
6288
|
// https://tc39.es/ecma262/#sec-string.prototype.search
|
|
6294
6289
|
function search(regexp) {
|
|
6295
|
-
var O = requireObjectCoercible
|
|
6290
|
+
var O = requireObjectCoercible(this);
|
|
6296
6291
|
var searcher = isNullOrUndefined(regexp) ? undefined : getMethod(regexp, SEARCH);
|
|
6297
|
-
return searcher ? call$
|
|
6292
|
+
return searcher ? call$1(searcher, regexp, O) : new RegExp(regexp)[SEARCH](toString(O));
|
|
6298
6293
|
},
|
|
6299
6294
|
// `RegExp.prototype[@@search]` method
|
|
6300
6295
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@search
|
|
6301
6296
|
function (string) {
|
|
6302
6297
|
var rx = anObject(this);
|
|
6303
|
-
var S = toString
|
|
6298
|
+
var S = toString(string);
|
|
6304
6299
|
var res = maybeCallNative(nativeSearch, rx, S);
|
|
6305
6300
|
|
|
6306
6301
|
if (res.done) return res.value;
|
|
@@ -6361,7 +6356,7 @@ function initBackendsLocations() {
|
|
|
6361
6356
|
dBackend = 'https://query.bcrumbs.net';
|
|
6362
6357
|
frontend = 'http://localhost:4200';
|
|
6363
6358
|
apiBackend = 'https://api.bcrumbs.net';
|
|
6364
|
-
apiV2Backend = 'https://apiv2
|
|
6359
|
+
apiV2Backend = 'https://apiv2.bcrumbs.net';
|
|
6365
6360
|
showcaseRenderer = 'https://test-showcase.bcrumbs.net';
|
|
6366
6361
|
} else if (currentUrl && currentUrl.indexOf('dconfig.com') > -1) {
|
|
6367
6362
|
dBackend = 'https://query.bcrumbs.net';
|
|
@@ -6407,6 +6402,12 @@ const appConfig = {
|
|
|
6407
6402
|
billing: {
|
|
6408
6403
|
networkInterface: apiV2Backend + '/billing'
|
|
6409
6404
|
},
|
|
6405
|
+
core: {
|
|
6406
|
+
networkInterface: apiV2Backend + '/core'
|
|
6407
|
+
},
|
|
6408
|
+
bot: {
|
|
6409
|
+
networkInterface: apiV2Backend + '/bot'
|
|
6410
|
+
},
|
|
6410
6411
|
// sw path
|
|
6411
6412
|
sw: {
|
|
6412
6413
|
path: 'assets/sw.js'
|
|
@@ -6414,9 +6415,9 @@ const appConfig = {
|
|
|
6414
6415
|
};
|
|
6415
6416
|
|
|
6416
6417
|
const {
|
|
6417
|
-
networkInterface: uri$
|
|
6418
|
+
networkInterface: uri$4
|
|
6418
6419
|
} = appConfig.dconfig;
|
|
6419
|
-
function getUserToken() {
|
|
6420
|
+
function getUserToken$2() {
|
|
6420
6421
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6421
6422
|
return new Promise(resolve => {
|
|
6422
6423
|
if (typeof window !== 'undefined') {
|
|
@@ -6438,10 +6439,10 @@ function getUserContext() {
|
|
|
6438
6439
|
});
|
|
6439
6440
|
});
|
|
6440
6441
|
}
|
|
6441
|
-
const authLink = setContext((operation_1, _a) => __awaiter(void 0, [operation_1, _a], void 0, function* (operation, {
|
|
6442
|
+
const authLink$2 = setContext((operation_1, _a) => __awaiter(void 0, [operation_1, _a], void 0, function* (operation, {
|
|
6442
6443
|
headers
|
|
6443
6444
|
}) {
|
|
6444
|
-
const currentUsertoken = yield getUserToken();
|
|
6445
|
+
const currentUsertoken = yield getUserToken$2();
|
|
6445
6446
|
const currentContext = yield getUserContext();
|
|
6446
6447
|
if (headers === undefined) {
|
|
6447
6448
|
headers = {};
|
|
@@ -6462,8 +6463,8 @@ const authLink = setContext((operation_1, _a) => __awaiter(void 0, [operation_1,
|
|
|
6462
6463
|
};
|
|
6463
6464
|
return resultHeaders;
|
|
6464
6465
|
}));
|
|
6465
|
-
const cache$
|
|
6466
|
-
const errorLink$
|
|
6466
|
+
const cache$4 = new InMemoryCache();
|
|
6467
|
+
const errorLink$3 = onError(({
|
|
6467
6468
|
networkError
|
|
6468
6469
|
}) => {
|
|
6469
6470
|
if (networkError && networkError.statusCode === 401) {
|
|
@@ -6482,10 +6483,10 @@ const errorLink$1 = onError(({
|
|
|
6482
6483
|
}
|
|
6483
6484
|
});
|
|
6484
6485
|
/* eslint-disable no-process-env */
|
|
6485
|
-
const isDevEnv$
|
|
6486
|
+
const isDevEnv$4 = process.env['NODE_ENV'] !== 'production';
|
|
6486
6487
|
/* eslint-enable no-process-env */
|
|
6487
6488
|
const link_dconfig = new RestLink({
|
|
6488
|
-
uri: uri$
|
|
6489
|
+
uri: uri$4 || 'https://api.bcrumbs.net',
|
|
6489
6490
|
bodySerializers: {
|
|
6490
6491
|
fileEncode: (data, headers) => {
|
|
6491
6492
|
const formData = new FormData();
|
|
@@ -6499,9 +6500,9 @@ const link_dconfig = new RestLink({
|
|
|
6499
6500
|
}
|
|
6500
6501
|
});
|
|
6501
6502
|
const dconfigClient = new ApolloClient({
|
|
6502
|
-
link: from([authLink, errorLink$
|
|
6503
|
-
cache: cache$
|
|
6504
|
-
connectToDevTools: isDevEnv$
|
|
6503
|
+
link: from([authLink$2, errorLink$3, link_dconfig]),
|
|
6504
|
+
cache: cache$4,
|
|
6505
|
+
connectToDevTools: isDevEnv$4,
|
|
6505
6506
|
queryDeduplication: true
|
|
6506
6507
|
});
|
|
6507
6508
|
const formSerializer = (data, headers) => {
|
|
@@ -6519,19 +6520,19 @@ const formSerializer = (data, headers) => {
|
|
|
6519
6520
|
};
|
|
6520
6521
|
};
|
|
6521
6522
|
const link_dconfig_token = new RestLink({
|
|
6522
|
-
uri: uri$
|
|
6523
|
+
uri: uri$4 || 'https://api.bcrumbs.net',
|
|
6523
6524
|
defaultSerializer: formSerializer
|
|
6524
6525
|
});
|
|
6525
6526
|
const tokenClient = new ApolloClient({
|
|
6526
|
-
link: from([link_dconfig_token, errorLink$
|
|
6527
|
-
cache: cache$
|
|
6528
|
-
connectToDevTools: isDevEnv$
|
|
6527
|
+
link: from([link_dconfig_token, errorLink$3]),
|
|
6528
|
+
cache: cache$4,
|
|
6529
|
+
connectToDevTools: isDevEnv$4
|
|
6529
6530
|
});
|
|
6530
6531
|
|
|
6531
|
-
let _$
|
|
6532
|
-
_t$
|
|
6532
|
+
let _$8 = t => t,
|
|
6533
|
+
_t$8,
|
|
6533
6534
|
_t2$6;
|
|
6534
|
-
const viewTypesQuery = gql(_t$
|
|
6535
|
+
const viewTypesQuery = gql(_t$8 || (_t$8 = _$8`
|
|
6535
6536
|
query ($templateContextId: Int!) {
|
|
6536
6537
|
viewTypes(templateContextId: $templateContextId)
|
|
6537
6538
|
@rest(
|
|
@@ -6578,7 +6579,7 @@ const useModelsQuery = templateContextId => useQuery(viewTypesQuery, {
|
|
|
6578
6579
|
templateContextId
|
|
6579
6580
|
}
|
|
6580
6581
|
});
|
|
6581
|
-
const viewTypeChildrenQuery = gql(_t2$6 || (_t2$6 = _$
|
|
6582
|
+
const viewTypeChildrenQuery = gql(_t2$6 || (_t2$6 = _$8`
|
|
6582
6583
|
query ($parentId: Int!, $templateId: Int!) {
|
|
6583
6584
|
viewTypes(parentId: $parentId, templateId: $templateId)
|
|
6584
6585
|
@rest(
|
|
@@ -6628,10 +6629,10 @@ const useModelChildrenQuery = (parentId, templateId) => useQuery(viewTypeChildre
|
|
|
6628
6629
|
});
|
|
6629
6630
|
|
|
6630
6631
|
const {
|
|
6631
|
-
networkInterface: uri$
|
|
6632
|
+
networkInterface: uri$3
|
|
6632
6633
|
} = appConfig.dquery;
|
|
6633
|
-
const cache$
|
|
6634
|
-
const errorLink = onError(({
|
|
6634
|
+
const cache$3 = new InMemoryCache();
|
|
6635
|
+
const errorLink$2 = onError(({
|
|
6635
6636
|
networkError
|
|
6636
6637
|
}) => {
|
|
6637
6638
|
if (networkError && networkError.statusCode === 401) {
|
|
@@ -6646,18 +6647,18 @@ const errorLink = onError(({
|
|
|
6646
6647
|
}
|
|
6647
6648
|
});
|
|
6648
6649
|
/* eslint-disable no-process-env */
|
|
6649
|
-
const isDevEnv$
|
|
6650
|
+
const isDevEnv$3 = process.env['NODE_ENV'] !== 'production';
|
|
6650
6651
|
/* eslint-enable no-process-env */
|
|
6651
|
-
const link_dquery = createHttpLink({
|
|
6652
|
-
uri: uri$
|
|
6652
|
+
const link_dquery$2 = createHttpLink({
|
|
6653
|
+
uri: uri$3,
|
|
6653
6654
|
fetchOptions: {
|
|
6654
6655
|
mode: 'cors'
|
|
6655
6656
|
}
|
|
6656
6657
|
});
|
|
6657
6658
|
const dqueryClient = new ApolloClient({
|
|
6658
|
-
link: from([errorLink, link_dquery]),
|
|
6659
|
-
cache: cache$
|
|
6660
|
-
connectToDevTools: isDevEnv$
|
|
6659
|
+
link: from([errorLink$2, link_dquery$2]),
|
|
6660
|
+
cache: cache$3,
|
|
6661
|
+
connectToDevTools: isDevEnv$3,
|
|
6661
6662
|
queryDeduplication: true
|
|
6662
6663
|
});
|
|
6663
6664
|
const withDQueryClient = withApollo(({
|
|
@@ -6665,721 +6666,27 @@ const withDQueryClient = withApollo(({
|
|
|
6665
6666
|
}) =>
|
|
6666
6667
|
// @ts-expect-error TypeScript is complaining
|
|
6667
6668
|
new ApolloClient({
|
|
6668
|
-
link: link_dquery,
|
|
6669
|
+
link: link_dquery$2,
|
|
6669
6670
|
cache: new InMemoryCache()
|
|
6670
6671
|
// rehydrate the cache using the initial data passed from the server:
|
|
6671
6672
|
.restore(initialState || {})
|
|
6672
6673
|
}));
|
|
6673
6674
|
|
|
6674
|
-
|
|
6675
|
-
|
|
6676
|
-
|
|
6677
|
-
|
|
6678
|
-
|
|
6679
|
-
get: function () { return Source[key]; },
|
|
6680
|
-
set: function (it) { Source[key] = it; }
|
|
6681
|
-
});
|
|
6682
|
-
};
|
|
6683
|
-
|
|
6684
|
-
var isCallable$5 = isCallable$o;
|
|
6685
|
-
var isObject$3 = isObject$d;
|
|
6686
|
-
var setPrototypeOf$2 = objectSetPrototypeOf;
|
|
6687
|
-
|
|
6688
|
-
// makes subclassing work correct for wrapped built-ins
|
|
6689
|
-
var inheritIfRequired$1 = function ($this, dummy, Wrapper) {
|
|
6690
|
-
var NewTarget, NewTargetPrototype;
|
|
6691
|
-
if (
|
|
6692
|
-
// it can work only with native `setPrototypeOf`
|
|
6693
|
-
setPrototypeOf$2 &&
|
|
6694
|
-
// we haven't completely correct pre-ES6 way for getting `new.target`, so use this
|
|
6695
|
-
isCallable$5(NewTarget = dummy.constructor) &&
|
|
6696
|
-
NewTarget !== Wrapper &&
|
|
6697
|
-
isObject$3(NewTargetPrototype = NewTarget.prototype) &&
|
|
6698
|
-
NewTargetPrototype !== Wrapper.prototype
|
|
6699
|
-
) setPrototypeOf$2($this, NewTargetPrototype);
|
|
6700
|
-
return $this;
|
|
6701
|
-
};
|
|
6702
|
-
|
|
6703
|
-
var toString$4 = toString$9;
|
|
6704
|
-
|
|
6705
|
-
var normalizeStringArgument$1 = function (argument, $default) {
|
|
6706
|
-
return argument === undefined ? arguments.length < 2 ? '' : $default : toString$4(argument);
|
|
6707
|
-
};
|
|
6708
|
-
|
|
6709
|
-
var isObject$2 = isObject$d;
|
|
6710
|
-
var createNonEnumerableProperty$4 = createNonEnumerableProperty$8;
|
|
6711
|
-
|
|
6712
|
-
// `InstallErrorCause` abstract operation
|
|
6713
|
-
// https://tc39.es/proposal-error-cause/#sec-errorobjects-install-error-cause
|
|
6714
|
-
var installErrorCause$1 = function (O, options) {
|
|
6715
|
-
if (isObject$2(options) && 'cause' in options) {
|
|
6716
|
-
createNonEnumerableProperty$4(O, 'cause', options.cause);
|
|
6717
|
-
}
|
|
6718
|
-
};
|
|
6719
|
-
|
|
6720
|
-
var uncurryThis$5 = functionUncurryThis;
|
|
6721
|
-
|
|
6722
|
-
var $Error = Error;
|
|
6723
|
-
var replace$2 = uncurryThis$5(''.replace);
|
|
6724
|
-
|
|
6725
|
-
var TEST = (function (arg) { return String(new $Error(arg).stack); })('zxcasd');
|
|
6726
|
-
// eslint-disable-next-line redos/no-vulnerable -- safe
|
|
6727
|
-
var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
|
|
6728
|
-
var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
|
|
6729
|
-
|
|
6730
|
-
var errorStackClear = function (stack, dropEntries) {
|
|
6731
|
-
if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
|
|
6732
|
-
while (dropEntries--) stack = replace$2(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
|
|
6733
|
-
} return stack;
|
|
6734
|
-
};
|
|
6735
|
-
|
|
6736
|
-
var fails$5 = fails$m;
|
|
6737
|
-
var createPropertyDescriptor$1 = createPropertyDescriptor$4;
|
|
6738
|
-
|
|
6739
|
-
var errorStackInstallable = !fails$5(function () {
|
|
6740
|
-
var error = new Error('a');
|
|
6741
|
-
if (!('stack' in error)) return true;
|
|
6742
|
-
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
|
6743
|
-
Object.defineProperty(error, 'stack', createPropertyDescriptor$1(1, 7));
|
|
6744
|
-
return error.stack !== 7;
|
|
6745
|
-
});
|
|
6746
|
-
|
|
6747
|
-
var createNonEnumerableProperty$3 = createNonEnumerableProperty$8;
|
|
6748
|
-
var clearErrorStack = errorStackClear;
|
|
6749
|
-
var ERROR_STACK_INSTALLABLE = errorStackInstallable;
|
|
6750
|
-
|
|
6751
|
-
// non-standard V8
|
|
6752
|
-
var captureStackTrace = Error.captureStackTrace;
|
|
6753
|
-
|
|
6754
|
-
var errorStackInstall = function (error, C, stack, dropEntries) {
|
|
6755
|
-
if (ERROR_STACK_INSTALLABLE) {
|
|
6756
|
-
if (captureStackTrace) captureStackTrace(error, C);
|
|
6757
|
-
else createNonEnumerableProperty$3(error, 'stack', clearErrorStack(stack, dropEntries));
|
|
6758
|
-
}
|
|
6759
|
-
};
|
|
6760
|
-
|
|
6761
|
-
var getBuiltIn$1 = getBuiltIn$9;
|
|
6762
|
-
var hasOwn$1 = hasOwnProperty_1;
|
|
6763
|
-
var createNonEnumerableProperty$2 = createNonEnumerableProperty$8;
|
|
6764
|
-
var isPrototypeOf = objectIsPrototypeOf;
|
|
6765
|
-
var setPrototypeOf$1 = objectSetPrototypeOf;
|
|
6766
|
-
var copyConstructorProperties = copyConstructorProperties$2;
|
|
6767
|
-
var proxyAccessor = proxyAccessor$1;
|
|
6768
|
-
var inheritIfRequired = inheritIfRequired$1;
|
|
6769
|
-
var normalizeStringArgument = normalizeStringArgument$1;
|
|
6770
|
-
var installErrorCause = installErrorCause$1;
|
|
6771
|
-
var installErrorStack = errorStackInstall;
|
|
6772
|
-
var DESCRIPTORS$1 = descriptors;
|
|
6773
|
-
|
|
6774
|
-
var wrapErrorConstructorWithCause$1 = function (FULL_NAME, wrapper, FORCED, IS_AGGREGATE_ERROR) {
|
|
6775
|
-
var STACK_TRACE_LIMIT = 'stackTraceLimit';
|
|
6776
|
-
var OPTIONS_POSITION = IS_AGGREGATE_ERROR ? 2 : 1;
|
|
6777
|
-
var path = FULL_NAME.split('.');
|
|
6778
|
-
var ERROR_NAME = path[path.length - 1];
|
|
6779
|
-
var OriginalError = getBuiltIn$1.apply(null, path);
|
|
6780
|
-
|
|
6781
|
-
if (!OriginalError) return;
|
|
6782
|
-
|
|
6783
|
-
var OriginalErrorPrototype = OriginalError.prototype;
|
|
6784
|
-
|
|
6785
|
-
// V8 9.3- bug https://bugs.chromium.org/p/v8/issues/detail?id=12006
|
|
6786
|
-
if (hasOwn$1(OriginalErrorPrototype, 'cause')) delete OriginalErrorPrototype.cause;
|
|
6787
|
-
|
|
6788
|
-
if (!FORCED) return OriginalError;
|
|
6789
|
-
|
|
6790
|
-
var BaseError = getBuiltIn$1('Error');
|
|
6791
|
-
|
|
6792
|
-
var WrappedError = wrapper(function (a, b) {
|
|
6793
|
-
var message = normalizeStringArgument(IS_AGGREGATE_ERROR ? b : a, undefined);
|
|
6794
|
-
var result = IS_AGGREGATE_ERROR ? new OriginalError(a) : new OriginalError();
|
|
6795
|
-
if (message !== undefined) createNonEnumerableProperty$2(result, 'message', message);
|
|
6796
|
-
installErrorStack(result, WrappedError, result.stack, 2);
|
|
6797
|
-
if (this && isPrototypeOf(OriginalErrorPrototype, this)) inheritIfRequired(result, this, WrappedError);
|
|
6798
|
-
if (arguments.length > OPTIONS_POSITION) installErrorCause(result, arguments[OPTIONS_POSITION]);
|
|
6799
|
-
return result;
|
|
6800
|
-
});
|
|
6801
|
-
|
|
6802
|
-
WrappedError.prototype = OriginalErrorPrototype;
|
|
6803
|
-
|
|
6804
|
-
if (ERROR_NAME !== 'Error') {
|
|
6805
|
-
if (setPrototypeOf$1) setPrototypeOf$1(WrappedError, BaseError);
|
|
6806
|
-
else copyConstructorProperties(WrappedError, BaseError, { name: true });
|
|
6807
|
-
} else if (DESCRIPTORS$1 && STACK_TRACE_LIMIT in OriginalError) {
|
|
6808
|
-
proxyAccessor(WrappedError, OriginalError, STACK_TRACE_LIMIT);
|
|
6809
|
-
proxyAccessor(WrappedError, OriginalError, 'prepareStackTrace');
|
|
6810
|
-
}
|
|
6811
|
-
|
|
6812
|
-
copyConstructorProperties(WrappedError, OriginalError);
|
|
6813
|
-
|
|
6814
|
-
try {
|
|
6815
|
-
// Safari 13- bug: WebAssembly errors does not have a proper `.name`
|
|
6816
|
-
if (OriginalErrorPrototype.name !== ERROR_NAME) {
|
|
6817
|
-
createNonEnumerableProperty$2(OriginalErrorPrototype, 'name', ERROR_NAME);
|
|
6818
|
-
}
|
|
6819
|
-
OriginalErrorPrototype.constructor = WrappedError;
|
|
6820
|
-
} catch (error) { /* empty */ }
|
|
6821
|
-
|
|
6822
|
-
return WrappedError;
|
|
6823
|
-
};
|
|
6824
|
-
|
|
6825
|
-
/* eslint-disable no-unused-vars -- required for functions `.length` */
|
|
6826
|
-
var $$5 = _export;
|
|
6827
|
-
var global$3 = global$n;
|
|
6828
|
-
var apply$1 = functionApply;
|
|
6829
|
-
var wrapErrorConstructorWithCause = wrapErrorConstructorWithCause$1;
|
|
6830
|
-
|
|
6831
|
-
var WEB_ASSEMBLY = 'WebAssembly';
|
|
6832
|
-
var WebAssembly = global$3[WEB_ASSEMBLY];
|
|
6833
|
-
|
|
6834
|
-
// eslint-disable-next-line es/no-error-cause -- feature detection
|
|
6835
|
-
var FORCED$1 = new Error('e', { cause: 7 }).cause !== 7;
|
|
6836
|
-
|
|
6837
|
-
var exportGlobalErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
6838
|
-
var O = {};
|
|
6839
|
-
O[ERROR_NAME] = wrapErrorConstructorWithCause(ERROR_NAME, wrapper, FORCED$1);
|
|
6840
|
-
$$5({ global: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
|
|
6841
|
-
};
|
|
6842
|
-
|
|
6843
|
-
var exportWebAssemblyErrorCauseWrapper = function (ERROR_NAME, wrapper) {
|
|
6844
|
-
if (WebAssembly && WebAssembly[ERROR_NAME]) {
|
|
6845
|
-
var O = {};
|
|
6846
|
-
O[ERROR_NAME] = wrapErrorConstructorWithCause(WEB_ASSEMBLY + '.' + ERROR_NAME, wrapper, FORCED$1);
|
|
6847
|
-
$$5({ target: WEB_ASSEMBLY, stat: true, constructor: true, arity: 1, forced: FORCED$1 }, O);
|
|
6675
|
+
let _$7 = t => t,
|
|
6676
|
+
_t$7;
|
|
6677
|
+
const portalThemeConfig = gql(_t$7 || (_t$7 = _$7`
|
|
6678
|
+
query ($domain: String!) {
|
|
6679
|
+
configuration(type: "portalTheme", domain: $domain)
|
|
6848
6680
|
}
|
|
6849
|
-
|
|
6850
|
-
|
|
6851
|
-
|
|
6852
|
-
|
|
6853
|
-
|
|
6854
|
-
|
|
6855
|
-
exportGlobalErrorCauseWrapper('EvalError', function (init) {
|
|
6856
|
-
return function EvalError(message) { return apply$1(init, this, arguments); };
|
|
6857
|
-
});
|
|
6858
|
-
exportGlobalErrorCauseWrapper('RangeError', function (init) {
|
|
6859
|
-
return function RangeError(message) { return apply$1(init, this, arguments); };
|
|
6860
|
-
});
|
|
6861
|
-
exportGlobalErrorCauseWrapper('ReferenceError', function (init) {
|
|
6862
|
-
return function ReferenceError(message) { return apply$1(init, this, arguments); };
|
|
6863
|
-
});
|
|
6864
|
-
exportGlobalErrorCauseWrapper('SyntaxError', function (init) {
|
|
6865
|
-
return function SyntaxError(message) { return apply$1(init, this, arguments); };
|
|
6866
|
-
});
|
|
6867
|
-
exportGlobalErrorCauseWrapper('TypeError', function (init) {
|
|
6868
|
-
return function TypeError(message) { return apply$1(init, this, arguments); };
|
|
6869
|
-
});
|
|
6870
|
-
exportGlobalErrorCauseWrapper('URIError', function (init) {
|
|
6871
|
-
return function URIError(message) { return apply$1(init, this, arguments); };
|
|
6872
|
-
});
|
|
6873
|
-
exportWebAssemblyErrorCauseWrapper('CompileError', function (init) {
|
|
6874
|
-
return function CompileError(message) { return apply$1(init, this, arguments); };
|
|
6875
|
-
});
|
|
6876
|
-
exportWebAssemblyErrorCauseWrapper('LinkError', function (init) {
|
|
6877
|
-
return function LinkError(message) { return apply$1(init, this, arguments); };
|
|
6878
|
-
});
|
|
6879
|
-
exportWebAssemblyErrorCauseWrapper('RuntimeError', function (init) {
|
|
6880
|
-
return function RuntimeError(message) { return apply$1(init, this, arguments); };
|
|
6881
|
-
});
|
|
6882
|
-
|
|
6883
|
-
var classof$2 = classofRaw$2;
|
|
6884
|
-
|
|
6885
|
-
// `IsArray` abstract operation
|
|
6886
|
-
// https://tc39.es/ecma262/#sec-isarray
|
|
6887
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
6888
|
-
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
6889
|
-
return classof$2(argument) === 'Array';
|
|
6890
|
-
};
|
|
6891
|
-
|
|
6892
|
-
var uncurryThis$4 = functionUncurryThis;
|
|
6893
|
-
var isArray = isArray$1;
|
|
6894
|
-
var isCallable$4 = isCallable$o;
|
|
6895
|
-
var classof$1 = classofRaw$2;
|
|
6896
|
-
var toString$3 = toString$9;
|
|
6897
|
-
|
|
6898
|
-
var push = uncurryThis$4([].push);
|
|
6899
|
-
|
|
6900
|
-
var getJsonReplacerFunction = function (replacer) {
|
|
6901
|
-
if (isCallable$4(replacer)) return replacer;
|
|
6902
|
-
if (!isArray(replacer)) return;
|
|
6903
|
-
var rawLength = replacer.length;
|
|
6904
|
-
var keys = [];
|
|
6905
|
-
for (var i = 0; i < rawLength; i++) {
|
|
6906
|
-
var element = replacer[i];
|
|
6907
|
-
if (typeof element == 'string') push(keys, element);
|
|
6908
|
-
else if (typeof element == 'number' || classof$1(element) === 'Number' || classof$1(element) === 'String') push(keys, toString$3(element));
|
|
6681
|
+
`));
|
|
6682
|
+
const usePortalThemeConfig = domain => useQuery(portalThemeConfig, {
|
|
6683
|
+
fetchPolicy: 'cache-first',
|
|
6684
|
+
client: dqueryClient,
|
|
6685
|
+
variables: {
|
|
6686
|
+
domain
|
|
6909
6687
|
}
|
|
6910
|
-
var keysLength = keys.length;
|
|
6911
|
-
var root = true;
|
|
6912
|
-
return function (key, value) {
|
|
6913
|
-
if (root) {
|
|
6914
|
-
root = false;
|
|
6915
|
-
return value;
|
|
6916
|
-
}
|
|
6917
|
-
if (isArray(this)) return value;
|
|
6918
|
-
for (var j = 0; j < keysLength; j++) if (keys[j] === key) return value;
|
|
6919
|
-
};
|
|
6920
|
-
};
|
|
6921
|
-
|
|
6922
|
-
var $$4 = _export;
|
|
6923
|
-
var getBuiltIn = getBuiltIn$9;
|
|
6924
|
-
var apply = functionApply;
|
|
6925
|
-
var call$1 = functionCall;
|
|
6926
|
-
var uncurryThis$3 = functionUncurryThis;
|
|
6927
|
-
var fails$4 = fails$m;
|
|
6928
|
-
var isCallable$3 = isCallable$o;
|
|
6929
|
-
var isSymbol = isSymbol$3;
|
|
6930
|
-
var arraySlice = arraySlice$2;
|
|
6931
|
-
var getReplacerFunction = getJsonReplacerFunction;
|
|
6932
|
-
var NATIVE_SYMBOL = symbolConstructorDetection;
|
|
6933
|
-
|
|
6934
|
-
var $String = String;
|
|
6935
|
-
var $stringify = getBuiltIn('JSON', 'stringify');
|
|
6936
|
-
var exec$1 = uncurryThis$3(/./.exec);
|
|
6937
|
-
var charAt = uncurryThis$3(''.charAt);
|
|
6938
|
-
var charCodeAt = uncurryThis$3(''.charCodeAt);
|
|
6939
|
-
var replace$1 = uncurryThis$3(''.replace);
|
|
6940
|
-
var numberToString = uncurryThis$3(1.0.toString);
|
|
6941
|
-
|
|
6942
|
-
var tester = /[\uD800-\uDFFF]/g;
|
|
6943
|
-
var low = /^[\uD800-\uDBFF]$/;
|
|
6944
|
-
var hi = /^[\uDC00-\uDFFF]$/;
|
|
6945
|
-
|
|
6946
|
-
var WRONG_SYMBOLS_CONVERSION = !NATIVE_SYMBOL || fails$4(function () {
|
|
6947
|
-
var symbol = getBuiltIn('Symbol')('stringify detection');
|
|
6948
|
-
// MS Edge converts symbol values to JSON as {}
|
|
6949
|
-
return $stringify([symbol]) !== '[null]'
|
|
6950
|
-
// WebKit converts symbol values to JSON as null
|
|
6951
|
-
|| $stringify({ a: symbol }) !== '{}'
|
|
6952
|
-
// V8 throws on boxed symbols
|
|
6953
|
-
|| $stringify(Object(symbol)) !== '{}';
|
|
6954
|
-
});
|
|
6955
|
-
|
|
6956
|
-
// https://github.com/tc39/proposal-well-formed-stringify
|
|
6957
|
-
var ILL_FORMED_UNICODE = fails$4(function () {
|
|
6958
|
-
return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
|
|
6959
|
-
|| $stringify('\uDEAD') !== '"\\udead"';
|
|
6960
6688
|
});
|
|
6961
6689
|
|
|
6962
|
-
var stringifyWithSymbolsFix = function (it, replacer) {
|
|
6963
|
-
var args = arraySlice(arguments);
|
|
6964
|
-
var $replacer = getReplacerFunction(replacer);
|
|
6965
|
-
if (!isCallable$3($replacer) && (it === undefined || isSymbol(it))) return; // IE8 returns string on undefined
|
|
6966
|
-
args[1] = function (key, value) {
|
|
6967
|
-
// some old implementations (like WebKit) could pass numbers as keys
|
|
6968
|
-
if (isCallable$3($replacer)) value = call$1($replacer, this, $String(key), value);
|
|
6969
|
-
if (!isSymbol(value)) return value;
|
|
6970
|
-
};
|
|
6971
|
-
return apply($stringify, null, args);
|
|
6972
|
-
};
|
|
6973
|
-
|
|
6974
|
-
var fixIllFormed = function (match, offset, string) {
|
|
6975
|
-
var prev = charAt(string, offset - 1);
|
|
6976
|
-
var next = charAt(string, offset + 1);
|
|
6977
|
-
if ((exec$1(low, match) && !exec$1(hi, next)) || (exec$1(hi, match) && !exec$1(low, prev))) {
|
|
6978
|
-
return '\\u' + numberToString(charCodeAt(match, 0), 16);
|
|
6979
|
-
} return match;
|
|
6980
|
-
};
|
|
6981
|
-
|
|
6982
|
-
if ($stringify) {
|
|
6983
|
-
// `JSON.stringify` method
|
|
6984
|
-
// https://tc39.es/ecma262/#sec-json.stringify
|
|
6985
|
-
$$4({ target: 'JSON', stat: true, arity: 3, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
|
|
6986
|
-
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
|
6987
|
-
stringify: function stringify(it, replacer, space) {
|
|
6988
|
-
var args = arraySlice(arguments);
|
|
6989
|
-
var result = apply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
|
|
6990
|
-
return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$1(result, tester, fixIllFormed) : result;
|
|
6991
|
-
}
|
|
6992
|
-
});
|
|
6993
|
-
}
|
|
6994
|
-
|
|
6995
|
-
// a string of all valid unicode whitespaces
|
|
6996
|
-
var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
|
|
6997
|
-
'\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
|
|
6998
|
-
|
|
6999
|
-
var uncurryThis$2 = functionUncurryThis;
|
|
7000
|
-
var requireObjectCoercible$1 = requireObjectCoercible$8;
|
|
7001
|
-
var toString$2 = toString$9;
|
|
7002
|
-
var whitespaces$1 = whitespaces$2;
|
|
7003
|
-
|
|
7004
|
-
var replace = uncurryThis$2(''.replace);
|
|
7005
|
-
var ltrim = RegExp('^[' + whitespaces$1 + ']+');
|
|
7006
|
-
var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
|
|
7007
|
-
|
|
7008
|
-
// `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
|
|
7009
|
-
var createMethod = function (TYPE) {
|
|
7010
|
-
return function ($this) {
|
|
7011
|
-
var string = toString$2(requireObjectCoercible$1($this));
|
|
7012
|
-
if (TYPE & 1) string = replace(string, ltrim, '');
|
|
7013
|
-
if (TYPE & 2) string = replace(string, rtrim, '$1');
|
|
7014
|
-
return string;
|
|
7015
|
-
};
|
|
7016
|
-
};
|
|
7017
|
-
|
|
7018
|
-
var stringTrim = {
|
|
7019
|
-
// `String.prototype.{ trimLeft, trimStart }` methods
|
|
7020
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimstart
|
|
7021
|
-
start: createMethod(1),
|
|
7022
|
-
// `String.prototype.{ trimRight, trimEnd }` methods
|
|
7023
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trimend
|
|
7024
|
-
end: createMethod(2),
|
|
7025
|
-
// `String.prototype.trim` method
|
|
7026
|
-
// https://tc39.es/ecma262/#sec-string.prototype.trim
|
|
7027
|
-
trim: createMethod(3)
|
|
7028
|
-
};
|
|
7029
|
-
|
|
7030
|
-
var global$2 = global$n;
|
|
7031
|
-
var fails$3 = fails$m;
|
|
7032
|
-
var uncurryThis$1 = functionUncurryThis;
|
|
7033
|
-
var toString$1 = toString$9;
|
|
7034
|
-
var trim = stringTrim.trim;
|
|
7035
|
-
var whitespaces = whitespaces$2;
|
|
7036
|
-
|
|
7037
|
-
var $parseInt$1 = global$2.parseInt;
|
|
7038
|
-
var Symbol$1 = global$2.Symbol;
|
|
7039
|
-
var ITERATOR$3 = Symbol$1 && Symbol$1.iterator;
|
|
7040
|
-
var hex = /^[+-]?0x/i;
|
|
7041
|
-
var exec = uncurryThis$1(hex.exec);
|
|
7042
|
-
var FORCED = $parseInt$1(whitespaces + '08') !== 8 || $parseInt$1(whitespaces + '0x16') !== 22
|
|
7043
|
-
// MS Edge 18- broken with boxed symbols
|
|
7044
|
-
|| (ITERATOR$3 && !fails$3(function () { $parseInt$1(Object(ITERATOR$3)); }));
|
|
7045
|
-
|
|
7046
|
-
// `parseInt` method
|
|
7047
|
-
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
7048
|
-
var numberParseInt = FORCED ? function parseInt(string, radix) {
|
|
7049
|
-
var S = trim(toString$1(string));
|
|
7050
|
-
return $parseInt$1(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
|
|
7051
|
-
} : $parseInt$1;
|
|
7052
|
-
|
|
7053
|
-
var $$3 = _export;
|
|
7054
|
-
var $parseInt = numberParseInt;
|
|
7055
|
-
|
|
7056
|
-
// `parseInt` method
|
|
7057
|
-
// https://tc39.es/ecma262/#sec-parseint-string-radix
|
|
7058
|
-
$$3({ global: true, forced: parseInt !== $parseInt }, {
|
|
7059
|
-
parseInt: $parseInt
|
|
7060
|
-
});
|
|
7061
|
-
|
|
7062
|
-
const CONTEXT_KEY = 'ContextId';
|
|
7063
|
-
const TOKEN_KEY = 'token';
|
|
7064
|
-
const USER_INFO = 'userInfo';
|
|
7065
|
-
const APP_PERSIST_STORES_TYPES = ['localStorage', 'sessionStorage'];
|
|
7066
|
-
const parse = JSON.parse;
|
|
7067
|
-
const stringify = JSON.stringify;
|
|
7068
|
-
/*
|
|
7069
|
-
auth object
|
|
7070
|
-
-> store "TOKEN_KEY"
|
|
7071
|
-
- default storage is "localStorage"
|
|
7072
|
-
- default token key is 'token'
|
|
7073
|
-
*/
|
|
7074
|
-
const auth = {
|
|
7075
|
-
// /////////////////////////////////////////////////////////////
|
|
7076
|
-
// TOKEN
|
|
7077
|
-
// /////////////////////////////////////////////////////////////
|
|
7078
|
-
/**
|
|
7079
|
-
* get token from localstorage
|
|
7080
|
-
*
|
|
7081
|
-
* @param {'localStorage' | 'sessionStorage'} [fromStorage='localStorage'] specify storage
|
|
7082
|
-
* @param {any} [tokenKey=TOKEN_KEY] optionnal parameter to specify a token key
|
|
7083
|
-
* @returns {string} token value
|
|
7084
|
-
*/
|
|
7085
|
-
getToken(fromStorage = APP_PERSIST_STORES_TYPES[0], tokenKey = TOKEN_KEY) {
|
|
7086
|
-
if (typeof window === 'undefined') {
|
|
7087
|
-
return null;
|
|
7088
|
-
}
|
|
7089
|
-
// localStorage:
|
|
7090
|
-
if (fromStorage === APP_PERSIST_STORES_TYPES[0]) {
|
|
7091
|
-
return window.localStorage && window.localStorage.getItem(tokenKey) || null;
|
|
7092
|
-
}
|
|
7093
|
-
// sessionStorage:
|
|
7094
|
-
if (fromStorage === APP_PERSIST_STORES_TYPES[1]) {
|
|
7095
|
-
return window.sessionStorage && window.sessionStorage.getItem(tokenKey) || null;
|
|
7096
|
-
}
|
|
7097
|
-
// default:
|
|
7098
|
-
return null;
|
|
7099
|
-
},
|
|
7100
|
-
/**
|
|
7101
|
-
* set the token value into localstorage (managed by localforage)
|
|
7102
|
-
*
|
|
7103
|
-
* @param {string} [value=''] token value
|
|
7104
|
-
* @param {'localStorage' | 'sessionStorage'} [toStorage='localStorage'] specify storage
|
|
7105
|
-
* @param {any} [tokenKey='token'] token key
|
|
7106
|
-
* @returns {boolean} success/failure flag
|
|
7107
|
-
*/
|
|
7108
|
-
setToken(value = '', toStorage = APP_PERSIST_STORES_TYPES[0], tokenKey = TOKEN_KEY) {
|
|
7109
|
-
if (typeof window === 'undefined') {
|
|
7110
|
-
throw Error('Token should not be set from backend side.');
|
|
7111
|
-
}
|
|
7112
|
-
if (!value || value.length <= 0) {
|
|
7113
|
-
return;
|
|
7114
|
-
}
|
|
7115
|
-
// localStorage:
|
|
7116
|
-
if (toStorage === APP_PERSIST_STORES_TYPES[0]) {
|
|
7117
|
-
if (window.localStorage) {
|
|
7118
|
-
window.localStorage.setItem(tokenKey, value);
|
|
7119
|
-
}
|
|
7120
|
-
}
|
|
7121
|
-
// sessionStorage:
|
|
7122
|
-
if (toStorage === APP_PERSIST_STORES_TYPES[1]) {
|
|
7123
|
-
if (window.sessionStorage) {
|
|
7124
|
-
window.sessionStorage.setItem(tokenKey, value);
|
|
7125
|
-
}
|
|
7126
|
-
}
|
|
7127
|
-
},
|
|
7128
|
-
/**
|
|
7129
|
-
* check
|
|
7130
|
-
* - if token key contains a valid token value (defined and not an empty value)
|
|
7131
|
-
* - if the token expiration date is passed
|
|
7132
|
-
*
|
|
7133
|
-
*
|
|
7134
|
-
* Note: 'isAuthenticated' just checks 'tokenKey' on store (localStorage by default or sessionStorage)
|
|
7135
|
-
*
|
|
7136
|
-
* You may think: 'ok I just put an empty token key and I have access to protected routes?''
|
|
7137
|
-
* -> answer is: YES^^
|
|
7138
|
-
* BUT
|
|
7139
|
-
* -> : your backend will not recognize a wrong token so private data or safe and you protected view could be a bit ugly without any data.
|
|
7140
|
-
*
|
|
7141
|
-
* => ON CONCLUSION: this aim of 'isAuthenticated'
|
|
7142
|
-
* -> is to help for a better "user experience" (= better than displaying a view with no data since server did not accept the user).
|
|
7143
|
-
* -> it is not a security purpose (security comes from backend, since frontend is easily hackable => user has access to all your frontend)
|
|
7144
|
-
*
|
|
7145
|
-
* @param {'localStorage' | 'sessionStorage'} [fromStorage='localStorage'] specify storage
|
|
7146
|
-
* @param {any} [tokenKey=TOKEN_KEY] token key
|
|
7147
|
-
* @returns {bool} is authenticed response
|
|
7148
|
-
*/
|
|
7149
|
-
isAuthenticated(fromStorage = APP_PERSIST_STORES_TYPES[0], tokenKey = TOKEN_KEY) {
|
|
7150
|
-
if (typeof window === 'undefined') {
|
|
7151
|
-
return false;
|
|
7152
|
-
}
|
|
7153
|
-
// localStorage:
|
|
7154
|
-
if (fromStorage === APP_PERSIST_STORES_TYPES[0]) {
|
|
7155
|
-
if (window.localStorage && window.localStorage.getItem(tokenKey)) {
|
|
7156
|
-
return true;
|
|
7157
|
-
} else {
|
|
7158
|
-
return false;
|
|
7159
|
-
}
|
|
7160
|
-
}
|
|
7161
|
-
// sessionStorage:
|
|
7162
|
-
if (fromStorage === APP_PERSIST_STORES_TYPES[1]) {
|
|
7163
|
-
if (window.sessionStorage && window.sessionStorage.getItem(tokenKey)) {
|
|
7164
|
-
return true;
|
|
7165
|
-
} else {
|
|
7166
|
-
return false;
|
|
7167
|
-
}
|
|
7168
|
-
}
|
|
7169
|
-
// default:
|
|
7170
|
-
return false;
|
|
7171
|
-
},
|
|
7172
|
-
/**
|
|
7173
|
-
* delete token
|
|
7174
|
-
*
|
|
7175
|
-
* @param {any} [tokenKey='token'] token key
|
|
7176
|
-
* @returns {bool} success/failure flag
|
|
7177
|
-
*/
|
|
7178
|
-
clearToken(storage = APP_PERSIST_STORES_TYPES[0], tokenKey = TOKEN_KEY) {
|
|
7179
|
-
if (typeof window === 'undefined') {
|
|
7180
|
-
return false;
|
|
7181
|
-
}
|
|
7182
|
-
// localStorage:
|
|
7183
|
-
if (window.localStorage && window.localStorage[tokenKey]) {
|
|
7184
|
-
window.localStorage.removeItem(tokenKey);
|
|
7185
|
-
return true;
|
|
7186
|
-
}
|
|
7187
|
-
// sessionStorage:
|
|
7188
|
-
if (window.sessionStorage && window.sessionStorage[tokenKey]) {
|
|
7189
|
-
window.sessionStorage.removeItem(tokenKey);
|
|
7190
|
-
return true;
|
|
7191
|
-
}
|
|
7192
|
-
return false;
|
|
7193
|
-
},
|
|
7194
|
-
//TODO: Its not working for now while the token is not JWT token
|
|
7195
|
-
/**
|
|
7196
|
-
* return expiration date from token
|
|
7197
|
-
*
|
|
7198
|
-
* @param {string} encodedToken - base 64 token received from server and stored in local storage
|
|
7199
|
-
* @returns {date | null} returns expiration date or null id expired props not found in decoded token
|
|
7200
|
-
*/
|
|
7201
|
-
getTokenExpirationDate(encodedToken) {
|
|
7202
|
-
if (typeof window === 'undefined') {
|
|
7203
|
-
return new Date(0);
|
|
7204
|
-
}
|
|
7205
|
-
if (!encodedToken) {
|
|
7206
|
-
return new Date(0); // is expired
|
|
7207
|
-
}
|
|
7208
|
-
const token = decode(encodedToken);
|
|
7209
|
-
if (!token.exp) {
|
|
7210
|
-
return new Date(0); // is expired
|
|
7211
|
-
}
|
|
7212
|
-
const expirationDate = new Date(token.exp * 1000);
|
|
7213
|
-
return expirationDate;
|
|
7214
|
-
},
|
|
7215
|
-
//TODO: Its not working for now while the token is not JWT token
|
|
7216
|
-
/**
|
|
7217
|
-
*
|
|
7218
|
-
* tell is token is expired (compared to now)
|
|
7219
|
-
*
|
|
7220
|
-
* @param {string} encodedToken - base 64 token received from server and stored in local storage
|
|
7221
|
-
* @returns {bool} returns true if expired else false
|
|
7222
|
-
*/
|
|
7223
|
-
isExpiredToken(encodedToken) {
|
|
7224
|
-
const expirationDate = this.getTokenExpirationDate(encodedToken);
|
|
7225
|
-
const rightNow = new Date();
|
|
7226
|
-
const isExpiredToken = isAfter(rightNow, expirationDate);
|
|
7227
|
-
return isExpiredToken;
|
|
7228
|
-
},
|
|
7229
|
-
// /////////////////////////////////////////////////////////////
|
|
7230
|
-
// USER_INFO
|
|
7231
|
-
// /////////////////////////////////////////////////////////////
|
|
7232
|
-
/**
|
|
7233
|
-
* get user info from localstorage
|
|
7234
|
-
*
|
|
7235
|
-
* @param {'localStorage' | 'sessionStorage'} [fromStorage='localStorage'] specify storage
|
|
7236
|
-
* @param {any} [userInfoKey='userInfo'] optionnal parameter to specify a token key
|
|
7237
|
-
* @returns {string} token value
|
|
7238
|
-
*/
|
|
7239
|
-
getUserInfo(fromStorage = APP_PERSIST_STORES_TYPES[0], userInfoKey = USER_INFO) {
|
|
7240
|
-
if (typeof window === 'undefined') {
|
|
7241
|
-
return undefined;
|
|
7242
|
-
}
|
|
7243
|
-
// localStorage:
|
|
7244
|
-
if (fromStorage === APP_PERSIST_STORES_TYPES[0]) {
|
|
7245
|
-
const userString = window.localStorage.getItem(userInfoKey);
|
|
7246
|
-
return userString && parse(userString);
|
|
7247
|
-
}
|
|
7248
|
-
// sessionStorage:
|
|
7249
|
-
if (fromStorage === APP_PERSIST_STORES_TYPES[1]) {
|
|
7250
|
-
const userString = window.sessionStorage.getItem(userInfoKey);
|
|
7251
|
-
return userString && parse(userString);
|
|
7252
|
-
}
|
|
7253
|
-
// default:
|
|
7254
|
-
return null;
|
|
7255
|
-
},
|
|
7256
|
-
/**
|
|
7257
|
-
* set the userInfo value into localstorage
|
|
7258
|
-
*
|
|
7259
|
-
* @param {object} [value=''] token value
|
|
7260
|
-
* @param {'localStorage' | 'sessionStorage'} [toStorage='localStorage'] specify storage
|
|
7261
|
-
* @param {any} [userInfoKey='userInfo'] token key
|
|
7262
|
-
* @returns {boolean} success/failure flag
|
|
7263
|
-
*/
|
|
7264
|
-
setUserInfo(value, toStorage = APP_PERSIST_STORES_TYPES[0], userInfoKey = USER_INFO) {
|
|
7265
|
-
if (typeof window === 'undefined') {
|
|
7266
|
-
throw Error('User info should not be set from backend side.');
|
|
7267
|
-
}
|
|
7268
|
-
if (!value) {
|
|
7269
|
-
return;
|
|
7270
|
-
}
|
|
7271
|
-
// localStorage:
|
|
7272
|
-
if (toStorage === APP_PERSIST_STORES_TYPES[0]) {
|
|
7273
|
-
if (window.localStorage) {
|
|
7274
|
-
window.localStorage.setItem(userInfoKey, stringify(value));
|
|
7275
|
-
}
|
|
7276
|
-
}
|
|
7277
|
-
// sessionStorage:
|
|
7278
|
-
if (toStorage === APP_PERSIST_STORES_TYPES[1]) {
|
|
7279
|
-
if (window.sessionStorage) {
|
|
7280
|
-
window.sessionStorage.setItem(userInfoKey, stringify(value));
|
|
7281
|
-
}
|
|
7282
|
-
}
|
|
7283
|
-
},
|
|
7284
|
-
updateUserInfo(value, toStorage = APP_PERSIST_STORES_TYPES[0], userInfoKey = USER_INFO) {
|
|
7285
|
-
const user = this.getUserInfo();
|
|
7286
|
-
user.name = value.name;
|
|
7287
|
-
user.surname = value.surname;
|
|
7288
|
-
this.setUserInfo(user);
|
|
7289
|
-
},
|
|
7290
|
-
/**
|
|
7291
|
-
* delete userInfo
|
|
7292
|
-
*
|
|
7293
|
-
* @param {string} [userInfoKey='userInfo'] token key
|
|
7294
|
-
* @returns {bool} success/failure flag
|
|
7295
|
-
*/
|
|
7296
|
-
clearUserInfo(userInfoKey = USER_INFO) {
|
|
7297
|
-
if (typeof window === 'undefined') {
|
|
7298
|
-
throw Error('User info should not be cleared from backend side.');
|
|
7299
|
-
}
|
|
7300
|
-
// localStorage:
|
|
7301
|
-
if (window.localStorage && window.localStorage[userInfoKey]) {
|
|
7302
|
-
window.localStorage.removeItem(userInfoKey);
|
|
7303
|
-
}
|
|
7304
|
-
// sessionStorage:
|
|
7305
|
-
if (window.sessionStorage && window.sessionStorage[userInfoKey]) {
|
|
7306
|
-
window.sessionStorage.removeItem(userInfoKey);
|
|
7307
|
-
}
|
|
7308
|
-
},
|
|
7309
|
-
// /////////////////////////////////////////////////////////////
|
|
7310
|
-
// COMMON
|
|
7311
|
-
// /////////////////////////////////////////////////////////////
|
|
7312
|
-
/**
|
|
7313
|
-
* forget me method: clear all
|
|
7314
|
-
* @returns {bool} success/failure flag
|
|
7315
|
-
*/
|
|
7316
|
-
clearAllAppStorage() {
|
|
7317
|
-
if (typeof window === 'undefined') {
|
|
7318
|
-
throw Error('App storage should not be cleared from backend side.');
|
|
7319
|
-
}
|
|
7320
|
-
if (window.localStorage) {
|
|
7321
|
-
window.localStorage.clear();
|
|
7322
|
-
}
|
|
7323
|
-
if (window.sessionStorage) {
|
|
7324
|
-
window.sessionStorage.clear();
|
|
7325
|
-
}
|
|
7326
|
-
dconfigClient.clearStore();
|
|
7327
|
-
},
|
|
7328
|
-
// /////////////////////////////////////////////////////////////
|
|
7329
|
-
// Context
|
|
7330
|
-
// /////////////////////////////////////////////////////////////
|
|
7331
|
-
/**
|
|
7332
|
-
* set the context value into localstorage (managed by localforage)
|
|
7333
|
-
*
|
|
7334
|
-
* @param {string} [value=''] context value
|
|
7335
|
-
* @param {'localStorage' | 'sessionStorage'} [toStorage='localStorage'] specify storage
|
|
7336
|
-
* @param {any} [tokenKey='token'] token key
|
|
7337
|
-
* @returns {boolean} success/failure flag
|
|
7338
|
-
*/
|
|
7339
|
-
setContext(value = '', toStorage = APP_PERSIST_STORES_TYPES[0], contextKey = CONTEXT_KEY) {
|
|
7340
|
-
if (typeof window === 'undefined') {
|
|
7341
|
-
throw Error('Context should not be set from backend side.');
|
|
7342
|
-
}
|
|
7343
|
-
if (!value || value.length <= 0) {
|
|
7344
|
-
return;
|
|
7345
|
-
}
|
|
7346
|
-
// localStorage:
|
|
7347
|
-
if (toStorage === APP_PERSIST_STORES_TYPES[0]) {
|
|
7348
|
-
if (window.localStorage) {
|
|
7349
|
-
window.localStorage.setItem(contextKey, value);
|
|
7350
|
-
}
|
|
7351
|
-
}
|
|
7352
|
-
// sessionStorage:
|
|
7353
|
-
if (toStorage === APP_PERSIST_STORES_TYPES[1]) {
|
|
7354
|
-
if (window.sessionStorage) {
|
|
7355
|
-
window.sessionStorage.setItem(contextKey, value);
|
|
7356
|
-
}
|
|
7357
|
-
}
|
|
7358
|
-
},
|
|
7359
|
-
/**
|
|
7360
|
-
* get context from localstorage
|
|
7361
|
-
*
|
|
7362
|
-
* @param {'localStorage' | 'sessionStorage'} [fromStorage='localStorage'] specify storage
|
|
7363
|
-
* @param {any} [tokenKey=TOKEN_KEY] optionnal parameter to specify a token key
|
|
7364
|
-
* @returns {number} token value
|
|
7365
|
-
*/
|
|
7366
|
-
getContext(fromStorage = APP_PERSIST_STORES_TYPES[0], contextKey = CONTEXT_KEY) {
|
|
7367
|
-
if (typeof window === 'undefined') {
|
|
7368
|
-
return undefined;
|
|
7369
|
-
}
|
|
7370
|
-
// localStorage:
|
|
7371
|
-
if (fromStorage === APP_PERSIST_STORES_TYPES[0]) {
|
|
7372
|
-
return parseInt(window.localStorage && window.localStorage.getItem(contextKey) || '');
|
|
7373
|
-
}
|
|
7374
|
-
// sessionStorage:
|
|
7375
|
-
if (fromStorage === APP_PERSIST_STORES_TYPES[1]) {
|
|
7376
|
-
return parseInt(window.sessionStorage && window.sessionStorage.getItem(contextKey) || '');
|
|
7377
|
-
}
|
|
7378
|
-
// default:
|
|
7379
|
-
return null;
|
|
7380
|
-
}
|
|
7381
|
-
};
|
|
7382
|
-
|
|
7383
6690
|
let _$6 = t => t,
|
|
7384
6691
|
_t$6,
|
|
7385
6692
|
_t2$5,
|
|
@@ -7690,37 +6997,11 @@ const showcasePagesQuery = gql(_t3$5 || (_t3$5 = _$6`
|
|
|
7690
6997
|
}
|
|
7691
6998
|
}
|
|
7692
6999
|
`));
|
|
7693
|
-
const
|
|
7694
|
-
options: props => {
|
|
7695
|
-
return {
|
|
7696
|
-
client: dqueryClient,
|
|
7697
|
-
variables: {
|
|
7698
|
-
companyId: auth.getContext(),
|
|
7699
|
-
parentId: props.parentId
|
|
7700
|
-
},
|
|
7701
|
-
fetchPolicy: 'no-cache'
|
|
7702
|
-
};
|
|
7703
|
-
},
|
|
7704
|
-
name: 'pages',
|
|
7705
|
-
props: ({
|
|
7706
|
-
pages: {
|
|
7707
|
-
loading,
|
|
7708
|
-
pages,
|
|
7709
|
-
refetch
|
|
7710
|
-
}
|
|
7711
|
-
}) => {
|
|
7712
|
-
return {
|
|
7713
|
-
pages: pages,
|
|
7714
|
-
refetchPages: refetch,
|
|
7715
|
-
loadingPages: loading
|
|
7716
|
-
};
|
|
7717
|
-
}
|
|
7718
|
-
};
|
|
7719
|
-
const useShowcasePagesQuery = parentId => useQuery(showcasePagesQuery, {
|
|
7000
|
+
const useShowcasePagesQuery = (companyId, parentId) => useQuery(showcasePagesQuery, {
|
|
7720
7001
|
fetchPolicy: 'cache-first',
|
|
7721
7002
|
client: dqueryClient,
|
|
7722
7003
|
variables: {
|
|
7723
|
-
companyId
|
|
7004
|
+
companyId,
|
|
7724
7005
|
parentId: parentId
|
|
7725
7006
|
}
|
|
7726
7007
|
});
|
|
@@ -7738,32 +7019,14 @@ const showcaseSectionsQuery = gql(_t4$5 || (_t4$5 = _$6`
|
|
|
7738
7019
|
}
|
|
7739
7020
|
}
|
|
7740
7021
|
`));
|
|
7741
|
-
const
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
parentId: props.parentId
|
|
7748
|
-
},
|
|
7749
|
-
fetchPolicy: 'no-cache'
|
|
7750
|
-
};
|
|
7751
|
-
},
|
|
7752
|
-
name: 'sections',
|
|
7753
|
-
props: ({
|
|
7754
|
-
sections: {
|
|
7755
|
-
loading,
|
|
7756
|
-
pageResoruces,
|
|
7757
|
-
refetch
|
|
7758
|
-
}
|
|
7759
|
-
}) => {
|
|
7760
|
-
return {
|
|
7761
|
-
sections: pageResoruces,
|
|
7762
|
-
refetchSections: refetch,
|
|
7763
|
-
loadingSections: loading
|
|
7764
|
-
};
|
|
7022
|
+
const useShowcaseSectionsQuery = (companyId, parentId) => useQuery(showcaseSectionsQuery, {
|
|
7023
|
+
fetchPolicy: 'cache-first',
|
|
7024
|
+
client: dqueryClient,
|
|
7025
|
+
variables: {
|
|
7026
|
+
companyId,
|
|
7027
|
+
parentId: parentId
|
|
7765
7028
|
}
|
|
7766
|
-
};
|
|
7029
|
+
});
|
|
7767
7030
|
const showcaseSectionQuery = gql(_t5$5 || (_t5$5 = _$6`
|
|
7768
7031
|
query ($companyId: Int!, $id: Int!) {
|
|
7769
7032
|
pageResoruce(companyId: $companyId, id: $id) {
|
|
@@ -7821,36 +7084,11 @@ const showcaseDomainsQuery = gql(_t6$4 || (_t6$4 = _$6`
|
|
|
7821
7084
|
}
|
|
7822
7085
|
}
|
|
7823
7086
|
`));
|
|
7824
|
-
const
|
|
7825
|
-
options: () => {
|
|
7826
|
-
return {
|
|
7827
|
-
client: dqueryClient,
|
|
7828
|
-
variables: {
|
|
7829
|
-
companyId: auth.getContext(),
|
|
7830
|
-
fetchPolicy: 'no-cache'
|
|
7831
|
-
}
|
|
7832
|
-
};
|
|
7833
|
-
},
|
|
7834
|
-
name: 'domains',
|
|
7835
|
-
props: ({
|
|
7836
|
-
domains: {
|
|
7837
|
-
loading,
|
|
7838
|
-
domains,
|
|
7839
|
-
refetch
|
|
7840
|
-
}
|
|
7841
|
-
}) => {
|
|
7842
|
-
return {
|
|
7843
|
-
domains: domains,
|
|
7844
|
-
refetchDomains: refetch,
|
|
7845
|
-
loadingDomains: loading
|
|
7846
|
-
};
|
|
7847
|
-
}
|
|
7848
|
-
};
|
|
7849
|
-
const useDomainsQuery = () => useQuery(showcaseDomainsQuery, {
|
|
7087
|
+
const useDomainsQuery = companyId => useQuery(showcaseDomainsQuery, {
|
|
7850
7088
|
fetchPolicy: 'cache-first',
|
|
7851
7089
|
client: dqueryClient,
|
|
7852
7090
|
variables: {
|
|
7853
|
-
companyId
|
|
7091
|
+
companyId
|
|
7854
7092
|
}
|
|
7855
7093
|
});
|
|
7856
7094
|
const showcaseConfig = gql(_t7$2 || (_t7$2 = _$6`
|
|
@@ -7912,13 +7150,12 @@ const VALIDATE_COMPANY_NAME = gql(_t$5 || (_t$5 = _$5`
|
|
|
7912
7150
|
validateCompanyName(name: $name)
|
|
7913
7151
|
}
|
|
7914
7152
|
`));
|
|
7915
|
-
const useValidateCompanyName = name =>
|
|
7153
|
+
const useValidateCompanyName = name => useLazyQuery(VALIDATE_COMPANY_NAME, {
|
|
7916
7154
|
fetchPolicy: 'cache-first',
|
|
7917
7155
|
client: dqueryClient,
|
|
7918
7156
|
variables: {
|
|
7919
7157
|
name
|
|
7920
|
-
}
|
|
7921
|
-
skip: !name
|
|
7158
|
+
}
|
|
7922
7159
|
});
|
|
7923
7160
|
|
|
7924
7161
|
let _$4 = t => t,
|
|
@@ -8241,6 +7478,7 @@ const inviteUser = gql(_t8$1 || (_t8$1 = _$4`
|
|
|
8241
7478
|
) {
|
|
8242
7479
|
result
|
|
8243
7480
|
message
|
|
7481
|
+
member
|
|
8244
7482
|
}
|
|
8245
7483
|
}
|
|
8246
7484
|
`));
|
|
@@ -8293,12 +7531,12 @@ const removeUserFromCompanyOptions = {
|
|
|
8293
7531
|
props: ({
|
|
8294
7532
|
mutate
|
|
8295
7533
|
}) => ({
|
|
8296
|
-
removeUserFromCompany(userId) {
|
|
7534
|
+
removeUserFromCompany(companyId, userId) {
|
|
8297
7535
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8298
7536
|
try {
|
|
8299
7537
|
const payload = {
|
|
8300
7538
|
variables: {
|
|
8301
|
-
companyId
|
|
7539
|
+
companyId,
|
|
8302
7540
|
userId
|
|
8303
7541
|
}
|
|
8304
7542
|
};
|
|
@@ -8421,38 +7659,13 @@ const createCompany = gql(_t4$3 || (_t4$3 = _$3`
|
|
|
8421
7659
|
}
|
|
8422
7660
|
}
|
|
8423
7661
|
`));
|
|
8424
|
-
const
|
|
8425
|
-
|
|
8426
|
-
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
}) => ({
|
|
8432
|
-
createCompany(Name) {
|
|
8433
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
8434
|
-
try {
|
|
8435
|
-
const payload = {
|
|
8436
|
-
variables: {
|
|
8437
|
-
body: {
|
|
8438
|
-
Name,
|
|
8439
|
-
OwnerId: auth.getUserInfo()['id'],
|
|
8440
|
-
SubscriptionType: 'Showcase-free'
|
|
8441
|
-
}
|
|
8442
|
-
}
|
|
8443
|
-
};
|
|
8444
|
-
const result = yield mutate(payload);
|
|
8445
|
-
// @ts-expect-error will be fixed later
|
|
8446
|
-
if (result.data.createCompany.result === 'true') setContext(result.data.createCompany.obj.Id);
|
|
8447
|
-
// @ts-expect-error will be fixed later
|
|
8448
|
-
return Promise.resolve(result.data.createCompany);
|
|
8449
|
-
} catch (error) {
|
|
8450
|
-
return Promise.reject(error);
|
|
8451
|
-
}
|
|
8452
|
-
});
|
|
8453
|
-
}
|
|
8454
|
-
})
|
|
8455
|
-
};
|
|
7662
|
+
const useCreateCompanyMutation = OwnerId => useMutation(createCompany, {
|
|
7663
|
+
client: dconfigClient,
|
|
7664
|
+
variables: {
|
|
7665
|
+
OwnerId,
|
|
7666
|
+
SubscriptionType: 'Showcase-free'
|
|
7667
|
+
}
|
|
7668
|
+
});
|
|
8456
7669
|
const updateCompany = gql(_t5$3 || (_t5$3 = _$3`
|
|
8457
7670
|
mutation ($body: JSON!) {
|
|
8458
7671
|
updateCompany(body: $body)
|
|
@@ -8776,19 +7989,19 @@ const useUpdateContentsOrderingMutation = () => useMutation(updateContentsOrderi
|
|
|
8776
7989
|
});
|
|
8777
7990
|
|
|
8778
7991
|
const {
|
|
8779
|
-
networkInterface: uri
|
|
7992
|
+
networkInterface: uri$2
|
|
8780
7993
|
} = appConfig.showcase;
|
|
8781
|
-
const cache = new InMemoryCache();
|
|
7994
|
+
const cache$2 = new InMemoryCache();
|
|
8782
7995
|
/* eslint-disable no-process-env */
|
|
8783
|
-
const isDevEnv = process.env['NODE_ENV'] !== 'production';
|
|
7996
|
+
const isDevEnv$2 = process.env['NODE_ENV'] !== 'production';
|
|
8784
7997
|
/* eslint-enable no-process-env */
|
|
8785
7998
|
const link$1 = new RestLink({
|
|
8786
|
-
uri: uri || "https://api.bcrumbs.net"
|
|
7999
|
+
uri: uri$2 || "https://api.bcrumbs.net"
|
|
8787
8000
|
});
|
|
8788
8001
|
const showcaseRendererClient = new ApolloClient({
|
|
8789
8002
|
link: link$1,
|
|
8790
|
-
cache,
|
|
8791
|
-
connectToDevTools: isDevEnv,
|
|
8003
|
+
cache: cache$2,
|
|
8004
|
+
connectToDevTools: isDevEnv$2,
|
|
8792
8005
|
queryDeduplication: true
|
|
8793
8006
|
});
|
|
8794
8007
|
|
|
@@ -8813,11 +8026,11 @@ const showcaseConfigurationQuery = gql(_t$1 || (_t$1 = _$1`
|
|
|
8813
8026
|
)
|
|
8814
8027
|
}
|
|
8815
8028
|
`));
|
|
8816
|
-
const useShowcaseConfigurationQuery =
|
|
8029
|
+
const useShowcaseConfigurationQuery = ContextId => useQuery(showcaseConfigurationQuery, {
|
|
8817
8030
|
fetchPolicy: 'cache-first',
|
|
8818
8031
|
client: dconfigClient,
|
|
8819
8032
|
variables: {
|
|
8820
|
-
ContextId
|
|
8033
|
+
ContextId
|
|
8821
8034
|
}
|
|
8822
8035
|
});
|
|
8823
8036
|
const showcaseConfigurationQueryOptions = {
|
|
@@ -8861,12 +8074,13 @@ const menuConfigurationQuery = gql(_t2$1 || (_t2$1 = _$1`
|
|
|
8861
8074
|
)
|
|
8862
8075
|
}
|
|
8863
8076
|
`));
|
|
8864
|
-
const useMenuConfigurationQuery =
|
|
8077
|
+
const useMenuConfigurationQuery = ContextId => useQuery(menuConfigurationQuery, {
|
|
8865
8078
|
fetchPolicy: 'cache-first',
|
|
8866
8079
|
client: dconfigClient,
|
|
8867
8080
|
variables: {
|
|
8868
|
-
ContextId
|
|
8869
|
-
}
|
|
8081
|
+
ContextId
|
|
8082
|
+
},
|
|
8083
|
+
skip: !ContextId
|
|
8870
8084
|
});
|
|
8871
8085
|
const addDomain = gql(_t3$1 || (_t3$1 = _$1`
|
|
8872
8086
|
mutation ($rootContent: String!, $body: JSON!) {
|
|
@@ -8983,13 +8197,13 @@ const useShowcaseTemplateOptions = {
|
|
|
8983
8197
|
ownProps,
|
|
8984
8198
|
mutate
|
|
8985
8199
|
}) => ({
|
|
8986
|
-
useShowcaseTemplate(templateId, parentContentId, path) {
|
|
8200
|
+
useShowcaseTemplate(companyId, templateId, parentContentId, path) {
|
|
8987
8201
|
return __awaiter(this, void 0, void 0, function* () {
|
|
8988
8202
|
try {
|
|
8989
8203
|
const payload = {
|
|
8990
8204
|
variables: {
|
|
8991
8205
|
templateId,
|
|
8992
|
-
companyId
|
|
8206
|
+
companyId,
|
|
8993
8207
|
parentContentId,
|
|
8994
8208
|
path
|
|
8995
8209
|
}
|
|
@@ -9017,12 +8231,12 @@ const useShowcaseTemplateProgress = gql(_t6$1 || (_t6$1 = _$1`
|
|
|
9017
8231
|
}
|
|
9018
8232
|
}
|
|
9019
8233
|
`));
|
|
9020
|
-
const useShowcaseTemplateProgressQuery = templateId => useLazyQuery(useShowcaseTemplateProgress, {
|
|
8234
|
+
const useShowcaseTemplateProgressQuery = (companyId, templateId) => useLazyQuery(useShowcaseTemplateProgress, {
|
|
9021
8235
|
fetchPolicy: 'no-cache',
|
|
9022
8236
|
client: dconfigClient,
|
|
9023
8237
|
variables: {
|
|
9024
8238
|
templateId,
|
|
9025
|
-
companyId
|
|
8239
|
+
companyId
|
|
9026
8240
|
}
|
|
9027
8241
|
});
|
|
9028
8242
|
const updateTemplateSectionThumb = gql(_t7 || (_t7 = _$1`
|
|
@@ -90833,11 +90047,163 @@ const withShowcaseClient = withApollo(({
|
|
|
90833
90047
|
// @ts-expect-error will be fixed later
|
|
90834
90048
|
showcaseClient);
|
|
90835
90049
|
|
|
90836
|
-
|
|
90050
|
+
const {
|
|
90051
|
+
networkInterface: uri$1
|
|
90052
|
+
} = appConfig.core;
|
|
90053
|
+
function getUserToken$1() {
|
|
90054
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90055
|
+
return new Promise(resolve => {
|
|
90056
|
+
if (typeof window !== 'undefined') {
|
|
90057
|
+
const storedToken = window.localStorage.getItem('token');
|
|
90058
|
+
resolve(storedToken);
|
|
90059
|
+
}
|
|
90060
|
+
resolve(undefined);
|
|
90061
|
+
});
|
|
90062
|
+
});
|
|
90063
|
+
}
|
|
90064
|
+
const authLink$1 = setContext((operation_1, _a) => __awaiter(void 0, [operation_1, _a], void 0, function* (operation, {
|
|
90065
|
+
headers
|
|
90066
|
+
}) {
|
|
90067
|
+
const currentUsertoken = yield getUserToken$1();
|
|
90068
|
+
const isAPIKey = (currentUsertoken === null || currentUsertoken === void 0 ? void 0 : currentUsertoken.length) === 36;
|
|
90069
|
+
if (headers === undefined) {
|
|
90070
|
+
headers = {};
|
|
90071
|
+
}
|
|
90072
|
+
const resultHeaders = currentUsertoken ? {
|
|
90073
|
+
headers: Object.assign(Object.assign({}, headers), {
|
|
90074
|
+
Accept: 'application/json',
|
|
90075
|
+
Authorization: isAPIKey ? currentUsertoken : `Bearer ${currentUsertoken}`
|
|
90076
|
+
})
|
|
90077
|
+
} : {
|
|
90078
|
+
headers: Object.assign(Object.assign({}, headers), {
|
|
90079
|
+
Accept: 'application/json'
|
|
90080
|
+
})
|
|
90081
|
+
};
|
|
90082
|
+
return resultHeaders;
|
|
90083
|
+
}));
|
|
90084
|
+
const cache$1 = new InMemoryCache();
|
|
90085
|
+
const errorLink$1 = onError(({
|
|
90086
|
+
networkError,
|
|
90087
|
+
graphQLErrors
|
|
90088
|
+
}) => {
|
|
90089
|
+
if (networkError && networkError.statusCode === 401) {
|
|
90090
|
+
// redirect to login page
|
|
90091
|
+
if (typeof window !== 'undefined') {
|
|
90092
|
+
return window.location.replace('/account/login');
|
|
90093
|
+
}
|
|
90094
|
+
} else if (networkError && networkError.statusCode > 500 && networkError.statusCode !== 503) {
|
|
90095
|
+
if (typeof window !== 'undefined') {
|
|
90096
|
+
return window.location.replace('/error?message=' + networkError.message);
|
|
90097
|
+
}
|
|
90098
|
+
}
|
|
90099
|
+
if (graphQLErrors && graphQLErrors.find(error => {
|
|
90100
|
+
var _a;
|
|
90101
|
+
return ((_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a['code']) === 'FORBIDDEN';
|
|
90102
|
+
})) {
|
|
90103
|
+
const error = graphQLErrors.find(error => {
|
|
90104
|
+
var _a;
|
|
90105
|
+
return ((_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a['code']) === 'FORBIDDEN';
|
|
90106
|
+
});
|
|
90107
|
+
return window.location.replace('/403?message=' + (error === null || error === void 0 ? void 0 : error.message));
|
|
90108
|
+
}
|
|
90109
|
+
});
|
|
90110
|
+
/* eslint-disable no-process-env */
|
|
90111
|
+
const isDevEnv$1 = process.env['NODE_ENV'] !== 'production';
|
|
90112
|
+
/* eslint-enable no-process-env */
|
|
90113
|
+
const link_dquery$1 = createHttpLink({
|
|
90114
|
+
uri: `${uri$1}/gq`,
|
|
90115
|
+
fetchOptions: {
|
|
90116
|
+
mode: 'cors'
|
|
90117
|
+
}
|
|
90118
|
+
});
|
|
90119
|
+
const coreClient = new ApolloClient({
|
|
90120
|
+
link: from([authLink$1, errorLink$1, link_dquery$1]),
|
|
90121
|
+
cache: cache$1,
|
|
90122
|
+
connectToDevTools: isDevEnv$1,
|
|
90123
|
+
queryDeduplication: true
|
|
90124
|
+
});
|
|
90125
|
+
|
|
90126
|
+
const {
|
|
90127
|
+
networkInterface: uri
|
|
90128
|
+
} = appConfig.bot;
|
|
90129
|
+
function getUserToken() {
|
|
90130
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
90131
|
+
return new Promise(resolve => {
|
|
90132
|
+
if (typeof window !== 'undefined') {
|
|
90133
|
+
const storedToken = window.localStorage.getItem('token');
|
|
90134
|
+
resolve(storedToken);
|
|
90135
|
+
}
|
|
90136
|
+
resolve(undefined);
|
|
90137
|
+
});
|
|
90138
|
+
});
|
|
90139
|
+
}
|
|
90140
|
+
const authLink = setContext((operation_1, _a) => __awaiter(void 0, [operation_1, _a], void 0, function* (operation, {
|
|
90141
|
+
headers
|
|
90142
|
+
}) {
|
|
90143
|
+
const currentUsertoken = yield getUserToken();
|
|
90144
|
+
const isAPIKey = (currentUsertoken === null || currentUsertoken === void 0 ? void 0 : currentUsertoken.length) === 36;
|
|
90145
|
+
if (headers === undefined) {
|
|
90146
|
+
headers = {};
|
|
90147
|
+
}
|
|
90148
|
+
const resultHeaders = currentUsertoken ? {
|
|
90149
|
+
headers: Object.assign(Object.assign({}, headers), {
|
|
90150
|
+
Accept: 'application/json',
|
|
90151
|
+
Authorization: isAPIKey ? currentUsertoken : `Bearer ${currentUsertoken}`
|
|
90152
|
+
})
|
|
90153
|
+
} : {
|
|
90154
|
+
headers: Object.assign(Object.assign({}, headers), {
|
|
90155
|
+
Accept: 'application/json'
|
|
90156
|
+
})
|
|
90157
|
+
};
|
|
90158
|
+
return resultHeaders;
|
|
90159
|
+
}));
|
|
90160
|
+
const cache = new InMemoryCache();
|
|
90161
|
+
const errorLink = onError(({
|
|
90162
|
+
networkError,
|
|
90163
|
+
graphQLErrors
|
|
90164
|
+
}) => {
|
|
90165
|
+
if (networkError && networkError.statusCode === 401) {
|
|
90166
|
+
// redirect to login page
|
|
90167
|
+
if (typeof window !== 'undefined') {
|
|
90168
|
+
return window.location.replace('/account/login');
|
|
90169
|
+
}
|
|
90170
|
+
} else if (networkError && networkError.statusCode > 500 && networkError.statusCode !== 503) {
|
|
90171
|
+
if (typeof window !== 'undefined') {
|
|
90172
|
+
return window.location.replace('/error?message=' + networkError.message);
|
|
90173
|
+
}
|
|
90174
|
+
}
|
|
90175
|
+
if (graphQLErrors && graphQLErrors.find(error => {
|
|
90176
|
+
var _a;
|
|
90177
|
+
return ((_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a['code']) === 'FORBIDDEN';
|
|
90178
|
+
})) {
|
|
90179
|
+
const error = graphQLErrors.find(error => {
|
|
90180
|
+
var _a;
|
|
90181
|
+
return ((_a = error === null || error === void 0 ? void 0 : error.extensions) === null || _a === void 0 ? void 0 : _a['code']) === 'FORBIDDEN';
|
|
90182
|
+
});
|
|
90183
|
+
return window.location.replace('/403?message=' + (error === null || error === void 0 ? void 0 : error.message));
|
|
90184
|
+
}
|
|
90185
|
+
});
|
|
90186
|
+
/* eslint-disable no-process-env */
|
|
90187
|
+
const isDevEnv = process.env['NODE_ENV'] !== 'production';
|
|
90188
|
+
/* eslint-enable no-process-env */
|
|
90189
|
+
const link_dquery = createHttpLink({
|
|
90190
|
+
uri: `${uri}/gq`,
|
|
90191
|
+
fetchOptions: {
|
|
90192
|
+
mode: 'cors'
|
|
90193
|
+
}
|
|
90194
|
+
});
|
|
90195
|
+
const botClient = new ApolloClient({
|
|
90196
|
+
link: from([authLink, errorLink, link_dquery]),
|
|
90197
|
+
cache,
|
|
90198
|
+
connectToDevTools: isDevEnv,
|
|
90199
|
+
queryDeduplication: true
|
|
90200
|
+
});
|
|
90201
|
+
|
|
90202
|
+
var wellKnownSymbol$3 = wellKnownSymbol$g;
|
|
90837
90203
|
var create$1 = objectCreate;
|
|
90838
90204
|
var defineProperty$1 = objectDefineProperty.f;
|
|
90839
90205
|
|
|
90840
|
-
var UNSCOPABLES = wellKnownSymbol$
|
|
90206
|
+
var UNSCOPABLES = wellKnownSymbol$3('unscopables');
|
|
90841
90207
|
var ArrayPrototype = Array.prototype;
|
|
90842
90208
|
|
|
90843
90209
|
// Array.prototype[@@unscopables]
|
|
@@ -90850,13 +90216,13 @@ if (ArrayPrototype[UNSCOPABLES] === undefined) {
|
|
|
90850
90216
|
}
|
|
90851
90217
|
|
|
90852
90218
|
// add a key to Array.prototype[@@unscopables]
|
|
90853
|
-
var addToUnscopables$
|
|
90219
|
+
var addToUnscopables$1 = function (key) {
|
|
90854
90220
|
ArrayPrototype[UNSCOPABLES][key] = true;
|
|
90855
90221
|
};
|
|
90856
90222
|
|
|
90857
|
-
var fails$
|
|
90223
|
+
var fails$1 = fails$i;
|
|
90858
90224
|
|
|
90859
|
-
var correctPrototypeGetter = !fails$
|
|
90225
|
+
var correctPrototypeGetter = !fails$1(function () {
|
|
90860
90226
|
function F() { /* empty */ }
|
|
90861
90227
|
F.prototype.constructor = null;
|
|
90862
90228
|
// eslint-disable-next-line es/no-object-getprototypeof -- required for testing
|
|
@@ -90864,7 +90230,7 @@ var correctPrototypeGetter = !fails$2(function () {
|
|
|
90864
90230
|
});
|
|
90865
90231
|
|
|
90866
90232
|
var hasOwn = hasOwnProperty_1;
|
|
90867
|
-
var isCallable$2 = isCallable$
|
|
90233
|
+
var isCallable$2 = isCallable$l;
|
|
90868
90234
|
var toObject = toObject$4;
|
|
90869
90235
|
var sharedKey = sharedKey$3;
|
|
90870
90236
|
var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
|
|
@@ -90885,14 +90251,14 @@ var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : f
|
|
|
90885
90251
|
} return object instanceof $Object ? ObjectPrototype : null;
|
|
90886
90252
|
};
|
|
90887
90253
|
|
|
90888
|
-
var fails
|
|
90889
|
-
var isCallable$1 = isCallable$
|
|
90890
|
-
var isObject
|
|
90254
|
+
var fails = fails$i;
|
|
90255
|
+
var isCallable$1 = isCallable$l;
|
|
90256
|
+
var isObject = isObject$a;
|
|
90891
90257
|
var getPrototypeOf$1 = objectGetPrototypeOf;
|
|
90892
90258
|
var defineBuiltIn$1 = defineBuiltIn$6;
|
|
90893
|
-
var wellKnownSymbol$
|
|
90259
|
+
var wellKnownSymbol$2 = wellKnownSymbol$g;
|
|
90894
90260
|
|
|
90895
|
-
var ITERATOR$2 = wellKnownSymbol$
|
|
90261
|
+
var ITERATOR$2 = wellKnownSymbol$2('iterator');
|
|
90896
90262
|
var BUGGY_SAFARI_ITERATORS$1 = false;
|
|
90897
90263
|
|
|
90898
90264
|
// `%IteratorPrototype%` object
|
|
@@ -90910,7 +90276,7 @@ if ([].keys) {
|
|
|
90910
90276
|
}
|
|
90911
90277
|
}
|
|
90912
90278
|
|
|
90913
|
-
var NEW_ITERATOR_PROTOTYPE = !isObject
|
|
90279
|
+
var NEW_ITERATOR_PROTOTYPE = !isObject(IteratorPrototype$2) || fails(function () {
|
|
90914
90280
|
var test = {};
|
|
90915
90281
|
// FF44- legacy iterators case
|
|
90916
90282
|
return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
|
|
@@ -90933,7 +90299,7 @@ var iteratorsCore = {
|
|
|
90933
90299
|
|
|
90934
90300
|
var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
|
|
90935
90301
|
var create = objectCreate;
|
|
90936
|
-
var createPropertyDescriptor = createPropertyDescriptor$
|
|
90302
|
+
var createPropertyDescriptor = createPropertyDescriptor$3;
|
|
90937
90303
|
var setToStringTag$2 = setToStringTag$4;
|
|
90938
90304
|
var Iterators$2 = iterators;
|
|
90939
90305
|
|
|
@@ -90947,17 +90313,17 @@ var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUME
|
|
|
90947
90313
|
return IteratorConstructor;
|
|
90948
90314
|
};
|
|
90949
90315
|
|
|
90950
|
-
var
|
|
90316
|
+
var $ = _export;
|
|
90951
90317
|
var call = functionCall;
|
|
90952
90318
|
var FunctionName = functionName;
|
|
90953
|
-
var isCallable = isCallable$
|
|
90319
|
+
var isCallable = isCallable$l;
|
|
90954
90320
|
var createIteratorConstructor = iteratorCreateConstructor;
|
|
90955
90321
|
var getPrototypeOf = objectGetPrototypeOf;
|
|
90956
90322
|
var setPrototypeOf = objectSetPrototypeOf;
|
|
90957
90323
|
var setToStringTag$1 = setToStringTag$4;
|
|
90958
|
-
var createNonEnumerableProperty$1 = createNonEnumerableProperty$
|
|
90324
|
+
var createNonEnumerableProperty$1 = createNonEnumerableProperty$5;
|
|
90959
90325
|
var defineBuiltIn = defineBuiltIn$6;
|
|
90960
|
-
var wellKnownSymbol$
|
|
90326
|
+
var wellKnownSymbol$1 = wellKnownSymbol$g;
|
|
90961
90327
|
var Iterators$1 = iterators;
|
|
90962
90328
|
var IteratorsCore = iteratorsCore;
|
|
90963
90329
|
|
|
@@ -90965,7 +90331,7 @@ var PROPER_FUNCTION_NAME = FunctionName.PROPER;
|
|
|
90965
90331
|
var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
|
|
90966
90332
|
var IteratorPrototype = IteratorsCore.IteratorPrototype;
|
|
90967
90333
|
var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
|
|
90968
|
-
var ITERATOR$1 = wellKnownSymbol$
|
|
90334
|
+
var ITERATOR$1 = wellKnownSymbol$1('iterator');
|
|
90969
90335
|
var KEYS = 'keys';
|
|
90970
90336
|
var VALUES = 'values';
|
|
90971
90337
|
var ENTRIES = 'entries';
|
|
@@ -91035,7 +90401,7 @@ var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
|
|
|
91035
90401
|
if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
|
|
91036
90402
|
defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
|
|
91037
90403
|
}
|
|
91038
|
-
} else
|
|
90404
|
+
} else $({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
|
|
91039
90405
|
}
|
|
91040
90406
|
|
|
91041
90407
|
// define iterator
|
|
@@ -91054,7 +90420,7 @@ var createIterResultObject$1 = function (value, done) {
|
|
|
91054
90420
|
};
|
|
91055
90421
|
|
|
91056
90422
|
var toIndexedObject = toIndexedObject$5;
|
|
91057
|
-
var addToUnscopables
|
|
90423
|
+
var addToUnscopables = addToUnscopables$1;
|
|
91058
90424
|
var Iterators = iterators;
|
|
91059
90425
|
var InternalStateModule = internalState;
|
|
91060
90426
|
var defineProperty = objectDefineProperty.f;
|
|
@@ -91105,9 +90471,9 @@ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind)
|
|
|
91105
90471
|
var values = Iterators.Arguments = Iterators.Array;
|
|
91106
90472
|
|
|
91107
90473
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
91108
|
-
addToUnscopables
|
|
91109
|
-
addToUnscopables
|
|
91110
|
-
addToUnscopables
|
|
90474
|
+
addToUnscopables('keys');
|
|
90475
|
+
addToUnscopables('values');
|
|
90476
|
+
addToUnscopables('entries');
|
|
91111
90477
|
|
|
91112
90478
|
// V8 ~ Chrome 45- bug
|
|
91113
90479
|
if (DESCRIPTORS && values.name !== 'values') try {
|
|
@@ -91158,15 +90524,15 @@ var DOMTokenListPrototype$1 = classList && classList.constructor && classList.co
|
|
|
91158
90524
|
|
|
91159
90525
|
var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
|
|
91160
90526
|
|
|
91161
|
-
var global$1 = global$
|
|
90527
|
+
var global$1 = global$l;
|
|
91162
90528
|
var DOMIterables = domIterables;
|
|
91163
90529
|
var DOMTokenListPrototype = domTokenListPrototype;
|
|
91164
90530
|
var ArrayIteratorMethods = es_array_iterator;
|
|
91165
|
-
var createNonEnumerableProperty = createNonEnumerableProperty$
|
|
90531
|
+
var createNonEnumerableProperty = createNonEnumerableProperty$5;
|
|
91166
90532
|
var setToStringTag = setToStringTag$4;
|
|
91167
|
-
var wellKnownSymbol
|
|
90533
|
+
var wellKnownSymbol = wellKnownSymbol$g;
|
|
91168
90534
|
|
|
91169
|
-
var ITERATOR = wellKnownSymbol
|
|
90535
|
+
var ITERATOR = wellKnownSymbol('iterator');
|
|
91170
90536
|
var ArrayValues = ArrayIteratorMethods.values;
|
|
91171
90537
|
|
|
91172
90538
|
var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
|
|
@@ -91226,529 +90592,7 @@ var ModelFieldsTypes;
|
|
|
91226
90592
|
ModelFieldsTypes["Number"] = "Number";
|
|
91227
90593
|
ModelFieldsTypes["Image"] = "Image";
|
|
91228
90594
|
ModelFieldsTypes["MultipleImages"] = "Multiple Images";
|
|
90595
|
+
ModelFieldsTypes["JSON"] = "JSON";
|
|
91229
90596
|
})(ModelFieldsTypes || (ModelFieldsTypes = {}));
|
|
91230
90597
|
|
|
91231
|
-
|
|
91232
|
-
const IntegrationTypePossibleValues = ['WHATSAPP', 'BCWEBCHAT'];
|
|
91233
|
-
|
|
91234
|
-
/**
|
|
91235
|
-
* Hypertext Transfer Protocol (HTTP) response status codes.
|
|
91236
|
-
* @see {@link https://en.wikipedia.org/wiki/List_of_HTTP_status_codes}
|
|
91237
|
-
*/
|
|
91238
|
-
var HttpStatusCode;
|
|
91239
|
-
(function (HttpStatusCode) {
|
|
91240
|
-
/**
|
|
91241
|
-
* The server has received the request headers and the client should proceed to send the request body
|
|
91242
|
-
* (in the case of a request for which a body needs to be sent; for example, a POST request).
|
|
91243
|
-
* Sending a large request body to a server after a request has been rejected for inappropriate headers would be inefficient.
|
|
91244
|
-
* To have a server check the request's headers, a client must send Expect: 100-continue as a header in its initial request
|
|
91245
|
-
* and receive a 100 Continue status code in response before sending the body. The response 417 Expectation Failed indicates the request should not be continued.
|
|
91246
|
-
*/
|
|
91247
|
-
HttpStatusCode[HttpStatusCode["CONTINUE"] = 100] = "CONTINUE";
|
|
91248
|
-
/**
|
|
91249
|
-
* The requester has asked the server to switch protocols and the server has agreed to do so.
|
|
91250
|
-
*/
|
|
91251
|
-
HttpStatusCode[HttpStatusCode["SWITCHING_PROTOCOLS"] = 101] = "SWITCHING_PROTOCOLS";
|
|
91252
|
-
/**
|
|
91253
|
-
* A WebDAV request may contain many sub-requests involving file operations, requiring a long time to complete the request.
|
|
91254
|
-
* This code indicates that the server has received and is processing the request, but no response is available yet.
|
|
91255
|
-
* This prevents the client from timing out and assuming the request was lost.
|
|
91256
|
-
*/
|
|
91257
|
-
HttpStatusCode[HttpStatusCode["PROCESSING"] = 102] = "PROCESSING";
|
|
91258
|
-
/**
|
|
91259
|
-
* Standard response for successful HTTP requests.
|
|
91260
|
-
* The actual response will depend on the request method used.
|
|
91261
|
-
* In a GET request, the response will contain an entity corresponding to the requested resource.
|
|
91262
|
-
* In a POST request, the response will contain an entity describing or containing the result of the action.
|
|
91263
|
-
*/
|
|
91264
|
-
HttpStatusCode[HttpStatusCode["OK"] = 200] = "OK";
|
|
91265
|
-
/**
|
|
91266
|
-
* The request has been fulfilled, resulting in the creation of a new resource.
|
|
91267
|
-
*/
|
|
91268
|
-
HttpStatusCode[HttpStatusCode["CREATED"] = 201] = "CREATED";
|
|
91269
|
-
/**
|
|
91270
|
-
* The request has been accepted for processing, but the processing has not been completed.
|
|
91271
|
-
* The request might or might not be eventually acted upon, and may be disallowed when processing occurs.
|
|
91272
|
-
*/
|
|
91273
|
-
HttpStatusCode[HttpStatusCode["ACCEPTED"] = 202] = "ACCEPTED";
|
|
91274
|
-
/**
|
|
91275
|
-
* SINCE HTTP/1.1
|
|
91276
|
-
* The server is a transforming proxy that received a 200 OK from its origin,
|
|
91277
|
-
* but is returning a modified version of the origin's response.
|
|
91278
|
-
*/
|
|
91279
|
-
HttpStatusCode[HttpStatusCode["NON_AUTHORITATIVE_INFORMATION"] = 203] = "NON_AUTHORITATIVE_INFORMATION";
|
|
91280
|
-
/**
|
|
91281
|
-
* The server successfully processed the request and is not returning any content.
|
|
91282
|
-
*/
|
|
91283
|
-
HttpStatusCode[HttpStatusCode["NO_CONTENT"] = 204] = "NO_CONTENT";
|
|
91284
|
-
/**
|
|
91285
|
-
* The server successfully processed the request, but is not returning any content.
|
|
91286
|
-
* Unlike a 204 response, this response requires that the requester reset the document view.
|
|
91287
|
-
*/
|
|
91288
|
-
HttpStatusCode[HttpStatusCode["RESET_CONTENT"] = 205] = "RESET_CONTENT";
|
|
91289
|
-
/**
|
|
91290
|
-
* The server is delivering only part of the resource (byte serving) due to a range header sent by the client.
|
|
91291
|
-
* The range header is used by HTTP clients to enable resuming of interrupted downloads,
|
|
91292
|
-
* or split a download into multiple simultaneous streams.
|
|
91293
|
-
*/
|
|
91294
|
-
HttpStatusCode[HttpStatusCode["PARTIAL_CONTENT"] = 206] = "PARTIAL_CONTENT";
|
|
91295
|
-
/**
|
|
91296
|
-
* The message body that follows is an XML message and can contain a number of separate response codes,
|
|
91297
|
-
* depending on how many sub-requests were made.
|
|
91298
|
-
*/
|
|
91299
|
-
HttpStatusCode[HttpStatusCode["MULTI_STATUS"] = 207] = "MULTI_STATUS";
|
|
91300
|
-
/**
|
|
91301
|
-
* The members of a DAV binding have already been enumerated in a preceding part of the (multistatus) response,
|
|
91302
|
-
* and are not being included again.
|
|
91303
|
-
*/
|
|
91304
|
-
HttpStatusCode[HttpStatusCode["ALREADY_REPORTED"] = 208] = "ALREADY_REPORTED";
|
|
91305
|
-
/**
|
|
91306
|
-
* The server has fulfilled a request for the resource,
|
|
91307
|
-
* and the response is a representation of the result of one or more instance-manipulations applied to the current instance.
|
|
91308
|
-
*/
|
|
91309
|
-
HttpStatusCode[HttpStatusCode["IM_USED"] = 226] = "IM_USED";
|
|
91310
|
-
/**
|
|
91311
|
-
* Indicates multiple options for the resource from which the client may choose (via agent-driven content negotiation).
|
|
91312
|
-
* For example, this code could be used to present multiple video format options,
|
|
91313
|
-
* to list files with different filename extensions, or to suggest word-sense disambiguation.
|
|
91314
|
-
*/
|
|
91315
|
-
HttpStatusCode[HttpStatusCode["MULTIPLE_CHOICES"] = 300] = "MULTIPLE_CHOICES";
|
|
91316
|
-
/**
|
|
91317
|
-
* This and all future requests should be directed to the given URI.
|
|
91318
|
-
*/
|
|
91319
|
-
HttpStatusCode[HttpStatusCode["MOVED_PERMANENTLY"] = 301] = "MOVED_PERMANENTLY";
|
|
91320
|
-
/**
|
|
91321
|
-
* This is an example of industry practice contradicting the standard.
|
|
91322
|
-
* The HTTP/1.0 specification (RFC 1945) required the client to perform a temporary redirect
|
|
91323
|
-
* (the original describing phrase was "Moved Temporarily"), but popular browsers implemented 302
|
|
91324
|
-
* with the functionality of a 303 See Other. Therefore, HTTP/1.1 added status codes 303 and 307
|
|
91325
|
-
* to distinguish between the two behaviours. However, some Web applications and frameworks
|
|
91326
|
-
* use the 302 status code as if it were the 303.
|
|
91327
|
-
*/
|
|
91328
|
-
HttpStatusCode[HttpStatusCode["FOUND"] = 302] = "FOUND";
|
|
91329
|
-
/**
|
|
91330
|
-
* SINCE HTTP/1.1
|
|
91331
|
-
* The response to the request can be found under another URI using a GET method.
|
|
91332
|
-
* When received in response to a POST (or PUT/DELETE), the client should presume that
|
|
91333
|
-
* the server has received the data and should issue a redirect with a separate GET message.
|
|
91334
|
-
*/
|
|
91335
|
-
HttpStatusCode[HttpStatusCode["SEE_OTHER"] = 303] = "SEE_OTHER";
|
|
91336
|
-
/**
|
|
91337
|
-
* Indicates that the resource has not been modified since the version specified by the request headers If-Modified-Since or If-None-Match.
|
|
91338
|
-
* In such case, there is no need to retransmit the resource since the client still has a previously-downloaded copy.
|
|
91339
|
-
*/
|
|
91340
|
-
HttpStatusCode[HttpStatusCode["NOT_MODIFIED"] = 304] = "NOT_MODIFIED";
|
|
91341
|
-
/**
|
|
91342
|
-
* SINCE HTTP/1.1
|
|
91343
|
-
* The requested resource is available only through a proxy, the address for which is provided in the response.
|
|
91344
|
-
* Many HTTP clients (such as Mozilla and Internet Explorer) do not correctly handle responses with this status code, primarily for security reasons.
|
|
91345
|
-
*/
|
|
91346
|
-
HttpStatusCode[HttpStatusCode["USE_PROXY"] = 305] = "USE_PROXY";
|
|
91347
|
-
/**
|
|
91348
|
-
* No longer used. Originally meant "Subsequent requests should use the specified proxy."
|
|
91349
|
-
*/
|
|
91350
|
-
HttpStatusCode[HttpStatusCode["SWITCH_PROXY"] = 306] = "SWITCH_PROXY";
|
|
91351
|
-
/**
|
|
91352
|
-
* SINCE HTTP/1.1
|
|
91353
|
-
* In this case, the request should be repeated with another URI; however, future requests should still use the original URI.
|
|
91354
|
-
* In contrast to how 302 was historically implemented, the request method is not allowed to be changed when reissuing the original request.
|
|
91355
|
-
* For example, a POST request should be repeated using another POST request.
|
|
91356
|
-
*/
|
|
91357
|
-
HttpStatusCode[HttpStatusCode["TEMPORARY_REDIRECT"] = 307] = "TEMPORARY_REDIRECT";
|
|
91358
|
-
/**
|
|
91359
|
-
* The request and all future requests should be repeated using another URI.
|
|
91360
|
-
* 307 and 308 parallel the behaviors of 302 and 301, but do not allow the HTTP method to change.
|
|
91361
|
-
* So, for example, submitting a form to a permanently redirected resource may continue smoothly.
|
|
91362
|
-
*/
|
|
91363
|
-
HttpStatusCode[HttpStatusCode["PERMANENT_REDIRECT"] = 308] = "PERMANENT_REDIRECT";
|
|
91364
|
-
/**
|
|
91365
|
-
* The server cannot or will not process the request due to an apparent client error
|
|
91366
|
-
* (e.g., malformed request syntax, too large size, invalid request message framing, or deceptive request routing).
|
|
91367
|
-
*/
|
|
91368
|
-
HttpStatusCode[HttpStatusCode["BAD_REQUEST"] = 400] = "BAD_REQUEST";
|
|
91369
|
-
/**
|
|
91370
|
-
* Similar to 403 Forbidden, but specifically for use when authentication is required and has failed or has not yet
|
|
91371
|
-
* been provided. The response must include a WWW-Authenticate header field containing a challenge applicable to the
|
|
91372
|
-
* requested resource. See Basic access authentication and Digest access authentication. 401 semantically means
|
|
91373
|
-
* "unauthenticated",i.e. the user does not have the necessary credentials.
|
|
91374
|
-
*/
|
|
91375
|
-
HttpStatusCode[HttpStatusCode["UNAUTHORIZED"] = 401] = "UNAUTHORIZED";
|
|
91376
|
-
/**
|
|
91377
|
-
* Reserved for future use. The original intention was that this code might be used as part of some form of digital
|
|
91378
|
-
* cash or micro payment scheme, but that has not happened, and this code is not usually used.
|
|
91379
|
-
* Google Developers API uses this status if a particular developer has exceeded the daily limit on requests.
|
|
91380
|
-
*/
|
|
91381
|
-
HttpStatusCode[HttpStatusCode["PAYMENT_REQUIRED"] = 402] = "PAYMENT_REQUIRED";
|
|
91382
|
-
/**
|
|
91383
|
-
* The request was valid, but the server is refusing action.
|
|
91384
|
-
* The user might not have the necessary permissions for a resource.
|
|
91385
|
-
*/
|
|
91386
|
-
HttpStatusCode[HttpStatusCode["FORBIDDEN"] = 403] = "FORBIDDEN";
|
|
91387
|
-
/**
|
|
91388
|
-
* The requested resource could not be found but may be available in the future.
|
|
91389
|
-
* Subsequent requests by the client are permissible.
|
|
91390
|
-
*/
|
|
91391
|
-
HttpStatusCode[HttpStatusCode["NOT_FOUND"] = 404] = "NOT_FOUND";
|
|
91392
|
-
/**
|
|
91393
|
-
* A request method is not supported for the requested resource;
|
|
91394
|
-
* for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource.
|
|
91395
|
-
*/
|
|
91396
|
-
HttpStatusCode[HttpStatusCode["METHOD_NOT_ALLOWED"] = 405] = "METHOD_NOT_ALLOWED";
|
|
91397
|
-
/**
|
|
91398
|
-
* The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.
|
|
91399
|
-
*/
|
|
91400
|
-
HttpStatusCode[HttpStatusCode["NOT_ACCEPTABLE"] = 406] = "NOT_ACCEPTABLE";
|
|
91401
|
-
/**
|
|
91402
|
-
* The client must first authenticate itself with the proxy.
|
|
91403
|
-
*/
|
|
91404
|
-
HttpStatusCode[HttpStatusCode["PROXY_AUTHENTICATION_REQUIRED"] = 407] = "PROXY_AUTHENTICATION_REQUIRED";
|
|
91405
|
-
/**
|
|
91406
|
-
* The server timed out waiting for the request.
|
|
91407
|
-
* According to HTTP specifications:
|
|
91408
|
-
* "The client did not produce a request within the time that the server was prepared to wait. The client MAY repeat the request without modifications at any later time."
|
|
91409
|
-
*/
|
|
91410
|
-
HttpStatusCode[HttpStatusCode["REQUEST_TIMEOUT"] = 408] = "REQUEST_TIMEOUT";
|
|
91411
|
-
/**
|
|
91412
|
-
* Indicates that the request could not be processed because of conflict in the request,
|
|
91413
|
-
* such as an edit conflict between multiple simultaneous updates.
|
|
91414
|
-
*/
|
|
91415
|
-
HttpStatusCode[HttpStatusCode["CONFLICT"] = 409] = "CONFLICT";
|
|
91416
|
-
/**
|
|
91417
|
-
* Indicates that the resource requested is no longer available and will not be available again.
|
|
91418
|
-
* This should be used when a resource has been intentionally removed and the resource should be purged.
|
|
91419
|
-
* Upon receiving a 410 status code, the client should not request the resource in the future.
|
|
91420
|
-
* Clients such as search engines should remove the resource from their indices.
|
|
91421
|
-
* Most use cases do not require clients and search engines to purge the resource, and a "404 Not Found" may be used instead.
|
|
91422
|
-
*/
|
|
91423
|
-
HttpStatusCode[HttpStatusCode["GONE"] = 410] = "GONE";
|
|
91424
|
-
/**
|
|
91425
|
-
* The request did not specify the length of its content, which is required by the requested resource.
|
|
91426
|
-
*/
|
|
91427
|
-
HttpStatusCode[HttpStatusCode["LENGTH_REQUIRED"] = 411] = "LENGTH_REQUIRED";
|
|
91428
|
-
/**
|
|
91429
|
-
* The server does not meet one of the preconditions that the requester put on the request.
|
|
91430
|
-
*/
|
|
91431
|
-
HttpStatusCode[HttpStatusCode["PRECONDITION_FAILED"] = 412] = "PRECONDITION_FAILED";
|
|
91432
|
-
/**
|
|
91433
|
-
* The request is larger than the server is willing or able to process. Previously called "Request Entity Too Large".
|
|
91434
|
-
*/
|
|
91435
|
-
HttpStatusCode[HttpStatusCode["PAYLOAD_TOO_LARGE"] = 413] = "PAYLOAD_TOO_LARGE";
|
|
91436
|
-
/**
|
|
91437
|
-
* The URI provided was too long for the server to process. Often the result of too much data being encoded as a query-string of a GET request,
|
|
91438
|
-
* in which case it should be converted to a POST request.
|
|
91439
|
-
* Called "Request-URI Too Long" previously.
|
|
91440
|
-
*/
|
|
91441
|
-
HttpStatusCode[HttpStatusCode["URI_TOO_LONG"] = 414] = "URI_TOO_LONG";
|
|
91442
|
-
/**
|
|
91443
|
-
* The request entity has a media type which the server or resource does not support.
|
|
91444
|
-
* For example, the client uploads an image as image/svg+xml, but the server requires that images use a different format.
|
|
91445
|
-
*/
|
|
91446
|
-
HttpStatusCode[HttpStatusCode["UNSUPPORTED_MEDIA_TYPE"] = 415] = "UNSUPPORTED_MEDIA_TYPE";
|
|
91447
|
-
/**
|
|
91448
|
-
* The client has asked for a portion of the file (byte serving), but the server cannot supply that portion.
|
|
91449
|
-
* For example, if the client asked for a part of the file that lies beyond the end of the file.
|
|
91450
|
-
* Called "Requested Range Not Satisfiable" previously.
|
|
91451
|
-
*/
|
|
91452
|
-
HttpStatusCode[HttpStatusCode["RANGE_NOT_SATISFIABLE"] = 416] = "RANGE_NOT_SATISFIABLE";
|
|
91453
|
-
/**
|
|
91454
|
-
* The server cannot meet the requirements of the Expect request-header field.
|
|
91455
|
-
*/
|
|
91456
|
-
HttpStatusCode[HttpStatusCode["EXPECTATION_FAILED"] = 417] = "EXPECTATION_FAILED";
|
|
91457
|
-
/**
|
|
91458
|
-
* This code was defined in 1998 as one of the traditional IETF April Fools' jokes, in RFC 2324, Hyper Text Coffee Pot Control Protocol,
|
|
91459
|
-
* and is not expected to be implemented by actual HTTP servers. The RFC specifies this code should be returned by
|
|
91460
|
-
* teapots requested to brew coffee. This HTTP status is used as an Easter egg in some websites, including Google.com.
|
|
91461
|
-
*/
|
|
91462
|
-
HttpStatusCode[HttpStatusCode["I_AM_A_TEAPOT"] = 418] = "I_AM_A_TEAPOT";
|
|
91463
|
-
/**
|
|
91464
|
-
* The request was directed at a server that is not able to produce a response (for example because a connection reuse).
|
|
91465
|
-
*/
|
|
91466
|
-
HttpStatusCode[HttpStatusCode["MISDIRECTED_REQUEST"] = 421] = "MISDIRECTED_REQUEST";
|
|
91467
|
-
/**
|
|
91468
|
-
* The request was well-formed but was unable to be followed due to semantic errors.
|
|
91469
|
-
*/
|
|
91470
|
-
HttpStatusCode[HttpStatusCode["UNPROCESSABLE_ENTITY"] = 422] = "UNPROCESSABLE_ENTITY";
|
|
91471
|
-
/**
|
|
91472
|
-
* The resource that is being accessed is locked.
|
|
91473
|
-
*/
|
|
91474
|
-
HttpStatusCode[HttpStatusCode["LOCKED"] = 423] = "LOCKED";
|
|
91475
|
-
/**
|
|
91476
|
-
* The request failed due to failure of a previous request (e.g., a PROPPATCH).
|
|
91477
|
-
*/
|
|
91478
|
-
HttpStatusCode[HttpStatusCode["FAILED_DEPENDENCY"] = 424] = "FAILED_DEPENDENCY";
|
|
91479
|
-
/**
|
|
91480
|
-
* The client should switch to a different protocol such as TLS/1.0, given in the Upgrade header field.
|
|
91481
|
-
*/
|
|
91482
|
-
HttpStatusCode[HttpStatusCode["UPGRADE_REQUIRED"] = 426] = "UPGRADE_REQUIRED";
|
|
91483
|
-
/**
|
|
91484
|
-
* The origin server requires the request to be conditional.
|
|
91485
|
-
* Intended to prevent "the 'lost update' problem, where a client
|
|
91486
|
-
* GETs a resource's state, modifies it, and PUTs it back to the server,
|
|
91487
|
-
* when meanwhile a third party has modified the state on the server, leading to a conflict."
|
|
91488
|
-
*/
|
|
91489
|
-
HttpStatusCode[HttpStatusCode["PRECONDITION_REQUIRED"] = 428] = "PRECONDITION_REQUIRED";
|
|
91490
|
-
/**
|
|
91491
|
-
* The user has sent too many requests in a given amount of time. Intended for use with rate-limiting schemes.
|
|
91492
|
-
*/
|
|
91493
|
-
HttpStatusCode[HttpStatusCode["TOO_MANY_REQUESTS"] = 429] = "TOO_MANY_REQUESTS";
|
|
91494
|
-
/**
|
|
91495
|
-
* The server is unwilling to process the request because either an individual header field,
|
|
91496
|
-
* or all the header fields collectively, are too large.
|
|
91497
|
-
*/
|
|
91498
|
-
HttpStatusCode[HttpStatusCode["REQUEST_HEADER_FIELDS_TOO_LARGE"] = 431] = "REQUEST_HEADER_FIELDS_TOO_LARGE";
|
|
91499
|
-
/**
|
|
91500
|
-
* A server operator has received a legal demand to deny access to a resource or to a set of resources
|
|
91501
|
-
* that includes the requested resource. The code 451 was chosen as a reference to the novel Fahrenheit 451.
|
|
91502
|
-
*/
|
|
91503
|
-
HttpStatusCode[HttpStatusCode["UNAVAILABLE_FOR_LEGAL_REASONS"] = 451] = "UNAVAILABLE_FOR_LEGAL_REASONS";
|
|
91504
|
-
/**
|
|
91505
|
-
* A generic error message, given when an unexpected condition was encountered and no more specific message is suitable.
|
|
91506
|
-
*/
|
|
91507
|
-
HttpStatusCode[HttpStatusCode["INTERNAL_SERVER_ERROR"] = 500] = "INTERNAL_SERVER_ERROR";
|
|
91508
|
-
/**
|
|
91509
|
-
* The server either does not recognize the request method, or it lacks the ability to fulfill the request.
|
|
91510
|
-
* Usually this implies future availability (e.g., a new feature of a web-service API).
|
|
91511
|
-
*/
|
|
91512
|
-
HttpStatusCode[HttpStatusCode["NOT_IMPLEMENTED"] = 501] = "NOT_IMPLEMENTED";
|
|
91513
|
-
/**
|
|
91514
|
-
* The server was acting as a gateway or proxy and received an invalid response from the upstream server.
|
|
91515
|
-
*/
|
|
91516
|
-
HttpStatusCode[HttpStatusCode["BAD_GATEWAY"] = 502] = "BAD_GATEWAY";
|
|
91517
|
-
/**
|
|
91518
|
-
* The server is currently unavailable (because it is overloaded or down for maintenance).
|
|
91519
|
-
* Generally, this is a temporary state.
|
|
91520
|
-
*/
|
|
91521
|
-
HttpStatusCode[HttpStatusCode["SERVICE_UNAVAILABLE"] = 503] = "SERVICE_UNAVAILABLE";
|
|
91522
|
-
/**
|
|
91523
|
-
* The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
|
|
91524
|
-
*/
|
|
91525
|
-
HttpStatusCode[HttpStatusCode["GATEWAY_TIMEOUT"] = 504] = "GATEWAY_TIMEOUT";
|
|
91526
|
-
/**
|
|
91527
|
-
* The server does not support the HTTP protocol version used in the request
|
|
91528
|
-
*/
|
|
91529
|
-
HttpStatusCode[HttpStatusCode["HTTP_VERSION_NOT_SUPPORTED"] = 505] = "HTTP_VERSION_NOT_SUPPORTED";
|
|
91530
|
-
/**
|
|
91531
|
-
* Transparent content negotiation for the request results in a circular reference.
|
|
91532
|
-
*/
|
|
91533
|
-
HttpStatusCode[HttpStatusCode["VARIANT_ALSO_NEGOTIATES"] = 506] = "VARIANT_ALSO_NEGOTIATES";
|
|
91534
|
-
/**
|
|
91535
|
-
* The server is unable to store the representation needed to complete the request.
|
|
91536
|
-
*/
|
|
91537
|
-
HttpStatusCode[HttpStatusCode["INSUFFICIENT_STORAGE"] = 507] = "INSUFFICIENT_STORAGE";
|
|
91538
|
-
/**
|
|
91539
|
-
* The server detected an infinite loop while processing the request.
|
|
91540
|
-
*/
|
|
91541
|
-
HttpStatusCode[HttpStatusCode["LOOP_DETECTED"] = 508] = "LOOP_DETECTED";
|
|
91542
|
-
/**
|
|
91543
|
-
* Further extensions to the request are required for the server to fulfill it.
|
|
91544
|
-
*/
|
|
91545
|
-
HttpStatusCode[HttpStatusCode["NOT_EXTENDED"] = 510] = "NOT_EXTENDED";
|
|
91546
|
-
/**
|
|
91547
|
-
* The client needs to authenticate to gain network access.
|
|
91548
|
-
* Intended for use by intercepting proxies used to control access to the network (e.g., "captive portals" used
|
|
91549
|
-
* to require agreement to Terms of Service before granting full Internet access via a Wi-Fi hotspot).
|
|
91550
|
-
*/
|
|
91551
|
-
HttpStatusCode[HttpStatusCode["NETWORK_AUTHENTICATION_REQUIRED"] = 511] = "NETWORK_AUTHENTICATION_REQUIRED";
|
|
91552
|
-
})(HttpStatusCode || (HttpStatusCode = {}));
|
|
91553
|
-
const HttpStatusCodeName = {
|
|
91554
|
-
CONTINUE: "CONTINUE",
|
|
91555
|
-
SWITCHING_PROTOCOLS: "SWITCHING_PROTOCOLS",
|
|
91556
|
-
PROCESSING: "PROCESSING",
|
|
91557
|
-
OK: "OK",
|
|
91558
|
-
CREATED: "CREATED",
|
|
91559
|
-
ACCEPTED: "ACCEPTED",
|
|
91560
|
-
NON_AUTHORITATIVE_INFORMATION: "NON_AUTHORITATIVE_INFORMATION",
|
|
91561
|
-
NO_CONTENT: "NO_CONTENT",
|
|
91562
|
-
RESET_CONTENT: "RESET_CONTENT",
|
|
91563
|
-
PARTIAL_CONTENT: "PARTIAL_CONTENT",
|
|
91564
|
-
MULTI_STATUS: "MULTI_STATUS",
|
|
91565
|
-
ALREADY_REPORTED: "ALREADY_REPORTED",
|
|
91566
|
-
IM_USED: "IM_USED",
|
|
91567
|
-
MULTIPLE_CHOICES: "MULTIPLE_CHOICES",
|
|
91568
|
-
MOVED_PERMANENTLY: "MOVED_PERMANENTLY",
|
|
91569
|
-
FOUND: "FOUND",
|
|
91570
|
-
SEE_OTHER: "SEE_OTHER",
|
|
91571
|
-
NOT_MODIFIED: "NOT_MODIFIED",
|
|
91572
|
-
USE_PROXY: "USE_PROXY",
|
|
91573
|
-
SWITCH_PROXY: "SWITCH_PROXY",
|
|
91574
|
-
TEMPORARY_REDIRECT: "TEMPORARY_REDIRECT",
|
|
91575
|
-
PERMANENT_REDIRECT: "PERMANENT_REDIRECT",
|
|
91576
|
-
BAD_REQUEST: "BAD_REQUEST",
|
|
91577
|
-
UNAUTHORIZED: "UNAUTHORIZED",
|
|
91578
|
-
PAYMENT_REQUIRED: "PAYMENT_REQUIRED",
|
|
91579
|
-
FORBIDDEN: "FORBIDDEN",
|
|
91580
|
-
NOT_FOUND: "NOT_FOUND",
|
|
91581
|
-
METHOD_NOT_ALLOWED: "METHOD_NOT_ALLOWED",
|
|
91582
|
-
NOT_ACCEPTABLE: "NOT_ACCEPTABLE",
|
|
91583
|
-
PROXY_AUTHENTICATION_REQUIRED: "PROXY_AUTHENTICATION_REQUIRED",
|
|
91584
|
-
REQUEST_TIMEOUT: "REQUEST_TIMEOUT",
|
|
91585
|
-
CONFLICT: "CONFLICT",
|
|
91586
|
-
GONE: "GONE",
|
|
91587
|
-
LENGTH_REQUIRED: "LENGTH_REQUIRED",
|
|
91588
|
-
PRECONDITION_FAILED: "PRECONDITION_FAILED",
|
|
91589
|
-
PAYLOAD_TOO_LARGE: "PAYLOAD_TOO_LARGE",
|
|
91590
|
-
URI_TOO_LONG: "URI_TOO_LONG",
|
|
91591
|
-
UNSUPPORTED_MEDIA_TYPE: "UNSUPPORTED_MEDIA_TYPE",
|
|
91592
|
-
RANGE_NOT_SATISFIABLE: "RANGE_NOT_SATISFIABLE",
|
|
91593
|
-
EXPECTATION_FAILED: "EXPECTATION_FAILED",
|
|
91594
|
-
I_AM_A_TEAPOT: "I_AM_A_TEAPOT",
|
|
91595
|
-
MISDIRECTED_REQUEST: "MISDIRECTED_REQUEST",
|
|
91596
|
-
UNPROCESSABLE_ENTITY: "UNPROCESSABLE_ENTITY",
|
|
91597
|
-
LOCKED: "LOCKED",
|
|
91598
|
-
FAILED_DEPENDENCY: "FAILED_DEPENDENCY",
|
|
91599
|
-
UPGRADE_REQUIRED: "UPGRADE_REQUIRED",
|
|
91600
|
-
PRECONDITION_REQUIRED: "PRECONDITION_REQUIRED",
|
|
91601
|
-
TOO_MANY_REQUESTS: "TOO_MANY_REQUESTS",
|
|
91602
|
-
REQUEST_HEADER_FIELDS_TOO_LARGE: "REQUEST_HEADER_FIELDS_TOO_LARGE",
|
|
91603
|
-
UNAVAILABLE_FOR_LEGAL_REASONS: "UNAVAILABLE_FOR_LEGAL_REASONS",
|
|
91604
|
-
INTERNAL_SERVER_ERROR: "INTERNAL_SERVER_ERROR",
|
|
91605
|
-
NOT_IMPLEMENTED: "NOT_IMPLEMENTED",
|
|
91606
|
-
BAD_GATEWAY: "BAD_GATEWAY",
|
|
91607
|
-
SERVICE_UNAVAILABLE: "SERVICE_UNAVAILABLE",
|
|
91608
|
-
GATEWAY_TIMEOUT: "GATEWAY_TIMEOUT",
|
|
91609
|
-
HTTP_VERSION_NOT_SUPPORTED: "HTTP_VERSION_NOT_SUPPORTED",
|
|
91610
|
-
VARIANT_ALSO_NEGOTIATES: "VARIANT_ALSO_NEGOTIATES",
|
|
91611
|
-
INSUFFICIENT_STORAGE: "INSUFFICIENT_STORAGE",
|
|
91612
|
-
LOOP_DETECTED: "LOOP_DETECTED",
|
|
91613
|
-
NOT_EXTENDED: "NOT_EXTENDED",
|
|
91614
|
-
NETWORK_AUTHENTICATION_REQUIRED: "NETWORK_AUTHENTICATION_REQUIRED"
|
|
91615
|
-
};
|
|
91616
|
-
|
|
91617
|
-
var $$1 = _export;
|
|
91618
|
-
var $includes = arrayIncludes.includes;
|
|
91619
|
-
var fails = fails$m;
|
|
91620
|
-
var addToUnscopables = addToUnscopables$2;
|
|
91621
|
-
|
|
91622
|
-
// FF99+ bug
|
|
91623
|
-
var BROKEN_ON_SPARSE = fails(function () {
|
|
91624
|
-
// eslint-disable-next-line es/no-array-prototype-includes -- detection
|
|
91625
|
-
return !Array(1).includes();
|
|
91626
|
-
});
|
|
91627
|
-
|
|
91628
|
-
// `Array.prototype.includes` method
|
|
91629
|
-
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
|
91630
|
-
$$1({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
|
91631
|
-
includes: function includes(el /* , fromIndex = 0 */) {
|
|
91632
|
-
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
|
91633
|
-
}
|
|
91634
|
-
});
|
|
91635
|
-
|
|
91636
|
-
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
|
91637
|
-
addToUnscopables('includes');
|
|
91638
|
-
|
|
91639
|
-
var isObject = isObject$d;
|
|
91640
|
-
var classof = classofRaw$2;
|
|
91641
|
-
var wellKnownSymbol$1 = wellKnownSymbol$i;
|
|
91642
|
-
|
|
91643
|
-
var MATCH$1 = wellKnownSymbol$1('match');
|
|
91644
|
-
|
|
91645
|
-
// `IsRegExp` abstract operation
|
|
91646
|
-
// https://tc39.es/ecma262/#sec-isregexp
|
|
91647
|
-
var isRegexp = function (it) {
|
|
91648
|
-
var isRegExp;
|
|
91649
|
-
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classof(it) === 'RegExp');
|
|
91650
|
-
};
|
|
91651
|
-
|
|
91652
|
-
var isRegExp = isRegexp;
|
|
91653
|
-
|
|
91654
|
-
var $TypeError = TypeError;
|
|
91655
|
-
|
|
91656
|
-
var notARegexp = function (it) {
|
|
91657
|
-
if (isRegExp(it)) {
|
|
91658
|
-
throw new $TypeError("The method doesn't accept regular expressions");
|
|
91659
|
-
} return it;
|
|
91660
|
-
};
|
|
91661
|
-
|
|
91662
|
-
var wellKnownSymbol = wellKnownSymbol$i;
|
|
91663
|
-
|
|
91664
|
-
var MATCH = wellKnownSymbol('match');
|
|
91665
|
-
|
|
91666
|
-
var correctIsRegexpLogic = function (METHOD_NAME) {
|
|
91667
|
-
var regexp = /./;
|
|
91668
|
-
try {
|
|
91669
|
-
'/./'[METHOD_NAME](regexp);
|
|
91670
|
-
} catch (error1) {
|
|
91671
|
-
try {
|
|
91672
|
-
regexp[MATCH] = false;
|
|
91673
|
-
return '/./'[METHOD_NAME](regexp);
|
|
91674
|
-
} catch (error2) { /* empty */ }
|
|
91675
|
-
} return false;
|
|
91676
|
-
};
|
|
91677
|
-
|
|
91678
|
-
var $ = _export;
|
|
91679
|
-
var uncurryThis = functionUncurryThis;
|
|
91680
|
-
var notARegExp = notARegexp;
|
|
91681
|
-
var requireObjectCoercible = requireObjectCoercible$8;
|
|
91682
|
-
var toString = toString$9;
|
|
91683
|
-
var correctIsRegExpLogic = correctIsRegexpLogic;
|
|
91684
|
-
|
|
91685
|
-
var stringIndexOf = uncurryThis(''.indexOf);
|
|
91686
|
-
|
|
91687
|
-
// `String.prototype.includes` method
|
|
91688
|
-
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
|
91689
|
-
$({ target: 'String', proto: true, forced: !correctIsRegExpLogic('includes') }, {
|
|
91690
|
-
includes: function includes(searchString /* , position = 0 */) {
|
|
91691
|
-
return !!~stringIndexOf(
|
|
91692
|
-
toString(requireObjectCoercible(this)),
|
|
91693
|
-
toString(notARegExp(searchString)),
|
|
91694
|
-
arguments.length > 1 ? arguments[1] : undefined
|
|
91695
|
-
);
|
|
91696
|
-
}
|
|
91697
|
-
});
|
|
91698
|
-
|
|
91699
|
-
// import LanguageDetector from 'i18next-browser-languagedetector';
|
|
91700
|
-
const LOCAL_STORAGE_I18N_STRING = 'I18N_SELECTION';
|
|
91701
|
-
const systemDefaultLang = 'en';
|
|
91702
|
-
const init = () => {
|
|
91703
|
-
const currentLng = localStorage.getItem(LOCAL_STORAGE_I18N_STRING) || systemDefaultLang;
|
|
91704
|
-
i18n.use(Backend) // load translation using http
|
|
91705
|
-
// .use(LanguageDetector) // detect user language
|
|
91706
|
-
.use(initReactI18next) // passes i18n down to react-i18next
|
|
91707
|
-
.init({
|
|
91708
|
-
lng: currentLng,
|
|
91709
|
-
fallbackLng: systemDefaultLang,
|
|
91710
|
-
ns: 'translation',
|
|
91711
|
-
interpolation: {
|
|
91712
|
-
escapeValue: false
|
|
91713
|
-
},
|
|
91714
|
-
load: 'languageOnly',
|
|
91715
|
-
backend: {
|
|
91716
|
-
loadPath: '/assets/locales/{{lng}}/{{ns}}.json'
|
|
91717
|
-
}
|
|
91718
|
-
});
|
|
91719
|
-
};
|
|
91720
|
-
const changeLang = lang => {
|
|
91721
|
-
localStorage.setItem(LOCAL_STORAGE_I18N_STRING, lang);
|
|
91722
|
-
i18n.changeLanguage(lang);
|
|
91723
|
-
};
|
|
91724
|
-
const getLang = () => {
|
|
91725
|
-
var _a;
|
|
91726
|
-
return (_a = localStorage.getItem(LOCAL_STORAGE_I18N_STRING)) !== null && _a !== void 0 ? _a : systemDefaultLang;
|
|
91727
|
-
};
|
|
91728
|
-
const LangService = {
|
|
91729
|
-
init,
|
|
91730
|
-
changeLang,
|
|
91731
|
-
getLang
|
|
91732
|
-
};
|
|
91733
|
-
var Languages;
|
|
91734
|
-
(function (Languages) {
|
|
91735
|
-
Languages["EN"] = "en";
|
|
91736
|
-
Languages["AR"] = "ar";
|
|
91737
|
-
Languages["TR"] = "tr";
|
|
91738
|
-
})(Languages || (Languages = {}));
|
|
91739
|
-
|
|
91740
|
-
class StringsUtils {
|
|
91741
|
-
static localCompareStrings(a, b) {
|
|
91742
|
-
const language = LangService.getLang();
|
|
91743
|
-
return a.toLocaleLowerCase(language !== null && language !== void 0 ? language : 'tr').localeCompare(b.toLocaleLowerCase(language !== null && language !== void 0 ? language : 'tr'), language !== null && language !== void 0 ? language : 'tr');
|
|
91744
|
-
}
|
|
91745
|
-
static localeIncludeString(a, b) {
|
|
91746
|
-
const language = LangService.getLang();
|
|
91747
|
-
return a.toLocaleLowerCase(language !== null && language !== void 0 ? language : 'tr').includes(b.toLocaleLowerCase(language !== null && language !== void 0 ? language : 'tr'));
|
|
91748
|
-
}
|
|
91749
|
-
static isStringHasCharacters(text) {
|
|
91750
|
-
return text && text.length > 0;
|
|
91751
|
-
}
|
|
91752
|
-
}
|
|
91753
|
-
|
|
91754
|
-
export { CreateCheckoutSessionUri, CreatePortalSessionUri, HttpStatusCode, HttpStatusCodeName, IntegrationTypePossibleValues, LOCAL_STORAGE_I18N_STRING, LangService, Languages, MessageTypePossibleValues, ModelFieldsTypes, ModelUtilities, StringsUtils, VALIDATE_COMPANY_NAME, addDomain, addDomainOptions, apiBackend, apiV2Backend, appConfig, auth, companyUsersQuery, contentInstancesQuery, createCompany, createCompanyOptions, createContentInstanceMutation, createContentInstanceMutationOptions, createContentMutation, createContentMutationOptions, createFileMutation, createFolderMutation, dconfigClient, deleteFileMutation, deleteFolderMutation, dqueryClient, filesQuery, foldersTreeQuery, forgetPassword, forgetPasswordOptions, frontend, inviteUser, inviteUserOptions, login, loginOptions, menuConfigurationQuery, querySectionThumb, queryUsage, registeUsage, register, registerOptions, removeContentMutation, removeDomain, removeDomainOptions, removeUserFromCompany, removeUserFromCompanyOptions, resetPassword, resetPasswordOptions, showcaseClient, showcaseConfig, showcaseConfigById, showcaseConfigurationQuery, showcaseConfigurationQueryOptions, showcaseContentsQuery, showcaseContext, showcaseDomainsQuery, showcaseDomainsQueryOptions, showcasePagesQuery, showcasePagesQueryOptions, showcaseSectionQuery, showcaseSectionsQuery, showcaseSectionsQueryOptions, showcaseTemplateSectionsThumbsMap, showcaseTemplatesQuery, showcaseTemplatesQueryOptions, subscriptionConfigurationQuery, subscriptionConfigurationQueryOptions, tokenClient, updateCompany, updateCompanyOptions, updateContentInstanceFieldValuesMutation, updateContentInstanceFieldValuesMutationOptions, updateContentsOrderingMutation, updateContentsOrderingMutationOptions, updateTemplateSectionThumb, updateUserPassword, updateUserPasswordOptions, updateUserProfile, updateUserProfileOptions, useContentInstancesQuery, useCreateContentInstanceMutation, useCreateContentMutation, useCreateFileMutation, useCreateFolderMutation, useDeleteContentMutation, useDeleteFileMutation, useDeleteFolderMutation, useDomainsQuery, useFilesQuery, useFoldersTreeQuery, useMenuConfigurationQuery, useModelChildrenQuery, useModelsQuery, useQuerySectionThumb, useQueryUsage, useRegisterUsage, useShowcaseConfig, useShowcaseConfigById, useShowcaseConfigurationQuery, useShowcaseContentsQuery, useShowcaseContext, useShowcasePagesQuery, useShowcaseSectionQuery, useShowcaseTemplate, useShowcaseTemplateOptions, useShowcaseTemplateProgress, useShowcaseTemplateProgressQuery, useTemplateSectionsThumbsMap, useUpdateContentInstanceFieldValuesMutation, useUpdateContentsOrderingMutation, useUserCompaniesQuery, useValidateCompanyName, userCompaniesQuery, userCompaniesQueryOptions, userInfoQuery, userInfoQueryOptions, viewTypeChildrenQuery, viewTypeChildrenQueryOptions, viewTypesQuery, viewTypesQueryOptions, withDQueryClient, withShowcaseClient };
|
|
90598
|
+
export { CreateCheckoutSessionUri, CreatePortalSessionUri, ModelFieldsTypes, ModelUtilities, VALIDATE_COMPANY_NAME, addDomain, addDomainOptions, apiBackend, apiV2Backend, appConfig, botClient, companyUsersQuery, contentInstancesQuery, coreClient, createCompany, createContentInstanceMutation, createContentInstanceMutationOptions, createContentMutation, createContentMutationOptions, createFileMutation, createFolderMutation, dconfigClient, deleteFileMutation, deleteFolderMutation, dqueryClient, filesQuery, foldersTreeQuery, forgetPassword, forgetPasswordOptions, frontend, inviteUser, inviteUserOptions, login, loginOptions, menuConfigurationQuery, portalThemeConfig, querySectionThumb, queryUsage, registeUsage, register, registerOptions, removeContentMutation, removeDomain, removeDomainOptions, removeUserFromCompany, removeUserFromCompanyOptions, resetPassword, resetPasswordOptions, showcaseClient, showcaseConfig, showcaseConfigById, showcaseConfigurationQuery, showcaseConfigurationQueryOptions, showcaseContentsQuery, showcaseContext, showcaseDomainsQuery, showcasePagesQuery, showcaseSectionQuery, showcaseSectionsQuery, showcaseTemplateSectionsThumbsMap, showcaseTemplatesQuery, showcaseTemplatesQueryOptions, subscriptionConfigurationQuery, subscriptionConfigurationQueryOptions, tokenClient, updateCompany, updateCompanyOptions, updateContentInstanceFieldValuesMutation, updateContentInstanceFieldValuesMutationOptions, updateContentsOrderingMutation, updateContentsOrderingMutationOptions, updateTemplateSectionThumb, updateUserPassword, updateUserPasswordOptions, updateUserProfile, updateUserProfileOptions, useContentInstancesQuery, useCreateCompanyMutation, useCreateContentInstanceMutation, useCreateContentMutation, useCreateFileMutation, useCreateFolderMutation, useDeleteContentMutation, useDeleteFileMutation, useDeleteFolderMutation, useDomainsQuery, useFilesQuery, useFoldersTreeQuery, useMenuConfigurationQuery, useModelChildrenQuery, useModelsQuery, usePortalThemeConfig, useQuerySectionThumb, useQueryUsage, useRegisterUsage, useShowcaseConfig, useShowcaseConfigById, useShowcaseConfigurationQuery, useShowcaseContentsQuery, useShowcaseContext, useShowcasePagesQuery, useShowcaseSectionQuery, useShowcaseSectionsQuery, useShowcaseTemplate, useShowcaseTemplateOptions, useShowcaseTemplateProgress, useShowcaseTemplateProgressQuery, useTemplateSectionsThumbsMap, useUpdateContentInstanceFieldValuesMutation, useUpdateContentsOrderingMutation, useUserCompaniesQuery, useValidateCompanyName, userCompaniesQuery, userCompaniesQueryOptions, userInfoQuery, userInfoQueryOptions, viewTypeChildrenQuery, viewTypeChildrenQueryOptions, viewTypesQuery, viewTypesQueryOptions, withDQueryClient, withShowcaseClient };
|