@feathersjs/client 4.5.18 → 4.5.19
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/CHANGELOG.md +11 -0
- package/dist/authentication.js +147 -96
- package/dist/authentication.js.map +1 -1
- package/dist/authentication.min.js +1 -1
- package/dist/core.js +292 -237
- package/dist/core.js.map +1 -1
- package/dist/core.min.js +1 -1
- package/dist/feathers.js +1828 -826
- package/dist/feathers.js.map +1 -1
- package/dist/feathers.min.js +1 -1
- package/dist/primus.js +120 -67
- package/dist/primus.js.map +1 -1
- package/dist/primus.min.js +1 -1
- package/dist/rest.js +1809 -804
- package/dist/rest.js.map +1 -1
- package/dist/rest.min.js +1 -1
- package/dist/socketio.js +120 -67
- package/dist/socketio.js.map +1 -1
- package/dist/socketio.min.js +1 -1
- package/package.json +23 -23
package/dist/feathers.js
CHANGED
|
@@ -65,15 +65,17 @@ function useColors() {
|
|
|
65
65
|
if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) {
|
|
66
66
|
return false;
|
|
67
67
|
}
|
|
68
|
+
var m;
|
|
68
69
|
|
|
69
70
|
// Is webkit? http://stackoverflow.com/a/16459606/376773
|
|
70
71
|
// document is undefined in react-native: https://github.com/facebook/react-native/pull/1632
|
|
72
|
+
// eslint-disable-next-line no-return-assign
|
|
71
73
|
return typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance ||
|
|
72
74
|
// Is firebug? http://stackoverflow.com/a/398120/376773
|
|
73
75
|
typeof window !== 'undefined' && window.console && (window.console.firebug || window.console.exception && window.console.table) ||
|
|
74
76
|
// Is firefox >= v31?
|
|
75
77
|
// https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages
|
|
76
|
-
typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(
|
|
78
|
+
typeof navigator !== 'undefined' && navigator.userAgent && (m = navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)) && parseInt(m[1], 10) >= 31 ||
|
|
77
79
|
// Double check webkit in userAgent just in case we are in a worker
|
|
78
80
|
typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/);
|
|
79
81
|
}
|
|
@@ -149,7 +151,7 @@ function save(namespaces) {
|
|
|
149
151
|
function load() {
|
|
150
152
|
var r;
|
|
151
153
|
try {
|
|
152
|
-
r = exports.storage.getItem('debug');
|
|
154
|
+
r = exports.storage.getItem('debug') || exports.storage.getItem('DEBUG');
|
|
153
155
|
} catch (error) {
|
|
154
156
|
// Swallow
|
|
155
157
|
// XXX (@Qix-) should we be logging these?
|
|
@@ -206,12 +208,13 @@ formatters.j = function (v) {
|
|
|
206
208
|
\**********************************************/
|
|
207
209
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
208
210
|
|
|
209
|
-
function _toConsumableArray(
|
|
211
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
210
212
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
211
|
-
function
|
|
212
|
-
function
|
|
213
|
-
function
|
|
214
|
-
function
|
|
213
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
214
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
215
|
+
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
216
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
217
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
215
218
|
/**
|
|
216
219
|
* This is the common logic for both the Node.js and web browser
|
|
217
220
|
* implementations of `debug()`.
|
|
@@ -224,7 +227,7 @@ function setup(env) {
|
|
|
224
227
|
createDebug.disable = disable;
|
|
225
228
|
createDebug.enable = enable;
|
|
226
229
|
createDebug.enabled = enabled;
|
|
227
|
-
createDebug.humanize = __webpack_require__(/*! ms */ "../../node_modules/ms/index.js");
|
|
230
|
+
createDebug.humanize = __webpack_require__(/*! ms */ "../../node_modules/debug/node_modules/ms/index.js");
|
|
228
231
|
createDebug.destroy = destroy;
|
|
229
232
|
Object.keys(env).forEach(function (key) {
|
|
230
233
|
createDebug[key] = env[key];
|
|
@@ -256,7 +259,6 @@ function setup(env) {
|
|
|
256
259
|
hash = (hash << 5) - hash + namespace.charCodeAt(i);
|
|
257
260
|
hash |= 0; // Convert to 32bit integer
|
|
258
261
|
}
|
|
259
|
-
|
|
260
262
|
return createDebug.colors[Math.abs(hash) % createDebug.colors.length];
|
|
261
263
|
}
|
|
262
264
|
createDebug.selectColor = selectColor;
|
|
@@ -369,21 +371,65 @@ function setup(env) {
|
|
|
369
371
|
createDebug.namespaces = namespaces;
|
|
370
372
|
createDebug.names = [];
|
|
371
373
|
createDebug.skips = [];
|
|
372
|
-
var
|
|
373
|
-
var
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
374
|
+
var split = (typeof namespaces === 'string' ? namespaces : '').trim().replace(/\s+/g, ',').split(',').filter(Boolean);
|
|
375
|
+
var _iterator = _createForOfIteratorHelper(split),
|
|
376
|
+
_step;
|
|
377
|
+
try {
|
|
378
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
379
|
+
var ns = _step.value;
|
|
380
|
+
if (ns[0] === '-') {
|
|
381
|
+
createDebug.skips.push(ns.slice(1));
|
|
382
|
+
} else {
|
|
383
|
+
createDebug.names.push(ns);
|
|
384
|
+
}
|
|
379
385
|
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
386
|
+
} catch (err) {
|
|
387
|
+
_iterator.e(err);
|
|
388
|
+
} finally {
|
|
389
|
+
_iterator.f();
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* Checks if the given string matches a namespace template, honoring
|
|
395
|
+
* asterisks as wildcards.
|
|
396
|
+
*
|
|
397
|
+
* @param {String} search
|
|
398
|
+
* @param {String} template
|
|
399
|
+
* @return {Boolean}
|
|
400
|
+
*/
|
|
401
|
+
function matchesTemplate(search, template) {
|
|
402
|
+
var searchIndex = 0;
|
|
403
|
+
var templateIndex = 0;
|
|
404
|
+
var starIndex = -1;
|
|
405
|
+
var matchIndex = 0;
|
|
406
|
+
while (searchIndex < search.length) {
|
|
407
|
+
if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === '*')) {
|
|
408
|
+
// Match character or proceed with wildcard
|
|
409
|
+
if (template[templateIndex] === '*') {
|
|
410
|
+
starIndex = templateIndex;
|
|
411
|
+
matchIndex = searchIndex;
|
|
412
|
+
templateIndex++; // Skip the '*'
|
|
413
|
+
} else {
|
|
414
|
+
searchIndex++;
|
|
415
|
+
templateIndex++;
|
|
416
|
+
}
|
|
417
|
+
} else if (starIndex !== -1) {
|
|
418
|
+
// eslint-disable-line no-negated-condition
|
|
419
|
+
// Backtrack to the last '*' and try to match more characters
|
|
420
|
+
templateIndex = starIndex + 1;
|
|
421
|
+
matchIndex++;
|
|
422
|
+
searchIndex = matchIndex;
|
|
383
423
|
} else {
|
|
384
|
-
|
|
424
|
+
return false; // No match
|
|
385
425
|
}
|
|
386
426
|
}
|
|
427
|
+
|
|
428
|
+
// Handle trailing '*' in template
|
|
429
|
+
while (templateIndex < template.length && template[templateIndex] === '*') {
|
|
430
|
+
templateIndex++;
|
|
431
|
+
}
|
|
432
|
+
return templateIndex === template.length;
|
|
387
433
|
}
|
|
388
434
|
|
|
389
435
|
/**
|
|
@@ -393,7 +439,7 @@ function setup(env) {
|
|
|
393
439
|
* @api public
|
|
394
440
|
*/
|
|
395
441
|
function disable() {
|
|
396
|
-
var namespaces = [].concat(_toConsumableArray(createDebug.names
|
|
442
|
+
var namespaces = [].concat(_toConsumableArray(createDebug.names), _toConsumableArray(createDebug.skips.map(function (namespace) {
|
|
397
443
|
return '-' + namespace;
|
|
398
444
|
}))).join(',');
|
|
399
445
|
createDebug.enable('');
|
|
@@ -408,35 +454,37 @@ function setup(env) {
|
|
|
408
454
|
* @api public
|
|
409
455
|
*/
|
|
410
456
|
function enabled(name) {
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
457
|
+
var _iterator2 = _createForOfIteratorHelper(createDebug.skips),
|
|
458
|
+
_step2;
|
|
459
|
+
try {
|
|
460
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
461
|
+
var skip = _step2.value;
|
|
462
|
+
if (matchesTemplate(name, skip)) {
|
|
463
|
+
return false;
|
|
464
|
+
}
|
|
419
465
|
}
|
|
466
|
+
} catch (err) {
|
|
467
|
+
_iterator2.e(err);
|
|
468
|
+
} finally {
|
|
469
|
+
_iterator2.f();
|
|
420
470
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
471
|
+
var _iterator3 = _createForOfIteratorHelper(createDebug.names),
|
|
472
|
+
_step3;
|
|
473
|
+
try {
|
|
474
|
+
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
475
|
+
var ns = _step3.value;
|
|
476
|
+
if (matchesTemplate(name, ns)) {
|
|
477
|
+
return true;
|
|
478
|
+
}
|
|
424
479
|
}
|
|
480
|
+
} catch (err) {
|
|
481
|
+
_iterator3.e(err);
|
|
482
|
+
} finally {
|
|
483
|
+
_iterator3.f();
|
|
425
484
|
}
|
|
426
485
|
return false;
|
|
427
486
|
}
|
|
428
487
|
|
|
429
|
-
/**
|
|
430
|
-
* Convert regexp to namespace
|
|
431
|
-
*
|
|
432
|
-
* @param {RegExp} regxep
|
|
433
|
-
* @return {String} namespace
|
|
434
|
-
* @api private
|
|
435
|
-
*/
|
|
436
|
-
function toNamespace(regexp) {
|
|
437
|
-
return regexp.toString().substring(2, regexp.toString().length - 2).replace(/\.\*\?$/, '*');
|
|
438
|
-
}
|
|
439
|
-
|
|
440
488
|
/**
|
|
441
489
|
* Coerce `val`.
|
|
442
490
|
*
|
|
@@ -474,18 +522,18 @@ module.exports = setup;
|
|
|
474
522
|
"use strict";
|
|
475
523
|
|
|
476
524
|
|
|
477
|
-
function _typeof(
|
|
478
|
-
function _classCallCheck(
|
|
479
|
-
function _defineProperties(
|
|
480
|
-
function _createClass(
|
|
481
|
-
function _toPropertyKey(
|
|
482
|
-
function _toPrimitive(
|
|
483
|
-
function _slicedToArray(
|
|
525
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
526
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
527
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
528
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
529
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
530
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
531
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
484
532
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
485
|
-
function _unsupportedIterableToArray(
|
|
486
|
-
function _arrayLikeToArray(
|
|
487
|
-
function _iterableToArrayLimit(
|
|
488
|
-
function _arrayWithHoles(
|
|
533
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
534
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
535
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
536
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
489
537
|
Object.defineProperty(exports, "__esModule", ({
|
|
490
538
|
value: true
|
|
491
539
|
}));
|
|
@@ -515,7 +563,7 @@ var AuthenticationClient = /*#__PURE__*/function () {
|
|
|
515
563
|
this.handleSocket(socket);
|
|
516
564
|
}
|
|
517
565
|
}
|
|
518
|
-
_createClass(AuthenticationClient, [{
|
|
566
|
+
return _createClass(AuthenticationClient, [{
|
|
519
567
|
key: "service",
|
|
520
568
|
get: function get() {
|
|
521
569
|
return this.app.service(this.options.path);
|
|
@@ -671,7 +719,6 @@ var AuthenticationClient = /*#__PURE__*/function () {
|
|
|
671
719
|
});
|
|
672
720
|
}
|
|
673
721
|
}]);
|
|
674
|
-
return AuthenticationClient;
|
|
675
722
|
}();
|
|
676
723
|
exports.AuthenticationClient = AuthenticationClient;
|
|
677
724
|
|
|
@@ -752,10 +799,10 @@ Object.defineProperty(exports, "populateHeader", ({
|
|
|
752
799
|
"use strict";
|
|
753
800
|
|
|
754
801
|
|
|
755
|
-
function _typeof(
|
|
756
|
-
function _defineProperty(
|
|
757
|
-
function _toPropertyKey(
|
|
758
|
-
function _toPrimitive(
|
|
802
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
803
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
804
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
805
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
759
806
|
Object.defineProperty(exports, "__esModule", ({
|
|
760
807
|
value: true
|
|
761
808
|
}));
|
|
@@ -892,12 +939,12 @@ if (true) {
|
|
|
892
939
|
"use strict";
|
|
893
940
|
|
|
894
941
|
|
|
895
|
-
function _typeof(
|
|
896
|
-
function _classCallCheck(
|
|
897
|
-
function _defineProperties(
|
|
898
|
-
function _createClass(
|
|
899
|
-
function _toPropertyKey(
|
|
900
|
-
function _toPrimitive(
|
|
942
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
943
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
944
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
945
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
946
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
947
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
901
948
|
Object.defineProperty(exports, "__esModule", ({
|
|
902
949
|
value: true
|
|
903
950
|
}));
|
|
@@ -907,7 +954,7 @@ var MemoryStorage = /*#__PURE__*/function () {
|
|
|
907
954
|
_classCallCheck(this, MemoryStorage);
|
|
908
955
|
this.store = {};
|
|
909
956
|
}
|
|
910
|
-
_createClass(MemoryStorage, [{
|
|
957
|
+
return _createClass(MemoryStorage, [{
|
|
911
958
|
key: "getItem",
|
|
912
959
|
value: function getItem(key) {
|
|
913
960
|
return Promise.resolve(this.store[key]);
|
|
@@ -925,7 +972,6 @@ var MemoryStorage = /*#__PURE__*/function () {
|
|
|
925
972
|
return Promise.resolve(value);
|
|
926
973
|
}
|
|
927
974
|
}]);
|
|
928
|
-
return MemoryStorage;
|
|
929
975
|
}();
|
|
930
976
|
exports.MemoryStorage = MemoryStorage;
|
|
931
977
|
var StorageWrapper = /*#__PURE__*/function () {
|
|
@@ -933,7 +979,7 @@ var StorageWrapper = /*#__PURE__*/function () {
|
|
|
933
979
|
_classCallCheck(this, StorageWrapper);
|
|
934
980
|
this.storage = storage;
|
|
935
981
|
}
|
|
936
|
-
_createClass(StorageWrapper, [{
|
|
982
|
+
return _createClass(StorageWrapper, [{
|
|
937
983
|
key: "getItem",
|
|
938
984
|
value: function getItem(key) {
|
|
939
985
|
return Promise.resolve(this.storage.getItem(key));
|
|
@@ -949,35 +995,11 @@ var StorageWrapper = /*#__PURE__*/function () {
|
|
|
949
995
|
return Promise.resolve(this.storage.removeItem(key));
|
|
950
996
|
}
|
|
951
997
|
}]);
|
|
952
|
-
return StorageWrapper;
|
|
953
998
|
}();
|
|
954
999
|
exports.StorageWrapper = StorageWrapper;
|
|
955
1000
|
|
|
956
1001
|
/***/ }),
|
|
957
1002
|
|
|
958
|
-
/***/ "./src/index.js":
|
|
959
|
-
/*!**********************!*\
|
|
960
|
-
!*** ./src/index.js ***!
|
|
961
|
-
\**********************/
|
|
962
|
-
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
963
|
-
|
|
964
|
-
var feathers = __webpack_require__(/*! @feathersjs/feathers */ "../feathers/lib/index.js");
|
|
965
|
-
var errors = __webpack_require__(/*! @feathersjs/errors */ "../errors/lib/index.js");
|
|
966
|
-
var authentication = __webpack_require__(/*! @feathersjs/authentication-client */ "../authentication-client/lib/index.js");
|
|
967
|
-
var rest = __webpack_require__(/*! @feathersjs/rest-client */ "../rest-client/lib/index.js");
|
|
968
|
-
var socketio = __webpack_require__(/*! @feathersjs/socketio-client */ "../socketio-client/lib/index.js");
|
|
969
|
-
var primus = __webpack_require__(/*! @feathersjs/primus-client */ "../primus-client/lib/index.js");
|
|
970
|
-
Object.assign(feathers, {
|
|
971
|
-
errors: errors,
|
|
972
|
-
socketio: socketio,
|
|
973
|
-
primus: primus,
|
|
974
|
-
rest: rest,
|
|
975
|
-
authentication: authentication
|
|
976
|
-
});
|
|
977
|
-
module.exports = feathers;
|
|
978
|
-
|
|
979
|
-
/***/ }),
|
|
980
|
-
|
|
981
1003
|
/***/ "../commons/lib/hooks.js":
|
|
982
1004
|
/*!*******************************!*\
|
|
983
1005
|
!*** ../commons/lib/hooks.js ***!
|
|
@@ -987,7 +1009,7 @@ module.exports = feathers;
|
|
|
987
1009
|
"use strict";
|
|
988
1010
|
|
|
989
1011
|
|
|
990
|
-
function _typeof(
|
|
1012
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
991
1013
|
Object.defineProperty(exports, "__esModule", ({
|
|
992
1014
|
value: true
|
|
993
1015
|
}));
|
|
@@ -1235,16 +1257,16 @@ exports.hooks = hookUtils;
|
|
|
1235
1257
|
"use strict";
|
|
1236
1258
|
|
|
1237
1259
|
|
|
1238
|
-
function _defineProperty(
|
|
1239
|
-
function _toPropertyKey(
|
|
1240
|
-
function _toPrimitive(
|
|
1241
|
-
function _typeof(
|
|
1242
|
-
function _slicedToArray(
|
|
1260
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
1261
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
1262
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
1263
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1264
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
1243
1265
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
1244
|
-
function _unsupportedIterableToArray(
|
|
1245
|
-
function _arrayLikeToArray(
|
|
1246
|
-
function _iterableToArrayLimit(
|
|
1247
|
-
function _arrayWithHoles(
|
|
1266
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
1267
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
1268
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
1269
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
1248
1270
|
Object.defineProperty(exports, "__esModule", ({
|
|
1249
1271
|
value: true
|
|
1250
1272
|
}));
|
|
@@ -1381,7 +1403,7 @@ exports.createSymbol = createSymbol;
|
|
|
1381
1403
|
\******************************/
|
|
1382
1404
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1383
1405
|
|
|
1384
|
-
function _typeof(
|
|
1406
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
1385
1407
|
var debug = __webpack_require__(/*! debug */ "../../node_modules/debug/src/browser.js")('@feathersjs/errors');
|
|
1386
1408
|
function FeathersError(msg, name, code, className, data) {
|
|
1387
1409
|
msg = msg || 'Error';
|
|
@@ -2113,7 +2135,7 @@ module.exports["default"] = createApplication;
|
|
|
2113
2135
|
\**********************************/
|
|
2114
2136
|
/***/ (function(module) {
|
|
2115
2137
|
|
|
2116
|
-
module.exports = '
|
|
2138
|
+
module.exports = '4.5.19';
|
|
2117
2139
|
|
|
2118
2140
|
/***/ }),
|
|
2119
2141
|
|
|
@@ -2157,28 +2179,27 @@ module.exports["default"] = primusClient;
|
|
|
2157
2179
|
\*************************************************/
|
|
2158
2180
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2159
2181
|
|
|
2160
|
-
function _typeof(
|
|
2161
|
-
function _classCallCheck(
|
|
2162
|
-
function _defineProperties(
|
|
2163
|
-
function _createClass(
|
|
2164
|
-
function _toPropertyKey(
|
|
2165
|
-
function _toPrimitive(
|
|
2166
|
-
function
|
|
2167
|
-
function
|
|
2168
|
-
function
|
|
2169
|
-
function
|
|
2170
|
-
function
|
|
2171
|
-
function
|
|
2172
|
-
function
|
|
2182
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2183
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
2184
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
2185
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
2186
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
2187
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2188
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
2189
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
2190
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
2191
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
2192
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
2193
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
2194
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
2173
2195
|
var Base = __webpack_require__(/*! ./base */ "../rest-client/lib/base.js");
|
|
2174
2196
|
var AngularHttpService = /*#__PURE__*/function (_Base) {
|
|
2175
|
-
_inherits(AngularHttpService, _Base);
|
|
2176
|
-
var _super = _createSuper(AngularHttpService);
|
|
2177
2197
|
function AngularHttpService() {
|
|
2178
2198
|
_classCallCheck(this, AngularHttpService);
|
|
2179
|
-
return
|
|
2199
|
+
return _callSuper(this, AngularHttpService, arguments);
|
|
2180
2200
|
}
|
|
2181
|
-
|
|
2201
|
+
_inherits(AngularHttpService, _Base);
|
|
2202
|
+
return _createClass(AngularHttpService, [{
|
|
2182
2203
|
key: "request",
|
|
2183
2204
|
value: function request(options, params) {
|
|
2184
2205
|
var httpClient = this.connection;
|
|
@@ -2209,7 +2230,6 @@ var AngularHttpService = /*#__PURE__*/function (_Base) {
|
|
|
2209
2230
|
});
|
|
2210
2231
|
}
|
|
2211
2232
|
}]);
|
|
2212
|
-
return AngularHttpService;
|
|
2213
2233
|
}(Base);
|
|
2214
2234
|
module.exports = AngularHttpService;
|
|
2215
2235
|
|
|
@@ -2221,28 +2241,27 @@ module.exports = AngularHttpService;
|
|
|
2221
2241
|
\*************************************/
|
|
2222
2242
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2223
2243
|
|
|
2224
|
-
function _typeof(
|
|
2225
|
-
function _classCallCheck(
|
|
2226
|
-
function _defineProperties(
|
|
2227
|
-
function _createClass(
|
|
2228
|
-
function _toPropertyKey(
|
|
2229
|
-
function _toPrimitive(
|
|
2230
|
-
function
|
|
2231
|
-
function
|
|
2232
|
-
function
|
|
2233
|
-
function
|
|
2234
|
-
function
|
|
2235
|
-
function
|
|
2236
|
-
function
|
|
2244
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2245
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
2246
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
2247
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
2248
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
2249
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2250
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
2251
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
2252
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
2253
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
2254
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
2255
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
2256
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
2237
2257
|
var Base = __webpack_require__(/*! ./base */ "../rest-client/lib/base.js");
|
|
2238
2258
|
var AngularService = /*#__PURE__*/function (_Base) {
|
|
2239
|
-
_inherits(AngularService, _Base);
|
|
2240
|
-
var _super = _createSuper(AngularService);
|
|
2241
2259
|
function AngularService() {
|
|
2242
2260
|
_classCallCheck(this, AngularService);
|
|
2243
|
-
return
|
|
2261
|
+
return _callSuper(this, AngularService, arguments);
|
|
2244
2262
|
}
|
|
2245
|
-
|
|
2263
|
+
_inherits(AngularService, _Base);
|
|
2264
|
+
return _createClass(AngularService, [{
|
|
2246
2265
|
key: "request",
|
|
2247
2266
|
value: function request(options, params) {
|
|
2248
2267
|
var http = this.connection;
|
|
@@ -2272,7 +2291,6 @@ var AngularService = /*#__PURE__*/function (_Base) {
|
|
|
2272
2291
|
});
|
|
2273
2292
|
}
|
|
2274
2293
|
}]);
|
|
2275
|
-
return AngularService;
|
|
2276
2294
|
}(Base);
|
|
2277
2295
|
module.exports = AngularService;
|
|
2278
2296
|
|
|
@@ -2284,28 +2302,27 @@ module.exports = AngularService;
|
|
|
2284
2302
|
\***********************************/
|
|
2285
2303
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2286
2304
|
|
|
2287
|
-
function _typeof(
|
|
2288
|
-
function _classCallCheck(
|
|
2289
|
-
function _defineProperties(
|
|
2290
|
-
function _createClass(
|
|
2291
|
-
function _toPropertyKey(
|
|
2292
|
-
function _toPrimitive(
|
|
2293
|
-
function
|
|
2294
|
-
function
|
|
2295
|
-
function
|
|
2296
|
-
function
|
|
2297
|
-
function
|
|
2298
|
-
function
|
|
2299
|
-
function
|
|
2305
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2306
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
2307
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
2308
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
2309
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
2310
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2311
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
2312
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
2313
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
2314
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
2315
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
2316
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
2317
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
2300
2318
|
var Base = __webpack_require__(/*! ./base */ "../rest-client/lib/base.js");
|
|
2301
2319
|
var AxiosService = /*#__PURE__*/function (_Base) {
|
|
2302
|
-
_inherits(AxiosService, _Base);
|
|
2303
|
-
var _super = _createSuper(AxiosService);
|
|
2304
2320
|
function AxiosService() {
|
|
2305
2321
|
_classCallCheck(this, AxiosService);
|
|
2306
|
-
return
|
|
2322
|
+
return _callSuper(this, AxiosService, arguments);
|
|
2307
2323
|
}
|
|
2308
|
-
|
|
2324
|
+
_inherits(AxiosService, _Base);
|
|
2325
|
+
return _createClass(AxiosService, [{
|
|
2309
2326
|
key: "request",
|
|
2310
2327
|
value: function request(options, params) {
|
|
2311
2328
|
var config = Object.assign({
|
|
@@ -2324,7 +2341,6 @@ var AxiosService = /*#__PURE__*/function (_Base) {
|
|
|
2324
2341
|
});
|
|
2325
2342
|
}
|
|
2326
2343
|
}]);
|
|
2327
|
-
return AxiosService;
|
|
2328
2344
|
}(Base);
|
|
2329
2345
|
module.exports = AxiosService;
|
|
2330
2346
|
|
|
@@ -2336,12 +2352,12 @@ module.exports = AxiosService;
|
|
|
2336
2352
|
\**********************************/
|
|
2337
2353
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2338
2354
|
|
|
2339
|
-
function _typeof(
|
|
2340
|
-
function _classCallCheck(
|
|
2341
|
-
function _defineProperties(
|
|
2342
|
-
function _createClass(
|
|
2343
|
-
function _toPropertyKey(
|
|
2344
|
-
function _toPrimitive(
|
|
2355
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2356
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
2357
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
2358
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
2359
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
2360
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2345
2361
|
var qs = __webpack_require__(/*! qs */ "../../node_modules/qs/lib/index.js");
|
|
2346
2362
|
var _require = __webpack_require__(/*! @feathersjs/errors */ "../errors/lib/index.js"),
|
|
2347
2363
|
Unavailable = _require.Unavailable;
|
|
@@ -2365,7 +2381,7 @@ var Base = /*#__PURE__*/function () {
|
|
|
2365
2381
|
this.connection = settings.connection;
|
|
2366
2382
|
this.base = "".concat(settings.base, "/").concat(this.name);
|
|
2367
2383
|
}
|
|
2368
|
-
_createClass(Base, [{
|
|
2384
|
+
return _createClass(Base, [{
|
|
2369
2385
|
key: "makeUrl",
|
|
2370
2386
|
value: function makeUrl(query, id) {
|
|
2371
2387
|
query = query || {};
|
|
@@ -2466,7 +2482,6 @@ var Base = /*#__PURE__*/function () {
|
|
|
2466
2482
|
}, params).catch(toError);
|
|
2467
2483
|
}
|
|
2468
2484
|
}]);
|
|
2469
|
-
return Base;
|
|
2470
2485
|
}();
|
|
2471
2486
|
module.exports = Base;
|
|
2472
2487
|
|
|
@@ -2478,29 +2493,28 @@ module.exports = Base;
|
|
|
2478
2493
|
\***********************************/
|
|
2479
2494
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2480
2495
|
|
|
2481
|
-
function _typeof(
|
|
2482
|
-
function _classCallCheck(
|
|
2483
|
-
function _defineProperties(
|
|
2484
|
-
function _createClass(
|
|
2485
|
-
function _toPropertyKey(
|
|
2486
|
-
function _toPrimitive(
|
|
2487
|
-
function
|
|
2488
|
-
function
|
|
2489
|
-
function
|
|
2490
|
-
function
|
|
2491
|
-
function
|
|
2492
|
-
function
|
|
2493
|
-
function
|
|
2496
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2497
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
2498
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
2499
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
2500
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
2501
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2502
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
2503
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
2504
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
2505
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
2506
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
2507
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
2508
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
2494
2509
|
var Base = __webpack_require__(/*! ./base */ "../rest-client/lib/base.js");
|
|
2495
2510
|
var errors = __webpack_require__(/*! @feathersjs/errors */ "../errors/lib/index.js");
|
|
2496
2511
|
var FetchService = /*#__PURE__*/function (_Base) {
|
|
2497
|
-
_inherits(FetchService, _Base);
|
|
2498
|
-
var _super = _createSuper(FetchService);
|
|
2499
2512
|
function FetchService() {
|
|
2500
2513
|
_classCallCheck(this, FetchService);
|
|
2501
|
-
return
|
|
2514
|
+
return _callSuper(this, FetchService, arguments);
|
|
2502
2515
|
}
|
|
2503
|
-
|
|
2516
|
+
_inherits(FetchService, _Base);
|
|
2517
|
+
return _createClass(FetchService, [{
|
|
2504
2518
|
key: "request",
|
|
2505
2519
|
value: function request(options, params) {
|
|
2506
2520
|
var fetchOptions = Object.assign({}, options, params.connection);
|
|
@@ -2533,7 +2547,6 @@ var FetchService = /*#__PURE__*/function (_Base) {
|
|
|
2533
2547
|
});
|
|
2534
2548
|
}
|
|
2535
2549
|
}]);
|
|
2536
|
-
return FetchService;
|
|
2537
2550
|
}(Base);
|
|
2538
2551
|
module.exports = FetchService;
|
|
2539
2552
|
|
|
@@ -2619,28 +2632,27 @@ module.exports["default"] = restClient;
|
|
|
2619
2632
|
\************************************/
|
|
2620
2633
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2621
2634
|
|
|
2622
|
-
function _typeof(
|
|
2623
|
-
function _classCallCheck(
|
|
2624
|
-
function _defineProperties(
|
|
2625
|
-
function _createClass(
|
|
2626
|
-
function _toPropertyKey(
|
|
2627
|
-
function _toPrimitive(
|
|
2628
|
-
function
|
|
2629
|
-
function
|
|
2630
|
-
function
|
|
2631
|
-
function
|
|
2632
|
-
function
|
|
2633
|
-
function
|
|
2634
|
-
function
|
|
2635
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2636
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
2637
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
2638
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
2639
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
2640
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2641
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
2642
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
2643
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
2644
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
2645
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
2646
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
2647
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
2635
2648
|
var Base = __webpack_require__(/*! ./base */ "../rest-client/lib/base.js");
|
|
2636
2649
|
var JQueryService = /*#__PURE__*/function (_Base) {
|
|
2637
|
-
_inherits(JQueryService, _Base);
|
|
2638
|
-
var _super = _createSuper(JQueryService);
|
|
2639
2650
|
function JQueryService() {
|
|
2640
2651
|
_classCallCheck(this, JQueryService);
|
|
2641
|
-
return
|
|
2652
|
+
return _callSuper(this, JQueryService, arguments);
|
|
2642
2653
|
}
|
|
2643
|
-
|
|
2654
|
+
_inherits(JQueryService, _Base);
|
|
2655
|
+
return _createClass(JQueryService, [{
|
|
2644
2656
|
key: "request",
|
|
2645
2657
|
value: function request(options, params) {
|
|
2646
2658
|
var _this = this;
|
|
@@ -2672,7 +2684,6 @@ var JQueryService = /*#__PURE__*/function (_Base) {
|
|
|
2672
2684
|
});
|
|
2673
2685
|
}
|
|
2674
2686
|
}]);
|
|
2675
|
-
return JQueryService;
|
|
2676
2687
|
}(Base);
|
|
2677
2688
|
module.exports = JQueryService;
|
|
2678
2689
|
|
|
@@ -2684,28 +2695,27 @@ module.exports = JQueryService;
|
|
|
2684
2695
|
\*************************************/
|
|
2685
2696
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2686
2697
|
|
|
2687
|
-
function _typeof(
|
|
2688
|
-
function _classCallCheck(
|
|
2689
|
-
function _defineProperties(
|
|
2690
|
-
function _createClass(
|
|
2691
|
-
function _toPropertyKey(
|
|
2692
|
-
function _toPrimitive(
|
|
2693
|
-
function
|
|
2694
|
-
function
|
|
2695
|
-
function
|
|
2696
|
-
function
|
|
2697
|
-
function
|
|
2698
|
-
function
|
|
2699
|
-
function
|
|
2698
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2699
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
2700
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
2701
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
2702
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
2703
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2704
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
2705
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
2706
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
2707
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
2708
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
2709
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
2710
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
2700
2711
|
var Base = __webpack_require__(/*! ./base */ "../rest-client/lib/base.js");
|
|
2701
2712
|
var RequestService = /*#__PURE__*/function (_Base) {
|
|
2702
|
-
_inherits(RequestService, _Base);
|
|
2703
|
-
var _super = _createSuper(RequestService);
|
|
2704
2713
|
function RequestService() {
|
|
2705
2714
|
_classCallCheck(this, RequestService);
|
|
2706
|
-
return
|
|
2715
|
+
return _callSuper(this, RequestService, arguments);
|
|
2707
2716
|
}
|
|
2708
|
-
|
|
2717
|
+
_inherits(RequestService, _Base);
|
|
2718
|
+
return _createClass(RequestService, [{
|
|
2709
2719
|
key: "request",
|
|
2710
2720
|
value: function request(options, params) {
|
|
2711
2721
|
var _this = this;
|
|
@@ -2733,7 +2743,6 @@ var RequestService = /*#__PURE__*/function (_Base) {
|
|
|
2733
2743
|
});
|
|
2734
2744
|
}
|
|
2735
2745
|
}]);
|
|
2736
|
-
return RequestService;
|
|
2737
2746
|
}(Base);
|
|
2738
2747
|
module.exports = RequestService;
|
|
2739
2748
|
|
|
@@ -2745,28 +2754,27 @@ module.exports = RequestService;
|
|
|
2745
2754
|
\****************************************/
|
|
2746
2755
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
2747
2756
|
|
|
2748
|
-
function _typeof(
|
|
2749
|
-
function _classCallCheck(
|
|
2750
|
-
function _defineProperties(
|
|
2751
|
-
function _createClass(
|
|
2752
|
-
function _toPropertyKey(
|
|
2753
|
-
function _toPrimitive(
|
|
2754
|
-
function
|
|
2755
|
-
function
|
|
2756
|
-
function
|
|
2757
|
-
function
|
|
2758
|
-
function
|
|
2759
|
-
function
|
|
2760
|
-
function
|
|
2757
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2758
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
2759
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
2760
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
2761
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
2762
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2763
|
+
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
2764
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
2765
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
2766
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
2767
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
2768
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
2769
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
2761
2770
|
var Base = __webpack_require__(/*! ./base */ "../rest-client/lib/base.js");
|
|
2762
2771
|
var SuperagentService = /*#__PURE__*/function (_Base) {
|
|
2763
|
-
_inherits(SuperagentService, _Base);
|
|
2764
|
-
var _super = _createSuper(SuperagentService);
|
|
2765
2772
|
function SuperagentService() {
|
|
2766
2773
|
_classCallCheck(this, SuperagentService);
|
|
2767
|
-
return
|
|
2774
|
+
return _callSuper(this, SuperagentService, arguments);
|
|
2768
2775
|
}
|
|
2769
|
-
|
|
2776
|
+
_inherits(SuperagentService, _Base);
|
|
2777
|
+
return _createClass(SuperagentService, [{
|
|
2770
2778
|
key: "request",
|
|
2771
2779
|
value: function request(options, params) {
|
|
2772
2780
|
var superagent = this.connection(options.method, options.url).set(this.options.headers || {}).set('Accept', 'application/json').set(params.connection || {}).set(options.headers || {}).type(options.type || 'json');
|
|
@@ -2789,7 +2797,6 @@ var SuperagentService = /*#__PURE__*/function (_Base) {
|
|
|
2789
2797
|
});
|
|
2790
2798
|
}
|
|
2791
2799
|
}]);
|
|
2792
|
-
return SuperagentService;
|
|
2793
2800
|
}(Base);
|
|
2794
2801
|
module.exports = SuperagentService;
|
|
2795
2802
|
|
|
@@ -2859,12 +2866,12 @@ module.exports = __webpack_require__(/*! ./lib/client */ "../transport-commons/l
|
|
|
2859
2866
|
"use strict";
|
|
2860
2867
|
|
|
2861
2868
|
|
|
2862
|
-
function _typeof(
|
|
2863
|
-
function _classCallCheck(
|
|
2864
|
-
function _defineProperties(
|
|
2865
|
-
function _createClass(
|
|
2866
|
-
function _toPropertyKey(
|
|
2867
|
-
function _toPrimitive(
|
|
2869
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2870
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
2871
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
2872
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
2873
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
2874
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
2868
2875
|
var __importDefault = this && this.__importDefault || function (mod) {
|
|
2869
2876
|
return mod && mod.__esModule ? mod : {
|
|
2870
2877
|
"default": mod
|
|
@@ -2916,7 +2923,7 @@ var Service = /*#__PURE__*/function () {
|
|
|
2916
2923
|
this.timeout = options.timeout || 5000;
|
|
2917
2924
|
addEmitterMethods(this);
|
|
2918
2925
|
}
|
|
2919
|
-
_createClass(Service, [{
|
|
2926
|
+
return _createClass(Service, [{
|
|
2920
2927
|
key: "send",
|
|
2921
2928
|
value: function send(method) {
|
|
2922
2929
|
var _this = this;
|
|
@@ -2999,235 +3006,653 @@ var Service = /*#__PURE__*/function () {
|
|
|
2999
3006
|
return this.removeListener.apply(this, [name].concat(args));
|
|
3000
3007
|
}
|
|
3001
3008
|
}]);
|
|
3002
|
-
return Service;
|
|
3003
3009
|
}();
|
|
3004
3010
|
exports.Service = Service;
|
|
3005
3011
|
|
|
3006
3012
|
/***/ }),
|
|
3007
3013
|
|
|
3008
|
-
/***/ "
|
|
3009
|
-
|
|
3010
|
-
!***
|
|
3011
|
-
|
|
3014
|
+
/***/ "./src/index.js":
|
|
3015
|
+
/*!**********************!*\
|
|
3016
|
+
!*** ./src/index.js ***!
|
|
3017
|
+
\**********************/
|
|
3012
3018
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3013
3019
|
|
|
3014
|
-
|
|
3020
|
+
var feathers = __webpack_require__(/*! @feathersjs/feathers */ "../feathers/lib/index.js");
|
|
3021
|
+
var errors = __webpack_require__(/*! @feathersjs/errors */ "../errors/lib/index.js");
|
|
3022
|
+
var authentication = __webpack_require__(/*! @feathersjs/authentication-client */ "../authentication-client/lib/index.js");
|
|
3023
|
+
var rest = __webpack_require__(/*! @feathersjs/rest-client */ "../rest-client/lib/index.js");
|
|
3024
|
+
var socketio = __webpack_require__(/*! @feathersjs/socketio-client */ "../socketio-client/lib/index.js");
|
|
3025
|
+
var primus = __webpack_require__(/*! @feathersjs/primus-client */ "../primus-client/lib/index.js");
|
|
3026
|
+
Object.assign(feathers, {
|
|
3027
|
+
errors: errors,
|
|
3028
|
+
socketio: socketio,
|
|
3029
|
+
primus: primus,
|
|
3030
|
+
rest: rest,
|
|
3031
|
+
authentication: authentication
|
|
3032
|
+
});
|
|
3033
|
+
module.exports = feathers;
|
|
3015
3034
|
|
|
3035
|
+
/***/ }),
|
|
3016
3036
|
|
|
3017
|
-
|
|
3037
|
+
/***/ "../../node_modules/call-bind-apply-helpers/actualApply.js":
|
|
3038
|
+
/*!*****************************************************************!*\
|
|
3039
|
+
!*** ../../node_modules/call-bind-apply-helpers/actualApply.js ***!
|
|
3040
|
+
\*****************************************************************/
|
|
3041
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3018
3042
|
|
|
3019
|
-
|
|
3043
|
+
"use strict";
|
|
3020
3044
|
|
|
3021
|
-
var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
|
|
3022
3045
|
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3027
|
-
|
|
3028
|
-
|
|
3029
|
-
}
|
|
3046
|
+
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
|
3047
|
+
|
|
3048
|
+
var $apply = __webpack_require__(/*! ./functionApply */ "../../node_modules/call-bind-apply-helpers/functionApply.js");
|
|
3049
|
+
var $call = __webpack_require__(/*! ./functionCall */ "../../node_modules/call-bind-apply-helpers/functionCall.js");
|
|
3050
|
+
var $reflectApply = __webpack_require__(/*! ./reflectApply */ "../../node_modules/call-bind-apply-helpers/reflectApply.js");
|
|
3051
|
+
|
|
3052
|
+
/** @type {import('./actualApply')} */
|
|
3053
|
+
module.exports = $reflectApply || bind.call($call, $apply);
|
|
3030
3054
|
|
|
3031
3055
|
|
|
3032
3056
|
/***/ }),
|
|
3033
3057
|
|
|
3034
|
-
/***/ "../../node_modules/call-bind/
|
|
3035
|
-
|
|
3036
|
-
!*** ../../node_modules/call-bind/
|
|
3037
|
-
|
|
3038
|
-
/***/ (function(module
|
|
3058
|
+
/***/ "../../node_modules/call-bind-apply-helpers/functionApply.js":
|
|
3059
|
+
/*!*******************************************************************!*\
|
|
3060
|
+
!*** ../../node_modules/call-bind-apply-helpers/functionApply.js ***!
|
|
3061
|
+
\*******************************************************************/
|
|
3062
|
+
/***/ (function(module) {
|
|
3039
3063
|
|
|
3040
3064
|
"use strict";
|
|
3041
3065
|
|
|
3042
3066
|
|
|
3043
|
-
|
|
3044
|
-
|
|
3067
|
+
/** @type {import('./functionApply')} */
|
|
3068
|
+
module.exports = Function.prototype.apply;
|
|
3045
3069
|
|
|
3046
|
-
var $apply = GetIntrinsic('%Function.prototype.apply%');
|
|
3047
|
-
var $call = GetIntrinsic('%Function.prototype.call%');
|
|
3048
|
-
var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
|
|
3049
3070
|
|
|
3050
|
-
|
|
3051
|
-
var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
|
|
3052
|
-
var $max = GetIntrinsic('%Math.max%');
|
|
3071
|
+
/***/ }),
|
|
3053
3072
|
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
$defineProperty = null;
|
|
3060
|
-
}
|
|
3061
|
-
}
|
|
3073
|
+
/***/ "../../node_modules/call-bind-apply-helpers/functionCall.js":
|
|
3074
|
+
/*!******************************************************************!*\
|
|
3075
|
+
!*** ../../node_modules/call-bind-apply-helpers/functionCall.js ***!
|
|
3076
|
+
\******************************************************************/
|
|
3077
|
+
/***/ (function(module) {
|
|
3062
3078
|
|
|
3063
|
-
|
|
3064
|
-
var func = $reflectApply(bind, $call, arguments);
|
|
3065
|
-
if ($gOPD && $defineProperty) {
|
|
3066
|
-
var desc = $gOPD(func, 'length');
|
|
3067
|
-
if (desc.configurable) {
|
|
3068
|
-
// original length, plus the receiver, minus any additional arguments (after the receiver)
|
|
3069
|
-
$defineProperty(
|
|
3070
|
-
func,
|
|
3071
|
-
'length',
|
|
3072
|
-
{ value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
|
|
3073
|
-
);
|
|
3074
|
-
}
|
|
3075
|
-
}
|
|
3076
|
-
return func;
|
|
3077
|
-
};
|
|
3079
|
+
"use strict";
|
|
3078
3080
|
|
|
3079
|
-
var applyBind = function applyBind() {
|
|
3080
|
-
return $reflectApply(bind, $apply, arguments);
|
|
3081
|
-
};
|
|
3082
3081
|
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
} else {
|
|
3086
|
-
module.exports.apply = applyBind;
|
|
3087
|
-
}
|
|
3082
|
+
/** @type {import('./functionCall')} */
|
|
3083
|
+
module.exports = Function.prototype.call;
|
|
3088
3084
|
|
|
3089
3085
|
|
|
3090
3086
|
/***/ }),
|
|
3091
3087
|
|
|
3092
|
-
/***/ "../../node_modules/
|
|
3093
|
-
|
|
3094
|
-
!*** ../../node_modules/
|
|
3095
|
-
|
|
3096
|
-
/***/ (function(module) {
|
|
3088
|
+
/***/ "../../node_modules/call-bind-apply-helpers/index.js":
|
|
3089
|
+
/*!***********************************************************!*\
|
|
3090
|
+
!*** ../../node_modules/call-bind-apply-helpers/index.js ***!
|
|
3091
|
+
\***********************************************************/
|
|
3092
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3097
3093
|
|
|
3098
3094
|
"use strict";
|
|
3099
|
-
// Copyright Joyent, Inc. and other Node contributors.
|
|
3100
|
-
//
|
|
3101
|
-
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
3102
|
-
// copy of this software and associated documentation files (the
|
|
3103
|
-
// "Software"), to deal in the Software without restriction, including
|
|
3104
|
-
// without limitation the rights to use, copy, modify, merge, publish,
|
|
3105
|
-
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
3106
|
-
// persons to whom the Software is furnished to do so, subject to the
|
|
3107
|
-
// following conditions:
|
|
3108
|
-
//
|
|
3109
|
-
// The above copyright notice and this permission notice shall be included
|
|
3110
|
-
// in all copies or substantial portions of the Software.
|
|
3111
|
-
//
|
|
3112
|
-
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
3113
|
-
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
3114
|
-
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
3115
|
-
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
3116
|
-
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
3117
|
-
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
3118
|
-
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
3119
3095
|
|
|
3120
3096
|
|
|
3097
|
+
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
|
3098
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../../node_modules/es-errors/type.js");
|
|
3121
3099
|
|
|
3122
|
-
var
|
|
3123
|
-
var
|
|
3124
|
-
? R.apply
|
|
3125
|
-
: function ReflectApply(target, receiver, args) {
|
|
3126
|
-
return Function.prototype.apply.call(target, receiver, args);
|
|
3127
|
-
}
|
|
3100
|
+
var $call = __webpack_require__(/*! ./functionCall */ "../../node_modules/call-bind-apply-helpers/functionCall.js");
|
|
3101
|
+
var $actualApply = __webpack_require__(/*! ./actualApply */ "../../node_modules/call-bind-apply-helpers/actualApply.js");
|
|
3128
3102
|
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
};
|
|
3137
|
-
} else {
|
|
3138
|
-
ReflectOwnKeys = function ReflectOwnKeys(target) {
|
|
3139
|
-
return Object.getOwnPropertyNames(target);
|
|
3140
|
-
};
|
|
3141
|
-
}
|
|
3103
|
+
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
3104
|
+
module.exports = function callBindBasic(args) {
|
|
3105
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
3106
|
+
throw new $TypeError('a function is required');
|
|
3107
|
+
}
|
|
3108
|
+
return $actualApply(bind, $call, args);
|
|
3109
|
+
};
|
|
3142
3110
|
|
|
3143
|
-
function ProcessEmitWarning(warning) {
|
|
3144
|
-
if (console && console.warn) console.warn(warning);
|
|
3145
|
-
}
|
|
3146
3111
|
|
|
3147
|
-
|
|
3148
|
-
return value !== value;
|
|
3149
|
-
}
|
|
3112
|
+
/***/ }),
|
|
3150
3113
|
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
module
|
|
3114
|
+
/***/ "../../node_modules/call-bind-apply-helpers/reflectApply.js":
|
|
3115
|
+
/*!******************************************************************!*\
|
|
3116
|
+
!*** ../../node_modules/call-bind-apply-helpers/reflectApply.js ***!
|
|
3117
|
+
\******************************************************************/
|
|
3118
|
+
/***/ (function(module) {
|
|
3156
3119
|
|
|
3157
|
-
|
|
3158
|
-
EventEmitter.EventEmitter = EventEmitter;
|
|
3120
|
+
"use strict";
|
|
3159
3121
|
|
|
3160
|
-
EventEmitter.prototype._events = undefined;
|
|
3161
|
-
EventEmitter.prototype._eventsCount = 0;
|
|
3162
|
-
EventEmitter.prototype._maxListeners = undefined;
|
|
3163
3122
|
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
var defaultMaxListeners = 10;
|
|
3123
|
+
/** @type {import('./reflectApply')} */
|
|
3124
|
+
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
3167
3125
|
|
|
3168
|
-
function checkListener(listener) {
|
|
3169
|
-
if (typeof listener !== 'function') {
|
|
3170
|
-
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
|
3171
|
-
}
|
|
3172
|
-
}
|
|
3173
3126
|
|
|
3174
|
-
|
|
3175
|
-
enumerable: true,
|
|
3176
|
-
get: function() {
|
|
3177
|
-
return defaultMaxListeners;
|
|
3178
|
-
},
|
|
3179
|
-
set: function(arg) {
|
|
3180
|
-
if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {
|
|
3181
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.');
|
|
3182
|
-
}
|
|
3183
|
-
defaultMaxListeners = arg;
|
|
3184
|
-
}
|
|
3185
|
-
});
|
|
3127
|
+
/***/ }),
|
|
3186
3128
|
|
|
3187
|
-
|
|
3129
|
+
/***/ "../../node_modules/call-bound/index.js":
|
|
3130
|
+
/*!**********************************************!*\
|
|
3131
|
+
!*** ../../node_modules/call-bound/index.js ***!
|
|
3132
|
+
\**********************************************/
|
|
3133
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3188
3134
|
|
|
3189
|
-
|
|
3190
|
-
this._events === Object.getPrototypeOf(this)._events) {
|
|
3191
|
-
this._events = Object.create(null);
|
|
3192
|
-
this._eventsCount = 0;
|
|
3193
|
-
}
|
|
3135
|
+
"use strict";
|
|
3194
3136
|
|
|
3195
|
-
this._maxListeners = this._maxListeners || undefined;
|
|
3196
|
-
};
|
|
3197
3137
|
|
|
3198
|
-
|
|
3199
|
-
// that to be increased. Set to zero for unlimited.
|
|
3200
|
-
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
|
|
3201
|
-
if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {
|
|
3202
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.');
|
|
3203
|
-
}
|
|
3204
|
-
this._maxListeners = n;
|
|
3205
|
-
return this;
|
|
3206
|
-
};
|
|
3138
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
|
3207
3139
|
|
|
3208
|
-
|
|
3209
|
-
if (that._maxListeners === undefined)
|
|
3210
|
-
return EventEmitter.defaultMaxListeners;
|
|
3211
|
-
return that._maxListeners;
|
|
3212
|
-
}
|
|
3140
|
+
var callBindBasic = __webpack_require__(/*! call-bind-apply-helpers */ "../../node_modules/call-bind-apply-helpers/index.js");
|
|
3213
3141
|
|
|
3214
|
-
|
|
3215
|
-
|
|
3142
|
+
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
3143
|
+
var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
3144
|
+
|
|
3145
|
+
/** @type {import('.')} */
|
|
3146
|
+
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
3147
|
+
/* eslint no-extra-parens: 0 */
|
|
3148
|
+
|
|
3149
|
+
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
|
|
3150
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
3151
|
+
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
3152
|
+
}
|
|
3153
|
+
return intrinsic;
|
|
3216
3154
|
};
|
|
3217
3155
|
|
|
3218
|
-
EventEmitter.prototype.emit = function emit(type) {
|
|
3219
|
-
var args = [];
|
|
3220
|
-
for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);
|
|
3221
|
-
var doError = (type === 'error');
|
|
3222
3156
|
|
|
3223
|
-
|
|
3224
|
-
if (events !== undefined)
|
|
3225
|
-
doError = (doError && events.error === undefined);
|
|
3226
|
-
else if (!doError)
|
|
3227
|
-
return false;
|
|
3157
|
+
/***/ }),
|
|
3228
3158
|
|
|
3229
|
-
|
|
3230
|
-
|
|
3159
|
+
/***/ "../../node_modules/debug/node_modules/ms/index.js":
|
|
3160
|
+
/*!*********************************************************!*\
|
|
3161
|
+
!*** ../../node_modules/debug/node_modules/ms/index.js ***!
|
|
3162
|
+
\*********************************************************/
|
|
3163
|
+
/***/ (function(module) {
|
|
3164
|
+
|
|
3165
|
+
/**
|
|
3166
|
+
* Helpers.
|
|
3167
|
+
*/
|
|
3168
|
+
|
|
3169
|
+
var s = 1000;
|
|
3170
|
+
var m = s * 60;
|
|
3171
|
+
var h = m * 60;
|
|
3172
|
+
var d = h * 24;
|
|
3173
|
+
var w = d * 7;
|
|
3174
|
+
var y = d * 365.25;
|
|
3175
|
+
|
|
3176
|
+
/**
|
|
3177
|
+
* Parse or format the given `val`.
|
|
3178
|
+
*
|
|
3179
|
+
* Options:
|
|
3180
|
+
*
|
|
3181
|
+
* - `long` verbose formatting [false]
|
|
3182
|
+
*
|
|
3183
|
+
* @param {String|Number} val
|
|
3184
|
+
* @param {Object} [options]
|
|
3185
|
+
* @throws {Error} throw an error if val is not a non-empty string or a number
|
|
3186
|
+
* @return {String|Number}
|
|
3187
|
+
* @api public
|
|
3188
|
+
*/
|
|
3189
|
+
|
|
3190
|
+
module.exports = function (val, options) {
|
|
3191
|
+
options = options || {};
|
|
3192
|
+
var type = typeof val;
|
|
3193
|
+
if (type === 'string' && val.length > 0) {
|
|
3194
|
+
return parse(val);
|
|
3195
|
+
} else if (type === 'number' && isFinite(val)) {
|
|
3196
|
+
return options.long ? fmtLong(val) : fmtShort(val);
|
|
3197
|
+
}
|
|
3198
|
+
throw new Error(
|
|
3199
|
+
'val is not a non-empty string or a valid number. val=' +
|
|
3200
|
+
JSON.stringify(val)
|
|
3201
|
+
);
|
|
3202
|
+
};
|
|
3203
|
+
|
|
3204
|
+
/**
|
|
3205
|
+
* Parse the given `str` and return milliseconds.
|
|
3206
|
+
*
|
|
3207
|
+
* @param {String} str
|
|
3208
|
+
* @return {Number}
|
|
3209
|
+
* @api private
|
|
3210
|
+
*/
|
|
3211
|
+
|
|
3212
|
+
function parse(str) {
|
|
3213
|
+
str = String(str);
|
|
3214
|
+
if (str.length > 100) {
|
|
3215
|
+
return;
|
|
3216
|
+
}
|
|
3217
|
+
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
3218
|
+
str
|
|
3219
|
+
);
|
|
3220
|
+
if (!match) {
|
|
3221
|
+
return;
|
|
3222
|
+
}
|
|
3223
|
+
var n = parseFloat(match[1]);
|
|
3224
|
+
var type = (match[2] || 'ms').toLowerCase();
|
|
3225
|
+
switch (type) {
|
|
3226
|
+
case 'years':
|
|
3227
|
+
case 'year':
|
|
3228
|
+
case 'yrs':
|
|
3229
|
+
case 'yr':
|
|
3230
|
+
case 'y':
|
|
3231
|
+
return n * y;
|
|
3232
|
+
case 'weeks':
|
|
3233
|
+
case 'week':
|
|
3234
|
+
case 'w':
|
|
3235
|
+
return n * w;
|
|
3236
|
+
case 'days':
|
|
3237
|
+
case 'day':
|
|
3238
|
+
case 'd':
|
|
3239
|
+
return n * d;
|
|
3240
|
+
case 'hours':
|
|
3241
|
+
case 'hour':
|
|
3242
|
+
case 'hrs':
|
|
3243
|
+
case 'hr':
|
|
3244
|
+
case 'h':
|
|
3245
|
+
return n * h;
|
|
3246
|
+
case 'minutes':
|
|
3247
|
+
case 'minute':
|
|
3248
|
+
case 'mins':
|
|
3249
|
+
case 'min':
|
|
3250
|
+
case 'm':
|
|
3251
|
+
return n * m;
|
|
3252
|
+
case 'seconds':
|
|
3253
|
+
case 'second':
|
|
3254
|
+
case 'secs':
|
|
3255
|
+
case 'sec':
|
|
3256
|
+
case 's':
|
|
3257
|
+
return n * s;
|
|
3258
|
+
case 'milliseconds':
|
|
3259
|
+
case 'millisecond':
|
|
3260
|
+
case 'msecs':
|
|
3261
|
+
case 'msec':
|
|
3262
|
+
case 'ms':
|
|
3263
|
+
return n;
|
|
3264
|
+
default:
|
|
3265
|
+
return undefined;
|
|
3266
|
+
}
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
/**
|
|
3270
|
+
* Short format for `ms`.
|
|
3271
|
+
*
|
|
3272
|
+
* @param {Number} ms
|
|
3273
|
+
* @return {String}
|
|
3274
|
+
* @api private
|
|
3275
|
+
*/
|
|
3276
|
+
|
|
3277
|
+
function fmtShort(ms) {
|
|
3278
|
+
var msAbs = Math.abs(ms);
|
|
3279
|
+
if (msAbs >= d) {
|
|
3280
|
+
return Math.round(ms / d) + 'd';
|
|
3281
|
+
}
|
|
3282
|
+
if (msAbs >= h) {
|
|
3283
|
+
return Math.round(ms / h) + 'h';
|
|
3284
|
+
}
|
|
3285
|
+
if (msAbs >= m) {
|
|
3286
|
+
return Math.round(ms / m) + 'm';
|
|
3287
|
+
}
|
|
3288
|
+
if (msAbs >= s) {
|
|
3289
|
+
return Math.round(ms / s) + 's';
|
|
3290
|
+
}
|
|
3291
|
+
return ms + 'ms';
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
/**
|
|
3295
|
+
* Long format for `ms`.
|
|
3296
|
+
*
|
|
3297
|
+
* @param {Number} ms
|
|
3298
|
+
* @return {String}
|
|
3299
|
+
* @api private
|
|
3300
|
+
*/
|
|
3301
|
+
|
|
3302
|
+
function fmtLong(ms) {
|
|
3303
|
+
var msAbs = Math.abs(ms);
|
|
3304
|
+
if (msAbs >= d) {
|
|
3305
|
+
return plural(ms, msAbs, d, 'day');
|
|
3306
|
+
}
|
|
3307
|
+
if (msAbs >= h) {
|
|
3308
|
+
return plural(ms, msAbs, h, 'hour');
|
|
3309
|
+
}
|
|
3310
|
+
if (msAbs >= m) {
|
|
3311
|
+
return plural(ms, msAbs, m, 'minute');
|
|
3312
|
+
}
|
|
3313
|
+
if (msAbs >= s) {
|
|
3314
|
+
return plural(ms, msAbs, s, 'second');
|
|
3315
|
+
}
|
|
3316
|
+
return ms + ' ms';
|
|
3317
|
+
}
|
|
3318
|
+
|
|
3319
|
+
/**
|
|
3320
|
+
* Pluralization helper.
|
|
3321
|
+
*/
|
|
3322
|
+
|
|
3323
|
+
function plural(ms, msAbs, n, name) {
|
|
3324
|
+
var isPlural = msAbs >= n * 1.5;
|
|
3325
|
+
return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3328
|
+
|
|
3329
|
+
/***/ }),
|
|
3330
|
+
|
|
3331
|
+
/***/ "../../node_modules/dunder-proto/get.js":
|
|
3332
|
+
/*!**********************************************!*\
|
|
3333
|
+
!*** ../../node_modules/dunder-proto/get.js ***!
|
|
3334
|
+
\**********************************************/
|
|
3335
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
3336
|
+
|
|
3337
|
+
"use strict";
|
|
3338
|
+
|
|
3339
|
+
|
|
3340
|
+
var callBind = __webpack_require__(/*! call-bind-apply-helpers */ "../../node_modules/call-bind-apply-helpers/index.js");
|
|
3341
|
+
var gOPD = __webpack_require__(/*! gopd */ "../../node_modules/gopd/index.js");
|
|
3342
|
+
|
|
3343
|
+
var hasProtoAccessor;
|
|
3344
|
+
try {
|
|
3345
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
3346
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
3347
|
+
} catch (e) {
|
|
3348
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
3349
|
+
throw e;
|
|
3350
|
+
}
|
|
3351
|
+
}
|
|
3352
|
+
|
|
3353
|
+
// eslint-disable-next-line no-extra-parens
|
|
3354
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
3355
|
+
|
|
3356
|
+
var $Object = Object;
|
|
3357
|
+
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
3358
|
+
|
|
3359
|
+
/** @type {import('./get')} */
|
|
3360
|
+
module.exports = desc && typeof desc.get === 'function'
|
|
3361
|
+
? callBind([desc.get])
|
|
3362
|
+
: typeof $getPrototypeOf === 'function'
|
|
3363
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
3364
|
+
// eslint-disable-next-line eqeqeq
|
|
3365
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
3366
|
+
}
|
|
3367
|
+
: false;
|
|
3368
|
+
|
|
3369
|
+
|
|
3370
|
+
/***/ }),
|
|
3371
|
+
|
|
3372
|
+
/***/ "../../node_modules/es-define-property/index.js":
|
|
3373
|
+
/*!******************************************************!*\
|
|
3374
|
+
!*** ../../node_modules/es-define-property/index.js ***!
|
|
3375
|
+
\******************************************************/
|
|
3376
|
+
/***/ (function(module) {
|
|
3377
|
+
|
|
3378
|
+
"use strict";
|
|
3379
|
+
|
|
3380
|
+
|
|
3381
|
+
/** @type {import('.')} */
|
|
3382
|
+
var $defineProperty = Object.defineProperty || false;
|
|
3383
|
+
if ($defineProperty) {
|
|
3384
|
+
try {
|
|
3385
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
3386
|
+
} catch (e) {
|
|
3387
|
+
// IE 8 has a broken defineProperty
|
|
3388
|
+
$defineProperty = false;
|
|
3389
|
+
}
|
|
3390
|
+
}
|
|
3391
|
+
|
|
3392
|
+
module.exports = $defineProperty;
|
|
3393
|
+
|
|
3394
|
+
|
|
3395
|
+
/***/ }),
|
|
3396
|
+
|
|
3397
|
+
/***/ "../../node_modules/es-errors/eval.js":
|
|
3398
|
+
/*!********************************************!*\
|
|
3399
|
+
!*** ../../node_modules/es-errors/eval.js ***!
|
|
3400
|
+
\********************************************/
|
|
3401
|
+
/***/ (function(module) {
|
|
3402
|
+
|
|
3403
|
+
"use strict";
|
|
3404
|
+
|
|
3405
|
+
|
|
3406
|
+
/** @type {import('./eval')} */
|
|
3407
|
+
module.exports = EvalError;
|
|
3408
|
+
|
|
3409
|
+
|
|
3410
|
+
/***/ }),
|
|
3411
|
+
|
|
3412
|
+
/***/ "../../node_modules/es-errors/index.js":
|
|
3413
|
+
/*!*********************************************!*\
|
|
3414
|
+
!*** ../../node_modules/es-errors/index.js ***!
|
|
3415
|
+
\*********************************************/
|
|
3416
|
+
/***/ (function(module) {
|
|
3417
|
+
|
|
3418
|
+
"use strict";
|
|
3419
|
+
|
|
3420
|
+
|
|
3421
|
+
/** @type {import('.')} */
|
|
3422
|
+
module.exports = Error;
|
|
3423
|
+
|
|
3424
|
+
|
|
3425
|
+
/***/ }),
|
|
3426
|
+
|
|
3427
|
+
/***/ "../../node_modules/es-errors/range.js":
|
|
3428
|
+
/*!*********************************************!*\
|
|
3429
|
+
!*** ../../node_modules/es-errors/range.js ***!
|
|
3430
|
+
\*********************************************/
|
|
3431
|
+
/***/ (function(module) {
|
|
3432
|
+
|
|
3433
|
+
"use strict";
|
|
3434
|
+
|
|
3435
|
+
|
|
3436
|
+
/** @type {import('./range')} */
|
|
3437
|
+
module.exports = RangeError;
|
|
3438
|
+
|
|
3439
|
+
|
|
3440
|
+
/***/ }),
|
|
3441
|
+
|
|
3442
|
+
/***/ "../../node_modules/es-errors/ref.js":
|
|
3443
|
+
/*!*******************************************!*\
|
|
3444
|
+
!*** ../../node_modules/es-errors/ref.js ***!
|
|
3445
|
+
\*******************************************/
|
|
3446
|
+
/***/ (function(module) {
|
|
3447
|
+
|
|
3448
|
+
"use strict";
|
|
3449
|
+
|
|
3450
|
+
|
|
3451
|
+
/** @type {import('./ref')} */
|
|
3452
|
+
module.exports = ReferenceError;
|
|
3453
|
+
|
|
3454
|
+
|
|
3455
|
+
/***/ }),
|
|
3456
|
+
|
|
3457
|
+
/***/ "../../node_modules/es-errors/syntax.js":
|
|
3458
|
+
/*!**********************************************!*\
|
|
3459
|
+
!*** ../../node_modules/es-errors/syntax.js ***!
|
|
3460
|
+
\**********************************************/
|
|
3461
|
+
/***/ (function(module) {
|
|
3462
|
+
|
|
3463
|
+
"use strict";
|
|
3464
|
+
|
|
3465
|
+
|
|
3466
|
+
/** @type {import('./syntax')} */
|
|
3467
|
+
module.exports = SyntaxError;
|
|
3468
|
+
|
|
3469
|
+
|
|
3470
|
+
/***/ }),
|
|
3471
|
+
|
|
3472
|
+
/***/ "../../node_modules/es-errors/type.js":
|
|
3473
|
+
/*!********************************************!*\
|
|
3474
|
+
!*** ../../node_modules/es-errors/type.js ***!
|
|
3475
|
+
\********************************************/
|
|
3476
|
+
/***/ (function(module) {
|
|
3477
|
+
|
|
3478
|
+
"use strict";
|
|
3479
|
+
|
|
3480
|
+
|
|
3481
|
+
/** @type {import('./type')} */
|
|
3482
|
+
module.exports = TypeError;
|
|
3483
|
+
|
|
3484
|
+
|
|
3485
|
+
/***/ }),
|
|
3486
|
+
|
|
3487
|
+
/***/ "../../node_modules/es-errors/uri.js":
|
|
3488
|
+
/*!*******************************************!*\
|
|
3489
|
+
!*** ../../node_modules/es-errors/uri.js ***!
|
|
3490
|
+
\*******************************************/
|
|
3491
|
+
/***/ (function(module) {
|
|
3492
|
+
|
|
3493
|
+
"use strict";
|
|
3494
|
+
|
|
3495
|
+
|
|
3496
|
+
/** @type {import('./uri')} */
|
|
3497
|
+
module.exports = URIError;
|
|
3498
|
+
|
|
3499
|
+
|
|
3500
|
+
/***/ }),
|
|
3501
|
+
|
|
3502
|
+
/***/ "../../node_modules/es-object-atoms/index.js":
|
|
3503
|
+
/*!***************************************************!*\
|
|
3504
|
+
!*** ../../node_modules/es-object-atoms/index.js ***!
|
|
3505
|
+
\***************************************************/
|
|
3506
|
+
/***/ (function(module) {
|
|
3507
|
+
|
|
3508
|
+
"use strict";
|
|
3509
|
+
|
|
3510
|
+
|
|
3511
|
+
/** @type {import('.')} */
|
|
3512
|
+
module.exports = Object;
|
|
3513
|
+
|
|
3514
|
+
|
|
3515
|
+
/***/ }),
|
|
3516
|
+
|
|
3517
|
+
/***/ "../../node_modules/events/events.js":
|
|
3518
|
+
/*!*******************************************!*\
|
|
3519
|
+
!*** ../../node_modules/events/events.js ***!
|
|
3520
|
+
\*******************************************/
|
|
3521
|
+
/***/ (function(module) {
|
|
3522
|
+
|
|
3523
|
+
"use strict";
|
|
3524
|
+
// Copyright Joyent, Inc. and other Node contributors.
|
|
3525
|
+
//
|
|
3526
|
+
// Permission is hereby granted, free of charge, to any person obtaining a
|
|
3527
|
+
// copy of this software and associated documentation files (the
|
|
3528
|
+
// "Software"), to deal in the Software without restriction, including
|
|
3529
|
+
// without limitation the rights to use, copy, modify, merge, publish,
|
|
3530
|
+
// distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
3531
|
+
// persons to whom the Software is furnished to do so, subject to the
|
|
3532
|
+
// following conditions:
|
|
3533
|
+
//
|
|
3534
|
+
// The above copyright notice and this permission notice shall be included
|
|
3535
|
+
// in all copies or substantial portions of the Software.
|
|
3536
|
+
//
|
|
3537
|
+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
3538
|
+
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
3539
|
+
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
3540
|
+
// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
3541
|
+
// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
3542
|
+
// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
3543
|
+
// USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
3544
|
+
|
|
3545
|
+
|
|
3546
|
+
|
|
3547
|
+
var R = typeof Reflect === 'object' ? Reflect : null
|
|
3548
|
+
var ReflectApply = R && typeof R.apply === 'function'
|
|
3549
|
+
? R.apply
|
|
3550
|
+
: function ReflectApply(target, receiver, args) {
|
|
3551
|
+
return Function.prototype.apply.call(target, receiver, args);
|
|
3552
|
+
}
|
|
3553
|
+
|
|
3554
|
+
var ReflectOwnKeys
|
|
3555
|
+
if (R && typeof R.ownKeys === 'function') {
|
|
3556
|
+
ReflectOwnKeys = R.ownKeys
|
|
3557
|
+
} else if (Object.getOwnPropertySymbols) {
|
|
3558
|
+
ReflectOwnKeys = function ReflectOwnKeys(target) {
|
|
3559
|
+
return Object.getOwnPropertyNames(target)
|
|
3560
|
+
.concat(Object.getOwnPropertySymbols(target));
|
|
3561
|
+
};
|
|
3562
|
+
} else {
|
|
3563
|
+
ReflectOwnKeys = function ReflectOwnKeys(target) {
|
|
3564
|
+
return Object.getOwnPropertyNames(target);
|
|
3565
|
+
};
|
|
3566
|
+
}
|
|
3567
|
+
|
|
3568
|
+
function ProcessEmitWarning(warning) {
|
|
3569
|
+
if (console && console.warn) console.warn(warning);
|
|
3570
|
+
}
|
|
3571
|
+
|
|
3572
|
+
var NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {
|
|
3573
|
+
return value !== value;
|
|
3574
|
+
}
|
|
3575
|
+
|
|
3576
|
+
function EventEmitter() {
|
|
3577
|
+
EventEmitter.init.call(this);
|
|
3578
|
+
}
|
|
3579
|
+
module.exports = EventEmitter;
|
|
3580
|
+
module.exports.once = once;
|
|
3581
|
+
|
|
3582
|
+
// Backwards-compat with node 0.10.x
|
|
3583
|
+
EventEmitter.EventEmitter = EventEmitter;
|
|
3584
|
+
|
|
3585
|
+
EventEmitter.prototype._events = undefined;
|
|
3586
|
+
EventEmitter.prototype._eventsCount = 0;
|
|
3587
|
+
EventEmitter.prototype._maxListeners = undefined;
|
|
3588
|
+
|
|
3589
|
+
// By default EventEmitters will print a warning if more than 10 listeners are
|
|
3590
|
+
// added to it. This is a useful default which helps finding memory leaks.
|
|
3591
|
+
var defaultMaxListeners = 10;
|
|
3592
|
+
|
|
3593
|
+
function checkListener(listener) {
|
|
3594
|
+
if (typeof listener !== 'function') {
|
|
3595
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
|
3596
|
+
}
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
Object.defineProperty(EventEmitter, 'defaultMaxListeners', {
|
|
3600
|
+
enumerable: true,
|
|
3601
|
+
get: function() {
|
|
3602
|
+
return defaultMaxListeners;
|
|
3603
|
+
},
|
|
3604
|
+
set: function(arg) {
|
|
3605
|
+
if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {
|
|
3606
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + '.');
|
|
3607
|
+
}
|
|
3608
|
+
defaultMaxListeners = arg;
|
|
3609
|
+
}
|
|
3610
|
+
});
|
|
3611
|
+
|
|
3612
|
+
EventEmitter.init = function() {
|
|
3613
|
+
|
|
3614
|
+
if (this._events === undefined ||
|
|
3615
|
+
this._events === Object.getPrototypeOf(this)._events) {
|
|
3616
|
+
this._events = Object.create(null);
|
|
3617
|
+
this._eventsCount = 0;
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
this._maxListeners = this._maxListeners || undefined;
|
|
3621
|
+
};
|
|
3622
|
+
|
|
3623
|
+
// Obviously not all Emitters should be limited to 10. This function allows
|
|
3624
|
+
// that to be increased. Set to zero for unlimited.
|
|
3625
|
+
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
|
|
3626
|
+
if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {
|
|
3627
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + '.');
|
|
3628
|
+
}
|
|
3629
|
+
this._maxListeners = n;
|
|
3630
|
+
return this;
|
|
3631
|
+
};
|
|
3632
|
+
|
|
3633
|
+
function _getMaxListeners(that) {
|
|
3634
|
+
if (that._maxListeners === undefined)
|
|
3635
|
+
return EventEmitter.defaultMaxListeners;
|
|
3636
|
+
return that._maxListeners;
|
|
3637
|
+
}
|
|
3638
|
+
|
|
3639
|
+
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
|
3640
|
+
return _getMaxListeners(this);
|
|
3641
|
+
};
|
|
3642
|
+
|
|
3643
|
+
EventEmitter.prototype.emit = function emit(type) {
|
|
3644
|
+
var args = [];
|
|
3645
|
+
for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);
|
|
3646
|
+
var doError = (type === 'error');
|
|
3647
|
+
|
|
3648
|
+
var events = this._events;
|
|
3649
|
+
if (events !== undefined)
|
|
3650
|
+
doError = (doError && events.error === undefined);
|
|
3651
|
+
else if (!doError)
|
|
3652
|
+
return false;
|
|
3653
|
+
|
|
3654
|
+
// If there is no 'error' event listener then throw.
|
|
3655
|
+
if (doError) {
|
|
3231
3656
|
var er;
|
|
3232
3657
|
if (args.length > 0)
|
|
3233
3658
|
er = args[0];
|
|
@@ -3609,43 +4034,75 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
|
3609
4034
|
/* eslint no-invalid-this: 1 */
|
|
3610
4035
|
|
|
3611
4036
|
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
3612
|
-
var slice = Array.prototype.slice;
|
|
3613
4037
|
var toStr = Object.prototype.toString;
|
|
4038
|
+
var max = Math.max;
|
|
3614
4039
|
var funcType = '[object Function]';
|
|
3615
4040
|
|
|
4041
|
+
var concatty = function concatty(a, b) {
|
|
4042
|
+
var arr = [];
|
|
4043
|
+
|
|
4044
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
4045
|
+
arr[i] = a[i];
|
|
4046
|
+
}
|
|
4047
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
4048
|
+
arr[j + a.length] = b[j];
|
|
4049
|
+
}
|
|
4050
|
+
|
|
4051
|
+
return arr;
|
|
4052
|
+
};
|
|
4053
|
+
|
|
4054
|
+
var slicy = function slicy(arrLike, offset) {
|
|
4055
|
+
var arr = [];
|
|
4056
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
4057
|
+
arr[j] = arrLike[i];
|
|
4058
|
+
}
|
|
4059
|
+
return arr;
|
|
4060
|
+
};
|
|
4061
|
+
|
|
4062
|
+
var joiny = function (arr, joiner) {
|
|
4063
|
+
var str = '';
|
|
4064
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
4065
|
+
str += arr[i];
|
|
4066
|
+
if (i + 1 < arr.length) {
|
|
4067
|
+
str += joiner;
|
|
4068
|
+
}
|
|
4069
|
+
}
|
|
4070
|
+
return str;
|
|
4071
|
+
};
|
|
4072
|
+
|
|
3616
4073
|
module.exports = function bind(that) {
|
|
3617
4074
|
var target = this;
|
|
3618
|
-
if (typeof target !== 'function' || toStr.
|
|
4075
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
3619
4076
|
throw new TypeError(ERROR_MESSAGE + target);
|
|
3620
4077
|
}
|
|
3621
|
-
var args =
|
|
4078
|
+
var args = slicy(arguments, 1);
|
|
3622
4079
|
|
|
3623
4080
|
var bound;
|
|
3624
4081
|
var binder = function () {
|
|
3625
4082
|
if (this instanceof bound) {
|
|
3626
4083
|
var result = target.apply(
|
|
3627
4084
|
this,
|
|
3628
|
-
args
|
|
4085
|
+
concatty(args, arguments)
|
|
3629
4086
|
);
|
|
3630
4087
|
if (Object(result) === result) {
|
|
3631
4088
|
return result;
|
|
3632
4089
|
}
|
|
3633
4090
|
return this;
|
|
3634
|
-
} else {
|
|
3635
|
-
return target.apply(
|
|
3636
|
-
that,
|
|
3637
|
-
args.concat(slice.call(arguments))
|
|
3638
|
-
);
|
|
3639
4091
|
}
|
|
4092
|
+
return target.apply(
|
|
4093
|
+
that,
|
|
4094
|
+
concatty(args, arguments)
|
|
4095
|
+
);
|
|
4096
|
+
|
|
3640
4097
|
};
|
|
3641
4098
|
|
|
3642
|
-
var boundLength =
|
|
4099
|
+
var boundLength = max(0, target.length - args.length);
|
|
3643
4100
|
var boundArgs = [];
|
|
3644
4101
|
for (var i = 0; i < boundLength; i++) {
|
|
3645
|
-
boundArgs
|
|
4102
|
+
boundArgs[i] = '$' + i;
|
|
3646
4103
|
}
|
|
3647
4104
|
|
|
3648
|
-
bound = Function('binder', 'return function (' + boundArgs
|
|
4105
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
3649
4106
|
|
|
3650
4107
|
if (target.prototype) {
|
|
3651
4108
|
var Empty = function Empty() {};
|
|
@@ -3687,9 +4144,25 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
3687
4144
|
|
|
3688
4145
|
var undefined;
|
|
3689
4146
|
|
|
3690
|
-
var $
|
|
4147
|
+
var $Object = __webpack_require__(/*! es-object-atoms */ "../../node_modules/es-object-atoms/index.js");
|
|
4148
|
+
|
|
4149
|
+
var $Error = __webpack_require__(/*! es-errors */ "../../node_modules/es-errors/index.js");
|
|
4150
|
+
var $EvalError = __webpack_require__(/*! es-errors/eval */ "../../node_modules/es-errors/eval.js");
|
|
4151
|
+
var $RangeError = __webpack_require__(/*! es-errors/range */ "../../node_modules/es-errors/range.js");
|
|
4152
|
+
var $ReferenceError = __webpack_require__(/*! es-errors/ref */ "../../node_modules/es-errors/ref.js");
|
|
4153
|
+
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "../../node_modules/es-errors/syntax.js");
|
|
4154
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../../node_modules/es-errors/type.js");
|
|
4155
|
+
var $URIError = __webpack_require__(/*! es-errors/uri */ "../../node_modules/es-errors/uri.js");
|
|
4156
|
+
|
|
4157
|
+
var abs = __webpack_require__(/*! math-intrinsics/abs */ "../../node_modules/math-intrinsics/abs.js");
|
|
4158
|
+
var floor = __webpack_require__(/*! math-intrinsics/floor */ "../../node_modules/math-intrinsics/floor.js");
|
|
4159
|
+
var max = __webpack_require__(/*! math-intrinsics/max */ "../../node_modules/math-intrinsics/max.js");
|
|
4160
|
+
var min = __webpack_require__(/*! math-intrinsics/min */ "../../node_modules/math-intrinsics/min.js");
|
|
4161
|
+
var pow = __webpack_require__(/*! math-intrinsics/pow */ "../../node_modules/math-intrinsics/pow.js");
|
|
4162
|
+
var round = __webpack_require__(/*! math-intrinsics/round */ "../../node_modules/math-intrinsics/round.js");
|
|
4163
|
+
var sign = __webpack_require__(/*! math-intrinsics/sign */ "../../node_modules/math-intrinsics/sign.js");
|
|
4164
|
+
|
|
3691
4165
|
var $Function = Function;
|
|
3692
|
-
var $TypeError = TypeError;
|
|
3693
4166
|
|
|
3694
4167
|
// eslint-disable-next-line consistent-return
|
|
3695
4168
|
var getEvalledConstructor = function (expressionSyntax) {
|
|
@@ -3698,14 +4171,8 @@ var getEvalledConstructor = function (expressionSyntax) {
|
|
|
3698
4171
|
} catch (e) {}
|
|
3699
4172
|
};
|
|
3700
4173
|
|
|
3701
|
-
var $gOPD =
|
|
3702
|
-
|
|
3703
|
-
try {
|
|
3704
|
-
$gOPD({}, '');
|
|
3705
|
-
} catch (e) {
|
|
3706
|
-
$gOPD = null; // this is IE 8, which has a broken gOPD
|
|
3707
|
-
}
|
|
3708
|
-
}
|
|
4174
|
+
var $gOPD = __webpack_require__(/*! gopd */ "../../node_modules/gopd/index.js");
|
|
4175
|
+
var $defineProperty = __webpack_require__(/*! es-define-property */ "../../node_modules/es-define-property/index.js");
|
|
3709
4176
|
|
|
3710
4177
|
var throwTypeError = function () {
|
|
3711
4178
|
throw new $TypeError();
|
|
@@ -3728,19 +4195,20 @@ var ThrowTypeError = $gOPD
|
|
|
3728
4195
|
: throwTypeError;
|
|
3729
4196
|
|
|
3730
4197
|
var hasSymbols = __webpack_require__(/*! has-symbols */ "../../node_modules/has-symbols/index.js")();
|
|
3731
|
-
var hasProto = __webpack_require__(/*! has-proto */ "../../node_modules/has-proto/index.js")();
|
|
3732
4198
|
|
|
3733
|
-
var getProto =
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3737
|
-
);
|
|
4199
|
+
var getProto = __webpack_require__(/*! get-proto */ "../../node_modules/get-proto/index.js");
|
|
4200
|
+
var $ObjectGPO = __webpack_require__(/*! get-proto/Object.getPrototypeOf */ "../../node_modules/get-proto/Object.getPrototypeOf.js");
|
|
4201
|
+
var $ReflectGPO = __webpack_require__(/*! get-proto/Reflect.getPrototypeOf */ "../../node_modules/get-proto/Reflect.getPrototypeOf.js");
|
|
4202
|
+
|
|
4203
|
+
var $apply = __webpack_require__(/*! call-bind-apply-helpers/functionApply */ "../../node_modules/call-bind-apply-helpers/functionApply.js");
|
|
4204
|
+
var $call = __webpack_require__(/*! call-bind-apply-helpers/functionCall */ "../../node_modules/call-bind-apply-helpers/functionCall.js");
|
|
3738
4205
|
|
|
3739
4206
|
var needsEval = {};
|
|
3740
4207
|
|
|
3741
4208
|
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
3742
4209
|
|
|
3743
4210
|
var INTRINSICS = {
|
|
4211
|
+
__proto__: null,
|
|
3744
4212
|
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
3745
4213
|
'%Array%': Array,
|
|
3746
4214
|
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
@@ -3761,9 +4229,10 @@ var INTRINSICS = {
|
|
|
3761
4229
|
'%decodeURIComponent%': decodeURIComponent,
|
|
3762
4230
|
'%encodeURI%': encodeURI,
|
|
3763
4231
|
'%encodeURIComponent%': encodeURIComponent,
|
|
3764
|
-
'%Error%': Error,
|
|
4232
|
+
'%Error%': $Error,
|
|
3765
4233
|
'%eval%': eval, // eslint-disable-line no-eval
|
|
3766
|
-
'%EvalError%': EvalError,
|
|
4234
|
+
'%EvalError%': $EvalError,
|
|
4235
|
+
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
|
|
3767
4236
|
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
3768
4237
|
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
3769
4238
|
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
@@ -3780,13 +4249,14 @@ var INTRINSICS = {
|
|
|
3780
4249
|
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
3781
4250
|
'%Math%': Math,
|
|
3782
4251
|
'%Number%': Number,
|
|
3783
|
-
'%Object%': Object,
|
|
4252
|
+
'%Object%': $Object,
|
|
4253
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
3784
4254
|
'%parseFloat%': parseFloat,
|
|
3785
4255
|
'%parseInt%': parseInt,
|
|
3786
4256
|
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
3787
4257
|
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
3788
|
-
'%RangeError%': RangeError,
|
|
3789
|
-
'%ReferenceError%': ReferenceError,
|
|
4258
|
+
'%RangeError%': $RangeError,
|
|
4259
|
+
'%ReferenceError%': $ReferenceError,
|
|
3790
4260
|
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
3791
4261
|
'%RegExp%': RegExp,
|
|
3792
4262
|
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
@@ -3803,10 +4273,23 @@ var INTRINSICS = {
|
|
|
3803
4273
|
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
3804
4274
|
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
3805
4275
|
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
3806
|
-
'%URIError%': URIError,
|
|
4276
|
+
'%URIError%': $URIError,
|
|
3807
4277
|
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
3808
4278
|
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
3809
|
-
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet
|
|
4279
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
|
4280
|
+
|
|
4281
|
+
'%Function.prototype.call%': $call,
|
|
4282
|
+
'%Function.prototype.apply%': $apply,
|
|
4283
|
+
'%Object.defineProperty%': $defineProperty,
|
|
4284
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
4285
|
+
'%Math.abs%': abs,
|
|
4286
|
+
'%Math.floor%': floor,
|
|
4287
|
+
'%Math.max%': max,
|
|
4288
|
+
'%Math.min%': min,
|
|
4289
|
+
'%Math.pow%': pow,
|
|
4290
|
+
'%Math.round%': round,
|
|
4291
|
+
'%Math.sign%': sign,
|
|
4292
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
3810
4293
|
};
|
|
3811
4294
|
|
|
3812
4295
|
if (getProto) {
|
|
@@ -3845,6 +4328,7 @@ var doEval = function doEval(name) {
|
|
|
3845
4328
|
};
|
|
3846
4329
|
|
|
3847
4330
|
var LEGACY_ALIASES = {
|
|
4331
|
+
__proto__: null,
|
|
3848
4332
|
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
3849
4333
|
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
3850
4334
|
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
@@ -3899,12 +4383,12 @@ var LEGACY_ALIASES = {
|
|
|
3899
4383
|
};
|
|
3900
4384
|
|
|
3901
4385
|
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
|
3902
|
-
var hasOwn = __webpack_require__(/*!
|
|
3903
|
-
var $concat = bind.call(
|
|
3904
|
-
var $spliceApply = bind.call(
|
|
3905
|
-
var $replace = bind.call(
|
|
3906
|
-
var $strSlice = bind.call(
|
|
3907
|
-
var $exec = bind.call(
|
|
4386
|
+
var hasOwn = __webpack_require__(/*! hasown */ "../../node_modules/hasown/index.js");
|
|
4387
|
+
var $concat = bind.call($call, Array.prototype.concat);
|
|
4388
|
+
var $spliceApply = bind.call($apply, Array.prototype.splice);
|
|
4389
|
+
var $replace = bind.call($call, String.prototype.replace);
|
|
4390
|
+
var $strSlice = bind.call($call, String.prototype.slice);
|
|
4391
|
+
var $exec = bind.call($call, RegExp.prototype.exec);
|
|
3908
4392
|
|
|
3909
4393
|
/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
|
|
3910
4394
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
@@ -4038,24 +4522,113 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
4038
4522
|
|
|
4039
4523
|
/***/ }),
|
|
4040
4524
|
|
|
4041
|
-
/***/ "../../node_modules/
|
|
4525
|
+
/***/ "../../node_modules/get-proto/Object.getPrototypeOf.js":
|
|
4526
|
+
/*!*************************************************************!*\
|
|
4527
|
+
!*** ../../node_modules/get-proto/Object.getPrototypeOf.js ***!
|
|
4528
|
+
\*************************************************************/
|
|
4529
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4530
|
+
|
|
4531
|
+
"use strict";
|
|
4532
|
+
|
|
4533
|
+
|
|
4534
|
+
var $Object = __webpack_require__(/*! es-object-atoms */ "../../node_modules/es-object-atoms/index.js");
|
|
4535
|
+
|
|
4536
|
+
/** @type {import('./Object.getPrototypeOf')} */
|
|
4537
|
+
module.exports = $Object.getPrototypeOf || null;
|
|
4538
|
+
|
|
4539
|
+
|
|
4540
|
+
/***/ }),
|
|
4541
|
+
|
|
4542
|
+
/***/ "../../node_modules/get-proto/Reflect.getPrototypeOf.js":
|
|
4543
|
+
/*!**************************************************************!*\
|
|
4544
|
+
!*** ../../node_modules/get-proto/Reflect.getPrototypeOf.js ***!
|
|
4545
|
+
\**************************************************************/
|
|
4546
|
+
/***/ (function(module) {
|
|
4547
|
+
|
|
4548
|
+
"use strict";
|
|
4549
|
+
|
|
4550
|
+
|
|
4551
|
+
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
4552
|
+
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
4553
|
+
|
|
4554
|
+
|
|
4555
|
+
/***/ }),
|
|
4556
|
+
|
|
4557
|
+
/***/ "../../node_modules/get-proto/index.js":
|
|
4042
4558
|
/*!*********************************************!*\
|
|
4043
|
-
!*** ../../node_modules/
|
|
4559
|
+
!*** ../../node_modules/get-proto/index.js ***!
|
|
4044
4560
|
\*********************************************/
|
|
4561
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4562
|
+
|
|
4563
|
+
"use strict";
|
|
4564
|
+
|
|
4565
|
+
|
|
4566
|
+
var reflectGetProto = __webpack_require__(/*! ./Reflect.getPrototypeOf */ "../../node_modules/get-proto/Reflect.getPrototypeOf.js");
|
|
4567
|
+
var originalGetProto = __webpack_require__(/*! ./Object.getPrototypeOf */ "../../node_modules/get-proto/Object.getPrototypeOf.js");
|
|
4568
|
+
|
|
4569
|
+
var getDunderProto = __webpack_require__(/*! dunder-proto/get */ "../../node_modules/dunder-proto/get.js");
|
|
4570
|
+
|
|
4571
|
+
/** @type {import('.')} */
|
|
4572
|
+
module.exports = reflectGetProto
|
|
4573
|
+
? function getProto(O) {
|
|
4574
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
4575
|
+
return reflectGetProto(O);
|
|
4576
|
+
}
|
|
4577
|
+
: originalGetProto
|
|
4578
|
+
? function getProto(O) {
|
|
4579
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
4580
|
+
throw new TypeError('getProto: not an object');
|
|
4581
|
+
}
|
|
4582
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
4583
|
+
return originalGetProto(O);
|
|
4584
|
+
}
|
|
4585
|
+
: getDunderProto
|
|
4586
|
+
? function getProto(O) {
|
|
4587
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
4588
|
+
return getDunderProto(O);
|
|
4589
|
+
}
|
|
4590
|
+
: null;
|
|
4591
|
+
|
|
4592
|
+
|
|
4593
|
+
/***/ }),
|
|
4594
|
+
|
|
4595
|
+
/***/ "../../node_modules/gopd/gOPD.js":
|
|
4596
|
+
/*!***************************************!*\
|
|
4597
|
+
!*** ../../node_modules/gopd/gOPD.js ***!
|
|
4598
|
+
\***************************************/
|
|
4045
4599
|
/***/ (function(module) {
|
|
4046
4600
|
|
|
4047
4601
|
"use strict";
|
|
4048
4602
|
|
|
4049
4603
|
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
|
|
4604
|
+
/** @type {import('./gOPD')} */
|
|
4605
|
+
module.exports = Object.getOwnPropertyDescriptor;
|
|
4606
|
+
|
|
4607
|
+
|
|
4608
|
+
/***/ }),
|
|
4609
|
+
|
|
4610
|
+
/***/ "../../node_modules/gopd/index.js":
|
|
4611
|
+
/*!****************************************!*\
|
|
4612
|
+
!*** ../../node_modules/gopd/index.js ***!
|
|
4613
|
+
\****************************************/
|
|
4614
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4615
|
+
|
|
4616
|
+
"use strict";
|
|
4617
|
+
|
|
4618
|
+
|
|
4619
|
+
/** @type {import('.')} */
|
|
4620
|
+
var $gOPD = __webpack_require__(/*! ./gOPD */ "../../node_modules/gopd/gOPD.js");
|
|
4053
4621
|
|
|
4054
|
-
|
|
4622
|
+
if ($gOPD) {
|
|
4623
|
+
try {
|
|
4624
|
+
$gOPD([], 'length');
|
|
4625
|
+
} catch (e) {
|
|
4626
|
+
// IE 8 has a broken gOPD
|
|
4627
|
+
$gOPD = null;
|
|
4628
|
+
}
|
|
4629
|
+
}
|
|
4055
4630
|
|
|
4056
|
-
module.exports =
|
|
4057
|
-
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
4058
|
-
};
|
|
4631
|
+
module.exports = $gOPD;
|
|
4059
4632
|
|
|
4060
4633
|
|
|
4061
4634
|
/***/ }),
|
|
@@ -4072,6 +4645,7 @@ module.exports = function hasProto() {
|
|
|
4072
4645
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
4073
4646
|
var hasSymbolSham = __webpack_require__(/*! ./shams */ "../../node_modules/has-symbols/shams.js");
|
|
4074
4647
|
|
|
4648
|
+
/** @type {import('.')} */
|
|
4075
4649
|
module.exports = function hasNativeSymbols() {
|
|
4076
4650
|
if (typeof origSymbol !== 'function') { return false; }
|
|
4077
4651
|
if (typeof Symbol !== 'function') { return false; }
|
|
@@ -4093,11 +4667,13 @@ module.exports = function hasNativeSymbols() {
|
|
|
4093
4667
|
"use strict";
|
|
4094
4668
|
|
|
4095
4669
|
|
|
4670
|
+
/** @type {import('./shams')} */
|
|
4096
4671
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
4097
4672
|
module.exports = function hasSymbols() {
|
|
4098
4673
|
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
4099
4674
|
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
4100
4675
|
|
|
4676
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
4101
4677
|
var obj = {};
|
|
4102
4678
|
var sym = Symbol('test');
|
|
4103
4679
|
var symObj = Object(sym);
|
|
@@ -4116,7 +4692,7 @@ module.exports = function hasSymbols() {
|
|
|
4116
4692
|
|
|
4117
4693
|
var symVal = 42;
|
|
4118
4694
|
obj[sym] = symVal;
|
|
4119
|
-
for (
|
|
4695
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
4120
4696
|
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
4121
4697
|
|
|
4122
4698
|
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
@@ -4127,7 +4703,8 @@ module.exports = function hasSymbols() {
|
|
|
4127
4703
|
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
4128
4704
|
|
|
4129
4705
|
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
4130
|
-
|
|
4706
|
+
// eslint-disable-next-line no-extra-parens
|
|
4707
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
4131
4708
|
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
4132
4709
|
}
|
|
4133
4710
|
|
|
@@ -4137,190 +4714,150 @@ module.exports = function hasSymbols() {
|
|
|
4137
4714
|
|
|
4138
4715
|
/***/ }),
|
|
4139
4716
|
|
|
4140
|
-
/***/ "../../node_modules/
|
|
4141
|
-
|
|
4142
|
-
!*** ../../node_modules/
|
|
4143
|
-
|
|
4717
|
+
/***/ "../../node_modules/hasown/index.js":
|
|
4718
|
+
/*!******************************************!*\
|
|
4719
|
+
!*** ../../node_modules/hasown/index.js ***!
|
|
4720
|
+
\******************************************/
|
|
4144
4721
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4145
4722
|
|
|
4146
4723
|
"use strict";
|
|
4147
4724
|
|
|
4148
4725
|
|
|
4726
|
+
var call = Function.prototype.call;
|
|
4727
|
+
var $hasOwn = Object.prototype.hasOwnProperty;
|
|
4149
4728
|
var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
|
|
4150
4729
|
|
|
4151
|
-
|
|
4730
|
+
/** @type {import('.')} */
|
|
4731
|
+
module.exports = bind.call(call, $hasOwn);
|
|
4152
4732
|
|
|
4153
4733
|
|
|
4154
4734
|
/***/ }),
|
|
4155
4735
|
|
|
4156
|
-
/***/ "../../node_modules/
|
|
4157
|
-
|
|
4158
|
-
!*** ../../node_modules/
|
|
4159
|
-
|
|
4736
|
+
/***/ "../../node_modules/math-intrinsics/abs.js":
|
|
4737
|
+
/*!*************************************************!*\
|
|
4738
|
+
!*** ../../node_modules/math-intrinsics/abs.js ***!
|
|
4739
|
+
\*************************************************/
|
|
4160
4740
|
/***/ (function(module) {
|
|
4161
4741
|
|
|
4162
|
-
|
|
4163
|
-
* Helpers.
|
|
4164
|
-
*/
|
|
4742
|
+
"use strict";
|
|
4165
4743
|
|
|
4166
|
-
var s = 1000;
|
|
4167
|
-
var m = s * 60;
|
|
4168
|
-
var h = m * 60;
|
|
4169
|
-
var d = h * 24;
|
|
4170
|
-
var w = d * 7;
|
|
4171
|
-
var y = d * 365.25;
|
|
4172
4744
|
|
|
4173
|
-
/**
|
|
4174
|
-
|
|
4175
|
-
*
|
|
4176
|
-
* Options:
|
|
4177
|
-
*
|
|
4178
|
-
* - `long` verbose formatting [false]
|
|
4179
|
-
*
|
|
4180
|
-
* @param {String|Number} val
|
|
4181
|
-
* @param {Object} [options]
|
|
4182
|
-
* @throws {Error} throw an error if val is not a non-empty string or a number
|
|
4183
|
-
* @return {String|Number}
|
|
4184
|
-
* @api public
|
|
4185
|
-
*/
|
|
4745
|
+
/** @type {import('./abs')} */
|
|
4746
|
+
module.exports = Math.abs;
|
|
4186
4747
|
|
|
4187
|
-
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
|
|
4192
|
-
|
|
4193
|
-
|
|
4194
|
-
|
|
4195
|
-
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4748
|
+
|
|
4749
|
+
/***/ }),
|
|
4750
|
+
|
|
4751
|
+
/***/ "../../node_modules/math-intrinsics/floor.js":
|
|
4752
|
+
/*!***************************************************!*\
|
|
4753
|
+
!*** ../../node_modules/math-intrinsics/floor.js ***!
|
|
4754
|
+
\***************************************************/
|
|
4755
|
+
/***/ (function(module) {
|
|
4756
|
+
|
|
4757
|
+
"use strict";
|
|
4758
|
+
|
|
4759
|
+
|
|
4760
|
+
/** @type {import('./floor')} */
|
|
4761
|
+
module.exports = Math.floor;
|
|
4762
|
+
|
|
4763
|
+
|
|
4764
|
+
/***/ }),
|
|
4765
|
+
|
|
4766
|
+
/***/ "../../node_modules/math-intrinsics/isNaN.js":
|
|
4767
|
+
/*!***************************************************!*\
|
|
4768
|
+
!*** ../../node_modules/math-intrinsics/isNaN.js ***!
|
|
4769
|
+
\***************************************************/
|
|
4770
|
+
/***/ (function(module) {
|
|
4771
|
+
|
|
4772
|
+
"use strict";
|
|
4773
|
+
|
|
4774
|
+
|
|
4775
|
+
/** @type {import('./isNaN')} */
|
|
4776
|
+
module.exports = Number.isNaN || function isNaN(a) {
|
|
4777
|
+
return a !== a;
|
|
4199
4778
|
};
|
|
4200
4779
|
|
|
4201
|
-
/**
|
|
4202
|
-
* Parse the given `str` and return milliseconds.
|
|
4203
|
-
*
|
|
4204
|
-
* @param {String} str
|
|
4205
|
-
* @return {Number}
|
|
4206
|
-
* @api private
|
|
4207
|
-
*/
|
|
4208
4780
|
|
|
4209
|
-
|
|
4210
|
-
str = String(str);
|
|
4211
|
-
if (str.length > 100) {
|
|
4212
|
-
return;
|
|
4213
|
-
}
|
|
4214
|
-
var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
4215
|
-
str
|
|
4216
|
-
);
|
|
4217
|
-
if (!match) {
|
|
4218
|
-
return;
|
|
4219
|
-
}
|
|
4220
|
-
var n = parseFloat(match[1]);
|
|
4221
|
-
var type = (match[2] || 'ms').toLowerCase();
|
|
4222
|
-
switch (type) {
|
|
4223
|
-
case 'years':
|
|
4224
|
-
case 'year':
|
|
4225
|
-
case 'yrs':
|
|
4226
|
-
case 'yr':
|
|
4227
|
-
case 'y':
|
|
4228
|
-
return n * y;
|
|
4229
|
-
case 'weeks':
|
|
4230
|
-
case 'week':
|
|
4231
|
-
case 'w':
|
|
4232
|
-
return n * w;
|
|
4233
|
-
case 'days':
|
|
4234
|
-
case 'day':
|
|
4235
|
-
case 'd':
|
|
4236
|
-
return n * d;
|
|
4237
|
-
case 'hours':
|
|
4238
|
-
case 'hour':
|
|
4239
|
-
case 'hrs':
|
|
4240
|
-
case 'hr':
|
|
4241
|
-
case 'h':
|
|
4242
|
-
return n * h;
|
|
4243
|
-
case 'minutes':
|
|
4244
|
-
case 'minute':
|
|
4245
|
-
case 'mins':
|
|
4246
|
-
case 'min':
|
|
4247
|
-
case 'm':
|
|
4248
|
-
return n * m;
|
|
4249
|
-
case 'seconds':
|
|
4250
|
-
case 'second':
|
|
4251
|
-
case 'secs':
|
|
4252
|
-
case 'sec':
|
|
4253
|
-
case 's':
|
|
4254
|
-
return n * s;
|
|
4255
|
-
case 'milliseconds':
|
|
4256
|
-
case 'millisecond':
|
|
4257
|
-
case 'msecs':
|
|
4258
|
-
case 'msec':
|
|
4259
|
-
case 'ms':
|
|
4260
|
-
return n;
|
|
4261
|
-
default:
|
|
4262
|
-
return undefined;
|
|
4263
|
-
}
|
|
4264
|
-
}
|
|
4781
|
+
/***/ }),
|
|
4265
4782
|
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
* @api private
|
|
4272
|
-
*/
|
|
4783
|
+
/***/ "../../node_modules/math-intrinsics/max.js":
|
|
4784
|
+
/*!*************************************************!*\
|
|
4785
|
+
!*** ../../node_modules/math-intrinsics/max.js ***!
|
|
4786
|
+
\*************************************************/
|
|
4787
|
+
/***/ (function(module) {
|
|
4273
4788
|
|
|
4274
|
-
|
|
4275
|
-
var msAbs = Math.abs(ms);
|
|
4276
|
-
if (msAbs >= d) {
|
|
4277
|
-
return Math.round(ms / d) + 'd';
|
|
4278
|
-
}
|
|
4279
|
-
if (msAbs >= h) {
|
|
4280
|
-
return Math.round(ms / h) + 'h';
|
|
4281
|
-
}
|
|
4282
|
-
if (msAbs >= m) {
|
|
4283
|
-
return Math.round(ms / m) + 'm';
|
|
4284
|
-
}
|
|
4285
|
-
if (msAbs >= s) {
|
|
4286
|
-
return Math.round(ms / s) + 's';
|
|
4287
|
-
}
|
|
4288
|
-
return ms + 'ms';
|
|
4289
|
-
}
|
|
4789
|
+
"use strict";
|
|
4290
4790
|
|
|
4291
|
-
/**
|
|
4292
|
-
* Long format for `ms`.
|
|
4293
|
-
*
|
|
4294
|
-
* @param {Number} ms
|
|
4295
|
-
* @return {String}
|
|
4296
|
-
* @api private
|
|
4297
|
-
*/
|
|
4298
4791
|
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
if (msAbs >= d) {
|
|
4302
|
-
return plural(ms, msAbs, d, 'day');
|
|
4303
|
-
}
|
|
4304
|
-
if (msAbs >= h) {
|
|
4305
|
-
return plural(ms, msAbs, h, 'hour');
|
|
4306
|
-
}
|
|
4307
|
-
if (msAbs >= m) {
|
|
4308
|
-
return plural(ms, msAbs, m, 'minute');
|
|
4309
|
-
}
|
|
4310
|
-
if (msAbs >= s) {
|
|
4311
|
-
return plural(ms, msAbs, s, 'second');
|
|
4312
|
-
}
|
|
4313
|
-
return ms + ' ms';
|
|
4314
|
-
}
|
|
4792
|
+
/** @type {import('./max')} */
|
|
4793
|
+
module.exports = Math.max;
|
|
4315
4794
|
|
|
4316
|
-
/**
|
|
4317
|
-
* Pluralization helper.
|
|
4318
|
-
*/
|
|
4319
4795
|
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4796
|
+
/***/ }),
|
|
4797
|
+
|
|
4798
|
+
/***/ "../../node_modules/math-intrinsics/min.js":
|
|
4799
|
+
/*!*************************************************!*\
|
|
4800
|
+
!*** ../../node_modules/math-intrinsics/min.js ***!
|
|
4801
|
+
\*************************************************/
|
|
4802
|
+
/***/ (function(module) {
|
|
4803
|
+
|
|
4804
|
+
"use strict";
|
|
4805
|
+
|
|
4806
|
+
|
|
4807
|
+
/** @type {import('./min')} */
|
|
4808
|
+
module.exports = Math.min;
|
|
4809
|
+
|
|
4810
|
+
|
|
4811
|
+
/***/ }),
|
|
4812
|
+
|
|
4813
|
+
/***/ "../../node_modules/math-intrinsics/pow.js":
|
|
4814
|
+
/*!*************************************************!*\
|
|
4815
|
+
!*** ../../node_modules/math-intrinsics/pow.js ***!
|
|
4816
|
+
\*************************************************/
|
|
4817
|
+
/***/ (function(module) {
|
|
4818
|
+
|
|
4819
|
+
"use strict";
|
|
4820
|
+
|
|
4821
|
+
|
|
4822
|
+
/** @type {import('./pow')} */
|
|
4823
|
+
module.exports = Math.pow;
|
|
4824
|
+
|
|
4825
|
+
|
|
4826
|
+
/***/ }),
|
|
4827
|
+
|
|
4828
|
+
/***/ "../../node_modules/math-intrinsics/round.js":
|
|
4829
|
+
/*!***************************************************!*\
|
|
4830
|
+
!*** ../../node_modules/math-intrinsics/round.js ***!
|
|
4831
|
+
\***************************************************/
|
|
4832
|
+
/***/ (function(module) {
|
|
4833
|
+
|
|
4834
|
+
"use strict";
|
|
4835
|
+
|
|
4836
|
+
|
|
4837
|
+
/** @type {import('./round')} */
|
|
4838
|
+
module.exports = Math.round;
|
|
4839
|
+
|
|
4840
|
+
|
|
4841
|
+
/***/ }),
|
|
4842
|
+
|
|
4843
|
+
/***/ "../../node_modules/math-intrinsics/sign.js":
|
|
4844
|
+
/*!**************************************************!*\
|
|
4845
|
+
!*** ../../node_modules/math-intrinsics/sign.js ***!
|
|
4846
|
+
\**************************************************/
|
|
4847
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
4848
|
+
|
|
4849
|
+
"use strict";
|
|
4850
|
+
|
|
4851
|
+
|
|
4852
|
+
var $isNaN = __webpack_require__(/*! ./isNaN */ "../../node_modules/math-intrinsics/isNaN.js");
|
|
4853
|
+
|
|
4854
|
+
/** @type {import('./sign')} */
|
|
4855
|
+
module.exports = function sign(number) {
|
|
4856
|
+
if ($isNaN(number) || number === 0) {
|
|
4857
|
+
return number;
|
|
4858
|
+
}
|
|
4859
|
+
return number < 0 ? -1 : +1;
|
|
4860
|
+
};
|
|
4324
4861
|
|
|
4325
4862
|
|
|
4326
4863
|
/***/ }),
|
|
@@ -4402,10 +4939,21 @@ var utilInspect = __webpack_require__(/*! ./util.inspect */ "?c95a");
|
|
|
4402
4939
|
var inspectCustom = utilInspect.custom;
|
|
4403
4940
|
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
4404
4941
|
|
|
4942
|
+
var quotes = {
|
|
4943
|
+
__proto__: null,
|
|
4944
|
+
'double': '"',
|
|
4945
|
+
single: "'"
|
|
4946
|
+
};
|
|
4947
|
+
var quoteREs = {
|
|
4948
|
+
__proto__: null,
|
|
4949
|
+
'double': /(["\\])/g,
|
|
4950
|
+
single: /(['\\])/g
|
|
4951
|
+
};
|
|
4952
|
+
|
|
4405
4953
|
module.exports = function inspect_(obj, options, depth, seen) {
|
|
4406
4954
|
var opts = options || {};
|
|
4407
4955
|
|
|
4408
|
-
if (has(opts, 'quoteStyle') && (
|
|
4956
|
+
if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {
|
|
4409
4957
|
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
4410
4958
|
}
|
|
4411
4959
|
if (
|
|
@@ -4572,6 +5120,17 @@ module.exports = function inspect_(obj, options, depth, seen) {
|
|
|
4572
5120
|
if (isString(obj)) {
|
|
4573
5121
|
return markBoxed(inspect(String(obj)));
|
|
4574
5122
|
}
|
|
5123
|
+
// note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
|
|
5124
|
+
/* eslint-env browser */
|
|
5125
|
+
if (typeof window !== 'undefined' && obj === window) {
|
|
5126
|
+
return '{ [object Window] }';
|
|
5127
|
+
}
|
|
5128
|
+
if (
|
|
5129
|
+
(typeof globalThis !== 'undefined' && obj === globalThis)
|
|
5130
|
+
|| (typeof __webpack_require__.g !== 'undefined' && obj === __webpack_require__.g)
|
|
5131
|
+
) {
|
|
5132
|
+
return '{ [object globalThis] }';
|
|
5133
|
+
}
|
|
4575
5134
|
if (!isDate(obj) && !isRegExp(obj)) {
|
|
4576
5135
|
var ys = arrObjKeys(obj, inspect);
|
|
4577
5136
|
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
@@ -4589,7 +5148,8 @@ module.exports = function inspect_(obj, options, depth, seen) {
|
|
|
4589
5148
|
};
|
|
4590
5149
|
|
|
4591
5150
|
function wrapQuotes(s, defaultStyle, opts) {
|
|
4592
|
-
var
|
|
5151
|
+
var style = opts.quoteStyle || defaultStyle;
|
|
5152
|
+
var quoteChar = quotes[style];
|
|
4593
5153
|
return quoteChar + s + quoteChar;
|
|
4594
5154
|
}
|
|
4595
5155
|
|
|
@@ -4597,13 +5157,16 @@ function quote(s) {
|
|
|
4597
5157
|
return $replace.call(String(s), /"/g, '"');
|
|
4598
5158
|
}
|
|
4599
5159
|
|
|
4600
|
-
function
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
function
|
|
4604
|
-
function
|
|
4605
|
-
function
|
|
4606
|
-
function
|
|
5160
|
+
function canTrustToString(obj) {
|
|
5161
|
+
return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
|
|
5162
|
+
}
|
|
5163
|
+
function isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); }
|
|
5164
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); }
|
|
5165
|
+
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); }
|
|
5166
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); }
|
|
5167
|
+
function isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); }
|
|
5168
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); }
|
|
5169
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); }
|
|
4607
5170
|
|
|
4608
5171
|
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
4609
5172
|
function isSymbol(obj) {
|
|
@@ -4747,8 +5310,10 @@ function inspectString(str, opts) {
|
|
|
4747
5310
|
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
4748
5311
|
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
4749
5312
|
}
|
|
5313
|
+
var quoteRE = quoteREs[opts.quoteStyle || 'single'];
|
|
5314
|
+
quoteRE.lastIndex = 0;
|
|
4750
5315
|
// eslint-disable-next-line no-control-regex
|
|
4751
|
-
var s = $replace.call($replace.call(str,
|
|
5316
|
+
var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
4752
5317
|
return wrapQuotes(s, 'single', opts);
|
|
4753
5318
|
}
|
|
4754
5319
|
|
|
@@ -4923,21 +5488,26 @@ var isArray = Array.isArray;
|
|
|
4923
5488
|
|
|
4924
5489
|
var defaults = {
|
|
4925
5490
|
allowDots: false,
|
|
5491
|
+
allowEmptyArrays: false,
|
|
4926
5492
|
allowPrototypes: false,
|
|
4927
5493
|
allowSparse: false,
|
|
4928
5494
|
arrayLimit: 20,
|
|
4929
5495
|
charset: 'utf-8',
|
|
4930
5496
|
charsetSentinel: false,
|
|
4931
5497
|
comma: false,
|
|
5498
|
+
decodeDotInKeys: false,
|
|
4932
5499
|
decoder: utils.decode,
|
|
4933
5500
|
delimiter: '&',
|
|
4934
5501
|
depth: 5,
|
|
5502
|
+
duplicates: 'combine',
|
|
4935
5503
|
ignoreQueryPrefix: false,
|
|
4936
5504
|
interpretNumericEntities: false,
|
|
4937
5505
|
parameterLimit: 1000,
|
|
4938
5506
|
parseArrays: true,
|
|
4939
5507
|
plainObjects: false,
|
|
4940
|
-
|
|
5508
|
+
strictDepth: false,
|
|
5509
|
+
strictNullHandling: false,
|
|
5510
|
+
throwOnLimitExceeded: false
|
|
4941
5511
|
};
|
|
4942
5512
|
|
|
4943
5513
|
var interpretNumericEntities = function (str) {
|
|
@@ -4946,11 +5516,15 @@ var interpretNumericEntities = function (str) {
|
|
|
4946
5516
|
});
|
|
4947
5517
|
};
|
|
4948
5518
|
|
|
4949
|
-
var parseArrayValue = function (val, options) {
|
|
5519
|
+
var parseArrayValue = function (val, options, currentArrayLength) {
|
|
4950
5520
|
if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {
|
|
4951
5521
|
return val.split(',');
|
|
4952
5522
|
}
|
|
4953
5523
|
|
|
5524
|
+
if (options.throwOnLimitExceeded && currentArrayLength >= options.arrayLimit) {
|
|
5525
|
+
throw new RangeError('Array limit exceeded. Only ' + options.arrayLimit + ' element' + (options.arrayLimit === 1 ? '' : 's') + ' allowed in an array.');
|
|
5526
|
+
}
|
|
5527
|
+
|
|
4954
5528
|
return val;
|
|
4955
5529
|
};
|
|
4956
5530
|
|
|
@@ -4968,8 +5542,18 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
4968
5542
|
var obj = { __proto__: null };
|
|
4969
5543
|
|
|
4970
5544
|
var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str;
|
|
5545
|
+
cleanStr = cleanStr.replace(/%5B/gi, '[').replace(/%5D/gi, ']');
|
|
5546
|
+
|
|
4971
5547
|
var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;
|
|
4972
|
-
var parts = cleanStr.split(
|
|
5548
|
+
var parts = cleanStr.split(
|
|
5549
|
+
options.delimiter,
|
|
5550
|
+
options.throwOnLimitExceeded ? limit + 1 : limit
|
|
5551
|
+
);
|
|
5552
|
+
|
|
5553
|
+
if (options.throwOnLimitExceeded && parts.length > limit) {
|
|
5554
|
+
throw new RangeError('Parameter limit exceeded. Only ' + limit + ' parameter' + (limit === 1 ? '' : 's') + ' allowed.');
|
|
5555
|
+
}
|
|
5556
|
+
|
|
4973
5557
|
var skipIndex = -1; // Keep track of where the utf8 sentinel was found
|
|
4974
5558
|
var i;
|
|
4975
5559
|
|
|
@@ -4997,32 +5581,48 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
4997
5581
|
var bracketEqualsPos = part.indexOf(']=');
|
|
4998
5582
|
var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
|
|
4999
5583
|
|
|
5000
|
-
var key
|
|
5584
|
+
var key;
|
|
5585
|
+
var val;
|
|
5001
5586
|
if (pos === -1) {
|
|
5002
5587
|
key = options.decoder(part, defaults.decoder, charset, 'key');
|
|
5003
5588
|
val = options.strictNullHandling ? null : '';
|
|
5004
5589
|
} else {
|
|
5005
5590
|
key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
|
|
5006
|
-
|
|
5007
|
-
|
|
5008
|
-
|
|
5009
|
-
|
|
5010
|
-
|
|
5011
|
-
|
|
5591
|
+
|
|
5592
|
+
if (key !== null) {
|
|
5593
|
+
val = utils.maybeMap(
|
|
5594
|
+
parseArrayValue(
|
|
5595
|
+
part.slice(pos + 1),
|
|
5596
|
+
options,
|
|
5597
|
+
isArray(obj[key]) ? obj[key].length : 0
|
|
5598
|
+
),
|
|
5599
|
+
function (encodedVal) {
|
|
5600
|
+
return options.decoder(encodedVal, defaults.decoder, charset, 'value');
|
|
5601
|
+
}
|
|
5602
|
+
);
|
|
5603
|
+
}
|
|
5012
5604
|
}
|
|
5013
5605
|
|
|
5014
5606
|
if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
|
|
5015
|
-
val = interpretNumericEntities(val);
|
|
5607
|
+
val = interpretNumericEntities(String(val));
|
|
5016
5608
|
}
|
|
5017
5609
|
|
|
5018
5610
|
if (part.indexOf('[]=') > -1) {
|
|
5019
5611
|
val = isArray(val) ? [val] : val;
|
|
5020
5612
|
}
|
|
5021
5613
|
|
|
5022
|
-
if (
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5614
|
+
if (key !== null) {
|
|
5615
|
+
var existing = has.call(obj, key);
|
|
5616
|
+
if (existing && options.duplicates === 'combine') {
|
|
5617
|
+
obj[key] = utils.combine(
|
|
5618
|
+
obj[key],
|
|
5619
|
+
val,
|
|
5620
|
+
options.arrayLimit,
|
|
5621
|
+
options.plainObjects
|
|
5622
|
+
);
|
|
5623
|
+
} else if (!existing || options.duplicates === 'last') {
|
|
5624
|
+
obj[key] = val;
|
|
5625
|
+
}
|
|
5026
5626
|
}
|
|
5027
5627
|
}
|
|
5028
5628
|
|
|
@@ -5030,31 +5630,50 @@ var parseValues = function parseQueryStringValues(str, options) {
|
|
|
5030
5630
|
};
|
|
5031
5631
|
|
|
5032
5632
|
var parseObject = function (chain, val, options, valuesParsed) {
|
|
5033
|
-
var
|
|
5633
|
+
var currentArrayLength = 0;
|
|
5634
|
+
if (chain.length > 0 && chain[chain.length - 1] === '[]') {
|
|
5635
|
+
var parentKey = chain.slice(0, -1).join('');
|
|
5636
|
+
currentArrayLength = Array.isArray(val) && val[parentKey] ? val[parentKey].length : 0;
|
|
5637
|
+
}
|
|
5638
|
+
|
|
5639
|
+
var leaf = valuesParsed ? val : parseArrayValue(val, options, currentArrayLength);
|
|
5034
5640
|
|
|
5035
5641
|
for (var i = chain.length - 1; i >= 0; --i) {
|
|
5036
5642
|
var obj;
|
|
5037
5643
|
var root = chain[i];
|
|
5038
5644
|
|
|
5039
5645
|
if (root === '[]' && options.parseArrays) {
|
|
5040
|
-
|
|
5646
|
+
if (utils.isOverflow(leaf)) {
|
|
5647
|
+
// leaf is already an overflow object, preserve it
|
|
5648
|
+
obj = leaf;
|
|
5649
|
+
} else {
|
|
5650
|
+
obj = options.allowEmptyArrays && (leaf === '' || (options.strictNullHandling && leaf === null))
|
|
5651
|
+
? []
|
|
5652
|
+
: utils.combine(
|
|
5653
|
+
[],
|
|
5654
|
+
leaf,
|
|
5655
|
+
options.arrayLimit,
|
|
5656
|
+
options.plainObjects
|
|
5657
|
+
);
|
|
5658
|
+
}
|
|
5041
5659
|
} else {
|
|
5042
|
-
obj = options.plainObjects ?
|
|
5660
|
+
obj = options.plainObjects ? { __proto__: null } : {};
|
|
5043
5661
|
var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;
|
|
5044
|
-
var
|
|
5045
|
-
|
|
5662
|
+
var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;
|
|
5663
|
+
var index = parseInt(decodedRoot, 10);
|
|
5664
|
+
if (!options.parseArrays && decodedRoot === '') {
|
|
5046
5665
|
obj = { 0: leaf };
|
|
5047
5666
|
} else if (
|
|
5048
5667
|
!isNaN(index)
|
|
5049
|
-
&& root !==
|
|
5050
|
-
&& String(index) ===
|
|
5668
|
+
&& root !== decodedRoot
|
|
5669
|
+
&& String(index) === decodedRoot
|
|
5051
5670
|
&& index >= 0
|
|
5052
5671
|
&& (options.parseArrays && index <= options.arrayLimit)
|
|
5053
5672
|
) {
|
|
5054
5673
|
obj = [];
|
|
5055
5674
|
obj[index] = leaf;
|
|
5056
|
-
} else if (
|
|
5057
|
-
obj[
|
|
5675
|
+
} else if (decodedRoot !== '__proto__') {
|
|
5676
|
+
obj[decodedRoot] = leaf;
|
|
5058
5677
|
}
|
|
5059
5678
|
}
|
|
5060
5679
|
|
|
@@ -5064,29 +5683,28 @@ var parseObject = function (chain, val, options, valuesParsed) {
|
|
|
5064
5683
|
return leaf;
|
|
5065
5684
|
};
|
|
5066
5685
|
|
|
5067
|
-
var
|
|
5068
|
-
if (!givenKey) {
|
|
5069
|
-
return;
|
|
5070
|
-
}
|
|
5071
|
-
|
|
5072
|
-
// Transform dot notation to bracket notation
|
|
5686
|
+
var splitKeyIntoSegments = function splitKeyIntoSegments(givenKey, options) {
|
|
5073
5687
|
var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey;
|
|
5074
5688
|
|
|
5075
|
-
|
|
5689
|
+
if (options.depth <= 0) {
|
|
5690
|
+
if (!options.plainObjects && has.call(Object.prototype, key)) {
|
|
5691
|
+
if (!options.allowPrototypes) {
|
|
5692
|
+
return;
|
|
5693
|
+
}
|
|
5694
|
+
}
|
|
5695
|
+
|
|
5696
|
+
return [key];
|
|
5697
|
+
}
|
|
5076
5698
|
|
|
5077
5699
|
var brackets = /(\[[^[\]]*])/;
|
|
5078
5700
|
var child = /(\[[^[\]]*])/g;
|
|
5079
5701
|
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
var segment = options.depth > 0 && brackets.exec(key);
|
|
5702
|
+
var segment = brackets.exec(key);
|
|
5083
5703
|
var parent = segment ? key.slice(0, segment.index) : key;
|
|
5084
5704
|
|
|
5085
|
-
// Stash the parent if it exists
|
|
5086
|
-
|
|
5087
5705
|
var keys = [];
|
|
5706
|
+
|
|
5088
5707
|
if (parent) {
|
|
5089
|
-
// If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
|
|
5090
5708
|
if (!options.plainObjects && has.call(Object.prototype, parent)) {
|
|
5091
5709
|
if (!options.allowPrototypes) {
|
|
5092
5710
|
return;
|
|
@@ -5096,25 +5714,42 @@ var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesPars
|
|
|
5096
5714
|
keys.push(parent);
|
|
5097
5715
|
}
|
|
5098
5716
|
|
|
5099
|
-
// Loop through children appending to the array until we hit depth
|
|
5100
|
-
|
|
5101
5717
|
var i = 0;
|
|
5102
|
-
while (
|
|
5718
|
+
while ((segment = child.exec(key)) !== null && i < options.depth) {
|
|
5103
5719
|
i += 1;
|
|
5104
|
-
|
|
5720
|
+
|
|
5721
|
+
var segmentContent = segment[1].slice(1, -1);
|
|
5722
|
+
if (!options.plainObjects && has.call(Object.prototype, segmentContent)) {
|
|
5105
5723
|
if (!options.allowPrototypes) {
|
|
5106
5724
|
return;
|
|
5107
5725
|
}
|
|
5108
5726
|
}
|
|
5727
|
+
|
|
5109
5728
|
keys.push(segment[1]);
|
|
5110
5729
|
}
|
|
5111
5730
|
|
|
5112
|
-
// If there's a remainder, just add whatever is left
|
|
5113
|
-
|
|
5114
5731
|
if (segment) {
|
|
5732
|
+
if (options.strictDepth === true) {
|
|
5733
|
+
throw new RangeError('Input depth exceeded depth option of ' + options.depth + ' and strictDepth is true');
|
|
5734
|
+
}
|
|
5735
|
+
|
|
5115
5736
|
keys.push('[' + key.slice(segment.index) + ']');
|
|
5116
5737
|
}
|
|
5117
5738
|
|
|
5739
|
+
return keys;
|
|
5740
|
+
};
|
|
5741
|
+
|
|
5742
|
+
var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
|
|
5743
|
+
if (!givenKey) {
|
|
5744
|
+
return;
|
|
5745
|
+
}
|
|
5746
|
+
|
|
5747
|
+
var keys = splitKeyIntoSegments(givenKey, options);
|
|
5748
|
+
|
|
5749
|
+
if (!keys) {
|
|
5750
|
+
return;
|
|
5751
|
+
}
|
|
5752
|
+
|
|
5118
5753
|
return parseObject(keys, val, options, valuesParsed);
|
|
5119
5754
|
};
|
|
5120
5755
|
|
|
@@ -5123,33 +5758,59 @@ var normalizeParseOptions = function normalizeParseOptions(opts) {
|
|
|
5123
5758
|
return defaults;
|
|
5124
5759
|
}
|
|
5125
5760
|
|
|
5126
|
-
if (
|
|
5761
|
+
if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
|
|
5762
|
+
throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
|
|
5763
|
+
}
|
|
5764
|
+
|
|
5765
|
+
if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') {
|
|
5766
|
+
throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');
|
|
5767
|
+
}
|
|
5768
|
+
|
|
5769
|
+
if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') {
|
|
5127
5770
|
throw new TypeError('Decoder has to be a function.');
|
|
5128
5771
|
}
|
|
5129
5772
|
|
|
5130
5773
|
if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
|
|
5131
5774
|
throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
|
|
5132
5775
|
}
|
|
5776
|
+
|
|
5777
|
+
if (typeof opts.throwOnLimitExceeded !== 'undefined' && typeof opts.throwOnLimitExceeded !== 'boolean') {
|
|
5778
|
+
throw new TypeError('`throwOnLimitExceeded` option must be a boolean');
|
|
5779
|
+
}
|
|
5780
|
+
|
|
5133
5781
|
var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
|
|
5134
5782
|
|
|
5783
|
+
var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;
|
|
5784
|
+
|
|
5785
|
+
if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') {
|
|
5786
|
+
throw new TypeError('The duplicates option must be either combine, first, or last');
|
|
5787
|
+
}
|
|
5788
|
+
|
|
5789
|
+
var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
5790
|
+
|
|
5135
5791
|
return {
|
|
5136
|
-
allowDots:
|
|
5792
|
+
allowDots: allowDots,
|
|
5793
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
5137
5794
|
allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
|
|
5138
5795
|
allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
|
|
5139
5796
|
arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
|
|
5140
5797
|
charset: charset,
|
|
5141
5798
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
5142
5799
|
comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
|
|
5800
|
+
decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys,
|
|
5143
5801
|
decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
|
|
5144
5802
|
delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
|
|
5145
5803
|
// eslint-disable-next-line no-implicit-coercion, no-extra-parens
|
|
5146
5804
|
depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,
|
|
5805
|
+
duplicates: duplicates,
|
|
5147
5806
|
ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
|
|
5148
5807
|
interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
|
|
5149
5808
|
parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
|
|
5150
5809
|
parseArrays: opts.parseArrays !== false,
|
|
5151
5810
|
plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
|
|
5152
|
-
|
|
5811
|
+
strictDepth: typeof opts.strictDepth === 'boolean' ? !!opts.strictDepth : defaults.strictDepth,
|
|
5812
|
+
strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling,
|
|
5813
|
+
throwOnLimitExceeded: typeof opts.throwOnLimitExceeded === 'boolean' ? opts.throwOnLimitExceeded : false
|
|
5153
5814
|
};
|
|
5154
5815
|
};
|
|
5155
5816
|
|
|
@@ -5157,11 +5818,11 @@ module.exports = function (str, opts) {
|
|
|
5157
5818
|
var options = normalizeParseOptions(opts);
|
|
5158
5819
|
|
|
5159
5820
|
if (str === '' || str === null || typeof str === 'undefined') {
|
|
5160
|
-
return options.plainObjects ?
|
|
5821
|
+
return options.plainObjects ? { __proto__: null } : {};
|
|
5161
5822
|
}
|
|
5162
5823
|
|
|
5163
5824
|
var tempObj = typeof str === 'string' ? parseValues(str, options) : str;
|
|
5164
|
-
var obj = options.plainObjects ?
|
|
5825
|
+
var obj = options.plainObjects ? { __proto__: null } : {};
|
|
5165
5826
|
|
|
5166
5827
|
// Iterate over the keys and setup the new object
|
|
5167
5828
|
|
|
@@ -5221,12 +5882,17 @@ var defaultFormat = formats['default'];
|
|
|
5221
5882
|
var defaults = {
|
|
5222
5883
|
addQueryPrefix: false,
|
|
5223
5884
|
allowDots: false,
|
|
5885
|
+
allowEmptyArrays: false,
|
|
5886
|
+
arrayFormat: 'indices',
|
|
5224
5887
|
charset: 'utf-8',
|
|
5225
5888
|
charsetSentinel: false,
|
|
5889
|
+
commaRoundTrip: false,
|
|
5226
5890
|
delimiter: '&',
|
|
5227
5891
|
encode: true,
|
|
5892
|
+
encodeDotInKeys: false,
|
|
5228
5893
|
encoder: utils.encode,
|
|
5229
5894
|
encodeValuesOnly: false,
|
|
5895
|
+
filter: void undefined,
|
|
5230
5896
|
format: defaultFormat,
|
|
5231
5897
|
formatter: formats.formatters[defaultFormat],
|
|
5232
5898
|
// deprecated
|
|
@@ -5253,8 +5919,10 @@ var stringify = function stringify(
|
|
|
5253
5919
|
prefix,
|
|
5254
5920
|
generateArrayPrefix,
|
|
5255
5921
|
commaRoundTrip,
|
|
5922
|
+
allowEmptyArrays,
|
|
5256
5923
|
strictNullHandling,
|
|
5257
5924
|
skipNulls,
|
|
5925
|
+
encodeDotInKeys,
|
|
5258
5926
|
encoder,
|
|
5259
5927
|
filter,
|
|
5260
5928
|
sort,
|
|
@@ -5336,19 +6004,28 @@ var stringify = function stringify(
|
|
|
5336
6004
|
objKeys = sort ? keys.sort(sort) : keys;
|
|
5337
6005
|
}
|
|
5338
6006
|
|
|
5339
|
-
var
|
|
6007
|
+
var encodedPrefix = encodeDotInKeys ? String(prefix).replace(/\./g, '%2E') : String(prefix);
|
|
6008
|
+
|
|
6009
|
+
var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;
|
|
6010
|
+
|
|
6011
|
+
if (allowEmptyArrays && isArray(obj) && obj.length === 0) {
|
|
6012
|
+
return adjustedPrefix + '[]';
|
|
6013
|
+
}
|
|
5340
6014
|
|
|
5341
6015
|
for (var j = 0; j < objKeys.length; ++j) {
|
|
5342
6016
|
var key = objKeys[j];
|
|
5343
|
-
var value = typeof key === 'object' && typeof key.value !== 'undefined'
|
|
6017
|
+
var value = typeof key === 'object' && key && typeof key.value !== 'undefined'
|
|
6018
|
+
? key.value
|
|
6019
|
+
: obj[key];
|
|
5344
6020
|
|
|
5345
6021
|
if (skipNulls && value === null) {
|
|
5346
6022
|
continue;
|
|
5347
6023
|
}
|
|
5348
6024
|
|
|
6025
|
+
var encodedKey = allowDots && encodeDotInKeys ? String(key).replace(/\./g, '%2E') : String(key);
|
|
5349
6026
|
var keyPrefix = isArray(obj)
|
|
5350
|
-
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix,
|
|
5351
|
-
: adjustedPrefix + (allowDots ? '.' +
|
|
6027
|
+
? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix
|
|
6028
|
+
: adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');
|
|
5352
6029
|
|
|
5353
6030
|
sideChannel.set(object, step);
|
|
5354
6031
|
var valueSideChannel = getSideChannel();
|
|
@@ -5358,8 +6035,10 @@ var stringify = function stringify(
|
|
|
5358
6035
|
keyPrefix,
|
|
5359
6036
|
generateArrayPrefix,
|
|
5360
6037
|
commaRoundTrip,
|
|
6038
|
+
allowEmptyArrays,
|
|
5361
6039
|
strictNullHandling,
|
|
5362
6040
|
skipNulls,
|
|
6041
|
+
encodeDotInKeys,
|
|
5363
6042
|
generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,
|
|
5364
6043
|
filter,
|
|
5365
6044
|
sort,
|
|
@@ -5381,6 +6060,14 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
5381
6060
|
return defaults;
|
|
5382
6061
|
}
|
|
5383
6062
|
|
|
6063
|
+
if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {
|
|
6064
|
+
throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');
|
|
6065
|
+
}
|
|
6066
|
+
|
|
6067
|
+
if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {
|
|
6068
|
+
throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');
|
|
6069
|
+
}
|
|
6070
|
+
|
|
5384
6071
|
if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
|
|
5385
6072
|
throw new TypeError('Encoder has to be a function.');
|
|
5386
6073
|
}
|
|
@@ -5404,13 +6091,32 @@ var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
|
|
|
5404
6091
|
filter = opts.filter;
|
|
5405
6092
|
}
|
|
5406
6093
|
|
|
6094
|
+
var arrayFormat;
|
|
6095
|
+
if (opts.arrayFormat in arrayPrefixGenerators) {
|
|
6096
|
+
arrayFormat = opts.arrayFormat;
|
|
6097
|
+
} else if ('indices' in opts) {
|
|
6098
|
+
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
6099
|
+
} else {
|
|
6100
|
+
arrayFormat = defaults.arrayFormat;
|
|
6101
|
+
}
|
|
6102
|
+
|
|
6103
|
+
if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
6104
|
+
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
6105
|
+
}
|
|
6106
|
+
|
|
6107
|
+
var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;
|
|
6108
|
+
|
|
5407
6109
|
return {
|
|
5408
6110
|
addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
|
|
5409
|
-
allowDots:
|
|
6111
|
+
allowDots: allowDots,
|
|
6112
|
+
allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,
|
|
6113
|
+
arrayFormat: arrayFormat,
|
|
5410
6114
|
charset: charset,
|
|
5411
6115
|
charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
|
|
6116
|
+
commaRoundTrip: !!opts.commaRoundTrip,
|
|
5412
6117
|
delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
|
|
5413
6118
|
encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
|
|
6119
|
+
encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,
|
|
5414
6120
|
encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
|
|
5415
6121
|
encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
|
|
5416
6122
|
filter: filter,
|
|
@@ -5444,20 +6150,8 @@ module.exports = function (object, opts) {
|
|
|
5444
6150
|
return '';
|
|
5445
6151
|
}
|
|
5446
6152
|
|
|
5447
|
-
var arrayFormat;
|
|
5448
|
-
|
|
5449
|
-
arrayFormat = opts.arrayFormat;
|
|
5450
|
-
} else if (opts && 'indices' in opts) {
|
|
5451
|
-
arrayFormat = opts.indices ? 'indices' : 'repeat';
|
|
5452
|
-
} else {
|
|
5453
|
-
arrayFormat = 'indices';
|
|
5454
|
-
}
|
|
5455
|
-
|
|
5456
|
-
var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
|
|
5457
|
-
if (opts && 'commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {
|
|
5458
|
-
throw new TypeError('`commaRoundTrip` must be a boolean, or absent');
|
|
5459
|
-
}
|
|
5460
|
-
var commaRoundTrip = generateArrayPrefix === 'comma' && opts && opts.commaRoundTrip;
|
|
6153
|
+
var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];
|
|
6154
|
+
var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip;
|
|
5461
6155
|
|
|
5462
6156
|
if (!objKeys) {
|
|
5463
6157
|
objKeys = Object.keys(obj);
|
|
@@ -5470,17 +6164,20 @@ module.exports = function (object, opts) {
|
|
|
5470
6164
|
var sideChannel = getSideChannel();
|
|
5471
6165
|
for (var i = 0; i < objKeys.length; ++i) {
|
|
5472
6166
|
var key = objKeys[i];
|
|
6167
|
+
var value = obj[key];
|
|
5473
6168
|
|
|
5474
|
-
if (options.skipNulls &&
|
|
6169
|
+
if (options.skipNulls && value === null) {
|
|
5475
6170
|
continue;
|
|
5476
6171
|
}
|
|
5477
6172
|
pushToArray(keys, stringify(
|
|
5478
|
-
|
|
6173
|
+
value,
|
|
5479
6174
|
key,
|
|
5480
6175
|
generateArrayPrefix,
|
|
5481
6176
|
commaRoundTrip,
|
|
6177
|
+
options.allowEmptyArrays,
|
|
5482
6178
|
options.strictNullHandling,
|
|
5483
6179
|
options.skipNulls,
|
|
6180
|
+
options.encodeDotInKeys,
|
|
5484
6181
|
options.encode ? options.encoder : null,
|
|
5485
6182
|
options.filter,
|
|
5486
6183
|
options.sort,
|
|
@@ -5523,10 +6220,32 @@ module.exports = function (object, opts) {
|
|
|
5523
6220
|
|
|
5524
6221
|
|
|
5525
6222
|
var formats = __webpack_require__(/*! ./formats */ "../../node_modules/qs/lib/formats.js");
|
|
6223
|
+
var getSideChannel = __webpack_require__(/*! side-channel */ "../../node_modules/side-channel/index.js");
|
|
5526
6224
|
|
|
5527
6225
|
var has = Object.prototype.hasOwnProperty;
|
|
5528
6226
|
var isArray = Array.isArray;
|
|
5529
6227
|
|
|
6228
|
+
// Track objects created from arrayLimit overflow using side-channel
|
|
6229
|
+
// Stores the current max numeric index for O(1) lookup
|
|
6230
|
+
var overflowChannel = getSideChannel();
|
|
6231
|
+
|
|
6232
|
+
var markOverflow = function markOverflow(obj, maxIndex) {
|
|
6233
|
+
overflowChannel.set(obj, maxIndex);
|
|
6234
|
+
return obj;
|
|
6235
|
+
};
|
|
6236
|
+
|
|
6237
|
+
var isOverflow = function isOverflow(obj) {
|
|
6238
|
+
return overflowChannel.has(obj);
|
|
6239
|
+
};
|
|
6240
|
+
|
|
6241
|
+
var getMaxIndex = function getMaxIndex(obj) {
|
|
6242
|
+
return overflowChannel.get(obj);
|
|
6243
|
+
};
|
|
6244
|
+
|
|
6245
|
+
var setMaxIndex = function setMaxIndex(obj, maxIndex) {
|
|
6246
|
+
overflowChannel.set(obj, maxIndex);
|
|
6247
|
+
};
|
|
6248
|
+
|
|
5530
6249
|
var hexTable = (function () {
|
|
5531
6250
|
var array = [];
|
|
5532
6251
|
for (var i = 0; i < 256; ++i) {
|
|
@@ -5556,7 +6275,7 @@ var compactQueue = function compactQueue(queue) {
|
|
|
5556
6275
|
};
|
|
5557
6276
|
|
|
5558
6277
|
var arrayToObject = function arrayToObject(source, options) {
|
|
5559
|
-
var obj = options && options.plainObjects ?
|
|
6278
|
+
var obj = options && options.plainObjects ? { __proto__: null } : {};
|
|
5560
6279
|
for (var i = 0; i < source.length; ++i) {
|
|
5561
6280
|
if (typeof source[i] !== 'undefined') {
|
|
5562
6281
|
obj[i] = source[i];
|
|
@@ -5572,11 +6291,19 @@ var merge = function merge(target, source, options) {
|
|
|
5572
6291
|
return target;
|
|
5573
6292
|
}
|
|
5574
6293
|
|
|
5575
|
-
if (typeof source !== 'object') {
|
|
6294
|
+
if (typeof source !== 'object' && typeof source !== 'function') {
|
|
5576
6295
|
if (isArray(target)) {
|
|
5577
6296
|
target.push(source);
|
|
5578
6297
|
} else if (target && typeof target === 'object') {
|
|
5579
|
-
if ((
|
|
6298
|
+
if (isOverflow(target)) {
|
|
6299
|
+
// Add at next numeric index for overflow objects
|
|
6300
|
+
var newIndex = getMaxIndex(target) + 1;
|
|
6301
|
+
target[newIndex] = source;
|
|
6302
|
+
setMaxIndex(target, newIndex);
|
|
6303
|
+
} else if (
|
|
6304
|
+
(options && (options.plainObjects || options.allowPrototypes))
|
|
6305
|
+
|| !has.call(Object.prototype, source)
|
|
6306
|
+
) {
|
|
5580
6307
|
target[source] = true;
|
|
5581
6308
|
}
|
|
5582
6309
|
} else {
|
|
@@ -5587,6 +6314,18 @@ var merge = function merge(target, source, options) {
|
|
|
5587
6314
|
}
|
|
5588
6315
|
|
|
5589
6316
|
if (!target || typeof target !== 'object') {
|
|
6317
|
+
if (isOverflow(source)) {
|
|
6318
|
+
// Create new object with target at 0, source values shifted by 1
|
|
6319
|
+
var sourceKeys = Object.keys(source);
|
|
6320
|
+
var result = options && options.plainObjects
|
|
6321
|
+
? { __proto__: null, 0: target }
|
|
6322
|
+
: { 0: target };
|
|
6323
|
+
for (var m = 0; m < sourceKeys.length; m++) {
|
|
6324
|
+
var oldKey = parseInt(sourceKeys[m], 10);
|
|
6325
|
+
result[oldKey + 1] = source[sourceKeys[m]];
|
|
6326
|
+
}
|
|
6327
|
+
return markOverflow(result, getMaxIndex(source) + 1);
|
|
6328
|
+
}
|
|
5590
6329
|
return [target].concat(source);
|
|
5591
6330
|
}
|
|
5592
6331
|
|
|
@@ -5630,7 +6369,7 @@ var assign = function assignSingleSource(target, source) {
|
|
|
5630
6369
|
}, target);
|
|
5631
6370
|
};
|
|
5632
6371
|
|
|
5633
|
-
var decode = function (str,
|
|
6372
|
+
var decode = function (str, defaultDecoder, charset) {
|
|
5634
6373
|
var strWithoutPlus = str.replace(/\+/g, ' ');
|
|
5635
6374
|
if (charset === 'iso-8859-1') {
|
|
5636
6375
|
// unescape never throws, no try...catch needed:
|
|
@@ -5644,6 +6383,10 @@ var decode = function (str, decoder, charset) {
|
|
|
5644
6383
|
}
|
|
5645
6384
|
};
|
|
5646
6385
|
|
|
6386
|
+
var limit = 1024;
|
|
6387
|
+
|
|
6388
|
+
/* eslint operator-linebreak: [2, "before"] */
|
|
6389
|
+
|
|
5647
6390
|
var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
5648
6391
|
// This code was originally written by Brian White (mscdex) for the io.js core querystring library.
|
|
5649
6392
|
// It has been adapted here for stricter adherence to RFC 3986
|
|
@@ -5665,45 +6408,54 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
|
|
|
5665
6408
|
}
|
|
5666
6409
|
|
|
5667
6410
|
var out = '';
|
|
5668
|
-
for (var
|
|
5669
|
-
var
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5673
|
-
|
|
5674
|
-
|
|
5675
|
-
|
|
5676
|
-
|
|
5677
|
-
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
6411
|
+
for (var j = 0; j < string.length; j += limit) {
|
|
6412
|
+
var segment = string.length >= limit ? string.slice(j, j + limit) : string;
|
|
6413
|
+
var arr = [];
|
|
6414
|
+
|
|
6415
|
+
for (var i = 0; i < segment.length; ++i) {
|
|
6416
|
+
var c = segment.charCodeAt(i);
|
|
6417
|
+
if (
|
|
6418
|
+
c === 0x2D // -
|
|
6419
|
+
|| c === 0x2E // .
|
|
6420
|
+
|| c === 0x5F // _
|
|
6421
|
+
|| c === 0x7E // ~
|
|
6422
|
+
|| (c >= 0x30 && c <= 0x39) // 0-9
|
|
6423
|
+
|| (c >= 0x41 && c <= 0x5A) // a-z
|
|
6424
|
+
|| (c >= 0x61 && c <= 0x7A) // A-Z
|
|
6425
|
+
|| (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )
|
|
6426
|
+
) {
|
|
6427
|
+
arr[arr.length] = segment.charAt(i);
|
|
6428
|
+
continue;
|
|
6429
|
+
}
|
|
5684
6430
|
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
6431
|
+
if (c < 0x80) {
|
|
6432
|
+
arr[arr.length] = hexTable[c];
|
|
6433
|
+
continue;
|
|
6434
|
+
}
|
|
5689
6435
|
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
|
|
6436
|
+
if (c < 0x800) {
|
|
6437
|
+
arr[arr.length] = hexTable[0xC0 | (c >> 6)]
|
|
6438
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
6439
|
+
continue;
|
|
6440
|
+
}
|
|
5694
6441
|
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
6442
|
+
if (c < 0xD800 || c >= 0xE000) {
|
|
6443
|
+
arr[arr.length] = hexTable[0xE0 | (c >> 12)]
|
|
6444
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
6445
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
6446
|
+
continue;
|
|
6447
|
+
}
|
|
6448
|
+
|
|
6449
|
+
i += 1;
|
|
6450
|
+
c = 0x10000 + (((c & 0x3FF) << 10) | (segment.charCodeAt(i) & 0x3FF));
|
|
6451
|
+
|
|
6452
|
+
arr[arr.length] = hexTable[0xF0 | (c >> 18)]
|
|
6453
|
+
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
6454
|
+
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
6455
|
+
+ hexTable[0x80 | (c & 0x3F)];
|
|
5698
6456
|
}
|
|
5699
6457
|
|
|
5700
|
-
|
|
5701
|
-
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
|
|
5702
|
-
/* eslint operator-linebreak: [2, "before"] */
|
|
5703
|
-
out += hexTable[0xF0 | (c >> 18)]
|
|
5704
|
-
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
|
|
5705
|
-
+ hexTable[0x80 | ((c >> 6) & 0x3F)]
|
|
5706
|
-
+ hexTable[0x80 | (c & 0x3F)];
|
|
6458
|
+
out += arr.join('');
|
|
5707
6459
|
}
|
|
5708
6460
|
|
|
5709
6461
|
return out;
|
|
@@ -5745,8 +6497,20 @@ var isBuffer = function isBuffer(obj) {
|
|
|
5745
6497
|
return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
|
|
5746
6498
|
};
|
|
5747
6499
|
|
|
5748
|
-
var combine = function combine(a, b) {
|
|
5749
|
-
|
|
6500
|
+
var combine = function combine(a, b, arrayLimit, plainObjects) {
|
|
6501
|
+
// If 'a' is already an overflow object, add to it
|
|
6502
|
+
if (isOverflow(a)) {
|
|
6503
|
+
var newIndex = getMaxIndex(a) + 1;
|
|
6504
|
+
a[newIndex] = b;
|
|
6505
|
+
setMaxIndex(a, newIndex);
|
|
6506
|
+
return a;
|
|
6507
|
+
}
|
|
6508
|
+
|
|
6509
|
+
var result = [].concat(a, b);
|
|
6510
|
+
if (result.length > arrayLimit) {
|
|
6511
|
+
return markOverflow(arrayToObject(result, { plainObjects: plainObjects }), result.length - 1);
|
|
6512
|
+
}
|
|
6513
|
+
return result;
|
|
5750
6514
|
};
|
|
5751
6515
|
|
|
5752
6516
|
var maybeMap = function maybeMap(val, fn) {
|
|
@@ -5768,6 +6532,7 @@ module.exports = {
|
|
|
5768
6532
|
decode: decode,
|
|
5769
6533
|
encode: encode,
|
|
5770
6534
|
isBuffer: isBuffer,
|
|
6535
|
+
isOverflow: isOverflow,
|
|
5771
6536
|
isRegExp: isRegExp,
|
|
5772
6537
|
maybeMap: maybeMap,
|
|
5773
6538
|
merge: merge
|
|
@@ -5776,135 +6541,352 @@ module.exports = {
|
|
|
5776
6541
|
|
|
5777
6542
|
/***/ }),
|
|
5778
6543
|
|
|
5779
|
-
/***/ "../../node_modules/side-channel/index.js":
|
|
5780
|
-
|
|
5781
|
-
!*** ../../node_modules/side-channel/index.js ***!
|
|
5782
|
-
|
|
6544
|
+
/***/ "../../node_modules/side-channel-list/index.js":
|
|
6545
|
+
/*!*****************************************************!*\
|
|
6546
|
+
!*** ../../node_modules/side-channel-list/index.js ***!
|
|
6547
|
+
\*****************************************************/
|
|
5783
6548
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
5784
6549
|
|
|
5785
6550
|
"use strict";
|
|
5786
6551
|
|
|
5787
6552
|
|
|
5788
|
-
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
|
5789
|
-
var callBound = __webpack_require__(/*! call-bind/callBound */ "../../node_modules/call-bind/callBound.js");
|
|
5790
6553
|
var inspect = __webpack_require__(/*! object-inspect */ "../../node_modules/object-inspect/index.js");
|
|
5791
6554
|
|
|
5792
|
-
var $TypeError =
|
|
5793
|
-
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
5794
|
-
var $Map = GetIntrinsic('%Map%', true);
|
|
5795
|
-
|
|
5796
|
-
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
5797
|
-
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
5798
|
-
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
5799
|
-
var $mapGet = callBound('Map.prototype.get', true);
|
|
5800
|
-
var $mapSet = callBound('Map.prototype.set', true);
|
|
5801
|
-
var $mapHas = callBound('Map.prototype.has', true);
|
|
6555
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../../node_modules/es-errors/type.js");
|
|
5802
6556
|
|
|
5803
6557
|
/*
|
|
5804
|
-
|
|
5805
|
-
|
|
5806
|
-
|
|
5807
|
-
|
|
5808
|
-
|
|
5809
|
-
|
|
5810
|
-
|
|
5811
|
-
var listGetNode = function (list, key) {
|
|
5812
|
-
|
|
6558
|
+
* This function traverses the list returning the node corresponding to the given key.
|
|
6559
|
+
*
|
|
6560
|
+
* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list.
|
|
6561
|
+
* By doing so, all the recently used nodes can be accessed relatively quickly.
|
|
6562
|
+
*/
|
|
6563
|
+
/** @type {import('./list.d.ts').listGetNode} */
|
|
6564
|
+
// eslint-disable-next-line consistent-return
|
|
6565
|
+
var listGetNode = function (list, key, isDelete) {
|
|
6566
|
+
/** @type {typeof list | NonNullable<(typeof list)['next']>} */
|
|
6567
|
+
var prev = list;
|
|
6568
|
+
/** @type {(typeof list)['next']} */
|
|
6569
|
+
var curr;
|
|
6570
|
+
// eslint-disable-next-line eqeqeq
|
|
6571
|
+
for (; (curr = prev.next) != null; prev = curr) {
|
|
5813
6572
|
if (curr.key === key) {
|
|
5814
6573
|
prev.next = curr.next;
|
|
5815
|
-
|
|
5816
|
-
|
|
6574
|
+
if (!isDelete) {
|
|
6575
|
+
// eslint-disable-next-line no-extra-parens
|
|
6576
|
+
curr.next = /** @type {NonNullable<typeof list.next>} */ (list.next);
|
|
6577
|
+
list.next = curr; // eslint-disable-line no-param-reassign
|
|
6578
|
+
}
|
|
5817
6579
|
return curr;
|
|
5818
6580
|
}
|
|
5819
6581
|
}
|
|
5820
6582
|
};
|
|
5821
6583
|
|
|
6584
|
+
/** @type {import('./list.d.ts').listGet} */
|
|
5822
6585
|
var listGet = function (objects, key) {
|
|
6586
|
+
if (!objects) {
|
|
6587
|
+
return void undefined;
|
|
6588
|
+
}
|
|
5823
6589
|
var node = listGetNode(objects, key);
|
|
5824
6590
|
return node && node.value;
|
|
5825
6591
|
};
|
|
6592
|
+
/** @type {import('./list.d.ts').listSet} */
|
|
5826
6593
|
var listSet = function (objects, key, value) {
|
|
5827
6594
|
var node = listGetNode(objects, key);
|
|
5828
6595
|
if (node) {
|
|
5829
6596
|
node.value = value;
|
|
5830
6597
|
} else {
|
|
5831
6598
|
// Prepend the new node to the beginning of the list
|
|
5832
|
-
objects.next = { // eslint-disable-line no-param-reassign
|
|
6599
|
+
objects.next = /** @type {import('./list.d.ts').ListNode<typeof value, typeof key>} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens
|
|
5833
6600
|
key: key,
|
|
5834
6601
|
next: objects.next,
|
|
5835
6602
|
value: value
|
|
5836
|
-
};
|
|
6603
|
+
});
|
|
5837
6604
|
}
|
|
5838
6605
|
};
|
|
6606
|
+
/** @type {import('./list.d.ts').listHas} */
|
|
5839
6607
|
var listHas = function (objects, key) {
|
|
6608
|
+
if (!objects) {
|
|
6609
|
+
return false;
|
|
6610
|
+
}
|
|
5840
6611
|
return !!listGetNode(objects, key);
|
|
5841
6612
|
};
|
|
6613
|
+
/** @type {import('./list.d.ts').listDelete} */
|
|
6614
|
+
// eslint-disable-next-line consistent-return
|
|
6615
|
+
var listDelete = function (objects, key) {
|
|
6616
|
+
if (objects) {
|
|
6617
|
+
return listGetNode(objects, key, true);
|
|
6618
|
+
}
|
|
6619
|
+
};
|
|
5842
6620
|
|
|
5843
|
-
|
|
5844
|
-
|
|
5845
|
-
|
|
5846
|
-
|
|
6621
|
+
/** @type {import('.')} */
|
|
6622
|
+
module.exports = function getSideChannelList() {
|
|
6623
|
+
/** @typedef {ReturnType<typeof getSideChannelList>} Channel */
|
|
6624
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
6625
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
6626
|
+
|
|
6627
|
+
/** @type {import('./list.d.ts').RootNode<V, K> | undefined} */ var $o;
|
|
6628
|
+
|
|
6629
|
+
/** @type {Channel} */
|
|
5847
6630
|
var channel = {
|
|
5848
6631
|
assert: function (key) {
|
|
5849
6632
|
if (!channel.has(key)) {
|
|
5850
6633
|
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
5851
6634
|
}
|
|
5852
6635
|
},
|
|
5853
|
-
|
|
5854
|
-
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
} else if ($Map) {
|
|
5859
|
-
if ($m) {
|
|
5860
|
-
return $mapGet($m, key);
|
|
5861
|
-
}
|
|
5862
|
-
} else {
|
|
5863
|
-
if ($o) { // eslint-disable-line no-lonely-if
|
|
5864
|
-
return listGet($o, key);
|
|
5865
|
-
}
|
|
6636
|
+
'delete': function (key) {
|
|
6637
|
+
var root = $o && $o.next;
|
|
6638
|
+
var deletedNode = listDelete($o, key);
|
|
6639
|
+
if (deletedNode && root && root === deletedNode) {
|
|
6640
|
+
$o = void undefined;
|
|
5866
6641
|
}
|
|
6642
|
+
return !!deletedNode;
|
|
6643
|
+
},
|
|
6644
|
+
get: function (key) {
|
|
6645
|
+
return listGet($o, key);
|
|
5867
6646
|
},
|
|
5868
6647
|
has: function (key) {
|
|
5869
|
-
|
|
5870
|
-
|
|
5871
|
-
|
|
5872
|
-
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
}
|
|
5877
|
-
}
|
|
5878
|
-
|
|
5879
|
-
|
|
6648
|
+
return listHas($o, key);
|
|
6649
|
+
},
|
|
6650
|
+
set: function (key, value) {
|
|
6651
|
+
if (!$o) {
|
|
6652
|
+
// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head
|
|
6653
|
+
$o = {
|
|
6654
|
+
next: void undefined
|
|
6655
|
+
};
|
|
6656
|
+
}
|
|
6657
|
+
// eslint-disable-next-line no-extra-parens
|
|
6658
|
+
listSet(/** @type {NonNullable<typeof $o>} */ ($o), key, value);
|
|
6659
|
+
}
|
|
6660
|
+
};
|
|
6661
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
6662
|
+
return channel;
|
|
6663
|
+
};
|
|
6664
|
+
|
|
6665
|
+
|
|
6666
|
+
/***/ }),
|
|
6667
|
+
|
|
6668
|
+
/***/ "../../node_modules/side-channel-map/index.js":
|
|
6669
|
+
/*!****************************************************!*\
|
|
6670
|
+
!*** ../../node_modules/side-channel-map/index.js ***!
|
|
6671
|
+
\****************************************************/
|
|
6672
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6673
|
+
|
|
6674
|
+
"use strict";
|
|
6675
|
+
|
|
6676
|
+
|
|
6677
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
|
6678
|
+
var callBound = __webpack_require__(/*! call-bound */ "../../node_modules/call-bound/index.js");
|
|
6679
|
+
var inspect = __webpack_require__(/*! object-inspect */ "../../node_modules/object-inspect/index.js");
|
|
6680
|
+
|
|
6681
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../../node_modules/es-errors/type.js");
|
|
6682
|
+
var $Map = GetIntrinsic('%Map%', true);
|
|
6683
|
+
|
|
6684
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => V} */
|
|
6685
|
+
var $mapGet = callBound('Map.prototype.get', true);
|
|
6686
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K, value: V) => void} */
|
|
6687
|
+
var $mapSet = callBound('Map.prototype.set', true);
|
|
6688
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
6689
|
+
var $mapHas = callBound('Map.prototype.has', true);
|
|
6690
|
+
/** @type {<K, V>(thisArg: Map<K, V>, key: K) => boolean} */
|
|
6691
|
+
var $mapDelete = callBound('Map.prototype.delete', true);
|
|
6692
|
+
/** @type {<K, V>(thisArg: Map<K, V>) => number} */
|
|
6693
|
+
var $mapSize = callBound('Map.prototype.size', true);
|
|
6694
|
+
|
|
6695
|
+
/** @type {import('.')} */
|
|
6696
|
+
module.exports = !!$Map && /** @type {Exclude<import('.'), false>} */ function getSideChannelMap() {
|
|
6697
|
+
/** @typedef {ReturnType<typeof getSideChannelMap>} Channel */
|
|
6698
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
6699
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
6700
|
+
|
|
6701
|
+
/** @type {Map<K, V> | undefined} */ var $m;
|
|
6702
|
+
|
|
6703
|
+
/** @type {Channel} */
|
|
6704
|
+
var channel = {
|
|
6705
|
+
assert: function (key) {
|
|
6706
|
+
if (!channel.has(key)) {
|
|
6707
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
6708
|
+
}
|
|
6709
|
+
},
|
|
6710
|
+
'delete': function (key) {
|
|
6711
|
+
if ($m) {
|
|
6712
|
+
var result = $mapDelete($m, key);
|
|
6713
|
+
if ($mapSize($m) === 0) {
|
|
6714
|
+
$m = void undefined;
|
|
5880
6715
|
}
|
|
6716
|
+
return result;
|
|
6717
|
+
}
|
|
6718
|
+
return false;
|
|
6719
|
+
},
|
|
6720
|
+
get: function (key) { // eslint-disable-line consistent-return
|
|
6721
|
+
if ($m) {
|
|
6722
|
+
return $mapGet($m, key);
|
|
6723
|
+
}
|
|
6724
|
+
},
|
|
6725
|
+
has: function (key) {
|
|
6726
|
+
if ($m) {
|
|
6727
|
+
return $mapHas($m, key);
|
|
5881
6728
|
}
|
|
5882
6729
|
return false;
|
|
5883
6730
|
},
|
|
5884
6731
|
set: function (key, value) {
|
|
5885
|
-
if (
|
|
5886
|
-
|
|
5887
|
-
|
|
6732
|
+
if (!$m) {
|
|
6733
|
+
// @ts-expect-error TS can't handle narrowing a variable inside a closure
|
|
6734
|
+
$m = new $Map();
|
|
6735
|
+
}
|
|
6736
|
+
$mapSet($m, key, value);
|
|
6737
|
+
}
|
|
6738
|
+
};
|
|
6739
|
+
|
|
6740
|
+
// @ts-expect-error TODO: figure out why TS is erroring here
|
|
6741
|
+
return channel;
|
|
6742
|
+
};
|
|
6743
|
+
|
|
6744
|
+
|
|
6745
|
+
/***/ }),
|
|
6746
|
+
|
|
6747
|
+
/***/ "../../node_modules/side-channel-weakmap/index.js":
|
|
6748
|
+
/*!********************************************************!*\
|
|
6749
|
+
!*** ../../node_modules/side-channel-weakmap/index.js ***!
|
|
6750
|
+
\********************************************************/
|
|
6751
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6752
|
+
|
|
6753
|
+
"use strict";
|
|
6754
|
+
|
|
6755
|
+
|
|
6756
|
+
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
|
|
6757
|
+
var callBound = __webpack_require__(/*! call-bound */ "../../node_modules/call-bound/index.js");
|
|
6758
|
+
var inspect = __webpack_require__(/*! object-inspect */ "../../node_modules/object-inspect/index.js");
|
|
6759
|
+
var getSideChannelMap = __webpack_require__(/*! side-channel-map */ "../../node_modules/side-channel-map/index.js");
|
|
6760
|
+
|
|
6761
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../../node_modules/es-errors/type.js");
|
|
6762
|
+
var $WeakMap = GetIntrinsic('%WeakMap%', true);
|
|
6763
|
+
|
|
6764
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => V} */
|
|
6765
|
+
var $weakMapGet = callBound('WeakMap.prototype.get', true);
|
|
6766
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K, value: V) => void} */
|
|
6767
|
+
var $weakMapSet = callBound('WeakMap.prototype.set', true);
|
|
6768
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
6769
|
+
var $weakMapHas = callBound('WeakMap.prototype.has', true);
|
|
6770
|
+
/** @type {<K extends object, V>(thisArg: WeakMap<K, V>, key: K) => boolean} */
|
|
6771
|
+
var $weakMapDelete = callBound('WeakMap.prototype.delete', true);
|
|
6772
|
+
|
|
6773
|
+
/** @type {import('.')} */
|
|
6774
|
+
module.exports = $WeakMap
|
|
6775
|
+
? /** @type {Exclude<import('.'), false>} */ function getSideChannelWeakMap() {
|
|
6776
|
+
/** @typedef {ReturnType<typeof getSideChannelWeakMap>} Channel */
|
|
6777
|
+
/** @typedef {Parameters<Channel['get']>[0]} K */
|
|
6778
|
+
/** @typedef {Parameters<Channel['set']>[1]} V */
|
|
6779
|
+
|
|
6780
|
+
/** @type {WeakMap<K & object, V> | undefined} */ var $wm;
|
|
6781
|
+
/** @type {Channel | undefined} */ var $m;
|
|
6782
|
+
|
|
6783
|
+
/** @type {Channel} */
|
|
6784
|
+
var channel = {
|
|
6785
|
+
assert: function (key) {
|
|
6786
|
+
if (!channel.has(key)) {
|
|
6787
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
5888
6788
|
}
|
|
5889
|
-
|
|
5890
|
-
|
|
5891
|
-
if (
|
|
5892
|
-
|
|
6789
|
+
},
|
|
6790
|
+
'delete': function (key) {
|
|
6791
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6792
|
+
if ($wm) {
|
|
6793
|
+
return $weakMapDelete($wm, key);
|
|
6794
|
+
}
|
|
6795
|
+
} else if (getSideChannelMap) {
|
|
6796
|
+
if ($m) {
|
|
6797
|
+
return $m['delete'](key);
|
|
6798
|
+
}
|
|
5893
6799
|
}
|
|
5894
|
-
|
|
5895
|
-
}
|
|
5896
|
-
|
|
5897
|
-
|
|
5898
|
-
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
*/
|
|
5902
|
-
$o = { key: {}, next: null };
|
|
6800
|
+
return false;
|
|
6801
|
+
},
|
|
6802
|
+
get: function (key) {
|
|
6803
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6804
|
+
if ($wm) {
|
|
6805
|
+
return $weakMapGet($wm, key);
|
|
6806
|
+
}
|
|
5903
6807
|
}
|
|
5904
|
-
|
|
6808
|
+
return $m && $m.get(key);
|
|
6809
|
+
},
|
|
6810
|
+
has: function (key) {
|
|
6811
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6812
|
+
if ($wm) {
|
|
6813
|
+
return $weakMapHas($wm, key);
|
|
6814
|
+
}
|
|
6815
|
+
}
|
|
6816
|
+
return !!$m && $m.has(key);
|
|
6817
|
+
},
|
|
6818
|
+
set: function (key, value) {
|
|
6819
|
+
if ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {
|
|
6820
|
+
if (!$wm) {
|
|
6821
|
+
$wm = new $WeakMap();
|
|
6822
|
+
}
|
|
6823
|
+
$weakMapSet($wm, key, value);
|
|
6824
|
+
} else if (getSideChannelMap) {
|
|
6825
|
+
if (!$m) {
|
|
6826
|
+
$m = getSideChannelMap();
|
|
6827
|
+
}
|
|
6828
|
+
// eslint-disable-next-line no-extra-parens
|
|
6829
|
+
/** @type {NonNullable<typeof $m>} */ ($m).set(key, value);
|
|
6830
|
+
}
|
|
6831
|
+
}
|
|
6832
|
+
};
|
|
6833
|
+
|
|
6834
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
6835
|
+
return channel;
|
|
6836
|
+
}
|
|
6837
|
+
: getSideChannelMap;
|
|
6838
|
+
|
|
6839
|
+
|
|
6840
|
+
/***/ }),
|
|
6841
|
+
|
|
6842
|
+
/***/ "../../node_modules/side-channel/index.js":
|
|
6843
|
+
/*!************************************************!*\
|
|
6844
|
+
!*** ../../node_modules/side-channel/index.js ***!
|
|
6845
|
+
\************************************************/
|
|
6846
|
+
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
6847
|
+
|
|
6848
|
+
"use strict";
|
|
6849
|
+
|
|
6850
|
+
|
|
6851
|
+
var $TypeError = __webpack_require__(/*! es-errors/type */ "../../node_modules/es-errors/type.js");
|
|
6852
|
+
var inspect = __webpack_require__(/*! object-inspect */ "../../node_modules/object-inspect/index.js");
|
|
6853
|
+
var getSideChannelList = __webpack_require__(/*! side-channel-list */ "../../node_modules/side-channel-list/index.js");
|
|
6854
|
+
var getSideChannelMap = __webpack_require__(/*! side-channel-map */ "../../node_modules/side-channel-map/index.js");
|
|
6855
|
+
var getSideChannelWeakMap = __webpack_require__(/*! side-channel-weakmap */ "../../node_modules/side-channel-weakmap/index.js");
|
|
6856
|
+
|
|
6857
|
+
var makeChannel = getSideChannelWeakMap || getSideChannelMap || getSideChannelList;
|
|
6858
|
+
|
|
6859
|
+
/** @type {import('.')} */
|
|
6860
|
+
module.exports = function getSideChannel() {
|
|
6861
|
+
/** @typedef {ReturnType<typeof getSideChannel>} Channel */
|
|
6862
|
+
|
|
6863
|
+
/** @type {Channel | undefined} */ var $channelData;
|
|
6864
|
+
|
|
6865
|
+
/** @type {Channel} */
|
|
6866
|
+
var channel = {
|
|
6867
|
+
assert: function (key) {
|
|
6868
|
+
if (!channel.has(key)) {
|
|
6869
|
+
throw new $TypeError('Side channel does not contain ' + inspect(key));
|
|
6870
|
+
}
|
|
6871
|
+
},
|
|
6872
|
+
'delete': function (key) {
|
|
6873
|
+
return !!$channelData && $channelData['delete'](key);
|
|
6874
|
+
},
|
|
6875
|
+
get: function (key) {
|
|
6876
|
+
return $channelData && $channelData.get(key);
|
|
6877
|
+
},
|
|
6878
|
+
has: function (key) {
|
|
6879
|
+
return !!$channelData && $channelData.has(key);
|
|
6880
|
+
},
|
|
6881
|
+
set: function (key, value) {
|
|
6882
|
+
if (!$channelData) {
|
|
6883
|
+
$channelData = makeChannel();
|
|
5905
6884
|
}
|
|
6885
|
+
|
|
6886
|
+
$channelData.set(key, value);
|
|
5906
6887
|
}
|
|
5907
6888
|
};
|
|
6889
|
+
// @ts-expect-error TODO: figure out why this is erroring
|
|
5908
6890
|
return channel;
|
|
5909
6891
|
};
|
|
5910
6892
|
|
|
@@ -5933,7 +6915,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
5933
6915
|
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
5934
6916
|
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
5935
6917
|
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
|
5936
|
-
} else
|
|
6918
|
+
} else // removed by dead control flow
|
|
6919
|
+
{}
|
|
5937
6920
|
}(this, function () {
|
|
5938
6921
|
var HAS_SYMBOLS = typeof Object.getOwnPropertySymbols === 'function';
|
|
5939
6922
|
|
|
@@ -6082,6 +7065,12 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
6082
7065
|
/******/ if (cachedModule !== undefined) {
|
|
6083
7066
|
/******/ return cachedModule.exports;
|
|
6084
7067
|
/******/ }
|
|
7068
|
+
/******/ // Check if module exists (development only)
|
|
7069
|
+
/******/ if (__webpack_modules__[moduleId] === undefined) {
|
|
7070
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
7071
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
7072
|
+
/******/ throw e;
|
|
7073
|
+
/******/ }
|
|
6085
7074
|
/******/ // Create a new module (and put it into the cache)
|
|
6086
7075
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
6087
7076
|
/******/ // no module.id needed
|
|
@@ -6097,6 +7086,19 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
6097
7086
|
/******/ }
|
|
6098
7087
|
/******/
|
|
6099
7088
|
/************************************************************************/
|
|
7089
|
+
/******/ /* webpack/runtime/global */
|
|
7090
|
+
/******/ !function() {
|
|
7091
|
+
/******/ __webpack_require__.g = (function() {
|
|
7092
|
+
/******/ if (typeof globalThis === 'object') return globalThis;
|
|
7093
|
+
/******/ try {
|
|
7094
|
+
/******/ return this || new Function('return this')();
|
|
7095
|
+
/******/ } catch (e) {
|
|
7096
|
+
/******/ if (typeof window === 'object') return window;
|
|
7097
|
+
/******/ }
|
|
7098
|
+
/******/ })();
|
|
7099
|
+
/******/ }();
|
|
7100
|
+
/******/
|
|
7101
|
+
/************************************************************************/
|
|
6100
7102
|
/******/
|
|
6101
7103
|
/******/ // startup
|
|
6102
7104
|
/******/ // Load entry module and return exports
|