mp-front-cli 0.0.56 → 0.0.58

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.
@@ -1,52 +1,52 @@
1
1
  var G = Object.defineProperty;
2
- var J = (r, t, e) => t in r ? G(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
- var v = (r, t, e) => (J(r, typeof t != "symbol" ? t + "" : t, e), e);
2
+ var J = (e, t, r) => t in e ? G(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var v = (e, t, r) => (J(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import { switchMap as g, of as T, catchError as V } from "rxjs";
5
5
  import { CustomLogger as q } from "./mp-front-cli-logger.es.js";
6
6
  import { CustomEncrypter as z } from "./mp-front-cli-encrypter.es.js";
7
- var O = function(r, t) {
8
- return O = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
9
- e.__proto__ = n;
10
- } || function(e, n) {
7
+ var O = function(e, t) {
8
+ return O = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(r, n) {
9
+ r.__proto__ = n;
10
+ } || function(r, n) {
11
11
  for (var i in n)
12
- Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
13
- }, O(r, t);
12
+ Object.prototype.hasOwnProperty.call(n, i) && (r[i] = n[i]);
13
+ }, O(e, t);
14
14
  };
15
- function C(r, t) {
15
+ function C(e, t) {
16
16
  if (typeof t != "function" && t !== null)
17
17
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
18
- O(r, t);
19
- function e() {
20
- this.constructor = r;
18
+ O(e, t);
19
+ function r() {
20
+ this.constructor = e;
21
21
  }
22
- r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
22
+ e.prototype = t === null ? Object.create(t) : (r.prototype = t.prototype, new r());
23
23
  }
24
24
  var w = function() {
25
25
  return w = Object.assign || function(t) {
26
- for (var e, n = 1, i = arguments.length; n < i; n++) {
27
- e = arguments[n];
28
- for (var o in e)
29
- Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
26
+ for (var r, n = 1, i = arguments.length; n < i; n++) {
27
+ r = arguments[n];
28
+ for (var o in r)
29
+ Object.prototype.hasOwnProperty.call(r, o) && (t[o] = r[o]);
30
30
  }
31
31
  return t;
32
32
  }, w.apply(this, arguments);
33
33
  };
34
- function Q(r, t) {
35
- var e = {};
36
- for (var n in r)
37
- Object.prototype.hasOwnProperty.call(r, n) && t.indexOf(n) < 0 && (e[n] = r[n]);
38
- if (r != null && typeof Object.getOwnPropertySymbols == "function")
39
- for (var i = 0, n = Object.getOwnPropertySymbols(r); i < n.length; i++)
40
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (e[n[i]] = r[n[i]]);
41
- return e;
34
+ function Q(e, t) {
35
+ var r = {};
36
+ for (var n in e)
37
+ Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (r[n] = e[n]);
38
+ if (e != null && typeof Object.getOwnPropertySymbols == "function")
39
+ for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
40
+ t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (r[n[i]] = e[n[i]]);
41
+ return r;
42
42
  }
43
- function X(r, t, e, n) {
43
+ function X(e, t, r, n) {
44
44
  function i(o) {
45
- return o instanceof e ? o : new e(function(u) {
45
+ return o instanceof r ? o : new r(function(u) {
46
46
  u(o);
47
47
  });
48
48
  }
49
- return new (e || (e = Promise))(function(o, u) {
49
+ return new (r || (r = Promise))(function(o, u) {
50
50
  function s(f) {
51
51
  try {
52
52
  c(n.next(f));
@@ -64,11 +64,11 @@ function X(r, t, e, n) {
64
64
  function c(f) {
65
65
  f.done ? o(f.value) : i(f.value).then(s, a);
66
66
  }
67
- c((n = n.apply(r, t || [])).next());
67
+ c((n = n.apply(e, t || [])).next());
68
68
  });
69
69
  }
70
- function F(r, t) {
71
- var e = { label: 0, sent: function() {
70
+ function F(e, t) {
71
+ var r = { label: 0, sent: function() {
72
72
  if (o[0] & 1)
73
73
  throw o[1];
74
74
  return o[1];
@@ -84,7 +84,7 @@ function F(r, t) {
84
84
  function a(c) {
85
85
  if (n)
86
86
  throw new TypeError("Generator is already executing.");
87
- for (; u && (u = 0, c[0] && (e = 0)), e; )
87
+ for (; u && (u = 0, c[0] && (r = 0)), r; )
88
88
  try {
89
89
  if (n = 1, i && (o = c[0] & 2 ? i.return : c[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, c[1])).done)
90
90
  return o;
@@ -94,34 +94,34 @@ function F(r, t) {
94
94
  o = c;
95
95
  break;
96
96
  case 4:
97
- return e.label++, { value: c[1], done: !1 };
97
+ return r.label++, { value: c[1], done: !1 };
98
98
  case 5:
99
- e.label++, i = c[1], c = [0];
99
+ r.label++, i = c[1], c = [0];
100
100
  continue;
101
101
  case 7:
102
- c = e.ops.pop(), e.trys.pop();
102
+ c = r.ops.pop(), r.trys.pop();
103
103
  continue;
104
104
  default:
105
- if (o = e.trys, !(o = o.length > 0 && o[o.length - 1]) && (c[0] === 6 || c[0] === 2)) {
106
- e = 0;
105
+ if (o = r.trys, !(o = o.length > 0 && o[o.length - 1]) && (c[0] === 6 || c[0] === 2)) {
106
+ r = 0;
107
107
  continue;
108
108
  }
109
109
  if (c[0] === 3 && (!o || c[1] > o[0] && c[1] < o[3])) {
110
- e.label = c[1];
110
+ r.label = c[1];
111
111
  break;
112
112
  }
113
- if (c[0] === 6 && e.label < o[1]) {
114
- e.label = o[1], o = c;
113
+ if (c[0] === 6 && r.label < o[1]) {
114
+ r.label = o[1], o = c;
115
115
  break;
116
116
  }
117
- if (o && e.label < o[2]) {
118
- e.label = o[2], e.ops.push(c);
117
+ if (o && r.label < o[2]) {
118
+ r.label = o[2], r.ops.push(c);
119
119
  break;
120
120
  }
121
- o[2] && e.ops.pop(), e.trys.pop();
121
+ o[2] && r.ops.pop(), r.trys.pop();
122
122
  continue;
123
123
  }
124
- c = t.call(r, e);
124
+ c = t.call(e, r);
125
125
  } catch (f) {
126
126
  c = [6, f], i = 0;
127
127
  } finally {
@@ -132,23 +132,23 @@ function F(r, t) {
132
132
  return { value: c[0] ? c[1] : void 0, done: !0 };
133
133
  }
134
134
  }
135
- function _(r) {
136
- var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], n = 0;
137
- if (e)
138
- return e.call(r);
139
- if (r && typeof r.length == "number")
135
+ function _(e) {
136
+ var t = typeof Symbol == "function" && Symbol.iterator, r = t && e[t], n = 0;
137
+ if (r)
138
+ return r.call(e);
139
+ if (e && typeof e.length == "number")
140
140
  return {
141
141
  next: function() {
142
- return r && n >= r.length && (r = void 0), { value: r && r[n++], done: !r };
142
+ return e && n >= e.length && (e = void 0), { value: e && e[n++], done: !e };
143
143
  }
144
144
  };
145
145
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
146
146
  }
147
- function P(r, t) {
148
- var e = typeof Symbol == "function" && r[Symbol.iterator];
149
- if (!e)
150
- return r;
151
- var n = e.call(r), i, o = [], u;
147
+ function P(e, t) {
148
+ var r = typeof Symbol == "function" && e[Symbol.iterator];
149
+ if (!r)
150
+ return e;
151
+ var n = r.call(e), i, o = [], u;
152
152
  try {
153
153
  for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
154
154
  o.push(i.value);
@@ -156,7 +156,7 @@ function P(r, t) {
156
156
  u = { error: s };
157
157
  } finally {
158
158
  try {
159
- i && !i.done && (e = n.return) && e.call(n);
159
+ i && !i.done && (r = n.return) && r.call(n);
160
160
  } finally {
161
161
  if (u)
162
162
  throw u.error;
@@ -164,19 +164,19 @@ function P(r, t) {
164
164
  }
165
165
  return o;
166
166
  }
167
- function U(r, t, e) {
168
- if (e || arguments.length === 2)
167
+ function U(e, t, r) {
168
+ if (r || arguments.length === 2)
169
169
  for (var n = 0, i = t.length, o; n < i; n++)
170
170
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
171
- return r.concat(o || Array.prototype.slice.call(t));
171
+ return e.concat(o || Array.prototype.slice.call(t));
172
172
  }
173
- function m(r) {
174
- return this instanceof m ? (this.v = r, this) : new m(r);
173
+ function m(e) {
174
+ return this instanceof m ? (this.v = e, this) : new m(e);
175
175
  }
176
- function Z(r, t, e) {
176
+ function Z(e, t, r) {
177
177
  if (!Symbol.asyncIterator)
178
178
  throw new TypeError("Symbol.asyncIterator is not defined.");
179
- var n = e.apply(r, t || []), i, o = [];
179
+ var n = r.apply(e, t || []), i, o = [];
180
180
  return i = {}, u("next"), u("throw"), u("return"), i[Symbol.asyncIterator] = function() {
181
181
  return this;
182
182
  }, i;
@@ -207,17 +207,17 @@ function Z(r, t, e) {
207
207
  l(d), o.shift(), o.length && s(o[0][0], o[0][1]);
208
208
  }
209
209
  }
210
- function N(r) {
210
+ function N(e) {
211
211
  if (!Symbol.asyncIterator)
212
212
  throw new TypeError("Symbol.asyncIterator is not defined.");
213
- var t = r[Symbol.asyncIterator], e;
214
- return t ? t.call(r) : (r = typeof _ == "function" ? _(r) : r[Symbol.iterator](), e = {}, n("next"), n("throw"), n("return"), e[Symbol.asyncIterator] = function() {
213
+ var t = e[Symbol.asyncIterator], r;
214
+ return t ? t.call(e) : (e = typeof _ == "function" ? _(e) : e[Symbol.iterator](), r = {}, n("next"), n("throw"), n("return"), r[Symbol.asyncIterator] = function() {
215
215
  return this;
216
- }, e);
216
+ }, r);
217
217
  function n(o) {
218
- e[o] = r[o] && function(u) {
218
+ r[o] = e[o] && function(u) {
219
219
  return new Promise(function(s, a) {
220
- u = r[o](u), i(s, a, u.done, u.value);
220
+ u = e[o](u), i(s, a, u.done, u.value);
221
221
  });
222
222
  };
223
223
  }
@@ -227,36 +227,36 @@ function N(r) {
227
227
  }, u);
228
228
  }
229
229
  }
230
- function h(r) {
231
- return typeof r == "function";
230
+ function h(e) {
231
+ return typeof e == "function";
232
232
  }
233
- function rr(r) {
233
+ function rr(e) {
234
234
  var t = function(n) {
235
235
  Error.call(n), n.stack = new Error().stack;
236
- }, e = r(t);
237
- return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
236
+ }, r = e(t);
237
+ return r.prototype = Object.create(Error.prototype), r.prototype.constructor = r, r;
238
238
  }
239
- var E = rr(function(r) {
240
- return function(e) {
241
- r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
242
- ` + e.map(function(n, i) {
239
+ var E = rr(function(e) {
240
+ return function(r) {
241
+ e(this), this.message = r ? r.length + ` errors occurred during unsubscription:
242
+ ` + r.map(function(n, i) {
243
243
  return i + 1 + ") " + n.toString();
244
244
  }).join(`
245
- `) : "", this.name = "UnsubscriptionError", this.errors = e;
245
+ `) : "", this.name = "UnsubscriptionError", this.errors = r;
246
246
  };
247
247
  });
248
- function k(r, t) {
249
- if (r) {
250
- var e = r.indexOf(t);
251
- 0 <= e && r.splice(e, 1);
248
+ function k(e, t) {
249
+ if (e) {
250
+ var r = e.indexOf(t);
251
+ 0 <= r && e.splice(r, 1);
252
252
  }
253
253
  }
254
254
  var x = function() {
255
- function r(t) {
255
+ function e(t) {
256
256
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
257
257
  }
258
- return r.prototype.unsubscribe = function() {
259
- var t, e, n, i, o;
258
+ return e.prototype.unsubscribe = function() {
259
+ var t, r, n, i, o;
260
260
  if (!this.closed) {
261
261
  this.closed = !0;
262
262
  var u = this._parentage;
@@ -271,7 +271,7 @@ var x = function() {
271
271
  t = { error: p };
272
272
  } finally {
273
273
  try {
274
- a && !a.done && (e = s.return) && e.call(s);
274
+ a && !a.done && (r = s.return) && r.call(s);
275
275
  } finally {
276
276
  if (t)
277
277
  throw t.error;
@@ -312,42 +312,42 @@ var x = function() {
312
312
  if (o)
313
313
  throw new E(o);
314
314
  }
315
- }, r.prototype.add = function(t) {
316
- var e;
315
+ }, e.prototype.add = function(t) {
316
+ var r;
317
317
  if (t && t !== this)
318
318
  if (this.closed)
319
319
  j(t);
320
320
  else {
321
- if (t instanceof r) {
321
+ if (t instanceof e) {
322
322
  if (t.closed || t._hasParent(this))
323
323
  return;
324
324
  t._addParent(this);
325
325
  }
326
- (this._finalizers = (e = this._finalizers) !== null && e !== void 0 ? e : []).push(t);
326
+ (this._finalizers = (r = this._finalizers) !== null && r !== void 0 ? r : []).push(t);
327
327
  }
328
- }, r.prototype._hasParent = function(t) {
329
- var e = this._parentage;
330
- return e === t || Array.isArray(e) && e.includes(t);
331
- }, r.prototype._addParent = function(t) {
332
- var e = this._parentage;
333
- this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
334
- }, r.prototype._removeParent = function(t) {
335
- var e = this._parentage;
336
- e === t ? this._parentage = null : Array.isArray(e) && k(e, t);
337
- }, r.prototype.remove = function(t) {
338
- var e = this._finalizers;
339
- e && k(e, t), t instanceof r && t._removeParent(this);
340
- }, r.EMPTY = function() {
341
- var t = new r();
328
+ }, e.prototype._hasParent = function(t) {
329
+ var r = this._parentage;
330
+ return r === t || Array.isArray(r) && r.includes(t);
331
+ }, e.prototype._addParent = function(t) {
332
+ var r = this._parentage;
333
+ this._parentage = Array.isArray(r) ? (r.push(t), r) : r ? [r, t] : t;
334
+ }, e.prototype._removeParent = function(t) {
335
+ var r = this._parentage;
336
+ r === t ? this._parentage = null : Array.isArray(r) && k(r, t);
337
+ }, e.prototype.remove = function(t) {
338
+ var r = this._finalizers;
339
+ r && k(r, t), t instanceof e && t._removeParent(this);
340
+ }, e.EMPTY = function() {
341
+ var t = new e();
342
342
  return t.closed = !0, t;
343
- }(), r;
343
+ }(), e;
344
344
  }();
345
345
  x.EMPTY;
346
- function $(r) {
347
- return r instanceof x || r && "closed" in r && h(r.remove) && h(r.add) && h(r.unsubscribe);
346
+ function $(e) {
347
+ return e instanceof x || e && "closed" in e && h(e.remove) && h(e.add) && h(e.unsubscribe);
348
348
  }
349
- function j(r) {
350
- h(r) ? r() : r.unsubscribe();
349
+ function j(e) {
350
+ h(e) ? e() : e.unsubscribe();
351
351
  }
352
352
  var M = {
353
353
  onUnhandledError: null,
@@ -356,49 +356,49 @@ var M = {
356
356
  useDeprecatedSynchronousErrorHandling: !1,
357
357
  useDeprecatedNextContext: !1
358
358
  }, H = {
359
- setTimeout: function(r, t) {
360
- for (var e = [], n = 2; n < arguments.length; n++)
361
- e[n - 2] = arguments[n];
359
+ setTimeout: function(e, t) {
360
+ for (var r = [], n = 2; n < arguments.length; n++)
361
+ r[n - 2] = arguments[n];
362
362
  var i = H.delegate;
363
- return i != null && i.setTimeout ? i.setTimeout.apply(i, U([r, t], P(e))) : setTimeout.apply(void 0, U([r, t], P(e)));
363
+ return i != null && i.setTimeout ? i.setTimeout.apply(i, U([e, t], P(r))) : setTimeout.apply(void 0, U([e, t], P(r)));
364
364
  },
365
- clearTimeout: function(r) {
365
+ clearTimeout: function(e) {
366
366
  var t = H.delegate;
367
- return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(r);
367
+ return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(e);
368
368
  },
369
369
  delegate: void 0
370
370
  };
371
- function Y(r) {
371
+ function Y(e) {
372
372
  H.setTimeout(function() {
373
- throw r;
373
+ throw e;
374
374
  });
375
375
  }
376
376
  function D() {
377
377
  }
378
- function er(r) {
379
- r();
378
+ function er(e) {
379
+ e();
380
380
  }
381
- var R = function(r) {
382
- C(t, r);
383
- function t(e) {
384
- var n = r.call(this) || this;
385
- return n.isStopped = !1, e ? (n.destination = e, $(e) && e.add(n)) : n.destination = ir, n;
381
+ var R = function(e) {
382
+ C(t, e);
383
+ function t(r) {
384
+ var n = e.call(this) || this;
385
+ return n.isStopped = !1, r ? (n.destination = r, $(r) && r.add(n)) : n.destination = ir, n;
386
386
  }
387
- return t.create = function(e, n, i) {
388
- return new B(e, n, i);
389
- }, t.prototype.next = function(e) {
390
- this.isStopped || this._next(e);
391
- }, t.prototype.error = function(e) {
392
- this.isStopped || (this.isStopped = !0, this._error(e));
387
+ return t.create = function(r, n, i) {
388
+ return new B(r, n, i);
389
+ }, t.prototype.next = function(r) {
390
+ this.isStopped || this._next(r);
391
+ }, t.prototype.error = function(r) {
392
+ this.isStopped || (this.isStopped = !0, this._error(r));
393
393
  }, t.prototype.complete = function() {
394
394
  this.isStopped || (this.isStopped = !0, this._complete());
395
395
  }, t.prototype.unsubscribe = function() {
396
- this.closed || (this.isStopped = !0, r.prototype.unsubscribe.call(this), this.destination = null);
397
- }, t.prototype._next = function(e) {
398
- this.destination.next(e);
399
- }, t.prototype._error = function(e) {
396
+ this.closed || (this.isStopped = !0, e.prototype.unsubscribe.call(this), this.destination = null);
397
+ }, t.prototype._next = function(r) {
398
+ this.destination.next(r);
399
+ }, t.prototype._error = function(r) {
400
400
  try {
401
- this.destination.error(e);
401
+ this.destination.error(r);
402
402
  } finally {
403
403
  this.unsubscribe();
404
404
  }
@@ -410,69 +410,69 @@ var R = function(r) {
410
410
  }
411
411
  }, t;
412
412
  }(x), tr = Function.prototype.bind;
413
- function I(r, t) {
414
- return tr.call(r, t);
413
+ function I(e, t) {
414
+ return tr.call(e, t);
415
415
  }
416
416
  var nr = function() {
417
- function r(t) {
417
+ function e(t) {
418
418
  this.partialObserver = t;
419
419
  }
420
- return r.prototype.next = function(t) {
421
- var e = this.partialObserver;
422
- if (e.next)
420
+ return e.prototype.next = function(t) {
421
+ var r = this.partialObserver;
422
+ if (r.next)
423
423
  try {
424
- e.next(t);
424
+ r.next(t);
425
425
  } catch (n) {
426
426
  S(n);
427
427
  }
428
- }, r.prototype.error = function(t) {
429
- var e = this.partialObserver;
430
- if (e.error)
428
+ }, e.prototype.error = function(t) {
429
+ var r = this.partialObserver;
430
+ if (r.error)
431
431
  try {
432
- e.error(t);
432
+ r.error(t);
433
433
  } catch (n) {
434
434
  S(n);
435
435
  }
436
436
  else
437
437
  S(t);
438
- }, r.prototype.complete = function() {
438
+ }, e.prototype.complete = function() {
439
439
  var t = this.partialObserver;
440
440
  if (t.complete)
441
441
  try {
442
442
  t.complete();
443
- } catch (e) {
444
- S(e);
443
+ } catch (r) {
444
+ S(r);
445
445
  }
446
- }, r;
447
- }(), B = function(r) {
448
- C(t, r);
449
- function t(e, n, i) {
450
- var o = r.call(this) || this, u;
451
- if (h(e) || !e)
446
+ }, e;
447
+ }(), B = function(e) {
448
+ C(t, e);
449
+ function t(r, n, i) {
450
+ var o = e.call(this) || this, u;
451
+ if (h(r) || !r)
452
452
  u = {
453
- next: e ?? void 0,
453
+ next: r ?? void 0,
454
454
  error: n ?? void 0,
455
455
  complete: i ?? void 0
456
456
  };
457
457
  else {
458
458
  var s;
459
- o && M.useDeprecatedNextContext ? (s = Object.create(e), s.unsubscribe = function() {
459
+ o && M.useDeprecatedNextContext ? (s = Object.create(r), s.unsubscribe = function() {
460
460
  return o.unsubscribe();
461
461
  }, u = {
462
- next: e.next && I(e.next, s),
463
- error: e.error && I(e.error, s),
464
- complete: e.complete && I(e.complete, s)
465
- }) : u = e;
462
+ next: r.next && I(r.next, s),
463
+ error: r.error && I(r.error, s),
464
+ complete: r.complete && I(r.complete, s)
465
+ }) : u = r;
466
466
  }
467
467
  return o.destination = new nr(u), o;
468
468
  }
469
469
  return t;
470
470
  }(R);
471
- function S(r) {
472
- Y(r);
471
+ function S(e) {
472
+ Y(e);
473
473
  }
474
- function or(r) {
475
- throw r;
474
+ function or(e) {
475
+ throw e;
476
476
  }
477
477
  var ir = {
478
478
  closed: !0,
@@ -480,79 +480,79 @@ var ir = {
480
480
  error: or,
481
481
  complete: D
482
482
  };
483
- function ur(r, t, e, n, i) {
484
- return new cr(r, t, e, n, i);
483
+ function ur(e, t, r, n, i) {
484
+ return new cr(e, t, r, n, i);
485
485
  }
486
- var cr = function(r) {
487
- C(t, r);
488
- function t(e, n, i, o, u, s) {
489
- var a = r.call(this, e) || this;
486
+ var cr = function(e) {
487
+ C(t, e);
488
+ function t(r, n, i, o, u, s) {
489
+ var a = e.call(this, r) || this;
490
490
  return a.onFinalize = u, a.shouldUnsubscribe = s, a._next = n ? function(c) {
491
491
  try {
492
492
  n(c);
493
493
  } catch (f) {
494
- e.error(f);
494
+ r.error(f);
495
495
  }
496
- } : r.prototype._next, a._error = o ? function(c) {
496
+ } : e.prototype._next, a._error = o ? function(c) {
497
497
  try {
498
498
  o(c);
499
499
  } catch (f) {
500
- e.error(f);
500
+ r.error(f);
501
501
  } finally {
502
502
  this.unsubscribe();
503
503
  }
504
- } : r.prototype._error, a._complete = i ? function() {
504
+ } : e.prototype._error, a._complete = i ? function() {
505
505
  try {
506
506
  i();
507
507
  } catch (c) {
508
- e.error(c);
508
+ r.error(c);
509
509
  } finally {
510
510
  this.unsubscribe();
511
511
  }
512
- } : r.prototype._complete, a;
512
+ } : e.prototype._complete, a;
513
513
  }
514
514
  return t.prototype.unsubscribe = function() {
515
- var e;
515
+ var r;
516
516
  if (!this.shouldUnsubscribe || this.shouldUnsubscribe()) {
517
517
  var n = this.closed;
518
- r.prototype.unsubscribe.call(this), !n && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
518
+ e.prototype.unsubscribe.call(this), !n && ((r = this.onFinalize) === null || r === void 0 || r.call(this));
519
519
  }
520
520
  }, t;
521
521
  }(R), K = function() {
522
522
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
523
523
  }();
524
- function sr(r) {
525
- return r;
524
+ function sr(e) {
525
+ return e;
526
526
  }
527
- function ar(r) {
528
- return r.length === 0 ? sr : r.length === 1 ? r[0] : function(e) {
529
- return r.reduce(function(n, i) {
527
+ function ar(e) {
528
+ return e.length === 0 ? sr : e.length === 1 ? e[0] : function(r) {
529
+ return e.reduce(function(n, i) {
530
530
  return i(n);
531
- }, e);
531
+ }, r);
532
532
  };
533
533
  }
534
534
  var b = function() {
535
- function r(t) {
535
+ function e(t) {
536
536
  t && (this._subscribe = t);
537
537
  }
538
- return r.prototype.lift = function(t) {
539
- var e = new r();
540
- return e.source = this, e.operator = t, e;
541
- }, r.prototype.subscribe = function(t, e, n) {
542
- var i = this, o = fr(t) ? t : new B(t, e, n);
538
+ return e.prototype.lift = function(t) {
539
+ var r = new e();
540
+ return r.source = this, r.operator = t, r;
541
+ }, e.prototype.subscribe = function(t, r, n) {
542
+ var i = this, o = fr(t) ? t : new B(t, r, n);
543
543
  return er(function() {
544
544
  var u = i, s = u.operator, a = u.source;
545
545
  o.add(s ? s.call(o, a) : a ? i._subscribe(o) : i._trySubscribe(o));
546
546
  }), o;
547
- }, r.prototype._trySubscribe = function(t) {
547
+ }, e.prototype._trySubscribe = function(t) {
548
548
  try {
549
549
  return this._subscribe(t);
550
- } catch (e) {
551
- t.error(e);
550
+ } catch (r) {
551
+ t.error(r);
552
552
  }
553
- }, r.prototype.forEach = function(t, e) {
553
+ }, e.prototype.forEach = function(t, r) {
554
554
  var n = this;
555
- return e = L(e), new e(function(i, o) {
555
+ return r = L(r), new r(function(i, o) {
556
556
  var u = new B({
557
557
  next: function(s) {
558
558
  try {
@@ -566,20 +566,20 @@ var b = function() {
566
566
  });
567
567
  n.subscribe(u);
568
568
  });
569
- }, r.prototype._subscribe = function(t) {
570
- var e;
571
- return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
572
- }, r.prototype[K] = function() {
569
+ }, e.prototype._subscribe = function(t) {
570
+ var r;
571
+ return (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(t);
572
+ }, e.prototype[K] = function() {
573
573
  return this;
574
- }, r.prototype.pipe = function() {
575
- for (var t = [], e = 0; e < arguments.length; e++)
576
- t[e] = arguments[e];
574
+ }, e.prototype.pipe = function() {
575
+ for (var t = [], r = 0; r < arguments.length; r++)
576
+ t[r] = arguments[r];
577
577
  return ar(t)(this);
578
- }, r.prototype.toPromise = function(t) {
579
- var e = this;
578
+ }, e.prototype.toPromise = function(t) {
579
+ var r = this;
580
580
  return t = L(t), new t(function(n, i) {
581
581
  var o;
582
- e.subscribe(function(u) {
582
+ r.subscribe(function(u) {
583
583
  return o = u;
584
584
  }, function(u) {
585
585
  return i(u);
@@ -587,53 +587,53 @@ var b = function() {
587
587
  return n(o);
588
588
  });
589
589
  });
590
- }, r.create = function(t) {
591
- return new r(t);
592
- }, r;
590
+ }, e.create = function(t) {
591
+ return new e(t);
592
+ }, e;
593
593
  }();
594
- function L(r) {
594
+ function L(e) {
595
595
  var t;
596
- return (t = r ?? M.Promise) !== null && t !== void 0 ? t : Promise;
596
+ return (t = e ?? M.Promise) !== null && t !== void 0 ? t : Promise;
597
597
  }
598
- function lr(r) {
599
- return r && h(r.next) && h(r.error) && h(r.complete);
598
+ function lr(e) {
599
+ return e && h(e.next) && h(e.error) && h(e.complete);
600
600
  }
601
- function fr(r) {
602
- return r && r instanceof R || lr(r) && $(r);
601
+ function fr(e) {
602
+ return e && e instanceof R || lr(e) && $(e);
603
603
  }
604
- var hr = function(r) {
605
- return r && typeof r.length == "number" && typeof r != "function";
604
+ var hr = function(e) {
605
+ return e && typeof e.length == "number" && typeof e != "function";
606
606
  };
607
- function pr(r) {
608
- return h(r == null ? void 0 : r.then);
607
+ function pr(e) {
608
+ return h(e == null ? void 0 : e.then);
609
609
  }
610
- function yr(r) {
611
- return h(r[K]);
610
+ function yr(e) {
611
+ return h(e[K]);
612
612
  }
613
- function dr(r) {
614
- return Symbol.asyncIterator && h(r == null ? void 0 : r[Symbol.asyncIterator]);
613
+ function dr(e) {
614
+ return Symbol.asyncIterator && h(e == null ? void 0 : e[Symbol.asyncIterator]);
615
615
  }
616
- function vr(r) {
617
- return new TypeError("You provided " + (r !== null && typeof r == "object" ? "an invalid object" : "'" + r + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
616
+ function vr(e) {
617
+ return new TypeError("You provided " + (e !== null && typeof e == "object" ? "an invalid object" : "'" + e + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
618
618
  }
619
619
  function br() {
620
620
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
621
621
  }
622
622
  var mr = br();
623
- function Ar(r) {
624
- return h(r == null ? void 0 : r[mr]);
623
+ function Ar(e) {
624
+ return h(e == null ? void 0 : e[mr]);
625
625
  }
626
- function _r(r) {
626
+ function _r(e) {
627
627
  return Z(this, arguments, function() {
628
- var e, n, i, o;
628
+ var r, n, i, o;
629
629
  return F(this, function(u) {
630
630
  switch (u.label) {
631
631
  case 0:
632
- e = r.getReader(), u.label = 1;
632
+ r = e.getReader(), u.label = 1;
633
633
  case 1:
634
634
  u.trys.push([1, , 9, 10]), u.label = 2;
635
635
  case 2:
636
- return [4, m(e.read())];
636
+ return [4, m(r.read())];
637
637
  case 3:
638
638
  return n = u.sent(), i = n.value, o = n.done, o ? [4, m(void 0)] : [3, 5];
639
639
  case 4:
@@ -647,101 +647,101 @@ function _r(r) {
647
647
  case 8:
648
648
  return [3, 10];
649
649
  case 9:
650
- return e.releaseLock(), [7];
650
+ return r.releaseLock(), [7];
651
651
  case 10:
652
652
  return [2];
653
653
  }
654
654
  });
655
655
  });
656
656
  }
657
- function Sr(r) {
658
- return h(r == null ? void 0 : r.getReader);
659
- }
660
- function gr(r) {
661
- if (r instanceof b)
662
- return r;
663
- if (r != null) {
664
- if (yr(r))
665
- return Tr(r);
666
- if (hr(r))
667
- return wr(r);
668
- if (pr(r))
669
- return Pr(r);
670
- if (dr(r))
671
- return W(r);
672
- if (Ar(r))
673
- return Ur(r);
674
- if (Sr(r))
675
- return Er(r);
657
+ function Sr(e) {
658
+ return h(e == null ? void 0 : e.getReader);
659
+ }
660
+ function gr(e) {
661
+ if (e instanceof b)
662
+ return e;
663
+ if (e != null) {
664
+ if (yr(e))
665
+ return Tr(e);
666
+ if (hr(e))
667
+ return wr(e);
668
+ if (pr(e))
669
+ return Pr(e);
670
+ if (dr(e))
671
+ return W(e);
672
+ if (Ar(e))
673
+ return Ur(e);
674
+ if (Sr(e))
675
+ return Er(e);
676
676
  }
677
- throw vr(r);
677
+ throw vr(e);
678
678
  }
679
- function Tr(r) {
679
+ function Tr(e) {
680
680
  return new b(function(t) {
681
- var e = r[K]();
682
- if (h(e.subscribe))
683
- return e.subscribe(t);
681
+ var r = e[K]();
682
+ if (h(r.subscribe))
683
+ return r.subscribe(t);
684
684
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
685
685
  });
686
686
  }
687
- function wr(r) {
687
+ function wr(e) {
688
688
  return new b(function(t) {
689
- for (var e = 0; e < r.length && !t.closed; e++)
690
- t.next(r[e]);
689
+ for (var r = 0; r < e.length && !t.closed; r++)
690
+ t.next(e[r]);
691
691
  t.complete();
692
692
  });
693
693
  }
694
- function Pr(r) {
694
+ function Pr(e) {
695
695
  return new b(function(t) {
696
- r.then(function(e) {
697
- t.closed || (t.next(e), t.complete());
698
- }, function(e) {
699
- return t.error(e);
696
+ e.then(function(r) {
697
+ t.closed || (t.next(r), t.complete());
698
+ }, function(r) {
699
+ return t.error(r);
700
700
  }).then(null, Y);
701
701
  });
702
702
  }
703
- function Ur(r) {
703
+ function Ur(e) {
704
704
  return new b(function(t) {
705
- var e, n;
705
+ var r, n;
706
706
  try {
707
- for (var i = _(r), o = i.next(); !o.done; o = i.next()) {
707
+ for (var i = _(e), o = i.next(); !o.done; o = i.next()) {
708
708
  var u = o.value;
709
709
  if (t.next(u), t.closed)
710
710
  return;
711
711
  }
712
712
  } catch (s) {
713
- e = { error: s };
713
+ r = { error: s };
714
714
  } finally {
715
715
  try {
716
716
  o && !o.done && (n = i.return) && n.call(i);
717
717
  } finally {
718
- if (e)
719
- throw e.error;
718
+ if (r)
719
+ throw r.error;
720
720
  }
721
721
  }
722
722
  t.complete();
723
723
  });
724
724
  }
725
- function W(r) {
725
+ function W(e) {
726
726
  return new b(function(t) {
727
- Ir(r, t).catch(function(e) {
728
- return t.error(e);
727
+ Ir(e, t).catch(function(r) {
728
+ return t.error(r);
729
729
  });
730
730
  });
731
731
  }
732
- function Er(r) {
733
- return W(_r(r));
732
+ function Er(e) {
733
+ return W(_r(e));
734
734
  }
735
- function Ir(r, t) {
736
- var e, n, i, o;
735
+ function Ir(e, t) {
736
+ var r, n, i, o;
737
737
  return X(this, void 0, void 0, function() {
738
738
  var u, s;
739
739
  return F(this, function(a) {
740
740
  switch (a.label) {
741
741
  case 0:
742
- a.trys.push([0, 5, 6, 11]), e = N(r), a.label = 1;
742
+ a.trys.push([0, 5, 6, 11]), r = N(e), a.label = 1;
743
743
  case 1:
744
- return [4, e.next()];
744
+ return [4, r.next()];
745
745
  case 2:
746
746
  if (n = a.sent(), !!n.done)
747
747
  return [3, 4];
@@ -755,7 +755,7 @@ function Ir(r, t) {
755
755
  case 5:
756
756
  return s = a.sent(), i = { error: s }, [3, 11];
757
757
  case 6:
758
- return a.trys.push([6, , 9, 10]), n && !n.done && (o = e.return) ? [4, o.call(e)] : [3, 8];
758
+ return a.trys.push([6, , 9, 10]), n && !n.done && (o = r.return) ? [4, o.call(r)] : [3, 8];
759
759
  case 7:
760
760
  a.sent(), a.label = 8;
761
761
  case 8:
@@ -772,9 +772,9 @@ function Ir(r, t) {
772
772
  });
773
773
  });
774
774
  }
775
- function Or(r, t) {
775
+ function Or(e, t) {
776
776
  t === void 0 && (t = {});
777
- var e = t.selector, n = Q(t, ["selector"]);
777
+ var r = t.selector, n = Q(t, ["selector"]);
778
778
  return new b(function(i) {
779
779
  var o = new AbortController(), u = o.signal, s = !0, a = n.signal;
780
780
  if (a)
@@ -791,8 +791,8 @@ function Or(r, t) {
791
791
  var f = w(w({}, n), { signal: u }), y = function(l) {
792
792
  s = !1, i.error(l);
793
793
  };
794
- return fetch(r, f).then(function(l) {
795
- e ? gr(e(l)).subscribe(ur(i, void 0, function() {
794
+ return fetch(e, f).then(function(l) {
795
+ r ? gr(r(l)).subscribe(ur(i, void 0, function() {
796
796
  s = !1, i.complete();
797
797
  }, y)) : (s = !1, i.next(l), i.complete());
798
798
  }).catch(y), function() {
@@ -811,7 +811,7 @@ class Hr extends q {
811
811
  v(this, "API_AUTH_BACK_PASSWORD");
812
812
  v(this, "headers");
813
813
  this.API_AUTH_BACK_URL = process.env.API_AUTH_BACK_URL, this.API_AUTH_BACK_USERNAME_AUTH = process.env.API_AUTH_BACK_USERNAME_AUTH, this.API_AUTH_BACK_PASSWORD_AUTH = process.env.API_AUTH_BACK_PASSWORD_AUTH, this.API_AUTH_BACK_USER = process.env.API_AUTH_BACK_USER, this.API_AUTH_BACK_SCOPE = process.env.API_AUTH_BACK_SCOPE, this.API_AUTH_BACK_PASSWORD = process.env.API_AUTH_BACK_PASSWORD;
814
- const e = `${this.API_AUTH_BACK_USERNAME_AUTH}:${this.API_AUTH_BACK_PASSWORD_AUTH}`, n = Buffer.from(e).toString("base64");
814
+ const r = `${this.API_AUTH_BACK_USERNAME_AUTH}:${this.API_AUTH_BACK_PASSWORD_AUTH}`, n = Buffer.from(r).toString("base64");
815
815
  this.headers = {
816
816
  Accept: "application/json",
817
817
  "Content-Type": "application/json;charset=UTF-8",
@@ -828,35 +828,36 @@ class Hr extends q {
828
828
  password: this.API_AUTH_BACK_PASSWORD
829
829
  })
830
830
  }).pipe(
831
- g((e) => e.json()),
832
- g((e) => {
831
+ g((r) => r.json()),
832
+ g((r) => {
833
833
  var n;
834
834
  return this.logDebug(
835
- `ServiceToken <URL>: \x1B[33m ${this.API_AUTH_BACK_URL} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(this.headers)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(e)} \x1B[37m`
836
- ), T(((n = e == null ? void 0 : e.data) == null ? void 0 : n.Token) || "");
835
+ `ServiceToken <URL>: \x1B[33m ${this.API_AUTH_BACK_URL} \x1B[37m <HEADERS>: \x1B[33m ${JSON.stringify(this.headers)} \x1B[37m <BODY>: \x1B[33m ${JSON.stringify(r)} \x1B[37m`
836
+ ), T(((n = r == null ? void 0 : r.data) == null ? void 0 : n.Token) || "");
837
837
  }),
838
- V((e) => (this.logError(`ServiceToken ${e}`), T("")))
838
+ V((r) => (this.logError(`ServiceToken ${r}`), T("")))
839
839
  );
840
840
  }
841
841
  }
842
842
  class Kr extends z {
843
- constructor() {
843
+ constructor(r = {}) {
844
844
  super();
845
845
  v(this, "headers");
846
846
  this.headers = {
847
847
  Accept: "application/json",
848
- "Content-Type": "application/json"
848
+ "Content-Type": "application/vnd.api+json",
849
+ ...r
849
850
  };
850
851
  }
851
- addTokenBackend(e) {
852
- return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(e)), new Hr().get().pipe(
853
- g((n) => T({ ...e, Authorization: `Bearer ${n}` }))
852
+ addTokenBackend(r) {
853
+ return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(r)), new Hr().get().pipe(
854
+ g((n) => T({ ...r, Authorization: `Bearer ${n}` }))
854
855
  );
855
856
  }
856
857
  getHeaders() {
857
- return this.logDebug("getHeaders CustomHeader"), T({
858
- ...this.headers
859
- }).pipe(g((e) => this.addTokenBackend(e)));
858
+ return this.logDebug("getHeaders CustomHeader"), this.addTokenBackend({}).pipe(
859
+ g((r) => T({ ...r, ...this.headers }))
860
+ );
860
861
  }
861
862
  }
862
863
  export {