@placeos/ts-client 4.7.5 → 4.7.7
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/auth/interfaces.d.ts +2 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +1211 -1190
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/auth/functions.ts +10 -5
- package/src/auth/interfaces.ts +2 -0
package/dist/index.es.js
CHANGED
|
@@ -58,7 +58,7 @@ function oi(t, e, n, r) {
|
|
|
58
58
|
l((r = r.apply(t, e || [])).next());
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function sr(t, e) {
|
|
62
62
|
var n = { label: 0, sent: function() {
|
|
63
63
|
if (s[0] & 1) throw s[1];
|
|
64
64
|
return s[1];
|
|
@@ -145,7 +145,7 @@ function Ot(t, e) {
|
|
|
145
145
|
}
|
|
146
146
|
return s;
|
|
147
147
|
}
|
|
148
|
-
function
|
|
148
|
+
function Et(t, e, n) {
|
|
149
149
|
if (n || arguments.length === 2) for (var r = 0, i = e.length, s; r < i; r++)
|
|
150
150
|
(s || !(r in e)) && (s || (s = Array.prototype.slice.call(e, 0, r)), s[r] = e[r]);
|
|
151
151
|
return t.concat(s || Array.prototype.slice.call(e));
|
|
@@ -166,8 +166,8 @@ function ui(t, e, n) {
|
|
|
166
166
|
}
|
|
167
167
|
function u(a, f) {
|
|
168
168
|
r[a] && (i[a] = function(h) {
|
|
169
|
-
return new Promise(function($,
|
|
170
|
-
s.push([a, h, $,
|
|
169
|
+
return new Promise(function($, v) {
|
|
170
|
+
s.push([a, h, $, v]) > 1 || c(a, h);
|
|
171
171
|
});
|
|
172
172
|
}, f && (i[a] = f(i[a])));
|
|
173
173
|
}
|
|
@@ -213,13 +213,13 @@ function ci(t) {
|
|
|
213
213
|
function C(t) {
|
|
214
214
|
return typeof t == "function";
|
|
215
215
|
}
|
|
216
|
-
function
|
|
216
|
+
function $n(t) {
|
|
217
217
|
var e = function(r) {
|
|
218
218
|
Error.call(r), r.stack = new Error().stack;
|
|
219
219
|
}, n = t(e);
|
|
220
220
|
return n.prototype = Object.create(Error.prototype), n.prototype.constructor = n, n;
|
|
221
221
|
}
|
|
222
|
-
var dn =
|
|
222
|
+
var dn = $n(function(t) {
|
|
223
223
|
return function(n) {
|
|
224
224
|
t(this), this.message = n ? n.length + ` errors occurred during unsubscription:
|
|
225
225
|
` + n.map(function(r, i) {
|
|
@@ -228,7 +228,7 @@ var dn = ir(function(t) {
|
|
|
228
228
|
`) : "", this.name = "UnsubscriptionError", this.errors = n;
|
|
229
229
|
};
|
|
230
230
|
});
|
|
231
|
-
function
|
|
231
|
+
function It(t, e) {
|
|
232
232
|
if (t) {
|
|
233
233
|
var n = t.indexOf(e);
|
|
234
234
|
0 <= n && t.splice(n, 1);
|
|
@@ -275,9 +275,9 @@ var Ae = function() {
|
|
|
275
275
|
for (var p = Ce(y), a = p.next(); !a.done; a = p.next()) {
|
|
276
276
|
var f = a.value;
|
|
277
277
|
try {
|
|
278
|
-
|
|
278
|
+
jn(f);
|
|
279
279
|
} catch (h) {
|
|
280
|
-
s = s ?? [], h instanceof dn ? s =
|
|
280
|
+
s = s ?? [], h instanceof dn ? s = Et(Et([], Ot(s)), Ot(h.errors)) : s.push(h);
|
|
281
281
|
}
|
|
282
282
|
}
|
|
283
283
|
} catch (h) {
|
|
@@ -297,7 +297,7 @@ var Ae = function() {
|
|
|
297
297
|
var n;
|
|
298
298
|
if (e && e !== this)
|
|
299
299
|
if (this.closed)
|
|
300
|
-
|
|
300
|
+
jn(e);
|
|
301
301
|
else {
|
|
302
302
|
if (e instanceof t) {
|
|
303
303
|
if (e.closed || e._hasParent(this))
|
|
@@ -314,19 +314,19 @@ var Ae = function() {
|
|
|
314
314
|
this._parentage = Array.isArray(n) ? (n.push(e), n) : n ? [n, e] : e;
|
|
315
315
|
}, t.prototype._removeParent = function(e) {
|
|
316
316
|
var n = this._parentage;
|
|
317
|
-
n === e ? this._parentage = null : Array.isArray(n) &&
|
|
317
|
+
n === e ? this._parentage = null : Array.isArray(n) && It(n, e);
|
|
318
318
|
}, t.prototype.remove = function(e) {
|
|
319
319
|
var n = this._finalizers;
|
|
320
|
-
n &&
|
|
320
|
+
n && It(n, e), e instanceof t && e._removeParent(this);
|
|
321
321
|
}, t.EMPTY = function() {
|
|
322
322
|
var e = new t();
|
|
323
323
|
return e.closed = !0, e;
|
|
324
324
|
}(), t;
|
|
325
|
-
}(),
|
|
326
|
-
function
|
|
325
|
+
}(), or = Ae.EMPTY;
|
|
326
|
+
function ur(t) {
|
|
327
327
|
return t instanceof Ae || t && "closed" in t && C(t.remove) && C(t.add) && C(t.unsubscribe);
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function jn(t) {
|
|
330
330
|
C(t) ? t() : t.unsubscribe();
|
|
331
331
|
}
|
|
332
332
|
var ai = {
|
|
@@ -335,28 +335,28 @@ var ai = {
|
|
|
335
335
|
setTimeout: function(t, e) {
|
|
336
336
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
337
337
|
n[r - 2] = arguments[r];
|
|
338
|
-
return setTimeout.apply(void 0,
|
|
338
|
+
return setTimeout.apply(void 0, Et([t, e], Ot(n)));
|
|
339
339
|
},
|
|
340
340
|
clearTimeout: function(t) {
|
|
341
341
|
return clearTimeout(t);
|
|
342
342
|
},
|
|
343
343
|
delegate: void 0
|
|
344
344
|
};
|
|
345
|
-
function
|
|
345
|
+
function cr(t) {
|
|
346
346
|
li.setTimeout(function() {
|
|
347
347
|
throw t;
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function zn() {
|
|
351
351
|
}
|
|
352
352
|
function xt(t) {
|
|
353
353
|
t();
|
|
354
354
|
}
|
|
355
|
-
var
|
|
355
|
+
var Ft = function(t) {
|
|
356
356
|
te(e, t);
|
|
357
357
|
function e(n) {
|
|
358
358
|
var r = t.call(this) || this;
|
|
359
|
-
return r.isStopped = !1, n ? (r.destination = n,
|
|
359
|
+
return r.isStopped = !1, n ? (r.destination = n, ur(n) && n.add(r)) : r.destination = di, r;
|
|
360
360
|
}
|
|
361
361
|
return e.create = function(n, r, i) {
|
|
362
362
|
return new bn(n, r, i);
|
|
@@ -425,26 +425,26 @@ var jt = function(t) {
|
|
|
425
425
|
} : o = n, s.destination = new hi(o), s;
|
|
426
426
|
}
|
|
427
427
|
return e;
|
|
428
|
-
}(
|
|
428
|
+
}(Ft);
|
|
429
429
|
function kt(t) {
|
|
430
|
-
|
|
430
|
+
cr(t);
|
|
431
431
|
}
|
|
432
432
|
function fi(t) {
|
|
433
433
|
throw t;
|
|
434
434
|
}
|
|
435
435
|
var di = {
|
|
436
436
|
closed: !0,
|
|
437
|
-
next:
|
|
437
|
+
next: zn,
|
|
438
438
|
error: fi,
|
|
439
|
-
complete:
|
|
440
|
-
},
|
|
439
|
+
complete: zn
|
|
440
|
+
}, xn = function() {
|
|
441
441
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
442
442
|
}();
|
|
443
|
-
function
|
|
443
|
+
function An(t) {
|
|
444
444
|
return t;
|
|
445
445
|
}
|
|
446
446
|
function pi(t) {
|
|
447
|
-
return t.length === 0 ?
|
|
447
|
+
return t.length === 0 ? An : t.length === 1 ? t[0] : function(n) {
|
|
448
448
|
return t.reduce(function(r, i) {
|
|
449
449
|
return i(r);
|
|
450
450
|
}, n);
|
|
@@ -471,7 +471,7 @@ var D = function() {
|
|
|
471
471
|
}
|
|
472
472
|
}, t.prototype.forEach = function(e, n) {
|
|
473
473
|
var r = this;
|
|
474
|
-
return n =
|
|
474
|
+
return n = Hn(n), new n(function(i, s) {
|
|
475
475
|
var o = new bn({
|
|
476
476
|
next: function(u) {
|
|
477
477
|
try {
|
|
@@ -488,7 +488,7 @@ var D = function() {
|
|
|
488
488
|
}, t.prototype._subscribe = function(e) {
|
|
489
489
|
var n;
|
|
490
490
|
return (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(e);
|
|
491
|
-
}, t.prototype[
|
|
491
|
+
}, t.prototype[xn] = function() {
|
|
492
492
|
return this;
|
|
493
493
|
}, t.prototype.pipe = function() {
|
|
494
494
|
for (var e = [], n = 0; n < arguments.length; n++)
|
|
@@ -496,7 +496,7 @@ var D = function() {
|
|
|
496
496
|
return pi(e)(this);
|
|
497
497
|
}, t.prototype.toPromise = function(e) {
|
|
498
498
|
var n = this;
|
|
499
|
-
return e =
|
|
499
|
+
return e = Hn(e), new e(function(r, i) {
|
|
500
500
|
var s;
|
|
501
501
|
n.subscribe(function(o) {
|
|
502
502
|
return s = o;
|
|
@@ -510,7 +510,7 @@ var D = function() {
|
|
|
510
510
|
return new t(e);
|
|
511
511
|
}, t;
|
|
512
512
|
}();
|
|
513
|
-
function
|
|
513
|
+
function Hn(t) {
|
|
514
514
|
var e;
|
|
515
515
|
return (e = t ?? ai.Promise) !== null && e !== void 0 ? e : Promise;
|
|
516
516
|
}
|
|
@@ -518,7 +518,7 @@ function _i(t) {
|
|
|
518
518
|
return t && C(t.next) && C(t.error) && C(t.complete);
|
|
519
519
|
}
|
|
520
520
|
function mi(t) {
|
|
521
|
-
return t && t instanceof
|
|
521
|
+
return t && t instanceof Ft || _i(t) && ur(t);
|
|
522
522
|
}
|
|
523
523
|
function yi(t) {
|
|
524
524
|
return C(t?.lift);
|
|
@@ -574,7 +574,7 @@ var gi = function(t) {
|
|
|
574
574
|
t.prototype.unsubscribe.call(this), !r && ((n = this.onFinalize) === null || n === void 0 || n.call(this));
|
|
575
575
|
}
|
|
576
576
|
}, e;
|
|
577
|
-
}(
|
|
577
|
+
}(Ft), bi = $n(function(t) {
|
|
578
578
|
return function() {
|
|
579
579
|
t(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
580
580
|
};
|
|
@@ -645,8 +645,8 @@ var gi = function(t) {
|
|
|
645
645
|
return this._throwIfClosed(), this._checkFinalizedStatuses(n), this._innerSubscribe(n);
|
|
646
646
|
}, e.prototype._innerSubscribe = function(n) {
|
|
647
647
|
var r = this, i = this, s = i.hasError, o = i.isStopped, u = i.observers;
|
|
648
|
-
return s || o ?
|
|
649
|
-
r.currentObservers = null,
|
|
648
|
+
return s || o ? or : (this.currentObservers = null, u.push(n), new Ae(function() {
|
|
649
|
+
r.currentObservers = null, It(u, n);
|
|
650
650
|
}));
|
|
651
651
|
}, e.prototype._checkFinalizedStatuses = function(n) {
|
|
652
652
|
var r = this, i = r.hasError, s = r.thrownError, o = r.isStopped;
|
|
@@ -674,7 +674,7 @@ var gi = function(t) {
|
|
|
674
674
|
(r = (n = this.destination) === null || n === void 0 ? void 0 : n.complete) === null || r === void 0 || r.call(n);
|
|
675
675
|
}, e.prototype._subscribe = function(n) {
|
|
676
676
|
var r, i;
|
|
677
|
-
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i :
|
|
677
|
+
return (i = (r = this.source) === null || r === void 0 ? void 0 : r.subscribe(n)) !== null && i !== void 0 ? i : or;
|
|
678
678
|
}, e;
|
|
679
679
|
}($e), _e = function(t) {
|
|
680
680
|
te(e, t);
|
|
@@ -699,15 +699,15 @@ var gi = function(t) {
|
|
|
699
699
|
}, e.prototype.next = function(n) {
|
|
700
700
|
t.prototype.next.call(this, this._value = n);
|
|
701
701
|
}, e;
|
|
702
|
-
}($e),
|
|
702
|
+
}($e), wn = {
|
|
703
703
|
now: function() {
|
|
704
|
-
return (
|
|
704
|
+
return (wn.delegate || Date).now();
|
|
705
705
|
},
|
|
706
706
|
delegate: void 0
|
|
707
707
|
}, pn = function(t) {
|
|
708
708
|
te(e, t);
|
|
709
709
|
function e(n, r, i) {
|
|
710
|
-
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i =
|
|
710
|
+
n === void 0 && (n = 1 / 0), r === void 0 && (r = 1 / 0), i === void 0 && (i = wn);
|
|
711
711
|
var s = t.call(this) || this;
|
|
712
712
|
return s._bufferSize = n, s._windowTime = r, s._timestampProvider = i, s._buffer = [], s._infiniteTimeWindow = !0, s._infiniteTimeWindow = r === 1 / 0, s._bufferSize = Math.max(1, n), s._windowTime = Math.max(1, r), s;
|
|
713
713
|
}
|
|
@@ -735,11 +735,11 @@ var gi = function(t) {
|
|
|
735
735
|
return e.prototype.schedule = function(n, r) {
|
|
736
736
|
return this;
|
|
737
737
|
}, e;
|
|
738
|
-
}(Ae),
|
|
738
|
+
}(Ae), Wn = {
|
|
739
739
|
setInterval: function(t, e) {
|
|
740
740
|
for (var n = [], r = 2; r < arguments.length; r++)
|
|
741
741
|
n[r - 2] = arguments[r];
|
|
742
|
-
return setInterval.apply(void 0,
|
|
742
|
+
return setInterval.apply(void 0, Et([t, e], Ot(n)));
|
|
743
743
|
},
|
|
744
744
|
clearInterval: function(t) {
|
|
745
745
|
return clearInterval(t);
|
|
@@ -759,11 +759,11 @@ var gi = function(t) {
|
|
|
759
759
|
var s = this.id, o = this.scheduler;
|
|
760
760
|
return s != null && (this.id = this.recycleAsyncId(o, s, r)), this.pending = !0, this.delay = r, this.id = (i = this.id) !== null && i !== void 0 ? i : this.requestAsyncId(o, this.id, r), this;
|
|
761
761
|
}, e.prototype.requestAsyncId = function(n, r, i) {
|
|
762
|
-
return i === void 0 && (i = 0),
|
|
762
|
+
return i === void 0 && (i = 0), Wn.setInterval(n.flush.bind(n, this), i);
|
|
763
763
|
}, e.prototype.recycleAsyncId = function(n, r, i) {
|
|
764
764
|
if (i === void 0 && (i = 0), i != null && this.delay === i && this.pending === !1)
|
|
765
765
|
return r;
|
|
766
|
-
r != null &&
|
|
766
|
+
r != null && Wn.clearInterval(r);
|
|
767
767
|
}, e.prototype.execute = function(n, r) {
|
|
768
768
|
if (this.closed)
|
|
769
769
|
return new Error("executing a cancelled action");
|
|
@@ -784,20 +784,20 @@ var gi = function(t) {
|
|
|
784
784
|
}, e.prototype.unsubscribe = function() {
|
|
785
785
|
if (!this.closed) {
|
|
786
786
|
var n = this, r = n.id, i = n.scheduler, s = i.actions;
|
|
787
|
-
this.work = this.state = this.scheduler = null, this.pending = !1,
|
|
787
|
+
this.work = this.state = this.scheduler = null, this.pending = !1, It(s, this), r != null && (this.id = this.recycleAsyncId(i, r, null)), this.delay = null, t.prototype.unsubscribe.call(this);
|
|
788
788
|
}
|
|
789
789
|
}, e;
|
|
790
|
-
}(vi),
|
|
790
|
+
}(vi), Ln = function() {
|
|
791
791
|
function t(e, n) {
|
|
792
792
|
n === void 0 && (n = t.now), this.schedulerActionCtor = e, this.now = n;
|
|
793
793
|
}
|
|
794
794
|
return t.prototype.schedule = function(e, n, r) {
|
|
795
795
|
return n === void 0 && (n = 0), new this.schedulerActionCtor(this, e).schedule(r, n);
|
|
796
|
-
}, t.now =
|
|
796
|
+
}, t.now = wn.now, t;
|
|
797
797
|
}(), ki = function(t) {
|
|
798
798
|
te(e, t);
|
|
799
799
|
function e(n, r) {
|
|
800
|
-
r === void 0 && (r =
|
|
800
|
+
r === void 0 && (r = Ln.now);
|
|
801
801
|
var i = t.call(this, n, r) || this;
|
|
802
802
|
return i.actions = [], i._active = !1, i;
|
|
803
803
|
}
|
|
@@ -819,38 +819,38 @@ var gi = function(t) {
|
|
|
819
819
|
throw i;
|
|
820
820
|
}
|
|
821
821
|
}, e;
|
|
822
|
-
}(
|
|
822
|
+
}(Ln), ar = new ki(Si), $i = ar, xi = new D(function(t) {
|
|
823
823
|
return t.complete();
|
|
824
824
|
});
|
|
825
825
|
function Ai(t) {
|
|
826
826
|
return t && C(t.schedule);
|
|
827
827
|
}
|
|
828
|
-
var
|
|
828
|
+
var lr = function(t) {
|
|
829
829
|
return t && typeof t.length == "number" && typeof t != "function";
|
|
830
830
|
};
|
|
831
|
-
function lr(t) {
|
|
832
|
-
return C(t?.then);
|
|
833
|
-
}
|
|
834
831
|
function hr(t) {
|
|
835
|
-
return C(t
|
|
832
|
+
return C(t?.then);
|
|
836
833
|
}
|
|
837
834
|
function fr(t) {
|
|
838
|
-
return
|
|
835
|
+
return C(t[xn]);
|
|
839
836
|
}
|
|
840
837
|
function dr(t) {
|
|
838
|
+
return Symbol.asyncIterator && C(t?.[Symbol.asyncIterator]);
|
|
839
|
+
}
|
|
840
|
+
function pr(t) {
|
|
841
841
|
return new TypeError("You provided " + (t !== null && typeof t == "object" ? "an invalid object" : "'" + t + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
|
842
842
|
}
|
|
843
843
|
function wi() {
|
|
844
844
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
|
845
845
|
}
|
|
846
|
-
var
|
|
847
|
-
function _r(t) {
|
|
848
|
-
return C(t?.[pr]);
|
|
849
|
-
}
|
|
846
|
+
var _r = wi();
|
|
850
847
|
function mr(t) {
|
|
848
|
+
return C(t?.[_r]);
|
|
849
|
+
}
|
|
850
|
+
function yr(t) {
|
|
851
851
|
return ui(this, arguments, function() {
|
|
852
852
|
var n, r, i, s;
|
|
853
|
-
return
|
|
853
|
+
return sr(this, function(o) {
|
|
854
854
|
switch (o.label) {
|
|
855
855
|
case 0:
|
|
856
856
|
n = t.getReader(), o.label = 1;
|
|
@@ -878,53 +878,53 @@ function mr(t) {
|
|
|
878
878
|
});
|
|
879
879
|
});
|
|
880
880
|
}
|
|
881
|
-
function
|
|
881
|
+
function gr(t) {
|
|
882
882
|
return C(t?.getReader);
|
|
883
883
|
}
|
|
884
884
|
function ce(t) {
|
|
885
885
|
if (t instanceof D)
|
|
886
886
|
return t;
|
|
887
887
|
if (t != null) {
|
|
888
|
-
if (
|
|
888
|
+
if (fr(t))
|
|
889
889
|
return Oi(t);
|
|
890
|
-
if (ar(t))
|
|
891
|
-
return Ii(t);
|
|
892
890
|
if (lr(t))
|
|
891
|
+
return Ei(t);
|
|
892
|
+
if (hr(t))
|
|
893
|
+
return Ii(t);
|
|
894
|
+
if (dr(t))
|
|
895
|
+
return br(t);
|
|
896
|
+
if (mr(t))
|
|
893
897
|
return Pi(t);
|
|
894
|
-
if (
|
|
895
|
-
return gr(t);
|
|
896
|
-
if (_r(t))
|
|
898
|
+
if (gr(t))
|
|
897
899
|
return Ti(t);
|
|
898
|
-
if (yr(t))
|
|
899
|
-
return Ei(t);
|
|
900
900
|
}
|
|
901
|
-
throw
|
|
901
|
+
throw pr(t);
|
|
902
902
|
}
|
|
903
903
|
function Oi(t) {
|
|
904
904
|
return new D(function(e) {
|
|
905
|
-
var n = t[
|
|
905
|
+
var n = t[xn]();
|
|
906
906
|
if (C(n.subscribe))
|
|
907
907
|
return n.subscribe(e);
|
|
908
908
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
909
909
|
});
|
|
910
910
|
}
|
|
911
|
-
function
|
|
911
|
+
function Ei(t) {
|
|
912
912
|
return new D(function(e) {
|
|
913
913
|
for (var n = 0; n < t.length && !e.closed; n++)
|
|
914
914
|
e.next(t[n]);
|
|
915
915
|
e.complete();
|
|
916
916
|
});
|
|
917
917
|
}
|
|
918
|
-
function
|
|
918
|
+
function Ii(t) {
|
|
919
919
|
return new D(function(e) {
|
|
920
920
|
t.then(function(n) {
|
|
921
921
|
e.closed || (e.next(n), e.complete());
|
|
922
922
|
}, function(n) {
|
|
923
923
|
return e.error(n);
|
|
924
|
-
}).then(null,
|
|
924
|
+
}).then(null, cr);
|
|
925
925
|
});
|
|
926
926
|
}
|
|
927
|
-
function
|
|
927
|
+
function Pi(t) {
|
|
928
928
|
return new D(function(e) {
|
|
929
929
|
var n, r;
|
|
930
930
|
try {
|
|
@@ -945,21 +945,21 @@ function Ti(t) {
|
|
|
945
945
|
e.complete();
|
|
946
946
|
});
|
|
947
947
|
}
|
|
948
|
-
function
|
|
948
|
+
function br(t) {
|
|
949
949
|
return new D(function(e) {
|
|
950
950
|
qi(t, e).catch(function(n) {
|
|
951
951
|
return e.error(n);
|
|
952
952
|
});
|
|
953
953
|
});
|
|
954
954
|
}
|
|
955
|
-
function
|
|
956
|
-
return
|
|
955
|
+
function Ti(t) {
|
|
956
|
+
return br(yr(t));
|
|
957
957
|
}
|
|
958
958
|
function qi(t, e) {
|
|
959
959
|
var n, r, i, s;
|
|
960
960
|
return oi(this, void 0, void 0, function() {
|
|
961
961
|
var o, u;
|
|
962
|
-
return
|
|
962
|
+
return sr(this, function(c) {
|
|
963
963
|
switch (c.label) {
|
|
964
964
|
case 0:
|
|
965
965
|
c.trys.push([0, 5, 6, 11]), n = ci(t), c.label = 1;
|
|
@@ -1001,7 +1001,7 @@ function Se(t, e, n, r, i) {
|
|
|
1001
1001
|
if (t.add(s), !i)
|
|
1002
1002
|
return s;
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function vr(t, e) {
|
|
1005
1005
|
return e === void 0 && (e = 0), ue(function(n, r) {
|
|
1006
1006
|
n.subscribe(ee(r, function(i) {
|
|
1007
1007
|
return Se(r, t, function() {
|
|
@@ -1018,7 +1018,7 @@ function br(t, e) {
|
|
|
1018
1018
|
}));
|
|
1019
1019
|
});
|
|
1020
1020
|
}
|
|
1021
|
-
function
|
|
1021
|
+
function Sr(t, e) {
|
|
1022
1022
|
return e === void 0 && (e = 0), ue(function(n, r) {
|
|
1023
1023
|
r.add(t.schedule(function() {
|
|
1024
1024
|
return n.subscribe(r);
|
|
@@ -1026,10 +1026,10 @@ function vr(t, e) {
|
|
|
1026
1026
|
});
|
|
1027
1027
|
}
|
|
1028
1028
|
function Ui(t, e) {
|
|
1029
|
-
return ce(t).pipe(
|
|
1029
|
+
return ce(t).pipe(Sr(e), vr(e));
|
|
1030
1030
|
}
|
|
1031
1031
|
function Ri(t, e) {
|
|
1032
|
-
return ce(t).pipe(
|
|
1032
|
+
return ce(t).pipe(Sr(e), vr(e));
|
|
1033
1033
|
}
|
|
1034
1034
|
function Mi(t, e) {
|
|
1035
1035
|
return new D(function(n) {
|
|
@@ -1043,7 +1043,7 @@ function Ci(t, e) {
|
|
|
1043
1043
|
return new D(function(n) {
|
|
1044
1044
|
var r;
|
|
1045
1045
|
return Se(n, e, function() {
|
|
1046
|
-
r = t[
|
|
1046
|
+
r = t[_r](), Se(n, e, function() {
|
|
1047
1047
|
var i, s, o;
|
|
1048
1048
|
try {
|
|
1049
1049
|
i = r.next(), s = i.value, o = i.done;
|
|
@@ -1058,7 +1058,7 @@ function Ci(t, e) {
|
|
|
1058
1058
|
};
|
|
1059
1059
|
});
|
|
1060
1060
|
}
|
|
1061
|
-
function
|
|
1061
|
+
function kr(t, e) {
|
|
1062
1062
|
if (!t)
|
|
1063
1063
|
throw new Error("Iterable cannot be null");
|
|
1064
1064
|
return new D(function(n) {
|
|
@@ -1073,29 +1073,29 @@ function Sr(t, e) {
|
|
|
1073
1073
|
});
|
|
1074
1074
|
}
|
|
1075
1075
|
function Di(t, e) {
|
|
1076
|
-
return
|
|
1076
|
+
return kr(yr(t), e);
|
|
1077
1077
|
}
|
|
1078
1078
|
function Ni(t, e) {
|
|
1079
1079
|
if (t != null) {
|
|
1080
|
-
if (
|
|
1080
|
+
if (fr(t))
|
|
1081
1081
|
return Ui(t, e);
|
|
1082
|
-
if (ar(t))
|
|
1083
|
-
return Mi(t, e);
|
|
1084
1082
|
if (lr(t))
|
|
1083
|
+
return Mi(t, e);
|
|
1084
|
+
if (hr(t))
|
|
1085
1085
|
return Ri(t, e);
|
|
1086
|
-
if (
|
|
1087
|
-
return
|
|
1088
|
-
if (
|
|
1086
|
+
if (dr(t))
|
|
1087
|
+
return kr(t, e);
|
|
1088
|
+
if (mr(t))
|
|
1089
1089
|
return Ci(t, e);
|
|
1090
|
-
if (
|
|
1090
|
+
if (gr(t))
|
|
1091
1091
|
return Di(t, e);
|
|
1092
1092
|
}
|
|
1093
|
-
throw
|
|
1093
|
+
throw pr(t);
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function Fi(t, e) {
|
|
1096
1096
|
return e ? Ni(t, e) : ce(t);
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function $r(t, e) {
|
|
1099
1099
|
var n = C(t) ? t : function() {
|
|
1100
1100
|
return t;
|
|
1101
1101
|
}, r = function(i) {
|
|
@@ -1103,10 +1103,29 @@ function kr(t, e) {
|
|
|
1103
1103
|
};
|
|
1104
1104
|
return new D(r);
|
|
1105
1105
|
}
|
|
1106
|
-
|
|
1106
|
+
var ji = $n(function(t) {
|
|
1107
|
+
return function() {
|
|
1108
|
+
t(this), this.name = "EmptyError", this.message = "no elements in sequence";
|
|
1109
|
+
};
|
|
1110
|
+
});
|
|
1111
|
+
function zi(t, e) {
|
|
1112
|
+
return new Promise(function(n, r) {
|
|
1113
|
+
var i = !1, s;
|
|
1114
|
+
t.subscribe({
|
|
1115
|
+
next: function(o) {
|
|
1116
|
+
s = o, i = !0;
|
|
1117
|
+
},
|
|
1118
|
+
error: r,
|
|
1119
|
+
complete: function() {
|
|
1120
|
+
i ? n(s) : r(new ji());
|
|
1121
|
+
}
|
|
1122
|
+
});
|
|
1123
|
+
});
|
|
1124
|
+
}
|
|
1125
|
+
function Hi(t) {
|
|
1107
1126
|
return t instanceof Date && !isNaN(t);
|
|
1108
1127
|
}
|
|
1109
|
-
function
|
|
1128
|
+
function b(t, e) {
|
|
1110
1129
|
return ue(function(n, r) {
|
|
1111
1130
|
var i = 0;
|
|
1112
1131
|
n.subscribe(ee(r, function(s) {
|
|
@@ -1114,7 +1133,7 @@ function g(t, e) {
|
|
|
1114
1133
|
}));
|
|
1115
1134
|
});
|
|
1116
1135
|
}
|
|
1117
|
-
function
|
|
1136
|
+
function Wi(t, e, n, r, i, s, o, u) {
|
|
1118
1137
|
var c = [], l = 0, _ = 0, y = !1, p = function() {
|
|
1119
1138
|
y && !c.length && !l && e.complete();
|
|
1120
1139
|
}, a = function(h) {
|
|
@@ -1122,19 +1141,19 @@ function zi(t, e, n, r, i, s, o, u) {
|
|
|
1122
1141
|
}, f = function(h) {
|
|
1123
1142
|
l++;
|
|
1124
1143
|
var $ = !1;
|
|
1125
|
-
ce(n(h, _++)).subscribe(ee(e, function(
|
|
1126
|
-
e.next(
|
|
1144
|
+
ce(n(h, _++)).subscribe(ee(e, function(v) {
|
|
1145
|
+
e.next(v);
|
|
1127
1146
|
}, function() {
|
|
1128
1147
|
$ = !0;
|
|
1129
1148
|
}, void 0, function() {
|
|
1130
1149
|
if ($)
|
|
1131
1150
|
try {
|
|
1132
1151
|
l--;
|
|
1133
|
-
for (var
|
|
1152
|
+
for (var v = function() {
|
|
1134
1153
|
var A = c.shift();
|
|
1135
1154
|
o || f(A);
|
|
1136
1155
|
}; c.length && l < r; )
|
|
1137
|
-
|
|
1156
|
+
v();
|
|
1138
1157
|
p();
|
|
1139
1158
|
} catch (A) {
|
|
1140
1159
|
e.error(A);
|
|
@@ -1146,20 +1165,20 @@ function zi(t, e, n, r, i, s, o, u) {
|
|
|
1146
1165
|
})), function() {
|
|
1147
1166
|
};
|
|
1148
1167
|
}
|
|
1149
|
-
function
|
|
1150
|
-
return n === void 0 && (n = 1 / 0), C(e) ?
|
|
1151
|
-
return
|
|
1168
|
+
function xr(t, e, n) {
|
|
1169
|
+
return n === void 0 && (n = 1 / 0), C(e) ? xr(function(r, i) {
|
|
1170
|
+
return b(function(s, o) {
|
|
1152
1171
|
return e(r, s, i, o);
|
|
1153
1172
|
})(ce(t(r, i)));
|
|
1154
1173
|
}, n) : (typeof e == "number" && (n = e), ue(function(r, i) {
|
|
1155
|
-
return
|
|
1174
|
+
return Wi(r, i, t, n);
|
|
1156
1175
|
}));
|
|
1157
1176
|
}
|
|
1158
|
-
function
|
|
1177
|
+
function On(t, e, n) {
|
|
1159
1178
|
t === void 0 && (t = 0), n === void 0 && (n = $i);
|
|
1160
1179
|
var r = -1;
|
|
1161
1180
|
return e != null && (Ai(e) ? n = e : r = e), new D(function(i) {
|
|
1162
|
-
var s =
|
|
1181
|
+
var s = Hi(t) ? +t - n.now() : t;
|
|
1163
1182
|
s < 0 && (s = 0);
|
|
1164
1183
|
var o = 0;
|
|
1165
1184
|
return n.schedule(function() {
|
|
@@ -1167,7 +1186,7 @@ function xr(t, e, n) {
|
|
|
1167
1186
|
}, s);
|
|
1168
1187
|
});
|
|
1169
1188
|
}
|
|
1170
|
-
function
|
|
1189
|
+
function Li(t, e) {
|
|
1171
1190
|
return ue(function(n, r) {
|
|
1172
1191
|
var i = 0;
|
|
1173
1192
|
n.subscribe(ee(r, function(s) {
|
|
@@ -1185,25 +1204,25 @@ function Ar(t) {
|
|
|
1185
1204
|
}));
|
|
1186
1205
|
});
|
|
1187
1206
|
}
|
|
1188
|
-
function
|
|
1189
|
-
return
|
|
1207
|
+
function Bi(t) {
|
|
1208
|
+
return b(function() {
|
|
1190
1209
|
return t;
|
|
1191
1210
|
});
|
|
1192
1211
|
}
|
|
1193
|
-
function
|
|
1194
|
-
return
|
|
1195
|
-
return ce(t(n, r)).pipe(Ar(1),
|
|
1212
|
+
function Vi(t, e) {
|
|
1213
|
+
return xr(function(n, r) {
|
|
1214
|
+
return ce(t(n, r)).pipe(Ar(1), Bi(n));
|
|
1196
1215
|
});
|
|
1197
1216
|
}
|
|
1198
|
-
function
|
|
1199
|
-
e === void 0 && (e =
|
|
1200
|
-
var n =
|
|
1201
|
-
return
|
|
1217
|
+
function Qi(t, e) {
|
|
1218
|
+
e === void 0 && (e = ar);
|
|
1219
|
+
var n = On(t, e);
|
|
1220
|
+
return Vi(function() {
|
|
1202
1221
|
return n;
|
|
1203
1222
|
});
|
|
1204
1223
|
}
|
|
1205
|
-
function
|
|
1206
|
-
return e === void 0 && (e =
|
|
1224
|
+
function Yi(t, e) {
|
|
1225
|
+
return e === void 0 && (e = An), t = t ?? Gi, ue(function(n, r) {
|
|
1207
1226
|
var i, s = !0;
|
|
1208
1227
|
n.subscribe(ee(r, function(o) {
|
|
1209
1228
|
var u = e(o);
|
|
@@ -1211,17 +1230,17 @@ function Vi(t, e) {
|
|
|
1211
1230
|
}));
|
|
1212
1231
|
});
|
|
1213
1232
|
}
|
|
1214
|
-
function
|
|
1233
|
+
function Gi(t, e) {
|
|
1215
1234
|
return t === e;
|
|
1216
1235
|
}
|
|
1217
|
-
function
|
|
1236
|
+
function Ji(t) {
|
|
1218
1237
|
t === void 0 && (t = 1 / 0);
|
|
1219
1238
|
var e;
|
|
1220
1239
|
t && typeof t == "object" ? e = t : e = {
|
|
1221
1240
|
count: t
|
|
1222
1241
|
};
|
|
1223
1242
|
var n = e.count, r = n === void 0 ? 1 / 0 : n, i = e.delay, s = e.resetOnSuccess, o = s === void 0 ? !1 : s;
|
|
1224
|
-
return r <= 0 ?
|
|
1243
|
+
return r <= 0 ? An : ue(function(u, c) {
|
|
1225
1244
|
var l = 0, _, y = function() {
|
|
1226
1245
|
var p = !1;
|
|
1227
1246
|
_ = u.subscribe(ee(c, function(a) {
|
|
@@ -1232,7 +1251,7 @@ function Yi(t) {
|
|
|
1232
1251
|
_ ? (_.unsubscribe(), _ = null, y()) : p = !0;
|
|
1233
1252
|
};
|
|
1234
1253
|
if (i != null) {
|
|
1235
|
-
var h = typeof i == "number" ?
|
|
1254
|
+
var h = typeof i == "number" ? On(i) : ce(i(a, l)), $ = ee(c, function() {
|
|
1236
1255
|
$.unsubscribe(), f();
|
|
1237
1256
|
}, function() {
|
|
1238
1257
|
c.complete();
|
|
@@ -1247,7 +1266,7 @@ function Yi(t) {
|
|
|
1247
1266
|
y();
|
|
1248
1267
|
});
|
|
1249
1268
|
}
|
|
1250
|
-
function
|
|
1269
|
+
function Bn(t, e) {
|
|
1251
1270
|
return ue(function(n, r) {
|
|
1252
1271
|
var i = null, s = 0, o = !1, u = function() {
|
|
1253
1272
|
return o && !i && r.complete();
|
|
@@ -1265,7 +1284,7 @@ function Wn(t, e) {
|
|
|
1265
1284
|
}));
|
|
1266
1285
|
});
|
|
1267
1286
|
}
|
|
1268
|
-
function
|
|
1287
|
+
function En(t, e) {
|
|
1269
1288
|
e === void 0 && (e = {});
|
|
1270
1289
|
var n = e.selector, r = si(e, ["selector"]);
|
|
1271
1290
|
return new D(function(i) {
|
|
@@ -1358,7 +1377,7 @@ const se = [
|
|
|
1358
1377
|
"9",
|
|
1359
1378
|
"+",
|
|
1360
1379
|
"/"
|
|
1361
|
-
],
|
|
1380
|
+
], Vn = [
|
|
1362
1381
|
255,
|
|
1363
1382
|
255,
|
|
1364
1383
|
255,
|
|
@@ -1484,9 +1503,9 @@ const se = [
|
|
|
1484
1503
|
51
|
|
1485
1504
|
];
|
|
1486
1505
|
function $t(t) {
|
|
1487
|
-
if (t >=
|
|
1506
|
+
if (t >= Vn.length)
|
|
1488
1507
|
throw new Error("Unable to parse base64 string.");
|
|
1489
|
-
const e =
|
|
1508
|
+
const e = Vn[t];
|
|
1490
1509
|
if (e === 255)
|
|
1491
1510
|
throw new Error("Unable to parse base64 string.");
|
|
1492
1511
|
return e;
|
|
@@ -1497,7 +1516,7 @@ function wr(t) {
|
|
|
1497
1516
|
e += se[t[n - 2] >> 2], e += se[(t[n - 2] & 3) << 4 | t[n - 1] >> 4], e += se[(t[n - 1] & 15) << 2 | t[n] >> 6], e += se[t[n] & 63];
|
|
1498
1517
|
return n === r + 1 && (e += se[t[n - 2] >> 2], e += se[(t[n - 2] & 3) << 4], e += "=="), n === r && (e += se[t[n - 2] >> 2], e += se[(t[n - 2] & 3) << 4 | t[n - 1] >> 4], e += se[(t[n - 1] & 15) << 2], e += "="), e;
|
|
1499
1518
|
}
|
|
1500
|
-
function
|
|
1519
|
+
function Ki(t) {
|
|
1501
1520
|
if (t.length % 4 !== 0)
|
|
1502
1521
|
throw new Error("Unable to parse base64 string.");
|
|
1503
1522
|
const e = t.indexOf("=");
|
|
@@ -1508,12 +1527,12 @@ function Gi(t) {
|
|
|
1508
1527
|
s = $t(t.charCodeAt(o)) << 18 | $t(t.charCodeAt(o + 1)) << 12 | $t(t.charCodeAt(o + 2)) << 6 | $t(t.charCodeAt(o + 3)), i[u] = s >> 16, i[u + 1] = s >> 8 & 255, i[u + 2] = s & 255;
|
|
1509
1528
|
return i.subarray(0, i.length - n);
|
|
1510
1529
|
}
|
|
1511
|
-
function
|
|
1530
|
+
function Zi(t, e = new TextEncoder()) {
|
|
1512
1531
|
return wr(e.encode(t));
|
|
1513
1532
|
}
|
|
1514
|
-
var At = { exports: {} },
|
|
1515
|
-
function
|
|
1516
|
-
return
|
|
1533
|
+
var At = { exports: {} }, Xi = At.exports, Qn;
|
|
1534
|
+
function es() {
|
|
1535
|
+
return Qn || (Qn = 1, function(t) {
|
|
1517
1536
|
(function(e, n) {
|
|
1518
1537
|
var r = {};
|
|
1519
1538
|
n(r);
|
|
@@ -1521,7 +1540,7 @@ function Zi() {
|
|
|
1521
1540
|
for (var s in r)
|
|
1522
1541
|
i[s] = r[s];
|
|
1523
1542
|
t.exports = i;
|
|
1524
|
-
})(
|
|
1543
|
+
})(Xi, function(e) {
|
|
1525
1544
|
e.__esModule = !0, e.digestLength = 32, e.blockSize = 64;
|
|
1526
1545
|
var n = new Uint32Array([
|
|
1527
1546
|
1116352408,
|
|
@@ -1590,14 +1609,14 @@ function Zi() {
|
|
|
1590
1609
|
3329325298
|
|
1591
1610
|
]);
|
|
1592
1611
|
function r(p, a, f, h, $) {
|
|
1593
|
-
for (var
|
|
1594
|
-
for (
|
|
1612
|
+
for (var v, A, w, Q, F, U, ne, j, H, z, Ye, Ge, St; $ >= 64; ) {
|
|
1613
|
+
for (v = a[0], A = a[1], w = a[2], Q = a[3], F = a[4], U = a[5], ne = a[6], j = a[7], z = 0; z < 16; z++)
|
|
1595
1614
|
Ye = h + z * 4, p[z] = (f[Ye] & 255) << 24 | (f[Ye + 1] & 255) << 16 | (f[Ye + 2] & 255) << 8 | f[Ye + 3] & 255;
|
|
1596
1615
|
for (z = 16; z < 64; z++)
|
|
1597
1616
|
H = p[z - 2], Ge = (H >>> 17 | H << 15) ^ (H >>> 19 | H << 13) ^ H >>> 10, H = p[z - 15], St = (H >>> 7 | H << 25) ^ (H >>> 18 | H << 14) ^ H >>> 3, p[z] = (Ge + p[z - 7] | 0) + (St + p[z - 16] | 0);
|
|
1598
1617
|
for (z = 0; z < 64; z++)
|
|
1599
|
-
Ge = (((
|
|
1600
|
-
a[0] +=
|
|
1618
|
+
Ge = (((F >>> 6 | F << 26) ^ (F >>> 11 | F << 21) ^ (F >>> 25 | F << 7)) + (F & U ^ ~F & ne) | 0) + (j + (n[z] + p[z] | 0) | 0) | 0, St = ((v >>> 2 | v << 30) ^ (v >>> 13 | v << 19) ^ (v >>> 22 | v << 10)) + (v & A ^ v & w ^ A & w) | 0, j = ne, ne = U, U = F, F = Q + Ge | 0, Q = w, w = A, A = v, v = Ge + St | 0;
|
|
1619
|
+
a[0] += v, a[1] += A, a[2] += w, a[3] += Q, a[4] += F, a[5] += U, a[6] += ne, a[7] += j, h += 64, $ -= 64;
|
|
1601
1620
|
}
|
|
1602
1621
|
return h;
|
|
1603
1622
|
}
|
|
@@ -1629,11 +1648,11 @@ function Zi() {
|
|
|
1629
1648
|
return this;
|
|
1630
1649
|
}, p.prototype.finish = function(a) {
|
|
1631
1650
|
if (!this.finished) {
|
|
1632
|
-
var f = this.bytesHashed, h = this.bufferLength, $ = f / 536870912 | 0,
|
|
1651
|
+
var f = this.bytesHashed, h = this.bufferLength, $ = f / 536870912 | 0, v = f << 3, A = f % 64 < 56 ? 64 : 128;
|
|
1633
1652
|
this.buffer[h] = 128;
|
|
1634
1653
|
for (var w = h + 1; w < A - 8; w++)
|
|
1635
1654
|
this.buffer[w] = 0;
|
|
1636
|
-
this.buffer[A - 8] = $ >>> 24 & 255, this.buffer[A - 7] = $ >>> 16 & 255, this.buffer[A - 6] = $ >>> 8 & 255, this.buffer[A - 5] = $ >>> 0 & 255, this.buffer[A - 4] =
|
|
1655
|
+
this.buffer[A - 8] = $ >>> 24 & 255, this.buffer[A - 7] = $ >>> 16 & 255, this.buffer[A - 6] = $ >>> 8 & 255, this.buffer[A - 5] = $ >>> 0 & 255, this.buffer[A - 4] = v >>> 24 & 255, this.buffer[A - 3] = v >>> 16 & 255, this.buffer[A - 2] = v >>> 8 & 255, this.buffer[A - 1] = v >>> 0 & 255, r(this.temp, this.state, this.buffer, 0, A), this.finished = !0;
|
|
1637
1656
|
}
|
|
1638
1657
|
for (var w = 0; w < 8; w++)
|
|
1639
1658
|
a[w * 4 + 0] = this.state[w] >>> 24 & 255, a[w * 4 + 1] = this.state[w] >>> 16 & 255, a[w * 4 + 2] = this.state[w] >>> 8 & 255, a[w * 4 + 3] = this.state[w] >>> 0 & 255;
|
|
@@ -1708,37 +1727,37 @@ function Zi() {
|
|
|
1708
1727
|
var l = new Uint8Array(e.digestLength);
|
|
1709
1728
|
function _(p, a, f, h) {
|
|
1710
1729
|
a === void 0 && (a = l), h === void 0 && (h = 32);
|
|
1711
|
-
for (var $ = new Uint8Array([1]),
|
|
1712
|
-
Q === w.length && (c(w, A, f, $), Q = 0),
|
|
1713
|
-
return A.clean(), w.fill(0), $.fill(0),
|
|
1730
|
+
for (var $ = new Uint8Array([1]), v = u(a, p), A = new s(v), w = new Uint8Array(A.digestLength), Q = w.length, F = new Uint8Array(h), U = 0; U < h; U++)
|
|
1731
|
+
Q === w.length && (c(w, A, f, $), Q = 0), F[U] = w[Q++];
|
|
1732
|
+
return A.clean(), w.fill(0), $.fill(0), F;
|
|
1714
1733
|
}
|
|
1715
1734
|
e.hkdf = _;
|
|
1716
1735
|
function y(p, a, f, h) {
|
|
1717
|
-
for (var $ = new s(p),
|
|
1736
|
+
for (var $ = new s(p), v = $.digestLength, A = new Uint8Array(4), w = new Uint8Array(v), Q = new Uint8Array(v), F = new Uint8Array(h), U = 0; U * v < h; U++) {
|
|
1718
1737
|
var ne = U + 1;
|
|
1719
1738
|
A[0] = ne >>> 24 & 255, A[1] = ne >>> 16 & 255, A[2] = ne >>> 8 & 255, A[3] = ne >>> 0 & 255, $.reset(), $.update(a), $.update(A), $.finish(Q);
|
|
1720
|
-
for (var
|
|
1721
|
-
w[
|
|
1722
|
-
for (var
|
|
1739
|
+
for (var j = 0; j < v; j++)
|
|
1740
|
+
w[j] = Q[j];
|
|
1741
|
+
for (var j = 2; j <= f; j++) {
|
|
1723
1742
|
$.reset(), $.update(Q).finish(Q);
|
|
1724
|
-
for (var H = 0; H <
|
|
1743
|
+
for (var H = 0; H < v; H++)
|
|
1725
1744
|
w[H] ^= Q[H];
|
|
1726
1745
|
}
|
|
1727
|
-
for (var
|
|
1728
|
-
|
|
1746
|
+
for (var j = 0; j < v && U * v + j < h; j++)
|
|
1747
|
+
F[U * v + j] = w[j];
|
|
1729
1748
|
}
|
|
1730
|
-
for (var U = 0; U <
|
|
1749
|
+
for (var U = 0; U < v; U++)
|
|
1731
1750
|
w[U] = Q[U] = 0;
|
|
1732
1751
|
for (var U = 0; U < 4; U++)
|
|
1733
1752
|
A[U] = 0;
|
|
1734
|
-
return $.clean(),
|
|
1753
|
+
return $.clean(), F;
|
|
1735
1754
|
}
|
|
1736
1755
|
e.pbkdf2 = y;
|
|
1737
1756
|
});
|
|
1738
1757
|
}(At)), At.exports;
|
|
1739
1758
|
}
|
|
1740
|
-
var
|
|
1741
|
-
const
|
|
1759
|
+
var ts = es();
|
|
1760
|
+
const ns = new Int32Array(4);
|
|
1742
1761
|
class Y {
|
|
1743
1762
|
static hashStr(e, n = !1) {
|
|
1744
1763
|
return this.onePassHasher.start().appendStr(e).end(n);
|
|
@@ -1896,7 +1915,7 @@ class Y {
|
|
|
1896
1915
|
i[14] = o;
|
|
1897
1916
|
else {
|
|
1898
1917
|
const u = o.toString(16).match(/(.*?)(.{0,8})$/);
|
|
1899
|
-
if (u === null) return e ?
|
|
1918
|
+
if (u === null) return e ? ns : "";
|
|
1900
1919
|
const c = parseInt(u[2], 16), l = parseInt(u[1], 16) || 0;
|
|
1901
1920
|
i[14] = c, i[15] = l;
|
|
1902
1921
|
}
|
|
@@ -1905,17 +1924,17 @@ class Y {
|
|
|
1905
1924
|
}
|
|
1906
1925
|
if (Y.hashStr("hello") !== "5d41402abc4b2a76b9719d911017c592")
|
|
1907
1926
|
throw new Error("Md5 self test failed.");
|
|
1908
|
-
const
|
|
1909
|
-
function
|
|
1910
|
-
return typeof t == "function" ? t(e) : t && typeof t == "object" &&
|
|
1927
|
+
const rs = 36e5, Yn = Symbol.for("constructDateFrom");
|
|
1928
|
+
function Pt(t, e) {
|
|
1929
|
+
return typeof t == "function" ? t(e) : t && typeof t == "object" && Yn in t ? t[Yn](e) : t instanceof Date ? new t.constructor(e) : new Date(e);
|
|
1911
1930
|
}
|
|
1912
1931
|
function Xe(t, e) {
|
|
1913
|
-
return
|
|
1932
|
+
return Pt(t, t);
|
|
1914
1933
|
}
|
|
1915
|
-
function
|
|
1934
|
+
function is(t, e, n) {
|
|
1916
1935
|
const r = Xe(t);
|
|
1917
|
-
if (isNaN(e)) return
|
|
1918
|
-
const i = r.getDate(), s =
|
|
1936
|
+
if (isNaN(e)) return Pt(t, NaN);
|
|
1937
|
+
const i = r.getDate(), s = Pt(t, r.getTime());
|
|
1919
1938
|
s.setMonth(r.getMonth() + e + 1, 0);
|
|
1920
1939
|
const o = s.getDate();
|
|
1921
1940
|
return i >= o ? s : (r.setFullYear(
|
|
@@ -1925,37 +1944,37 @@ function ns(t, e, n) {
|
|
|
1925
1944
|
), r);
|
|
1926
1945
|
}
|
|
1927
1946
|
function Or(t, e, n) {
|
|
1928
|
-
return
|
|
1947
|
+
return Pt(t, +Xe(t) + e);
|
|
1929
1948
|
}
|
|
1930
|
-
function
|
|
1931
|
-
return Or(t, e *
|
|
1949
|
+
function ss(t, e, n) {
|
|
1950
|
+
return Or(t, e * rs);
|
|
1932
1951
|
}
|
|
1933
|
-
function
|
|
1952
|
+
function os(t, e, n) {
|
|
1934
1953
|
return Or(t, e * 1e3);
|
|
1935
1954
|
}
|
|
1936
|
-
function
|
|
1937
|
-
return
|
|
1955
|
+
function us(t, e, n) {
|
|
1956
|
+
return is(t, e * 12);
|
|
1938
1957
|
}
|
|
1939
|
-
function
|
|
1958
|
+
function Gn(t) {
|
|
1940
1959
|
return Math.trunc(+Xe(t) / 1e3);
|
|
1941
1960
|
}
|
|
1942
|
-
function
|
|
1961
|
+
function cs(t, e) {
|
|
1943
1962
|
return +Xe(t) < +Xe(e);
|
|
1944
1963
|
}
|
|
1945
1964
|
function d(t, e, n, r = "debug", i) {
|
|
1946
1965
|
if (window.debug) {
|
|
1947
1966
|
const o = ["color: #0288D1", `color:${i || "#009688"}`, "color: default"];
|
|
1948
|
-
n ?
|
|
1967
|
+
n ? Jn() ? console[r](
|
|
1949
1968
|
`%c[PlaceOS]%c[${t}] %c${e}`,
|
|
1950
1969
|
...o,
|
|
1951
1970
|
n
|
|
1952
|
-
) : console[r](`[PlaceOS][${t}] ${e}`, n) :
|
|
1971
|
+
) : console[r](`[PlaceOS][${t}] ${e}`, n) : Jn() ? console[r](`%c[PlaceOS]%c[${t}] %c${e}`, ...o) : console[r](`[PlaceOS][${t}] ${e}`);
|
|
1953
1972
|
}
|
|
1954
1973
|
}
|
|
1955
|
-
function
|
|
1974
|
+
function Jn() {
|
|
1956
1975
|
return !(document.documentMode || /Edge/.test(navigator.userAgent));
|
|
1957
1976
|
}
|
|
1958
|
-
function
|
|
1977
|
+
function Er() {
|
|
1959
1978
|
const t = window.location?.hash ? window.location?.hash.slice(1) : window.location?.href.split("#")[1] || "";
|
|
1960
1979
|
let e = window.location?.search ? window.location?.search.slice(1) : window.location?.href.split("?")[1] || "", n = {};
|
|
1961
1980
|
if (t)
|
|
@@ -1977,12 +1996,12 @@ function Je(t) {
|
|
|
1977
1996
|
}
|
|
1978
1997
|
return e;
|
|
1979
1998
|
}
|
|
1980
|
-
const
|
|
1981
|
-
function
|
|
1999
|
+
const Kn = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
|
|
2000
|
+
function as(t = 40) {
|
|
1982
2001
|
let e = "";
|
|
1983
2002
|
for (let n = 0; n < t; n++)
|
|
1984
|
-
e +=
|
|
1985
|
-
Math.floor(Math.random() *
|
|
2003
|
+
e += Kn.charAt(
|
|
2004
|
+
Math.floor(Math.random() * Kn.length)
|
|
1986
2005
|
);
|
|
1987
2006
|
return e;
|
|
1988
2007
|
}
|
|
@@ -1994,14 +2013,14 @@ function be(t) {
|
|
|
1994
2013
|
`${window.location?.pathname}${e}${n}`
|
|
1995
2014
|
);
|
|
1996
2015
|
}
|
|
1997
|
-
function
|
|
2016
|
+
function Tt(t, e = !1) {
|
|
1998
2017
|
const n = e ? 1e3 : 1024;
|
|
1999
2018
|
if (t < n)
|
|
2000
2019
|
return t + (e ? " iB" : " B");
|
|
2001
2020
|
const r = Math.floor(Math.log(t) / Math.log(n)), i = (e ? "kMGTPE" : "KMGTPE").charAt(r - 1) + (e ? "iB" : "B");
|
|
2002
2021
|
return (t / Math.pow(n, r)).toFixed(2) + " " + i;
|
|
2003
2022
|
}
|
|
2004
|
-
function
|
|
2023
|
+
function ls(t) {
|
|
2005
2024
|
if (t.length === 0)
|
|
2006
2025
|
throw new Error("Input must not be of zero length");
|
|
2007
2026
|
const e = t.split(","), n = {};
|
|
@@ -2014,12 +2033,12 @@ function cs(t) {
|
|
|
2014
2033
|
}
|
|
2015
2034
|
return n;
|
|
2016
2035
|
}
|
|
2017
|
-
function
|
|
2036
|
+
function hs(t, e) {
|
|
2018
2037
|
for (const n in t)
|
|
2019
2038
|
t.hasOwnProperty(n) && e.indexOf(t[n]) >= 0 && delete t[n];
|
|
2020
2039
|
return t;
|
|
2021
2040
|
}
|
|
2022
|
-
function
|
|
2041
|
+
function fs() {
|
|
2023
2042
|
return [
|
|
2024
2043
|
"iPad Simulator",
|
|
2025
2044
|
"iPhone Simulator",
|
|
@@ -2030,13 +2049,13 @@ function ls() {
|
|
|
2030
2049
|
].includes(navigator.platform) || // iPad on iOS 13 detection
|
|
2031
2050
|
navigator.userAgent.includes("Mac") && "ontouchend" in document;
|
|
2032
2051
|
}
|
|
2033
|
-
function
|
|
2052
|
+
function ds() {
|
|
2034
2053
|
return window.location !== window.parent.location;
|
|
2035
2054
|
}
|
|
2036
|
-
function
|
|
2055
|
+
function ps(t = Date.now(), e = 60 * 1e3) {
|
|
2037
2056
|
return Math.floor(t / e);
|
|
2038
2057
|
}
|
|
2039
|
-
class
|
|
2058
|
+
class _s {
|
|
2040
2059
|
abort() {
|
|
2041
2060
|
d("Stub", "Aborted");
|
|
2042
2061
|
}
|
|
@@ -2051,13 +2070,13 @@ function R(t) {
|
|
|
2051
2070
|
return e;
|
|
2052
2071
|
}
|
|
2053
2072
|
const ke = {}, Ke = {}, de = {};
|
|
2054
|
-
function
|
|
2073
|
+
function ms() {
|
|
2055
2074
|
for (const t in ke)
|
|
2056
2075
|
ke.hasOwnProperty(t) && we(t);
|
|
2057
2076
|
for (const t in Ke)
|
|
2058
|
-
Ke.hasOwnProperty(t) &&
|
|
2077
|
+
Ke.hasOwnProperty(t) && ys(t);
|
|
2059
2078
|
for (const t in de)
|
|
2060
|
-
de.hasOwnProperty(t) &&
|
|
2079
|
+
de.hasOwnProperty(t) && gs(t);
|
|
2061
2080
|
}
|
|
2062
2081
|
function oe(t, e, n = 300) {
|
|
2063
2082
|
if (t && e && e instanceof Function)
|
|
@@ -2072,13 +2091,13 @@ function oe(t, e, n = 300) {
|
|
|
2072
2091
|
function we(t) {
|
|
2073
2092
|
ke[t] && (clearTimeout(ke[t]), delete ke[t]);
|
|
2074
2093
|
}
|
|
2075
|
-
function
|
|
2094
|
+
function ys(t) {
|
|
2076
2095
|
Ke[t] && (clearInterval(Ke[t]), delete Ke[t]);
|
|
2077
2096
|
}
|
|
2078
|
-
function
|
|
2097
|
+
function gs(t) {
|
|
2079
2098
|
de && de[t] && (de[t] instanceof Ae ? de[t].unsubscribe() : de[t](), delete de[t]);
|
|
2080
2099
|
}
|
|
2081
|
-
const
|
|
2100
|
+
const bs = {
|
|
2082
2101
|
id: "mock-authority",
|
|
2083
2102
|
name: "localhost:4200",
|
|
2084
2103
|
description: "",
|
|
@@ -2090,108 +2109,110 @@ const ys = {
|
|
|
2090
2109
|
config: {},
|
|
2091
2110
|
version: "2.0.0"
|
|
2092
2111
|
};
|
|
2093
|
-
let
|
|
2112
|
+
let g = {}, I = localStorage, W;
|
|
2094
2113
|
const S = {};
|
|
2095
2114
|
let q = "", xe = "";
|
|
2096
|
-
const De = new _e(""),
|
|
2097
|
-
let
|
|
2098
|
-
const pe = new _e(!1),
|
|
2115
|
+
const De = new _e(""), jt = new _e("");
|
|
2116
|
+
let In = "/api/engine/v2";
|
|
2117
|
+
const pe = new _e(!1), vs = pe.asObservable();
|
|
2099
2118
|
let qt = 0;
|
|
2100
2119
|
function x() {
|
|
2101
|
-
return `${`${
|
|
2120
|
+
return `${`${g.secure || window.location?.protocol.indexOf("https") >= 0 ? "https:" : "http:"}//${g.host || window.location?.host}`}${Ir()}`;
|
|
2102
2121
|
}
|
|
2103
|
-
function
|
|
2104
|
-
return
|
|
2122
|
+
function Ir() {
|
|
2123
|
+
return g.version === "ACA Engine" ? "/control/api" : In;
|
|
2105
2124
|
}
|
|
2106
|
-
function
|
|
2107
|
-
return !!
|
|
2125
|
+
function Ss() {
|
|
2126
|
+
return !!g.token_header;
|
|
2108
2127
|
}
|
|
2109
|
-
function
|
|
2128
|
+
function ks() {
|
|
2110
2129
|
return q;
|
|
2111
2130
|
}
|
|
2112
|
-
function
|
|
2113
|
-
return
|
|
2131
|
+
function Ho() {
|
|
2132
|
+
return g.redirect_uri;
|
|
2114
2133
|
}
|
|
2115
|
-
function
|
|
2116
|
-
|
|
2134
|
+
function Wo(t, e = !0) {
|
|
2135
|
+
I.setItem(`${q}_x-api-key`, `${t}`), I.setItem("trusted", `${e}`), $s("x-api-key", us(/* @__PURE__ */ new Date(), 5).valueOf());
|
|
2117
2136
|
}
|
|
2118
2137
|
function zt() {
|
|
2119
2138
|
return Rt("x-api-key", !1) || "";
|
|
2120
2139
|
}
|
|
2121
|
-
function
|
|
2122
|
-
|
|
2140
|
+
function $s(t, e = ss(/* @__PURE__ */ new Date(), 2).valueOf()) {
|
|
2141
|
+
g.ignore_api_key && t === "x-api-key" || (I.setItem(`${q}_expires_at`, `${e}`), I.setItem(`${q}_access_token`, t));
|
|
2123
2142
|
}
|
|
2124
2143
|
function X(t = !0) {
|
|
2125
|
-
if (
|
|
2126
|
-
if (!
|
|
2127
|
-
if (zt() && !
|
|
2128
|
-
const e =
|
|
2129
|
-
return
|
|
2144
|
+
if (g.mock) return "mock-token";
|
|
2145
|
+
if (!I) return "";
|
|
2146
|
+
if (zt() && !g.ignore_api_key) return "x-api-key";
|
|
2147
|
+
const e = I.getItem(`${q}_expires_at`) || "", n = De.getValue();
|
|
2148
|
+
return cs(+e, /* @__PURE__ */ new Date()) && (d("Auth", "Token expired. Requesting new token..."), qn(), S.load_authority || (qt += 1, oe(
|
|
2130
2149
|
"re-authorise",
|
|
2131
|
-
() =>
|
|
2132
|
-
|
|
2133
|
-
|
|
2150
|
+
async () => {
|
|
2151
|
+
delete S.authorise, await qr().catch(
|
|
2152
|
+
(r) => d("Auth", `Failed to get token: ${r}`)
|
|
2153
|
+
);
|
|
2154
|
+
},
|
|
2134
2155
|
200 * Math.min(20, qt)
|
|
2135
|
-
)), !t) ? "" : n ||
|
|
2156
|
+
)), !t) ? "" : n || I.getItem(`${q}_access_token`) || "";
|
|
2136
2157
|
}
|
|
2137
2158
|
function Sn() {
|
|
2138
|
-
return
|
|
2159
|
+
return jt.getValue() || I.getItem(`${q}_refresh_token`) || "";
|
|
2139
2160
|
}
|
|
2140
2161
|
function kn() {
|
|
2141
|
-
return
|
|
2162
|
+
return g.host || window.location?.host;
|
|
2142
2163
|
}
|
|
2143
|
-
function
|
|
2164
|
+
function xs() {
|
|
2144
2165
|
return !!X();
|
|
2145
2166
|
}
|
|
2146
|
-
function
|
|
2147
|
-
return De.pipe(
|
|
2167
|
+
function As() {
|
|
2168
|
+
return De.pipe(b((t) => !!xs()));
|
|
2148
2169
|
}
|
|
2149
2170
|
function Ut() {
|
|
2150
2171
|
return W;
|
|
2151
2172
|
}
|
|
2152
|
-
function
|
|
2173
|
+
function Lo() {
|
|
2153
2174
|
return pe.getValue();
|
|
2154
2175
|
}
|
|
2155
|
-
function
|
|
2156
|
-
return !!
|
|
2176
|
+
function Pn() {
|
|
2177
|
+
return !!g.mock;
|
|
2157
2178
|
}
|
|
2158
|
-
function
|
|
2159
|
-
return !!
|
|
2179
|
+
function ws() {
|
|
2180
|
+
return !!g.secure;
|
|
2160
2181
|
}
|
|
2161
|
-
function
|
|
2162
|
-
return
|
|
2182
|
+
function Bo() {
|
|
2183
|
+
return vs;
|
|
2163
2184
|
}
|
|
2164
|
-
function
|
|
2185
|
+
function Tn() {
|
|
2165
2186
|
return Rt("trust") === "true" || Rt("trusted") === "true";
|
|
2166
2187
|
}
|
|
2167
|
-
function
|
|
2168
|
-
return !!zt() && !
|
|
2188
|
+
function Pr() {
|
|
2189
|
+
return !!zt() && !g.ignore_api_key || Rt("fixed_device") === "true";
|
|
2169
2190
|
}
|
|
2170
2191
|
function Rt(t, e = !0) {
|
|
2171
|
-
let r =
|
|
2172
|
-
if (
|
|
2173
|
-
const i = `${
|
|
2174
|
-
r = r ||
|
|
2192
|
+
let r = Er()[t];
|
|
2193
|
+
if (I) {
|
|
2194
|
+
const i = `${ks()}_${t}`;
|
|
2195
|
+
r = r || I.getItem(i) || I.getItem(t) || "", e && I.setItem(i, `${r}`);
|
|
2175
2196
|
}
|
|
2176
2197
|
return r;
|
|
2177
2198
|
}
|
|
2178
|
-
function
|
|
2179
|
-
return
|
|
2199
|
+
async function Vo(t) {
|
|
2200
|
+
return g = t || g, g.token_header = g.token_header ?? ds(), window.AbortController || (window.AbortController = _s), I = g.storage === "session" ? sessionStorage : localStorage, q = Y.hashStr(g.redirect_uri, !1), g.delay && g.delay > 0 && await zi(On(g.delay)), Un();
|
|
2180
2201
|
}
|
|
2181
|
-
function
|
|
2182
|
-
|
|
2202
|
+
function Qo(t) {
|
|
2203
|
+
I = t === "session" ? sessionStorage : localStorage;
|
|
2183
2204
|
}
|
|
2184
|
-
function
|
|
2185
|
-
|
|
2205
|
+
function Yo() {
|
|
2206
|
+
g = {}, W = void 0, De.next(""), jt.next(""), pe.next(!1), q = "", xe = "", In = "/api/engine/v2";
|
|
2186
2207
|
for (const t in S)
|
|
2187
2208
|
t in S && delete S[t];
|
|
2188
|
-
|
|
2209
|
+
ms();
|
|
2189
2210
|
}
|
|
2190
|
-
function
|
|
2191
|
-
return d("Auth", "Refreshing authorty."), W = void 0,
|
|
2211
|
+
function Tr() {
|
|
2212
|
+
return d("Auth", "Refreshing authorty."), W = void 0, Un();
|
|
2192
2213
|
}
|
|
2193
|
-
function
|
|
2194
|
-
d("Auth", "Invalidating tokens."),
|
|
2214
|
+
function qn() {
|
|
2215
|
+
d("Auth", "Invalidating tokens."), I.removeItem(`${q}_access_token`), I.removeItem(`${q}_expires_at`), De.getValue() && De.next("");
|
|
2195
2216
|
}
|
|
2196
2217
|
function qr(t, e = W) {
|
|
2197
2218
|
return S.authorise || (S.authorise = new Promise((n, r) => {
|
|
@@ -2210,7 +2231,7 @@ function qr(t, e = W) {
|
|
|
2210
2231
|
d("Auth", "Failed to generate token."), r("Failed to generate token"), setTimeout(() => delete S.authorise, 200);
|
|
2211
2232
|
}
|
|
2212
2233
|
];
|
|
2213
|
-
|
|
2234
|
+
g && g.auth_type === "password" ? (d("Auth", "Logging in with credentials."), Ms(g).then(
|
|
2214
2235
|
...s
|
|
2215
2236
|
), qt = 0) : xe || Sn() ? (d(
|
|
2216
2237
|
"Auth",
|
|
@@ -2218,13 +2239,13 @@ function qr(t, e = W) {
|
|
|
2218
2239
|
), Rr().then(...s), qt = 0) : e.session ? (d(
|
|
2219
2240
|
"Auth",
|
|
2220
2241
|
"Users has session. Authorising application..."
|
|
2221
|
-
),
|
|
2242
|
+
), Os(t).then(...s)) : (d("Auth", "No user session"), Ur(e), r("No user session"), setTimeout(() => delete S.authorise, 200));
|
|
2222
2243
|
}
|
|
2223
2244
|
};
|
|
2224
|
-
|
|
2245
|
+
Is().then(i, i);
|
|
2225
2246
|
})), S.authorise;
|
|
2226
2247
|
}
|
|
2227
|
-
function
|
|
2248
|
+
function Go() {
|
|
2228
2249
|
const t = W ? W.logout_url : "/logout";
|
|
2229
2250
|
fetch(t, {
|
|
2230
2251
|
method: "GET",
|
|
@@ -2234,30 +2255,30 @@ function Qo() {
|
|
|
2234
2255
|
}
|
|
2235
2256
|
}).then((e) => {
|
|
2236
2257
|
const n = e.headers.get("Location") || t;
|
|
2237
|
-
for (let r = 0; r <
|
|
2238
|
-
const i =
|
|
2239
|
-
i && i.indexOf(q) >= 0 &&
|
|
2258
|
+
for (let r = 0; r < I.length; r++) {
|
|
2259
|
+
const i = I.key(r);
|
|
2260
|
+
i && i.indexOf(q) >= 0 && I.removeItem(i);
|
|
2240
2261
|
}
|
|
2241
2262
|
window.location?.assign(n);
|
|
2242
2263
|
});
|
|
2243
2264
|
}
|
|
2244
|
-
function
|
|
2265
|
+
function Un(t = 0) {
|
|
2245
2266
|
return S.load_authority || (S.load_authority = new Promise((e) => {
|
|
2246
|
-
if (pe.next(!1),
|
|
2247
|
-
W =
|
|
2267
|
+
if (pe.next(!1), g.mock) {
|
|
2268
|
+
W = bs, d("Auth", "System in mock mode"), pe.next(!0), e();
|
|
2248
2269
|
return;
|
|
2249
2270
|
}
|
|
2250
|
-
d("Auth", `Fixed: ${
|
|
2251
|
-
const n =
|
|
2271
|
+
d("Auth", `Fixed: ${Pr()} | Trusted: ${Tn()}`), d("Auth", "Loading authority...");
|
|
2272
|
+
const n = g.secure || window.location?.protocol.indexOf("https") >= 0, r = (i) => {
|
|
2252
2273
|
d("Auth", `Failed to load authority(${i})`), pe.next(!1), oe(
|
|
2253
2274
|
"load_authority",
|
|
2254
2275
|
() => {
|
|
2255
|
-
delete S.load_authority,
|
|
2276
|
+
delete S.load_authority, Un(t).then((s) => e());
|
|
2256
2277
|
},
|
|
2257
2278
|
300 * Math.min(20, ++t)
|
|
2258
2279
|
);
|
|
2259
2280
|
};
|
|
2260
|
-
|
|
2281
|
+
En(
|
|
2261
2282
|
`${n ? "https:" : "http:"}//${kn()}/auth/authority`,
|
|
2262
2283
|
{
|
|
2263
2284
|
credentials: "same-origin"
|
|
@@ -2265,7 +2286,7 @@ function En(t = 0) {
|
|
|
2265
2286
|
).subscribe(async (i) => {
|
|
2266
2287
|
if (!i.ok)
|
|
2267
2288
|
return r(await i.text().catch((o) => o));
|
|
2268
|
-
W = await i.json(),
|
|
2289
|
+
W = await i.json(), In = /[2-9]\.[0-9]+\.[0-9]+/g.test(
|
|
2269
2290
|
W.version || ""
|
|
2270
2291
|
) ? "/api/engine/v2" : "/control/api", d("Auth", "Loaded authority.", [], "group"), W && (d("Auth", `Name: ${W.name}`), d("Auth", `Version: ${W.version}`), d("Auth", `Domain: ${W.domain}`), d("Auth", `Session: ${W.session}`), d("Auth", `Production: ${W.production}`), d(
|
|
2271
2292
|
"Auth",
|
|
@@ -2278,13 +2299,13 @@ function En(t = 0) {
|
|
|
2278
2299
|
}, r);
|
|
2279
2300
|
})), S.load_authority;
|
|
2280
2301
|
}
|
|
2281
|
-
async function
|
|
2282
|
-
const e =
|
|
2283
|
-
if (
|
|
2284
|
-
return
|
|
2302
|
+
async function Os(t) {
|
|
2303
|
+
const e = Ts(t);
|
|
2304
|
+
if (g.use_iframe)
|
|
2305
|
+
return Es(e);
|
|
2285
2306
|
window.location?.assign(e);
|
|
2286
2307
|
}
|
|
2287
|
-
function
|
|
2308
|
+
function Es(t) {
|
|
2288
2309
|
return S.iframe_auth || (S.iframe_auth = new Promise((e, n) => {
|
|
2289
2310
|
d("Auth", "Authorizing in an iFrame...");
|
|
2290
2311
|
const r = document.createElement("iframe");
|
|
@@ -2293,7 +2314,7 @@ function ws(t) {
|
|
|
2293
2314
|
if (s.origin === window.location?.origin && s.data.type === "place-os") {
|
|
2294
2315
|
const o = s.data;
|
|
2295
2316
|
if (d("Auth", "Received credentials from iFrame..."), document.body.removeChild(r), we("iframe_auth"), window.removeEventListener("message", i), delete S.iframe_auth, o.token)
|
|
2296
|
-
return e(),
|
|
2317
|
+
return e(), Rn({
|
|
2297
2318
|
access_token: o.token,
|
|
2298
2319
|
...o
|
|
2299
2320
|
});
|
|
@@ -2314,39 +2335,39 @@ function ws(t) {
|
|
|
2314
2335
|
}, document.body.appendChild(r);
|
|
2315
2336
|
})), S.iframe_auth;
|
|
2316
2337
|
}
|
|
2317
|
-
let
|
|
2338
|
+
let Zn = !1;
|
|
2318
2339
|
function Ur(t) {
|
|
2319
|
-
if (
|
|
2340
|
+
if (g.handle_login !== !1 && !Zn) {
|
|
2320
2341
|
d("Auth", "Redirecting to login page...");
|
|
2321
2342
|
const e = t.login_url?.replace(
|
|
2322
2343
|
"{{url}}",
|
|
2323
2344
|
encodeURIComponent(window.location?.href)
|
|
2324
2345
|
);
|
|
2325
|
-
throw setTimeout(() => window.location?.assign(e), 300),
|
|
2346
|
+
throw setTimeout(() => window.location?.assign(e), 300), Zn = !0, new Error("Redirecting to login page...");
|
|
2326
2347
|
} else
|
|
2327
2348
|
d("Auth", "Login being handled locally.");
|
|
2328
2349
|
delete S.authorise;
|
|
2329
2350
|
}
|
|
2330
|
-
function
|
|
2351
|
+
function Is() {
|
|
2331
2352
|
return S.check_token || (S.check_token = new Promise(async (t, e) => {
|
|
2332
|
-
X() ? (d("Auth", "Valid token found."), t(X())) : (d("Auth", "No token. Checking URL for auth credentials..."), await
|
|
2353
|
+
X() ? (d("Auth", "Valid token found."), t(X())) : (d("Auth", "No token. Checking URL for auth credentials..."), await Ps() ? t(!0) : e()), delete S.check_token;
|
|
2333
2354
|
})), S.check_token;
|
|
2334
2355
|
}
|
|
2335
|
-
function
|
|
2356
|
+
function Ps() {
|
|
2336
2357
|
return S.check_params || (S.check_params = new Promise((t) => {
|
|
2337
2358
|
d("Auth", "Checking for auth parameters...");
|
|
2338
|
-
let e =
|
|
2359
|
+
let e = Er();
|
|
2339
2360
|
if ((!e || Object.keys(e).length <= 0) && sessionStorage && (e = JSON.parse(
|
|
2340
2361
|
sessionStorage.getItem("ENGINE.auth.params") || "{}"
|
|
2341
2362
|
)), e && (e.code || e.access_token || e.refresh_token)) {
|
|
2342
|
-
e.code && (xe = e.code, be("code")), e.refresh_token && (
|
|
2363
|
+
e.code && (xe = e.code, be("code")), e.refresh_token && (I.setItem(
|
|
2343
2364
|
`${q}_refresh_token`,
|
|
2344
2365
|
e.refresh_token
|
|
2345
2366
|
), be("refresh_token"));
|
|
2346
|
-
const n =
|
|
2367
|
+
const n = I.getItem(`${q}_nonce`) || "", r = (e.state || "").split(";");
|
|
2347
2368
|
be("state"), be("token_type");
|
|
2348
2369
|
const i = r[0];
|
|
2349
|
-
n === i ? (
|
|
2370
|
+
n === i ? (Rn(e), t(!!e.access_token)) : t(!1);
|
|
2350
2371
|
} else
|
|
2351
2372
|
t(!1);
|
|
2352
2373
|
oe(
|
|
@@ -2356,27 +2377,27 @@ function Is() {
|
|
|
2356
2377
|
);
|
|
2357
2378
|
})), S.check_params;
|
|
2358
2379
|
}
|
|
2359
|
-
function
|
|
2360
|
-
const e =
|
|
2380
|
+
function Ts(t) {
|
|
2381
|
+
const e = Cs();
|
|
2361
2382
|
t = t ? `${e};${t}` : e;
|
|
2362
|
-
const n =
|
|
2363
|
-
let s = `${r}${n ? "&" : "?"}response_type=${encodeURIComponent(i)}&client_id=${encodeURIComponent(q)}&state=${encodeURIComponent(t)}&redirect_uri=${encodeURIComponent(
|
|
2364
|
-
if (
|
|
2365
|
-
const { challenge: o, verify: u } =
|
|
2383
|
+
const n = g ? (g.auth_uri || "").indexOf("?") >= 0 : !1, r = (g ? g.auth_uri : null) || "/auth/oauth/authorize", i = Tn() || g.auth_type === "auth_code" ? "code" : "token";
|
|
2384
|
+
let s = `${r}${n ? "&" : "?"}response_type=${encodeURIComponent(i)}&client_id=${encodeURIComponent(q)}&state=${encodeURIComponent(t)}&redirect_uri=${encodeURIComponent(g.redirect_uri)}&scope=${encodeURIComponent(g.scope)}`;
|
|
2385
|
+
if (g.auth_type === "auth_code") {
|
|
2386
|
+
const { challenge: o, verify: u } = qs();
|
|
2366
2387
|
sessionStorage.setItem(`${q}_challenge`, o), s += "&code_challenge_method=S256", s += `&code_challenge=${u}`;
|
|
2367
2388
|
}
|
|
2368
2389
|
return s;
|
|
2369
2390
|
}
|
|
2370
|
-
const
|
|
2371
|
-
function
|
|
2391
|
+
const Xn = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".split("");
|
|
2392
|
+
function qs(t = 43) {
|
|
2372
2393
|
const e = new Array(t).fill(0).map(
|
|
2373
|
-
() =>
|
|
2374
|
-
).join(""), n =
|
|
2394
|
+
() => Xn[Math.floor(Math.random() * Xn.length)]
|
|
2395
|
+
).join(""), n = Ki(Zi(e)), r = wr(ts.hash(n)).split("=")[0].replace(/\//g, "_").replace(/\+/g, "-");
|
|
2375
2396
|
return { challenge: e, verify: r };
|
|
2376
2397
|
}
|
|
2377
|
-
function
|
|
2378
|
-
let e = (
|
|
2379
|
-
if (e += `&redirect_uri=${encodeURIComponent(
|
|
2398
|
+
function Us() {
|
|
2399
|
+
let e = (g.token_uri || "/auth/token") + `?client_id=${encodeURIComponent(q)}`, n = "";
|
|
2400
|
+
if (e += `&redirect_uri=${encodeURIComponent(g.redirect_uri)}`, Sn()) {
|
|
2380
2401
|
e += `&refresh_token=${encodeURIComponent(Sn())}`, e += "&grant_type=refresh_token";
|
|
2381
2402
|
const r = e.split("?");
|
|
2382
2403
|
e = r[0], n = r[1];
|
|
@@ -2387,7 +2408,7 @@ function Es() {
|
|
|
2387
2408
|
}
|
|
2388
2409
|
return [e, n];
|
|
2389
2410
|
}
|
|
2390
|
-
function
|
|
2411
|
+
function Rs(t) {
|
|
2391
2412
|
const e = t.token_uri || "/auth/token", n = R({
|
|
2392
2413
|
grant_type: "password",
|
|
2393
2414
|
client_id: q,
|
|
@@ -2401,18 +2422,18 @@ function qs(t) {
|
|
|
2401
2422
|
return `${e}?${n}`;
|
|
2402
2423
|
}
|
|
2403
2424
|
function Rr() {
|
|
2404
|
-
return Mr(...
|
|
2425
|
+
return Mr(...Us());
|
|
2405
2426
|
}
|
|
2406
|
-
function
|
|
2407
|
-
return Mr(
|
|
2427
|
+
function Ms(t) {
|
|
2428
|
+
return Mr(Rs(t));
|
|
2408
2429
|
}
|
|
2409
2430
|
function Mr(t, e = "") {
|
|
2410
2431
|
return S.generate_tokens || (S.generate_tokens = new Promise((n, r) => {
|
|
2411
2432
|
d("Auth", "Generating new token...");
|
|
2412
2433
|
const i = (s) => {
|
|
2413
|
-
d("Auth", "Error generating new tokens.", s),
|
|
2434
|
+
d("Auth", "Error generating new tokens.", s), I.removeItem(`${q}_refresh_token`), jt.next(""), r(), delete S.generate_tokens;
|
|
2414
2435
|
};
|
|
2415
|
-
|
|
2436
|
+
En(t, {
|
|
2416
2437
|
method: "POST",
|
|
2417
2438
|
body: e,
|
|
2418
2439
|
headers: {
|
|
@@ -2421,37 +2442,37 @@ function Mr(t, e = "") {
|
|
|
2421
2442
|
}).subscribe(async (s) => {
|
|
2422
2443
|
if (!s.ok) return i(s);
|
|
2423
2444
|
const o = await s.json();
|
|
2424
|
-
|
|
2445
|
+
Rn(o), n(), delete S.generate_tokens;
|
|
2425
2446
|
}, i);
|
|
2426
2447
|
})), S.generate_tokens;
|
|
2427
2448
|
}
|
|
2428
|
-
function
|
|
2429
|
-
const e =
|
|
2449
|
+
function Rn(t) {
|
|
2450
|
+
const e = os(
|
|
2430
2451
|
/* @__PURE__ */ new Date(),
|
|
2431
2452
|
Math.max(60, parseInt(t.expires_in, 10) - 300)
|
|
2432
2453
|
);
|
|
2433
|
-
d("Auth", "Tokens generated storing..."),
|
|
2454
|
+
d("Auth", "Tokens generated storing..."), Tn() && (t.access_token && (I.setItem(
|
|
2434
2455
|
`${q}_access_token`,
|
|
2435
2456
|
t.access_token
|
|
2436
|
-
), be("access_token")), t.refresh_token && (
|
|
2457
|
+
), be("access_token")), t.refresh_token && (I.setItem(
|
|
2437
2458
|
`${q}_refresh_token`,
|
|
2438
2459
|
t.refresh_token
|
|
2439
|
-
), be("refresh_token"))), t.expires_in && (
|
|
2460
|
+
), be("refresh_token"))), t.expires_in && (I.setItem(`${q}_expires_at`, `${e.valueOf()}`), be("expires_in")), pe.next(!0), De.next(t.access_token || ""), jt.next(t.refresh_token || "");
|
|
2440
2461
|
}
|
|
2441
|
-
function
|
|
2442
|
-
const t =
|
|
2443
|
-
return
|
|
2462
|
+
function Cs() {
|
|
2463
|
+
const t = as();
|
|
2464
|
+
return I.setItem(`${q}_nonce`, t), t;
|
|
2444
2465
|
}
|
|
2445
2466
|
const Ht = {};
|
|
2446
2467
|
let Cr = (t, e) => {
|
|
2447
2468
|
const n = new Error(`Mock endpoint not found: ${t} ${e}`);
|
|
2448
|
-
return n.status = 404, d("HTTP(M)", `404 ${t}:`, e),
|
|
2469
|
+
return n.status = 404, d("HTTP(M)", `404 ${t}:`, e), $r(n);
|
|
2449
2470
|
};
|
|
2450
|
-
function
|
|
2471
|
+
function Jo(t) {
|
|
2451
2472
|
Cr = t;
|
|
2452
2473
|
}
|
|
2453
|
-
function
|
|
2454
|
-
|
|
2474
|
+
function Ko(t, e = Ht) {
|
|
2475
|
+
Ds(t.method, t.path, e);
|
|
2455
2476
|
const n = `${t.method}|${t.path}`, r = t.path.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").replace(/^\//, "").split("/"), i = {
|
|
2456
2477
|
...t,
|
|
2457
2478
|
path_parts: r,
|
|
@@ -2461,19 +2482,19 @@ function Go(t, e = Ht) {
|
|
|
2461
2482
|
};
|
|
2462
2483
|
e[n] = i, d("HTTP(M)", `+ ${t.method} ${t.path}`);
|
|
2463
2484
|
}
|
|
2464
|
-
function
|
|
2485
|
+
function Ds(t, e, n = Ht) {
|
|
2465
2486
|
const r = `${t}|${e}`;
|
|
2466
2487
|
n[r] && (delete n[r], d("HTTP(M)", `- ${t} ${e}`));
|
|
2467
2488
|
}
|
|
2468
|
-
function
|
|
2469
|
-
const i =
|
|
2489
|
+
function Ns(t, e, n, r = Ht) {
|
|
2490
|
+
const i = Fs(t, e, r);
|
|
2470
2491
|
if (i) {
|
|
2471
|
-
const s =
|
|
2472
|
-
return
|
|
2492
|
+
const s = js(e, i, n);
|
|
2493
|
+
return zs(i, s);
|
|
2473
2494
|
}
|
|
2474
2495
|
return Cr(t, e);
|
|
2475
2496
|
}
|
|
2476
|
-
function
|
|
2497
|
+
function Fs(t, e, n = Ht) {
|
|
2477
2498
|
const i = e.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").replace(/^\//, "").split("?")[0].split("/"), s = Object.keys(
|
|
2478
2499
|
n
|
|
2479
2500
|
).reduce((o, u) => (u.indexOf(`${t}|`) === 0 && o.push(n[u]), o), []);
|
|
@@ -2490,7 +2511,7 @@ function Ds(t, e, n = Ht) {
|
|
|
2490
2511
|
}
|
|
2491
2512
|
return null;
|
|
2492
2513
|
}
|
|
2493
|
-
function
|
|
2514
|
+
function js(t, e, n) {
|
|
2494
2515
|
const r = t.replace(/(http|https):\/\/[a-zA-Z0-9.-]*:?([0-9]*)?/g, "").split("?"), i = r[0].replace(/^\//, ""), s = r[1] || "", o = Je(s), u = i.split("/"), c = {};
|
|
2495
2516
|
for (let _ = 0; _ < e.path_structure.length; _++) {
|
|
2496
2517
|
const y = e.path_structure[_];
|
|
@@ -2507,7 +2528,7 @@ function Ns(t, e, n) {
|
|
|
2507
2528
|
};
|
|
2508
2529
|
return d("HTTP(M)", `MATCHED ${l.method}:`, l), l;
|
|
2509
2530
|
}
|
|
2510
|
-
function
|
|
2531
|
+
function zs(t, e) {
|
|
2511
2532
|
let n;
|
|
2512
2533
|
try {
|
|
2513
2534
|
n = t.callback ? t.callback(e) : t.metadata;
|
|
@@ -2515,10 +2536,10 @@ function js(t, e) {
|
|
|
2515
2536
|
throw d("HTTP(M)", `ERROR ${e.method}:`, [e.url, o]), o;
|
|
2516
2537
|
}
|
|
2517
2538
|
const r = t.delay_variance || 100, i = t.delay || 300, s = Math.floor(Math.random() * r - r / 2) + i;
|
|
2518
|
-
return d("HTTP(M)", `RESP ${e.method}:`, [e.url, n]),
|
|
2539
|
+
return d("HTTP(M)", `RESP ${e.method}:`, [e.url, n]), Fi([n]).pipe(Qi(Math.max(200, s)));
|
|
2519
2540
|
}
|
|
2520
2541
|
const Dr = {};
|
|
2521
|
-
function
|
|
2542
|
+
function Hs(t, e = Dr) {
|
|
2522
2543
|
return e[t] || {};
|
|
2523
2544
|
}
|
|
2524
2545
|
function N(t, e, n = tt) {
|
|
@@ -2536,7 +2557,7 @@ function et(t, e, n, r = tt) {
|
|
|
2536
2557
|
function Oe(t, e, n = tt) {
|
|
2537
2558
|
return e || (e = { response_type: "void" }), n("DELETE", t, { response_type: "void", ...e });
|
|
2538
2559
|
}
|
|
2539
|
-
async function
|
|
2560
|
+
async function Ws(t, e, n = Dr) {
|
|
2540
2561
|
if (t.headers) {
|
|
2541
2562
|
const r = {};
|
|
2542
2563
|
t.headers.forEach ? t.headers.forEach((i, s) => r[s.toLowerCase()] = i) : Object.keys(t.headers).forEach(
|
|
@@ -2554,7 +2575,7 @@ async function zs(t, e, n = Dr) {
|
|
|
2554
2575
|
return await t.json().catch(() => ({}));
|
|
2555
2576
|
}
|
|
2556
2577
|
}
|
|
2557
|
-
const Nr = () => (
|
|
2578
|
+
const Nr = () => (qn(), Tr().then(
|
|
2558
2579
|
() => Promise.resolve(),
|
|
2559
2580
|
() => new Promise((t) => {
|
|
2560
2581
|
setTimeout(() => {
|
|
@@ -2562,25 +2583,25 @@ const Nr = () => (Tn(), Er().then(
|
|
|
2562
2583
|
}, 1e3);
|
|
2563
2584
|
})
|
|
2564
2585
|
));
|
|
2565
|
-
function tt(t, e, n, r =
|
|
2586
|
+
function tt(t, e, n, r = Pn, i = Ns, s = Ws) {
|
|
2566
2587
|
if (r()) {
|
|
2567
2588
|
const o = i(t, e, n?.body);
|
|
2568
2589
|
if (o) return o;
|
|
2569
2590
|
}
|
|
2570
|
-
return n.headers = n.headers || {}, !n.headers["Content-Type"] && !n.headers["content-type"] && (n.headers["Content-Type"] = "application/json"),
|
|
2571
|
-
|
|
2591
|
+
return n.headers = n.headers || {}, !n.headers["Content-Type"] && !n.headers["content-type"] && (n.headers["Content-Type"] = "application/json"), As().pipe(
|
|
2592
|
+
Li((o) => o),
|
|
2572
2593
|
Ar(1),
|
|
2573
|
-
|
|
2594
|
+
Bn((o) => {
|
|
2574
2595
|
X() === "x-api-key" ? n.headers["X-API-Key"] = zt() : n.headers.Authorization = `Bearer ${X()}`;
|
|
2575
2596
|
const u = {
|
|
2576
2597
|
...n,
|
|
2577
2598
|
method: t,
|
|
2578
2599
|
credentials: "same-origin"
|
|
2579
2600
|
};
|
|
2580
|
-
return ["POST", "PUT", "PATCH"].includes(t) && n.body !== void 0 && (u.body = typeof n.body == "string" ? n.body : JSON.stringify(n.body)),
|
|
2601
|
+
return ["POST", "PUT", "PATCH"].includes(t) && n.body !== void 0 && (u.body = typeof n.body == "string" ? n.body : JSON.stringify(n.body)), En(e, u);
|
|
2581
2602
|
}),
|
|
2582
|
-
|
|
2583
|
-
|
|
2603
|
+
Bn((o) => o.ok ? s(o, n.response_type) : $r(o)),
|
|
2604
|
+
Ji({
|
|
2584
2605
|
count: 4,
|
|
2585
2606
|
delay: (o, u) => new D((c) => {
|
|
2586
2607
|
if (o.status === 511) {
|
|
@@ -2621,10 +2642,10 @@ class L {
|
|
|
2621
2642
|
*/
|
|
2622
2643
|
toJSON() {
|
|
2623
2644
|
const e = { ...this };
|
|
2624
|
-
return e.version = this.version, delete e.created_at,
|
|
2645
|
+
return e.version = this.version, delete e.created_at, hs(e, [void 0, null, ""]);
|
|
2625
2646
|
}
|
|
2626
2647
|
}
|
|
2627
|
-
class
|
|
2648
|
+
class Ls extends L {
|
|
2628
2649
|
// Dashboard to show this alert on
|
|
2629
2650
|
alert_dashboard_id;
|
|
2630
2651
|
// Details of the dashboard assigned
|
|
@@ -2652,7 +2673,7 @@ class Hs extends L {
|
|
|
2652
2673
|
}, this.severity = e.severity || "low", this.alert_type = e.alert_type || "threshold", this.debounce_period = e.debounce_period || 0, this.alert_dashboard_id = e.alert_dashboard_id || "", this.alert_dashboard_details = e.alert_dashboard_details || void 0, this.any_match = e.any_match || !1;
|
|
2653
2674
|
}
|
|
2654
2675
|
}
|
|
2655
|
-
class
|
|
2676
|
+
class Bs extends L {
|
|
2656
2677
|
// Domain authority that the dashboard exists under
|
|
2657
2678
|
authority_id;
|
|
2658
2679
|
// Description of the dashboard's purpose
|
|
@@ -2663,65 +2684,65 @@ class Ws extends L {
|
|
|
2663
2684
|
super(e), this.authority_id = e.authority_id || "", this.description = e.description || "", this.enabled = e.enabled || !1;
|
|
2664
2685
|
}
|
|
2665
2686
|
}
|
|
2666
|
-
const
|
|
2687
|
+
const Fe = "alert_dashboards";
|
|
2667
2688
|
function Wt(t) {
|
|
2668
|
-
return new
|
|
2689
|
+
return new Bs(t);
|
|
2669
2690
|
}
|
|
2670
|
-
function
|
|
2691
|
+
function Zo(t = {}) {
|
|
2671
2692
|
return O({
|
|
2672
2693
|
query_params: t,
|
|
2673
2694
|
fn: Wt,
|
|
2674
|
-
path:
|
|
2695
|
+
path: Fe
|
|
2675
2696
|
});
|
|
2676
2697
|
}
|
|
2677
|
-
function
|
|
2698
|
+
function Xo(t) {
|
|
2678
2699
|
return k({
|
|
2679
2700
|
id: t,
|
|
2680
2701
|
query_params: {},
|
|
2681
2702
|
fn: Wt,
|
|
2682
|
-
path:
|
|
2703
|
+
path: Fe
|
|
2683
2704
|
});
|
|
2684
2705
|
}
|
|
2685
|
-
function
|
|
2686
|
-
return
|
|
2706
|
+
function eu(t, e, n = "patch") {
|
|
2707
|
+
return T({
|
|
2687
2708
|
id: t,
|
|
2688
2709
|
form_data: e,
|
|
2689
2710
|
query_params: {},
|
|
2690
2711
|
method: n,
|
|
2691
2712
|
fn: Wt,
|
|
2692
|
-
path:
|
|
2713
|
+
path: Fe
|
|
2693
2714
|
});
|
|
2694
2715
|
}
|
|
2695
|
-
function
|
|
2696
|
-
return
|
|
2716
|
+
function tu(t) {
|
|
2717
|
+
return P({
|
|
2697
2718
|
form_data: t,
|
|
2698
2719
|
query_params: {},
|
|
2699
2720
|
fn: Wt,
|
|
2700
|
-
path:
|
|
2721
|
+
path: Fe
|
|
2701
2722
|
});
|
|
2702
2723
|
}
|
|
2703
|
-
function
|
|
2704
|
-
return
|
|
2724
|
+
function nu(t) {
|
|
2725
|
+
return E({ id: t, query_params: {}, path: Fe });
|
|
2705
2726
|
}
|
|
2706
|
-
function
|
|
2727
|
+
function ru(t) {
|
|
2707
2728
|
return O({
|
|
2708
2729
|
query_params: {},
|
|
2709
2730
|
fn: rt,
|
|
2710
|
-
path: `${
|
|
2731
|
+
path: `${Fe}/${t}/alerts`
|
|
2711
2732
|
});
|
|
2712
2733
|
}
|
|
2713
2734
|
const nt = "alerts";
|
|
2714
2735
|
function rt(t) {
|
|
2715
|
-
return new
|
|
2736
|
+
return new Ls(t);
|
|
2716
2737
|
}
|
|
2717
|
-
function
|
|
2738
|
+
function iu(t = {}) {
|
|
2718
2739
|
return O({
|
|
2719
2740
|
query_params: t,
|
|
2720
2741
|
fn: rt,
|
|
2721
2742
|
path: nt
|
|
2722
2743
|
});
|
|
2723
2744
|
}
|
|
2724
|
-
function
|
|
2745
|
+
function su(t, e = {}) {
|
|
2725
2746
|
return k({
|
|
2726
2747
|
id: t,
|
|
2727
2748
|
query_params: e,
|
|
@@ -2729,8 +2750,8 @@ function ru(t, e = {}) {
|
|
|
2729
2750
|
path: nt
|
|
2730
2751
|
});
|
|
2731
2752
|
}
|
|
2732
|
-
function
|
|
2733
|
-
return
|
|
2753
|
+
function ou(t, e, n = "patch") {
|
|
2754
|
+
return T({
|
|
2734
2755
|
id: t,
|
|
2735
2756
|
form_data: e,
|
|
2736
2757
|
query_params: {},
|
|
@@ -2739,18 +2760,18 @@ function iu(t, e, n = "patch") {
|
|
|
2739
2760
|
path: nt
|
|
2740
2761
|
});
|
|
2741
2762
|
}
|
|
2742
|
-
function
|
|
2743
|
-
return
|
|
2763
|
+
function uu(t) {
|
|
2764
|
+
return P({
|
|
2744
2765
|
form_data: t,
|
|
2745
2766
|
query_params: {},
|
|
2746
2767
|
fn: rt,
|
|
2747
2768
|
path: nt
|
|
2748
2769
|
});
|
|
2749
2770
|
}
|
|
2750
|
-
function
|
|
2751
|
-
return
|
|
2771
|
+
function cu(t) {
|
|
2772
|
+
return E({ id: t, query_params: {}, path: nt });
|
|
2752
2773
|
}
|
|
2753
|
-
class
|
|
2774
|
+
class Vs extends L {
|
|
2754
2775
|
/** Unique identifier of the application */
|
|
2755
2776
|
uid;
|
|
2756
2777
|
/** Secret associated with the application */
|
|
@@ -2769,19 +2790,19 @@ class Ls extends L {
|
|
|
2769
2790
|
super(e), this.uid = e.uid || "", this.secret = e.secret || "", this.owner_id = e.owner_id || "", this.scopes = e.scopes || "", this.redirect_uri = e.redirect_uri || "", this.skip_authorization = e.skip_authorization || !1, this.preserve_client_id = e.preserve_client_id || !1;
|
|
2770
2791
|
}
|
|
2771
2792
|
}
|
|
2772
|
-
function
|
|
2773
|
-
return jr[t] || 0;
|
|
2774
|
-
}
|
|
2775
|
-
function cu(t) {
|
|
2793
|
+
function au(t) {
|
|
2776
2794
|
return Fr[t] || 0;
|
|
2777
2795
|
}
|
|
2778
|
-
|
|
2796
|
+
function lu(t) {
|
|
2797
|
+
return jr[t] || 0;
|
|
2798
|
+
}
|
|
2799
|
+
let Fr = {}, jr = {}, er = "";
|
|
2779
2800
|
const Lt = (t) => t;
|
|
2780
2801
|
function O(t) {
|
|
2781
2802
|
const { query_params: e, fn: n, path: r, endpoint: i } = t, s = R(e), o = `${i || x()}${r ? "/" + r : ""}${s ? "?" + s : ""}`;
|
|
2782
2803
|
return N(o).pipe(
|
|
2783
|
-
|
|
2784
|
-
const c =
|
|
2804
|
+
b((u) => {
|
|
2805
|
+
const c = Qs(o, s, r);
|
|
2785
2806
|
return {
|
|
2786
2807
|
total: c.total || 0,
|
|
2787
2808
|
next: c.next ? () => O({
|
|
@@ -2797,12 +2818,12 @@ function O(t) {
|
|
|
2797
2818
|
}
|
|
2798
2819
|
function k(t) {
|
|
2799
2820
|
const { query_params: e, id: n, path: r, fn: i, options: s } = t, o = R(e), u = `${x()}/${r}/${n}${o ? "?" + o : ""}`;
|
|
2800
|
-
return N(u, s).pipe(
|
|
2821
|
+
return N(u, s).pipe(b((c) => (i || Lt)(c)));
|
|
2801
2822
|
}
|
|
2802
|
-
function
|
|
2823
|
+
function P(t) {
|
|
2803
2824
|
const { query_params: e, form_data: n, path: r, fn: i } = t, s = R(e), o = `${x()}/${r}${s ? "?" + s : ""}`;
|
|
2804
2825
|
return G(o, n).pipe(
|
|
2805
|
-
|
|
2826
|
+
b((c) => (i || Lt)(c))
|
|
2806
2827
|
);
|
|
2807
2828
|
}
|
|
2808
2829
|
function m(t) {
|
|
@@ -2813,24 +2834,24 @@ function m(t) {
|
|
|
2813
2834
|
response_type: "json"
|
|
2814
2835
|
}
|
|
2815
2836
|
)).pipe(
|
|
2816
|
-
|
|
2837
|
+
b((_) => (o || ((y) => y))(_))
|
|
2817
2838
|
);
|
|
2818
2839
|
}
|
|
2819
|
-
function
|
|
2840
|
+
function T(t) {
|
|
2820
2841
|
const { id: e, query_params: n, form_data: r, method: i, path: s, fn: o } = t, u = R({
|
|
2821
2842
|
...n,
|
|
2822
2843
|
version: r.version || 0
|
|
2823
2844
|
}), c = `${x()}/${s}/${e}${u ? "?" + u : ""}`;
|
|
2824
2845
|
return (i === "put" ? Ne : et)(c, r).pipe(
|
|
2825
|
-
|
|
2846
|
+
b((l) => (o || Lt)(l))
|
|
2826
2847
|
);
|
|
2827
2848
|
}
|
|
2828
|
-
function
|
|
2849
|
+
function E(t) {
|
|
2829
2850
|
const { id: e, query_params: n, path: r } = t, i = R(n), s = `${x()}/${r}/${e}${i ? "?" + i : ""}`;
|
|
2830
2851
|
return Oe(s);
|
|
2831
2852
|
}
|
|
2832
|
-
function
|
|
2833
|
-
const r =
|
|
2853
|
+
function Qs(t, e, n) {
|
|
2854
|
+
const r = Hs(
|
|
2834
2855
|
t[0] === "/" ? `${location.origin}${t}` : t
|
|
2835
2856
|
), i = {
|
|
2836
2857
|
total: 0,
|
|
@@ -2838,22 +2859,22 @@ function Bs(t, e, n) {
|
|
|
2838
2859
|
};
|
|
2839
2860
|
if (r && r["x-total-count"]) {
|
|
2840
2861
|
const s = +(r["x-total-count"] || 0);
|
|
2841
|
-
(e.length < 2 || e.length < 12 && e.indexOf("offset=") >= 0) && (
|
|
2862
|
+
(e.length < 2 || e.length < 12 && e.indexOf("offset=") >= 0) && (Fr[n] = s), jr[n] = s, i.total = s;
|
|
2842
2863
|
}
|
|
2843
|
-
return r && r.link && (
|
|
2864
|
+
return r && r.link && (er = ls(r.link || "").next, i.next = Je(er.split("?")[1])), i;
|
|
2844
2865
|
}
|
|
2845
2866
|
const it = "oauth_apps";
|
|
2846
2867
|
function Bt(t) {
|
|
2847
|
-
return new
|
|
2868
|
+
return new Vs(t);
|
|
2848
2869
|
}
|
|
2849
|
-
function
|
|
2870
|
+
function hu(t = {}) {
|
|
2850
2871
|
return O({ query_params: t, fn: Bt, path: it });
|
|
2851
2872
|
}
|
|
2852
|
-
function
|
|
2873
|
+
function fu(t) {
|
|
2853
2874
|
return k({ id: t, query_params: {}, fn: Bt, path: it });
|
|
2854
2875
|
}
|
|
2855
|
-
function
|
|
2856
|
-
return
|
|
2876
|
+
function du(t, e, n = "patch") {
|
|
2877
|
+
return T({
|
|
2857
2878
|
id: t,
|
|
2858
2879
|
form_data: e,
|
|
2859
2880
|
query_params: {},
|
|
@@ -2862,14 +2883,14 @@ function hu(t, e, n = "patch") {
|
|
|
2862
2883
|
path: it
|
|
2863
2884
|
});
|
|
2864
2885
|
}
|
|
2865
|
-
function
|
|
2866
|
-
return
|
|
2886
|
+
function pu(t) {
|
|
2887
|
+
return P({ form_data: t, query_params: {}, fn: Bt, path: it });
|
|
2867
2888
|
}
|
|
2868
|
-
function
|
|
2869
|
-
return
|
|
2889
|
+
function _u(t) {
|
|
2890
|
+
return E({ id: t, query_params: {}, path: it });
|
|
2870
2891
|
}
|
|
2871
|
-
var
|
|
2872
|
-
class
|
|
2892
|
+
var Ys = /* @__PURE__ */ ((t) => (t[t.Certificate = 0] = "Certificate", t[t.NoAuth = 1] = "NoAuth", t[t.UserPassword = 2] = "UserPassword", t))(Ys || {});
|
|
2893
|
+
class Gs extends L {
|
|
2873
2894
|
/** Unique identifier for the Broker */
|
|
2874
2895
|
id;
|
|
2875
2896
|
/** Name of the Broker */
|
|
@@ -2900,16 +2921,16 @@ class Qs extends L {
|
|
|
2900
2921
|
}
|
|
2901
2922
|
const st = "brokers";
|
|
2902
2923
|
function Vt(t) {
|
|
2903
|
-
return new
|
|
2924
|
+
return new Gs(t);
|
|
2904
2925
|
}
|
|
2905
|
-
function
|
|
2926
|
+
function mu(t = {}) {
|
|
2906
2927
|
return O({ query_params: t, fn: Vt, path: st });
|
|
2907
2928
|
}
|
|
2908
|
-
function
|
|
2929
|
+
function yu(t, e = {}) {
|
|
2909
2930
|
return k({ id: t, query_params: e, fn: Vt, path: st });
|
|
2910
2931
|
}
|
|
2911
|
-
function
|
|
2912
|
-
return
|
|
2932
|
+
function gu(t, e, n = "patch") {
|
|
2933
|
+
return T({
|
|
2913
2934
|
id: t,
|
|
2914
2935
|
form_data: e,
|
|
2915
2936
|
query_params: {},
|
|
@@ -2918,13 +2939,13 @@ function mu(t, e, n = "patch") {
|
|
|
2918
2939
|
path: st
|
|
2919
2940
|
});
|
|
2920
2941
|
}
|
|
2921
|
-
function
|
|
2922
|
-
return
|
|
2942
|
+
function bu(t) {
|
|
2943
|
+
return P({ form_data: t, query_params: {}, fn: Vt, path: st });
|
|
2923
2944
|
}
|
|
2924
|
-
function
|
|
2925
|
-
return
|
|
2945
|
+
function vu(t, e = {}) {
|
|
2946
|
+
return E({ id: t, query_params: e, path: st });
|
|
2926
2947
|
}
|
|
2927
|
-
class
|
|
2948
|
+
class Js {
|
|
2928
2949
|
/** Unique identifier of the application */
|
|
2929
2950
|
id;
|
|
2930
2951
|
/** List of running drivers */
|
|
@@ -2963,7 +2984,7 @@ class Ys {
|
|
|
2963
2984
|
edge_nodes;
|
|
2964
2985
|
run_counts;
|
|
2965
2986
|
constructor(e = {}) {
|
|
2966
|
-
this.id = e.id || e.core_id || "", this.compiled_drivers = e.compiled_drivers || [], this.available_repositories = e.available_repositories || e.status?.available_repositories || [], this.running_drivers = e.running_drivers || e.status?.running_drivers || 0, this.module_instances = e.module_instances || e.status?.module_instances || 0, this.unavailable_repositories = e.unavailable_repositories || e.status?.unavailable_repositories || [], this.unavailable_drivers = e.unavailable_drivers || e.status?.unavailable_drivers || [], this.hostname = e.hostname || e.load?.local.hostname || "", this.cpu_count = e.cpu_count || e.load?.local.cpu_count || 0, this.core_cpu = e.core_cpu || e.load?.local.core_cpu || 0, this.total_cpu = e.total_cpu || e.load?.local.total_cpu || 0, this.memory_total = e.memory_total || e.load?.local.memory_total || 0, this.memory_usage = e.memory_usage || e.load?.local.memory_usage || 0, this.core_memory = e.core_memory || e.load?.local.core_memory || 0, this.run_counts = e.run_counts || e.status?.run_counts?.local || { modules: 0, drivers: 0 }, this.memory_percentage = +(this.memory_usage / this.memory_total * 100).toFixed(4), this.used_memory =
|
|
2987
|
+
this.id = e.id || e.core_id || "", this.compiled_drivers = e.compiled_drivers || [], this.available_repositories = e.available_repositories || e.status?.available_repositories || [], this.running_drivers = e.running_drivers || e.status?.running_drivers || 0, this.module_instances = e.module_instances || e.status?.module_instances || 0, this.unavailable_repositories = e.unavailable_repositories || e.status?.unavailable_repositories || [], this.unavailable_drivers = e.unavailable_drivers || e.status?.unavailable_drivers || [], this.hostname = e.hostname || e.load?.local.hostname || "", this.cpu_count = e.cpu_count || e.load?.local.cpu_count || 0, this.core_cpu = e.core_cpu || e.load?.local.core_cpu || 0, this.total_cpu = e.total_cpu || e.load?.local.total_cpu || 0, this.memory_total = e.memory_total || e.load?.local.memory_total || 0, this.memory_usage = e.memory_usage || e.load?.local.memory_usage || 0, this.core_memory = e.core_memory || e.load?.local.core_memory || 0, this.run_counts = e.run_counts || e.status?.run_counts?.local || { modules: 0, drivers: 0 }, this.memory_percentage = +(this.memory_usage / this.memory_total * 100).toFixed(4), this.used_memory = Tt(this.memory_usage * 1024), this.total_memory = Tt(this.memory_total * 1024);
|
|
2967
2988
|
const n = e.load?.edge || {};
|
|
2968
2989
|
this.edge_nodes = e.edge_nodes || Object.keys(n).map((r) => ({
|
|
2969
2990
|
id: r,
|
|
@@ -2972,7 +2993,7 @@ class Ys {
|
|
|
2972
2993
|
})) || [];
|
|
2973
2994
|
}
|
|
2974
2995
|
}
|
|
2975
|
-
class
|
|
2996
|
+
class Ks {
|
|
2976
2997
|
/** ID of the cluster associated with the process */
|
|
2977
2998
|
cluster_id;
|
|
2978
2999
|
/** Unique identifier of the application */
|
|
@@ -3000,42 +3021,42 @@ class Gs {
|
|
|
3000
3021
|
/** Display string for the memory total */
|
|
3001
3022
|
total_memory;
|
|
3002
3023
|
constructor(e, n = {}) {
|
|
3003
|
-
this.cluster_id = e, this.id = n.id || n.driver || "", this.modules = n.modules || [], this.running = n.running || !1, this.module_instances = n.module_instances || n.edge?.status?.module_instances || n.local?.status?.module_instances || 0, this.last_exit_code = n.last_exit_code || n.edge?.status?.last_exit_code || n.local?.status?.last_exit_code || 0, this.launch_count = n.launch_count || n.edge?.status?.launch_count || n.local?.status?.launch_count || 0, this.launch_time = n.launch_time || n.edge?.status?.launch_time || n.local?.status?.launch_time || 0, this.cpu_usage = n.cpu_usage || n.percentage_cpu || n.edge?.status?.percentage_cpu || n.local?.status?.percentage_cpu || 0, this.memory_total = n.memory_total || n.edge?.status?.memory_total || n.local?.status?.memory_total || 0, this.memory_usage = n.memory_usage || n.edge?.status?.memory_usage || n.local?.status?.memory_usage || 0, this.used_memory =
|
|
3024
|
+
this.cluster_id = e, this.id = n.id || n.driver || "", this.modules = n.modules || [], this.running = n.running || !1, this.module_instances = n.module_instances || n.edge?.status?.module_instances || n.local?.status?.module_instances || 0, this.last_exit_code = n.last_exit_code || n.edge?.status?.last_exit_code || n.local?.status?.last_exit_code || 0, this.launch_count = n.launch_count || n.edge?.status?.launch_count || n.local?.status?.launch_count || 0, this.launch_time = n.launch_time || n.edge?.status?.launch_time || n.local?.status?.launch_time || 0, this.cpu_usage = n.cpu_usage || n.percentage_cpu || n.edge?.status?.percentage_cpu || n.local?.status?.percentage_cpu || 0, this.memory_total = n.memory_total || n.edge?.status?.memory_total || n.local?.status?.memory_total || 0, this.memory_usage = n.memory_usage || n.edge?.status?.memory_usage || n.local?.status?.memory_usage || 0, this.used_memory = Tt(this.memory_usage * 1024), this.total_memory = Tt(this.memory_total * 1024);
|
|
3004
3025
|
}
|
|
3005
3026
|
}
|
|
3006
|
-
const
|
|
3027
|
+
const je = "cluster";
|
|
3007
3028
|
function zr(t) {
|
|
3008
|
-
return new
|
|
3029
|
+
return new Js(t);
|
|
3009
3030
|
}
|
|
3010
|
-
function
|
|
3011
|
-
return O({ query_params: t, fn: zr, path:
|
|
3031
|
+
function Su(t = {}) {
|
|
3032
|
+
return O({ query_params: t, fn: zr, path: je });
|
|
3012
3033
|
}
|
|
3013
|
-
function
|
|
3014
|
-
return k({ id: t, query_params: e, fn: zr, path:
|
|
3034
|
+
function ku(t, e = {}) {
|
|
3035
|
+
return k({ id: t, query_params: e, fn: zr, path: je });
|
|
3015
3036
|
}
|
|
3016
|
-
function
|
|
3037
|
+
function $u(t, e = {}) {
|
|
3017
3038
|
return k({
|
|
3018
3039
|
id: t,
|
|
3019
3040
|
query_params: e,
|
|
3020
3041
|
fn: (n) => n.map(
|
|
3021
|
-
(r) => new
|
|
3042
|
+
(r) => new Ks(t, r)
|
|
3022
3043
|
),
|
|
3023
|
-
path:
|
|
3044
|
+
path: je
|
|
3024
3045
|
});
|
|
3025
3046
|
}
|
|
3026
|
-
function
|
|
3027
|
-
return
|
|
3047
|
+
function xu(t, e) {
|
|
3048
|
+
return E({ id: t, query_params: e, path: je });
|
|
3028
3049
|
}
|
|
3029
|
-
function
|
|
3030
|
-
const t = `${x()}${
|
|
3031
|
-
return G(t, {}).pipe(
|
|
3050
|
+
function Au() {
|
|
3051
|
+
const t = `${x()}${je}/rebalance`;
|
|
3052
|
+
return G(t, {}).pipe(b(() => {
|
|
3032
3053
|
}));
|
|
3033
3054
|
}
|
|
3034
|
-
function
|
|
3035
|
-
const t = `${x()}${
|
|
3036
|
-
return N(t).pipe(
|
|
3055
|
+
function wu() {
|
|
3056
|
+
const t = `${x()}${je}/versions`;
|
|
3057
|
+
return N(t).pipe(b((e) => e));
|
|
3037
3058
|
}
|
|
3038
|
-
class
|
|
3059
|
+
class Zs extends L {
|
|
3039
3060
|
/** Domain name */
|
|
3040
3061
|
domain;
|
|
3041
3062
|
/** Login URL for the domain */
|
|
@@ -3056,16 +3077,16 @@ class Js extends L {
|
|
|
3056
3077
|
}
|
|
3057
3078
|
const ze = "domains";
|
|
3058
3079
|
function ot(t) {
|
|
3059
|
-
return new
|
|
3080
|
+
return new Zs(t);
|
|
3060
3081
|
}
|
|
3061
|
-
function
|
|
3082
|
+
function Ou(t = {}) {
|
|
3062
3083
|
return O({ query_params: t, fn: ot, path: ze });
|
|
3063
3084
|
}
|
|
3064
|
-
function
|
|
3085
|
+
function Eu(t) {
|
|
3065
3086
|
return k({ id: t, query_params: {}, fn: ot, path: ze });
|
|
3066
3087
|
}
|
|
3067
|
-
function
|
|
3068
|
-
return
|
|
3088
|
+
function Iu(t, e, n = "patch") {
|
|
3089
|
+
return T({
|
|
3069
3090
|
id: t,
|
|
3070
3091
|
form_data: e,
|
|
3071
3092
|
query_params: {},
|
|
@@ -3074,18 +3095,18 @@ function Ou(t, e, n = "patch") {
|
|
|
3074
3095
|
path: ze
|
|
3075
3096
|
});
|
|
3076
3097
|
}
|
|
3077
|
-
function Iu(t) {
|
|
3078
|
-
return T({ form_data: t, query_params: {}, fn: ot, path: ze });
|
|
3079
|
-
}
|
|
3080
3098
|
function Pu(t) {
|
|
3081
|
-
return
|
|
3099
|
+
return P({ form_data: t, query_params: {}, fn: ot, path: ze });
|
|
3082
3100
|
}
|
|
3083
3101
|
function Tu(t) {
|
|
3102
|
+
return E({ id: t, query_params: {}, path: ze });
|
|
3103
|
+
}
|
|
3104
|
+
function qu(t) {
|
|
3084
3105
|
const e = `${x()}${ze}/lookup/${encodeURIComponent(t)}`;
|
|
3085
|
-
return N(e).pipe(
|
|
3106
|
+
return N(e).pipe(b((n) => ot(n)));
|
|
3086
3107
|
}
|
|
3087
3108
|
var He = /* @__PURE__ */ ((t) => (t[t.None = 0] = "None", t[t.Support = 1] = "Support", t[t.Admin = 2] = "Admin", t[t.NeverDisplay = 3] = "NeverDisplay", t))(He || {});
|
|
3088
|
-
class
|
|
3109
|
+
class Ee extends L {
|
|
3089
3110
|
/** ID of the parent zone/system/module/driver */
|
|
3090
3111
|
parent_id;
|
|
3091
3112
|
/** Unix timestamp in seconds of when the settings where last updated */
|
|
@@ -3136,7 +3157,7 @@ class Hr extends L {
|
|
|
3136
3157
|
constructor(e = {}) {
|
|
3137
3158
|
super(e), this.description = e.description || "", this.module_name = e.module_name || "", this.role = e.role ?? Mt.Logic, this.default_uri = e.default_uri || "", this.default_port = e.default_port || 1, this.ignore_connected = e.ignore_connected || !1, this.class_name = e.class_name || "", this.repository_id = e.repository_id || "", this.file_name = e.file_name || "", this.commit = e.commit || "", this.update_available = e.update_available || !1, this.update_info = e.update_info, this.settings = e.settings || [null, null, null, null], typeof this.settings != "object" && (this.settings = [null, null, null, null]);
|
|
3138
3159
|
for (const n in He)
|
|
3139
|
-
!isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new
|
|
3160
|
+
!isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ee({
|
|
3140
3161
|
parent_id: this.id,
|
|
3141
3162
|
encryption_level: +n
|
|
3142
3163
|
}));
|
|
@@ -3146,14 +3167,14 @@ const ae = "drivers";
|
|
|
3146
3167
|
function Qt(t) {
|
|
3147
3168
|
return new Hr(t);
|
|
3148
3169
|
}
|
|
3149
|
-
function
|
|
3170
|
+
function Uu(t = {}) {
|
|
3150
3171
|
return O({ query_params: t, fn: Qt, path: ae });
|
|
3151
3172
|
}
|
|
3152
|
-
function
|
|
3173
|
+
function Ru(t, e = {}) {
|
|
3153
3174
|
return k({ id: t, query_params: e, fn: Qt, path: ae });
|
|
3154
3175
|
}
|
|
3155
|
-
function
|
|
3156
|
-
return
|
|
3176
|
+
function Mu(t, e, n = "patch") {
|
|
3177
|
+
return T({
|
|
3157
3178
|
id: t,
|
|
3158
3179
|
form_data: e,
|
|
3159
3180
|
query_params: {},
|
|
@@ -3162,25 +3183,25 @@ function Uu(t, e, n = "patch") {
|
|
|
3162
3183
|
path: ae
|
|
3163
3184
|
});
|
|
3164
3185
|
}
|
|
3165
|
-
function
|
|
3166
|
-
return
|
|
3186
|
+
function Cu(t) {
|
|
3187
|
+
return P({ form_data: t, query_params: {}, fn: Qt, path: ae });
|
|
3167
3188
|
}
|
|
3168
|
-
function
|
|
3169
|
-
return
|
|
3189
|
+
function Du(t) {
|
|
3190
|
+
return E({ id: t, query_params: {}, path: ae });
|
|
3170
3191
|
}
|
|
3171
|
-
function
|
|
3192
|
+
function Nu(t) {
|
|
3172
3193
|
return m({ id: t, task_name: "recompile", path: ae });
|
|
3173
3194
|
}
|
|
3174
|
-
function
|
|
3195
|
+
function Fu(t) {
|
|
3175
3196
|
return m({ id: t, task_name: "reload", path: ae });
|
|
3176
3197
|
}
|
|
3177
|
-
function
|
|
3198
|
+
function ju(t) {
|
|
3178
3199
|
return m({ id: t, task_name: "compiled", method: "get", path: ae });
|
|
3179
3200
|
}
|
|
3180
|
-
function
|
|
3201
|
+
function zu(t) {
|
|
3181
3202
|
return m({ id: t, task_name: "readme", method: "get", path: ae });
|
|
3182
3203
|
}
|
|
3183
|
-
class
|
|
3204
|
+
class Xs extends L {
|
|
3184
3205
|
description;
|
|
3185
3206
|
secret;
|
|
3186
3207
|
x_api_key;
|
|
@@ -3194,46 +3215,46 @@ class Ks extends L {
|
|
|
3194
3215
|
return delete e.last_seen, e;
|
|
3195
3216
|
}
|
|
3196
3217
|
}
|
|
3197
|
-
const
|
|
3218
|
+
const Ie = "edges";
|
|
3198
3219
|
function Yt(t) {
|
|
3199
|
-
return new
|
|
3220
|
+
return new Xs(t);
|
|
3200
3221
|
}
|
|
3201
|
-
function
|
|
3202
|
-
return O({ query_params: t, fn: Yt, path:
|
|
3222
|
+
function Hu(t = {}) {
|
|
3223
|
+
return O({ query_params: t, fn: Yt, path: Ie });
|
|
3203
3224
|
}
|
|
3204
|
-
function
|
|
3205
|
-
return k({ id: t, query_params: {}, fn: Yt, path:
|
|
3225
|
+
function Wu(t) {
|
|
3226
|
+
return k({ id: t, query_params: {}, fn: Yt, path: Ie });
|
|
3206
3227
|
}
|
|
3207
|
-
function
|
|
3208
|
-
return
|
|
3228
|
+
function Lu(t, e, n = "patch") {
|
|
3229
|
+
return T({
|
|
3209
3230
|
id: t,
|
|
3210
3231
|
form_data: e,
|
|
3211
3232
|
query_params: {},
|
|
3212
3233
|
method: n,
|
|
3213
3234
|
fn: Yt,
|
|
3214
|
-
path:
|
|
3235
|
+
path: Ie
|
|
3215
3236
|
});
|
|
3216
3237
|
}
|
|
3217
|
-
function
|
|
3218
|
-
return
|
|
3238
|
+
function Bu(t) {
|
|
3239
|
+
return P({ form_data: t, query_params: {}, fn: Yt, path: Ie });
|
|
3219
3240
|
}
|
|
3220
|
-
function
|
|
3221
|
-
return
|
|
3241
|
+
function Vu(t) {
|
|
3242
|
+
return E({ id: t, query_params: {}, path: Ie });
|
|
3222
3243
|
}
|
|
3223
|
-
function
|
|
3244
|
+
function Qu(t) {
|
|
3224
3245
|
return m({
|
|
3225
3246
|
id: t,
|
|
3226
3247
|
task_name: "token",
|
|
3227
3248
|
form_data: {},
|
|
3228
3249
|
method: "get",
|
|
3229
|
-
path:
|
|
3250
|
+
path: Ie
|
|
3230
3251
|
});
|
|
3231
3252
|
}
|
|
3232
|
-
function
|
|
3253
|
+
function Yu() {
|
|
3233
3254
|
const t = x(), e = t.startsWith("https") ? "wss:" : "ws:", n = t.startsWith("https") ? "https:" : "http:";
|
|
3234
|
-
return t.replace(n, e) + `${
|
|
3255
|
+
return t.replace(n, e) + `${Ie}/control`;
|
|
3235
3256
|
}
|
|
3236
|
-
class
|
|
3257
|
+
class eo extends L {
|
|
3237
3258
|
/** Type of auth source */
|
|
3238
3259
|
type = "ldap";
|
|
3239
3260
|
/** ID of the authority associted with the auth method */
|
|
@@ -3263,16 +3284,16 @@ class Zs extends L {
|
|
|
3263
3284
|
}
|
|
3264
3285
|
const ut = "ldap_auths";
|
|
3265
3286
|
function Gt(t) {
|
|
3266
|
-
return new
|
|
3287
|
+
return new eo(t);
|
|
3267
3288
|
}
|
|
3268
|
-
function
|
|
3289
|
+
function Gu(t = {}) {
|
|
3269
3290
|
return O({ query_params: t, fn: Gt, path: ut });
|
|
3270
3291
|
}
|
|
3271
|
-
function
|
|
3292
|
+
function Ju(t) {
|
|
3272
3293
|
return k({ id: t, query_params: {}, fn: Gt, path: ut });
|
|
3273
3294
|
}
|
|
3274
|
-
function
|
|
3275
|
-
return
|
|
3295
|
+
function Ku(t, e, n = "patch") {
|
|
3296
|
+
return T({
|
|
3276
3297
|
id: t,
|
|
3277
3298
|
form_data: e,
|
|
3278
3299
|
query_params: {},
|
|
@@ -3281,11 +3302,11 @@ function Gu(t, e, n = "patch") {
|
|
|
3281
3302
|
path: ut
|
|
3282
3303
|
});
|
|
3283
3304
|
}
|
|
3284
|
-
function
|
|
3285
|
-
return
|
|
3305
|
+
function Zu(t) {
|
|
3306
|
+
return P({ form_data: t, query_params: {}, fn: Gt, path: ut });
|
|
3286
3307
|
}
|
|
3287
|
-
function
|
|
3288
|
-
return
|
|
3308
|
+
function Xu(t) {
|
|
3309
|
+
return E({ id: t, query_params: {}, path: ut });
|
|
3289
3310
|
}
|
|
3290
3311
|
class Wr {
|
|
3291
3312
|
/** ID of the parent resource associated with the metadata */
|
|
@@ -3384,7 +3405,7 @@ class me extends L {
|
|
|
3384
3405
|
}, this.debounce_period = e.debounce_period || 0, this.important = e.important || !1, this.enabled = e.enabled || !1, this.webhook_secret = e.webhook_secret || "", this.control_system_id = e.system_id || e.control_system_id || "", this.zone_id = e.zone_id || "", this.system_name = e.system_name || (e.control_system ? e.control_system.name : ""), this.enable_webhook = e.enable_webhook || !1, this.exec_enabled = e.exec_enabled || !1, this.supported_methods = e.supported_methods || ["POST"], this.activated_count = e.activated_count || e.trigger_count || 0, this.playlists = e.playlists || [], this.trigger_id = e.trigger_id || "", this.any_match = e.any_match || !1;
|
|
3385
3406
|
}
|
|
3386
3407
|
}
|
|
3387
|
-
class
|
|
3408
|
+
class Mn extends L {
|
|
3388
3409
|
/** Tuple of user settings of differring encryption levels for the zone */
|
|
3389
3410
|
settings = [null, null, null, null];
|
|
3390
3411
|
/** Description of the zone's purpose */
|
|
@@ -3423,7 +3444,7 @@ class Un extends L {
|
|
|
3423
3444
|
constructor(e = {}) {
|
|
3424
3445
|
super(e), this.description = e.description || "", this.tags = e.tags || [], this.triggers = e.triggers || [], this.settings = e.settings || [null, null, null, null], this.parent_id = e.parent_id || "", this.location = e.location || "", this.display_name = e.display_name || "", this.code = e.code || "", this.type = e.type || "", this.count = e.count || 0, this.capacity = e.capacity || 0, this.map_id = e.map_id || "", this.timezone = e.timezone || "", this.images = e.images || [], this.playlists = e.playlists || [], typeof this.settings != "object" && (this.settings = [null, null, null, null]);
|
|
3425
3446
|
for (const n in He)
|
|
3426
|
-
!isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new
|
|
3447
|
+
!isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ee({
|
|
3427
3448
|
parent_id: this.id,
|
|
3428
3449
|
encryption_level: +n
|
|
3429
3450
|
}));
|
|
@@ -3432,7 +3453,7 @@ class Un extends L {
|
|
|
3432
3453
|
));
|
|
3433
3454
|
}
|
|
3434
3455
|
}
|
|
3435
|
-
class
|
|
3456
|
+
class to {
|
|
3436
3457
|
/** Zone associated with the metadata */
|
|
3437
3458
|
zone;
|
|
3438
3459
|
/** Metadata for zone */
|
|
@@ -3440,25 +3461,25 @@ class Xs {
|
|
|
3440
3461
|
/** List of the root keys in the metadata */
|
|
3441
3462
|
keys;
|
|
3442
3463
|
constructor(e = {}) {
|
|
3443
|
-
this.zone = new
|
|
3464
|
+
this.zone = new Mn(e.zone), this.keys = e.keys || [], this.metadata = {};
|
|
3444
3465
|
const n = e.metadata || {};
|
|
3445
3466
|
for (const r of this.keys)
|
|
3446
3467
|
this.metadata[r] = new Wr(n[r]);
|
|
3447
3468
|
}
|
|
3448
3469
|
}
|
|
3449
|
-
const
|
|
3470
|
+
const Pe = "metadata";
|
|
3450
3471
|
function ct(t) {
|
|
3451
3472
|
return new Wr(t);
|
|
3452
3473
|
}
|
|
3453
|
-
function
|
|
3474
|
+
function ec(t, e = {}) {
|
|
3454
3475
|
return k({
|
|
3455
3476
|
id: t,
|
|
3456
3477
|
query_params: e,
|
|
3457
3478
|
fn: (n) => Object.keys(n).map((r) => ct(n[r])),
|
|
3458
|
-
path:
|
|
3479
|
+
path: Pe
|
|
3459
3480
|
});
|
|
3460
3481
|
}
|
|
3461
|
-
function
|
|
3482
|
+
function no(t) {
|
|
3462
3483
|
const e = [...t], n = [];
|
|
3463
3484
|
for (; e.length; ) {
|
|
3464
3485
|
const r = e.pop();
|
|
@@ -3466,57 +3487,57 @@ function eo(t) {
|
|
|
3466
3487
|
}
|
|
3467
3488
|
return n.reverse();
|
|
3468
3489
|
}
|
|
3469
|
-
function
|
|
3490
|
+
function tc(t, e = {}) {
|
|
3470
3491
|
return m({
|
|
3471
3492
|
id: t,
|
|
3472
3493
|
task_name: "history",
|
|
3473
3494
|
form_data: e,
|
|
3474
3495
|
method: "get",
|
|
3475
|
-
callback: (n) =>
|
|
3496
|
+
callback: (n) => no(
|
|
3476
3497
|
Object.keys(n).map(
|
|
3477
3498
|
(r) => n[r].map((i) => ct(i))
|
|
3478
3499
|
)
|
|
3479
3500
|
),
|
|
3480
|
-
path:
|
|
3501
|
+
path: Pe
|
|
3481
3502
|
});
|
|
3482
3503
|
}
|
|
3483
|
-
function
|
|
3504
|
+
function nc(t, e) {
|
|
3484
3505
|
return k({
|
|
3485
3506
|
id: t,
|
|
3486
3507
|
query_params: { name: e },
|
|
3487
3508
|
fn: (n) => ct(n[e]),
|
|
3488
|
-
path:
|
|
3509
|
+
path: Pe
|
|
3489
3510
|
});
|
|
3490
3511
|
}
|
|
3491
|
-
function
|
|
3492
|
-
return
|
|
3512
|
+
function rc(t, e, n = "put") {
|
|
3513
|
+
return T({
|
|
3493
3514
|
id: t,
|
|
3494
3515
|
form_data: e,
|
|
3495
3516
|
query_params: {},
|
|
3496
3517
|
method: n,
|
|
3497
3518
|
fn: ct,
|
|
3498
|
-
path:
|
|
3519
|
+
path: Pe
|
|
3499
3520
|
});
|
|
3500
3521
|
}
|
|
3501
|
-
function
|
|
3502
|
-
return
|
|
3522
|
+
function ic(t) {
|
|
3523
|
+
return P({ form_data: t, query_params: {}, fn: ct, path: Pe });
|
|
3503
3524
|
}
|
|
3504
|
-
function
|
|
3505
|
-
return
|
|
3525
|
+
function sc(t, e) {
|
|
3526
|
+
return E({ id: t, query_params: e, path: Pe });
|
|
3506
3527
|
}
|
|
3507
|
-
function
|
|
3528
|
+
function oc(t, e) {
|
|
3508
3529
|
return m({
|
|
3509
3530
|
id: t,
|
|
3510
3531
|
task_name: "children",
|
|
3511
3532
|
form_data: e,
|
|
3512
3533
|
method: "get",
|
|
3513
3534
|
callback: (n) => n.map(
|
|
3514
|
-
(r) => new
|
|
3535
|
+
(r) => new to({
|
|
3515
3536
|
...r,
|
|
3516
3537
|
keys: Object.keys(r.metadata)
|
|
3517
3538
|
})
|
|
3518
3539
|
),
|
|
3519
|
-
path:
|
|
3540
|
+
path: Pe
|
|
3520
3541
|
});
|
|
3521
3542
|
}
|
|
3522
3543
|
class Lr extends L {
|
|
@@ -3575,7 +3596,7 @@ class Lr extends L {
|
|
|
3575
3596
|
constructor(e = {}) {
|
|
3576
3597
|
super(e), this.display_name = e.display_name || "", this.description = e.description || "", this.email = e.email || "", this.code = e.code || "", this.capacity = e.capacity || 0, this.features = e.features || [], this.bookable = e.bookable || !1, this.public = e.public ?? !1, this.installed_ui_devices = e.installed_ui_devices || 0, this.support_url = e.support_url || "", this.camera_snapshot_url = e.camera_snapshot_url || "", this.camera_url = e.camera_url || "", this.timetable_url = e.timetable_url || "", this.room_booking_url = e.room_booking_url || "", this.map_id = e.map_id || "", this.modules = e.modules || [], this.images = e.images || [], this.zones = e.zones || [], this.settings = e.settings || [null, null, null, null], this.timezone = e.timezone || "", this.signage = e.signage || !1, this.playlists = e.playlists || [], this.orientation = e.orientation || "unspecified", this.approval = e.approval || !1, typeof this.settings != "object" && (this.settings = [null, null, null, null]);
|
|
3577
3598
|
for (const n in He)
|
|
3578
|
-
!isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new
|
|
3599
|
+
!isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ee({
|
|
3579
3600
|
parent_id: this.id,
|
|
3580
3601
|
encryption_level: +n
|
|
3581
3602
|
}));
|
|
@@ -3636,7 +3657,7 @@ class Br extends L {
|
|
|
3636
3657
|
e.control_system || e.system
|
|
3637
3658
|
), this.has_runtime_error = e.has_runtime_error || !1, this.error_timestamp = e.error_timestamp || 0, this.driver = new Hr(e.dependency || e.driver), this.settings = e.settings || [null, null, null, null], typeof this.settings != "object" && (this.settings = [null, null, null, null]);
|
|
3638
3659
|
for (const n in He)
|
|
3639
|
-
!isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new
|
|
3660
|
+
!isNaN(Number(n)) && !this.settings[n] && (this.settings[n] = new Ee({
|
|
3640
3661
|
parent_id: this.id,
|
|
3641
3662
|
encryption_level: +n
|
|
3642
3663
|
}));
|
|
@@ -3653,14 +3674,14 @@ const J = "modules";
|
|
|
3653
3674
|
function Jt(t) {
|
|
3654
3675
|
return new Br(t);
|
|
3655
3676
|
}
|
|
3656
|
-
function
|
|
3677
|
+
function uc(t = {}) {
|
|
3657
3678
|
return O({ query_params: t, fn: Jt, path: J });
|
|
3658
3679
|
}
|
|
3659
|
-
function
|
|
3680
|
+
function cc(t, e = {}) {
|
|
3660
3681
|
return k({ id: t, query_params: e, fn: Jt, path: J });
|
|
3661
3682
|
}
|
|
3662
|
-
function
|
|
3663
|
-
return
|
|
3683
|
+
function ac(t, e, n = "patch") {
|
|
3684
|
+
return T({
|
|
3664
3685
|
id: t,
|
|
3665
3686
|
form_data: e,
|
|
3666
3687
|
query_params: {},
|
|
@@ -3669,37 +3690,37 @@ function uc(t, e, n = "patch") {
|
|
|
3669
3690
|
path: J
|
|
3670
3691
|
});
|
|
3671
3692
|
}
|
|
3672
|
-
function
|
|
3673
|
-
return
|
|
3693
|
+
function lc(t) {
|
|
3694
|
+
return P({ form_data: t, query_params: {}, fn: Jt, path: J });
|
|
3674
3695
|
}
|
|
3675
|
-
function
|
|
3676
|
-
return
|
|
3696
|
+
function hc(t) {
|
|
3697
|
+
return E({ id: t, query_params: {}, path: J });
|
|
3677
3698
|
}
|
|
3678
|
-
function
|
|
3699
|
+
function fc(t) {
|
|
3679
3700
|
return m({ id: t, task_name: "start", path: J });
|
|
3680
3701
|
}
|
|
3681
|
-
function
|
|
3702
|
+
function dc(t) {
|
|
3682
3703
|
return m({ id: t, task_name: "stop", path: J });
|
|
3683
3704
|
}
|
|
3684
|
-
function
|
|
3705
|
+
function pc(t) {
|
|
3685
3706
|
return m({ id: t, task_name: "state", method: "get", path: J });
|
|
3686
3707
|
}
|
|
3687
|
-
function
|
|
3708
|
+
function _c(t, e) {
|
|
3688
3709
|
return m({ id: t, task_name: `state/${e}`, method: "get", path: J });
|
|
3689
3710
|
}
|
|
3690
|
-
function
|
|
3711
|
+
function mc(t) {
|
|
3691
3712
|
return m({ id: t, task_name: "load", method: "post", path: J });
|
|
3692
3713
|
}
|
|
3693
|
-
function
|
|
3714
|
+
function yc(t) {
|
|
3694
3715
|
return m({
|
|
3695
3716
|
id: t,
|
|
3696
3717
|
task_name: "settings",
|
|
3697
3718
|
method: "get",
|
|
3698
|
-
callback: (e) => e.map((n) => new
|
|
3719
|
+
callback: (e) => e.map((n) => new Ee(n)),
|
|
3699
3720
|
path: J
|
|
3700
3721
|
});
|
|
3701
3722
|
}
|
|
3702
|
-
function
|
|
3723
|
+
function gc(t) {
|
|
3703
3724
|
return m({
|
|
3704
3725
|
id: t,
|
|
3705
3726
|
task_name: "error",
|
|
@@ -3707,7 +3728,7 @@ function mc(t) {
|
|
|
3707
3728
|
path: J
|
|
3708
3729
|
});
|
|
3709
3730
|
}
|
|
3710
|
-
function
|
|
3731
|
+
function bc(t, e, n = []) {
|
|
3711
3732
|
return m({
|
|
3712
3733
|
id: t,
|
|
3713
3734
|
task_name: `exec/${encodeURIComponent(e)}`,
|
|
@@ -3715,7 +3736,7 @@ function yc(t, e, n = []) {
|
|
|
3715
3736
|
path: J
|
|
3716
3737
|
});
|
|
3717
3738
|
}
|
|
3718
|
-
class
|
|
3739
|
+
class ro extends L {
|
|
3719
3740
|
/** Type of auth source */
|
|
3720
3741
|
type = "oauth";
|
|
3721
3742
|
/** ID of the authority associted with the auth method */
|
|
@@ -3750,16 +3771,16 @@ class to extends L {
|
|
|
3750
3771
|
}
|
|
3751
3772
|
const at = "oauth_auths";
|
|
3752
3773
|
function Kt(t) {
|
|
3753
|
-
return new
|
|
3774
|
+
return new ro(t);
|
|
3754
3775
|
}
|
|
3755
|
-
function
|
|
3776
|
+
function vc(t = {}) {
|
|
3756
3777
|
return O({ query_params: t, fn: Kt, path: at });
|
|
3757
3778
|
}
|
|
3758
|
-
function
|
|
3779
|
+
function Sc(t) {
|
|
3759
3780
|
return k({ id: t, query_params: {}, fn: Kt, path: at });
|
|
3760
3781
|
}
|
|
3761
|
-
function
|
|
3762
|
-
return
|
|
3782
|
+
function kc(t, e, n = "patch") {
|
|
3783
|
+
return T({
|
|
3763
3784
|
id: t,
|
|
3764
3785
|
form_data: e,
|
|
3765
3786
|
query_params: {},
|
|
@@ -3768,14 +3789,14 @@ function vc(t, e, n = "patch") {
|
|
|
3768
3789
|
path: at
|
|
3769
3790
|
});
|
|
3770
3791
|
}
|
|
3771
|
-
function
|
|
3772
|
-
return
|
|
3792
|
+
function $c(t) {
|
|
3793
|
+
return P({ form_data: t, query_params: {}, fn: Kt, path: at });
|
|
3773
3794
|
}
|
|
3774
|
-
function
|
|
3775
|
-
return
|
|
3795
|
+
function xc(t) {
|
|
3796
|
+
return E({ id: t, query_params: {}, path: at });
|
|
3776
3797
|
}
|
|
3777
3798
|
var Vr = /* @__PURE__ */ ((t) => (t.Driver = "driver", t.Interface = "interface", t))(Vr || {});
|
|
3778
|
-
class
|
|
3799
|
+
class io extends L {
|
|
3779
3800
|
/** Name of the folder on the server to pull the repository */
|
|
3780
3801
|
folder_name;
|
|
3781
3802
|
/** Description of the contents of the repository */
|
|
@@ -3804,16 +3825,16 @@ class no extends L {
|
|
|
3804
3825
|
}
|
|
3805
3826
|
const V = "repositories";
|
|
3806
3827
|
function Zt(t) {
|
|
3807
|
-
return new
|
|
3828
|
+
return new io(t);
|
|
3808
3829
|
}
|
|
3809
|
-
function
|
|
3830
|
+
function Ac(t = {}) {
|
|
3810
3831
|
return O({ query_params: t, fn: Zt, path: V });
|
|
3811
3832
|
}
|
|
3812
|
-
function
|
|
3833
|
+
function wc(t) {
|
|
3813
3834
|
return k({ id: t, query_params: {}, fn: Zt, path: V });
|
|
3814
3835
|
}
|
|
3815
|
-
function
|
|
3816
|
-
return
|
|
3836
|
+
function Oc(t, e, n = "patch") {
|
|
3837
|
+
return T({
|
|
3817
3838
|
id: t,
|
|
3818
3839
|
form_data: e,
|
|
3819
3840
|
query_params: {},
|
|
@@ -3822,41 +3843,41 @@ function Ac(t, e, n = "patch") {
|
|
|
3822
3843
|
path: V
|
|
3823
3844
|
});
|
|
3824
3845
|
}
|
|
3825
|
-
function
|
|
3826
|
-
return
|
|
3846
|
+
function Ec(t) {
|
|
3847
|
+
return P({ form_data: t, query_params: {}, fn: Zt, path: V });
|
|
3827
3848
|
}
|
|
3828
|
-
function
|
|
3829
|
-
return
|
|
3849
|
+
function Ic(t) {
|
|
3850
|
+
return E({ id: t, query_params: {}, path: V });
|
|
3830
3851
|
}
|
|
3831
|
-
function
|
|
3852
|
+
function Pc() {
|
|
3832
3853
|
return k({
|
|
3833
3854
|
id: "interfaces",
|
|
3834
3855
|
query_params: {},
|
|
3835
3856
|
path: V
|
|
3836
3857
|
});
|
|
3837
3858
|
}
|
|
3838
|
-
function
|
|
3859
|
+
function Tc(t) {
|
|
3839
3860
|
return k({
|
|
3840
3861
|
id: "remote_default_branch",
|
|
3841
3862
|
query_params: t,
|
|
3842
3863
|
path: V
|
|
3843
3864
|
});
|
|
3844
3865
|
}
|
|
3845
|
-
function
|
|
3866
|
+
function qc(t) {
|
|
3846
3867
|
return k({
|
|
3847
3868
|
id: "remote_branches",
|
|
3848
3869
|
query_params: t,
|
|
3849
3870
|
path: V
|
|
3850
3871
|
});
|
|
3851
3872
|
}
|
|
3852
|
-
function
|
|
3873
|
+
function Uc(t) {
|
|
3853
3874
|
return k({
|
|
3854
3875
|
id: "remote_commits",
|
|
3855
3876
|
query_params: t,
|
|
3856
3877
|
path: V
|
|
3857
3878
|
});
|
|
3858
3879
|
}
|
|
3859
|
-
function
|
|
3880
|
+
function Rc(t, e) {
|
|
3860
3881
|
return m({
|
|
3861
3882
|
id: t,
|
|
3862
3883
|
task_name: "drivers",
|
|
@@ -3865,7 +3886,7 @@ function qc(t, e) {
|
|
|
3865
3886
|
path: V
|
|
3866
3887
|
});
|
|
3867
3888
|
}
|
|
3868
|
-
function
|
|
3889
|
+
function Mc(t, e) {
|
|
3869
3890
|
return m({
|
|
3870
3891
|
id: t,
|
|
3871
3892
|
task_name: "commits",
|
|
@@ -3874,7 +3895,7 @@ function Uc(t, e) {
|
|
|
3874
3895
|
path: V
|
|
3875
3896
|
});
|
|
3876
3897
|
}
|
|
3877
|
-
function
|
|
3898
|
+
function Cc(t) {
|
|
3878
3899
|
return m({
|
|
3879
3900
|
id: t,
|
|
3880
3901
|
task_name: "branches",
|
|
@@ -3882,7 +3903,7 @@ function Rc(t) {
|
|
|
3882
3903
|
path: V
|
|
3883
3904
|
});
|
|
3884
3905
|
}
|
|
3885
|
-
function
|
|
3906
|
+
function Dc(t) {
|
|
3886
3907
|
return m({
|
|
3887
3908
|
id: t,
|
|
3888
3909
|
task_name: "default_branch",
|
|
@@ -3890,7 +3911,7 @@ function Mc(t) {
|
|
|
3890
3911
|
path: V
|
|
3891
3912
|
});
|
|
3892
3913
|
}
|
|
3893
|
-
function
|
|
3914
|
+
function Nc(t, e) {
|
|
3894
3915
|
return m({
|
|
3895
3916
|
id: t,
|
|
3896
3917
|
task_name: "details",
|
|
@@ -3899,7 +3920,7 @@ function Cc(t, e) {
|
|
|
3899
3920
|
path: V
|
|
3900
3921
|
});
|
|
3901
3922
|
}
|
|
3902
|
-
function
|
|
3923
|
+
function Fc(t, e) {
|
|
3903
3924
|
return m({
|
|
3904
3925
|
id: t,
|
|
3905
3926
|
task_name: "pull",
|
|
@@ -3908,7 +3929,7 @@ function Dc(t, e) {
|
|
|
3908
3929
|
path: V
|
|
3909
3930
|
});
|
|
3910
3931
|
}
|
|
3911
|
-
function
|
|
3932
|
+
function jc(t, e) {
|
|
3912
3933
|
return m({
|
|
3913
3934
|
id: t,
|
|
3914
3935
|
task_name: "folders",
|
|
@@ -3917,7 +3938,7 @@ function Nc(t, e) {
|
|
|
3917
3938
|
path: V
|
|
3918
3939
|
});
|
|
3919
3940
|
}
|
|
3920
|
-
class
|
|
3941
|
+
class so extends L {
|
|
3921
3942
|
/** Type of auth source */
|
|
3922
3943
|
type = "saml";
|
|
3923
3944
|
/** ID of the authority associted with the auth method */
|
|
@@ -3957,16 +3978,16 @@ class ro extends L {
|
|
|
3957
3978
|
}
|
|
3958
3979
|
const lt = "saml_auths";
|
|
3959
3980
|
function Xt(t) {
|
|
3960
|
-
return new
|
|
3981
|
+
return new so(t);
|
|
3961
3982
|
}
|
|
3962
|
-
function
|
|
3983
|
+
function zc(t = {}) {
|
|
3963
3984
|
return O({ query_params: t, fn: Xt, path: lt });
|
|
3964
3985
|
}
|
|
3965
|
-
function
|
|
3986
|
+
function Hc(t) {
|
|
3966
3987
|
return k({ id: t, query_params: {}, fn: Xt, path: lt });
|
|
3967
3988
|
}
|
|
3968
|
-
function
|
|
3969
|
-
return
|
|
3989
|
+
function Wc(t, e, n = "patch") {
|
|
3990
|
+
return T({
|
|
3970
3991
|
id: t,
|
|
3971
3992
|
form_data: e,
|
|
3972
3993
|
query_params: {},
|
|
@@ -3975,24 +3996,24 @@ function zc(t, e, n = "patch") {
|
|
|
3975
3996
|
path: lt
|
|
3976
3997
|
});
|
|
3977
3998
|
}
|
|
3978
|
-
function
|
|
3979
|
-
return
|
|
3999
|
+
function Lc(t) {
|
|
4000
|
+
return P({ form_data: t, query_params: {}, fn: Xt, path: lt });
|
|
3980
4001
|
}
|
|
3981
|
-
function
|
|
3982
|
-
return
|
|
4002
|
+
function Bc(t) {
|
|
4003
|
+
return E({ id: t, query_params: {}, path: lt });
|
|
3983
4004
|
}
|
|
3984
4005
|
const We = "settings";
|
|
3985
4006
|
function ht(t) {
|
|
3986
|
-
return new
|
|
4007
|
+
return new Ee(t);
|
|
3987
4008
|
}
|
|
3988
|
-
function
|
|
4009
|
+
function Vc(t = {}) {
|
|
3989
4010
|
return O({ query_params: t, fn: ht, path: We });
|
|
3990
4011
|
}
|
|
3991
|
-
function
|
|
4012
|
+
function Qc(t) {
|
|
3992
4013
|
return k({ id: t, query_params: {}, fn: ht, path: We });
|
|
3993
4014
|
}
|
|
3994
|
-
function
|
|
3995
|
-
return
|
|
4015
|
+
function Yc(t, e, n = {}, r = "patch") {
|
|
4016
|
+
return T({
|
|
3996
4017
|
id: t,
|
|
3997
4018
|
form_data: e,
|
|
3998
4019
|
query_params: n,
|
|
@@ -4001,13 +4022,13 @@ function Vc(t, e, n = {}, r = "patch") {
|
|
|
4001
4022
|
path: We
|
|
4002
4023
|
});
|
|
4003
4024
|
}
|
|
4004
|
-
function
|
|
4005
|
-
return
|
|
4025
|
+
function Gc(t, e = {}) {
|
|
4026
|
+
return P({ form_data: t, query_params: e, fn: ht, path: We });
|
|
4006
4027
|
}
|
|
4007
|
-
function
|
|
4008
|
-
return
|
|
4028
|
+
function Jc(t) {
|
|
4029
|
+
return E({ id: t, query_params: {}, path: We });
|
|
4009
4030
|
}
|
|
4010
|
-
function
|
|
4031
|
+
function Kc(t, e = {}) {
|
|
4011
4032
|
return m({
|
|
4012
4033
|
id: t,
|
|
4013
4034
|
task_name: "history",
|
|
@@ -4018,55 +4039,55 @@ function Gc(t, e = {}) {
|
|
|
4018
4039
|
});
|
|
4019
4040
|
}
|
|
4020
4041
|
const M = "systems";
|
|
4021
|
-
function
|
|
4042
|
+
function Te(t) {
|
|
4022
4043
|
return new Lr(t);
|
|
4023
4044
|
}
|
|
4024
|
-
function
|
|
4025
|
-
return O({ query_params: t, fn:
|
|
4045
|
+
function Zc(t = {}) {
|
|
4046
|
+
return O({ query_params: t, fn: Te, path: M });
|
|
4026
4047
|
}
|
|
4027
|
-
function
|
|
4028
|
-
return O({ query_params: t, fn:
|
|
4048
|
+
function Xc(t) {
|
|
4049
|
+
return O({ query_params: t, fn: Te, path: `${M}/with_emails` });
|
|
4029
4050
|
}
|
|
4030
|
-
function
|
|
4031
|
-
return k({ id: t, query_params: e, fn:
|
|
4051
|
+
function ea(t, e = {}) {
|
|
4052
|
+
return k({ id: t, query_params: e, fn: Te, path: M });
|
|
4032
4053
|
}
|
|
4033
|
-
function
|
|
4034
|
-
return
|
|
4054
|
+
function ta(t, e, n = "patch") {
|
|
4055
|
+
return T({
|
|
4035
4056
|
id: t,
|
|
4036
4057
|
form_data: e,
|
|
4037
4058
|
query_params: {},
|
|
4038
4059
|
method: n,
|
|
4039
|
-
fn:
|
|
4060
|
+
fn: Te,
|
|
4040
4061
|
path: M
|
|
4041
4062
|
});
|
|
4042
4063
|
}
|
|
4043
|
-
function
|
|
4044
|
-
return
|
|
4064
|
+
function na(t) {
|
|
4065
|
+
return P({ form_data: t, query_params: {}, fn: Te, path: M });
|
|
4045
4066
|
}
|
|
4046
|
-
function
|
|
4047
|
-
return
|
|
4067
|
+
function ra(t) {
|
|
4068
|
+
return E({ id: t, query_params: {}, path: M });
|
|
4048
4069
|
}
|
|
4049
|
-
function
|
|
4070
|
+
function ia(t, e, n = {}) {
|
|
4050
4071
|
return m({
|
|
4051
4072
|
id: t,
|
|
4052
4073
|
task_name: `module/${e}`,
|
|
4053
4074
|
form_data: n,
|
|
4054
4075
|
method: "put",
|
|
4055
|
-
callback: (r) =>
|
|
4076
|
+
callback: (r) => Te(r),
|
|
4056
4077
|
path: M
|
|
4057
4078
|
});
|
|
4058
4079
|
}
|
|
4059
|
-
function
|
|
4080
|
+
function sa(t, e) {
|
|
4060
4081
|
return m({
|
|
4061
4082
|
id: t,
|
|
4062
4083
|
task_name: `module/${e}`,
|
|
4063
4084
|
form_data: {},
|
|
4064
4085
|
method: "del",
|
|
4065
|
-
callback: (n) =>
|
|
4086
|
+
callback: (n) => Te(n),
|
|
4066
4087
|
path: M
|
|
4067
4088
|
});
|
|
4068
4089
|
}
|
|
4069
|
-
function
|
|
4090
|
+
function oa(t, e = {}) {
|
|
4070
4091
|
return m({
|
|
4071
4092
|
id: t,
|
|
4072
4093
|
task_name: "start",
|
|
@@ -4074,7 +4095,7 @@ function ia(t, e = {}) {
|
|
|
4074
4095
|
path: M
|
|
4075
4096
|
});
|
|
4076
4097
|
}
|
|
4077
|
-
function
|
|
4098
|
+
function ua(t, e = {}) {
|
|
4078
4099
|
return m({
|
|
4079
4100
|
id: t,
|
|
4080
4101
|
task_name: "stop",
|
|
@@ -4082,7 +4103,7 @@ function sa(t, e = {}) {
|
|
|
4082
4103
|
path: M
|
|
4083
4104
|
});
|
|
4084
4105
|
}
|
|
4085
|
-
function
|
|
4106
|
+
function ca(t, e, n, r = 1, i = []) {
|
|
4086
4107
|
return m({
|
|
4087
4108
|
id: t,
|
|
4088
4109
|
task_name: `${n}_${r}/${encodeURIComponent(e)}`,
|
|
@@ -4090,7 +4111,7 @@ function oa(t, e, n, r = 1, i = []) {
|
|
|
4090
4111
|
path: M
|
|
4091
4112
|
});
|
|
4092
4113
|
}
|
|
4093
|
-
function
|
|
4114
|
+
function aa(t, e, n = 1) {
|
|
4094
4115
|
return m({
|
|
4095
4116
|
id: t,
|
|
4096
4117
|
task_name: `${e}_${n}`,
|
|
@@ -4098,7 +4119,7 @@ function ua(t, e, n = 1) {
|
|
|
4098
4119
|
path: M
|
|
4099
4120
|
});
|
|
4100
4121
|
}
|
|
4101
|
-
function
|
|
4122
|
+
function la(t, e, n = 1, r) {
|
|
4102
4123
|
return m({
|
|
4103
4124
|
id: t,
|
|
4104
4125
|
task_name: `${e}_${n}/${r}`,
|
|
@@ -4106,7 +4127,7 @@ function ca(t, e, n = 1, r) {
|
|
|
4106
4127
|
path: M
|
|
4107
4128
|
});
|
|
4108
4129
|
}
|
|
4109
|
-
function
|
|
4130
|
+
function ha(t, e, n = 1) {
|
|
4110
4131
|
return m({
|
|
4111
4132
|
id: t,
|
|
4112
4133
|
task_name: `functions/${e}_${n}`,
|
|
@@ -4114,21 +4135,21 @@ function aa(t, e, n = 1) {
|
|
|
4114
4135
|
path: M
|
|
4115
4136
|
});
|
|
4116
4137
|
}
|
|
4117
|
-
function
|
|
4138
|
+
function fa(t) {
|
|
4118
4139
|
return O({
|
|
4119
4140
|
query_params: {},
|
|
4120
|
-
fn: (e) => new
|
|
4141
|
+
fn: (e) => new Mn(e),
|
|
4121
4142
|
path: `${M}/${t}/zones`
|
|
4122
4143
|
});
|
|
4123
4144
|
}
|
|
4124
|
-
function
|
|
4145
|
+
function da(t, e = {}) {
|
|
4125
4146
|
return O({
|
|
4126
4147
|
query_params: e,
|
|
4127
4148
|
fn: (n) => new me(n),
|
|
4128
4149
|
path: `${M}/${t}/triggers`
|
|
4129
4150
|
});
|
|
4130
4151
|
}
|
|
4131
|
-
function
|
|
4152
|
+
function pa(t, e) {
|
|
4132
4153
|
return m({
|
|
4133
4154
|
id: t,
|
|
4134
4155
|
task_name: "triggers",
|
|
@@ -4138,7 +4159,7 @@ function fa(t, e) {
|
|
|
4138
4159
|
path: M
|
|
4139
4160
|
});
|
|
4140
4161
|
}
|
|
4141
|
-
function
|
|
4162
|
+
function _a(t, e) {
|
|
4142
4163
|
return m({
|
|
4143
4164
|
id: t,
|
|
4144
4165
|
task_name: `triggers/${e}`,
|
|
@@ -4146,21 +4167,21 @@ function da(t, e) {
|
|
|
4146
4167
|
path: M
|
|
4147
4168
|
});
|
|
4148
4169
|
}
|
|
4149
|
-
function
|
|
4170
|
+
function ma(t) {
|
|
4150
4171
|
return m({
|
|
4151
4172
|
id: t,
|
|
4152
4173
|
task_name: "settings",
|
|
4153
4174
|
method: "get",
|
|
4154
|
-
callback: (e) => e.map((n) => new
|
|
4175
|
+
callback: (e) => e.map((n) => new Ee(n)),
|
|
4155
4176
|
path: M
|
|
4156
4177
|
});
|
|
4157
4178
|
}
|
|
4158
|
-
function
|
|
4179
|
+
function ya(t = {}) {
|
|
4159
4180
|
const e = x(), n = e.startsWith("https") ? "wss:" : "ws:", r = e.startsWith("https") ? "https:" : "http:";
|
|
4160
4181
|
let i = e.replace(r, n) + `${M}/control`;
|
|
4161
4182
|
return t.fixed_device && (i += `?fixed_device=${encodeURIComponent(String(t.fixed_device))}`), i;
|
|
4162
4183
|
}
|
|
4163
|
-
function
|
|
4184
|
+
function ga(t, e = {}) {
|
|
4164
4185
|
return m({
|
|
4165
4186
|
id: t,
|
|
4166
4187
|
task_name: "metadata",
|
|
@@ -4169,7 +4190,7 @@ function ma(t, e = {}) {
|
|
|
4169
4190
|
path: M
|
|
4170
4191
|
});
|
|
4171
4192
|
}
|
|
4172
|
-
function
|
|
4193
|
+
function ba(t, e, n = {}) {
|
|
4173
4194
|
return m({
|
|
4174
4195
|
id: t,
|
|
4175
4196
|
task_name: `triggers/${encodeURIComponent(e)}`,
|
|
@@ -4179,7 +4200,7 @@ function ya(t, e, n = {}) {
|
|
|
4179
4200
|
path: M
|
|
4180
4201
|
});
|
|
4181
4202
|
}
|
|
4182
|
-
function
|
|
4203
|
+
function va(t, e, n, r = "patch") {
|
|
4183
4204
|
return m({
|
|
4184
4205
|
id: t,
|
|
4185
4206
|
task_name: `triggers/${encodeURIComponent(e)}`,
|
|
@@ -4193,14 +4214,14 @@ const Le = "triggers";
|
|
|
4193
4214
|
function en(t) {
|
|
4194
4215
|
return new me(t);
|
|
4195
4216
|
}
|
|
4196
|
-
function
|
|
4217
|
+
function Sa(t = {}) {
|
|
4197
4218
|
return O({ query_params: t, fn: en, path: Le });
|
|
4198
4219
|
}
|
|
4199
|
-
function
|
|
4220
|
+
function ka(t, e = {}) {
|
|
4200
4221
|
return k({ id: t, query_params: e, fn: en, path: Le });
|
|
4201
4222
|
}
|
|
4202
|
-
function
|
|
4203
|
-
return
|
|
4223
|
+
function $a(t, e, n = "patch") {
|
|
4224
|
+
return T({
|
|
4204
4225
|
id: t,
|
|
4205
4226
|
form_data: e,
|
|
4206
4227
|
query_params: {},
|
|
@@ -4209,13 +4230,13 @@ function Sa(t, e, n = "patch") {
|
|
|
4209
4230
|
path: Le
|
|
4210
4231
|
});
|
|
4211
4232
|
}
|
|
4212
|
-
function
|
|
4213
|
-
return
|
|
4233
|
+
function xa(t) {
|
|
4234
|
+
return P({ form_data: t, query_params: {}, fn: en, path: Le });
|
|
4214
4235
|
}
|
|
4215
|
-
function
|
|
4216
|
-
return
|
|
4236
|
+
function Aa(t) {
|
|
4237
|
+
return E({ id: t, query_params: {}, path: Le });
|
|
4217
4238
|
}
|
|
4218
|
-
function
|
|
4239
|
+
function wa(t) {
|
|
4219
4240
|
return m({
|
|
4220
4241
|
id: t,
|
|
4221
4242
|
task_name: "instances",
|
|
@@ -4225,8 +4246,8 @@ function xa(t) {
|
|
|
4225
4246
|
path: Le
|
|
4226
4247
|
});
|
|
4227
4248
|
}
|
|
4228
|
-
var
|
|
4229
|
-
class
|
|
4249
|
+
var oo = /* @__PURE__ */ ((t) => (t.EQ = "equal", t.NEQ = "not_equal", t.GT = "greater_than", t.GTE = "greater_than_or_equal", t.LT = "less_than", t.LTE = "less_than_or_equal", t.AND = "and", t.OR = "or", t.XOR = "exclusive_or", t))(oo || {}), uo = /* @__PURE__ */ ((t) => (t.AT = "at", t.CRON = "cron", t))(uo || {}), co = /* @__PURE__ */ ((t) => (t[t.ExecuteBefore = 0] = "ExecuteBefore", t[t.ExecuteAfter = 1] = "ExecuteAfter", t[t.PayloadOnly = 2] = "PayloadOnly", t[t.IgnorePayload = 3] = "IgnorePayload", t))(co || {});
|
|
4250
|
+
class ao extends L {
|
|
4230
4251
|
/** Hash of the email address of the user */
|
|
4231
4252
|
email_digest;
|
|
4232
4253
|
/** ID of the authority associated with the user */
|
|
@@ -4281,19 +4302,19 @@ class uo extends L {
|
|
|
4281
4302
|
}
|
|
4282
4303
|
const K = "users";
|
|
4283
4304
|
function Be(t) {
|
|
4284
|
-
return new
|
|
4305
|
+
return new ao(t);
|
|
4285
4306
|
}
|
|
4286
|
-
function
|
|
4307
|
+
function Oa(t = {}) {
|
|
4287
4308
|
return O({ query_params: t, fn: Be, path: K });
|
|
4288
4309
|
}
|
|
4289
|
-
function
|
|
4310
|
+
function Ea(t, e = {}) {
|
|
4290
4311
|
return k({ id: t, query_params: e, fn: Be, path: K });
|
|
4291
4312
|
}
|
|
4292
|
-
function
|
|
4313
|
+
function Ia(t = {}) {
|
|
4293
4314
|
return k({ id: "current", query_params: t, fn: Be, path: K });
|
|
4294
4315
|
}
|
|
4295
|
-
function
|
|
4296
|
-
return
|
|
4316
|
+
function Pa(t, e, n = "patch") {
|
|
4317
|
+
return T({
|
|
4297
4318
|
id: t,
|
|
4298
4319
|
form_data: e,
|
|
4299
4320
|
query_params: {},
|
|
@@ -4302,25 +4323,25 @@ function Ia(t, e, n = "patch") {
|
|
|
4302
4323
|
path: K
|
|
4303
4324
|
});
|
|
4304
4325
|
}
|
|
4305
|
-
function
|
|
4306
|
-
return
|
|
4326
|
+
function Ta(t) {
|
|
4327
|
+
return P({ form_data: t, query_params: {}, fn: Be, path: K });
|
|
4307
4328
|
}
|
|
4308
|
-
function
|
|
4309
|
-
return
|
|
4329
|
+
function qa(t, e = {}) {
|
|
4330
|
+
return E({ id: t, query_params: e, path: K });
|
|
4310
4331
|
}
|
|
4311
|
-
function
|
|
4332
|
+
function Ua(t) {
|
|
4312
4333
|
const e = R(t), n = `${x()}${K}/groups${e ? "?" + e : ""}`;
|
|
4313
|
-
return N(n).pipe(
|
|
4334
|
+
return N(n).pipe(b((r) => r));
|
|
4314
4335
|
}
|
|
4315
|
-
function
|
|
4336
|
+
function Ra(t) {
|
|
4316
4337
|
const e = R(t), n = `${x()}${K}/metadata/search${e ? "?" + e : ""}`;
|
|
4317
|
-
return N(n).pipe(
|
|
4338
|
+
return N(n).pipe(b((r) => r));
|
|
4318
4339
|
}
|
|
4319
|
-
function
|
|
4340
|
+
function Ma() {
|
|
4320
4341
|
const t = `${x()}${K}/resource_token`;
|
|
4321
|
-
return G(t, {}).pipe(
|
|
4342
|
+
return G(t, {}).pipe(b((e) => e));
|
|
4322
4343
|
}
|
|
4323
|
-
function
|
|
4344
|
+
function Ca(t, e = {}) {
|
|
4324
4345
|
return m({
|
|
4325
4346
|
id: t,
|
|
4326
4347
|
task_name: "metadata",
|
|
@@ -4329,15 +4350,15 @@ function Ra(t, e = {}) {
|
|
|
4329
4350
|
path: K
|
|
4330
4351
|
});
|
|
4331
4352
|
}
|
|
4332
|
-
function
|
|
4353
|
+
function Da(t) {
|
|
4333
4354
|
const e = `${x()}${K}/${encodeURIComponent(t)}/resource_token`;
|
|
4334
4355
|
return Oe(e, { response_type: "void" });
|
|
4335
4356
|
}
|
|
4336
|
-
function
|
|
4357
|
+
function Na(t) {
|
|
4337
4358
|
const e = `${x()}${K}/${encodeURIComponent(t)}/resource_token`;
|
|
4338
|
-
return G(e, {}).pipe(
|
|
4359
|
+
return G(e, {}).pipe(b((n) => n));
|
|
4339
4360
|
}
|
|
4340
|
-
function
|
|
4361
|
+
function Fa(t) {
|
|
4341
4362
|
return m({
|
|
4342
4363
|
id: t,
|
|
4343
4364
|
task_name: "revive",
|
|
@@ -4349,12 +4370,12 @@ function Da(t) {
|
|
|
4349
4370
|
}
|
|
4350
4371
|
const le = "zones";
|
|
4351
4372
|
function tn(t) {
|
|
4352
|
-
return new
|
|
4373
|
+
return new Mn(t);
|
|
4353
4374
|
}
|
|
4354
|
-
function
|
|
4375
|
+
function ja(t = {}) {
|
|
4355
4376
|
return O({ query_params: t, fn: tn, path: le });
|
|
4356
4377
|
}
|
|
4357
|
-
function
|
|
4378
|
+
function za(t = {}) {
|
|
4358
4379
|
return k({
|
|
4359
4380
|
id: "tags",
|
|
4360
4381
|
query_params: t,
|
|
@@ -4362,11 +4383,11 @@ function ja(t = {}) {
|
|
|
4362
4383
|
path: le
|
|
4363
4384
|
});
|
|
4364
4385
|
}
|
|
4365
|
-
function
|
|
4386
|
+
function Ha(t, e = {}) {
|
|
4366
4387
|
return k({ id: t, query_params: e, fn: tn, path: le });
|
|
4367
4388
|
}
|
|
4368
|
-
function
|
|
4369
|
-
return
|
|
4389
|
+
function Wa(t, e, n = "patch") {
|
|
4390
|
+
return T({
|
|
4370
4391
|
id: t,
|
|
4371
4392
|
form_data: e,
|
|
4372
4393
|
query_params: {},
|
|
@@ -4375,20 +4396,20 @@ function za(t, e, n = "patch") {
|
|
|
4375
4396
|
path: le
|
|
4376
4397
|
});
|
|
4377
4398
|
}
|
|
4378
|
-
function
|
|
4379
|
-
return
|
|
4399
|
+
function La(t) {
|
|
4400
|
+
return P({ form_data: t, query_params: {}, fn: tn, path: le });
|
|
4380
4401
|
}
|
|
4381
|
-
function
|
|
4382
|
-
return
|
|
4402
|
+
function Ba(t) {
|
|
4403
|
+
return E({ id: t, query_params: {}, path: le });
|
|
4383
4404
|
}
|
|
4384
|
-
function
|
|
4405
|
+
function Va(t, e = {}) {
|
|
4385
4406
|
return O({
|
|
4386
4407
|
query_params: e,
|
|
4387
4408
|
fn: (n) => new me(n),
|
|
4388
4409
|
path: `${le}/${t}/triggers`
|
|
4389
4410
|
});
|
|
4390
4411
|
}
|
|
4391
|
-
function
|
|
4412
|
+
function Qa(t, e, n, r = 1, i = []) {
|
|
4392
4413
|
return m({
|
|
4393
4414
|
id: t,
|
|
4394
4415
|
task_name: `exec/${encodeURIComponent(
|
|
@@ -4398,7 +4419,7 @@ function Ba(t, e, n, r = 1, i = []) {
|
|
|
4398
4419
|
path: le
|
|
4399
4420
|
});
|
|
4400
4421
|
}
|
|
4401
|
-
function
|
|
4422
|
+
function Ya(t, e = {}) {
|
|
4402
4423
|
return m({
|
|
4403
4424
|
id: t,
|
|
4404
4425
|
task_name: "metadata",
|
|
@@ -4408,7 +4429,7 @@ function Va(t, e = {}) {
|
|
|
4408
4429
|
});
|
|
4409
4430
|
}
|
|
4410
4431
|
var Qr = /* @__PURE__ */ ((t) => (t[t.Default = 0] = "Default", t[t.Cut = 1] = "Cut", t[t.CrossFade = 2] = "CrossFade", t[t.SlideTop = 3] = "SlideTop", t[t.SlideLeft = 4] = "SlideLeft", t[t.SlideRight = 5] = "SlideRight", t[t.SlideBottom = 6] = "SlideBottom", t))(Qr || {});
|
|
4411
|
-
class
|
|
4432
|
+
class lo {
|
|
4412
4433
|
id;
|
|
4413
4434
|
created_at;
|
|
4414
4435
|
updated_at;
|
|
@@ -4434,10 +4455,10 @@ class co {
|
|
|
4434
4455
|
return `/api/engine/v2/uploads/${this.thumbnail_id}/url`;
|
|
4435
4456
|
}
|
|
4436
4457
|
constructor(e) {
|
|
4437
|
-
this.id = e.id || "", this.created_at = e.created_at ||
|
|
4458
|
+
this.id = e.id || "", this.created_at = e.created_at || Gn(Date.now()), this.updated_at = e.updated_at || Gn(Date.now()), this.name = e.name || "", this.description = e.description || "", this.authority_id = e.authority_id || "", this.start_time = e.start_time || 0, this.play_time = e.play_time || 0, this.video_length = e.video_length || 0, this.animation = e.animation, this.media_type = e.media_type || "unknown", this.orientation = e.orientation || "unspecified", this.media_uri = e.media_uri || "", this.media_id = e.media_id || "", this.thumbnail_id = e.thumbnail_id || "", this.play_count = e.play_count || 0, this.valid_from = e.valid_from, this.valid_until = e.valid_until;
|
|
4438
4459
|
}
|
|
4439
4460
|
}
|
|
4440
|
-
class
|
|
4461
|
+
class Cn {
|
|
4441
4462
|
id;
|
|
4442
4463
|
playlist_id;
|
|
4443
4464
|
items;
|
|
@@ -4454,7 +4475,7 @@ class Rn {
|
|
|
4454
4475
|
this.id = e.id || "", this.playlist_id = e.playlist_id || "", this.created_at = e.created_at || 0, this.updated_at = e.updated_at || 0, this.items = e.items || [], this.approved = !!e.approved, this.approved_by_id = e.approved_by_id || "", this.approved_by_email = e.approved_by_email || "", this.approved_by_name = e.approved_by_name || "", this.user_id = e.user_id || "", this.user_name = e.user_name || "", this.user_email = e.user_email || "";
|
|
4455
4476
|
}
|
|
4456
4477
|
}
|
|
4457
|
-
class
|
|
4478
|
+
class ho {
|
|
4458
4479
|
id;
|
|
4459
4480
|
created_at;
|
|
4460
4481
|
updated_at;
|
|
@@ -4478,10 +4499,10 @@ class ao {
|
|
|
4478
4499
|
}
|
|
4479
4500
|
}
|
|
4480
4501
|
const Yr = "signage";
|
|
4481
|
-
function
|
|
4502
|
+
function Ga(t, e = {}, n) {
|
|
4482
4503
|
return k({ id: t, query_params: e, fn: (r) => r, path: `${Yr}`, options: n });
|
|
4483
4504
|
}
|
|
4484
|
-
function
|
|
4505
|
+
function Ja(t) {
|
|
4485
4506
|
return m({
|
|
4486
4507
|
id: t,
|
|
4487
4508
|
task_name: "metrics",
|
|
@@ -4493,16 +4514,16 @@ function Ya(t) {
|
|
|
4493
4514
|
}
|
|
4494
4515
|
const Ve = "signage/media";
|
|
4495
4516
|
function nn(t) {
|
|
4496
|
-
return new
|
|
4517
|
+
return new lo(t);
|
|
4497
4518
|
}
|
|
4498
|
-
function
|
|
4519
|
+
function Ka(t = {}) {
|
|
4499
4520
|
return O({ query_params: t, fn: nn, path: Ve });
|
|
4500
4521
|
}
|
|
4501
|
-
function
|
|
4522
|
+
function Za(t, e = {}) {
|
|
4502
4523
|
return k({ id: t, query_params: e, fn: nn, path: Ve });
|
|
4503
4524
|
}
|
|
4504
|
-
function
|
|
4505
|
-
return
|
|
4525
|
+
function Xa(t, e, n = "patch") {
|
|
4526
|
+
return T({
|
|
4506
4527
|
id: t,
|
|
4507
4528
|
form_data: e,
|
|
4508
4529
|
query_params: {},
|
|
@@ -4511,28 +4532,28 @@ function Ka(t, e, n = "patch") {
|
|
|
4511
4532
|
path: Ve
|
|
4512
4533
|
});
|
|
4513
4534
|
}
|
|
4514
|
-
function
|
|
4515
|
-
return
|
|
4535
|
+
function el(t) {
|
|
4536
|
+
return P({
|
|
4516
4537
|
form_data: t,
|
|
4517
4538
|
query_params: {},
|
|
4518
4539
|
fn: nn,
|
|
4519
4540
|
path: Ve
|
|
4520
4541
|
});
|
|
4521
4542
|
}
|
|
4522
|
-
function
|
|
4523
|
-
return
|
|
4543
|
+
function tl(t, e = {}) {
|
|
4544
|
+
return E({ id: t, query_params: e, path: Ve });
|
|
4524
4545
|
}
|
|
4525
|
-
function
|
|
4546
|
+
function nl(t) {
|
|
4526
4547
|
return `${x()}/${Ve}/${t}/thumbnail`;
|
|
4527
4548
|
}
|
|
4528
4549
|
const he = "signage/playlists";
|
|
4529
4550
|
function rn(t) {
|
|
4530
|
-
return new
|
|
4551
|
+
return new ho(t);
|
|
4531
4552
|
}
|
|
4532
|
-
function
|
|
4553
|
+
function rl(t = {}) {
|
|
4533
4554
|
return O({ query_params: t, fn: rn, path: he });
|
|
4534
4555
|
}
|
|
4535
|
-
function
|
|
4556
|
+
function il(t, e = {}) {
|
|
4536
4557
|
return k({
|
|
4537
4558
|
id: t,
|
|
4538
4559
|
query_params: e,
|
|
@@ -4540,8 +4561,8 @@ function nl(t, e = {}) {
|
|
|
4540
4561
|
path: he
|
|
4541
4562
|
});
|
|
4542
4563
|
}
|
|
4543
|
-
function
|
|
4544
|
-
return
|
|
4564
|
+
function sl(t, e, n = "patch") {
|
|
4565
|
+
return T({
|
|
4545
4566
|
id: t,
|
|
4546
4567
|
form_data: e,
|
|
4547
4568
|
query_params: {},
|
|
@@ -4550,40 +4571,40 @@ function rl(t, e, n = "patch") {
|
|
|
4550
4571
|
path: he
|
|
4551
4572
|
});
|
|
4552
4573
|
}
|
|
4553
|
-
function
|
|
4554
|
-
return
|
|
4574
|
+
function ol(t) {
|
|
4575
|
+
return P({
|
|
4555
4576
|
form_data: t,
|
|
4556
4577
|
query_params: {},
|
|
4557
4578
|
fn: rn,
|
|
4558
4579
|
path: he
|
|
4559
4580
|
});
|
|
4560
4581
|
}
|
|
4561
|
-
function
|
|
4562
|
-
return
|
|
4582
|
+
function ul(t, e = {}) {
|
|
4583
|
+
return E({ id: t, query_params: e, path: he });
|
|
4563
4584
|
}
|
|
4564
|
-
function
|
|
4585
|
+
function cl(t, e = {}) {
|
|
4565
4586
|
return m({
|
|
4566
4587
|
id: t,
|
|
4567
4588
|
task_name: "media",
|
|
4568
4589
|
form_data: e,
|
|
4569
4590
|
method: "get",
|
|
4570
|
-
callback: (n) => new
|
|
4591
|
+
callback: (n) => new Cn(n),
|
|
4571
4592
|
path: he
|
|
4572
4593
|
});
|
|
4573
4594
|
}
|
|
4574
|
-
function
|
|
4595
|
+
function al(t, e = {}) {
|
|
4575
4596
|
return m({
|
|
4576
4597
|
id: t,
|
|
4577
4598
|
task_name: "media/revisions",
|
|
4578
4599
|
form_data: e,
|
|
4579
4600
|
method: "get",
|
|
4580
4601
|
callback: (n) => n.map(
|
|
4581
|
-
(r) => new
|
|
4602
|
+
(r) => new Cn(r)
|
|
4582
4603
|
),
|
|
4583
4604
|
path: he
|
|
4584
4605
|
});
|
|
4585
4606
|
}
|
|
4586
|
-
function
|
|
4607
|
+
function ll(t) {
|
|
4587
4608
|
return m({
|
|
4588
4609
|
id: t,
|
|
4589
4610
|
task_name: "media/approve",
|
|
@@ -4591,14 +4612,14 @@ function cl(t) {
|
|
|
4591
4612
|
path: he
|
|
4592
4613
|
});
|
|
4593
4614
|
}
|
|
4594
|
-
function
|
|
4615
|
+
function hl(t, e) {
|
|
4595
4616
|
return m({
|
|
4596
4617
|
id: t,
|
|
4597
4618
|
task_name: "media",
|
|
4598
4619
|
form_data: e,
|
|
4599
4620
|
method: "post",
|
|
4600
4621
|
path: he,
|
|
4601
|
-
callback: (n) => new
|
|
4622
|
+
callback: (n) => new Cn(n)
|
|
4602
4623
|
});
|
|
4603
4624
|
}
|
|
4604
4625
|
class Gr {
|
|
@@ -4612,15 +4633,15 @@ class Gr {
|
|
|
4612
4633
|
}
|
|
4613
4634
|
}
|
|
4614
4635
|
const Jr = "/api/staff/v1/surveys/answers";
|
|
4615
|
-
function
|
|
4636
|
+
function fl(t = {}) {
|
|
4616
4637
|
const e = R(t);
|
|
4617
4638
|
return N(`${Jr}${e ? "?" + e : ""}`).pipe(
|
|
4618
|
-
|
|
4639
|
+
b((n) => n.map((r) => new Gr(r)))
|
|
4619
4640
|
);
|
|
4620
4641
|
}
|
|
4621
|
-
function
|
|
4642
|
+
function dl(t) {
|
|
4622
4643
|
return G(`${Jr}`, t).pipe(
|
|
4623
|
-
|
|
4644
|
+
b((e) => e.map((n) => new Gr(n)))
|
|
4624
4645
|
);
|
|
4625
4646
|
}
|
|
4626
4647
|
class sn {
|
|
@@ -4634,29 +4655,29 @@ class sn {
|
|
|
4634
4655
|
}
|
|
4635
4656
|
}
|
|
4636
4657
|
const ft = "/api/staff/v1/surveys/invitations";
|
|
4637
|
-
function
|
|
4658
|
+
function pl(t = {}) {
|
|
4638
4659
|
const e = R(t);
|
|
4639
4660
|
return N(`${ft}${e ? "?" + e : ""}`).pipe(
|
|
4640
|
-
|
|
4661
|
+
b((n) => n.map((r) => new sn(r)))
|
|
4641
4662
|
);
|
|
4642
4663
|
}
|
|
4643
|
-
function
|
|
4664
|
+
function _l(t, e = {}) {
|
|
4644
4665
|
const n = R(e);
|
|
4645
4666
|
return N(`${ft}/${t}${n ? "?" + n : ""}`).pipe(
|
|
4646
|
-
|
|
4667
|
+
b((r) => new sn(r))
|
|
4647
4668
|
);
|
|
4648
4669
|
}
|
|
4649
|
-
function
|
|
4670
|
+
function ml(t, e, n = "patch") {
|
|
4650
4671
|
return (n === "put" ? Ne : et)(`${ft}/${t}`, e).pipe(
|
|
4651
|
-
|
|
4672
|
+
b((r) => new sn(r))
|
|
4652
4673
|
);
|
|
4653
4674
|
}
|
|
4654
|
-
function
|
|
4675
|
+
function yl(t) {
|
|
4655
4676
|
return G(`${ft}`, t).pipe(
|
|
4656
|
-
|
|
4677
|
+
b((e) => new sn(e))
|
|
4657
4678
|
);
|
|
4658
4679
|
}
|
|
4659
|
-
function
|
|
4680
|
+
function gl(t, e = {}) {
|
|
4660
4681
|
const n = R(e);
|
|
4661
4682
|
return Oe(`${ft}/${t}${n ? "?" + n : ""}`);
|
|
4662
4683
|
}
|
|
@@ -4676,29 +4697,29 @@ class on {
|
|
|
4676
4697
|
}
|
|
4677
4698
|
}
|
|
4678
4699
|
const dt = "/api/staff/v1/surveys/questions";
|
|
4679
|
-
function
|
|
4700
|
+
function bl(t = {}) {
|
|
4680
4701
|
const e = R(t);
|
|
4681
4702
|
return N(`${dt}${e ? "?" + e : ""}`).pipe(
|
|
4682
|
-
|
|
4703
|
+
b((n) => n.map((r) => new on(r)))
|
|
4683
4704
|
);
|
|
4684
4705
|
}
|
|
4685
|
-
function
|
|
4706
|
+
function vl(t, e = {}) {
|
|
4686
4707
|
const n = R(e);
|
|
4687
4708
|
return N(`${dt}/${t}${n ? "?" + n : ""}`).pipe(
|
|
4688
|
-
|
|
4709
|
+
b((r) => new on(r))
|
|
4689
4710
|
);
|
|
4690
4711
|
}
|
|
4691
|
-
function
|
|
4712
|
+
function Sl(t) {
|
|
4692
4713
|
return G(`${dt}`, t).pipe(
|
|
4693
|
-
|
|
4714
|
+
b((e) => new on(e))
|
|
4694
4715
|
);
|
|
4695
4716
|
}
|
|
4696
|
-
function
|
|
4717
|
+
function kl(t, e, n = "patch") {
|
|
4697
4718
|
return (n === "put" ? Ne : et)(`${dt}/${t}`, e).pipe(
|
|
4698
|
-
|
|
4719
|
+
b((r) => new on(r))
|
|
4699
4720
|
);
|
|
4700
4721
|
}
|
|
4701
|
-
function
|
|
4722
|
+
function $l(t, e = {}) {
|
|
4702
4723
|
const n = R(e);
|
|
4703
4724
|
return Oe(`${dt}/${t}${n ? "?" + n : ""}`);
|
|
4704
4725
|
}
|
|
@@ -4715,31 +4736,31 @@ class un {
|
|
|
4715
4736
|
}
|
|
4716
4737
|
}
|
|
4717
4738
|
const pt = "/api/staff/v1/surveys";
|
|
4718
|
-
function
|
|
4739
|
+
function xl(t = {}) {
|
|
4719
4740
|
const e = R(t);
|
|
4720
4741
|
return N(`${pt}${e ? "?" + e : ""}`).pipe(
|
|
4721
|
-
|
|
4742
|
+
b((n) => n.map((r) => new un(r)))
|
|
4722
4743
|
);
|
|
4723
4744
|
}
|
|
4724
|
-
function
|
|
4745
|
+
function Al(t, e = {}) {
|
|
4725
4746
|
const n = R(e);
|
|
4726
4747
|
return N(`${pt}/${t}${n ? "?" + n : ""}`).pipe(
|
|
4727
|
-
|
|
4748
|
+
b((r) => new un(r))
|
|
4728
4749
|
);
|
|
4729
4750
|
}
|
|
4730
|
-
function
|
|
4751
|
+
function wl(t, e, n = "patch") {
|
|
4731
4752
|
return (n === "put" ? Ne : et)(`${pt}/${t}`, e).pipe(
|
|
4732
|
-
|
|
4753
|
+
b((r) => new un(r))
|
|
4733
4754
|
);
|
|
4734
4755
|
}
|
|
4735
|
-
function
|
|
4736
|
-
return G(`${pt}`, t).pipe(
|
|
4756
|
+
function Ol(t) {
|
|
4757
|
+
return G(`${pt}`, t).pipe(b((e) => new un(e)));
|
|
4737
4758
|
}
|
|
4738
|
-
function
|
|
4759
|
+
function El(t, e = {}) {
|
|
4739
4760
|
const n = R(e);
|
|
4740
4761
|
return Oe(`${pt}/${t}${n ? "?" + n : ""}`);
|
|
4741
4762
|
}
|
|
4742
|
-
class
|
|
4763
|
+
class fo {
|
|
4743
4764
|
id;
|
|
4744
4765
|
parent_category_id;
|
|
4745
4766
|
name;
|
|
@@ -4751,7 +4772,7 @@ class lo {
|
|
|
4751
4772
|
this.id = e.id || "", this.parent_category_id = e.parent_category_id || "", this.name = e.name || "", this.description = e.description || "", this.hidden = e.hidden || !1, this.created_at = e.created_at || 0, this.updated_at = e.updated_at || 0;
|
|
4752
4773
|
}
|
|
4753
4774
|
}
|
|
4754
|
-
class
|
|
4775
|
+
class po {
|
|
4755
4776
|
id;
|
|
4756
4777
|
purchase_order_number;
|
|
4757
4778
|
invoice_number;
|
|
@@ -4766,7 +4787,7 @@ class ho {
|
|
|
4766
4787
|
this.id = e.id || "", this.purchase_order_number = e.purchase_order_number || "", this.invoice_number = e.invoice_number || "", this.supplier_details = e.supplier_details || {}, this.purchase_date = e.purchase_date || 0, this.unit_price = e.unit_price || 0, this.expected_service_start_date = e.expected_service_start_date || 0, this.expected_service_end_date = e.expected_service_end_date || 0, this.created_at = e.created_at || 0, this.updated_at = e.updated_at || 0;
|
|
4767
4788
|
}
|
|
4768
4789
|
}
|
|
4769
|
-
class
|
|
4790
|
+
class _o {
|
|
4770
4791
|
id;
|
|
4771
4792
|
category_id;
|
|
4772
4793
|
name;
|
|
@@ -4780,7 +4801,7 @@ class fo {
|
|
|
4780
4801
|
this.id = e.id || "", this.category_id = e.category_id || "", this.name = e.name || "", this.brand = e.brand || "", this.description = e.description || "", this.model_number = e.model_number || "", this.images = e.images || [], this.created_at = e.created_at || 0, this.updated_at = e.updated_at || 0;
|
|
4781
4802
|
}
|
|
4782
4803
|
}
|
|
4783
|
-
class
|
|
4804
|
+
class mo {
|
|
4784
4805
|
id;
|
|
4785
4806
|
parent_id;
|
|
4786
4807
|
asset_type_id;
|
|
@@ -4811,16 +4832,16 @@ class po {
|
|
|
4811
4832
|
}
|
|
4812
4833
|
const ye = "assets";
|
|
4813
4834
|
function qe(t) {
|
|
4814
|
-
return new
|
|
4835
|
+
return new mo(t);
|
|
4815
4836
|
}
|
|
4816
|
-
function
|
|
4837
|
+
function Il(t = {}) {
|
|
4817
4838
|
return O({
|
|
4818
4839
|
query_params: t,
|
|
4819
4840
|
fn: qe,
|
|
4820
4841
|
path: ye
|
|
4821
4842
|
});
|
|
4822
4843
|
}
|
|
4823
|
-
function
|
|
4844
|
+
function Pl(t, e = {}) {
|
|
4824
4845
|
return k({
|
|
4825
4846
|
id: t,
|
|
4826
4847
|
query_params: e,
|
|
@@ -4828,8 +4849,8 @@ function Il(t, e = {}) {
|
|
|
4828
4849
|
path: ye
|
|
4829
4850
|
});
|
|
4830
4851
|
}
|
|
4831
|
-
function
|
|
4832
|
-
return
|
|
4852
|
+
function Tl(t, e, n = "patch") {
|
|
4853
|
+
return T({
|
|
4833
4854
|
id: t,
|
|
4834
4855
|
form_data: e,
|
|
4835
4856
|
query_params: {},
|
|
@@ -4838,49 +4859,49 @@ function Pl(t, e, n = "patch") {
|
|
|
4838
4859
|
path: ye
|
|
4839
4860
|
});
|
|
4840
4861
|
}
|
|
4841
|
-
function
|
|
4842
|
-
return
|
|
4862
|
+
function ql(t) {
|
|
4863
|
+
return P({
|
|
4843
4864
|
form_data: t,
|
|
4844
4865
|
query_params: {},
|
|
4845
4866
|
fn: qe,
|
|
4846
4867
|
path: ye
|
|
4847
4868
|
});
|
|
4848
4869
|
}
|
|
4849
|
-
function
|
|
4850
|
-
return
|
|
4870
|
+
function Ul(t, e = {}) {
|
|
4871
|
+
return E({ id: t, query_params: e, path: ye });
|
|
4851
4872
|
}
|
|
4852
|
-
function
|
|
4873
|
+
function Rl(t) {
|
|
4853
4874
|
return G(
|
|
4854
4875
|
`${x()}${ye}/bulk`,
|
|
4855
4876
|
JSON.stringify(t),
|
|
4856
4877
|
{}
|
|
4857
|
-
).pipe(
|
|
4878
|
+
).pipe(b((e) => e.map((n) => qe(n))));
|
|
4858
4879
|
}
|
|
4859
|
-
function
|
|
4880
|
+
function Ml(t, e = "patch") {
|
|
4860
4881
|
return (e === "put" ? Ne : et)(
|
|
4861
4882
|
`${x()}${ye}/bulk`,
|
|
4862
4883
|
JSON.stringify(t),
|
|
4863
4884
|
{}
|
|
4864
|
-
).pipe(
|
|
4885
|
+
).pipe(b((r) => r.map((i) => qe(i))));
|
|
4865
4886
|
}
|
|
4866
|
-
function
|
|
4887
|
+
function Cl(t, e = {}) {
|
|
4867
4888
|
const n = R(e);
|
|
4868
4889
|
return Oe(`${x()}${ye}/bulk${n ? "?" + n : ""}`, {
|
|
4869
4890
|
body: JSON.stringify(t)
|
|
4870
|
-
}).pipe(
|
|
4891
|
+
}).pipe(b((r) => r.map((i) => qe(i))));
|
|
4871
4892
|
}
|
|
4872
4893
|
const _t = "asset_types";
|
|
4873
4894
|
function cn(t) {
|
|
4874
|
-
return new
|
|
4895
|
+
return new _o(t);
|
|
4875
4896
|
}
|
|
4876
|
-
function
|
|
4897
|
+
function Dl(t = {}) {
|
|
4877
4898
|
return O({
|
|
4878
4899
|
query_params: t,
|
|
4879
4900
|
fn: cn,
|
|
4880
4901
|
path: _t
|
|
4881
4902
|
});
|
|
4882
4903
|
}
|
|
4883
|
-
function
|
|
4904
|
+
function Nl(t, e = {}) {
|
|
4884
4905
|
return k({
|
|
4885
4906
|
id: t,
|
|
4886
4907
|
query_params: e,
|
|
@@ -4888,8 +4909,8 @@ function Cl(t, e = {}) {
|
|
|
4888
4909
|
path: _t
|
|
4889
4910
|
});
|
|
4890
4911
|
}
|
|
4891
|
-
function
|
|
4892
|
-
return
|
|
4912
|
+
function Fl(t, e, n = "patch") {
|
|
4913
|
+
return T({
|
|
4893
4914
|
id: t,
|
|
4894
4915
|
form_data: e,
|
|
4895
4916
|
query_params: {},
|
|
@@ -4898,29 +4919,29 @@ function Dl(t, e, n = "patch") {
|
|
|
4898
4919
|
path: _t
|
|
4899
4920
|
});
|
|
4900
4921
|
}
|
|
4901
|
-
function
|
|
4902
|
-
return
|
|
4922
|
+
function jl(t) {
|
|
4923
|
+
return P({
|
|
4903
4924
|
form_data: t,
|
|
4904
4925
|
query_params: {},
|
|
4905
4926
|
fn: cn,
|
|
4906
4927
|
path: _t
|
|
4907
4928
|
});
|
|
4908
4929
|
}
|
|
4909
|
-
function
|
|
4910
|
-
return
|
|
4930
|
+
function zl(t, e = {}) {
|
|
4931
|
+
return E({ id: t, query_params: e, path: _t });
|
|
4911
4932
|
}
|
|
4912
4933
|
const mt = "asset_categories";
|
|
4913
4934
|
function an(t) {
|
|
4914
|
-
return new
|
|
4935
|
+
return new fo(t);
|
|
4915
4936
|
}
|
|
4916
|
-
function
|
|
4937
|
+
function Hl(t = {}) {
|
|
4917
4938
|
return O({
|
|
4918
4939
|
query_params: t,
|
|
4919
4940
|
fn: an,
|
|
4920
4941
|
path: mt
|
|
4921
4942
|
});
|
|
4922
4943
|
}
|
|
4923
|
-
function
|
|
4944
|
+
function Wl(t, e = {}) {
|
|
4924
4945
|
return k({
|
|
4925
4946
|
id: t,
|
|
4926
4947
|
query_params: e,
|
|
@@ -4928,8 +4949,8 @@ function zl(t, e = {}) {
|
|
|
4928
4949
|
path: mt
|
|
4929
4950
|
});
|
|
4930
4951
|
}
|
|
4931
|
-
function
|
|
4932
|
-
return
|
|
4952
|
+
function Ll(t, e, n = "patch") {
|
|
4953
|
+
return T({
|
|
4933
4954
|
id: t,
|
|
4934
4955
|
form_data: e,
|
|
4935
4956
|
query_params: {},
|
|
@@ -4938,29 +4959,29 @@ function Hl(t, e, n = "patch") {
|
|
|
4938
4959
|
path: mt
|
|
4939
4960
|
});
|
|
4940
4961
|
}
|
|
4941
|
-
function
|
|
4942
|
-
return
|
|
4962
|
+
function Bl(t) {
|
|
4963
|
+
return P({
|
|
4943
4964
|
form_data: t,
|
|
4944
4965
|
query_params: {},
|
|
4945
4966
|
fn: an,
|
|
4946
4967
|
path: mt
|
|
4947
4968
|
});
|
|
4948
4969
|
}
|
|
4949
|
-
function
|
|
4950
|
-
return
|
|
4970
|
+
function Vl(t, e = {}) {
|
|
4971
|
+
return E({ id: t, query_params: e, path: mt });
|
|
4951
4972
|
}
|
|
4952
4973
|
const yt = "asset_purchase_orders";
|
|
4953
4974
|
function ln(t) {
|
|
4954
|
-
return new
|
|
4975
|
+
return new po(t);
|
|
4955
4976
|
}
|
|
4956
|
-
function
|
|
4977
|
+
function Ql(t = {}) {
|
|
4957
4978
|
return O({
|
|
4958
4979
|
query_params: t,
|
|
4959
4980
|
fn: ln,
|
|
4960
4981
|
path: yt
|
|
4961
4982
|
});
|
|
4962
4983
|
}
|
|
4963
|
-
function
|
|
4984
|
+
function Yl(t, e = {}) {
|
|
4964
4985
|
return k({
|
|
4965
4986
|
id: t,
|
|
4966
4987
|
query_params: e,
|
|
@@ -4968,8 +4989,8 @@ function Vl(t, e = {}) {
|
|
|
4968
4989
|
path: yt
|
|
4969
4990
|
});
|
|
4970
4991
|
}
|
|
4971
|
-
function
|
|
4972
|
-
return
|
|
4992
|
+
function Gl(t, e, n = "patch") {
|
|
4993
|
+
return T({
|
|
4973
4994
|
id: t,
|
|
4974
4995
|
form_data: e,
|
|
4975
4996
|
query_params: {},
|
|
@@ -4978,18 +4999,18 @@ function Ql(t, e, n = "patch") {
|
|
|
4978
4999
|
path: yt
|
|
4979
5000
|
});
|
|
4980
5001
|
}
|
|
4981
|
-
function
|
|
4982
|
-
return
|
|
5002
|
+
function Jl(t) {
|
|
5003
|
+
return P({
|
|
4983
5004
|
form_data: t,
|
|
4984
5005
|
query_params: {},
|
|
4985
5006
|
fn: ln,
|
|
4986
5007
|
path: yt
|
|
4987
5008
|
});
|
|
4988
5009
|
}
|
|
4989
|
-
function
|
|
4990
|
-
return
|
|
5010
|
+
function Kl(t, e = {}) {
|
|
5011
|
+
return E({ id: t, query_params: e, path: yt });
|
|
4991
5012
|
}
|
|
4992
|
-
class
|
|
5013
|
+
class yo {
|
|
4993
5014
|
id;
|
|
4994
5015
|
name;
|
|
4995
5016
|
uri;
|
|
@@ -5010,16 +5031,16 @@ class _o {
|
|
|
5010
5031
|
}
|
|
5011
5032
|
const ie = "short_url";
|
|
5012
5033
|
function hn(t) {
|
|
5013
|
-
return new
|
|
5034
|
+
return new yo(t);
|
|
5014
5035
|
}
|
|
5015
|
-
function
|
|
5036
|
+
function Zl(t = {}) {
|
|
5016
5037
|
return O({
|
|
5017
5038
|
query_params: t,
|
|
5018
5039
|
fn: hn,
|
|
5019
5040
|
path: ie
|
|
5020
5041
|
});
|
|
5021
5042
|
}
|
|
5022
|
-
function
|
|
5043
|
+
function Xl(t, e = {}) {
|
|
5023
5044
|
return k({
|
|
5024
5045
|
id: t,
|
|
5025
5046
|
query_params: e,
|
|
@@ -5027,8 +5048,8 @@ function Kl(t, e = {}) {
|
|
|
5027
5048
|
path: ie
|
|
5028
5049
|
});
|
|
5029
5050
|
}
|
|
5030
|
-
function
|
|
5031
|
-
return
|
|
5051
|
+
function eh(t, e, n = "patch") {
|
|
5052
|
+
return T({
|
|
5032
5053
|
id: t,
|
|
5033
5054
|
form_data: e,
|
|
5034
5055
|
query_params: {},
|
|
@@ -5037,41 +5058,41 @@ function Zl(t, e, n = "patch") {
|
|
|
5037
5058
|
path: ie
|
|
5038
5059
|
});
|
|
5039
5060
|
}
|
|
5040
|
-
function
|
|
5041
|
-
return
|
|
5061
|
+
function th(t) {
|
|
5062
|
+
return P({
|
|
5042
5063
|
form_data: t,
|
|
5043
5064
|
query_params: {},
|
|
5044
5065
|
fn: hn,
|
|
5045
5066
|
path: ie
|
|
5046
5067
|
});
|
|
5047
5068
|
}
|
|
5048
|
-
function
|
|
5049
|
-
return
|
|
5069
|
+
function nh(t, e = {}) {
|
|
5070
|
+
return E({ id: t, query_params: e, path: ie });
|
|
5050
5071
|
}
|
|
5051
|
-
function
|
|
5072
|
+
function rh(t) {
|
|
5052
5073
|
return `${x()}${ie}/${encodeURIComponent(t)}/redirect`;
|
|
5053
5074
|
}
|
|
5054
|
-
function
|
|
5075
|
+
function ih(t) {
|
|
5055
5076
|
return N(
|
|
5056
5077
|
`${x()}${ie}/${encodeURIComponent(t)}/qr_code.svg`,
|
|
5057
5078
|
{ response_type: "text" }
|
|
5058
5079
|
);
|
|
5059
5080
|
}
|
|
5060
|
-
function
|
|
5081
|
+
function sh(t, e = {}) {
|
|
5061
5082
|
const n = R(e);
|
|
5062
5083
|
return `${x()}${ie}/${encodeURIComponent(t)}/qr_code.png${n ? "?" + n : ""}`;
|
|
5063
5084
|
}
|
|
5064
|
-
function
|
|
5085
|
+
function oh(t) {
|
|
5065
5086
|
const { format: e = "svg", ...n } = t, r = { ...n, format: e }, i = R(r);
|
|
5066
5087
|
return `${x()}${ie}/qr_code${i ? "?" + i : ""}`;
|
|
5067
5088
|
}
|
|
5068
|
-
function
|
|
5089
|
+
function uh(t) {
|
|
5069
5090
|
const e = { ...t, format: "svg" }, n = R(e);
|
|
5070
5091
|
return N(`${x()}${ie}/qr_code${n ? "?" + n : ""}`, {
|
|
5071
5092
|
response_type: "text"
|
|
5072
5093
|
});
|
|
5073
5094
|
}
|
|
5074
|
-
class
|
|
5095
|
+
class go {
|
|
5075
5096
|
id;
|
|
5076
5097
|
storage_type;
|
|
5077
5098
|
bucket_name;
|
|
@@ -5091,16 +5112,16 @@ class mo {
|
|
|
5091
5112
|
}
|
|
5092
5113
|
const gt = "storages";
|
|
5093
5114
|
function fn(t) {
|
|
5094
|
-
return new
|
|
5115
|
+
return new go(t);
|
|
5095
5116
|
}
|
|
5096
|
-
function
|
|
5117
|
+
function ch(t = {}) {
|
|
5097
5118
|
return O({
|
|
5098
5119
|
query_params: t,
|
|
5099
5120
|
fn,
|
|
5100
5121
|
path: gt
|
|
5101
5122
|
});
|
|
5102
5123
|
}
|
|
5103
|
-
function
|
|
5124
|
+
function ah(t, e = {}) {
|
|
5104
5125
|
return k({
|
|
5105
5126
|
id: t,
|
|
5106
5127
|
query_params: e,
|
|
@@ -5108,8 +5129,8 @@ function uh(t, e = {}) {
|
|
|
5108
5129
|
path: gt
|
|
5109
5130
|
});
|
|
5110
5131
|
}
|
|
5111
|
-
function
|
|
5112
|
-
return
|
|
5132
|
+
function lh(t, e, n = "patch") {
|
|
5133
|
+
return T({
|
|
5113
5134
|
id: t,
|
|
5114
5135
|
form_data: e,
|
|
5115
5136
|
query_params: {},
|
|
@@ -5118,55 +5139,55 @@ function ch(t, e, n = "patch") {
|
|
|
5118
5139
|
path: gt
|
|
5119
5140
|
});
|
|
5120
5141
|
}
|
|
5121
|
-
function
|
|
5122
|
-
return
|
|
5142
|
+
function hh(t) {
|
|
5143
|
+
return P({
|
|
5123
5144
|
form_data: t,
|
|
5124
5145
|
query_params: {},
|
|
5125
5146
|
fn,
|
|
5126
5147
|
path: gt
|
|
5127
5148
|
});
|
|
5128
5149
|
}
|
|
5129
|
-
function
|
|
5130
|
-
return
|
|
5150
|
+
function fh(t, e = {}) {
|
|
5151
|
+
return E({ id: t, query_params: e, path: gt });
|
|
5131
5152
|
}
|
|
5132
5153
|
const ge = "webrtc";
|
|
5133
|
-
function
|
|
5154
|
+
function dh(t = {}) {
|
|
5134
5155
|
const e = R(t), n = `${x()}${ge}/rooms${e ? "?" + e : ""}`;
|
|
5135
|
-
return N(n).pipe(
|
|
5156
|
+
return N(n).pipe(b((r) => r));
|
|
5136
5157
|
}
|
|
5137
|
-
function
|
|
5158
|
+
function ph(t) {
|
|
5138
5159
|
const e = `${x()}${ge}/room/${encodeURIComponent(t)}`;
|
|
5139
|
-
return N(e).pipe(
|
|
5160
|
+
return N(e).pipe(b((n) => n));
|
|
5140
5161
|
}
|
|
5141
|
-
function
|
|
5162
|
+
function _h(t) {
|
|
5142
5163
|
const e = `${x()}${ge}/members/${encodeURIComponent(t)}`;
|
|
5143
|
-
return N(e).pipe(
|
|
5164
|
+
return N(e).pipe(b((n) => n));
|
|
5144
5165
|
}
|
|
5145
|
-
function
|
|
5166
|
+
function mh(t, e) {
|
|
5146
5167
|
const n = `${x()}${ge}/guest_entry/${encodeURIComponent(t)}`;
|
|
5147
|
-
return G(n, e).pipe(
|
|
5168
|
+
return G(n, e).pipe(b(() => {
|
|
5148
5169
|
}));
|
|
5149
5170
|
}
|
|
5150
|
-
function
|
|
5171
|
+
function yh() {
|
|
5151
5172
|
const t = `${x()}${ge}/guest/exit`;
|
|
5152
|
-
return G(t, {}).pipe(
|
|
5173
|
+
return G(t, {}).pipe(b(() => {
|
|
5153
5174
|
}));
|
|
5154
5175
|
}
|
|
5155
|
-
function
|
|
5176
|
+
function gh(t, e, n) {
|
|
5156
5177
|
const r = `${x()}${ge}/kick/${encodeURIComponent(t)}/${encodeURIComponent(e)}`;
|
|
5157
|
-
return G(r, n).pipe(
|
|
5178
|
+
return G(r, n).pipe(b(() => {
|
|
5158
5179
|
}));
|
|
5159
5180
|
}
|
|
5160
|
-
function
|
|
5181
|
+
function bh(t, e, n) {
|
|
5161
5182
|
const r = `${x()}${ge}/transfer/${encodeURIComponent(t)}/${encodeURIComponent(e)}`;
|
|
5162
|
-
return G(r, n || {}).pipe(
|
|
5183
|
+
return G(r, n || {}).pipe(b(() => {
|
|
5163
5184
|
}));
|
|
5164
5185
|
}
|
|
5165
|
-
function
|
|
5186
|
+
function vh() {
|
|
5166
5187
|
const t = x(), e = t.startsWith("https") ? "wss:" : "ws:", n = t.startsWith("https") ? "https:" : "http:";
|
|
5167
5188
|
return t.replace(n, e) + `${ge}/signaller`;
|
|
5168
5189
|
}
|
|
5169
|
-
var
|
|
5190
|
+
var bo = {
|
|
5170
5191
|
url: "",
|
|
5171
5192
|
deserializer: function(t) {
|
|
5172
5193
|
return JSON.parse(t.data);
|
|
@@ -5174,14 +5195,14 @@ var yo = {
|
|
|
5174
5195
|
serializer: function(t) {
|
|
5175
5196
|
return JSON.stringify(t);
|
|
5176
5197
|
}
|
|
5177
|
-
},
|
|
5198
|
+
}, vo = "WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }", So = function(t) {
|
|
5178
5199
|
te(e, t);
|
|
5179
5200
|
function e(n, r) {
|
|
5180
5201
|
var i = t.call(this) || this;
|
|
5181
5202
|
if (i._socket = null, n instanceof D)
|
|
5182
5203
|
i.destination = r, i.source = n;
|
|
5183
5204
|
else {
|
|
5184
|
-
var s = i._config = Ze({},
|
|
5205
|
+
var s = i._config = Ze({}, bo);
|
|
5185
5206
|
if (i._output = new $e(), typeof n == "string")
|
|
5186
5207
|
s.url = n;
|
|
5187
5208
|
else
|
|
@@ -5252,17 +5273,17 @@ var yo = {
|
|
|
5252
5273
|
var a = n._config.openObserver;
|
|
5253
5274
|
a && a.next(y);
|
|
5254
5275
|
var f = n.destination;
|
|
5255
|
-
n.destination =
|
|
5276
|
+
n.destination = Ft.create(function(h) {
|
|
5256
5277
|
if (l.readyState === 1)
|
|
5257
5278
|
try {
|
|
5258
5279
|
var $ = n._config.serializer;
|
|
5259
5280
|
l.send($(h));
|
|
5260
|
-
} catch (
|
|
5261
|
-
n.destination.error(
|
|
5281
|
+
} catch (v) {
|
|
5282
|
+
n.destination.error(v);
|
|
5262
5283
|
}
|
|
5263
5284
|
}, function(h) {
|
|
5264
5285
|
var $ = n._config.closingObserver;
|
|
5265
|
-
$ && $.next(void 0), h && h.code ? l.close(h.code, h.reason) : c.error(new TypeError(
|
|
5286
|
+
$ && $.next(void 0), h && h.code ? l.close(h.code, h.reason) : c.error(new TypeError(vo)), n._resetState();
|
|
5266
5287
|
}, function() {
|
|
5267
5288
|
var h = n._config.closingObserver;
|
|
5268
5289
|
h && h.next(void 0), l.close(), n._resetState();
|
|
@@ -5292,11 +5313,11 @@ var yo = {
|
|
|
5292
5313
|
n && (n.readyState === 1 || n.readyState === 0) && n.close(), this._resetState(), t.prototype.unsubscribe.call(this);
|
|
5293
5314
|
}, e;
|
|
5294
5315
|
}(vn);
|
|
5295
|
-
function
|
|
5296
|
-
return new
|
|
5316
|
+
function ko(t) {
|
|
5317
|
+
return new So(t);
|
|
5297
5318
|
}
|
|
5298
5319
|
var re = /* @__PURE__ */ ((t) => (t[t.PARSE_ERROR = 0] = "PARSE_ERROR", t[t.BAD_REQUEST = 1] = "BAD_REQUEST", t[t.ACCESS_DENIED = 2] = "ACCESS_DENIED", t[t.REQUEST_FAILED = 3] = "REQUEST_FAILED", t[t.UNKNOWN_CMD = 4] = "UNKNOWN_CMD", t[t.SYS_NOT_FOUND = 5] = "SYS_NOT_FOUND", t[t.MOD_NOT_FOUND = 6] = "MOD_NOT_FOUND", t[t.UNEXPECTED_FAILURE = 7] = "UNEXPECTED_FAILURE", t))(re || {}), Kr = /* @__PURE__ */ ((t) => (t.Info = "info", t.Debug = "debug", t.Warning = "warn", t.Error = "error", t.Fatal = "fatal", t.Trace = "trace", t))(Kr || {});
|
|
5299
|
-
class
|
|
5320
|
+
class $o {
|
|
5300
5321
|
constructor(e, n) {
|
|
5301
5322
|
this._system = e;
|
|
5302
5323
|
const r = Object.getOwnPropertyNames(
|
|
@@ -5343,7 +5364,7 @@ class So {
|
|
|
5343
5364
|
});
|
|
5344
5365
|
}
|
|
5345
5366
|
}
|
|
5346
|
-
class
|
|
5367
|
+
class xo {
|
|
5347
5368
|
constructor(e) {
|
|
5348
5369
|
for (const n in e)
|
|
5349
5370
|
e.hasOwnProperty(n) && e[n] && e[n] instanceof Array && e[n].forEach((r) => {
|
|
@@ -5356,50 +5377,50 @@ class ko {
|
|
|
5356
5377
|
* @param properties Properties of the new module
|
|
5357
5378
|
*/
|
|
5358
5379
|
addModule(e, n) {
|
|
5359
|
-
this[e] || (this[e] = []), this[e].push(new
|
|
5380
|
+
this[e] || (this[e] = []), this[e].push(new $o(this, n));
|
|
5360
5381
|
}
|
|
5361
5382
|
}
|
|
5362
5383
|
const Ct = {};
|
|
5363
|
-
function
|
|
5364
|
-
return Ct[t] = new
|
|
5384
|
+
function Sh(t, e) {
|
|
5385
|
+
return Ct[t] = new xo(e), Ct[t];
|
|
5365
5386
|
}
|
|
5366
|
-
function
|
|
5387
|
+
function Ao(t) {
|
|
5367
5388
|
return Ct[t];
|
|
5368
5389
|
}
|
|
5369
|
-
function
|
|
5390
|
+
function kh(t) {
|
|
5370
5391
|
delete Ct[t];
|
|
5371
5392
|
}
|
|
5372
5393
|
const Zr = 15;
|
|
5373
5394
|
let bt = 0, Z, Xr = 0;
|
|
5374
|
-
const B = {},
|
|
5395
|
+
const B = {}, Dn = {}, Ue = {}, wo = {}, ve = new _e(!1);
|
|
5375
5396
|
Ue._place_os_status = ve.asObservable();
|
|
5376
5397
|
const ei = new _e([0, 0]);
|
|
5377
5398
|
Ue._place_os_sync = ei.asObservable();
|
|
5378
|
-
let ti = Date.now(), Me, Dt = 0, fe = null, wt,
|
|
5399
|
+
let ti = Date.now(), Me, Dt = 0, fe = null, wt, Nn = 0;
|
|
5379
5400
|
const vt = 10 * 1e3, ni = new $e();
|
|
5380
5401
|
Ue._place_os_debug_events = ni.asObservable();
|
|
5381
5402
|
function _n() {
|
|
5382
|
-
return x().indexOf("/control/") >= 0 ? "/control/websocket" : `${
|
|
5403
|
+
return x().indexOf("/control/") >= 0 ? "/control/websocket" : `${Ir()}/systems/control`;
|
|
5383
5404
|
}
|
|
5384
5405
|
function ri() {
|
|
5385
5406
|
return ve.getValue();
|
|
5386
5407
|
}
|
|
5387
|
-
function
|
|
5408
|
+
function Oo() {
|
|
5388
5409
|
return Ue._place_os_status;
|
|
5389
5410
|
}
|
|
5390
|
-
function
|
|
5411
|
+
function $h() {
|
|
5391
5412
|
return Ue._place_os_sync;
|
|
5392
5413
|
}
|
|
5393
|
-
function
|
|
5414
|
+
function Eo(t, e = Dn, n = Ue) {
|
|
5394
5415
|
const r = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
|
|
5395
5416
|
return e[r] || (e[r] = new _e(void 0), n[r] = e[r].asObservable()), n[r];
|
|
5396
5417
|
}
|
|
5397
|
-
function
|
|
5418
|
+
function Io(t, e = Dn) {
|
|
5398
5419
|
const n = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
|
|
5399
5420
|
if (e[n])
|
|
5400
5421
|
return e[n].getValue();
|
|
5401
5422
|
}
|
|
5402
|
-
function
|
|
5423
|
+
function tr(t, e = 0, n = Qe) {
|
|
5403
5424
|
const r = {
|
|
5404
5425
|
id: ++bt,
|
|
5405
5426
|
cmd: "bind",
|
|
@@ -5407,7 +5428,7 @@ function Xn(t, e = 0, n = Qe) {
|
|
|
5407
5428
|
};
|
|
5408
5429
|
return n(r, e);
|
|
5409
5430
|
}
|
|
5410
|
-
function
|
|
5431
|
+
function Po(t, e = 0, n = Qe) {
|
|
5411
5432
|
const r = {
|
|
5412
5433
|
id: ++bt,
|
|
5413
5434
|
cmd: "unbind",
|
|
@@ -5415,7 +5436,7 @@ function Io(t, e = 0, n = Qe) {
|
|
|
5415
5436
|
};
|
|
5416
5437
|
return n(r, e);
|
|
5417
5438
|
}
|
|
5418
|
-
function
|
|
5439
|
+
function To(t, e = vt, n = Qe) {
|
|
5419
5440
|
const r = {
|
|
5420
5441
|
id: ++bt,
|
|
5421
5442
|
cmd: "exec",
|
|
@@ -5423,7 +5444,7 @@ function Po(t, e = vt, n = Qe) {
|
|
|
5423
5444
|
};
|
|
5424
5445
|
return n(r, e);
|
|
5425
5446
|
}
|
|
5426
|
-
function
|
|
5447
|
+
function xh(t, e = vt, n = Qe) {
|
|
5427
5448
|
const r = {
|
|
5428
5449
|
id: ++bt,
|
|
5429
5450
|
cmd: "debug",
|
|
@@ -5431,7 +5452,7 @@ function kh(t, e = vt, n = Qe) {
|
|
|
5431
5452
|
};
|
|
5432
5453
|
return n(r, e);
|
|
5433
5454
|
}
|
|
5434
|
-
function
|
|
5455
|
+
function Ah(t, e = vt, n = Qe) {
|
|
5435
5456
|
const r = {
|
|
5436
5457
|
id: ++bt,
|
|
5437
5458
|
cmd: "ignore",
|
|
@@ -5440,7 +5461,7 @@ function $h(t, e = vt, n = Qe) {
|
|
|
5440
5461
|
return n(r, e);
|
|
5441
5462
|
}
|
|
5442
5463
|
function Qe(t, e = vt, n = 0) {
|
|
5443
|
-
const r = `${t.cmd}|${t.sys}|${t.mod}${t.index}|${t.name}|${t.args}|${
|
|
5464
|
+
const r = `${t.cmd}|${t.sys}|${t.mod}${t.index}|${t.name}|${t.args}|${ps()}`;
|
|
5444
5465
|
if (B[r])
|
|
5445
5466
|
d("WS", "Request already in progress. Waiting...", t);
|
|
5446
5467
|
else {
|
|
@@ -5453,7 +5474,7 @@ function Qe(t, e = vt, n = 0) {
|
|
|
5453
5474
|
);
|
|
5454
5475
|
};
|
|
5455
5476
|
if (Z && ri()) {
|
|
5456
|
-
|
|
5477
|
+
Pn() && No(t, Z, wo), i.resolve = s, i.reject = o;
|
|
5457
5478
|
const c = `${t.sys}, ${t.mod}_${t.index}, ${t.name}`;
|
|
5458
5479
|
d(
|
|
5459
5480
|
"WS",
|
|
@@ -5466,7 +5487,7 @@ function Qe(t, e = vt, n = 0) {
|
|
|
5466
5487
|
},
|
|
5467
5488
|
e
|
|
5468
5489
|
);
|
|
5469
|
-
} else fe ? setTimeout(() => u(), 1e3) :
|
|
5490
|
+
} else fe ? setTimeout(() => u(), 1e3) : Fn().then(() => u());
|
|
5470
5491
|
}), B[r] = i;
|
|
5471
5492
|
}
|
|
5472
5493
|
return B[r].promise;
|
|
@@ -5474,9 +5495,9 @@ function Qe(t, e = vt, n = 0) {
|
|
|
5474
5495
|
function ii(t) {
|
|
5475
5496
|
if (t !== "pong" && t instanceof Object) {
|
|
5476
5497
|
if (t.type === "notify" && t.meta)
|
|
5477
|
-
|
|
5498
|
+
Ro(t.meta, t.value);
|
|
5478
5499
|
else if (t.type === "success")
|
|
5479
|
-
|
|
5500
|
+
qo(t);
|
|
5480
5501
|
else if (t.type === "debug") {
|
|
5481
5502
|
d(
|
|
5482
5503
|
"WS",
|
|
@@ -5492,15 +5513,15 @@ function ii(t) {
|
|
|
5492
5513
|
level: t.level || Kr.Debug,
|
|
5493
5514
|
time: Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3)
|
|
5494
5515
|
});
|
|
5495
|
-
} else t.type === "error" ?
|
|
5516
|
+
} else t.type === "error" ? Uo(t) : t.cmd || d("WS", "Invalid websocket message", t, "error");
|
|
5496
5517
|
we(`${t.id}`);
|
|
5497
|
-
} else t === "pong" && (
|
|
5518
|
+
} else t === "pong" && (Nn = Date.now(), d("WS", "Pong!"));
|
|
5498
5519
|
}
|
|
5499
|
-
function
|
|
5520
|
+
function qo(t) {
|
|
5500
5521
|
const e = Object.keys(B).map((n) => B[n]).find((n) => n?.id === t.id);
|
|
5501
5522
|
d("WS", `[SUCCESS](${t.id})`), e && e.resolve && (e.resolve(t.value), delete B[e.key]);
|
|
5502
5523
|
}
|
|
5503
|
-
function
|
|
5524
|
+
function Uo(t) {
|
|
5504
5525
|
let e = "UNEXPECTED FAILURE";
|
|
5505
5526
|
switch (t.code) {
|
|
5506
5527
|
case re.ACCESS_DENIED:
|
|
@@ -5534,7 +5555,7 @@ function Eo(t) {
|
|
|
5534
5555
|
const n = Object.keys(B).map((r) => B[r]).filter((r) => r).find((r) => r.id === t.id);
|
|
5535
5556
|
n && n.reject && (n.reject(t), we(`${n.key}`), delete B[n.key]);
|
|
5536
5557
|
}
|
|
5537
|
-
function
|
|
5558
|
+
function Ro(t, e, n = Dn, r = Ue) {
|
|
5538
5559
|
const i = `${t.sys}|${t.mod}_${t.index}|${t.name}`;
|
|
5539
5560
|
n[i] || (n[i] = new _e(null), r[i] = n[i].asObservable());
|
|
5540
5561
|
const s = `${t.sys}, ${t.mod}_${t.index}, ${t.name}`;
|
|
@@ -5544,22 +5565,22 @@ function qo(t, e, n = Mn, r = Ue) {
|
|
|
5544
5565
|
e
|
|
5545
5566
|
]), n[i].next(e);
|
|
5546
5567
|
}
|
|
5547
|
-
function
|
|
5568
|
+
function Fn(t = 0) {
|
|
5548
5569
|
return fe == null && (fe = new Promise((e) => {
|
|
5549
5570
|
if (t > 40)
|
|
5550
5571
|
return location.reload();
|
|
5551
|
-
Dt++, ti = Date.now(), Z =
|
|
5572
|
+
Dt++, ti = Date.now(), Z = Pn() ? Do() : Mo(), Z ? (d("WS(Debug)", "Authority:", [Ut()]), d("WS", "Connecting to websocket..."), Z.subscribe(
|
|
5552
5573
|
(n) => {
|
|
5553
5574
|
ve.getValue() || (d("WS", "Connection established."), e()), ve.next(!0), Dt = 0, mn(), ii(n);
|
|
5554
5575
|
},
|
|
5555
5576
|
(n) => {
|
|
5556
|
-
Z = void 0, fe = null,
|
|
5577
|
+
Z = void 0, fe = null, rr(), mn(), Co(n);
|
|
5557
5578
|
},
|
|
5558
5579
|
() => {
|
|
5559
|
-
Z = void 0, fe = null,
|
|
5580
|
+
Z = void 0, fe = null, rr(), d("WS", "Connection closed by browser."), ve.next(!1), Nt();
|
|
5560
5581
|
}
|
|
5561
|
-
), Me && clearInterval(Me),
|
|
5562
|
-
() =>
|
|
5582
|
+
), Me && clearInterval(Me), Nn = Date.now(), nr(), Me = setInterval(
|
|
5583
|
+
() => nr(),
|
|
5563
5584
|
Zr * 1e3
|
|
5564
5585
|
), mn(), Xr += 1, wt = setTimeout(() => {
|
|
5565
5586
|
d("WS", "Unhealthy connection. Reconnecting..."), ve.next(!1), fe = null, Nt();
|
|
@@ -5575,22 +5596,22 @@ function Dn(t = 0) {
|
|
|
5575
5596
|
"error"
|
|
5576
5597
|
), setTimeout(
|
|
5577
5598
|
() => {
|
|
5578
|
-
fe = null,
|
|
5599
|
+
fe = null, Fn(t).then((n) => e(n));
|
|
5579
5600
|
},
|
|
5580
5601
|
1e3 * Math.min(10, ++t)
|
|
5581
5602
|
));
|
|
5582
5603
|
})), fe;
|
|
5583
5604
|
}
|
|
5584
|
-
function
|
|
5605
|
+
function Mo() {
|
|
5585
5606
|
if (!Ut() || !X()) return null;
|
|
5586
|
-
const t =
|
|
5587
|
-
let e = `ws${t ? "s" : ""}://${kn()}${_n()}${
|
|
5607
|
+
const t = ws() || location.protocol.indexOf("https") >= 0;
|
|
5608
|
+
let e = `ws${t ? "s" : ""}://${kn()}${_n()}${Pr() ? "?fixed_device=true" : ""}`;
|
|
5588
5609
|
const n = X();
|
|
5589
5610
|
let r = n === "x-api-key" ? `api-key=${zt()}` : `bearer_token=${n}`;
|
|
5590
|
-
return !
|
|
5611
|
+
return !Ss() && !fs() ? (d("WS", "Authenticating through cookie..."), r += `;max-age=120;path=${_n()};`, r += `${t ? "secure;" : ""}samesite=strict`, document.cookie = r, d("WS", "Cookies:", [document.cookie, r])) : (d("WS", "Authenticating through URL query parameter..."), e += `${e.indexOf("?") >= 0 ? "&" : "?"}${r}`), d(
|
|
5591
5612
|
"WS",
|
|
5592
5613
|
`Creating websocket connection to ws${t ? "s" : ""}://${kn()}${_n()}`
|
|
5593
|
-
),
|
|
5614
|
+
), ko({
|
|
5594
5615
|
url: e,
|
|
5595
5616
|
serializer: (i) => typeof i == "object" ? JSON.stringify(i) : i,
|
|
5596
5617
|
deserializer: (i) => {
|
|
@@ -5613,29 +5634,29 @@ function Nt() {
|
|
|
5613
5634
|
)}ms...`
|
|
5614
5635
|
), oe(
|
|
5615
5636
|
"reconnect",
|
|
5616
|
-
() =>
|
|
5637
|
+
() => Fn(),
|
|
5617
5638
|
Math.min(5e3, (Dt + 1) * 300 || 1e3)
|
|
5618
5639
|
);
|
|
5619
5640
|
}
|
|
5620
|
-
function
|
|
5621
|
-
if (Date.now() -
|
|
5641
|
+
function nr() {
|
|
5642
|
+
if (Date.now() - Nn > 4 * Zr * 1e3)
|
|
5622
5643
|
return Nt();
|
|
5623
5644
|
Z?.next("ping");
|
|
5624
5645
|
}
|
|
5625
|
-
function
|
|
5626
|
-
ve.next(!1), d("WS", "Websocket error:", t, void 0, "error"), t.status === 401 &&
|
|
5646
|
+
function Co(t) {
|
|
5647
|
+
ve.next(!1), d("WS", "Websocket error:", t, void 0, "error"), t.status === 401 && qn(), Tr(), Nt();
|
|
5627
5648
|
}
|
|
5628
5649
|
function mn() {
|
|
5629
5650
|
wt && (clearTimeout(wt), wt = void 0);
|
|
5630
5651
|
}
|
|
5631
|
-
function
|
|
5652
|
+
function Do() {
|
|
5632
5653
|
const t = new $e();
|
|
5633
5654
|
return t.subscribe(
|
|
5634
5655
|
(e) => ii(e)
|
|
5635
5656
|
), t;
|
|
5636
5657
|
}
|
|
5637
|
-
function
|
|
5638
|
-
const r = `${t.sys}|${t.mod}_${t.index}|${t.name}`, i =
|
|
5658
|
+
function No(t, e, n) {
|
|
5659
|
+
const r = `${t.sys}|${t.mod}_${t.index}|${t.name}`, i = Ao(t.sys), s = i && i[t.mod] ? i[t.mod][t.index - 1 || 0] : null;
|
|
5639
5660
|
if (s) {
|
|
5640
5661
|
switch (t.cmd) {
|
|
5641
5662
|
case "bind":
|
|
@@ -5680,13 +5701,13 @@ function Co(t, e, n) {
|
|
|
5680
5701
|
10
|
|
5681
5702
|
);
|
|
5682
5703
|
}
|
|
5683
|
-
function
|
|
5704
|
+
function rr() {
|
|
5684
5705
|
for (const t in B)
|
|
5685
5706
|
B[t] && delete B[t];
|
|
5686
5707
|
}
|
|
5687
|
-
class
|
|
5708
|
+
class ir {
|
|
5688
5709
|
constructor(e, n) {
|
|
5689
|
-
this._module = e, this.name = n,
|
|
5710
|
+
this._module = e, this.name = n, Oo().pipe(Yi()).subscribe((r) => {
|
|
5690
5711
|
r && (this._stale_bindings || this._pending === 1) ? (d("VAR", "Re-binding to status variable", this.binding()), this.rebind()) : r || (we(
|
|
5691
5712
|
`rebind:${JSON.stringify(this.binding())}`
|
|
5692
5713
|
), d(
|
|
@@ -5710,13 +5731,13 @@ class nr {
|
|
|
5710
5731
|
}
|
|
5711
5732
|
/** Current value of the binding */
|
|
5712
5733
|
get value() {
|
|
5713
|
-
return
|
|
5734
|
+
return Io(this.binding());
|
|
5714
5735
|
}
|
|
5715
5736
|
/**
|
|
5716
5737
|
* Get an observable that emits the current value of the binding
|
|
5717
5738
|
*/
|
|
5718
5739
|
listen() {
|
|
5719
|
-
return
|
|
5740
|
+
return Eo(this.binding());
|
|
5720
5741
|
}
|
|
5721
5742
|
/**
|
|
5722
5743
|
* Subscribe to changes of the variable's binding value.
|
|
@@ -5738,7 +5759,7 @@ class nr {
|
|
|
5738
5759
|
* Bind to the status variable's value
|
|
5739
5760
|
*/
|
|
5740
5761
|
bind() {
|
|
5741
|
-
return (this._binding_count <= 0 && this._stale_bindings <= 0 || this._pending === 2) && (this._pending = 1,
|
|
5762
|
+
return (this._binding_count <= 0 && this._stale_bindings <= 0 || this._pending === 2) && (this._pending = 1, tr(this.binding()).then(() => {
|
|
5742
5763
|
this._binding_count++, this._pending = 0;
|
|
5743
5764
|
}).catch(() => null)), () => this.unbind();
|
|
5744
5765
|
}
|
|
@@ -5746,7 +5767,7 @@ class nr {
|
|
|
5746
5767
|
* Unbind from status variable
|
|
5747
5768
|
*/
|
|
5748
5769
|
unbind() {
|
|
5749
|
-
this._binding_count === 1 && this._pending === 0 ? (this._pending = 2,
|
|
5770
|
+
this._binding_count === 1 && this._pending === 0 ? (this._pending = 2, Po(this.binding()).then(() => {
|
|
5750
5771
|
this._pending === 2 && (this._pending = 0), this._binding_count--;
|
|
5751
5772
|
})) : this._binding_count = Math.max(this._binding_count - 1, 0);
|
|
5752
5773
|
}
|
|
@@ -5757,7 +5778,7 @@ class nr {
|
|
|
5757
5778
|
!this._stale_bindings && this._pending !== 1 || oe(
|
|
5758
5779
|
`rebind:${JSON.stringify(this.binding())}`,
|
|
5759
5780
|
async () => {
|
|
5760
|
-
await
|
|
5781
|
+
await tr(this.binding()), this._binding_count = this._stale_bindings || 1, this._stale_bindings = 0;
|
|
5761
5782
|
},
|
|
5762
5783
|
100
|
|
5763
5784
|
);
|
|
@@ -5774,7 +5795,7 @@ class nr {
|
|
|
5774
5795
|
};
|
|
5775
5796
|
}
|
|
5776
5797
|
}
|
|
5777
|
-
class
|
|
5798
|
+
class Fo {
|
|
5778
5799
|
constructor(e, n) {
|
|
5779
5800
|
this._system = e, this._id = n;
|
|
5780
5801
|
}
|
|
@@ -5803,14 +5824,14 @@ class Do {
|
|
|
5803
5824
|
* @deprecated Use `variable` instead
|
|
5804
5825
|
*/
|
|
5805
5826
|
binding(e) {
|
|
5806
|
-
return this._bindings[e] || (this._bindings[e] = new
|
|
5827
|
+
return this._bindings[e] || (this._bindings[e] = new ir(this, e)), this._bindings[e];
|
|
5807
5828
|
}
|
|
5808
5829
|
/**
|
|
5809
5830
|
* Get binding with the given name
|
|
5810
5831
|
* @param name Name of the binding
|
|
5811
5832
|
*/
|
|
5812
5833
|
variable(e) {
|
|
5813
|
-
return this._bindings[e] || (this._bindings[e] = new
|
|
5834
|
+
return this._bindings[e] || (this._bindings[e] = new ir(this, e)), this._bindings[e];
|
|
5814
5835
|
}
|
|
5815
5836
|
/**
|
|
5816
5837
|
* Execute method on the engine module
|
|
@@ -5818,7 +5839,7 @@ class Do {
|
|
|
5818
5839
|
* @param args Array of arguments to pass to the method
|
|
5819
5840
|
*/
|
|
5820
5841
|
execute(e, n, r = vt) {
|
|
5821
|
-
return
|
|
5842
|
+
return To(
|
|
5822
5843
|
{
|
|
5823
5844
|
sys: this._system.id,
|
|
5824
5845
|
mod: this.name,
|
|
@@ -5830,7 +5851,7 @@ class Do {
|
|
|
5830
5851
|
);
|
|
5831
5852
|
}
|
|
5832
5853
|
}
|
|
5833
|
-
class
|
|
5854
|
+
class jo {
|
|
5834
5855
|
/** Unique idetifier of the system */
|
|
5835
5856
|
id;
|
|
5836
5857
|
/** Mapping of engine modules within the system */
|
|
@@ -5851,7 +5872,7 @@ class No {
|
|
|
5851
5872
|
const i = r.join("_");
|
|
5852
5873
|
for (this._module_list[i] || (this._module_list[i] = []); this._module_list[i].length < n; )
|
|
5853
5874
|
this._module_list[i].push(
|
|
5854
|
-
new
|
|
5875
|
+
new Fo(
|
|
5855
5876
|
this,
|
|
5856
5877
|
`${i}_${this._module_list[i].length + 1}`
|
|
5857
5878
|
)
|
|
@@ -5860,370 +5881,370 @@ class No {
|
|
|
5860
5881
|
}
|
|
5861
5882
|
}
|
|
5862
5883
|
const yn = {};
|
|
5863
|
-
function
|
|
5864
|
-
return yn[t] || (yn[t] = new
|
|
5884
|
+
function zo(t) {
|
|
5885
|
+
return yn[t] || (yn[t] = new jo(t)), yn[t];
|
|
5865
5886
|
}
|
|
5866
|
-
function
|
|
5867
|
-
return
|
|
5887
|
+
function wh(t, e, n = 1) {
|
|
5888
|
+
return zo(t).module(e, n);
|
|
5868
5889
|
}
|
|
5869
5890
|
export {
|
|
5870
|
-
|
|
5891
|
+
Ys as AuthType,
|
|
5871
5892
|
He as EncryptionLevel,
|
|
5872
5893
|
Qr as MediaAnimation,
|
|
5873
|
-
|
|
5874
|
-
|
|
5875
|
-
|
|
5876
|
-
|
|
5877
|
-
|
|
5878
|
-
|
|
5879
|
-
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
|
|
5894
|
+
$o as MockPlaceWebsocketModule,
|
|
5895
|
+
xo as MockPlaceWebsocketSystem,
|
|
5896
|
+
Ls as PlaceAlert,
|
|
5897
|
+
Bs as PlaceAlertDashboard,
|
|
5898
|
+
Vs as PlaceApplication,
|
|
5899
|
+
mo as PlaceAsset,
|
|
5900
|
+
fo as PlaceAssetCategory,
|
|
5901
|
+
po as PlaceAssetPurchaseOrder,
|
|
5902
|
+
_o as PlaceAssetType,
|
|
5903
|
+
Js as PlaceCluster,
|
|
5904
|
+
Zs as PlaceDomain,
|
|
5884
5905
|
Hr as PlaceDriver,
|
|
5885
5906
|
Mt as PlaceDriverRole,
|
|
5886
|
-
|
|
5907
|
+
Xs as PlaceEdge,
|
|
5887
5908
|
re as PlaceErrorCodes,
|
|
5888
|
-
|
|
5909
|
+
eo as PlaceLDAPSource,
|
|
5889
5910
|
Kr as PlaceLogLevel,
|
|
5890
|
-
|
|
5911
|
+
Gs as PlaceMQTTBroker,
|
|
5891
5912
|
Wr as PlaceMetadata,
|
|
5892
5913
|
Br as PlaceModule,
|
|
5893
|
-
|
|
5894
|
-
|
|
5895
|
-
|
|
5896
|
-
|
|
5914
|
+
Fo as PlaceModuleBinding,
|
|
5915
|
+
ro as PlaceOAuthSource,
|
|
5916
|
+
Ks as PlaceProcess,
|
|
5917
|
+
io as PlaceRepository,
|
|
5897
5918
|
Vr as PlaceRepositoryType,
|
|
5898
5919
|
L as PlaceResource,
|
|
5899
|
-
|
|
5900
|
-
|
|
5901
|
-
|
|
5902
|
-
|
|
5920
|
+
so as PlaceSAMLSource,
|
|
5921
|
+
Ee as PlaceSettings,
|
|
5922
|
+
yo as PlaceShortUrl,
|
|
5923
|
+
go as PlaceStorage,
|
|
5903
5924
|
Lr as PlaceSystem,
|
|
5904
|
-
|
|
5925
|
+
jo as PlaceSystemBinding,
|
|
5905
5926
|
me as PlaceTrigger,
|
|
5906
|
-
|
|
5907
|
-
|
|
5908
|
-
|
|
5909
|
-
|
|
5910
|
-
|
|
5911
|
-
|
|
5912
|
-
|
|
5927
|
+
ao as PlaceUser,
|
|
5928
|
+
ir as PlaceVariableBinding,
|
|
5929
|
+
Mn as PlaceZone,
|
|
5930
|
+
to as PlaceZoneMetadata,
|
|
5931
|
+
lo as SignageMedia,
|
|
5932
|
+
ho as SignagePlaylist,
|
|
5933
|
+
Cn as SignagePlaylistMedia,
|
|
5913
5934
|
un as Survey,
|
|
5914
5935
|
Gr as SurveyAnswer,
|
|
5915
5936
|
sn as SurveyInvitation,
|
|
5916
5937
|
on as SurveyQuestion,
|
|
5917
|
-
|
|
5918
|
-
|
|
5919
|
-
|
|
5920
|
-
|
|
5921
|
-
|
|
5922
|
-
|
|
5923
|
-
|
|
5924
|
-
|
|
5925
|
-
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
|
|
5929
|
-
|
|
5930
|
-
|
|
5931
|
-
|
|
5932
|
-
|
|
5933
|
-
|
|
5934
|
-
|
|
5935
|
-
|
|
5936
|
-
|
|
5937
|
-
|
|
5938
|
-
|
|
5939
|
-
|
|
5940
|
-
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
5944
|
-
|
|
5945
|
-
|
|
5946
|
-
|
|
5947
|
-
|
|
5948
|
-
|
|
5949
|
-
|
|
5950
|
-
|
|
5951
|
-
|
|
5952
|
-
|
|
5938
|
+
oo as TriggerConditionOperator,
|
|
5939
|
+
uo as TriggerTimeConditionType,
|
|
5940
|
+
co as TriggerWebhookType,
|
|
5941
|
+
uu as addAlert,
|
|
5942
|
+
tu as addAlertDashboard,
|
|
5943
|
+
dl as addAnswer,
|
|
5944
|
+
pu as addApplication,
|
|
5945
|
+
ql as addAsset,
|
|
5946
|
+
Bl as addAssetCategory,
|
|
5947
|
+
Jl as addAssetPurchaseOrder,
|
|
5948
|
+
jl as addAssetType,
|
|
5949
|
+
Rl as addAssets,
|
|
5950
|
+
bu as addBroker,
|
|
5951
|
+
Pu as addDomain,
|
|
5952
|
+
Cu as addDriver,
|
|
5953
|
+
Bu as addEdge,
|
|
5954
|
+
yl as addInvitation,
|
|
5955
|
+
Zu as addLDAPSource,
|
|
5956
|
+
ic as addMetadata,
|
|
5957
|
+
lc as addModule,
|
|
5958
|
+
$c as addOAuthSource,
|
|
5959
|
+
Sl as addQuestion,
|
|
5960
|
+
Ec as addRepository,
|
|
5961
|
+
Lc as addSAMLSource,
|
|
5962
|
+
Gc as addSettings,
|
|
5963
|
+
th as addShortUrl,
|
|
5964
|
+
el as addSignageMedia,
|
|
5965
|
+
ol as addSignagePlaylist,
|
|
5966
|
+
hh as addStorage,
|
|
5967
|
+
Ol as addSurvey,
|
|
5968
|
+
na as addSystem,
|
|
5969
|
+
ia as addSystemModule,
|
|
5970
|
+
pa as addSystemTrigger,
|
|
5971
|
+
xa as addTrigger,
|
|
5972
|
+
Ta as addUser,
|
|
5973
|
+
La as addZone,
|
|
5953
5974
|
x as apiEndpoint,
|
|
5954
5975
|
zt as apiKey,
|
|
5955
|
-
|
|
5976
|
+
ll as approveSignagePlaylist,
|
|
5956
5977
|
qr as authorise,
|
|
5957
5978
|
Ut as authority,
|
|
5958
|
-
|
|
5959
|
-
|
|
5960
|
-
|
|
5961
|
-
|
|
5962
|
-
|
|
5963
|
-
|
|
5964
|
-
|
|
5965
|
-
|
|
5979
|
+
tr as bind,
|
|
5980
|
+
hs as cleanObject,
|
|
5981
|
+
Yo as cleanupAuth,
|
|
5982
|
+
ks as clientId,
|
|
5983
|
+
Au as clusterRebalance,
|
|
5984
|
+
wu as clusterVersions,
|
|
5985
|
+
$h as connectionState,
|
|
5986
|
+
Jn as consoleHasColours,
|
|
5966
5987
|
Je as convertPairStringToMap,
|
|
5967
|
-
|
|
5968
|
-
|
|
5969
|
-
|
|
5970
|
-
|
|
5988
|
+
P as create,
|
|
5989
|
+
Ia as currentUser,
|
|
5990
|
+
Ma as currentUserResourceToken,
|
|
5991
|
+
xh as debug,
|
|
5971
5992
|
ni as debug_events,
|
|
5972
5993
|
Oe as del,
|
|
5973
|
-
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5994
|
+
Ds as deregisterMockEndpoint,
|
|
5995
|
+
kh as deregisterSystem,
|
|
5996
|
+
zu as driverReadme,
|
|
5997
|
+
Yu as edgeControlUrl,
|
|
5998
|
+
To as execute,
|
|
5999
|
+
bc as executeOnModule,
|
|
6000
|
+
ca as executeOnSystem,
|
|
6001
|
+
Qa as executeOnZone,
|
|
6002
|
+
ha as functionList,
|
|
6003
|
+
as as generateNonce,
|
|
6004
|
+
uh as generateQrCode,
|
|
5984
6005
|
N as get,
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
|
|
6006
|
+
Er as getFragments,
|
|
6007
|
+
wh as getModule,
|
|
6008
|
+
ih as getShortUrlQrCodeSvg,
|
|
6009
|
+
zo as getSystem,
|
|
6010
|
+
xs as hasToken,
|
|
5990
6011
|
kn as host,
|
|
5991
|
-
|
|
5992
|
-
|
|
5993
|
-
|
|
5994
|
-
|
|
5995
|
-
|
|
5996
|
-
|
|
5997
|
-
|
|
5998
|
-
|
|
5999
|
-
|
|
6000
|
-
|
|
6001
|
-
|
|
6002
|
-
|
|
6012
|
+
Ir as httpRoute,
|
|
6013
|
+
Tt as humanReadableByteCount,
|
|
6014
|
+
Ah as ignore,
|
|
6015
|
+
qn as invalidateToken,
|
|
6016
|
+
ju as isDriverCompiled,
|
|
6017
|
+
Pr as isFixedDevice,
|
|
6018
|
+
fs as isMobileSafari,
|
|
6019
|
+
Pn as isMock,
|
|
6020
|
+
ds as isNestedFrame,
|
|
6021
|
+
Lo as isOnline,
|
|
6022
|
+
ws as isSecure,
|
|
6023
|
+
Tn as isTrusted,
|
|
6003
6024
|
ri as is_connected,
|
|
6004
|
-
|
|
6005
|
-
|
|
6006
|
-
|
|
6007
|
-
|
|
6008
|
-
|
|
6009
|
-
|
|
6010
|
-
|
|
6011
|
-
|
|
6012
|
-
|
|
6013
|
-
|
|
6014
|
-
|
|
6015
|
-
|
|
6016
|
-
|
|
6017
|
-
|
|
6018
|
-
|
|
6019
|
-
|
|
6020
|
-
|
|
6021
|
-
|
|
6022
|
-
|
|
6023
|
-
|
|
6024
|
-
|
|
6025
|
-
|
|
6026
|
-
|
|
6027
|
-
|
|
6028
|
-
|
|
6025
|
+
lu as lastRequestTotal,
|
|
6026
|
+
oc as listChildMetadata,
|
|
6027
|
+
ru as listDashboardAlerts,
|
|
6028
|
+
Pc as listInterfaceRepositories,
|
|
6029
|
+
ec as listMetadata,
|
|
6030
|
+
tc as listMetadataHistory,
|
|
6031
|
+
qc as listRemoteRepositoryBranches,
|
|
6032
|
+
Uc as listRemoteRepositoryCommits,
|
|
6033
|
+
Tc as listRemoteRepositoryDefaultBranch,
|
|
6034
|
+
Cc as listRepositoryBranches,
|
|
6035
|
+
Mc as listRepositoryCommits,
|
|
6036
|
+
Dc as listRepositoryDefaultBranch,
|
|
6037
|
+
Nc as listRepositoryDriverDetails,
|
|
6038
|
+
Rc as listRepositoryDrivers,
|
|
6039
|
+
jc as listRepositoryFolders,
|
|
6040
|
+
cl as listSignagePlaylistMedia,
|
|
6041
|
+
al as listSignagePlaylistMediaRevisions,
|
|
6042
|
+
da as listSystemTriggers,
|
|
6043
|
+
fa as listSystemZones,
|
|
6044
|
+
wa as listTriggerInstances,
|
|
6045
|
+
za as listZoneTags,
|
|
6046
|
+
Va as listZoneTriggers,
|
|
6047
|
+
Eo as listen,
|
|
6048
|
+
As as listenForToken,
|
|
6049
|
+
mc as loadModule,
|
|
6029
6050
|
d as log,
|
|
6030
|
-
|
|
6031
|
-
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6051
|
+
Go as logout,
|
|
6052
|
+
qu as lookupDomainByEmail,
|
|
6053
|
+
_c as lookupModuleState,
|
|
6054
|
+
la as lookupSystemModuleState,
|
|
6055
|
+
nl as mediaThumbnail,
|
|
6056
|
+
Ao as mockSystem,
|
|
6057
|
+
gc as moduleRuntimeError,
|
|
6058
|
+
yc as moduleSettings,
|
|
6059
|
+
pc as moduleState,
|
|
6060
|
+
Bo as onlineState,
|
|
6061
|
+
ls as parseLinkHeader,
|
|
6041
6062
|
et as patch,
|
|
6042
6063
|
G as post,
|
|
6043
|
-
|
|
6064
|
+
Fc as pullRepositoryChanges,
|
|
6044
6065
|
Ne as put,
|
|
6045
|
-
|
|
6066
|
+
oh as qrCodeUrl,
|
|
6046
6067
|
O as query,
|
|
6047
|
-
|
|
6048
|
-
|
|
6049
|
-
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6068
|
-
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6072
|
-
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6080
|
-
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6068
|
+
Zo as queryAlertDashboards,
|
|
6069
|
+
iu as queryAlerts,
|
|
6070
|
+
fl as queryAnswers,
|
|
6071
|
+
hu as queryApplications,
|
|
6072
|
+
Hl as queryAssetCategories,
|
|
6073
|
+
Ql as queryAssetPurchaseOrders,
|
|
6074
|
+
Dl as queryAssetTypes,
|
|
6075
|
+
Il as queryAssets,
|
|
6076
|
+
mu as queryBrokers,
|
|
6077
|
+
Su as queryClusters,
|
|
6078
|
+
Ou as queryDomains,
|
|
6079
|
+
Uu as queryDrivers,
|
|
6080
|
+
Hu as queryEdges,
|
|
6081
|
+
pl as queryInvitations,
|
|
6082
|
+
Gu as queryLDAPSources,
|
|
6083
|
+
uc as queryModules,
|
|
6084
|
+
vc as queryOAuthSources,
|
|
6085
|
+
$u as queryProcesses,
|
|
6086
|
+
bl as queryQuestions,
|
|
6087
|
+
Ac as queryRepositories,
|
|
6088
|
+
zc as querySAMLSources,
|
|
6089
|
+
Vc as querySettings,
|
|
6090
|
+
Zl as queryShortUrls,
|
|
6091
|
+
Ka as querySignageMedia,
|
|
6092
|
+
rl as querySignagePlaylists,
|
|
6093
|
+
ch as queryStorages,
|
|
6094
|
+
xl as querySurveys,
|
|
6095
|
+
Zc as querySystems,
|
|
6096
|
+
Xc as querySystemsWithEmails,
|
|
6097
|
+
Sa as queryTriggers,
|
|
6098
|
+
Ua as queryUserGroups,
|
|
6099
|
+
Oa as queryUsers,
|
|
6100
|
+
dh as queryWebrtcRooms,
|
|
6101
|
+
ja as queryZones,
|
|
6102
|
+
Nu as recompileDriver,
|
|
6103
|
+
Ho as redirectUri,
|
|
6104
|
+
Tr as refreshAuthority,
|
|
6084
6105
|
Sn as refreshToken,
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6106
|
+
Ko as registerMockEndpoint,
|
|
6107
|
+
Sh as registerSystem,
|
|
6108
|
+
Fu as reloadDriver,
|
|
6109
|
+
E as remove,
|
|
6110
|
+
cu as removeAlert,
|
|
6111
|
+
nu as removeAlertDashboard,
|
|
6112
|
+
_u as removeApplication,
|
|
6113
|
+
Ul as removeAsset,
|
|
6114
|
+
Vl as removeAssetCategory,
|
|
6115
|
+
Kl as removeAssetPurchaseOrder,
|
|
6116
|
+
zl as removeAssetType,
|
|
6117
|
+
Cl as removeAssets,
|
|
6118
|
+
vu as removeBroker,
|
|
6119
|
+
Tu as removeDomain,
|
|
6120
|
+
Du as removeDriver,
|
|
6121
|
+
Vu as removeEdge,
|
|
6101
6122
|
be as removeFragment,
|
|
6102
|
-
|
|
6103
|
-
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6108
|
-
|
|
6109
|
-
|
|
6110
|
-
|
|
6111
|
-
|
|
6112
|
-
|
|
6113
|
-
|
|
6114
|
-
|
|
6115
|
-
|
|
6116
|
-
|
|
6117
|
-
|
|
6118
|
-
|
|
6119
|
-
|
|
6120
|
-
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6128
|
-
|
|
6129
|
-
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6123
|
+
gl as removeInvitation,
|
|
6124
|
+
Xu as removeLDAPSource,
|
|
6125
|
+
sc as removeMetadata,
|
|
6126
|
+
hc as removeModule,
|
|
6127
|
+
xc as removeOAuthSource,
|
|
6128
|
+
$l as removeQuestion,
|
|
6129
|
+
Ic as removeRepository,
|
|
6130
|
+
Bc as removeSAMLSource,
|
|
6131
|
+
Jc as removeSettings,
|
|
6132
|
+
nh as removeShortUrl,
|
|
6133
|
+
tl as removeSignageMedia,
|
|
6134
|
+
ul as removeSignagePlaylist,
|
|
6135
|
+
fh as removeStorage,
|
|
6136
|
+
El as removeSurvey,
|
|
6137
|
+
ra as removeSystem,
|
|
6138
|
+
sa as removeSystemModule,
|
|
6139
|
+
_a as removeSystemTrigger,
|
|
6140
|
+
Aa as removeTrigger,
|
|
6141
|
+
qa as removeUser,
|
|
6142
|
+
Da as removeUserResourceToken,
|
|
6143
|
+
Ba as removeZone,
|
|
6144
|
+
au as requestTotal,
|
|
6145
|
+
Hs as responseHeaders,
|
|
6146
|
+
Qu as retrieveEdgeToken,
|
|
6147
|
+
Fa as reviveUser,
|
|
6148
|
+
Ra as searchUserMetadata,
|
|
6149
|
+
Wo as setAPI_Key,
|
|
6150
|
+
Jo as setMockNotFoundHandler,
|
|
6151
|
+
Qo as setStorage,
|
|
6152
|
+
$s as setToken,
|
|
6153
|
+
Kc as settingsHistory,
|
|
6154
|
+
Vo as setup,
|
|
6155
|
+
sh as shortUrlQrCodePngUrl,
|
|
6156
|
+
rh as shortUrlRedirectUrl,
|
|
6136
6157
|
k as show,
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6146
|
-
|
|
6147
|
-
|
|
6148
|
-
|
|
6149
|
-
|
|
6150
|
-
|
|
6151
|
-
|
|
6152
|
-
|
|
6153
|
-
|
|
6154
|
-
|
|
6155
|
-
|
|
6156
|
-
|
|
6157
|
-
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6161
|
-
|
|
6162
|
-
|
|
6163
|
-
|
|
6164
|
-
|
|
6165
|
-
|
|
6166
|
-
|
|
6167
|
-
|
|
6168
|
-
|
|
6169
|
-
|
|
6170
|
-
|
|
6171
|
-
|
|
6172
|
-
|
|
6173
|
-
|
|
6174
|
-
|
|
6175
|
-
|
|
6176
|
-
|
|
6177
|
-
|
|
6178
|
-
|
|
6179
|
-
|
|
6180
|
-
|
|
6181
|
-
|
|
6158
|
+
su as showAlert,
|
|
6159
|
+
Xo as showAlertDashboard,
|
|
6160
|
+
fu as showApplication,
|
|
6161
|
+
Pl as showAsset,
|
|
6162
|
+
Wl as showAssetCategory,
|
|
6163
|
+
Yl as showAssetPurchaseOrder,
|
|
6164
|
+
Nl as showAssetType,
|
|
6165
|
+
yu as showBroker,
|
|
6166
|
+
ku as showCluster,
|
|
6167
|
+
Eu as showDomain,
|
|
6168
|
+
Ru as showDriver,
|
|
6169
|
+
Wu as showEdge,
|
|
6170
|
+
_l as showInvitation,
|
|
6171
|
+
Ju as showLDAPSource,
|
|
6172
|
+
nc as showMetadata,
|
|
6173
|
+
cc as showModule,
|
|
6174
|
+
Sc as showOAuthSource,
|
|
6175
|
+
vl as showQuestion,
|
|
6176
|
+
wc as showRepository,
|
|
6177
|
+
Hc as showSAMLSource,
|
|
6178
|
+
Qc as showSettings,
|
|
6179
|
+
Xl as showShortUrl,
|
|
6180
|
+
Ga as showSignage,
|
|
6181
|
+
Za as showSignageMedia,
|
|
6182
|
+
Ja as showSignageMetrics,
|
|
6183
|
+
il as showSignagePlaylist,
|
|
6184
|
+
ah as showStorage,
|
|
6185
|
+
Al as showSurvey,
|
|
6186
|
+
ea as showSystem,
|
|
6187
|
+
ba as showSystemTrigger,
|
|
6188
|
+
ka as showTrigger,
|
|
6189
|
+
Ea as showUser,
|
|
6190
|
+
ph as showWebrtcRoom,
|
|
6191
|
+
Ha as showZone,
|
|
6192
|
+
ps as simplifiedTime,
|
|
6193
|
+
fc as startModule,
|
|
6194
|
+
oa as startSystem,
|
|
6195
|
+
Oo as status,
|
|
6196
|
+
dc as stopModule,
|
|
6197
|
+
ua as stopSystem,
|
|
6198
|
+
ya as systemControlUrl,
|
|
6199
|
+
ga as systemMetadata,
|
|
6200
|
+
aa as systemModuleState,
|
|
6201
|
+
ma as systemSettings,
|
|
6202
|
+
xu as terminateProcess,
|
|
6182
6203
|
X as token,
|
|
6183
|
-
|
|
6184
|
-
|
|
6185
|
-
|
|
6186
|
-
|
|
6187
|
-
|
|
6188
|
-
|
|
6189
|
-
|
|
6190
|
-
|
|
6191
|
-
|
|
6192
|
-
|
|
6193
|
-
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
|
|
6202
|
-
|
|
6203
|
-
|
|
6204
|
-
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
|
|
6210
|
-
|
|
6211
|
-
|
|
6212
|
-
|
|
6213
|
-
|
|
6214
|
-
|
|
6215
|
-
|
|
6216
|
-
|
|
6217
|
-
|
|
6218
|
-
|
|
6219
|
-
|
|
6220
|
-
|
|
6221
|
-
|
|
6222
|
-
|
|
6223
|
-
|
|
6224
|
-
|
|
6225
|
-
|
|
6204
|
+
Po as unbind,
|
|
6205
|
+
T as update,
|
|
6206
|
+
ou as updateAlert,
|
|
6207
|
+
eu as updateAlertDashboard,
|
|
6208
|
+
du as updateApplication,
|
|
6209
|
+
Tl as updateAsset,
|
|
6210
|
+
Ll as updateAssetCategory,
|
|
6211
|
+
Gl as updateAssetPurchaseOrder,
|
|
6212
|
+
Fl as updateAssetType,
|
|
6213
|
+
Ml as updateAssets,
|
|
6214
|
+
gu as updateBroker,
|
|
6215
|
+
Iu as updateDomain,
|
|
6216
|
+
Mu as updateDriver,
|
|
6217
|
+
Lu as updateEdge,
|
|
6218
|
+
ml as updateInvitation,
|
|
6219
|
+
Ku as updateLDAPSource,
|
|
6220
|
+
rc as updateMetadata,
|
|
6221
|
+
ac as updateModule,
|
|
6222
|
+
kc as updateOAuthSource,
|
|
6223
|
+
kl as updateQuestion,
|
|
6224
|
+
Oc as updateRepository,
|
|
6225
|
+
Wc as updateSAMLSource,
|
|
6226
|
+
Yc as updateSettings,
|
|
6227
|
+
eh as updateShortUrl,
|
|
6228
|
+
Xa as updateSignageMedia,
|
|
6229
|
+
sl as updateSignagePlaylist,
|
|
6230
|
+
hl as updateSignagePlaylistMedia,
|
|
6231
|
+
lh as updateStorage,
|
|
6232
|
+
wl as updateSurvey,
|
|
6233
|
+
ta as updateSystem,
|
|
6234
|
+
va as updateSystemTrigger,
|
|
6235
|
+
$a as updateTrigger,
|
|
6236
|
+
Pa as updateUser,
|
|
6237
|
+
Wa as updateZone,
|
|
6238
|
+
Ca as userMetadata,
|
|
6239
|
+
Na as userResourceToken,
|
|
6240
|
+
Io as value,
|
|
6241
|
+
mh as webrtcGuestEntry,
|
|
6242
|
+
yh as webrtcGuestExit,
|
|
6243
|
+
gh as webrtcKickUser,
|
|
6244
|
+
_h as webrtcSessionMembers,
|
|
6245
|
+
vh as webrtcSignallerUrl,
|
|
6246
|
+
bh as webrtcTransferUser,
|
|
6226
6247
|
_n as websocketRoute,
|
|
6227
|
-
|
|
6248
|
+
Ya as zoneMetadata
|
|
6228
6249
|
};
|
|
6229
6250
|
//# sourceMappingURL=index.es.js.map
|