contentful 9.1.2 → 9.1.6
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.browser.js +1696 -2010
- package/dist/contentful.browser.js.map +1 -1
- package/dist/contentful.browser.min.js +1 -1
- package/dist/contentful.node.js +1494 -1825
- package/dist/contentful.node.js.map +1 -1
- package/dist/contentful.node.min.js +1 -1
- package/dist/es-modules/contentful.js +3 -3
- package/dist/es-modules/create-contentful-api.js +28 -17
- package/dist/es-modules/entities/entry.js +5 -4
- package/dist/es-modules/mixins/stringify-safe.js +3 -1
- package/dist/es-modules/paged-sync.js +10 -6
- package/dist/es-modules/utils/normalize-select.js +2 -2
- package/package.json +7 -7
|
@@ -239,7 +239,7 @@ module.exports = function xhrAdapter(config) {
|
|
|
239
239
|
|
|
240
240
|
// Handle timeout
|
|
241
241
|
request.ontimeout = function handleTimeout() {
|
|
242
|
-
var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';
|
|
242
|
+
var timeoutErrorMessage = config.timeout ? 'timeout of ' + config.timeout + 'ms exceeded' : 'timeout exceeded';
|
|
243
243
|
var transitional = config.transitional || defaults.transitional;
|
|
244
244
|
if (config.timeoutErrorMessage) {
|
|
245
245
|
timeoutErrorMessage = config.timeoutErrorMessage;
|
|
@@ -1358,7 +1358,7 @@ module.exports = defaults;
|
|
|
1358
1358
|
/***/ (function(module, exports) {
|
|
1359
1359
|
|
|
1360
1360
|
module.exports = {
|
|
1361
|
-
"version": "0.
|
|
1361
|
+
"version": "0.24.0"
|
|
1362
1362
|
};
|
|
1363
1363
|
|
|
1364
1364
|
/***/ }),
|
|
@@ -2315,7 +2315,9 @@ var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
|
2315
2315
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
2316
2316
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
2317
2317
|
|
|
2318
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
2318
2319
|
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
2320
|
+
var $max = GetIntrinsic('%Math.max%');
|
|
2319
2321
|
|
|
2320
2322
|
if ($defineProperty) {
|
|
2321
2323
|
try {
|
|
@@ -2326,8 +2328,20 @@ if ($defineProperty) {
|
|
|
2326
2328
|
}
|
|
2327
2329
|
}
|
|
2328
2330
|
|
|
2329
|
-
module.exports = function callBind() {
|
|
2330
|
-
|
|
2331
|
+
module.exports = function callBind(originalFunction) {
|
|
2332
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
2333
|
+
if ($gOPD && $defineProperty) {
|
|
2334
|
+
var desc = $gOPD(func, 'length');
|
|
2335
|
+
if (desc.configurable) {
|
|
2336
|
+
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
2337
|
+
$defineProperty(
|
|
2338
|
+
func,
|
|
2339
|
+
'length',
|
|
2340
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
2341
|
+
);
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
return func;
|
|
2331
2345
|
};
|
|
2332
2346
|
|
|
2333
2347
|
var applyBind = function applyBind() {
|
|
@@ -2532,11 +2546,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2532
2546
|
/* harmony import */ var lodash_isstring__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_isstring__WEBPACK_IMPORTED_MODULE_2__);
|
|
2533
2547
|
/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! p-throttle */ "../node_modules/p-throttle/index.js");
|
|
2534
2548
|
/* harmony import */ var p_throttle__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(p_throttle__WEBPACK_IMPORTED_MODULE_3__);
|
|
2535
|
-
/* harmony import */ var
|
|
2536
|
-
/* harmony import */ var
|
|
2537
|
-
/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! lodash.isplainobject */ "../node_modules/lodash.isplainobject/index.js");
|
|
2538
|
-
/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(lodash_isplainobject__WEBPACK_IMPORTED_MODULE_5__);
|
|
2539
|
-
|
|
2549
|
+
/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! lodash.isplainobject */ "../node_modules/lodash.isplainobject/index.js");
|
|
2550
|
+
/* harmony import */ var lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4__);
|
|
2540
2551
|
|
|
2541
2552
|
|
|
2542
2553
|
|
|
@@ -2548,14 +2559,9 @@ function ownKeys(object, enumerableOnly) {
|
|
|
2548
2559
|
|
|
2549
2560
|
if (Object.getOwnPropertySymbols) {
|
|
2550
2561
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
2555
|
-
});
|
|
2556
|
-
}
|
|
2557
|
-
|
|
2558
|
-
keys.push.apply(keys, symbols);
|
|
2562
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
2563
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
2564
|
+
})), keys.push.apply(keys, symbols);
|
|
2559
2565
|
}
|
|
2560
2566
|
|
|
2561
2567
|
return keys;
|
|
@@ -2563,19 +2569,12 @@ function ownKeys(object, enumerableOnly) {
|
|
|
2563
2569
|
|
|
2564
2570
|
function _objectSpread2(target) {
|
|
2565
2571
|
for (var i = 1; i < arguments.length; i++) {
|
|
2566
|
-
var source = arguments[i]
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
} else if (Object.getOwnPropertyDescriptors) {
|
|
2573
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
2574
|
-
} else {
|
|
2575
|
-
ownKeys(Object(source)).forEach(function (key) {
|
|
2576
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2577
|
-
});
|
|
2578
|
-
}
|
|
2572
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
2573
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
2574
|
+
_defineProperty(target, key, source[key]);
|
|
2575
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
2576
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
2577
|
+
});
|
|
2579
2578
|
}
|
|
2580
2579
|
|
|
2581
2580
|
return target;
|
|
@@ -2584,80 +2583,59 @@ function _objectSpread2(target) {
|
|
|
2584
2583
|
function _typeof(obj) {
|
|
2585
2584
|
"@babel/helpers - typeof";
|
|
2586
2585
|
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
}
|
|
2592
|
-
_typeof = function (obj) {
|
|
2593
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
2594
|
-
};
|
|
2595
|
-
}
|
|
2596
|
-
|
|
2597
|
-
return _typeof(obj);
|
|
2586
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
2587
|
+
return typeof obj;
|
|
2588
|
+
} : function (obj) {
|
|
2589
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
2590
|
+
}, _typeof(obj);
|
|
2598
2591
|
}
|
|
2599
2592
|
|
|
2600
2593
|
function _wrapRegExp() {
|
|
2601
2594
|
_wrapRegExp = function (re, groups) {
|
|
2602
|
-
return new BabelRegExp(re,
|
|
2595
|
+
return new BabelRegExp(re, void 0, groups);
|
|
2603
2596
|
};
|
|
2604
2597
|
|
|
2605
|
-
var _super = RegExp.prototype
|
|
2606
|
-
|
|
2607
|
-
var _groups = new WeakMap();
|
|
2598
|
+
var _super = RegExp.prototype,
|
|
2599
|
+
_groups = new WeakMap();
|
|
2608
2600
|
|
|
2609
2601
|
function BabelRegExp(re, flags, groups) {
|
|
2610
2602
|
var _this = new RegExp(re, flags);
|
|
2611
2603
|
|
|
2612
|
-
_groups.set(_this, groups || _groups.get(re));
|
|
2613
|
-
|
|
2614
|
-
return _setPrototypeOf(_this, BabelRegExp.prototype);
|
|
2604
|
+
return _groups.set(_this, groups || _groups.get(re)), _setPrototypeOf(_this, BabelRegExp.prototype);
|
|
2615
2605
|
}
|
|
2616
2606
|
|
|
2617
|
-
|
|
2607
|
+
function buildGroups(result, re) {
|
|
2608
|
+
var g = _groups.get(re);
|
|
2618
2609
|
|
|
2619
|
-
|
|
2620
|
-
|
|
2610
|
+
return Object.keys(g).reduce(function (groups, name) {
|
|
2611
|
+
return groups[name] = result[g[name]], groups;
|
|
2612
|
+
}, Object.create(null));
|
|
2613
|
+
}
|
|
2621
2614
|
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
};
|
|
2615
|
+
return _inherits(BabelRegExp, RegExp), BabelRegExp.prototype.exec = function (str) {
|
|
2616
|
+
var result = _super.exec.call(this, str);
|
|
2625
2617
|
|
|
2626
|
-
|
|
2627
|
-
|
|
2618
|
+
return result && (result.groups = buildGroups(result, this)), result;
|
|
2619
|
+
}, BabelRegExp.prototype[Symbol.replace] = function (str, substitution) {
|
|
2620
|
+
if ("string" == typeof substitution) {
|
|
2628
2621
|
var groups = _groups.get(this);
|
|
2629
2622
|
|
|
2630
2623
|
return _super[Symbol.replace].call(this, str, substitution.replace(/\$<([^>]+)>/g, function (_, name) {
|
|
2631
2624
|
return "$" + groups[name];
|
|
2632
2625
|
}));
|
|
2633
|
-
}
|
|
2626
|
+
}
|
|
2627
|
+
|
|
2628
|
+
if ("function" == typeof substitution) {
|
|
2634
2629
|
var _this = this;
|
|
2635
2630
|
|
|
2636
2631
|
return _super[Symbol.replace].call(this, str, function () {
|
|
2637
2632
|
var args = arguments;
|
|
2638
|
-
|
|
2639
|
-
if (typeof args[args.length - 1] !== "object") {
|
|
2640
|
-
args = [].slice.call(args);
|
|
2641
|
-
args.push(buildGroups(args, _this));
|
|
2642
|
-
}
|
|
2643
|
-
|
|
2644
|
-
return substitution.apply(this, args);
|
|
2633
|
+
return "object" != typeof args[args.length - 1] && (args = [].slice.call(args)).push(buildGroups(args, _this)), substitution.apply(this, args);
|
|
2645
2634
|
});
|
|
2646
|
-
} else {
|
|
2647
|
-
return _super[Symbol.replace].call(this, str, substitution);
|
|
2648
2635
|
}
|
|
2649
|
-
};
|
|
2650
|
-
|
|
2651
|
-
function buildGroups(result, re) {
|
|
2652
|
-
var g = _groups.get(re);
|
|
2653
|
-
|
|
2654
|
-
return Object.keys(g).reduce(function (groups, name) {
|
|
2655
|
-
groups[name] = result[g[name]];
|
|
2656
|
-
return groups;
|
|
2657
|
-
}, Object.create(null));
|
|
2658
|
-
}
|
|
2659
2636
|
|
|
2660
|
-
|
|
2637
|
+
return _super[Symbol.replace].call(this, str, substitution);
|
|
2638
|
+
}, _wrapRegExp.apply(this, arguments);
|
|
2661
2639
|
}
|
|
2662
2640
|
|
|
2663
2641
|
function _defineProperty(obj, key, value) {
|
|
@@ -2687,6 +2665,9 @@ function _inherits(subClass, superClass) {
|
|
|
2687
2665
|
configurable: true
|
|
2688
2666
|
}
|
|
2689
2667
|
});
|
|
2668
|
+
Object.defineProperty(subClass, "prototype", {
|
|
2669
|
+
writable: false
|
|
2670
|
+
});
|
|
2690
2671
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
2691
2672
|
}
|
|
2692
2673
|
|
|
@@ -2917,15 +2898,16 @@ var rateLimitThrottle = (function (axiosInstance) {
|
|
|
2917
2898
|
};
|
|
2918
2899
|
});
|
|
2919
2900
|
|
|
2920
|
-
var attempts = {};
|
|
2921
|
-
var networkErrorAttempts = 0;
|
|
2922
|
-
|
|
2923
2901
|
var delay = function delay(ms) {
|
|
2924
2902
|
return new Promise(function (resolve) {
|
|
2925
2903
|
setTimeout(resolve, ms);
|
|
2926
2904
|
});
|
|
2927
2905
|
};
|
|
2928
2906
|
|
|
2907
|
+
var defaultWait = function defaultWait(attempts) {
|
|
2908
|
+
return Math.pow(Math.SQRT2, attempts);
|
|
2909
|
+
};
|
|
2910
|
+
|
|
2929
2911
|
function rateLimit(instance) {
|
|
2930
2912
|
var maxRetry = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 5;
|
|
2931
2913
|
var _instance$defaults = instance.defaults,
|
|
@@ -2951,40 +2933,24 @@ function rateLimit(instance) {
|
|
|
2951
2933
|
|
|
2952
2934
|
if (!config || !instance.defaults.retryOnError) {
|
|
2953
2935
|
return Promise.reject(error);
|
|
2936
|
+
} // Retried already for max attempts
|
|
2937
|
+
|
|
2938
|
+
|
|
2939
|
+
var doneAttempts = config.attempts || 1;
|
|
2940
|
+
|
|
2941
|
+
if (doneAttempts > maxRetry) {
|
|
2942
|
+
error.attempts = config.attempts;
|
|
2943
|
+
return Promise.reject(error);
|
|
2954
2944
|
}
|
|
2955
2945
|
|
|
2956
2946
|
var retryErrorType = null;
|
|
2957
|
-
var wait =
|
|
2947
|
+
var wait = defaultWait(doneAttempts); // Errors without response did not receive anything from the server
|
|
2958
2948
|
|
|
2959
2949
|
if (!response) {
|
|
2960
2950
|
retryErrorType = 'Connection';
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
if (networkErrorAttempts > maxRetry) {
|
|
2964
|
-
error.attempts = networkErrorAttempts;
|
|
2965
|
-
return Promise.reject(error);
|
|
2966
|
-
}
|
|
2967
|
-
|
|
2968
|
-
wait = Math.pow(Math.SQRT2, networkErrorAttempts);
|
|
2969
|
-
response = {};
|
|
2970
|
-
} else {
|
|
2971
|
-
networkErrorAttempts = 0;
|
|
2972
|
-
}
|
|
2973
|
-
|
|
2974
|
-
if (response.status >= 500 && response.status < 600) {
|
|
2951
|
+
} else if (response.status >= 500 && response.status < 600) {
|
|
2975
2952
|
// 5** errors are server related
|
|
2976
2953
|
retryErrorType = "Server ".concat(response.status);
|
|
2977
|
-
var headers = response.headers || {};
|
|
2978
|
-
var requestId = headers['x-contentful-request-id'] || null;
|
|
2979
|
-
attempts[requestId] = attempts[requestId] || 0;
|
|
2980
|
-
attempts[requestId]++; // we reject if there are too many errors with the same request id or request id is not defined
|
|
2981
|
-
|
|
2982
|
-
if (attempts[requestId] > maxRetry || !requestId) {
|
|
2983
|
-
error.attempts = attempts[requestId];
|
|
2984
|
-
return Promise.reject(error);
|
|
2985
|
-
}
|
|
2986
|
-
|
|
2987
|
-
wait = Math.pow(Math.SQRT2, attempts[requestId]);
|
|
2988
2954
|
} else if (response.status === 429) {
|
|
2989
2955
|
// 429 errors are exceeded rate limit exceptions
|
|
2990
2956
|
retryErrorType = 'Rate limit'; // all headers are lowercased by axios https://github.com/mzabriskie/axios/issues/413
|
|
@@ -2997,7 +2963,9 @@ function rateLimit(instance) {
|
|
|
2997
2963
|
if (retryErrorType) {
|
|
2998
2964
|
// convert to ms and add jitter
|
|
2999
2965
|
wait = Math.floor(wait * 1000 + Math.random() * 200 + 500);
|
|
3000
|
-
instance.defaults.logHandler('warning', "".concat(retryErrorType, " error occurred. Waiting for ").concat(wait, " ms before retrying..."));
|
|
2966
|
+
instance.defaults.logHandler('warning', "".concat(retryErrorType, " error occurred. Waiting for ").concat(wait, " ms before retrying...")); // increase attempts counter
|
|
2967
|
+
|
|
2968
|
+
config.attempts = doneAttempts + 1;
|
|
3001
2969
|
/* Somehow between the interceptor and retrying the request the httpAgent/httpsAgent gets transformed from an Agent-like object
|
|
3002
2970
|
to a regular object, causing failures on retries after rate limits. Removing these properties here fixes the error, but retry
|
|
3003
2971
|
requests still use the original http/httpsAgent property */
|
|
@@ -3265,8 +3233,8 @@ function getBrowserOS() {
|
|
|
3265
3233
|
}
|
|
3266
3234
|
|
|
3267
3235
|
function getNodeOS() {
|
|
3268
|
-
var platform =
|
|
3269
|
-
var version =
|
|
3236
|
+
var platform = process.platform || 'linux';
|
|
3237
|
+
var version = process.version || '0.0.0';
|
|
3270
3238
|
var platformMap = {
|
|
3271
3239
|
android: 'Android',
|
|
3272
3240
|
aix: 'Linux',
|
|
@@ -3363,7 +3331,7 @@ function errorHandler(errorResponse) {
|
|
|
3363
3331
|
config.headers['Authorization'] = "Bearer ".concat(token);
|
|
3364
3332
|
}
|
|
3365
3333
|
|
|
3366
|
-
if (!
|
|
3334
|
+
if (!lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(response) || !lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) {
|
|
3367
3335
|
throw errorResponse;
|
|
3368
3336
|
}
|
|
3369
3337
|
|
|
@@ -3375,7 +3343,7 @@ function errorHandler(errorResponse) {
|
|
|
3375
3343
|
details: {}
|
|
3376
3344
|
};
|
|
3377
3345
|
|
|
3378
|
-
if (
|
|
3346
|
+
if (lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(config)) {
|
|
3379
3347
|
errorData.request = {
|
|
3380
3348
|
url: config.url,
|
|
3381
3349
|
headers: config.headers,
|
|
@@ -3384,7 +3352,7 @@ function errorHandler(errorResponse) {
|
|
|
3384
3352
|
};
|
|
3385
3353
|
}
|
|
3386
3354
|
|
|
3387
|
-
if (data &&
|
|
3355
|
+
if (data && lodash_isplainobject__WEBPACK_IMPORTED_MODULE_4___default()(data)) {
|
|
3388
3356
|
if ('requestId' in data) {
|
|
3389
3357
|
errorData.requestId = data.requestId || 'UNKNOWN';
|
|
3390
3358
|
}
|
|
@@ -3888,14 +3856,6 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
3888
3856
|
"use strict";
|
|
3889
3857
|
|
|
3890
3858
|
|
|
3891
|
-
/* globals
|
|
3892
|
-
AggregateError,
|
|
3893
|
-
Atomics,
|
|
3894
|
-
FinalizationRegistry,
|
|
3895
|
-
SharedArrayBuffer,
|
|
3896
|
-
WeakRef,
|
|
3897
|
-
*/
|
|
3898
|
-
|
|
3899
3859
|
var undefined;
|
|
3900
3860
|
|
|
3901
3861
|
var $SyntaxError = SyntaxError;
|
|
@@ -3905,8 +3865,7 @@ var $TypeError = TypeError;
|
|
|
3905
3865
|
// eslint-disable-next-line consistent-return
|
|
3906
3866
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
3907
3867
|
try {
|
|
3908
|
-
|
|
3909
|
-
return Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
3868
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
3910
3869
|
} catch (e) {}
|
|
3911
3870
|
};
|
|
3912
3871
|
|
|
@@ -3943,9 +3902,7 @@ var hasSymbols = __webpack_require__(/*! has-symbols */ "../node_modules/has-sym
|
|
|
3943
3902
|
|
|
3944
3903
|
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
3945
3904
|
|
|
3946
|
-
var
|
|
3947
|
-
var asyncGenFunctionPrototype = asyncGenFunction ? asyncGenFunction.prototype : undefined;
|
|
3948
|
-
var asyncGenPrototype = asyncGenFunctionPrototype ? asyncGenFunctionPrototype.prototype : undefined;
|
|
3905
|
+
var needsEval = {};
|
|
3949
3906
|
|
|
3950
3907
|
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
3951
3908
|
|
|
@@ -3955,10 +3912,10 @@ var INTRINSICS = {
|
|
|
3955
3912
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
3956
3913
|
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
3957
3914
|
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
3958
|
-
'%AsyncFunction%':
|
|
3959
|
-
'%AsyncGenerator%':
|
|
3960
|
-
'%AsyncGeneratorFunction%':
|
|
3961
|
-
'%AsyncIteratorPrototype%':
|
|
3915
|
+
'%AsyncFunction%': needsEval,
|
|
3916
|
+
'%AsyncGenerator%': needsEval,
|
|
3917
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
3918
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
3962
3919
|
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
3963
3920
|
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
3964
3921
|
'%Boolean%': Boolean,
|
|
@@ -3975,7 +3932,7 @@ var INTRINSICS = {
|
|
|
3975
3932
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
3976
3933
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
3977
3934
|
'%Function%': $Function,
|
|
3978
|
-
'%GeneratorFunction%':
|
|
3935
|
+
'%GeneratorFunction%': needsEval,
|
|
3979
3936
|
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
3980
3937
|
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
3981
3938
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
@@ -4016,6 +3973,31 @@ var INTRINSICS = {
|
|
|
4016
3973
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
4017
3974
|
};
|
|
4018
3975
|
|
|
3976
|
+
var doEval = function doEval(name) {
|
|
3977
|
+
var value;
|
|
3978
|
+
if (name === '%AsyncFunction%') {
|
|
3979
|
+
value = getEvalledConstructor('async function () {}');
|
|
3980
|
+
} else if (name === '%GeneratorFunction%') {
|
|
3981
|
+
value = getEvalledConstructor('function* () {}');
|
|
3982
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
3983
|
+
value = getEvalledConstructor('async function* () {}');
|
|
3984
|
+
} else if (name === '%AsyncGenerator%') {
|
|
3985
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
3986
|
+
if (fn) {
|
|
3987
|
+
value = fn.prototype;
|
|
3988
|
+
}
|
|
3989
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
3990
|
+
var gen = doEval('%AsyncGenerator%');
|
|
3991
|
+
if (gen) {
|
|
3992
|
+
value = getProto(gen.prototype);
|
|
3993
|
+
}
|
|
3994
|
+
}
|
|
3995
|
+
|
|
3996
|
+
INTRINSICS[name] = value;
|
|
3997
|
+
|
|
3998
|
+
return value;
|
|
3999
|
+
};
|
|
4000
|
+
|
|
4019
4001
|
var LEGACY_ALIASES = {
|
|
4020
4002
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
4021
4003
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
@@ -4075,11 +4057,19 @@ var hasOwn = __webpack_require__(/*! has */ "../node_modules/has/src/index.js");
|
|
|
4075
4057
|
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
4076
4058
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
4077
4059
|
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
4060
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
4078
4061
|
|
|
4079
4062
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
4080
4063
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
4081
4064
|
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
4082
4065
|
var stringToPath = function stringToPath(string) {
|
|
4066
|
+
var first = $strSlice(string, 0, 1);
|
|
4067
|
+
var last = $strSlice(string, -1);
|
|
4068
|
+
if (first === '%' && last !== '%') {
|
|
4069
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
4070
|
+
} else if (last === '%' && first !== '%') {
|
|
4071
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
4072
|
+
}
|
|
4083
4073
|
var result = [];
|
|
4084
4074
|
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
4085
4075
|
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
@@ -4098,6 +4088,9 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
|
4098
4088
|
|
|
4099
4089
|
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
4100
4090
|
var value = INTRINSICS[intrinsicName];
|
|
4091
|
+
if (value === needsEval) {
|
|
4092
|
+
value = doEval(intrinsicName);
|
|
4093
|
+
}
|
|
4101
4094
|
if (typeof value === 'undefined' && !allowMissing) {
|
|
4102
4095
|
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
4103
4096
|
}
|
|
@@ -4136,6 +4129,17 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
4136
4129
|
|
|
4137
4130
|
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
4138
4131
|
var part = parts[i];
|
|
4132
|
+
var first = $strSlice(part, 0, 1);
|
|
4133
|
+
var last = $strSlice(part, -1);
|
|
4134
|
+
if (
|
|
4135
|
+
(
|
|
4136
|
+
(first === '"' || first === "'" || first === '`')
|
|
4137
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
4138
|
+
)
|
|
4139
|
+
&& first !== last
|
|
4140
|
+
) {
|
|
4141
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
4142
|
+
}
|
|
4139
4143
|
if (part === 'constructor' || !isOwn) {
|
|
4140
4144
|
skipFurtherCaching = true;
|
|
4141
4145
|
}
|
|
@@ -4146,13 +4150,16 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
4146
4150
|
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
4147
4151
|
value = INTRINSICS[intrinsicRealName];
|
|
4148
4152
|
} else if (value != null) {
|
|
4153
|
+
if (!(part in value)) {
|
|
4154
|
+
if (!allowMissing) {
|
|
4155
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
4156
|
+
}
|
|
4157
|
+
return void undefined;
|
|
4158
|
+
}
|
|
4149
4159
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
4150
4160
|
var desc = $gOPD(value, part);
|
|
4151
4161
|
isOwn = !!desc;
|
|
4152
4162
|
|
|
4153
|
-
if (!allowMissing && !(part in value)) {
|
|
4154
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
4155
|
-
}
|
|
4156
4163
|
// By convention, when a data property is converted to an accessor
|
|
4157
4164
|
// property to emulate a data property that does not suffer from
|
|
4158
4165
|
// the override mistake, that accessor's getter is marked with
|
|
@@ -4189,9 +4196,9 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
4189
4196
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4190
4197
|
|
|
4191
4198
|
"use strict";
|
|
4192
|
-
/* WEBPACK VAR INJECTION */(function(global) {
|
|
4193
4199
|
|
|
4194
|
-
|
|
4200
|
+
|
|
4201
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
4195
4202
|
var hasSymbolSham = __webpack_require__(/*! ./shams */ "../node_modules/has-symbols/shams.js");
|
|
4196
4203
|
|
|
4197
4204
|
module.exports = function hasNativeSymbols() {
|
|
@@ -4203,7 +4210,6 @@ module.exports = function hasNativeSymbols() {
|
|
|
4203
4210
|
return hasSymbolSham();
|
|
4204
4211
|
};
|
|
4205
4212
|
|
|
4206
|
-
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "../node_modules/webpack/buildin/global.js")))
|
|
4207
4213
|
|
|
4208
4214
|
/***/ }),
|
|
4209
4215
|
|
|
@@ -4240,7 +4246,7 @@ module.exports = function hasSymbols() {
|
|
|
4240
4246
|
|
|
4241
4247
|
var symVal = 42;
|
|
4242
4248
|
obj[sym] = symVal;
|
|
4243
|
-
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
|
|
4249
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
4244
4250
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
4245
4251
|
|
|
4246
4252
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -4572,2151 +4578,1824 @@ module.exports = isString;
|
|
|
4572
4578
|
|
|
4573
4579
|
/***/ }),
|
|
4574
4580
|
|
|
4575
|
-
/***/ "../node_modules/
|
|
4576
|
-
|
|
4577
|
-
!*** ../node_modules/
|
|
4578
|
-
|
|
4581
|
+
/***/ "../node_modules/object-inspect/index.js":
|
|
4582
|
+
/*!***********************************************!*\
|
|
4583
|
+
!*** ../node_modules/object-inspect/index.js ***!
|
|
4584
|
+
\***********************************************/
|
|
4579
4585
|
/*! no static exports found */
|
|
4580
4586
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4581
4587
|
|
|
4582
|
-
|
|
4583
|
-
|
|
4584
|
-
|
|
4585
|
-
|
|
4586
|
-
|
|
4587
|
-
|
|
4588
|
-
|
|
4589
|
-
|
|
4590
|
-
|
|
4588
|
+
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
4589
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
4590
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
4591
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
|
4592
|
+
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
4593
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
4594
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
4595
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
|
4596
|
+
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
4597
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
4598
|
+
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
4599
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
4600
|
+
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
4601
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
4602
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
|
4603
|
+
var objectToString = Object.prototype.toString;
|
|
4604
|
+
var functionToString = Function.prototype.toString;
|
|
4605
|
+
var match = String.prototype.match;
|
|
4606
|
+
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
4607
|
+
var gOPS = Object.getOwnPropertySymbols;
|
|
4608
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
4609
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
4610
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
4591
4611
|
|
|
4592
|
-
|
|
4593
|
-
|
|
4594
|
-
|
|
4595
|
-
|
|
4612
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
4613
|
+
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
4614
|
+
? function (O) {
|
|
4615
|
+
return O.__proto__; // eslint-disable-line no-proto
|
|
4616
|
+
}
|
|
4617
|
+
: null
|
|
4618
|
+
);
|
|
4596
4619
|
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4620
|
+
var inspectCustom = __webpack_require__(/*! ./util.inspect */ 1).custom;
|
|
4621
|
+
var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
|
|
4622
|
+
var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;
|
|
4600
4623
|
|
|
4601
|
-
|
|
4624
|
+
module.exports = function inspect_(obj, options, depth, seen) {
|
|
4625
|
+
var opts = options || {};
|
|
4602
4626
|
|
|
4603
|
-
|
|
4604
|
-
|
|
4627
|
+
if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
|
|
4628
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
4629
|
+
}
|
|
4630
|
+
if (
|
|
4631
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
4632
|
+
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
4633
|
+
: opts.maxStringLength !== null
|
|
4634
|
+
)
|
|
4635
|
+
) {
|
|
4636
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
4637
|
+
}
|
|
4638
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
4639
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
4640
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
4641
|
+
}
|
|
4605
4642
|
|
|
4606
|
-
|
|
4607
|
-
|
|
4643
|
+
if (
|
|
4644
|
+
has(opts, 'indent')
|
|
4645
|
+
&& opts.indent !== null
|
|
4646
|
+
&& opts.indent !== '\t'
|
|
4647
|
+
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
4648
|
+
) {
|
|
4649
|
+
throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
|
|
4650
|
+
}
|
|
4608
4651
|
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4652
|
+
if (typeof obj === 'undefined') {
|
|
4653
|
+
return 'undefined';
|
|
4654
|
+
}
|
|
4655
|
+
if (obj === null) {
|
|
4656
|
+
return 'null';
|
|
4657
|
+
}
|
|
4658
|
+
if (typeof obj === 'boolean') {
|
|
4659
|
+
return obj ? 'true' : 'false';
|
|
4660
|
+
}
|
|
4614
4661
|
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4662
|
+
if (typeof obj === 'string') {
|
|
4663
|
+
return inspectString(obj, opts);
|
|
4664
|
+
}
|
|
4665
|
+
if (typeof obj === 'number') {
|
|
4666
|
+
if (obj === 0) {
|
|
4667
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
|
4668
|
+
}
|
|
4669
|
+
return String(obj);
|
|
4670
|
+
}
|
|
4671
|
+
if (typeof obj === 'bigint') {
|
|
4672
|
+
return String(obj) + 'n';
|
|
4673
|
+
}
|
|
4621
4674
|
|
|
4622
|
-
|
|
4623
|
-
|
|
4675
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
4676
|
+
if (typeof depth === 'undefined') { depth = 0; }
|
|
4677
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
4678
|
+
return isArray(obj) ? '[Array]' : '[Object]';
|
|
4679
|
+
}
|
|
4624
4680
|
|
|
4625
|
-
|
|
4681
|
+
var indent = getIndent(opts, depth);
|
|
4626
4682
|
|
|
4627
|
-
|
|
4628
|
-
|
|
4683
|
+
if (typeof seen === 'undefined') {
|
|
4684
|
+
seen = [];
|
|
4685
|
+
} else if (indexOf(seen, obj) >= 0) {
|
|
4686
|
+
return '[Circular]';
|
|
4687
|
+
}
|
|
4629
4688
|
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
const earliestTime = strictTicks.shift() + interval;
|
|
4636
|
-
|
|
4637
|
-
if (now >= earliestTime) {
|
|
4638
|
-
strictTicks.push(now);
|
|
4639
|
-
return 0;
|
|
4640
|
-
}
|
|
4641
|
-
|
|
4642
|
-
strictTicks.push(earliestTime);
|
|
4643
|
-
return earliestTime - now;
|
|
4644
|
-
}
|
|
4645
|
-
|
|
4646
|
-
const getDelay = strict ? strictDelay : windowedDelay;
|
|
4647
|
-
|
|
4648
|
-
return function_ => {
|
|
4649
|
-
const throttled = function (...args) {
|
|
4650
|
-
if (!throttled.isEnabled) {
|
|
4651
|
-
return (async () => function_.apply(this, args))();
|
|
4652
|
-
}
|
|
4653
|
-
|
|
4654
|
-
let timeout;
|
|
4655
|
-
return new Promise((resolve, reject) => {
|
|
4656
|
-
const execute = () => {
|
|
4657
|
-
resolve(function_.apply(this, args));
|
|
4658
|
-
queue.delete(timeout);
|
|
4659
|
-
};
|
|
4660
|
-
|
|
4661
|
-
timeout = setTimeout(execute, getDelay());
|
|
4662
|
-
|
|
4663
|
-
queue.set(timeout, reject);
|
|
4664
|
-
});
|
|
4665
|
-
};
|
|
4666
|
-
|
|
4667
|
-
throttled.abort = () => {
|
|
4668
|
-
for (const timeout of queue.keys()) {
|
|
4669
|
-
clearTimeout(timeout);
|
|
4670
|
-
queue.get(timeout)(new AbortError());
|
|
4671
|
-
}
|
|
4672
|
-
|
|
4673
|
-
queue.clear();
|
|
4674
|
-
strictTicks.splice(0, strictTicks.length);
|
|
4675
|
-
};
|
|
4676
|
-
|
|
4677
|
-
throttled.isEnabled = true;
|
|
4678
|
-
|
|
4679
|
-
return throttled;
|
|
4680
|
-
};
|
|
4681
|
-
};
|
|
4682
|
-
|
|
4683
|
-
module.exports = pThrottle;
|
|
4684
|
-
module.exports.AbortError = AbortError;
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
/***/ }),
|
|
4688
|
-
|
|
4689
|
-
/***/ "../node_modules/process/browser.js":
|
|
4690
|
-
/*!******************************************!*\
|
|
4691
|
-
!*** ../node_modules/process/browser.js ***!
|
|
4692
|
-
\******************************************/
|
|
4693
|
-
/*! no static exports found */
|
|
4694
|
-
/***/ (function(module, exports) {
|
|
4695
|
-
|
|
4696
|
-
// shim for using process in browser
|
|
4697
|
-
var process = module.exports = {};
|
|
4698
|
-
|
|
4699
|
-
// cached from whatever global is present so that test runners that stub it
|
|
4700
|
-
// don't break things. But we need to wrap it in a try catch in case it is
|
|
4701
|
-
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
4702
|
-
// function because try/catches deoptimize in certain engines.
|
|
4703
|
-
|
|
4704
|
-
var cachedSetTimeout;
|
|
4705
|
-
var cachedClearTimeout;
|
|
4706
|
-
|
|
4707
|
-
function defaultSetTimout() {
|
|
4708
|
-
throw new Error('setTimeout has not been defined');
|
|
4709
|
-
}
|
|
4710
|
-
function defaultClearTimeout () {
|
|
4711
|
-
throw new Error('clearTimeout has not been defined');
|
|
4712
|
-
}
|
|
4713
|
-
(function () {
|
|
4714
|
-
try {
|
|
4715
|
-
if (typeof setTimeout === 'function') {
|
|
4716
|
-
cachedSetTimeout = setTimeout;
|
|
4717
|
-
} else {
|
|
4718
|
-
cachedSetTimeout = defaultSetTimout;
|
|
4689
|
+
function inspect(value, from, noIndent) {
|
|
4690
|
+
if (from) {
|
|
4691
|
+
seen = seen.slice();
|
|
4692
|
+
seen.push(from);
|
|
4719
4693
|
}
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
|
|
4727
|
-
|
|
4694
|
+
if (noIndent) {
|
|
4695
|
+
var newOpts = {
|
|
4696
|
+
depth: opts.depth
|
|
4697
|
+
};
|
|
4698
|
+
if (has(opts, 'quoteStyle')) {
|
|
4699
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
|
4700
|
+
}
|
|
4701
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
|
4728
4702
|
}
|
|
4729
|
-
|
|
4730
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
4703
|
+
return inspect_(value, opts, depth + 1, seen);
|
|
4731
4704
|
}
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
return
|
|
4705
|
+
|
|
4706
|
+
if (typeof obj === 'function') {
|
|
4707
|
+
var name = nameOf(obj);
|
|
4708
|
+
var keys = arrObjKeys(obj, inspect);
|
|
4709
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
|
|
4737
4710
|
}
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
return setTimeout(fun, 0);
|
|
4711
|
+
if (isSymbol(obj)) {
|
|
4712
|
+
var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
4713
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
4742
4714
|
}
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
4749
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
4750
|
-
} catch(e){
|
|
4751
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
4752
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
4715
|
+
if (isElement(obj)) {
|
|
4716
|
+
var s = '<' + String(obj.nodeName).toLowerCase();
|
|
4717
|
+
var attrs = obj.attributes || [];
|
|
4718
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
4719
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
4753
4720
|
}
|
|
4721
|
+
s += '>';
|
|
4722
|
+
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
4723
|
+
s += '</' + String(obj.nodeName).toLowerCase() + '>';
|
|
4724
|
+
return s;
|
|
4754
4725
|
}
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
return
|
|
4726
|
+
if (isArray(obj)) {
|
|
4727
|
+
if (obj.length === 0) { return '[]'; }
|
|
4728
|
+
var xs = arrObjKeys(obj, inspect);
|
|
4729
|
+
if (indent && !singleLineValues(xs)) {
|
|
4730
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
|
4731
|
+
}
|
|
4732
|
+
return '[ ' + xs.join(', ') + ' ]';
|
|
4762
4733
|
}
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
return
|
|
4734
|
+
if (isError(obj)) {
|
|
4735
|
+
var parts = arrObjKeys(obj, inspect);
|
|
4736
|
+
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
4737
|
+
return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
|
|
4767
4738
|
}
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
4774
|
-
return cachedClearTimeout.call(null, marker);
|
|
4775
|
-
} catch (e){
|
|
4776
|
-
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
4777
|
-
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
4778
|
-
return cachedClearTimeout.call(this, marker);
|
|
4739
|
+
if (typeof obj === 'object' && customInspect) {
|
|
4740
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
|
|
4741
|
+
return obj[inspectSymbol]();
|
|
4742
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
4743
|
+
return obj.inspect();
|
|
4779
4744
|
}
|
|
4780
4745
|
}
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
|
|
4785
|
-
|
|
4786
|
-
|
|
4787
|
-
var currentQueue;
|
|
4788
|
-
var queueIndex = -1;
|
|
4789
|
-
|
|
4790
|
-
function cleanUpNextTick() {
|
|
4791
|
-
if (!draining || !currentQueue) {
|
|
4792
|
-
return;
|
|
4746
|
+
if (isMap(obj)) {
|
|
4747
|
+
var mapParts = [];
|
|
4748
|
+
mapForEach.call(obj, function (value, key) {
|
|
4749
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
4750
|
+
});
|
|
4751
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
4793
4752
|
}
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4753
|
+
if (isSet(obj)) {
|
|
4754
|
+
var setParts = [];
|
|
4755
|
+
setForEach.call(obj, function (value) {
|
|
4756
|
+
setParts.push(inspect(value, obj));
|
|
4757
|
+
});
|
|
4758
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
4799
4759
|
}
|
|
4800
|
-
if (
|
|
4801
|
-
|
|
4760
|
+
if (isWeakMap(obj)) {
|
|
4761
|
+
return weakCollectionOf('WeakMap');
|
|
4802
4762
|
}
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
function drainQueue() {
|
|
4806
|
-
if (draining) {
|
|
4807
|
-
return;
|
|
4763
|
+
if (isWeakSet(obj)) {
|
|
4764
|
+
return weakCollectionOf('WeakSet');
|
|
4808
4765
|
}
|
|
4809
|
-
|
|
4810
|
-
|
|
4811
|
-
|
|
4812
|
-
var len = queue.length;
|
|
4813
|
-
while(len) {
|
|
4814
|
-
currentQueue = queue;
|
|
4815
|
-
queue = [];
|
|
4816
|
-
while (++queueIndex < len) {
|
|
4817
|
-
if (currentQueue) {
|
|
4818
|
-
currentQueue[queueIndex].run();
|
|
4819
|
-
}
|
|
4820
|
-
}
|
|
4821
|
-
queueIndex = -1;
|
|
4822
|
-
len = queue.length;
|
|
4766
|
+
if (isWeakRef(obj)) {
|
|
4767
|
+
return weakCollectionOf('WeakRef');
|
|
4823
4768
|
}
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
runClearTimeout(timeout);
|
|
4827
|
-
}
|
|
4828
|
-
|
|
4829
|
-
process.nextTick = function (fun) {
|
|
4830
|
-
var args = new Array(arguments.length - 1);
|
|
4831
|
-
if (arguments.length > 1) {
|
|
4832
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
4833
|
-
args[i - 1] = arguments[i];
|
|
4834
|
-
}
|
|
4769
|
+
if (isNumber(obj)) {
|
|
4770
|
+
return markBoxed(inspect(Number(obj)));
|
|
4835
4771
|
}
|
|
4836
|
-
|
|
4837
|
-
|
|
4838
|
-
runTimeout(drainQueue);
|
|
4772
|
+
if (isBigInt(obj)) {
|
|
4773
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
4839
4774
|
}
|
|
4775
|
+
if (isBoolean(obj)) {
|
|
4776
|
+
return markBoxed(booleanValueOf.call(obj));
|
|
4777
|
+
}
|
|
4778
|
+
if (isString(obj)) {
|
|
4779
|
+
return markBoxed(inspect(String(obj)));
|
|
4780
|
+
}
|
|
4781
|
+
if (!isDate(obj) && !isRegExp(obj)) {
|
|
4782
|
+
var ys = arrObjKeys(obj, inspect);
|
|
4783
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
4784
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
4785
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
|
|
4786
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
4787
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
|
|
4788
|
+
if (ys.length === 0) { return tag + '{}'; }
|
|
4789
|
+
if (indent) {
|
|
4790
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
4791
|
+
}
|
|
4792
|
+
return tag + '{ ' + ys.join(', ') + ' }';
|
|
4793
|
+
}
|
|
4794
|
+
return String(obj);
|
|
4840
4795
|
};
|
|
4841
4796
|
|
|
4842
|
-
|
|
4843
|
-
|
|
4844
|
-
|
|
4845
|
-
|
|
4846
|
-
}
|
|
4847
|
-
Item.prototype.run = function () {
|
|
4848
|
-
this.fun.apply(null, this.array);
|
|
4849
|
-
};
|
|
4850
|
-
process.title = 'browser';
|
|
4851
|
-
process.browser = true;
|
|
4852
|
-
process.env = {};
|
|
4853
|
-
process.argv = [];
|
|
4854
|
-
process.version = ''; // empty string to avoid regexp issues
|
|
4855
|
-
process.versions = {};
|
|
4856
|
-
|
|
4857
|
-
function noop() {}
|
|
4797
|
+
function wrapQuotes(s, defaultStyle, opts) {
|
|
4798
|
+
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
|
4799
|
+
return quoteChar + s + quoteChar;
|
|
4800
|
+
}
|
|
4858
4801
|
|
|
4859
|
-
|
|
4860
|
-
|
|
4861
|
-
|
|
4862
|
-
process.off = noop;
|
|
4863
|
-
process.removeListener = noop;
|
|
4864
|
-
process.removeAllListeners = noop;
|
|
4865
|
-
process.emit = noop;
|
|
4866
|
-
process.prependListener = noop;
|
|
4867
|
-
process.prependOnceListener = noop;
|
|
4802
|
+
function quote(s) {
|
|
4803
|
+
return String(s).replace(/"/g, '"');
|
|
4804
|
+
}
|
|
4868
4805
|
|
|
4869
|
-
|
|
4806
|
+
function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4807
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4808
|
+
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4809
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4810
|
+
function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4811
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4812
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
4870
4813
|
|
|
4871
|
-
|
|
4872
|
-
|
|
4873
|
-
|
|
4814
|
+
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
4815
|
+
function isSymbol(obj) {
|
|
4816
|
+
if (hasShammedSymbols) {
|
|
4817
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
4818
|
+
}
|
|
4819
|
+
if (typeof obj === 'symbol') {
|
|
4820
|
+
return true;
|
|
4821
|
+
}
|
|
4822
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
4823
|
+
return false;
|
|
4824
|
+
}
|
|
4825
|
+
try {
|
|
4826
|
+
symToString.call(obj);
|
|
4827
|
+
return true;
|
|
4828
|
+
} catch (e) {}
|
|
4829
|
+
return false;
|
|
4830
|
+
}
|
|
4874
4831
|
|
|
4875
|
-
|
|
4876
|
-
|
|
4877
|
-
|
|
4878
|
-
}
|
|
4879
|
-
|
|
4832
|
+
function isBigInt(obj) {
|
|
4833
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
4834
|
+
return false;
|
|
4835
|
+
}
|
|
4836
|
+
try {
|
|
4837
|
+
bigIntValueOf.call(obj);
|
|
4838
|
+
return true;
|
|
4839
|
+
} catch (e) {}
|
|
4840
|
+
return false;
|
|
4841
|
+
}
|
|
4880
4842
|
|
|
4843
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
4844
|
+
function has(obj, key) {
|
|
4845
|
+
return hasOwn.call(obj, key);
|
|
4846
|
+
}
|
|
4881
4847
|
|
|
4882
|
-
|
|
4848
|
+
function toStr(obj) {
|
|
4849
|
+
return objectToString.call(obj);
|
|
4850
|
+
}
|
|
4883
4851
|
|
|
4884
|
-
|
|
4885
|
-
|
|
4886
|
-
|
|
4887
|
-
|
|
4888
|
-
|
|
4889
|
-
|
|
4852
|
+
function nameOf(f) {
|
|
4853
|
+
if (f.name) { return f.name; }
|
|
4854
|
+
var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
4855
|
+
if (m) { return m[1]; }
|
|
4856
|
+
return null;
|
|
4857
|
+
}
|
|
4890
4858
|
|
|
4891
|
-
|
|
4859
|
+
function indexOf(xs, x) {
|
|
4860
|
+
if (xs.indexOf) { return xs.indexOf(x); }
|
|
4861
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
4862
|
+
if (xs[i] === x) { return i; }
|
|
4863
|
+
}
|
|
4864
|
+
return -1;
|
|
4865
|
+
}
|
|
4892
4866
|
|
|
4867
|
+
function isMap(x) {
|
|
4868
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
|
4869
|
+
return false;
|
|
4870
|
+
}
|
|
4871
|
+
try {
|
|
4872
|
+
mapSize.call(x);
|
|
4873
|
+
try {
|
|
4874
|
+
setSize.call(x);
|
|
4875
|
+
} catch (s) {
|
|
4876
|
+
return true;
|
|
4877
|
+
}
|
|
4878
|
+
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
4879
|
+
} catch (e) {}
|
|
4880
|
+
return false;
|
|
4881
|
+
}
|
|
4893
4882
|
|
|
4894
|
-
|
|
4895
|
-
|
|
4883
|
+
function isWeakMap(x) {
|
|
4884
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
4885
|
+
return false;
|
|
4886
|
+
}
|
|
4887
|
+
try {
|
|
4888
|
+
weakMapHas.call(x, weakMapHas);
|
|
4889
|
+
try {
|
|
4890
|
+
weakSetHas.call(x, weakSetHas);
|
|
4891
|
+
} catch (s) {
|
|
4892
|
+
return true;
|
|
4893
|
+
}
|
|
4894
|
+
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
4895
|
+
} catch (e) {}
|
|
4896
|
+
return false;
|
|
4897
|
+
}
|
|
4896
4898
|
|
|
4897
|
-
|
|
4898
|
-
|
|
4899
|
-
|
|
4900
|
-
}
|
|
4899
|
+
function isWeakRef(x) {
|
|
4900
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
4901
|
+
return false;
|
|
4902
|
+
}
|
|
4903
|
+
try {
|
|
4904
|
+
weakRefDeref.call(x);
|
|
4905
|
+
return true;
|
|
4906
|
+
} catch (e) {}
|
|
4907
|
+
return false;
|
|
4908
|
+
}
|
|
4901
4909
|
|
|
4902
|
-
|
|
4903
|
-
'
|
|
4904
|
-
|
|
4905
|
-
|
|
4906
|
-
|
|
4907
|
-
|
|
4908
|
-
|
|
4909
|
-
|
|
4910
|
+
function isSet(x) {
|
|
4911
|
+
if (!setSize || !x || typeof x !== 'object') {
|
|
4912
|
+
return false;
|
|
4913
|
+
}
|
|
4914
|
+
try {
|
|
4915
|
+
setSize.call(x);
|
|
4916
|
+
try {
|
|
4917
|
+
mapSize.call(x);
|
|
4918
|
+
} catch (m) {
|
|
4919
|
+
return true;
|
|
4910
4920
|
}
|
|
4911
|
-
|
|
4912
|
-
|
|
4913
|
-
|
|
4914
|
-
}
|
|
4921
|
+
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
4922
|
+
} catch (e) {}
|
|
4923
|
+
return false;
|
|
4924
|
+
}
|
|
4915
4925
|
|
|
4926
|
+
function isWeakSet(x) {
|
|
4927
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
4928
|
+
return false;
|
|
4929
|
+
}
|
|
4930
|
+
try {
|
|
4931
|
+
weakSetHas.call(x, weakSetHas);
|
|
4932
|
+
try {
|
|
4933
|
+
weakMapHas.call(x, weakMapHas);
|
|
4934
|
+
} catch (s) {
|
|
4935
|
+
return true;
|
|
4936
|
+
}
|
|
4937
|
+
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
4938
|
+
} catch (e) {}
|
|
4939
|
+
return false;
|
|
4940
|
+
}
|
|
4916
4941
|
|
|
4917
|
-
|
|
4942
|
+
function isElement(x) {
|
|
4943
|
+
if (!x || typeof x !== 'object') { return false; }
|
|
4944
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
4945
|
+
return true;
|
|
4946
|
+
}
|
|
4947
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
4948
|
+
}
|
|
4918
4949
|
|
|
4919
|
-
|
|
4920
|
-
|
|
4921
|
-
|
|
4922
|
-
|
|
4923
|
-
|
|
4924
|
-
|
|
4950
|
+
function inspectString(str, opts) {
|
|
4951
|
+
if (str.length > opts.maxStringLength) {
|
|
4952
|
+
var remaining = str.length - opts.maxStringLength;
|
|
4953
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
4954
|
+
return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
|
|
4955
|
+
}
|
|
4956
|
+
// eslint-disable-next-line no-control-regex
|
|
4957
|
+
var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
|
|
4958
|
+
return wrapQuotes(s, 'single', opts);
|
|
4959
|
+
}
|
|
4925
4960
|
|
|
4926
|
-
|
|
4961
|
+
function lowbyte(c) {
|
|
4962
|
+
var n = c.charCodeAt(0);
|
|
4963
|
+
var x = {
|
|
4964
|
+
8: 'b',
|
|
4965
|
+
9: 't',
|
|
4966
|
+
10: 'n',
|
|
4967
|
+
12: 'f',
|
|
4968
|
+
13: 'r'
|
|
4969
|
+
}[n];
|
|
4970
|
+
if (x) { return '\\' + x; }
|
|
4971
|
+
return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
|
|
4972
|
+
}
|
|
4927
4973
|
|
|
4974
|
+
function markBoxed(str) {
|
|
4975
|
+
return 'Object(' + str + ')';
|
|
4976
|
+
}
|
|
4928
4977
|
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4978
|
+
function weakCollectionOf(type) {
|
|
4979
|
+
return type + ' { ? }';
|
|
4980
|
+
}
|
|
4932
4981
|
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4982
|
+
function collectionOf(type, size, entries, indent) {
|
|
4983
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
|
|
4984
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
4985
|
+
}
|
|
4986
|
+
|
|
4987
|
+
function singleLineValues(xs) {
|
|
4988
|
+
for (var i = 0; i < xs.length; i++) {
|
|
4989
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
|
4990
|
+
return false;
|
|
4991
|
+
}
|
|
4992
|
+
}
|
|
4993
|
+
return true;
|
|
4994
|
+
}
|
|
4995
|
+
|
|
4996
|
+
function getIndent(opts, depth) {
|
|
4997
|
+
var baseIndent;
|
|
4998
|
+
if (opts.indent === '\t') {
|
|
4999
|
+
baseIndent = '\t';
|
|
5000
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
5001
|
+
baseIndent = Array(opts.indent + 1).join(' ');
|
|
5002
|
+
} else {
|
|
5003
|
+
return null;
|
|
5004
|
+
}
|
|
5005
|
+
return {
|
|
5006
|
+
base: baseIndent,
|
|
5007
|
+
prev: Array(depth + 1).join(baseIndent)
|
|
5008
|
+
};
|
|
5009
|
+
}
|
|
5010
|
+
|
|
5011
|
+
function indentedJoin(xs, indent) {
|
|
5012
|
+
if (xs.length === 0) { return ''; }
|
|
5013
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
5014
|
+
return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
|
|
5015
|
+
}
|
|
5016
|
+
|
|
5017
|
+
function arrObjKeys(obj, inspect) {
|
|
5018
|
+
var isArr = isArray(obj);
|
|
5019
|
+
var xs = [];
|
|
5020
|
+
if (isArr) {
|
|
5021
|
+
xs.length = obj.length;
|
|
5022
|
+
for (var i = 0; i < obj.length; i++) {
|
|
5023
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
5024
|
+
}
|
|
5025
|
+
}
|
|
5026
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
5027
|
+
var symMap;
|
|
5028
|
+
if (hasShammedSymbols) {
|
|
5029
|
+
symMap = {};
|
|
5030
|
+
for (var k = 0; k < syms.length; k++) {
|
|
5031
|
+
symMap['$' + syms[k]] = syms[k];
|
|
5032
|
+
}
|
|
5033
|
+
}
|
|
5034
|
+
|
|
5035
|
+
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
5036
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
5037
|
+
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
5038
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
5039
|
+
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
5040
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
5041
|
+
} else if ((/[^\w$]/).test(key)) {
|
|
5042
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
5043
|
+
} else {
|
|
5044
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
5045
|
+
}
|
|
5046
|
+
}
|
|
5047
|
+
if (typeof gOPS === 'function') {
|
|
5048
|
+
for (var j = 0; j < syms.length; j++) {
|
|
5049
|
+
if (isEnumerable.call(obj, syms[j])) {
|
|
5050
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
5051
|
+
}
|
|
5052
|
+
}
|
|
5053
|
+
}
|
|
5054
|
+
return xs;
|
|
5055
|
+
}
|
|
4938
5056
|
|
|
4939
5057
|
|
|
4940
5058
|
/***/ }),
|
|
4941
5059
|
|
|
4942
|
-
/***/ "../node_modules/
|
|
4943
|
-
|
|
4944
|
-
!*** ../node_modules/
|
|
4945
|
-
|
|
5060
|
+
/***/ "../node_modules/p-throttle/index.js":
|
|
5061
|
+
/*!*******************************************!*\
|
|
5062
|
+
!*** ../node_modules/p-throttle/index.js ***!
|
|
5063
|
+
\*******************************************/
|
|
4946
5064
|
/*! no static exports found */
|
|
4947
5065
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4948
5066
|
|
|
4949
5067
|
"use strict";
|
|
4950
5068
|
|
|
4951
5069
|
|
|
4952
|
-
|
|
5070
|
+
class AbortError extends Error {
|
|
5071
|
+
constructor() {
|
|
5072
|
+
super('Throttled function aborted');
|
|
5073
|
+
this.name = 'AbortError';
|
|
5074
|
+
}
|
|
5075
|
+
}
|
|
4953
5076
|
|
|
4954
|
-
|
|
4955
|
-
|
|
5077
|
+
const pThrottle = ({limit, interval, strict}) => {
|
|
5078
|
+
if (!Number.isFinite(limit)) {
|
|
5079
|
+
throw new TypeError('Expected `limit` to be a finite number');
|
|
5080
|
+
}
|
|
4956
5081
|
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
allowSparse: false,
|
|
4961
|
-
arrayLimit: 20,
|
|
4962
|
-
charset: 'utf-8',
|
|
4963
|
-
charsetSentinel: false,
|
|
4964
|
-
comma: false,
|
|
4965
|
-
decoder: utils.decode,
|
|
4966
|
-
delimiter: '&',
|
|
4967
|
-
depth: 5,
|
|
4968
|
-
ignoreQueryPrefix: false,
|
|
4969
|
-
interpretNumericEntities: false,
|
|
4970
|
-
parameterLimit: 1000,
|
|
4971
|
-
parseArrays: true,
|
|
4972
|
-
plainObjects: false,
|
|
4973
|
-
strictNullHandling: false
|
|
4974
|
-
};
|
|
5082
|
+
if (!Number.isFinite(interval)) {
|
|
5083
|
+
throw new TypeError('Expected `interval` to be a finite number');
|
|
5084
|
+
}
|
|
4975
5085
|
|
|
4976
|
-
|
|
4977
|
-
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
4978
|
-
return String.fromCharCode(parseInt(numberStr, 10));
|
|
4979
|
-
});
|
|
4980
|
-
};
|
|
5086
|
+
const queue = new Map();
|
|
4981
5087
|
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
return val.split(',');
|
|
4985
|
-
}
|
|
5088
|
+
let currentTick = 0;
|
|
5089
|
+
let activeCount = 0;
|
|
4986
5090
|
|
|
4987
|
-
|
|
4988
|
-
|
|
5091
|
+
function windowedDelay() {
|
|
5092
|
+
const now = Date.now();
|
|
4989
5093
|
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
5094
|
+
if ((now - currentTick) > interval) {
|
|
5095
|
+
activeCount = 1;
|
|
5096
|
+
currentTick = now;
|
|
5097
|
+
return 0;
|
|
5098
|
+
}
|
|
4996
5099
|
|
|
4997
|
-
|
|
4998
|
-
|
|
5100
|
+
if (activeCount < limit) {
|
|
5101
|
+
activeCount++;
|
|
5102
|
+
} else {
|
|
5103
|
+
currentTick += interval;
|
|
5104
|
+
activeCount = 1;
|
|
5105
|
+
}
|
|
4999
5106
|
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
5003
|
-
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
5004
|
-
var parts = cleanStr.split(options.delimiter, limit);
|
|
5005
|
-
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
5006
|
-
var i;
|
|
5107
|
+
return currentTick - now;
|
|
5108
|
+
}
|
|
5007
5109
|
|
|
5008
|
-
|
|
5009
|
-
if (options.charsetSentinel) {
|
|
5010
|
-
for (i = 0; i < parts.length; ++i) {
|
|
5011
|
-
if (parts[i].indexOf('utf8=') === 0) {
|
|
5012
|
-
if (parts[i] === charsetSentinel) {
|
|
5013
|
-
charset = 'utf-8';
|
|
5014
|
-
} else if (parts[i] === isoSentinel) {
|
|
5015
|
-
charset = 'iso-8859-1';
|
|
5016
|
-
}
|
|
5017
|
-
skipIndex = i;
|
|
5018
|
-
i = parts.length; // The eslint settings do not allow break;
|
|
5019
|
-
}
|
|
5020
|
-
}
|
|
5021
|
-
}
|
|
5110
|
+
const strictTicks = [];
|
|
5022
5111
|
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
continue;
|
|
5026
|
-
}
|
|
5027
|
-
var part = parts[i];
|
|
5112
|
+
function strictDelay() {
|
|
5113
|
+
const now = Date.now();
|
|
5028
5114
|
|
|
5029
|
-
|
|
5030
|
-
|
|
5115
|
+
if (strictTicks.length < limit) {
|
|
5116
|
+
strictTicks.push(now);
|
|
5117
|
+
return 0;
|
|
5118
|
+
}
|
|
5031
5119
|
|
|
5032
|
-
|
|
5033
|
-
if (pos === -1) {
|
|
5034
|
-
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
5035
|
-
val = options.strictNullHandling ? null : '';
|
|
5036
|
-
} else {
|
|
5037
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
5038
|
-
val = utils.maybeMap(
|
|
5039
|
-
parseArrayValue(part.slice(pos + 1), options),
|
|
5040
|
-
function (encodedVal) {
|
|
5041
|
-
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
5042
|
-
}
|
|
5043
|
-
);
|
|
5044
|
-
}
|
|
5120
|
+
const earliestTime = strictTicks.shift() + interval;
|
|
5045
5121
|
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5122
|
+
if (now >= earliestTime) {
|
|
5123
|
+
strictTicks.push(now);
|
|
5124
|
+
return 0;
|
|
5125
|
+
}
|
|
5049
5126
|
|
|
5050
|
-
|
|
5051
|
-
|
|
5052
|
-
|
|
5127
|
+
strictTicks.push(earliestTime);
|
|
5128
|
+
return earliestTime - now;
|
|
5129
|
+
}
|
|
5053
5130
|
|
|
5054
|
-
|
|
5055
|
-
obj[key] = utils.combine(obj[key], val);
|
|
5056
|
-
} else {
|
|
5057
|
-
obj[key] = val;
|
|
5058
|
-
}
|
|
5059
|
-
}
|
|
5131
|
+
const getDelay = strict ? strictDelay : windowedDelay;
|
|
5060
5132
|
|
|
5061
|
-
|
|
5062
|
-
|
|
5133
|
+
return function_ => {
|
|
5134
|
+
const throttled = function (...args) {
|
|
5135
|
+
if (!throttled.isEnabled) {
|
|
5136
|
+
return (async () => function_.apply(this, args))();
|
|
5137
|
+
}
|
|
5063
5138
|
|
|
5064
|
-
|
|
5065
|
-
|
|
5139
|
+
let timeout;
|
|
5140
|
+
return new Promise((resolve, reject) => {
|
|
5141
|
+
const execute = () => {
|
|
5142
|
+
resolve(function_.apply(this, args));
|
|
5143
|
+
queue.delete(timeout);
|
|
5144
|
+
};
|
|
5066
5145
|
|
|
5067
|
-
|
|
5068
|
-
var obj;
|
|
5069
|
-
var root = chain[i];
|
|
5146
|
+
timeout = setTimeout(execute, getDelay());
|
|
5070
5147
|
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
obj = options.plainObjects ? Object.create(null) : {};
|
|
5075
|
-
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
5076
|
-
var index = parseInt(cleanRoot, 10);
|
|
5077
|
-
if (!options.parseArrays && cleanRoot === '') {
|
|
5078
|
-
obj = { 0: leaf };
|
|
5079
|
-
} else if (
|
|
5080
|
-
!isNaN(index)
|
|
5081
|
-
&& root !== cleanRoot
|
|
5082
|
-
&& String(index) === cleanRoot
|
|
5083
|
-
&& index >= 0
|
|
5084
|
-
&& (options.parseArrays && index <= options.arrayLimit)
|
|
5085
|
-
) {
|
|
5086
|
-
obj = [];
|
|
5087
|
-
obj[index] = leaf;
|
|
5088
|
-
} else {
|
|
5089
|
-
obj[cleanRoot] = leaf;
|
|
5090
|
-
}
|
|
5091
|
-
}
|
|
5148
|
+
queue.set(timeout, reject);
|
|
5149
|
+
});
|
|
5150
|
+
};
|
|
5092
5151
|
|
|
5093
|
-
|
|
5094
|
-
|
|
5152
|
+
throttled.abort = () => {
|
|
5153
|
+
for (const timeout of queue.keys()) {
|
|
5154
|
+
clearTimeout(timeout);
|
|
5155
|
+
queue.get(timeout)(new AbortError());
|
|
5156
|
+
}
|
|
5095
5157
|
|
|
5096
|
-
|
|
5158
|
+
queue.clear();
|
|
5159
|
+
strictTicks.splice(0, strictTicks.length);
|
|
5160
|
+
};
|
|
5161
|
+
|
|
5162
|
+
throttled.isEnabled = true;
|
|
5163
|
+
|
|
5164
|
+
return throttled;
|
|
5165
|
+
};
|
|
5097
5166
|
};
|
|
5098
5167
|
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
return;
|
|
5102
|
-
}
|
|
5168
|
+
module.exports = pThrottle;
|
|
5169
|
+
module.exports.AbortError = AbortError;
|
|
5103
5170
|
|
|
5104
|
-
// Transform dot notation to bracket notation
|
|
5105
|
-
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
5106
5171
|
|
|
5107
|
-
|
|
5172
|
+
/***/ }),
|
|
5108
5173
|
|
|
5109
|
-
|
|
5110
|
-
|
|
5174
|
+
/***/ "../node_modules/process/browser.js":
|
|
5175
|
+
/*!******************************************!*\
|
|
5176
|
+
!*** ../node_modules/process/browser.js ***!
|
|
5177
|
+
\******************************************/
|
|
5178
|
+
/*! no static exports found */
|
|
5179
|
+
/***/ (function(module, exports) {
|
|
5111
5180
|
|
|
5112
|
-
|
|
5181
|
+
// shim for using process in browser
|
|
5182
|
+
var process = module.exports = {};
|
|
5113
5183
|
|
|
5114
|
-
|
|
5115
|
-
|
|
5184
|
+
// cached from whatever global is present so that test runners that stub it
|
|
5185
|
+
// don't break things. But we need to wrap it in a try catch in case it is
|
|
5186
|
+
// wrapped in strict mode code which doesn't define any globals. It's inside a
|
|
5187
|
+
// function because try/catches deoptimize in certain engines.
|
|
5116
5188
|
|
|
5117
|
-
|
|
5189
|
+
var cachedSetTimeout;
|
|
5190
|
+
var cachedClearTimeout;
|
|
5118
5191
|
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5192
|
+
function defaultSetTimout() {
|
|
5193
|
+
throw new Error('setTimeout has not been defined');
|
|
5194
|
+
}
|
|
5195
|
+
function defaultClearTimeout () {
|
|
5196
|
+
throw new Error('clearTimeout has not been defined');
|
|
5197
|
+
}
|
|
5198
|
+
(function () {
|
|
5199
|
+
try {
|
|
5200
|
+
if (typeof setTimeout === 'function') {
|
|
5201
|
+
cachedSetTimeout = setTimeout;
|
|
5202
|
+
} else {
|
|
5203
|
+
cachedSetTimeout = defaultSetTimout;
|
|
5126
5204
|
}
|
|
5127
|
-
|
|
5128
|
-
|
|
5205
|
+
} catch (e) {
|
|
5206
|
+
cachedSetTimeout = defaultSetTimout;
|
|
5129
5207
|
}
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
i += 1;
|
|
5136
|
-
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
5137
|
-
if (!options.allowPrototypes) {
|
|
5138
|
-
return;
|
|
5139
|
-
}
|
|
5208
|
+
try {
|
|
5209
|
+
if (typeof clearTimeout === 'function') {
|
|
5210
|
+
cachedClearTimeout = clearTimeout;
|
|
5211
|
+
} else {
|
|
5212
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
5140
5213
|
}
|
|
5141
|
-
|
|
5214
|
+
} catch (e) {
|
|
5215
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
5142
5216
|
}
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5217
|
+
} ())
|
|
5218
|
+
function runTimeout(fun) {
|
|
5219
|
+
if (cachedSetTimeout === setTimeout) {
|
|
5220
|
+
//normal enviroments in sane situations
|
|
5221
|
+
return setTimeout(fun, 0);
|
|
5222
|
+
}
|
|
5223
|
+
// if setTimeout wasn't available but was latter defined
|
|
5224
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
5225
|
+
cachedSetTimeout = setTimeout;
|
|
5226
|
+
return setTimeout(fun, 0);
|
|
5227
|
+
}
|
|
5228
|
+
try {
|
|
5229
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
5230
|
+
return cachedSetTimeout(fun, 0);
|
|
5231
|
+
} catch(e){
|
|
5232
|
+
try {
|
|
5233
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
5234
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
5235
|
+
} catch(e){
|
|
5236
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error
|
|
5237
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
5238
|
+
}
|
|
5148
5239
|
}
|
|
5149
5240
|
|
|
5150
|
-
return parseObject(keys, val, options, valuesParsed);
|
|
5151
|
-
};
|
|
5152
5241
|
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5242
|
+
}
|
|
5243
|
+
function runClearTimeout(marker) {
|
|
5244
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
5245
|
+
//normal enviroments in sane situations
|
|
5246
|
+
return clearTimeout(marker);
|
|
5156
5247
|
}
|
|
5157
|
-
|
|
5158
|
-
if (
|
|
5159
|
-
|
|
5248
|
+
// if clearTimeout wasn't available but was latter defined
|
|
5249
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
5250
|
+
cachedClearTimeout = clearTimeout;
|
|
5251
|
+
return clearTimeout(marker);
|
|
5160
5252
|
}
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5253
|
+
try {
|
|
5254
|
+
// when when somebody has screwed with setTimeout but no I.E. maddness
|
|
5255
|
+
return cachedClearTimeout(marker);
|
|
5256
|
+
} catch (e){
|
|
5257
|
+
try {
|
|
5258
|
+
// When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally
|
|
5259
|
+
return cachedClearTimeout.call(null, marker);
|
|
5260
|
+
} catch (e){
|
|
5261
|
+
// same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.
|
|
5262
|
+
// Some versions of I.E. have different rules for clearTimeout vs setTimeout
|
|
5263
|
+
return cachedClearTimeout.call(this, marker);
|
|
5264
|
+
}
|
|
5164
5265
|
}
|
|
5165
|
-
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
5166
|
-
|
|
5167
|
-
return {
|
|
5168
|
-
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
5169
|
-
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
5170
|
-
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
5171
|
-
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
5172
|
-
charset: charset,
|
|
5173
|
-
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
5174
|
-
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
5175
|
-
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
5176
|
-
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
5177
|
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
5178
|
-
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
5179
|
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
5180
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
5181
|
-
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
5182
|
-
parseArrays: opts.parseArrays !== false,
|
|
5183
|
-
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
5184
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
5185
|
-
};
|
|
5186
|
-
};
|
|
5187
5266
|
|
|
5188
|
-
module.exports = function (str, opts) {
|
|
5189
|
-
var options = normalizeParseOptions(opts);
|
|
5190
5267
|
|
|
5191
|
-
if (str === '' || str === null || typeof str === 'undefined') {
|
|
5192
|
-
return options.plainObjects ? Object.create(null) : {};
|
|
5193
|
-
}
|
|
5194
5268
|
|
|
5195
|
-
|
|
5196
|
-
|
|
5269
|
+
}
|
|
5270
|
+
var queue = [];
|
|
5271
|
+
var draining = false;
|
|
5272
|
+
var currentQueue;
|
|
5273
|
+
var queueIndex = -1;
|
|
5197
5274
|
|
|
5198
|
-
|
|
5275
|
+
function cleanUpNextTick() {
|
|
5276
|
+
if (!draining || !currentQueue) {
|
|
5277
|
+
return;
|
|
5278
|
+
}
|
|
5279
|
+
draining = false;
|
|
5280
|
+
if (currentQueue.length) {
|
|
5281
|
+
queue = currentQueue.concat(queue);
|
|
5282
|
+
} else {
|
|
5283
|
+
queueIndex = -1;
|
|
5284
|
+
}
|
|
5285
|
+
if (queue.length) {
|
|
5286
|
+
drainQueue();
|
|
5287
|
+
}
|
|
5288
|
+
}
|
|
5199
5289
|
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
5204
|
-
obj = utils.merge(obj, newObj, options);
|
|
5290
|
+
function drainQueue() {
|
|
5291
|
+
if (draining) {
|
|
5292
|
+
return;
|
|
5205
5293
|
}
|
|
5294
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
5295
|
+
draining = true;
|
|
5206
5296
|
|
|
5207
|
-
|
|
5208
|
-
|
|
5297
|
+
var len = queue.length;
|
|
5298
|
+
while(len) {
|
|
5299
|
+
currentQueue = queue;
|
|
5300
|
+
queue = [];
|
|
5301
|
+
while (++queueIndex < len) {
|
|
5302
|
+
if (currentQueue) {
|
|
5303
|
+
currentQueue[queueIndex].run();
|
|
5304
|
+
}
|
|
5305
|
+
}
|
|
5306
|
+
queueIndex = -1;
|
|
5307
|
+
len = queue.length;
|
|
5209
5308
|
}
|
|
5309
|
+
currentQueue = null;
|
|
5310
|
+
draining = false;
|
|
5311
|
+
runClearTimeout(timeout);
|
|
5312
|
+
}
|
|
5210
5313
|
|
|
5211
|
-
|
|
5314
|
+
process.nextTick = function (fun) {
|
|
5315
|
+
var args = new Array(arguments.length - 1);
|
|
5316
|
+
if (arguments.length > 1) {
|
|
5317
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
5318
|
+
args[i - 1] = arguments[i];
|
|
5319
|
+
}
|
|
5320
|
+
}
|
|
5321
|
+
queue.push(new Item(fun, args));
|
|
5322
|
+
if (queue.length === 1 && !draining) {
|
|
5323
|
+
runTimeout(drainQueue);
|
|
5324
|
+
}
|
|
5212
5325
|
};
|
|
5213
5326
|
|
|
5327
|
+
// v8 likes predictible objects
|
|
5328
|
+
function Item(fun, array) {
|
|
5329
|
+
this.fun = fun;
|
|
5330
|
+
this.array = array;
|
|
5331
|
+
}
|
|
5332
|
+
Item.prototype.run = function () {
|
|
5333
|
+
this.fun.apply(null, this.array);
|
|
5334
|
+
};
|
|
5335
|
+
process.title = 'browser';
|
|
5336
|
+
process.browser = true;
|
|
5337
|
+
process.env = {};
|
|
5338
|
+
process.argv = [];
|
|
5339
|
+
process.version = ''; // empty string to avoid regexp issues
|
|
5340
|
+
process.versions = {};
|
|
5214
5341
|
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5342
|
+
function noop() {}
|
|
5343
|
+
|
|
5344
|
+
process.on = noop;
|
|
5345
|
+
process.addListener = noop;
|
|
5346
|
+
process.once = noop;
|
|
5347
|
+
process.off = noop;
|
|
5348
|
+
process.removeListener = noop;
|
|
5349
|
+
process.removeAllListeners = noop;
|
|
5350
|
+
process.emit = noop;
|
|
5351
|
+
process.prependListener = noop;
|
|
5352
|
+
process.prependOnceListener = noop;
|
|
5353
|
+
|
|
5354
|
+
process.listeners = function (name) { return [] }
|
|
5355
|
+
|
|
5356
|
+
process.binding = function (name) {
|
|
5357
|
+
throw new Error('process.binding is not supported');
|
|
5358
|
+
};
|
|
5359
|
+
|
|
5360
|
+
process.cwd = function () { return '/' };
|
|
5361
|
+
process.chdir = function (dir) {
|
|
5362
|
+
throw new Error('process.chdir is not supported');
|
|
5363
|
+
};
|
|
5364
|
+
process.umask = function() { return 0; };
|
|
5365
|
+
|
|
5366
|
+
|
|
5367
|
+
/***/ }),
|
|
5368
|
+
|
|
5369
|
+
/***/ "../node_modules/qs/lib/formats.js":
|
|
5370
|
+
/*!*****************************************!*\
|
|
5371
|
+
!*** ../node_modules/qs/lib/formats.js ***!
|
|
5372
|
+
\*****************************************/
|
|
5373
|
+
/*! no static exports found */
|
|
5374
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5223
5375
|
|
|
5224
5376
|
"use strict";
|
|
5225
5377
|
|
|
5226
5378
|
|
|
5227
|
-
var
|
|
5228
|
-
var
|
|
5229
|
-
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
5230
|
-
var has = Object.prototype.hasOwnProperty;
|
|
5379
|
+
var replace = String.prototype.replace;
|
|
5380
|
+
var percentTwenties = /%20/g;
|
|
5231
5381
|
|
|
5232
|
-
var
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5382
|
+
var Format = {
|
|
5383
|
+
RFC1738: 'RFC1738',
|
|
5384
|
+
RFC3986: 'RFC3986'
|
|
5385
|
+
};
|
|
5386
|
+
|
|
5387
|
+
module.exports = {
|
|
5388
|
+
'default': Format.RFC3986,
|
|
5389
|
+
formatters: {
|
|
5390
|
+
RFC1738: function (value) {
|
|
5391
|
+
return replace.call(value, percentTwenties, '+');
|
|
5392
|
+
},
|
|
5393
|
+
RFC3986: function (value) {
|
|
5394
|
+
return String(value);
|
|
5395
|
+
}
|
|
5239
5396
|
},
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
}
|
|
5397
|
+
RFC1738: Format.RFC1738,
|
|
5398
|
+
RFC3986: Format.RFC3986
|
|
5243
5399
|
};
|
|
5244
5400
|
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5401
|
+
|
|
5402
|
+
/***/ }),
|
|
5403
|
+
|
|
5404
|
+
/***/ "../node_modules/qs/lib/index.js":
|
|
5405
|
+
/*!***************************************!*\
|
|
5406
|
+
!*** ../node_modules/qs/lib/index.js ***!
|
|
5407
|
+
\***************************************/
|
|
5408
|
+
/*! no static exports found */
|
|
5409
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5410
|
+
|
|
5411
|
+
"use strict";
|
|
5412
|
+
|
|
5413
|
+
|
|
5414
|
+
var stringify = __webpack_require__(/*! ./stringify */ "../node_modules/qs/lib/stringify.js");
|
|
5415
|
+
var parse = __webpack_require__(/*! ./parse */ "../node_modules/qs/lib/parse.js");
|
|
5416
|
+
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
5417
|
+
|
|
5418
|
+
module.exports = {
|
|
5419
|
+
formats: formats,
|
|
5420
|
+
parse: parse,
|
|
5421
|
+
stringify: stringify
|
|
5249
5422
|
};
|
|
5250
5423
|
|
|
5251
|
-
var toISO = Date.prototype.toISOString;
|
|
5252
5424
|
|
|
5253
|
-
|
|
5425
|
+
/***/ }),
|
|
5426
|
+
|
|
5427
|
+
/***/ "../node_modules/qs/lib/parse.js":
|
|
5428
|
+
/*!***************************************!*\
|
|
5429
|
+
!*** ../node_modules/qs/lib/parse.js ***!
|
|
5430
|
+
\***************************************/
|
|
5431
|
+
/*! no static exports found */
|
|
5432
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
5433
|
+
|
|
5434
|
+
"use strict";
|
|
5435
|
+
|
|
5436
|
+
|
|
5437
|
+
var utils = __webpack_require__(/*! ./utils */ "../node_modules/qs/lib/utils.js");
|
|
5438
|
+
|
|
5439
|
+
var has = Object.prototype.hasOwnProperty;
|
|
5440
|
+
var isArray = Array.isArray;
|
|
5441
|
+
|
|
5254
5442
|
var defaults = {
|
|
5255
|
-
addQueryPrefix: false,
|
|
5256
5443
|
allowDots: false,
|
|
5444
|
+
allowPrototypes: false,
|
|
5445
|
+
allowSparse: false,
|
|
5446
|
+
arrayLimit: 20,
|
|
5257
5447
|
charset: 'utf-8',
|
|
5258
5448
|
charsetSentinel: false,
|
|
5449
|
+
comma: false,
|
|
5450
|
+
decoder: utils.decode,
|
|
5259
5451
|
delimiter: '&',
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
indices: false,
|
|
5267
|
-
serializeDate: function serializeDate(date) {
|
|
5268
|
-
return toISO.call(date);
|
|
5269
|
-
},
|
|
5270
|
-
skipNulls: false,
|
|
5452
|
+
depth: 5,
|
|
5453
|
+
ignoreQueryPrefix: false,
|
|
5454
|
+
interpretNumericEntities: false,
|
|
5455
|
+
parameterLimit: 1000,
|
|
5456
|
+
parseArrays: true,
|
|
5457
|
+
plainObjects: false,
|
|
5271
5458
|
strictNullHandling: false
|
|
5272
5459
|
};
|
|
5273
5460
|
|
|
5274
|
-
var
|
|
5275
|
-
return
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
|| typeof v === 'symbol'
|
|
5279
|
-
|| typeof v === 'bigint';
|
|
5461
|
+
var interpretNumericEntities = function (str) {
|
|
5462
|
+
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
5463
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
|
5464
|
+
});
|
|
5280
5465
|
};
|
|
5281
5466
|
|
|
5282
|
-
var
|
|
5283
|
-
|
|
5284
|
-
|
|
5285
|
-
generateArrayPrefix,
|
|
5286
|
-
strictNullHandling,
|
|
5287
|
-
skipNulls,
|
|
5288
|
-
encoder,
|
|
5289
|
-
filter,
|
|
5290
|
-
sort,
|
|
5291
|
-
allowDots,
|
|
5292
|
-
serializeDate,
|
|
5293
|
-
format,
|
|
5294
|
-
formatter,
|
|
5295
|
-
encodeValuesOnly,
|
|
5296
|
-
charset,
|
|
5297
|
-
sideChannel
|
|
5298
|
-
) {
|
|
5299
|
-
var obj = object;
|
|
5300
|
-
|
|
5301
|
-
if (sideChannel.has(object)) {
|
|
5302
|
-
throw new RangeError('Cyclic object value');
|
|
5467
|
+
var parseArrayValue = function (val, options) {
|
|
5468
|
+
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
5469
|
+
return val.split(',');
|
|
5303
5470
|
}
|
|
5304
5471
|
|
|
5305
|
-
|
|
5306
|
-
|
|
5307
|
-
|
|
5308
|
-
|
|
5309
|
-
|
|
5310
|
-
|
|
5311
|
-
|
|
5312
|
-
|
|
5472
|
+
return val;
|
|
5473
|
+
};
|
|
5474
|
+
|
|
5475
|
+
// This is what browsers will submit when the ✓ character occurs in an
|
|
5476
|
+
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
5477
|
+
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
5478
|
+
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
|
5479
|
+
// the ✓ character, such as us-ascii.
|
|
5480
|
+
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
5481
|
+
|
|
5482
|
+
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
|
5483
|
+
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
5484
|
+
|
|
5485
|
+
var parseValues = function parseQueryStringValues(str, options) {
|
|
5486
|
+
var obj = {};
|
|
5487
|
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
5488
|
+
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
5489
|
+
var parts = cleanStr.split(options.delimiter, limit);
|
|
5490
|
+
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
5491
|
+
var i;
|
|
5492
|
+
|
|
5493
|
+
var charset = options.charset;
|
|
5494
|
+
if (options.charsetSentinel) {
|
|
5495
|
+
for (i = 0; i < parts.length; ++i) {
|
|
5496
|
+
if (parts[i].indexOf('utf8=') === 0) {
|
|
5497
|
+
if (parts[i] === charsetSentinel) {
|
|
5498
|
+
charset = 'utf-8';
|
|
5499
|
+
} else if (parts[i] === isoSentinel) {
|
|
5500
|
+
charset = 'iso-8859-1';
|
|
5501
|
+
}
|
|
5502
|
+
skipIndex = i;
|
|
5503
|
+
i = parts.length; // The eslint settings do not allow break;
|
|
5313
5504
|
}
|
|
5314
|
-
|
|
5315
|
-
});
|
|
5505
|
+
}
|
|
5316
5506
|
}
|
|
5317
5507
|
|
|
5318
|
-
|
|
5319
|
-
if (
|
|
5320
|
-
|
|
5508
|
+
for (i = 0; i < parts.length; ++i) {
|
|
5509
|
+
if (i === skipIndex) {
|
|
5510
|
+
continue;
|
|
5321
5511
|
}
|
|
5512
|
+
var part = parts[i];
|
|
5322
5513
|
|
|
5323
|
-
|
|
5324
|
-
|
|
5514
|
+
var bracketEqualsPos = part.indexOf(']=');
|
|
5515
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
5325
5516
|
|
|
5326
|
-
|
|
5327
|
-
if (
|
|
5328
|
-
|
|
5329
|
-
|
|
5517
|
+
var key, val;
|
|
5518
|
+
if (pos === -1) {
|
|
5519
|
+
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
5520
|
+
val = options.strictNullHandling ? null : '';
|
|
5521
|
+
} else {
|
|
5522
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
5523
|
+
val = utils.maybeMap(
|
|
5524
|
+
parseArrayValue(part.slice(pos + 1), options),
|
|
5525
|
+
function (encodedVal) {
|
|
5526
|
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
5527
|
+
}
|
|
5528
|
+
);
|
|
5330
5529
|
}
|
|
5331
|
-
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
5332
|
-
}
|
|
5333
5530
|
|
|
5334
|
-
|
|
5531
|
+
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
5532
|
+
val = interpretNumericEntities(val);
|
|
5533
|
+
}
|
|
5335
5534
|
|
|
5336
|
-
|
|
5337
|
-
|
|
5535
|
+
if (part.indexOf('[]=') > -1) {
|
|
5536
|
+
val = isArray(val) ? [val] : val;
|
|
5537
|
+
}
|
|
5538
|
+
|
|
5539
|
+
if (has.call(obj, key)) {
|
|
5540
|
+
obj[key] = utils.combine(obj[key], val);
|
|
5541
|
+
} else {
|
|
5542
|
+
obj[key] = val;
|
|
5543
|
+
}
|
|
5338
5544
|
}
|
|
5339
5545
|
|
|
5340
|
-
|
|
5341
|
-
|
|
5342
|
-
|
|
5343
|
-
|
|
5344
|
-
|
|
5345
|
-
|
|
5346
|
-
|
|
5347
|
-
var
|
|
5348
|
-
|
|
5546
|
+
return obj;
|
|
5547
|
+
};
|
|
5548
|
+
|
|
5549
|
+
var parseObject = function (chain, val, options, valuesParsed) {
|
|
5550
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
|
5551
|
+
|
|
5552
|
+
for (var i = chain.length - 1; i >= 0; --i) {
|
|
5553
|
+
var obj;
|
|
5554
|
+
var root = chain[i];
|
|
5555
|
+
|
|
5556
|
+
if (root === '[]' && options.parseArrays) {
|
|
5557
|
+
obj = [].concat(leaf);
|
|
5558
|
+
} else {
|
|
5559
|
+
obj = options.plainObjects ? Object.create(null) : {};
|
|
5560
|
+
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
5561
|
+
var index = parseInt(cleanRoot, 10);
|
|
5562
|
+
if (!options.parseArrays && cleanRoot === '') {
|
|
5563
|
+
obj = { 0: leaf };
|
|
5564
|
+
} else if (
|
|
5565
|
+
!isNaN(index)
|
|
5566
|
+
&& root !== cleanRoot
|
|
5567
|
+
&& String(index) === cleanRoot
|
|
5568
|
+
&& index >= 0
|
|
5569
|
+
&& (options.parseArrays && index <= options.arrayLimit)
|
|
5570
|
+
) {
|
|
5571
|
+
obj = [];
|
|
5572
|
+
obj[index] = leaf;
|
|
5573
|
+
} else {
|
|
5574
|
+
obj[cleanRoot] = leaf;
|
|
5575
|
+
}
|
|
5576
|
+
}
|
|
5577
|
+
|
|
5578
|
+
leaf = obj;
|
|
5349
5579
|
}
|
|
5350
5580
|
|
|
5351
|
-
|
|
5352
|
-
|
|
5353
|
-
var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
|
|
5581
|
+
return leaf;
|
|
5582
|
+
};
|
|
5354
5583
|
|
|
5355
|
-
|
|
5356
|
-
|
|
5584
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
5585
|
+
if (!givenKey) {
|
|
5586
|
+
return;
|
|
5587
|
+
}
|
|
5588
|
+
|
|
5589
|
+
// Transform dot notation to bracket notation
|
|
5590
|
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
5591
|
+
|
|
5592
|
+
// The regex chunks
|
|
5593
|
+
|
|
5594
|
+
var brackets = /(\[[^[\]]*])/;
|
|
5595
|
+
var child = /(\[[^[\]]*])/g;
|
|
5596
|
+
|
|
5597
|
+
// Get the parent
|
|
5598
|
+
|
|
5599
|
+
var segment = options.depth > 0 && brackets.exec(key);
|
|
5600
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
|
5601
|
+
|
|
5602
|
+
// Stash the parent if it exists
|
|
5603
|
+
|
|
5604
|
+
var keys = [];
|
|
5605
|
+
if (parent) {
|
|
5606
|
+
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
5607
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
5608
|
+
if (!options.allowPrototypes) {
|
|
5609
|
+
return;
|
|
5610
|
+
}
|
|
5357
5611
|
}
|
|
5358
5612
|
|
|
5359
|
-
|
|
5360
|
-
|
|
5361
|
-
: prefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
5613
|
+
keys.push(parent);
|
|
5614
|
+
}
|
|
5362
5615
|
|
|
5363
|
-
|
|
5364
|
-
|
|
5365
|
-
|
|
5366
|
-
|
|
5367
|
-
|
|
5368
|
-
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
allowDots,
|
|
5375
|
-
serializeDate,
|
|
5376
|
-
format,
|
|
5377
|
-
formatter,
|
|
5378
|
-
encodeValuesOnly,
|
|
5379
|
-
charset,
|
|
5380
|
-
valueSideChannel
|
|
5381
|
-
));
|
|
5616
|
+
// Loop through children appending to the array until we hit depth
|
|
5617
|
+
|
|
5618
|
+
var i = 0;
|
|
5619
|
+
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
5620
|
+
i += 1;
|
|
5621
|
+
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
5622
|
+
if (!options.allowPrototypes) {
|
|
5623
|
+
return;
|
|
5624
|
+
}
|
|
5625
|
+
}
|
|
5626
|
+
keys.push(segment[1]);
|
|
5382
5627
|
}
|
|
5383
5628
|
|
|
5384
|
-
|
|
5629
|
+
// If there's a remainder, just add whatever is left
|
|
5630
|
+
|
|
5631
|
+
if (segment) {
|
|
5632
|
+
keys.push('[' + key.slice(segment.index) + ']');
|
|
5633
|
+
}
|
|
5634
|
+
|
|
5635
|
+
return parseObject(keys, val, options, valuesParsed);
|
|
5385
5636
|
};
|
|
5386
5637
|
|
|
5387
|
-
var
|
|
5638
|
+
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
5388
5639
|
if (!opts) {
|
|
5389
5640
|
return defaults;
|
|
5390
5641
|
}
|
|
5391
5642
|
|
|
5392
|
-
if (opts.
|
|
5393
|
-
throw new TypeError('
|
|
5643
|
+
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
|
5644
|
+
throw new TypeError('Decoder has to be a function.');
|
|
5394
5645
|
}
|
|
5395
5646
|
|
|
5396
|
-
var charset = opts.charset || defaults.charset;
|
|
5397
5647
|
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
5398
5648
|
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
5399
5649
|
}
|
|
5400
|
-
|
|
5401
|
-
var format = formats['default'];
|
|
5402
|
-
if (typeof opts.format !== 'undefined') {
|
|
5403
|
-
if (!has.call(formats.formatters, opts.format)) {
|
|
5404
|
-
throw new TypeError('Unknown format option provided.');
|
|
5405
|
-
}
|
|
5406
|
-
format = opts.format;
|
|
5407
|
-
}
|
|
5408
|
-
var formatter = formats.formatters[format];
|
|
5409
|
-
|
|
5410
|
-
var filter = defaults.filter;
|
|
5411
|
-
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
|
|
5412
|
-
filter = opts.filter;
|
|
5413
|
-
}
|
|
5650
|
+
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
5414
5651
|
|
|
5415
5652
|
return {
|
|
5416
|
-
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
5417
5653
|
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
5654
|
+
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
5655
|
+
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
5656
|
+
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
5418
5657
|
charset: charset,
|
|
5419
5658
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5659
|
+
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
5660
|
+
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
5661
|
+
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
5662
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
5663
|
+
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
5664
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
5665
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
5666
|
+
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
5667
|
+
parseArrays: opts.parseArrays !== false,
|
|
5668
|
+
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
5430
5669
|
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
5431
5670
|
};
|
|
5432
5671
|
};
|
|
5433
5672
|
|
|
5434
|
-
module.exports = function (
|
|
5435
|
-
var
|
|
5436
|
-
var options = normalizeStringifyOptions(opts);
|
|
5437
|
-
|
|
5438
|
-
var objKeys;
|
|
5439
|
-
var filter;
|
|
5440
|
-
|
|
5441
|
-
if (typeof options.filter === 'function') {
|
|
5442
|
-
filter = options.filter;
|
|
5443
|
-
obj = filter('', obj);
|
|
5444
|
-
} else if (isArray(options.filter)) {
|
|
5445
|
-
filter = options.filter;
|
|
5446
|
-
objKeys = filter;
|
|
5447
|
-
}
|
|
5448
|
-
|
|
5449
|
-
var keys = [];
|
|
5450
|
-
|
|
5451
|
-
if (typeof obj !== 'object' || obj === null) {
|
|
5452
|
-
return '';
|
|
5453
|
-
}
|
|
5454
|
-
|
|
5455
|
-
var arrayFormat;
|
|
5456
|
-
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
5457
|
-
arrayFormat = opts.arrayFormat;
|
|
5458
|
-
} else if (opts && 'indices' in opts) {
|
|
5459
|
-
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
5460
|
-
} else {
|
|
5461
|
-
arrayFormat = 'indices';
|
|
5462
|
-
}
|
|
5463
|
-
|
|
5464
|
-
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
5673
|
+
module.exports = function (str, opts) {
|
|
5674
|
+
var options = normalizeParseOptions(opts);
|
|
5465
5675
|
|
|
5466
|
-
if (
|
|
5467
|
-
|
|
5676
|
+
if (str === '' || str === null || typeof str === 'undefined') {
|
|
5677
|
+
return options.plainObjects ? Object.create(null) : {};
|
|
5468
5678
|
}
|
|
5469
5679
|
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
}
|
|
5680
|
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
5681
|
+
var obj = options.plainObjects ? Object.create(null) : {};
|
|
5473
5682
|
|
|
5474
|
-
|
|
5475
|
-
for (var i = 0; i < objKeys.length; ++i) {
|
|
5476
|
-
var key = objKeys[i];
|
|
5683
|
+
// Iterate over the keys and setup the new object
|
|
5477
5684
|
|
|
5478
|
-
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5483
|
-
key,
|
|
5484
|
-
generateArrayPrefix,
|
|
5485
|
-
options.strictNullHandling,
|
|
5486
|
-
options.skipNulls,
|
|
5487
|
-
options.encode ? options.encoder : null,
|
|
5488
|
-
options.filter,
|
|
5489
|
-
options.sort,
|
|
5490
|
-
options.allowDots,
|
|
5491
|
-
options.serializeDate,
|
|
5492
|
-
options.format,
|
|
5493
|
-
options.formatter,
|
|
5494
|
-
options.encodeValuesOnly,
|
|
5495
|
-
options.charset,
|
|
5496
|
-
sideChannel
|
|
5497
|
-
));
|
|
5685
|
+
var keys = Object.keys(tempObj);
|
|
5686
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
5687
|
+
var key = keys[i];
|
|
5688
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
5689
|
+
obj = utils.merge(obj, newObj, options);
|
|
5498
5690
|
}
|
|
5499
5691
|
|
|
5500
|
-
|
|
5501
|
-
|
|
5502
|
-
|
|
5503
|
-
if (options.charsetSentinel) {
|
|
5504
|
-
if (options.charset === 'iso-8859-1') {
|
|
5505
|
-
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
|
5506
|
-
prefix += 'utf8=%26%2310003%3B&';
|
|
5507
|
-
} else {
|
|
5508
|
-
// encodeURIComponent('✓')
|
|
5509
|
-
prefix += 'utf8=%E2%9C%93&';
|
|
5510
|
-
}
|
|
5692
|
+
if (options.allowSparse === true) {
|
|
5693
|
+
return obj;
|
|
5511
5694
|
}
|
|
5512
5695
|
|
|
5513
|
-
return
|
|
5696
|
+
return utils.compact(obj);
|
|
5514
5697
|
};
|
|
5515
5698
|
|
|
5516
5699
|
|
|
5517
5700
|
/***/ }),
|
|
5518
5701
|
|
|
5519
|
-
/***/ "../node_modules/qs/lib/
|
|
5520
|
-
|
|
5521
|
-
!*** ../node_modules/qs/lib/
|
|
5522
|
-
|
|
5702
|
+
/***/ "../node_modules/qs/lib/stringify.js":
|
|
5703
|
+
/*!*******************************************!*\
|
|
5704
|
+
!*** ../node_modules/qs/lib/stringify.js ***!
|
|
5705
|
+
\*******************************************/
|
|
5523
5706
|
/*! no static exports found */
|
|
5524
5707
|
/***/ (function(module, exports, __webpack_require__) {
|
|
5525
5708
|
|
|
5526
5709
|
"use strict";
|
|
5527
5710
|
|
|
5528
5711
|
|
|
5529
|
-
var
|
|
5530
|
-
|
|
5712
|
+
var getSideChannel = __webpack_require__(/*! side-channel */ "../node_modules/side-channel/index.js");
|
|
5713
|
+
var utils = __webpack_require__(/*! ./utils */ "../node_modules/qs/lib/utils.js");
|
|
5714
|
+
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
5531
5715
|
var has = Object.prototype.hasOwnProperty;
|
|
5532
|
-
var isArray = Array.isArray;
|
|
5533
5716
|
|
|
5534
|
-
var
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5717
|
+
var arrayPrefixGenerators = {
|
|
5718
|
+
brackets: function brackets(prefix) {
|
|
5719
|
+
return prefix + '[]';
|
|
5720
|
+
},
|
|
5721
|
+
comma: 'comma',
|
|
5722
|
+
indices: function indices(prefix, key) {
|
|
5723
|
+
return prefix + '[' + key + ']';
|
|
5724
|
+
},
|
|
5725
|
+
repeat: function repeat(prefix) {
|
|
5726
|
+
return prefix;
|
|
5538
5727
|
}
|
|
5728
|
+
};
|
|
5539
5729
|
|
|
5540
|
-
|
|
5541
|
-
|
|
5542
|
-
|
|
5543
|
-
|
|
5544
|
-
|
|
5545
|
-
var item = queue.pop();
|
|
5546
|
-
var obj = item.obj[item.prop];
|
|
5547
|
-
|
|
5548
|
-
if (isArray(obj)) {
|
|
5549
|
-
var compacted = [];
|
|
5730
|
+
var isArray = Array.isArray;
|
|
5731
|
+
var push = Array.prototype.push;
|
|
5732
|
+
var pushToArray = function (arr, valueOrArray) {
|
|
5733
|
+
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
5734
|
+
};
|
|
5550
5735
|
|
|
5551
|
-
|
|
5552
|
-
if (typeof obj[j] !== 'undefined') {
|
|
5553
|
-
compacted.push(obj[j]);
|
|
5554
|
-
}
|
|
5555
|
-
}
|
|
5736
|
+
var toISO = Date.prototype.toISOString;
|
|
5556
5737
|
|
|
5557
|
-
|
|
5558
|
-
|
|
5559
|
-
|
|
5738
|
+
var defaultFormat = formats['default'];
|
|
5739
|
+
var defaults = {
|
|
5740
|
+
addQueryPrefix: false,
|
|
5741
|
+
allowDots: false,
|
|
5742
|
+
charset: 'utf-8',
|
|
5743
|
+
charsetSentinel: false,
|
|
5744
|
+
delimiter: '&',
|
|
5745
|
+
encode: true,
|
|
5746
|
+
encoder: utils.encode,
|
|
5747
|
+
encodeValuesOnly: false,
|
|
5748
|
+
format: defaultFormat,
|
|
5749
|
+
formatter: formats.formatters[defaultFormat],
|
|
5750
|
+
// deprecated
|
|
5751
|
+
indices: false,
|
|
5752
|
+
serializeDate: function serializeDate(date) {
|
|
5753
|
+
return toISO.call(date);
|
|
5754
|
+
},
|
|
5755
|
+
skipNulls: false,
|
|
5756
|
+
strictNullHandling: false
|
|
5560
5757
|
};
|
|
5561
5758
|
|
|
5562
|
-
var
|
|
5563
|
-
|
|
5564
|
-
|
|
5565
|
-
|
|
5566
|
-
|
|
5567
|
-
|
|
5568
|
-
}
|
|
5569
|
-
|
|
5570
|
-
return obj;
|
|
5759
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
5760
|
+
return typeof v === 'string'
|
|
5761
|
+
|| typeof v === 'number'
|
|
5762
|
+
|| typeof v === 'boolean'
|
|
5763
|
+
|| typeof v === 'symbol'
|
|
5764
|
+
|| typeof v === 'bigint';
|
|
5571
5765
|
};
|
|
5572
5766
|
|
|
5573
|
-
var
|
|
5574
|
-
|
|
5575
|
-
|
|
5576
|
-
|
|
5767
|
+
var stringify = function stringify(
|
|
5768
|
+
object,
|
|
5769
|
+
prefix,
|
|
5770
|
+
generateArrayPrefix,
|
|
5771
|
+
strictNullHandling,
|
|
5772
|
+
skipNulls,
|
|
5773
|
+
encoder,
|
|
5774
|
+
filter,
|
|
5775
|
+
sort,
|
|
5776
|
+
allowDots,
|
|
5777
|
+
serializeDate,
|
|
5778
|
+
format,
|
|
5779
|
+
formatter,
|
|
5780
|
+
encodeValuesOnly,
|
|
5781
|
+
charset,
|
|
5782
|
+
sideChannel
|
|
5783
|
+
) {
|
|
5784
|
+
var obj = object;
|
|
5785
|
+
|
|
5786
|
+
if (sideChannel.has(object)) {
|
|
5787
|
+
throw new RangeError('Cyclic object value');
|
|
5577
5788
|
}
|
|
5578
5789
|
|
|
5579
|
-
if (typeof
|
|
5580
|
-
|
|
5581
|
-
|
|
5582
|
-
|
|
5583
|
-
|
|
5584
|
-
|
|
5790
|
+
if (typeof filter === 'function') {
|
|
5791
|
+
obj = filter(prefix, obj);
|
|
5792
|
+
} else if (obj instanceof Date) {
|
|
5793
|
+
obj = serializeDate(obj);
|
|
5794
|
+
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
5795
|
+
obj = utils.maybeMap(obj, function (value) {
|
|
5796
|
+
if (value instanceof Date) {
|
|
5797
|
+
return serializeDate(value);
|
|
5585
5798
|
}
|
|
5586
|
-
|
|
5587
|
-
|
|
5799
|
+
return value;
|
|
5800
|
+
});
|
|
5801
|
+
}
|
|
5802
|
+
|
|
5803
|
+
if (obj === null) {
|
|
5804
|
+
if (strictNullHandling) {
|
|
5805
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
5588
5806
|
}
|
|
5589
5807
|
|
|
5590
|
-
|
|
5808
|
+
obj = '';
|
|
5591
5809
|
}
|
|
5592
5810
|
|
|
5593
|
-
if (
|
|
5594
|
-
|
|
5811
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
5812
|
+
if (encoder) {
|
|
5813
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
5814
|
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
5815
|
+
}
|
|
5816
|
+
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
5595
5817
|
}
|
|
5596
5818
|
|
|
5597
|
-
var
|
|
5598
|
-
|
|
5599
|
-
|
|
5819
|
+
var values = [];
|
|
5820
|
+
|
|
5821
|
+
if (typeof obj === 'undefined') {
|
|
5822
|
+
return values;
|
|
5600
5823
|
}
|
|
5601
5824
|
|
|
5602
|
-
|
|
5603
|
-
|
|
5604
|
-
|
|
5605
|
-
|
|
5606
|
-
|
|
5607
|
-
|
|
5608
|
-
|
|
5609
|
-
|
|
5610
|
-
|
|
5611
|
-
} else {
|
|
5612
|
-
target[i] = item;
|
|
5613
|
-
}
|
|
5614
|
-
});
|
|
5615
|
-
return target;
|
|
5825
|
+
var objKeys;
|
|
5826
|
+
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
5827
|
+
// we need to join elements in
|
|
5828
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
|
|
5829
|
+
} else if (isArray(filter)) {
|
|
5830
|
+
objKeys = filter;
|
|
5831
|
+
} else {
|
|
5832
|
+
var keys = Object.keys(obj);
|
|
5833
|
+
objKeys = sort ? keys.sort(sort) : keys;
|
|
5616
5834
|
}
|
|
5617
5835
|
|
|
5618
|
-
|
|
5619
|
-
var
|
|
5836
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
5837
|
+
var key = objKeys[i];
|
|
5838
|
+
var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
|
|
5620
5839
|
|
|
5621
|
-
if (
|
|
5622
|
-
|
|
5623
|
-
} else {
|
|
5624
|
-
acc[key] = value;
|
|
5840
|
+
if (skipNulls && value === null) {
|
|
5841
|
+
continue;
|
|
5625
5842
|
}
|
|
5626
|
-
return acc;
|
|
5627
|
-
}, mergeTarget);
|
|
5628
|
-
};
|
|
5629
5843
|
|
|
5630
|
-
var
|
|
5631
|
-
|
|
5632
|
-
|
|
5633
|
-
return acc;
|
|
5634
|
-
}, target);
|
|
5635
|
-
};
|
|
5844
|
+
var keyPrefix = isArray(obj)
|
|
5845
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
|
|
5846
|
+
: prefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
5636
5847
|
|
|
5637
|
-
|
|
5638
|
-
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5645
|
-
|
|
5646
|
-
|
|
5647
|
-
|
|
5848
|
+
sideChannel.set(object, true);
|
|
5849
|
+
var valueSideChannel = getSideChannel();
|
|
5850
|
+
pushToArray(values, stringify(
|
|
5851
|
+
value,
|
|
5852
|
+
keyPrefix,
|
|
5853
|
+
generateArrayPrefix,
|
|
5854
|
+
strictNullHandling,
|
|
5855
|
+
skipNulls,
|
|
5856
|
+
encoder,
|
|
5857
|
+
filter,
|
|
5858
|
+
sort,
|
|
5859
|
+
allowDots,
|
|
5860
|
+
serializeDate,
|
|
5861
|
+
format,
|
|
5862
|
+
formatter,
|
|
5863
|
+
encodeValuesOnly,
|
|
5864
|
+
charset,
|
|
5865
|
+
valueSideChannel
|
|
5866
|
+
));
|
|
5648
5867
|
}
|
|
5868
|
+
|
|
5869
|
+
return values;
|
|
5649
5870
|
};
|
|
5650
5871
|
|
|
5651
|
-
var
|
|
5652
|
-
|
|
5653
|
-
|
|
5654
|
-
if (str.length === 0) {
|
|
5655
|
-
return str;
|
|
5872
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
5873
|
+
if (!opts) {
|
|
5874
|
+
return defaults;
|
|
5656
5875
|
}
|
|
5657
5876
|
|
|
5658
|
-
|
|
5659
|
-
|
|
5660
|
-
string = Symbol.prototype.toString.call(str);
|
|
5661
|
-
} else if (typeof str !== 'string') {
|
|
5662
|
-
string = String(str);
|
|
5877
|
+
if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
|
|
5878
|
+
throw new TypeError('Encoder has to be a function.');
|
|
5663
5879
|
}
|
|
5664
5880
|
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
});
|
|
5881
|
+
var charset = opts.charset || defaults.charset;
|
|
5882
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
5883
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
5669
5884
|
}
|
|
5670
5885
|
|
|
5671
|
-
var
|
|
5672
|
-
|
|
5673
|
-
|
|
5886
|
+
var format = formats['default'];
|
|
5887
|
+
if (typeof opts.format !== 'undefined') {
|
|
5888
|
+
if (!has.call(formats.formatters, opts.format)) {
|
|
5889
|
+
throw new TypeError('Unknown format option provided.');
|
|
5890
|
+
}
|
|
5891
|
+
format = opts.format;
|
|
5892
|
+
}
|
|
5893
|
+
var formatter = formats.formatters[format];
|
|
5674
5894
|
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|| c === 0x5F // _
|
|
5679
|
-
|| c === 0x7E // ~
|
|
5680
|
-
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
5681
|
-
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
5682
|
-
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
5683
|
-
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
5684
|
-
) {
|
|
5685
|
-
out += string.charAt(i);
|
|
5686
|
-
continue;
|
|
5687
|
-
}
|
|
5688
|
-
|
|
5689
|
-
if (c < 0x80) {
|
|
5690
|
-
out = out + hexTable[c];
|
|
5691
|
-
continue;
|
|
5692
|
-
}
|
|
5693
|
-
|
|
5694
|
-
if (c < 0x800) {
|
|
5695
|
-
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
5696
|
-
continue;
|
|
5697
|
-
}
|
|
5698
|
-
|
|
5699
|
-
if (c < 0xD800 || c >= 0xE000) {
|
|
5700
|
-
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
|
5701
|
-
continue;
|
|
5702
|
-
}
|
|
5703
|
-
|
|
5704
|
-
i += 1;
|
|
5705
|
-
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
5706
|
-
out += hexTable[0xF0 | (c >> 18)]
|
|
5707
|
-
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
5708
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
5709
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
5895
|
+
var filter = defaults.filter;
|
|
5896
|
+
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
|
|
5897
|
+
filter = opts.filter;
|
|
5710
5898
|
}
|
|
5711
5899
|
|
|
5712
|
-
return
|
|
5900
|
+
return {
|
|
5901
|
+
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
5902
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
5903
|
+
charset: charset,
|
|
5904
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
5905
|
+
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
5906
|
+
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
5907
|
+
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
5908
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
5909
|
+
filter: filter,
|
|
5910
|
+
format: format,
|
|
5911
|
+
formatter: formatter,
|
|
5912
|
+
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
5913
|
+
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
5914
|
+
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
5915
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
5916
|
+
};
|
|
5713
5917
|
};
|
|
5714
5918
|
|
|
5715
|
-
|
|
5716
|
-
var
|
|
5717
|
-
var
|
|
5919
|
+
module.exports = function (object, opts) {
|
|
5920
|
+
var obj = object;
|
|
5921
|
+
var options = normalizeStringifyOptions(opts);
|
|
5718
5922
|
|
|
5719
|
-
|
|
5720
|
-
|
|
5721
|
-
var obj = item.obj[item.prop];
|
|
5923
|
+
var objKeys;
|
|
5924
|
+
var filter;
|
|
5722
5925
|
|
|
5723
|
-
|
|
5724
|
-
|
|
5725
|
-
|
|
5726
|
-
|
|
5727
|
-
|
|
5728
|
-
|
|
5729
|
-
refs.push(val);
|
|
5730
|
-
}
|
|
5731
|
-
}
|
|
5926
|
+
if (typeof options.filter === 'function') {
|
|
5927
|
+
filter = options.filter;
|
|
5928
|
+
obj = filter('', obj);
|
|
5929
|
+
} else if (isArray(options.filter)) {
|
|
5930
|
+
filter = options.filter;
|
|
5931
|
+
objKeys = filter;
|
|
5732
5932
|
}
|
|
5733
5933
|
|
|
5734
|
-
|
|
5735
|
-
|
|
5736
|
-
return value;
|
|
5737
|
-
};
|
|
5738
|
-
|
|
5739
|
-
var isRegExp = function isRegExp(obj) {
|
|
5740
|
-
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
5741
|
-
};
|
|
5934
|
+
var keys = [];
|
|
5742
5935
|
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
return false;
|
|
5936
|
+
if (typeof obj !== 'object' || obj === null) {
|
|
5937
|
+
return '';
|
|
5746
5938
|
}
|
|
5747
5939
|
|
|
5748
|
-
|
|
5749
|
-
|
|
5750
|
-
|
|
5751
|
-
|
|
5752
|
-
|
|
5753
|
-
}
|
|
5754
|
-
|
|
5755
|
-
var maybeMap = function maybeMap(val, fn) {
|
|
5756
|
-
if (isArray(val)) {
|
|
5757
|
-
var mapped = [];
|
|
5758
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
5759
|
-
mapped.push(fn(val[i]));
|
|
5760
|
-
}
|
|
5761
|
-
return mapped;
|
|
5940
|
+
var arrayFormat;
|
|
5941
|
+
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
5942
|
+
arrayFormat = opts.arrayFormat;
|
|
5943
|
+
} else if (opts && 'indices' in opts) {
|
|
5944
|
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
5945
|
+
} else {
|
|
5946
|
+
arrayFormat = 'indices';
|
|
5762
5947
|
}
|
|
5763
|
-
return fn(val);
|
|
5764
|
-
};
|
|
5765
|
-
|
|
5766
|
-
module.exports = {
|
|
5767
|
-
arrayToObject: arrayToObject,
|
|
5768
|
-
assign: assign,
|
|
5769
|
-
combine: combine,
|
|
5770
|
-
compact: compact,
|
|
5771
|
-
decode: decode,
|
|
5772
|
-
encode: encode,
|
|
5773
|
-
isBuffer: isBuffer,
|
|
5774
|
-
isRegExp: isRegExp,
|
|
5775
|
-
maybeMap: maybeMap,
|
|
5776
|
-
merge: merge
|
|
5777
|
-
};
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
/***/ }),
|
|
5781
|
-
|
|
5782
|
-
/***/ "../node_modules/side-channel/index.js":
|
|
5783
|
-
/*!*********************************************!*\
|
|
5784
|
-
!*** ../node_modules/side-channel/index.js ***!
|
|
5785
|
-
\*********************************************/
|
|
5786
|
-
/*! no static exports found */
|
|
5787
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5788
|
-
|
|
5789
|
-
"use strict";
|
|
5790
|
-
|
|
5791
|
-
|
|
5792
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/side-channel/node_modules/get-intrinsic/index.js");
|
|
5793
|
-
var callBound = __webpack_require__(/*! call-bind/callBound */ "../node_modules/call-bind/callBound.js");
|
|
5794
|
-
var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/side-channel/node_modules/object-inspect/index.js");
|
|
5795
5948
|
|
|
5796
|
-
var
|
|
5797
|
-
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
5798
|
-
var $Map = GetIntrinsic('%Map%', true);
|
|
5949
|
+
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
5799
5950
|
|
|
5800
|
-
|
|
5801
|
-
|
|
5802
|
-
|
|
5803
|
-
var $mapGet = callBound('Map.prototype.get', true);
|
|
5804
|
-
var $mapSet = callBound('Map.prototype.set', true);
|
|
5805
|
-
var $mapHas = callBound('Map.prototype.has', true);
|
|
5951
|
+
if (!objKeys) {
|
|
5952
|
+
objKeys = Object.keys(obj);
|
|
5953
|
+
}
|
|
5806
5954
|
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
*
|
|
5811
|
-
* That node is also moved to the head of the list, so that if it's accessed
|
|
5812
|
-
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
5813
|
-
* used nodes can be accessed relatively quickly.
|
|
5814
|
-
*/
|
|
5815
|
-
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
5816
|
-
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
5817
|
-
if (curr.key === key) {
|
|
5818
|
-
prev.next = curr.next;
|
|
5819
|
-
curr.next = list.next;
|
|
5820
|
-
list.next = curr; // eslint-disable-line no-param-reassign
|
|
5821
|
-
return curr;
|
|
5822
|
-
}
|
|
5823
|
-
}
|
|
5824
|
-
};
|
|
5955
|
+
if (options.sort) {
|
|
5956
|
+
objKeys.sort(options.sort);
|
|
5957
|
+
}
|
|
5825
5958
|
|
|
5826
|
-
var
|
|
5827
|
-
|
|
5828
|
-
|
|
5829
|
-
};
|
|
5830
|
-
var listSet = function (objects, key, value) {
|
|
5831
|
-
var node = listGetNode(objects, key);
|
|
5832
|
-
if (node) {
|
|
5833
|
-
node.value = value;
|
|
5834
|
-
} else {
|
|
5835
|
-
// Prepend the new node to the beginning of the list
|
|
5836
|
-
objects.next = { // eslint-disable-line no-param-reassign
|
|
5837
|
-
key: key,
|
|
5838
|
-
next: objects.next,
|
|
5839
|
-
value: value
|
|
5840
|
-
};
|
|
5841
|
-
}
|
|
5842
|
-
};
|
|
5843
|
-
var listHas = function (objects, key) {
|
|
5844
|
-
return !!listGetNode(objects, key);
|
|
5845
|
-
};
|
|
5959
|
+
var sideChannel = getSideChannel();
|
|
5960
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
5961
|
+
var key = objKeys[i];
|
|
5846
5962
|
|
|
5847
|
-
|
|
5848
|
-
|
|
5849
|
-
|
|
5850
|
-
|
|
5851
|
-
|
|
5852
|
-
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
|
|
5860
|
-
|
|
5861
|
-
|
|
5862
|
-
|
|
5863
|
-
|
|
5864
|
-
|
|
5865
|
-
|
|
5866
|
-
|
|
5867
|
-
|
|
5868
|
-
return listGet($o, key);
|
|
5869
|
-
}
|
|
5870
|
-
}
|
|
5871
|
-
},
|
|
5872
|
-
has: function (key) {
|
|
5873
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
5874
|
-
if ($wm) {
|
|
5875
|
-
return $weakMapHas($wm, key);
|
|
5876
|
-
}
|
|
5877
|
-
} else if ($Map) {
|
|
5878
|
-
if ($m) {
|
|
5879
|
-
return $mapHas($m, key);
|
|
5880
|
-
}
|
|
5881
|
-
} else {
|
|
5882
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
5883
|
-
return listHas($o, key);
|
|
5884
|
-
}
|
|
5885
|
-
}
|
|
5886
|
-
return false;
|
|
5887
|
-
},
|
|
5888
|
-
set: function (key, value) {
|
|
5889
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
5890
|
-
if (!$wm) {
|
|
5891
|
-
$wm = new $WeakMap();
|
|
5892
|
-
}
|
|
5893
|
-
$weakMapSet($wm, key, value);
|
|
5894
|
-
} else if ($Map) {
|
|
5895
|
-
if (!$m) {
|
|
5896
|
-
$m = new $Map();
|
|
5897
|
-
}
|
|
5898
|
-
$mapSet($m, key, value);
|
|
5899
|
-
} else {
|
|
5900
|
-
if (!$o) {
|
|
5901
|
-
/*
|
|
5902
|
-
* Initialize the linked list as an empty node, so that we don't have
|
|
5903
|
-
* to special-case handling of the first node: we can always refer to
|
|
5904
|
-
* it as (previous node).next, instead of something like (list).head
|
|
5905
|
-
*/
|
|
5906
|
-
$o = { key: {}, next: null };
|
|
5907
|
-
}
|
|
5908
|
-
listSet($o, key, value);
|
|
5909
|
-
}
|
|
5910
|
-
}
|
|
5911
|
-
};
|
|
5912
|
-
return channel;
|
|
5913
|
-
};
|
|
5914
|
-
|
|
5915
|
-
|
|
5916
|
-
/***/ }),
|
|
5917
|
-
|
|
5918
|
-
/***/ "../node_modules/side-channel/node_modules/get-intrinsic/index.js":
|
|
5919
|
-
/*!************************************************************************!*\
|
|
5920
|
-
!*** ../node_modules/side-channel/node_modules/get-intrinsic/index.js ***!
|
|
5921
|
-
\************************************************************************/
|
|
5922
|
-
/*! no static exports found */
|
|
5923
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5924
|
-
|
|
5925
|
-
"use strict";
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
var undefined;
|
|
5929
|
-
|
|
5930
|
-
var $SyntaxError = SyntaxError;
|
|
5931
|
-
var $Function = Function;
|
|
5932
|
-
var $TypeError = TypeError;
|
|
5933
|
-
|
|
5934
|
-
// eslint-disable-next-line consistent-return
|
|
5935
|
-
var getEvalledConstructor = function (expressionSyntax) {
|
|
5936
|
-
try {
|
|
5937
|
-
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
5938
|
-
} catch (e) {}
|
|
5939
|
-
};
|
|
5940
|
-
|
|
5941
|
-
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
5942
|
-
if ($gOPD) {
|
|
5943
|
-
try {
|
|
5944
|
-
$gOPD({}, '');
|
|
5945
|
-
} catch (e) {
|
|
5946
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
5947
|
-
}
|
|
5948
|
-
}
|
|
5949
|
-
|
|
5950
|
-
var throwTypeError = function () {
|
|
5951
|
-
throw new $TypeError();
|
|
5952
|
-
};
|
|
5953
|
-
var ThrowTypeError = $gOPD
|
|
5954
|
-
? (function () {
|
|
5955
|
-
try {
|
|
5956
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
5957
|
-
arguments.callee; // IE 8 does not throw here
|
|
5958
|
-
return throwTypeError;
|
|
5959
|
-
} catch (calleeThrows) {
|
|
5960
|
-
try {
|
|
5961
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
5962
|
-
return $gOPD(arguments, 'callee').get;
|
|
5963
|
-
} catch (gOPDthrows) {
|
|
5964
|
-
return throwTypeError;
|
|
5965
|
-
}
|
|
5966
|
-
}
|
|
5967
|
-
}())
|
|
5968
|
-
: throwTypeError;
|
|
5969
|
-
|
|
5970
|
-
var hasSymbols = __webpack_require__(/*! has-symbols */ "../node_modules/has-symbols/index.js")();
|
|
5971
|
-
|
|
5972
|
-
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
5973
|
-
|
|
5974
|
-
var needsEval = {};
|
|
5975
|
-
|
|
5976
|
-
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
5977
|
-
|
|
5978
|
-
var INTRINSICS = {
|
|
5979
|
-
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
5980
|
-
'%Array%': Array,
|
|
5981
|
-
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
5982
|
-
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
5983
|
-
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
5984
|
-
'%AsyncFunction%': needsEval,
|
|
5985
|
-
'%AsyncGenerator%': needsEval,
|
|
5986
|
-
'%AsyncGeneratorFunction%': needsEval,
|
|
5987
|
-
'%AsyncIteratorPrototype%': needsEval,
|
|
5988
|
-
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
5989
|
-
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
5990
|
-
'%Boolean%': Boolean,
|
|
5991
|
-
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
5992
|
-
'%Date%': Date,
|
|
5993
|
-
'%decodeURI%': decodeURI,
|
|
5994
|
-
'%decodeURIComponent%': decodeURIComponent,
|
|
5995
|
-
'%encodeURI%': encodeURI,
|
|
5996
|
-
'%encodeURIComponent%': encodeURIComponent,
|
|
5997
|
-
'%Error%': Error,
|
|
5998
|
-
'%eval%': eval, // eslint-disable-line no-eval
|
|
5999
|
-
'%EvalError%': EvalError,
|
|
6000
|
-
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
6001
|
-
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
6002
|
-
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
6003
|
-
'%Function%': $Function,
|
|
6004
|
-
'%GeneratorFunction%': needsEval,
|
|
6005
|
-
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
6006
|
-
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
6007
|
-
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
6008
|
-
'%isFinite%': isFinite,
|
|
6009
|
-
'%isNaN%': isNaN,
|
|
6010
|
-
'%IteratorPrototype%': hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
6011
|
-
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
6012
|
-
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
6013
|
-
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
6014
|
-
'%Math%': Math,
|
|
6015
|
-
'%Number%': Number,
|
|
6016
|
-
'%Object%': Object,
|
|
6017
|
-
'%parseFloat%': parseFloat,
|
|
6018
|
-
'%parseInt%': parseInt,
|
|
6019
|
-
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
6020
|
-
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
6021
|
-
'%RangeError%': RangeError,
|
|
6022
|
-
'%ReferenceError%': ReferenceError,
|
|
6023
|
-
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
6024
|
-
'%RegExp%': RegExp,
|
|
6025
|
-
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
6026
|
-
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
6027
|
-
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
6028
|
-
'%String%': String,
|
|
6029
|
-
'%StringIteratorPrototype%': hasSymbols ? getProto(''[Symbol.iterator]()) : undefined,
|
|
6030
|
-
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
6031
|
-
'%SyntaxError%': $SyntaxError,
|
|
6032
|
-
'%ThrowTypeError%': ThrowTypeError,
|
|
6033
|
-
'%TypedArray%': TypedArray,
|
|
6034
|
-
'%TypeError%': $TypeError,
|
|
6035
|
-
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
6036
|
-
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
6037
|
-
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
6038
|
-
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
6039
|
-
'%URIError%': URIError,
|
|
6040
|
-
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
6041
|
-
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
6042
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
6043
|
-
};
|
|
6044
|
-
|
|
6045
|
-
var doEval = function doEval(name) {
|
|
6046
|
-
var value;
|
|
6047
|
-
if (name === '%AsyncFunction%') {
|
|
6048
|
-
value = getEvalledConstructor('async function () {}');
|
|
6049
|
-
} else if (name === '%GeneratorFunction%') {
|
|
6050
|
-
value = getEvalledConstructor('function* () {}');
|
|
6051
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
6052
|
-
value = getEvalledConstructor('async function* () {}');
|
|
6053
|
-
} else if (name === '%AsyncGenerator%') {
|
|
6054
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
6055
|
-
if (fn) {
|
|
6056
|
-
value = fn.prototype;
|
|
6057
|
-
}
|
|
6058
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
6059
|
-
var gen = doEval('%AsyncGenerator%');
|
|
6060
|
-
if (gen) {
|
|
6061
|
-
value = getProto(gen.prototype);
|
|
6062
|
-
}
|
|
6063
|
-
}
|
|
6064
|
-
|
|
6065
|
-
INTRINSICS[name] = value;
|
|
6066
|
-
|
|
6067
|
-
return value;
|
|
6068
|
-
};
|
|
6069
|
-
|
|
6070
|
-
var LEGACY_ALIASES = {
|
|
6071
|
-
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
6072
|
-
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
6073
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
6074
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
6075
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
6076
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
6077
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
6078
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
6079
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
6080
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
6081
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
6082
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
6083
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
6084
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
6085
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
6086
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
6087
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
6088
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
6089
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
6090
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
6091
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
6092
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
6093
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
6094
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
6095
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
6096
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
6097
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
6098
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
6099
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
6100
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
6101
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
6102
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
6103
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
6104
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
6105
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
6106
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
6107
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
6108
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
6109
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
6110
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
6111
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
6112
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
6113
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
6114
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
6115
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
6116
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
6117
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
6118
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
6119
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
6120
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
6121
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
6122
|
-
};
|
|
6123
|
-
|
|
6124
|
-
var bind = __webpack_require__(/*! function-bind */ "../node_modules/function-bind/index.js");
|
|
6125
|
-
var hasOwn = __webpack_require__(/*! has */ "../node_modules/has/src/index.js");
|
|
6126
|
-
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
6127
|
-
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
6128
|
-
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
6129
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
6130
|
-
|
|
6131
|
-
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
6132
|
-
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
6133
|
-
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
6134
|
-
var stringToPath = function stringToPath(string) {
|
|
6135
|
-
var first = $strSlice(string, 0, 1);
|
|
6136
|
-
var last = $strSlice(string, -1);
|
|
6137
|
-
if (first === '%' && last !== '%') {
|
|
6138
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
6139
|
-
} else if (last === '%' && first !== '%') {
|
|
6140
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
6141
|
-
}
|
|
6142
|
-
var result = [];
|
|
6143
|
-
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
6144
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
6145
|
-
});
|
|
6146
|
-
return result;
|
|
6147
|
-
};
|
|
6148
|
-
/* end adaptation */
|
|
6149
|
-
|
|
6150
|
-
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
6151
|
-
var intrinsicName = name;
|
|
6152
|
-
var alias;
|
|
6153
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
6154
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
6155
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
6156
|
-
}
|
|
6157
|
-
|
|
6158
|
-
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
6159
|
-
var value = INTRINSICS[intrinsicName];
|
|
6160
|
-
if (value === needsEval) {
|
|
6161
|
-
value = doEval(intrinsicName);
|
|
6162
|
-
}
|
|
6163
|
-
if (typeof value === 'undefined' && !allowMissing) {
|
|
6164
|
-
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
6165
|
-
}
|
|
6166
|
-
|
|
6167
|
-
return {
|
|
6168
|
-
alias: alias,
|
|
6169
|
-
name: intrinsicName,
|
|
6170
|
-
value: value
|
|
6171
|
-
};
|
|
6172
|
-
}
|
|
6173
|
-
|
|
6174
|
-
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
6175
|
-
};
|
|
6176
|
-
|
|
6177
|
-
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
6178
|
-
if (typeof name !== 'string' || name.length === 0) {
|
|
6179
|
-
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
6180
|
-
}
|
|
6181
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
6182
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
6183
|
-
}
|
|
6184
|
-
|
|
6185
|
-
var parts = stringToPath(name);
|
|
6186
|
-
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
6187
|
-
|
|
6188
|
-
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
6189
|
-
var intrinsicRealName = intrinsic.name;
|
|
6190
|
-
var value = intrinsic.value;
|
|
6191
|
-
var skipFurtherCaching = false;
|
|
6192
|
-
|
|
6193
|
-
var alias = intrinsic.alias;
|
|
6194
|
-
if (alias) {
|
|
6195
|
-
intrinsicBaseName = alias[0];
|
|
6196
|
-
$spliceApply(parts, $concat([0, 1], alias));
|
|
6197
|
-
}
|
|
6198
|
-
|
|
6199
|
-
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
6200
|
-
var part = parts[i];
|
|
6201
|
-
var first = $strSlice(part, 0, 1);
|
|
6202
|
-
var last = $strSlice(part, -1);
|
|
6203
|
-
if (
|
|
6204
|
-
(
|
|
6205
|
-
(first === '"' || first === "'" || first === '`')
|
|
6206
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
6207
|
-
)
|
|
6208
|
-
&& first !== last
|
|
6209
|
-
) {
|
|
6210
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
6211
|
-
}
|
|
6212
|
-
if (part === 'constructor' || !isOwn) {
|
|
6213
|
-
skipFurtherCaching = true;
|
|
6214
|
-
}
|
|
6215
|
-
|
|
6216
|
-
intrinsicBaseName += '.' + part;
|
|
6217
|
-
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
6218
|
-
|
|
6219
|
-
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
6220
|
-
value = INTRINSICS[intrinsicRealName];
|
|
6221
|
-
} else if (value != null) {
|
|
6222
|
-
if (!(part in value)) {
|
|
6223
|
-
if (!allowMissing) {
|
|
6224
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
6225
|
-
}
|
|
6226
|
-
return void undefined;
|
|
6227
|
-
}
|
|
6228
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
6229
|
-
var desc = $gOPD(value, part);
|
|
6230
|
-
isOwn = !!desc;
|
|
6231
|
-
|
|
6232
|
-
// By convention, when a data property is converted to an accessor
|
|
6233
|
-
// property to emulate a data property that does not suffer from
|
|
6234
|
-
// the override mistake, that accessor's getter is marked with
|
|
6235
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
6236
|
-
// uphold the illusion by pretending to see that original data
|
|
6237
|
-
// property, i.e., returning the value rather than the getter
|
|
6238
|
-
// itself.
|
|
6239
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
6240
|
-
value = desc.get;
|
|
6241
|
-
} else {
|
|
6242
|
-
value = value[part];
|
|
6243
|
-
}
|
|
6244
|
-
} else {
|
|
6245
|
-
isOwn = hasOwn(value, part);
|
|
6246
|
-
value = value[part];
|
|
6247
|
-
}
|
|
5963
|
+
if (options.skipNulls && obj[key] === null) {
|
|
5964
|
+
continue;
|
|
5965
|
+
}
|
|
5966
|
+
pushToArray(keys, stringify(
|
|
5967
|
+
obj[key],
|
|
5968
|
+
key,
|
|
5969
|
+
generateArrayPrefix,
|
|
5970
|
+
options.strictNullHandling,
|
|
5971
|
+
options.skipNulls,
|
|
5972
|
+
options.encode ? options.encoder : null,
|
|
5973
|
+
options.filter,
|
|
5974
|
+
options.sort,
|
|
5975
|
+
options.allowDots,
|
|
5976
|
+
options.serializeDate,
|
|
5977
|
+
options.format,
|
|
5978
|
+
options.formatter,
|
|
5979
|
+
options.encodeValuesOnly,
|
|
5980
|
+
options.charset,
|
|
5981
|
+
sideChannel
|
|
5982
|
+
));
|
|
5983
|
+
}
|
|
6248
5984
|
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
5985
|
+
var joined = keys.join(options.delimiter);
|
|
5986
|
+
var prefix = options.addQueryPrefix === true ? '?' : '';
|
|
5987
|
+
|
|
5988
|
+
if (options.charsetSentinel) {
|
|
5989
|
+
if (options.charset === 'iso-8859-1') {
|
|
5990
|
+
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
|
5991
|
+
prefix += 'utf8=%26%2310003%3B&';
|
|
5992
|
+
} else {
|
|
5993
|
+
// encodeURIComponent('✓')
|
|
5994
|
+
prefix += 'utf8=%E2%9C%93&';
|
|
5995
|
+
}
|
|
5996
|
+
}
|
|
5997
|
+
|
|
5998
|
+
return joined.length > 0 ? prefix + joined : '';
|
|
6255
5999
|
};
|
|
6256
6000
|
|
|
6257
6001
|
|
|
6258
6002
|
/***/ }),
|
|
6259
6003
|
|
|
6260
|
-
/***/ "../node_modules/
|
|
6261
|
-
|
|
6262
|
-
!*** ../node_modules/
|
|
6263
|
-
|
|
6004
|
+
/***/ "../node_modules/qs/lib/utils.js":
|
|
6005
|
+
/*!***************************************!*\
|
|
6006
|
+
!*** ../node_modules/qs/lib/utils.js ***!
|
|
6007
|
+
\***************************************/
|
|
6264
6008
|
/*! no static exports found */
|
|
6265
6009
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6266
6010
|
|
|
6267
|
-
|
|
6268
|
-
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
6269
|
-
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
6270
|
-
var mapForEach = hasMap && Map.prototype.forEach;
|
|
6271
|
-
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
6272
|
-
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
6273
|
-
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
6274
|
-
var setForEach = hasSet && Set.prototype.forEach;
|
|
6275
|
-
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
6276
|
-
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
6277
|
-
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
6278
|
-
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
6279
|
-
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
6280
|
-
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
6281
|
-
var booleanValueOf = Boolean.prototype.valueOf;
|
|
6282
|
-
var objectToString = Object.prototype.toString;
|
|
6283
|
-
var functionToString = Function.prototype.toString;
|
|
6284
|
-
var match = String.prototype.match;
|
|
6285
|
-
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
6286
|
-
var gOPS = Object.getOwnPropertySymbols;
|
|
6287
|
-
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
6288
|
-
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
6011
|
+
"use strict";
|
|
6289
6012
|
|
|
6290
|
-
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
6291
|
-
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
6292
|
-
? function (O) {
|
|
6293
|
-
return O.__proto__; // eslint-disable-line no-proto
|
|
6294
|
-
}
|
|
6295
|
-
: null
|
|
6296
|
-
);
|
|
6297
6013
|
|
|
6298
|
-
var
|
|
6299
|
-
var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
|
|
6300
|
-
var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag === 'symbol' ? Symbol.toStringTag : null;
|
|
6014
|
+
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
6301
6015
|
|
|
6302
|
-
|
|
6303
|
-
|
|
6016
|
+
var has = Object.prototype.hasOwnProperty;
|
|
6017
|
+
var isArray = Array.isArray;
|
|
6304
6018
|
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
6310
|
-
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
6311
|
-
: opts.maxStringLength !== null
|
|
6312
|
-
)
|
|
6313
|
-
) {
|
|
6314
|
-
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
6315
|
-
}
|
|
6316
|
-
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
6317
|
-
if (typeof customInspect !== 'boolean') {
|
|
6318
|
-
throw new TypeError('option "customInspect", if provided, must be `true` or `false`');
|
|
6019
|
+
var hexTable = (function () {
|
|
6020
|
+
var array = [];
|
|
6021
|
+
for (var i = 0; i < 256; ++i) {
|
|
6022
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
6319
6023
|
}
|
|
6320
6024
|
|
|
6321
|
-
|
|
6322
|
-
|
|
6323
|
-
&& opts.indent !== null
|
|
6324
|
-
&& opts.indent !== '\t'
|
|
6325
|
-
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
6326
|
-
) {
|
|
6327
|
-
throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
|
|
6328
|
-
}
|
|
6025
|
+
return array;
|
|
6026
|
+
}());
|
|
6329
6027
|
|
|
6330
|
-
|
|
6331
|
-
|
|
6332
|
-
|
|
6333
|
-
|
|
6334
|
-
return 'null';
|
|
6335
|
-
}
|
|
6336
|
-
if (typeof obj === 'boolean') {
|
|
6337
|
-
return obj ? 'true' : 'false';
|
|
6338
|
-
}
|
|
6028
|
+
var compactQueue = function compactQueue(queue) {
|
|
6029
|
+
while (queue.length > 1) {
|
|
6030
|
+
var item = queue.pop();
|
|
6031
|
+
var obj = item.obj[item.prop];
|
|
6339
6032
|
|
|
6340
|
-
|
|
6341
|
-
|
|
6342
|
-
|
|
6343
|
-
|
|
6344
|
-
|
|
6345
|
-
|
|
6033
|
+
if (isArray(obj)) {
|
|
6034
|
+
var compacted = [];
|
|
6035
|
+
|
|
6036
|
+
for (var j = 0; j < obj.length; ++j) {
|
|
6037
|
+
if (typeof obj[j] !== 'undefined') {
|
|
6038
|
+
compacted.push(obj[j]);
|
|
6039
|
+
}
|
|
6040
|
+
}
|
|
6041
|
+
|
|
6042
|
+
item.obj[item.prop] = compacted;
|
|
6346
6043
|
}
|
|
6347
|
-
return String(obj);
|
|
6348
|
-
}
|
|
6349
|
-
if (typeof obj === 'bigint') {
|
|
6350
|
-
return String(obj) + 'n';
|
|
6351
6044
|
}
|
|
6045
|
+
};
|
|
6352
6046
|
|
|
6353
|
-
|
|
6354
|
-
|
|
6355
|
-
|
|
6356
|
-
|
|
6047
|
+
var arrayToObject = function arrayToObject(source, options) {
|
|
6048
|
+
var obj = options && options.plainObjects ? Object.create(null) : {};
|
|
6049
|
+
for (var i = 0; i < source.length; ++i) {
|
|
6050
|
+
if (typeof source[i] !== 'undefined') {
|
|
6051
|
+
obj[i] = source[i];
|
|
6052
|
+
}
|
|
6357
6053
|
}
|
|
6358
6054
|
|
|
6359
|
-
|
|
6055
|
+
return obj;
|
|
6056
|
+
};
|
|
6360
6057
|
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6364
|
-
return
|
|
6058
|
+
var merge = function merge(target, source, options) {
|
|
6059
|
+
/* eslint no-param-reassign: 0 */
|
|
6060
|
+
if (!source) {
|
|
6061
|
+
return target;
|
|
6365
6062
|
}
|
|
6366
6063
|
|
|
6367
|
-
|
|
6368
|
-
if (
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
var newOpts = {
|
|
6374
|
-
depth: opts.depth
|
|
6375
|
-
};
|
|
6376
|
-
if (has(opts, 'quoteStyle')) {
|
|
6377
|
-
newOpts.quoteStyle = opts.quoteStyle;
|
|
6064
|
+
if (typeof source !== 'object') {
|
|
6065
|
+
if (isArray(target)) {
|
|
6066
|
+
target.push(source);
|
|
6067
|
+
} else if (target && typeof target === 'object') {
|
|
6068
|
+
if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
|
|
6069
|
+
target[source] = true;
|
|
6378
6070
|
}
|
|
6379
|
-
|
|
6071
|
+
} else {
|
|
6072
|
+
return [target, source];
|
|
6380
6073
|
}
|
|
6381
|
-
return inspect_(value, opts, depth + 1, seen);
|
|
6382
|
-
}
|
|
6383
6074
|
|
|
6384
|
-
|
|
6385
|
-
var name = nameOf(obj);
|
|
6386
|
-
var keys = arrObjKeys(obj, inspect);
|
|
6387
|
-
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
|
|
6388
|
-
}
|
|
6389
|
-
if (isSymbol(obj)) {
|
|
6390
|
-
var symString = symToString.call(obj);
|
|
6391
|
-
return typeof obj === 'object' ? markBoxed(symString) : symString;
|
|
6392
|
-
}
|
|
6393
|
-
if (isElement(obj)) {
|
|
6394
|
-
var s = '<' + String(obj.nodeName).toLowerCase();
|
|
6395
|
-
var attrs = obj.attributes || [];
|
|
6396
|
-
for (var i = 0; i < attrs.length; i++) {
|
|
6397
|
-
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
6398
|
-
}
|
|
6399
|
-
s += '>';
|
|
6400
|
-
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
6401
|
-
s += '</' + String(obj.nodeName).toLowerCase() + '>';
|
|
6402
|
-
return s;
|
|
6403
|
-
}
|
|
6404
|
-
if (isArray(obj)) {
|
|
6405
|
-
if (obj.length === 0) { return '[]'; }
|
|
6406
|
-
var xs = arrObjKeys(obj, inspect);
|
|
6407
|
-
if (indent && !singleLineValues(xs)) {
|
|
6408
|
-
return '[' + indentedJoin(xs, indent) + ']';
|
|
6409
|
-
}
|
|
6410
|
-
return '[ ' + xs.join(', ') + ' ]';
|
|
6411
|
-
}
|
|
6412
|
-
if (isError(obj)) {
|
|
6413
|
-
var parts = arrObjKeys(obj, inspect);
|
|
6414
|
-
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
6415
|
-
return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
|
|
6416
|
-
}
|
|
6417
|
-
if (typeof obj === 'object' && customInspect) {
|
|
6418
|
-
if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
|
|
6419
|
-
return obj[inspectSymbol]();
|
|
6420
|
-
} else if (typeof obj.inspect === 'function') {
|
|
6421
|
-
return obj.inspect();
|
|
6422
|
-
}
|
|
6423
|
-
}
|
|
6424
|
-
if (isMap(obj)) {
|
|
6425
|
-
var mapParts = [];
|
|
6426
|
-
mapForEach.call(obj, function (value, key) {
|
|
6427
|
-
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
6428
|
-
});
|
|
6429
|
-
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
6430
|
-
}
|
|
6431
|
-
if (isSet(obj)) {
|
|
6432
|
-
var setParts = [];
|
|
6433
|
-
setForEach.call(obj, function (value) {
|
|
6434
|
-
setParts.push(inspect(value, obj));
|
|
6435
|
-
});
|
|
6436
|
-
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
6437
|
-
}
|
|
6438
|
-
if (isWeakMap(obj)) {
|
|
6439
|
-
return weakCollectionOf('WeakMap');
|
|
6440
|
-
}
|
|
6441
|
-
if (isWeakSet(obj)) {
|
|
6442
|
-
return weakCollectionOf('WeakSet');
|
|
6443
|
-
}
|
|
6444
|
-
if (isWeakRef(obj)) {
|
|
6445
|
-
return weakCollectionOf('WeakRef');
|
|
6446
|
-
}
|
|
6447
|
-
if (isNumber(obj)) {
|
|
6448
|
-
return markBoxed(inspect(Number(obj)));
|
|
6449
|
-
}
|
|
6450
|
-
if (isBigInt(obj)) {
|
|
6451
|
-
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
6452
|
-
}
|
|
6453
|
-
if (isBoolean(obj)) {
|
|
6454
|
-
return markBoxed(booleanValueOf.call(obj));
|
|
6455
|
-
}
|
|
6456
|
-
if (isString(obj)) {
|
|
6457
|
-
return markBoxed(inspect(String(obj)));
|
|
6075
|
+
return target;
|
|
6458
6076
|
}
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
6463
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
|
|
6464
|
-
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
6465
|
-
var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
|
|
6466
|
-
if (ys.length === 0) { return tag + '{}'; }
|
|
6467
|
-
if (indent) {
|
|
6468
|
-
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
6469
|
-
}
|
|
6470
|
-
return tag + '{ ' + ys.join(', ') + ' }';
|
|
6077
|
+
|
|
6078
|
+
if (!target || typeof target !== 'object') {
|
|
6079
|
+
return [target].concat(source);
|
|
6471
6080
|
}
|
|
6472
|
-
return String(obj);
|
|
6473
|
-
};
|
|
6474
6081
|
|
|
6475
|
-
|
|
6476
|
-
|
|
6477
|
-
|
|
6478
|
-
}
|
|
6082
|
+
var mergeTarget = target;
|
|
6083
|
+
if (isArray(target) && !isArray(source)) {
|
|
6084
|
+
mergeTarget = arrayToObject(target, options);
|
|
6085
|
+
}
|
|
6479
6086
|
|
|
6480
|
-
|
|
6481
|
-
|
|
6482
|
-
|
|
6087
|
+
if (isArray(target) && isArray(source)) {
|
|
6088
|
+
source.forEach(function (item, i) {
|
|
6089
|
+
if (has.call(target, i)) {
|
|
6090
|
+
var targetItem = target[i];
|
|
6091
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
6092
|
+
target[i] = merge(targetItem, item, options);
|
|
6093
|
+
} else {
|
|
6094
|
+
target.push(item);
|
|
6095
|
+
}
|
|
6096
|
+
} else {
|
|
6097
|
+
target[i] = item;
|
|
6098
|
+
}
|
|
6099
|
+
});
|
|
6100
|
+
return target;
|
|
6101
|
+
}
|
|
6483
6102
|
|
|
6484
|
-
|
|
6485
|
-
|
|
6486
|
-
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
6487
|
-
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
6488
|
-
function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
6489
|
-
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
6490
|
-
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
6103
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
6104
|
+
var value = source[key];
|
|
6491
6105
|
|
|
6492
|
-
|
|
6493
|
-
|
|
6494
|
-
|
|
6495
|
-
|
|
6496
|
-
|
|
6497
|
-
|
|
6498
|
-
|
|
6106
|
+
if (has.call(acc, key)) {
|
|
6107
|
+
acc[key] = merge(acc[key], value, options);
|
|
6108
|
+
} else {
|
|
6109
|
+
acc[key] = value;
|
|
6110
|
+
}
|
|
6111
|
+
return acc;
|
|
6112
|
+
}, mergeTarget);
|
|
6113
|
+
};
|
|
6114
|
+
|
|
6115
|
+
var assign = function assignSingleSource(target, source) {
|
|
6116
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
6117
|
+
acc[key] = source[key];
|
|
6118
|
+
return acc;
|
|
6119
|
+
}, target);
|
|
6120
|
+
};
|
|
6121
|
+
|
|
6122
|
+
var decode = function (str, decoder, charset) {
|
|
6123
|
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
6124
|
+
if (charset === 'iso-8859-1') {
|
|
6125
|
+
// unescape never throws, no try...catch needed:
|
|
6126
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
6499
6127
|
}
|
|
6128
|
+
// utf-8
|
|
6500
6129
|
try {
|
|
6501
|
-
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
}
|
|
6130
|
+
return decodeURIComponent(strWithoutPlus);
|
|
6131
|
+
} catch (e) {
|
|
6132
|
+
return strWithoutPlus;
|
|
6133
|
+
}
|
|
6134
|
+
};
|
|
6506
6135
|
|
|
6507
|
-
function
|
|
6508
|
-
|
|
6509
|
-
|
|
6136
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
6137
|
+
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
6138
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
|
6139
|
+
if (str.length === 0) {
|
|
6140
|
+
return str;
|
|
6510
6141
|
}
|
|
6511
|
-
try {
|
|
6512
|
-
bigIntValueOf.call(obj);
|
|
6513
|
-
return true;
|
|
6514
|
-
} catch (e) {}
|
|
6515
|
-
return false;
|
|
6516
|
-
}
|
|
6517
6142
|
|
|
6518
|
-
var
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
}
|
|
6143
|
+
var string = str;
|
|
6144
|
+
if (typeof str === 'symbol') {
|
|
6145
|
+
string = Symbol.prototype.toString.call(str);
|
|
6146
|
+
} else if (typeof str !== 'string') {
|
|
6147
|
+
string = String(str);
|
|
6148
|
+
}
|
|
6522
6149
|
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6150
|
+
if (charset === 'iso-8859-1') {
|
|
6151
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
6152
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
6153
|
+
});
|
|
6154
|
+
}
|
|
6526
6155
|
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
if (m) { return m[1]; }
|
|
6531
|
-
return null;
|
|
6532
|
-
}
|
|
6156
|
+
var out = '';
|
|
6157
|
+
for (var i = 0; i < string.length; ++i) {
|
|
6158
|
+
var c = string.charCodeAt(i);
|
|
6533
6159
|
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6160
|
+
if (
|
|
6161
|
+
c === 0x2D // -
|
|
6162
|
+
|| c === 0x2E // .
|
|
6163
|
+
|| c === 0x5F // _
|
|
6164
|
+
|| c === 0x7E // ~
|
|
6165
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
6166
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
6167
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
6168
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
6169
|
+
) {
|
|
6170
|
+
out += string.charAt(i);
|
|
6171
|
+
continue;
|
|
6172
|
+
}
|
|
6541
6173
|
|
|
6542
|
-
|
|
6543
|
-
|
|
6544
|
-
|
|
6545
|
-
}
|
|
6546
|
-
try {
|
|
6547
|
-
mapSize.call(x);
|
|
6548
|
-
try {
|
|
6549
|
-
setSize.call(x);
|
|
6550
|
-
} catch (s) {
|
|
6551
|
-
return true;
|
|
6174
|
+
if (c < 0x80) {
|
|
6175
|
+
out = out + hexTable[c];
|
|
6176
|
+
continue;
|
|
6552
6177
|
}
|
|
6553
|
-
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
6554
|
-
} catch (e) {}
|
|
6555
|
-
return false;
|
|
6556
|
-
}
|
|
6557
6178
|
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
}
|
|
6562
|
-
try {
|
|
6563
|
-
weakMapHas.call(x, weakMapHas);
|
|
6564
|
-
try {
|
|
6565
|
-
weakSetHas.call(x, weakSetHas);
|
|
6566
|
-
} catch (s) {
|
|
6567
|
-
return true;
|
|
6179
|
+
if (c < 0x800) {
|
|
6180
|
+
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
6181
|
+
continue;
|
|
6568
6182
|
}
|
|
6569
|
-
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
6570
|
-
} catch (e) {}
|
|
6571
|
-
return false;
|
|
6572
|
-
}
|
|
6573
6183
|
|
|
6574
|
-
|
|
6575
|
-
|
|
6576
|
-
|
|
6577
|
-
|
|
6578
|
-
try {
|
|
6579
|
-
weakRefDeref.call(x);
|
|
6580
|
-
return true;
|
|
6581
|
-
} catch (e) {}
|
|
6582
|
-
return false;
|
|
6583
|
-
}
|
|
6184
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
6185
|
+
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
|
6186
|
+
continue;
|
|
6187
|
+
}
|
|
6584
6188
|
|
|
6585
|
-
|
|
6586
|
-
|
|
6587
|
-
|
|
6189
|
+
i += 1;
|
|
6190
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
6191
|
+
out += hexTable[0xF0 | (c >> 18)]
|
|
6192
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
6193
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
6194
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
6588
6195
|
}
|
|
6589
|
-
|
|
6590
|
-
|
|
6591
|
-
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
|
|
6196
|
+
|
|
6197
|
+
return out;
|
|
6198
|
+
};
|
|
6199
|
+
|
|
6200
|
+
var compact = function compact(value) {
|
|
6201
|
+
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
6202
|
+
var refs = [];
|
|
6203
|
+
|
|
6204
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
6205
|
+
var item = queue[i];
|
|
6206
|
+
var obj = item.obj[item.prop];
|
|
6207
|
+
|
|
6208
|
+
var keys = Object.keys(obj);
|
|
6209
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
6210
|
+
var key = keys[j];
|
|
6211
|
+
var val = obj[key];
|
|
6212
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
6213
|
+
queue.push({ obj: obj, prop: key });
|
|
6214
|
+
refs.push(val);
|
|
6215
|
+
}
|
|
6595
6216
|
}
|
|
6596
|
-
|
|
6597
|
-
} catch (e) {}
|
|
6598
|
-
return false;
|
|
6599
|
-
}
|
|
6217
|
+
}
|
|
6600
6218
|
|
|
6601
|
-
|
|
6602
|
-
|
|
6219
|
+
compactQueue(queue);
|
|
6220
|
+
|
|
6221
|
+
return value;
|
|
6222
|
+
};
|
|
6223
|
+
|
|
6224
|
+
var isRegExp = function isRegExp(obj) {
|
|
6225
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
6226
|
+
};
|
|
6227
|
+
|
|
6228
|
+
var isBuffer = function isBuffer(obj) {
|
|
6229
|
+
if (!obj || typeof obj !== 'object') {
|
|
6603
6230
|
return false;
|
|
6604
6231
|
}
|
|
6605
|
-
try {
|
|
6606
|
-
weakSetHas.call(x, weakSetHas);
|
|
6607
|
-
try {
|
|
6608
|
-
weakMapHas.call(x, weakMapHas);
|
|
6609
|
-
} catch (s) {
|
|
6610
|
-
return true;
|
|
6611
|
-
}
|
|
6612
|
-
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
6613
|
-
} catch (e) {}
|
|
6614
|
-
return false;
|
|
6615
|
-
}
|
|
6616
6232
|
|
|
6617
|
-
|
|
6618
|
-
|
|
6619
|
-
|
|
6620
|
-
|
|
6233
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
6234
|
+
};
|
|
6235
|
+
|
|
6236
|
+
var combine = function combine(a, b) {
|
|
6237
|
+
return [].concat(a, b);
|
|
6238
|
+
};
|
|
6239
|
+
|
|
6240
|
+
var maybeMap = function maybeMap(val, fn) {
|
|
6241
|
+
if (isArray(val)) {
|
|
6242
|
+
var mapped = [];
|
|
6243
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
6244
|
+
mapped.push(fn(val[i]));
|
|
6245
|
+
}
|
|
6246
|
+
return mapped;
|
|
6621
6247
|
}
|
|
6622
|
-
return
|
|
6623
|
-
}
|
|
6248
|
+
return fn(val);
|
|
6249
|
+
};
|
|
6624
6250
|
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6251
|
+
module.exports = {
|
|
6252
|
+
arrayToObject: arrayToObject,
|
|
6253
|
+
assign: assign,
|
|
6254
|
+
combine: combine,
|
|
6255
|
+
compact: compact,
|
|
6256
|
+
decode: decode,
|
|
6257
|
+
encode: encode,
|
|
6258
|
+
isBuffer: isBuffer,
|
|
6259
|
+
isRegExp: isRegExp,
|
|
6260
|
+
maybeMap: maybeMap,
|
|
6261
|
+
merge: merge
|
|
6262
|
+
};
|
|
6635
6263
|
|
|
6636
|
-
function lowbyte(c) {
|
|
6637
|
-
var n = c.charCodeAt(0);
|
|
6638
|
-
var x = {
|
|
6639
|
-
8: 'b',
|
|
6640
|
-
9: 't',
|
|
6641
|
-
10: 'n',
|
|
6642
|
-
12: 'f',
|
|
6643
|
-
13: 'r'
|
|
6644
|
-
}[n];
|
|
6645
|
-
if (x) { return '\\' + x; }
|
|
6646
|
-
return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
|
|
6647
|
-
}
|
|
6648
6264
|
|
|
6649
|
-
|
|
6650
|
-
return 'Object(' + str + ')';
|
|
6651
|
-
}
|
|
6265
|
+
/***/ }),
|
|
6652
6266
|
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6267
|
+
/***/ "../node_modules/side-channel/index.js":
|
|
6268
|
+
/*!*********************************************!*\
|
|
6269
|
+
!*** ../node_modules/side-channel/index.js ***!
|
|
6270
|
+
\*********************************************/
|
|
6271
|
+
/*! no static exports found */
|
|
6272
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
6656
6273
|
|
|
6657
|
-
|
|
6658
|
-
var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
|
|
6659
|
-
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
6660
|
-
}
|
|
6274
|
+
"use strict";
|
|
6661
6275
|
|
|
6662
|
-
function singleLineValues(xs) {
|
|
6663
|
-
for (var i = 0; i < xs.length; i++) {
|
|
6664
|
-
if (indexOf(xs[i], '\n') >= 0) {
|
|
6665
|
-
return false;
|
|
6666
|
-
}
|
|
6667
|
-
}
|
|
6668
|
-
return true;
|
|
6669
|
-
}
|
|
6670
6276
|
|
|
6671
|
-
|
|
6672
|
-
|
|
6673
|
-
|
|
6674
|
-
baseIndent = '\t';
|
|
6675
|
-
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
6676
|
-
baseIndent = Array(opts.indent + 1).join(' ');
|
|
6677
|
-
} else {
|
|
6678
|
-
return null;
|
|
6679
|
-
}
|
|
6680
|
-
return {
|
|
6681
|
-
base: baseIndent,
|
|
6682
|
-
prev: Array(depth + 1).join(baseIndent)
|
|
6683
|
-
};
|
|
6684
|
-
}
|
|
6277
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
6278
|
+
var callBound = __webpack_require__(/*! call-bind/callBound */ "../node_modules/call-bind/callBound.js");
|
|
6279
|
+
var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js");
|
|
6685
6280
|
|
|
6686
|
-
|
|
6687
|
-
|
|
6688
|
-
|
|
6689
|
-
return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
|
|
6690
|
-
}
|
|
6281
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
6282
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
6283
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
6691
6284
|
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
|
|
6695
|
-
|
|
6696
|
-
|
|
6697
|
-
|
|
6698
|
-
|
|
6699
|
-
|
|
6700
|
-
|
|
6701
|
-
|
|
6702
|
-
|
|
6703
|
-
|
|
6704
|
-
|
|
6705
|
-
|
|
6706
|
-
|
|
6707
|
-
|
|
6708
|
-
|
|
6709
|
-
|
|
6710
|
-
|
|
6711
|
-
|
|
6712
|
-
|
|
6713
|
-
|
|
6714
|
-
|
|
6715
|
-
|
|
6716
|
-
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6285
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
6286
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
6287
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
6288
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
6289
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
6290
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
6291
|
+
|
|
6292
|
+
/*
|
|
6293
|
+
* This function traverses the list returning the node corresponding to the
|
|
6294
|
+
* given key.
|
|
6295
|
+
*
|
|
6296
|
+
* That node is also moved to the head of the list, so that if it's accessed
|
|
6297
|
+
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
6298
|
+
* used nodes can be accessed relatively quickly.
|
|
6299
|
+
*/
|
|
6300
|
+
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
6301
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
6302
|
+
if (curr.key === key) {
|
|
6303
|
+
prev.next = curr.next;
|
|
6304
|
+
curr.next = list.next;
|
|
6305
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
6306
|
+
return curr;
|
|
6307
|
+
}
|
|
6308
|
+
}
|
|
6309
|
+
};
|
|
6310
|
+
|
|
6311
|
+
var listGet = function (objects, key) {
|
|
6312
|
+
var node = listGetNode(objects, key);
|
|
6313
|
+
return node && node.value;
|
|
6314
|
+
};
|
|
6315
|
+
var listSet = function (objects, key, value) {
|
|
6316
|
+
var node = listGetNode(objects, key);
|
|
6317
|
+
if (node) {
|
|
6318
|
+
node.value = value;
|
|
6319
|
+
} else {
|
|
6320
|
+
// Prepend the new node to the beginning of the list
|
|
6321
|
+
objects.next = { // eslint-disable-line no-param-reassign
|
|
6322
|
+
key: key,
|
|
6323
|
+
next: objects.next,
|
|
6324
|
+
value: value
|
|
6325
|
+
};
|
|
6326
|
+
}
|
|
6327
|
+
};
|
|
6328
|
+
var listHas = function (objects, key) {
|
|
6329
|
+
return !!listGetNode(objects, key);
|
|
6330
|
+
};
|
|
6331
|
+
|
|
6332
|
+
module.exports = function getSideChannel() {
|
|
6333
|
+
var $wm;
|
|
6334
|
+
var $m;
|
|
6335
|
+
var $o;
|
|
6336
|
+
var channel = {
|
|
6337
|
+
assert: function (key) {
|
|
6338
|
+
if (!channel.has(key)) {
|
|
6339
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
6340
|
+
}
|
|
6341
|
+
},
|
|
6342
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
6343
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6344
|
+
if ($wm) {
|
|
6345
|
+
return $weakMapGet($wm, key);
|
|
6346
|
+
}
|
|
6347
|
+
} else if ($Map) {
|
|
6348
|
+
if ($m) {
|
|
6349
|
+
return $mapGet($m, key);
|
|
6350
|
+
}
|
|
6351
|
+
} else {
|
|
6352
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
6353
|
+
return listGet($o, key);
|
|
6354
|
+
}
|
|
6355
|
+
}
|
|
6356
|
+
},
|
|
6357
|
+
has: function (key) {
|
|
6358
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6359
|
+
if ($wm) {
|
|
6360
|
+
return $weakMapHas($wm, key);
|
|
6361
|
+
}
|
|
6362
|
+
} else if ($Map) {
|
|
6363
|
+
if ($m) {
|
|
6364
|
+
return $mapHas($m, key);
|
|
6365
|
+
}
|
|
6366
|
+
} else {
|
|
6367
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
6368
|
+
return listHas($o, key);
|
|
6369
|
+
}
|
|
6370
|
+
}
|
|
6371
|
+
return false;
|
|
6372
|
+
},
|
|
6373
|
+
set: function (key, value) {
|
|
6374
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6375
|
+
if (!$wm) {
|
|
6376
|
+
$wm = new $WeakMap();
|
|
6377
|
+
}
|
|
6378
|
+
$weakMapSet($wm, key, value);
|
|
6379
|
+
} else if ($Map) {
|
|
6380
|
+
if (!$m) {
|
|
6381
|
+
$m = new $Map();
|
|
6382
|
+
}
|
|
6383
|
+
$mapSet($m, key, value);
|
|
6384
|
+
} else {
|
|
6385
|
+
if (!$o) {
|
|
6386
|
+
/*
|
|
6387
|
+
* Initialize the linked list as an empty node, so that we don't have
|
|
6388
|
+
* to special-case handling of the first node: we can always refer to
|
|
6389
|
+
* it as (previous node).next, instead of something like (list).head
|
|
6390
|
+
*/
|
|
6391
|
+
$o = { key: {}, next: null };
|
|
6392
|
+
}
|
|
6393
|
+
listSet($o, key, value);
|
|
6394
|
+
}
|
|
6395
|
+
}
|
|
6396
|
+
};
|
|
6397
|
+
return channel;
|
|
6398
|
+
};
|
|
6720
6399
|
|
|
6721
6400
|
|
|
6722
6401
|
/***/ }),
|
|
@@ -6767,9 +6446,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6767
6446
|
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js");
|
|
6768
6447
|
/* harmony import */ var _create_contentful_api__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./create-contentful-api */ "./create-contentful-api.js");
|
|
6769
6448
|
/* harmony import */ var _create_global_options__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./create-global-options */ "./create-global-options.js");
|
|
6770
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
6449
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6771
6450
|
|
|
6772
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6451
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6773
6452
|
|
|
6774
6453
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6775
6454
|
|
|
@@ -6835,7 +6514,7 @@ function createClient(params) {
|
|
|
6835
6514
|
|
|
6836
6515
|
const config = _objectSpread(_objectSpread({}, defaultConfig), params);
|
|
6837
6516
|
|
|
6838
|
-
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.1.
|
|
6517
|
+
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.1.6"}`, config.application, config.integration);
|
|
6839
6518
|
config.headers = _objectSpread(_objectSpread({}, config.headers), {}, {
|
|
6840
6519
|
'Content-Type': 'application/vnd.contentful.delivery.v1+json',
|
|
6841
6520
|
'X-Contentful-User-Agent': userAgentHeader
|
|
@@ -6873,9 +6552,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6873
6552
|
/* harmony import */ var _paged_sync__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./paged-sync */ "./paged-sync.js");
|
|
6874
6553
|
/* harmony import */ var _utils_normalize_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./utils/normalize-select */ "./utils/normalize-select.js");
|
|
6875
6554
|
/* harmony import */ var _utils_validate_timestamp__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./utils/validate-timestamp */ "./utils/validate-timestamp.js");
|
|
6876
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
6555
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6877
6556
|
|
|
6878
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
6557
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
6879
6558
|
|
|
6880
6559
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6881
6560
|
|
|
@@ -6945,10 +6624,11 @@ const ASSET_KEY_MAX_LIFETIME = 48 * 60 * 60;
|
|
|
6945
6624
|
* @return {ClientAPI}
|
|
6946
6625
|
*/
|
|
6947
6626
|
|
|
6948
|
-
function createContentfulApi({
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6627
|
+
function createContentfulApi(_ref) {
|
|
6628
|
+
let {
|
|
6629
|
+
http,
|
|
6630
|
+
getGlobalOptions
|
|
6631
|
+
} = _ref;
|
|
6952
6632
|
const {
|
|
6953
6633
|
wrapSpace
|
|
6954
6634
|
} = _entities__WEBPACK_IMPORTED_MODULE_1__["default"].space;
|
|
@@ -7062,7 +6742,8 @@ function createContentfulApi({
|
|
|
7062
6742
|
*/
|
|
7063
6743
|
|
|
7064
6744
|
|
|
7065
|
-
async function getContentTypes(
|
|
6745
|
+
async function getContentTypes() {
|
|
6746
|
+
let query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7066
6747
|
switchToEnvironment(http);
|
|
7067
6748
|
|
|
7068
6749
|
try {
|
|
@@ -7093,7 +6774,9 @@ function createContentfulApi({
|
|
|
7093
6774
|
*/
|
|
7094
6775
|
|
|
7095
6776
|
|
|
7096
|
-
async function getEntry(id
|
|
6777
|
+
async function getEntry(id) {
|
|
6778
|
+
let query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
6779
|
+
|
|
7097
6780
|
if (!id) {
|
|
7098
6781
|
throw notFoundError(id);
|
|
7099
6782
|
}
|
|
@@ -7126,11 +6809,12 @@ function createContentfulApi({
|
|
|
7126
6809
|
* })
|
|
7127
6810
|
*
|
|
7128
6811
|
* const response = await client.getEntries()
|
|
7129
|
-
*
|
|
6812
|
+
* console.log(response.items)
|
|
7130
6813
|
*/
|
|
7131
6814
|
|
|
7132
6815
|
|
|
7133
|
-
async function getEntries(
|
|
6816
|
+
async function getEntries() {
|
|
6817
|
+
let query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7134
6818
|
switchToEnvironment(http);
|
|
7135
6819
|
const {
|
|
7136
6820
|
resolveLinks,
|
|
@@ -7169,7 +6853,8 @@ function createContentfulApi({
|
|
|
7169
6853
|
*/
|
|
7170
6854
|
|
|
7171
6855
|
|
|
7172
|
-
async function getAsset(id
|
|
6856
|
+
async function getAsset(id) {
|
|
6857
|
+
let query = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
7173
6858
|
switchToEnvironment(http);
|
|
7174
6859
|
query = Object(_utils_normalize_select__WEBPACK_IMPORTED_MODULE_3__["default"])(query);
|
|
7175
6860
|
|
|
@@ -7200,7 +6885,8 @@ function createContentfulApi({
|
|
|
7200
6885
|
*/
|
|
7201
6886
|
|
|
7202
6887
|
|
|
7203
|
-
async function getAssets(
|
|
6888
|
+
async function getAssets() {
|
|
6889
|
+
let query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7204
6890
|
switchToEnvironment(http);
|
|
7205
6891
|
query = Object(_utils_normalize_select__WEBPACK_IMPORTED_MODULE_3__["default"])(query);
|
|
7206
6892
|
|
|
@@ -7259,7 +6945,8 @@ function createContentfulApi({
|
|
|
7259
6945
|
*/
|
|
7260
6946
|
|
|
7261
6947
|
|
|
7262
|
-
async function getTags(
|
|
6948
|
+
async function getTags() {
|
|
6949
|
+
let query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7263
6950
|
switchToEnvironment(http);
|
|
7264
6951
|
query = Object(_utils_normalize_select__WEBPACK_IMPORTED_MODULE_3__["default"])(query);
|
|
7265
6952
|
|
|
@@ -7327,7 +7014,8 @@ function createContentfulApi({
|
|
|
7327
7014
|
*/
|
|
7328
7015
|
|
|
7329
7016
|
|
|
7330
|
-
async function getLocales(
|
|
7017
|
+
async function getLocales() {
|
|
7018
|
+
let query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7331
7019
|
switchToEnvironment(http);
|
|
7332
7020
|
|
|
7333
7021
|
try {
|
|
@@ -7374,9 +7062,11 @@ function createContentfulApi({
|
|
|
7374
7062
|
*/
|
|
7375
7063
|
|
|
7376
7064
|
|
|
7377
|
-
async function sync(
|
|
7378
|
-
|
|
7379
|
-
|
|
7065
|
+
async function sync() {
|
|
7066
|
+
let query = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
7067
|
+
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
7068
|
+
paginate: true
|
|
7069
|
+
};
|
|
7380
7070
|
const {
|
|
7381
7071
|
resolveLinks,
|
|
7382
7072
|
removeUnresolved
|
|
@@ -7765,10 +7455,11 @@ function wrapEntry(data) {
|
|
|
7765
7455
|
* @return {EntryCollection} Wrapped entry collection data
|
|
7766
7456
|
*/
|
|
7767
7457
|
|
|
7768
|
-
function wrapEntryCollection(data, {
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7458
|
+
function wrapEntryCollection(data, _ref) {
|
|
7459
|
+
let {
|
|
7460
|
+
resolveLinks,
|
|
7461
|
+
removeUnresolved
|
|
7462
|
+
} = _ref;
|
|
7772
7463
|
const wrappedData = Object(_mixins_stringify_safe__WEBPACK_IMPORTED_MODULE_2__["default"])(Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["toPlainObject"])(fast_copy__WEBPACK_IMPORTED_MODULE_0___default()(data)));
|
|
7773
7464
|
|
|
7774
7465
|
if (resolveLinks) {
|
|
@@ -7985,7 +7676,9 @@ function mixinStringifySafe(data) {
|
|
|
7985
7676
|
enumerable: false,
|
|
7986
7677
|
configurable: false,
|
|
7987
7678
|
writable: false,
|
|
7988
|
-
value: function (
|
|
7679
|
+
value: function () {
|
|
7680
|
+
let serializer = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
7681
|
+
let indent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
7989
7682
|
return json_stringify_safe__WEBPACK_IMPORTED_MODULE_0___default()(this, serializer, indent, (key, value) => {
|
|
7990
7683
|
return {
|
|
7991
7684
|
sys: {
|
|
@@ -8015,9 +7708,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8015
7708
|
/* harmony import */ var contentful_sdk_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! contentful-sdk-core */ "../node_modules/contentful-sdk-core/dist/index.es-modules.js");
|
|
8016
7709
|
/* harmony import */ var contentful_resolve_response__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! contentful-resolve-response */ "../node_modules/contentful-resolve-response/dist/esm/index.js");
|
|
8017
7710
|
/* harmony import */ var _mixins_stringify_safe__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mixins/stringify-safe */ "./mixins/stringify-safe.js");
|
|
8018
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
7711
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8019
7712
|
|
|
8020
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
7713
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8021
7714
|
|
|
8022
7715
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8023
7716
|
|
|
@@ -8066,7 +7759,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
8066
7759
|
* @return {Promise<SyncCollection>}
|
|
8067
7760
|
*/
|
|
8068
7761
|
|
|
8069
|
-
async function pagedSync(http, query
|
|
7762
|
+
async function pagedSync(http, query) {
|
|
7763
|
+
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
7764
|
+
|
|
8070
7765
|
if (!query || !query.initial && !query.nextSyncToken && !query.nextPageToken) {
|
|
8071
7766
|
throw new Error('Please provide one of `initial`, `nextSyncToken` or `nextPageToken` parameters for syncing');
|
|
8072
7767
|
}
|
|
@@ -8155,9 +7850,11 @@ function mapResponseItems(items) {
|
|
|
8155
7850
|
*/
|
|
8156
7851
|
|
|
8157
7852
|
|
|
8158
|
-
async function getSyncPage(http, items, query, {
|
|
8159
|
-
|
|
8160
|
-
|
|
7853
|
+
async function getSyncPage(http, items, query, _ref) {
|
|
7854
|
+
let {
|
|
7855
|
+
paginate
|
|
7856
|
+
} = _ref;
|
|
7857
|
+
|
|
8161
7858
|
if (query.nextSyncToken) {
|
|
8162
7859
|
query.sync_token = query.nextSyncToken;
|
|
8163
7860
|
delete query.nextSyncToken;
|
|
@@ -8228,9 +7925,9 @@ function getToken(url) {
|
|
|
8228
7925
|
"use strict";
|
|
8229
7926
|
__webpack_require__.r(__webpack_exports__);
|
|
8230
7927
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return normalizeSelect; });
|
|
8231
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
7928
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
8232
7929
|
|
|
8233
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
7930
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
8234
7931
|
|
|
8235
7932
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
8236
7933
|
|
|
@@ -8323,17 +8020,6 @@ module.exports = __webpack_require__(/*! ./contentful.js */"./contentful.js");
|
|
|
8323
8020
|
|
|
8324
8021
|
/* (ignored) */
|
|
8325
8022
|
|
|
8326
|
-
/***/ }),
|
|
8327
|
-
|
|
8328
|
-
/***/ 2:
|
|
8329
|
-
/*!********************!*\
|
|
8330
|
-
!*** os (ignored) ***!
|
|
8331
|
-
\********************/
|
|
8332
|
-
/*! no static exports found */
|
|
8333
|
-
/***/ (function(module, exports) {
|
|
8334
|
-
|
|
8335
|
-
/* (ignored) */
|
|
8336
|
-
|
|
8337
8023
|
/***/ })
|
|
8338
8024
|
|
|
8339
8025
|
/******/ });
|