contentful-management 11.43.0 → 11.43.1
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/dist/contentful-management.browser.js +732 -317
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +831 -397
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/adapters/REST/endpoints/bulk-action.js +0 -2
- package/dist/es-modules/adapters/REST/endpoints/release-action.js +0 -2
- package/dist/es-modules/common-types.js +0 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/entities/bulk-action.js +4 -0
- package/dist/es-modules/entities/scheduled-action.js +5 -0
- package/package.json +8 -19
|
@@ -1238,8 +1238,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1238
1238
|
/* harmony export */ validate: function() { return /* binding */ validate; }
|
|
1239
1239
|
/* harmony export */ });
|
|
1240
1240
|
/* harmony import */ var _raw__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./raw */ "./adapters/REST/endpoints/raw.ts");
|
|
1241
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
1242
|
-
|
|
1243
1241
|
|
|
1244
1242
|
var get = function get(http, params) {
|
|
1245
1243
|
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/bulk_actions/actions/").concat(params.bulkActionId));
|
|
@@ -2910,8 +2908,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
2910
2908
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
2911
2909
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
2912
2910
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2913
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2914
|
-
|
|
2915
2911
|
|
|
2916
2912
|
var get = function get(http, params) {
|
|
2917
2913
|
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/releases/").concat(params.releaseId, "/actions/").concat(params.actionId));
|
|
@@ -4638,7 +4634,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4638
4634
|
*/
|
|
4639
4635
|
|
|
4640
4636
|
/** Base interface for all Payload interfaces. Used as part of the MakeRequestOptions to simplify payload definitions. */
|
|
4641
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
4642
4637
|
|
|
4643
4638
|
var ScheduledActionReferenceFilters = /*#__PURE__*/function (ScheduledActionReferenceFilters) {
|
|
4644
4639
|
ScheduledActionReferenceFilters["contentTypeAnnotationNotIn"] = "sys.contentType.metadata.annotations.ContentType[nin]";
|
|
@@ -13929,9 +13924,13 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
13929
13924
|
|
|
13930
13925
|
/** Represents the state of the BulkAction */
|
|
13931
13926
|
var BulkActionStatus = /*#__PURE__*/function (BulkActionStatus) {
|
|
13927
|
+
/** BulkAction is pending execution */
|
|
13932
13928
|
BulkActionStatus["created"] = "created";
|
|
13929
|
+
/** BulkAction has been started and pending completion */
|
|
13933
13930
|
BulkActionStatus["inProgress"] = "inProgress";
|
|
13931
|
+
/** BulkAction was completed successfully (terminal state) */
|
|
13934
13932
|
BulkActionStatus["succeeded"] = "succeeded";
|
|
13933
|
+
/** BulkAction failed to complete (terminal state) */
|
|
13935
13934
|
BulkActionStatus["failed"] = "failed";
|
|
13936
13935
|
return BulkActionStatus;
|
|
13937
13936
|
}({});
|
|
@@ -16053,10 +16052,15 @@ function _asyncToGenerator(n) { return function () { var t = this, e = arguments
|
|
|
16053
16052
|
* Represents that state of the scheduled action
|
|
16054
16053
|
*/
|
|
16055
16054
|
var ScheduledActionStatus = /*#__PURE__*/function (ScheduledActionStatus) {
|
|
16055
|
+
/** action is pending execution */
|
|
16056
16056
|
ScheduledActionStatus["scheduled"] = "scheduled";
|
|
16057
|
+
/** action has been started and pending completion */
|
|
16057
16058
|
ScheduledActionStatus["inProgress"] = "inProgress";
|
|
16059
|
+
/** action was completed successfully (terminal state) */
|
|
16058
16060
|
ScheduledActionStatus["succeeded"] = "succeeded";
|
|
16061
|
+
/** action failed to complete (terminal state) */
|
|
16059
16062
|
ScheduledActionStatus["failed"] = "failed";
|
|
16063
|
+
/** action was canceled by a user (terminal state) */
|
|
16060
16064
|
ScheduledActionStatus["canceled"] = "canceled";
|
|
16061
16065
|
return ScheduledActionStatus;
|
|
16062
16066
|
}({});
|
|
@@ -18402,141 +18406,164 @@ function getUploadHttpClient(http, options) {
|
|
|
18402
18406
|
|
|
18403
18407
|
/***/ }),
|
|
18404
18408
|
|
|
18405
|
-
/***/ "../node_modules/call-bind/
|
|
18406
|
-
|
|
18407
|
-
!*** ../node_modules/call-bind/
|
|
18408
|
-
|
|
18409
|
+
/***/ "../node_modules/call-bind-apply-helpers/actualApply.js":
|
|
18410
|
+
/*!**************************************************************!*\
|
|
18411
|
+
!*** ../node_modules/call-bind-apply-helpers/actualApply.js ***!
|
|
18412
|
+
\**************************************************************/
|
|
18409
18413
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
18410
18414
|
|
|
18411
18415
|
"use strict";
|
|
18412
18416
|
|
|
18413
18417
|
|
|
18414
|
-
var
|
|
18418
|
+
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
18415
18419
|
|
|
18416
|
-
var
|
|
18420
|
+
var $apply = __webpack_require__(/*! ./functionApply */ "../node_modules/call-bind-apply-helpers/functionApply.js");
|
|
18421
|
+
var $call = __webpack_require__(/*! ./functionCall */ "../node_modules/call-bind-apply-helpers/functionCall.js");
|
|
18422
|
+
var $reflectApply = __webpack_require__(/*! ./reflectApply */ "../node_modules/call-bind-apply-helpers/reflectApply.js");
|
|
18417
18423
|
|
|
18418
|
-
|
|
18424
|
+
/** @type {import('./actualApply')} */
|
|
18425
|
+
module.exports = $reflectApply || bind.call($call, $apply);
|
|
18419
18426
|
|
|
18420
|
-
|
|
18421
|
-
|
|
18422
|
-
|
|
18423
|
-
|
|
18424
|
-
|
|
18425
|
-
|
|
18426
|
-
|
|
18427
|
+
|
|
18428
|
+
/***/ }),
|
|
18429
|
+
|
|
18430
|
+
/***/ "../node_modules/call-bind-apply-helpers/functionApply.js":
|
|
18431
|
+
/*!****************************************************************!*\
|
|
18432
|
+
!*** ../node_modules/call-bind-apply-helpers/functionApply.js ***!
|
|
18433
|
+
\****************************************************************/
|
|
18434
|
+
/***/ (function(module) {
|
|
18435
|
+
|
|
18436
|
+
"use strict";
|
|
18437
|
+
|
|
18438
|
+
|
|
18439
|
+
/** @type {import('./functionApply')} */
|
|
18440
|
+
module.exports = Function.prototype.apply;
|
|
18427
18441
|
|
|
18428
18442
|
|
|
18429
18443
|
/***/ }),
|
|
18430
18444
|
|
|
18431
|
-
/***/ "../node_modules/call-bind/
|
|
18432
|
-
|
|
18433
|
-
!*** ../node_modules/call-bind/
|
|
18434
|
-
|
|
18445
|
+
/***/ "../node_modules/call-bind-apply-helpers/functionCall.js":
|
|
18446
|
+
/*!***************************************************************!*\
|
|
18447
|
+
!*** ../node_modules/call-bind-apply-helpers/functionCall.js ***!
|
|
18448
|
+
\***************************************************************/
|
|
18449
|
+
/***/ (function(module) {
|
|
18450
|
+
|
|
18451
|
+
"use strict";
|
|
18452
|
+
|
|
18453
|
+
|
|
18454
|
+
/** @type {import('./functionCall')} */
|
|
18455
|
+
module.exports = Function.prototype.call;
|
|
18456
|
+
|
|
18457
|
+
|
|
18458
|
+
/***/ }),
|
|
18459
|
+
|
|
18460
|
+
/***/ "../node_modules/call-bind-apply-helpers/index.js":
|
|
18461
|
+
/*!********************************************************!*\
|
|
18462
|
+
!*** ../node_modules/call-bind-apply-helpers/index.js ***!
|
|
18463
|
+
\********************************************************/
|
|
18435
18464
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
18436
18465
|
|
|
18437
18466
|
"use strict";
|
|
18438
18467
|
|
|
18439
18468
|
|
|
18440
18469
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
18441
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
18442
|
-
var setFunctionLength = __webpack_require__(/*! set-function-length */ "../node_modules/set-function-length/index.js");
|
|
18443
|
-
|
|
18444
18470
|
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
18445
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
18446
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
18447
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
18448
18471
|
|
|
18449
|
-
var $
|
|
18450
|
-
var $
|
|
18472
|
+
var $call = __webpack_require__(/*! ./functionCall */ "../node_modules/call-bind-apply-helpers/functionCall.js");
|
|
18473
|
+
var $actualApply = __webpack_require__(/*! ./actualApply */ "../node_modules/call-bind-apply-helpers/actualApply.js");
|
|
18451
18474
|
|
|
18452
|
-
|
|
18453
|
-
|
|
18475
|
+
/** @type {import('.')} */
|
|
18476
|
+
module.exports = function callBindBasic(args) {
|
|
18477
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
18454
18478
|
throw new $TypeError('a function is required');
|
|
18455
18479
|
}
|
|
18456
|
-
|
|
18457
|
-
return setFunctionLength(
|
|
18458
|
-
func,
|
|
18459
|
-
1 + $max(0, originalFunction.length - (arguments.length - 1)),
|
|
18460
|
-
true
|
|
18461
|
-
);
|
|
18480
|
+
return $actualApply(bind, $call, args);
|
|
18462
18481
|
};
|
|
18463
18482
|
|
|
18464
|
-
var applyBind = function applyBind() {
|
|
18465
|
-
return $reflectApply(bind, $apply, arguments);
|
|
18466
|
-
};
|
|
18467
18483
|
|
|
18468
|
-
|
|
18469
|
-
|
|
18470
|
-
|
|
18471
|
-
|
|
18472
|
-
|
|
18484
|
+
/***/ }),
|
|
18485
|
+
|
|
18486
|
+
/***/ "../node_modules/call-bind-apply-helpers/reflectApply.js":
|
|
18487
|
+
/*!***************************************************************!*\
|
|
18488
|
+
!*** ../node_modules/call-bind-apply-helpers/reflectApply.js ***!
|
|
18489
|
+
\***************************************************************/
|
|
18490
|
+
/***/ (function(module) {
|
|
18491
|
+
|
|
18492
|
+
"use strict";
|
|
18493
|
+
|
|
18494
|
+
|
|
18495
|
+
/** @type {import('./reflectApply')} */
|
|
18496
|
+
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
18473
18497
|
|
|
18474
18498
|
|
|
18475
18499
|
/***/ }),
|
|
18476
18500
|
|
|
18477
|
-
/***/ "../node_modules/
|
|
18478
|
-
|
|
18479
|
-
!*** ../node_modules/
|
|
18480
|
-
|
|
18501
|
+
/***/ "../node_modules/call-bound/index.js":
|
|
18502
|
+
/*!*******************************************!*\
|
|
18503
|
+
!*** ../node_modules/call-bound/index.js ***!
|
|
18504
|
+
\*******************************************/
|
|
18481
18505
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
18482
18506
|
|
|
18483
18507
|
"use strict";
|
|
18484
18508
|
|
|
18485
18509
|
|
|
18486
|
-
var
|
|
18510
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
18487
18511
|
|
|
18488
|
-
var
|
|
18489
|
-
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
18512
|
+
var callBindBasic = __webpack_require__(/*! call-bind-apply-helpers */ "../node_modules/call-bind-apply-helpers/index.js");
|
|
18490
18513
|
|
|
18491
|
-
|
|
18514
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
18515
|
+
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
18492
18516
|
|
|
18493
18517
|
/** @type {import('.')} */
|
|
18494
|
-
module.exports = function
|
|
18495
|
-
|
|
18496
|
-
|
|
18497
|
-
|
|
18498
|
-
)
|
|
18499
|
-
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
18500
|
-
throw new $TypeError('`obj` must be an object or a function`');
|
|
18501
|
-
}
|
|
18502
|
-
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
18503
|
-
throw new $TypeError('`property` must be a string or a symbol`');
|
|
18504
|
-
}
|
|
18505
|
-
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
18506
|
-
throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
|
|
18507
|
-
}
|
|
18508
|
-
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
18509
|
-
throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
|
|
18510
|
-
}
|
|
18511
|
-
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
18512
|
-
throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
|
|
18513
|
-
}
|
|
18514
|
-
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
18515
|
-
throw new $TypeError('`loose`, if provided, must be a boolean');
|
|
18518
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
18519
|
+
// eslint-disable-next-line no-extra-parens
|
|
18520
|
+
var intrinsic = /** @type {Parameters<typeof callBindBasic>[0][0]} */ (GetIntrinsic(name, !!allowMissing));
|
|
18521
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
18522
|
+
return callBindBasic([intrinsic]);
|
|
18516
18523
|
}
|
|
18524
|
+
return intrinsic;
|
|
18525
|
+
};
|
|
18517
18526
|
|
|
18518
|
-
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
18519
|
-
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
18520
|
-
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
18521
|
-
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
18522
18527
|
|
|
18523
|
-
|
|
18524
|
-
var desc = !!gopd && gopd(obj, property);
|
|
18528
|
+
/***/ }),
|
|
18525
18529
|
|
|
18526
|
-
|
|
18527
|
-
|
|
18528
|
-
|
|
18529
|
-
|
|
18530
|
-
|
|
18531
|
-
|
|
18532
|
-
|
|
18533
|
-
|
|
18534
|
-
|
|
18535
|
-
|
|
18536
|
-
|
|
18537
|
-
|
|
18530
|
+
/***/ "../node_modules/dunder-proto/get.js":
|
|
18531
|
+
/*!*******************************************!*\
|
|
18532
|
+
!*** ../node_modules/dunder-proto/get.js ***!
|
|
18533
|
+
\*******************************************/
|
|
18534
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
18535
|
+
|
|
18536
|
+
"use strict";
|
|
18537
|
+
|
|
18538
|
+
|
|
18539
|
+
var callBind = __webpack_require__(/*! call-bind-apply-helpers */ "../node_modules/call-bind-apply-helpers/index.js");
|
|
18540
|
+
var gOPD = __webpack_require__(/*! gopd */ "../node_modules/gopd/index.js");
|
|
18541
|
+
|
|
18542
|
+
var hasProtoAccessor;
|
|
18543
|
+
try {
|
|
18544
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
18545
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
18546
|
+
} catch (e) {
|
|
18547
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
18548
|
+
throw e;
|
|
18538
18549
|
}
|
|
18539
|
-
}
|
|
18550
|
+
}
|
|
18551
|
+
|
|
18552
|
+
// eslint-disable-next-line no-extra-parens
|
|
18553
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
18554
|
+
|
|
18555
|
+
var $Object = Object;
|
|
18556
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
18557
|
+
|
|
18558
|
+
/** @type {import('./get')} */
|
|
18559
|
+
module.exports = desc && typeof desc.get === 'function'
|
|
18560
|
+
? callBind([desc.get])
|
|
18561
|
+
: typeof $getPrototypeOf === 'function'
|
|
18562
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
18563
|
+
// eslint-disable-next-line eqeqeq
|
|
18564
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
18565
|
+
}
|
|
18566
|
+
: false;
|
|
18540
18567
|
|
|
18541
18568
|
|
|
18542
18569
|
/***/ }),
|
|
@@ -18545,15 +18572,13 @@ module.exports = function defineDataProperty(
|
|
|
18545
18572
|
/*!***************************************************!*\
|
|
18546
18573
|
!*** ../node_modules/es-define-property/index.js ***!
|
|
18547
18574
|
\***************************************************/
|
|
18548
|
-
/***/ (function(module
|
|
18575
|
+
/***/ (function(module) {
|
|
18549
18576
|
|
|
18550
18577
|
"use strict";
|
|
18551
18578
|
|
|
18552
18579
|
|
|
18553
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
18554
|
-
|
|
18555
18580
|
/** @type {import('.')} */
|
|
18556
|
-
var $defineProperty =
|
|
18581
|
+
var $defineProperty = Object.defineProperty || false;
|
|
18557
18582
|
if ($defineProperty) {
|
|
18558
18583
|
try {
|
|
18559
18584
|
$defineProperty({}, 'a', { value: 1 });
|
|
@@ -18671,6 +18696,21 @@ module.exports = TypeError;
|
|
|
18671
18696
|
module.exports = URIError;
|
|
18672
18697
|
|
|
18673
18698
|
|
|
18699
|
+
/***/ }),
|
|
18700
|
+
|
|
18701
|
+
/***/ "../node_modules/es-object-atoms/index.js":
|
|
18702
|
+
/*!************************************************!*\
|
|
18703
|
+
!*** ../node_modules/es-object-atoms/index.js ***!
|
|
18704
|
+
\************************************************/
|
|
18705
|
+
/***/ (function(module) {
|
|
18706
|
+
|
|
18707
|
+
"use strict";
|
|
18708
|
+
|
|
18709
|
+
|
|
18710
|
+
/** @type {import('.')} */
|
|
18711
|
+
module.exports = Object;
|
|
18712
|
+
|
|
18713
|
+
|
|
18674
18714
|
/***/ }),
|
|
18675
18715
|
|
|
18676
18716
|
/***/ "../node_modules/function-bind/implementation.js":
|
|
@@ -18795,6 +18835,8 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
18795
18835
|
|
|
18796
18836
|
var undefined;
|
|
18797
18837
|
|
|
18838
|
+
var $Object = __webpack_require__(/*! es-object-atoms */ "../node_modules/es-object-atoms/index.js");
|
|
18839
|
+
|
|
18798
18840
|
var $Error = __webpack_require__(/*! es-errors */ "../node_modules/es-errors/index.js");
|
|
18799
18841
|
var $EvalError = __webpack_require__(/*! es-errors/eval */ "../node_modules/es-errors/eval.js");
|
|
18800
18842
|
var $RangeError = __webpack_require__(/*! es-errors/range */ "../node_modules/es-errors/range.js");
|
|
@@ -18803,6 +18845,14 @@ var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "../node_modules/
|
|
|
18803
18845
|
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
18804
18846
|
var $URIError = __webpack_require__(/*! es-errors/uri */ "../node_modules/es-errors/uri.js");
|
|
18805
18847
|
|
|
18848
|
+
var abs = __webpack_require__(/*! math-intrinsics/abs */ "../node_modules/math-intrinsics/abs.js");
|
|
18849
|
+
var floor = __webpack_require__(/*! math-intrinsics/floor */ "../node_modules/math-intrinsics/floor.js");
|
|
18850
|
+
var max = __webpack_require__(/*! math-intrinsics/max */ "../node_modules/math-intrinsics/max.js");
|
|
18851
|
+
var min = __webpack_require__(/*! math-intrinsics/min */ "../node_modules/math-intrinsics/min.js");
|
|
18852
|
+
var pow = __webpack_require__(/*! math-intrinsics/pow */ "../node_modules/math-intrinsics/pow.js");
|
|
18853
|
+
var round = __webpack_require__(/*! math-intrinsics/round */ "../node_modules/math-intrinsics/round.js");
|
|
18854
|
+
var sign = __webpack_require__(/*! math-intrinsics/sign */ "../node_modules/math-intrinsics/sign.js");
|
|
18855
|
+
|
|
18806
18856
|
var $Function = Function;
|
|
18807
18857
|
|
|
18808
18858
|
// eslint-disable-next-line consistent-return
|
|
@@ -18812,14 +18862,8 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
18812
18862
|
} catch (e) {}
|
|
18813
18863
|
};
|
|
18814
18864
|
|
|
18815
|
-
var $gOPD =
|
|
18816
|
-
|
|
18817
|
-
try {
|
|
18818
|
-
$gOPD({}, '');
|
|
18819
|
-
} catch (e) {
|
|
18820
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
18821
|
-
}
|
|
18822
|
-
}
|
|
18865
|
+
var $gOPD = __webpack_require__(/*! gopd */ "../node_modules/gopd/index.js");
|
|
18866
|
+
var $defineProperty = __webpack_require__(/*! es-define-property */ "../node_modules/es-define-property/index.js");
|
|
18823
18867
|
|
|
18824
18868
|
var throwTypeError = function () {
|
|
18825
18869
|
throw new $TypeError();
|
|
@@ -18842,13 +18886,13 @@ var ThrowTypeError = $gOPD
|
|
|
18842
18886
|
: throwTypeError;
|
|
18843
18887
|
|
|
18844
18888
|
var hasSymbols = __webpack_require__(/*! has-symbols */ "../node_modules/has-symbols/index.js")();
|
|
18845
|
-
var hasProto = __webpack_require__(/*! has-proto */ "../node_modules/has-proto/index.js")();
|
|
18846
18889
|
|
|
18847
|
-
var getProto =
|
|
18848
|
-
|
|
18849
|
-
|
|
18850
|
-
|
|
18851
|
-
);
|
|
18890
|
+
var getProto = __webpack_require__(/*! get-proto */ "../node_modules/get-proto/index.js");
|
|
18891
|
+
var $ObjectGPO = __webpack_require__(/*! get-proto/Object.getPrototypeOf */ "../node_modules/get-proto/Object.getPrototypeOf.js");
|
|
18892
|
+
var $ReflectGPO = __webpack_require__(/*! get-proto/Reflect.getPrototypeOf */ "../node_modules/get-proto/Reflect.getPrototypeOf.js");
|
|
18893
|
+
|
|
18894
|
+
var $apply = __webpack_require__(/*! call-bind-apply-helpers/functionApply */ "../node_modules/call-bind-apply-helpers/functionApply.js");
|
|
18895
|
+
var $call = __webpack_require__(/*! call-bind-apply-helpers/functionCall */ "../node_modules/call-bind-apply-helpers/functionCall.js");
|
|
18852
18896
|
|
|
18853
18897
|
var needsEval = {};
|
|
18854
18898
|
|
|
@@ -18895,7 +18939,8 @@ var INTRINSICS = {
|
|
|
18895
18939
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
18896
18940
|
'%Math%': Math,
|
|
18897
18941
|
'%Number%': Number,
|
|
18898
|
-
'%Object%': Object,
|
|
18942
|
+
'%Object%': $Object,
|
|
18943
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
18899
18944
|
'%parseFloat%': parseFloat,
|
|
18900
18945
|
'%parseInt%': parseInt,
|
|
18901
18946
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
@@ -18921,7 +18966,20 @@ var INTRINSICS = {
|
|
|
18921
18966
|
'%URIError%': $URIError,
|
|
18922
18967
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
18923
18968
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
18924
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
18969
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
|
18970
|
+
|
|
18971
|
+
'%Function.prototype.call%': $call,
|
|
18972
|
+
'%Function.prototype.apply%': $apply,
|
|
18973
|
+
'%Object.defineProperty%': $defineProperty,
|
|
18974
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
18975
|
+
'%Math.abs%': abs,
|
|
18976
|
+
'%Math.floor%': floor,
|
|
18977
|
+
'%Math.max%': max,
|
|
18978
|
+
'%Math.min%': min,
|
|
18979
|
+
'%Math.pow%': pow,
|
|
18980
|
+
'%Math.round%': round,
|
|
18981
|
+
'%Math.sign%': sign,
|
|
18982
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
18925
18983
|
};
|
|
18926
18984
|
|
|
18927
18985
|
if (getProto) {
|
|
@@ -19016,11 +19074,11 @@ var LEGACY_ALIASES = {
|
|
|
19016
19074
|
|
|
19017
19075
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
19018
19076
|
var hasOwn = __webpack_require__(/*! hasown */ "../node_modules/hasown/index.js");
|
|
19019
|
-
var $concat = bind.call(
|
|
19020
|
-
var $spliceApply = bind.call(
|
|
19021
|
-
var $replace = bind.call(
|
|
19022
|
-
var $strSlice = bind.call(
|
|
19023
|
-
var $exec = bind.call(
|
|
19077
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
19078
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
19079
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
19080
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
19081
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
19024
19082
|
|
|
19025
19083
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
19026
19084
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -19154,88 +19212,113 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
19154
19212
|
|
|
19155
19213
|
/***/ }),
|
|
19156
19214
|
|
|
19157
|
-
/***/ "../node_modules/
|
|
19158
|
-
|
|
19159
|
-
!*** ../node_modules/
|
|
19160
|
-
|
|
19215
|
+
/***/ "../node_modules/get-proto/Object.getPrototypeOf.js":
|
|
19216
|
+
/*!**********************************************************!*\
|
|
19217
|
+
!*** ../node_modules/get-proto/Object.getPrototypeOf.js ***!
|
|
19218
|
+
\**********************************************************/
|
|
19161
19219
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19162
19220
|
|
|
19163
19221
|
"use strict";
|
|
19164
19222
|
|
|
19165
19223
|
|
|
19166
|
-
var
|
|
19224
|
+
var $Object = __webpack_require__(/*! es-object-atoms */ "../node_modules/es-object-atoms/index.js");
|
|
19167
19225
|
|
|
19168
|
-
|
|
19226
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
19227
|
+
module.exports = $Object.getPrototypeOf || null;
|
|
19169
19228
|
|
|
19170
|
-
if ($gOPD) {
|
|
19171
|
-
try {
|
|
19172
|
-
$gOPD([], 'length');
|
|
19173
|
-
} catch (e) {
|
|
19174
|
-
// IE 8 has a broken gOPD
|
|
19175
|
-
$gOPD = null;
|
|
19176
|
-
}
|
|
19177
|
-
}
|
|
19178
19229
|
|
|
19179
|
-
|
|
19230
|
+
/***/ }),
|
|
19231
|
+
|
|
19232
|
+
/***/ "../node_modules/get-proto/Reflect.getPrototypeOf.js":
|
|
19233
|
+
/*!***********************************************************!*\
|
|
19234
|
+
!*** ../node_modules/get-proto/Reflect.getPrototypeOf.js ***!
|
|
19235
|
+
\***********************************************************/
|
|
19236
|
+
/***/ (function(module) {
|
|
19237
|
+
|
|
19238
|
+
"use strict";
|
|
19239
|
+
|
|
19240
|
+
|
|
19241
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
19242
|
+
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
19180
19243
|
|
|
19181
19244
|
|
|
19182
19245
|
/***/ }),
|
|
19183
19246
|
|
|
19184
|
-
/***/ "../node_modules/
|
|
19185
|
-
|
|
19186
|
-
!*** ../node_modules/
|
|
19187
|
-
|
|
19247
|
+
/***/ "../node_modules/get-proto/index.js":
|
|
19248
|
+
/*!******************************************!*\
|
|
19249
|
+
!*** ../node_modules/get-proto/index.js ***!
|
|
19250
|
+
\******************************************/
|
|
19188
19251
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19189
19252
|
|
|
19190
19253
|
"use strict";
|
|
19191
19254
|
|
|
19192
19255
|
|
|
19193
|
-
var
|
|
19256
|
+
var reflectGetProto = __webpack_require__(/*! ./Reflect.getPrototypeOf */ "../node_modules/get-proto/Reflect.getPrototypeOf.js");
|
|
19257
|
+
var originalGetProto = __webpack_require__(/*! ./Object.getPrototypeOf */ "../node_modules/get-proto/Object.getPrototypeOf.js");
|
|
19194
19258
|
|
|
19195
|
-
var
|
|
19196
|
-
return !!$defineProperty;
|
|
19197
|
-
};
|
|
19259
|
+
var getDunderProto = __webpack_require__(/*! dunder-proto/get */ "../node_modules/dunder-proto/get.js");
|
|
19198
19260
|
|
|
19199
|
-
|
|
19200
|
-
|
|
19201
|
-
|
|
19202
|
-
|
|
19203
|
-
|
|
19204
|
-
try {
|
|
19205
|
-
return $defineProperty([], 'length', { value: 1 }).length !== 1;
|
|
19206
|
-
} catch (e) {
|
|
19207
|
-
// In Firefox 4-22, defining length on an array throws an exception.
|
|
19208
|
-
return true;
|
|
19261
|
+
/** @type {import('.')} */
|
|
19262
|
+
module.exports = reflectGetProto
|
|
19263
|
+
? function getProto(O) {
|
|
19264
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
19265
|
+
return reflectGetProto(O);
|
|
19209
19266
|
}
|
|
19210
|
-
|
|
19211
|
-
|
|
19212
|
-
|
|
19267
|
+
: originalGetProto
|
|
19268
|
+
? function getProto(O) {
|
|
19269
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
19270
|
+
throw new TypeError('getProto: not an object');
|
|
19271
|
+
}
|
|
19272
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
19273
|
+
return originalGetProto(O);
|
|
19274
|
+
}
|
|
19275
|
+
: getDunderProto
|
|
19276
|
+
? function getProto(O) {
|
|
19277
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
19278
|
+
return getDunderProto(O);
|
|
19279
|
+
}
|
|
19280
|
+
: null;
|
|
19213
19281
|
|
|
19214
19282
|
|
|
19215
19283
|
/***/ }),
|
|
19216
19284
|
|
|
19217
|
-
/***/ "../node_modules/
|
|
19218
|
-
|
|
19219
|
-
!*** ../node_modules/
|
|
19220
|
-
|
|
19285
|
+
/***/ "../node_modules/gopd/gOPD.js":
|
|
19286
|
+
/*!************************************!*\
|
|
19287
|
+
!*** ../node_modules/gopd/gOPD.js ***!
|
|
19288
|
+
\************************************/
|
|
19221
19289
|
/***/ (function(module) {
|
|
19222
19290
|
|
|
19223
19291
|
"use strict";
|
|
19224
19292
|
|
|
19225
19293
|
|
|
19226
|
-
|
|
19227
|
-
|
|
19228
|
-
|
|
19229
|
-
|
|
19294
|
+
/** @type {import('./gOPD')} */
|
|
19295
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
19296
|
+
|
|
19297
|
+
|
|
19298
|
+
/***/ }),
|
|
19299
|
+
|
|
19300
|
+
/***/ "../node_modules/gopd/index.js":
|
|
19301
|
+
/*!*************************************!*\
|
|
19302
|
+
!*** ../node_modules/gopd/index.js ***!
|
|
19303
|
+
\*************************************/
|
|
19304
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19305
|
+
|
|
19306
|
+
"use strict";
|
|
19230
19307
|
|
|
19231
|
-
var $Object = Object;
|
|
19232
19308
|
|
|
19233
19309
|
/** @type {import('.')} */
|
|
19234
|
-
|
|
19235
|
-
|
|
19236
|
-
|
|
19237
|
-
|
|
19238
|
-
|
|
19310
|
+
var $gOPD = __webpack_require__(/*! ./gOPD */ "../node_modules/gopd/gOPD.js");
|
|
19311
|
+
|
|
19312
|
+
if ($gOPD) {
|
|
19313
|
+
try {
|
|
19314
|
+
$gOPD([], 'length');
|
|
19315
|
+
} catch (e) {
|
|
19316
|
+
// IE 8 has a broken gOPD
|
|
19317
|
+
$gOPD = null;
|
|
19318
|
+
}
|
|
19319
|
+
}
|
|
19320
|
+
|
|
19321
|
+
module.exports = $gOPD;
|
|
19239
19322
|
|
|
19240
19323
|
|
|
19241
19324
|
/***/ }),
|
|
@@ -19252,6 +19335,7 @@ module.exports = function hasProto() {
|
|
|
19252
19335
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
19253
19336
|
var hasSymbolSham = __webpack_require__(/*! ./shams */ "../node_modules/has-symbols/shams.js");
|
|
19254
19337
|
|
|
19338
|
+
/** @type {import('.')} */
|
|
19255
19339
|
module.exports = function hasNativeSymbols() {
|
|
19256
19340
|
if (typeof origSymbol !== 'function') { return false; }
|
|
19257
19341
|
if (typeof Symbol !== 'function') { return false; }
|
|
@@ -19273,11 +19357,13 @@ module.exports = function hasNativeSymbols() {
|
|
|
19273
19357
|
"use strict";
|
|
19274
19358
|
|
|
19275
19359
|
|
|
19360
|
+
/** @type {import('./shams')} */
|
|
19276
19361
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
19277
19362
|
module.exports = function hasSymbols() {
|
|
19278
19363
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
19279
19364
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
19280
19365
|
|
|
19366
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
19281
19367
|
var obj = {};
|
|
19282
19368
|
var sym = Symbol('test');
|
|
19283
19369
|
var symObj = Object(sym);
|
|
@@ -19296,7 +19382,7 @@ module.exports = function hasSymbols() {
|
|
|
19296
19382
|
|
|
19297
19383
|
var symVal = 42;
|
|
19298
19384
|
obj[sym] = symVal;
|
|
19299
|
-
for (
|
|
19385
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
19300
19386
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
19301
19387
|
|
|
19302
19388
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -19307,7 +19393,8 @@ module.exports = function hasSymbols() {
|
|
|
19307
19393
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
19308
19394
|
|
|
19309
19395
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
19310
|
-
|
|
19396
|
+
// eslint-disable-next-line no-extra-parens
|
|
19397
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
19311
19398
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
19312
19399
|
}
|
|
19313
19400
|
|
|
@@ -19594,6 +19681,135 @@ function isString(value) {
|
|
|
19594
19681
|
module.exports = isString;
|
|
19595
19682
|
|
|
19596
19683
|
|
|
19684
|
+
/***/ }),
|
|
19685
|
+
|
|
19686
|
+
/***/ "../node_modules/math-intrinsics/abs.js":
|
|
19687
|
+
/*!**********************************************!*\
|
|
19688
|
+
!*** ../node_modules/math-intrinsics/abs.js ***!
|
|
19689
|
+
\**********************************************/
|
|
19690
|
+
/***/ (function(module) {
|
|
19691
|
+
|
|
19692
|
+
"use strict";
|
|
19693
|
+
|
|
19694
|
+
|
|
19695
|
+
/** @type {import('./abs')} */
|
|
19696
|
+
module.exports = Math.abs;
|
|
19697
|
+
|
|
19698
|
+
|
|
19699
|
+
/***/ }),
|
|
19700
|
+
|
|
19701
|
+
/***/ "../node_modules/math-intrinsics/floor.js":
|
|
19702
|
+
/*!************************************************!*\
|
|
19703
|
+
!*** ../node_modules/math-intrinsics/floor.js ***!
|
|
19704
|
+
\************************************************/
|
|
19705
|
+
/***/ (function(module) {
|
|
19706
|
+
|
|
19707
|
+
"use strict";
|
|
19708
|
+
|
|
19709
|
+
|
|
19710
|
+
/** @type {import('./floor')} */
|
|
19711
|
+
module.exports = Math.floor;
|
|
19712
|
+
|
|
19713
|
+
|
|
19714
|
+
/***/ }),
|
|
19715
|
+
|
|
19716
|
+
/***/ "../node_modules/math-intrinsics/isNaN.js":
|
|
19717
|
+
/*!************************************************!*\
|
|
19718
|
+
!*** ../node_modules/math-intrinsics/isNaN.js ***!
|
|
19719
|
+
\************************************************/
|
|
19720
|
+
/***/ (function(module) {
|
|
19721
|
+
|
|
19722
|
+
"use strict";
|
|
19723
|
+
|
|
19724
|
+
|
|
19725
|
+
/** @type {import('./isNaN')} */
|
|
19726
|
+
module.exports = Number.isNaN || function isNaN(a) {
|
|
19727
|
+
return a !== a;
|
|
19728
|
+
};
|
|
19729
|
+
|
|
19730
|
+
|
|
19731
|
+
/***/ }),
|
|
19732
|
+
|
|
19733
|
+
/***/ "../node_modules/math-intrinsics/max.js":
|
|
19734
|
+
/*!**********************************************!*\
|
|
19735
|
+
!*** ../node_modules/math-intrinsics/max.js ***!
|
|
19736
|
+
\**********************************************/
|
|
19737
|
+
/***/ (function(module) {
|
|
19738
|
+
|
|
19739
|
+
"use strict";
|
|
19740
|
+
|
|
19741
|
+
|
|
19742
|
+
/** @type {import('./max')} */
|
|
19743
|
+
module.exports = Math.max;
|
|
19744
|
+
|
|
19745
|
+
|
|
19746
|
+
/***/ }),
|
|
19747
|
+
|
|
19748
|
+
/***/ "../node_modules/math-intrinsics/min.js":
|
|
19749
|
+
/*!**********************************************!*\
|
|
19750
|
+
!*** ../node_modules/math-intrinsics/min.js ***!
|
|
19751
|
+
\**********************************************/
|
|
19752
|
+
/***/ (function(module) {
|
|
19753
|
+
|
|
19754
|
+
"use strict";
|
|
19755
|
+
|
|
19756
|
+
|
|
19757
|
+
/** @type {import('./min')} */
|
|
19758
|
+
module.exports = Math.min;
|
|
19759
|
+
|
|
19760
|
+
|
|
19761
|
+
/***/ }),
|
|
19762
|
+
|
|
19763
|
+
/***/ "../node_modules/math-intrinsics/pow.js":
|
|
19764
|
+
/*!**********************************************!*\
|
|
19765
|
+
!*** ../node_modules/math-intrinsics/pow.js ***!
|
|
19766
|
+
\**********************************************/
|
|
19767
|
+
/***/ (function(module) {
|
|
19768
|
+
|
|
19769
|
+
"use strict";
|
|
19770
|
+
|
|
19771
|
+
|
|
19772
|
+
/** @type {import('./pow')} */
|
|
19773
|
+
module.exports = Math.pow;
|
|
19774
|
+
|
|
19775
|
+
|
|
19776
|
+
/***/ }),
|
|
19777
|
+
|
|
19778
|
+
/***/ "../node_modules/math-intrinsics/round.js":
|
|
19779
|
+
/*!************************************************!*\
|
|
19780
|
+
!*** ../node_modules/math-intrinsics/round.js ***!
|
|
19781
|
+
\************************************************/
|
|
19782
|
+
/***/ (function(module) {
|
|
19783
|
+
|
|
19784
|
+
"use strict";
|
|
19785
|
+
|
|
19786
|
+
|
|
19787
|
+
/** @type {import('./round')} */
|
|
19788
|
+
module.exports = Math.round;
|
|
19789
|
+
|
|
19790
|
+
|
|
19791
|
+
/***/ }),
|
|
19792
|
+
|
|
19793
|
+
/***/ "../node_modules/math-intrinsics/sign.js":
|
|
19794
|
+
/*!***********************************************!*\
|
|
19795
|
+
!*** ../node_modules/math-intrinsics/sign.js ***!
|
|
19796
|
+
\***********************************************/
|
|
19797
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19798
|
+
|
|
19799
|
+
"use strict";
|
|
19800
|
+
|
|
19801
|
+
|
|
19802
|
+
var $isNaN = __webpack_require__(/*! ./isNaN */ "../node_modules/math-intrinsics/isNaN.js");
|
|
19803
|
+
|
|
19804
|
+
/** @type {import('./sign')} */
|
|
19805
|
+
module.exports = function sign(number) {
|
|
19806
|
+
if ($isNaN(number) || number === 0) {
|
|
19807
|
+
return number;
|
|
19808
|
+
}
|
|
19809
|
+
return number < 0 ? -1 : +1;
|
|
19810
|
+
};
|
|
19811
|
+
|
|
19812
|
+
|
|
19597
19813
|
/***/ }),
|
|
19598
19814
|
|
|
19599
19815
|
/***/ "../node_modules/object-inspect/index.js":
|
|
@@ -20431,7 +20647,8 @@ var defaults = {
|
|
|
20431
20647
|
parseArrays: true,
|
|
20432
20648
|
plainObjects: false,
|
|
20433
20649
|
strictDepth: false,
|
|
20434
|
-
strictNullHandling: false
|
|
20650
|
+
strictNullHandling: false,
|
|
20651
|
+
throwOnLimitExceeded: false
|
|
20435
20652
|
};
|
|
20436
20653
|
|
|
20437
20654
|
var interpretNumericEntities = function (str) {
|
|
@@ -20440,11 +20657,15 @@ var interpretNumericEntities = function (str) {
|
|
|
20440
20657
|
});
|
|
20441
20658
|
};
|
|
20442
20659
|
|
|
20443
|
-
var parseArrayValue = function (val, options) {
|
|
20660
|
+
var parseArrayValue = function (val, options, currentArrayLength) {
|
|
20444
20661
|
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
20445
20662
|
return val.split(',');
|
|
20446
20663
|
}
|
|
20447
20664
|
|
|
20665
|
+
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
20666
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
20667
|
+
}
|
|
20668
|
+
|
|
20448
20669
|
return val;
|
|
20449
20670
|
};
|
|
20450
20671
|
|
|
@@ -20463,8 +20684,17 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
20463
20684
|
|
|
20464
20685
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
20465
20686
|
cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
20687
|
+
|
|
20466
20688
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
20467
|
-
var parts = cleanStr.split(
|
|
20689
|
+
var parts = cleanStr.split(
|
|
20690
|
+
options.delimiter,
|
|
20691
|
+
options.throwOnLimitExceeded ? limit + 1 : limit
|
|
20692
|
+
);
|
|
20693
|
+
|
|
20694
|
+
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
20695
|
+
throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.');
|
|
20696
|
+
}
|
|
20697
|
+
|
|
20468
20698
|
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
20469
20699
|
var i;
|
|
20470
20700
|
|
|
@@ -20492,14 +20722,20 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
20492
20722
|
var bracketEqualsPos = part.indexOf(']=');
|
|
20493
20723
|
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
20494
20724
|
|
|
20495
|
-
var key
|
|
20725
|
+
var key;
|
|
20726
|
+
var val;
|
|
20496
20727
|
if (pos === -1) {
|
|
20497
20728
|
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
20498
20729
|
val = options.strictNullHandling ? null : '';
|
|
20499
20730
|
} else {
|
|
20500
20731
|
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
20732
|
+
|
|
20501
20733
|
val = utils.maybeMap(
|
|
20502
|
-
parseArrayValue(
|
|
20734
|
+
parseArrayValue(
|
|
20735
|
+
part.slice(pos + 1),
|
|
20736
|
+
options,
|
|
20737
|
+
isArray(obj[key]) ? obj[key].length : 0
|
|
20738
|
+
),
|
|
20503
20739
|
function (encodedVal) {
|
|
20504
20740
|
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
20505
20741
|
}
|
|
@@ -20507,7 +20743,7 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
20507
20743
|
}
|
|
20508
20744
|
|
|
20509
20745
|
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
20510
|
-
val = interpretNumericEntities(val);
|
|
20746
|
+
val = interpretNumericEntities(String(val));
|
|
20511
20747
|
}
|
|
20512
20748
|
|
|
20513
20749
|
if (part.indexOf('[]=') > -1) {
|
|
@@ -20526,7 +20762,13 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
20526
20762
|
};
|
|
20527
20763
|
|
|
20528
20764
|
var parseObject = function (chain, val, options, valuesParsed) {
|
|
20529
|
-
var
|
|
20765
|
+
var currentArrayLength = 0;
|
|
20766
|
+
if (chain.length > 0 && chain[chain.length - 1] === '[]') {
|
|
20767
|
+
var parentKey = chain.slice(0, -1).join('');
|
|
20768
|
+
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
20769
|
+
}
|
|
20770
|
+
|
|
20771
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
20530
20772
|
|
|
20531
20773
|
for (var i = chain.length - 1; i >= 0; --i) {
|
|
20532
20774
|
var obj;
|
|
@@ -20535,9 +20777,9 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
20535
20777
|
if (root === '[]' && options.parseArrays) {
|
|
20536
20778
|
obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))
|
|
20537
20779
|
? []
|
|
20538
|
-
: []
|
|
20780
|
+
: utils.combine([], leaf);
|
|
20539
20781
|
} else {
|
|
20540
|
-
obj = options.plainObjects ?
|
|
20782
|
+
obj = options.plainObjects ? { __proto__: null } : {};
|
|
20541
20783
|
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
20542
20784
|
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
|
|
20543
20785
|
var index = parseInt(decodedRoot, 10);
|
|
@@ -20640,6 +20882,11 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
20640
20882
|
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
20641
20883
|
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
20642
20884
|
}
|
|
20885
|
+
|
|
20886
|
+
if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') {
|
|
20887
|
+
throw new TypeError('`throwOnLimitExceeded` option must be a boolean');
|
|
20888
|
+
}
|
|
20889
|
+
|
|
20643
20890
|
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
20644
20891
|
|
|
20645
20892
|
var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;
|
|
@@ -20671,7 +20918,8 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
20671
20918
|
parseArrays: opts.parseArrays !== false,
|
|
20672
20919
|
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
20673
20920
|
strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,
|
|
20674
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
20921
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
20922
|
+
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false
|
|
20675
20923
|
};
|
|
20676
20924
|
};
|
|
20677
20925
|
|
|
@@ -20679,11 +20927,11 @@ module.exports = function (str, opts) {
|
|
|
20679
20927
|
var options = normalizeParseOptions(opts);
|
|
20680
20928
|
|
|
20681
20929
|
if (str === '' || str === null || typeof str === 'undefined') {
|
|
20682
|
-
return options.plainObjects ?
|
|
20930
|
+
return options.plainObjects ? { __proto__: null } : {};
|
|
20683
20931
|
}
|
|
20684
20932
|
|
|
20685
20933
|
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
20686
|
-
var obj = options.plainObjects ?
|
|
20934
|
+
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
20687
20935
|
|
|
20688
20936
|
// Iterate over the keys and setup the new object
|
|
20689
20937
|
|
|
@@ -20747,11 +20995,13 @@ var defaults = {
|
|
|
20747
20995
|
arrayFormat: 'indices',
|
|
20748
20996
|
charset: 'utf-8',
|
|
20749
20997
|
charsetSentinel: false,
|
|
20998
|
+
commaRoundTrip: false,
|
|
20750
20999
|
delimiter: '&',
|
|
20751
21000
|
encode: true,
|
|
20752
21001
|
encodeDotInKeys: false,
|
|
20753
21002
|
encoder: utils.encode,
|
|
20754
21003
|
encodeValuesOnly: false,
|
|
21004
|
+
filter: void undefined,
|
|
20755
21005
|
format: defaultFormat,
|
|
20756
21006
|
formatter: formats.formatters[defaultFormat],
|
|
20757
21007
|
// deprecated
|
|
@@ -20863,7 +21113,7 @@ var stringify = function stringify(
|
|
|
20863
21113
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
20864
21114
|
}
|
|
20865
21115
|
|
|
20866
|
-
var encodedPrefix = encodeDotInKeys ? prefix.replace(/\./g, '%2E') : prefix;
|
|
21116
|
+
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
|
|
20867
21117
|
|
|
20868
21118
|
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
|
|
20869
21119
|
|
|
@@ -20873,13 +21123,15 @@ var stringify = function stringify(
|
|
|
20873
21123
|
|
|
20874
21124
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
20875
21125
|
var key = objKeys[j];
|
|
20876
|
-
var value = typeof key === 'object' && typeof key.value !== 'undefined'
|
|
21126
|
+
var value = typeof key === 'object' && key && typeof key.value !== 'undefined'
|
|
21127
|
+
? key.value
|
|
21128
|
+
: obj[key];
|
|
20877
21129
|
|
|
20878
21130
|
if (skipNulls && value === null) {
|
|
20879
21131
|
continue;
|
|
20880
21132
|
}
|
|
20881
21133
|
|
|
20882
|
-
var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
|
|
21134
|
+
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
|
|
20883
21135
|
var keyPrefix = isArray(obj)
|
|
20884
21136
|
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
|
|
20885
21137
|
: adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
|
|
@@ -20970,7 +21222,7 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
20970
21222
|
arrayFormat: arrayFormat,
|
|
20971
21223
|
charset: charset,
|
|
20972
21224
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
20973
|
-
commaRoundTrip: opts.commaRoundTrip,
|
|
21225
|
+
commaRoundTrip: !!opts.commaRoundTrip,
|
|
20974
21226
|
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
20975
21227
|
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
20976
21228
|
encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
@@ -21021,12 +21273,13 @@ module.exports = function (object, opts) {
|
|
|
21021
21273
|
var sideChannel = getSideChannel();
|
|
21022
21274
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
21023
21275
|
var key = objKeys[i];
|
|
21276
|
+
var value = obj[key];
|
|
21024
21277
|
|
|
21025
|
-
if (options.skipNulls &&
|
|
21278
|
+
if (options.skipNulls && value === null) {
|
|
21026
21279
|
continue;
|
|
21027
21280
|
}
|
|
21028
21281
|
pushToArray(keys, stringify(
|
|
21029
|
-
|
|
21282
|
+
value,
|
|
21030
21283
|
key,
|
|
21031
21284
|
generateArrayPrefix,
|
|
21032
21285
|
commaRoundTrip,
|
|
@@ -21109,7 +21362,7 @@ var compactQueue = function compactQueue(queue) {
|
|
|
21109
21362
|
};
|
|
21110
21363
|
|
|
21111
21364
|
var arrayToObject = function arrayToObject(source, options) {
|
|
21112
|
-
var obj = options && options.plainObjects ?
|
|
21365
|
+
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
21113
21366
|
for (var i = 0; i < source.length; ++i) {
|
|
21114
21367
|
if (typeof source[i] !== 'undefined') {
|
|
21115
21368
|
obj[i] = source[i];
|
|
@@ -21125,11 +21378,14 @@ var merge = function merge(target, source, options) {
|
|
|
21125
21378
|
return target;
|
|
21126
21379
|
}
|
|
21127
21380
|
|
|
21128
|
-
if (typeof source !== 'object') {
|
|
21381
|
+
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
21129
21382
|
if (isArray(target)) {
|
|
21130
21383
|
target.push(source);
|
|
21131
21384
|
} else if (target && typeof target === 'object') {
|
|
21132
|
-
if (
|
|
21385
|
+
if (
|
|
21386
|
+
(options && (options.plainObjects || options.allowPrototypes))
|
|
21387
|
+
|| !has.call(Object.prototype, source)
|
|
21388
|
+
) {
|
|
21133
21389
|
target[source] = true;
|
|
21134
21390
|
}
|
|
21135
21391
|
} else {
|
|
@@ -21183,7 +21439,7 @@ var assign = function assignSingleSource(target, source) {
|
|
|
21183
21439
|
}, target);
|
|
21184
21440
|
};
|
|
21185
21441
|
|
|
21186
|
-
var decode = function (str,
|
|
21442
|
+
var decode = function (str, defaultDecoder, charset) {
|
|
21187
21443
|
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
21188
21444
|
if (charset === 'iso-8859-1') {
|
|
21189
21445
|
// unescape never throws, no try...catch needed:
|
|
@@ -21342,193 +21598,352 @@ module.exports = {
|
|
|
21342
21598
|
|
|
21343
21599
|
/***/ }),
|
|
21344
21600
|
|
|
21345
|
-
/***/ "../node_modules/
|
|
21346
|
-
|
|
21347
|
-
!*** ../node_modules/
|
|
21348
|
-
|
|
21349
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21350
|
-
|
|
21351
|
-
"use strict";
|
|
21352
|
-
|
|
21353
|
-
|
|
21354
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
21355
|
-
var define = __webpack_require__(/*! define-data-property */ "../node_modules/define-data-property/index.js");
|
|
21356
|
-
var hasDescriptors = __webpack_require__(/*! has-property-descriptors */ "../node_modules/has-property-descriptors/index.js")();
|
|
21357
|
-
var gOPD = __webpack_require__(/*! gopd */ "../node_modules/gopd/index.js");
|
|
21358
|
-
|
|
21359
|
-
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
21360
|
-
var $floor = GetIntrinsic('%Math.floor%');
|
|
21361
|
-
|
|
21362
|
-
/** @type {import('.')} */
|
|
21363
|
-
module.exports = function setFunctionLength(fn, length) {
|
|
21364
|
-
if (typeof fn !== 'function') {
|
|
21365
|
-
throw new $TypeError('`fn` is not a function');
|
|
21366
|
-
}
|
|
21367
|
-
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
|
|
21368
|
-
throw new $TypeError('`length` must be a positive 32-bit integer');
|
|
21369
|
-
}
|
|
21370
|
-
|
|
21371
|
-
var loose = arguments.length > 2 && !!arguments[2];
|
|
21372
|
-
|
|
21373
|
-
var functionLengthIsConfigurable = true;
|
|
21374
|
-
var functionLengthIsWritable = true;
|
|
21375
|
-
if ('length' in fn && gOPD) {
|
|
21376
|
-
var desc = gOPD(fn, 'length');
|
|
21377
|
-
if (desc && !desc.configurable) {
|
|
21378
|
-
functionLengthIsConfigurable = false;
|
|
21379
|
-
}
|
|
21380
|
-
if (desc && !desc.writable) {
|
|
21381
|
-
functionLengthIsWritable = false;
|
|
21382
|
-
}
|
|
21383
|
-
}
|
|
21384
|
-
|
|
21385
|
-
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
21386
|
-
if (hasDescriptors) {
|
|
21387
|
-
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
|
|
21388
|
-
} else {
|
|
21389
|
-
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
|
|
21390
|
-
}
|
|
21391
|
-
}
|
|
21392
|
-
return fn;
|
|
21393
|
-
};
|
|
21394
|
-
|
|
21395
|
-
|
|
21396
|
-
/***/ }),
|
|
21397
|
-
|
|
21398
|
-
/***/ "../node_modules/side-channel/index.js":
|
|
21399
|
-
/*!*********************************************!*\
|
|
21400
|
-
!*** ../node_modules/side-channel/index.js ***!
|
|
21401
|
-
\*********************************************/
|
|
21601
|
+
/***/ "../node_modules/side-channel-list/index.js":
|
|
21602
|
+
/*!**************************************************!*\
|
|
21603
|
+
!*** ../node_modules/side-channel-list/index.js ***!
|
|
21604
|
+
\**************************************************/
|
|
21402
21605
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21403
21606
|
|
|
21404
21607
|
"use strict";
|
|
21405
21608
|
|
|
21406
21609
|
|
|
21407
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
21408
|
-
var callBound = __webpack_require__(/*! call-bind/callBound */ "../node_modules/call-bind/callBound.js");
|
|
21409
21610
|
var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js");
|
|
21410
21611
|
|
|
21411
21612
|
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
21412
|
-
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
21413
|
-
var $Map = GetIntrinsic('%Map%', true);
|
|
21414
|
-
|
|
21415
|
-
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
21416
|
-
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
21417
|
-
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
21418
|
-
var $mapGet = callBound('Map.prototype.get', true);
|
|
21419
|
-
var $mapSet = callBound('Map.prototype.set', true);
|
|
21420
|
-
var $mapHas = callBound('Map.prototype.has', true);
|
|
21421
21613
|
|
|
21422
21614
|
/*
|
|
21423
21615
|
* This function traverses the list returning the node corresponding to the given key.
|
|
21424
21616
|
*
|
|
21425
|
-
* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
|
|
21617
|
+
* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
|
|
21618
|
+
* By doing so, all the recently used nodes can be accessed relatively quickly.
|
|
21426
21619
|
*/
|
|
21427
|
-
/** @type {import('.').listGetNode} */
|
|
21428
|
-
|
|
21620
|
+
/** @type {import('./list.d.ts').listGetNode} */
|
|
21621
|
+
// eslint-disable-next-line consistent-return
|
|
21622
|
+
var listGetNode = function (list, key, isDelete) {
|
|
21429
21623
|
/** @type {typeof list | NonNullable<(typeof list)['next']>} */
|
|
21430
21624
|
var prev = list;
|
|
21431
21625
|
/** @type {(typeof list)['next']} */
|
|
21432
21626
|
var curr;
|
|
21433
|
-
|
|
21627
|
+
// eslint-disable-next-line eqeqeq
|
|
21628
|
+
for (; (curr = prev.next) != null; prev = curr) {
|
|
21434
21629
|
if (curr.key === key) {
|
|
21435
21630
|
prev.next = curr.next;
|
|
21436
|
-
|
|
21437
|
-
|
|
21438
|
-
|
|
21631
|
+
if (!isDelete) {
|
|
21632
|
+
// eslint-disable-next-line no-extra-parens
|
|
21633
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
|
|
21634
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
21635
|
+
}
|
|
21439
21636
|
return curr;
|
|
21440
21637
|
}
|
|
21441
21638
|
}
|
|
21442
21639
|
};
|
|
21443
21640
|
|
|
21444
|
-
/** @type {import('.').listGet} */
|
|
21641
|
+
/** @type {import('./list.d.ts').listGet} */
|
|
21445
21642
|
var listGet = function (objects, key) {
|
|
21643
|
+
if (!objects) {
|
|
21644
|
+
return void undefined;
|
|
21645
|
+
}
|
|
21446
21646
|
var node = listGetNode(objects, key);
|
|
21447
21647
|
return node && node.value;
|
|
21448
21648
|
};
|
|
21449
|
-
/** @type {import('.').listSet} */
|
|
21649
|
+
/** @type {import('./list.d.ts').listSet} */
|
|
21450
21650
|
var listSet = function (objects, key, value) {
|
|
21451
21651
|
var node = listGetNode(objects, key);
|
|
21452
21652
|
if (node) {
|
|
21453
21653
|
node.value = value;
|
|
21454
21654
|
} else {
|
|
21455
21655
|
// Prepend the new node to the beginning of the list
|
|
21456
|
-
objects.next = /** @type {import('.').ListNode<typeof value>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
21656
|
+
objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
21457
21657
|
key: key,
|
|
21458
21658
|
next: objects.next,
|
|
21459
21659
|
value: value
|
|
21460
21660
|
});
|
|
21461
21661
|
}
|
|
21462
21662
|
};
|
|
21463
|
-
/** @type {import('.').listHas} */
|
|
21663
|
+
/** @type {import('./list.d.ts').listHas} */
|
|
21464
21664
|
var listHas = function (objects, key) {
|
|
21665
|
+
if (!objects) {
|
|
21666
|
+
return false;
|
|
21667
|
+
}
|
|
21465
21668
|
return !!listGetNode(objects, key);
|
|
21466
21669
|
};
|
|
21670
|
+
/** @type {import('./list.d.ts').listDelete} */
|
|
21671
|
+
// eslint-disable-next-line consistent-return
|
|
21672
|
+
var listDelete = function (objects, key) {
|
|
21673
|
+
if (objects) {
|
|
21674
|
+
return listGetNode(objects, key, true);
|
|
21675
|
+
}
|
|
21676
|
+
};
|
|
21467
21677
|
|
|
21468
21678
|
/** @type {import('.')} */
|
|
21469
|
-
module.exports = function
|
|
21470
|
-
/** @
|
|
21471
|
-
/** @
|
|
21472
|
-
/** @
|
|
21679
|
+
module.exports = function getSideChannelList() {
|
|
21680
|
+
/** @typedef {ReturnType<typeof getSideChannelList>} Channel */
|
|
21681
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
21682
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
21473
21683
|
|
|
21474
|
-
/** @type {import('.').
|
|
21684
|
+
/** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;
|
|
21685
|
+
|
|
21686
|
+
/** @type {Channel} */
|
|
21475
21687
|
var channel = {
|
|
21476
21688
|
assert: function (key) {
|
|
21477
21689
|
if (!channel.has(key)) {
|
|
21478
21690
|
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
21479
21691
|
}
|
|
21480
21692
|
},
|
|
21481
|
-
|
|
21482
|
-
|
|
21483
|
-
|
|
21484
|
-
|
|
21485
|
-
|
|
21486
|
-
} else if ($Map) {
|
|
21487
|
-
if ($m) {
|
|
21488
|
-
return $mapGet($m, key);
|
|
21489
|
-
}
|
|
21490
|
-
} else {
|
|
21491
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
21492
|
-
return listGet($o, key);
|
|
21493
|
-
}
|
|
21693
|
+
'delete': function (key) {
|
|
21694
|
+
var root = $o && $o.next;
|
|
21695
|
+
var deletedNode = listDelete($o, key);
|
|
21696
|
+
if (deletedNode && root && root === deletedNode) {
|
|
21697
|
+
$o = void undefined;
|
|
21494
21698
|
}
|
|
21699
|
+
return !!deletedNode;
|
|
21700
|
+
},
|
|
21701
|
+
get: function (key) {
|
|
21702
|
+
return listGet($o, key);
|
|
21495
21703
|
},
|
|
21496
21704
|
has: function (key) {
|
|
21497
|
-
|
|
21498
|
-
|
|
21499
|
-
|
|
21500
|
-
|
|
21501
|
-
|
|
21502
|
-
|
|
21503
|
-
|
|
21504
|
-
}
|
|
21505
|
-
}
|
|
21506
|
-
|
|
21507
|
-
|
|
21705
|
+
return listHas($o, key);
|
|
21706
|
+
},
|
|
21707
|
+
set: function (key, value) {
|
|
21708
|
+
if (!$o) {
|
|
21709
|
+
// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
|
|
21710
|
+
$o = {
|
|
21711
|
+
next: void undefined
|
|
21712
|
+
};
|
|
21713
|
+
}
|
|
21714
|
+
// eslint-disable-next-line no-extra-parens
|
|
21715
|
+
listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
|
|
21716
|
+
}
|
|
21717
|
+
};
|
|
21718
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
21719
|
+
return channel;
|
|
21720
|
+
};
|
|
21721
|
+
|
|
21722
|
+
|
|
21723
|
+
/***/ }),
|
|
21724
|
+
|
|
21725
|
+
/***/ "../node_modules/side-channel-map/index.js":
|
|
21726
|
+
/*!*************************************************!*\
|
|
21727
|
+
!*** ../node_modules/side-channel-map/index.js ***!
|
|
21728
|
+
\*************************************************/
|
|
21729
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21730
|
+
|
|
21731
|
+
"use strict";
|
|
21732
|
+
|
|
21733
|
+
|
|
21734
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
21735
|
+
var callBound = __webpack_require__(/*! call-bound */ "../node_modules/call-bound/index.js");
|
|
21736
|
+
var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js");
|
|
21737
|
+
|
|
21738
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
21739
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
21740
|
+
|
|
21741
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
21742
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
21743
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
21744
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
21745
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
21746
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
21747
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
21748
|
+
var $mapDelete = callBound('Map.prototype.delete', true);
|
|
21749
|
+
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
21750
|
+
var $mapSize = callBound('Map.prototype.size', true);
|
|
21751
|
+
|
|
21752
|
+
/** @type {import('.')} */
|
|
21753
|
+
module.exports = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
21754
|
+
/** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
|
|
21755
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
21756
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
21757
|
+
|
|
21758
|
+
/** @type {Map<K, V> | undefined} */ var $m;
|
|
21759
|
+
|
|
21760
|
+
/** @type {Channel} */
|
|
21761
|
+
var channel = {
|
|
21762
|
+
assert: function (key) {
|
|
21763
|
+
if (!channel.has(key)) {
|
|
21764
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
21765
|
+
}
|
|
21766
|
+
},
|
|
21767
|
+
'delete': function (key) {
|
|
21768
|
+
if ($m) {
|
|
21769
|
+
var result = $mapDelete($m, key);
|
|
21770
|
+
if ($mapSize($m) === 0) {
|
|
21771
|
+
$m = void undefined;
|
|
21508
21772
|
}
|
|
21773
|
+
return result;
|
|
21774
|
+
}
|
|
21775
|
+
return false;
|
|
21776
|
+
},
|
|
21777
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
21778
|
+
if ($m) {
|
|
21779
|
+
return $mapGet($m, key);
|
|
21780
|
+
}
|
|
21781
|
+
},
|
|
21782
|
+
has: function (key) {
|
|
21783
|
+
if ($m) {
|
|
21784
|
+
return $mapHas($m, key);
|
|
21509
21785
|
}
|
|
21510
21786
|
return false;
|
|
21511
21787
|
},
|
|
21512
21788
|
set: function (key, value) {
|
|
21513
|
-
if (
|
|
21514
|
-
|
|
21515
|
-
|
|
21789
|
+
if (!$m) {
|
|
21790
|
+
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
21791
|
+
$m = new $Map();
|
|
21792
|
+
}
|
|
21793
|
+
$mapSet($m, key, value);
|
|
21794
|
+
}
|
|
21795
|
+
};
|
|
21796
|
+
|
|
21797
|
+
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
21798
|
+
return channel;
|
|
21799
|
+
};
|
|
21800
|
+
|
|
21801
|
+
|
|
21802
|
+
/***/ }),
|
|
21803
|
+
|
|
21804
|
+
/***/ "../node_modules/side-channel-weakmap/index.js":
|
|
21805
|
+
/*!*****************************************************!*\
|
|
21806
|
+
!*** ../node_modules/side-channel-weakmap/index.js ***!
|
|
21807
|
+
\*****************************************************/
|
|
21808
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21809
|
+
|
|
21810
|
+
"use strict";
|
|
21811
|
+
|
|
21812
|
+
|
|
21813
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
21814
|
+
var callBound = __webpack_require__(/*! call-bound */ "../node_modules/call-bound/index.js");
|
|
21815
|
+
var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js");
|
|
21816
|
+
var getSideChannelMap = __webpack_require__(/*! side-channel-map */ "../node_modules/side-channel-map/index.js");
|
|
21817
|
+
|
|
21818
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
21819
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
21820
|
+
|
|
21821
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
|
|
21822
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
21823
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
|
|
21824
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
21825
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
21826
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
21827
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
21828
|
+
var $weakMapDelete = callBound('WeakMap.prototype.delete', true);
|
|
21829
|
+
|
|
21830
|
+
/** @type {import('.')} */
|
|
21831
|
+
module.exports = $WeakMap
|
|
21832
|
+
? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {
|
|
21833
|
+
/** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */
|
|
21834
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
21835
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
21836
|
+
|
|
21837
|
+
/** @type {WeakMap<K & object, V> | undefined} */ var $wm;
|
|
21838
|
+
/** @type {Channel | undefined} */ var $m;
|
|
21839
|
+
|
|
21840
|
+
/** @type {Channel} */
|
|
21841
|
+
var channel = {
|
|
21842
|
+
assert: function (key) {
|
|
21843
|
+
if (!channel.has(key)) {
|
|
21844
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
21516
21845
|
}
|
|
21517
|
-
|
|
21518
|
-
|
|
21519
|
-
if (
|
|
21520
|
-
|
|
21846
|
+
},
|
|
21847
|
+
'delete': function (key) {
|
|
21848
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
21849
|
+
if ($wm) {
|
|
21850
|
+
return $weakMapDelete($wm, key);
|
|
21851
|
+
}
|
|
21852
|
+
} else if (getSideChannelMap) {
|
|
21853
|
+
if ($m) {
|
|
21854
|
+
return $m['delete'](key);
|
|
21855
|
+
}
|
|
21521
21856
|
}
|
|
21522
|
-
|
|
21523
|
-
}
|
|
21524
|
-
|
|
21525
|
-
|
|
21526
|
-
$
|
|
21857
|
+
return false;
|
|
21858
|
+
},
|
|
21859
|
+
get: function (key) {
|
|
21860
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
21861
|
+
if ($wm) {
|
|
21862
|
+
return $weakMapGet($wm, key);
|
|
21863
|
+
}
|
|
21864
|
+
}
|
|
21865
|
+
return $m && $m.get(key);
|
|
21866
|
+
},
|
|
21867
|
+
has: function (key) {
|
|
21868
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
21869
|
+
if ($wm) {
|
|
21870
|
+
return $weakMapHas($wm, key);
|
|
21871
|
+
}
|
|
21872
|
+
}
|
|
21873
|
+
return !!$m && $m.has(key);
|
|
21874
|
+
},
|
|
21875
|
+
set: function (key, value) {
|
|
21876
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
21877
|
+
if (!$wm) {
|
|
21878
|
+
$wm = new $WeakMap();
|
|
21879
|
+
}
|
|
21880
|
+
$weakMapSet($wm, key, value);
|
|
21881
|
+
} else if (getSideChannelMap) {
|
|
21882
|
+
if (!$m) {
|
|
21883
|
+
$m = getSideChannelMap();
|
|
21884
|
+
}
|
|
21885
|
+
// eslint-disable-next-line no-extra-parens
|
|
21886
|
+
/** @type {NonNullable<typeof $m>} */ ($m).set(key, value);
|
|
21527
21887
|
}
|
|
21528
|
-
listSet($o, key, value);
|
|
21529
21888
|
}
|
|
21889
|
+
};
|
|
21890
|
+
|
|
21891
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
21892
|
+
return channel;
|
|
21893
|
+
}
|
|
21894
|
+
: getSideChannelMap;
|
|
21895
|
+
|
|
21896
|
+
|
|
21897
|
+
/***/ }),
|
|
21898
|
+
|
|
21899
|
+
/***/ "../node_modules/side-channel/index.js":
|
|
21900
|
+
/*!*********************************************!*\
|
|
21901
|
+
!*** ../node_modules/side-channel/index.js ***!
|
|
21902
|
+
\*********************************************/
|
|
21903
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21904
|
+
|
|
21905
|
+
"use strict";
|
|
21906
|
+
|
|
21907
|
+
|
|
21908
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
21909
|
+
var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js");
|
|
21910
|
+
var getSideChannelList = __webpack_require__(/*! side-channel-list */ "../node_modules/side-channel-list/index.js");
|
|
21911
|
+
var getSideChannelMap = __webpack_require__(/*! side-channel-map */ "../node_modules/side-channel-map/index.js");
|
|
21912
|
+
var getSideChannelWeakMap = __webpack_require__(/*! side-channel-weakmap */ "../node_modules/side-channel-weakmap/index.js");
|
|
21913
|
+
|
|
21914
|
+
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
21915
|
+
|
|
21916
|
+
/** @type {import('.')} */
|
|
21917
|
+
module.exports = function getSideChannel() {
|
|
21918
|
+
/** @typedef {ReturnType<typeof getSideChannel>} Channel */
|
|
21919
|
+
|
|
21920
|
+
/** @type {Channel | undefined} */ var $channelData;
|
|
21921
|
+
|
|
21922
|
+
/** @type {Channel} */
|
|
21923
|
+
var channel = {
|
|
21924
|
+
assert: function (key) {
|
|
21925
|
+
if (!channel.has(key)) {
|
|
21926
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
21927
|
+
}
|
|
21928
|
+
},
|
|
21929
|
+
'delete': function (key) {
|
|
21930
|
+
return !!$channelData && $channelData['delete'](key);
|
|
21931
|
+
},
|
|
21932
|
+
get: function (key) {
|
|
21933
|
+
return $channelData && $channelData.get(key);
|
|
21934
|
+
},
|
|
21935
|
+
has: function (key) {
|
|
21936
|
+
return !!$channelData && $channelData.has(key);
|
|
21937
|
+
},
|
|
21938
|
+
set: function (key, value) {
|
|
21939
|
+
if (!$channelData) {
|
|
21940
|
+
$channelData = makeChannel();
|
|
21941
|
+
}
|
|
21942
|
+
|
|
21943
|
+
$channelData.set(key, value);
|
|
21530
21944
|
}
|
|
21531
21945
|
};
|
|
21946
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
21532
21947
|
return channel;
|
|
21533
21948
|
};
|
|
21534
21949
|
|
|
@@ -27624,7 +28039,7 @@ function createClient(params) {
|
|
|
27624
28039
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27625
28040
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
27626
28041
|
var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)(// @ts-expect-error
|
|
27627
|
-
"".concat(sdkMain, "/").concat("11.43.
|
|
28042
|
+
"".concat(sdkMain, "/").concat("11.43.1"), params.application, params.integration, params.feature);
|
|
27628
28043
|
var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
27629
28044
|
userAgent: userAgent
|
|
27630
28045
|
}));
|