solid-ui 2.4.31 → 2.4.32
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/805.solid-ui.min.js +1 -1
- package/dist/805.solid-ui.min.js.map +1 -1
- package/dist/solid-ui.js +2755 -441
- package/dist/solid-ui.js.map +1 -1
- package/dist/solid-ui.min.js +1 -1
- package/dist/solid-ui.min.js.LICENSE.txt +1 -1
- package/dist/solid-ui.min.js.map +1 -1
- package/dist/vendors-node_modules_jsonld_lib_jsonld_js.solid-ui.js +1965 -1965
- package/dist/vendors-node_modules_jsonld_lib_jsonld_js.solid-ui.js.map +1 -1
- package/lib/tabs.js +1 -1
- package/lib/tabs.js.map +1 -1
- package/lib/versionInfo.js +3 -3
- package/lib/versionInfo.js.map +1 -1
- package/package.json +1 -1
package/dist/solid-ui.js
CHANGED
|
@@ -12321,7 +12321,7 @@ function tabWidget(options) {
|
|
|
12321
12321
|
var rootElement = dom.createElement('div'); // 20200117a
|
|
12322
12322
|
|
|
12323
12323
|
rootElement.setAttribute('style', style.tabsRootElement);
|
|
12324
|
-
rootElement.style.flexDirection = (vertical ? 'row' : 'column') + (flipped ? '-reverse
|
|
12324
|
+
rootElement.style.flexDirection = (vertical ? 'row' : 'column') + (flipped ? '-reverse' : '');
|
|
12325
12325
|
var navElement = rootElement.appendChild(dom.createElement('nav'));
|
|
12326
12326
|
navElement.setAttribute('style', style.tabsNavElement);
|
|
12327
12327
|
var mainElement = rootElement.appendChild(dom.createElement('main'));
|
|
@@ -13695,10 +13695,10 @@ Object.defineProperty(exports, "__esModule", ({
|
|
|
13695
13695
|
}));
|
|
13696
13696
|
exports.versionInfo = void 0;
|
|
13697
13697
|
var versionInfo = exports.versionInfo = {
|
|
13698
|
-
buildTime: '2023-12-
|
|
13699
|
-
commit: '
|
|
13698
|
+
buildTime: '2023-12-04T10:26:57Z',
|
|
13699
|
+
commit: 'd6736c162182daa4832d184fd6d2cb74ae6f44e3',
|
|
13700
13700
|
npmInfo: {
|
|
13701
|
-
'solid-ui': '2.4.
|
|
13701
|
+
'solid-ui': '2.4.32',
|
|
13702
13702
|
npm: '8.19.4',
|
|
13703
13703
|
node: '16.20.2',
|
|
13704
13704
|
v8: '9.4.146.26-node.26',
|
|
@@ -40023,6 +40023,87 @@ exports.XMLReader = XMLReader;
|
|
|
40023
40023
|
exports.ParseError = ParseError;
|
|
40024
40024
|
|
|
40025
40025
|
|
|
40026
|
+
/***/ }),
|
|
40027
|
+
|
|
40028
|
+
/***/ "./node_modules/call-bind/callBound.js":
|
|
40029
|
+
/*!*********************************************!*\
|
|
40030
|
+
!*** ./node_modules/call-bind/callBound.js ***!
|
|
40031
|
+
\*********************************************/
|
|
40032
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
40033
|
+
|
|
40034
|
+
"use strict";
|
|
40035
|
+
|
|
40036
|
+
|
|
40037
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
|
|
40038
|
+
|
|
40039
|
+
var callBind = __webpack_require__(/*! ./ */ "./node_modules/call-bind/index.js");
|
|
40040
|
+
|
|
40041
|
+
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
40042
|
+
|
|
40043
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
40044
|
+
var intrinsic = GetIntrinsic(name, !!allowMissing);
|
|
40045
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
40046
|
+
return callBind(intrinsic);
|
|
40047
|
+
}
|
|
40048
|
+
return intrinsic;
|
|
40049
|
+
};
|
|
40050
|
+
|
|
40051
|
+
|
|
40052
|
+
/***/ }),
|
|
40053
|
+
|
|
40054
|
+
/***/ "./node_modules/call-bind/index.js":
|
|
40055
|
+
/*!*****************************************!*\
|
|
40056
|
+
!*** ./node_modules/call-bind/index.js ***!
|
|
40057
|
+
\*****************************************/
|
|
40058
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
40059
|
+
|
|
40060
|
+
"use strict";
|
|
40061
|
+
|
|
40062
|
+
|
|
40063
|
+
var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
|
|
40064
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
|
|
40065
|
+
var setFunctionLength = __webpack_require__(/*! set-function-length */ "./node_modules/set-function-length/index.js");
|
|
40066
|
+
|
|
40067
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
40068
|
+
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
40069
|
+
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
40070
|
+
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
40071
|
+
|
|
40072
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
40073
|
+
var $max = GetIntrinsic('%Math.max%');
|
|
40074
|
+
|
|
40075
|
+
if ($defineProperty) {
|
|
40076
|
+
try {
|
|
40077
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
40078
|
+
} catch (e) {
|
|
40079
|
+
// IE 8 has a broken defineProperty
|
|
40080
|
+
$defineProperty = null;
|
|
40081
|
+
}
|
|
40082
|
+
}
|
|
40083
|
+
|
|
40084
|
+
module.exports = function callBind(originalFunction) {
|
|
40085
|
+
if (typeof originalFunction !== 'function') {
|
|
40086
|
+
throw new $TypeError('a function is required');
|
|
40087
|
+
}
|
|
40088
|
+
var func = $reflectApply(bind, $call, arguments);
|
|
40089
|
+
return setFunctionLength(
|
|
40090
|
+
func,
|
|
40091
|
+
1 + $max(0, originalFunction.length - (arguments.length - 1)),
|
|
40092
|
+
true
|
|
40093
|
+
);
|
|
40094
|
+
};
|
|
40095
|
+
|
|
40096
|
+
var applyBind = function applyBind() {
|
|
40097
|
+
return $reflectApply(bind, $apply, arguments);
|
|
40098
|
+
};
|
|
40099
|
+
|
|
40100
|
+
if ($defineProperty) {
|
|
40101
|
+
$defineProperty(module.exports, 'apply', { value: applyBind });
|
|
40102
|
+
} else {
|
|
40103
|
+
module.exports.apply = applyBind;
|
|
40104
|
+
}
|
|
40105
|
+
|
|
40106
|
+
|
|
40026
40107
|
/***/ }),
|
|
40027
40108
|
|
|
40028
40109
|
/***/ "./node_modules/cross-fetch/dist/browser-ponyfill.js":
|
|
@@ -40587,6 +40668,85 @@ exports.Response = ctx.Response
|
|
|
40587
40668
|
module.exports = exports
|
|
40588
40669
|
|
|
40589
40670
|
|
|
40671
|
+
/***/ }),
|
|
40672
|
+
|
|
40673
|
+
/***/ "./node_modules/define-data-property/index.js":
|
|
40674
|
+
/*!****************************************************!*\
|
|
40675
|
+
!*** ./node_modules/define-data-property/index.js ***!
|
|
40676
|
+
\****************************************************/
|
|
40677
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
40678
|
+
|
|
40679
|
+
"use strict";
|
|
40680
|
+
|
|
40681
|
+
|
|
40682
|
+
var hasPropertyDescriptors = __webpack_require__(/*! has-property-descriptors */ "./node_modules/has-property-descriptors/index.js")();
|
|
40683
|
+
|
|
40684
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
|
|
40685
|
+
|
|
40686
|
+
var $defineProperty = hasPropertyDescriptors && GetIntrinsic('%Object.defineProperty%', true);
|
|
40687
|
+
if ($defineProperty) {
|
|
40688
|
+
try {
|
|
40689
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
40690
|
+
} catch (e) {
|
|
40691
|
+
// IE 8 has a broken defineProperty
|
|
40692
|
+
$defineProperty = false;
|
|
40693
|
+
}
|
|
40694
|
+
}
|
|
40695
|
+
|
|
40696
|
+
var $SyntaxError = GetIntrinsic('%SyntaxError%');
|
|
40697
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
40698
|
+
|
|
40699
|
+
var gopd = __webpack_require__(/*! gopd */ "./node_modules/gopd/index.js");
|
|
40700
|
+
|
|
40701
|
+
/** @type {(obj: Record<PropertyKey, unknown>, property: PropertyKey, value: unknown, nonEnumerable?: boolean | null, nonWritable?: boolean | null, nonConfigurable?: boolean | null, loose?: boolean) => void} */
|
|
40702
|
+
module.exports = function defineDataProperty(
|
|
40703
|
+
obj,
|
|
40704
|
+
property,
|
|
40705
|
+
value
|
|
40706
|
+
) {
|
|
40707
|
+
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
40708
|
+
throw new $TypeError('`obj` must be an object or a function`');
|
|
40709
|
+
}
|
|
40710
|
+
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
40711
|
+
throw new $TypeError('`property` must be a string or a symbol`');
|
|
40712
|
+
}
|
|
40713
|
+
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
40714
|
+
throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
|
|
40715
|
+
}
|
|
40716
|
+
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
40717
|
+
throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
|
|
40718
|
+
}
|
|
40719
|
+
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
40720
|
+
throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
|
|
40721
|
+
}
|
|
40722
|
+
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
40723
|
+
throw new $TypeError('`loose`, if provided, must be a boolean');
|
|
40724
|
+
}
|
|
40725
|
+
|
|
40726
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
40727
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
40728
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
40729
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
40730
|
+
|
|
40731
|
+
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
40732
|
+
var desc = !!gopd && gopd(obj, property);
|
|
40733
|
+
|
|
40734
|
+
if ($defineProperty) {
|
|
40735
|
+
$defineProperty(obj, property, {
|
|
40736
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
40737
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
40738
|
+
value: value,
|
|
40739
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
40740
|
+
});
|
|
40741
|
+
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
40742
|
+
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
40743
|
+
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
40744
|
+
} else {
|
|
40745
|
+
throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
40746
|
+
}
|
|
40747
|
+
};
|
|
40748
|
+
|
|
40749
|
+
|
|
40590
40750
|
/***/ }),
|
|
40591
40751
|
|
|
40592
40752
|
/***/ "./node_modules/escape-html/index.js":
|
|
@@ -41184,6 +41344,668 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
|
41184
41344
|
}
|
|
41185
41345
|
|
|
41186
41346
|
|
|
41347
|
+
/***/ }),
|
|
41348
|
+
|
|
41349
|
+
/***/ "./node_modules/function-bind/implementation.js":
|
|
41350
|
+
/*!******************************************************!*\
|
|
41351
|
+
!*** ./node_modules/function-bind/implementation.js ***!
|
|
41352
|
+
\******************************************************/
|
|
41353
|
+
/***/ ((module) => {
|
|
41354
|
+
|
|
41355
|
+
"use strict";
|
|
41356
|
+
|
|
41357
|
+
|
|
41358
|
+
/* eslint no-invalid-this: 1 */
|
|
41359
|
+
|
|
41360
|
+
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
41361
|
+
var toStr = Object.prototype.toString;
|
|
41362
|
+
var max = Math.max;
|
|
41363
|
+
var funcType = '[object Function]';
|
|
41364
|
+
|
|
41365
|
+
var concatty = function concatty(a, b) {
|
|
41366
|
+
var arr = [];
|
|
41367
|
+
|
|
41368
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
41369
|
+
arr[i] = a[i];
|
|
41370
|
+
}
|
|
41371
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
41372
|
+
arr[j + a.length] = b[j];
|
|
41373
|
+
}
|
|
41374
|
+
|
|
41375
|
+
return arr;
|
|
41376
|
+
};
|
|
41377
|
+
|
|
41378
|
+
var slicy = function slicy(arrLike, offset) {
|
|
41379
|
+
var arr = [];
|
|
41380
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
41381
|
+
arr[j] = arrLike[i];
|
|
41382
|
+
}
|
|
41383
|
+
return arr;
|
|
41384
|
+
};
|
|
41385
|
+
|
|
41386
|
+
var joiny = function (arr, joiner) {
|
|
41387
|
+
var str = '';
|
|
41388
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
41389
|
+
str += arr[i];
|
|
41390
|
+
if (i + 1 < arr.length) {
|
|
41391
|
+
str += joiner;
|
|
41392
|
+
}
|
|
41393
|
+
}
|
|
41394
|
+
return str;
|
|
41395
|
+
};
|
|
41396
|
+
|
|
41397
|
+
module.exports = function bind(that) {
|
|
41398
|
+
var target = this;
|
|
41399
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
41400
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
41401
|
+
}
|
|
41402
|
+
var args = slicy(arguments, 1);
|
|
41403
|
+
|
|
41404
|
+
var bound;
|
|
41405
|
+
var binder = function () {
|
|
41406
|
+
if (this instanceof bound) {
|
|
41407
|
+
var result = target.apply(
|
|
41408
|
+
this,
|
|
41409
|
+
concatty(args, arguments)
|
|
41410
|
+
);
|
|
41411
|
+
if (Object(result) === result) {
|
|
41412
|
+
return result;
|
|
41413
|
+
}
|
|
41414
|
+
return this;
|
|
41415
|
+
}
|
|
41416
|
+
return target.apply(
|
|
41417
|
+
that,
|
|
41418
|
+
concatty(args, arguments)
|
|
41419
|
+
);
|
|
41420
|
+
|
|
41421
|
+
};
|
|
41422
|
+
|
|
41423
|
+
var boundLength = max(0, target.length - args.length);
|
|
41424
|
+
var boundArgs = [];
|
|
41425
|
+
for (var i = 0; i < boundLength; i++) {
|
|
41426
|
+
boundArgs[i] = '$' + i;
|
|
41427
|
+
}
|
|
41428
|
+
|
|
41429
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
41430
|
+
|
|
41431
|
+
if (target.prototype) {
|
|
41432
|
+
var Empty = function Empty() {};
|
|
41433
|
+
Empty.prototype = target.prototype;
|
|
41434
|
+
bound.prototype = new Empty();
|
|
41435
|
+
Empty.prototype = null;
|
|
41436
|
+
}
|
|
41437
|
+
|
|
41438
|
+
return bound;
|
|
41439
|
+
};
|
|
41440
|
+
|
|
41441
|
+
|
|
41442
|
+
/***/ }),
|
|
41443
|
+
|
|
41444
|
+
/***/ "./node_modules/function-bind/index.js":
|
|
41445
|
+
/*!*********************************************!*\
|
|
41446
|
+
!*** ./node_modules/function-bind/index.js ***!
|
|
41447
|
+
\*********************************************/
|
|
41448
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41449
|
+
|
|
41450
|
+
"use strict";
|
|
41451
|
+
|
|
41452
|
+
|
|
41453
|
+
var implementation = __webpack_require__(/*! ./implementation */ "./node_modules/function-bind/implementation.js");
|
|
41454
|
+
|
|
41455
|
+
module.exports = Function.prototype.bind || implementation;
|
|
41456
|
+
|
|
41457
|
+
|
|
41458
|
+
/***/ }),
|
|
41459
|
+
|
|
41460
|
+
/***/ "./node_modules/get-intrinsic/index.js":
|
|
41461
|
+
/*!*********************************************!*\
|
|
41462
|
+
!*** ./node_modules/get-intrinsic/index.js ***!
|
|
41463
|
+
\*********************************************/
|
|
41464
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41465
|
+
|
|
41466
|
+
"use strict";
|
|
41467
|
+
|
|
41468
|
+
|
|
41469
|
+
var undefined;
|
|
41470
|
+
|
|
41471
|
+
var $SyntaxError = SyntaxError;
|
|
41472
|
+
var $Function = Function;
|
|
41473
|
+
var $TypeError = TypeError;
|
|
41474
|
+
|
|
41475
|
+
// eslint-disable-next-line consistent-return
|
|
41476
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
41477
|
+
try {
|
|
41478
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
41479
|
+
} catch (e) {}
|
|
41480
|
+
};
|
|
41481
|
+
|
|
41482
|
+
var $gOPD = Object.getOwnPropertyDescriptor;
|
|
41483
|
+
if ($gOPD) {
|
|
41484
|
+
try {
|
|
41485
|
+
$gOPD({}, '');
|
|
41486
|
+
} catch (e) {
|
|
41487
|
+
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
41488
|
+
}
|
|
41489
|
+
}
|
|
41490
|
+
|
|
41491
|
+
var throwTypeError = function () {
|
|
41492
|
+
throw new $TypeError();
|
|
41493
|
+
};
|
|
41494
|
+
var ThrowTypeError = $gOPD
|
|
41495
|
+
? (function () {
|
|
41496
|
+
try {
|
|
41497
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
41498
|
+
arguments.callee; // IE 8 does not throw here
|
|
41499
|
+
return throwTypeError;
|
|
41500
|
+
} catch (calleeThrows) {
|
|
41501
|
+
try {
|
|
41502
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
41503
|
+
return $gOPD(arguments, 'callee').get;
|
|
41504
|
+
} catch (gOPDthrows) {
|
|
41505
|
+
return throwTypeError;
|
|
41506
|
+
}
|
|
41507
|
+
}
|
|
41508
|
+
}())
|
|
41509
|
+
: throwTypeError;
|
|
41510
|
+
|
|
41511
|
+
var hasSymbols = __webpack_require__(/*! has-symbols */ "./node_modules/has-symbols/index.js")();
|
|
41512
|
+
var hasProto = __webpack_require__(/*! has-proto */ "./node_modules/has-proto/index.js")();
|
|
41513
|
+
|
|
41514
|
+
var getProto = Object.getPrototypeOf || (
|
|
41515
|
+
hasProto
|
|
41516
|
+
? function (x) { return x.__proto__; } // eslint-disable-line no-proto
|
|
41517
|
+
: null
|
|
41518
|
+
);
|
|
41519
|
+
|
|
41520
|
+
var needsEval = {};
|
|
41521
|
+
|
|
41522
|
+
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
41523
|
+
|
|
41524
|
+
var INTRINSICS = {
|
|
41525
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
41526
|
+
'%Array%': Array,
|
|
41527
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
41528
|
+
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
41529
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
41530
|
+
'%AsyncFunction%': needsEval,
|
|
41531
|
+
'%AsyncGenerator%': needsEval,
|
|
41532
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
41533
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
41534
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
41535
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
41536
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
|
|
41537
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
|
|
41538
|
+
'%Boolean%': Boolean,
|
|
41539
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
41540
|
+
'%Date%': Date,
|
|
41541
|
+
'%decodeURI%': decodeURI,
|
|
41542
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
41543
|
+
'%encodeURI%': encodeURI,
|
|
41544
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
41545
|
+
'%Error%': Error,
|
|
41546
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
41547
|
+
'%EvalError%': EvalError,
|
|
41548
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
41549
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
41550
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
41551
|
+
'%Function%': $Function,
|
|
41552
|
+
'%GeneratorFunction%': needsEval,
|
|
41553
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
41554
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
41555
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
41556
|
+
'%isFinite%': isFinite,
|
|
41557
|
+
'%isNaN%': isNaN,
|
|
41558
|
+
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
41559
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
41560
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
41561
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
41562
|
+
'%Math%': Math,
|
|
41563
|
+
'%Number%': Number,
|
|
41564
|
+
'%Object%': Object,
|
|
41565
|
+
'%parseFloat%': parseFloat,
|
|
41566
|
+
'%parseInt%': parseInt,
|
|
41567
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
41568
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
41569
|
+
'%RangeError%': RangeError,
|
|
41570
|
+
'%ReferenceError%': ReferenceError,
|
|
41571
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
41572
|
+
'%RegExp%': RegExp,
|
|
41573
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
41574
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
41575
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
41576
|
+
'%String%': String,
|
|
41577
|
+
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
|
41578
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
41579
|
+
'%SyntaxError%': $SyntaxError,
|
|
41580
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
41581
|
+
'%TypedArray%': TypedArray,
|
|
41582
|
+
'%TypeError%': $TypeError,
|
|
41583
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
41584
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
41585
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
41586
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
41587
|
+
'%URIError%': URIError,
|
|
41588
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
41589
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
41590
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
41591
|
+
};
|
|
41592
|
+
|
|
41593
|
+
if (getProto) {
|
|
41594
|
+
try {
|
|
41595
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
41596
|
+
} catch (e) {
|
|
41597
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
41598
|
+
var errorProto = getProto(getProto(e));
|
|
41599
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
41600
|
+
}
|
|
41601
|
+
}
|
|
41602
|
+
|
|
41603
|
+
var doEval = function doEval(name) {
|
|
41604
|
+
var value;
|
|
41605
|
+
if (name === '%AsyncFunction%') {
|
|
41606
|
+
value = getEvalledConstructor('async function () {}');
|
|
41607
|
+
} else if (name === '%GeneratorFunction%') {
|
|
41608
|
+
value = getEvalledConstructor('function* () {}');
|
|
41609
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
41610
|
+
value = getEvalledConstructor('async function* () {}');
|
|
41611
|
+
} else if (name === '%AsyncGenerator%') {
|
|
41612
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
41613
|
+
if (fn) {
|
|
41614
|
+
value = fn.prototype;
|
|
41615
|
+
}
|
|
41616
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
41617
|
+
var gen = doEval('%AsyncGenerator%');
|
|
41618
|
+
if (gen && getProto) {
|
|
41619
|
+
value = getProto(gen.prototype);
|
|
41620
|
+
}
|
|
41621
|
+
}
|
|
41622
|
+
|
|
41623
|
+
INTRINSICS[name] = value;
|
|
41624
|
+
|
|
41625
|
+
return value;
|
|
41626
|
+
};
|
|
41627
|
+
|
|
41628
|
+
var LEGACY_ALIASES = {
|
|
41629
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
41630
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
41631
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
41632
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
41633
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
41634
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
41635
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
41636
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
41637
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
41638
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
41639
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
41640
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
41641
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
41642
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
41643
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
41644
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
41645
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
41646
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
41647
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
41648
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
41649
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
41650
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
41651
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
41652
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
41653
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
41654
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
41655
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
41656
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
41657
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
41658
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
41659
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
41660
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
41661
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
41662
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
41663
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
41664
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
41665
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
41666
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
41667
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
41668
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
41669
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
41670
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
41671
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
41672
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
41673
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
41674
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
41675
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
41676
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
41677
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
41678
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
41679
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
41680
|
+
};
|
|
41681
|
+
|
|
41682
|
+
var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
|
|
41683
|
+
var hasOwn = __webpack_require__(/*! hasown */ "./node_modules/hasown/index.js");
|
|
41684
|
+
var $concat = bind.call(Function.call, Array.prototype.concat);
|
|
41685
|
+
var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
|
|
41686
|
+
var $replace = bind.call(Function.call, String.prototype.replace);
|
|
41687
|
+
var $strSlice = bind.call(Function.call, String.prototype.slice);
|
|
41688
|
+
var $exec = bind.call(Function.call, RegExp.prototype.exec);
|
|
41689
|
+
|
|
41690
|
+
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
41691
|
+
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
41692
|
+
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
41693
|
+
var stringToPath = function stringToPath(string) {
|
|
41694
|
+
var first = $strSlice(string, 0, 1);
|
|
41695
|
+
var last = $strSlice(string, -1);
|
|
41696
|
+
if (first === '%' && last !== '%') {
|
|
41697
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
41698
|
+
} else if (last === '%' && first !== '%') {
|
|
41699
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
41700
|
+
}
|
|
41701
|
+
var result = [];
|
|
41702
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
41703
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
41704
|
+
});
|
|
41705
|
+
return result;
|
|
41706
|
+
};
|
|
41707
|
+
/* end adaptation */
|
|
41708
|
+
|
|
41709
|
+
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
41710
|
+
var intrinsicName = name;
|
|
41711
|
+
var alias;
|
|
41712
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
41713
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
41714
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
41715
|
+
}
|
|
41716
|
+
|
|
41717
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
41718
|
+
var value = INTRINSICS[intrinsicName];
|
|
41719
|
+
if (value === needsEval) {
|
|
41720
|
+
value = doEval(intrinsicName);
|
|
41721
|
+
}
|
|
41722
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
41723
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
41724
|
+
}
|
|
41725
|
+
|
|
41726
|
+
return {
|
|
41727
|
+
alias: alias,
|
|
41728
|
+
name: intrinsicName,
|
|
41729
|
+
value: value
|
|
41730
|
+
};
|
|
41731
|
+
}
|
|
41732
|
+
|
|
41733
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
41734
|
+
};
|
|
41735
|
+
|
|
41736
|
+
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
41737
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
41738
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
41739
|
+
}
|
|
41740
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
41741
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
41742
|
+
}
|
|
41743
|
+
|
|
41744
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
41745
|
+
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
41746
|
+
}
|
|
41747
|
+
var parts = stringToPath(name);
|
|
41748
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
41749
|
+
|
|
41750
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
41751
|
+
var intrinsicRealName = intrinsic.name;
|
|
41752
|
+
var value = intrinsic.value;
|
|
41753
|
+
var skipFurtherCaching = false;
|
|
41754
|
+
|
|
41755
|
+
var alias = intrinsic.alias;
|
|
41756
|
+
if (alias) {
|
|
41757
|
+
intrinsicBaseName = alias[0];
|
|
41758
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
41759
|
+
}
|
|
41760
|
+
|
|
41761
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
41762
|
+
var part = parts[i];
|
|
41763
|
+
var first = $strSlice(part, 0, 1);
|
|
41764
|
+
var last = $strSlice(part, -1);
|
|
41765
|
+
if (
|
|
41766
|
+
(
|
|
41767
|
+
(first === '"' || first === "'" || first === '`')
|
|
41768
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
41769
|
+
)
|
|
41770
|
+
&& first !== last
|
|
41771
|
+
) {
|
|
41772
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
41773
|
+
}
|
|
41774
|
+
if (part === 'constructor' || !isOwn) {
|
|
41775
|
+
skipFurtherCaching = true;
|
|
41776
|
+
}
|
|
41777
|
+
|
|
41778
|
+
intrinsicBaseName += '.' + part;
|
|
41779
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
41780
|
+
|
|
41781
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
41782
|
+
value = INTRINSICS[intrinsicRealName];
|
|
41783
|
+
} else if (value != null) {
|
|
41784
|
+
if (!(part in value)) {
|
|
41785
|
+
if (!allowMissing) {
|
|
41786
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
41787
|
+
}
|
|
41788
|
+
return void undefined;
|
|
41789
|
+
}
|
|
41790
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
41791
|
+
var desc = $gOPD(value, part);
|
|
41792
|
+
isOwn = !!desc;
|
|
41793
|
+
|
|
41794
|
+
// By convention, when a data property is converted to an accessor
|
|
41795
|
+
// property to emulate a data property that does not suffer from
|
|
41796
|
+
// the override mistake, that accessor's getter is marked with
|
|
41797
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
41798
|
+
// uphold the illusion by pretending to see that original data
|
|
41799
|
+
// property, i.e., returning the value rather than the getter
|
|
41800
|
+
// itself.
|
|
41801
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
41802
|
+
value = desc.get;
|
|
41803
|
+
} else {
|
|
41804
|
+
value = value[part];
|
|
41805
|
+
}
|
|
41806
|
+
} else {
|
|
41807
|
+
isOwn = hasOwn(value, part);
|
|
41808
|
+
value = value[part];
|
|
41809
|
+
}
|
|
41810
|
+
|
|
41811
|
+
if (isOwn && !skipFurtherCaching) {
|
|
41812
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
41813
|
+
}
|
|
41814
|
+
}
|
|
41815
|
+
}
|
|
41816
|
+
return value;
|
|
41817
|
+
};
|
|
41818
|
+
|
|
41819
|
+
|
|
41820
|
+
/***/ }),
|
|
41821
|
+
|
|
41822
|
+
/***/ "./node_modules/gopd/index.js":
|
|
41823
|
+
/*!************************************!*\
|
|
41824
|
+
!*** ./node_modules/gopd/index.js ***!
|
|
41825
|
+
\************************************/
|
|
41826
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41827
|
+
|
|
41828
|
+
"use strict";
|
|
41829
|
+
|
|
41830
|
+
|
|
41831
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
|
|
41832
|
+
|
|
41833
|
+
var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
|
|
41834
|
+
|
|
41835
|
+
if ($gOPD) {
|
|
41836
|
+
try {
|
|
41837
|
+
$gOPD([], 'length');
|
|
41838
|
+
} catch (e) {
|
|
41839
|
+
// IE 8 has a broken gOPD
|
|
41840
|
+
$gOPD = null;
|
|
41841
|
+
}
|
|
41842
|
+
}
|
|
41843
|
+
|
|
41844
|
+
module.exports = $gOPD;
|
|
41845
|
+
|
|
41846
|
+
|
|
41847
|
+
/***/ }),
|
|
41848
|
+
|
|
41849
|
+
/***/ "./node_modules/has-property-descriptors/index.js":
|
|
41850
|
+
/*!********************************************************!*\
|
|
41851
|
+
!*** ./node_modules/has-property-descriptors/index.js ***!
|
|
41852
|
+
\********************************************************/
|
|
41853
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41854
|
+
|
|
41855
|
+
"use strict";
|
|
41856
|
+
|
|
41857
|
+
|
|
41858
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
|
|
41859
|
+
|
|
41860
|
+
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
41861
|
+
|
|
41862
|
+
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
41863
|
+
if ($defineProperty) {
|
|
41864
|
+
try {
|
|
41865
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
41866
|
+
return true;
|
|
41867
|
+
} catch (e) {
|
|
41868
|
+
// IE 8 has a broken defineProperty
|
|
41869
|
+
return false;
|
|
41870
|
+
}
|
|
41871
|
+
}
|
|
41872
|
+
return false;
|
|
41873
|
+
};
|
|
41874
|
+
|
|
41875
|
+
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
41876
|
+
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
41877
|
+
if (!hasPropertyDescriptors()) {
|
|
41878
|
+
return null;
|
|
41879
|
+
}
|
|
41880
|
+
try {
|
|
41881
|
+
return $defineProperty([], 'length', { value: 1 }).length !== 1;
|
|
41882
|
+
} catch (e) {
|
|
41883
|
+
// In Firefox 4-22, defining length on an array throws an exception.
|
|
41884
|
+
return true;
|
|
41885
|
+
}
|
|
41886
|
+
};
|
|
41887
|
+
|
|
41888
|
+
module.exports = hasPropertyDescriptors;
|
|
41889
|
+
|
|
41890
|
+
|
|
41891
|
+
/***/ }),
|
|
41892
|
+
|
|
41893
|
+
/***/ "./node_modules/has-proto/index.js":
|
|
41894
|
+
/*!*****************************************!*\
|
|
41895
|
+
!*** ./node_modules/has-proto/index.js ***!
|
|
41896
|
+
\*****************************************/
|
|
41897
|
+
/***/ ((module) => {
|
|
41898
|
+
|
|
41899
|
+
"use strict";
|
|
41900
|
+
|
|
41901
|
+
|
|
41902
|
+
var test = {
|
|
41903
|
+
foo: {}
|
|
41904
|
+
};
|
|
41905
|
+
|
|
41906
|
+
var $Object = Object;
|
|
41907
|
+
|
|
41908
|
+
module.exports = function hasProto() {
|
|
41909
|
+
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
41910
|
+
};
|
|
41911
|
+
|
|
41912
|
+
|
|
41913
|
+
/***/ }),
|
|
41914
|
+
|
|
41915
|
+
/***/ "./node_modules/has-symbols/index.js":
|
|
41916
|
+
/*!*******************************************!*\
|
|
41917
|
+
!*** ./node_modules/has-symbols/index.js ***!
|
|
41918
|
+
\*******************************************/
|
|
41919
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41920
|
+
|
|
41921
|
+
"use strict";
|
|
41922
|
+
|
|
41923
|
+
|
|
41924
|
+
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
41925
|
+
var hasSymbolSham = __webpack_require__(/*! ./shams */ "./node_modules/has-symbols/shams.js");
|
|
41926
|
+
|
|
41927
|
+
module.exports = function hasNativeSymbols() {
|
|
41928
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
41929
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
41930
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
41931
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
41932
|
+
|
|
41933
|
+
return hasSymbolSham();
|
|
41934
|
+
};
|
|
41935
|
+
|
|
41936
|
+
|
|
41937
|
+
/***/ }),
|
|
41938
|
+
|
|
41939
|
+
/***/ "./node_modules/has-symbols/shams.js":
|
|
41940
|
+
/*!*******************************************!*\
|
|
41941
|
+
!*** ./node_modules/has-symbols/shams.js ***!
|
|
41942
|
+
\*******************************************/
|
|
41943
|
+
/***/ ((module) => {
|
|
41944
|
+
|
|
41945
|
+
"use strict";
|
|
41946
|
+
|
|
41947
|
+
|
|
41948
|
+
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
41949
|
+
module.exports = function hasSymbols() {
|
|
41950
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
41951
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
41952
|
+
|
|
41953
|
+
var obj = {};
|
|
41954
|
+
var sym = Symbol('test');
|
|
41955
|
+
var symObj = Object(sym);
|
|
41956
|
+
if (typeof sym === 'string') { return false; }
|
|
41957
|
+
|
|
41958
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
41959
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
41960
|
+
|
|
41961
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
41962
|
+
// if (sym instanceof Symbol) { return false; }
|
|
41963
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
41964
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
41965
|
+
|
|
41966
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
41967
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
41968
|
+
|
|
41969
|
+
var symVal = 42;
|
|
41970
|
+
obj[sym] = symVal;
|
|
41971
|
+
for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
41972
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
41973
|
+
|
|
41974
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
41975
|
+
|
|
41976
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
41977
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
41978
|
+
|
|
41979
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
41980
|
+
|
|
41981
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
41982
|
+
var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
|
|
41983
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
41984
|
+
}
|
|
41985
|
+
|
|
41986
|
+
return true;
|
|
41987
|
+
};
|
|
41988
|
+
|
|
41989
|
+
|
|
41990
|
+
/***/ }),
|
|
41991
|
+
|
|
41992
|
+
/***/ "./node_modules/hasown/index.js":
|
|
41993
|
+
/*!**************************************!*\
|
|
41994
|
+
!*** ./node_modules/hasown/index.js ***!
|
|
41995
|
+
\**************************************/
|
|
41996
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
41997
|
+
|
|
41998
|
+
"use strict";
|
|
41999
|
+
|
|
42000
|
+
|
|
42001
|
+
var call = Function.prototype.call;
|
|
42002
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
42003
|
+
var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
|
|
42004
|
+
|
|
42005
|
+
/** @type {(o: {}, p: PropertyKey) => p is keyof o} */
|
|
42006
|
+
module.exports = bind.call(call, $hasOwn);
|
|
42007
|
+
|
|
42008
|
+
|
|
41187
42009
|
/***/ }),
|
|
41188
42010
|
|
|
41189
42011
|
/***/ "./node_modules/mime-db/index.js":
|
|
@@ -43591,183 +44413,1461 @@ function prefixes(defaultPrefixes, factory) {
|
|
|
43591
44413
|
|
|
43592
44414
|
/***/ }),
|
|
43593
44415
|
|
|
43594
|
-
/***/ "./node_modules/
|
|
43595
|
-
|
|
43596
|
-
!*** ./node_modules/
|
|
43597
|
-
|
|
44416
|
+
/***/ "./node_modules/object-inspect/index.js":
|
|
44417
|
+
/*!**********************************************!*\
|
|
44418
|
+
!*** ./node_modules/object-inspect/index.js ***!
|
|
44419
|
+
\**********************************************/
|
|
44420
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
44421
|
+
|
|
44422
|
+
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
44423
|
+
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
44424
|
+
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
44425
|
+
var mapForEach = hasMap && Map.prototype.forEach;
|
|
44426
|
+
var hasSet = typeof Set === 'function' && Set.prototype;
|
|
44427
|
+
var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;
|
|
44428
|
+
var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;
|
|
44429
|
+
var setForEach = hasSet && Set.prototype.forEach;
|
|
44430
|
+
var hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;
|
|
44431
|
+
var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
|
|
44432
|
+
var hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;
|
|
44433
|
+
var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
|
|
44434
|
+
var hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;
|
|
44435
|
+
var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
|
|
44436
|
+
var booleanValueOf = Boolean.prototype.valueOf;
|
|
44437
|
+
var objectToString = Object.prototype.toString;
|
|
44438
|
+
var functionToString = Function.prototype.toString;
|
|
44439
|
+
var $match = String.prototype.match;
|
|
44440
|
+
var $slice = String.prototype.slice;
|
|
44441
|
+
var $replace = String.prototype.replace;
|
|
44442
|
+
var $toUpperCase = String.prototype.toUpperCase;
|
|
44443
|
+
var $toLowerCase = String.prototype.toLowerCase;
|
|
44444
|
+
var $test = RegExp.prototype.test;
|
|
44445
|
+
var $concat = Array.prototype.concat;
|
|
44446
|
+
var $join = Array.prototype.join;
|
|
44447
|
+
var $arrSlice = Array.prototype.slice;
|
|
44448
|
+
var $floor = Math.floor;
|
|
44449
|
+
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
44450
|
+
var gOPS = Object.getOwnPropertySymbols;
|
|
44451
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
44452
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
44453
|
+
// ie, `has-tostringtag/shams
|
|
44454
|
+
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
|
44455
|
+
? Symbol.toStringTag
|
|
44456
|
+
: null;
|
|
44457
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
44458
|
+
|
|
44459
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
44460
|
+
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
44461
|
+
? function (O) {
|
|
44462
|
+
return O.__proto__; // eslint-disable-line no-proto
|
|
44463
|
+
}
|
|
44464
|
+
: null
|
|
44465
|
+
);
|
|
44466
|
+
|
|
44467
|
+
function addNumericSeparator(num, str) {
|
|
44468
|
+
if (
|
|
44469
|
+
num === Infinity
|
|
44470
|
+
|| num === -Infinity
|
|
44471
|
+
|| num !== num
|
|
44472
|
+
|| (num && num > -1000 && num < 1000)
|
|
44473
|
+
|| $test.call(/e/, str)
|
|
44474
|
+
) {
|
|
44475
|
+
return str;
|
|
44476
|
+
}
|
|
44477
|
+
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
44478
|
+
if (typeof num === 'number') {
|
|
44479
|
+
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
|
44480
|
+
if (int !== num) {
|
|
44481
|
+
var intStr = String(int);
|
|
44482
|
+
var dec = $slice.call(str, intStr.length + 1);
|
|
44483
|
+
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
|
44484
|
+
}
|
|
44485
|
+
}
|
|
44486
|
+
return $replace.call(str, sepRegex, '$&_');
|
|
44487
|
+
}
|
|
44488
|
+
|
|
44489
|
+
var utilInspect = __webpack_require__(/*! ./util.inspect */ "?4f7e");
|
|
44490
|
+
var inspectCustom = utilInspect.custom;
|
|
44491
|
+
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
44492
|
+
|
|
44493
|
+
module.exports = function inspect_(obj, options, depth, seen) {
|
|
44494
|
+
var opts = options || {};
|
|
44495
|
+
|
|
44496
|
+
if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {
|
|
44497
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
44498
|
+
}
|
|
44499
|
+
if (
|
|
44500
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
44501
|
+
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
44502
|
+
: opts.maxStringLength !== null
|
|
44503
|
+
)
|
|
44504
|
+
) {
|
|
44505
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
44506
|
+
}
|
|
44507
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
44508
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
44509
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
44510
|
+
}
|
|
44511
|
+
|
|
44512
|
+
if (
|
|
44513
|
+
has(opts, 'indent')
|
|
44514
|
+
&& opts.indent !== null
|
|
44515
|
+
&& opts.indent !== '\t'
|
|
44516
|
+
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
44517
|
+
) {
|
|
44518
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
44519
|
+
}
|
|
44520
|
+
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
44521
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
44522
|
+
}
|
|
44523
|
+
var numericSeparator = opts.numericSeparator;
|
|
44524
|
+
|
|
44525
|
+
if (typeof obj === 'undefined') {
|
|
44526
|
+
return 'undefined';
|
|
44527
|
+
}
|
|
44528
|
+
if (obj === null) {
|
|
44529
|
+
return 'null';
|
|
44530
|
+
}
|
|
44531
|
+
if (typeof obj === 'boolean') {
|
|
44532
|
+
return obj ? 'true' : 'false';
|
|
44533
|
+
}
|
|
44534
|
+
|
|
44535
|
+
if (typeof obj === 'string') {
|
|
44536
|
+
return inspectString(obj, opts);
|
|
44537
|
+
}
|
|
44538
|
+
if (typeof obj === 'number') {
|
|
44539
|
+
if (obj === 0) {
|
|
44540
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
|
44541
|
+
}
|
|
44542
|
+
var str = String(obj);
|
|
44543
|
+
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
44544
|
+
}
|
|
44545
|
+
if (typeof obj === 'bigint') {
|
|
44546
|
+
var bigIntStr = String(obj) + 'n';
|
|
44547
|
+
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
44548
|
+
}
|
|
44549
|
+
|
|
44550
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
44551
|
+
if (typeof depth === 'undefined') { depth = 0; }
|
|
44552
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
44553
|
+
return isArray(obj) ? '[Array]' : '[Object]';
|
|
44554
|
+
}
|
|
44555
|
+
|
|
44556
|
+
var indent = getIndent(opts, depth);
|
|
44557
|
+
|
|
44558
|
+
if (typeof seen === 'undefined') {
|
|
44559
|
+
seen = [];
|
|
44560
|
+
} else if (indexOf(seen, obj) >= 0) {
|
|
44561
|
+
return '[Circular]';
|
|
44562
|
+
}
|
|
44563
|
+
|
|
44564
|
+
function inspect(value, from, noIndent) {
|
|
44565
|
+
if (from) {
|
|
44566
|
+
seen = $arrSlice.call(seen);
|
|
44567
|
+
seen.push(from);
|
|
44568
|
+
}
|
|
44569
|
+
if (noIndent) {
|
|
44570
|
+
var newOpts = {
|
|
44571
|
+
depth: opts.depth
|
|
44572
|
+
};
|
|
44573
|
+
if (has(opts, 'quoteStyle')) {
|
|
44574
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
|
44575
|
+
}
|
|
44576
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
|
44577
|
+
}
|
|
44578
|
+
return inspect_(value, opts, depth + 1, seen);
|
|
44579
|
+
}
|
|
44580
|
+
|
|
44581
|
+
if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
|
|
44582
|
+
var name = nameOf(obj);
|
|
44583
|
+
var keys = arrObjKeys(obj, inspect);
|
|
44584
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
44585
|
+
}
|
|
44586
|
+
if (isSymbol(obj)) {
|
|
44587
|
+
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
44588
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
44589
|
+
}
|
|
44590
|
+
if (isElement(obj)) {
|
|
44591
|
+
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
|
44592
|
+
var attrs = obj.attributes || [];
|
|
44593
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
44594
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
44595
|
+
}
|
|
44596
|
+
s += '>';
|
|
44597
|
+
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
44598
|
+
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
44599
|
+
return s;
|
|
44600
|
+
}
|
|
44601
|
+
if (isArray(obj)) {
|
|
44602
|
+
if (obj.length === 0) { return '[]'; }
|
|
44603
|
+
var xs = arrObjKeys(obj, inspect);
|
|
44604
|
+
if (indent && !singleLineValues(xs)) {
|
|
44605
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
|
44606
|
+
}
|
|
44607
|
+
return '[ ' + $join.call(xs, ', ') + ' ]';
|
|
44608
|
+
}
|
|
44609
|
+
if (isError(obj)) {
|
|
44610
|
+
var parts = arrObjKeys(obj, inspect);
|
|
44611
|
+
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
44612
|
+
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
44613
|
+
}
|
|
44614
|
+
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
44615
|
+
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
44616
|
+
}
|
|
44617
|
+
if (typeof obj === 'object' && customInspect) {
|
|
44618
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
|
|
44619
|
+
return utilInspect(obj, { depth: maxDepth - depth });
|
|
44620
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
44621
|
+
return obj.inspect();
|
|
44622
|
+
}
|
|
44623
|
+
}
|
|
44624
|
+
if (isMap(obj)) {
|
|
44625
|
+
var mapParts = [];
|
|
44626
|
+
if (mapForEach) {
|
|
44627
|
+
mapForEach.call(obj, function (value, key) {
|
|
44628
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
44629
|
+
});
|
|
44630
|
+
}
|
|
44631
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
44632
|
+
}
|
|
44633
|
+
if (isSet(obj)) {
|
|
44634
|
+
var setParts = [];
|
|
44635
|
+
if (setForEach) {
|
|
44636
|
+
setForEach.call(obj, function (value) {
|
|
44637
|
+
setParts.push(inspect(value, obj));
|
|
44638
|
+
});
|
|
44639
|
+
}
|
|
44640
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
44641
|
+
}
|
|
44642
|
+
if (isWeakMap(obj)) {
|
|
44643
|
+
return weakCollectionOf('WeakMap');
|
|
44644
|
+
}
|
|
44645
|
+
if (isWeakSet(obj)) {
|
|
44646
|
+
return weakCollectionOf('WeakSet');
|
|
44647
|
+
}
|
|
44648
|
+
if (isWeakRef(obj)) {
|
|
44649
|
+
return weakCollectionOf('WeakRef');
|
|
44650
|
+
}
|
|
44651
|
+
if (isNumber(obj)) {
|
|
44652
|
+
return markBoxed(inspect(Number(obj)));
|
|
44653
|
+
}
|
|
44654
|
+
if (isBigInt(obj)) {
|
|
44655
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
44656
|
+
}
|
|
44657
|
+
if (isBoolean(obj)) {
|
|
44658
|
+
return markBoxed(booleanValueOf.call(obj));
|
|
44659
|
+
}
|
|
44660
|
+
if (isString(obj)) {
|
|
44661
|
+
return markBoxed(inspect(String(obj)));
|
|
44662
|
+
}
|
|
44663
|
+
// note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
|
|
44664
|
+
/* eslint-env browser */
|
|
44665
|
+
if (typeof window !== 'undefined' && obj === window) {
|
|
44666
|
+
return '{ [object Window] }';
|
|
44667
|
+
}
|
|
44668
|
+
if (obj === __webpack_require__.g) {
|
|
44669
|
+
return '{ [object globalThis] }';
|
|
44670
|
+
}
|
|
44671
|
+
if (!isDate(obj) && !isRegExp(obj)) {
|
|
44672
|
+
var ys = arrObjKeys(obj, inspect);
|
|
44673
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
44674
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
44675
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
44676
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
44677
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
44678
|
+
if (ys.length === 0) { return tag + '{}'; }
|
|
44679
|
+
if (indent) {
|
|
44680
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
44681
|
+
}
|
|
44682
|
+
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
|
44683
|
+
}
|
|
44684
|
+
return String(obj);
|
|
44685
|
+
};
|
|
44686
|
+
|
|
44687
|
+
function wrapQuotes(s, defaultStyle, opts) {
|
|
44688
|
+
var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '"' : "'";
|
|
44689
|
+
return quoteChar + s + quoteChar;
|
|
44690
|
+
}
|
|
44691
|
+
|
|
44692
|
+
function quote(s) {
|
|
44693
|
+
return $replace.call(String(s), /"/g, '"');
|
|
44694
|
+
}
|
|
44695
|
+
|
|
44696
|
+
function isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
44697
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
44698
|
+
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
44699
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
44700
|
+
function isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
44701
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
44702
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }
|
|
44703
|
+
|
|
44704
|
+
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
44705
|
+
function isSymbol(obj) {
|
|
44706
|
+
if (hasShammedSymbols) {
|
|
44707
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
44708
|
+
}
|
|
44709
|
+
if (typeof obj === 'symbol') {
|
|
44710
|
+
return true;
|
|
44711
|
+
}
|
|
44712
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
44713
|
+
return false;
|
|
44714
|
+
}
|
|
44715
|
+
try {
|
|
44716
|
+
symToString.call(obj);
|
|
44717
|
+
return true;
|
|
44718
|
+
} catch (e) {}
|
|
44719
|
+
return false;
|
|
44720
|
+
}
|
|
44721
|
+
|
|
44722
|
+
function isBigInt(obj) {
|
|
44723
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
44724
|
+
return false;
|
|
44725
|
+
}
|
|
44726
|
+
try {
|
|
44727
|
+
bigIntValueOf.call(obj);
|
|
44728
|
+
return true;
|
|
44729
|
+
} catch (e) {}
|
|
44730
|
+
return false;
|
|
44731
|
+
}
|
|
44732
|
+
|
|
44733
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
44734
|
+
function has(obj, key) {
|
|
44735
|
+
return hasOwn.call(obj, key);
|
|
44736
|
+
}
|
|
44737
|
+
|
|
44738
|
+
function toStr(obj) {
|
|
44739
|
+
return objectToString.call(obj);
|
|
44740
|
+
}
|
|
44741
|
+
|
|
44742
|
+
function nameOf(f) {
|
|
44743
|
+
if (f.name) { return f.name; }
|
|
44744
|
+
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
44745
|
+
if (m) { return m[1]; }
|
|
44746
|
+
return null;
|
|
44747
|
+
}
|
|
44748
|
+
|
|
44749
|
+
function indexOf(xs, x) {
|
|
44750
|
+
if (xs.indexOf) { return xs.indexOf(x); }
|
|
44751
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
44752
|
+
if (xs[i] === x) { return i; }
|
|
44753
|
+
}
|
|
44754
|
+
return -1;
|
|
44755
|
+
}
|
|
44756
|
+
|
|
44757
|
+
function isMap(x) {
|
|
44758
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
|
44759
|
+
return false;
|
|
44760
|
+
}
|
|
44761
|
+
try {
|
|
44762
|
+
mapSize.call(x);
|
|
44763
|
+
try {
|
|
44764
|
+
setSize.call(x);
|
|
44765
|
+
} catch (s) {
|
|
44766
|
+
return true;
|
|
44767
|
+
}
|
|
44768
|
+
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
44769
|
+
} catch (e) {}
|
|
44770
|
+
return false;
|
|
44771
|
+
}
|
|
44772
|
+
|
|
44773
|
+
function isWeakMap(x) {
|
|
44774
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
44775
|
+
return false;
|
|
44776
|
+
}
|
|
44777
|
+
try {
|
|
44778
|
+
weakMapHas.call(x, weakMapHas);
|
|
44779
|
+
try {
|
|
44780
|
+
weakSetHas.call(x, weakSetHas);
|
|
44781
|
+
} catch (s) {
|
|
44782
|
+
return true;
|
|
44783
|
+
}
|
|
44784
|
+
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
44785
|
+
} catch (e) {}
|
|
44786
|
+
return false;
|
|
44787
|
+
}
|
|
44788
|
+
|
|
44789
|
+
function isWeakRef(x) {
|
|
44790
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
44791
|
+
return false;
|
|
44792
|
+
}
|
|
44793
|
+
try {
|
|
44794
|
+
weakRefDeref.call(x);
|
|
44795
|
+
return true;
|
|
44796
|
+
} catch (e) {}
|
|
44797
|
+
return false;
|
|
44798
|
+
}
|
|
44799
|
+
|
|
44800
|
+
function isSet(x) {
|
|
44801
|
+
if (!setSize || !x || typeof x !== 'object') {
|
|
44802
|
+
return false;
|
|
44803
|
+
}
|
|
44804
|
+
try {
|
|
44805
|
+
setSize.call(x);
|
|
44806
|
+
try {
|
|
44807
|
+
mapSize.call(x);
|
|
44808
|
+
} catch (m) {
|
|
44809
|
+
return true;
|
|
44810
|
+
}
|
|
44811
|
+
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
44812
|
+
} catch (e) {}
|
|
44813
|
+
return false;
|
|
44814
|
+
}
|
|
44815
|
+
|
|
44816
|
+
function isWeakSet(x) {
|
|
44817
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
44818
|
+
return false;
|
|
44819
|
+
}
|
|
44820
|
+
try {
|
|
44821
|
+
weakSetHas.call(x, weakSetHas);
|
|
44822
|
+
try {
|
|
44823
|
+
weakMapHas.call(x, weakMapHas);
|
|
44824
|
+
} catch (s) {
|
|
44825
|
+
return true;
|
|
44826
|
+
}
|
|
44827
|
+
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
44828
|
+
} catch (e) {}
|
|
44829
|
+
return false;
|
|
44830
|
+
}
|
|
44831
|
+
|
|
44832
|
+
function isElement(x) {
|
|
44833
|
+
if (!x || typeof x !== 'object') { return false; }
|
|
44834
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
44835
|
+
return true;
|
|
44836
|
+
}
|
|
44837
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
44838
|
+
}
|
|
44839
|
+
|
|
44840
|
+
function inspectString(str, opts) {
|
|
44841
|
+
if (str.length > opts.maxStringLength) {
|
|
44842
|
+
var remaining = str.length - opts.maxStringLength;
|
|
44843
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
44844
|
+
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
44845
|
+
}
|
|
44846
|
+
// eslint-disable-next-line no-control-regex
|
|
44847
|
+
var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
44848
|
+
return wrapQuotes(s, 'single', opts);
|
|
44849
|
+
}
|
|
44850
|
+
|
|
44851
|
+
function lowbyte(c) {
|
|
44852
|
+
var n = c.charCodeAt(0);
|
|
44853
|
+
var x = {
|
|
44854
|
+
8: 'b',
|
|
44855
|
+
9: 't',
|
|
44856
|
+
10: 'n',
|
|
44857
|
+
12: 'f',
|
|
44858
|
+
13: 'r'
|
|
44859
|
+
}[n];
|
|
44860
|
+
if (x) { return '\\' + x; }
|
|
44861
|
+
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
44862
|
+
}
|
|
44863
|
+
|
|
44864
|
+
function markBoxed(str) {
|
|
44865
|
+
return 'Object(' + str + ')';
|
|
44866
|
+
}
|
|
44867
|
+
|
|
44868
|
+
function weakCollectionOf(type) {
|
|
44869
|
+
return type + ' { ? }';
|
|
44870
|
+
}
|
|
44871
|
+
|
|
44872
|
+
function collectionOf(type, size, entries, indent) {
|
|
44873
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
|
44874
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
44875
|
+
}
|
|
44876
|
+
|
|
44877
|
+
function singleLineValues(xs) {
|
|
44878
|
+
for (var i = 0; i < xs.length; i++) {
|
|
44879
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
|
44880
|
+
return false;
|
|
44881
|
+
}
|
|
44882
|
+
}
|
|
44883
|
+
return true;
|
|
44884
|
+
}
|
|
44885
|
+
|
|
44886
|
+
function getIndent(opts, depth) {
|
|
44887
|
+
var baseIndent;
|
|
44888
|
+
if (opts.indent === '\t') {
|
|
44889
|
+
baseIndent = '\t';
|
|
44890
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
44891
|
+
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
|
44892
|
+
} else {
|
|
44893
|
+
return null;
|
|
44894
|
+
}
|
|
44895
|
+
return {
|
|
44896
|
+
base: baseIndent,
|
|
44897
|
+
prev: $join.call(Array(depth + 1), baseIndent)
|
|
44898
|
+
};
|
|
44899
|
+
}
|
|
44900
|
+
|
|
44901
|
+
function indentedJoin(xs, indent) {
|
|
44902
|
+
if (xs.length === 0) { return ''; }
|
|
44903
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
44904
|
+
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
44905
|
+
}
|
|
44906
|
+
|
|
44907
|
+
function arrObjKeys(obj, inspect) {
|
|
44908
|
+
var isArr = isArray(obj);
|
|
44909
|
+
var xs = [];
|
|
44910
|
+
if (isArr) {
|
|
44911
|
+
xs.length = obj.length;
|
|
44912
|
+
for (var i = 0; i < obj.length; i++) {
|
|
44913
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
44914
|
+
}
|
|
44915
|
+
}
|
|
44916
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
44917
|
+
var symMap;
|
|
44918
|
+
if (hasShammedSymbols) {
|
|
44919
|
+
symMap = {};
|
|
44920
|
+
for (var k = 0; k < syms.length; k++) {
|
|
44921
|
+
symMap['$' + syms[k]] = syms[k];
|
|
44922
|
+
}
|
|
44923
|
+
}
|
|
44924
|
+
|
|
44925
|
+
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
44926
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
44927
|
+
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
44928
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
44929
|
+
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
44930
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
44931
|
+
} else if ($test.call(/[^\w$]/, key)) {
|
|
44932
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
44933
|
+
} else {
|
|
44934
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
44935
|
+
}
|
|
44936
|
+
}
|
|
44937
|
+
if (typeof gOPS === 'function') {
|
|
44938
|
+
for (var j = 0; j < syms.length; j++) {
|
|
44939
|
+
if (isEnumerable.call(obj, syms[j])) {
|
|
44940
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
44941
|
+
}
|
|
44942
|
+
}
|
|
44943
|
+
}
|
|
44944
|
+
return xs;
|
|
44945
|
+
}
|
|
44946
|
+
|
|
44947
|
+
|
|
44948
|
+
/***/ }),
|
|
44949
|
+
|
|
44950
|
+
/***/ "./node_modules/qs/lib/formats.js":
|
|
44951
|
+
/*!****************************************!*\
|
|
44952
|
+
!*** ./node_modules/qs/lib/formats.js ***!
|
|
44953
|
+
\****************************************/
|
|
43598
44954
|
/***/ ((module) => {
|
|
43599
44955
|
|
|
43600
44956
|
"use strict";
|
|
43601
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
43602
|
-
//
|
|
43603
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
43604
|
-
// copy of this software and associated documentation files (the
|
|
43605
|
-
// "Software"), to deal in the Software without restriction, including
|
|
43606
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
43607
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
43608
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
43609
|
-
// following conditions:
|
|
43610
|
-
//
|
|
43611
|
-
// The above copyright notice and this permission notice shall be included
|
|
43612
|
-
// in all copies or substantial portions of the Software.
|
|
43613
|
-
//
|
|
43614
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
43615
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
43616
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
43617
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
43618
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
43619
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
43620
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
43621
44957
|
|
|
43622
44958
|
|
|
44959
|
+
var replace = String.prototype.replace;
|
|
44960
|
+
var percentTwenties = /%20/g;
|
|
43623
44961
|
|
|
43624
|
-
|
|
43625
|
-
|
|
43626
|
-
|
|
43627
|
-
|
|
43628
|
-
|
|
43629
|
-
|
|
44962
|
+
var Format = {
|
|
44963
|
+
RFC1738: 'RFC1738',
|
|
44964
|
+
RFC3986: 'RFC3986'
|
|
44965
|
+
};
|
|
44966
|
+
|
|
44967
|
+
module.exports = {
|
|
44968
|
+
'default': Format.RFC3986,
|
|
44969
|
+
formatters: {
|
|
44970
|
+
RFC1738: function (value) {
|
|
44971
|
+
return replace.call(value, percentTwenties, '+');
|
|
44972
|
+
},
|
|
44973
|
+
RFC3986: function (value) {
|
|
44974
|
+
return String(value);
|
|
44975
|
+
}
|
|
44976
|
+
},
|
|
44977
|
+
RFC1738: Format.RFC1738,
|
|
44978
|
+
RFC3986: Format.RFC3986
|
|
44979
|
+
};
|
|
44980
|
+
|
|
44981
|
+
|
|
44982
|
+
/***/ }),
|
|
44983
|
+
|
|
44984
|
+
/***/ "./node_modules/qs/lib/index.js":
|
|
44985
|
+
/*!**************************************!*\
|
|
44986
|
+
!*** ./node_modules/qs/lib/index.js ***!
|
|
44987
|
+
\**************************************/
|
|
44988
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
44989
|
+
|
|
44990
|
+
"use strict";
|
|
44991
|
+
|
|
44992
|
+
|
|
44993
|
+
var stringify = __webpack_require__(/*! ./stringify */ "./node_modules/qs/lib/stringify.js");
|
|
44994
|
+
var parse = __webpack_require__(/*! ./parse */ "./node_modules/qs/lib/parse.js");
|
|
44995
|
+
var formats = __webpack_require__(/*! ./formats */ "./node_modules/qs/lib/formats.js");
|
|
44996
|
+
|
|
44997
|
+
module.exports = {
|
|
44998
|
+
formats: formats,
|
|
44999
|
+
parse: parse,
|
|
45000
|
+
stringify: stringify
|
|
45001
|
+
};
|
|
43630
45002
|
|
|
43631
|
-
module.exports = function(qs, sep, eq, options) {
|
|
43632
|
-
sep = sep || '&';
|
|
43633
|
-
eq = eq || '=';
|
|
43634
|
-
var obj = {};
|
|
43635
45003
|
|
|
43636
|
-
|
|
45004
|
+
/***/ }),
|
|
45005
|
+
|
|
45006
|
+
/***/ "./node_modules/qs/lib/parse.js":
|
|
45007
|
+
/*!**************************************!*\
|
|
45008
|
+
!*** ./node_modules/qs/lib/parse.js ***!
|
|
45009
|
+
\**************************************/
|
|
45010
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
45011
|
+
|
|
45012
|
+
"use strict";
|
|
45013
|
+
|
|
45014
|
+
|
|
45015
|
+
var utils = __webpack_require__(/*! ./utils */ "./node_modules/qs/lib/utils.js");
|
|
45016
|
+
|
|
45017
|
+
var has = Object.prototype.hasOwnProperty;
|
|
45018
|
+
var isArray = Array.isArray;
|
|
45019
|
+
|
|
45020
|
+
var defaults = {
|
|
45021
|
+
allowDots: false,
|
|
45022
|
+
allowPrototypes: false,
|
|
45023
|
+
allowSparse: false,
|
|
45024
|
+
arrayLimit: 20,
|
|
45025
|
+
charset: 'utf-8',
|
|
45026
|
+
charsetSentinel: false,
|
|
45027
|
+
comma: false,
|
|
45028
|
+
decoder: utils.decode,
|
|
45029
|
+
delimiter: '&',
|
|
45030
|
+
depth: 5,
|
|
45031
|
+
ignoreQueryPrefix: false,
|
|
45032
|
+
interpretNumericEntities: false,
|
|
45033
|
+
parameterLimit: 1000,
|
|
45034
|
+
parseArrays: true,
|
|
45035
|
+
plainObjects: false,
|
|
45036
|
+
strictNullHandling: false
|
|
45037
|
+
};
|
|
45038
|
+
|
|
45039
|
+
var interpretNumericEntities = function (str) {
|
|
45040
|
+
return str.replace(/&#(\d+);/g, function ($0, numberStr) {
|
|
45041
|
+
return String.fromCharCode(parseInt(numberStr, 10));
|
|
45042
|
+
});
|
|
45043
|
+
};
|
|
45044
|
+
|
|
45045
|
+
var parseArrayValue = function (val, options) {
|
|
45046
|
+
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
45047
|
+
return val.split(',');
|
|
45048
|
+
}
|
|
45049
|
+
|
|
45050
|
+
return val;
|
|
45051
|
+
};
|
|
45052
|
+
|
|
45053
|
+
// This is what browsers will submit when the ✓ character occurs in an
|
|
45054
|
+
// application/x-www-form-urlencoded body and the encoding of the page containing
|
|
45055
|
+
// the form is iso-8859-1, or when the submitted form has an accept-charset
|
|
45056
|
+
// attribute of iso-8859-1. Presumably also with other charsets that do not contain
|
|
45057
|
+
// the ✓ character, such as us-ascii.
|
|
45058
|
+
var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')
|
|
45059
|
+
|
|
45060
|
+
// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.
|
|
45061
|
+
var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')
|
|
45062
|
+
|
|
45063
|
+
var parseValues = function parseQueryStringValues(str, options) {
|
|
45064
|
+
var obj = { __proto__: null };
|
|
45065
|
+
|
|
45066
|
+
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
45067
|
+
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
45068
|
+
var parts = cleanStr.split(options.delimiter, limit);
|
|
45069
|
+
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
45070
|
+
var i;
|
|
45071
|
+
|
|
45072
|
+
var charset = options.charset;
|
|
45073
|
+
if (options.charsetSentinel) {
|
|
45074
|
+
for (i = 0; i < parts.length; ++i) {
|
|
45075
|
+
if (parts[i].indexOf('utf8=') === 0) {
|
|
45076
|
+
if (parts[i] === charsetSentinel) {
|
|
45077
|
+
charset = 'utf-8';
|
|
45078
|
+
} else if (parts[i] === isoSentinel) {
|
|
45079
|
+
charset = 'iso-8859-1';
|
|
45080
|
+
}
|
|
45081
|
+
skipIndex = i;
|
|
45082
|
+
i = parts.length; // The eslint settings do not allow break;
|
|
45083
|
+
}
|
|
45084
|
+
}
|
|
45085
|
+
}
|
|
45086
|
+
|
|
45087
|
+
for (i = 0; i < parts.length; ++i) {
|
|
45088
|
+
if (i === skipIndex) {
|
|
45089
|
+
continue;
|
|
45090
|
+
}
|
|
45091
|
+
var part = parts[i];
|
|
45092
|
+
|
|
45093
|
+
var bracketEqualsPos = part.indexOf(']=');
|
|
45094
|
+
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
45095
|
+
|
|
45096
|
+
var key, val;
|
|
45097
|
+
if (pos === -1) {
|
|
45098
|
+
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
45099
|
+
val = options.strictNullHandling ? null : '';
|
|
45100
|
+
} else {
|
|
45101
|
+
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
45102
|
+
val = utils.maybeMap(
|
|
45103
|
+
parseArrayValue(part.slice(pos + 1), options),
|
|
45104
|
+
function (encodedVal) {
|
|
45105
|
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
45106
|
+
}
|
|
45107
|
+
);
|
|
45108
|
+
}
|
|
45109
|
+
|
|
45110
|
+
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
45111
|
+
val = interpretNumericEntities(val);
|
|
45112
|
+
}
|
|
45113
|
+
|
|
45114
|
+
if (part.indexOf('[]=') > -1) {
|
|
45115
|
+
val = isArray(val) ? [val] : val;
|
|
45116
|
+
}
|
|
45117
|
+
|
|
45118
|
+
if (has.call(obj, key)) {
|
|
45119
|
+
obj[key] = utils.combine(obj[key], val);
|
|
45120
|
+
} else {
|
|
45121
|
+
obj[key] = val;
|
|
45122
|
+
}
|
|
45123
|
+
}
|
|
45124
|
+
|
|
43637
45125
|
return obj;
|
|
43638
|
-
|
|
45126
|
+
};
|
|
43639
45127
|
|
|
43640
|
-
|
|
43641
|
-
|
|
45128
|
+
var parseObject = function (chain, val, options, valuesParsed) {
|
|
45129
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options);
|
|
43642
45130
|
|
|
43643
|
-
|
|
43644
|
-
|
|
43645
|
-
|
|
43646
|
-
}
|
|
45131
|
+
for (var i = chain.length - 1; i >= 0; --i) {
|
|
45132
|
+
var obj;
|
|
45133
|
+
var root = chain[i];
|
|
43647
45134
|
|
|
43648
|
-
|
|
43649
|
-
|
|
43650
|
-
|
|
43651
|
-
|
|
43652
|
-
|
|
45135
|
+
if (root === '[]' && options.parseArrays) {
|
|
45136
|
+
obj = [].concat(leaf);
|
|
45137
|
+
} else {
|
|
45138
|
+
obj = options.plainObjects ? Object.create(null) : {};
|
|
45139
|
+
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
45140
|
+
var index = parseInt(cleanRoot, 10);
|
|
45141
|
+
if (!options.parseArrays && cleanRoot === '') {
|
|
45142
|
+
obj = { 0: leaf };
|
|
45143
|
+
} else if (
|
|
45144
|
+
!isNaN(index)
|
|
45145
|
+
&& root !== cleanRoot
|
|
45146
|
+
&& String(index) === cleanRoot
|
|
45147
|
+
&& index >= 0
|
|
45148
|
+
&& (options.parseArrays && index <= options.arrayLimit)
|
|
45149
|
+
) {
|
|
45150
|
+
obj = [];
|
|
45151
|
+
obj[index] = leaf;
|
|
45152
|
+
} else if (cleanRoot !== '__proto__') {
|
|
45153
|
+
obj[cleanRoot] = leaf;
|
|
45154
|
+
}
|
|
45155
|
+
}
|
|
43653
45156
|
|
|
43654
|
-
|
|
43655
|
-
|
|
43656
|
-
idx = x.indexOf(eq),
|
|
43657
|
-
kstr, vstr, k, v;
|
|
45157
|
+
leaf = obj;
|
|
45158
|
+
}
|
|
43658
45159
|
|
|
43659
|
-
|
|
43660
|
-
|
|
43661
|
-
|
|
43662
|
-
|
|
43663
|
-
|
|
43664
|
-
|
|
45160
|
+
return leaf;
|
|
45161
|
+
};
|
|
45162
|
+
|
|
45163
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
45164
|
+
if (!givenKey) {
|
|
45165
|
+
return;
|
|
43665
45166
|
}
|
|
43666
45167
|
|
|
43667
|
-
|
|
43668
|
-
|
|
45168
|
+
// Transform dot notation to bracket notation
|
|
45169
|
+
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
43669
45170
|
|
|
43670
|
-
|
|
43671
|
-
|
|
43672
|
-
|
|
43673
|
-
|
|
43674
|
-
|
|
43675
|
-
|
|
45171
|
+
// The regex chunks
|
|
45172
|
+
|
|
45173
|
+
var brackets = /(\[[^[\]]*])/;
|
|
45174
|
+
var child = /(\[[^[\]]*])/g;
|
|
45175
|
+
|
|
45176
|
+
// Get the parent
|
|
45177
|
+
|
|
45178
|
+
var segment = options.depth > 0 && brackets.exec(key);
|
|
45179
|
+
var parent = segment ? key.slice(0, segment.index) : key;
|
|
45180
|
+
|
|
45181
|
+
// Stash the parent if it exists
|
|
45182
|
+
|
|
45183
|
+
var keys = [];
|
|
45184
|
+
if (parent) {
|
|
45185
|
+
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
45186
|
+
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
45187
|
+
if (!options.allowPrototypes) {
|
|
45188
|
+
return;
|
|
45189
|
+
}
|
|
45190
|
+
}
|
|
45191
|
+
|
|
45192
|
+
keys.push(parent);
|
|
43676
45193
|
}
|
|
43677
|
-
}
|
|
43678
45194
|
|
|
43679
|
-
|
|
45195
|
+
// Loop through children appending to the array until we hit depth
|
|
45196
|
+
|
|
45197
|
+
var i = 0;
|
|
45198
|
+
while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
|
|
45199
|
+
i += 1;
|
|
45200
|
+
if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
|
|
45201
|
+
if (!options.allowPrototypes) {
|
|
45202
|
+
return;
|
|
45203
|
+
}
|
|
45204
|
+
}
|
|
45205
|
+
keys.push(segment[1]);
|
|
45206
|
+
}
|
|
45207
|
+
|
|
45208
|
+
// If there's a remainder, just add whatever is left
|
|
45209
|
+
|
|
45210
|
+
if (segment) {
|
|
45211
|
+
keys.push('[' + key.slice(segment.index) + ']');
|
|
45212
|
+
}
|
|
45213
|
+
|
|
45214
|
+
return parseObject(keys, val, options, valuesParsed);
|
|
45215
|
+
};
|
|
45216
|
+
|
|
45217
|
+
var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
45218
|
+
if (!opts) {
|
|
45219
|
+
return defaults;
|
|
45220
|
+
}
|
|
45221
|
+
|
|
45222
|
+
if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
|
|
45223
|
+
throw new TypeError('Decoder has to be a function.');
|
|
45224
|
+
}
|
|
45225
|
+
|
|
45226
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
45227
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
45228
|
+
}
|
|
45229
|
+
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
45230
|
+
|
|
45231
|
+
return {
|
|
45232
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
45233
|
+
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
45234
|
+
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
45235
|
+
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
45236
|
+
charset: charset,
|
|
45237
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
45238
|
+
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
45239
|
+
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
45240
|
+
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
45241
|
+
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
45242
|
+
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
45243
|
+
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
45244
|
+
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
45245
|
+
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
45246
|
+
parseArrays: opts.parseArrays !== false,
|
|
45247
|
+
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
45248
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
45249
|
+
};
|
|
45250
|
+
};
|
|
45251
|
+
|
|
45252
|
+
module.exports = function (str, opts) {
|
|
45253
|
+
var options = normalizeParseOptions(opts);
|
|
45254
|
+
|
|
45255
|
+
if (str === '' || str === null || typeof str === 'undefined') {
|
|
45256
|
+
return options.plainObjects ? Object.create(null) : {};
|
|
45257
|
+
}
|
|
45258
|
+
|
|
45259
|
+
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
45260
|
+
var obj = options.plainObjects ? Object.create(null) : {};
|
|
45261
|
+
|
|
45262
|
+
// Iterate over the keys and setup the new object
|
|
45263
|
+
|
|
45264
|
+
var keys = Object.keys(tempObj);
|
|
45265
|
+
for (var i = 0; i < keys.length; ++i) {
|
|
45266
|
+
var key = keys[i];
|
|
45267
|
+
var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');
|
|
45268
|
+
obj = utils.merge(obj, newObj, options);
|
|
45269
|
+
}
|
|
45270
|
+
|
|
45271
|
+
if (options.allowSparse === true) {
|
|
45272
|
+
return obj;
|
|
45273
|
+
}
|
|
45274
|
+
|
|
45275
|
+
return utils.compact(obj);
|
|
43680
45276
|
};
|
|
43681
45277
|
|
|
43682
45278
|
|
|
43683
45279
|
/***/ }),
|
|
43684
45280
|
|
|
43685
|
-
/***/ "./node_modules/
|
|
43686
|
-
|
|
43687
|
-
!*** ./node_modules/
|
|
43688
|
-
|
|
43689
|
-
/***/ ((module) => {
|
|
45281
|
+
/***/ "./node_modules/qs/lib/stringify.js":
|
|
45282
|
+
/*!******************************************!*\
|
|
45283
|
+
!*** ./node_modules/qs/lib/stringify.js ***!
|
|
45284
|
+
\******************************************/
|
|
45285
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
43690
45286
|
|
|
43691
45287
|
"use strict";
|
|
43692
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
43693
|
-
//
|
|
43694
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
43695
|
-
// copy of this software and associated documentation files (the
|
|
43696
|
-
// "Software"), to deal in the Software without restriction, including
|
|
43697
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
43698
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
43699
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
43700
|
-
// following conditions:
|
|
43701
|
-
//
|
|
43702
|
-
// The above copyright notice and this permission notice shall be included
|
|
43703
|
-
// in all copies or substantial portions of the Software.
|
|
43704
|
-
//
|
|
43705
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
43706
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
43707
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
43708
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
43709
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
43710
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
43711
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
43712
45288
|
|
|
43713
45289
|
|
|
45290
|
+
var getSideChannel = __webpack_require__(/*! side-channel */ "./node_modules/side-channel/index.js");
|
|
45291
|
+
var utils = __webpack_require__(/*! ./utils */ "./node_modules/qs/lib/utils.js");
|
|
45292
|
+
var formats = __webpack_require__(/*! ./formats */ "./node_modules/qs/lib/formats.js");
|
|
45293
|
+
var has = Object.prototype.hasOwnProperty;
|
|
43714
45294
|
|
|
43715
|
-
var
|
|
43716
|
-
|
|
43717
|
-
|
|
43718
|
-
|
|
45295
|
+
var arrayPrefixGenerators = {
|
|
45296
|
+
brackets: function brackets(prefix) {
|
|
45297
|
+
return prefix + '[]';
|
|
45298
|
+
},
|
|
45299
|
+
comma: 'comma',
|
|
45300
|
+
indices: function indices(prefix, key) {
|
|
45301
|
+
return prefix + '[' + key + ']';
|
|
45302
|
+
},
|
|
45303
|
+
repeat: function repeat(prefix) {
|
|
45304
|
+
return prefix;
|
|
45305
|
+
}
|
|
45306
|
+
};
|
|
43719
45307
|
|
|
43720
|
-
|
|
43721
|
-
|
|
45308
|
+
var isArray = Array.isArray;
|
|
45309
|
+
var push = Array.prototype.push;
|
|
45310
|
+
var pushToArray = function (arr, valueOrArray) {
|
|
45311
|
+
push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
|
|
45312
|
+
};
|
|
43722
45313
|
|
|
43723
|
-
|
|
43724
|
-
|
|
45314
|
+
var toISO = Date.prototype.toISOString;
|
|
45315
|
+
|
|
45316
|
+
var defaultFormat = formats['default'];
|
|
45317
|
+
var defaults = {
|
|
45318
|
+
addQueryPrefix: false,
|
|
45319
|
+
allowDots: false,
|
|
45320
|
+
charset: 'utf-8',
|
|
45321
|
+
charsetSentinel: false,
|
|
45322
|
+
delimiter: '&',
|
|
45323
|
+
encode: true,
|
|
45324
|
+
encoder: utils.encode,
|
|
45325
|
+
encodeValuesOnly: false,
|
|
45326
|
+
format: defaultFormat,
|
|
45327
|
+
formatter: formats.formatters[defaultFormat],
|
|
45328
|
+
// deprecated
|
|
45329
|
+
indices: false,
|
|
45330
|
+
serializeDate: function serializeDate(date) {
|
|
45331
|
+
return toISO.call(date);
|
|
45332
|
+
},
|
|
45333
|
+
skipNulls: false,
|
|
45334
|
+
strictNullHandling: false
|
|
45335
|
+
};
|
|
43725
45336
|
|
|
43726
|
-
|
|
43727
|
-
|
|
43728
|
-
|
|
45337
|
+
var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|
|
45338
|
+
return typeof v === 'string'
|
|
45339
|
+
|| typeof v === 'number'
|
|
45340
|
+
|| typeof v === 'boolean'
|
|
45341
|
+
|| typeof v === 'symbol'
|
|
45342
|
+
|| typeof v === 'bigint';
|
|
43729
45343
|
};
|
|
43730
45344
|
|
|
43731
|
-
|
|
43732
|
-
|
|
43733
|
-
|
|
43734
|
-
|
|
43735
|
-
|
|
43736
|
-
|
|
45345
|
+
var sentinel = {};
|
|
45346
|
+
|
|
45347
|
+
var stringify = function stringify(
|
|
45348
|
+
object,
|
|
45349
|
+
prefix,
|
|
45350
|
+
generateArrayPrefix,
|
|
45351
|
+
commaRoundTrip,
|
|
45352
|
+
strictNullHandling,
|
|
45353
|
+
skipNulls,
|
|
45354
|
+
encoder,
|
|
45355
|
+
filter,
|
|
45356
|
+
sort,
|
|
45357
|
+
allowDots,
|
|
45358
|
+
serializeDate,
|
|
45359
|
+
format,
|
|
45360
|
+
formatter,
|
|
45361
|
+
encodeValuesOnly,
|
|
45362
|
+
charset,
|
|
45363
|
+
sideChannel
|
|
45364
|
+
) {
|
|
45365
|
+
var obj = object;
|
|
45366
|
+
|
|
45367
|
+
var tmpSc = sideChannel;
|
|
45368
|
+
var step = 0;
|
|
45369
|
+
var findFlag = false;
|
|
45370
|
+
while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {
|
|
45371
|
+
// Where object last appeared in the ref tree
|
|
45372
|
+
var pos = tmpSc.get(object);
|
|
45373
|
+
step += 1;
|
|
45374
|
+
if (typeof pos !== 'undefined') {
|
|
45375
|
+
if (pos === step) {
|
|
45376
|
+
throw new RangeError('Cyclic object value');
|
|
45377
|
+
} else {
|
|
45378
|
+
findFlag = true; // Break while
|
|
45379
|
+
}
|
|
45380
|
+
}
|
|
45381
|
+
if (typeof tmpSc.get(sentinel) === 'undefined') {
|
|
45382
|
+
step = 0;
|
|
45383
|
+
}
|
|
45384
|
+
}
|
|
43737
45385
|
|
|
43738
|
-
|
|
43739
|
-
|
|
43740
|
-
|
|
43741
|
-
|
|
43742
|
-
|
|
43743
|
-
|
|
43744
|
-
|
|
43745
|
-
|
|
43746
|
-
|
|
43747
|
-
|
|
43748
|
-
|
|
45386
|
+
if (typeof filter === 'function') {
|
|
45387
|
+
obj = filter(prefix, obj);
|
|
45388
|
+
} else if (obj instanceof Date) {
|
|
45389
|
+
obj = serializeDate(obj);
|
|
45390
|
+
} else if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
45391
|
+
obj = utils.maybeMap(obj, function (value) {
|
|
45392
|
+
if (value instanceof Date) {
|
|
45393
|
+
return serializeDate(value);
|
|
45394
|
+
}
|
|
45395
|
+
return value;
|
|
45396
|
+
});
|
|
45397
|
+
}
|
|
43749
45398
|
|
|
43750
|
-
|
|
45399
|
+
if (obj === null) {
|
|
45400
|
+
if (strictNullHandling) {
|
|
45401
|
+
return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
|
|
45402
|
+
}
|
|
45403
|
+
|
|
45404
|
+
obj = '';
|
|
45405
|
+
}
|
|
45406
|
+
|
|
45407
|
+
if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
|
|
45408
|
+
if (encoder) {
|
|
45409
|
+
var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
|
|
45410
|
+
return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
|
|
45411
|
+
}
|
|
45412
|
+
return [formatter(prefix) + '=' + formatter(String(obj))];
|
|
45413
|
+
}
|
|
43751
45414
|
|
|
43752
|
-
|
|
43753
|
-
|
|
43754
|
-
|
|
45415
|
+
var values = [];
|
|
45416
|
+
|
|
45417
|
+
if (typeof obj === 'undefined') {
|
|
45418
|
+
return values;
|
|
45419
|
+
}
|
|
45420
|
+
|
|
45421
|
+
var objKeys;
|
|
45422
|
+
if (generateArrayPrefix === 'comma' && isArray(obj)) {
|
|
45423
|
+
// we need to join elements in
|
|
45424
|
+
if (encodeValuesOnly && encoder) {
|
|
45425
|
+
obj = utils.maybeMap(obj, encoder);
|
|
45426
|
+
}
|
|
45427
|
+
objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];
|
|
45428
|
+
} else if (isArray(filter)) {
|
|
45429
|
+
objKeys = filter;
|
|
45430
|
+
} else {
|
|
45431
|
+
var keys = Object.keys(obj);
|
|
45432
|
+
objKeys = sort ? keys.sort(sort) : keys;
|
|
45433
|
+
}
|
|
45434
|
+
|
|
45435
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + '[]' : prefix;
|
|
45436
|
+
|
|
45437
|
+
for (var j = 0; j < objKeys.length; ++j) {
|
|
45438
|
+
var key = objKeys[j];
|
|
45439
|
+
var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
|
|
45440
|
+
|
|
45441
|
+
if (skipNulls && value === null) {
|
|
45442
|
+
continue;
|
|
45443
|
+
}
|
|
45444
|
+
|
|
45445
|
+
var keyPrefix = isArray(obj)
|
|
45446
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix
|
|
45447
|
+
: adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
|
|
45448
|
+
|
|
45449
|
+
sideChannel.set(object, step);
|
|
45450
|
+
var valueSideChannel = getSideChannel();
|
|
45451
|
+
valueSideChannel.set(sentinel, sideChannel);
|
|
45452
|
+
pushToArray(values, stringify(
|
|
45453
|
+
value,
|
|
45454
|
+
keyPrefix,
|
|
45455
|
+
generateArrayPrefix,
|
|
45456
|
+
commaRoundTrip,
|
|
45457
|
+
strictNullHandling,
|
|
45458
|
+
skipNulls,
|
|
45459
|
+
generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,
|
|
45460
|
+
filter,
|
|
45461
|
+
sort,
|
|
45462
|
+
allowDots,
|
|
45463
|
+
serializeDate,
|
|
45464
|
+
format,
|
|
45465
|
+
formatter,
|
|
45466
|
+
encodeValuesOnly,
|
|
45467
|
+
charset,
|
|
45468
|
+
valueSideChannel
|
|
45469
|
+
));
|
|
45470
|
+
}
|
|
45471
|
+
|
|
45472
|
+
return values;
|
|
45473
|
+
};
|
|
45474
|
+
|
|
45475
|
+
var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
45476
|
+
if (!opts) {
|
|
45477
|
+
return defaults;
|
|
45478
|
+
}
|
|
45479
|
+
|
|
45480
|
+
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
45481
|
+
throw new TypeError('Encoder has to be a function.');
|
|
45482
|
+
}
|
|
45483
|
+
|
|
45484
|
+
var charset = opts.charset || defaults.charset;
|
|
45485
|
+
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
45486
|
+
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
45487
|
+
}
|
|
45488
|
+
|
|
45489
|
+
var format = formats['default'];
|
|
45490
|
+
if (typeof opts.format !== 'undefined') {
|
|
45491
|
+
if (!has.call(formats.formatters, opts.format)) {
|
|
45492
|
+
throw new TypeError('Unknown format option provided.');
|
|
45493
|
+
}
|
|
45494
|
+
format = opts.format;
|
|
45495
|
+
}
|
|
45496
|
+
var formatter = formats.formatters[format];
|
|
45497
|
+
|
|
45498
|
+
var filter = defaults.filter;
|
|
45499
|
+
if (typeof opts.filter === 'function' || isArray(opts.filter)) {
|
|
45500
|
+
filter = opts.filter;
|
|
45501
|
+
}
|
|
45502
|
+
|
|
45503
|
+
return {
|
|
45504
|
+
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
45505
|
+
allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
|
|
45506
|
+
charset: charset,
|
|
45507
|
+
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
45508
|
+
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
45509
|
+
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
45510
|
+
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
45511
|
+
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
45512
|
+
filter: filter,
|
|
45513
|
+
format: format,
|
|
45514
|
+
formatter: formatter,
|
|
45515
|
+
serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
|
|
45516
|
+
skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
|
|
45517
|
+
sort: typeof opts.sort === 'function' ? opts.sort : null,
|
|
45518
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
|
|
45519
|
+
};
|
|
45520
|
+
};
|
|
45521
|
+
|
|
45522
|
+
module.exports = function (object, opts) {
|
|
45523
|
+
var obj = object;
|
|
45524
|
+
var options = normalizeStringifyOptions(opts);
|
|
45525
|
+
|
|
45526
|
+
var objKeys;
|
|
45527
|
+
var filter;
|
|
45528
|
+
|
|
45529
|
+
if (typeof options.filter === 'function') {
|
|
45530
|
+
filter = options.filter;
|
|
45531
|
+
obj = filter('', obj);
|
|
45532
|
+
} else if (isArray(options.filter)) {
|
|
45533
|
+
filter = options.filter;
|
|
45534
|
+
objKeys = filter;
|
|
45535
|
+
}
|
|
45536
|
+
|
|
45537
|
+
var keys = [];
|
|
45538
|
+
|
|
45539
|
+
if (typeof obj !== 'object' || obj === null) {
|
|
45540
|
+
return '';
|
|
45541
|
+
}
|
|
45542
|
+
|
|
45543
|
+
var arrayFormat;
|
|
45544
|
+
if (opts && opts.arrayFormat in arrayPrefixGenerators) {
|
|
45545
|
+
arrayFormat = opts.arrayFormat;
|
|
45546
|
+
} else if (opts && 'indices' in opts) {
|
|
45547
|
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
45548
|
+
} else {
|
|
45549
|
+
arrayFormat = 'indices';
|
|
45550
|
+
}
|
|
45551
|
+
|
|
45552
|
+
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
45553
|
+
if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
45554
|
+
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
45555
|
+
}
|
|
45556
|
+
var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
|
|
45557
|
+
|
|
45558
|
+
if (!objKeys) {
|
|
45559
|
+
objKeys = Object.keys(obj);
|
|
45560
|
+
}
|
|
45561
|
+
|
|
45562
|
+
if (options.sort) {
|
|
45563
|
+
objKeys.sort(options.sort);
|
|
45564
|
+
}
|
|
45565
|
+
|
|
45566
|
+
var sideChannel = getSideChannel();
|
|
45567
|
+
for (var i = 0; i < objKeys.length; ++i) {
|
|
45568
|
+
var key = objKeys[i];
|
|
45569
|
+
|
|
45570
|
+
if (options.skipNulls && obj[key] === null) {
|
|
45571
|
+
continue;
|
|
45572
|
+
}
|
|
45573
|
+
pushToArray(keys, stringify(
|
|
45574
|
+
obj[key],
|
|
45575
|
+
key,
|
|
45576
|
+
generateArrayPrefix,
|
|
45577
|
+
commaRoundTrip,
|
|
45578
|
+
options.strictNullHandling,
|
|
45579
|
+
options.skipNulls,
|
|
45580
|
+
options.encode ? options.encoder : null,
|
|
45581
|
+
options.filter,
|
|
45582
|
+
options.sort,
|
|
45583
|
+
options.allowDots,
|
|
45584
|
+
options.serializeDate,
|
|
45585
|
+
options.format,
|
|
45586
|
+
options.formatter,
|
|
45587
|
+
options.encodeValuesOnly,
|
|
45588
|
+
options.charset,
|
|
45589
|
+
sideChannel
|
|
45590
|
+
));
|
|
45591
|
+
}
|
|
45592
|
+
|
|
45593
|
+
var joined = keys.join(options.delimiter);
|
|
45594
|
+
var prefix = options.addQueryPrefix === true ? '?' : '';
|
|
45595
|
+
|
|
45596
|
+
if (options.charsetSentinel) {
|
|
45597
|
+
if (options.charset === 'iso-8859-1') {
|
|
45598
|
+
// encodeURIComponent('✓'), the "numeric entity" representation of a checkmark
|
|
45599
|
+
prefix += 'utf8=%26%2310003%3B&';
|
|
45600
|
+
} else {
|
|
45601
|
+
// encodeURIComponent('✓')
|
|
45602
|
+
prefix += 'utf8=%E2%9C%93&';
|
|
45603
|
+
}
|
|
45604
|
+
}
|
|
45605
|
+
|
|
45606
|
+
return joined.length > 0 ? prefix + joined : '';
|
|
43755
45607
|
};
|
|
43756
45608
|
|
|
43757
45609
|
|
|
43758
45610
|
/***/ }),
|
|
43759
45611
|
|
|
43760
|
-
/***/ "./node_modules/
|
|
43761
|
-
|
|
43762
|
-
!*** ./node_modules/
|
|
43763
|
-
|
|
43764
|
-
/***/ ((
|
|
45612
|
+
/***/ "./node_modules/qs/lib/utils.js":
|
|
45613
|
+
/*!**************************************!*\
|
|
45614
|
+
!*** ./node_modules/qs/lib/utils.js ***!
|
|
45615
|
+
\**************************************/
|
|
45616
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
43765
45617
|
|
|
43766
45618
|
"use strict";
|
|
43767
45619
|
|
|
43768
45620
|
|
|
43769
|
-
|
|
43770
|
-
|
|
45621
|
+
var formats = __webpack_require__(/*! ./formats */ "./node_modules/qs/lib/formats.js");
|
|
45622
|
+
|
|
45623
|
+
var has = Object.prototype.hasOwnProperty;
|
|
45624
|
+
var isArray = Array.isArray;
|
|
45625
|
+
|
|
45626
|
+
var hexTable = (function () {
|
|
45627
|
+
var array = [];
|
|
45628
|
+
for (var i = 0; i < 256; ++i) {
|
|
45629
|
+
array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());
|
|
45630
|
+
}
|
|
45631
|
+
|
|
45632
|
+
return array;
|
|
45633
|
+
}());
|
|
45634
|
+
|
|
45635
|
+
var compactQueue = function compactQueue(queue) {
|
|
45636
|
+
while (queue.length > 1) {
|
|
45637
|
+
var item = queue.pop();
|
|
45638
|
+
var obj = item.obj[item.prop];
|
|
45639
|
+
|
|
45640
|
+
if (isArray(obj)) {
|
|
45641
|
+
var compacted = [];
|
|
45642
|
+
|
|
45643
|
+
for (var j = 0; j < obj.length; ++j) {
|
|
45644
|
+
if (typeof obj[j] !== 'undefined') {
|
|
45645
|
+
compacted.push(obj[j]);
|
|
45646
|
+
}
|
|
45647
|
+
}
|
|
45648
|
+
|
|
45649
|
+
item.obj[item.prop] = compacted;
|
|
45650
|
+
}
|
|
45651
|
+
}
|
|
45652
|
+
};
|
|
45653
|
+
|
|
45654
|
+
var arrayToObject = function arrayToObject(source, options) {
|
|
45655
|
+
var obj = options && options.plainObjects ? Object.create(null) : {};
|
|
45656
|
+
for (var i = 0; i < source.length; ++i) {
|
|
45657
|
+
if (typeof source[i] !== 'undefined') {
|
|
45658
|
+
obj[i] = source[i];
|
|
45659
|
+
}
|
|
45660
|
+
}
|
|
45661
|
+
|
|
45662
|
+
return obj;
|
|
45663
|
+
};
|
|
45664
|
+
|
|
45665
|
+
var merge = function merge(target, source, options) {
|
|
45666
|
+
/* eslint no-param-reassign: 0 */
|
|
45667
|
+
if (!source) {
|
|
45668
|
+
return target;
|
|
45669
|
+
}
|
|
45670
|
+
|
|
45671
|
+
if (typeof source !== 'object') {
|
|
45672
|
+
if (isArray(target)) {
|
|
45673
|
+
target.push(source);
|
|
45674
|
+
} else if (target && typeof target === 'object') {
|
|
45675
|
+
if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {
|
|
45676
|
+
target[source] = true;
|
|
45677
|
+
}
|
|
45678
|
+
} else {
|
|
45679
|
+
return [target, source];
|
|
45680
|
+
}
|
|
45681
|
+
|
|
45682
|
+
return target;
|
|
45683
|
+
}
|
|
45684
|
+
|
|
45685
|
+
if (!target || typeof target !== 'object') {
|
|
45686
|
+
return [target].concat(source);
|
|
45687
|
+
}
|
|
45688
|
+
|
|
45689
|
+
var mergeTarget = target;
|
|
45690
|
+
if (isArray(target) && !isArray(source)) {
|
|
45691
|
+
mergeTarget = arrayToObject(target, options);
|
|
45692
|
+
}
|
|
45693
|
+
|
|
45694
|
+
if (isArray(target) && isArray(source)) {
|
|
45695
|
+
source.forEach(function (item, i) {
|
|
45696
|
+
if (has.call(target, i)) {
|
|
45697
|
+
var targetItem = target[i];
|
|
45698
|
+
if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
|
|
45699
|
+
target[i] = merge(targetItem, item, options);
|
|
45700
|
+
} else {
|
|
45701
|
+
target.push(item);
|
|
45702
|
+
}
|
|
45703
|
+
} else {
|
|
45704
|
+
target[i] = item;
|
|
45705
|
+
}
|
|
45706
|
+
});
|
|
45707
|
+
return target;
|
|
45708
|
+
}
|
|
45709
|
+
|
|
45710
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
45711
|
+
var value = source[key];
|
|
45712
|
+
|
|
45713
|
+
if (has.call(acc, key)) {
|
|
45714
|
+
acc[key] = merge(acc[key], value, options);
|
|
45715
|
+
} else {
|
|
45716
|
+
acc[key] = value;
|
|
45717
|
+
}
|
|
45718
|
+
return acc;
|
|
45719
|
+
}, mergeTarget);
|
|
45720
|
+
};
|
|
45721
|
+
|
|
45722
|
+
var assign = function assignSingleSource(target, source) {
|
|
45723
|
+
return Object.keys(source).reduce(function (acc, key) {
|
|
45724
|
+
acc[key] = source[key];
|
|
45725
|
+
return acc;
|
|
45726
|
+
}, target);
|
|
45727
|
+
};
|
|
45728
|
+
|
|
45729
|
+
var decode = function (str, decoder, charset) {
|
|
45730
|
+
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
45731
|
+
if (charset === 'iso-8859-1') {
|
|
45732
|
+
// unescape never throws, no try...catch needed:
|
|
45733
|
+
return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
|
|
45734
|
+
}
|
|
45735
|
+
// utf-8
|
|
45736
|
+
try {
|
|
45737
|
+
return decodeURIComponent(strWithoutPlus);
|
|
45738
|
+
} catch (e) {
|
|
45739
|
+
return strWithoutPlus;
|
|
45740
|
+
}
|
|
45741
|
+
};
|
|
45742
|
+
|
|
45743
|
+
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
45744
|
+
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
45745
|
+
// It has been adapted here for stricter adherence to RFC 3986
|
|
45746
|
+
if (str.length === 0) {
|
|
45747
|
+
return str;
|
|
45748
|
+
}
|
|
45749
|
+
|
|
45750
|
+
var string = str;
|
|
45751
|
+
if (typeof str === 'symbol') {
|
|
45752
|
+
string = Symbol.prototype.toString.call(str);
|
|
45753
|
+
} else if (typeof str !== 'string') {
|
|
45754
|
+
string = String(str);
|
|
45755
|
+
}
|
|
45756
|
+
|
|
45757
|
+
if (charset === 'iso-8859-1') {
|
|
45758
|
+
return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {
|
|
45759
|
+
return '%26%23' + parseInt($0.slice(2), 16) + '%3B';
|
|
45760
|
+
});
|
|
45761
|
+
}
|
|
45762
|
+
|
|
45763
|
+
var out = '';
|
|
45764
|
+
for (var i = 0; i < string.length; ++i) {
|
|
45765
|
+
var c = string.charCodeAt(i);
|
|
45766
|
+
|
|
45767
|
+
if (
|
|
45768
|
+
c === 0x2D // -
|
|
45769
|
+
|| c === 0x2E // .
|
|
45770
|
+
|| c === 0x5F // _
|
|
45771
|
+
|| c === 0x7E // ~
|
|
45772
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
45773
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
45774
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
45775
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
45776
|
+
) {
|
|
45777
|
+
out += string.charAt(i);
|
|
45778
|
+
continue;
|
|
45779
|
+
}
|
|
45780
|
+
|
|
45781
|
+
if (c < 0x80) {
|
|
45782
|
+
out = out + hexTable[c];
|
|
45783
|
+
continue;
|
|
45784
|
+
}
|
|
45785
|
+
|
|
45786
|
+
if (c < 0x800) {
|
|
45787
|
+
out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);
|
|
45788
|
+
continue;
|
|
45789
|
+
}
|
|
45790
|
+
|
|
45791
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
45792
|
+
out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);
|
|
45793
|
+
continue;
|
|
45794
|
+
}
|
|
45795
|
+
|
|
45796
|
+
i += 1;
|
|
45797
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
45798
|
+
/* eslint operator-linebreak: [2, "before"] */
|
|
45799
|
+
out += hexTable[0xF0 | (c >> 18)]
|
|
45800
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
45801
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
45802
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
45803
|
+
}
|
|
45804
|
+
|
|
45805
|
+
return out;
|
|
45806
|
+
};
|
|
45807
|
+
|
|
45808
|
+
var compact = function compact(value) {
|
|
45809
|
+
var queue = [{ obj: { o: value }, prop: 'o' }];
|
|
45810
|
+
var refs = [];
|
|
45811
|
+
|
|
45812
|
+
for (var i = 0; i < queue.length; ++i) {
|
|
45813
|
+
var item = queue[i];
|
|
45814
|
+
var obj = item.obj[item.prop];
|
|
45815
|
+
|
|
45816
|
+
var keys = Object.keys(obj);
|
|
45817
|
+
for (var j = 0; j < keys.length; ++j) {
|
|
45818
|
+
var key = keys[j];
|
|
45819
|
+
var val = obj[key];
|
|
45820
|
+
if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {
|
|
45821
|
+
queue.push({ obj: obj, prop: key });
|
|
45822
|
+
refs.push(val);
|
|
45823
|
+
}
|
|
45824
|
+
}
|
|
45825
|
+
}
|
|
45826
|
+
|
|
45827
|
+
compactQueue(queue);
|
|
45828
|
+
|
|
45829
|
+
return value;
|
|
45830
|
+
};
|
|
45831
|
+
|
|
45832
|
+
var isRegExp = function isRegExp(obj) {
|
|
45833
|
+
return Object.prototype.toString.call(obj) === '[object RegExp]';
|
|
45834
|
+
};
|
|
45835
|
+
|
|
45836
|
+
var isBuffer = function isBuffer(obj) {
|
|
45837
|
+
if (!obj || typeof obj !== 'object') {
|
|
45838
|
+
return false;
|
|
45839
|
+
}
|
|
45840
|
+
|
|
45841
|
+
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
45842
|
+
};
|
|
45843
|
+
|
|
45844
|
+
var combine = function combine(a, b) {
|
|
45845
|
+
return [].concat(a, b);
|
|
45846
|
+
};
|
|
45847
|
+
|
|
45848
|
+
var maybeMap = function maybeMap(val, fn) {
|
|
45849
|
+
if (isArray(val)) {
|
|
45850
|
+
var mapped = [];
|
|
45851
|
+
for (var i = 0; i < val.length; i += 1) {
|
|
45852
|
+
mapped.push(fn(val[i]));
|
|
45853
|
+
}
|
|
45854
|
+
return mapped;
|
|
45855
|
+
}
|
|
45856
|
+
return fn(val);
|
|
45857
|
+
};
|
|
45858
|
+
|
|
45859
|
+
module.exports = {
|
|
45860
|
+
arrayToObject: arrayToObject,
|
|
45861
|
+
assign: assign,
|
|
45862
|
+
combine: combine,
|
|
45863
|
+
compact: compact,
|
|
45864
|
+
decode: decode,
|
|
45865
|
+
encode: encode,
|
|
45866
|
+
isBuffer: isBuffer,
|
|
45867
|
+
isRegExp: isRegExp,
|
|
45868
|
+
maybeMap: maybeMap,
|
|
45869
|
+
merge: merge
|
|
45870
|
+
};
|
|
43771
45871
|
|
|
43772
45872
|
|
|
43773
45873
|
/***/ }),
|
|
@@ -58407,6 +60507,193 @@ function createXSD() {
|
|
|
58407
60507
|
var defaultXSD = createXSD(_factories_canonical_data_factory__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
58408
60508
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (defaultXSD);
|
|
58409
60509
|
|
|
60510
|
+
/***/ }),
|
|
60511
|
+
|
|
60512
|
+
/***/ "./node_modules/set-function-length/index.js":
|
|
60513
|
+
/*!***************************************************!*\
|
|
60514
|
+
!*** ./node_modules/set-function-length/index.js ***!
|
|
60515
|
+
\***************************************************/
|
|
60516
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
60517
|
+
|
|
60518
|
+
"use strict";
|
|
60519
|
+
|
|
60520
|
+
|
|
60521
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
|
|
60522
|
+
var define = __webpack_require__(/*! define-data-property */ "./node_modules/define-data-property/index.js");
|
|
60523
|
+
var hasDescriptors = __webpack_require__(/*! has-property-descriptors */ "./node_modules/has-property-descriptors/index.js")();
|
|
60524
|
+
var gOPD = __webpack_require__(/*! gopd */ "./node_modules/gopd/index.js");
|
|
60525
|
+
|
|
60526
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
60527
|
+
var $floor = GetIntrinsic('%Math.floor%');
|
|
60528
|
+
|
|
60529
|
+
module.exports = function setFunctionLength(fn, length) {
|
|
60530
|
+
if (typeof fn !== 'function') {
|
|
60531
|
+
throw new $TypeError('`fn` is not a function');
|
|
60532
|
+
}
|
|
60533
|
+
if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
|
|
60534
|
+
throw new $TypeError('`length` must be a positive 32-bit integer');
|
|
60535
|
+
}
|
|
60536
|
+
|
|
60537
|
+
var loose = arguments.length > 2 && !!arguments[2];
|
|
60538
|
+
|
|
60539
|
+
var functionLengthIsConfigurable = true;
|
|
60540
|
+
var functionLengthIsWritable = true;
|
|
60541
|
+
if ('length' in fn && gOPD) {
|
|
60542
|
+
var desc = gOPD(fn, 'length');
|
|
60543
|
+
if (desc && !desc.configurable) {
|
|
60544
|
+
functionLengthIsConfigurable = false;
|
|
60545
|
+
}
|
|
60546
|
+
if (desc && !desc.writable) {
|
|
60547
|
+
functionLengthIsWritable = false;
|
|
60548
|
+
}
|
|
60549
|
+
}
|
|
60550
|
+
|
|
60551
|
+
if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
|
|
60552
|
+
if (hasDescriptors) {
|
|
60553
|
+
define(fn, 'length', length, true, true);
|
|
60554
|
+
} else {
|
|
60555
|
+
define(fn, 'length', length);
|
|
60556
|
+
}
|
|
60557
|
+
}
|
|
60558
|
+
return fn;
|
|
60559
|
+
};
|
|
60560
|
+
|
|
60561
|
+
|
|
60562
|
+
/***/ }),
|
|
60563
|
+
|
|
60564
|
+
/***/ "./node_modules/side-channel/index.js":
|
|
60565
|
+
/*!********************************************!*\
|
|
60566
|
+
!*** ./node_modules/side-channel/index.js ***!
|
|
60567
|
+
\********************************************/
|
|
60568
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
60569
|
+
|
|
60570
|
+
"use strict";
|
|
60571
|
+
|
|
60572
|
+
|
|
60573
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
|
|
60574
|
+
var callBound = __webpack_require__(/*! call-bind/callBound */ "./node_modules/call-bind/callBound.js");
|
|
60575
|
+
var inspect = __webpack_require__(/*! object-inspect */ "./node_modules/object-inspect/index.js");
|
|
60576
|
+
|
|
60577
|
+
var $TypeError = GetIntrinsic('%TypeError%');
|
|
60578
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
60579
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
60580
|
+
|
|
60581
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
60582
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
60583
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
60584
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
60585
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
60586
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
60587
|
+
|
|
60588
|
+
/*
|
|
60589
|
+
* This function traverses the list returning the node corresponding to the
|
|
60590
|
+
* given key.
|
|
60591
|
+
*
|
|
60592
|
+
* That node is also moved to the head of the list, so that if it's accessed
|
|
60593
|
+
* again we don't need to traverse the whole list. By doing so, all the recently
|
|
60594
|
+
* used nodes can be accessed relatively quickly.
|
|
60595
|
+
*/
|
|
60596
|
+
var listGetNode = function (list, key) { // eslint-disable-line consistent-return
|
|
60597
|
+
for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
|
|
60598
|
+
if (curr.key === key) {
|
|
60599
|
+
prev.next = curr.next;
|
|
60600
|
+
curr.next = list.next;
|
|
60601
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
60602
|
+
return curr;
|
|
60603
|
+
}
|
|
60604
|
+
}
|
|
60605
|
+
};
|
|
60606
|
+
|
|
60607
|
+
var listGet = function (objects, key) {
|
|
60608
|
+
var node = listGetNode(objects, key);
|
|
60609
|
+
return node && node.value;
|
|
60610
|
+
};
|
|
60611
|
+
var listSet = function (objects, key, value) {
|
|
60612
|
+
var node = listGetNode(objects, key);
|
|
60613
|
+
if (node) {
|
|
60614
|
+
node.value = value;
|
|
60615
|
+
} else {
|
|
60616
|
+
// Prepend the new node to the beginning of the list
|
|
60617
|
+
objects.next = { // eslint-disable-line no-param-reassign
|
|
60618
|
+
key: key,
|
|
60619
|
+
next: objects.next,
|
|
60620
|
+
value: value
|
|
60621
|
+
};
|
|
60622
|
+
}
|
|
60623
|
+
};
|
|
60624
|
+
var listHas = function (objects, key) {
|
|
60625
|
+
return !!listGetNode(objects, key);
|
|
60626
|
+
};
|
|
60627
|
+
|
|
60628
|
+
module.exports = function getSideChannel() {
|
|
60629
|
+
var $wm;
|
|
60630
|
+
var $m;
|
|
60631
|
+
var $o;
|
|
60632
|
+
var channel = {
|
|
60633
|
+
assert: function (key) {
|
|
60634
|
+
if (!channel.has(key)) {
|
|
60635
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
60636
|
+
}
|
|
60637
|
+
},
|
|
60638
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
60639
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
60640
|
+
if ($wm) {
|
|
60641
|
+
return $weakMapGet($wm, key);
|
|
60642
|
+
}
|
|
60643
|
+
} else if ($Map) {
|
|
60644
|
+
if ($m) {
|
|
60645
|
+
return $mapGet($m, key);
|
|
60646
|
+
}
|
|
60647
|
+
} else {
|
|
60648
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
60649
|
+
return listGet($o, key);
|
|
60650
|
+
}
|
|
60651
|
+
}
|
|
60652
|
+
},
|
|
60653
|
+
has: function (key) {
|
|
60654
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
60655
|
+
if ($wm) {
|
|
60656
|
+
return $weakMapHas($wm, key);
|
|
60657
|
+
}
|
|
60658
|
+
} else if ($Map) {
|
|
60659
|
+
if ($m) {
|
|
60660
|
+
return $mapHas($m, key);
|
|
60661
|
+
}
|
|
60662
|
+
} else {
|
|
60663
|
+
if ($o) { // eslint-disable-line no-lonely-if
|
|
60664
|
+
return listHas($o, key);
|
|
60665
|
+
}
|
|
60666
|
+
}
|
|
60667
|
+
return false;
|
|
60668
|
+
},
|
|
60669
|
+
set: function (key, value) {
|
|
60670
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
60671
|
+
if (!$wm) {
|
|
60672
|
+
$wm = new $WeakMap();
|
|
60673
|
+
}
|
|
60674
|
+
$weakMapSet($wm, key, value);
|
|
60675
|
+
} else if ($Map) {
|
|
60676
|
+
if (!$m) {
|
|
60677
|
+
$m = new $Map();
|
|
60678
|
+
}
|
|
60679
|
+
$mapSet($m, key, value);
|
|
60680
|
+
} else {
|
|
60681
|
+
if (!$o) {
|
|
60682
|
+
/*
|
|
60683
|
+
* Initialize the linked list as an empty node, so that we don't have
|
|
60684
|
+
* to special-case handling of the first node: we can always refer to
|
|
60685
|
+
* it as (previous node).next, instead of something like (list).head
|
|
60686
|
+
*/
|
|
60687
|
+
$o = { key: {}, next: null };
|
|
60688
|
+
}
|
|
60689
|
+
listSet($o, key, value);
|
|
60690
|
+
}
|
|
60691
|
+
}
|
|
60692
|
+
};
|
|
60693
|
+
return channel;
|
|
60694
|
+
};
|
|
60695
|
+
|
|
60696
|
+
|
|
58410
60697
|
/***/ }),
|
|
58411
60698
|
|
|
58412
60699
|
/***/ "./node_modules/solid-logic/lib/acl/aclLogic.js":
|
|
@@ -61022,7 +63309,7 @@ module.exports = vocab
|
|
|
61022
63309
|
/***/ (function(module, exports, __webpack_require__) {
|
|
61023
63310
|
|
|
61024
63311
|
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
61025
|
-
var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.
|
|
63312
|
+
var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.4.1 by @mathias */
|
|
61026
63313
|
;(function(root) {
|
|
61027
63314
|
|
|
61028
63315
|
/** Detect free variables */
|
|
@@ -61088,7 +63375,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathia
|
|
|
61088
63375
|
* @returns {Error} Throws a `RangeError` with the applicable error message.
|
|
61089
63376
|
*/
|
|
61090
63377
|
function error(type) {
|
|
61091
|
-
throw RangeError(errors[type]);
|
|
63378
|
+
throw new RangeError(errors[type]);
|
|
61092
63379
|
}
|
|
61093
63380
|
|
|
61094
63381
|
/**
|
|
@@ -61235,7 +63522,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathia
|
|
|
61235
63522
|
|
|
61236
63523
|
/**
|
|
61237
63524
|
* Bias adaptation function as per section 3.4 of RFC 3492.
|
|
61238
|
-
*
|
|
63525
|
+
* https://tools.ietf.org/html/rfc3492#section-3.4
|
|
61239
63526
|
* @private
|
|
61240
63527
|
*/
|
|
61241
63528
|
function adapt(delta, numPoints, firstTime) {
|
|
@@ -61510,7 +63797,7 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathia
|
|
|
61510
63797
|
* @memberOf punycode
|
|
61511
63798
|
* @type String
|
|
61512
63799
|
*/
|
|
61513
|
-
'version': '1.
|
|
63800
|
+
'version': '1.4.1',
|
|
61514
63801
|
/**
|
|
61515
63802
|
* An object of methods to convert from JavaScript's internal character
|
|
61516
63803
|
* representation (UCS-2) to Unicode code points, and back.
|
|
@@ -61552,38 +63839,32 @@ var __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathia
|
|
|
61552
63839
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
61553
63840
|
|
|
61554
63841
|
"use strict";
|
|
61555
|
-
|
|
61556
|
-
|
|
61557
|
-
|
|
61558
|
-
|
|
61559
|
-
|
|
61560
|
-
|
|
61561
|
-
|
|
61562
|
-
|
|
61563
|
-
|
|
61564
|
-
|
|
61565
|
-
|
|
61566
|
-
|
|
61567
|
-
|
|
61568
|
-
|
|
61569
|
-
|
|
61570
|
-
|
|
61571
|
-
|
|
61572
|
-
|
|
61573
|
-
|
|
61574
|
-
|
|
63842
|
+
/*
|
|
63843
|
+
* Copyright Joyent, Inc. and other Node contributors.
|
|
63844
|
+
*
|
|
63845
|
+
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
63846
|
+
* copy of this software and associated documentation files (the
|
|
63847
|
+
* "Software"), to deal in the Software without restriction, including
|
|
63848
|
+
* without limitation the rights to use, copy, modify, merge, publish,
|
|
63849
|
+
* distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
63850
|
+
* persons to whom the Software is furnished to do so, subject to the
|
|
63851
|
+
* following conditions:
|
|
63852
|
+
*
|
|
63853
|
+
* The above copyright notice and this permission notice shall be included
|
|
63854
|
+
* in all copies or substantial portions of the Software.
|
|
63855
|
+
*
|
|
63856
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
63857
|
+
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
63858
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
63859
|
+
* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
63860
|
+
* DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
63861
|
+
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
63862
|
+
* USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
63863
|
+
*/
|
|
61575
63864
|
|
|
61576
63865
|
|
|
61577
63866
|
|
|
61578
63867
|
var punycode = __webpack_require__(/*! punycode */ "./node_modules/url/node_modules/punycode/punycode.js");
|
|
61579
|
-
var util = __webpack_require__(/*! ./util */ "./node_modules/url/util.js");
|
|
61580
|
-
|
|
61581
|
-
exports.parse = urlParse;
|
|
61582
|
-
exports.resolve = urlResolve;
|
|
61583
|
-
exports.resolveObject = urlResolveObject;
|
|
61584
|
-
exports.format = urlFormat;
|
|
61585
|
-
|
|
61586
|
-
exports.Url = Url;
|
|
61587
63868
|
|
|
61588
63869
|
function Url() {
|
|
61589
63870
|
this.protocol = null;
|
|
@@ -61602,85 +63883,102 @@ function Url() {
|
|
|
61602
63883
|
|
|
61603
63884
|
// Reference: RFC 3986, RFC 1808, RFC 2396
|
|
61604
63885
|
|
|
61605
|
-
|
|
61606
|
-
|
|
63886
|
+
/*
|
|
63887
|
+
* define these here so at least they only have to be
|
|
63888
|
+
* compiled once on the first module load.
|
|
63889
|
+
*/
|
|
61607
63890
|
var protocolPattern = /^([a-z0-9.+-]+:)/i,
|
|
61608
|
-
|
|
61609
|
-
|
|
61610
|
-
|
|
61611
|
-
|
|
61612
|
-
|
|
61613
|
-
|
|
61614
|
-
|
|
61615
|
-
|
|
61616
|
-
|
|
61617
|
-
|
|
61618
|
-
|
|
61619
|
-
|
|
61620
|
-
|
|
61621
|
-
|
|
61622
|
-
|
|
61623
|
-
|
|
61624
|
-
|
|
61625
|
-
|
|
61626
|
-
|
|
61627
|
-
|
|
61628
|
-
|
|
61629
|
-
|
|
61630
|
-
|
|
61631
|
-
|
|
61632
|
-
|
|
61633
|
-
|
|
61634
|
-
|
|
61635
|
-
|
|
61636
|
-
|
|
61637
|
-
|
|
61638
|
-
|
|
61639
|
-
|
|
61640
|
-
|
|
61641
|
-
|
|
61642
|
-
|
|
61643
|
-
|
|
61644
|
-
|
|
61645
|
-
|
|
61646
|
-
|
|
61647
|
-
|
|
61648
|
-
|
|
61649
|
-
|
|
61650
|
-
|
|
61651
|
-
|
|
61652
|
-
|
|
61653
|
-
|
|
61654
|
-
|
|
63891
|
+
portPattern = /:[0-9]*$/,
|
|
63892
|
+
|
|
63893
|
+
// Special case for a simple path URL
|
|
63894
|
+
simplePathPattern = /^(\/\/?(?!\/)[^?\s]*)(\?[^\s]*)?$/,
|
|
63895
|
+
|
|
63896
|
+
/*
|
|
63897
|
+
* RFC 2396: characters reserved for delimiting URLs.
|
|
63898
|
+
* We actually just auto-escape these.
|
|
63899
|
+
*/
|
|
63900
|
+
delims = [
|
|
63901
|
+
'<', '>', '"', '`', ' ', '\r', '\n', '\t'
|
|
63902
|
+
],
|
|
63903
|
+
|
|
63904
|
+
// RFC 2396: characters not allowed for various reasons.
|
|
63905
|
+
unwise = [
|
|
63906
|
+
'{', '}', '|', '\\', '^', '`'
|
|
63907
|
+
].concat(delims),
|
|
63908
|
+
|
|
63909
|
+
// Allowed by RFCs, but cause of XSS attacks. Always escape these.
|
|
63910
|
+
autoEscape = ['\''].concat(unwise),
|
|
63911
|
+
/*
|
|
63912
|
+
* Characters that are never ever allowed in a hostname.
|
|
63913
|
+
* Note that any invalid chars are also handled, but these
|
|
63914
|
+
* are the ones that are *expected* to be seen, so we fast-path
|
|
63915
|
+
* them.
|
|
63916
|
+
*/
|
|
63917
|
+
nonHostChars = [
|
|
63918
|
+
'%', '/', '?', ';', '#'
|
|
63919
|
+
].concat(autoEscape),
|
|
63920
|
+
hostEndingChars = [
|
|
63921
|
+
'/', '?', '#'
|
|
63922
|
+
],
|
|
63923
|
+
hostnameMaxLen = 255,
|
|
63924
|
+
hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,
|
|
63925
|
+
hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,
|
|
63926
|
+
// protocols that can allow "unsafe" and "unwise" chars.
|
|
63927
|
+
unsafeProtocol = {
|
|
63928
|
+
javascript: true,
|
|
63929
|
+
'javascript:': true
|
|
63930
|
+
},
|
|
63931
|
+
// protocols that never have a hostname.
|
|
63932
|
+
hostlessProtocol = {
|
|
63933
|
+
javascript: true,
|
|
63934
|
+
'javascript:': true
|
|
63935
|
+
},
|
|
63936
|
+
// protocols that always contain a // bit.
|
|
63937
|
+
slashedProtocol = {
|
|
63938
|
+
http: true,
|
|
63939
|
+
https: true,
|
|
63940
|
+
ftp: true,
|
|
63941
|
+
gopher: true,
|
|
63942
|
+
file: true,
|
|
63943
|
+
'http:': true,
|
|
63944
|
+
'https:': true,
|
|
63945
|
+
'ftp:': true,
|
|
63946
|
+
'gopher:': true,
|
|
63947
|
+
'file:': true
|
|
63948
|
+
},
|
|
63949
|
+
querystring = __webpack_require__(/*! qs */ "./node_modules/qs/lib/index.js");
|
|
61655
63950
|
|
|
61656
63951
|
function urlParse(url, parseQueryString, slashesDenoteHost) {
|
|
61657
|
-
if (url &&
|
|
63952
|
+
if (url && typeof url === 'object' && url instanceof Url) { return url; }
|
|
61658
63953
|
|
|
61659
|
-
var u = new Url;
|
|
63954
|
+
var u = new Url();
|
|
61660
63955
|
u.parse(url, parseQueryString, slashesDenoteHost);
|
|
61661
63956
|
return u;
|
|
61662
63957
|
}
|
|
61663
63958
|
|
|
61664
|
-
Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
61665
|
-
if (
|
|
63959
|
+
Url.prototype.parse = function (url, parseQueryString, slashesDenoteHost) {
|
|
63960
|
+
if (typeof url !== 'string') {
|
|
61666
63961
|
throw new TypeError("Parameter 'url' must be a string, not " + typeof url);
|
|
61667
63962
|
}
|
|
61668
63963
|
|
|
61669
|
-
|
|
61670
|
-
|
|
61671
|
-
|
|
63964
|
+
/*
|
|
63965
|
+
* Copy chrome, IE, opera backslash-handling behavior.
|
|
63966
|
+
* Back slashes before the query string get converted to forward slashes
|
|
63967
|
+
* See: https://code.google.com/p/chromium/issues/detail?id=25916
|
|
63968
|
+
*/
|
|
61672
63969
|
var queryIndex = url.indexOf('?'),
|
|
61673
|
-
|
|
61674
|
-
|
|
61675
|
-
|
|
61676
|
-
slashRegex = /\\/g;
|
|
63970
|
+
splitter = queryIndex !== -1 && queryIndex < url.indexOf('#') ? '?' : '#',
|
|
63971
|
+
uSplit = url.split(splitter),
|
|
63972
|
+
slashRegex = /\\/g;
|
|
61677
63973
|
uSplit[0] = uSplit[0].replace(slashRegex, '/');
|
|
61678
63974
|
url = uSplit.join(splitter);
|
|
61679
63975
|
|
|
61680
63976
|
var rest = url;
|
|
61681
63977
|
|
|
61682
|
-
|
|
61683
|
-
|
|
63978
|
+
/*
|
|
63979
|
+
* trim before proceeding.
|
|
63980
|
+
* This is to support parse stuff like " http://foo.com \n"
|
|
63981
|
+
*/
|
|
61684
63982
|
rest = rest.trim();
|
|
61685
63983
|
|
|
61686
63984
|
if (!slashesDenoteHost && url.split('#').length === 1) {
|
|
@@ -61713,11 +64011,13 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
|
61713
64011
|
rest = rest.substr(proto.length);
|
|
61714
64012
|
}
|
|
61715
64013
|
|
|
61716
|
-
|
|
61717
|
-
|
|
61718
|
-
|
|
61719
|
-
|
|
61720
|
-
|
|
64014
|
+
/*
|
|
64015
|
+
* figure out if it's got a host
|
|
64016
|
+
* user@server is *always* interpreted as a hostname, and url
|
|
64017
|
+
* resolution will treat //foo/bar as host=foo,path=bar because that's
|
|
64018
|
+
* how the browser resolves relative URLs.
|
|
64019
|
+
*/
|
|
64020
|
+
if (slashesDenoteHost || proto || rest.match(/^\/\/[^@/]+@[^@/]+/)) {
|
|
61721
64021
|
var slashes = rest.substr(0, 2) === '//';
|
|
61722
64022
|
if (slashes && !(proto && hostlessProtocol[proto])) {
|
|
61723
64023
|
rest = rest.substr(2);
|
|
@@ -61725,46 +64025,54 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
|
61725
64025
|
}
|
|
61726
64026
|
}
|
|
61727
64027
|
|
|
61728
|
-
if (!hostlessProtocol[proto] &&
|
|
61729
|
-
(slashes || (proto && !slashedProtocol[proto]))) {
|
|
64028
|
+
if (!hostlessProtocol[proto] && (slashes || (proto && !slashedProtocol[proto]))) {
|
|
61730
64029
|
|
|
61731
|
-
|
|
61732
|
-
|
|
61733
|
-
|
|
61734
|
-
|
|
61735
|
-
|
|
61736
|
-
|
|
61737
|
-
|
|
61738
|
-
|
|
61739
|
-
|
|
61740
|
-
|
|
61741
|
-
|
|
64030
|
+
/*
|
|
64031
|
+
* there's a hostname.
|
|
64032
|
+
* the first instance of /, ?, ;, or # ends the host.
|
|
64033
|
+
*
|
|
64034
|
+
* If there is an @ in the hostname, then non-host chars *are* allowed
|
|
64035
|
+
* to the left of the last @ sign, unless some host-ending character
|
|
64036
|
+
* comes *before* the @-sign.
|
|
64037
|
+
* URLs are obnoxious.
|
|
64038
|
+
*
|
|
64039
|
+
* ex:
|
|
64040
|
+
* http://a@b@c/ => user:a@b host:c
|
|
64041
|
+
* http://a@b?@c => user:a host:c path:/?@c
|
|
64042
|
+
*/
|
|
61742
64043
|
|
|
61743
|
-
|
|
61744
|
-
|
|
64044
|
+
/*
|
|
64045
|
+
* v0.12 TODO(isaacs): This is not quite how Chrome does things.
|
|
64046
|
+
* Review our test case against browsers more comprehensively.
|
|
64047
|
+
*/
|
|
61745
64048
|
|
|
61746
64049
|
// find the first instance of any hostEndingChars
|
|
61747
64050
|
var hostEnd = -1;
|
|
61748
64051
|
for (var i = 0; i < hostEndingChars.length; i++) {
|
|
61749
64052
|
var hec = rest.indexOf(hostEndingChars[i]);
|
|
61750
|
-
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
|
|
61751
|
-
hostEnd = hec;
|
|
64053
|
+
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { hostEnd = hec; }
|
|
61752
64054
|
}
|
|
61753
64055
|
|
|
61754
|
-
|
|
61755
|
-
|
|
64056
|
+
/*
|
|
64057
|
+
* at this point, either we have an explicit point where the
|
|
64058
|
+
* auth portion cannot go past, or the last @ char is the decider.
|
|
64059
|
+
*/
|
|
61756
64060
|
var auth, atSign;
|
|
61757
64061
|
if (hostEnd === -1) {
|
|
61758
64062
|
// atSign can be anywhere.
|
|
61759
64063
|
atSign = rest.lastIndexOf('@');
|
|
61760
64064
|
} else {
|
|
61761
|
-
|
|
61762
|
-
|
|
64065
|
+
/*
|
|
64066
|
+
* atSign must be in auth portion.
|
|
64067
|
+
* http://a@b/c@d => host:b auth:a path:/c@d
|
|
64068
|
+
*/
|
|
61763
64069
|
atSign = rest.lastIndexOf('@', hostEnd);
|
|
61764
64070
|
}
|
|
61765
64071
|
|
|
61766
|
-
|
|
61767
|
-
|
|
64072
|
+
/*
|
|
64073
|
+
* Now we have a portion which is definitely the auth.
|
|
64074
|
+
* Pull that off.
|
|
64075
|
+
*/
|
|
61768
64076
|
if (atSign !== -1) {
|
|
61769
64077
|
auth = rest.slice(0, atSign);
|
|
61770
64078
|
rest = rest.slice(atSign + 1);
|
|
@@ -61775,12 +64083,10 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
|
61775
64083
|
hostEnd = -1;
|
|
61776
64084
|
for (var i = 0; i < nonHostChars.length; i++) {
|
|
61777
64085
|
var hec = rest.indexOf(nonHostChars[i]);
|
|
61778
|
-
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))
|
|
61779
|
-
hostEnd = hec;
|
|
64086
|
+
if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { hostEnd = hec; }
|
|
61780
64087
|
}
|
|
61781
64088
|
// if we still have not hit it, then the entire thing is a host.
|
|
61782
|
-
if (hostEnd === -1)
|
|
61783
|
-
hostEnd = rest.length;
|
|
64089
|
+
if (hostEnd === -1) { hostEnd = rest.length; }
|
|
61784
64090
|
|
|
61785
64091
|
this.host = rest.slice(0, hostEnd);
|
|
61786
64092
|
rest = rest.slice(hostEnd);
|
|
@@ -61788,28 +64094,33 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
|
61788
64094
|
// pull out port.
|
|
61789
64095
|
this.parseHost();
|
|
61790
64096
|
|
|
61791
|
-
|
|
61792
|
-
|
|
64097
|
+
/*
|
|
64098
|
+
* we've indicated that there is a hostname,
|
|
64099
|
+
* so even if it's empty, it has to be present.
|
|
64100
|
+
*/
|
|
61793
64101
|
this.hostname = this.hostname || '';
|
|
61794
64102
|
|
|
61795
|
-
|
|
61796
|
-
|
|
61797
|
-
|
|
61798
|
-
|
|
64103
|
+
/*
|
|
64104
|
+
* if hostname begins with [ and ends with ]
|
|
64105
|
+
* assume that it's an IPv6 address.
|
|
64106
|
+
*/
|
|
64107
|
+
var ipv6Hostname = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']';
|
|
61799
64108
|
|
|
61800
64109
|
// validate a little.
|
|
61801
64110
|
if (!ipv6Hostname) {
|
|
61802
64111
|
var hostparts = this.hostname.split(/\./);
|
|
61803
64112
|
for (var i = 0, l = hostparts.length; i < l; i++) {
|
|
61804
64113
|
var part = hostparts[i];
|
|
61805
|
-
if (!part) continue;
|
|
64114
|
+
if (!part) { continue; }
|
|
61806
64115
|
if (!part.match(hostnamePartPattern)) {
|
|
61807
64116
|
var newpart = '';
|
|
61808
64117
|
for (var j = 0, k = part.length; j < k; j++) {
|
|
61809
64118
|
if (part.charCodeAt(j) > 127) {
|
|
61810
|
-
|
|
61811
|
-
|
|
61812
|
-
|
|
64119
|
+
/*
|
|
64120
|
+
* we replace non-ASCII char with a temporary placeholder
|
|
64121
|
+
* we need this to make sure size of hostname is not
|
|
64122
|
+
* broken by replacing non-ASCII by nothing
|
|
64123
|
+
*/
|
|
61813
64124
|
newpart += 'x';
|
|
61814
64125
|
} else {
|
|
61815
64126
|
newpart += part[j];
|
|
@@ -61842,10 +64153,12 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
|
61842
64153
|
}
|
|
61843
64154
|
|
|
61844
64155
|
if (!ipv6Hostname) {
|
|
61845
|
-
|
|
61846
|
-
|
|
61847
|
-
|
|
61848
|
-
|
|
64156
|
+
/*
|
|
64157
|
+
* IDNA Support: Returns a punycoded representation of "domain".
|
|
64158
|
+
* It only converts parts of the domain name that
|
|
64159
|
+
* have non-ASCII characters, i.e. it doesn't matter if
|
|
64160
|
+
* you call it with a domain that already is ASCII-only.
|
|
64161
|
+
*/
|
|
61849
64162
|
this.hostname = punycode.toASCII(this.hostname);
|
|
61850
64163
|
}
|
|
61851
64164
|
|
|
@@ -61854,8 +64167,10 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
|
61854
64167
|
this.host = h + p;
|
|
61855
64168
|
this.href += this.host;
|
|
61856
64169
|
|
|
61857
|
-
|
|
61858
|
-
|
|
64170
|
+
/*
|
|
64171
|
+
* strip [ and ] from the hostname
|
|
64172
|
+
* the host field still retains them, though
|
|
64173
|
+
*/
|
|
61859
64174
|
if (ipv6Hostname) {
|
|
61860
64175
|
this.hostname = this.hostname.substr(1, this.hostname.length - 2);
|
|
61861
64176
|
if (rest[0] !== '/') {
|
|
@@ -61864,17 +64179,20 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
|
61864
64179
|
}
|
|
61865
64180
|
}
|
|
61866
64181
|
|
|
61867
|
-
|
|
61868
|
-
|
|
64182
|
+
/*
|
|
64183
|
+
* now rest is set to the post-host stuff.
|
|
64184
|
+
* chop off any delim chars.
|
|
64185
|
+
*/
|
|
61869
64186
|
if (!unsafeProtocol[lowerProto]) {
|
|
61870
64187
|
|
|
61871
|
-
|
|
61872
|
-
|
|
61873
|
-
|
|
64188
|
+
/*
|
|
64189
|
+
* First, make 100% sure that any "autoEscape" chars get
|
|
64190
|
+
* escaped, even if encodeURIComponent doesn't think they
|
|
64191
|
+
* need to be.
|
|
64192
|
+
*/
|
|
61874
64193
|
for (var i = 0, l = autoEscape.length; i < l; i++) {
|
|
61875
64194
|
var ae = autoEscape[i];
|
|
61876
|
-
if (rest.indexOf(ae) === -1)
|
|
61877
|
-
continue;
|
|
64195
|
+
if (rest.indexOf(ae) === -1) { continue; }
|
|
61878
64196
|
var esc = encodeURIComponent(ae);
|
|
61879
64197
|
if (esc === ae) {
|
|
61880
64198
|
esc = escape(ae);
|
|
@@ -61883,7 +64201,6 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
|
61883
64201
|
}
|
|
61884
64202
|
}
|
|
61885
64203
|
|
|
61886
|
-
|
|
61887
64204
|
// chop off from the tail first.
|
|
61888
64205
|
var hash = rest.indexOf('#');
|
|
61889
64206
|
if (hash !== -1) {
|
|
@@ -61904,13 +64221,12 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
|
61904
64221
|
this.search = '';
|
|
61905
64222
|
this.query = {};
|
|
61906
64223
|
}
|
|
61907
|
-
if (rest) this.pathname = rest;
|
|
61908
|
-
if (slashedProtocol[lowerProto] &&
|
|
61909
|
-
this.hostname && !this.pathname) {
|
|
64224
|
+
if (rest) { this.pathname = rest; }
|
|
64225
|
+
if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) {
|
|
61910
64226
|
this.pathname = '/';
|
|
61911
64227
|
}
|
|
61912
64228
|
|
|
61913
|
-
//to support http.request
|
|
64229
|
+
// to support http.request
|
|
61914
64230
|
if (this.pathname || this.search) {
|
|
61915
64231
|
var p = this.pathname || '';
|
|
61916
64232
|
var s = this.search || '';
|
|
@@ -61924,16 +64240,18 @@ Url.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {
|
|
|
61924
64240
|
|
|
61925
64241
|
// format a parsed object into a url string
|
|
61926
64242
|
function urlFormat(obj) {
|
|
61927
|
-
|
|
61928
|
-
|
|
61929
|
-
|
|
61930
|
-
|
|
61931
|
-
|
|
61932
|
-
|
|
64243
|
+
/*
|
|
64244
|
+
* ensure it's an object, and not a string url.
|
|
64245
|
+
* If it's an obj, this is a no-op.
|
|
64246
|
+
* this way, you can call url_format() on strings
|
|
64247
|
+
* to clean up potentially wonky urls.
|
|
64248
|
+
*/
|
|
64249
|
+
if (typeof obj === 'string') { obj = urlParse(obj); }
|
|
64250
|
+
if (!(obj instanceof Url)) { return Url.prototype.format.call(obj); }
|
|
61933
64251
|
return obj.format();
|
|
61934
64252
|
}
|
|
61935
64253
|
|
|
61936
|
-
Url.prototype.format = function() {
|
|
64254
|
+
Url.prototype.format = function () {
|
|
61937
64255
|
var auth = this.auth || '';
|
|
61938
64256
|
if (auth) {
|
|
61939
64257
|
auth = encodeURIComponent(auth);
|
|
@@ -61942,46 +64260,46 @@ Url.prototype.format = function() {
|
|
|
61942
64260
|
}
|
|
61943
64261
|
|
|
61944
64262
|
var protocol = this.protocol || '',
|
|
61945
|
-
|
|
61946
|
-
|
|
61947
|
-
|
|
61948
|
-
|
|
64263
|
+
pathname = this.pathname || '',
|
|
64264
|
+
hash = this.hash || '',
|
|
64265
|
+
host = false,
|
|
64266
|
+
query = '';
|
|
61949
64267
|
|
|
61950
64268
|
if (this.host) {
|
|
61951
64269
|
host = auth + this.host;
|
|
61952
64270
|
} else if (this.hostname) {
|
|
61953
|
-
host = auth + (this.hostname.indexOf(':') === -1 ?
|
|
61954
|
-
this.hostname :
|
|
61955
|
-
'[' + this.hostname + ']');
|
|
64271
|
+
host = auth + (this.hostname.indexOf(':') === -1 ? this.hostname : '[' + this.hostname + ']');
|
|
61956
64272
|
if (this.port) {
|
|
61957
64273
|
host += ':' + this.port;
|
|
61958
64274
|
}
|
|
61959
64275
|
}
|
|
61960
64276
|
|
|
61961
|
-
if (this.query &&
|
|
61962
|
-
|
|
61963
|
-
|
|
61964
|
-
|
|
64277
|
+
if (this.query && typeof this.query === 'object' && Object.keys(this.query).length) {
|
|
64278
|
+
query = querystring.stringify(this.query, {
|
|
64279
|
+
arrayFormat: 'repeat',
|
|
64280
|
+
addQueryPrefix: false
|
|
64281
|
+
});
|
|
61965
64282
|
}
|
|
61966
64283
|
|
|
61967
64284
|
var search = this.search || (query && ('?' + query)) || '';
|
|
61968
64285
|
|
|
61969
|
-
if (protocol && protocol.substr(-1) !== ':') protocol += ':';
|
|
64286
|
+
if (protocol && protocol.substr(-1) !== ':') { protocol += ':'; }
|
|
61970
64287
|
|
|
61971
|
-
|
|
61972
|
-
|
|
61973
|
-
|
|
61974
|
-
|
|
64288
|
+
/*
|
|
64289
|
+
* only the slashedProtocols get the //. Not mailto:, xmpp:, etc.
|
|
64290
|
+
* unless they had them to begin with.
|
|
64291
|
+
*/
|
|
64292
|
+
if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) {
|
|
61975
64293
|
host = '//' + (host || '');
|
|
61976
|
-
if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;
|
|
64294
|
+
if (pathname && pathname.charAt(0) !== '/') { pathname = '/' + pathname; }
|
|
61977
64295
|
} else if (!host) {
|
|
61978
64296
|
host = '';
|
|
61979
64297
|
}
|
|
61980
64298
|
|
|
61981
|
-
if (hash && hash.charAt(0) !== '#') hash = '#' + hash;
|
|
61982
|
-
if (search && search.charAt(0) !== '?') search = '?' + search;
|
|
64299
|
+
if (hash && hash.charAt(0) !== '#') { hash = '#' + hash; }
|
|
64300
|
+
if (search && search.charAt(0) !== '?') { search = '?' + search; }
|
|
61983
64301
|
|
|
61984
|
-
pathname = pathname.replace(/[?#]/g, function(match) {
|
|
64302
|
+
pathname = pathname.replace(/[?#]/g, function (match) {
|
|
61985
64303
|
return encodeURIComponent(match);
|
|
61986
64304
|
});
|
|
61987
64305
|
search = search.replace('#', '%23');
|
|
@@ -61993,17 +64311,17 @@ function urlResolve(source, relative) {
|
|
|
61993
64311
|
return urlParse(source, false, true).resolve(relative);
|
|
61994
64312
|
}
|
|
61995
64313
|
|
|
61996
|
-
Url.prototype.resolve = function(relative) {
|
|
64314
|
+
Url.prototype.resolve = function (relative) {
|
|
61997
64315
|
return this.resolveObject(urlParse(relative, false, true)).format();
|
|
61998
64316
|
};
|
|
61999
64317
|
|
|
62000
64318
|
function urlResolveObject(source, relative) {
|
|
62001
|
-
if (!source) return relative;
|
|
64319
|
+
if (!source) { return relative; }
|
|
62002
64320
|
return urlParse(source, false, true).resolveObject(relative);
|
|
62003
64321
|
}
|
|
62004
64322
|
|
|
62005
|
-
Url.prototype.resolveObject = function(relative) {
|
|
62006
|
-
if (
|
|
64323
|
+
Url.prototype.resolveObject = function (relative) {
|
|
64324
|
+
if (typeof relative === 'string') {
|
|
62007
64325
|
var rel = new Url();
|
|
62008
64326
|
rel.parse(relative, false, true);
|
|
62009
64327
|
relative = rel;
|
|
@@ -62016,8 +64334,10 @@ Url.prototype.resolveObject = function(relative) {
|
|
|
62016
64334
|
result[tkey] = this[tkey];
|
|
62017
64335
|
}
|
|
62018
64336
|
|
|
62019
|
-
|
|
62020
|
-
|
|
64337
|
+
/*
|
|
64338
|
+
* hash is always overridden, no matter what.
|
|
64339
|
+
* even href="" will remove it.
|
|
64340
|
+
*/
|
|
62021
64341
|
result.hash = relative.hash;
|
|
62022
64342
|
|
|
62023
64343
|
// if the relative url is empty, then there's nothing left to do here.
|
|
@@ -62032,14 +64352,13 @@ Url.prototype.resolveObject = function(relative) {
|
|
|
62032
64352
|
var rkeys = Object.keys(relative);
|
|
62033
64353
|
for (var rk = 0; rk < rkeys.length; rk++) {
|
|
62034
64354
|
var rkey = rkeys[rk];
|
|
62035
|
-
if (rkey !== 'protocol')
|
|
62036
|
-
result[rkey] = relative[rkey];
|
|
64355
|
+
if (rkey !== 'protocol') { result[rkey] = relative[rkey]; }
|
|
62037
64356
|
}
|
|
62038
64357
|
|
|
62039
|
-
//urlParse appends trailing / to urls like http://www.example.com
|
|
62040
|
-
if (slashedProtocol[result.protocol] &&
|
|
62041
|
-
|
|
62042
|
-
result.path = result.pathname
|
|
64358
|
+
// urlParse appends trailing / to urls like http://www.example.com
|
|
64359
|
+
if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) {
|
|
64360
|
+
result.pathname = '/';
|
|
64361
|
+
result.path = result.pathname;
|
|
62043
64362
|
}
|
|
62044
64363
|
|
|
62045
64364
|
result.href = result.format();
|
|
@@ -62047,14 +64366,16 @@ Url.prototype.resolveObject = function(relative) {
|
|
|
62047
64366
|
}
|
|
62048
64367
|
|
|
62049
64368
|
if (relative.protocol && relative.protocol !== result.protocol) {
|
|
62050
|
-
|
|
62051
|
-
|
|
62052
|
-
|
|
62053
|
-
|
|
62054
|
-
|
|
62055
|
-
|
|
62056
|
-
|
|
62057
|
-
|
|
64369
|
+
/*
|
|
64370
|
+
* if it's a known url protocol, then changing
|
|
64371
|
+
* the protocol does weird things
|
|
64372
|
+
* first, if it's not file:, then we MUST have a host,
|
|
64373
|
+
* and if there was a path
|
|
64374
|
+
* to begin with, then we MUST have a path.
|
|
64375
|
+
* if it is file:, then the host is dropped,
|
|
64376
|
+
* because that's known to be hostless.
|
|
64377
|
+
* anything else is assumed to be absolute.
|
|
64378
|
+
*/
|
|
62058
64379
|
if (!slashedProtocol[relative.protocol]) {
|
|
62059
64380
|
var keys = Object.keys(relative);
|
|
62060
64381
|
for (var v = 0; v < keys.length; v++) {
|
|
@@ -62068,11 +64389,11 @@ Url.prototype.resolveObject = function(relative) {
|
|
|
62068
64389
|
result.protocol = relative.protocol;
|
|
62069
64390
|
if (!relative.host && !hostlessProtocol[relative.protocol]) {
|
|
62070
64391
|
var relPath = (relative.pathname || '').split('/');
|
|
62071
|
-
while (relPath.length && !(relative.host = relPath.shift()))
|
|
62072
|
-
if (!relative.host) relative.host = '';
|
|
62073
|
-
if (!relative.hostname) relative.hostname = '';
|
|
62074
|
-
if (relPath[0] !== '') relPath.unshift('');
|
|
62075
|
-
if (relPath.length < 2) relPath.unshift('');
|
|
64392
|
+
while (relPath.length && !(relative.host = relPath.shift())) { }
|
|
64393
|
+
if (!relative.host) { relative.host = ''; }
|
|
64394
|
+
if (!relative.hostname) { relative.hostname = ''; }
|
|
64395
|
+
if (relPath[0] !== '') { relPath.unshift(''); }
|
|
64396
|
+
if (relPath.length < 2) { relPath.unshift(''); }
|
|
62076
64397
|
result.pathname = relPath.join('/');
|
|
62077
64398
|
} else {
|
|
62078
64399
|
result.pathname = relative.pathname;
|
|
@@ -62094,37 +64415,33 @@ Url.prototype.resolveObject = function(relative) {
|
|
|
62094
64415
|
return result;
|
|
62095
64416
|
}
|
|
62096
64417
|
|
|
62097
|
-
var isSourceAbs =
|
|
62098
|
-
|
|
62099
|
-
|
|
62100
|
-
|
|
62101
|
-
|
|
62102
|
-
|
|
62103
|
-
|
|
62104
|
-
|
|
62105
|
-
|
|
62106
|
-
|
|
62107
|
-
|
|
62108
|
-
|
|
62109
|
-
|
|
62110
|
-
|
|
62111
|
-
|
|
62112
|
-
// result.protocol has already been set by now.
|
|
62113
|
-
// Later on, put the first path part into the host field.
|
|
64418
|
+
var isSourceAbs = result.pathname && result.pathname.charAt(0) === '/',
|
|
64419
|
+
isRelAbs = relative.host || relative.pathname && relative.pathname.charAt(0) === '/',
|
|
64420
|
+
mustEndAbs = isRelAbs || isSourceAbs || (result.host && relative.pathname),
|
|
64421
|
+
removeAllDots = mustEndAbs,
|
|
64422
|
+
srcPath = result.pathname && result.pathname.split('/') || [],
|
|
64423
|
+
relPath = relative.pathname && relative.pathname.split('/') || [],
|
|
64424
|
+
psychotic = result.protocol && !slashedProtocol[result.protocol];
|
|
64425
|
+
|
|
64426
|
+
/*
|
|
64427
|
+
* if the url is a non-slashed url, then relative
|
|
64428
|
+
* links like ../.. should be able
|
|
64429
|
+
* to crawl up to the hostname, as well. This is strange.
|
|
64430
|
+
* result.protocol has already been set by now.
|
|
64431
|
+
* Later on, put the first path part into the host field.
|
|
64432
|
+
*/
|
|
62114
64433
|
if (psychotic) {
|
|
62115
64434
|
result.hostname = '';
|
|
62116
64435
|
result.port = null;
|
|
62117
64436
|
if (result.host) {
|
|
62118
|
-
if (srcPath[0] === '') srcPath[0] = result.host;
|
|
62119
|
-
else srcPath.unshift(result.host);
|
|
64437
|
+
if (srcPath[0] === '') { srcPath[0] = result.host; } else { srcPath.unshift(result.host); }
|
|
62120
64438
|
}
|
|
62121
64439
|
result.host = '';
|
|
62122
64440
|
if (relative.protocol) {
|
|
62123
64441
|
relative.hostname = null;
|
|
62124
64442
|
relative.port = null;
|
|
62125
64443
|
if (relative.host) {
|
|
62126
|
-
if (relPath[0] === '') relPath[0] = relative.host;
|
|
62127
|
-
else relPath.unshift(relative.host);
|
|
64444
|
+
if (relPath[0] === '') { relPath[0] = relative.host; } else { relPath.unshift(relative.host); }
|
|
62128
64445
|
}
|
|
62129
64446
|
relative.host = null;
|
|
62130
64447
|
}
|
|
@@ -62133,54 +64450,60 @@ Url.prototype.resolveObject = function(relative) {
|
|
|
62133
64450
|
|
|
62134
64451
|
if (isRelAbs) {
|
|
62135
64452
|
// it's absolute.
|
|
62136
|
-
result.host =
|
|
62137
|
-
|
|
62138
|
-
result.hostname = (relative.hostname || relative.hostname === '') ?
|
|
62139
|
-
relative.hostname : result.hostname;
|
|
64453
|
+
result.host = relative.host || relative.host === '' ? relative.host : result.host;
|
|
64454
|
+
result.hostname = relative.hostname || relative.hostname === '' ? relative.hostname : result.hostname;
|
|
62140
64455
|
result.search = relative.search;
|
|
62141
64456
|
result.query = relative.query;
|
|
62142
64457
|
srcPath = relPath;
|
|
62143
64458
|
// fall through to the dot-handling below.
|
|
62144
64459
|
} else if (relPath.length) {
|
|
62145
|
-
|
|
62146
|
-
|
|
62147
|
-
|
|
64460
|
+
/*
|
|
64461
|
+
* it's relative
|
|
64462
|
+
* throw away the existing file, and take the new path instead.
|
|
64463
|
+
*/
|
|
64464
|
+
if (!srcPath) { srcPath = []; }
|
|
62148
64465
|
srcPath.pop();
|
|
62149
64466
|
srcPath = srcPath.concat(relPath);
|
|
62150
64467
|
result.search = relative.search;
|
|
62151
64468
|
result.query = relative.query;
|
|
62152
|
-
} else if (
|
|
62153
|
-
|
|
62154
|
-
|
|
62155
|
-
|
|
64469
|
+
} else if (relative.search != null) {
|
|
64470
|
+
/*
|
|
64471
|
+
* just pull out the search.
|
|
64472
|
+
* like href='?foo'.
|
|
64473
|
+
* Put this after the other two cases because it simplifies the booleans
|
|
64474
|
+
*/
|
|
62156
64475
|
if (psychotic) {
|
|
62157
|
-
result.
|
|
62158
|
-
|
|
62159
|
-
|
|
62160
|
-
|
|
62161
|
-
|
|
62162
|
-
|
|
64476
|
+
result.host = srcPath.shift();
|
|
64477
|
+
result.hostname = result.host;
|
|
64478
|
+
/*
|
|
64479
|
+
* occationaly the auth can get stuck only in host
|
|
64480
|
+
* this especially happens in cases like
|
|
64481
|
+
* url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
|
64482
|
+
*/
|
|
64483
|
+
var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;
|
|
62163
64484
|
if (authInHost) {
|
|
62164
64485
|
result.auth = authInHost.shift();
|
|
62165
|
-
result.
|
|
64486
|
+
result.hostname = authInHost.shift();
|
|
64487
|
+
result.host = result.hostname;
|
|
62166
64488
|
}
|
|
62167
64489
|
}
|
|
62168
64490
|
result.search = relative.search;
|
|
62169
64491
|
result.query = relative.query;
|
|
62170
|
-
//to support http.request
|
|
62171
|
-
if (
|
|
62172
|
-
result.path = (result.pathname ? result.pathname : '') +
|
|
62173
|
-
(result.search ? result.search : '');
|
|
64492
|
+
// to support http.request
|
|
64493
|
+
if (result.pathname !== null || result.search !== null) {
|
|
64494
|
+
result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');
|
|
62174
64495
|
}
|
|
62175
64496
|
result.href = result.format();
|
|
62176
64497
|
return result;
|
|
62177
64498
|
}
|
|
62178
64499
|
|
|
62179
64500
|
if (!srcPath.length) {
|
|
62180
|
-
|
|
62181
|
-
|
|
64501
|
+
/*
|
|
64502
|
+
* no path at all. easy.
|
|
64503
|
+
* we've already handled the other stuff above.
|
|
64504
|
+
*/
|
|
62182
64505
|
result.pathname = null;
|
|
62183
|
-
//to support http.request
|
|
64506
|
+
// to support http.request
|
|
62184
64507
|
if (result.search) {
|
|
62185
64508
|
result.path = '/' + result.search;
|
|
62186
64509
|
} else {
|
|
@@ -62190,16 +64513,18 @@ Url.prototype.resolveObject = function(relative) {
|
|
|
62190
64513
|
return result;
|
|
62191
64514
|
}
|
|
62192
64515
|
|
|
62193
|
-
|
|
62194
|
-
|
|
62195
|
-
|
|
64516
|
+
/*
|
|
64517
|
+
* if a url ENDs in . or .., then it must get a trailing slash.
|
|
64518
|
+
* however, if it ends in anything else non-slashy,
|
|
64519
|
+
* then it must NOT get a trailing slash.
|
|
64520
|
+
*/
|
|
62196
64521
|
var last = srcPath.slice(-1)[0];
|
|
62197
|
-
var hasTrailingSlash = (
|
|
62198
|
-
(result.host || relative.host || srcPath.length > 1) &&
|
|
62199
|
-
(last === '.' || last === '..') || last === '');
|
|
64522
|
+
var hasTrailingSlash = (result.host || relative.host || srcPath.length > 1) && (last === '.' || last === '..') || last === '';
|
|
62200
64523
|
|
|
62201
|
-
|
|
62202
|
-
|
|
64524
|
+
/*
|
|
64525
|
+
* strip single dots, resolve double dots to parent dir
|
|
64526
|
+
* if the path tries to go above the root, `up` ends up > 0
|
|
64527
|
+
*/
|
|
62203
64528
|
var up = 0;
|
|
62204
64529
|
for (var i = srcPath.length; i >= 0; i--) {
|
|
62205
64530
|
last = srcPath[i];
|
|
@@ -62221,8 +64546,7 @@ Url.prototype.resolveObject = function(relative) {
|
|
|
62221
64546
|
}
|
|
62222
64547
|
}
|
|
62223
64548
|
|
|
62224
|
-
if (mustEndAbs && srcPath[0] !== '' &&
|
|
62225
|
-
(!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
|
|
64549
|
+
if (mustEndAbs && srcPath[0] !== '' && (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {
|
|
62226
64550
|
srcPath.unshift('');
|
|
62227
64551
|
}
|
|
62228
64552
|
|
|
@@ -62230,21 +64554,22 @@ Url.prototype.resolveObject = function(relative) {
|
|
|
62230
64554
|
srcPath.push('');
|
|
62231
64555
|
}
|
|
62232
64556
|
|
|
62233
|
-
var isAbsolute = srcPath[0] === '' ||
|
|
62234
|
-
(srcPath[0] && srcPath[0].charAt(0) === '/');
|
|
64557
|
+
var isAbsolute = srcPath[0] === '' || (srcPath[0] && srcPath[0].charAt(0) === '/');
|
|
62235
64558
|
|
|
62236
64559
|
// put the host back
|
|
62237
64560
|
if (psychotic) {
|
|
62238
|
-
result.hostname =
|
|
62239
|
-
|
|
62240
|
-
|
|
62241
|
-
|
|
62242
|
-
|
|
62243
|
-
|
|
62244
|
-
|
|
64561
|
+
result.hostname = isAbsolute ? '' : srcPath.length ? srcPath.shift() : '';
|
|
64562
|
+
result.host = result.hostname;
|
|
64563
|
+
/*
|
|
64564
|
+
* occationaly the auth can get stuck only in host
|
|
64565
|
+
* this especially happens in cases like
|
|
64566
|
+
* url.resolveObject('mailto:local1@domain1', 'local2@domain2')
|
|
64567
|
+
*/
|
|
64568
|
+
var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;
|
|
62245
64569
|
if (authInHost) {
|
|
62246
64570
|
result.auth = authInHost.shift();
|
|
62247
|
-
result.
|
|
64571
|
+
result.hostname = authInHost.shift();
|
|
64572
|
+
result.host = result.hostname;
|
|
62248
64573
|
}
|
|
62249
64574
|
}
|
|
62250
64575
|
|
|
@@ -62254,17 +64579,16 @@ Url.prototype.resolveObject = function(relative) {
|
|
|
62254
64579
|
srcPath.unshift('');
|
|
62255
64580
|
}
|
|
62256
64581
|
|
|
62257
|
-
if (
|
|
64582
|
+
if (srcPath.length > 0) {
|
|
64583
|
+
result.pathname = srcPath.join('/');
|
|
64584
|
+
} else {
|
|
62258
64585
|
result.pathname = null;
|
|
62259
64586
|
result.path = null;
|
|
62260
|
-
} else {
|
|
62261
|
-
result.pathname = srcPath.join('/');
|
|
62262
64587
|
}
|
|
62263
64588
|
|
|
62264
|
-
//to support request.http
|
|
62265
|
-
if (
|
|
62266
|
-
result.path = (result.pathname ? result.pathname : '') +
|
|
62267
|
-
(result.search ? result.search : '');
|
|
64589
|
+
// to support request.http
|
|
64590
|
+
if (result.pathname !== null || result.search !== null) {
|
|
64591
|
+
result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');
|
|
62268
64592
|
}
|
|
62269
64593
|
result.auth = relative.auth || result.auth;
|
|
62270
64594
|
result.slashes = result.slashes || relative.slashes;
|
|
@@ -62272,7 +64596,7 @@ Url.prototype.resolveObject = function(relative) {
|
|
|
62272
64596
|
return result;
|
|
62273
64597
|
};
|
|
62274
64598
|
|
|
62275
|
-
Url.prototype.parseHost = function() {
|
|
64599
|
+
Url.prototype.parseHost = function () {
|
|
62276
64600
|
var host = this.host;
|
|
62277
64601
|
var port = portPattern.exec(host);
|
|
62278
64602
|
if (port) {
|
|
@@ -62282,35 +64606,15 @@ Url.prototype.parseHost = function() {
|
|
|
62282
64606
|
}
|
|
62283
64607
|
host = host.substr(0, host.length - port.length);
|
|
62284
64608
|
}
|
|
62285
|
-
if (host) this.hostname = host;
|
|
64609
|
+
if (host) { this.hostname = host; }
|
|
62286
64610
|
};
|
|
62287
64611
|
|
|
64612
|
+
exports.parse = urlParse;
|
|
64613
|
+
exports.resolve = urlResolve;
|
|
64614
|
+
exports.resolveObject = urlResolveObject;
|
|
64615
|
+
exports.format = urlFormat;
|
|
62288
64616
|
|
|
62289
|
-
|
|
62290
|
-
|
|
62291
|
-
/***/ "./node_modules/url/util.js":
|
|
62292
|
-
/*!**********************************!*\
|
|
62293
|
-
!*** ./node_modules/url/util.js ***!
|
|
62294
|
-
\**********************************/
|
|
62295
|
-
/***/ ((module) => {
|
|
62296
|
-
|
|
62297
|
-
"use strict";
|
|
62298
|
-
|
|
62299
|
-
|
|
62300
|
-
module.exports = {
|
|
62301
|
-
isString: function(arg) {
|
|
62302
|
-
return typeof(arg) === 'string';
|
|
62303
|
-
},
|
|
62304
|
-
isObject: function(arg) {
|
|
62305
|
-
return typeof(arg) === 'object' && arg !== null;
|
|
62306
|
-
},
|
|
62307
|
-
isNull: function(arg) {
|
|
62308
|
-
return arg === null;
|
|
62309
|
-
},
|
|
62310
|
-
isNullOrUndefined: function(arg) {
|
|
62311
|
-
return arg == null;
|
|
62312
|
-
}
|
|
62313
|
-
};
|
|
64617
|
+
exports.Url = Url;
|
|
62314
64618
|
|
|
62315
64619
|
|
|
62316
64620
|
/***/ }),
|
|
@@ -63183,6 +65487,16 @@ function version(uuid) {
|
|
|
63183
65487
|
|
|
63184
65488
|
/***/ }),
|
|
63185
65489
|
|
|
65490
|
+
/***/ "?4f7e":
|
|
65491
|
+
/*!********************************!*\
|
|
65492
|
+
!*** ./util.inspect (ignored) ***!
|
|
65493
|
+
\********************************/
|
|
65494
|
+
/***/ (() => {
|
|
65495
|
+
|
|
65496
|
+
/* (ignored) */
|
|
65497
|
+
|
|
65498
|
+
/***/ }),
|
|
65499
|
+
|
|
63186
65500
|
/***/ "./node_modules/@babel/runtime/helpers/arrayLikeToArray.js":
|
|
63187
65501
|
/*!*****************************************************************!*\
|
|
63188
65502
|
!*** ./node_modules/@babel/runtime/helpers/arrayLikeToArray.js ***!
|