contentful 9.1.3 → 9.1.4
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 +1570 -1845
- package/dist/contentful.browser.js.map +1 -1
- package/dist/contentful.browser.min.js +1 -1
- package/dist/contentful.node.js +1465 -1739
- package/dist/contentful.node.js.map +1 -1
- package/dist/contentful.node.min.js +1 -1
- package/dist/es-modules/contentful.js +1 -1
- package/package.json +4 -4
package/dist/contentful.node.js
CHANGED
|
@@ -1723,7 +1723,7 @@ module.exports = defaults;
|
|
|
1723
1723
|
/***/ (function(module, exports) {
|
|
1724
1724
|
|
|
1725
1725
|
module.exports = {
|
|
1726
|
-
"version": "0.
|
|
1726
|
+
"version": "0.24.0"
|
|
1727
1727
|
};
|
|
1728
1728
|
|
|
1729
1729
|
/***/ }),
|
|
@@ -2680,7 +2680,9 @@ var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
|
2680
2680
|
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
2681
2681
|
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
2682
2682
|
|
|
2683
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
2683
2684
|
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
2685
|
+
var $max = GetIntrinsic('%Math.max%');
|
|
2684
2686
|
|
|
2685
2687
|
if ($defineProperty) {
|
|
2686
2688
|
try {
|
|
@@ -2691,8 +2693,20 @@ if ($defineProperty) {
|
|
|
2691
2693
|
}
|
|
2692
2694
|
}
|
|
2693
2695
|
|
|
2694
|
-
module.exports = function callBind() {
|
|
2695
|
-
|
|
2696
|
+
module.exports = function callBind(originalFunction) {
|
|
2697
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
2698
|
+
if ($gOPD && $defineProperty) {
|
|
2699
|
+
var desc = $gOPD(func, 'length');
|
|
2700
|
+
if (desc.configurable) {
|
|
2701
|
+
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
2702
|
+
$defineProperty(
|
|
2703
|
+
func,
|
|
2704
|
+
'length',
|
|
2705
|
+
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
2706
|
+
);
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
return func;
|
|
2696
2710
|
};
|
|
2697
2711
|
|
|
2698
2712
|
var applyBind = function applyBind() {
|
|
@@ -5508,14 +5522,6 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
5508
5522
|
"use strict";
|
|
5509
5523
|
|
|
5510
5524
|
|
|
5511
|
-
/* globals
|
|
5512
|
-
AggregateError,
|
|
5513
|
-
Atomics,
|
|
5514
|
-
FinalizationRegistry,
|
|
5515
|
-
SharedArrayBuffer,
|
|
5516
|
-
WeakRef,
|
|
5517
|
-
*/
|
|
5518
|
-
|
|
5519
5525
|
var undefined;
|
|
5520
5526
|
|
|
5521
5527
|
var $SyntaxError = SyntaxError;
|
|
@@ -5525,8 +5531,7 @@ var $TypeError = TypeError;
|
|
|
5525
5531
|
// eslint-disable-next-line consistent-return
|
|
5526
5532
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
5527
5533
|
try {
|
|
5528
|
-
|
|
5529
|
-
return Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
5534
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
5530
5535
|
} catch (e) {}
|
|
5531
5536
|
};
|
|
5532
5537
|
|
|
@@ -5563,9 +5568,7 @@ var hasSymbols = __webpack_require__(/*! has-symbols */ "../node_modules/has-sym
|
|
|
5563
5568
|
|
|
5564
5569
|
var getProto = Object.getPrototypeOf || function (x) { return x.__proto__; }; // eslint-disable-line no-proto
|
|
5565
5570
|
|
|
5566
|
-
var
|
|
5567
|
-
var asyncGenFunctionPrototype = asyncGenFunction ? asyncGenFunction.prototype : undefined;
|
|
5568
|
-
var asyncGenPrototype = asyncGenFunctionPrototype ? asyncGenFunctionPrototype.prototype : undefined;
|
|
5571
|
+
var needsEval = {};
|
|
5569
5572
|
|
|
5570
5573
|
var TypedArray = typeof Uint8Array === 'undefined' ? undefined : getProto(Uint8Array);
|
|
5571
5574
|
|
|
@@ -5575,10 +5578,10 @@ var INTRINSICS = {
|
|
|
5575
5578
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
5576
5579
|
'%ArrayIteratorPrototype%': hasSymbols ? getProto([][Symbol.iterator]()) : undefined,
|
|
5577
5580
|
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
5578
|
-
'%AsyncFunction%':
|
|
5579
|
-
'%AsyncGenerator%':
|
|
5580
|
-
'%AsyncGeneratorFunction%':
|
|
5581
|
-
'%AsyncIteratorPrototype%':
|
|
5581
|
+
'%AsyncFunction%': needsEval,
|
|
5582
|
+
'%AsyncGenerator%': needsEval,
|
|
5583
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
5584
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
5582
5585
|
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
5583
5586
|
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
5584
5587
|
'%Boolean%': Boolean,
|
|
@@ -5595,7 +5598,7 @@ var INTRINSICS = {
|
|
|
5595
5598
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
5596
5599
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
5597
5600
|
'%Function%': $Function,
|
|
5598
|
-
'%GeneratorFunction%':
|
|
5601
|
+
'%GeneratorFunction%': needsEval,
|
|
5599
5602
|
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
5600
5603
|
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
5601
5604
|
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
@@ -5636,6 +5639,31 @@ var INTRINSICS = {
|
|
|
5636
5639
|
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
5637
5640
|
};
|
|
5638
5641
|
|
|
5642
|
+
var doEval = function doEval(name) {
|
|
5643
|
+
var value;
|
|
5644
|
+
if (name === '%AsyncFunction%') {
|
|
5645
|
+
value = getEvalledConstructor('async function () {}');
|
|
5646
|
+
} else if (name === '%GeneratorFunction%') {
|
|
5647
|
+
value = getEvalledConstructor('function* () {}');
|
|
5648
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
5649
|
+
value = getEvalledConstructor('async function* () {}');
|
|
5650
|
+
} else if (name === '%AsyncGenerator%') {
|
|
5651
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
5652
|
+
if (fn) {
|
|
5653
|
+
value = fn.prototype;
|
|
5654
|
+
}
|
|
5655
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
5656
|
+
var gen = doEval('%AsyncGenerator%');
|
|
5657
|
+
if (gen) {
|
|
5658
|
+
value = getProto(gen.prototype);
|
|
5659
|
+
}
|
|
5660
|
+
}
|
|
5661
|
+
|
|
5662
|
+
INTRINSICS[name] = value;
|
|
5663
|
+
|
|
5664
|
+
return value;
|
|
5665
|
+
};
|
|
5666
|
+
|
|
5639
5667
|
var LEGACY_ALIASES = {
|
|
5640
5668
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
5641
5669
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
@@ -5695,11 +5723,19 @@ var hasOwn = __webpack_require__(/*! has */ "../node_modules/has/src/index.js");
|
|
|
5695
5723
|
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
5696
5724
|
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
5697
5725
|
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
5726
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
5698
5727
|
|
|
5699
5728
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
5700
5729
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
5701
5730
|
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
5702
5731
|
var stringToPath = function stringToPath(string) {
|
|
5732
|
+
var first = $strSlice(string, 0, 1);
|
|
5733
|
+
var last = $strSlice(string, -1);
|
|
5734
|
+
if (first === '%' && last !== '%') {
|
|
5735
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
5736
|
+
} else if (last === '%' && first !== '%') {
|
|
5737
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
5738
|
+
}
|
|
5703
5739
|
var result = [];
|
|
5704
5740
|
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
5705
5741
|
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
@@ -5718,6 +5754,9 @@ var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
|
5718
5754
|
|
|
5719
5755
|
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
5720
5756
|
var value = INTRINSICS[intrinsicName];
|
|
5757
|
+
if (value === needsEval) {
|
|
5758
|
+
value = doEval(intrinsicName);
|
|
5759
|
+
}
|
|
5721
5760
|
if (typeof value === 'undefined' && !allowMissing) {
|
|
5722
5761
|
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
5723
5762
|
}
|
|
@@ -5756,6 +5795,17 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
5756
5795
|
|
|
5757
5796
|
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
5758
5797
|
var part = parts[i];
|
|
5798
|
+
var first = $strSlice(part, 0, 1);
|
|
5799
|
+
var last = $strSlice(part, -1);
|
|
5800
|
+
if (
|
|
5801
|
+
(
|
|
5802
|
+
(first === '"' || first === "'" || first === '`')
|
|
5803
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
5804
|
+
)
|
|
5805
|
+
&& first !== last
|
|
5806
|
+
) {
|
|
5807
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
5808
|
+
}
|
|
5759
5809
|
if (part === 'constructor' || !isOwn) {
|
|
5760
5810
|
skipFurtherCaching = true;
|
|
5761
5811
|
}
|
|
@@ -5766,13 +5816,16 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
5766
5816
|
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
5767
5817
|
value = INTRINSICS[intrinsicRealName];
|
|
5768
5818
|
} else if (value != null) {
|
|
5819
|
+
if (!(part in value)) {
|
|
5820
|
+
if (!allowMissing) {
|
|
5821
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
5822
|
+
}
|
|
5823
|
+
return void undefined;
|
|
5824
|
+
}
|
|
5769
5825
|
if ($gOPD && (i + 1) >= parts.length) {
|
|
5770
5826
|
var desc = $gOPD(value, part);
|
|
5771
5827
|
isOwn = !!desc;
|
|
5772
5828
|
|
|
5773
|
-
if (!allowMissing && !(part in value)) {
|
|
5774
|
-
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
5775
|
-
}
|
|
5776
5829
|
// By convention, when a data property is converted to an accessor
|
|
5777
5830
|
// property to emulate a data property that does not suffer from
|
|
5778
5831
|
// the override mistake, that accessor's getter is marked with
|
|
@@ -5811,7 +5864,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
5811
5864
|
"use strict";
|
|
5812
5865
|
|
|
5813
5866
|
|
|
5814
|
-
var origSymbol =
|
|
5867
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
5815
5868
|
var hasSymbolSham = __webpack_require__(/*! ./shams */ "../node_modules/has-symbols/shams.js");
|
|
5816
5869
|
|
|
5817
5870
|
module.exports = function hasNativeSymbols() {
|
|
@@ -5859,7 +5912,7 @@ module.exports = function hasSymbols() {
|
|
|
5859
5912
|
|
|
5860
5913
|
var symVal = 42;
|
|
5861
5914
|
obj[sym] = symVal;
|
|
5862
|
-
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax
|
|
5915
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
5863
5916
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
5864
5917
|
|
|
5865
5918
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -6354,1968 +6407,1641 @@ function plural(ms, n, name) {
|
|
|
6354
6407
|
|
|
6355
6408
|
/***/ }),
|
|
6356
6409
|
|
|
6357
|
-
/***/ "../node_modules/
|
|
6358
|
-
|
|
6359
|
-
!*** ../node_modules/
|
|
6360
|
-
|
|
6410
|
+
/***/ "../node_modules/object-inspect/index.js":
|
|
6411
|
+
/*!***********************************************!*\
|
|
6412
|
+
!*** ../node_modules/object-inspect/index.js ***!
|
|
6413
|
+
\***********************************************/
|
|
6361
6414
|
/*! no static exports found */
|
|
6362
6415
|
/***/ (function(module, exports, __webpack_require__) {
|
|
6363
6416
|
|
|
6364
|
-
|
|
6365
|
-
|
|
6366
|
-
|
|
6367
|
-
|
|
6368
|
-
|
|
6369
|
-
|
|
6370
|
-
|
|
6371
|
-
|
|
6372
|
-
|
|
6373
|
-
|
|
6374
|
-
|
|
6375
|
-
|
|
6376
|
-
|
|
6377
|
-
|
|
6378
|
-
|
|
6379
|
-
|
|
6380
|
-
|
|
6381
|
-
|
|
6382
|
-
|
|
6383
|
-
|
|
6384
|
-
|
|
6385
|
-
|
|
6386
|
-
|
|
6387
|
-
|
|
6388
|
-
function windowedDelay() {
|
|
6389
|
-
const now = Date.now();
|
|
6390
|
-
|
|
6391
|
-
if ((now - currentTick) > interval) {
|
|
6392
|
-
activeCount = 1;
|
|
6393
|
-
currentTick = now;
|
|
6394
|
-
return 0;
|
|
6395
|
-
}
|
|
6396
|
-
|
|
6397
|
-
if (activeCount < limit) {
|
|
6398
|
-
activeCount++;
|
|
6399
|
-
} else {
|
|
6400
|
-
currentTick += interval;
|
|
6401
|
-
activeCount = 1;
|
|
6402
|
-
}
|
|
6403
|
-
|
|
6404
|
-
return currentTick - now;
|
|
6405
|
-
}
|
|
6406
|
-
|
|
6407
|
-
const strictTicks = [];
|
|
6408
|
-
|
|
6409
|
-
function strictDelay() {
|
|
6410
|
-
const now = Date.now();
|
|
6417
|
+
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
6418
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
6419
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
6420
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
|
6421
|
+
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
6422
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
6423
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
6424
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
|
6425
|
+
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
6426
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
6427
|
+
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
6428
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
6429
|
+
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
6430
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
6431
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
|
6432
|
+
var objectToString = Object.prototype.toString;
|
|
6433
|
+
var functionToString = Function.prototype.toString;
|
|
6434
|
+
var match = String.prototype.match;
|
|
6435
|
+
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
6436
|
+
var gOPS = Object.getOwnPropertySymbols;
|
|
6437
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
6438
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
6439
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
6411
6440
|
|
|
6412
|
-
|
|
6413
|
-
|
|
6414
|
-
|
|
6415
|
-
|
|
6441
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
6442
|
+
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
6443
|
+
? function (O) {
|
|
6444
|
+
return O.__proto__; // eslint-disable-line no-proto
|
|
6445
|
+
}
|
|
6446
|
+
: null
|
|
6447
|
+
);
|
|
6416
6448
|
|
|
6417
|
-
|
|
6449
|
+
var inspectCustom = __webpack_require__(/*! ./util.inspect */ "../node_modules/object-inspect/util.inspect.js").custom;
|
|
6450
|
+
var inspectSymbol = inspectCustom && isSymbol(inspectCustom) ? inspectCustom : null;
|
|
6451
|
+
var toStringTag = typeof Symbol === 'function' && typeof Symbol.toStringTag !== 'undefined' ? Symbol.toStringTag : null;
|
|
6418
6452
|
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
return 0;
|
|
6422
|
-
}
|
|
6453
|
+
module.exports = function inspect_(obj, options, depth, seen) {
|
|
6454
|
+
var opts = options || {};
|
|
6423
6455
|
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
|
|
6456
|
+
if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
|
|
6457
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
6458
|
+
}
|
|
6459
|
+
if (
|
|
6460
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
6461
|
+
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
6462
|
+
: opts.maxStringLength !== null
|
|
6463
|
+
)
|
|
6464
|
+
) {
|
|
6465
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
6466
|
+
}
|
|
6467
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
6468
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
6469
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
6470
|
+
}
|
|
6427
6471
|
|
|
6428
|
-
|
|
6472
|
+
if (
|
|
6473
|
+
has(opts, 'indent')
|
|
6474
|
+
&& opts.indent !== null
|
|
6475
|
+
&& opts.indent !== '\t'
|
|
6476
|
+
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
6477
|
+
) {
|
|
6478
|
+
throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
|
|
6479
|
+
}
|
|
6429
6480
|
|
|
6430
|
-
|
|
6431
|
-
|
|
6432
|
-
|
|
6433
|
-
|
|
6434
|
-
|
|
6481
|
+
if (typeof obj === 'undefined') {
|
|
6482
|
+
return 'undefined';
|
|
6483
|
+
}
|
|
6484
|
+
if (obj === null) {
|
|
6485
|
+
return 'null';
|
|
6486
|
+
}
|
|
6487
|
+
if (typeof obj === 'boolean') {
|
|
6488
|
+
return obj ? 'true' : 'false';
|
|
6489
|
+
}
|
|
6435
6490
|
|
|
6436
|
-
|
|
6437
|
-
|
|
6438
|
-
|
|
6439
|
-
|
|
6440
|
-
|
|
6441
|
-
|
|
6491
|
+
if (typeof obj === 'string') {
|
|
6492
|
+
return inspectString(obj, opts);
|
|
6493
|
+
}
|
|
6494
|
+
if (typeof obj === 'number') {
|
|
6495
|
+
if (obj === 0) {
|
|
6496
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
|
6497
|
+
}
|
|
6498
|
+
return String(obj);
|
|
6499
|
+
}
|
|
6500
|
+
if (typeof obj === 'bigint') {
|
|
6501
|
+
return String(obj) + 'n';
|
|
6502
|
+
}
|
|
6442
6503
|
|
|
6443
|
-
|
|
6504
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
6505
|
+
if (typeof depth === 'undefined') { depth = 0; }
|
|
6506
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
6507
|
+
return isArray(obj) ? '[Array]' : '[Object]';
|
|
6508
|
+
}
|
|
6444
6509
|
|
|
6445
|
-
|
|
6446
|
-
});
|
|
6447
|
-
};
|
|
6510
|
+
var indent = getIndent(opts, depth);
|
|
6448
6511
|
|
|
6449
|
-
|
|
6450
|
-
|
|
6451
|
-
|
|
6452
|
-
|
|
6453
|
-
|
|
6512
|
+
if (typeof seen === 'undefined') {
|
|
6513
|
+
seen = [];
|
|
6514
|
+
} else if (indexOf(seen, obj) >= 0) {
|
|
6515
|
+
return '[Circular]';
|
|
6516
|
+
}
|
|
6454
6517
|
|
|
6455
|
-
|
|
6456
|
-
|
|
6457
|
-
|
|
6518
|
+
function inspect(value, from, noIndent) {
|
|
6519
|
+
if (from) {
|
|
6520
|
+
seen = seen.slice();
|
|
6521
|
+
seen.push(from);
|
|
6522
|
+
}
|
|
6523
|
+
if (noIndent) {
|
|
6524
|
+
var newOpts = {
|
|
6525
|
+
depth: opts.depth
|
|
6526
|
+
};
|
|
6527
|
+
if (has(opts, 'quoteStyle')) {
|
|
6528
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
|
6529
|
+
}
|
|
6530
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
|
6531
|
+
}
|
|
6532
|
+
return inspect_(value, opts, depth + 1, seen);
|
|
6533
|
+
}
|
|
6458
6534
|
|
|
6459
|
-
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
};
|
|
6464
|
-
|
|
6465
|
-
module.exports = pThrottle;
|
|
6466
|
-
module.exports.AbortError = AbortError;
|
|
6467
|
-
|
|
6468
|
-
|
|
6469
|
-
/***/ }),
|
|
6470
|
-
|
|
6471
|
-
/***/ "../node_modules/qs/lib/formats.js":
|
|
6472
|
-
/*!*****************************************!*\
|
|
6473
|
-
!*** ../node_modules/qs/lib/formats.js ***!
|
|
6474
|
-
\*****************************************/
|
|
6475
|
-
/*! no static exports found */
|
|
6476
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6477
|
-
|
|
6478
|
-
"use strict";
|
|
6479
|
-
|
|
6480
|
-
|
|
6481
|
-
var replace = String.prototype.replace;
|
|
6482
|
-
var percentTwenties = /%20/g;
|
|
6483
|
-
|
|
6484
|
-
var Format = {
|
|
6485
|
-
RFC1738: 'RFC1738',
|
|
6486
|
-
RFC3986: 'RFC3986'
|
|
6487
|
-
};
|
|
6488
|
-
|
|
6489
|
-
module.exports = {
|
|
6490
|
-
'default': Format.RFC3986,
|
|
6491
|
-
formatters: {
|
|
6492
|
-
RFC1738: function (value) {
|
|
6493
|
-
return replace.call(value, percentTwenties, '+');
|
|
6494
|
-
},
|
|
6495
|
-
RFC3986: function (value) {
|
|
6496
|
-
return String(value);
|
|
6497
|
-
}
|
|
6498
|
-
},
|
|
6499
|
-
RFC1738: Format.RFC1738,
|
|
6500
|
-
RFC3986: Format.RFC3986
|
|
6501
|
-
};
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
/***/ }),
|
|
6505
|
-
|
|
6506
|
-
/***/ "../node_modules/qs/lib/index.js":
|
|
6507
|
-
/*!***************************************!*\
|
|
6508
|
-
!*** ../node_modules/qs/lib/index.js ***!
|
|
6509
|
-
\***************************************/
|
|
6510
|
-
/*! no static exports found */
|
|
6511
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6512
|
-
|
|
6513
|
-
"use strict";
|
|
6514
|
-
|
|
6515
|
-
|
|
6516
|
-
var stringify = __webpack_require__(/*! ./stringify */ "../node_modules/qs/lib/stringify.js");
|
|
6517
|
-
var parse = __webpack_require__(/*! ./parse */ "../node_modules/qs/lib/parse.js");
|
|
6518
|
-
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
6519
|
-
|
|
6520
|
-
module.exports = {
|
|
6521
|
-
formats: formats,
|
|
6522
|
-
parse: parse,
|
|
6523
|
-
stringify: stringify
|
|
6524
|
-
};
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
/***/ }),
|
|
6528
|
-
|
|
6529
|
-
/***/ "../node_modules/qs/lib/parse.js":
|
|
6530
|
-
/*!***************************************!*\
|
|
6531
|
-
!*** ../node_modules/qs/lib/parse.js ***!
|
|
6532
|
-
\***************************************/
|
|
6533
|
-
/*! no static exports found */
|
|
6534
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6535
|
-
|
|
6536
|
-
"use strict";
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
var utils = __webpack_require__(/*! ./utils */ "../node_modules/qs/lib/utils.js");
|
|
6540
|
-
|
|
6541
|
-
var has = Object.prototype.hasOwnProperty;
|
|
6542
|
-
var isArray = Array.isArray;
|
|
6543
|
-
|
|
6544
|
-
var defaults = {
|
|
6545
|
-
allowDots: false,
|
|
6546
|
-
allowPrototypes: false,
|
|
6547
|
-
allowSparse: false,
|
|
6548
|
-
arrayLimit: 20,
|
|
6549
|
-
charset: 'utf-8',
|
|
6550
|
-
charsetSentinel: false,
|
|
6551
|
-
comma: false,
|
|
6552
|
-
decoder: utils.decode,
|
|
6553
|
-
delimiter: '&',
|
|
6554
|
-
depth: 5,
|
|
6555
|
-
ignoreQueryPrefix: false,
|
|
6556
|
-
interpretNumericEntities: false,
|
|
6557
|
-
parameterLimit: 1000,
|
|
6558
|
-
parseArrays: true,
|
|
6559
|
-
plainObjects: false,
|
|
6560
|
-
strictNullHandling: false
|
|
6561
|
-
};
|
|
6562
|
-
|
|
6563
|
-
var interpretNumericEntities = function (str) {
|
|
6564
|
-
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
6565
|
-
return String.fromCharCode(parseInt(numberStr, 10));
|
|
6566
|
-
});
|
|
6567
|
-
};
|
|
6568
|
-
|
|
6569
|
-
var parseArrayValue = function (val, options) {
|
|
6570
|
-
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
6571
|
-
return val.split(',');
|
|
6572
|
-
}
|
|
6573
|
-
|
|
6574
|
-
return val;
|
|
6575
|
-
};
|
|
6576
|
-
|
|
6577
|
-
// This is what browsers will submit when the ✓ character occurs in an
|
|
6578
|
-
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
6579
|
-
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
6580
|
-
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
|
6581
|
-
// the ✓ character, such as us-ascii.
|
|
6582
|
-
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
6583
|
-
|
|
6584
|
-
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
|
6585
|
-
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
6586
|
-
|
|
6587
|
-
var parseValues = function parseQueryStringValues(str, options) {
|
|
6588
|
-
var obj = {};
|
|
6589
|
-
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
6590
|
-
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
6591
|
-
var parts = cleanStr.split(options.delimiter, limit);
|
|
6592
|
-
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
6593
|
-
var i;
|
|
6594
|
-
|
|
6595
|
-
var charset = options.charset;
|
|
6596
|
-
if (options.charsetSentinel) {
|
|
6597
|
-
for (i = 0; i < parts.length; ++i) {
|
|
6598
|
-
if (parts[i].indexOf('utf8=') === 0) {
|
|
6599
|
-
if (parts[i] === charsetSentinel) {
|
|
6600
|
-
charset = 'utf-8';
|
|
6601
|
-
} else if (parts[i] === isoSentinel) {
|
|
6602
|
-
charset = 'iso-8859-1';
|
|
6603
|
-
}
|
|
6604
|
-
skipIndex = i;
|
|
6605
|
-
i = parts.length; // The eslint settings do not allow break;
|
|
6606
|
-
}
|
|
6607
|
-
}
|
|
6608
|
-
}
|
|
6609
|
-
|
|
6610
|
-
for (i = 0; i < parts.length; ++i) {
|
|
6611
|
-
if (i === skipIndex) {
|
|
6612
|
-
continue;
|
|
6613
|
-
}
|
|
6614
|
-
var part = parts[i];
|
|
6615
|
-
|
|
6616
|
-
var bracketEqualsPos = part.indexOf(']=');
|
|
6617
|
-
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
6618
|
-
|
|
6619
|
-
var key, val;
|
|
6620
|
-
if (pos === -1) {
|
|
6621
|
-
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
6622
|
-
val = options.strictNullHandling ? null : '';
|
|
6623
|
-
} else {
|
|
6624
|
-
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
6625
|
-
val = utils.maybeMap(
|
|
6626
|
-
parseArrayValue(part.slice(pos + 1), options),
|
|
6627
|
-
function (encodedVal) {
|
|
6628
|
-
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
6629
|
-
}
|
|
6630
|
-
);
|
|
6631
|
-
}
|
|
6632
|
-
|
|
6633
|
-
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
6634
|
-
val = interpretNumericEntities(val);
|
|
6635
|
-
}
|
|
6636
|
-
|
|
6637
|
-
if (part.indexOf('[]=') > -1) {
|
|
6638
|
-
val = isArray(val) ? [val] : val;
|
|
6639
|
-
}
|
|
6640
|
-
|
|
6641
|
-
if (has.call(obj, key)) {
|
|
6642
|
-
obj[key] = utils.combine(obj[key], val);
|
|
6643
|
-
} else {
|
|
6644
|
-
obj[key] = val;
|
|
6645
|
-
}
|
|
6646
|
-
}
|
|
6647
|
-
|
|
6648
|
-
return obj;
|
|
6649
|
-
};
|
|
6650
|
-
|
|
6651
|
-
var parseObject = function (chain, val, options, valuesParsed) {
|
|
6652
|
-
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
|
6653
|
-
|
|
6654
|
-
for (var i = chain.length - 1; i >= 0; --i) {
|
|
6655
|
-
var obj;
|
|
6656
|
-
var root = chain[i];
|
|
6657
|
-
|
|
6658
|
-
if (root === '[]' && options.parseArrays) {
|
|
6659
|
-
obj = [].concat(leaf);
|
|
6660
|
-
} else {
|
|
6661
|
-
obj = options.plainObjects ? Object.create(null) : {};
|
|
6662
|
-
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
6663
|
-
var index = parseInt(cleanRoot, 10);
|
|
6664
|
-
if (!options.parseArrays && cleanRoot === '') {
|
|
6665
|
-
obj = { 0: leaf };
|
|
6666
|
-
} else if (
|
|
6667
|
-
!isNaN(index)
|
|
6668
|
-
&& root !== cleanRoot
|
|
6669
|
-
&& String(index) === cleanRoot
|
|
6670
|
-
&& index >= 0
|
|
6671
|
-
&& (options.parseArrays && index <= options.arrayLimit)
|
|
6672
|
-
) {
|
|
6673
|
-
obj = [];
|
|
6674
|
-
obj[index] = leaf;
|
|
6675
|
-
} else {
|
|
6676
|
-
obj[cleanRoot] = leaf;
|
|
6677
|
-
}
|
|
6678
|
-
}
|
|
6679
|
-
|
|
6680
|
-
leaf = obj;
|
|
6681
|
-
}
|
|
6682
|
-
|
|
6683
|
-
return leaf;
|
|
6684
|
-
};
|
|
6685
|
-
|
|
6686
|
-
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
6687
|
-
if (!givenKey) {
|
|
6688
|
-
return;
|
|
6535
|
+
if (typeof obj === 'function') {
|
|
6536
|
+
var name = nameOf(obj);
|
|
6537
|
+
var keys = arrObjKeys(obj, inspect);
|
|
6538
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + keys.join(', ') + ' }' : '');
|
|
6689
6539
|
}
|
|
6690
|
-
|
|
6691
|
-
|
|
6692
|
-
|
|
6693
|
-
|
|
6694
|
-
// The regex chunks
|
|
6695
|
-
|
|
6696
|
-
var brackets = /(\[[^[\]]*])/;
|
|
6697
|
-
var child = /(\[[^[\]]*])/g;
|
|
6698
|
-
|
|
6699
|
-
// Get the parent
|
|
6700
|
-
|
|
6701
|
-
var segment = options.depth > 0 && brackets.exec(key);
|
|
6702
|
-
var parent = segment ? key.slice(0, segment.index) : key;
|
|
6703
|
-
|
|
6704
|
-
// Stash the parent if it exists
|
|
6705
|
-
|
|
6706
|
-
var keys = [];
|
|
6707
|
-
if (parent) {
|
|
6708
|
-
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
6709
|
-
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
6710
|
-
if (!options.allowPrototypes) {
|
|
6711
|
-
return;
|
|
6712
|
-
}
|
|
6713
|
-
}
|
|
6714
|
-
|
|
6715
|
-
keys.push(parent);
|
|
6540
|
+
if (isSymbol(obj)) {
|
|
6541
|
+
var symString = hasShammedSymbols ? String(obj).replace(/^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
6542
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
6716
6543
|
}
|
|
6717
|
-
|
|
6718
|
-
|
|
6719
|
-
|
|
6720
|
-
|
|
6721
|
-
|
|
6722
|
-
i += 1;
|
|
6723
|
-
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
6724
|
-
if (!options.allowPrototypes) {
|
|
6725
|
-
return;
|
|
6726
|
-
}
|
|
6544
|
+
if (isElement(obj)) {
|
|
6545
|
+
var s = '<' + String(obj.nodeName).toLowerCase();
|
|
6546
|
+
var attrs = obj.attributes || [];
|
|
6547
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
6548
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
6727
6549
|
}
|
|
6728
|
-
|
|
6729
|
-
|
|
6730
|
-
|
|
6731
|
-
|
|
6732
|
-
|
|
6733
|
-
if (segment) {
|
|
6734
|
-
keys.push('[' + key.slice(segment.index) + ']');
|
|
6735
|
-
}
|
|
6736
|
-
|
|
6737
|
-
return parseObject(keys, val, options, valuesParsed);
|
|
6738
|
-
};
|
|
6739
|
-
|
|
6740
|
-
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
6741
|
-
if (!opts) {
|
|
6742
|
-
return defaults;
|
|
6743
|
-
}
|
|
6744
|
-
|
|
6745
|
-
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
|
6746
|
-
throw new TypeError('Decoder has to be a function.');
|
|
6550
|
+
s += '>';
|
|
6551
|
+
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
6552
|
+
s += '</' + String(obj.nodeName).toLowerCase() + '>';
|
|
6553
|
+
return s;
|
|
6747
6554
|
}
|
|
6748
|
-
|
|
6749
|
-
|
|
6750
|
-
|
|
6555
|
+
if (isArray(obj)) {
|
|
6556
|
+
if (obj.length === 0) { return '[]'; }
|
|
6557
|
+
var xs = arrObjKeys(obj, inspect);
|
|
6558
|
+
if (indent && !singleLineValues(xs)) {
|
|
6559
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
|
6560
|
+
}
|
|
6561
|
+
return '[ ' + xs.join(', ') + ' ]';
|
|
6751
6562
|
}
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
6757
|
-
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
6758
|
-
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
6759
|
-
charset: charset,
|
|
6760
|
-
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
6761
|
-
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
6762
|
-
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
6763
|
-
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
6764
|
-
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
6765
|
-
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
6766
|
-
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
6767
|
-
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
6768
|
-
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
6769
|
-
parseArrays: opts.parseArrays !== false,
|
|
6770
|
-
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
6771
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
6772
|
-
};
|
|
6773
|
-
};
|
|
6774
|
-
|
|
6775
|
-
module.exports = function (str, opts) {
|
|
6776
|
-
var options = normalizeParseOptions(opts);
|
|
6777
|
-
|
|
6778
|
-
if (str === '' || str === null || typeof str === 'undefined') {
|
|
6779
|
-
return options.plainObjects ? Object.create(null) : {};
|
|
6563
|
+
if (isError(obj)) {
|
|
6564
|
+
var parts = arrObjKeys(obj, inspect);
|
|
6565
|
+
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
6566
|
+
return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
|
|
6780
6567
|
}
|
|
6781
|
-
|
|
6782
|
-
|
|
6783
|
-
|
|
6784
|
-
|
|
6785
|
-
|
|
6786
|
-
|
|
6787
|
-
var keys = Object.keys(tempObj);
|
|
6788
|
-
for (var i = 0; i < keys.length; ++i) {
|
|
6789
|
-
var key = keys[i];
|
|
6790
|
-
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
6791
|
-
obj = utils.merge(obj, newObj, options);
|
|
6568
|
+
if (typeof obj === 'object' && customInspect) {
|
|
6569
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function') {
|
|
6570
|
+
return obj[inspectSymbol]();
|
|
6571
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
6572
|
+
return obj.inspect();
|
|
6573
|
+
}
|
|
6792
6574
|
}
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
|
|
6575
|
+
if (isMap(obj)) {
|
|
6576
|
+
var mapParts = [];
|
|
6577
|
+
mapForEach.call(obj, function (value, key) {
|
|
6578
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
6579
|
+
});
|
|
6580
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
6796
6581
|
}
|
|
6797
|
-
|
|
6798
|
-
|
|
6799
|
-
|
|
6800
|
-
|
|
6801
|
-
|
|
6802
|
-
|
|
6803
|
-
|
|
6804
|
-
/***/ "../node_modules/qs/lib/stringify.js":
|
|
6805
|
-
/*!*******************************************!*\
|
|
6806
|
-
!*** ../node_modules/qs/lib/stringify.js ***!
|
|
6807
|
-
\*******************************************/
|
|
6808
|
-
/*! no static exports found */
|
|
6809
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
6810
|
-
|
|
6811
|
-
"use strict";
|
|
6812
|
-
|
|
6813
|
-
|
|
6814
|
-
var getSideChannel = __webpack_require__(/*! side-channel */ "../node_modules/side-channel/index.js");
|
|
6815
|
-
var utils = __webpack_require__(/*! ./utils */ "../node_modules/qs/lib/utils.js");
|
|
6816
|
-
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
6817
|
-
var has = Object.prototype.hasOwnProperty;
|
|
6818
|
-
|
|
6819
|
-
var arrayPrefixGenerators = {
|
|
6820
|
-
brackets: function brackets(prefix) {
|
|
6821
|
-
return prefix + '[]';
|
|
6822
|
-
},
|
|
6823
|
-
comma: 'comma',
|
|
6824
|
-
indices: function indices(prefix, key) {
|
|
6825
|
-
return prefix + '[' + key + ']';
|
|
6826
|
-
},
|
|
6827
|
-
repeat: function repeat(prefix) {
|
|
6828
|
-
return prefix;
|
|
6582
|
+
if (isSet(obj)) {
|
|
6583
|
+
var setParts = [];
|
|
6584
|
+
setForEach.call(obj, function (value) {
|
|
6585
|
+
setParts.push(inspect(value, obj));
|
|
6586
|
+
});
|
|
6587
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
6829
6588
|
}
|
|
6830
|
-
|
|
6831
|
-
|
|
6832
|
-
var isArray = Array.isArray;
|
|
6833
|
-
var push = Array.prototype.push;
|
|
6834
|
-
var pushToArray = function (arr, valueOrArray) {
|
|
6835
|
-
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
6836
|
-
};
|
|
6837
|
-
|
|
6838
|
-
var toISO = Date.prototype.toISOString;
|
|
6839
|
-
|
|
6840
|
-
var defaultFormat = formats['default'];
|
|
6841
|
-
var defaults = {
|
|
6842
|
-
addQueryPrefix: false,
|
|
6843
|
-
allowDots: false,
|
|
6844
|
-
charset: 'utf-8',
|
|
6845
|
-
charsetSentinel: false,
|
|
6846
|
-
delimiter: '&',
|
|
6847
|
-
encode: true,
|
|
6848
|
-
encoder: utils.encode,
|
|
6849
|
-
encodeValuesOnly: false,
|
|
6850
|
-
format: defaultFormat,
|
|
6851
|
-
formatter: formats.formatters[defaultFormat],
|
|
6852
|
-
// deprecated
|
|
6853
|
-
indices: false,
|
|
6854
|
-
serializeDate: function serializeDate(date) {
|
|
6855
|
-
return toISO.call(date);
|
|
6856
|
-
},
|
|
6857
|
-
skipNulls: false,
|
|
6858
|
-
strictNullHandling: false
|
|
6859
|
-
};
|
|
6860
|
-
|
|
6861
|
-
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
6862
|
-
return typeof v === 'string'
|
|
6863
|
-
|| typeof v === 'number'
|
|
6864
|
-
|| typeof v === 'boolean'
|
|
6865
|
-
|| typeof v === 'symbol'
|
|
6866
|
-
|| typeof v === 'bigint';
|
|
6867
|
-
};
|
|
6868
|
-
|
|
6869
|
-
var stringify = function stringify(
|
|
6870
|
-
object,
|
|
6871
|
-
prefix,
|
|
6872
|
-
generateArrayPrefix,
|
|
6873
|
-
strictNullHandling,
|
|
6874
|
-
skipNulls,
|
|
6875
|
-
encoder,
|
|
6876
|
-
filter,
|
|
6877
|
-
sort,
|
|
6878
|
-
allowDots,
|
|
6879
|
-
serializeDate,
|
|
6880
|
-
format,
|
|
6881
|
-
formatter,
|
|
6882
|
-
encodeValuesOnly,
|
|
6883
|
-
charset,
|
|
6884
|
-
sideChannel
|
|
6885
|
-
) {
|
|
6886
|
-
var obj = object;
|
|
6887
|
-
|
|
6888
|
-
if (sideChannel.has(object)) {
|
|
6889
|
-
throw new RangeError('Cyclic object value');
|
|
6589
|
+
if (isWeakMap(obj)) {
|
|
6590
|
+
return weakCollectionOf('WeakMap');
|
|
6890
6591
|
}
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
obj = filter(prefix, obj);
|
|
6894
|
-
} else if (obj instanceof Date) {
|
|
6895
|
-
obj = serializeDate(obj);
|
|
6896
|
-
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
6897
|
-
obj = utils.maybeMap(obj, function (value) {
|
|
6898
|
-
if (value instanceof Date) {
|
|
6899
|
-
return serializeDate(value);
|
|
6900
|
-
}
|
|
6901
|
-
return value;
|
|
6902
|
-
});
|
|
6592
|
+
if (isWeakSet(obj)) {
|
|
6593
|
+
return weakCollectionOf('WeakSet');
|
|
6903
6594
|
}
|
|
6904
|
-
|
|
6905
|
-
|
|
6906
|
-
if (strictNullHandling) {
|
|
6907
|
-
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
6908
|
-
}
|
|
6909
|
-
|
|
6910
|
-
obj = '';
|
|
6595
|
+
if (isWeakRef(obj)) {
|
|
6596
|
+
return weakCollectionOf('WeakRef');
|
|
6911
6597
|
}
|
|
6912
|
-
|
|
6913
|
-
|
|
6914
|
-
if (encoder) {
|
|
6915
|
-
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
6916
|
-
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
6917
|
-
}
|
|
6918
|
-
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
6598
|
+
if (isNumber(obj)) {
|
|
6599
|
+
return markBoxed(inspect(Number(obj)));
|
|
6919
6600
|
}
|
|
6920
|
-
|
|
6921
|
-
|
|
6922
|
-
|
|
6923
|
-
if (typeof obj === 'undefined') {
|
|
6924
|
-
return values;
|
|
6601
|
+
if (isBigInt(obj)) {
|
|
6602
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
6925
6603
|
}
|
|
6926
|
-
|
|
6927
|
-
|
|
6928
|
-
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
6929
|
-
// we need to join elements in
|
|
6930
|
-
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
|
|
6931
|
-
} else if (isArray(filter)) {
|
|
6932
|
-
objKeys = filter;
|
|
6933
|
-
} else {
|
|
6934
|
-
var keys = Object.keys(obj);
|
|
6935
|
-
objKeys = sort ? keys.sort(sort) : keys;
|
|
6604
|
+
if (isBoolean(obj)) {
|
|
6605
|
+
return markBoxed(booleanValueOf.call(obj));
|
|
6936
6606
|
}
|
|
6937
|
-
|
|
6938
|
-
|
|
6939
|
-
|
|
6940
|
-
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6945
|
-
|
|
6946
|
-
var
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
pushToArray(values, stringify(
|
|
6953
|
-
value,
|
|
6954
|
-
keyPrefix,
|
|
6955
|
-
generateArrayPrefix,
|
|
6956
|
-
strictNullHandling,
|
|
6957
|
-
skipNulls,
|
|
6958
|
-
encoder,
|
|
6959
|
-
filter,
|
|
6960
|
-
sort,
|
|
6961
|
-
allowDots,
|
|
6962
|
-
serializeDate,
|
|
6963
|
-
format,
|
|
6964
|
-
formatter,
|
|
6965
|
-
encodeValuesOnly,
|
|
6966
|
-
charset,
|
|
6967
|
-
valueSideChannel
|
|
6968
|
-
));
|
|
6607
|
+
if (isString(obj)) {
|
|
6608
|
+
return markBoxed(inspect(String(obj)));
|
|
6609
|
+
}
|
|
6610
|
+
if (!isDate(obj) && !isRegExp(obj)) {
|
|
6611
|
+
var ys = arrObjKeys(obj, inspect);
|
|
6612
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
6613
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
6614
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
|
|
6615
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
6616
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
|
|
6617
|
+
if (ys.length === 0) { return tag + '{}'; }
|
|
6618
|
+
if (indent) {
|
|
6619
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
6620
|
+
}
|
|
6621
|
+
return tag + '{ ' + ys.join(', ') + ' }';
|
|
6969
6622
|
}
|
|
6970
|
-
|
|
6971
|
-
return values;
|
|
6623
|
+
return String(obj);
|
|
6972
6624
|
};
|
|
6973
6625
|
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6626
|
+
function wrapQuotes(s, defaultStyle, opts) {
|
|
6627
|
+
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
|
6628
|
+
return quoteChar + s + quoteChar;
|
|
6629
|
+
}
|
|
6978
6630
|
|
|
6979
|
-
|
|
6980
|
-
|
|
6981
|
-
|
|
6631
|
+
function quote(s) {
|
|
6632
|
+
return String(s).replace(/"/g, '"');
|
|
6633
|
+
}
|
|
6982
6634
|
|
|
6983
|
-
|
|
6984
|
-
|
|
6985
|
-
|
|
6986
|
-
|
|
6635
|
+
function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
6636
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
6637
|
+
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
6638
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
6639
|
+
function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
6640
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
6641
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
6987
6642
|
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
|
|
6991
|
-
|
|
6992
|
-
}
|
|
6993
|
-
format = opts.format;
|
|
6643
|
+
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
6644
|
+
function isSymbol(obj) {
|
|
6645
|
+
if (hasShammedSymbols) {
|
|
6646
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
6994
6647
|
}
|
|
6995
|
-
|
|
6648
|
+
if (typeof obj === 'symbol') {
|
|
6649
|
+
return true;
|
|
6650
|
+
}
|
|
6651
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
6652
|
+
return false;
|
|
6653
|
+
}
|
|
6654
|
+
try {
|
|
6655
|
+
symToString.call(obj);
|
|
6656
|
+
return true;
|
|
6657
|
+
} catch (e) {}
|
|
6658
|
+
return false;
|
|
6659
|
+
}
|
|
6996
6660
|
|
|
6997
|
-
|
|
6998
|
-
if (typeof
|
|
6999
|
-
|
|
6661
|
+
function isBigInt(obj) {
|
|
6662
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
6663
|
+
return false;
|
|
7000
6664
|
}
|
|
6665
|
+
try {
|
|
6666
|
+
bigIntValueOf.call(obj);
|
|
6667
|
+
return true;
|
|
6668
|
+
} catch (e) {}
|
|
6669
|
+
return false;
|
|
6670
|
+
}
|
|
7001
6671
|
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
7007
|
-
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
7008
|
-
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
7009
|
-
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
7010
|
-
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
7011
|
-
filter: filter,
|
|
7012
|
-
format: format,
|
|
7013
|
-
formatter: formatter,
|
|
7014
|
-
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
7015
|
-
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
7016
|
-
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
7017
|
-
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
7018
|
-
};
|
|
7019
|
-
};
|
|
6672
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
6673
|
+
function has(obj, key) {
|
|
6674
|
+
return hasOwn.call(obj, key);
|
|
6675
|
+
}
|
|
7020
6676
|
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
6677
|
+
function toStr(obj) {
|
|
6678
|
+
return objectToString.call(obj);
|
|
6679
|
+
}
|
|
7024
6680
|
|
|
7025
|
-
|
|
7026
|
-
|
|
6681
|
+
function nameOf(f) {
|
|
6682
|
+
if (f.name) { return f.name; }
|
|
6683
|
+
var m = match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
6684
|
+
if (m) { return m[1]; }
|
|
6685
|
+
return null;
|
|
6686
|
+
}
|
|
7027
6687
|
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
filter = options.filter;
|
|
7033
|
-
objKeys = filter;
|
|
6688
|
+
function indexOf(xs, x) {
|
|
6689
|
+
if (xs.indexOf) { return xs.indexOf(x); }
|
|
6690
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
6691
|
+
if (xs[i] === x) { return i; }
|
|
7034
6692
|
}
|
|
6693
|
+
return -1;
|
|
6694
|
+
}
|
|
7035
6695
|
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
return '';
|
|
6696
|
+
function isMap(x) {
|
|
6697
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
|
6698
|
+
return false;
|
|
7040
6699
|
}
|
|
6700
|
+
try {
|
|
6701
|
+
mapSize.call(x);
|
|
6702
|
+
try {
|
|
6703
|
+
setSize.call(x);
|
|
6704
|
+
} catch (s) {
|
|
6705
|
+
return true;
|
|
6706
|
+
}
|
|
6707
|
+
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
6708
|
+
} catch (e) {}
|
|
6709
|
+
return false;
|
|
6710
|
+
}
|
|
7041
6711
|
|
|
7042
|
-
|
|
7043
|
-
if (
|
|
7044
|
-
|
|
7045
|
-
} else if (opts && 'indices' in opts) {
|
|
7046
|
-
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
7047
|
-
} else {
|
|
7048
|
-
arrayFormat = 'indices';
|
|
6712
|
+
function isWeakMap(x) {
|
|
6713
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
6714
|
+
return false;
|
|
7049
6715
|
}
|
|
6716
|
+
try {
|
|
6717
|
+
weakMapHas.call(x, weakMapHas);
|
|
6718
|
+
try {
|
|
6719
|
+
weakSetHas.call(x, weakSetHas);
|
|
6720
|
+
} catch (s) {
|
|
6721
|
+
return true;
|
|
6722
|
+
}
|
|
6723
|
+
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
6724
|
+
} catch (e) {}
|
|
6725
|
+
return false;
|
|
6726
|
+
}
|
|
7050
6727
|
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
objKeys = Object.keys(obj);
|
|
6728
|
+
function isWeakRef(x) {
|
|
6729
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
6730
|
+
return false;
|
|
7055
6731
|
}
|
|
6732
|
+
try {
|
|
6733
|
+
weakRefDeref.call(x);
|
|
6734
|
+
return true;
|
|
6735
|
+
} catch (e) {}
|
|
6736
|
+
return false;
|
|
6737
|
+
}
|
|
7056
6738
|
|
|
7057
|
-
|
|
7058
|
-
|
|
6739
|
+
function isSet(x) {
|
|
6740
|
+
if (!setSize || !x || typeof x !== 'object') {
|
|
6741
|
+
return false;
|
|
7059
6742
|
}
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
continue;
|
|
6743
|
+
try {
|
|
6744
|
+
setSize.call(x);
|
|
6745
|
+
try {
|
|
6746
|
+
mapSize.call(x);
|
|
6747
|
+
} catch (m) {
|
|
6748
|
+
return true;
|
|
7067
6749
|
}
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
options.strictNullHandling,
|
|
7073
|
-
options.skipNulls,
|
|
7074
|
-
options.encode ? options.encoder : null,
|
|
7075
|
-
options.filter,
|
|
7076
|
-
options.sort,
|
|
7077
|
-
options.allowDots,
|
|
7078
|
-
options.serializeDate,
|
|
7079
|
-
options.format,
|
|
7080
|
-
options.formatter,
|
|
7081
|
-
options.encodeValuesOnly,
|
|
7082
|
-
options.charset,
|
|
7083
|
-
sideChannel
|
|
7084
|
-
));
|
|
7085
|
-
}
|
|
7086
|
-
|
|
7087
|
-
var joined = keys.join(options.delimiter);
|
|
7088
|
-
var prefix = options.addQueryPrefix === true ? '?' : '';
|
|
6750
|
+
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
6751
|
+
} catch (e) {}
|
|
6752
|
+
return false;
|
|
6753
|
+
}
|
|
7089
6754
|
|
|
7090
|
-
|
|
7091
|
-
|
|
7092
|
-
|
|
7093
|
-
prefix += 'utf8=%26%2310003%3B&';
|
|
7094
|
-
} else {
|
|
7095
|
-
// encodeURIComponent('✓')
|
|
7096
|
-
prefix += 'utf8=%E2%9C%93&';
|
|
7097
|
-
}
|
|
6755
|
+
function isWeakSet(x) {
|
|
6756
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
6757
|
+
return false;
|
|
7098
6758
|
}
|
|
6759
|
+
try {
|
|
6760
|
+
weakSetHas.call(x, weakSetHas);
|
|
6761
|
+
try {
|
|
6762
|
+
weakMapHas.call(x, weakMapHas);
|
|
6763
|
+
} catch (s) {
|
|
6764
|
+
return true;
|
|
6765
|
+
}
|
|
6766
|
+
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
6767
|
+
} catch (e) {}
|
|
6768
|
+
return false;
|
|
6769
|
+
}
|
|
7099
6770
|
|
|
7100
|
-
|
|
7101
|
-
}
|
|
7102
|
-
|
|
7103
|
-
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
|
|
7107
|
-
/*!***************************************!*\
|
|
7108
|
-
!*** ../node_modules/qs/lib/utils.js ***!
|
|
7109
|
-
\***************************************/
|
|
7110
|
-
/*! no static exports found */
|
|
7111
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
7112
|
-
|
|
7113
|
-
"use strict";
|
|
7114
|
-
|
|
7115
|
-
|
|
7116
|
-
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
7117
|
-
|
|
7118
|
-
var has = Object.prototype.hasOwnProperty;
|
|
7119
|
-
var isArray = Array.isArray;
|
|
6771
|
+
function isElement(x) {
|
|
6772
|
+
if (!x || typeof x !== 'object') { return false; }
|
|
6773
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
6774
|
+
return true;
|
|
6775
|
+
}
|
|
6776
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
6777
|
+
}
|
|
7120
6778
|
|
|
7121
|
-
|
|
7122
|
-
|
|
7123
|
-
|
|
7124
|
-
|
|
6779
|
+
function inspectString(str, opts) {
|
|
6780
|
+
if (str.length > opts.maxStringLength) {
|
|
6781
|
+
var remaining = str.length - opts.maxStringLength;
|
|
6782
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
6783
|
+
return inspectString(str.slice(0, opts.maxStringLength), opts) + trailer;
|
|
7125
6784
|
}
|
|
6785
|
+
// eslint-disable-next-line no-control-regex
|
|
6786
|
+
var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
|
|
6787
|
+
return wrapQuotes(s, 'single', opts);
|
|
6788
|
+
}
|
|
7126
6789
|
|
|
7127
|
-
|
|
7128
|
-
|
|
6790
|
+
function lowbyte(c) {
|
|
6791
|
+
var n = c.charCodeAt(0);
|
|
6792
|
+
var x = {
|
|
6793
|
+
8: 'b',
|
|
6794
|
+
9: 't',
|
|
6795
|
+
10: 'n',
|
|
6796
|
+
12: 'f',
|
|
6797
|
+
13: 'r'
|
|
6798
|
+
}[n];
|
|
6799
|
+
if (x) { return '\\' + x; }
|
|
6800
|
+
return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
|
|
6801
|
+
}
|
|
7129
6802
|
|
|
7130
|
-
|
|
7131
|
-
|
|
7132
|
-
|
|
7133
|
-
var obj = item.obj[item.prop];
|
|
6803
|
+
function markBoxed(str) {
|
|
6804
|
+
return 'Object(' + str + ')';
|
|
6805
|
+
}
|
|
7134
6806
|
|
|
7135
|
-
|
|
7136
|
-
|
|
6807
|
+
function weakCollectionOf(type) {
|
|
6808
|
+
return type + ' { ? }';
|
|
6809
|
+
}
|
|
7137
6810
|
|
|
7138
|
-
|
|
7139
|
-
|
|
7140
|
-
|
|
7141
|
-
|
|
7142
|
-
}
|
|
6811
|
+
function collectionOf(type, size, entries, indent) {
|
|
6812
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : entries.join(', ');
|
|
6813
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
6814
|
+
}
|
|
7143
6815
|
|
|
7144
|
-
|
|
6816
|
+
function singleLineValues(xs) {
|
|
6817
|
+
for (var i = 0; i < xs.length; i++) {
|
|
6818
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
|
6819
|
+
return false;
|
|
7145
6820
|
}
|
|
7146
6821
|
}
|
|
7147
|
-
|
|
6822
|
+
return true;
|
|
6823
|
+
}
|
|
7148
6824
|
|
|
7149
|
-
|
|
7150
|
-
var
|
|
7151
|
-
|
|
7152
|
-
|
|
7153
|
-
|
|
7154
|
-
|
|
6825
|
+
function getIndent(opts, depth) {
|
|
6826
|
+
var baseIndent;
|
|
6827
|
+
if (opts.indent === '\t') {
|
|
6828
|
+
baseIndent = '\t';
|
|
6829
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
6830
|
+
baseIndent = Array(opts.indent + 1).join(' ');
|
|
6831
|
+
} else {
|
|
6832
|
+
return null;
|
|
7155
6833
|
}
|
|
6834
|
+
return {
|
|
6835
|
+
base: baseIndent,
|
|
6836
|
+
prev: Array(depth + 1).join(baseIndent)
|
|
6837
|
+
};
|
|
6838
|
+
}
|
|
7156
6839
|
|
|
7157
|
-
|
|
7158
|
-
}
|
|
6840
|
+
function indentedJoin(xs, indent) {
|
|
6841
|
+
if (xs.length === 0) { return ''; }
|
|
6842
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
6843
|
+
return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
|
|
6844
|
+
}
|
|
7159
6845
|
|
|
7160
|
-
|
|
7161
|
-
|
|
7162
|
-
|
|
7163
|
-
|
|
6846
|
+
function arrObjKeys(obj, inspect) {
|
|
6847
|
+
var isArr = isArray(obj);
|
|
6848
|
+
var xs = [];
|
|
6849
|
+
if (isArr) {
|
|
6850
|
+
xs.length = obj.length;
|
|
6851
|
+
for (var i = 0; i < obj.length; i++) {
|
|
6852
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
6853
|
+
}
|
|
6854
|
+
}
|
|
6855
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
6856
|
+
var symMap;
|
|
6857
|
+
if (hasShammedSymbols) {
|
|
6858
|
+
symMap = {};
|
|
6859
|
+
for (var k = 0; k < syms.length; k++) {
|
|
6860
|
+
symMap['$' + syms[k]] = syms[k];
|
|
6861
|
+
}
|
|
7164
6862
|
}
|
|
7165
6863
|
|
|
7166
|
-
|
|
7167
|
-
if (
|
|
7168
|
-
|
|
7169
|
-
|
|
7170
|
-
|
|
7171
|
-
|
|
7172
|
-
|
|
6864
|
+
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
6865
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
6866
|
+
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
6867
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
6868
|
+
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
6869
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
6870
|
+
} else if ((/[^\w$]/).test(key)) {
|
|
6871
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
7173
6872
|
} else {
|
|
7174
|
-
|
|
6873
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
7175
6874
|
}
|
|
7176
|
-
|
|
7177
|
-
return target;
|
|
7178
6875
|
}
|
|
7179
|
-
|
|
7180
|
-
|
|
7181
|
-
|
|
6876
|
+
if (typeof gOPS === 'function') {
|
|
6877
|
+
for (var j = 0; j < syms.length; j++) {
|
|
6878
|
+
if (isEnumerable.call(obj, syms[j])) {
|
|
6879
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
6880
|
+
}
|
|
6881
|
+
}
|
|
7182
6882
|
}
|
|
6883
|
+
return xs;
|
|
6884
|
+
}
|
|
7183
6885
|
|
|
7184
|
-
var mergeTarget = target;
|
|
7185
|
-
if (isArray(target) && !isArray(source)) {
|
|
7186
|
-
mergeTarget = arrayToObject(target, options);
|
|
7187
|
-
}
|
|
7188
6886
|
|
|
7189
|
-
|
|
7190
|
-
source.forEach(function (item, i) {
|
|
7191
|
-
if (has.call(target, i)) {
|
|
7192
|
-
var targetItem = target[i];
|
|
7193
|
-
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
7194
|
-
target[i] = merge(targetItem, item, options);
|
|
7195
|
-
} else {
|
|
7196
|
-
target.push(item);
|
|
7197
|
-
}
|
|
7198
|
-
} else {
|
|
7199
|
-
target[i] = item;
|
|
7200
|
-
}
|
|
7201
|
-
});
|
|
7202
|
-
return target;
|
|
7203
|
-
}
|
|
6887
|
+
/***/ }),
|
|
7204
6888
|
|
|
7205
|
-
|
|
7206
|
-
|
|
6889
|
+
/***/ "../node_modules/object-inspect/util.inspect.js":
|
|
6890
|
+
/*!******************************************************!*\
|
|
6891
|
+
!*** ../node_modules/object-inspect/util.inspect.js ***!
|
|
6892
|
+
\******************************************************/
|
|
6893
|
+
/*! no static exports found */
|
|
6894
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7207
6895
|
|
|
7208
|
-
|
|
7209
|
-
acc[key] = merge(acc[key], value, options);
|
|
7210
|
-
} else {
|
|
7211
|
-
acc[key] = value;
|
|
7212
|
-
}
|
|
7213
|
-
return acc;
|
|
7214
|
-
}, mergeTarget);
|
|
7215
|
-
};
|
|
6896
|
+
module.exports = __webpack_require__(/*! util */ "util").inspect;
|
|
7216
6897
|
|
|
7217
|
-
var assign = function assignSingleSource(target, source) {
|
|
7218
|
-
return Object.keys(source).reduce(function (acc, key) {
|
|
7219
|
-
acc[key] = source[key];
|
|
7220
|
-
return acc;
|
|
7221
|
-
}, target);
|
|
7222
|
-
};
|
|
7223
6898
|
|
|
7224
|
-
|
|
7225
|
-
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
7226
|
-
if (charset === 'iso-8859-1') {
|
|
7227
|
-
// unescape never throws, no try...catch needed:
|
|
7228
|
-
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
7229
|
-
}
|
|
7230
|
-
// utf-8
|
|
7231
|
-
try {
|
|
7232
|
-
return decodeURIComponent(strWithoutPlus);
|
|
7233
|
-
} catch (e) {
|
|
7234
|
-
return strWithoutPlus;
|
|
7235
|
-
}
|
|
7236
|
-
};
|
|
6899
|
+
/***/ }),
|
|
7237
6900
|
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
6901
|
+
/***/ "../node_modules/p-throttle/index.js":
|
|
6902
|
+
/*!*******************************************!*\
|
|
6903
|
+
!*** ../node_modules/p-throttle/index.js ***!
|
|
6904
|
+
\*******************************************/
|
|
6905
|
+
/*! no static exports found */
|
|
6906
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7244
6907
|
|
|
7245
|
-
|
|
7246
|
-
if (typeof str === 'symbol') {
|
|
7247
|
-
string = Symbol.prototype.toString.call(str);
|
|
7248
|
-
} else if (typeof str !== 'string') {
|
|
7249
|
-
string = String(str);
|
|
7250
|
-
}
|
|
6908
|
+
"use strict";
|
|
7251
6909
|
|
|
7252
|
-
if (charset === 'iso-8859-1') {
|
|
7253
|
-
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
7254
|
-
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
7255
|
-
});
|
|
7256
|
-
}
|
|
7257
6910
|
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
6911
|
+
class AbortError extends Error {
|
|
6912
|
+
constructor() {
|
|
6913
|
+
super('Throttled function aborted');
|
|
6914
|
+
this.name = 'AbortError';
|
|
6915
|
+
}
|
|
6916
|
+
}
|
|
7261
6917
|
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
6918
|
+
const pThrottle = ({limit, interval, strict}) => {
|
|
6919
|
+
if (!Number.isFinite(limit)) {
|
|
6920
|
+
throw new TypeError('Expected `limit` to be a finite number');
|
|
6921
|
+
}
|
|
6922
|
+
|
|
6923
|
+
if (!Number.isFinite(interval)) {
|
|
6924
|
+
throw new TypeError('Expected `interval` to be a finite number');
|
|
6925
|
+
}
|
|
6926
|
+
|
|
6927
|
+
const queue = new Map();
|
|
6928
|
+
|
|
6929
|
+
let currentTick = 0;
|
|
6930
|
+
let activeCount = 0;
|
|
6931
|
+
|
|
6932
|
+
function windowedDelay() {
|
|
6933
|
+
const now = Date.now();
|
|
6934
|
+
|
|
6935
|
+
if ((now - currentTick) > interval) {
|
|
6936
|
+
activeCount = 1;
|
|
6937
|
+
currentTick = now;
|
|
6938
|
+
return 0;
|
|
6939
|
+
}
|
|
6940
|
+
|
|
6941
|
+
if (activeCount < limit) {
|
|
6942
|
+
activeCount++;
|
|
6943
|
+
} else {
|
|
6944
|
+
currentTick += interval;
|
|
6945
|
+
activeCount = 1;
|
|
6946
|
+
}
|
|
7275
6947
|
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
continue;
|
|
7279
|
-
}
|
|
6948
|
+
return currentTick - now;
|
|
6949
|
+
}
|
|
7280
6950
|
|
|
7281
|
-
|
|
7282
|
-
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
7283
|
-
continue;
|
|
7284
|
-
}
|
|
6951
|
+
const strictTicks = [];
|
|
7285
6952
|
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
continue;
|
|
7289
|
-
}
|
|
6953
|
+
function strictDelay() {
|
|
6954
|
+
const now = Date.now();
|
|
7290
6955
|
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
7296
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
7297
|
-
}
|
|
6956
|
+
if (strictTicks.length < limit) {
|
|
6957
|
+
strictTicks.push(now);
|
|
6958
|
+
return 0;
|
|
6959
|
+
}
|
|
7298
6960
|
|
|
7299
|
-
|
|
7300
|
-
};
|
|
6961
|
+
const earliestTime = strictTicks.shift() + interval;
|
|
7301
6962
|
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
6963
|
+
if (now >= earliestTime) {
|
|
6964
|
+
strictTicks.push(now);
|
|
6965
|
+
return 0;
|
|
6966
|
+
}
|
|
7305
6967
|
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
6968
|
+
strictTicks.push(earliestTime);
|
|
6969
|
+
return earliestTime - now;
|
|
6970
|
+
}
|
|
7309
6971
|
|
|
7310
|
-
|
|
7311
|
-
for (var j = 0; j < keys.length; ++j) {
|
|
7312
|
-
var key = keys[j];
|
|
7313
|
-
var val = obj[key];
|
|
7314
|
-
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
7315
|
-
queue.push({ obj: obj, prop: key });
|
|
7316
|
-
refs.push(val);
|
|
7317
|
-
}
|
|
7318
|
-
}
|
|
7319
|
-
}
|
|
6972
|
+
const getDelay = strict ? strictDelay : windowedDelay;
|
|
7320
6973
|
|
|
7321
|
-
|
|
6974
|
+
return function_ => {
|
|
6975
|
+
const throttled = function (...args) {
|
|
6976
|
+
if (!throttled.isEnabled) {
|
|
6977
|
+
return (async () => function_.apply(this, args))();
|
|
6978
|
+
}
|
|
7322
6979
|
|
|
7323
|
-
|
|
7324
|
-
|
|
6980
|
+
let timeout;
|
|
6981
|
+
return new Promise((resolve, reject) => {
|
|
6982
|
+
const execute = () => {
|
|
6983
|
+
resolve(function_.apply(this, args));
|
|
6984
|
+
queue.delete(timeout);
|
|
6985
|
+
};
|
|
7325
6986
|
|
|
7326
|
-
|
|
7327
|
-
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
7328
|
-
};
|
|
6987
|
+
timeout = setTimeout(execute, getDelay());
|
|
7329
6988
|
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
}
|
|
6989
|
+
queue.set(timeout, reject);
|
|
6990
|
+
});
|
|
6991
|
+
};
|
|
7334
6992
|
|
|
7335
|
-
|
|
7336
|
-
|
|
6993
|
+
throttled.abort = () => {
|
|
6994
|
+
for (const timeout of queue.keys()) {
|
|
6995
|
+
clearTimeout(timeout);
|
|
6996
|
+
queue.get(timeout)(new AbortError());
|
|
6997
|
+
}
|
|
7337
6998
|
|
|
7338
|
-
|
|
7339
|
-
|
|
7340
|
-
};
|
|
6999
|
+
queue.clear();
|
|
7000
|
+
strictTicks.splice(0, strictTicks.length);
|
|
7001
|
+
};
|
|
7341
7002
|
|
|
7342
|
-
|
|
7343
|
-
if (isArray(val)) {
|
|
7344
|
-
var mapped = [];
|
|
7345
|
-
for (var i = 0; i < val.length; i += 1) {
|
|
7346
|
-
mapped.push(fn(val[i]));
|
|
7347
|
-
}
|
|
7348
|
-
return mapped;
|
|
7349
|
-
}
|
|
7350
|
-
return fn(val);
|
|
7351
|
-
};
|
|
7003
|
+
throttled.isEnabled = true;
|
|
7352
7004
|
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
assign: assign,
|
|
7356
|
-
combine: combine,
|
|
7357
|
-
compact: compact,
|
|
7358
|
-
decode: decode,
|
|
7359
|
-
encode: encode,
|
|
7360
|
-
isBuffer: isBuffer,
|
|
7361
|
-
isRegExp: isRegExp,
|
|
7362
|
-
maybeMap: maybeMap,
|
|
7363
|
-
merge: merge
|
|
7005
|
+
return throttled;
|
|
7006
|
+
};
|
|
7364
7007
|
};
|
|
7365
7008
|
|
|
7009
|
+
module.exports = pThrottle;
|
|
7010
|
+
module.exports.AbortError = AbortError;
|
|
7011
|
+
|
|
7366
7012
|
|
|
7367
7013
|
/***/ }),
|
|
7368
7014
|
|
|
7369
|
-
/***/ "../node_modules/
|
|
7370
|
-
|
|
7371
|
-
!*** ../node_modules/
|
|
7372
|
-
|
|
7015
|
+
/***/ "../node_modules/qs/lib/formats.js":
|
|
7016
|
+
/*!*****************************************!*\
|
|
7017
|
+
!*** ../node_modules/qs/lib/formats.js ***!
|
|
7018
|
+
\*****************************************/
|
|
7373
7019
|
/*! no static exports found */
|
|
7374
7020
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7375
7021
|
|
|
7376
7022
|
"use strict";
|
|
7377
7023
|
|
|
7378
7024
|
|
|
7379
|
-
var
|
|
7380
|
-
var
|
|
7381
|
-
var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/side-channel/node_modules/object-inspect/index.js");
|
|
7382
|
-
|
|
7383
|
-
var $TypeError = GetIntrinsic('%TypeError%');
|
|
7384
|
-
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
7385
|
-
var $Map = GetIntrinsic('%Map%', true);
|
|
7386
|
-
|
|
7387
|
-
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
7388
|
-
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
7389
|
-
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
7390
|
-
var $mapGet = callBound('Map.prototype.get', true);
|
|
7391
|
-
var $mapSet = callBound('Map.prototype.set', true);
|
|
7392
|
-
var $mapHas = callBound('Map.prototype.has', true);
|
|
7393
|
-
|
|
7394
|
-
/*
|
|
7395
|
-
* This function traverses the list returning the node corresponding to the
|
|
7396
|
-
* given key.
|
|
7397
|
-
*
|
|
7398
|
-
* That node is also moved to the head of the list, so that if it's accessed
|
|
7399
|
-
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
7400
|
-
* used nodes can be accessed relatively quickly.
|
|
7401
|
-
*/
|
|
7402
|
-
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
7403
|
-
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
7404
|
-
if (curr.key === key) {
|
|
7405
|
-
prev.next = curr.next;
|
|
7406
|
-
curr.next = list.next;
|
|
7407
|
-
list.next = curr; // eslint-disable-line no-param-reassign
|
|
7408
|
-
return curr;
|
|
7409
|
-
}
|
|
7410
|
-
}
|
|
7411
|
-
};
|
|
7025
|
+
var replace = String.prototype.replace;
|
|
7026
|
+
var percentTwenties = /%20/g;
|
|
7412
7027
|
|
|
7413
|
-
var
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
};
|
|
7417
|
-
var listSet = function (objects, key, value) {
|
|
7418
|
-
var node = listGetNode(objects, key);
|
|
7419
|
-
if (node) {
|
|
7420
|
-
node.value = value;
|
|
7421
|
-
} else {
|
|
7422
|
-
// Prepend the new node to the beginning of the list
|
|
7423
|
-
objects.next = { // eslint-disable-line no-param-reassign
|
|
7424
|
-
key: key,
|
|
7425
|
-
next: objects.next,
|
|
7426
|
-
value: value
|
|
7427
|
-
};
|
|
7428
|
-
}
|
|
7429
|
-
};
|
|
7430
|
-
var listHas = function (objects, key) {
|
|
7431
|
-
return !!listGetNode(objects, key);
|
|
7028
|
+
var Format = {
|
|
7029
|
+
RFC1738: 'RFC1738',
|
|
7030
|
+
RFC3986: 'RFC3986'
|
|
7432
7031
|
};
|
|
7433
7032
|
|
|
7434
|
-
module.exports =
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
if ($wm) {
|
|
7447
|
-
return $weakMapGet($wm, key);
|
|
7448
|
-
}
|
|
7449
|
-
} else if ($Map) {
|
|
7450
|
-
if ($m) {
|
|
7451
|
-
return $mapGet($m, key);
|
|
7452
|
-
}
|
|
7453
|
-
} else {
|
|
7454
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
7455
|
-
return listGet($o, key);
|
|
7456
|
-
}
|
|
7457
|
-
}
|
|
7458
|
-
},
|
|
7459
|
-
has: function (key) {
|
|
7460
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
7461
|
-
if ($wm) {
|
|
7462
|
-
return $weakMapHas($wm, key);
|
|
7463
|
-
}
|
|
7464
|
-
} else if ($Map) {
|
|
7465
|
-
if ($m) {
|
|
7466
|
-
return $mapHas($m, key);
|
|
7467
|
-
}
|
|
7468
|
-
} else {
|
|
7469
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
7470
|
-
return listHas($o, key);
|
|
7471
|
-
}
|
|
7472
|
-
}
|
|
7473
|
-
return false;
|
|
7474
|
-
},
|
|
7475
|
-
set: function (key, value) {
|
|
7476
|
-
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
7477
|
-
if (!$wm) {
|
|
7478
|
-
$wm = new $WeakMap();
|
|
7479
|
-
}
|
|
7480
|
-
$weakMapSet($wm, key, value);
|
|
7481
|
-
} else if ($Map) {
|
|
7482
|
-
if (!$m) {
|
|
7483
|
-
$m = new $Map();
|
|
7484
|
-
}
|
|
7485
|
-
$mapSet($m, key, value);
|
|
7486
|
-
} else {
|
|
7487
|
-
if (!$o) {
|
|
7488
|
-
/*
|
|
7489
|
-
* Initialize the linked list as an empty node, so that we don't have
|
|
7490
|
-
* to special-case handling of the first node: we can always refer to
|
|
7491
|
-
* it as (previous node).next, instead of something like (list).head
|
|
7492
|
-
*/
|
|
7493
|
-
$o = { key: {}, next: null };
|
|
7494
|
-
}
|
|
7495
|
-
listSet($o, key, value);
|
|
7496
|
-
}
|
|
7497
|
-
}
|
|
7498
|
-
};
|
|
7499
|
-
return channel;
|
|
7033
|
+
module.exports = {
|
|
7034
|
+
'default': Format.RFC3986,
|
|
7035
|
+
formatters: {
|
|
7036
|
+
RFC1738: function (value) {
|
|
7037
|
+
return replace.call(value, percentTwenties, '+');
|
|
7038
|
+
},
|
|
7039
|
+
RFC3986: function (value) {
|
|
7040
|
+
return String(value);
|
|
7041
|
+
}
|
|
7042
|
+
},
|
|
7043
|
+
RFC1738: Format.RFC1738,
|
|
7044
|
+
RFC3986: Format.RFC3986
|
|
7500
7045
|
};
|
|
7501
7046
|
|
|
7502
7047
|
|
|
7503
7048
|
/***/ }),
|
|
7504
7049
|
|
|
7505
|
-
/***/ "../node_modules/
|
|
7506
|
-
|
|
7507
|
-
!*** ../node_modules/
|
|
7508
|
-
|
|
7050
|
+
/***/ "../node_modules/qs/lib/index.js":
|
|
7051
|
+
/*!***************************************!*\
|
|
7052
|
+
!*** ../node_modules/qs/lib/index.js ***!
|
|
7053
|
+
\***************************************/
|
|
7509
7054
|
/*! no static exports found */
|
|
7510
7055
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7511
7056
|
|
|
7512
7057
|
"use strict";
|
|
7513
7058
|
|
|
7514
7059
|
|
|
7515
|
-
var
|
|
7060
|
+
var stringify = __webpack_require__(/*! ./stringify */ "../node_modules/qs/lib/stringify.js");
|
|
7061
|
+
var parse = __webpack_require__(/*! ./parse */ "../node_modules/qs/lib/parse.js");
|
|
7062
|
+
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
7516
7063
|
|
|
7517
|
-
|
|
7518
|
-
|
|
7519
|
-
|
|
7064
|
+
module.exports = {
|
|
7065
|
+
formats: formats,
|
|
7066
|
+
parse: parse,
|
|
7067
|
+
stringify: stringify
|
|
7068
|
+
};
|
|
7520
7069
|
|
|
7521
|
-
|
|
7522
|
-
|
|
7523
|
-
|
|
7524
|
-
|
|
7525
|
-
|
|
7070
|
+
|
|
7071
|
+
/***/ }),
|
|
7072
|
+
|
|
7073
|
+
/***/ "../node_modules/qs/lib/parse.js":
|
|
7074
|
+
/*!***************************************!*\
|
|
7075
|
+
!*** ../node_modules/qs/lib/parse.js ***!
|
|
7076
|
+
\***************************************/
|
|
7077
|
+
/*! no static exports found */
|
|
7078
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7079
|
+
|
|
7080
|
+
"use strict";
|
|
7081
|
+
|
|
7082
|
+
|
|
7083
|
+
var utils = __webpack_require__(/*! ./utils */ "../node_modules/qs/lib/utils.js");
|
|
7084
|
+
|
|
7085
|
+
var has = Object.prototype.hasOwnProperty;
|
|
7086
|
+
var isArray = Array.isArray;
|
|
7087
|
+
|
|
7088
|
+
var defaults = {
|
|
7089
|
+
allowDots: false,
|
|
7090
|
+
allowPrototypes: false,
|
|
7091
|
+
allowSparse: false,
|
|
7092
|
+
arrayLimit: 20,
|
|
7093
|
+
charset: 'utf-8',
|
|
7094
|
+
charsetSentinel: false,
|
|
7095
|
+
comma: false,
|
|
7096
|
+
decoder: utils.decode,
|
|
7097
|
+
delimiter: '&',
|
|
7098
|
+
depth: 5,
|
|
7099
|
+
ignoreQueryPrefix: false,
|
|
7100
|
+
interpretNumericEntities: false,
|
|
7101
|
+
parameterLimit: 1000,
|
|
7102
|
+
parseArrays: true,
|
|
7103
|
+
plainObjects: false,
|
|
7104
|
+
strictNullHandling: false
|
|
7526
7105
|
};
|
|
7527
7106
|
|
|
7528
|
-
var
|
|
7529
|
-
|
|
7530
|
-
|
|
7531
|
-
|
|
7532
|
-
|
|
7533
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
7534
|
-
}
|
|
7535
|
-
}
|
|
7107
|
+
var interpretNumericEntities = function (str) {
|
|
7108
|
+
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
7109
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
|
7110
|
+
});
|
|
7111
|
+
};
|
|
7536
7112
|
|
|
7537
|
-
var
|
|
7538
|
-
|
|
7113
|
+
var parseArrayValue = function (val, options) {
|
|
7114
|
+
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
7115
|
+
return val.split(',');
|
|
7116
|
+
}
|
|
7117
|
+
|
|
7118
|
+
return val;
|
|
7539
7119
|
};
|
|
7540
|
-
var ThrowTypeError = $gOPD
|
|
7541
|
-
? (function () {
|
|
7542
|
-
try {
|
|
7543
|
-
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
7544
|
-
arguments.callee; // IE 8 does not throw here
|
|
7545
|
-
return throwTypeError;
|
|
7546
|
-
} catch (calleeThrows) {
|
|
7547
|
-
try {
|
|
7548
|
-
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
7549
|
-
return $gOPD(arguments, 'callee').get;
|
|
7550
|
-
} catch (gOPDthrows) {
|
|
7551
|
-
return throwTypeError;
|
|
7552
|
-
}
|
|
7553
|
-
}
|
|
7554
|
-
}())
|
|
7555
|
-
: throwTypeError;
|
|
7556
7120
|
|
|
7557
|
-
|
|
7121
|
+
// This is what browsers will submit when the ✓ character occurs in an
|
|
7122
|
+
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
7123
|
+
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
7124
|
+
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
|
7125
|
+
// the ✓ character, such as us-ascii.
|
|
7126
|
+
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
7558
7127
|
|
|
7559
|
-
|
|
7128
|
+
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
|
7129
|
+
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
7560
7130
|
|
|
7561
|
-
var
|
|
7131
|
+
var parseValues = function parseQueryStringValues(str, options) {
|
|
7132
|
+
var obj = {};
|
|
7133
|
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
7134
|
+
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
7135
|
+
var parts = cleanStr.split(options.delimiter, limit);
|
|
7136
|
+
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
7137
|
+
var i;
|
|
7562
7138
|
|
|
7563
|
-
var
|
|
7139
|
+
var charset = options.charset;
|
|
7140
|
+
if (options.charsetSentinel) {
|
|
7141
|
+
for (i = 0; i < parts.length; ++i) {
|
|
7142
|
+
if (parts[i].indexOf('utf8=') === 0) {
|
|
7143
|
+
if (parts[i] === charsetSentinel) {
|
|
7144
|
+
charset = 'utf-8';
|
|
7145
|
+
} else if (parts[i] === isoSentinel) {
|
|
7146
|
+
charset = 'iso-8859-1';
|
|
7147
|
+
}
|
|
7148
|
+
skipIndex = i;
|
|
7149
|
+
i = parts.length; // The eslint settings do not allow break;
|
|
7150
|
+
}
|
|
7151
|
+
}
|
|
7152
|
+
}
|
|
7564
7153
|
|
|
7565
|
-
|
|
7566
|
-
|
|
7567
|
-
|
|
7568
|
-
|
|
7569
|
-
|
|
7570
|
-
|
|
7571
|
-
|
|
7572
|
-
|
|
7573
|
-
|
|
7574
|
-
|
|
7575
|
-
|
|
7576
|
-
|
|
7577
|
-
|
|
7578
|
-
|
|
7579
|
-
|
|
7580
|
-
|
|
7581
|
-
|
|
7582
|
-
|
|
7583
|
-
|
|
7584
|
-
|
|
7585
|
-
|
|
7586
|
-
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7590
|
-
|
|
7591
|
-
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7596
|
-
|
|
7597
|
-
|
|
7598
|
-
|
|
7599
|
-
|
|
7600
|
-
|
|
7601
|
-
|
|
7602
|
-
|
|
7603
|
-
|
|
7604
|
-
|
|
7605
|
-
|
|
7606
|
-
|
|
7607
|
-
|
|
7608
|
-
|
|
7609
|
-
|
|
7610
|
-
|
|
7611
|
-
|
|
7612
|
-
|
|
7613
|
-
|
|
7614
|
-
|
|
7615
|
-
|
|
7616
|
-
|
|
7617
|
-
|
|
7618
|
-
|
|
7619
|
-
|
|
7620
|
-
|
|
7621
|
-
|
|
7622
|
-
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7626
|
-
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7154
|
+
for (i = 0; i < parts.length; ++i) {
|
|
7155
|
+
if (i === skipIndex) {
|
|
7156
|
+
continue;
|
|
7157
|
+
}
|
|
7158
|
+
var part = parts[i];
|
|
7159
|
+
|
|
7160
|
+
var bracketEqualsPos = part.indexOf(']=');
|
|
7161
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
7162
|
+
|
|
7163
|
+
var key, val;
|
|
7164
|
+
if (pos === -1) {
|
|
7165
|
+
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
7166
|
+
val = options.strictNullHandling ? null : '';
|
|
7167
|
+
} else {
|
|
7168
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
7169
|
+
val = utils.maybeMap(
|
|
7170
|
+
parseArrayValue(part.slice(pos + 1), options),
|
|
7171
|
+
function (encodedVal) {
|
|
7172
|
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
7173
|
+
}
|
|
7174
|
+
);
|
|
7175
|
+
}
|
|
7176
|
+
|
|
7177
|
+
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
7178
|
+
val = interpretNumericEntities(val);
|
|
7179
|
+
}
|
|
7180
|
+
|
|
7181
|
+
if (part.indexOf('[]=') > -1) {
|
|
7182
|
+
val = isArray(val) ? [val] : val;
|
|
7183
|
+
}
|
|
7184
|
+
|
|
7185
|
+
if (has.call(obj, key)) {
|
|
7186
|
+
obj[key] = utils.combine(obj[key], val);
|
|
7187
|
+
} else {
|
|
7188
|
+
obj[key] = val;
|
|
7189
|
+
}
|
|
7190
|
+
}
|
|
7191
|
+
|
|
7192
|
+
return obj;
|
|
7193
|
+
};
|
|
7194
|
+
|
|
7195
|
+
var parseObject = function (chain, val, options, valuesParsed) {
|
|
7196
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
|
7197
|
+
|
|
7198
|
+
for (var i = chain.length - 1; i >= 0; --i) {
|
|
7199
|
+
var obj;
|
|
7200
|
+
var root = chain[i];
|
|
7201
|
+
|
|
7202
|
+
if (root === '[]' && options.parseArrays) {
|
|
7203
|
+
obj = [].concat(leaf);
|
|
7204
|
+
} else {
|
|
7205
|
+
obj = options.plainObjects ? Object.create(null) : {};
|
|
7206
|
+
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
7207
|
+
var index = parseInt(cleanRoot, 10);
|
|
7208
|
+
if (!options.parseArrays && cleanRoot === '') {
|
|
7209
|
+
obj = { 0: leaf };
|
|
7210
|
+
} else if (
|
|
7211
|
+
!isNaN(index)
|
|
7212
|
+
&& root !== cleanRoot
|
|
7213
|
+
&& String(index) === cleanRoot
|
|
7214
|
+
&& index >= 0
|
|
7215
|
+
&& (options.parseArrays && index <= options.arrayLimit)
|
|
7216
|
+
) {
|
|
7217
|
+
obj = [];
|
|
7218
|
+
obj[index] = leaf;
|
|
7219
|
+
} else {
|
|
7220
|
+
obj[cleanRoot] = leaf;
|
|
7221
|
+
}
|
|
7222
|
+
}
|
|
7223
|
+
|
|
7224
|
+
leaf = obj;
|
|
7225
|
+
}
|
|
7226
|
+
|
|
7227
|
+
return leaf;
|
|
7630
7228
|
};
|
|
7631
7229
|
|
|
7632
|
-
var
|
|
7633
|
-
|
|
7634
|
-
|
|
7635
|
-
|
|
7636
|
-
} else if (name === '%GeneratorFunction%') {
|
|
7637
|
-
value = getEvalledConstructor('function* () {}');
|
|
7638
|
-
} else if (name === '%AsyncGeneratorFunction%') {
|
|
7639
|
-
value = getEvalledConstructor('async function* () {}');
|
|
7640
|
-
} else if (name === '%AsyncGenerator%') {
|
|
7641
|
-
var fn = doEval('%AsyncGeneratorFunction%');
|
|
7642
|
-
if (fn) {
|
|
7643
|
-
value = fn.prototype;
|
|
7644
|
-
}
|
|
7645
|
-
} else if (name === '%AsyncIteratorPrototype%') {
|
|
7646
|
-
var gen = doEval('%AsyncGenerator%');
|
|
7647
|
-
if (gen) {
|
|
7648
|
-
value = getProto(gen.prototype);
|
|
7649
|
-
}
|
|
7650
|
-
}
|
|
7230
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
7231
|
+
if (!givenKey) {
|
|
7232
|
+
return;
|
|
7233
|
+
}
|
|
7651
7234
|
|
|
7652
|
-
|
|
7235
|
+
// Transform dot notation to bracket notation
|
|
7236
|
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
7653
7237
|
|
|
7654
|
-
|
|
7655
|
-
};
|
|
7238
|
+
// The regex chunks
|
|
7656
7239
|
|
|
7657
|
-
var
|
|
7658
|
-
|
|
7659
|
-
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
7660
|
-
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
7661
|
-
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
7662
|
-
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
7663
|
-
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
7664
|
-
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
7665
|
-
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
7666
|
-
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
7667
|
-
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
7668
|
-
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
7669
|
-
'%DatePrototype%': ['Date', 'prototype'],
|
|
7670
|
-
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
7671
|
-
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
7672
|
-
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
7673
|
-
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
7674
|
-
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
7675
|
-
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
7676
|
-
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
7677
|
-
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
7678
|
-
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
7679
|
-
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
7680
|
-
'%JSONParse%': ['JSON', 'parse'],
|
|
7681
|
-
'%JSONStringify%': ['JSON', 'stringify'],
|
|
7682
|
-
'%MapPrototype%': ['Map', 'prototype'],
|
|
7683
|
-
'%NumberPrototype%': ['Number', 'prototype'],
|
|
7684
|
-
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
7685
|
-
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
7686
|
-
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
7687
|
-
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
7688
|
-
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
7689
|
-
'%Promise_all%': ['Promise', 'all'],
|
|
7690
|
-
'%Promise_reject%': ['Promise', 'reject'],
|
|
7691
|
-
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
7692
|
-
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
7693
|
-
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
7694
|
-
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
7695
|
-
'%SetPrototype%': ['Set', 'prototype'],
|
|
7696
|
-
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
7697
|
-
'%StringPrototype%': ['String', 'prototype'],
|
|
7698
|
-
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
7699
|
-
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
7700
|
-
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
7701
|
-
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
7702
|
-
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
7703
|
-
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
7704
|
-
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
7705
|
-
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
7706
|
-
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
7707
|
-
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
7708
|
-
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
7709
|
-
};
|
|
7240
|
+
var brackets = /(\[[^[\]]*])/;
|
|
7241
|
+
var child = /(\[[^[\]]*])/g;
|
|
7710
7242
|
|
|
7711
|
-
|
|
7712
|
-
var hasOwn = __webpack_require__(/*! has */ "../node_modules/has/src/index.js");
|
|
7713
|
-
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
7714
|
-
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
7715
|
-
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
7716
|
-
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
7243
|
+
// Get the parent
|
|
7717
7244
|
|
|
7718
|
-
|
|
7719
|
-
var
|
|
7720
|
-
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
7721
|
-
var stringToPath = function stringToPath(string) {
|
|
7722
|
-
var first = $strSlice(string, 0, 1);
|
|
7723
|
-
var last = $strSlice(string, -1);
|
|
7724
|
-
if (first === '%' && last !== '%') {
|
|
7725
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
7726
|
-
} else if (last === '%' && first !== '%') {
|
|
7727
|
-
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
7728
|
-
}
|
|
7729
|
-
var result = [];
|
|
7730
|
-
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
7731
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
7732
|
-
});
|
|
7733
|
-
return result;
|
|
7734
|
-
};
|
|
7735
|
-
/* end adaptation */
|
|
7245
|
+
var segment = options.depth > 0 && brackets.exec(key);
|
|
7246
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
|
7736
7247
|
|
|
7737
|
-
|
|
7738
|
-
var intrinsicName = name;
|
|
7739
|
-
var alias;
|
|
7740
|
-
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
7741
|
-
alias = LEGACY_ALIASES[intrinsicName];
|
|
7742
|
-
intrinsicName = '%' + alias[0] + '%';
|
|
7743
|
-
}
|
|
7248
|
+
// Stash the parent if it exists
|
|
7744
7249
|
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7250
|
+
var keys = [];
|
|
7251
|
+
if (parent) {
|
|
7252
|
+
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
7253
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
7254
|
+
if (!options.allowPrototypes) {
|
|
7255
|
+
return;
|
|
7256
|
+
}
|
|
7257
|
+
}
|
|
7753
7258
|
|
|
7754
|
-
|
|
7755
|
-
|
|
7756
|
-
name: intrinsicName,
|
|
7757
|
-
value: value
|
|
7758
|
-
};
|
|
7759
|
-
}
|
|
7259
|
+
keys.push(parent);
|
|
7260
|
+
}
|
|
7760
7261
|
|
|
7761
|
-
|
|
7262
|
+
// Loop through children appending to the array until we hit depth
|
|
7263
|
+
|
|
7264
|
+
var i = 0;
|
|
7265
|
+
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
7266
|
+
i += 1;
|
|
7267
|
+
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
7268
|
+
if (!options.allowPrototypes) {
|
|
7269
|
+
return;
|
|
7270
|
+
}
|
|
7271
|
+
}
|
|
7272
|
+
keys.push(segment[1]);
|
|
7273
|
+
}
|
|
7274
|
+
|
|
7275
|
+
// If there's a remainder, just add whatever is left
|
|
7276
|
+
|
|
7277
|
+
if (segment) {
|
|
7278
|
+
keys.push('[' + key.slice(segment.index) + ']');
|
|
7279
|
+
}
|
|
7280
|
+
|
|
7281
|
+
return parseObject(keys, val, options, valuesParsed);
|
|
7762
7282
|
};
|
|
7763
7283
|
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
7769
|
-
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
7770
|
-
}
|
|
7284
|
+
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
7285
|
+
if (!opts) {
|
|
7286
|
+
return defaults;
|
|
7287
|
+
}
|
|
7771
7288
|
|
|
7772
|
-
|
|
7773
|
-
|
|
7289
|
+
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
|
7290
|
+
throw new TypeError('Decoder has to be a function.');
|
|
7291
|
+
}
|
|
7774
7292
|
|
|
7775
|
-
|
|
7776
|
-
|
|
7777
|
-
|
|
7778
|
-
|
|
7293
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
7294
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
7295
|
+
}
|
|
7296
|
+
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
7779
7297
|
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7298
|
+
return {
|
|
7299
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
7300
|
+
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
7301
|
+
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
7302
|
+
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
7303
|
+
charset: charset,
|
|
7304
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
7305
|
+
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
7306
|
+
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
7307
|
+
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
7308
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
7309
|
+
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
7310
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
7311
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
7312
|
+
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
7313
|
+
parseArrays: opts.parseArrays !== false,
|
|
7314
|
+
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
7315
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
7316
|
+
};
|
|
7317
|
+
};
|
|
7785
7318
|
|
|
7786
|
-
|
|
7787
|
-
|
|
7788
|
-
var first = $strSlice(part, 0, 1);
|
|
7789
|
-
var last = $strSlice(part, -1);
|
|
7790
|
-
if (
|
|
7791
|
-
(
|
|
7792
|
-
(first === '"' || first === "'" || first === '`')
|
|
7793
|
-
|| (last === '"' || last === "'" || last === '`')
|
|
7794
|
-
)
|
|
7795
|
-
&& first !== last
|
|
7796
|
-
) {
|
|
7797
|
-
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
7798
|
-
}
|
|
7799
|
-
if (part === 'constructor' || !isOwn) {
|
|
7800
|
-
skipFurtherCaching = true;
|
|
7801
|
-
}
|
|
7319
|
+
module.exports = function (str, opts) {
|
|
7320
|
+
var options = normalizeParseOptions(opts);
|
|
7802
7321
|
|
|
7803
|
-
|
|
7804
|
-
|
|
7322
|
+
if (str === '' || str === null || typeof str === 'undefined') {
|
|
7323
|
+
return options.plainObjects ? Object.create(null) : {};
|
|
7324
|
+
}
|
|
7325
|
+
|
|
7326
|
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
7327
|
+
var obj = options.plainObjects ? Object.create(null) : {};
|
|
7328
|
+
|
|
7329
|
+
// Iterate over the keys and setup the new object
|
|
7805
7330
|
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7811
|
-
|
|
7812
|
-
}
|
|
7813
|
-
return void undefined;
|
|
7814
|
-
}
|
|
7815
|
-
if ($gOPD && (i + 1) >= parts.length) {
|
|
7816
|
-
var desc = $gOPD(value, part);
|
|
7817
|
-
isOwn = !!desc;
|
|
7331
|
+
var keys = Object.keys(tempObj);
|
|
7332
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
7333
|
+
var key = keys[i];
|
|
7334
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
7335
|
+
obj = utils.merge(obj, newObj, options);
|
|
7336
|
+
}
|
|
7818
7337
|
|
|
7819
|
-
|
|
7820
|
-
|
|
7821
|
-
|
|
7822
|
-
// an `originalValue` property. Here, when we detect this, we
|
|
7823
|
-
// uphold the illusion by pretending to see that original data
|
|
7824
|
-
// property, i.e., returning the value rather than the getter
|
|
7825
|
-
// itself.
|
|
7826
|
-
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
7827
|
-
value = desc.get;
|
|
7828
|
-
} else {
|
|
7829
|
-
value = value[part];
|
|
7830
|
-
}
|
|
7831
|
-
} else {
|
|
7832
|
-
isOwn = hasOwn(value, part);
|
|
7833
|
-
value = value[part];
|
|
7834
|
-
}
|
|
7338
|
+
if (options.allowSparse === true) {
|
|
7339
|
+
return obj;
|
|
7340
|
+
}
|
|
7835
7341
|
|
|
7836
|
-
|
|
7837
|
-
INTRINSICS[intrinsicRealName] = value;
|
|
7838
|
-
}
|
|
7839
|
-
}
|
|
7840
|
-
}
|
|
7841
|
-
return value;
|
|
7342
|
+
return utils.compact(obj);
|
|
7842
7343
|
};
|
|
7843
7344
|
|
|
7844
7345
|
|
|
7845
7346
|
/***/ }),
|
|
7846
7347
|
|
|
7847
|
-
/***/ "../node_modules/
|
|
7848
|
-
|
|
7849
|
-
!*** ../node_modules/
|
|
7850
|
-
|
|
7348
|
+
/***/ "../node_modules/qs/lib/stringify.js":
|
|
7349
|
+
/*!*******************************************!*\
|
|
7350
|
+
!*** ../node_modules/qs/lib/stringify.js ***!
|
|
7351
|
+
\*******************************************/
|
|
7851
7352
|
/*! no static exports found */
|
|
7852
7353
|
/***/ (function(module, exports, __webpack_require__) {
|
|
7853
7354
|
|
|
7854
|
-
|
|
7855
|
-
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
7856
|
-
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
7857
|
-
var mapForEach = hasMap && Map.prototype.forEach;
|
|
7858
|
-
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
7859
|
-
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
7860
|
-
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
7861
|
-
var setForEach = hasSet && Set.prototype.forEach;
|
|
7862
|
-
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
7863
|
-
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
7864
|
-
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
7865
|
-
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
7866
|
-
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
7867
|
-
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
7868
|
-
var booleanValueOf = Boolean.prototype.valueOf;
|
|
7869
|
-
var objectToString = Object.prototype.toString;
|
|
7870
|
-
var functionToString = Function.prototype.toString;
|
|
7871
|
-
var match = String.prototype.match;
|
|
7872
|
-
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
7873
|
-
var gOPS = Object.getOwnPropertySymbols;
|
|
7874
|
-
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
7875
|
-
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
7355
|
+
"use strict";
|
|
7876
7356
|
|
|
7877
|
-
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
7878
|
-
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
7879
|
-
? function (O) {
|
|
7880
|
-
return O.__proto__; // eslint-disable-line no-proto
|
|
7881
|
-
}
|
|
7882
|
-
: null
|
|
7883
|
-
);
|
|
7884
7357
|
|
|
7885
|
-
var
|
|
7886
|
-
var
|
|
7887
|
-
var
|
|
7358
|
+
var getSideChannel = __webpack_require__(/*! side-channel */ "../node_modules/side-channel/index.js");
|
|
7359
|
+
var utils = __webpack_require__(/*! ./utils */ "../node_modules/qs/lib/utils.js");
|
|
7360
|
+
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
7361
|
+
var has = Object.prototype.hasOwnProperty;
|
|
7888
7362
|
|
|
7889
|
-
|
|
7890
|
-
|
|
7363
|
+
var arrayPrefixGenerators = {
|
|
7364
|
+
brackets: function brackets(prefix) {
|
|
7365
|
+
return prefix + '[]';
|
|
7366
|
+
},
|
|
7367
|
+
comma: 'comma',
|
|
7368
|
+
indices: function indices(prefix, key) {
|
|
7369
|
+
return prefix + '[' + key + ']';
|
|
7370
|
+
},
|
|
7371
|
+
repeat: function repeat(prefix) {
|
|
7372
|
+
return prefix;
|
|
7373
|
+
}
|
|
7374
|
+
};
|
|
7891
7375
|
|
|
7892
|
-
|
|
7893
|
-
|
|
7376
|
+
var isArray = Array.isArray;
|
|
7377
|
+
var push = Array.prototype.push;
|
|
7378
|
+
var pushToArray = function (arr, valueOrArray) {
|
|
7379
|
+
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
7380
|
+
};
|
|
7381
|
+
|
|
7382
|
+
var toISO = Date.prototype.toISOString;
|
|
7383
|
+
|
|
7384
|
+
var defaultFormat = formats['default'];
|
|
7385
|
+
var defaults = {
|
|
7386
|
+
addQueryPrefix: false,
|
|
7387
|
+
allowDots: false,
|
|
7388
|
+
charset: 'utf-8',
|
|
7389
|
+
charsetSentinel: false,
|
|
7390
|
+
delimiter: '&',
|
|
7391
|
+
encode: true,
|
|
7392
|
+
encoder: utils.encode,
|
|
7393
|
+
encodeValuesOnly: false,
|
|
7394
|
+
format: defaultFormat,
|
|
7395
|
+
formatter: formats.formatters[defaultFormat],
|
|
7396
|
+
// deprecated
|
|
7397
|
+
indices: false,
|
|
7398
|
+
serializeDate: function serializeDate(date) {
|
|
7399
|
+
return toISO.call(date);
|
|
7400
|
+
},
|
|
7401
|
+
skipNulls: false,
|
|
7402
|
+
strictNullHandling: false
|
|
7403
|
+
};
|
|
7404
|
+
|
|
7405
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
7406
|
+
return typeof v === 'string'
|
|
7407
|
+
|| typeof v === 'number'
|
|
7408
|
+
|| typeof v === 'boolean'
|
|
7409
|
+
|| typeof v === 'symbol'
|
|
7410
|
+
|| typeof v === 'bigint';
|
|
7411
|
+
};
|
|
7412
|
+
|
|
7413
|
+
var stringify = function stringify(
|
|
7414
|
+
object,
|
|
7415
|
+
prefix,
|
|
7416
|
+
generateArrayPrefix,
|
|
7417
|
+
strictNullHandling,
|
|
7418
|
+
skipNulls,
|
|
7419
|
+
encoder,
|
|
7420
|
+
filter,
|
|
7421
|
+
sort,
|
|
7422
|
+
allowDots,
|
|
7423
|
+
serializeDate,
|
|
7424
|
+
format,
|
|
7425
|
+
formatter,
|
|
7426
|
+
encodeValuesOnly,
|
|
7427
|
+
charset,
|
|
7428
|
+
sideChannel
|
|
7429
|
+
) {
|
|
7430
|
+
var obj = object;
|
|
7431
|
+
|
|
7432
|
+
if (sideChannel.has(object)) {
|
|
7433
|
+
throw new RangeError('Cyclic object value');
|
|
7894
7434
|
}
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
)
|
|
7900
|
-
) {
|
|
7901
|
-
|
|
7435
|
+
|
|
7436
|
+
if (typeof filter === 'function') {
|
|
7437
|
+
obj = filter(prefix, obj);
|
|
7438
|
+
} else if (obj instanceof Date) {
|
|
7439
|
+
obj = serializeDate(obj);
|
|
7440
|
+
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
7441
|
+
obj = utils.maybeMap(obj, function (value) {
|
|
7442
|
+
if (value instanceof Date) {
|
|
7443
|
+
return serializeDate(value);
|
|
7444
|
+
}
|
|
7445
|
+
return value;
|
|
7446
|
+
});
|
|
7902
7447
|
}
|
|
7903
|
-
|
|
7904
|
-
if (
|
|
7905
|
-
|
|
7448
|
+
|
|
7449
|
+
if (obj === null) {
|
|
7450
|
+
if (strictNullHandling) {
|
|
7451
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
7452
|
+
}
|
|
7453
|
+
|
|
7454
|
+
obj = '';
|
|
7906
7455
|
}
|
|
7907
7456
|
|
|
7908
|
-
if (
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
-
|
|
7914
|
-
throw new TypeError('options "indent" must be "\\t", an integer > 0, or `null`');
|
|
7457
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
7458
|
+
if (encoder) {
|
|
7459
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
7460
|
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
7461
|
+
}
|
|
7462
|
+
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
7915
7463
|
}
|
|
7916
7464
|
|
|
7465
|
+
var values = [];
|
|
7466
|
+
|
|
7917
7467
|
if (typeof obj === 'undefined') {
|
|
7918
|
-
return
|
|
7468
|
+
return values;
|
|
7919
7469
|
}
|
|
7920
|
-
|
|
7921
|
-
|
|
7470
|
+
|
|
7471
|
+
var objKeys;
|
|
7472
|
+
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
7473
|
+
// we need to join elements in
|
|
7474
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : undefined }];
|
|
7475
|
+
} else if (isArray(filter)) {
|
|
7476
|
+
objKeys = filter;
|
|
7477
|
+
} else {
|
|
7478
|
+
var keys = Object.keys(obj);
|
|
7479
|
+
objKeys = sort ? keys.sort(sort) : keys;
|
|
7922
7480
|
}
|
|
7923
|
-
|
|
7924
|
-
|
|
7481
|
+
|
|
7482
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
7483
|
+
var key = objKeys[i];
|
|
7484
|
+
var value = typeof key === 'object' && key.value !== undefined ? key.value : obj[key];
|
|
7485
|
+
|
|
7486
|
+
if (skipNulls && value === null) {
|
|
7487
|
+
continue;
|
|
7488
|
+
}
|
|
7489
|
+
|
|
7490
|
+
var keyPrefix = isArray(obj)
|
|
7491
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix
|
|
7492
|
+
: prefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
7493
|
+
|
|
7494
|
+
sideChannel.set(object, true);
|
|
7495
|
+
var valueSideChannel = getSideChannel();
|
|
7496
|
+
pushToArray(values, stringify(
|
|
7497
|
+
value,
|
|
7498
|
+
keyPrefix,
|
|
7499
|
+
generateArrayPrefix,
|
|
7500
|
+
strictNullHandling,
|
|
7501
|
+
skipNulls,
|
|
7502
|
+
encoder,
|
|
7503
|
+
filter,
|
|
7504
|
+
sort,
|
|
7505
|
+
allowDots,
|
|
7506
|
+
serializeDate,
|
|
7507
|
+
format,
|
|
7508
|
+
formatter,
|
|
7509
|
+
encodeValuesOnly,
|
|
7510
|
+
charset,
|
|
7511
|
+
valueSideChannel
|
|
7512
|
+
));
|
|
7513
|
+
}
|
|
7514
|
+
|
|
7515
|
+
return values;
|
|
7516
|
+
};
|
|
7517
|
+
|
|
7518
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
7519
|
+
if (!opts) {
|
|
7520
|
+
return defaults;
|
|
7925
7521
|
}
|
|
7926
7522
|
|
|
7927
|
-
if (typeof
|
|
7928
|
-
|
|
7523
|
+
if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') {
|
|
7524
|
+
throw new TypeError('Encoder has to be a function.');
|
|
7929
7525
|
}
|
|
7930
|
-
|
|
7931
|
-
|
|
7932
|
-
|
|
7933
|
-
|
|
7934
|
-
return String(obj);
|
|
7526
|
+
|
|
7527
|
+
var charset = opts.charset || defaults.charset;
|
|
7528
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
7529
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
7935
7530
|
}
|
|
7936
|
-
|
|
7937
|
-
|
|
7531
|
+
|
|
7532
|
+
var format = formats['default'];
|
|
7533
|
+
if (typeof opts.format !== 'undefined') {
|
|
7534
|
+
if (!has.call(formats.formatters, opts.format)) {
|
|
7535
|
+
throw new TypeError('Unknown format option provided.');
|
|
7536
|
+
}
|
|
7537
|
+
format = opts.format;
|
|
7938
7538
|
}
|
|
7539
|
+
var formatter = formats.formatters[format];
|
|
7939
7540
|
|
|
7940
|
-
var
|
|
7941
|
-
if (typeof
|
|
7942
|
-
|
|
7943
|
-
return isArray(obj) ? '[Array]' : '[Object]';
|
|
7541
|
+
var filter = defaults.filter;
|
|
7542
|
+
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
|
|
7543
|
+
filter = opts.filter;
|
|
7944
7544
|
}
|
|
7945
7545
|
|
|
7946
|
-
|
|
7546
|
+
return {
|
|
7547
|
+
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
7548
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
7549
|
+
charset: charset,
|
|
7550
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
7551
|
+
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
7552
|
+
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
7553
|
+
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
7554
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
7555
|
+
filter: filter,
|
|
7556
|
+
format: format,
|
|
7557
|
+
formatter: formatter,
|
|
7558
|
+
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
7559
|
+
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
7560
|
+
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
7561
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
7562
|
+
};
|
|
7563
|
+
};
|
|
7947
7564
|
|
|
7948
|
-
|
|
7949
|
-
|
|
7950
|
-
|
|
7951
|
-
return '[Circular]';
|
|
7952
|
-
}
|
|
7565
|
+
module.exports = function (object, opts) {
|
|
7566
|
+
var obj = object;
|
|
7567
|
+
var options = normalizeStringifyOptions(opts);
|
|
7953
7568
|
|
|
7954
|
-
|
|
7955
|
-
|
|
7956
|
-
seen = seen.slice();
|
|
7957
|
-
seen.push(from);
|
|
7958
|
-
}
|
|
7959
|
-
if (noIndent) {
|
|
7960
|
-
var newOpts = {
|
|
7961
|
-
depth: opts.depth
|
|
7962
|
-
};
|
|
7963
|
-
if (has(opts, 'quoteStyle')) {
|
|
7964
|
-
newOpts.quoteStyle = opts.quoteStyle;
|
|
7965
|
-
}
|
|
7966
|
-
return inspect_(value, newOpts, depth + 1, seen);
|
|
7967
|
-
}
|
|
7968
|
-
return inspect_(value, opts, depth + 1, seen);
|
|
7969
|
-
}
|
|
7569
|
+
var objKeys;
|
|
7570
|
+
var filter;
|
|
7970
7571
|
|
|
7971
|
-
if (typeof
|
|
7972
|
-
|
|
7973
|
-
|
|
7974
|
-
|
|
7572
|
+
if (typeof options.filter === 'function') {
|
|
7573
|
+
filter = options.filter;
|
|
7574
|
+
obj = filter('', obj);
|
|
7575
|
+
} else if (isArray(options.filter)) {
|
|
7576
|
+
filter = options.filter;
|
|
7577
|
+
objKeys = filter;
|
|
7975
7578
|
}
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7579
|
+
|
|
7580
|
+
var keys = [];
|
|
7581
|
+
|
|
7582
|
+
if (typeof obj !== 'object' || obj === null) {
|
|
7583
|
+
return '';
|
|
7979
7584
|
}
|
|
7980
|
-
|
|
7981
|
-
|
|
7982
|
-
|
|
7983
|
-
|
|
7984
|
-
|
|
7985
|
-
|
|
7986
|
-
|
|
7987
|
-
|
|
7988
|
-
s += '</' + String(obj.nodeName).toLowerCase() + '>';
|
|
7989
|
-
return s;
|
|
7585
|
+
|
|
7586
|
+
var arrayFormat;
|
|
7587
|
+
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
7588
|
+
arrayFormat = opts.arrayFormat;
|
|
7589
|
+
} else if (opts && 'indices' in opts) {
|
|
7590
|
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
7591
|
+
} else {
|
|
7592
|
+
arrayFormat = 'indices';
|
|
7990
7593
|
}
|
|
7991
|
-
|
|
7992
|
-
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
}
|
|
7997
|
-
return '[ ' + xs.join(', ') + ' ]';
|
|
7594
|
+
|
|
7595
|
+
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
7596
|
+
|
|
7597
|
+
if (!objKeys) {
|
|
7598
|
+
objKeys = Object.keys(obj);
|
|
7998
7599
|
}
|
|
7999
|
-
|
|
8000
|
-
|
|
8001
|
-
|
|
8002
|
-
return '{ [' + String(obj) + '] ' + parts.join(', ') + ' }';
|
|
7600
|
+
|
|
7601
|
+
if (options.sort) {
|
|
7602
|
+
objKeys.sort(options.sort);
|
|
8003
7603
|
}
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
7604
|
+
|
|
7605
|
+
var sideChannel = getSideChannel();
|
|
7606
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
7607
|
+
var key = objKeys[i];
|
|
7608
|
+
|
|
7609
|
+
if (options.skipNulls && obj[key] === null) {
|
|
7610
|
+
continue;
|
|
8009
7611
|
}
|
|
7612
|
+
pushToArray(keys, stringify(
|
|
7613
|
+
obj[key],
|
|
7614
|
+
key,
|
|
7615
|
+
generateArrayPrefix,
|
|
7616
|
+
options.strictNullHandling,
|
|
7617
|
+
options.skipNulls,
|
|
7618
|
+
options.encode ? options.encoder : null,
|
|
7619
|
+
options.filter,
|
|
7620
|
+
options.sort,
|
|
7621
|
+
options.allowDots,
|
|
7622
|
+
options.serializeDate,
|
|
7623
|
+
options.format,
|
|
7624
|
+
options.formatter,
|
|
7625
|
+
options.encodeValuesOnly,
|
|
7626
|
+
options.charset,
|
|
7627
|
+
sideChannel
|
|
7628
|
+
));
|
|
8010
7629
|
}
|
|
8011
|
-
|
|
8012
|
-
|
|
8013
|
-
|
|
8014
|
-
|
|
8015
|
-
|
|
8016
|
-
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
|
|
8020
|
-
|
|
8021
|
-
|
|
8022
|
-
});
|
|
8023
|
-
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
8024
|
-
}
|
|
8025
|
-
if (isWeakMap(obj)) {
|
|
8026
|
-
return weakCollectionOf('WeakMap');
|
|
8027
|
-
}
|
|
8028
|
-
if (isWeakSet(obj)) {
|
|
8029
|
-
return weakCollectionOf('WeakSet');
|
|
8030
|
-
}
|
|
8031
|
-
if (isWeakRef(obj)) {
|
|
8032
|
-
return weakCollectionOf('WeakRef');
|
|
8033
|
-
}
|
|
8034
|
-
if (isNumber(obj)) {
|
|
8035
|
-
return markBoxed(inspect(Number(obj)));
|
|
8036
|
-
}
|
|
8037
|
-
if (isBigInt(obj)) {
|
|
8038
|
-
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
8039
|
-
}
|
|
8040
|
-
if (isBoolean(obj)) {
|
|
8041
|
-
return markBoxed(booleanValueOf.call(obj));
|
|
8042
|
-
}
|
|
8043
|
-
if (isString(obj)) {
|
|
8044
|
-
return markBoxed(inspect(String(obj)));
|
|
8045
|
-
}
|
|
8046
|
-
if (!isDate(obj) && !isRegExp(obj)) {
|
|
8047
|
-
var ys = arrObjKeys(obj, inspect);
|
|
8048
|
-
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
8049
|
-
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
8050
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? toStr(obj).slice(8, -1) : protoTag ? 'Object' : '';
|
|
8051
|
-
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
8052
|
-
var tag = constructorTag + (stringTag || protoTag ? '[' + [].concat(stringTag || [], protoTag || []).join(': ') + '] ' : '');
|
|
8053
|
-
if (ys.length === 0) { return tag + '{}'; }
|
|
8054
|
-
if (indent) {
|
|
8055
|
-
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
7630
|
+
|
|
7631
|
+
var joined = keys.join(options.delimiter);
|
|
7632
|
+
var prefix = options.addQueryPrefix === true ? '?' : '';
|
|
7633
|
+
|
|
7634
|
+
if (options.charsetSentinel) {
|
|
7635
|
+
if (options.charset === 'iso-8859-1') {
|
|
7636
|
+
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
|
7637
|
+
prefix += 'utf8=%26%2310003%3B&';
|
|
7638
|
+
} else {
|
|
7639
|
+
// encodeURIComponent('✓')
|
|
7640
|
+
prefix += 'utf8=%E2%9C%93&';
|
|
8056
7641
|
}
|
|
8057
|
-
return tag + '{ ' + ys.join(', ') + ' }';
|
|
8058
7642
|
}
|
|
8059
|
-
|
|
7643
|
+
|
|
7644
|
+
return joined.length > 0 ? prefix + joined : '';
|
|
8060
7645
|
};
|
|
8061
7646
|
|
|
8062
|
-
function wrapQuotes(s, defaultStyle, opts) {
|
|
8063
|
-
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
|
8064
|
-
return quoteChar + s + quoteChar;
|
|
8065
|
-
}
|
|
8066
7647
|
|
|
8067
|
-
|
|
8068
|
-
|
|
8069
|
-
|
|
7648
|
+
/***/ }),
|
|
7649
|
+
|
|
7650
|
+
/***/ "../node_modules/qs/lib/utils.js":
|
|
7651
|
+
/*!***************************************!*\
|
|
7652
|
+
!*** ../node_modules/qs/lib/utils.js ***!
|
|
7653
|
+
\***************************************/
|
|
7654
|
+
/*! no static exports found */
|
|
7655
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
7656
|
+
|
|
7657
|
+
"use strict";
|
|
7658
|
+
|
|
7659
|
+
|
|
7660
|
+
var formats = __webpack_require__(/*! ./formats */ "../node_modules/qs/lib/formats.js");
|
|
7661
|
+
|
|
7662
|
+
var has = Object.prototype.hasOwnProperty;
|
|
7663
|
+
var isArray = Array.isArray;
|
|
7664
|
+
|
|
7665
|
+
var hexTable = (function () {
|
|
7666
|
+
var array = [];
|
|
7667
|
+
for (var i = 0; i < 256; ++i) {
|
|
7668
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
7669
|
+
}
|
|
7670
|
+
|
|
7671
|
+
return array;
|
|
7672
|
+
}());
|
|
7673
|
+
|
|
7674
|
+
var compactQueue = function compactQueue(queue) {
|
|
7675
|
+
while (queue.length > 1) {
|
|
7676
|
+
var item = queue.pop();
|
|
7677
|
+
var obj = item.obj[item.prop];
|
|
7678
|
+
|
|
7679
|
+
if (isArray(obj)) {
|
|
7680
|
+
var compacted = [];
|
|
8070
7681
|
|
|
8071
|
-
|
|
8072
|
-
|
|
8073
|
-
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
8077
|
-
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
7682
|
+
for (var j = 0; j < obj.length; ++j) {
|
|
7683
|
+
if (typeof obj[j] !== 'undefined') {
|
|
7684
|
+
compacted.push(obj[j]);
|
|
7685
|
+
}
|
|
7686
|
+
}
|
|
8078
7687
|
|
|
8079
|
-
|
|
8080
|
-
|
|
8081
|
-
if (typeof obj === 'symbol') {
|
|
8082
|
-
return true;
|
|
8083
|
-
}
|
|
8084
|
-
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
8085
|
-
return false;
|
|
7688
|
+
item.obj[item.prop] = compacted;
|
|
7689
|
+
}
|
|
8086
7690
|
}
|
|
8087
|
-
|
|
8088
|
-
symToString.call(obj);
|
|
8089
|
-
return true;
|
|
8090
|
-
} catch (e) {}
|
|
8091
|
-
return false;
|
|
8092
|
-
}
|
|
7691
|
+
};
|
|
8093
7692
|
|
|
8094
|
-
function
|
|
8095
|
-
|
|
8096
|
-
|
|
7693
|
+
var arrayToObject = function arrayToObject(source, options) {
|
|
7694
|
+
var obj = options && options.plainObjects ? Object.create(null) : {};
|
|
7695
|
+
for (var i = 0; i < source.length; ++i) {
|
|
7696
|
+
if (typeof source[i] !== 'undefined') {
|
|
7697
|
+
obj[i] = source[i];
|
|
7698
|
+
}
|
|
8097
7699
|
}
|
|
8098
|
-
try {
|
|
8099
|
-
bigIntValueOf.call(obj);
|
|
8100
|
-
return true;
|
|
8101
|
-
} catch (e) {}
|
|
8102
|
-
return false;
|
|
8103
|
-
}
|
|
8104
7700
|
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
return hasOwn.call(obj, key);
|
|
8108
|
-
}
|
|
7701
|
+
return obj;
|
|
7702
|
+
};
|
|
8109
7703
|
|
|
8110
|
-
function
|
|
8111
|
-
|
|
8112
|
-
|
|
7704
|
+
var merge = function merge(target, source, options) {
|
|
7705
|
+
/* eslint no-param-reassign: 0 */
|
|
7706
|
+
if (!source) {
|
|
7707
|
+
return target;
|
|
7708
|
+
}
|
|
8113
7709
|
|
|
8114
|
-
|
|
8115
|
-
|
|
8116
|
-
|
|
8117
|
-
|
|
8118
|
-
|
|
8119
|
-
|
|
7710
|
+
if (typeof source !== 'object') {
|
|
7711
|
+
if (isArray(target)) {
|
|
7712
|
+
target.push(source);
|
|
7713
|
+
} else if (target && typeof target === 'object') {
|
|
7714
|
+
if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
|
|
7715
|
+
target[source] = true;
|
|
7716
|
+
}
|
|
7717
|
+
} else {
|
|
7718
|
+
return [target, source];
|
|
7719
|
+
}
|
|
8120
7720
|
|
|
8121
|
-
|
|
8122
|
-
if (xs.indexOf) { return xs.indexOf(x); }
|
|
8123
|
-
for (var i = 0, l = xs.length; i < l; i++) {
|
|
8124
|
-
if (xs[i] === x) { return i; }
|
|
7721
|
+
return target;
|
|
8125
7722
|
}
|
|
8126
|
-
return -1;
|
|
8127
|
-
}
|
|
8128
7723
|
|
|
8129
|
-
|
|
8130
|
-
|
|
8131
|
-
return false;
|
|
7724
|
+
if (!target || typeof target !== 'object') {
|
|
7725
|
+
return [target].concat(source);
|
|
8132
7726
|
}
|
|
8133
|
-
try {
|
|
8134
|
-
mapSize.call(x);
|
|
8135
|
-
try {
|
|
8136
|
-
setSize.call(x);
|
|
8137
|
-
} catch (s) {
|
|
8138
|
-
return true;
|
|
8139
|
-
}
|
|
8140
|
-
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
8141
|
-
} catch (e) {}
|
|
8142
|
-
return false;
|
|
8143
|
-
}
|
|
8144
7727
|
|
|
8145
|
-
|
|
8146
|
-
if (
|
|
8147
|
-
|
|
7728
|
+
var mergeTarget = target;
|
|
7729
|
+
if (isArray(target) && !isArray(source)) {
|
|
7730
|
+
mergeTarget = arrayToObject(target, options);
|
|
8148
7731
|
}
|
|
8149
|
-
try {
|
|
8150
|
-
weakMapHas.call(x, weakMapHas);
|
|
8151
|
-
try {
|
|
8152
|
-
weakSetHas.call(x, weakSetHas);
|
|
8153
|
-
} catch (s) {
|
|
8154
|
-
return true;
|
|
8155
|
-
}
|
|
8156
|
-
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
8157
|
-
} catch (e) {}
|
|
8158
|
-
return false;
|
|
8159
|
-
}
|
|
8160
7732
|
|
|
8161
|
-
|
|
8162
|
-
|
|
8163
|
-
|
|
7733
|
+
if (isArray(target) && isArray(source)) {
|
|
7734
|
+
source.forEach(function (item, i) {
|
|
7735
|
+
if (has.call(target, i)) {
|
|
7736
|
+
var targetItem = target[i];
|
|
7737
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
7738
|
+
target[i] = merge(targetItem, item, options);
|
|
7739
|
+
} else {
|
|
7740
|
+
target.push(item);
|
|
7741
|
+
}
|
|
7742
|
+
} else {
|
|
7743
|
+
target[i] = item;
|
|
7744
|
+
}
|
|
7745
|
+
});
|
|
7746
|
+
return target;
|
|
8164
7747
|
}
|
|
8165
|
-
try {
|
|
8166
|
-
weakRefDeref.call(x);
|
|
8167
|
-
return true;
|
|
8168
|
-
} catch (e) {}
|
|
8169
|
-
return false;
|
|
8170
|
-
}
|
|
8171
7748
|
|
|
8172
|
-
function
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
mapSize.call(x);
|
|
8180
|
-
} catch (m) {
|
|
8181
|
-
return true;
|
|
7749
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
7750
|
+
var value = source[key];
|
|
7751
|
+
|
|
7752
|
+
if (has.call(acc, key)) {
|
|
7753
|
+
acc[key] = merge(acc[key], value, options);
|
|
7754
|
+
} else {
|
|
7755
|
+
acc[key] = value;
|
|
8182
7756
|
}
|
|
8183
|
-
return
|
|
8184
|
-
}
|
|
8185
|
-
|
|
8186
|
-
}
|
|
7757
|
+
return acc;
|
|
7758
|
+
}, mergeTarget);
|
|
7759
|
+
};
|
|
8187
7760
|
|
|
8188
|
-
function
|
|
8189
|
-
|
|
8190
|
-
|
|
7761
|
+
var assign = function assignSingleSource(target, source) {
|
|
7762
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
7763
|
+
acc[key] = source[key];
|
|
7764
|
+
return acc;
|
|
7765
|
+
}, target);
|
|
7766
|
+
};
|
|
7767
|
+
|
|
7768
|
+
var decode = function (str, decoder, charset) {
|
|
7769
|
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
7770
|
+
if (charset === 'iso-8859-1') {
|
|
7771
|
+
// unescape never throws, no try...catch needed:
|
|
7772
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
8191
7773
|
}
|
|
7774
|
+
// utf-8
|
|
8192
7775
|
try {
|
|
8193
|
-
|
|
8194
|
-
|
|
8195
|
-
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
}
|
|
8199
|
-
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
8200
|
-
} catch (e) {}
|
|
8201
|
-
return false;
|
|
8202
|
-
}
|
|
7776
|
+
return decodeURIComponent(strWithoutPlus);
|
|
7777
|
+
} catch (e) {
|
|
7778
|
+
return strWithoutPlus;
|
|
7779
|
+
}
|
|
7780
|
+
};
|
|
8203
7781
|
|
|
8204
|
-
function
|
|
8205
|
-
|
|
8206
|
-
|
|
8207
|
-
|
|
7782
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
7783
|
+
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
7784
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
|
7785
|
+
if (str.length === 0) {
|
|
7786
|
+
return str;
|
|
8208
7787
|
}
|
|
8209
|
-
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
8210
|
-
}
|
|
8211
7788
|
|
|
8212
|
-
|
|
8213
|
-
if (str
|
|
8214
|
-
|
|
8215
|
-
|
|
8216
|
-
|
|
7789
|
+
var string = str;
|
|
7790
|
+
if (typeof str === 'symbol') {
|
|
7791
|
+
string = Symbol.prototype.toString.call(str);
|
|
7792
|
+
} else if (typeof str !== 'string') {
|
|
7793
|
+
string = String(str);
|
|
8217
7794
|
}
|
|
8218
|
-
// eslint-disable-next-line no-control-regex
|
|
8219
|
-
var s = str.replace(/(['\\])/g, '\\$1').replace(/[\x00-\x1f]/g, lowbyte);
|
|
8220
|
-
return wrapQuotes(s, 'single', opts);
|
|
8221
|
-
}
|
|
8222
7795
|
|
|
8223
|
-
|
|
8224
|
-
|
|
8225
|
-
|
|
8226
|
-
|
|
8227
|
-
|
|
8228
|
-
10: 'n',
|
|
8229
|
-
12: 'f',
|
|
8230
|
-
13: 'r'
|
|
8231
|
-
}[n];
|
|
8232
|
-
if (x) { return '\\' + x; }
|
|
8233
|
-
return '\\x' + (n < 0x10 ? '0' : '') + n.toString(16).toUpperCase();
|
|
8234
|
-
}
|
|
7796
|
+
if (charset === 'iso-8859-1') {
|
|
7797
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
7798
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
7799
|
+
});
|
|
7800
|
+
}
|
|
8235
7801
|
|
|
8236
|
-
|
|
8237
|
-
|
|
8238
|
-
|
|
7802
|
+
var out = '';
|
|
7803
|
+
for (var i = 0; i < string.length; ++i) {
|
|
7804
|
+
var c = string.charCodeAt(i);
|
|
8239
7805
|
|
|
8240
|
-
|
|
8241
|
-
|
|
8242
|
-
|
|
7806
|
+
if (
|
|
7807
|
+
c === 0x2D // -
|
|
7808
|
+
|| c === 0x2E // .
|
|
7809
|
+
|| c === 0x5F // _
|
|
7810
|
+
|| c === 0x7E // ~
|
|
7811
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
7812
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
7813
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
7814
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
7815
|
+
) {
|
|
7816
|
+
out += string.charAt(i);
|
|
7817
|
+
continue;
|
|
7818
|
+
}
|
|
7819
|
+
|
|
7820
|
+
if (c < 0x80) {
|
|
7821
|
+
out = out + hexTable[c];
|
|
7822
|
+
continue;
|
|
7823
|
+
}
|
|
8243
7824
|
|
|
8244
|
-
|
|
8245
|
-
|
|
8246
|
-
|
|
8247
|
-
}
|
|
7825
|
+
if (c < 0x800) {
|
|
7826
|
+
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
7827
|
+
continue;
|
|
7828
|
+
}
|
|
8248
7829
|
|
|
8249
|
-
|
|
8250
|
-
|
|
8251
|
-
|
|
8252
|
-
return false;
|
|
7830
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
7831
|
+
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
|
7832
|
+
continue;
|
|
8253
7833
|
}
|
|
8254
|
-
}
|
|
8255
|
-
return true;
|
|
8256
|
-
}
|
|
8257
7834
|
|
|
8258
|
-
|
|
8259
|
-
|
|
8260
|
-
|
|
8261
|
-
|
|
8262
|
-
|
|
8263
|
-
|
|
8264
|
-
} else {
|
|
8265
|
-
return null;
|
|
7835
|
+
i += 1;
|
|
7836
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
7837
|
+
out += hexTable[0xF0 | (c >> 18)]
|
|
7838
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
7839
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
7840
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
8266
7841
|
}
|
|
8267
|
-
return {
|
|
8268
|
-
base: baseIndent,
|
|
8269
|
-
prev: Array(depth + 1).join(baseIndent)
|
|
8270
|
-
};
|
|
8271
|
-
}
|
|
8272
7842
|
|
|
8273
|
-
|
|
8274
|
-
|
|
8275
|
-
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
8276
|
-
return lineJoiner + xs.join(',' + lineJoiner) + '\n' + indent.prev;
|
|
8277
|
-
}
|
|
7843
|
+
return out;
|
|
7844
|
+
};
|
|
8278
7845
|
|
|
8279
|
-
function
|
|
8280
|
-
var
|
|
8281
|
-
var
|
|
8282
|
-
|
|
8283
|
-
|
|
8284
|
-
|
|
8285
|
-
|
|
7846
|
+
var compact = function compact(value) {
|
|
7847
|
+
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
7848
|
+
var refs = [];
|
|
7849
|
+
|
|
7850
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
7851
|
+
var item = queue[i];
|
|
7852
|
+
var obj = item.obj[item.prop];
|
|
7853
|
+
|
|
7854
|
+
var keys = Object.keys(obj);
|
|
7855
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
7856
|
+
var key = keys[j];
|
|
7857
|
+
var val = obj[key];
|
|
7858
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
7859
|
+
queue.push({ obj: obj, prop: key });
|
|
7860
|
+
refs.push(val);
|
|
7861
|
+
}
|
|
8286
7862
|
}
|
|
8287
7863
|
}
|
|
8288
|
-
|
|
8289
|
-
|
|
8290
|
-
|
|
8291
|
-
|
|
8292
|
-
|
|
8293
|
-
|
|
8294
|
-
|
|
8295
|
-
|
|
7864
|
+
|
|
7865
|
+
compactQueue(queue);
|
|
7866
|
+
|
|
7867
|
+
return value;
|
|
7868
|
+
};
|
|
7869
|
+
|
|
7870
|
+
var isRegExp = function isRegExp(obj) {
|
|
7871
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
7872
|
+
};
|
|
7873
|
+
|
|
7874
|
+
var isBuffer = function isBuffer(obj) {
|
|
7875
|
+
if (!obj || typeof obj !== 'object') {
|
|
7876
|
+
return false;
|
|
8296
7877
|
}
|
|
8297
|
-
|
|
8298
|
-
|
|
8299
|
-
|
|
8300
|
-
|
|
8301
|
-
|
|
8302
|
-
|
|
7878
|
+
|
|
7879
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
7880
|
+
};
|
|
7881
|
+
|
|
7882
|
+
var combine = function combine(a, b) {
|
|
7883
|
+
return [].concat(a, b);
|
|
7884
|
+
};
|
|
7885
|
+
|
|
7886
|
+
var maybeMap = function maybeMap(val, fn) {
|
|
7887
|
+
if (isArray(val)) {
|
|
7888
|
+
var mapped = [];
|
|
7889
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
7890
|
+
mapped.push(fn(val[i]));
|
|
8303
7891
|
}
|
|
7892
|
+
return mapped;
|
|
8304
7893
|
}
|
|
8305
|
-
return
|
|
8306
|
-
}
|
|
7894
|
+
return fn(val);
|
|
7895
|
+
};
|
|
7896
|
+
|
|
7897
|
+
module.exports = {
|
|
7898
|
+
arrayToObject: arrayToObject,
|
|
7899
|
+
assign: assign,
|
|
7900
|
+
combine: combine,
|
|
7901
|
+
compact: compact,
|
|
7902
|
+
decode: decode,
|
|
7903
|
+
encode: encode,
|
|
7904
|
+
isBuffer: isBuffer,
|
|
7905
|
+
isRegExp: isRegExp,
|
|
7906
|
+
maybeMap: maybeMap,
|
|
7907
|
+
merge: merge
|
|
7908
|
+
};
|
|
8307
7909
|
|
|
8308
7910
|
|
|
8309
7911
|
/***/ }),
|
|
8310
7912
|
|
|
8311
|
-
/***/ "../node_modules/side-channel/
|
|
8312
|
-
|
|
8313
|
-
!*** ../node_modules/side-channel/
|
|
8314
|
-
|
|
7913
|
+
/***/ "../node_modules/side-channel/index.js":
|
|
7914
|
+
/*!*********************************************!*\
|
|
7915
|
+
!*** ../node_modules/side-channel/index.js ***!
|
|
7916
|
+
\*********************************************/
|
|
8315
7917
|
/*! no static exports found */
|
|
8316
7918
|
/***/ (function(module, exports, __webpack_require__) {
|
|
8317
7919
|
|
|
8318
|
-
|
|
7920
|
+
"use strict";
|
|
7921
|
+
|
|
7922
|
+
|
|
7923
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../node_modules/get-intrinsic/index.js");
|
|
7924
|
+
var callBound = __webpack_require__(/*! call-bind/callBound */ "../node_modules/call-bind/callBound.js");
|
|
7925
|
+
var inspect = __webpack_require__(/*! object-inspect */ "../node_modules/object-inspect/index.js");
|
|
7926
|
+
|
|
7927
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
7928
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
7929
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
7930
|
+
|
|
7931
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
7932
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
7933
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
7934
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
7935
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
7936
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
7937
|
+
|
|
7938
|
+
/*
|
|
7939
|
+
* This function traverses the list returning the node corresponding to the
|
|
7940
|
+
* given key.
|
|
7941
|
+
*
|
|
7942
|
+
* That node is also moved to the head of the list, so that if it's accessed
|
|
7943
|
+
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
7944
|
+
* used nodes can be accessed relatively quickly.
|
|
7945
|
+
*/
|
|
7946
|
+
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
7947
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
7948
|
+
if (curr.key === key) {
|
|
7949
|
+
prev.next = curr.next;
|
|
7950
|
+
curr.next = list.next;
|
|
7951
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
7952
|
+
return curr;
|
|
7953
|
+
}
|
|
7954
|
+
}
|
|
7955
|
+
};
|
|
7956
|
+
|
|
7957
|
+
var listGet = function (objects, key) {
|
|
7958
|
+
var node = listGetNode(objects, key);
|
|
7959
|
+
return node && node.value;
|
|
7960
|
+
};
|
|
7961
|
+
var listSet = function (objects, key, value) {
|
|
7962
|
+
var node = listGetNode(objects, key);
|
|
7963
|
+
if (node) {
|
|
7964
|
+
node.value = value;
|
|
7965
|
+
} else {
|
|
7966
|
+
// Prepend the new node to the beginning of the list
|
|
7967
|
+
objects.next = { // eslint-disable-line no-param-reassign
|
|
7968
|
+
key: key,
|
|
7969
|
+
next: objects.next,
|
|
7970
|
+
value: value
|
|
7971
|
+
};
|
|
7972
|
+
}
|
|
7973
|
+
};
|
|
7974
|
+
var listHas = function (objects, key) {
|
|
7975
|
+
return !!listGetNode(objects, key);
|
|
7976
|
+
};
|
|
7977
|
+
|
|
7978
|
+
module.exports = function getSideChannel() {
|
|
7979
|
+
var $wm;
|
|
7980
|
+
var $m;
|
|
7981
|
+
var $o;
|
|
7982
|
+
var channel = {
|
|
7983
|
+
assert: function (key) {
|
|
7984
|
+
if (!channel.has(key)) {
|
|
7985
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
7986
|
+
}
|
|
7987
|
+
},
|
|
7988
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
7989
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
7990
|
+
if ($wm) {
|
|
7991
|
+
return $weakMapGet($wm, key);
|
|
7992
|
+
}
|
|
7993
|
+
} else if ($Map) {
|
|
7994
|
+
if ($m) {
|
|
7995
|
+
return $mapGet($m, key);
|
|
7996
|
+
}
|
|
7997
|
+
} else {
|
|
7998
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
7999
|
+
return listGet($o, key);
|
|
8000
|
+
}
|
|
8001
|
+
}
|
|
8002
|
+
},
|
|
8003
|
+
has: function (key) {
|
|
8004
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
8005
|
+
if ($wm) {
|
|
8006
|
+
return $weakMapHas($wm, key);
|
|
8007
|
+
}
|
|
8008
|
+
} else if ($Map) {
|
|
8009
|
+
if ($m) {
|
|
8010
|
+
return $mapHas($m, key);
|
|
8011
|
+
}
|
|
8012
|
+
} else {
|
|
8013
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
8014
|
+
return listHas($o, key);
|
|
8015
|
+
}
|
|
8016
|
+
}
|
|
8017
|
+
return false;
|
|
8018
|
+
},
|
|
8019
|
+
set: function (key, value) {
|
|
8020
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
8021
|
+
if (!$wm) {
|
|
8022
|
+
$wm = new $WeakMap();
|
|
8023
|
+
}
|
|
8024
|
+
$weakMapSet($wm, key, value);
|
|
8025
|
+
} else if ($Map) {
|
|
8026
|
+
if (!$m) {
|
|
8027
|
+
$m = new $Map();
|
|
8028
|
+
}
|
|
8029
|
+
$mapSet($m, key, value);
|
|
8030
|
+
} else {
|
|
8031
|
+
if (!$o) {
|
|
8032
|
+
/*
|
|
8033
|
+
* Initialize the linked list as an empty node, so that we don't have
|
|
8034
|
+
* to special-case handling of the first node: we can always refer to
|
|
8035
|
+
* it as (previous node).next, instead of something like (list).head
|
|
8036
|
+
*/
|
|
8037
|
+
$o = { key: {}, next: null };
|
|
8038
|
+
}
|
|
8039
|
+
listSet($o, key, value);
|
|
8040
|
+
}
|
|
8041
|
+
}
|
|
8042
|
+
};
|
|
8043
|
+
return channel;
|
|
8044
|
+
};
|
|
8319
8045
|
|
|
8320
8046
|
|
|
8321
8047
|
/***/ }),
|
|
@@ -8403,7 +8129,7 @@ function createClient(params) {
|
|
|
8403
8129
|
|
|
8404
8130
|
const config = _objectSpread(_objectSpread({}, defaultConfig), params);
|
|
8405
8131
|
|
|
8406
|
-
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.1.
|
|
8132
|
+
const userAgentHeader = Object(contentful_sdk_core__WEBPACK_IMPORTED_MODULE_1__["getUserAgentHeader"])(`contentful.js/${"9.1.4"}`, config.application, config.integration);
|
|
8407
8133
|
config.headers = _objectSpread(_objectSpread({}, config.headers), {}, {
|
|
8408
8134
|
'Content-Type': 'application/vnd.contentful.delivery.v1+json',
|
|
8409
8135
|
'X-Contentful-User-Agent': userAgentHeader
|