mp-front-cli 0.0.37 → 0.0.39

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,15 +1,9 @@
1
1
  var W = Object.defineProperty;
2
2
  var J = (r, t, e) => t in r ? W(r, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : r[t] = e;
3
3
  var v = (r, t, e) => (J(r, typeof t != "symbol" ? t + "" : t, e), e);
4
- import { EMPTY as N, switchMap as _, of as S, catchError as V } from "rxjs";
5
- import { CustomLogger as q } from "./mp-front-cli-logger.es.js";
6
- import { C as z, E as Q } from "./custom-validator-ae5da0a7.js";
7
- import { M as X } from "./message-handler-d90f2bb6.js";
8
- class Z extends z {
9
- catch(t, e) {
10
- return console.log(`CustomCatchError ${t}`), X.getInstance().setSubject(new Q().get(t, e)), N;
11
- }
12
- }
4
+ import { switchMap as _, of as S, catchError as N } from "rxjs";
5
+ import { CustomLogger as V } from "./mp-front-cli-logger.es.js";
6
+ import { C as q } from "./custom-validator-3bb58ece.js";
13
7
  var I = function(r, t) {
14
8
  return I = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, n) {
15
9
  e.__proto__ = n;
@@ -18,7 +12,7 @@ var I = function(r, t) {
18
12
  Object.prototype.hasOwnProperty.call(n, i) && (e[i] = n[i]);
19
13
  }, I(r, t);
20
14
  };
21
- function x(r, t) {
15
+ function B(r, t) {
22
16
  if (typeof t != "function" && t !== null)
23
17
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
24
18
  I(r, t);
@@ -37,7 +31,7 @@ var w = function() {
37
31
  return t;
38
32
  }, w.apply(this, arguments);
39
33
  };
40
- function ee(r, t) {
34
+ function z(r, t) {
41
35
  var e = {};
42
36
  for (var n in r)
43
37
  Object.prototype.hasOwnProperty.call(r, n) && t.indexOf(n) < 0 && (e[n] = r[n]);
@@ -46,96 +40,96 @@ function ee(r, t) {
46
40
  t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(r, n[i]) && (e[n[i]] = r[n[i]]);
47
41
  return e;
48
42
  }
49
- function re(r, t, e, n) {
43
+ function Q(r, t, e, n) {
50
44
  function i(o) {
51
45
  return o instanceof e ? o : new e(function(s) {
52
46
  s(o);
53
47
  });
54
48
  }
55
49
  return new (e || (e = Promise))(function(o, s) {
56
- function c(f) {
50
+ function a(f) {
57
51
  try {
58
- a(n.next(f));
52
+ c(n.next(f));
59
53
  } catch (y) {
60
54
  s(y);
61
55
  }
62
56
  }
63
57
  function u(f) {
64
58
  try {
65
- a(n.throw(f));
59
+ c(n.throw(f));
66
60
  } catch (y) {
67
61
  s(y);
68
62
  }
69
63
  }
70
- function a(f) {
71
- f.done ? o(f.value) : i(f.value).then(c, u);
64
+ function c(f) {
65
+ f.done ? o(f.value) : i(f.value).then(a, u);
72
66
  }
73
- a((n = n.apply(r, t || [])).next());
67
+ c((n = n.apply(r, t || [])).next());
74
68
  });
75
69
  }
76
- function M(r, t) {
70
+ function F(r, t) {
77
71
  var e = { label: 0, sent: function() {
78
72
  if (o[0] & 1)
79
73
  throw o[1];
80
74
  return o[1];
81
75
  }, trys: [], ops: [] }, n, i, o, s;
82
- return s = { next: c(0), throw: c(1), return: c(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
76
+ return s = { next: a(0), throw: a(1), return: a(2) }, typeof Symbol == "function" && (s[Symbol.iterator] = function() {
83
77
  return this;
84
78
  }), s;
85
- function c(a) {
79
+ function a(c) {
86
80
  return function(f) {
87
- return u([a, f]);
81
+ return u([c, f]);
88
82
  };
89
83
  }
90
- function u(a) {
84
+ function u(c) {
91
85
  if (n)
92
86
  throw new TypeError("Generator is already executing.");
93
- for (; s && (s = 0, a[0] && (e = 0)), e; )
87
+ for (; s && (s = 0, c[0] && (e = 0)), e; )
94
88
  try {
95
- if (n = 1, i && (o = a[0] & 2 ? i.return : a[0] ? i.throw || ((o = i.return) && o.call(i), 0) : i.next) && !(o = o.call(i, a[1])).done)
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)
96
90
  return o;
97
- switch (i = 0, o && (a = [a[0] & 2, o.value]), a[0]) {
91
+ switch (i = 0, o && (c = [c[0] & 2, o.value]), c[0]) {
98
92
  case 0:
99
93
  case 1:
100
- o = a;
94
+ o = c;
101
95
  break;
102
96
  case 4:
103
- return e.label++, { value: a[1], done: !1 };
97
+ return e.label++, { value: c[1], done: !1 };
104
98
  case 5:
105
- e.label++, i = a[1], a = [0];
99
+ e.label++, i = c[1], c = [0];
106
100
  continue;
107
101
  case 7:
108
- a = e.ops.pop(), e.trys.pop();
102
+ c = e.ops.pop(), e.trys.pop();
109
103
  continue;
110
104
  default:
111
- if (o = e.trys, !(o = o.length > 0 && o[o.length - 1]) && (a[0] === 6 || a[0] === 2)) {
105
+ if (o = e.trys, !(o = o.length > 0 && o[o.length - 1]) && (c[0] === 6 || c[0] === 2)) {
112
106
  e = 0;
113
107
  continue;
114
108
  }
115
- if (a[0] === 3 && (!o || a[1] > o[0] && a[1] < o[3])) {
116
- e.label = a[1];
109
+ if (c[0] === 3 && (!o || c[1] > o[0] && c[1] < o[3])) {
110
+ e.label = c[1];
117
111
  break;
118
112
  }
119
- if (a[0] === 6 && e.label < o[1]) {
120
- e.label = o[1], o = a;
113
+ if (c[0] === 6 && e.label < o[1]) {
114
+ e.label = o[1], o = c;
121
115
  break;
122
116
  }
123
117
  if (o && e.label < o[2]) {
124
- e.label = o[2], e.ops.push(a);
118
+ e.label = o[2], e.ops.push(c);
125
119
  break;
126
120
  }
127
121
  o[2] && e.ops.pop(), e.trys.pop();
128
122
  continue;
129
123
  }
130
- a = t.call(r, e);
124
+ c = t.call(r, e);
131
125
  } catch (f) {
132
- a = [6, f], i = 0;
126
+ c = [6, f], i = 0;
133
127
  } finally {
134
128
  n = o = 0;
135
129
  }
136
- if (a[0] & 5)
137
- throw a[1];
138
- return { value: a[0] ? a[1] : void 0, done: !0 };
130
+ if (c[0] & 5)
131
+ throw c[1];
132
+ return { value: c[0] ? c[1] : void 0, done: !0 };
139
133
  }
140
134
  }
141
135
  function g(r) {
@@ -150,7 +144,7 @@ function g(r) {
150
144
  };
151
145
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
152
146
  }
153
- function E(r, t) {
147
+ function P(r, t) {
154
148
  var e = typeof Symbol == "function" && r[Symbol.iterator];
155
149
  if (!e)
156
150
  return r;
@@ -158,8 +152,8 @@ function E(r, t) {
158
152
  try {
159
153
  for (; (t === void 0 || t-- > 0) && !(i = n.next()).done; )
160
154
  o.push(i.value);
161
- } catch (c) {
162
- s = { error: c };
155
+ } catch (a) {
156
+ s = { error: a };
163
157
  } finally {
164
158
  try {
165
159
  i && !i.done && (e = n.return) && e.call(n);
@@ -170,7 +164,7 @@ function E(r, t) {
170
164
  }
171
165
  return o;
172
166
  }
173
- function P(r, t, e) {
167
+ function E(r, t, e) {
174
168
  if (e || arguments.length === 2)
175
169
  for (var n = 0, i = t.length, o; n < i; n++)
176
170
  (o || !(n in t)) && (o || (o = Array.prototype.slice.call(t, 0, n)), o[n] = t[n]);
@@ -179,7 +173,7 @@ function P(r, t, e) {
179
173
  function m(r) {
180
174
  return this instanceof m ? (this.v = r, this) : new m(r);
181
175
  }
182
- function te(r, t, e) {
176
+ function X(r, t, e) {
183
177
  if (!Symbol.asyncIterator)
184
178
  throw new TypeError("Symbol.asyncIterator is not defined.");
185
179
  var n = e.apply(r, t || []), i, o = [];
@@ -189,11 +183,11 @@ function te(r, t, e) {
189
183
  function s(l) {
190
184
  n[l] && (i[l] = function(d) {
191
185
  return new Promise(function(A, p) {
192
- o.push([l, d, A, p]) > 1 || c(l, d);
186
+ o.push([l, d, A, p]) > 1 || a(l, d);
193
187
  });
194
188
  });
195
189
  }
196
- function c(l, d) {
190
+ function a(l, d) {
197
191
  try {
198
192
  u(n[l](d));
199
193
  } catch (A) {
@@ -201,19 +195,19 @@ function te(r, t, e) {
201
195
  }
202
196
  }
203
197
  function u(l) {
204
- l.value instanceof m ? Promise.resolve(l.value.v).then(a, f) : y(o[0][2], l);
198
+ l.value instanceof m ? Promise.resolve(l.value.v).then(c, f) : y(o[0][2], l);
205
199
  }
206
- function a(l) {
207
- c("next", l);
200
+ function c(l) {
201
+ a("next", l);
208
202
  }
209
203
  function f(l) {
210
- c("throw", l);
204
+ a("throw", l);
211
205
  }
212
206
  function y(l, d) {
213
- l(d), o.shift(), o.length && c(o[0][0], o[0][1]);
207
+ l(d), o.shift(), o.length && a(o[0][0], o[0][1]);
214
208
  }
215
209
  }
216
- function ne(r) {
210
+ function Z(r) {
217
211
  if (!Symbol.asyncIterator)
218
212
  throw new TypeError("Symbol.asyncIterator is not defined.");
219
213
  var t = r[Symbol.asyncIterator], e;
@@ -222,27 +216,27 @@ function ne(r) {
222
216
  }, e);
223
217
  function n(o) {
224
218
  e[o] = r[o] && function(s) {
225
- return new Promise(function(c, u) {
226
- s = r[o](s), i(c, u, s.done, s.value);
219
+ return new Promise(function(a, u) {
220
+ s = r[o](s), i(a, u, s.done, s.value);
227
221
  });
228
222
  };
229
223
  }
230
- function i(o, s, c, u) {
231
- Promise.resolve(u).then(function(a) {
232
- o({ value: a, done: c });
224
+ function i(o, s, a, u) {
225
+ Promise.resolve(u).then(function(c) {
226
+ o({ value: c, done: a });
233
227
  }, s);
234
228
  }
235
229
  }
236
230
  function h(r) {
237
231
  return typeof r == "function";
238
232
  }
239
- function oe(r) {
233
+ function ee(r) {
240
234
  var t = function(n) {
241
235
  Error.call(n), n.stack = new Error().stack;
242
236
  }, e = r(t);
243
237
  return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
244
238
  }
245
- var U = oe(function(r) {
239
+ var U = ee(function(r) {
246
240
  return function(e) {
247
241
  r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
248
242
  ` + e.map(function(n, i) {
@@ -257,7 +251,7 @@ function k(r, t) {
257
251
  0 <= e && r.splice(e, 1);
258
252
  }
259
253
  }
260
- var B = function() {
254
+ var x = function() {
261
255
  function r(t) {
262
256
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
263
257
  }
@@ -269,15 +263,15 @@ var B = function() {
269
263
  if (s)
270
264
  if (this._parentage = null, Array.isArray(s))
271
265
  try {
272
- for (var c = g(s), u = c.next(); !u.done; u = c.next()) {
273
- var a = u.value;
274
- a.remove(this);
266
+ for (var a = g(s), u = a.next(); !u.done; u = a.next()) {
267
+ var c = u.value;
268
+ c.remove(this);
275
269
  }
276
270
  } catch (p) {
277
271
  t = { error: p };
278
272
  } finally {
279
273
  try {
280
- u && !u.done && (e = c.return) && e.call(c);
274
+ u && !u.done && (e = a.return) && e.call(a);
281
275
  } finally {
282
276
  if (t)
283
277
  throw t.error;
@@ -299,9 +293,9 @@ var B = function() {
299
293
  for (var l = g(y), d = l.next(); !d.done; d = l.next()) {
300
294
  var A = d.value;
301
295
  try {
302
- j(A);
296
+ D(A);
303
297
  } catch (p) {
304
- o = o ?? [], p instanceof U ? o = P(P([], E(o)), E(p.errors)) : o.push(p);
298
+ o = o ?? [], p instanceof U ? o = E(E([], P(o)), P(p.errors)) : o.push(p);
305
299
  }
306
300
  }
307
301
  } catch (p) {
@@ -322,7 +316,7 @@ var B = function() {
322
316
  var e;
323
317
  if (t && t !== this)
324
318
  if (this.closed)
325
- j(t);
319
+ D(t);
326
320
  else {
327
321
  if (t instanceof r) {
328
322
  if (t.closed || t._hasParent(this))
@@ -348,11 +342,11 @@ var B = function() {
348
342
  return t.closed = !0, t;
349
343
  }(), r;
350
344
  }();
351
- B.EMPTY;
352
- function F(r) {
353
- return r instanceof B || r && "closed" in r && h(r.remove) && h(r.add) && h(r.unsubscribe);
345
+ x.EMPTY;
346
+ function M(r) {
347
+ return r instanceof x || r && "closed" in r && h(r.remove) && h(r.add) && h(r.unsubscribe);
354
348
  }
355
- function j(r) {
349
+ function D(r) {
356
350
  h(r) ? r() : r.unsubscribe();
357
351
  }
358
352
  var $ = {
@@ -366,7 +360,7 @@ var $ = {
366
360
  for (var e = [], n = 2; n < arguments.length; n++)
367
361
  e[n - 2] = arguments[n];
368
362
  var i = C.delegate;
369
- return i != null && i.setTimeout ? i.setTimeout.apply(i, P([r, t], E(e))) : setTimeout.apply(void 0, P([r, t], E(e)));
363
+ return i != null && i.setTimeout ? i.setTimeout.apply(i, E([r, t], P(e))) : setTimeout.apply(void 0, E([r, t], P(e)));
370
364
  },
371
365
  clearTimeout: function(r) {
372
366
  var t = C.delegate;
@@ -379,16 +373,16 @@ function G(r) {
379
373
  throw r;
380
374
  });
381
375
  }
382
- function D() {
376
+ function j() {
383
377
  }
384
- function ie(r) {
378
+ function re(r) {
385
379
  r();
386
380
  }
387
381
  var R = function(r) {
388
- x(t, r);
382
+ B(t, r);
389
383
  function t(e) {
390
384
  var n = r.call(this) || this;
391
- return n.isStopped = !1, e ? (n.destination = e, F(e) && e.add(n)) : n.destination = ue, n;
385
+ return n.isStopped = !1, e ? (n.destination = e, M(e) && e.add(n)) : n.destination = ie, n;
392
386
  }
393
387
  return t.create = function(e, n, i) {
394
388
  return new H(e, n, i);
@@ -415,11 +409,11 @@ var R = function(r) {
415
409
  this.unsubscribe();
416
410
  }
417
411
  }, t;
418
- }(B), se = Function.prototype.bind;
412
+ }(x), te = Function.prototype.bind;
419
413
  function O(r, t) {
420
- return se.call(r, t);
414
+ return te.call(r, t);
421
415
  }
422
- var ae = function() {
416
+ var ne = function() {
423
417
  function r(t) {
424
418
  this.partialObserver = t;
425
419
  }
@@ -451,7 +445,7 @@ var ae = function() {
451
445
  }
452
446
  }, r;
453
447
  }(), H = function(r) {
454
- x(t, r);
448
+ B(t, r);
455
449
  function t(e, n, i) {
456
450
  var o = r.call(this) || this, s;
457
451
  if (h(e) || !e)
@@ -461,47 +455,47 @@ var ae = function() {
461
455
  complete: i ?? void 0
462
456
  };
463
457
  else {
464
- var c;
465
- o && $.useDeprecatedNextContext ? (c = Object.create(e), c.unsubscribe = function() {
458
+ var a;
459
+ o && $.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
466
460
  return o.unsubscribe();
467
461
  }, s = {
468
- next: e.next && O(e.next, c),
469
- error: e.error && O(e.error, c),
470
- complete: e.complete && O(e.complete, c)
462
+ next: e.next && O(e.next, a),
463
+ error: e.error && O(e.error, a),
464
+ complete: e.complete && O(e.complete, a)
471
465
  }) : s = e;
472
466
  }
473
- return o.destination = new ae(s), o;
467
+ return o.destination = new ne(s), o;
474
468
  }
475
469
  return t;
476
470
  }(R);
477
471
  function T(r) {
478
472
  G(r);
479
473
  }
480
- function ce(r) {
474
+ function oe(r) {
481
475
  throw r;
482
476
  }
483
- var ue = {
477
+ var ie = {
484
478
  closed: !0,
485
- next: D,
486
- error: ce,
487
- complete: D
479
+ next: j,
480
+ error: oe,
481
+ complete: j
488
482
  };
489
- function le(r, t, e, n, i) {
490
- return new fe(r, t, e, n, i);
483
+ function se(r, t, e, n, i) {
484
+ return new ce(r, t, e, n, i);
491
485
  }
492
- var fe = function(r) {
493
- x(t, r);
494
- function t(e, n, i, o, s, c) {
486
+ var ce = function(r) {
487
+ B(t, r);
488
+ function t(e, n, i, o, s, a) {
495
489
  var u = r.call(this, e) || this;
496
- return u.onFinalize = s, u.shouldUnsubscribe = c, u._next = n ? function(a) {
490
+ return u.onFinalize = s, u.shouldUnsubscribe = a, u._next = n ? function(c) {
497
491
  try {
498
- n(a);
492
+ n(c);
499
493
  } catch (f) {
500
494
  e.error(f);
501
495
  }
502
- } : r.prototype._next, u._error = o ? function(a) {
496
+ } : r.prototype._next, u._error = o ? function(c) {
503
497
  try {
504
- o(a);
498
+ o(c);
505
499
  } catch (f) {
506
500
  e.error(f);
507
501
  } finally {
@@ -510,8 +504,8 @@ var fe = function(r) {
510
504
  } : r.prototype._error, u._complete = i ? function() {
511
505
  try {
512
506
  i();
513
- } catch (a) {
514
- e.error(a);
507
+ } catch (c) {
508
+ e.error(c);
515
509
  } finally {
516
510
  this.unsubscribe();
517
511
  }
@@ -527,11 +521,11 @@ var fe = function(r) {
527
521
  }(R), K = function() {
528
522
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
529
523
  }();
530
- function he(r) {
524
+ function ae(r) {
531
525
  return r;
532
526
  }
533
- function pe(r) {
534
- return r.length === 0 ? he : r.length === 1 ? r[0] : function(e) {
527
+ function ue(r) {
528
+ return r.length === 0 ? ae : r.length === 1 ? r[0] : function(e) {
535
529
  return r.reduce(function(n, i) {
536
530
  return i(n);
537
531
  }, e);
@@ -545,10 +539,10 @@ var b = function() {
545
539
  var e = new r();
546
540
  return e.source = this, e.operator = t, e;
547
541
  }, r.prototype.subscribe = function(t, e, n) {
548
- var i = this, o = de(t) ? t : new H(t, e, n);
549
- return ie(function() {
550
- var s = i, c = s.operator, u = s.source;
551
- o.add(c ? c.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
542
+ var i = this, o = fe(t) ? t : new H(t, e, n);
543
+ return re(function() {
544
+ var s = i, a = s.operator, u = s.source;
545
+ o.add(a ? a.call(o, u) : u ? i._subscribe(o) : i._trySubscribe(o));
552
546
  }), o;
553
547
  }, r.prototype._trySubscribe = function(t) {
554
548
  try {
@@ -560,9 +554,9 @@ var b = function() {
560
554
  var n = this;
561
555
  return e = L(e), new e(function(i, o) {
562
556
  var s = new H({
563
- next: function(c) {
557
+ next: function(a) {
564
558
  try {
565
- t(c);
559
+ t(a);
566
560
  } catch (u) {
567
561
  o(u), s.unsubscribe();
568
562
  }
@@ -580,7 +574,7 @@ var b = function() {
580
574
  }, r.prototype.pipe = function() {
581
575
  for (var t = [], e = 0; e < arguments.length; e++)
582
576
  t[e] = arguments[e];
583
- return pe(t)(this);
577
+ return ue(t)(this);
584
578
  }, r.prototype.toPromise = function(t) {
585
579
  var e = this;
586
580
  return t = L(t), new t(function(n, i) {
@@ -601,38 +595,38 @@ function L(r) {
601
595
  var t;
602
596
  return (t = r ?? $.Promise) !== null && t !== void 0 ? t : Promise;
603
597
  }
604
- function ye(r) {
598
+ function le(r) {
605
599
  return r && h(r.next) && h(r.error) && h(r.complete);
606
600
  }
607
- function de(r) {
608
- return r && r instanceof R || ye(r) && F(r);
601
+ function fe(r) {
602
+ return r && r instanceof R || le(r) && M(r);
609
603
  }
610
- var ve = function(r) {
604
+ var he = function(r) {
611
605
  return r && typeof r.length == "number" && typeof r != "function";
612
606
  };
613
- function be(r) {
607
+ function pe(r) {
614
608
  return h(r == null ? void 0 : r.then);
615
609
  }
616
- function me(r) {
610
+ function ye(r) {
617
611
  return h(r[K]);
618
612
  }
619
- function Ae(r) {
613
+ function de(r) {
620
614
  return Symbol.asyncIterator && h(r == null ? void 0 : r[Symbol.asyncIterator]);
621
615
  }
622
- function _e(r) {
616
+ function ve(r) {
623
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.");
624
618
  }
625
- function Se() {
619
+ function be() {
626
620
  return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
627
621
  }
628
- var ge = Se();
629
- function Te(r) {
630
- return h(r == null ? void 0 : r[ge]);
622
+ var me = be();
623
+ function Ae(r) {
624
+ return h(r == null ? void 0 : r[me]);
631
625
  }
632
- function we(r) {
633
- return te(this, arguments, function() {
626
+ function _e(r) {
627
+ return X(this, arguments, function() {
634
628
  var e, n, i, o;
635
- return M(this, function(s) {
629
+ return F(this, function(s) {
636
630
  switch (s.label) {
637
631
  case 0:
638
632
  e = r.getReader(), s.label = 1;
@@ -660,29 +654,29 @@ function we(r) {
660
654
  });
661
655
  });
662
656
  }
663
- function Ee(r) {
657
+ function Se(r) {
664
658
  return h(r == null ? void 0 : r.getReader);
665
659
  }
666
- function Pe(r) {
660
+ function ge(r) {
667
661
  if (r instanceof b)
668
662
  return r;
669
663
  if (r != null) {
670
- if (me(r))
671
- return Ue(r);
672
- if (ve(r))
673
- return Oe(r);
674
- if (be(r))
675
- return Ie(r);
676
- if (Ae(r))
664
+ if (ye(r))
665
+ return Te(r);
666
+ if (he(r))
667
+ return we(r);
668
+ if (pe(r))
669
+ return Pe(r);
670
+ if (de(r))
677
671
  return Y(r);
678
- if (Te(r))
679
- return Ce(r);
680
- if (Ee(r))
681
- return He(r);
672
+ if (Ae(r))
673
+ return Ee(r);
674
+ if (Se(r))
675
+ return Ue(r);
682
676
  }
683
- throw _e(r);
677
+ throw ve(r);
684
678
  }
685
- function Ue(r) {
679
+ function Te(r) {
686
680
  return new b(function(t) {
687
681
  var e = r[K]();
688
682
  if (h(e.subscribe))
@@ -690,14 +684,14 @@ function Ue(r) {
690
684
  throw new TypeError("Provided object does not correctly implement Symbol.observable");
691
685
  });
692
686
  }
693
- function Oe(r) {
687
+ function we(r) {
694
688
  return new b(function(t) {
695
689
  for (var e = 0; e < r.length && !t.closed; e++)
696
690
  t.next(r[e]);
697
691
  t.complete();
698
692
  });
699
693
  }
700
- function Ie(r) {
694
+ function Pe(r) {
701
695
  return new b(function(t) {
702
696
  r.then(function(e) {
703
697
  t.closed || (t.next(e), t.complete());
@@ -706,7 +700,7 @@ function Ie(r) {
706
700
  }).then(null, G);
707
701
  });
708
702
  }
709
- function Ce(r) {
703
+ function Ee(r) {
710
704
  return new b(function(t) {
711
705
  var e, n;
712
706
  try {
@@ -715,8 +709,8 @@ function Ce(r) {
715
709
  if (t.next(s), t.closed)
716
710
  return;
717
711
  }
718
- } catch (c) {
719
- e = { error: c };
712
+ } catch (a) {
713
+ e = { error: a };
720
714
  } finally {
721
715
  try {
722
716
  o && !o.done && (n = i.return) && n.call(i);
@@ -730,22 +724,22 @@ function Ce(r) {
730
724
  }
731
725
  function Y(r) {
732
726
  return new b(function(t) {
733
- xe(r, t).catch(function(e) {
727
+ Oe(r, t).catch(function(e) {
734
728
  return t.error(e);
735
729
  });
736
730
  });
737
731
  }
738
- function He(r) {
739
- return Y(we(r));
732
+ function Ue(r) {
733
+ return Y(_e(r));
740
734
  }
741
- function xe(r, t) {
735
+ function Oe(r, t) {
742
736
  var e, n, i, o;
743
- return re(this, void 0, void 0, function() {
744
- var s, c;
745
- return M(this, function(u) {
737
+ return Q(this, void 0, void 0, function() {
738
+ var s, a;
739
+ return F(this, function(u) {
746
740
  switch (u.label) {
747
741
  case 0:
748
- u.trys.push([0, 5, 6, 11]), e = ne(r), u.label = 1;
742
+ u.trys.push([0, 5, 6, 11]), e = Z(r), u.label = 1;
749
743
  case 1:
750
744
  return [4, e.next()];
751
745
  case 2:
@@ -759,7 +753,7 @@ function xe(r, t) {
759
753
  case 4:
760
754
  return [3, 11];
761
755
  case 5:
762
- return c = u.sent(), i = { error: c }, [3, 11];
756
+ return a = u.sent(), i = { error: a }, [3, 11];
763
757
  case 6:
764
758
  return u.trys.push([6, , 9, 10]), n && !n.done && (o = e.return) ? [4, o.call(e)] : [3, 8];
765
759
  case 7:
@@ -778,35 +772,35 @@ function xe(r, t) {
778
772
  });
779
773
  });
780
774
  }
781
- function Be(r, t) {
775
+ function Ie(r, t) {
782
776
  t === void 0 && (t = {});
783
- var e = t.selector, n = ee(t, ["selector"]);
777
+ var e = t.selector, n = z(t, ["selector"]);
784
778
  return new b(function(i) {
785
- var o = new AbortController(), s = o.signal, c = !0, u = n.signal;
779
+ var o = new AbortController(), s = o.signal, a = !0, u = n.signal;
786
780
  if (u)
787
781
  if (u.aborted)
788
782
  o.abort();
789
783
  else {
790
- var a = function() {
784
+ var c = function() {
791
785
  s.aborted || o.abort();
792
786
  };
793
- u.addEventListener("abort", a), i.add(function() {
794
- return u.removeEventListener("abort", a);
787
+ u.addEventListener("abort", c), i.add(function() {
788
+ return u.removeEventListener("abort", c);
795
789
  });
796
790
  }
797
791
  var f = w(w({}, n), { signal: s }), y = function(l) {
798
- c = !1, i.error(l);
792
+ a = !1, i.error(l);
799
793
  };
800
794
  return fetch(r, f).then(function(l) {
801
- e ? Pe(e(l)).subscribe(le(i, void 0, function() {
802
- c = !1, i.complete();
803
- }, y)) : (c = !1, i.next(l), i.complete());
795
+ e ? ge(e(l)).subscribe(se(i, void 0, function() {
796
+ a = !1, i.complete();
797
+ }, y)) : (a = !1, i.next(l), i.complete());
804
798
  }).catch(y), function() {
805
- c && o.abort();
799
+ a && o.abort();
806
800
  };
807
801
  });
808
802
  }
809
- class Re extends q {
803
+ class Ce extends V {
810
804
  constructor() {
811
805
  super();
812
806
  v(this, "API_AUTH_BACK_URL");
@@ -825,7 +819,7 @@ class Re extends q {
825
819
  };
826
820
  }
827
821
  get() {
828
- return this.logDebug("get ServiceToken"), Be(this.API_AUTH_BACK_URL, {
822
+ return this.logDebug("get ServiceToken"), Ie(this.API_AUTH_BACK_URL, {
829
823
  method: "POST",
830
824
  headers: this.headers,
831
825
  body: JSON.stringify({
@@ -841,11 +835,11 @@ class Re extends q {
841
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`
842
836
  ), S(((n = e == null ? void 0 : e.data) == null ? void 0 : n.Token) || "");
843
837
  }),
844
- V((e) => (this.logError(`ServiceToken ${e}`), S("")))
838
+ N((e) => (this.logError(`ServiceToken ${e}`), S("")))
845
839
  );
846
840
  }
847
841
  }
848
- class Me extends Z {
842
+ class Ke extends q {
849
843
  constructor() {
850
844
  super();
851
845
  v(this, "headers");
@@ -855,7 +849,7 @@ class Me extends Z {
855
849
  };
856
850
  }
857
851
  addTokenBackend(e) {
858
- return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(e)), new Re().get().pipe(
852
+ return this.logDebug("addTokenBackend CustomHeader", JSON.stringify(e)), new Ce().get().pipe(
859
853
  _((n) => S({ ...e, Authorization: `Bearer ${n}` }))
860
854
  );
861
855
  }
@@ -881,8 +875,7 @@ class Me extends Z {
881
875
  }
882
876
  }
883
877
  export {
884
- Z as C,
885
- Re as S,
886
- Me as a,
887
- Be as f
878
+ Ke as C,
879
+ Ce as S,
880
+ Ie as f
888
881
  };