@feathersjs/client 5.0.11 → 5.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/feathers.js CHANGED
@@ -29,8 +29,8 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
29
29
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
30
30
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
31
31
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
32
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
33
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
32
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
33
+ 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); }
34
34
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
35
35
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
36
36
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
@@ -199,6 +199,7 @@ var AuthenticationClient = /*#__PURE__*/function () {
199
199
  *
200
200
  * @param force force reauthentication with the server
201
201
  * @param strategy The name of the strategy to use. Defaults to `options.jwtStrategy`
202
+ * @param authParams Additional authentication parameters
202
203
  * @returns The reauthentication result
203
204
  */
204
205
  }, {
@@ -207,6 +208,7 @@ var AuthenticationClient = /*#__PURE__*/function () {
207
208
  var _this4 = this;
208
209
  var force = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
209
210
  var strategy = arguments.length > 1 ? arguments[1] : undefined;
211
+ var authParams = arguments.length > 2 ? arguments[2] : undefined;
210
212
  // Either returns the authentication state or
211
213
  // tries to re-authenticate with the stored JWT and strategy
212
214
  var authPromise = this.app.get('authentication');
@@ -218,7 +220,7 @@ var AuthenticationClient = /*#__PURE__*/function () {
218
220
  return _this4.authenticate({
219
221
  strategy: strategy || _this4.options.jwtStrategy,
220
222
  accessToken: accessToken
221
- });
223
+ }, authParams);
222
224
  });
223
225
  this.app.set('authentication', authPromise);
224
226
  }
@@ -358,8 +360,8 @@ Object.defineProperty(exports, "populateHeader", ({
358
360
 
359
361
  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); }
360
362
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
361
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
362
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
363
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
364
+ 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); }
363
365
  Object.defineProperty(exports, "__esModule", ({
364
366
  value: true
365
367
  }));
@@ -496,8 +498,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
496
498
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
497
499
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
498
500
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
499
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
500
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
501
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
502
+ 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); }
501
503
  Object.defineProperty(exports, "__esModule", ({
502
504
  value: true
503
505
  }));
@@ -606,8 +608,8 @@ exports.createDebug = createDebug;
606
608
 
607
609
 
608
610
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
609
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
610
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
611
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
612
+ 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); }
611
613
  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); }
612
614
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
613
615
  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."); }
@@ -769,8 +771,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
769
771
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
770
772
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
771
773
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
772
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
773
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
774
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
775
+ 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); }
774
776
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
775
777
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
776
778
  function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
@@ -778,7 +780,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
778
780
  function _wrapNativeSuper(Class) { var _cache = typeof Map === "function" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== "function") { throw new TypeError("Super expression must either be null or a function"); } if (typeof _cache !== "undefined") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }
779
781
  function _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }
780
782
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
781
- function _isNativeFunction(fn) { return Function.toString.call(fn).indexOf("[native code]") !== -1; }
783
+ function _isNativeFunction(fn) { try { return Function.toString.call(fn).indexOf("[native code]") !== -1; } catch (e) { return typeof fn === "function"; } }
782
784
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
783
785
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
784
786
  Object.defineProperty(exports, "__esModule", ({
@@ -1090,8 +1092,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
1090
1092
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1091
1093
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
1092
1094
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
1093
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
1094
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1095
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
1096
+ 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); }
1095
1097
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
1096
1098
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1097
1099
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1392,8 +1394,8 @@ exports.eventMixin = eventMixin;
1392
1394
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1393
1395
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
1394
1396
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
1395
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
1396
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1397
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
1398
+ 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); }
1397
1399
  function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
1398
1400
  function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
1399
1401
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
@@ -1686,8 +1688,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
1686
1688
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1687
1689
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1688
1690
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1689
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
1690
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1691
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
1692
+ 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); }
1691
1693
  Object.defineProperty(exports, "__esModule", ({
1692
1694
  value: true
1693
1695
  }));
@@ -1772,7 +1774,7 @@ exports.wrapService = wrapService;
1772
1774
  Object.defineProperty(exports, "__esModule", ({
1773
1775
  value: true
1774
1776
  }));
1775
- exports["default"] = '5.0.10';
1777
+ exports["default"] = 'development';
1776
1778
 
1777
1779
  /***/ }),
1778
1780
 
