contentful-management 11.5.3 → 11.5.5
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 +2567 -292
- package/dist/contentful-management.browser.js.map +1 -1
- package/dist/contentful-management.browser.min.js +1 -1
- package/dist/contentful-management.node.js +2577 -301
- 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/app-action-call.js +1 -1
- package/dist/es-modules/contentful-management.js +1 -1
- package/dist/typings/plain/common-types.d.ts +4 -8
- package/package.json +1 -1
|
@@ -264,7 +264,7 @@ var getCallDetails = function getCallDetails(http, params) {
|
|
|
264
264
|
return _raw__WEBPACK_IMPORTED_MODULE_0__.get(http, "/spaces/".concat(params.spaceId, "/environments/").concat(params.environmentId, "/actions/").concat(params.appActionId, "/calls/").concat(params.callId));
|
|
265
265
|
};
|
|
266
266
|
var APP_ACTION_CALL_RETRY_INTERVAL = 2000;
|
|
267
|
-
var APP_ACTION_CALL_RETRIES =
|
|
267
|
+
var APP_ACTION_CALL_RETRIES = 15;
|
|
268
268
|
function callAppActionResult(_x, _x2, _x3) {
|
|
269
269
|
return _callAppActionResult.apply(this, arguments);
|
|
270
270
|
}
|
|
@@ -16588,6 +16588,90 @@ function getUploadHttpClient(http, options) {
|
|
|
16588
16588
|
return uploadHttp;
|
|
16589
16589
|
}
|
|
16590
16590
|
|
|
16591
|
+
/***/ }),
|
|
16592
|
+
|
|
16593
|
+
/***/ "../node_modules/call-bind/callBound.js":
|
|
16594
|
+
/*!**********************************************!*\
|
|
16595
|
+
!*** ../node_modules/call-bind/callBound.js ***!
|
|
16596
|
+
\**********************************************/
|
|
16597
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
16598
|
+
|
|
16599
|
+
"use strict";
|
|
16600
|
+
|
|
16601
|
+
|
|
16602
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
16603
|
+
|
|
16604
|
+
var callBind = __webpack_require__(/*! ./ */ "../node_modules/call-bind/index.js");
|
|
16605
|
+
|
|
16606
|
+
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
16607
|
+
|
|
16608
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
16609
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
16610
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
16611
|
+
return callBind(intrinsic);
|
|
16612
|
+
}
|
|
16613
|
+
return intrinsic;
|
|
16614
|
+
};
|
|
16615
|
+
|
|
16616
|
+
|
|
16617
|
+
/***/ }),
|
|
16618
|
+
|
|
16619
|
+
/***/ "../node_modules/call-bind/index.js":
|
|
16620
|
+
/*!******************************************!*\
|
|
16621
|
+
!*** ../node_modules/call-bind/index.js ***!
|
|
16622
|
+
\******************************************/
|
|
16623
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
16624
|
+
|
|
16625
|
+
"use strict";
|
|
16626
|
+
|
|
16627
|
+
|
|
16628
|
+
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
16629
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
16630
|
+
|
|
16631
|
+
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
16632
|
+
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
16633
|
+
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
16634
|
+
|
|
16635
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
16636
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
16637
|
+
var $max = GetIntrinsic('%Math.max%');
|
|
16638
|
+
|
|
16639
|
+
if ($defineProperty) {
|
|
16640
|
+
try {
|
|
16641
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
16642
|
+
} catch (e) {
|
|
16643
|
+
// IE 8 has a broken defineProperty
|
|
16644
|
+
$defineProperty = null;
|
|
16645
|
+
}
|
|
16646
|
+
}
|
|
16647
|
+
|
|
16648
|
+
module.exports = function callBind(originalFunction) {
|
|
16649
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
16650
|
+
if ($gOPD && $defineProperty) {
|
|
16651
|
+
var desc = $gOPD(func, 'length');
|
|
16652
|
+
if (desc.configurable) {
|
|
16653
|
+
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
16654
|
+
$defineProperty(
|
|
16655
|
+
func,
|
|
16656
|
+
'length',
|
|
16657
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
16658
|
+
);
|
|
16659
|
+
}
|
|
16660
|
+
}
|
|
16661
|
+
return func;
|
|
16662
|
+
};
|
|
16663
|
+
|
|
16664
|
+
var applyBind = function applyBind() {
|
|
16665
|
+
return $reflectApply(bind, $apply, arguments);
|
|
16666
|
+
};
|
|
16667
|
+
|
|
16668
|
+
if ($defineProperty) {
|
|
16669
|
+
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
16670
|
+
} else {
|
|
16671
|
+
module.exports.apply = applyBind;
|
|
16672
|
+
}
|
|
16673
|
+
|
|
16674
|
+
|
|
16591
16675
|
/***/ }),
|
|
16592
16676
|
|
|
16593
16677
|
/***/ "../node_modules/contentful-sdk-core/dist/index.es-modules.js":
|
|
@@ -16609,119 +16693,122 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16609
16693
|
/* harmony export */ });
|
|
16610
16694
|
/* 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");
|
|
16611
16695
|
/* harmony import */ var fast_copy__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(fast_copy__WEBPACK_IMPORTED_MODULE_0__);
|
|
16612
|
-
/* harmony import */ var
|
|
16613
|
-
/* harmony import */ var
|
|
16614
|
-
/* harmony import */ var
|
|
16615
|
-
/* harmony import */ var
|
|
16616
|
-
/* harmony import */ var
|
|
16617
|
-
/* harmony import */ var
|
|
16696
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! qs */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js");
|
|
16697
|
+
/* harmony import */ var qs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(qs__WEBPACK_IMPORTED_MODULE_1__);
|
|
16698
|
+
/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash.isstring */ "../node_modules/lodash.isstring/index.js");
|
|
16699
|
+
/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isstring__WEBPACK_IMPORTED_MODULE_2__);
|
|
16700
|
+
/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! p-throttle */ "../node_modules/p-throttle/index.js");
|
|
16701
|
+
/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(p_throttle__WEBPACK_IMPORTED_MODULE_3__);
|
|
16702
|
+
/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash.isplainobject */ "../node_modules/lodash.isplainobject/index.js");
|
|
16703
|
+
/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__);
|
|
16618
16704
|
|
|
16619
16705
|
|
|
16620
16706
|
|
|
16621
16707
|
|
|
16622
16708
|
|
|
16623
|
-
|
|
16624
|
-
|
|
16625
|
-
|
|
16626
|
-
|
|
16627
|
-
|
|
16628
|
-
|
|
16629
|
-
|
|
16630
|
-
|
|
16631
|
-
|
|
16632
|
-
|
|
16709
|
+
|
|
16710
|
+
function _iterableToArrayLimit(r, l) {
|
|
16711
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
16712
|
+
if (null != t) {
|
|
16713
|
+
var e,
|
|
16714
|
+
n,
|
|
16715
|
+
i,
|
|
16716
|
+
u,
|
|
16717
|
+
a = [],
|
|
16718
|
+
f = !0,
|
|
16719
|
+
o = !1;
|
|
16633
16720
|
try {
|
|
16634
|
-
if (
|
|
16635
|
-
if (Object(
|
|
16636
|
-
|
|
16637
|
-
} else for (; !(
|
|
16638
|
-
} catch (
|
|
16639
|
-
|
|
16721
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
16722
|
+
if (Object(t) !== t) return;
|
|
16723
|
+
f = !1;
|
|
16724
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
16725
|
+
} catch (r) {
|
|
16726
|
+
o = !0, n = r;
|
|
16640
16727
|
} finally {
|
|
16641
16728
|
try {
|
|
16642
|
-
if (!
|
|
16729
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
16643
16730
|
} finally {
|
|
16644
|
-
if (
|
|
16731
|
+
if (o) throw n;
|
|
16645
16732
|
}
|
|
16646
16733
|
}
|
|
16647
|
-
return
|
|
16734
|
+
return a;
|
|
16648
16735
|
}
|
|
16649
16736
|
}
|
|
16650
|
-
function ownKeys(
|
|
16651
|
-
var
|
|
16737
|
+
function ownKeys(e, r) {
|
|
16738
|
+
var t = Object.keys(e);
|
|
16652
16739
|
if (Object.getOwnPropertySymbols) {
|
|
16653
|
-
var
|
|
16654
|
-
|
|
16655
|
-
return Object.getOwnPropertyDescriptor(
|
|
16656
|
-
})),
|
|
16740
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
16741
|
+
r && (o = o.filter(function (r) {
|
|
16742
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
16743
|
+
})), t.push.apply(t, o);
|
|
16657
16744
|
}
|
|
16658
|
-
return
|
|
16659
|
-
}
|
|
16660
|
-
function _objectSpread2(
|
|
16661
|
-
for (var
|
|
16662
|
-
var
|
|
16663
|
-
|
|
16664
|
-
_defineProperty(
|
|
16665
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
16666
|
-
Object.defineProperty(
|
|
16745
|
+
return t;
|
|
16746
|
+
}
|
|
16747
|
+
function _objectSpread2(e) {
|
|
16748
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
16749
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
16750
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
16751
|
+
_defineProperty(e, r, t[r]);
|
|
16752
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
16753
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
16667
16754
|
});
|
|
16668
16755
|
}
|
|
16669
|
-
return
|
|
16756
|
+
return e;
|
|
16670
16757
|
}
|
|
16671
|
-
function _typeof(
|
|
16758
|
+
function _typeof(o) {
|
|
16672
16759
|
"@babel/helpers - typeof";
|
|
16673
16760
|
|
|
16674
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (
|
|
16675
|
-
return typeof
|
|
16676
|
-
} : function (
|
|
16677
|
-
return
|
|
16678
|
-
}, _typeof(
|
|
16761
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
16762
|
+
return typeof o;
|
|
16763
|
+
} : function (o) {
|
|
16764
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
16765
|
+
}, _typeof(o);
|
|
16679
16766
|
}
|
|
16680
16767
|
function _wrapRegExp() {
|
|
16681
|
-
_wrapRegExp = function (
|
|
16682
|
-
return new BabelRegExp(
|
|
16768
|
+
_wrapRegExp = function (e, r) {
|
|
16769
|
+
return new BabelRegExp(e, void 0, r);
|
|
16683
16770
|
};
|
|
16684
|
-
var
|
|
16685
|
-
|
|
16686
|
-
function BabelRegExp(
|
|
16687
|
-
var
|
|
16688
|
-
return
|
|
16771
|
+
var e = RegExp.prototype,
|
|
16772
|
+
r = new WeakMap();
|
|
16773
|
+
function BabelRegExp(e, t, p) {
|
|
16774
|
+
var o = new RegExp(e, t);
|
|
16775
|
+
return r.set(o, p || r.get(e)), _setPrototypeOf(o, BabelRegExp.prototype);
|
|
16689
16776
|
}
|
|
16690
|
-
function buildGroups(
|
|
16691
|
-
var
|
|
16692
|
-
return Object.keys(
|
|
16693
|
-
var
|
|
16694
|
-
if ("number" == typeof
|
|
16695
|
-
for (var
|
|
16696
|
-
|
|
16777
|
+
function buildGroups(e, t) {
|
|
16778
|
+
var p = r.get(t);
|
|
16779
|
+
return Object.keys(p).reduce(function (r, t) {
|
|
16780
|
+
var o = p[t];
|
|
16781
|
+
if ("number" == typeof o) r[t] = e[o];else {
|
|
16782
|
+
for (var i = 0; void 0 === e[o[i]] && i + 1 < o.length;) i++;
|
|
16783
|
+
r[t] = e[o[i]];
|
|
16697
16784
|
}
|
|
16698
|
-
return
|
|
16785
|
+
return r;
|
|
16699
16786
|
}, Object.create(null));
|
|
16700
16787
|
}
|
|
16701
|
-
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (
|
|
16702
|
-
var
|
|
16703
|
-
if (
|
|
16704
|
-
|
|
16705
|
-
var
|
|
16706
|
-
|
|
16707
|
-
}
|
|
16708
|
-
return
|
|
16709
|
-
}, BabelRegExp.prototype[Symbol.replace] = function (
|
|
16710
|
-
if ("string" == typeof
|
|
16711
|
-
var
|
|
16712
|
-
return
|
|
16713
|
-
var
|
|
16714
|
-
return "$" + (Array.isArray(
|
|
16788
|
+
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (r) {
|
|
16789
|
+
var t = e.exec.call(this, r);
|
|
16790
|
+
if (t) {
|
|
16791
|
+
t.groups = buildGroups(t, this);
|
|
16792
|
+
var p = t.indices;
|
|
16793
|
+
p && (p.groups = buildGroups(p, this));
|
|
16794
|
+
}
|
|
16795
|
+
return t;
|
|
16796
|
+
}, BabelRegExp.prototype[Symbol.replace] = function (t, p) {
|
|
16797
|
+
if ("string" == typeof p) {
|
|
16798
|
+
var o = r.get(this);
|
|
16799
|
+
return e[Symbol.replace].call(this, t, p.replace(/\$<([^>]+)>/g, function (e, r) {
|
|
16800
|
+
var t = o[r];
|
|
16801
|
+
return "$" + (Array.isArray(t) ? t.join("$") : t);
|
|
16715
16802
|
}));
|
|
16716
16803
|
}
|
|
16717
|
-
if ("function" == typeof
|
|
16718
|
-
var
|
|
16719
|
-
return
|
|
16720
|
-
var
|
|
16721
|
-
return "object" != typeof
|
|
16804
|
+
if ("function" == typeof p) {
|
|
16805
|
+
var i = this;
|
|
16806
|
+
return e[Symbol.replace].call(this, t, function () {
|
|
16807
|
+
var e = arguments;
|
|
16808
|
+
return "object" != typeof e[e.length - 1] && (e = [].slice.call(e)).push(buildGroups(e, i)), p.apply(this, e);
|
|
16722
16809
|
});
|
|
16723
16810
|
}
|
|
16724
|
-
return
|
|
16811
|
+
return e[Symbol.replace].call(this, t, p);
|
|
16725
16812
|
}, _wrapRegExp.apply(this, arguments);
|
|
16726
16813
|
}
|
|
16727
16814
|
function _defineProperty(obj, key, value) {
|
|
@@ -16978,7 +17065,7 @@ function calculateLimit(type) {
|
|
|
16978
17065
|
}
|
|
16979
17066
|
function createThrottle(limit, logger) {
|
|
16980
17067
|
logger('info', "Throttle request to ".concat(limit, "/s"));
|
|
16981
|
-
return
|
|
17068
|
+
return p_throttle__WEBPACK_IMPORTED_MODULE_3___default()({
|
|
16982
17069
|
limit: limit,
|
|
16983
17070
|
interval: 1000,
|
|
16984
17071
|
strict: false
|
|
@@ -16988,7 +17075,7 @@ var rateLimitThrottle = (function (axiosInstance) {
|
|
|
16988
17075
|
var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'auto';
|
|
16989
17076
|
var _axiosInstance$defaul = axiosInstance.defaults.logHandler,
|
|
16990
17077
|
logHandler = _axiosInstance$defaul === void 0 ? noop : _axiosInstance$defaul;
|
|
16991
|
-
var limit =
|
|
17078
|
+
var limit = lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default()(type) ? calculateLimit(type) : calculateLimit('auto', type);
|
|
16992
17079
|
var throttle = createThrottle(limit, logHandler);
|
|
16993
17080
|
var isCalculated = false;
|
|
16994
17081
|
var requestInterceptorId = axiosInstance.interceptors.request.use(function (config) {
|
|
@@ -16999,7 +17086,7 @@ var rateLimitThrottle = (function (axiosInstance) {
|
|
|
16999
17086
|
return Promise.reject(error);
|
|
17000
17087
|
});
|
|
17001
17088
|
var responseInterceptorId = axiosInstance.interceptors.response.use(function (response) {
|
|
17002
|
-
if (!isCalculated &&
|
|
17089
|
+
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']) {
|
|
17003
17090
|
var rawLimit = parseInt(response.headers['x-contentful-ratelimit-second-limit']);
|
|
17004
17091
|
var nextLimit = calculateLimit(type, rawLimit);
|
|
17005
17092
|
if (nextLimit !== limit) {
|
|
@@ -17067,7 +17154,6 @@ function createHttpClient(axios, options) {
|
|
|
17067
17154
|
// 1GB
|
|
17068
17155
|
maxBodyLength: 1073741824 // 1GB
|
|
17069
17156
|
};
|
|
17070
|
-
|
|
17071
17157
|
var config = _objectSpread2(_objectSpread2({}, defaultConfig), options);
|
|
17072
17158
|
if (!config.accessToken) {
|
|
17073
17159
|
var missingAccessTokenError = new TypeError('Expected parameter accessToken');
|
|
@@ -17110,6 +17196,11 @@ function createHttpClient(axios, options) {
|
|
|
17110
17196
|
adapter: config.adapter,
|
|
17111
17197
|
maxContentLength: config.maxContentLength,
|
|
17112
17198
|
maxBodyLength: config.maxBodyLength,
|
|
17199
|
+
paramsSerializer: {
|
|
17200
|
+
serialize: function serialize(params) {
|
|
17201
|
+
return qs__WEBPACK_IMPORTED_MODULE_1___default().stringify(params);
|
|
17202
|
+
}
|
|
17203
|
+
},
|
|
17113
17204
|
// Contentful
|
|
17114
17205
|
logHandler: config.logHandler,
|
|
17115
17206
|
responseLogger: config.responseLogger,
|
|
@@ -17322,7 +17413,7 @@ function errorHandler(errorResponse) {
|
|
|
17322
17413
|
var token = "...".concat(config.headers['Authorization'].toString().substr(-5));
|
|
17323
17414
|
config.headers['Authorization'] = "Bearer ".concat(token);
|
|
17324
17415
|
}
|
|
17325
|
-
if (!
|
|
17416
|
+
if (!lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(response) || !lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) {
|
|
17326
17417
|
throw errorResponse;
|
|
17327
17418
|
}
|
|
17328
17419
|
var data = response === null || response === void 0 ? void 0 : response.data;
|
|
@@ -17332,7 +17423,7 @@ function errorHandler(errorResponse) {
|
|
|
17332
17423
|
message: '',
|
|
17333
17424
|
details: {}
|
|
17334
17425
|
};
|
|
17335
|
-
if (config &&
|
|
17426
|
+
if (config && lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) {
|
|
17336
17427
|
errorData.request = {
|
|
17337
17428
|
url: config.url,
|
|
17338
17429
|
headers: config.headers,
|
|
@@ -17733,231 +17824,1744 @@ function errorHandler(errorResponse) {
|
|
|
17733
17824
|
|
|
17734
17825
|
/***/ }),
|
|
17735
17826
|
|
|
17736
|
-
/***/ "../node_modules/
|
|
17737
|
-
|
|
17738
|
-
!*** ../node_modules/
|
|
17739
|
-
|
|
17827
|
+
/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js":
|
|
17828
|
+
/*!**************************************************************************!*\
|
|
17829
|
+
!*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js ***!
|
|
17830
|
+
\**************************************************************************/
|
|
17740
17831
|
/***/ ((module) => {
|
|
17741
17832
|
|
|
17742
|
-
|
|
17743
|
-
* lodash (Custom Build) <https://lodash.com/>
|
|
17744
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
17745
|
-
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
17746
|
-
* Released under MIT license <https://lodash.com/license>
|
|
17747
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
17748
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
17749
|
-
*/
|
|
17750
|
-
|
|
17751
|
-
/** `Object#toString` result references. */
|
|
17752
|
-
var objectTag = '[object Object]';
|
|
17833
|
+
"use strict";
|
|
17753
17834
|
|
|
17754
|
-
/**
|
|
17755
|
-
* Checks if `value` is a host object in IE < 9.
|
|
17756
|
-
*
|
|
17757
|
-
* @private
|
|
17758
|
-
* @param {*} value The value to check.
|
|
17759
|
-
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
17760
|
-
*/
|
|
17761
|
-
function isHostObject(value) {
|
|
17762
|
-
// Many host objects are `Object` objects that can coerce to strings
|
|
17763
|
-
// despite having improperly defined `toString` methods.
|
|
17764
|
-
var result = false;
|
|
17765
|
-
if (value != null && typeof value.toString != 'function') {
|
|
17766
|
-
try {
|
|
17767
|
-
result = !!(value + '');
|
|
17768
|
-
} catch (e) {}
|
|
17769
|
-
}
|
|
17770
|
-
return result;
|
|
17771
|
-
}
|
|
17772
17835
|
|
|
17773
|
-
|
|
17774
|
-
|
|
17775
|
-
*
|
|
17776
|
-
* @private
|
|
17777
|
-
* @param {Function} func The function to wrap.
|
|
17778
|
-
* @param {Function} transform The argument transform.
|
|
17779
|
-
* @returns {Function} Returns the new function.
|
|
17780
|
-
*/
|
|
17781
|
-
function overArg(func, transform) {
|
|
17782
|
-
return function(arg) {
|
|
17783
|
-
return func(transform(arg));
|
|
17784
|
-
};
|
|
17785
|
-
}
|
|
17836
|
+
var replace = String.prototype.replace;
|
|
17837
|
+
var percentTwenties = /%20/g;
|
|
17786
17838
|
|
|
17787
|
-
|
|
17788
|
-
|
|
17789
|
-
|
|
17839
|
+
var Format = {
|
|
17840
|
+
RFC1738: 'RFC1738',
|
|
17841
|
+
RFC3986: 'RFC3986'
|
|
17842
|
+
};
|
|
17790
17843
|
|
|
17791
|
-
|
|
17792
|
-
|
|
17844
|
+
module.exports = {
|
|
17845
|
+
'default': Format.RFC3986,
|
|
17846
|
+
formatters: {
|
|
17847
|
+
RFC1738: function (value) {
|
|
17848
|
+
return replace.call(value, percentTwenties, '+');
|
|
17849
|
+
},
|
|
17850
|
+
RFC3986: function (value) {
|
|
17851
|
+
return String(value);
|
|
17852
|
+
}
|
|
17853
|
+
},
|
|
17854
|
+
RFC1738: Format.RFC1738,
|
|
17855
|
+
RFC3986: Format.RFC3986
|
|
17856
|
+
};
|
|
17793
17857
|
|
|
17794
|
-
/** Used to check objects for own properties. */
|
|
17795
|
-
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
17796
17858
|
|
|
17797
|
-
|
|
17798
|
-
var objectCtorString = funcToString.call(Object);
|
|
17859
|
+
/***/ }),
|
|
17799
17860
|
|
|
17800
|
-
|
|
17801
|
-
|
|
17802
|
-
|
|
17803
|
-
|
|
17804
|
-
|
|
17805
|
-
var objectToString = objectProto.toString;
|
|
17861
|
+
/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js":
|
|
17862
|
+
/*!************************************************************************!*\
|
|
17863
|
+
!*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js ***!
|
|
17864
|
+
\************************************************************************/
|
|
17865
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
17806
17866
|
|
|
17807
|
-
|
|
17808
|
-
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
17867
|
+
"use strict";
|
|
17809
17868
|
|
|
17810
|
-
/**
|
|
17811
|
-
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
17812
|
-
* and has a `typeof` result of "object".
|
|
17813
|
-
*
|
|
17814
|
-
* @static
|
|
17815
|
-
* @memberOf _
|
|
17816
|
-
* @since 4.0.0
|
|
17817
|
-
* @category Lang
|
|
17818
|
-
* @param {*} value The value to check.
|
|
17819
|
-
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
17820
|
-
* @example
|
|
17821
|
-
*
|
|
17822
|
-
* _.isObjectLike({});
|
|
17823
|
-
* // => true
|
|
17824
|
-
*
|
|
17825
|
-
* _.isObjectLike([1, 2, 3]);
|
|
17826
|
-
* // => true
|
|
17827
|
-
*
|
|
17828
|
-
* _.isObjectLike(_.noop);
|
|
17829
|
-
* // => false
|
|
17830
|
-
*
|
|
17831
|
-
* _.isObjectLike(null);
|
|
17832
|
-
* // => false
|
|
17833
|
-
*/
|
|
17834
|
-
function isObjectLike(value) {
|
|
17835
|
-
return !!value && typeof value == 'object';
|
|
17836
|
-
}
|
|
17837
17869
|
|
|
17838
|
-
|
|
17839
|
-
|
|
17840
|
-
|
|
17841
|
-
*
|
|
17842
|
-
* @static
|
|
17843
|
-
* @memberOf _
|
|
17844
|
-
* @since 0.8.0
|
|
17845
|
-
* @category Lang
|
|
17846
|
-
* @param {*} value The value to check.
|
|
17847
|
-
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
17848
|
-
* @example
|
|
17849
|
-
*
|
|
17850
|
-
* function Foo() {
|
|
17851
|
-
* this.a = 1;
|
|
17852
|
-
* }
|
|
17853
|
-
*
|
|
17854
|
-
* _.isPlainObject(new Foo);
|
|
17855
|
-
* // => false
|
|
17856
|
-
*
|
|
17857
|
-
* _.isPlainObject([1, 2, 3]);
|
|
17858
|
-
* // => false
|
|
17859
|
-
*
|
|
17860
|
-
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
17861
|
-
* // => true
|
|
17862
|
-
*
|
|
17863
|
-
* _.isPlainObject(Object.create(null));
|
|
17864
|
-
* // => true
|
|
17865
|
-
*/
|
|
17866
|
-
function isPlainObject(value) {
|
|
17867
|
-
if (!isObjectLike(value) ||
|
|
17868
|
-
objectToString.call(value) != objectTag || isHostObject(value)) {
|
|
17869
|
-
return false;
|
|
17870
|
-
}
|
|
17871
|
-
var proto = getPrototype(value);
|
|
17872
|
-
if (proto === null) {
|
|
17873
|
-
return true;
|
|
17874
|
-
}
|
|
17875
|
-
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
17876
|
-
return (typeof Ctor == 'function' &&
|
|
17877
|
-
Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
|
|
17878
|
-
}
|
|
17870
|
+
var stringify = __webpack_require__(/*! ./stringify */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/stringify.js");
|
|
17871
|
+
var parse = __webpack_require__(/*! ./parse */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/parse.js");
|
|
17872
|
+
var formats = __webpack_require__(/*! ./formats */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js");
|
|
17879
17873
|
|
|
17880
|
-
module.exports =
|
|
17874
|
+
module.exports = {
|
|
17875
|
+
formats: formats,
|
|
17876
|
+
parse: parse,
|
|
17877
|
+
stringify: stringify
|
|
17878
|
+
};
|
|
17881
17879
|
|
|
17882
17880
|
|
|
17883
17881
|
/***/ }),
|
|
17884
17882
|
|
|
17885
|
-
/***/ "../node_modules/
|
|
17886
|
-
|
|
17887
|
-
!*** ../node_modules/
|
|
17888
|
-
|
|
17889
|
-
/***/ ((module) => {
|
|
17890
|
-
|
|
17891
|
-
/**
|
|
17892
|
-
* lodash 4.0.1 (Custom Build) <https://lodash.com/>
|
|
17893
|
-
* Build: `lodash modularize exports="npm" -o ./`
|
|
17894
|
-
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
|
17895
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
17896
|
-
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
17897
|
-
* Available under MIT license <https://lodash.com/license>
|
|
17898
|
-
*/
|
|
17883
|
+
/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/parse.js":
|
|
17884
|
+
/*!************************************************************************!*\
|
|
17885
|
+
!*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/parse.js ***!
|
|
17886
|
+
\************************************************************************/
|
|
17887
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
17899
17888
|
|
|
17900
|
-
|
|
17901
|
-
var stringTag = '[object String]';
|
|
17889
|
+
"use strict";
|
|
17902
17890
|
|
|
17903
|
-
/** Used for built-in method references. */
|
|
17904
|
-
var objectProto = Object.prototype;
|
|
17905
17891
|
|
|
17906
|
-
|
|
17907
|
-
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
|
17908
|
-
* of values.
|
|
17909
|
-
*/
|
|
17910
|
-
var objectToString = objectProto.toString;
|
|
17892
|
+
var utils = __webpack_require__(/*! ./utils */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js");
|
|
17911
17893
|
|
|
17912
|
-
|
|
17913
|
-
* Checks if `value` is classified as an `Array` object.
|
|
17914
|
-
*
|
|
17915
|
-
* @static
|
|
17916
|
-
* @memberOf _
|
|
17917
|
-
* @type Function
|
|
17918
|
-
* @category Lang
|
|
17919
|
-
* @param {*} value The value to check.
|
|
17920
|
-
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
|
17921
|
-
* @example
|
|
17922
|
-
*
|
|
17923
|
-
* _.isArray([1, 2, 3]);
|
|
17924
|
-
* // => true
|
|
17925
|
-
*
|
|
17926
|
-
* _.isArray(document.body.children);
|
|
17927
|
-
* // => false
|
|
17928
|
-
*
|
|
17929
|
-
* _.isArray('abc');
|
|
17930
|
-
* // => false
|
|
17931
|
-
*
|
|
17932
|
-
* _.isArray(_.noop);
|
|
17933
|
-
* // => false
|
|
17934
|
-
*/
|
|
17894
|
+
var has = Object.prototype.hasOwnProperty;
|
|
17935
17895
|
var isArray = Array.isArray;
|
|
17936
17896
|
|
|
17937
|
-
|
|
17938
|
-
|
|
17939
|
-
|
|
17940
|
-
|
|
17941
|
-
|
|
17942
|
-
|
|
17943
|
-
|
|
17944
|
-
|
|
17945
|
-
|
|
17946
|
-
|
|
17947
|
-
|
|
17948
|
-
|
|
17949
|
-
|
|
17950
|
-
|
|
17951
|
-
|
|
17952
|
-
|
|
17953
|
-
|
|
17954
|
-
|
|
17955
|
-
|
|
17956
|
-
|
|
17957
|
-
|
|
17958
|
-
|
|
17959
|
-
|
|
17960
|
-
|
|
17897
|
+
var defaults = {
|
|
17898
|
+
allowDots: false,
|
|
17899
|
+
allowPrototypes: false,
|
|
17900
|
+
allowSparse: false,
|
|
17901
|
+
arrayLimit: 20,
|
|
17902
|
+
charset: 'utf-8',
|
|
17903
|
+
charsetSentinel: false,
|
|
17904
|
+
comma: false,
|
|
17905
|
+
decoder: utils.decode,
|
|
17906
|
+
delimiter: '&',
|
|
17907
|
+
depth: 5,
|
|
17908
|
+
ignoreQueryPrefix: false,
|
|
17909
|
+
interpretNumericEntities: false,
|
|
17910
|
+
parameterLimit: 1000,
|
|
17911
|
+
parseArrays: true,
|
|
17912
|
+
plainObjects: false,
|
|
17913
|
+
strictNullHandling: false
|
|
17914
|
+
};
|
|
17915
|
+
|
|
17916
|
+
var interpretNumericEntities = function (str) {
|
|
17917
|
+
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
17918
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
|
17919
|
+
});
|
|
17920
|
+
};
|
|
17921
|
+
|
|
17922
|
+
var parseArrayValue = function (val, options) {
|
|
17923
|
+
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
17924
|
+
return val.split(',');
|
|
17925
|
+
}
|
|
17926
|
+
|
|
17927
|
+
return val;
|
|
17928
|
+
};
|
|
17929
|
+
|
|
17930
|
+
// This is what browsers will submit when the ✓ character occurs in an
|
|
17931
|
+
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
17932
|
+
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
17933
|
+
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
|
17934
|
+
// the ✓ character, such as us-ascii.
|
|
17935
|
+
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
17936
|
+
|
|
17937
|
+
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
|
17938
|
+
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
17939
|
+
|
|
17940
|
+
var parseValues = function parseQueryStringValues(str, options) {
|
|
17941
|
+
var obj = { __proto__: null };
|
|
17942
|
+
|
|
17943
|
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
17944
|
+
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
17945
|
+
var parts = cleanStr.split(options.delimiter, limit);
|
|
17946
|
+
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
17947
|
+
var i;
|
|
17948
|
+
|
|
17949
|
+
var charset = options.charset;
|
|
17950
|
+
if (options.charsetSentinel) {
|
|
17951
|
+
for (i = 0; i < parts.length; ++i) {
|
|
17952
|
+
if (parts[i].indexOf('utf8=') === 0) {
|
|
17953
|
+
if (parts[i] === charsetSentinel) {
|
|
17954
|
+
charset = 'utf-8';
|
|
17955
|
+
} else if (parts[i] === isoSentinel) {
|
|
17956
|
+
charset = 'iso-8859-1';
|
|
17957
|
+
}
|
|
17958
|
+
skipIndex = i;
|
|
17959
|
+
i = parts.length; // The eslint settings do not allow break;
|
|
17960
|
+
}
|
|
17961
|
+
}
|
|
17962
|
+
}
|
|
17963
|
+
|
|
17964
|
+
for (i = 0; i < parts.length; ++i) {
|
|
17965
|
+
if (i === skipIndex) {
|
|
17966
|
+
continue;
|
|
17967
|
+
}
|
|
17968
|
+
var part = parts[i];
|
|
17969
|
+
|
|
17970
|
+
var bracketEqualsPos = part.indexOf(']=');
|
|
17971
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
17972
|
+
|
|
17973
|
+
var key, val;
|
|
17974
|
+
if (pos === -1) {
|
|
17975
|
+
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
17976
|
+
val = options.strictNullHandling ? null : '';
|
|
17977
|
+
} else {
|
|
17978
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
17979
|
+
val = utils.maybeMap(
|
|
17980
|
+
parseArrayValue(part.slice(pos + 1), options),
|
|
17981
|
+
function (encodedVal) {
|
|
17982
|
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
17983
|
+
}
|
|
17984
|
+
);
|
|
17985
|
+
}
|
|
17986
|
+
|
|
17987
|
+
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
17988
|
+
val = interpretNumericEntities(val);
|
|
17989
|
+
}
|
|
17990
|
+
|
|
17991
|
+
if (part.indexOf('[]=') > -1) {
|
|
17992
|
+
val = isArray(val) ? [val] : val;
|
|
17993
|
+
}
|
|
17994
|
+
|
|
17995
|
+
if (has.call(obj, key)) {
|
|
17996
|
+
obj[key] = utils.combine(obj[key], val);
|
|
17997
|
+
} else {
|
|
17998
|
+
obj[key] = val;
|
|
17999
|
+
}
|
|
18000
|
+
}
|
|
18001
|
+
|
|
18002
|
+
return obj;
|
|
18003
|
+
};
|
|
18004
|
+
|
|
18005
|
+
var parseObject = function (chain, val, options, valuesParsed) {
|
|
18006
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
|
18007
|
+
|
|
18008
|
+
for (var i = chain.length - 1; i >= 0; --i) {
|
|
18009
|
+
var obj;
|
|
18010
|
+
var root = chain[i];
|
|
18011
|
+
|
|
18012
|
+
if (root === '[]' && options.parseArrays) {
|
|
18013
|
+
obj = [].concat(leaf);
|
|
18014
|
+
} else {
|
|
18015
|
+
obj = options.plainObjects ? Object.create(null) : {};
|
|
18016
|
+
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
18017
|
+
var index = parseInt(cleanRoot, 10);
|
|
18018
|
+
if (!options.parseArrays && cleanRoot === '') {
|
|
18019
|
+
obj = { 0: leaf };
|
|
18020
|
+
} else if (
|
|
18021
|
+
!isNaN(index)
|
|
18022
|
+
&& root !== cleanRoot
|
|
18023
|
+
&& String(index) === cleanRoot
|
|
18024
|
+
&& index >= 0
|
|
18025
|
+
&& (options.parseArrays && index <= options.arrayLimit)
|
|
18026
|
+
) {
|
|
18027
|
+
obj = [];
|
|
18028
|
+
obj[index] = leaf;
|
|
18029
|
+
} else if (cleanRoot !== '__proto__') {
|
|
18030
|
+
obj[cleanRoot] = leaf;
|
|
18031
|
+
}
|
|
18032
|
+
}
|
|
18033
|
+
|
|
18034
|
+
leaf = obj;
|
|
18035
|
+
}
|
|
18036
|
+
|
|
18037
|
+
return leaf;
|
|
18038
|
+
};
|
|
18039
|
+
|
|
18040
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
18041
|
+
if (!givenKey) {
|
|
18042
|
+
return;
|
|
18043
|
+
}
|
|
18044
|
+
|
|
18045
|
+
// Transform dot notation to bracket notation
|
|
18046
|
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
18047
|
+
|
|
18048
|
+
// The regex chunks
|
|
18049
|
+
|
|
18050
|
+
var brackets = /(\[[^[\]]*])/;
|
|
18051
|
+
var child = /(\[[^[\]]*])/g;
|
|
18052
|
+
|
|
18053
|
+
// Get the parent
|
|
18054
|
+
|
|
18055
|
+
var segment = options.depth > 0 && brackets.exec(key);
|
|
18056
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
|
18057
|
+
|
|
18058
|
+
// Stash the parent if it exists
|
|
18059
|
+
|
|
18060
|
+
var keys = [];
|
|
18061
|
+
if (parent) {
|
|
18062
|
+
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
18063
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
18064
|
+
if (!options.allowPrototypes) {
|
|
18065
|
+
return;
|
|
18066
|
+
}
|
|
18067
|
+
}
|
|
18068
|
+
|
|
18069
|
+
keys.push(parent);
|
|
18070
|
+
}
|
|
18071
|
+
|
|
18072
|
+
// Loop through children appending to the array until we hit depth
|
|
18073
|
+
|
|
18074
|
+
var i = 0;
|
|
18075
|
+
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
18076
|
+
i += 1;
|
|
18077
|
+
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
18078
|
+
if (!options.allowPrototypes) {
|
|
18079
|
+
return;
|
|
18080
|
+
}
|
|
18081
|
+
}
|
|
18082
|
+
keys.push(segment[1]);
|
|
18083
|
+
}
|
|
18084
|
+
|
|
18085
|
+
// If there's a remainder, just add whatever is left
|
|
18086
|
+
|
|
18087
|
+
if (segment) {
|
|
18088
|
+
keys.push('[' + key.slice(segment.index) + ']');
|
|
18089
|
+
}
|
|
18090
|
+
|
|
18091
|
+
return parseObject(keys, val, options, valuesParsed);
|
|
18092
|
+
};
|
|
18093
|
+
|
|
18094
|
+
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
18095
|
+
if (!opts) {
|
|
18096
|
+
return defaults;
|
|
18097
|
+
}
|
|
18098
|
+
|
|
18099
|
+
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
|
18100
|
+
throw new TypeError('Decoder has to be a function.');
|
|
18101
|
+
}
|
|
18102
|
+
|
|
18103
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
18104
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
18105
|
+
}
|
|
18106
|
+
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
18107
|
+
|
|
18108
|
+
return {
|
|
18109
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
18110
|
+
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
18111
|
+
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
18112
|
+
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
18113
|
+
charset: charset,
|
|
18114
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
18115
|
+
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
18116
|
+
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
18117
|
+
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
18118
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
18119
|
+
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
18120
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
18121
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
18122
|
+
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
18123
|
+
parseArrays: opts.parseArrays !== false,
|
|
18124
|
+
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
18125
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
18126
|
+
};
|
|
18127
|
+
};
|
|
18128
|
+
|
|
18129
|
+
module.exports = function (str, opts) {
|
|
18130
|
+
var options = normalizeParseOptions(opts);
|
|
18131
|
+
|
|
18132
|
+
if (str === '' || str === null || typeof str === 'undefined') {
|
|
18133
|
+
return options.plainObjects ? Object.create(null) : {};
|
|
18134
|
+
}
|
|
18135
|
+
|
|
18136
|
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
18137
|
+
var obj = options.plainObjects ? Object.create(null) : {};
|
|
18138
|
+
|
|
18139
|
+
// Iterate over the keys and setup the new object
|
|
18140
|
+
|
|
18141
|
+
var keys = Object.keys(tempObj);
|
|
18142
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
18143
|
+
var key = keys[i];
|
|
18144
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
18145
|
+
obj = utils.merge(obj, newObj, options);
|
|
18146
|
+
}
|
|
18147
|
+
|
|
18148
|
+
if (options.allowSparse === true) {
|
|
18149
|
+
return obj;
|
|
18150
|
+
}
|
|
18151
|
+
|
|
18152
|
+
return utils.compact(obj);
|
|
18153
|
+
};
|
|
18154
|
+
|
|
18155
|
+
|
|
18156
|
+
/***/ }),
|
|
18157
|
+
|
|
18158
|
+
/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/stringify.js":
|
|
18159
|
+
/*!****************************************************************************!*\
|
|
18160
|
+
!*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/stringify.js ***!
|
|
18161
|
+
\****************************************************************************/
|
|
18162
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
18163
|
+
|
|
18164
|
+
"use strict";
|
|
18165
|
+
|
|
18166
|
+
|
|
18167
|
+
var getSideChannel = __webpack_require__(/*! side-channel */ "../node_modules/side-channel/index.js");
|
|
18168
|
+
var utils = __webpack_require__(/*! ./utils */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js");
|
|
18169
|
+
var formats = __webpack_require__(/*! ./formats */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js");
|
|
18170
|
+
var has = Object.prototype.hasOwnProperty;
|
|
18171
|
+
|
|
18172
|
+
var arrayPrefixGenerators = {
|
|
18173
|
+
brackets: function brackets(prefix) {
|
|
18174
|
+
return prefix + '[]';
|
|
18175
|
+
},
|
|
18176
|
+
comma: 'comma',
|
|
18177
|
+
indices: function indices(prefix, key) {
|
|
18178
|
+
return prefix + '[' + key + ']';
|
|
18179
|
+
},
|
|
18180
|
+
repeat: function repeat(prefix) {
|
|
18181
|
+
return prefix;
|
|
18182
|
+
}
|
|
18183
|
+
};
|
|
18184
|
+
|
|
18185
|
+
var isArray = Array.isArray;
|
|
18186
|
+
var push = Array.prototype.push;
|
|
18187
|
+
var pushToArray = function (arr, valueOrArray) {
|
|
18188
|
+
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
18189
|
+
};
|
|
18190
|
+
|
|
18191
|
+
var toISO = Date.prototype.toISOString;
|
|
18192
|
+
|
|
18193
|
+
var defaultFormat = formats['default'];
|
|
18194
|
+
var defaults = {
|
|
18195
|
+
addQueryPrefix: false,
|
|
18196
|
+
allowDots: false,
|
|
18197
|
+
charset: 'utf-8',
|
|
18198
|
+
charsetSentinel: false,
|
|
18199
|
+
delimiter: '&',
|
|
18200
|
+
encode: true,
|
|
18201
|
+
encoder: utils.encode,
|
|
18202
|
+
encodeValuesOnly: false,
|
|
18203
|
+
format: defaultFormat,
|
|
18204
|
+
formatter: formats.formatters[defaultFormat],
|
|
18205
|
+
// deprecated
|
|
18206
|
+
indices: false,
|
|
18207
|
+
serializeDate: function serializeDate(date) {
|
|
18208
|
+
return toISO.call(date);
|
|
18209
|
+
},
|
|
18210
|
+
skipNulls: false,
|
|
18211
|
+
strictNullHandling: false
|
|
18212
|
+
};
|
|
18213
|
+
|
|
18214
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
18215
|
+
return typeof v === 'string'
|
|
18216
|
+
|| typeof v === 'number'
|
|
18217
|
+
|| typeof v === 'boolean'
|
|
18218
|
+
|| typeof v === 'symbol'
|
|
18219
|
+
|| typeof v === 'bigint';
|
|
18220
|
+
};
|
|
18221
|
+
|
|
18222
|
+
var sentinel = {};
|
|
18223
|
+
|
|
18224
|
+
var stringify = function stringify(
|
|
18225
|
+
object,
|
|
18226
|
+
prefix,
|
|
18227
|
+
generateArrayPrefix,
|
|
18228
|
+
commaRoundTrip,
|
|
18229
|
+
strictNullHandling,
|
|
18230
|
+
skipNulls,
|
|
18231
|
+
encoder,
|
|
18232
|
+
filter,
|
|
18233
|
+
sort,
|
|
18234
|
+
allowDots,
|
|
18235
|
+
serializeDate,
|
|
18236
|
+
format,
|
|
18237
|
+
formatter,
|
|
18238
|
+
encodeValuesOnly,
|
|
18239
|
+
charset,
|
|
18240
|
+
sideChannel
|
|
18241
|
+
) {
|
|
18242
|
+
var obj = object;
|
|
18243
|
+
|
|
18244
|
+
var tmpSc = sideChannel;
|
|
18245
|
+
var step = 0;
|
|
18246
|
+
var findFlag = false;
|
|
18247
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
|
|
18248
|
+
// Where object last appeared in the ref tree
|
|
18249
|
+
var pos = tmpSc.get(object);
|
|
18250
|
+
step += 1;
|
|
18251
|
+
if (typeof pos !== 'undefined') {
|
|
18252
|
+
if (pos === step) {
|
|
18253
|
+
throw new RangeError('Cyclic object value');
|
|
18254
|
+
} else {
|
|
18255
|
+
findFlag = true; // Break while
|
|
18256
|
+
}
|
|
18257
|
+
}
|
|
18258
|
+
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
|
18259
|
+
step = 0;
|
|
18260
|
+
}
|
|
18261
|
+
}
|
|
18262
|
+
|
|
18263
|
+
if (typeof filter === 'function') {
|
|
18264
|
+
obj = filter(prefix, obj);
|
|
18265
|
+
} else if (obj instanceof Date) {
|
|
18266
|
+
obj = serializeDate(obj);
|
|
18267
|
+
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
18268
|
+
obj = utils.maybeMap(obj, function (value) {
|
|
18269
|
+
if (value instanceof Date) {
|
|
18270
|
+
return serializeDate(value);
|
|
18271
|
+
}
|
|
18272
|
+
return value;
|
|
18273
|
+
});
|
|
18274
|
+
}
|
|
18275
|
+
|
|
18276
|
+
if (obj === null) {
|
|
18277
|
+
if (strictNullHandling) {
|
|
18278
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
18279
|
+
}
|
|
18280
|
+
|
|
18281
|
+
obj = '';
|
|
18282
|
+
}
|
|
18283
|
+
|
|
18284
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
18285
|
+
if (encoder) {
|
|
18286
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
18287
|
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
18288
|
+
}
|
|
18289
|
+
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
18290
|
+
}
|
|
18291
|
+
|
|
18292
|
+
var values = [];
|
|
18293
|
+
|
|
18294
|
+
if (typeof obj === 'undefined') {
|
|
18295
|
+
return values;
|
|
18296
|
+
}
|
|
18297
|
+
|
|
18298
|
+
var objKeys;
|
|
18299
|
+
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
18300
|
+
// we need to join elements in
|
|
18301
|
+
if (encodeValuesOnly && encoder) {
|
|
18302
|
+
obj = utils.maybeMap(obj, encoder);
|
|
18303
|
+
}
|
|
18304
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
|
18305
|
+
} else if (isArray(filter)) {
|
|
18306
|
+
objKeys = filter;
|
|
18307
|
+
} else {
|
|
18308
|
+
var keys = Object.keys(obj);
|
|
18309
|
+
objKeys = sort ? keys.sort(sort) : keys;
|
|
18310
|
+
}
|
|
18311
|
+
|
|
18312
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
|
|
18313
|
+
|
|
18314
|
+
for (var j = 0; j < objKeys.length; ++j) {
|
|
18315
|
+
var key = objKeys[j];
|
|
18316
|
+
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
|
18317
|
+
|
|
18318
|
+
if (skipNulls && value === null) {
|
|
18319
|
+
continue;
|
|
18320
|
+
}
|
|
18321
|
+
|
|
18322
|
+
var keyPrefix = isArray(obj)
|
|
18323
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
|
|
18324
|
+
: adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
18325
|
+
|
|
18326
|
+
sideChannel.set(object, step);
|
|
18327
|
+
var valueSideChannel = getSideChannel();
|
|
18328
|
+
valueSideChannel.set(sentinel, sideChannel);
|
|
18329
|
+
pushToArray(values, stringify(
|
|
18330
|
+
value,
|
|
18331
|
+
keyPrefix,
|
|
18332
|
+
generateArrayPrefix,
|
|
18333
|
+
commaRoundTrip,
|
|
18334
|
+
strictNullHandling,
|
|
18335
|
+
skipNulls,
|
|
18336
|
+
generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,
|
|
18337
|
+
filter,
|
|
18338
|
+
sort,
|
|
18339
|
+
allowDots,
|
|
18340
|
+
serializeDate,
|
|
18341
|
+
format,
|
|
18342
|
+
formatter,
|
|
18343
|
+
encodeValuesOnly,
|
|
18344
|
+
charset,
|
|
18345
|
+
valueSideChannel
|
|
18346
|
+
));
|
|
18347
|
+
}
|
|
18348
|
+
|
|
18349
|
+
return values;
|
|
18350
|
+
};
|
|
18351
|
+
|
|
18352
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
18353
|
+
if (!opts) {
|
|
18354
|
+
return defaults;
|
|
18355
|
+
}
|
|
18356
|
+
|
|
18357
|
+
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
18358
|
+
throw new TypeError('Encoder has to be a function.');
|
|
18359
|
+
}
|
|
18360
|
+
|
|
18361
|
+
var charset = opts.charset || defaults.charset;
|
|
18362
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
18363
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
18364
|
+
}
|
|
18365
|
+
|
|
18366
|
+
var format = formats['default'];
|
|
18367
|
+
if (typeof opts.format !== 'undefined') {
|
|
18368
|
+
if (!has.call(formats.formatters, opts.format)) {
|
|
18369
|
+
throw new TypeError('Unknown format option provided.');
|
|
18370
|
+
}
|
|
18371
|
+
format = opts.format;
|
|
18372
|
+
}
|
|
18373
|
+
var formatter = formats.formatters[format];
|
|
18374
|
+
|
|
18375
|
+
var filter = defaults.filter;
|
|
18376
|
+
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
|
|
18377
|
+
filter = opts.filter;
|
|
18378
|
+
}
|
|
18379
|
+
|
|
18380
|
+
return {
|
|
18381
|
+
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
18382
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
18383
|
+
charset: charset,
|
|
18384
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
18385
|
+
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
18386
|
+
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
18387
|
+
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
18388
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
18389
|
+
filter: filter,
|
|
18390
|
+
format: format,
|
|
18391
|
+
formatter: formatter,
|
|
18392
|
+
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
18393
|
+
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
18394
|
+
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
18395
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
18396
|
+
};
|
|
18397
|
+
};
|
|
18398
|
+
|
|
18399
|
+
module.exports = function (object, opts) {
|
|
18400
|
+
var obj = object;
|
|
18401
|
+
var options = normalizeStringifyOptions(opts);
|
|
18402
|
+
|
|
18403
|
+
var objKeys;
|
|
18404
|
+
var filter;
|
|
18405
|
+
|
|
18406
|
+
if (typeof options.filter === 'function') {
|
|
18407
|
+
filter = options.filter;
|
|
18408
|
+
obj = filter('', obj);
|
|
18409
|
+
} else if (isArray(options.filter)) {
|
|
18410
|
+
filter = options.filter;
|
|
18411
|
+
objKeys = filter;
|
|
18412
|
+
}
|
|
18413
|
+
|
|
18414
|
+
var keys = [];
|
|
18415
|
+
|
|
18416
|
+
if (typeof obj !== 'object' || obj === null) {
|
|
18417
|
+
return '';
|
|
18418
|
+
}
|
|
18419
|
+
|
|
18420
|
+
var arrayFormat;
|
|
18421
|
+
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
18422
|
+
arrayFormat = opts.arrayFormat;
|
|
18423
|
+
} else if (opts && 'indices' in opts) {
|
|
18424
|
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
18425
|
+
} else {
|
|
18426
|
+
arrayFormat = 'indices';
|
|
18427
|
+
}
|
|
18428
|
+
|
|
18429
|
+
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
18430
|
+
if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
18431
|
+
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
18432
|
+
}
|
|
18433
|
+
var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
|
|
18434
|
+
|
|
18435
|
+
if (!objKeys) {
|
|
18436
|
+
objKeys = Object.keys(obj);
|
|
18437
|
+
}
|
|
18438
|
+
|
|
18439
|
+
if (options.sort) {
|
|
18440
|
+
objKeys.sort(options.sort);
|
|
18441
|
+
}
|
|
18442
|
+
|
|
18443
|
+
var sideChannel = getSideChannel();
|
|
18444
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
18445
|
+
var key = objKeys[i];
|
|
18446
|
+
|
|
18447
|
+
if (options.skipNulls && obj[key] === null) {
|
|
18448
|
+
continue;
|
|
18449
|
+
}
|
|
18450
|
+
pushToArray(keys, stringify(
|
|
18451
|
+
obj[key],
|
|
18452
|
+
key,
|
|
18453
|
+
generateArrayPrefix,
|
|
18454
|
+
commaRoundTrip,
|
|
18455
|
+
options.strictNullHandling,
|
|
18456
|
+
options.skipNulls,
|
|
18457
|
+
options.encode ? options.encoder : null,
|
|
18458
|
+
options.filter,
|
|
18459
|
+
options.sort,
|
|
18460
|
+
options.allowDots,
|
|
18461
|
+
options.serializeDate,
|
|
18462
|
+
options.format,
|
|
18463
|
+
options.formatter,
|
|
18464
|
+
options.encodeValuesOnly,
|
|
18465
|
+
options.charset,
|
|
18466
|
+
sideChannel
|
|
18467
|
+
));
|
|
18468
|
+
}
|
|
18469
|
+
|
|
18470
|
+
var joined = keys.join(options.delimiter);
|
|
18471
|
+
var prefix = options.addQueryPrefix === true ? '?' : '';
|
|
18472
|
+
|
|
18473
|
+
if (options.charsetSentinel) {
|
|
18474
|
+
if (options.charset === 'iso-8859-1') {
|
|
18475
|
+
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
|
18476
|
+
prefix += 'utf8=%26%2310003%3B&';
|
|
18477
|
+
} else {
|
|
18478
|
+
// encodeURIComponent('✓')
|
|
18479
|
+
prefix += 'utf8=%E2%9C%93&';
|
|
18480
|
+
}
|
|
18481
|
+
}
|
|
18482
|
+
|
|
18483
|
+
return joined.length > 0 ? prefix + joined : '';
|
|
18484
|
+
};
|
|
18485
|
+
|
|
18486
|
+
|
|
18487
|
+
/***/ }),
|
|
18488
|
+
|
|
18489
|
+
/***/ "../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js":
|
|
18490
|
+
/*!************************************************************************!*\
|
|
18491
|
+
!*** ../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js ***!
|
|
18492
|
+
\************************************************************************/
|
|
18493
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
18494
|
+
|
|
18495
|
+
"use strict";
|
|
18496
|
+
|
|
18497
|
+
|
|
18498
|
+
var formats = __webpack_require__(/*! ./formats */ "../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js");
|
|
18499
|
+
|
|
18500
|
+
var has = Object.prototype.hasOwnProperty;
|
|
18501
|
+
var isArray = Array.isArray;
|
|
18502
|
+
|
|
18503
|
+
var hexTable = (function () {
|
|
18504
|
+
var array = [];
|
|
18505
|
+
for (var i = 0; i < 256; ++i) {
|
|
18506
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
18507
|
+
}
|
|
18508
|
+
|
|
18509
|
+
return array;
|
|
18510
|
+
}());
|
|
18511
|
+
|
|
18512
|
+
var compactQueue = function compactQueue(queue) {
|
|
18513
|
+
while (queue.length > 1) {
|
|
18514
|
+
var item = queue.pop();
|
|
18515
|
+
var obj = item.obj[item.prop];
|
|
18516
|
+
|
|
18517
|
+
if (isArray(obj)) {
|
|
18518
|
+
var compacted = [];
|
|
18519
|
+
|
|
18520
|
+
for (var j = 0; j < obj.length; ++j) {
|
|
18521
|
+
if (typeof obj[j] !== 'undefined') {
|
|
18522
|
+
compacted.push(obj[j]);
|
|
18523
|
+
}
|
|
18524
|
+
}
|
|
18525
|
+
|
|
18526
|
+
item.obj[item.prop] = compacted;
|
|
18527
|
+
}
|
|
18528
|
+
}
|
|
18529
|
+
};
|
|
18530
|
+
|
|
18531
|
+
var arrayToObject = function arrayToObject(source, options) {
|
|
18532
|
+
var obj = options && options.plainObjects ? Object.create(null) : {};
|
|
18533
|
+
for (var i = 0; i < source.length; ++i) {
|
|
18534
|
+
if (typeof source[i] !== 'undefined') {
|
|
18535
|
+
obj[i] = source[i];
|
|
18536
|
+
}
|
|
18537
|
+
}
|
|
18538
|
+
|
|
18539
|
+
return obj;
|
|
18540
|
+
};
|
|
18541
|
+
|
|
18542
|
+
var merge = function merge(target, source, options) {
|
|
18543
|
+
/* eslint no-param-reassign: 0 */
|
|
18544
|
+
if (!source) {
|
|
18545
|
+
return target;
|
|
18546
|
+
}
|
|
18547
|
+
|
|
18548
|
+
if (typeof source !== 'object') {
|
|
18549
|
+
if (isArray(target)) {
|
|
18550
|
+
target.push(source);
|
|
18551
|
+
} else if (target && typeof target === 'object') {
|
|
18552
|
+
if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
|
|
18553
|
+
target[source] = true;
|
|
18554
|
+
}
|
|
18555
|
+
} else {
|
|
18556
|
+
return [target, source];
|
|
18557
|
+
}
|
|
18558
|
+
|
|
18559
|
+
return target;
|
|
18560
|
+
}
|
|
18561
|
+
|
|
18562
|
+
if (!target || typeof target !== 'object') {
|
|
18563
|
+
return [target].concat(source);
|
|
18564
|
+
}
|
|
18565
|
+
|
|
18566
|
+
var mergeTarget = target;
|
|
18567
|
+
if (isArray(target) && !isArray(source)) {
|
|
18568
|
+
mergeTarget = arrayToObject(target, options);
|
|
18569
|
+
}
|
|
18570
|
+
|
|
18571
|
+
if (isArray(target) && isArray(source)) {
|
|
18572
|
+
source.forEach(function (item, i) {
|
|
18573
|
+
if (has.call(target, i)) {
|
|
18574
|
+
var targetItem = target[i];
|
|
18575
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
18576
|
+
target[i] = merge(targetItem, item, options);
|
|
18577
|
+
} else {
|
|
18578
|
+
target.push(item);
|
|
18579
|
+
}
|
|
18580
|
+
} else {
|
|
18581
|
+
target[i] = item;
|
|
18582
|
+
}
|
|
18583
|
+
});
|
|
18584
|
+
return target;
|
|
18585
|
+
}
|
|
18586
|
+
|
|
18587
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
18588
|
+
var value = source[key];
|
|
18589
|
+
|
|
18590
|
+
if (has.call(acc, key)) {
|
|
18591
|
+
acc[key] = merge(acc[key], value, options);
|
|
18592
|
+
} else {
|
|
18593
|
+
acc[key] = value;
|
|
18594
|
+
}
|
|
18595
|
+
return acc;
|
|
18596
|
+
}, mergeTarget);
|
|
18597
|
+
};
|
|
18598
|
+
|
|
18599
|
+
var assign = function assignSingleSource(target, source) {
|
|
18600
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
18601
|
+
acc[key] = source[key];
|
|
18602
|
+
return acc;
|
|
18603
|
+
}, target);
|
|
18604
|
+
};
|
|
18605
|
+
|
|
18606
|
+
var decode = function (str, decoder, charset) {
|
|
18607
|
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
18608
|
+
if (charset === 'iso-8859-1') {
|
|
18609
|
+
// unescape never throws, no try...catch needed:
|
|
18610
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
18611
|
+
}
|
|
18612
|
+
// utf-8
|
|
18613
|
+
try {
|
|
18614
|
+
return decodeURIComponent(strWithoutPlus);
|
|
18615
|
+
} catch (e) {
|
|
18616
|
+
return strWithoutPlus;
|
|
18617
|
+
}
|
|
18618
|
+
};
|
|
18619
|
+
|
|
18620
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
18621
|
+
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
18622
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
|
18623
|
+
if (str.length === 0) {
|
|
18624
|
+
return str;
|
|
18625
|
+
}
|
|
18626
|
+
|
|
18627
|
+
var string = str;
|
|
18628
|
+
if (typeof str === 'symbol') {
|
|
18629
|
+
string = Symbol.prototype.toString.call(str);
|
|
18630
|
+
} else if (typeof str !== 'string') {
|
|
18631
|
+
string = String(str);
|
|
18632
|
+
}
|
|
18633
|
+
|
|
18634
|
+
if (charset === 'iso-8859-1') {
|
|
18635
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
18636
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
18637
|
+
});
|
|
18638
|
+
}
|
|
18639
|
+
|
|
18640
|
+
var out = '';
|
|
18641
|
+
for (var i = 0; i < string.length; ++i) {
|
|
18642
|
+
var c = string.charCodeAt(i);
|
|
18643
|
+
|
|
18644
|
+
if (
|
|
18645
|
+
c === 0x2D // -
|
|
18646
|
+
|| c === 0x2E // .
|
|
18647
|
+
|| c === 0x5F // _
|
|
18648
|
+
|| c === 0x7E // ~
|
|
18649
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
18650
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
18651
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
18652
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
18653
|
+
) {
|
|
18654
|
+
out += string.charAt(i);
|
|
18655
|
+
continue;
|
|
18656
|
+
}
|
|
18657
|
+
|
|
18658
|
+
if (c < 0x80) {
|
|
18659
|
+
out = out + hexTable[c];
|
|
18660
|
+
continue;
|
|
18661
|
+
}
|
|
18662
|
+
|
|
18663
|
+
if (c < 0x800) {
|
|
18664
|
+
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
18665
|
+
continue;
|
|
18666
|
+
}
|
|
18667
|
+
|
|
18668
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
18669
|
+
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
|
18670
|
+
continue;
|
|
18671
|
+
}
|
|
18672
|
+
|
|
18673
|
+
i += 1;
|
|
18674
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
18675
|
+
/* eslint operator-linebreak: [2, "before"] */
|
|
18676
|
+
out += hexTable[0xF0 | (c >> 18)]
|
|
18677
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
18678
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
18679
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
18680
|
+
}
|
|
18681
|
+
|
|
18682
|
+
return out;
|
|
18683
|
+
};
|
|
18684
|
+
|
|
18685
|
+
var compact = function compact(value) {
|
|
18686
|
+
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
18687
|
+
var refs = [];
|
|
18688
|
+
|
|
18689
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
18690
|
+
var item = queue[i];
|
|
18691
|
+
var obj = item.obj[item.prop];
|
|
18692
|
+
|
|
18693
|
+
var keys = Object.keys(obj);
|
|
18694
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
18695
|
+
var key = keys[j];
|
|
18696
|
+
var val = obj[key];
|
|
18697
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
18698
|
+
queue.push({ obj: obj, prop: key });
|
|
18699
|
+
refs.push(val);
|
|
18700
|
+
}
|
|
18701
|
+
}
|
|
18702
|
+
}
|
|
18703
|
+
|
|
18704
|
+
compactQueue(queue);
|
|
18705
|
+
|
|
18706
|
+
return value;
|
|
18707
|
+
};
|
|
18708
|
+
|
|
18709
|
+
var isRegExp = function isRegExp(obj) {
|
|
18710
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
18711
|
+
};
|
|
18712
|
+
|
|
18713
|
+
var isBuffer = function isBuffer(obj) {
|
|
18714
|
+
if (!obj || typeof obj !== 'object') {
|
|
18715
|
+
return false;
|
|
18716
|
+
}
|
|
18717
|
+
|
|
18718
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
18719
|
+
};
|
|
18720
|
+
|
|
18721
|
+
var combine = function combine(a, b) {
|
|
18722
|
+
return [].concat(a, b);
|
|
18723
|
+
};
|
|
18724
|
+
|
|
18725
|
+
var maybeMap = function maybeMap(val, fn) {
|
|
18726
|
+
if (isArray(val)) {
|
|
18727
|
+
var mapped = [];
|
|
18728
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
18729
|
+
mapped.push(fn(val[i]));
|
|
18730
|
+
}
|
|
18731
|
+
return mapped;
|
|
18732
|
+
}
|
|
18733
|
+
return fn(val);
|
|
18734
|
+
};
|
|
18735
|
+
|
|
18736
|
+
module.exports = {
|
|
18737
|
+
arrayToObject: arrayToObject,
|
|
18738
|
+
assign: assign,
|
|
18739
|
+
combine: combine,
|
|
18740
|
+
compact: compact,
|
|
18741
|
+
decode: decode,
|
|
18742
|
+
encode: encode,
|
|
18743
|
+
isBuffer: isBuffer,
|
|
18744
|
+
isRegExp: isRegExp,
|
|
18745
|
+
maybeMap: maybeMap,
|
|
18746
|
+
merge: merge
|
|
18747
|
+
};
|
|
18748
|
+
|
|
18749
|
+
|
|
18750
|
+
/***/ }),
|
|
18751
|
+
|
|
18752
|
+
/***/ "../node_modules/function-bind/implementation.js":
|
|
18753
|
+
/*!*******************************************************!*\
|
|
18754
|
+
!*** ../node_modules/function-bind/implementation.js ***!
|
|
18755
|
+
\*******************************************************/
|
|
18756
|
+
/***/ ((module) => {
|
|
18757
|
+
|
|
18758
|
+
"use strict";
|
|
18759
|
+
|
|
18760
|
+
|
|
18761
|
+
/* eslint no-invalid-this: 1 */
|
|
18762
|
+
|
|
18763
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
18764
|
+
var toStr = Object.prototype.toString;
|
|
18765
|
+
var max = Math.max;
|
|
18766
|
+
var funcType = '[object Function]';
|
|
18767
|
+
|
|
18768
|
+
var concatty = function concatty(a, b) {
|
|
18769
|
+
var arr = [];
|
|
18770
|
+
|
|
18771
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
18772
|
+
arr[i] = a[i];
|
|
18773
|
+
}
|
|
18774
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
18775
|
+
arr[j + a.length] = b[j];
|
|
18776
|
+
}
|
|
18777
|
+
|
|
18778
|
+
return arr;
|
|
18779
|
+
};
|
|
18780
|
+
|
|
18781
|
+
var slicy = function slicy(arrLike, offset) {
|
|
18782
|
+
var arr = [];
|
|
18783
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
18784
|
+
arr[j] = arrLike[i];
|
|
18785
|
+
}
|
|
18786
|
+
return arr;
|
|
18787
|
+
};
|
|
18788
|
+
|
|
18789
|
+
var joiny = function (arr, joiner) {
|
|
18790
|
+
var str = '';
|
|
18791
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
18792
|
+
str += arr[i];
|
|
18793
|
+
if (i + 1 < arr.length) {
|
|
18794
|
+
str += joiner;
|
|
18795
|
+
}
|
|
18796
|
+
}
|
|
18797
|
+
return str;
|
|
18798
|
+
};
|
|
18799
|
+
|
|
18800
|
+
module.exports = function bind(that) {
|
|
18801
|
+
var target = this;
|
|
18802
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
18803
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
18804
|
+
}
|
|
18805
|
+
var args = slicy(arguments, 1);
|
|
18806
|
+
|
|
18807
|
+
var bound;
|
|
18808
|
+
var binder = function () {
|
|
18809
|
+
if (this instanceof bound) {
|
|
18810
|
+
var result = target.apply(
|
|
18811
|
+
this,
|
|
18812
|
+
concatty(args, arguments)
|
|
18813
|
+
);
|
|
18814
|
+
if (Object(result) === result) {
|
|
18815
|
+
return result;
|
|
18816
|
+
}
|
|
18817
|
+
return this;
|
|
18818
|
+
}
|
|
18819
|
+
return target.apply(
|
|
18820
|
+
that,
|
|
18821
|
+
concatty(args, arguments)
|
|
18822
|
+
);
|
|
18823
|
+
|
|
18824
|
+
};
|
|
18825
|
+
|
|
18826
|
+
var boundLength = max(0, target.length - args.length);
|
|
18827
|
+
var boundArgs = [];
|
|
18828
|
+
for (var i = 0; i < boundLength; i++) {
|
|
18829
|
+
boundArgs[i] = '$' + i;
|
|
18830
|
+
}
|
|
18831
|
+
|
|
18832
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
18833
|
+
|
|
18834
|
+
if (target.prototype) {
|
|
18835
|
+
var Empty = function Empty() {};
|
|
18836
|
+
Empty.prototype = target.prototype;
|
|
18837
|
+
bound.prototype = new Empty();
|
|
18838
|
+
Empty.prototype = null;
|
|
18839
|
+
}
|
|
18840
|
+
|
|
18841
|
+
return bound;
|
|
18842
|
+
};
|
|
18843
|
+
|
|
18844
|
+
|
|
18845
|
+
/***/ }),
|
|
18846
|
+
|
|
18847
|
+
/***/ "../node_modules/function-bind/index.js":
|
|
18848
|
+
/*!**********************************************!*\
|
|
18849
|
+
!*** ../node_modules/function-bind/index.js ***!
|
|
18850
|
+
\**********************************************/
|
|
18851
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
18852
|
+
|
|
18853
|
+
"use strict";
|
|
18854
|
+
|
|
18855
|
+
|
|
18856
|
+
var implementation = __webpack_require__(/*! ./implementation */ "../node_modules/function-bind/implementation.js");
|
|
18857
|
+
|
|
18858
|
+
module.exports = Function.prototype.bind || implementation;
|
|
18859
|
+
|
|
18860
|
+
|
|
18861
|
+
/***/ }),
|
|
18862
|
+
|
|
18863
|
+
/***/ "../node_modules/get-intrinsic/index.js":
|
|
18864
|
+
/*!**********************************************!*\
|
|
18865
|
+
!*** ../node_modules/get-intrinsic/index.js ***!
|
|
18866
|
+
\**********************************************/
|
|
18867
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
18868
|
+
|
|
18869
|
+
"use strict";
|
|
18870
|
+
|
|
18871
|
+
|
|
18872
|
+
var undefined;
|
|
18873
|
+
|
|
18874
|
+
var $SyntaxError = SyntaxError;
|
|
18875
|
+
var $Function = Function;
|
|
18876
|
+
var $TypeError = TypeError;
|
|
18877
|
+
|
|
18878
|
+
// eslint-disable-next-line consistent-return
|
|
18879
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
18880
|
+
try {
|
|
18881
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
18882
|
+
} catch (e) {}
|
|
18883
|
+
};
|
|
18884
|
+
|
|
18885
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
18886
|
+
if ($gOPD) {
|
|
18887
|
+
try {
|
|
18888
|
+
$gOPD({}, '');
|
|
18889
|
+
} catch (e) {
|
|
18890
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
18891
|
+
}
|
|
18892
|
+
}
|
|
18893
|
+
|
|
18894
|
+
var throwTypeError = function () {
|
|
18895
|
+
throw new $TypeError();
|
|
18896
|
+
};
|
|
18897
|
+
var ThrowTypeError = $gOPD
|
|
18898
|
+
? (function () {
|
|
18899
|
+
try {
|
|
18900
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
18901
|
+
arguments.callee; // IE 8 does not throw here
|
|
18902
|
+
return throwTypeError;
|
|
18903
|
+
} catch (calleeThrows) {
|
|
18904
|
+
try {
|
|
18905
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
18906
|
+
return $gOPD(arguments, 'callee').get;
|
|
18907
|
+
} catch (gOPDthrows) {
|
|
18908
|
+
return throwTypeError;
|
|
18909
|
+
}
|
|
18910
|
+
}
|
|
18911
|
+
}())
|
|
18912
|
+
: throwTypeError;
|
|
18913
|
+
|
|
18914
|
+
var hasSymbols = __webpack_require__(/*! has-symbols */ "../node_modules/has-symbols/index.js")();
|
|
18915
|
+
var hasProto = __webpack_require__(/*! has-proto */ "../node_modules/has-proto/index.js")();
|
|
18916
|
+
|
|
18917
|
+
var getProto = Object.getPrototypeOf || (
|
|
18918
|
+
hasProto
|
|
18919
|
+
? function (x) { return x.__proto__; } // eslint-disable-line no-proto
|
|
18920
|
+
: null
|
|
18921
|
+
);
|
|
18922
|
+
|
|
18923
|
+
var needsEval = {};
|
|
18924
|
+
|
|
18925
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
18926
|
+
|
|
18927
|
+
var INTRINSICS = {
|
|
18928
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
18929
|
+
'%Array%': Array,
|
|
18930
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
18931
|
+
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
18932
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
18933
|
+
'%AsyncFunction%': needsEval,
|
|
18934
|
+
'%AsyncGenerator%': needsEval,
|
|
18935
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
18936
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
18937
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
18938
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
18939
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
|
|
18940
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
|
|
18941
|
+
'%Boolean%': Boolean,
|
|
18942
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
18943
|
+
'%Date%': Date,
|
|
18944
|
+
'%decodeURI%': decodeURI,
|
|
18945
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
18946
|
+
'%encodeURI%': encodeURI,
|
|
18947
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
18948
|
+
'%Error%': Error,
|
|
18949
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
18950
|
+
'%EvalError%': EvalError,
|
|
18951
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
18952
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
18953
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
18954
|
+
'%Function%': $Function,
|
|
18955
|
+
'%GeneratorFunction%': needsEval,
|
|
18956
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
18957
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
18958
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
18959
|
+
'%isFinite%': isFinite,
|
|
18960
|
+
'%isNaN%': isNaN,
|
|
18961
|
+
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
18962
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
18963
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
18964
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
18965
|
+
'%Math%': Math,
|
|
18966
|
+
'%Number%': Number,
|
|
18967
|
+
'%Object%': Object,
|
|
18968
|
+
'%parseFloat%': parseFloat,
|
|
18969
|
+
'%parseInt%': parseInt,
|
|
18970
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
18971
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
18972
|
+
'%RangeError%': RangeError,
|
|
18973
|
+
'%ReferenceError%': ReferenceError,
|
|
18974
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
18975
|
+
'%RegExp%': RegExp,
|
|
18976
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
18977
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
18978
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
18979
|
+
'%String%': String,
|
|
18980
|
+
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
|
18981
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
18982
|
+
'%SyntaxError%': $SyntaxError,
|
|
18983
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
18984
|
+
'%TypedArray%': TypedArray,
|
|
18985
|
+
'%TypeError%': $TypeError,
|
|
18986
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
18987
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
18988
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
18989
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
18990
|
+
'%URIError%': URIError,
|
|
18991
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
18992
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
18993
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
18994
|
+
};
|
|
18995
|
+
|
|
18996
|
+
if (getProto) {
|
|
18997
|
+
try {
|
|
18998
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
18999
|
+
} catch (e) {
|
|
19000
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
19001
|
+
var errorProto = getProto(getProto(e));
|
|
19002
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
19003
|
+
}
|
|
19004
|
+
}
|
|
19005
|
+
|
|
19006
|
+
var doEval = function doEval(name) {
|
|
19007
|
+
var value;
|
|
19008
|
+
if (name === '%AsyncFunction%') {
|
|
19009
|
+
value = getEvalledConstructor('async function () {}');
|
|
19010
|
+
} else if (name === '%GeneratorFunction%') {
|
|
19011
|
+
value = getEvalledConstructor('function* () {}');
|
|
19012
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
19013
|
+
value = getEvalledConstructor('async function* () {}');
|
|
19014
|
+
} else if (name === '%AsyncGenerator%') {
|
|
19015
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
19016
|
+
if (fn) {
|
|
19017
|
+
value = fn.prototype;
|
|
19018
|
+
}
|
|
19019
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
19020
|
+
var gen = doEval('%AsyncGenerator%');
|
|
19021
|
+
if (gen && getProto) {
|
|
19022
|
+
value = getProto(gen.prototype);
|
|
19023
|
+
}
|
|
19024
|
+
}
|
|
19025
|
+
|
|
19026
|
+
INTRINSICS[name] = value;
|
|
19027
|
+
|
|
19028
|
+
return value;
|
|
19029
|
+
};
|
|
19030
|
+
|
|
19031
|
+
var LEGACY_ALIASES = {
|
|
19032
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
19033
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
19034
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
19035
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
19036
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
19037
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
19038
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
19039
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
19040
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
19041
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
19042
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
19043
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
19044
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
19045
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
19046
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
19047
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
19048
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
19049
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
19050
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
19051
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
19052
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
19053
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
19054
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
19055
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
19056
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
19057
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
19058
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
19059
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
19060
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
19061
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
19062
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
19063
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
19064
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
19065
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
19066
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
19067
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
19068
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
19069
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
19070
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
19071
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
19072
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
19073
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
19074
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
19075
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
19076
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
19077
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
19078
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
19079
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
19080
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
19081
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
19082
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
19083
|
+
};
|
|
19084
|
+
|
|
19085
|
+
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
19086
|
+
var hasOwn = __webpack_require__(/*! has */ "../node_modules/has/src/index.js");
|
|
19087
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
19088
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
19089
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
19090
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
19091
|
+
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
19092
|
+
|
|
19093
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
19094
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
19095
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
19096
|
+
var stringToPath = function stringToPath(string) {
|
|
19097
|
+
var first = $strSlice(string, 0, 1);
|
|
19098
|
+
var last = $strSlice(string, -1);
|
|
19099
|
+
if (first === '%' && last !== '%') {
|
|
19100
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
19101
|
+
} else if (last === '%' && first !== '%') {
|
|
19102
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
19103
|
+
}
|
|
19104
|
+
var result = [];
|
|
19105
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
19106
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
19107
|
+
});
|
|
19108
|
+
return result;
|
|
19109
|
+
};
|
|
19110
|
+
/* end adaptation */
|
|
19111
|
+
|
|
19112
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
19113
|
+
var intrinsicName = name;
|
|
19114
|
+
var alias;
|
|
19115
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
19116
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
19117
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
19118
|
+
}
|
|
19119
|
+
|
|
19120
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
19121
|
+
var value = INTRINSICS[intrinsicName];
|
|
19122
|
+
if (value === needsEval) {
|
|
19123
|
+
value = doEval(intrinsicName);
|
|
19124
|
+
}
|
|
19125
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
19126
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
19127
|
+
}
|
|
19128
|
+
|
|
19129
|
+
return {
|
|
19130
|
+
alias: alias,
|
|
19131
|
+
name: intrinsicName,
|
|
19132
|
+
value: value
|
|
19133
|
+
};
|
|
19134
|
+
}
|
|
19135
|
+
|
|
19136
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
19137
|
+
};
|
|
19138
|
+
|
|
19139
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
19140
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
19141
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
19142
|
+
}
|
|
19143
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
19144
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
19145
|
+
}
|
|
19146
|
+
|
|
19147
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
19148
|
+
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
19149
|
+
}
|
|
19150
|
+
var parts = stringToPath(name);
|
|
19151
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
19152
|
+
|
|
19153
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
19154
|
+
var intrinsicRealName = intrinsic.name;
|
|
19155
|
+
var value = intrinsic.value;
|
|
19156
|
+
var skipFurtherCaching = false;
|
|
19157
|
+
|
|
19158
|
+
var alias = intrinsic.alias;
|
|
19159
|
+
if (alias) {
|
|
19160
|
+
intrinsicBaseName = alias[0];
|
|
19161
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
19162
|
+
}
|
|
19163
|
+
|
|
19164
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
19165
|
+
var part = parts[i];
|
|
19166
|
+
var first = $strSlice(part, 0, 1);
|
|
19167
|
+
var last = $strSlice(part, -1);
|
|
19168
|
+
if (
|
|
19169
|
+
(
|
|
19170
|
+
(first === '"' || first === "'" || first === '`')
|
|
19171
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
19172
|
+
)
|
|
19173
|
+
&& first !== last
|
|
19174
|
+
) {
|
|
19175
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
19176
|
+
}
|
|
19177
|
+
if (part === 'constructor' || !isOwn) {
|
|
19178
|
+
skipFurtherCaching = true;
|
|
19179
|
+
}
|
|
19180
|
+
|
|
19181
|
+
intrinsicBaseName += '.' + part;
|
|
19182
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
19183
|
+
|
|
19184
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
19185
|
+
value = INTRINSICS[intrinsicRealName];
|
|
19186
|
+
} else if (value != null) {
|
|
19187
|
+
if (!(part in value)) {
|
|
19188
|
+
if (!allowMissing) {
|
|
19189
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
19190
|
+
}
|
|
19191
|
+
return void undefined;
|
|
19192
|
+
}
|
|
19193
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
19194
|
+
var desc = $gOPD(value, part);
|
|
19195
|
+
isOwn = !!desc;
|
|
19196
|
+
|
|
19197
|
+
// By convention, when a data property is converted to an accessor
|
|
19198
|
+
// property to emulate a data property that does not suffer from
|
|
19199
|
+
// the override mistake, that accessor's getter is marked with
|
|
19200
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
19201
|
+
// uphold the illusion by pretending to see that original data
|
|
19202
|
+
// property, i.e., returning the value rather than the getter
|
|
19203
|
+
// itself.
|
|
19204
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
19205
|
+
value = desc.get;
|
|
19206
|
+
} else {
|
|
19207
|
+
value = value[part];
|
|
19208
|
+
}
|
|
19209
|
+
} else {
|
|
19210
|
+
isOwn = hasOwn(value, part);
|
|
19211
|
+
value = value[part];
|
|
19212
|
+
}
|
|
19213
|
+
|
|
19214
|
+
if (isOwn && !skipFurtherCaching) {
|
|
19215
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
19216
|
+
}
|
|
19217
|
+
}
|
|
19218
|
+
}
|
|
19219
|
+
return value;
|
|
19220
|
+
};
|
|
19221
|
+
|
|
19222
|
+
|
|
19223
|
+
/***/ }),
|
|
19224
|
+
|
|
19225
|
+
/***/ "../node_modules/has-proto/index.js":
|
|
19226
|
+
/*!******************************************!*\
|
|
19227
|
+
!*** ../node_modules/has-proto/index.js ***!
|
|
19228
|
+
\******************************************/
|
|
19229
|
+
/***/ ((module) => {
|
|
19230
|
+
|
|
19231
|
+
"use strict";
|
|
19232
|
+
|
|
19233
|
+
|
|
19234
|
+
var test = {
|
|
19235
|
+
foo: {}
|
|
19236
|
+
};
|
|
19237
|
+
|
|
19238
|
+
var $Object = Object;
|
|
19239
|
+
|
|
19240
|
+
module.exports = function hasProto() {
|
|
19241
|
+
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
19242
|
+
};
|
|
19243
|
+
|
|
19244
|
+
|
|
19245
|
+
/***/ }),
|
|
19246
|
+
|
|
19247
|
+
/***/ "../node_modules/has-symbols/index.js":
|
|
19248
|
+
/*!********************************************!*\
|
|
19249
|
+
!*** ../node_modules/has-symbols/index.js ***!
|
|
19250
|
+
\********************************************/
|
|
19251
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
19252
|
+
|
|
19253
|
+
"use strict";
|
|
19254
|
+
|
|
19255
|
+
|
|
19256
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
19257
|
+
var hasSymbolSham = __webpack_require__(/*! ./shams */ "../node_modules/has-symbols/shams.js");
|
|
19258
|
+
|
|
19259
|
+
module.exports = function hasNativeSymbols() {
|
|
19260
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
19261
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
19262
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
19263
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
19264
|
+
|
|
19265
|
+
return hasSymbolSham();
|
|
19266
|
+
};
|
|
19267
|
+
|
|
19268
|
+
|
|
19269
|
+
/***/ }),
|
|
19270
|
+
|
|
19271
|
+
/***/ "../node_modules/has-symbols/shams.js":
|
|
19272
|
+
/*!********************************************!*\
|
|
19273
|
+
!*** ../node_modules/has-symbols/shams.js ***!
|
|
19274
|
+
\********************************************/
|
|
19275
|
+
/***/ ((module) => {
|
|
19276
|
+
|
|
19277
|
+
"use strict";
|
|
19278
|
+
|
|
19279
|
+
|
|
19280
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
19281
|
+
module.exports = function hasSymbols() {
|
|
19282
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
19283
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
19284
|
+
|
|
19285
|
+
var obj = {};
|
|
19286
|
+
var sym = Symbol('test');
|
|
19287
|
+
var symObj = Object(sym);
|
|
19288
|
+
if (typeof sym === 'string') { return false; }
|
|
19289
|
+
|
|
19290
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
19291
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
19292
|
+
|
|
19293
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
19294
|
+
// if (sym instanceof Symbol) { return false; }
|
|
19295
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
19296
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
19297
|
+
|
|
19298
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
19299
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
19300
|
+
|
|
19301
|
+
var symVal = 42;
|
|
19302
|
+
obj[sym] = symVal;
|
|
19303
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
19304
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
19305
|
+
|
|
19306
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
19307
|
+
|
|
19308
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
19309
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
19310
|
+
|
|
19311
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
19312
|
+
|
|
19313
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
19314
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
19315
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
19316
|
+
}
|
|
19317
|
+
|
|
19318
|
+
return true;
|
|
19319
|
+
};
|
|
19320
|
+
|
|
19321
|
+
|
|
19322
|
+
/***/ }),
|
|
19323
|
+
|
|
19324
|
+
/***/ "../node_modules/has/src/index.js":
|
|
19325
|
+
/*!****************************************!*\
|
|
19326
|
+
!*** ../node_modules/has/src/index.js ***!
|
|
19327
|
+
\****************************************/
|
|
19328
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
19329
|
+
|
|
19330
|
+
"use strict";
|
|
19331
|
+
|
|
19332
|
+
|
|
19333
|
+
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
19334
|
+
|
|
19335
|
+
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
19336
|
+
|
|
19337
|
+
|
|
19338
|
+
/***/ }),
|
|
19339
|
+
|
|
19340
|
+
/***/ "../node_modules/lodash.isplainobject/index.js":
|
|
19341
|
+
/*!*****************************************************!*\
|
|
19342
|
+
!*** ../node_modules/lodash.isplainobject/index.js ***!
|
|
19343
|
+
\*****************************************************/
|
|
19344
|
+
/***/ ((module) => {
|
|
19345
|
+
|
|
19346
|
+
/**
|
|
19347
|
+
* lodash (Custom Build) <https://lodash.com/>
|
|
19348
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
19349
|
+
* Copyright jQuery Foundation and other contributors <https://jquery.org/>
|
|
19350
|
+
* Released under MIT license <https://lodash.com/license>
|
|
19351
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
19352
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
19353
|
+
*/
|
|
19354
|
+
|
|
19355
|
+
/** `Object#toString` result references. */
|
|
19356
|
+
var objectTag = '[object Object]';
|
|
19357
|
+
|
|
19358
|
+
/**
|
|
19359
|
+
* Checks if `value` is a host object in IE < 9.
|
|
19360
|
+
*
|
|
19361
|
+
* @private
|
|
19362
|
+
* @param {*} value The value to check.
|
|
19363
|
+
* @returns {boolean} Returns `true` if `value` is a host object, else `false`.
|
|
19364
|
+
*/
|
|
19365
|
+
function isHostObject(value) {
|
|
19366
|
+
// Many host objects are `Object` objects that can coerce to strings
|
|
19367
|
+
// despite having improperly defined `toString` methods.
|
|
19368
|
+
var result = false;
|
|
19369
|
+
if (value != null && typeof value.toString != 'function') {
|
|
19370
|
+
try {
|
|
19371
|
+
result = !!(value + '');
|
|
19372
|
+
} catch (e) {}
|
|
19373
|
+
}
|
|
19374
|
+
return result;
|
|
19375
|
+
}
|
|
19376
|
+
|
|
19377
|
+
/**
|
|
19378
|
+
* Creates a unary function that invokes `func` with its argument transformed.
|
|
19379
|
+
*
|
|
19380
|
+
* @private
|
|
19381
|
+
* @param {Function} func The function to wrap.
|
|
19382
|
+
* @param {Function} transform The argument transform.
|
|
19383
|
+
* @returns {Function} Returns the new function.
|
|
19384
|
+
*/
|
|
19385
|
+
function overArg(func, transform) {
|
|
19386
|
+
return function(arg) {
|
|
19387
|
+
return func(transform(arg));
|
|
19388
|
+
};
|
|
19389
|
+
}
|
|
19390
|
+
|
|
19391
|
+
/** Used for built-in method references. */
|
|
19392
|
+
var funcProto = Function.prototype,
|
|
19393
|
+
objectProto = Object.prototype;
|
|
19394
|
+
|
|
19395
|
+
/** Used to resolve the decompiled source of functions. */
|
|
19396
|
+
var funcToString = funcProto.toString;
|
|
19397
|
+
|
|
19398
|
+
/** Used to check objects for own properties. */
|
|
19399
|
+
var hasOwnProperty = objectProto.hasOwnProperty;
|
|
19400
|
+
|
|
19401
|
+
/** Used to infer the `Object` constructor. */
|
|
19402
|
+
var objectCtorString = funcToString.call(Object);
|
|
19403
|
+
|
|
19404
|
+
/**
|
|
19405
|
+
* Used to resolve the
|
|
19406
|
+
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
|
|
19407
|
+
* of values.
|
|
19408
|
+
*/
|
|
19409
|
+
var objectToString = objectProto.toString;
|
|
19410
|
+
|
|
19411
|
+
/** Built-in value references. */
|
|
19412
|
+
var getPrototype = overArg(Object.getPrototypeOf, Object);
|
|
19413
|
+
|
|
19414
|
+
/**
|
|
19415
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
19416
|
+
* and has a `typeof` result of "object".
|
|
19417
|
+
*
|
|
19418
|
+
* @static
|
|
19419
|
+
* @memberOf _
|
|
19420
|
+
* @since 4.0.0
|
|
19421
|
+
* @category Lang
|
|
19422
|
+
* @param {*} value The value to check.
|
|
19423
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
19424
|
+
* @example
|
|
19425
|
+
*
|
|
19426
|
+
* _.isObjectLike({});
|
|
19427
|
+
* // => true
|
|
19428
|
+
*
|
|
19429
|
+
* _.isObjectLike([1, 2, 3]);
|
|
19430
|
+
* // => true
|
|
19431
|
+
*
|
|
19432
|
+
* _.isObjectLike(_.noop);
|
|
19433
|
+
* // => false
|
|
19434
|
+
*
|
|
19435
|
+
* _.isObjectLike(null);
|
|
19436
|
+
* // => false
|
|
19437
|
+
*/
|
|
19438
|
+
function isObjectLike(value) {
|
|
19439
|
+
return !!value && typeof value == 'object';
|
|
19440
|
+
}
|
|
19441
|
+
|
|
19442
|
+
/**
|
|
19443
|
+
* Checks if `value` is a plain object, that is, an object created by the
|
|
19444
|
+
* `Object` constructor or one with a `[[Prototype]]` of `null`.
|
|
19445
|
+
*
|
|
19446
|
+
* @static
|
|
19447
|
+
* @memberOf _
|
|
19448
|
+
* @since 0.8.0
|
|
19449
|
+
* @category Lang
|
|
19450
|
+
* @param {*} value The value to check.
|
|
19451
|
+
* @returns {boolean} Returns `true` if `value` is a plain object, else `false`.
|
|
19452
|
+
* @example
|
|
19453
|
+
*
|
|
19454
|
+
* function Foo() {
|
|
19455
|
+
* this.a = 1;
|
|
19456
|
+
* }
|
|
19457
|
+
*
|
|
19458
|
+
* _.isPlainObject(new Foo);
|
|
19459
|
+
* // => false
|
|
19460
|
+
*
|
|
19461
|
+
* _.isPlainObject([1, 2, 3]);
|
|
19462
|
+
* // => false
|
|
19463
|
+
*
|
|
19464
|
+
* _.isPlainObject({ 'x': 0, 'y': 0 });
|
|
19465
|
+
* // => true
|
|
19466
|
+
*
|
|
19467
|
+
* _.isPlainObject(Object.create(null));
|
|
19468
|
+
* // => true
|
|
19469
|
+
*/
|
|
19470
|
+
function isPlainObject(value) {
|
|
19471
|
+
if (!isObjectLike(value) ||
|
|
19472
|
+
objectToString.call(value) != objectTag || isHostObject(value)) {
|
|
19473
|
+
return false;
|
|
19474
|
+
}
|
|
19475
|
+
var proto = getPrototype(value);
|
|
19476
|
+
if (proto === null) {
|
|
19477
|
+
return true;
|
|
19478
|
+
}
|
|
19479
|
+
var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;
|
|
19480
|
+
return (typeof Ctor == 'function' &&
|
|
19481
|
+
Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString);
|
|
19482
|
+
}
|
|
19483
|
+
|
|
19484
|
+
module.exports = isPlainObject;
|
|
19485
|
+
|
|
19486
|
+
|
|
19487
|
+
/***/ }),
|
|
19488
|
+
|
|
19489
|
+
/***/ "../node_modules/lodash.isstring/index.js":
|
|
19490
|
+
/*!************************************************!*\
|
|
19491
|
+
!*** ../node_modules/lodash.isstring/index.js ***!
|
|
19492
|
+
\************************************************/
|
|
19493
|
+
/***/ ((module) => {
|
|
19494
|
+
|
|
19495
|
+
/**
|
|
19496
|
+
* lodash 4.0.1 (Custom Build) <https://lodash.com/>
|
|
19497
|
+
* Build: `lodash modularize exports="npm" -o ./`
|
|
19498
|
+
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
|
|
19499
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
19500
|
+
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
19501
|
+
* Available under MIT license <https://lodash.com/license>
|
|
19502
|
+
*/
|
|
19503
|
+
|
|
19504
|
+
/** `Object#toString` result references. */
|
|
19505
|
+
var stringTag = '[object String]';
|
|
19506
|
+
|
|
19507
|
+
/** Used for built-in method references. */
|
|
19508
|
+
var objectProto = Object.prototype;
|
|
19509
|
+
|
|
19510
|
+
/**
|
|
19511
|
+
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
|
|
19512
|
+
* of values.
|
|
19513
|
+
*/
|
|
19514
|
+
var objectToString = objectProto.toString;
|
|
19515
|
+
|
|
19516
|
+
/**
|
|
19517
|
+
* Checks if `value` is classified as an `Array` object.
|
|
19518
|
+
*
|
|
19519
|
+
* @static
|
|
19520
|
+
* @memberOf _
|
|
19521
|
+
* @type Function
|
|
19522
|
+
* @category Lang
|
|
19523
|
+
* @param {*} value The value to check.
|
|
19524
|
+
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`.
|
|
19525
|
+
* @example
|
|
19526
|
+
*
|
|
19527
|
+
* _.isArray([1, 2, 3]);
|
|
19528
|
+
* // => true
|
|
19529
|
+
*
|
|
19530
|
+
* _.isArray(document.body.children);
|
|
19531
|
+
* // => false
|
|
19532
|
+
*
|
|
19533
|
+
* _.isArray('abc');
|
|
19534
|
+
* // => false
|
|
19535
|
+
*
|
|
19536
|
+
* _.isArray(_.noop);
|
|
19537
|
+
* // => false
|
|
19538
|
+
*/
|
|
19539
|
+
var isArray = Array.isArray;
|
|
19540
|
+
|
|
19541
|
+
/**
|
|
19542
|
+
* Checks if `value` is object-like. A value is object-like if it's not `null`
|
|
19543
|
+
* and has a `typeof` result of "object".
|
|
19544
|
+
*
|
|
19545
|
+
* @static
|
|
19546
|
+
* @memberOf _
|
|
19547
|
+
* @category Lang
|
|
19548
|
+
* @param {*} value The value to check.
|
|
19549
|
+
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.
|
|
19550
|
+
* @example
|
|
19551
|
+
*
|
|
19552
|
+
* _.isObjectLike({});
|
|
19553
|
+
* // => true
|
|
19554
|
+
*
|
|
19555
|
+
* _.isObjectLike([1, 2, 3]);
|
|
19556
|
+
* // => true
|
|
19557
|
+
*
|
|
19558
|
+
* _.isObjectLike(_.noop);
|
|
19559
|
+
* // => false
|
|
19560
|
+
*
|
|
19561
|
+
* _.isObjectLike(null);
|
|
19562
|
+
* // => false
|
|
19563
|
+
*/
|
|
19564
|
+
function isObjectLike(value) {
|
|
17961
19565
|
return !!value && typeof value == 'object';
|
|
17962
19566
|
}
|
|
17963
19567
|
|
|
@@ -17985,6 +19589,532 @@ function isString(value) {
|
|
|
17985
19589
|
module.exports = isString;
|
|
17986
19590
|
|
|
17987
19591
|
|
|
19592
|
+
/***/ }),
|
|
19593
|
+
|
|
19594
|
+
/***/ "../node_modules/object-inspect/index.js":
|
|
19595
|
+
/*!***********************************************!*\
|
|
19596
|
+
!*** ../node_modules/object-inspect/index.js ***!
|
|
19597
|
+
\***********************************************/
|
|
19598
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
19599
|
+
|
|
19600
|
+
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
19601
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
19602
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
19603
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
|
19604
|
+
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
19605
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
19606
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
19607
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
|
19608
|
+
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
19609
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
19610
|
+
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
19611
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
19612
|
+
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
19613
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
19614
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
|
19615
|
+
var objectToString = Object.prototype.toString;
|
|
19616
|
+
var functionToString = Function.prototype.toString;
|
|
19617
|
+
var $match = String.prototype.match;
|
|
19618
|
+
var $slice = String.prototype.slice;
|
|
19619
|
+
var $replace = String.prototype.replace;
|
|
19620
|
+
var $toUpperCase = String.prototype.toUpperCase;
|
|
19621
|
+
var $toLowerCase = String.prototype.toLowerCase;
|
|
19622
|
+
var $test = RegExp.prototype.test;
|
|
19623
|
+
var $concat = Array.prototype.concat;
|
|
19624
|
+
var $join = Array.prototype.join;
|
|
19625
|
+
var $arrSlice = Array.prototype.slice;
|
|
19626
|
+
var $floor = Math.floor;
|
|
19627
|
+
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
19628
|
+
var gOPS = Object.getOwnPropertySymbols;
|
|
19629
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
19630
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
19631
|
+
// ie, `has-tostringtag/shams
|
|
19632
|
+
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
|
19633
|
+
? Symbol.toStringTag
|
|
19634
|
+
: null;
|
|
19635
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
19636
|
+
|
|
19637
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
19638
|
+
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
19639
|
+
? function (O) {
|
|
19640
|
+
return O.__proto__; // eslint-disable-line no-proto
|
|
19641
|
+
}
|
|
19642
|
+
: null
|
|
19643
|
+
);
|
|
19644
|
+
|
|
19645
|
+
function addNumericSeparator(num, str) {
|
|
19646
|
+
if (
|
|
19647
|
+
num === Infinity
|
|
19648
|
+
|| num === -Infinity
|
|
19649
|
+
|| num !== num
|
|
19650
|
+
|| (num && num > -1000 && num < 1000)
|
|
19651
|
+
|| $test.call(/e/, str)
|
|
19652
|
+
) {
|
|
19653
|
+
return str;
|
|
19654
|
+
}
|
|
19655
|
+
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
19656
|
+
if (typeof num === 'number') {
|
|
19657
|
+
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
|
19658
|
+
if (int !== num) {
|
|
19659
|
+
var intStr = String(int);
|
|
19660
|
+
var dec = $slice.call(str, intStr.length + 1);
|
|
19661
|
+
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
|
19662
|
+
}
|
|
19663
|
+
}
|
|
19664
|
+
return $replace.call(str, sepRegex, '$&_');
|
|
19665
|
+
}
|
|
19666
|
+
|
|
19667
|
+
var utilInspect = __webpack_require__(/*! ./util.inspect */ "?d91c");
|
|
19668
|
+
var inspectCustom = utilInspect.custom;
|
|
19669
|
+
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
19670
|
+
|
|
19671
|
+
module.exports = function inspect_(obj, options, depth, seen) {
|
|
19672
|
+
var opts = options || {};
|
|
19673
|
+
|
|
19674
|
+
if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
|
|
19675
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
19676
|
+
}
|
|
19677
|
+
if (
|
|
19678
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
19679
|
+
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
19680
|
+
: opts.maxStringLength !== null
|
|
19681
|
+
)
|
|
19682
|
+
) {
|
|
19683
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
19684
|
+
}
|
|
19685
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
19686
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
19687
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
19688
|
+
}
|
|
19689
|
+
|
|
19690
|
+
if (
|
|
19691
|
+
has(opts, 'indent')
|
|
19692
|
+
&& opts.indent !== null
|
|
19693
|
+
&& opts.indent !== '\t'
|
|
19694
|
+
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
19695
|
+
) {
|
|
19696
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
19697
|
+
}
|
|
19698
|
+
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
19699
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
19700
|
+
}
|
|
19701
|
+
var numericSeparator = opts.numericSeparator;
|
|
19702
|
+
|
|
19703
|
+
if (typeof obj === 'undefined') {
|
|
19704
|
+
return 'undefined';
|
|
19705
|
+
}
|
|
19706
|
+
if (obj === null) {
|
|
19707
|
+
return 'null';
|
|
19708
|
+
}
|
|
19709
|
+
if (typeof obj === 'boolean') {
|
|
19710
|
+
return obj ? 'true' : 'false';
|
|
19711
|
+
}
|
|
19712
|
+
|
|
19713
|
+
if (typeof obj === 'string') {
|
|
19714
|
+
return inspectString(obj, opts);
|
|
19715
|
+
}
|
|
19716
|
+
if (typeof obj === 'number') {
|
|
19717
|
+
if (obj === 0) {
|
|
19718
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
|
19719
|
+
}
|
|
19720
|
+
var str = String(obj);
|
|
19721
|
+
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
19722
|
+
}
|
|
19723
|
+
if (typeof obj === 'bigint') {
|
|
19724
|
+
var bigIntStr = String(obj) + 'n';
|
|
19725
|
+
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
19726
|
+
}
|
|
19727
|
+
|
|
19728
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
19729
|
+
if (typeof depth === 'undefined') { depth = 0; }
|
|
19730
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
19731
|
+
return isArray(obj) ? '[Array]' : '[Object]';
|
|
19732
|
+
}
|
|
19733
|
+
|
|
19734
|
+
var indent = getIndent(opts, depth);
|
|
19735
|
+
|
|
19736
|
+
if (typeof seen === 'undefined') {
|
|
19737
|
+
seen = [];
|
|
19738
|
+
} else if (indexOf(seen, obj) >= 0) {
|
|
19739
|
+
return '[Circular]';
|
|
19740
|
+
}
|
|
19741
|
+
|
|
19742
|
+
function inspect(value, from, noIndent) {
|
|
19743
|
+
if (from) {
|
|
19744
|
+
seen = $arrSlice.call(seen);
|
|
19745
|
+
seen.push(from);
|
|
19746
|
+
}
|
|
19747
|
+
if (noIndent) {
|
|
19748
|
+
var newOpts = {
|
|
19749
|
+
depth: opts.depth
|
|
19750
|
+
};
|
|
19751
|
+
if (has(opts, 'quoteStyle')) {
|
|
19752
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
|
19753
|
+
}
|
|
19754
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
|
19755
|
+
}
|
|
19756
|
+
return inspect_(value, opts, depth + 1, seen);
|
|
19757
|
+
}
|
|
19758
|
+
|
|
19759
|
+
if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
|
|
19760
|
+
var name = nameOf(obj);
|
|
19761
|
+
var keys = arrObjKeys(obj, inspect);
|
|
19762
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
19763
|
+
}
|
|
19764
|
+
if (isSymbol(obj)) {
|
|
19765
|
+
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
19766
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
19767
|
+
}
|
|
19768
|
+
if (isElement(obj)) {
|
|
19769
|
+
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
|
19770
|
+
var attrs = obj.attributes || [];
|
|
19771
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
19772
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
19773
|
+
}
|
|
19774
|
+
s += '>';
|
|
19775
|
+
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
19776
|
+
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
19777
|
+
return s;
|
|
19778
|
+
}
|
|
19779
|
+
if (isArray(obj)) {
|
|
19780
|
+
if (obj.length === 0) { return '[]'; }
|
|
19781
|
+
var xs = arrObjKeys(obj, inspect);
|
|
19782
|
+
if (indent && !singleLineValues(xs)) {
|
|
19783
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
|
19784
|
+
}
|
|
19785
|
+
return '[ ' + $join.call(xs, ', ') + ' ]';
|
|
19786
|
+
}
|
|
19787
|
+
if (isError(obj)) {
|
|
19788
|
+
var parts = arrObjKeys(obj, inspect);
|
|
19789
|
+
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
19790
|
+
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
19791
|
+
}
|
|
19792
|
+
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
19793
|
+
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
19794
|
+
}
|
|
19795
|
+
if (typeof obj === 'object' && customInspect) {
|
|
19796
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
|
|
19797
|
+
return utilInspect(obj, { depth: maxDepth - depth });
|
|
19798
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
19799
|
+
return obj.inspect();
|
|
19800
|
+
}
|
|
19801
|
+
}
|
|
19802
|
+
if (isMap(obj)) {
|
|
19803
|
+
var mapParts = [];
|
|
19804
|
+
if (mapForEach) {
|
|
19805
|
+
mapForEach.call(obj, function (value, key) {
|
|
19806
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
19807
|
+
});
|
|
19808
|
+
}
|
|
19809
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
19810
|
+
}
|
|
19811
|
+
if (isSet(obj)) {
|
|
19812
|
+
var setParts = [];
|
|
19813
|
+
if (setForEach) {
|
|
19814
|
+
setForEach.call(obj, function (value) {
|
|
19815
|
+
setParts.push(inspect(value, obj));
|
|
19816
|
+
});
|
|
19817
|
+
}
|
|
19818
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
19819
|
+
}
|
|
19820
|
+
if (isWeakMap(obj)) {
|
|
19821
|
+
return weakCollectionOf('WeakMap');
|
|
19822
|
+
}
|
|
19823
|
+
if (isWeakSet(obj)) {
|
|
19824
|
+
return weakCollectionOf('WeakSet');
|
|
19825
|
+
}
|
|
19826
|
+
if (isWeakRef(obj)) {
|
|
19827
|
+
return weakCollectionOf('WeakRef');
|
|
19828
|
+
}
|
|
19829
|
+
if (isNumber(obj)) {
|
|
19830
|
+
return markBoxed(inspect(Number(obj)));
|
|
19831
|
+
}
|
|
19832
|
+
if (isBigInt(obj)) {
|
|
19833
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
19834
|
+
}
|
|
19835
|
+
if (isBoolean(obj)) {
|
|
19836
|
+
return markBoxed(booleanValueOf.call(obj));
|
|
19837
|
+
}
|
|
19838
|
+
if (isString(obj)) {
|
|
19839
|
+
return markBoxed(inspect(String(obj)));
|
|
19840
|
+
}
|
|
19841
|
+
if (!isDate(obj) && !isRegExp(obj)) {
|
|
19842
|
+
var ys = arrObjKeys(obj, inspect);
|
|
19843
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
19844
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
19845
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
19846
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
19847
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
19848
|
+
if (ys.length === 0) { return tag + '{}'; }
|
|
19849
|
+
if (indent) {
|
|
19850
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
19851
|
+
}
|
|
19852
|
+
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
|
19853
|
+
}
|
|
19854
|
+
return String(obj);
|
|
19855
|
+
};
|
|
19856
|
+
|
|
19857
|
+
function wrapQuotes(s, defaultStyle, opts) {
|
|
19858
|
+
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
|
19859
|
+
return quoteChar + s + quoteChar;
|
|
19860
|
+
}
|
|
19861
|
+
|
|
19862
|
+
function quote(s) {
|
|
19863
|
+
return $replace.call(String(s), /"/g, '"');
|
|
19864
|
+
}
|
|
19865
|
+
|
|
19866
|
+
function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
19867
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
19868
|
+
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
19869
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
19870
|
+
function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
19871
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
19872
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
19873
|
+
|
|
19874
|
+
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
19875
|
+
function isSymbol(obj) {
|
|
19876
|
+
if (hasShammedSymbols) {
|
|
19877
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
19878
|
+
}
|
|
19879
|
+
if (typeof obj === 'symbol') {
|
|
19880
|
+
return true;
|
|
19881
|
+
}
|
|
19882
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
19883
|
+
return false;
|
|
19884
|
+
}
|
|
19885
|
+
try {
|
|
19886
|
+
symToString.call(obj);
|
|
19887
|
+
return true;
|
|
19888
|
+
} catch (e) {}
|
|
19889
|
+
return false;
|
|
19890
|
+
}
|
|
19891
|
+
|
|
19892
|
+
function isBigInt(obj) {
|
|
19893
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
19894
|
+
return false;
|
|
19895
|
+
}
|
|
19896
|
+
try {
|
|
19897
|
+
bigIntValueOf.call(obj);
|
|
19898
|
+
return true;
|
|
19899
|
+
} catch (e) {}
|
|
19900
|
+
return false;
|
|
19901
|
+
}
|
|
19902
|
+
|
|
19903
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
19904
|
+
function has(obj, key) {
|
|
19905
|
+
return hasOwn.call(obj, key);
|
|
19906
|
+
}
|
|
19907
|
+
|
|
19908
|
+
function toStr(obj) {
|
|
19909
|
+
return objectToString.call(obj);
|
|
19910
|
+
}
|
|
19911
|
+
|
|
19912
|
+
function nameOf(f) {
|
|
19913
|
+
if (f.name) { return f.name; }
|
|
19914
|
+
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
19915
|
+
if (m) { return m[1]; }
|
|
19916
|
+
return null;
|
|
19917
|
+
}
|
|
19918
|
+
|
|
19919
|
+
function indexOf(xs, x) {
|
|
19920
|
+
if (xs.indexOf) { return xs.indexOf(x); }
|
|
19921
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
19922
|
+
if (xs[i] === x) { return i; }
|
|
19923
|
+
}
|
|
19924
|
+
return -1;
|
|
19925
|
+
}
|
|
19926
|
+
|
|
19927
|
+
function isMap(x) {
|
|
19928
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
|
19929
|
+
return false;
|
|
19930
|
+
}
|
|
19931
|
+
try {
|
|
19932
|
+
mapSize.call(x);
|
|
19933
|
+
try {
|
|
19934
|
+
setSize.call(x);
|
|
19935
|
+
} catch (s) {
|
|
19936
|
+
return true;
|
|
19937
|
+
}
|
|
19938
|
+
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
19939
|
+
} catch (e) {}
|
|
19940
|
+
return false;
|
|
19941
|
+
}
|
|
19942
|
+
|
|
19943
|
+
function isWeakMap(x) {
|
|
19944
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
19945
|
+
return false;
|
|
19946
|
+
}
|
|
19947
|
+
try {
|
|
19948
|
+
weakMapHas.call(x, weakMapHas);
|
|
19949
|
+
try {
|
|
19950
|
+
weakSetHas.call(x, weakSetHas);
|
|
19951
|
+
} catch (s) {
|
|
19952
|
+
return true;
|
|
19953
|
+
}
|
|
19954
|
+
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
19955
|
+
} catch (e) {}
|
|
19956
|
+
return false;
|
|
19957
|
+
}
|
|
19958
|
+
|
|
19959
|
+
function isWeakRef(x) {
|
|
19960
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
19961
|
+
return false;
|
|
19962
|
+
}
|
|
19963
|
+
try {
|
|
19964
|
+
weakRefDeref.call(x);
|
|
19965
|
+
return true;
|
|
19966
|
+
} catch (e) {}
|
|
19967
|
+
return false;
|
|
19968
|
+
}
|
|
19969
|
+
|
|
19970
|
+
function isSet(x) {
|
|
19971
|
+
if (!setSize || !x || typeof x !== 'object') {
|
|
19972
|
+
return false;
|
|
19973
|
+
}
|
|
19974
|
+
try {
|
|
19975
|
+
setSize.call(x);
|
|
19976
|
+
try {
|
|
19977
|
+
mapSize.call(x);
|
|
19978
|
+
} catch (m) {
|
|
19979
|
+
return true;
|
|
19980
|
+
}
|
|
19981
|
+
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
19982
|
+
} catch (e) {}
|
|
19983
|
+
return false;
|
|
19984
|
+
}
|
|
19985
|
+
|
|
19986
|
+
function isWeakSet(x) {
|
|
19987
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
19988
|
+
return false;
|
|
19989
|
+
}
|
|
19990
|
+
try {
|
|
19991
|
+
weakSetHas.call(x, weakSetHas);
|
|
19992
|
+
try {
|
|
19993
|
+
weakMapHas.call(x, weakMapHas);
|
|
19994
|
+
} catch (s) {
|
|
19995
|
+
return true;
|
|
19996
|
+
}
|
|
19997
|
+
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
19998
|
+
} catch (e) {}
|
|
19999
|
+
return false;
|
|
20000
|
+
}
|
|
20001
|
+
|
|
20002
|
+
function isElement(x) {
|
|
20003
|
+
if (!x || typeof x !== 'object') { return false; }
|
|
20004
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
20005
|
+
return true;
|
|
20006
|
+
}
|
|
20007
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
20008
|
+
}
|
|
20009
|
+
|
|
20010
|
+
function inspectString(str, opts) {
|
|
20011
|
+
if (str.length > opts.maxStringLength) {
|
|
20012
|
+
var remaining = str.length - opts.maxStringLength;
|
|
20013
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
20014
|
+
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
20015
|
+
}
|
|
20016
|
+
// eslint-disable-next-line no-control-regex
|
|
20017
|
+
var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
20018
|
+
return wrapQuotes(s, 'single', opts);
|
|
20019
|
+
}
|
|
20020
|
+
|
|
20021
|
+
function lowbyte(c) {
|
|
20022
|
+
var n = c.charCodeAt(0);
|
|
20023
|
+
var x = {
|
|
20024
|
+
8: 'b',
|
|
20025
|
+
9: 't',
|
|
20026
|
+
10: 'n',
|
|
20027
|
+
12: 'f',
|
|
20028
|
+
13: 'r'
|
|
20029
|
+
}[n];
|
|
20030
|
+
if (x) { return '\\' + x; }
|
|
20031
|
+
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
20032
|
+
}
|
|
20033
|
+
|
|
20034
|
+
function markBoxed(str) {
|
|
20035
|
+
return 'Object(' + str + ')';
|
|
20036
|
+
}
|
|
20037
|
+
|
|
20038
|
+
function weakCollectionOf(type) {
|
|
20039
|
+
return type + ' { ? }';
|
|
20040
|
+
}
|
|
20041
|
+
|
|
20042
|
+
function collectionOf(type, size, entries, indent) {
|
|
20043
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
|
20044
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
20045
|
+
}
|
|
20046
|
+
|
|
20047
|
+
function singleLineValues(xs) {
|
|
20048
|
+
for (var i = 0; i < xs.length; i++) {
|
|
20049
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
|
20050
|
+
return false;
|
|
20051
|
+
}
|
|
20052
|
+
}
|
|
20053
|
+
return true;
|
|
20054
|
+
}
|
|
20055
|
+
|
|
20056
|
+
function getIndent(opts, depth) {
|
|
20057
|
+
var baseIndent;
|
|
20058
|
+
if (opts.indent === '\t') {
|
|
20059
|
+
baseIndent = '\t';
|
|
20060
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
20061
|
+
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
|
20062
|
+
} else {
|
|
20063
|
+
return null;
|
|
20064
|
+
}
|
|
20065
|
+
return {
|
|
20066
|
+
base: baseIndent,
|
|
20067
|
+
prev: $join.call(Array(depth + 1), baseIndent)
|
|
20068
|
+
};
|
|
20069
|
+
}
|
|
20070
|
+
|
|
20071
|
+
function indentedJoin(xs, indent) {
|
|
20072
|
+
if (xs.length === 0) { return ''; }
|
|
20073
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
20074
|
+
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
20075
|
+
}
|
|
20076
|
+
|
|
20077
|
+
function arrObjKeys(obj, inspect) {
|
|
20078
|
+
var isArr = isArray(obj);
|
|
20079
|
+
var xs = [];
|
|
20080
|
+
if (isArr) {
|
|
20081
|
+
xs.length = obj.length;
|
|
20082
|
+
for (var i = 0; i < obj.length; i++) {
|
|
20083
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
20084
|
+
}
|
|
20085
|
+
}
|
|
20086
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
20087
|
+
var symMap;
|
|
20088
|
+
if (hasShammedSymbols) {
|
|
20089
|
+
symMap = {};
|
|
20090
|
+
for (var k = 0; k < syms.length; k++) {
|
|
20091
|
+
symMap['$' + syms[k]] = syms[k];
|
|
20092
|
+
}
|
|
20093
|
+
}
|
|
20094
|
+
|
|
20095
|
+
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
20096
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
20097
|
+
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
20098
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
20099
|
+
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
20100
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
20101
|
+
} else if ($test.call(/[^\w$]/, key)) {
|
|
20102
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
20103
|
+
} else {
|
|
20104
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
20105
|
+
}
|
|
20106
|
+
}
|
|
20107
|
+
if (typeof gOPS === 'function') {
|
|
20108
|
+
for (var j = 0; j < syms.length; j++) {
|
|
20109
|
+
if (isEnumerable.call(obj, syms[j])) {
|
|
20110
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
20111
|
+
}
|
|
20112
|
+
}
|
|
20113
|
+
}
|
|
20114
|
+
return xs;
|
|
20115
|
+
}
|
|
20116
|
+
|
|
20117
|
+
|
|
17988
20118
|
/***/ }),
|
|
17989
20119
|
|
|
17990
20120
|
/***/ "../node_modules/p-throttle/index.js":
|
|
@@ -18098,6 +20228,151 @@ module.exports = pThrottle;
|
|
|
18098
20228
|
module.exports.AbortError = AbortError;
|
|
18099
20229
|
|
|
18100
20230
|
|
|
20231
|
+
/***/ }),
|
|
20232
|
+
|
|
20233
|
+
/***/ "../node_modules/side-channel/index.js":
|
|
20234
|
+
/*!*********************************************!*\
|
|
20235
|
+
!*** ../node_modules/side-channel/index.js ***!
|
|
20236
|
+
\*********************************************/
|
|
20237
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
20238
|
+
|
|
20239
|
+
"use strict";
|
|
20240
|
+
|
|
20241
|
+
|
|
20242
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
20243
|
+
var callBound = __webpack_require__(/*! call-bind/callBound */ "../node_modules/call-bind/callBound.js");
|
|
20244
|
+
var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js");
|
|
20245
|
+
|
|
20246
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
20247
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
20248
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
20249
|
+
|
|
20250
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
20251
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
20252
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
20253
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
20254
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
20255
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
20256
|
+
|
|
20257
|
+
/*
|
|
20258
|
+
* This function traverses the list returning the node corresponding to the
|
|
20259
|
+
* given key.
|
|
20260
|
+
*
|
|
20261
|
+
* That node is also moved to the head of the list, so that if it's accessed
|
|
20262
|
+
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
20263
|
+
* used nodes can be accessed relatively quickly.
|
|
20264
|
+
*/
|
|
20265
|
+
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
20266
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
20267
|
+
if (curr.key === key) {
|
|
20268
|
+
prev.next = curr.next;
|
|
20269
|
+
curr.next = list.next;
|
|
20270
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
20271
|
+
return curr;
|
|
20272
|
+
}
|
|
20273
|
+
}
|
|
20274
|
+
};
|
|
20275
|
+
|
|
20276
|
+
var listGet = function (objects, key) {
|
|
20277
|
+
var node = listGetNode(objects, key);
|
|
20278
|
+
return node && node.value;
|
|
20279
|
+
};
|
|
20280
|
+
var listSet = function (objects, key, value) {
|
|
20281
|
+
var node = listGetNode(objects, key);
|
|
20282
|
+
if (node) {
|
|
20283
|
+
node.value = value;
|
|
20284
|
+
} else {
|
|
20285
|
+
// Prepend the new node to the beginning of the list
|
|
20286
|
+
objects.next = { // eslint-disable-line no-param-reassign
|
|
20287
|
+
key: key,
|
|
20288
|
+
next: objects.next,
|
|
20289
|
+
value: value
|
|
20290
|
+
};
|
|
20291
|
+
}
|
|
20292
|
+
};
|
|
20293
|
+
var listHas = function (objects, key) {
|
|
20294
|
+
return !!listGetNode(objects, key);
|
|
20295
|
+
};
|
|
20296
|
+
|
|
20297
|
+
module.exports = function getSideChannel() {
|
|
20298
|
+
var $wm;
|
|
20299
|
+
var $m;
|
|
20300
|
+
var $o;
|
|
20301
|
+
var channel = {
|
|
20302
|
+
assert: function (key) {
|
|
20303
|
+
if (!channel.has(key)) {
|
|
20304
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
20305
|
+
}
|
|
20306
|
+
},
|
|
20307
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
20308
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
20309
|
+
if ($wm) {
|
|
20310
|
+
return $weakMapGet($wm, key);
|
|
20311
|
+
}
|
|
20312
|
+
} else if ($Map) {
|
|
20313
|
+
if ($m) {
|
|
20314
|
+
return $mapGet($m, key);
|
|
20315
|
+
}
|
|
20316
|
+
} else {
|
|
20317
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
20318
|
+
return listGet($o, key);
|
|
20319
|
+
}
|
|
20320
|
+
}
|
|
20321
|
+
},
|
|
20322
|
+
has: function (key) {
|
|
20323
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
20324
|
+
if ($wm) {
|
|
20325
|
+
return $weakMapHas($wm, key);
|
|
20326
|
+
}
|
|
20327
|
+
} else if ($Map) {
|
|
20328
|
+
if ($m) {
|
|
20329
|
+
return $mapHas($m, key);
|
|
20330
|
+
}
|
|
20331
|
+
} else {
|
|
20332
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
20333
|
+
return listHas($o, key);
|
|
20334
|
+
}
|
|
20335
|
+
}
|
|
20336
|
+
return false;
|
|
20337
|
+
},
|
|
20338
|
+
set: function (key, value) {
|
|
20339
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
20340
|
+
if (!$wm) {
|
|
20341
|
+
$wm = new $WeakMap();
|
|
20342
|
+
}
|
|
20343
|
+
$weakMapSet($wm, key, value);
|
|
20344
|
+
} else if ($Map) {
|
|
20345
|
+
if (!$m) {
|
|
20346
|
+
$m = new $Map();
|
|
20347
|
+
}
|
|
20348
|
+
$mapSet($m, key, value);
|
|
20349
|
+
} else {
|
|
20350
|
+
if (!$o) {
|
|
20351
|
+
/*
|
|
20352
|
+
* Initialize the linked list as an empty node, so that we don't have
|
|
20353
|
+
* to special-case handling of the first node: we can always refer to
|
|
20354
|
+
* it as (previous node).next, instead of something like (list).head
|
|
20355
|
+
*/
|
|
20356
|
+
$o = { key: {}, next: null };
|
|
20357
|
+
}
|
|
20358
|
+
listSet($o, key, value);
|
|
20359
|
+
}
|
|
20360
|
+
}
|
|
20361
|
+
};
|
|
20362
|
+
return channel;
|
|
20363
|
+
};
|
|
20364
|
+
|
|
20365
|
+
|
|
20366
|
+
/***/ }),
|
|
20367
|
+
|
|
20368
|
+
/***/ "?d91c":
|
|
20369
|
+
/*!********************************!*\
|
|
20370
|
+
!*** ./util.inspect (ignored) ***!
|
|
20371
|
+
\********************************/
|
|
20372
|
+
/***/ (() => {
|
|
20373
|
+
|
|
20374
|
+
/* (ignored) */
|
|
20375
|
+
|
|
18101
20376
|
/***/ }),
|
|
18102
20377
|
|
|
18103
20378
|
/***/ "../node_modules/axios/lib/adapters/adapters.js":
|
|
@@ -22802,7 +25077,7 @@ function createClient(params) {
|
|
|
22802
25077
|
var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
22803
25078
|
var sdkMain = opts.type === 'plain' ? 'contentful-management-plain.js' : 'contentful-management.js';
|
|
22804
25079
|
var userAgent = (0,contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__.getUserAgentHeader)( // @ts-expect-error
|
|
22805
|
-
"".concat(sdkMain, "/").concat("11.5.
|
|
25080
|
+
"".concat(sdkMain, "/").concat("11.5.5"), params.application, params.integration, params.feature);
|
|
22806
25081
|
var adapter = (0,_create_adapter__WEBPACK_IMPORTED_MODULE_1__.createAdapter)(params);
|
|
22807
25082
|
|
|
22808
25083
|
// Parameters<?> and ReturnType<?> only return the types of the last overload
|