contentful-management 11.30.2 → 11.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contentful-management.browser.js +138 -536
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +133 -531
- package/dist/contentful-management.node.js.map +1 -1
- package/dist/contentful-management.node.min.js +1 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/es-modules/entities/content-type-fields.js +1 -1
- package/dist/typings/adapters/REST/endpoints/access-token.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/api-key.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-access-token.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-action-call.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-action.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-bundle.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-definition.d.ts +2 -2
- package/dist/typings/adapters/REST/endpoints/app-details.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-event-subscription.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-installation.d.ts +2 -2
- package/dist/typings/adapters/REST/endpoints/app-key.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-signed-request.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-signing-secret.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/app-upload.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/asset-key.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/asset.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/bulk-action.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/comment.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/concept-scheme.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/concept.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/content-type.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/editor-interface.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/entry.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/environment-alias.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/environment-template-installation.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/environment-template.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/environment.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/extension.d.ts +2 -2
- package/dist/typings/adapters/REST/endpoints/http.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/locale.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/organization-invitation.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/organization-membership.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/organization.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/personal-access-token.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/preview-api-key.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/raw.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/release-action.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/release.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/role.d.ts +2 -2
- package/dist/typings/adapters/REST/endpoints/scheduled-action.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/snapshot.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/space-member.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/space-membership.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/space.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/tag.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/task.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/team-membership.d.ts +3 -3
- package/dist/typings/adapters/REST/endpoints/team-space-membership.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/team.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/ui-config.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/upload.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/usage.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/user-ui-config.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/user.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/utils.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/webhook.d.ts +4 -4
- package/dist/typings/adapters/REST/endpoints/workflow-definition.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/workflow.d.ts +1 -1
- package/dist/typings/adapters/REST/endpoints/workflows-changelog.d.ts +1 -1
- package/dist/typings/adapters/REST/rest-adapter.d.ts +2 -2
- package/dist/typings/adapters/REST/types.d.ts +2 -2
- package/dist/typings/common-types.d.ts +60 -59
- package/dist/typings/common-utils.d.ts +1 -1
- package/dist/typings/constants/editor-interface-defaults/controls-defaults.d.ts +1 -1
- package/dist/typings/contentful-management.d.ts +2 -2
- package/dist/typings/create-adapter.d.ts +2 -2
- package/dist/typings/create-app-definition-api.d.ts +2 -2
- package/dist/typings/create-contentful-api.d.ts +9 -9
- package/dist/typings/create-entry-api.d.ts +4 -4
- package/dist/typings/create-environment-api.d.ts +6 -6
- package/dist/typings/create-environment-template-api.d.ts +3 -3
- package/dist/typings/create-organization-api.d.ts +23 -23
- package/dist/typings/create-space-api.d.ts +9 -9
- package/dist/typings/create-ui-config-api.d.ts +1 -1
- package/dist/typings/create-user-ui-config-api.d.ts +1 -1
- package/dist/typings/entities/access-token.d.ts +1 -1
- package/dist/typings/entities/api-key.d.ts +1 -1
- package/dist/typings/entities/app-access-token.d.ts +2 -2
- package/dist/typings/entities/app-action-call.d.ts +3 -3
- package/dist/typings/entities/app-action.d.ts +3 -3
- package/dist/typings/entities/app-bundle.d.ts +2 -2
- package/dist/typings/entities/app-definition.d.ts +7 -7
- package/dist/typings/entities/app-details.d.ts +2 -2
- package/dist/typings/entities/app-event-subscription.d.ts +2 -2
- package/dist/typings/entities/app-installation.d.ts +3 -3
- package/dist/typings/entities/app-key.d.ts +2 -2
- package/dist/typings/entities/app-signed-request.d.ts +2 -2
- package/dist/typings/entities/app-signing-secret.d.ts +2 -2
- package/dist/typings/entities/app-upload.d.ts +2 -2
- package/dist/typings/entities/asset-key.d.ts +1 -1
- package/dist/typings/entities/asset.d.ts +2 -2
- package/dist/typings/entities/bulk-action.d.ts +2 -2
- package/dist/typings/entities/comment.d.ts +2 -2
- package/dist/typings/entities/concept-scheme.d.ts +3 -3
- package/dist/typings/entities/concept.d.ts +2 -2
- package/dist/typings/entities/content-type-fields.d.ts +2 -2
- package/dist/typings/entities/content-type.d.ts +5 -5
- package/dist/typings/entities/editor-interface.d.ts +2 -2
- package/dist/typings/entities/entry.d.ts +3 -3
- package/dist/typings/entities/environment-alias.d.ts +1 -1
- package/dist/typings/entities/environment-template-installation.d.ts +1 -1
- package/dist/typings/entities/environment-template.d.ts +4 -4
- package/dist/typings/entities/environment.d.ts +2 -2
- package/dist/typings/entities/extension.d.ts +4 -4
- package/dist/typings/entities/function.d.ts +1 -1
- package/dist/typings/entities/locale.d.ts +2 -2
- package/dist/typings/entities/organization-invitation.d.ts +1 -1
- package/dist/typings/entities/organization-membership.d.ts +1 -1
- package/dist/typings/entities/organization.d.ts +2 -2
- package/dist/typings/entities/personal-access-token.d.ts +1 -1
- package/dist/typings/entities/preview-api-key.d.ts +1 -1
- package/dist/typings/entities/release-action.d.ts +2 -2
- package/dist/typings/entities/release.d.ts +4 -3
- package/dist/typings/entities/role.d.ts +1 -1
- package/dist/typings/entities/scheduled-action.d.ts +1 -1
- package/dist/typings/entities/snapshot.d.ts +1 -1
- package/dist/typings/entities/space-member.d.ts +1 -1
- package/dist/typings/entities/space-membership.d.ts +1 -1
- package/dist/typings/entities/space.d.ts +2 -2
- package/dist/typings/entities/tag.d.ts +1 -1
- package/dist/typings/entities/task.d.ts +1 -1
- package/dist/typings/entities/team-membership.d.ts +1 -1
- package/dist/typings/entities/team-space-membership.d.ts +1 -1
- package/dist/typings/entities/team.d.ts +1 -1
- package/dist/typings/entities/ui-config.d.ts +1 -1
- package/dist/typings/entities/upload.d.ts +1 -1
- package/dist/typings/entities/usage.d.ts +1 -1
- package/dist/typings/entities/user-ui-config.d.ts +1 -1
- package/dist/typings/entities/user.d.ts +1 -1
- package/dist/typings/entities/webhook.d.ts +2 -2
- package/dist/typings/entities/workflow-definition.d.ts +1 -1
- package/dist/typings/entities/workflow.d.ts +1 -1
- package/dist/typings/entities/workflows-changelog-entry.d.ts +2 -1
- package/dist/typings/methods/bulk-action.d.ts +3 -3
- package/dist/typings/methods/content-type.d.ts +2 -2
- package/dist/typings/methods/release-action.d.ts +3 -3
- package/dist/typings/plain/as-iterator.d.ts +1 -1
- package/dist/typings/plain/checks.d.ts +1 -1
- package/dist/typings/plain/common-types.d.ts +61 -61
- package/dist/typings/plain/entities/app-access-token.d.ts +3 -3
- package/dist/typings/plain/entities/app-action-call.d.ts +3 -3
- package/dist/typings/plain/entities/app-action.d.ts +3 -3
- package/dist/typings/plain/entities/app-bundle.d.ts +3 -3
- package/dist/typings/plain/entities/app-definition.d.ts +4 -4
- package/dist/typings/plain/entities/app-details.d.ts +3 -3
- package/dist/typings/plain/entities/app-event-subscription.d.ts +3 -3
- package/dist/typings/plain/entities/app-installation.d.ts +5 -5
- package/dist/typings/plain/entities/app-key.d.ts +3 -3
- package/dist/typings/plain/entities/app-signed-request.d.ts +3 -3
- package/dist/typings/plain/entities/app-signing-secret.d.ts +3 -3
- package/dist/typings/plain/entities/app-upload.d.ts +4 -4
- package/dist/typings/plain/entities/comment.d.ts +4 -4
- package/dist/typings/plain/entities/concept-scheme.d.ts +4 -4
- package/dist/typings/plain/entities/concept.d.ts +4 -4
- package/dist/typings/plain/entities/editor-interface.d.ts +4 -4
- package/dist/typings/plain/entities/environment-alias.d.ts +4 -4
- package/dist/typings/plain/entities/environment.d.ts +4 -4
- package/dist/typings/plain/entities/extension.d.ts +4 -4
- package/dist/typings/plain/entities/locale.d.ts +4 -4
- package/dist/typings/plain/entities/organization.d.ts +3 -3
- package/dist/typings/plain/entities/role.d.ts +4 -4
- package/dist/typings/plain/entities/space-member.d.ts +3 -3
- package/dist/typings/plain/entities/space-membership.d.ts +4 -4
- package/dist/typings/plain/entities/space.d.ts +4 -4
- package/dist/typings/plain/entities/tag.d.ts +5 -5
- package/dist/typings/plain/entities/task.d.ts +4 -4
- package/dist/typings/plain/entities/team-membership.d.ts +4 -4
- package/dist/typings/plain/entities/team-space-membership.d.ts +4 -4
- package/dist/typings/plain/entities/team.d.ts +4 -4
- package/dist/typings/plain/entities/ui-config.d.ts +3 -3
- package/dist/typings/plain/entities/upload.d.ts +3 -3
- package/dist/typings/plain/entities/usage.d.ts +3 -3
- package/dist/typings/plain/entities/user-ui-config.d.ts +3 -3
- package/dist/typings/plain/entities/user.d.ts +3 -3
- package/dist/typings/plain/entities/webhook.d.ts +4 -4
- package/dist/typings/plain/entities/workflow-definition.d.ts +4 -4
- package/dist/typings/plain/entities/workflow.d.ts +4 -4
- package/dist/typings/plain/entities/workflows-changelog.d.ts +4 -4
- package/dist/typings/plain/pagination-helper.d.ts +1 -1
- package/dist/typings/plain/plain-client.d.ts +3 -3
- package/dist/typings/plain/wrappers/wrap.d.ts +1 -1
- package/package.json +1 -1
|
@@ -302,7 +302,7 @@ function _callAppActionResult() {
|
|
|
302
302
|
retryInterval = params.retryInterval || APP_ACTION_CALL_RETRY_INTERVAL;
|
|
303
303
|
retries = params.retries || APP_ACTION_CALL_RETRIES;
|
|
304
304
|
return _context3.abrupt("return", new Promise(function (resolve, reject) {
|
|
305
|
-
var
|
|
305
|
+
var _poll = /*#__PURE__*/function () {
|
|
306
306
|
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
307
307
|
var _result$response, _result$response2, result, error, _error;
|
|
308
308
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
@@ -340,7 +340,7 @@ function _callAppActionResult() {
|
|
|
340
340
|
_context2.next = 17;
|
|
341
341
|
return (0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.waitFor)(retryInterval);
|
|
342
342
|
case 17:
|
|
343
|
-
|
|
343
|
+
_poll();
|
|
344
344
|
_context2.next = 22;
|
|
345
345
|
break;
|
|
346
346
|
case 20:
|
|
@@ -363,7 +363,7 @@ function _callAppActionResult() {
|
|
|
363
363
|
_context2.next = 32;
|
|
364
364
|
return (0,_common_utils__WEBPACK_IMPORTED_MODULE_1__.waitFor)(retryInterval);
|
|
365
365
|
case 32:
|
|
366
|
-
|
|
366
|
+
_poll();
|
|
367
367
|
case 33:
|
|
368
368
|
case "end":
|
|
369
369
|
return _context2.stop();
|
|
@@ -374,7 +374,7 @@ function _callAppActionResult() {
|
|
|
374
374
|
return _ref3.apply(this, arguments);
|
|
375
375
|
};
|
|
376
376
|
}();
|
|
377
|
-
|
|
377
|
+
_poll();
|
|
378
378
|
}));
|
|
379
379
|
case 5:
|
|
380
380
|
case "end":
|
|
@@ -17430,26 +17430,38 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
17430
17430
|
|
|
17431
17431
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
17432
17432
|
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
17433
|
-
var setFunctionLength = __webpack_require__(/*! set-function-length */ "../node_modules/set-function-length/index.js");
|
|
17434
17433
|
|
|
17435
|
-
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
17436
17434
|
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
17437
17435
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
17438
17436
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
17439
17437
|
|
|
17440
|
-
var $
|
|
17438
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
17439
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
17441
17440
|
var $max = GetIntrinsic('%Math.max%');
|
|
17442
17441
|
|
|
17443
|
-
|
|
17444
|
-
|
|
17445
|
-
|
|
17442
|
+
if ($defineProperty) {
|
|
17443
|
+
try {
|
|
17444
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
17445
|
+
} catch (e) {
|
|
17446
|
+
// IE 8 has a broken defineProperty
|
|
17447
|
+
$defineProperty = null;
|
|
17446
17448
|
}
|
|
17449
|
+
}
|
|
17450
|
+
|
|
17451
|
+
module.exports = function callBind(originalFunction) {
|
|
17447
17452
|
var func = $reflectApply(bind, $call, arguments);
|
|
17448
|
-
|
|
17449
|
-
func,
|
|
17450
|
-
|
|
17451
|
-
|
|
17452
|
-
|
|
17453
|
+
if ($gOPD && $defineProperty) {
|
|
17454
|
+
var desc = $gOPD(func, 'length');
|
|
17455
|
+
if (desc.configurable) {
|
|
17456
|
+
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
17457
|
+
$defineProperty(
|
|
17458
|
+
func,
|
|
17459
|
+
'length',
|
|
17460
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
17461
|
+
);
|
|
17462
|
+
}
|
|
17463
|
+
}
|
|
17464
|
+
return func;
|
|
17453
17465
|
};
|
|
17454
17466
|
|
|
17455
17467
|
var applyBind = function applyBind() {
|
|
@@ -17484,14 +17496,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17484
17496
|
/* harmony export */ });
|
|
17485
17497
|
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! fast-copy */ "../node_modules/contentful-sdk-core/node_modules/fast-copy/dist/fast-copy.js");
|
|
17486
17498
|
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_0__);
|
|
17487
|
-
/* harmony import */ var
|
|
17488
|
-
/* harmony import */ var
|
|
17489
|
-
/* harmony import */ var
|
|
17490
|
-
/* harmony import */ var
|
|
17491
|
-
/* harmony import */ var
|
|
17492
|
-
/* harmony import */ var
|
|
17493
|
-
/* harmony import */ var
|
|
17494
|
-
/* harmony import */ var
|
|
17499
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! qs */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js");
|
|
17500
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__);
|
|
17501
|
+
/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash.isstring */ "../node_modules/lodash.isstring/index.js");
|
|
17502
|
+
/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isstring__WEBPACK_IMPORTED_MODULE_2__);
|
|
17503
|
+
/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! p-throttle */ "../node_modules/p-throttle/index.js");
|
|
17504
|
+
/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(p_throttle__WEBPACK_IMPORTED_MODULE_3__);
|
|
17505
|
+
/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash.isplainobject */ "../node_modules/lodash.isplainobject/index.js");
|
|
17506
|
+
/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__);
|
|
17495
17507
|
|
|
17496
17508
|
|
|
17497
17509
|
|
|
@@ -18194,7 +18206,7 @@ function calculateLimit(type) {
|
|
|
18194
18206
|
}
|
|
18195
18207
|
function createThrottle(limit, logger) {
|
|
18196
18208
|
logger('info', "Throttle request to ".concat(limit, "/s"));
|
|
18197
|
-
return
|
|
18209
|
+
return p_throttle__WEBPACK_IMPORTED_MODULE_3___default()({
|
|
18198
18210
|
limit: limit,
|
|
18199
18211
|
interval: 1000,
|
|
18200
18212
|
strict: false
|
|
@@ -18204,7 +18216,7 @@ var rateLimitThrottle = (function (axiosInstance) {
|
|
|
18204
18216
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto';
|
|
18205
18217
|
var _axiosInstance$defaul = axiosInstance.defaults.logHandler,
|
|
18206
18218
|
logHandler = _axiosInstance$defaul === void 0 ? noop : _axiosInstance$defaul;
|
|
18207
|
-
var limit =
|
|
18219
|
+
var limit = lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default()(type) ? calculateLimit(type) : calculateLimit('auto', type);
|
|
18208
18220
|
var throttle = createThrottle(limit, logHandler);
|
|
18209
18221
|
var isCalculated = false;
|
|
18210
18222
|
var requestInterceptorId = axiosInstance.interceptors.request.use(function (config) {
|
|
@@ -18215,7 +18227,7 @@ var rateLimitThrottle = (function (axiosInstance) {
|
|
|
18215
18227
|
return Promise.reject(error);
|
|
18216
18228
|
});
|
|
18217
18229
|
var responseInterceptorId = axiosInstance.interceptors.response.use(function (response) {
|
|
18218
|
-
if (!isCalculated &&
|
|
18230
|
+
if (!isCalculated && lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default()(type) && (type === 'auto' || PERCENTAGE_REGEX.test(type)) && response.headers && response.headers['x-contentful-ratelimit-second-limit']) {
|
|
18219
18231
|
var rawLimit = parseInt(response.headers['x-contentful-ratelimit-second-limit']);
|
|
18220
18232
|
var nextLimit = calculateLimit(type, rawLimit);
|
|
18221
18233
|
if (nextLimit !== limit) {
|
|
@@ -18327,7 +18339,7 @@ function createHttpClient(axios, options) {
|
|
|
18327
18339
|
maxBodyLength: config.maxBodyLength,
|
|
18328
18340
|
paramsSerializer: {
|
|
18329
18341
|
serialize: function serialize(params) {
|
|
18330
|
-
return
|
|
18342
|
+
return qs__WEBPACK_IMPORTED_MODULE_1___default().stringify(params);
|
|
18331
18343
|
}
|
|
18332
18344
|
},
|
|
18333
18345
|
// Contentful
|
|
@@ -18542,7 +18554,7 @@ function errorHandler(errorResponse) {
|
|
|
18542
18554
|
var token = "...".concat(config.headers['Authorization'].toString().substr(-5));
|
|
18543
18555
|
config.headers['Authorization'] = "Bearer ".concat(token);
|
|
18544
18556
|
}
|
|
18545
|
-
if (!
|
|
18557
|
+
if (!lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(response) || !lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) {
|
|
18546
18558
|
throw errorResponse;
|
|
18547
18559
|
}
|
|
18548
18560
|
var data = response === null || response === void 0 ? void 0 : response.data;
|
|
@@ -18552,7 +18564,7 @@ function errorHandler(errorResponse) {
|
|
|
18552
18564
|
message: '',
|
|
18553
18565
|
details: {}
|
|
18554
18566
|
};
|
|
18555
|
-
if (config &&
|
|
18567
|
+
if (config && lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) {
|
|
18556
18568
|
errorData.request = {
|
|
18557
18569
|
url: config.url,
|
|
18558
18570
|
headers: config.headers,
|
|
@@ -19025,18 +19037,15 @@ var isArray = Array.isArray;
|
|
|
19025
19037
|
|
|
19026
19038
|
var defaults = {
|
|
19027
19039
|
allowDots: false,
|
|
19028
|
-
allowEmptyArrays: false,
|
|
19029
19040
|
allowPrototypes: false,
|
|
19030
19041
|
allowSparse: false,
|
|
19031
19042
|
arrayLimit: 20,
|
|
19032
19043
|
charset: 'utf-8',
|
|
19033
19044
|
charsetSentinel: false,
|
|
19034
19045
|
comma: false,
|
|
19035
|
-
decodeDotInKeys: false,
|
|
19036
19046
|
decoder: utils.decode,
|
|
19037
19047
|
delimiter: '&',
|
|
19038
19048
|
depth: 5,
|
|
19039
|
-
duplicates: 'combine',
|
|
19040
19049
|
ignoreQueryPrefix: false,
|
|
19041
19050
|
interpretNumericEntities: false,
|
|
19042
19051
|
parameterLimit: 1000,
|
|
@@ -19073,7 +19082,6 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
19073
19082
|
var obj = { __proto__: null };
|
|
19074
19083
|
|
|
19075
19084
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
19076
|
-
cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
19077
19085
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
19078
19086
|
var parts = cleanStr.split(options.delimiter, limit);
|
|
19079
19087
|
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
@@ -19125,10 +19133,9 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
19125
19133
|
val = isArray(val) ? [val] : val;
|
|
19126
19134
|
}
|
|
19127
19135
|
|
|
19128
|
-
|
|
19129
|
-
if (existing && options.duplicates === 'combine') {
|
|
19136
|
+
if (has.call(obj, key)) {
|
|
19130
19137
|
obj[key] = utils.combine(obj[key], val);
|
|
19131
|
-
} else
|
|
19138
|
+
} else {
|
|
19132
19139
|
obj[key] = val;
|
|
19133
19140
|
}
|
|
19134
19141
|
}
|
|
@@ -19144,27 +19151,24 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
19144
19151
|
var root = chain[i];
|
|
19145
19152
|
|
|
19146
19153
|
if (root === '[]' && options.parseArrays) {
|
|
19147
|
-
obj =
|
|
19148
|
-
? []
|
|
19149
|
-
: [].concat(leaf);
|
|
19154
|
+
obj = [].concat(leaf);
|
|
19150
19155
|
} else {
|
|
19151
19156
|
obj = options.plainObjects ? Object.create(null) : {};
|
|
19152
19157
|
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
19153
|
-
var
|
|
19154
|
-
|
|
19155
|
-
if (!options.parseArrays && decodedRoot === '') {
|
|
19158
|
+
var index = parseInt(cleanRoot, 10);
|
|
19159
|
+
if (!options.parseArrays && cleanRoot === '') {
|
|
19156
19160
|
obj = { 0: leaf };
|
|
19157
19161
|
} else if (
|
|
19158
19162
|
!isNaN(index)
|
|
19159
|
-
&& root !==
|
|
19160
|
-
&& String(index) ===
|
|
19163
|
+
&& root !== cleanRoot
|
|
19164
|
+
&& String(index) === cleanRoot
|
|
19161
19165
|
&& index >= 0
|
|
19162
19166
|
&& (options.parseArrays && index <= options.arrayLimit)
|
|
19163
19167
|
) {
|
|
19164
19168
|
obj = [];
|
|
19165
19169
|
obj[index] = leaf;
|
|
19166
|
-
} else if (
|
|
19167
|
-
obj[
|
|
19170
|
+
} else if (cleanRoot !== '__proto__') {
|
|
19171
|
+
obj[cleanRoot] = leaf;
|
|
19168
19172
|
}
|
|
19169
19173
|
}
|
|
19170
19174
|
|
|
@@ -19233,15 +19237,7 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
19233
19237
|
return defaults;
|
|
19234
19238
|
}
|
|
19235
19239
|
|
|
19236
|
-
if (
|
|
19237
|
-
throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
|
|
19238
|
-
}
|
|
19239
|
-
|
|
19240
|
-
if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') {
|
|
19241
|
-
throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');
|
|
19242
|
-
}
|
|
19243
|
-
|
|
19244
|
-
if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') {
|
|
19240
|
+
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
|
19245
19241
|
throw new TypeError('Decoder has to be a function.');
|
|
19246
19242
|
}
|
|
19247
19243
|
|
|
@@ -19250,29 +19246,18 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
19250
19246
|
}
|
|
19251
19247
|
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
19252
19248
|
|
|
19253
|
-
var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;
|
|
19254
|
-
|
|
19255
|
-
if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') {
|
|
19256
|
-
throw new TypeError('The duplicates option must be either combine, first, or last');
|
|
19257
|
-
}
|
|
19258
|
-
|
|
19259
|
-
var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
19260
|
-
|
|
19261
19249
|
return {
|
|
19262
|
-
allowDots: allowDots,
|
|
19263
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
19250
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
19264
19251
|
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
19265
19252
|
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
19266
19253
|
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
19267
19254
|
charset: charset,
|
|
19268
19255
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
19269
19256
|
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
19270
|
-
decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
19271
19257
|
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
19272
19258
|
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
19273
19259
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
19274
19260
|
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
19275
|
-
duplicates: duplicates,
|
|
19276
19261
|
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
19277
19262
|
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
19278
19263
|
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
@@ -19350,13 +19335,10 @@ var defaultFormat = formats['default'];
|
|
|
19350
19335
|
var defaults = {
|
|
19351
19336
|
addQueryPrefix: false,
|
|
19352
19337
|
allowDots: false,
|
|
19353
|
-
allowEmptyArrays: false,
|
|
19354
|
-
arrayFormat: 'indices',
|
|
19355
19338
|
charset: 'utf-8',
|
|
19356
19339
|
charsetSentinel: false,
|
|
19357
19340
|
delimiter: '&',
|
|
19358
19341
|
encode: true,
|
|
19359
|
-
encodeDotInKeys: false,
|
|
19360
19342
|
encoder: utils.encode,
|
|
19361
19343
|
encodeValuesOnly: false,
|
|
19362
19344
|
format: defaultFormat,
|
|
@@ -19385,10 +19367,8 @@ var stringify = function stringify(
|
|
|
19385
19367
|
prefix,
|
|
19386
19368
|
generateArrayPrefix,
|
|
19387
19369
|
commaRoundTrip,
|
|
19388
|
-
allowEmptyArrays,
|
|
19389
19370
|
strictNullHandling,
|
|
19390
19371
|
skipNulls,
|
|
19391
|
-
encodeDotInKeys,
|
|
19392
19372
|
encoder,
|
|
19393
19373
|
filter,
|
|
19394
19374
|
sort,
|
|
@@ -19470,13 +19450,7 @@ var stringify = function stringify(
|
|
|
19470
19450
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
19471
19451
|
}
|
|
19472
19452
|
|
|
19473
|
-
var
|
|
19474
|
-
|
|
19475
|
-
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
|
|
19476
|
-
|
|
19477
|
-
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
19478
|
-
return adjustedPrefix + '[]';
|
|
19479
|
-
}
|
|
19453
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
|
|
19480
19454
|
|
|
19481
19455
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
19482
19456
|
var key = objKeys[j];
|
|
@@ -19486,10 +19460,9 @@ var stringify = function stringify(
|
|
|
19486
19460
|
continue;
|
|
19487
19461
|
}
|
|
19488
19462
|
|
|
19489
|
-
var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\./g, '%2E') : key;
|
|
19490
19463
|
var keyPrefix = isArray(obj)
|
|
19491
|
-
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix,
|
|
19492
|
-
: adjustedPrefix + (allowDots ? '.' +
|
|
19464
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
|
|
19465
|
+
: adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
19493
19466
|
|
|
19494
19467
|
sideChannel.set(object, step);
|
|
19495
19468
|
var valueSideChannel = getSideChannel();
|
|
@@ -19499,10 +19472,8 @@ var stringify = function stringify(
|
|
|
19499
19472
|
keyPrefix,
|
|
19500
19473
|
generateArrayPrefix,
|
|
19501
19474
|
commaRoundTrip,
|
|
19502
|
-
allowEmptyArrays,
|
|
19503
19475
|
strictNullHandling,
|
|
19504
19476
|
skipNulls,
|
|
19505
|
-
encodeDotInKeys,
|
|
19506
19477
|
generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,
|
|
19507
19478
|
filter,
|
|
19508
19479
|
sort,
|
|
@@ -19524,14 +19495,6 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
19524
19495
|
return defaults;
|
|
19525
19496
|
}
|
|
19526
19497
|
|
|
19527
|
-
if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
|
|
19528
|
-
throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
|
|
19529
|
-
}
|
|
19530
|
-
|
|
19531
|
-
if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {
|
|
19532
|
-
throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');
|
|
19533
|
-
}
|
|
19534
|
-
|
|
19535
19498
|
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
19536
19499
|
throw new TypeError('Encoder has to be a function.');
|
|
19537
19500
|
}
|
|
@@ -19555,32 +19518,13 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
19555
19518
|
filter = opts.filter;
|
|
19556
19519
|
}
|
|
19557
19520
|
|
|
19558
|
-
var arrayFormat;
|
|
19559
|
-
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
19560
|
-
arrayFormat = opts.arrayFormat;
|
|
19561
|
-
} else if ('indices' in opts) {
|
|
19562
|
-
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
19563
|
-
} else {
|
|
19564
|
-
arrayFormat = defaults.arrayFormat;
|
|
19565
|
-
}
|
|
19566
|
-
|
|
19567
|
-
if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
19568
|
-
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
19569
|
-
}
|
|
19570
|
-
|
|
19571
|
-
var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
19572
|
-
|
|
19573
19521
|
return {
|
|
19574
19522
|
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
19575
|
-
allowDots: allowDots,
|
|
19576
|
-
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
19577
|
-
arrayFormat: arrayFormat,
|
|
19523
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
19578
19524
|
charset: charset,
|
|
19579
19525
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
19580
|
-
commaRoundTrip: opts.commaRoundTrip,
|
|
19581
19526
|
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
19582
19527
|
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
19583
|
-
encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
19584
19528
|
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
19585
19529
|
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
19586
19530
|
filter: filter,
|
|
@@ -19614,8 +19558,20 @@ module.exports = function (object, opts) {
|
|
|
19614
19558
|
return '';
|
|
19615
19559
|
}
|
|
19616
19560
|
|
|
19617
|
-
var
|
|
19618
|
-
|
|
19561
|
+
var arrayFormat;
|
|
19562
|
+
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
19563
|
+
arrayFormat = opts.arrayFormat;
|
|
19564
|
+
} else if (opts && 'indices' in opts) {
|
|
19565
|
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
19566
|
+
} else {
|
|
19567
|
+
arrayFormat = 'indices';
|
|
19568
|
+
}
|
|
19569
|
+
|
|
19570
|
+
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
19571
|
+
if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
19572
|
+
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
19573
|
+
}
|
|
19574
|
+
var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
|
|
19619
19575
|
|
|
19620
19576
|
if (!objKeys) {
|
|
19621
19577
|
objKeys = Object.keys(obj);
|
|
@@ -19637,10 +19593,8 @@ module.exports = function (object, opts) {
|
|
|
19637
19593
|
key,
|
|
19638
19594
|
generateArrayPrefix,
|
|
19639
19595
|
commaRoundTrip,
|
|
19640
|
-
options.allowEmptyArrays,
|
|
19641
19596
|
options.strictNullHandling,
|
|
19642
19597
|
options.skipNulls,
|
|
19643
|
-
options.encodeDotInKeys,
|
|
19644
19598
|
options.encode ? options.encoder : null,
|
|
19645
19599
|
options.filter,
|
|
19646
19600
|
options.sort,
|
|
@@ -19804,10 +19758,6 @@ var decode = function (str, decoder, charset) {
|
|
|
19804
19758
|
}
|
|
19805
19759
|
};
|
|
19806
19760
|
|
|
19807
|
-
var limit = 1024;
|
|
19808
|
-
|
|
19809
|
-
/* eslint operator-linebreak: [2, "before"] */
|
|
19810
|
-
|
|
19811
19761
|
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
19812
19762
|
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
19813
19763
|
// It has been adapted here for stricter adherence to RFC 3986
|
|
@@ -19829,54 +19779,45 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
|
19829
19779
|
}
|
|
19830
19780
|
|
|
19831
19781
|
var out = '';
|
|
19832
|
-
for (var
|
|
19833
|
-
var
|
|
19834
|
-
|
|
19835
|
-
|
|
19836
|
-
|
|
19837
|
-
|
|
19838
|
-
|
|
19839
|
-
|
|
19840
|
-
|
|
19841
|
-
|
|
19842
|
-
|
|
19843
|
-
|
|
19844
|
-
|
|
19845
|
-
|
|
19846
|
-
|
|
19847
|
-
|
|
19848
|
-
arr[arr.length] = segment.charAt(i);
|
|
19849
|
-
continue;
|
|
19850
|
-
}
|
|
19851
|
-
|
|
19852
|
-
if (c < 0x80) {
|
|
19853
|
-
arr[arr.length] = hexTable[c];
|
|
19854
|
-
continue;
|
|
19855
|
-
}
|
|
19856
|
-
|
|
19857
|
-
if (c < 0x800) {
|
|
19858
|
-
arr[arr.length] = hexTable[0xC0 | (c >> 6)]
|
|
19859
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
19860
|
-
continue;
|
|
19861
|
-
}
|
|
19782
|
+
for (var i = 0; i < string.length; ++i) {
|
|
19783
|
+
var c = string.charCodeAt(i);
|
|
19784
|
+
|
|
19785
|
+
if (
|
|
19786
|
+
c === 0x2D // -
|
|
19787
|
+
|| c === 0x2E // .
|
|
19788
|
+
|| c === 0x5F // _
|
|
19789
|
+
|| c === 0x7E // ~
|
|
19790
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
19791
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
19792
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
19793
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
19794
|
+
) {
|
|
19795
|
+
out += string.charAt(i);
|
|
19796
|
+
continue;
|
|
19797
|
+
}
|
|
19862
19798
|
|
|
19863
|
-
|
|
19864
|
-
|
|
19865
|
-
|
|
19866
|
-
|
|
19867
|
-
continue;
|
|
19868
|
-
}
|
|
19799
|
+
if (c < 0x80) {
|
|
19800
|
+
out = out + hexTable[c];
|
|
19801
|
+
continue;
|
|
19802
|
+
}
|
|
19869
19803
|
|
|
19870
|
-
|
|
19871
|
-
|
|
19804
|
+
if (c < 0x800) {
|
|
19805
|
+
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
19806
|
+
continue;
|
|
19807
|
+
}
|
|
19872
19808
|
|
|
19873
|
-
|
|
19874
|
-
|
|
19875
|
-
|
|
19876
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
19809
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
19810
|
+
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
|
19811
|
+
continue;
|
|
19877
19812
|
}
|
|
19878
19813
|
|
|
19879
|
-
|
|
19814
|
+
i += 1;
|
|
19815
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
19816
|
+
/* eslint operator-linebreak: [2, "before"] */
|
|
19817
|
+
out += hexTable[0xF0 | (c >> 18)]
|
|
19818
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
19819
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
19820
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
19880
19821
|
}
|
|
19881
19822
|
|
|
19882
19823
|
return out;
|
|
@@ -19947,205 +19888,6 @@ module.exports = {
|
|
|
19947
19888
|
};
|
|
19948
19889
|
|
|
19949
19890
|
|
|
19950
|
-
/***/ }),
|
|
19951
|
-
|
|
19952
|
-
/***/ "../node_modules/define-data-property/index.js":
|
|
19953
|
-
/*!*****************************************************!*\
|
|
19954
|
-
!*** ../node_modules/define-data-property/index.js ***!
|
|
19955
|
-
\*****************************************************/
|
|
19956
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
19957
|
-
|
|
19958
|
-
"use strict";
|
|
19959
|
-
|
|
19960
|
-
|
|
19961
|
-
var $defineProperty = __webpack_require__(/*! es-define-property */ "../node_modules/es-define-property/index.js");
|
|
19962
|
-
|
|
19963
|
-
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "../node_modules/es-errors/syntax.js");
|
|
19964
|
-
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
19965
|
-
|
|
19966
|
-
var gopd = __webpack_require__(/*! gopd */ "../node_modules/gopd/index.js");
|
|
19967
|
-
|
|
19968
|
-
/** @type {import('.')} */
|
|
19969
|
-
module.exports = function defineDataProperty(
|
|
19970
|
-
obj,
|
|
19971
|
-
property,
|
|
19972
|
-
value
|
|
19973
|
-
) {
|
|
19974
|
-
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
19975
|
-
throw new $TypeError('`obj` must be an object or a function`');
|
|
19976
|
-
}
|
|
19977
|
-
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
19978
|
-
throw new $TypeError('`property` must be a string or a symbol`');
|
|
19979
|
-
}
|
|
19980
|
-
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
19981
|
-
throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
|
|
19982
|
-
}
|
|
19983
|
-
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
19984
|
-
throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
|
|
19985
|
-
}
|
|
19986
|
-
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
19987
|
-
throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
|
|
19988
|
-
}
|
|
19989
|
-
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
19990
|
-
throw new $TypeError('`loose`, if provided, must be a boolean');
|
|
19991
|
-
}
|
|
19992
|
-
|
|
19993
|
-
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
19994
|
-
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
19995
|
-
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
19996
|
-
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
19997
|
-
|
|
19998
|
-
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
19999
|
-
var desc = !!gopd && gopd(obj, property);
|
|
20000
|
-
|
|
20001
|
-
if ($defineProperty) {
|
|
20002
|
-
$defineProperty(obj, property, {
|
|
20003
|
-
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
20004
|
-
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
20005
|
-
value: value,
|
|
20006
|
-
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
20007
|
-
});
|
|
20008
|
-
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
20009
|
-
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
20010
|
-
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
20011
|
-
} else {
|
|
20012
|
-
throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
20013
|
-
}
|
|
20014
|
-
};
|
|
20015
|
-
|
|
20016
|
-
|
|
20017
|
-
/***/ }),
|
|
20018
|
-
|
|
20019
|
-
/***/ "../node_modules/es-define-property/index.js":
|
|
20020
|
-
/*!***************************************************!*\
|
|
20021
|
-
!*** ../node_modules/es-define-property/index.js ***!
|
|
20022
|
-
\***************************************************/
|
|
20023
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20024
|
-
|
|
20025
|
-
"use strict";
|
|
20026
|
-
|
|
20027
|
-
|
|
20028
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
20029
|
-
|
|
20030
|
-
/** @type {import('.')} */
|
|
20031
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;
|
|
20032
|
-
if ($defineProperty) {
|
|
20033
|
-
try {
|
|
20034
|
-
$defineProperty({}, 'a', { value: 1 });
|
|
20035
|
-
} catch (e) {
|
|
20036
|
-
// IE 8 has a broken defineProperty
|
|
20037
|
-
$defineProperty = false;
|
|
20038
|
-
}
|
|
20039
|
-
}
|
|
20040
|
-
|
|
20041
|
-
module.exports = $defineProperty;
|
|
20042
|
-
|
|
20043
|
-
|
|
20044
|
-
/***/ }),
|
|
20045
|
-
|
|
20046
|
-
/***/ "../node_modules/es-errors/eval.js":
|
|
20047
|
-
/*!*****************************************!*\
|
|
20048
|
-
!*** ../node_modules/es-errors/eval.js ***!
|
|
20049
|
-
\*****************************************/
|
|
20050
|
-
/***/ (function(module) {
|
|
20051
|
-
|
|
20052
|
-
"use strict";
|
|
20053
|
-
|
|
20054
|
-
|
|
20055
|
-
/** @type {import('./eval')} */
|
|
20056
|
-
module.exports = EvalError;
|
|
20057
|
-
|
|
20058
|
-
|
|
20059
|
-
/***/ }),
|
|
20060
|
-
|
|
20061
|
-
/***/ "../node_modules/es-errors/index.js":
|
|
20062
|
-
/*!******************************************!*\
|
|
20063
|
-
!*** ../node_modules/es-errors/index.js ***!
|
|
20064
|
-
\******************************************/
|
|
20065
|
-
/***/ (function(module) {
|
|
20066
|
-
|
|
20067
|
-
"use strict";
|
|
20068
|
-
|
|
20069
|
-
|
|
20070
|
-
/** @type {import('.')} */
|
|
20071
|
-
module.exports = Error;
|
|
20072
|
-
|
|
20073
|
-
|
|
20074
|
-
/***/ }),
|
|
20075
|
-
|
|
20076
|
-
/***/ "../node_modules/es-errors/range.js":
|
|
20077
|
-
/*!******************************************!*\
|
|
20078
|
-
!*** ../node_modules/es-errors/range.js ***!
|
|
20079
|
-
\******************************************/
|
|
20080
|
-
/***/ (function(module) {
|
|
20081
|
-
|
|
20082
|
-
"use strict";
|
|
20083
|
-
|
|
20084
|
-
|
|
20085
|
-
/** @type {import('./range')} */
|
|
20086
|
-
module.exports = RangeError;
|
|
20087
|
-
|
|
20088
|
-
|
|
20089
|
-
/***/ }),
|
|
20090
|
-
|
|
20091
|
-
/***/ "../node_modules/es-errors/ref.js":
|
|
20092
|
-
/*!****************************************!*\
|
|
20093
|
-
!*** ../node_modules/es-errors/ref.js ***!
|
|
20094
|
-
\****************************************/
|
|
20095
|
-
/***/ (function(module) {
|
|
20096
|
-
|
|
20097
|
-
"use strict";
|
|
20098
|
-
|
|
20099
|
-
|
|
20100
|
-
/** @type {import('./ref')} */
|
|
20101
|
-
module.exports = ReferenceError;
|
|
20102
|
-
|
|
20103
|
-
|
|
20104
|
-
/***/ }),
|
|
20105
|
-
|
|
20106
|
-
/***/ "../node_modules/es-errors/syntax.js":
|
|
20107
|
-
/*!*******************************************!*\
|
|
20108
|
-
!*** ../node_modules/es-errors/syntax.js ***!
|
|
20109
|
-
\*******************************************/
|
|
20110
|
-
/***/ (function(module) {
|
|
20111
|
-
|
|
20112
|
-
"use strict";
|
|
20113
|
-
|
|
20114
|
-
|
|
20115
|
-
/** @type {import('./syntax')} */
|
|
20116
|
-
module.exports = SyntaxError;
|
|
20117
|
-
|
|
20118
|
-
|
|
20119
|
-
/***/ }),
|
|
20120
|
-
|
|
20121
|
-
/***/ "../node_modules/es-errors/type.js":
|
|
20122
|
-
/*!*****************************************!*\
|
|
20123
|
-
!*** ../node_modules/es-errors/type.js ***!
|
|
20124
|
-
\*****************************************/
|
|
20125
|
-
/***/ (function(module) {
|
|
20126
|
-
|
|
20127
|
-
"use strict";
|
|
20128
|
-
|
|
20129
|
-
|
|
20130
|
-
/** @type {import('./type')} */
|
|
20131
|
-
module.exports = TypeError;
|
|
20132
|
-
|
|
20133
|
-
|
|
20134
|
-
/***/ }),
|
|
20135
|
-
|
|
20136
|
-
/***/ "../node_modules/es-errors/uri.js":
|
|
20137
|
-
/*!****************************************!*\
|
|
20138
|
-
!*** ../node_modules/es-errors/uri.js ***!
|
|
20139
|
-
\****************************************/
|
|
20140
|
-
/***/ (function(module) {
|
|
20141
|
-
|
|
20142
|
-
"use strict";
|
|
20143
|
-
|
|
20144
|
-
|
|
20145
|
-
/** @type {import('./uri')} */
|
|
20146
|
-
module.exports = URIError;
|
|
20147
|
-
|
|
20148
|
-
|
|
20149
19891
|
/***/ }),
|
|
20150
19892
|
|
|
20151
19893
|
/***/ "../node_modules/function-bind/implementation.js":
|
|
@@ -20270,15 +20012,9 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
20270
20012
|
|
|
20271
20013
|
var undefined;
|
|
20272
20014
|
|
|
20273
|
-
var $
|
|
20274
|
-
var $EvalError = __webpack_require__(/*! es-errors/eval */ "../node_modules/es-errors/eval.js");
|
|
20275
|
-
var $RangeError = __webpack_require__(/*! es-errors/range */ "../node_modules/es-errors/range.js");
|
|
20276
|
-
var $ReferenceError = __webpack_require__(/*! es-errors/ref */ "../node_modules/es-errors/ref.js");
|
|
20277
|
-
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "../node_modules/es-errors/syntax.js");
|
|
20278
|
-
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
20279
|
-
var $URIError = __webpack_require__(/*! es-errors/uri */ "../node_modules/es-errors/uri.js");
|
|
20280
|
-
|
|
20015
|
+
var $SyntaxError = SyntaxError;
|
|
20281
20016
|
var $Function = Function;
|
|
20017
|
+
var $TypeError = TypeError;
|
|
20282
20018
|
|
|
20283
20019
|
// eslint-disable-next-line consistent-return
|
|
20284
20020
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
@@ -20330,7 +20066,6 @@ var needsEval = {};
|
|
|
20330
20066
|
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
20331
20067
|
|
|
20332
20068
|
var INTRINSICS = {
|
|
20333
|
-
__proto__: null,
|
|
20334
20069
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
20335
20070
|
'%Array%': Array,
|
|
20336
20071
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
@@ -20351,9 +20086,9 @@ var INTRINSICS = {
|
|
|
20351
20086
|
'%decodeURIComponent%': decodeURIComponent,
|
|
20352
20087
|
'%encodeURI%': encodeURI,
|
|
20353
20088
|
'%encodeURIComponent%': encodeURIComponent,
|
|
20354
|
-
'%Error%':
|
|
20089
|
+
'%Error%': Error,
|
|
20355
20090
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
20356
|
-
'%EvalError%':
|
|
20091
|
+
'%EvalError%': EvalError,
|
|
20357
20092
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
20358
20093
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
20359
20094
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
@@ -20375,8 +20110,8 @@ var INTRINSICS = {
|
|
|
20375
20110
|
'%parseInt%': parseInt,
|
|
20376
20111
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
20377
20112
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
20378
|
-
'%RangeError%':
|
|
20379
|
-
'%ReferenceError%':
|
|
20113
|
+
'%RangeError%': RangeError,
|
|
20114
|
+
'%ReferenceError%': ReferenceError,
|
|
20380
20115
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
20381
20116
|
'%RegExp%': RegExp,
|
|
20382
20117
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
@@ -20393,7 +20128,7 @@ var INTRINSICS = {
|
|
|
20393
20128
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
20394
20129
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
20395
20130
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
20396
|
-
'%URIError%':
|
|
20131
|
+
'%URIError%': URIError,
|
|
20397
20132
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
20398
20133
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
20399
20134
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
@@ -20435,7 +20170,6 @@ var doEval = function doEval(name) {
|
|
|
20435
20170
|
};
|
|
20436
20171
|
|
|
20437
20172
|
var LEGACY_ALIASES = {
|
|
20438
|
-
__proto__: null,
|
|
20439
20173
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
20440
20174
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
20441
20175
|
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
@@ -20490,7 +20224,7 @@ var LEGACY_ALIASES = {
|
|
|
20490
20224
|
};
|
|
20491
20225
|
|
|
20492
20226
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
20493
|
-
var hasOwn = __webpack_require__(/*!
|
|
20227
|
+
var hasOwn = __webpack_require__(/*! has */ "../node_modules/has/src/index.js");
|
|
20494
20228
|
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
20495
20229
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
20496
20230
|
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
@@ -20627,66 +20361,6 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
20627
20361
|
};
|
|
20628
20362
|
|
|
20629
20363
|
|
|
20630
|
-
/***/ }),
|
|
20631
|
-
|
|
20632
|
-
/***/ "../node_modules/gopd/index.js":
|
|
20633
|
-
/*!*************************************!*\
|
|
20634
|
-
!*** ../node_modules/gopd/index.js ***!
|
|
20635
|
-
\*************************************/
|
|
20636
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20637
|
-
|
|
20638
|
-
"use strict";
|
|
20639
|
-
|
|
20640
|
-
|
|
20641
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
20642
|
-
|
|
20643
|
-
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
20644
|
-
|
|
20645
|
-
if ($gOPD) {
|
|
20646
|
-
try {
|
|
20647
|
-
$gOPD([], 'length');
|
|
20648
|
-
} catch (e) {
|
|
20649
|
-
// IE 8 has a broken gOPD
|
|
20650
|
-
$gOPD = null;
|
|
20651
|
-
}
|
|
20652
|
-
}
|
|
20653
|
-
|
|
20654
|
-
module.exports = $gOPD;
|
|
20655
|
-
|
|
20656
|
-
|
|
20657
|
-
/***/ }),
|
|
20658
|
-
|
|
20659
|
-
/***/ "../node_modules/has-property-descriptors/index.js":
|
|
20660
|
-
/*!*********************************************************!*\
|
|
20661
|
-
!*** ../node_modules/has-property-descriptors/index.js ***!
|
|
20662
|
-
\*********************************************************/
|
|
20663
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20664
|
-
|
|
20665
|
-
"use strict";
|
|
20666
|
-
|
|
20667
|
-
|
|
20668
|
-
var $defineProperty = __webpack_require__(/*! es-define-property */ "../node_modules/es-define-property/index.js");
|
|
20669
|
-
|
|
20670
|
-
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
20671
|
-
return !!$defineProperty;
|
|
20672
|
-
};
|
|
20673
|
-
|
|
20674
|
-
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
20675
|
-
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
20676
|
-
if (!$defineProperty) {
|
|
20677
|
-
return null;
|
|
20678
|
-
}
|
|
20679
|
-
try {
|
|
20680
|
-
return $defineProperty([], 'length', { value: 1 }).length !== 1;
|
|
20681
|
-
} catch (e) {
|
|
20682
|
-
// In Firefox 4-22, defining length on an array throws an exception.
|
|
20683
|
-
return true;
|
|
20684
|
-
}
|
|
20685
|
-
};
|
|
20686
|
-
|
|
20687
|
-
module.exports = hasPropertyDescriptors;
|
|
20688
|
-
|
|
20689
|
-
|
|
20690
20364
|
/***/ }),
|
|
20691
20365
|
|
|
20692
20366
|
/***/ "../node_modules/has-proto/index.js":
|
|
@@ -20788,21 +20462,18 @@ module.exports = function hasSymbols() {
|
|
|
20788
20462
|
|
|
20789
20463
|
/***/ }),
|
|
20790
20464
|
|
|
20791
|
-
/***/ "../node_modules/
|
|
20792
|
-
|
|
20793
|
-
!*** ../node_modules/
|
|
20794
|
-
|
|
20465
|
+
/***/ "../node_modules/has/src/index.js":
|
|
20466
|
+
/*!****************************************!*\
|
|
20467
|
+
!*** ../node_modules/has/src/index.js ***!
|
|
20468
|
+
\****************************************/
|
|
20795
20469
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
20796
20470
|
|
|
20797
20471
|
"use strict";
|
|
20798
20472
|
|
|
20799
20473
|
|
|
20800
|
-
var call = Function.prototype.call;
|
|
20801
|
-
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
20802
20474
|
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
20803
20475
|
|
|
20804
|
-
|
|
20805
|
-
module.exports = bind.call(call, $hasOwn);
|
|
20476
|
+
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
20806
20477
|
|
|
20807
20478
|
|
|
20808
20479
|
/***/ }),
|
|
@@ -21308,17 +20979,6 @@ module.exports = function inspect_(obj, options, depth, seen) {
|
|
|
21308
20979
|
if (isString(obj)) {
|
|
21309
20980
|
return markBoxed(inspect(String(obj)));
|
|
21310
20981
|
}
|
|
21311
|
-
// note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
|
|
21312
|
-
/* eslint-env browser */
|
|
21313
|
-
if (typeof window !== 'undefined' && obj === window) {
|
|
21314
|
-
return '{ [object Window] }';
|
|
21315
|
-
}
|
|
21316
|
-
if (
|
|
21317
|
-
(typeof globalThis !== 'undefined' && obj === globalThis)
|
|
21318
|
-
|| (typeof __webpack_require__.g !== 'undefined' && obj === __webpack_require__.g)
|
|
21319
|
-
) {
|
|
21320
|
-
return '{ [object globalThis] }';
|
|
21321
|
-
}
|
|
21322
20982
|
if (!isDate(obj) && !isRegExp(obj)) {
|
|
21323
20983
|
var ys = arrObjKeys(obj, inspect);
|
|
21324
20984
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
@@ -21709,59 +21369,6 @@ module.exports = pThrottle;
|
|
|
21709
21369
|
module.exports.AbortError = AbortError;
|
|
21710
21370
|
|
|
21711
21371
|
|
|
21712
|
-
/***/ }),
|
|
21713
|
-
|
|
21714
|
-
/***/ "../node_modules/set-function-length/index.js":
|
|
21715
|
-
/*!****************************************************!*\
|
|
21716
|
-
!*** ../node_modules/set-function-length/index.js ***!
|
|
21717
|
-
\****************************************************/
|
|
21718
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
21719
|
-
|
|
21720
|
-
"use strict";
|
|
21721
|
-
|
|
21722
|
-
|
|
21723
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
21724
|
-
var define = __webpack_require__(/*! define-data-property */ "../node_modules/define-data-property/index.js");
|
|
21725
|
-
var hasDescriptors = __webpack_require__(/*! has-property-descriptors */ "../node_modules/has-property-descriptors/index.js")();
|
|
21726
|
-
var gOPD = __webpack_require__(/*! gopd */ "../node_modules/gopd/index.js");
|
|
21727
|
-
|
|
21728
|
-
var $TypeError = __webpack_require__(/*! es-errors/type */ "../node_modules/es-errors/type.js");
|
|
21729
|
-
var $floor = GetIntrinsic('%Math.floor%');
|
|
21730
|
-
|
|
21731
|
-
/** @type {import('.')} */
|
|
21732
|
-
module.exports = function setFunctionLength(fn, length) {
|
|
21733
|
-
if (typeof fn !== 'function') {
|
|
21734
|
-
throw new $TypeError('`fn` is not a function');
|
|
21735
|
-
}
|
|
21736
|
-
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
|
|
21737
|
-
throw new $TypeError('`length` must be a positive 32-bit integer');
|
|
21738
|
-
}
|
|
21739
|
-
|
|
21740
|
-
var loose = arguments.length > 2 && !!arguments[2];
|
|
21741
|
-
|
|
21742
|
-
var functionLengthIsConfigurable = true;
|
|
21743
|
-
var functionLengthIsWritable = true;
|
|
21744
|
-
if ('length' in fn && gOPD) {
|
|
21745
|
-
var desc = gOPD(fn, 'length');
|
|
21746
|
-
if (desc && !desc.configurable) {
|
|
21747
|
-
functionLengthIsConfigurable = false;
|
|
21748
|
-
}
|
|
21749
|
-
if (desc && !desc.writable) {
|
|
21750
|
-
functionLengthIsWritable = false;
|
|
21751
|
-
}
|
|
21752
|
-
}
|
|
21753
|
-
|
|
21754
|
-
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
21755
|
-
if (hasDescriptors) {
|
|
21756
|
-
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length, true, true);
|
|
21757
|
-
} else {
|
|
21758
|
-
define(/** @type {Parameters<define>[0]} */ (fn), 'length', length);
|
|
21759
|
-
}
|
|
21760
|
-
}
|
|
21761
|
-
return fn;
|
|
21762
|
-
};
|
|
21763
|
-
|
|
21764
|
-
|
|
21765
21372
|
/***/ }),
|
|
21766
21373
|
|
|
21767
21374
|
/***/ "../node_modules/side-channel/index.js":
|
|
@@ -21777,7 +21384,7 @@ var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get
|
|
|
21777
21384
|
var callBound = __webpack_require__(/*! call-bind/callBound */ "../node_modules/call-bind/callBound.js");
|
|
21778
21385
|
var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js");
|
|
21779
21386
|
|
|
21780
|
-
var $TypeError =
|
|
21387
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
21781
21388
|
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
21782
21389
|
var $Map = GetIntrinsic('%Map%', true);
|
|
21783
21390
|
|
|
@@ -21789,58 +21396,49 @@ var $mapSet = callBound('Map.prototype.set', true);
|
|
|
21789
21396
|
var $mapHas = callBound('Map.prototype.has', true);
|
|
21790
21397
|
|
|
21791
21398
|
/*
|
|
21792
|
-
* This function traverses the list returning the node corresponding to the
|
|
21793
|
-
*
|
|
21794
|
-
*
|
|
21795
|
-
|
|
21796
|
-
|
|
21399
|
+
* This function traverses the list returning the node corresponding to the
|
|
21400
|
+
* given key.
|
|
21401
|
+
*
|
|
21402
|
+
* That node is also moved to the head of the list, so that if it's accessed
|
|
21403
|
+
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
21404
|
+
* used nodes can be accessed relatively quickly.
|
|
21405
|
+
*/
|
|
21797
21406
|
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
21798
|
-
|
|
21799
|
-
var prev = list;
|
|
21800
|
-
/** @type {(typeof list)['next']} */
|
|
21801
|
-
var curr;
|
|
21802
|
-
for (; (curr = prev.next) !== null; prev = curr) {
|
|
21407
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
21803
21408
|
if (curr.key === key) {
|
|
21804
21409
|
prev.next = curr.next;
|
|
21805
|
-
|
|
21806
|
-
curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
|
|
21410
|
+
curr.next = list.next;
|
|
21807
21411
|
list.next = curr; // eslint-disable-line no-param-reassign
|
|
21808
21412
|
return curr;
|
|
21809
21413
|
}
|
|
21810
21414
|
}
|
|
21811
21415
|
};
|
|
21812
21416
|
|
|
21813
|
-
/** @type {import('.').listGet} */
|
|
21814
21417
|
var listGet = function (objects, key) {
|
|
21815
21418
|
var node = listGetNode(objects, key);
|
|
21816
21419
|
return node && node.value;
|
|
21817
21420
|
};
|
|
21818
|
-
/** @type {import('.').listSet} */
|
|
21819
21421
|
var listSet = function (objects, key, value) {
|
|
21820
21422
|
var node = listGetNode(objects, key);
|
|
21821
21423
|
if (node) {
|
|
21822
21424
|
node.value = value;
|
|
21823
21425
|
} else {
|
|
21824
21426
|
// Prepend the new node to the beginning of the list
|
|
21825
|
-
objects.next =
|
|
21427
|
+
objects.next = { // eslint-disable-line no-param-reassign
|
|
21826
21428
|
key: key,
|
|
21827
21429
|
next: objects.next,
|
|
21828
21430
|
value: value
|
|
21829
|
-
}
|
|
21431
|
+
};
|
|
21830
21432
|
}
|
|
21831
21433
|
};
|
|
21832
|
-
/** @type {import('.').listHas} */
|
|
21833
21434
|
var listHas = function (objects, key) {
|
|
21834
21435
|
return !!listGetNode(objects, key);
|
|
21835
21436
|
};
|
|
21836
21437
|
|
|
21837
|
-
/** @type {import('.')} */
|
|
21838
21438
|
module.exports = function getSideChannel() {
|
|
21839
|
-
|
|
21840
|
-
|
|
21841
|
-
|
|
21842
|
-
|
|
21843
|
-
/** @type {import('.').Channel} */
|
|
21439
|
+
var $wm;
|
|
21440
|
+
var $m;
|
|
21441
|
+
var $o;
|
|
21844
21442
|
var channel = {
|
|
21845
21443
|
assert: function (key) {
|
|
21846
21444
|
if (!channel.has(key)) {
|
|
@@ -21891,7 +21489,11 @@ module.exports = function getSideChannel() {
|
|
|
21891
21489
|
$mapSet($m, key, value);
|
|
21892
21490
|
} else {
|
|
21893
21491
|
if (!$o) {
|
|
21894
|
-
|
|
21492
|
+
/*
|
|
21493
|
+
* Initialize the linked list as an empty node, so that we don't have
|
|
21494
|
+
* to special-case handling of the first node: we can always refer to
|
|
21495
|
+
* it as (previous node).next, instead of something like (list).head
|
|
21496
|
+
*/
|
|
21895
21497
|
$o = { key: {}, next: null };
|
|
21896
21498
|
}
|
|
21897
21499
|
listSet($o, key, value);
|
|
@@ -27067,7 +26669,7 @@ function createClient(params) {
|
|
|
27067
26669
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27068
26670
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
27069
26671
|
var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)( // @ts-expect-error
|
|
27070
|
-
"".concat(sdkMain, "/").concat("11.
|
|
26672
|
+
"".concat(sdkMain, "/").concat("11.31.0"), params.application, params.integration, params.feature);
|
|
27071
26673
|
var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(_objectSpread(_objectSpread({}, params), {}, {
|
|
27072
26674
|
userAgent: userAgent
|
|
27073
26675
|
}));
|