@@ -1789,8 +1791,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1789
1791
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1790
1792
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
1791
1793
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
1792
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
1793
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1794
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
1795
+ 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); }
1794
1796
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
1795
1797
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
1796
1798
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -1848,8 +1850,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
1848
1850
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
1849
1851
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
1850
1852
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
1851
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
1852
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1853
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
1854
+ 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); }
1853
1855
  var __importDefault = this && this.__importDefault || function (mod) {
1854
1856
  return mod && mod.__esModule ? mod : {
1855
1857
  "default": mod
@@ -1878,8 +1880,13 @@ var Base = /*#__PURE__*/function () {
1878
1880
  }
1879
1881
  _createClass(Base, [{
1880
1882
  key: "makeUrl",
1881
- value: function makeUrl(query, id) {
1883
+ value: function makeUrl(query, id, route) {
1882
1884
  var url = this.base;
1885
+ if (route) {
1886
+ Object.keys(route).forEach(function (key) {
1887
+ url = url.replace(":".concat(key), route[key]);
1888
+ });
1889
+ }
1883
1890
  query = query || {};
1884
1891
  if (typeof id !== 'undefined' && id !== null) {
1885
1892
  url += "/".concat(encodeURIComponent(id));
@@ -1908,7 +1915,7 @@ var Base = /*#__PURE__*/function () {
1908
1915
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1909
1916
  return this.request({
1910
1917
  body: data,
1911
- url: this.makeUrl(params.query),
1918
+ url: this.makeUrl(params.query, null, params.route),
1912
1919
  method: 'POST',
1913
1920
  headers: Object.assign({
1914
1921
  'Content-Type': 'application/json',
@@ -1927,7 +1934,7 @@ var Base = /*#__PURE__*/function () {
1927
1934
  key: "_find",
1928
1935
  value: function _find(params) {
1929
1936
  return this.request({
1930
- url: this.makeUrl(params.query),
1937
+ url: this.makeUrl(params.query, null, params.route),
1931
1938
  method: 'GET',
1932
1939
  headers: Object.assign({}, params.headers)
1933
1940
  }, params).catch(toError);
@@ -1944,7 +1951,7 @@ var Base = /*#__PURE__*/function () {
1944
1951
  return Promise.reject(new Error("id for 'get' can not be undefined"));
1945
1952
  }
1946
1953
  return this.request({
1947
- url: this.makeUrl(params.query, id),
1954
+ url: this.makeUrl(params.query, id, params.route),
1948
1955
  method: 'GET',
1949
1956
  headers: Object.assign({}, params.headers)
1950
1957
  }, params).catch(toError);
@@ -1958,7 +1965,7 @@ var Base = /*#__PURE__*/function () {
1958
1965
  key: "_create",
1959
1966
  value: function _create(data, params) {
1960
1967
  return this.request({
1961
- url: this.makeUrl(params.query),
1968
+ url: this.makeUrl(params.query, null, params.route),
1962
1969
  body: data,
1963
1970
  method: 'POST',
1964
1971
  headers: Object.assign({
@@ -1978,7 +1985,7 @@ var Base = /*#__PURE__*/function () {
1978
1985
  return Promise.reject(new Error("id for 'update' can not be undefined, only 'null' when updating multiple entries"));
1979
1986
  }
1980
1987
  return this.request({
1981
- url: this.makeUrl(params.query, id),
1988
+ url: this.makeUrl(params.query, id, params.route),
1982
1989
  body: data,
1983
1990
  method: 'PUT',
1984
1991
  headers: Object.assign({
@@ -1998,7 +2005,7 @@ var Base = /*#__PURE__*/function () {
1998
2005
  return Promise.reject(new Error("id for 'patch' can not be undefined, only 'null' when updating multiple entries"));
1999
2006
  }
2000
2007
  return this.request({
2001
- url: this.makeUrl(params.query, id),
2008
+ url: this.makeUrl(params.query, id, params.route),
2002
2009
  body: data,
2003
2010
  method: 'PATCH',
2004
2011
  headers: Object.assign({
@@ -2018,7 +2025,7 @@ var Base = /*#__PURE__*/function () {
2018
2025
  return Promise.reject(new Error("id for 'remove' can not be undefined, only 'null' when removing multiple entries"));
2019
2026
  }
2020
2027
  return this.request({
2021
- url: this.makeUrl(params.query, id),
2028
+ url: this.makeUrl(params.query, id, params.route),
2022
2029
  method: 'DELETE',
2023
2030
  headers: Object.assign({}, params.headers)
2024
2031
  }, params).catch(toError);
@@ -2048,8 +2055,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2048
2055
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2049
2056
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
2050
2057
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
2051
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
2052
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2058
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
2059
+ 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); }
2053
2060
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
2054
2061
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
2055
2062
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -2221,8 +2228,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2221
2228
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2222
2229
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
2223
2230
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
2224
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
2225
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2231
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
2232
+ 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); }
2226
2233
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
2227
2234
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
2228
2235
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
@@ -2354,8 +2361,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
2354
2361
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
2355
2362
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
2356
2363
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
2357
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
2358
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
2364
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
2365
+ 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); }
2359
2366
  Object.defineProperty(exports, "__esModule", ({
2360
2367
  value: true
2361
2368
  }));
@@ -2411,7 +2418,14 @@ var Service = /*#__PURE__*/function () {
2411
2418
  }
2412
2419
  return new Promise(function (resolve, reject) {
2413
2420
  var _this$connection3;
2414
- args.unshift(method, _this.path);
2421
+ var route = args.pop();
2422
+ var path = _this.path;
2423
+ if (route) {
2424
+ Object.keys(route).forEach(function (key) {
2425
+ path = path.replace(":".concat(key), route[key]);
2426
+ });
2427
+ }
2428
+ args.unshift(method, path);
2415
2429
  args.push(function (error, data) {
2416
2430
  return error ? reject((0, errors_1.convert)(error)) : resolve(data);
2417
2431
  });
@@ -2430,11 +2444,11 @@ var Service = /*#__PURE__*/function () {
2430
2444
  var _method = "_".concat(method);
2431
2445
  _this2[_method] = function (data) {
2432
2446
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2433
- return this.send(method, data, params.query || {});
2447
+ return this.send(method, data, params.query || {}, params.route || {});
2434
2448
  };
2435
2449
  _this2[method] = function (data) {
2436
2450
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2437
- return this[_method](data, params);
2451
+ return this[_method](data, params, params.route || {});
2438
2452
  };
2439
2453
  });
2440
2454
  return this;
@@ -2443,7 +2457,7 @@ var Service = /*#__PURE__*/function () {
2443
2457
  key: "_find",
2444
2458
  value: function _find() {
2445
2459
  var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
2446
- return this.send('find', params.query || {});
2460
+ return this.send('find', params.query || {}, params.route || {});
2447
2461
  }
2448
2462
  }, {
2449
2463
  key: "find",
@@ -2455,7 +2469,7 @@ var Service = /*#__PURE__*/function () {
2455
2469
  key: "_get",
2456
2470
  value: function _get(id) {
2457
2471
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2458
- return this.send('get', id, params.query || {});
2472
+ return this.send('get', id, params.query || {}, params.route || {});
2459
2473
  }
2460
2474
  }, {
2461
2475
  key: "get",
@@ -2467,7 +2481,7 @@ var Service = /*#__PURE__*/function () {
2467
2481
  key: "_create",
2468
2482
  value: function _create(data) {
2469
2483
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2470
- return this.send('create', data, params.query || {});
2484
+ return this.send('create', data, params.query || {}, params.route || {});
2471
2485
  }
2472
2486
  }, {
2473
2487
  key: "create",
@@ -2482,7 +2496,7 @@ var Service = /*#__PURE__*/function () {
2482
2496
  if (typeof id === 'undefined') {
2483
2497
  return Promise.reject(new Error("id for 'update' can not be undefined"));
2484
2498
  }
2485
- return this.send('update', id, data, params.query || {});
2499
+ return this.send('update', id, data, params.query || {}, params.route || {});
2486
2500
  }
2487
2501
  }, {
2488
2502
  key: "update",
@@ -2494,7 +2508,7 @@ var Service = /*#__PURE__*/function () {
2494
2508
  key: "_patch",
2495
2509
  value: function _patch(id, data) {
2496
2510
  var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
2497
- return this.send('patch', id, data, params.query || {});
2511
+ return this.send('patch', id, data, params.query || {}, params.route || {});
2498
2512
  }
2499
2513
  }, {
2500
2514
  key: "patch",
@@ -2506,7 +2520,7 @@ var Service = /*#__PURE__*/function () {
2506
2520
  key: "_remove",
2507
2521
  value: function _remove(id) {
2508
2522
  var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
2509
- return this.send('remove', id, params.query || {});
2523
+ return this.send('remove', id, params.query || {}, params.route || {});
2510
2524
  }
2511
2525
  }, {
2512
2526
  key: "remove",
@@ -2578,12 +2592,13 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
2578
2592
 
2579
2593
  var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
2580
2594
  var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
2595
+ var setFunctionLength = __webpack_require__(/*! set-function-length */ "../../node_modules/set-function-length/index.js");
2581
2596
 
2597
+ var $TypeError = GetIntrinsic('%TypeError%');
2582
2598
  var $apply = GetIntrinsic('%Function.prototype.apply%');
2583
2599
  var $call = GetIntrinsic('%Function.prototype.call%');
2584
2600
  var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);
2585
2601
 
2586
- var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
2587
2602
  var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
2588
2603
  var $max = GetIntrinsic('%Math.max%');
2589
2604
 
@@ -2597,19 +2612,15 @@ if ($defineProperty) {
2597
2612
  }
2598
2613
 
2599
2614
  module.exports = function callBind(originalFunction) {
2600
- var func = $reflectApply(bind, $call, arguments);
2601
- if ($gOPD && $defineProperty) {
2602
- var desc = $gOPD(func, 'length');
2603
- if (desc.configurable) {
2604
- // original length, plus the receiver, minus any additional arguments (after the receiver)
2605
- $defineProperty(
2606
- func,
2607
- 'length',
2608
- { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
2609
- );
2610
- }
2615
+ if (typeof originalFunction !== 'function') {
2616
+ throw new $TypeError('a function is required');
2611
2617
  }
2612
- return func;
2618
+ var func = $reflectApply(bind, $call, arguments);
2619
+ return setFunctionLength(
2620
+ func,
2621
+ 1 + $max(0, originalFunction.length - (arguments.length - 1)),
2622
+ true
2623
+ );
2613
2624
  };
2614
2625
 
2615
2626
  var applyBind = function applyBind() {
@@ -2623,6 +2634,85 @@ if ($defineProperty) {
2623
2634
  }
2624
2635
 
2625
2636
 
2637
+ /***/ }),
2638
+
2639
+ /***/ "../../node_modules/define-data-property/index.js":
2640
+ /*!********************************************************!*\
2641
+ !*** ../../node_modules/define-data-property/index.js ***!
2642
+ \********************************************************/
2643
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
2644
+
2645
+ "use strict";
2646
+
2647
+
2648
+ var hasPropertyDescriptors = __webpack_require__(/*! has-property-descriptors */ "../../node_modules/has-property-descriptors/index.js")();
2649
+
2650
+ var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
2651
+
2652
+ var $defineProperty = hasPropertyDescriptors && GetIntrinsic('%Object.defineProperty%', true);
2653
+ if ($defineProperty) {
2654
+ try {
2655
+ $defineProperty({}, 'a', { value: 1 });
2656
+ } catch (e) {
2657
+ // IE 8 has a broken defineProperty
2658
+ $defineProperty = false;
2659
+ }
2660
+ }
2661
+
2662
+ var $SyntaxError = GetIntrinsic('%SyntaxError%');
2663
+ var $TypeError = GetIntrinsic('%TypeError%');
2664
+
2665
+ var gopd = __webpack_require__(/*! gopd */ "../../node_modules/gopd/index.js");
2666
+
2667
+ /** @type {(obj: Record<PropertyKey, unknown>, property: PropertyKey, value: unknown, nonEnumerable?: boolean | null, nonWritable?: boolean | null, nonConfigurable?: boolean | null, loose?: boolean) => void} */
2668
+ module.exports = function defineDataProperty(
2669
+ obj,
2670
+ property,
2671
+ value
2672
+ ) {
2673
+ if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
2674
+ throw new $TypeError('`obj` must be an object or a function`');
2675
+ }
2676
+ if (typeof property !== 'string' && typeof property !== 'symbol') {
2677
+ throw new $TypeError('`property` must be a string or a symbol`');
2678
+ }
2679
+ if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
2680
+ throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
2681
+ }
2682
+ if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
2683
+ throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
2684
+ }
2685
+ if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
2686
+ throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
2687
+ }
2688
+ if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
2689
+ throw new $TypeError('`loose`, if provided, must be a boolean');
2690
+ }
2691
+
2692
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
2693
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
2694
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
2695
+ var loose = arguments.length > 6 ? arguments[6] : false;
2696
+
2697
+ /* @type {false | TypedPropertyDescriptor<unknown>} */
2698
+ var desc = !!gopd && gopd(obj, property);
2699
+
2700
+ if ($defineProperty) {
2701
+ $defineProperty(obj, property, {
2702
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
2703
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
2704
+ value: value,
2705
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
2706
+ });
2707
+ } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
2708
+ // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
2709
+ obj[property] = value; // eslint-disable-line no-param-reassign
2710
+ } else {
2711
+ throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
2712
+ }
2713
+ };
2714
+
2715
+
2626
2716
  /***/ }),
2627
2717
 
2628
2718
  /***/ "../../node_modules/events/events.js":
@@ -3145,43 +3235,75 @@ function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
3145
3235
  /* eslint no-invalid-this: 1 */
3146
3236
 
3147
3237
  var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
3148
- var slice = Array.prototype.slice;
3149
3238
  var toStr = Object.prototype.toString;
3239
+ var max = Math.max;
3150
3240
  var funcType = '[object Function]';
3151
3241
 
3242
+ var concatty = function concatty(a, b) {
3243
+ var arr = [];
3244
+
3245
+ for (var i = 0; i < a.length; i += 1) {
3246
+ arr[i] = a[i];
3247
+ }
3248
+ for (var j = 0; j < b.length; j += 1) {
3249
+ arr[j + a.length] = b[j];
3250
+ }
3251
+
3252
+ return arr;
3253
+ };
3254
+
3255
+ var slicy = function slicy(arrLike, offset) {
3256
+ var arr = [];
3257
+ for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
3258
+ arr[j] = arrLike[i];
3259
+ }
3260
+ return arr;
3261
+ };
3262
+
3263
+ var joiny = function (arr, joiner) {
3264
+ var str = '';
3265
+ for (var i = 0; i < arr.length; i += 1) {
3266
+ str += arr[i];
3267
+ if (i + 1 < arr.length) {
3268
+ str += joiner;
3269
+ }
3270
+ }
3271
+ return str;
3272
+ };
3273
+
3152
3274
  module.exports = function bind(that) {
3153
3275
  var target = this;
3154
- if (typeof target !== 'function' || toStr.call(target) !== funcType) {
3276
+ if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
3155
3277
  throw new TypeError(ERROR_MESSAGE + target);
3156
3278
  }
3157
- var args = slice.call(arguments, 1);
3279
+ var args = slicy(arguments, 1);
3158
3280
 
3159
3281
  var bound;
3160
3282
  var binder = function () {
3161
3283
  if (this instanceof bound) {
3162
3284
  var result = target.apply(
3163
3285
  this,
3164
- args.concat(slice.call(arguments))
3286
+ concatty(args, arguments)
3165
3287
  );
3166
3288
  if (Object(result) === result) {
3167
3289
  return result;
3168
3290
  }
3169
3291
  return this;
3170
- } else {
3171
- return target.apply(
3172
- that,
3173
- args.concat(slice.call(arguments))
3174
- );
3175
3292
  }
3293
+ return target.apply(
3294
+ that,
3295
+ concatty(args, arguments)
3296
+ );
3297
+
3176
3298
  };
3177
3299
 
3178
- var boundLength = Math.max(0, target.length - args.length);
3300
+ var boundLength = max(0, target.length - args.length);
3179
3301
  var boundArgs = [];
3180
3302
  for (var i = 0; i < boundLength; i++) {
3181
- boundArgs.push('$' + i);
3303
+ boundArgs[i] = '$' + i;
3182
3304
  }
3183
3305
 
3184
- bound = Function('binder', 'return function (' + boundArgs.join(',') + '){ return binder.apply(this,arguments); }')(binder);
3306
+ bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
3185
3307
 
3186
3308
  if (target.prototype) {
3187
3309
  var Empty = function Empty() {};
@@ -3435,7 +3557,7 @@ var LEGACY_ALIASES = {
3435
3557
  };
3436
3558
 
3437
3559
  var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
3438
- var hasOwn = __webpack_require__(/*! has */ "../../node_modules/has/src/index.js");
3560
+ var hasOwn = __webpack_require__(/*! hasown */ "../../node_modules/hasown/index.js");
3439
3561
  var $concat = bind.call(Function.call, Array.prototype.concat);
3440
3562
  var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
3441
3563
  var $replace = bind.call(Function.call, String.prototype.replace);
@@ -3572,6 +3694,77 @@ module.exports = function GetIntrinsic(name, allowMissing) {
3572
3694
  };
3573
3695
 
3574
3696
 
3697
+ /***/ }),
3698
+
3699
+ /***/ "../../node_modules/gopd/index.js":
3700
+ /*!****************************************!*\
3701
+ !*** ../../node_modules/gopd/index.js ***!
3702
+ \****************************************/
3703
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3704
+
3705
+ "use strict";
3706
+
3707
+
3708
+ var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
3709
+
3710
+ var $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);
3711
+
3712
+ if ($gOPD) {
3713
+ try {
3714
+ $gOPD([], 'length');
3715
+ } catch (e) {
3716
+ // IE 8 has a broken gOPD
3717
+ $gOPD = null;
3718
+ }
3719
+ }
3720
+
3721
+ module.exports = $gOPD;
3722
+
3723
+
3724
+ /***/ }),
3725
+
3726
+ /***/ "../../node_modules/has-property-descriptors/index.js":
3727
+ /*!************************************************************!*\
3728
+ !*** ../../node_modules/has-property-descriptors/index.js ***!
3729
+ \************************************************************/
3730
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3731
+
3732
+ "use strict";
3733
+
3734
+
3735
+ var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
3736
+
3737
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
3738
+
3739
+ var hasPropertyDescriptors = function hasPropertyDescriptors() {
3740
+ if ($defineProperty) {
3741
+ try {
3742
+ $defineProperty({}, 'a', { value: 1 });
3743
+ return true;
3744
+ } catch (e) {
3745
+ // IE 8 has a broken defineProperty
3746
+ return false;
3747
+ }
3748
+ }
3749
+ return false;
3750
+ };
3751
+
3752
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
3753
+ // node v0.6 has a bug where array lengths can be Set but not Defined
3754
+ if (!hasPropertyDescriptors()) {
3755
+ return null;
3756
+ }
3757
+ try {
3758
+ return $defineProperty([], 'length', { value: 1 }).length !== 1;
3759
+ } catch (e) {
3760
+ // In Firefox 4-22, defining length on an array throws an exception.
3761
+ return true;
3762
+ }
3763
+ };
3764
+
3765
+ module.exports = hasPropertyDescriptors;
3766
+
3767
+
3575
3768
  /***/ }),
3576
3769
 
3577
3770
  /***/ "../../node_modules/has-proto/index.js":
@@ -3673,18 +3866,21 @@ module.exports = function hasSymbols() {
3673
3866
 
3674
3867
  /***/ }),
3675
3868
 
3676
- /***/ "../../node_modules/has/src/index.js":
3677
- /*!*******************************************!*\
3678
- !*** ../../node_modules/has/src/index.js ***!
3679
- \*******************************************/
3869
+ /***/ "../../node_modules/hasown/index.js":
3870
+ /*!******************************************!*\
3871
+ !*** ../../node_modules/hasown/index.js ***!
3872
+ \******************************************/
3680
3873
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3681
3874
 
3682
3875
  "use strict";
3683
3876
 
3684
3877
 
3878
+ var call = Function.prototype.call;
3879
+ var $hasOwn = Object.prototype.hasOwnProperty;
3685
3880
  var bind = __webpack_require__(/*! function-bind */ "../../node_modules/function-bind/index.js");
3686
3881
 
3687
- module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
3882
+ /** @type {(o: {}, p: PropertyKey) => p is keyof o} */
3883
+ module.exports = bind.call(call, $hasOwn);
3688
3884
 
3689
3885
 
3690
3886
  /***/ }),
@@ -3936,6 +4132,14 @@ module.exports = function inspect_(obj, options, depth, seen) {
3936
4132
  if (isString(obj)) {
3937
4133
  return markBoxed(inspect(String(obj)));
3938
4134
  }
4135
+ // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
4136
+ /* eslint-env browser */
4137
+ if (typeof window !== 'undefined' && obj === window) {
4138
+ return '{ [object Window] }';
4139
+ }
4140
+ if (obj === __webpack_require__.g) {
4141
+ return '{ [object globalThis] }';
4142
+ }
3939
4143
  if (!isDate(obj) && !isRegExp(obj)) {
3940
4144
  var ys = arrObjKeys(obj, inspect);
3941
4145
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
@@ -5138,6 +5342,58 @@ module.exports = {
5138
5342
  };
5139
5343
 
5140
5344
 
5345
+ /***/ }),
5346
+
5347
+ /***/ "../../node_modules/set-function-length/index.js":
5348
+ /*!*******************************************************!*\
5349
+ !*** ../../node_modules/set-function-length/index.js ***!
5350
+ \*******************************************************/
5351
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
5352
+
5353
+ "use strict";
5354
+
5355
+
5356
+ var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "../../node_modules/get-intrinsic/index.js");
5357
+ var define = __webpack_require__(/*! define-data-property */ "../../node_modules/define-data-property/index.js");
5358
+ var hasDescriptors = __webpack_require__(/*! has-property-descriptors */ "../../node_modules/has-property-descriptors/index.js")();
5359
+ var gOPD = __webpack_require__(/*! gopd */ "../../node_modules/gopd/index.js");
5360
+
5361
+ var $TypeError = GetIntrinsic('%TypeError%');
5362
+ var $floor = GetIntrinsic('%Math.floor%');
5363
+
5364
+ module.exports = function setFunctionLength(fn, length) {
5365
+ if (typeof fn !== 'function') {
5366
+ throw new $TypeError('`fn` is not a function');
5367
+ }
5368
+ if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
5369
+ throw new $TypeError('`length` must be a positive 32-bit integer');
5370
+ }
5371
+
5372
+ var loose = arguments.length > 2 && !!arguments[2];
5373
+
5374
+ var functionLengthIsConfigurable = true;
5375
+ var functionLengthIsWritable = true;
5376
+ if ('length' in fn && gOPD) {
5377
+ var desc = gOPD(fn, 'length');
5378
+ if (desc && !desc.configurable) {
5379
+ functionLengthIsConfigurable = false;
5380
+ }
5381
+ if (desc && !desc.writable) {
5382
+ functionLengthIsWritable = false;
5383
+ }
5384
+ }
5385
+
5386
+ if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
5387
+ if (hasDescriptors) {
5388
+ define(fn, 'length', length, true, true);
5389
+ } else {
5390
+ define(fn, 'length', length);
5391
+ }
5392
+ }
5393
+ return fn;
5394
+ };
5395
+
5396
+
5141
5397
  /***/ }),
5142
5398
 
5143
5399
  /***/ "../../node_modules/side-channel/index.js":
@@ -5367,8 +5623,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
5367
5623
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
5368
5624
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
5369
5625
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
5370
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5371
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5626
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
5627
+ 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); }
5372
5628
  Object.defineProperty(exports, "__esModule", ({
5373
5629
  value: true
5374
5630
  }));
@@ -5898,8 +6154,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
5898
6154
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5899
6155
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5900
6156
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
5901
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
5902
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
6157
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6158
+ 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); }
5903
6159
  Object.defineProperty(exports, "__esModule", ({
5904
6160
  value: true
5905
6161
  }));
@@ -6064,6 +6320,19 @@ exports.copyFnProperties = copyFnProperties;
6064
6320
  /******/ }
6065
6321
  /******/
6066
6322
  /************************************************************************/
6323
+ /******/ /* webpack/runtime/global */
6324
+ /******/ !function() {
6325
+ /******/ __webpack_require__.g = (function() {
6326
+ /******/ if (typeof globalThis === 'object') return globalThis;
6327
+ /******/ try {
6328
+ /******/ return this || new Function('return this')();
6329
+ /******/ } catch (e) {
6330
+ /******/ if (typeof window === 'object') return window;
6331
+ /******/ }
6332
+ /******/ })();
6333
+ /******/ }();
6334
+ /******/
6335
+ /************************************************************************/
6067
6336
  /******/
6068
6337
  /******/ // startup
6069
6338
  /******/ // Load entry module and return exports