@openc3/js-common 6.4.0 → 6.4.2
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/services.cjs +8 -8
- package/dist/services.cjs.map +1 -1
- package/dist/services.js +196 -196
- package/dist/services.js.map +1 -1
- package/package.json +1 -1
package/dist/services.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var Gt = Object.defineProperty;
|
|
2
2
|
var Zt = (n, e, t) => e in n ? Gt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
-
var
|
|
3
|
+
var v = (n, e, t) => Zt(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
4
|
function mt(n, e) {
|
|
5
5
|
return function() {
|
|
6
6
|
return n.apply(e, arguments);
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
const { toString: Qt } = Object.prototype, { getPrototypeOf:
|
|
9
|
+
const { toString: Qt } = Object.prototype, { getPrototypeOf: Fe } = Object, { iterator: de, toStringTag: gt } = Symbol, fe = /* @__PURE__ */ ((n) => (e) => {
|
|
10
10
|
const t = Qt.call(e);
|
|
11
11
|
return n[t] || (n[t] = t.slice(8, -1).toLowerCase());
|
|
12
12
|
})(/* @__PURE__ */ Object.create(null)), $ = (n) => (n = n.toLowerCase(), (e) => fe(e) === n), pe = (n) => (e) => typeof e === n, { isArray: K } = Array, Y = pe("undefined");
|
|
@@ -18,10 +18,10 @@ function en(n) {
|
|
|
18
18
|
let e;
|
|
19
19
|
return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? e = ArrayBuffer.isView(n) : e = n && n.buffer && bt(n.buffer), e;
|
|
20
20
|
}
|
|
21
|
-
const tn = pe("string"), T = pe("function"),
|
|
21
|
+
const tn = pe("string"), T = pe("function"), yt = pe("number"), me = (n) => n !== null && typeof n == "object", nn = (n) => n === !0 || n === !1, ce = (n) => {
|
|
22
22
|
if (fe(n) !== "object")
|
|
23
23
|
return !1;
|
|
24
|
-
const e =
|
|
24
|
+
const e = Fe(n);
|
|
25
25
|
return (e === null || e === Object.prototype || Object.getPrototypeOf(e) === null) && !(gt in n) && !(de in n);
|
|
26
26
|
}, sn = $("Date"), rn = $("File"), on = $("Blob"), cn = $("FileList"), an = (n) => me(n) && T(n.pipe), ln = (n) => {
|
|
27
27
|
let e;
|
|
@@ -42,7 +42,7 @@ function ee(n, e, { allOwnKeys: t = !1 } = {}) {
|
|
|
42
42
|
c = i[s], e.call(null, n[c], c, n);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function wt(n, e) {
|
|
46
46
|
e = e.toLowerCase();
|
|
47
47
|
const t = Object.keys(n);
|
|
48
48
|
let s = t.length, r;
|
|
@@ -52,10 +52,10 @@ function yt(n, e) {
|
|
|
52
52
|
return null;
|
|
53
53
|
}
|
|
54
54
|
const H = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, _t = (n) => !Y(n) && n !== H;
|
|
55
|
-
function
|
|
55
|
+
function Te() {
|
|
56
56
|
const { caseless: n } = _t(this) && this || {}, e = {}, t = (s, r) => {
|
|
57
|
-
const i = n &&
|
|
58
|
-
ce(e[i]) && ce(s) ? e[i] =
|
|
57
|
+
const i = n && wt(e, r) || r;
|
|
58
|
+
ce(e[i]) && ce(s) ? e[i] = Te(e[i], s) : ce(s) ? e[i] = Te({}, s) : K(s) ? e[i] = s.slice() : e[i] = s;
|
|
59
59
|
};
|
|
60
60
|
for (let s = 0, r = arguments.length; s < r; s++)
|
|
61
61
|
arguments[s] && ee(arguments[s], t);
|
|
@@ -63,18 +63,18 @@ function Ce() {
|
|
|
63
63
|
}
|
|
64
64
|
const gn = (n, e, t, { allOwnKeys: s } = {}) => (ee(e, (r, i) => {
|
|
65
65
|
t && T(r) ? n[i] = mt(r, t) : n[i] = r;
|
|
66
|
-
}, { allOwnKeys: s }), n), bn = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n),
|
|
66
|
+
}, { allOwnKeys: s }), n), bn = (n) => (n.charCodeAt(0) === 65279 && (n = n.slice(1)), n), yn = (n, e, t, s) => {
|
|
67
67
|
n.prototype = Object.create(e.prototype, s), n.prototype.constructor = n, Object.defineProperty(n, "super", {
|
|
68
68
|
value: e.prototype
|
|
69
69
|
}), t && Object.assign(n.prototype, t);
|
|
70
|
-
},
|
|
70
|
+
}, wn = (n, e, t, s) => {
|
|
71
71
|
let r, i, o;
|
|
72
72
|
const c = {};
|
|
73
73
|
if (e = e || {}, n == null) return e;
|
|
74
74
|
do {
|
|
75
75
|
for (r = Object.getOwnPropertyNames(n), i = r.length; i-- > 0; )
|
|
76
76
|
o = r[i], (!s || s(o, n, e)) && !c[o] && (e[o] = n[o], c[o] = !0);
|
|
77
|
-
n = t !== !1 &&
|
|
77
|
+
n = t !== !1 && Fe(n);
|
|
78
78
|
} while (n && (!t || t(n, e)) && n !== Object.prototype);
|
|
79
79
|
return e;
|
|
80
80
|
}, _n = (n, e, t) => {
|
|
@@ -85,12 +85,12 @@ const gn = (n, e, t, { allOwnKeys: s } = {}) => (ee(e, (r, i) => {
|
|
|
85
85
|
if (!n) return null;
|
|
86
86
|
if (K(n)) return n;
|
|
87
87
|
let e = n.length;
|
|
88
|
-
if (!
|
|
88
|
+
if (!yt(e)) return null;
|
|
89
89
|
const t = new Array(e);
|
|
90
90
|
for (; e-- > 0; )
|
|
91
91
|
t[e] = n[e];
|
|
92
92
|
return t;
|
|
93
|
-
}, Sn = /* @__PURE__ */ ((n) => (e) => n && e instanceof n)(typeof Uint8Array < "u" &&
|
|
93
|
+
}, Sn = /* @__PURE__ */ ((n) => (e) => n && e instanceof n)(typeof Uint8Array < "u" && Fe(Uint8Array)), xn = (n, e) => {
|
|
94
94
|
const s = (n && n[de]).call(n);
|
|
95
95
|
let r;
|
|
96
96
|
for (; (r = s.next()) && !r.done; ) {
|
|
@@ -141,7 +141,7 @@ const gn = (n, e, t, { allOwnKeys: s } = {}) => (ee(e, (r, i) => {
|
|
|
141
141
|
function In(n) {
|
|
142
142
|
return !!(n && T(n.append) && n[gt] === "FormData" && n[de]);
|
|
143
143
|
}
|
|
144
|
-
const
|
|
144
|
+
const Ln = (n) => {
|
|
145
145
|
const e = new Array(10), t = (s, r) => {
|
|
146
146
|
if (me(s)) {
|
|
147
147
|
if (e.indexOf(s) >= 0)
|
|
@@ -158,7 +158,7 @@ const vn = (n) => {
|
|
|
158
158
|
return s;
|
|
159
159
|
};
|
|
160
160
|
return t(n, 0);
|
|
161
|
-
},
|
|
161
|
+
}, vn = $("AsyncFunction"), jn = (n) => n && (me(n) || T(n)) && T(n.then) && T(n.catch), St = ((n, e) => n ? setImmediate : e ? ((t, s) => (H.addEventListener("message", ({ source: r, data: i }) => {
|
|
162
162
|
r === H && i === t && s.length && s.shift()();
|
|
163
163
|
}, !1), (r) => {
|
|
164
164
|
s.push(r), H.postMessage(t, "*");
|
|
@@ -172,7 +172,7 @@ const vn = (n) => {
|
|
|
172
172
|
isFormData: ln,
|
|
173
173
|
isArrayBufferView: en,
|
|
174
174
|
isString: tn,
|
|
175
|
-
isNumber:
|
|
175
|
+
isNumber: yt,
|
|
176
176
|
isBoolean: nn,
|
|
177
177
|
isObject: me,
|
|
178
178
|
isPlainObject: ce,
|
|
@@ -191,12 +191,12 @@ const vn = (n) => {
|
|
|
191
191
|
isTypedArray: Sn,
|
|
192
192
|
isFileList: cn,
|
|
193
193
|
forEach: ee,
|
|
194
|
-
merge:
|
|
194
|
+
merge: Te,
|
|
195
195
|
extend: gn,
|
|
196
196
|
trim: mn,
|
|
197
197
|
stripBOM: bn,
|
|
198
|
-
inherits:
|
|
199
|
-
toFlatObject:
|
|
198
|
+
inherits: yn,
|
|
199
|
+
toFlatObject: wn,
|
|
200
200
|
kindOf: fe,
|
|
201
201
|
kindOfTest: $,
|
|
202
202
|
endsWith: _n,
|
|
@@ -213,21 +213,21 @@ const vn = (n) => {
|
|
|
213
213
|
toCamelCase: On,
|
|
214
214
|
noop: Nn,
|
|
215
215
|
toFiniteNumber: Pn,
|
|
216
|
-
findKey:
|
|
216
|
+
findKey: wt,
|
|
217
217
|
global: H,
|
|
218
218
|
isContextDefined: _t,
|
|
219
219
|
isSpecCompliantForm: In,
|
|
220
|
-
toJSONObject:
|
|
221
|
-
isAsyncFn:
|
|
220
|
+
toJSONObject: Ln,
|
|
221
|
+
isAsyncFn: vn,
|
|
222
222
|
isThenable: jn,
|
|
223
223
|
setImmediate: St,
|
|
224
224
|
asap: $n,
|
|
225
225
|
isIterable: Fn
|
|
226
226
|
};
|
|
227
|
-
function
|
|
227
|
+
function y(n, e, t, s, r) {
|
|
228
228
|
Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = n, this.name = "AxiosError", e && (this.code = e), t && (this.config = t), s && (this.request = s), r && (this.response = r, this.status = r.status ? r.status : null);
|
|
229
229
|
}
|
|
230
|
-
l.inherits(
|
|
230
|
+
l.inherits(y, Error, {
|
|
231
231
|
toJSON: function() {
|
|
232
232
|
return {
|
|
233
233
|
// Standard
|
|
@@ -248,7 +248,7 @@ l.inherits(w, Error, {
|
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
250
|
});
|
|
251
|
-
const xt =
|
|
251
|
+
const xt = y.prototype, Rt = {};
|
|
252
252
|
[
|
|
253
253
|
"ERR_BAD_OPTION_VALUE",
|
|
254
254
|
"ERR_BAD_OPTION",
|
|
@@ -266,16 +266,16 @@ const xt = w.prototype, Rt = {};
|
|
|
266
266
|
].forEach((n) => {
|
|
267
267
|
Rt[n] = { value: n };
|
|
268
268
|
});
|
|
269
|
-
Object.defineProperties(
|
|
269
|
+
Object.defineProperties(y, Rt);
|
|
270
270
|
Object.defineProperty(xt, "isAxiosError", { value: !0 });
|
|
271
|
-
|
|
271
|
+
y.from = (n, e, t, s, r, i) => {
|
|
272
272
|
const o = Object.create(xt);
|
|
273
273
|
return l.toFlatObject(n, o, function(h) {
|
|
274
274
|
return h !== Error.prototype;
|
|
275
|
-
}, (c) => c !== "isAxiosError"),
|
|
275
|
+
}, (c) => c !== "isAxiosError"), y.call(o, n.message, e, t, s, r), o.cause = n, o.name = n.name, i && Object.assign(o, i), o;
|
|
276
276
|
};
|
|
277
277
|
const Un = null;
|
|
278
|
-
function
|
|
278
|
+
function ke(n) {
|
|
279
279
|
return l.isPlainObject(n) || l.isArray(n);
|
|
280
280
|
}
|
|
281
281
|
function At(n) {
|
|
@@ -287,7 +287,7 @@ function We(n, e, t) {
|
|
|
287
287
|
}).join(t ? "." : "") : e;
|
|
288
288
|
}
|
|
289
289
|
function Dn(n) {
|
|
290
|
-
return l.isArray(n) && !n.some(
|
|
290
|
+
return l.isArray(n) && !n.some(ke);
|
|
291
291
|
}
|
|
292
292
|
const qn = l.toFlatObject(l, {}, null, function(e) {
|
|
293
293
|
return /^is[A-Z]/.test(e);
|
|
@@ -310,7 +310,7 @@ function ge(n, e, t) {
|
|
|
310
310
|
if (l.isDate(f))
|
|
311
311
|
return f.toISOString();
|
|
312
312
|
if (!h && l.isBlob(f))
|
|
313
|
-
throw new
|
|
313
|
+
throw new y("Blob is not supported. Use a Buffer instead.");
|
|
314
314
|
return l.isArrayBuffer(f) || l.isTypedArray(f) ? h && typeof Blob == "function" ? new Blob([f]) : Buffer.from(f) : f;
|
|
315
315
|
}
|
|
316
316
|
function a(f, m, p) {
|
|
@@ -327,12 +327,12 @@ function ge(n, e, t) {
|
|
|
327
327
|
);
|
|
328
328
|
}), !1;
|
|
329
329
|
}
|
|
330
|
-
return
|
|
330
|
+
return ke(f) ? !0 : (e.append(We(p, m, i), u(f)), !1);
|
|
331
331
|
}
|
|
332
332
|
const d = [], g = Object.assign(qn, {
|
|
333
333
|
defaultVisitor: a,
|
|
334
334
|
convertValue: u,
|
|
335
|
-
isVisitable:
|
|
335
|
+
isVisitable: ke
|
|
336
336
|
});
|
|
337
337
|
function b(f, m) {
|
|
338
338
|
if (!l.isUndefined(f)) {
|
|
@@ -367,10 +367,10 @@ function Ke(n) {
|
|
|
367
367
|
return e[s];
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Ue(n, e) {
|
|
371
371
|
this._pairs = [], n && ge(n, this, e);
|
|
372
372
|
}
|
|
373
|
-
const Ot =
|
|
373
|
+
const Ot = Ue.prototype;
|
|
374
374
|
Ot.append = function(e, t) {
|
|
375
375
|
this._pairs.push([e, t]);
|
|
376
376
|
};
|
|
@@ -394,7 +394,7 @@ function Ct(n, e, t) {
|
|
|
394
394
|
});
|
|
395
395
|
const r = t && t.serialize;
|
|
396
396
|
let i;
|
|
397
|
-
if (r ? i = r(e, t) : i = l.isURLSearchParams(e) ? e.toString() : new
|
|
397
|
+
if (r ? i = r(e, t) : i = l.isURLSearchParams(e) ? e.toString() : new Ue(e, t).toString(s), i) {
|
|
398
398
|
const o = n.indexOf("#");
|
|
399
399
|
o !== -1 && (n = n.slice(0, o)), n += (n.indexOf("?") === -1 ? "?" : "&") + i;
|
|
400
400
|
}
|
|
@@ -458,7 +458,7 @@ const Tt = {
|
|
|
458
458
|
silentJSONParsing: !0,
|
|
459
459
|
forcedJSONParsing: !0,
|
|
460
460
|
clarifyTimeoutError: !1
|
|
461
|
-
}, Mn = typeof URLSearchParams < "u" ? URLSearchParams :
|
|
461
|
+
}, Mn = typeof URLSearchParams < "u" ? URLSearchParams : Ue, Hn = typeof FormData < "u" ? FormData : null, zn = typeof Blob < "u" ? Blob : null, Vn = {
|
|
462
462
|
isBrowser: !0,
|
|
463
463
|
classes: {
|
|
464
464
|
URLSearchParams: Mn,
|
|
@@ -466,13 +466,13 @@ const Tt = {
|
|
|
466
466
|
Blob: zn
|
|
467
467
|
},
|
|
468
468
|
protocols: ["http", "https", "file", "blob", "url", "data"]
|
|
469
|
-
},
|
|
470
|
-
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Kn =
|
|
469
|
+
}, De = typeof window < "u" && typeof document < "u", Ne = typeof navigator == "object" && navigator || void 0, Jn = De && (!Ne || ["ReactNative", "NativeScript", "NS"].indexOf(Ne.product) < 0), Wn = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
|
|
470
|
+
self instanceof WorkerGlobalScope && typeof self.importScripts == "function", Kn = De && window.location.href || "http://localhost", Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
471
471
|
__proto__: null,
|
|
472
|
-
hasBrowserEnv:
|
|
472
|
+
hasBrowserEnv: De,
|
|
473
473
|
hasStandardBrowserEnv: Jn,
|
|
474
474
|
hasStandardBrowserWebWorkerEnv: Wn,
|
|
475
|
-
navigator:
|
|
475
|
+
navigator: Ne,
|
|
476
476
|
origin: Kn
|
|
477
477
|
}, Symbol.toStringTag, { value: "Module" })), O = {
|
|
478
478
|
...Xn,
|
|
@@ -560,7 +560,7 @@ const te = {
|
|
|
560
560
|
return JSON.parse(e);
|
|
561
561
|
} catch (c) {
|
|
562
562
|
if (o)
|
|
563
|
-
throw c.name === "SyntaxError" ?
|
|
563
|
+
throw c.name === "SyntaxError" ? y.from(c, y.ERR_BAD_RESPONSE, this, null, this.response) : c;
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
566
|
return e;
|
|
@@ -631,7 +631,7 @@ function ns(n) {
|
|
|
631
631
|
return e;
|
|
632
632
|
}
|
|
633
633
|
const ss = (n) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(n.trim());
|
|
634
|
-
function
|
|
634
|
+
function Re(n, e, t, s, r) {
|
|
635
635
|
if (l.isFunction(s))
|
|
636
636
|
return s.call(this, e, t);
|
|
637
637
|
if (r && (e = t), !!l.isString(e)) {
|
|
@@ -705,7 +705,7 @@ let k = class {
|
|
|
705
705
|
has(e, t) {
|
|
706
706
|
if (e = Z(e), e) {
|
|
707
707
|
const s = l.findKey(this, e);
|
|
708
|
-
return !!(s && this[s] !== void 0 && (!t ||
|
|
708
|
+
return !!(s && this[s] !== void 0 && (!t || Re(this, this[s], s, t)));
|
|
709
709
|
}
|
|
710
710
|
return !1;
|
|
711
711
|
}
|
|
@@ -715,7 +715,7 @@ let k = class {
|
|
|
715
715
|
function i(o) {
|
|
716
716
|
if (o = Z(o), o) {
|
|
717
717
|
const c = l.findKey(s, o);
|
|
718
|
-
c && (!t ||
|
|
718
|
+
c && (!t || Re(s, s[c], c, t)) && (delete s[c], r = !0);
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
return l.isArray(e) ? e.forEach(i) : i(e), r;
|
|
@@ -725,7 +725,7 @@ let k = class {
|
|
|
725
725
|
let s = t.length, r = !1;
|
|
726
726
|
for (; s--; ) {
|
|
727
727
|
const i = t[s];
|
|
728
|
-
(!e ||
|
|
728
|
+
(!e || Re(this, this[i], i, e, !0)) && (delete this[i], r = !0);
|
|
729
729
|
}
|
|
730
730
|
return r;
|
|
731
731
|
}
|
|
@@ -792,7 +792,7 @@ l.reduceDescriptors(k.prototype, ({ value: n }, e) => {
|
|
|
792
792
|
};
|
|
793
793
|
});
|
|
794
794
|
l.freezeMethods(k);
|
|
795
|
-
function
|
|
795
|
+
function Ae(n, e) {
|
|
796
796
|
const t = this || te, s = e || t, r = k.from(s.headers);
|
|
797
797
|
let i = s.data;
|
|
798
798
|
return l.forEach(n, function(c) {
|
|
@@ -803,16 +803,16 @@ function Nt(n) {
|
|
|
803
803
|
return !!(n && n.__CANCEL__);
|
|
804
804
|
}
|
|
805
805
|
function X(n, e, t) {
|
|
806
|
-
|
|
806
|
+
y.call(this, n ?? "canceled", y.ERR_CANCELED, e, t), this.name = "CanceledError";
|
|
807
807
|
}
|
|
808
|
-
l.inherits(X,
|
|
808
|
+
l.inherits(X, y, {
|
|
809
809
|
__CANCEL__: !0
|
|
810
810
|
});
|
|
811
811
|
function Pt(n, e, t) {
|
|
812
812
|
const s = t.config.validateStatus;
|
|
813
|
-
!t.status || !s || s(t.status) ? n(t) : e(new
|
|
813
|
+
!t.status || !s || s(t.status) ? n(t) : e(new y(
|
|
814
814
|
"Request failed with status code " + t.status,
|
|
815
|
-
[
|
|
815
|
+
[y.ERR_BAD_REQUEST, y.ERR_BAD_RESPONSE][Math.floor(t.status / 100) - 4],
|
|
816
816
|
t.config,
|
|
817
817
|
t.request,
|
|
818
818
|
t
|
|
@@ -981,7 +981,7 @@ function V(n, e) {
|
|
|
981
981
|
l.isUndefined(g) && d !== c || (t[a] = g);
|
|
982
982
|
}), t;
|
|
983
983
|
}
|
|
984
|
-
const
|
|
984
|
+
const Lt = (n) => {
|
|
985
985
|
const e = V({}, n);
|
|
986
986
|
let { data: t, withXSRFToken: s, xsrfHeaderName: r, xsrfCookieName: i, headers: o, auth: c } = e;
|
|
987
987
|
e.headers = o = k.from(o), e.url = Ct(It(e.baseURL, e.url, e.allowAbsoluteUrls), n.params, n.paramsSerializer), c && o.set(
|
|
@@ -1004,7 +1004,7 @@ const vt = (n) => {
|
|
|
1004
1004
|
return e;
|
|
1005
1005
|
}, fs = typeof XMLHttpRequest < "u", ps = fs && function(n) {
|
|
1006
1006
|
return new Promise(function(t, s) {
|
|
1007
|
-
const r =
|
|
1007
|
+
const r = Lt(n);
|
|
1008
1008
|
let i = r.data;
|
|
1009
1009
|
const o = k.from(r.headers).normalize();
|
|
1010
1010
|
let { responseType: c, onUploadProgress: h, onDownloadProgress: u } = r, a, d, g, b, f;
|
|
@@ -1035,15 +1035,15 @@ const vt = (n) => {
|
|
|
1035
1035
|
"onloadend" in p ? p.onloadend = _ : p.onreadystatechange = function() {
|
|
1036
1036
|
!p || p.readyState !== 4 || p.status === 0 && !(p.responseURL && p.responseURL.indexOf("file:") === 0) || setTimeout(_);
|
|
1037
1037
|
}, p.onabort = function() {
|
|
1038
|
-
p && (s(new
|
|
1038
|
+
p && (s(new y("Request aborted", y.ECONNABORTED, n, p)), p = null);
|
|
1039
1039
|
}, p.onerror = function() {
|
|
1040
|
-
s(new
|
|
1040
|
+
s(new y("Network Error", y.ERR_NETWORK, n, p)), p = null;
|
|
1041
1041
|
}, p.ontimeout = function() {
|
|
1042
1042
|
let N = r.timeout ? "timeout of " + r.timeout + "ms exceeded" : "timeout exceeded";
|
|
1043
1043
|
const x = r.transitional || Tt;
|
|
1044
|
-
r.timeoutErrorMessage && (N = r.timeoutErrorMessage), s(new
|
|
1044
|
+
r.timeoutErrorMessage && (N = r.timeoutErrorMessage), s(new y(
|
|
1045
1045
|
N,
|
|
1046
|
-
x.clarifyTimeoutError ?
|
|
1046
|
+
x.clarifyTimeoutError ? y.ETIMEDOUT : y.ECONNABORTED,
|
|
1047
1047
|
n,
|
|
1048
1048
|
p
|
|
1049
1049
|
)), p = null;
|
|
@@ -1054,7 +1054,7 @@ const vt = (n) => {
|
|
|
1054
1054
|
}, r.cancelToken && r.cancelToken.subscribe(a), r.signal && (r.signal.aborted ? a() : r.signal.addEventListener("abort", a)));
|
|
1055
1055
|
const E = os(r.url);
|
|
1056
1056
|
if (E && O.protocols.indexOf(E) === -1) {
|
|
1057
|
-
s(new
|
|
1057
|
+
s(new y("Unsupported protocol " + E + ":", y.ERR_BAD_REQUEST, n));
|
|
1058
1058
|
return;
|
|
1059
1059
|
}
|
|
1060
1060
|
p.send(i || null);
|
|
@@ -1067,11 +1067,11 @@ const vt = (n) => {
|
|
|
1067
1067
|
if (!r) {
|
|
1068
1068
|
r = !0, c();
|
|
1069
1069
|
const a = u instanceof Error ? u : this.reason;
|
|
1070
|
-
s.abort(a instanceof
|
|
1070
|
+
s.abort(a instanceof y ? a : new X(a instanceof Error ? a.message : a));
|
|
1071
1071
|
}
|
|
1072
1072
|
};
|
|
1073
1073
|
let o = e && setTimeout(() => {
|
|
1074
|
-
o = null, i(new
|
|
1074
|
+
o = null, i(new y(`timeout ${e} of ms exceeded`, y.ETIMEDOUT));
|
|
1075
1075
|
}, e);
|
|
1076
1076
|
const c = () => {
|
|
1077
1077
|
n && (o && clearTimeout(o), o = null, n.forEach((u) => {
|
|
@@ -1092,9 +1092,9 @@ const vt = (n) => {
|
|
|
1092
1092
|
for (; s < t; )
|
|
1093
1093
|
r = s + e, yield n.slice(s, r), s = r;
|
|
1094
1094
|
}, bs = async function* (n, e) {
|
|
1095
|
-
for await (const t of
|
|
1095
|
+
for await (const t of ys(n))
|
|
1096
1096
|
yield* gs(t, e);
|
|
1097
|
-
},
|
|
1097
|
+
}, ys = async function* (n) {
|
|
1098
1098
|
if (n[Symbol.asyncIterator]) {
|
|
1099
1099
|
yield* n;
|
|
1100
1100
|
return;
|
|
@@ -1139,13 +1139,13 @@ const vt = (n) => {
|
|
|
1139
1139
|
}, {
|
|
1140
1140
|
highWaterMark: 2
|
|
1141
1141
|
});
|
|
1142
|
-
}, be = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function",
|
|
1142
|
+
}, be = typeof fetch == "function" && typeof Request == "function" && typeof Response == "function", vt = be && typeof ReadableStream == "function", ws = be && (typeof TextEncoder == "function" ? /* @__PURE__ */ ((n) => (e) => n.encode(e))(new TextEncoder()) : async (n) => new Uint8Array(await new Response(n).arrayBuffer())), jt = (n, ...e) => {
|
|
1143
1143
|
try {
|
|
1144
1144
|
return !!n(...e);
|
|
1145
1145
|
} catch {
|
|
1146
1146
|
return !1;
|
|
1147
1147
|
}
|
|
1148
|
-
}, _s =
|
|
1148
|
+
}, _s = vt && jt(() => {
|
|
1149
1149
|
let n = !1;
|
|
1150
1150
|
const e = new Request(O.origin, {
|
|
1151
1151
|
body: new ReadableStream(),
|
|
@@ -1155,13 +1155,13 @@ const vt = (n) => {
|
|
|
1155
1155
|
}
|
|
1156
1156
|
}).headers.has("Content-Type");
|
|
1157
1157
|
return n && !e;
|
|
1158
|
-
}), tt = 64 * 1024,
|
|
1159
|
-
stream:
|
|
1158
|
+
}), tt = 64 * 1024, Pe = vt && jt(() => l.isReadableStream(new Response("").body)), he = {
|
|
1159
|
+
stream: Pe && ((n) => n.body)
|
|
1160
1160
|
};
|
|
1161
1161
|
be && ((n) => {
|
|
1162
1162
|
["text", "arrayBuffer", "blob", "formData", "stream"].forEach((e) => {
|
|
1163
1163
|
!he[e] && (he[e] = l.isFunction(n[e]) ? (t) => t[e]() : (t, s) => {
|
|
1164
|
-
throw new
|
|
1164
|
+
throw new y(`Response type '${e}' is not supported`, y.ERR_NOT_SUPPORT, s);
|
|
1165
1165
|
});
|
|
1166
1166
|
});
|
|
1167
1167
|
})(new Response());
|
|
@@ -1178,7 +1178,7 @@ const Es = async (n) => {
|
|
|
1178
1178
|
if (l.isArrayBufferView(n) || l.isArrayBuffer(n))
|
|
1179
1179
|
return n.byteLength;
|
|
1180
1180
|
if (l.isURLSearchParams(n) && (n = n + ""), l.isString(n))
|
|
1181
|
-
return (await
|
|
1181
|
+
return (await ws(n)).byteLength;
|
|
1182
1182
|
}, Ss = async (n, e) => {
|
|
1183
1183
|
const t = l.toFiniteNumber(n.getContentLength());
|
|
1184
1184
|
return t ?? Es(e);
|
|
@@ -1196,7 +1196,7 @@ const Es = async (n) => {
|
|
|
1196
1196
|
headers: a,
|
|
1197
1197
|
withCredentials: d = "same-origin",
|
|
1198
1198
|
fetchOptions: g
|
|
1199
|
-
} =
|
|
1199
|
+
} = Lt(n);
|
|
1200
1200
|
u = u ? (u + "").toLowerCase() : "text";
|
|
1201
1201
|
let b = ms([r, i && i.toAbortSignal()], o), f;
|
|
1202
1202
|
const m = b && b.unsubscribe && (() => {
|
|
@@ -1230,8 +1230,8 @@ const Es = async (n) => {
|
|
|
1230
1230
|
credentials: _ ? d : void 0
|
|
1231
1231
|
});
|
|
1232
1232
|
let E = await fetch(f);
|
|
1233
|
-
const S =
|
|
1234
|
-
if (
|
|
1233
|
+
const S = Pe && (u === "stream" || u === "response");
|
|
1234
|
+
if (Pe && (c || S && m)) {
|
|
1235
1235
|
const x = {};
|
|
1236
1236
|
["status", "statusText", "headers"].forEach((U) => {
|
|
1237
1237
|
x[U] = E[U];
|
|
@@ -1261,18 +1261,18 @@ const Es = async (n) => {
|
|
|
1261
1261
|
});
|
|
1262
1262
|
} catch (_) {
|
|
1263
1263
|
throw m && m(), _ && _.name === "TypeError" && /Load failed|fetch/i.test(_.message) ? Object.assign(
|
|
1264
|
-
new
|
|
1264
|
+
new y("Network Error", y.ERR_NETWORK, n, f),
|
|
1265
1265
|
{
|
|
1266
1266
|
cause: _.cause || _
|
|
1267
1267
|
}
|
|
1268
|
-
) :
|
|
1268
|
+
) : y.from(_, _ && _.code, n, f);
|
|
1269
1269
|
}
|
|
1270
|
-
}),
|
|
1270
|
+
}), Ie = {
|
|
1271
1271
|
http: Un,
|
|
1272
1272
|
xhr: ps,
|
|
1273
1273
|
fetch: xs
|
|
1274
1274
|
};
|
|
1275
|
-
l.forEach(
|
|
1275
|
+
l.forEach(Ie, (n, e) => {
|
|
1276
1276
|
if (n) {
|
|
1277
1277
|
try {
|
|
1278
1278
|
Object.defineProperty(n, "name", { value: e });
|
|
@@ -1290,8 +1290,8 @@ const nt = (n) => `- ${n}`, Rs = (n) => l.isFunction(n) || n === null || n === !
|
|
|
1290
1290
|
for (let i = 0; i < e; i++) {
|
|
1291
1291
|
t = n[i];
|
|
1292
1292
|
let o;
|
|
1293
|
-
if (s = t, !Rs(t) && (s =
|
|
1294
|
-
throw new
|
|
1293
|
+
if (s = t, !Rs(t) && (s = Ie[(o = String(t)).toLowerCase()], s === void 0))
|
|
1294
|
+
throw new y(`Unknown adapter '${o}'`);
|
|
1295
1295
|
if (s)
|
|
1296
1296
|
break;
|
|
1297
1297
|
r[o || "#" + i] = s;
|
|
@@ -1303,53 +1303,53 @@ const nt = (n) => `- ${n}`, Rs = (n) => l.isFunction(n) || n === null || n === !
|
|
|
1303
1303
|
let o = e ? i.length > 1 ? `since :
|
|
1304
1304
|
` + i.map(nt).join(`
|
|
1305
1305
|
`) : " " + nt(i[0]) : "as no adapter specified";
|
|
1306
|
-
throw new
|
|
1306
|
+
throw new y(
|
|
1307
1307
|
"There is no suitable adapter to dispatch the request " + o,
|
|
1308
1308
|
"ERR_NOT_SUPPORT"
|
|
1309
1309
|
);
|
|
1310
1310
|
}
|
|
1311
1311
|
return s;
|
|
1312
1312
|
},
|
|
1313
|
-
adapters:
|
|
1313
|
+
adapters: Ie
|
|
1314
1314
|
};
|
|
1315
|
-
function
|
|
1315
|
+
function Oe(n) {
|
|
1316
1316
|
if (n.cancelToken && n.cancelToken.throwIfRequested(), n.signal && n.signal.aborted)
|
|
1317
1317
|
throw new X(null, n);
|
|
1318
1318
|
}
|
|
1319
1319
|
function st(n) {
|
|
1320
|
-
return
|
|
1320
|
+
return Oe(n), n.headers = k.from(n.headers), n.data = Ae.call(
|
|
1321
1321
|
n,
|
|
1322
1322
|
n.transformRequest
|
|
1323
1323
|
), ["post", "put", "patch"].indexOf(n.method) !== -1 && n.headers.setContentType("application/x-www-form-urlencoded", !1), $t.getAdapter(n.adapter || te.adapter)(n).then(function(s) {
|
|
1324
|
-
return
|
|
1324
|
+
return Oe(n), s.data = Ae.call(
|
|
1325
1325
|
n,
|
|
1326
1326
|
n.transformResponse,
|
|
1327
1327
|
s
|
|
1328
1328
|
), s.headers = k.from(s.headers), s;
|
|
1329
1329
|
}, function(s) {
|
|
1330
|
-
return Nt(s) || (
|
|
1330
|
+
return Nt(s) || (Oe(n), s && s.response && (s.response.data = Ae.call(
|
|
1331
1331
|
n,
|
|
1332
1332
|
n.transformResponse,
|
|
1333
1333
|
s.response
|
|
1334
1334
|
), s.response.headers = k.from(s.response.headers))), Promise.reject(s);
|
|
1335
1335
|
});
|
|
1336
1336
|
}
|
|
1337
|
-
const Ft = "1.9.0",
|
|
1337
|
+
const Ft = "1.9.0", ye = {};
|
|
1338
1338
|
["object", "boolean", "number", "function", "string", "symbol"].forEach((n, e) => {
|
|
1339
|
-
|
|
1339
|
+
ye[n] = function(s) {
|
|
1340
1340
|
return typeof s === n || "a" + (e < 1 ? "n " : " ") + n;
|
|
1341
1341
|
};
|
|
1342
1342
|
});
|
|
1343
1343
|
const rt = {};
|
|
1344
|
-
|
|
1344
|
+
ye.transitional = function(e, t, s) {
|
|
1345
1345
|
function r(i, o) {
|
|
1346
1346
|
return "[Axios v" + Ft + "] Transitional option '" + i + "'" + o + (s ? ". " + s : "");
|
|
1347
1347
|
}
|
|
1348
1348
|
return (i, o, c) => {
|
|
1349
1349
|
if (e === !1)
|
|
1350
|
-
throw new
|
|
1350
|
+
throw new y(
|
|
1351
1351
|
r(o, " has been removed" + (t ? " in " + t : "")),
|
|
1352
|
-
|
|
1352
|
+
y.ERR_DEPRECATED
|
|
1353
1353
|
);
|
|
1354
1354
|
return t && !rt[o] && (rt[o] = !0, console.warn(
|
|
1355
1355
|
r(
|
|
@@ -1359,12 +1359,12 @@ we.transitional = function(e, t, s) {
|
|
|
1359
1359
|
)), e ? e(i, o, c) : !0;
|
|
1360
1360
|
};
|
|
1361
1361
|
};
|
|
1362
|
-
|
|
1362
|
+
ye.spelling = function(e) {
|
|
1363
1363
|
return (t, s) => (console.warn(`${s} is likely a misspelling of ${e}`), !0);
|
|
1364
1364
|
};
|
|
1365
1365
|
function As(n, e, t) {
|
|
1366
1366
|
if (typeof n != "object")
|
|
1367
|
-
throw new
|
|
1367
|
+
throw new y("options must be an object", y.ERR_BAD_OPTION_VALUE);
|
|
1368
1368
|
const s = Object.keys(n);
|
|
1369
1369
|
let r = s.length;
|
|
1370
1370
|
for (; r-- > 0; ) {
|
|
@@ -1372,16 +1372,16 @@ function As(n, e, t) {
|
|
|
1372
1372
|
if (o) {
|
|
1373
1373
|
const c = n[i], h = c === void 0 || o(c, i, n);
|
|
1374
1374
|
if (h !== !0)
|
|
1375
|
-
throw new
|
|
1375
|
+
throw new y("option " + i + " must be " + h, y.ERR_BAD_OPTION_VALUE);
|
|
1376
1376
|
continue;
|
|
1377
1377
|
}
|
|
1378
1378
|
if (t !== !0)
|
|
1379
|
-
throw new
|
|
1379
|
+
throw new y("Unknown option " + i, y.ERR_BAD_OPTION);
|
|
1380
1380
|
}
|
|
1381
1381
|
}
|
|
1382
1382
|
const le = {
|
|
1383
1383
|
assertOptions: As,
|
|
1384
|
-
validators:
|
|
1384
|
+
validators: ye
|
|
1385
1385
|
}, F = le.validators;
|
|
1386
1386
|
let z = class {
|
|
1387
1387
|
constructor(e) {
|
|
@@ -1588,7 +1588,7 @@ function Cs(n) {
|
|
|
1588
1588
|
function Ts(n) {
|
|
1589
1589
|
return l.isObject(n) && n.isAxiosError === !0;
|
|
1590
1590
|
}
|
|
1591
|
-
const
|
|
1591
|
+
const Le = {
|
|
1592
1592
|
Continue: 100,
|
|
1593
1593
|
SwitchingProtocols: 101,
|
|
1594
1594
|
Processing: 102,
|
|
@@ -1653,8 +1653,8 @@ const Ie = {
|
|
|
1653
1653
|
NotExtended: 510,
|
|
1654
1654
|
NetworkAuthenticationRequired: 511
|
|
1655
1655
|
};
|
|
1656
|
-
Object.entries(
|
|
1657
|
-
|
|
1656
|
+
Object.entries(Le).forEach(([n, e]) => {
|
|
1657
|
+
Le[e] = n;
|
|
1658
1658
|
});
|
|
1659
1659
|
function Dt(n) {
|
|
1660
1660
|
const e = new z(n), t = mt(z.prototype.request, e);
|
|
@@ -1669,7 +1669,7 @@ R.CancelToken = Os;
|
|
|
1669
1669
|
R.isCancel = Nt;
|
|
1670
1670
|
R.VERSION = Ft;
|
|
1671
1671
|
R.toFormData = ge;
|
|
1672
|
-
R.AxiosError =
|
|
1672
|
+
R.AxiosError = y;
|
|
1673
1673
|
R.Cancel = R.CanceledError;
|
|
1674
1674
|
R.all = function(e) {
|
|
1675
1675
|
return Promise.all(e);
|
|
@@ -1680,7 +1680,7 @@ R.mergeConfig = V;
|
|
|
1680
1680
|
R.AxiosHeaders = k;
|
|
1681
1681
|
R.formToJSON = (n) => kt(l.isHTMLForm(n) ? new FormData(n) : n);
|
|
1682
1682
|
R.getAdapter = $t.getAdapter;
|
|
1683
|
-
R.HttpStatusCode =
|
|
1683
|
+
R.HttpStatusCode = Le;
|
|
1684
1684
|
R.default = R;
|
|
1685
1685
|
const {
|
|
1686
1686
|
Axios: Wr,
|
|
@@ -1699,12 +1699,12 @@ const {
|
|
|
1699
1699
|
formToJSON: oi,
|
|
1700
1700
|
getAdapter: ci,
|
|
1701
1701
|
mergeConfig: ai
|
|
1702
|
-
} = R,
|
|
1702
|
+
} = R, qe = R.create({
|
|
1703
1703
|
baseURL: location.origin,
|
|
1704
1704
|
timeout: 6e4,
|
|
1705
1705
|
params: {}
|
|
1706
1706
|
});
|
|
1707
|
-
|
|
1707
|
+
qe.interceptors.response.use(
|
|
1708
1708
|
(n) => n,
|
|
1709
1709
|
(n) => {
|
|
1710
1710
|
var e, t, s, r, i, o, c, h, u, a, d;
|
|
@@ -1746,7 +1746,7 @@ const re = async function(n, e, {
|
|
|
1746
1746
|
}
|
|
1747
1747
|
r.Authorization = localStorage.openc3Token;
|
|
1748
1748
|
}
|
|
1749
|
-
return r.manual = !0, !o && !s.scope && (s.scope = window.openc3Scope),
|
|
1749
|
+
return r.manual = !0, !o && !s.scope && (s.scope = window.openc3Scope), qe({
|
|
1750
1750
|
method: n,
|
|
1751
1751
|
url: e,
|
|
1752
1752
|
data: t,
|
|
@@ -1825,7 +1825,7 @@ const re = async function(n, e, {
|
|
|
1825
1825
|
});
|
|
1826
1826
|
}
|
|
1827
1827
|
};
|
|
1828
|
-
let
|
|
1828
|
+
let we = () => ({
|
|
1829
1829
|
emit(n, ...e) {
|
|
1830
1830
|
for (let t = this.events[n] || [], s = 0, r = t.length; s < r; s++)
|
|
1831
1831
|
t[s](...e);
|
|
@@ -1844,7 +1844,7 @@ class ne extends Error {
|
|
|
1844
1844
|
e instanceof Error ? (super(e.message), this.cause = e) : super(e), this.reason = t, this.name = "ReasonError";
|
|
1845
1845
|
}
|
|
1846
1846
|
}
|
|
1847
|
-
class
|
|
1847
|
+
class Be extends ne {
|
|
1848
1848
|
constructor(e) {
|
|
1849
1849
|
super("Rejected", e), this.name = "SubscriptionRejectedError";
|
|
1850
1850
|
}
|
|
@@ -1923,7 +1923,7 @@ class Bt {
|
|
|
1923
1923
|
// Unique channel identifier
|
|
1924
1924
|
// static identifier = ''
|
|
1925
1925
|
constructor(e = {}) {
|
|
1926
|
-
this.emitter =
|
|
1926
|
+
this.emitter = we(), this.params = Object.freeze(e), this.presence = new Ps(this), this.initialConnect = !0, this[B] = "idle";
|
|
1927
1927
|
}
|
|
1928
1928
|
get identifier() {
|
|
1929
1929
|
return this._identifier ? this._identifier : (this._identifier = qt({
|
|
@@ -2086,7 +2086,7 @@ class Is {
|
|
|
2086
2086
|
return !t || t.acquired || t.intent !== e ? !1 : (this._pendings.pop(), t.canceled = !0, !0);
|
|
2087
2087
|
}
|
|
2088
2088
|
}
|
|
2089
|
-
class
|
|
2089
|
+
class Ls {
|
|
2090
2090
|
constructor() {
|
|
2091
2091
|
this.queue = [];
|
|
2092
2092
|
}
|
|
@@ -2098,9 +2098,9 @@ class vs {
|
|
|
2098
2098
|
), this.queue.length > 1 && await this.queue[this.queue.length - 2]);
|
|
2099
2099
|
}
|
|
2100
2100
|
}
|
|
2101
|
-
class
|
|
2101
|
+
class vs {
|
|
2102
2102
|
constructor(e) {
|
|
2103
|
-
e.concurrentSubscribes === !1 && (this.glv = new
|
|
2103
|
+
e.concurrentSubscribes === !1 && (this.glv = new Ls()), this._subscriptions = {}, this._localToRemote = {};
|
|
2104
2104
|
}
|
|
2105
2105
|
all() {
|
|
2106
2106
|
return Object.values(this._subscriptions);
|
|
@@ -2123,7 +2123,7 @@ class Ls {
|
|
|
2123
2123
|
}
|
|
2124
2124
|
class js {
|
|
2125
2125
|
constructor(e = {}) {
|
|
2126
|
-
this.subscriptions = new
|
|
2126
|
+
this.subscriptions = new vs(e), this._pendingMessages = [], this._remoteToLocal = {};
|
|
2127
2127
|
}
|
|
2128
2128
|
subscribe(e, t) {
|
|
2129
2129
|
this._remoteToLocal[t] = e, this.subscriptions.storeRemoteId(e, t), this.flush(t);
|
|
@@ -2325,7 +2325,7 @@ class Ht {
|
|
|
2325
2325
|
}
|
|
2326
2326
|
if (t === "reject_subscription") {
|
|
2327
2327
|
let c = this.pendingSubscriptions[s];
|
|
2328
|
-
return c ? (delete this.pendingSubscriptions[s], c.reject(new
|
|
2328
|
+
return c ? (delete this.pendingSubscriptions[s], c.reject(new Be())) : this.logger.error("subscription not found", { type: t, identifier: s });
|
|
2329
2329
|
}
|
|
2330
2330
|
if (r)
|
|
2331
2331
|
return { identifier: s, message: r };
|
|
@@ -2489,7 +2489,7 @@ class Ds extends ne {
|
|
|
2489
2489
|
super("No connection", "closed"), this.name = "NoConnectionError";
|
|
2490
2490
|
}
|
|
2491
2491
|
}
|
|
2492
|
-
class
|
|
2492
|
+
class Me extends Bt {
|
|
2493
2493
|
constructor(e, t) {
|
|
2494
2494
|
super(t), this.channelId = e;
|
|
2495
2495
|
}
|
|
@@ -2500,16 +2500,16 @@ class Be extends Bt {
|
|
|
2500
2500
|
return this._channelId;
|
|
2501
2501
|
}
|
|
2502
2502
|
}
|
|
2503
|
-
|
|
2503
|
+
v(Me, "identifier", "__ghost__");
|
|
2504
2504
|
const qs = "$pubsub";
|
|
2505
|
-
class
|
|
2505
|
+
class je extends Bt {
|
|
2506
2506
|
async perform(e, t) {
|
|
2507
2507
|
if (e.startsWith("$"))
|
|
2508
2508
|
return super.perform(e, t);
|
|
2509
2509
|
throw Error("not implemented");
|
|
2510
2510
|
}
|
|
2511
2511
|
}
|
|
2512
|
-
|
|
2512
|
+
v(je, "identifier", qs);
|
|
2513
2513
|
const M = Symbol("state");
|
|
2514
2514
|
let Bs = class {
|
|
2515
2515
|
constructor({
|
|
@@ -2522,7 +2522,7 @@ let Bs = class {
|
|
|
2522
2522
|
performFailures: c,
|
|
2523
2523
|
transportConfigurator: h
|
|
2524
2524
|
}) {
|
|
2525
|
-
this.emitter =
|
|
2525
|
+
this.emitter = we(), this.transport = e, this.encoder = s, this.logger = r || new se(), this.protocol = t, this.performFailures = c || "throw", this.protocol.attached(this), this.hub = new js(o || {}), this[M] = "idle", this.handleClose = this.handleClose.bind(this), this.handleIncoming = this.handleIncoming.bind(this), this.transportConfigurator = h, this.transport.on("close", this.handleClose), this.transport.on("data", this.handleIncoming), this.initialConnect = !0, this.recovering = !1, i === !1 && this.connect().catch(() => {
|
|
2526
2526
|
});
|
|
2527
2527
|
}
|
|
2528
2528
|
get state() {
|
|
@@ -2620,16 +2620,16 @@ let Bs = class {
|
|
|
2620
2620
|
this.emit("keepalive", e);
|
|
2621
2621
|
}
|
|
2622
2622
|
streamFrom(e) {
|
|
2623
|
-
let t = new
|
|
2623
|
+
let t = new je({ stream_name: e });
|
|
2624
2624
|
return this.subscribe(t);
|
|
2625
2625
|
}
|
|
2626
2626
|
streamFromSigned(e) {
|
|
2627
|
-
let t = new
|
|
2627
|
+
let t = new je({ signed_stream_name: e });
|
|
2628
2628
|
return this.subscribe(t);
|
|
2629
2629
|
}
|
|
2630
2630
|
subscribeTo(e, t) {
|
|
2631
2631
|
let s, r;
|
|
2632
|
-
return typeof e == "string" && (r = e, e =
|
|
2632
|
+
return typeof e == "string" && (r = e, e = Me), s = r ? new e(r, t) : new e(t), this.subscribe(s);
|
|
2633
2633
|
}
|
|
2634
2634
|
subscribe(e) {
|
|
2635
2635
|
if (!e.attached(this)) return e;
|
|
@@ -2681,7 +2681,7 @@ let Bs = class {
|
|
|
2681
2681
|
this.hub.subscribe(r, c), this.logger.debug("subscribed", { ...o, remoteId: c }), e.notify("connected");
|
|
2682
2682
|
} catch (c) {
|
|
2683
2683
|
if (c) {
|
|
2684
|
-
if (c instanceof
|
|
2684
|
+
if (c instanceof Be && this.logger.warn("rejected", o), c instanceof j) {
|
|
2685
2685
|
this.logger.debug(
|
|
2686
2686
|
"disconnected during subscription; will retry on connect",
|
|
2687
2687
|
o
|
|
@@ -2892,7 +2892,7 @@ let Vt = class {
|
|
|
2892
2892
|
};
|
|
2893
2893
|
class Hs {
|
|
2894
2894
|
constructor(e, t = {}) {
|
|
2895
|
-
this.transports = e, this.transport = null, this.emitter =
|
|
2895
|
+
this.transports = e, this.transport = null, this.emitter = we(), this.unbind = [], this.logger = t.logger || new se();
|
|
2896
2896
|
}
|
|
2897
2897
|
displayName() {
|
|
2898
2898
|
return "fallbacked transport";
|
|
@@ -2973,7 +2973,7 @@ class zs {
|
|
|
2973
2973
|
this.Impl = WebSocket;
|
|
2974
2974
|
else
|
|
2975
2975
|
throw new Error("No WebSocket support");
|
|
2976
|
-
this.connected = !1, this.emitter =
|
|
2976
|
+
this.connected = !1, this.emitter = we();
|
|
2977
2977
|
let { format: r, subprotocol: i, authStrategy: o } = t;
|
|
2978
2978
|
this.format = r || "text", this.connectionOptions = t.websocketOptions, this.authStrategy = o || "param", this.authProtocol = "", this.subprotocol = i;
|
|
2979
2979
|
}
|
|
@@ -3130,25 +3130,25 @@ function Vs(n, e) {
|
|
|
3130
3130
|
maxReconnectAttempts: _,
|
|
3131
3131
|
logger: u
|
|
3132
3132
|
}));
|
|
3133
|
-
let
|
|
3133
|
+
let Se = { concurrentSubscribes: P }, L = new Bs({
|
|
3134
3134
|
protocol: t,
|
|
3135
3135
|
transport: a,
|
|
3136
3136
|
encoder: d,
|
|
3137
3137
|
logger: u,
|
|
3138
3138
|
lazy: g,
|
|
3139
|
-
hubOptions:
|
|
3139
|
+
hubOptions: Se,
|
|
3140
3140
|
performFailures: I,
|
|
3141
3141
|
transportConfigurator: D
|
|
3142
3142
|
});
|
|
3143
|
-
return b && (b.watch(
|
|
3143
|
+
return b && (b.watch(L), L.monitor = b), S && Js(L, async () => {
|
|
3144
3144
|
try {
|
|
3145
3145
|
await S(a);
|
|
3146
3146
|
} catch (J) {
|
|
3147
3147
|
return u.error("Failed to refresh authentication token: " + J), !1;
|
|
3148
3148
|
}
|
|
3149
|
-
return
|
|
3149
|
+
return L.connect().catch(() => {
|
|
3150
3150
|
}), !0;
|
|
3151
|
-
}),
|
|
3151
|
+
}), L;
|
|
3152
3152
|
}
|
|
3153
3153
|
function Js(n, e) {
|
|
3154
3154
|
let t = !1;
|
|
@@ -3182,7 +3182,7 @@ class Ws {
|
|
|
3182
3182
|
return this.channel.disconnect();
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
|
-
class Ks extends
|
|
3185
|
+
class Ks extends Me {
|
|
3186
3186
|
constructor(e, t, s) {
|
|
3187
3187
|
super(e, t), this.subscription = new Ws(this), Object.assign(this.subscription, s), this.on(
|
|
3188
3188
|
"connect",
|
|
@@ -3191,7 +3191,7 @@ class Ks extends Be {
|
|
|
3191
3191
|
"disconnect",
|
|
3192
3192
|
() => this.subscription.notify("disconnected", { allowReconnect: !0 })
|
|
3193
3193
|
), this.on("message", (r) => this.subscription.notify("received", r)), this.on("close", (r) => {
|
|
3194
|
-
r && r instanceof
|
|
3194
|
+
r && r instanceof Be ? this.subscription.notify("rejected") : this.subscription.notify("disconnected", { allowReconnect: !1 });
|
|
3195
3195
|
});
|
|
3196
3196
|
}
|
|
3197
3197
|
}
|
|
@@ -3327,12 +3327,12 @@ class lt {
|
|
|
3327
3327
|
}
|
|
3328
3328
|
class fi {
|
|
3329
3329
|
constructor() {
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3330
|
+
v(this, "keyword", null);
|
|
3331
|
+
v(this, "parameters", []);
|
|
3332
|
+
v(this, "filename", "");
|
|
3333
|
+
v(this, "line", "");
|
|
3334
|
+
v(this, "lineNumber", 0);
|
|
3335
|
+
v(this, "url", "https://docs.openc3.com/docs/configuration");
|
|
3336
3336
|
}
|
|
3337
3337
|
verify_num_parameters(e, t, s = "") {
|
|
3338
3338
|
for (let r = 1; r <= e; r++)
|
|
@@ -3419,7 +3419,7 @@ class fi {
|
|
|
3419
3419
|
}
|
|
3420
3420
|
// parse_string
|
|
3421
3421
|
}
|
|
3422
|
-
function
|
|
3422
|
+
function Ee(n) {
|
|
3423
3423
|
return cr.test(n);
|
|
3424
3424
|
}
|
|
3425
3425
|
const cr = /^-?[0-9]+$/;
|
|
@@ -3429,7 +3429,7 @@ function Wt(n) {
|
|
|
3429
3429
|
const ar = /^-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?$/;
|
|
3430
3430
|
function Kt(n, e) {
|
|
3431
3431
|
const t = Number.parseFloat(n), s = String(t), r = ut(n), i = ut(s);
|
|
3432
|
-
return !!(r === i || (e == null ? void 0 : e.approx) === !0 && !
|
|
3432
|
+
return !!(r === i || (e == null ? void 0 : e.approx) === !0 && !Ee(n) && i.length >= 14 && r.startsWith(i.substring(0, 14)));
|
|
3433
3433
|
}
|
|
3434
3434
|
let Q = /* @__PURE__ */ function(n) {
|
|
3435
3435
|
return n.underflow = "underflow", n.overflow = "overflow", n.truncate_integer = "truncate_integer", n.truncate_float = "truncate_float", n;
|
|
@@ -3439,7 +3439,7 @@ function lr(n) {
|
|
|
3439
3439
|
approx: !1
|
|
3440
3440
|
}))
|
|
3441
3441
|
return;
|
|
3442
|
-
if (
|
|
3442
|
+
if (Ee(n))
|
|
3443
3443
|
return Q.truncate_integer;
|
|
3444
3444
|
const e = Number.parseFloat(n);
|
|
3445
3445
|
return Number.isFinite(e) ? e === 0 ? Q.underflow : Q.truncate_float : Q.overflow;
|
|
@@ -3452,7 +3452,7 @@ class pr {
|
|
|
3452
3452
|
constructor(e) {
|
|
3453
3453
|
// numeric value as string
|
|
3454
3454
|
// type information
|
|
3455
|
-
|
|
3455
|
+
v(this, "isLosslessNumber", !0);
|
|
3456
3456
|
if (!Wt(e))
|
|
3457
3457
|
throw new Error(`Invalid number (value: "${e}")`);
|
|
3458
3458
|
this.value = e;
|
|
@@ -3472,7 +3472,7 @@ class pr {
|
|
|
3472
3472
|
const e = lr(this.value);
|
|
3473
3473
|
if (e === void 0 || e === Q.truncate_float)
|
|
3474
3474
|
return Number.parseFloat(this.value);
|
|
3475
|
-
if (
|
|
3475
|
+
if (Ee(this.value))
|
|
3476
3476
|
return BigInt(this.value);
|
|
3477
3477
|
throw new Error(`Cannot safely convert to number: the value '${this.value}' would ${e} and become ${Number.parseFloat(this.value)}`);
|
|
3478
3478
|
}
|
|
@@ -3498,16 +3498,16 @@ function br(n, e) {
|
|
|
3498
3498
|
}, "", n, e);
|
|
3499
3499
|
}
|
|
3500
3500
|
function He(n, e, t, s) {
|
|
3501
|
-
return Array.isArray(t) ? s.call(n, e,
|
|
3501
|
+
return Array.isArray(t) ? s.call(n, e, wr(t, s)) : t && typeof t == "object" && !mr(t) ? s.call(n, e, yr(t, s)) : s.call(n, e, t);
|
|
3502
3502
|
}
|
|
3503
|
-
function
|
|
3503
|
+
function yr(n, e) {
|
|
3504
3504
|
for (const t of Object.keys(n)) {
|
|
3505
3505
|
const s = He(n, t, n[t], e);
|
|
3506
3506
|
s !== void 0 ? n[t] = s : delete n[t];
|
|
3507
3507
|
}
|
|
3508
3508
|
return n;
|
|
3509
3509
|
}
|
|
3510
|
-
function
|
|
3510
|
+
function wr(n, e) {
|
|
3511
3511
|
for (let t = 0; t < n.length; t++)
|
|
3512
3512
|
n[t] = He(n, String(t), n[t], e);
|
|
3513
3513
|
return n;
|
|
@@ -3519,7 +3519,7 @@ function _r(n, e) {
|
|
|
3519
3519
|
function i() {
|
|
3520
3520
|
if (n.charCodeAt(s) === Or) {
|
|
3521
3521
|
s++, u();
|
|
3522
|
-
const
|
|
3522
|
+
const w = {};
|
|
3523
3523
|
let A = !0;
|
|
3524
3524
|
for (; s < n.length && n.charCodeAt(s) !== dt; ) {
|
|
3525
3525
|
A ? A = !1 : (g(), u());
|
|
@@ -3529,75 +3529,75 @@ function _r(n, e) {
|
|
|
3529
3529
|
return;
|
|
3530
3530
|
}
|
|
3531
3531
|
u(), b();
|
|
3532
|
-
const
|
|
3533
|
-
if (
|
|
3532
|
+
const xe = c();
|
|
3533
|
+
if (xe === void 0) {
|
|
3534
3534
|
U();
|
|
3535
3535
|
return;
|
|
3536
3536
|
}
|
|
3537
|
-
Object.prototype.hasOwnProperty.call(
|
|
3537
|
+
Object.prototype.hasOwnProperty.call(w, G) && !$e(xe, w[G]) && N(G, q + 1), w[G] = xe;
|
|
3538
3538
|
}
|
|
3539
|
-
return n.charCodeAt(s) !== dt && x(), s++,
|
|
3539
|
+
return n.charCodeAt(s) !== dt && x(), s++, w;
|
|
3540
3540
|
}
|
|
3541
3541
|
}
|
|
3542
3542
|
function o() {
|
|
3543
3543
|
if (n.charCodeAt(s) === Cr) {
|
|
3544
3544
|
s++, u();
|
|
3545
|
-
const
|
|
3545
|
+
const w = [];
|
|
3546
3546
|
let A = !0;
|
|
3547
3547
|
for (; s < n.length && n.charCodeAt(s) !== ft; ) {
|
|
3548
3548
|
A ? A = !1 : g();
|
|
3549
3549
|
const q = c();
|
|
3550
|
-
m(q),
|
|
3550
|
+
m(q), w.push(q);
|
|
3551
3551
|
}
|
|
3552
|
-
return n.charCodeAt(s) !== ft && P(), s++,
|
|
3552
|
+
return n.charCodeAt(s) !== ft && P(), s++, w;
|
|
3553
3553
|
}
|
|
3554
3554
|
}
|
|
3555
3555
|
function c() {
|
|
3556
3556
|
u();
|
|
3557
|
-
const
|
|
3558
|
-
return u(),
|
|
3557
|
+
const w = a() ?? d() ?? i() ?? o() ?? h("true", !0) ?? h("false", !1) ?? h("null", null);
|
|
3558
|
+
return u(), w;
|
|
3559
3559
|
}
|
|
3560
|
-
function h(
|
|
3561
|
-
if (n.slice(s, s +
|
|
3562
|
-
return s +=
|
|
3560
|
+
function h(w, A) {
|
|
3561
|
+
if (n.slice(s, s + w.length) === w)
|
|
3562
|
+
return s += w.length, A;
|
|
3563
3563
|
}
|
|
3564
3564
|
function u() {
|
|
3565
3565
|
for (; Er(n.charCodeAt(s)); )
|
|
3566
3566
|
s++;
|
|
3567
3567
|
}
|
|
3568
3568
|
function a() {
|
|
3569
|
-
if (n.charCodeAt(s) ===
|
|
3569
|
+
if (n.charCodeAt(s) === Ce) {
|
|
3570
3570
|
s++;
|
|
3571
|
-
let
|
|
3572
|
-
for (; s < n.length && n.charCodeAt(s) !==
|
|
3571
|
+
let w = "";
|
|
3572
|
+
for (; s < n.length && n.charCodeAt(s) !== Ce; ) {
|
|
3573
3573
|
if (n.charCodeAt(s) === Ar) {
|
|
3574
3574
|
const A = n[s + 1], q = Rr[A];
|
|
3575
|
-
q !== void 0 ? (
|
|
3575
|
+
q !== void 0 ? (w += q, s++) : A === "u" ? ie(n.charCodeAt(s + 2)) && ie(n.charCodeAt(s + 3)) && ie(n.charCodeAt(s + 4)) && ie(n.charCodeAt(s + 5)) ? (w += String.fromCharCode(Number.parseInt(n.slice(s + 2, s + 6), 16)), s += 5) : Se(s) : D(s);
|
|
3576
3576
|
} else
|
|
3577
|
-
xr(n.charCodeAt(s)) ?
|
|
3577
|
+
xr(n.charCodeAt(s)) ? w += n[s] : I(n[s]);
|
|
3578
3578
|
s++;
|
|
3579
3579
|
}
|
|
3580
|
-
return E(), s++,
|
|
3580
|
+
return E(), s++, w;
|
|
3581
3581
|
}
|
|
3582
3582
|
}
|
|
3583
3583
|
function d() {
|
|
3584
|
-
const
|
|
3585
|
-
if (n.charCodeAt(s) === pt && (s++, _(
|
|
3584
|
+
const w = s;
|
|
3585
|
+
if (n.charCodeAt(s) === pt && (s++, _(w)), n.charCodeAt(s) === ze)
|
|
3586
3586
|
s++;
|
|
3587
3587
|
else if (Sr(n.charCodeAt(s)))
|
|
3588
3588
|
for (s++; oe(n.charCodeAt(s)); )
|
|
3589
3589
|
s++;
|
|
3590
3590
|
if (n.charCodeAt(s) === jr)
|
|
3591
|
-
for (s++, _(
|
|
3591
|
+
for (s++, _(w); oe(n.charCodeAt(s)); )
|
|
3592
3592
|
s++;
|
|
3593
3593
|
if (n.charCodeAt(s) === qr || n.charCodeAt(s) === Dr)
|
|
3594
|
-
for (s++, (n.charCodeAt(s) === pt || n.charCodeAt(s) === Ir) && s++, _(
|
|
3594
|
+
for (s++, (n.charCodeAt(s) === pt || n.charCodeAt(s) === Ir) && s++, _(w); oe(n.charCodeAt(s)); )
|
|
3595
3595
|
s++;
|
|
3596
|
-
if (s >
|
|
3597
|
-
return t(n.slice(
|
|
3596
|
+
if (s > w)
|
|
3597
|
+
return t(n.slice(w, s));
|
|
3598
3598
|
}
|
|
3599
3599
|
function g() {
|
|
3600
|
-
if (n.charCodeAt(s) !==
|
|
3600
|
+
if (n.charCodeAt(s) !== vr)
|
|
3601
3601
|
throw new SyntaxError(`Comma ',' expected after value ${C()}`);
|
|
3602
3602
|
s++;
|
|
3603
3603
|
}
|
|
@@ -3606,33 +3606,33 @@ function _r(n, e) {
|
|
|
3606
3606
|
throw new SyntaxError(`Colon ':' expected after property name ${C()}`);
|
|
3607
3607
|
s++;
|
|
3608
3608
|
}
|
|
3609
|
-
function f(
|
|
3610
|
-
if (
|
|
3609
|
+
function f(w) {
|
|
3610
|
+
if (w === void 0)
|
|
3611
3611
|
throw new SyntaxError(`JSON value expected ${C()}`);
|
|
3612
3612
|
}
|
|
3613
|
-
function m(
|
|
3614
|
-
if (
|
|
3613
|
+
function m(w) {
|
|
3614
|
+
if (w === void 0)
|
|
3615
3615
|
throw new SyntaxError(`Array item expected ${C()}`);
|
|
3616
3616
|
}
|
|
3617
3617
|
function p() {
|
|
3618
3618
|
if (s < n.length)
|
|
3619
3619
|
throw new SyntaxError(`Expected end of input ${C()}`);
|
|
3620
3620
|
}
|
|
3621
|
-
function _(
|
|
3621
|
+
function _(w) {
|
|
3622
3622
|
if (!oe(n.charCodeAt(s))) {
|
|
3623
|
-
const A = n.slice(
|
|
3623
|
+
const A = n.slice(w, s);
|
|
3624
3624
|
throw new SyntaxError(`Invalid number '${A}', expecting a digit ${C()}`);
|
|
3625
3625
|
}
|
|
3626
3626
|
}
|
|
3627
3627
|
function E() {
|
|
3628
|
-
if (n.charCodeAt(s) !==
|
|
3628
|
+
if (n.charCodeAt(s) !== Ce)
|
|
3629
3629
|
throw new SyntaxError(`End of string '"' expected ${C()}`);
|
|
3630
3630
|
}
|
|
3631
3631
|
function S() {
|
|
3632
3632
|
throw new SyntaxError(`Quoted object key expected ${C()}`);
|
|
3633
3633
|
}
|
|
3634
|
-
function N(
|
|
3635
|
-
throw new SyntaxError(`Duplicate key '${
|
|
3634
|
+
function N(w, A) {
|
|
3635
|
+
throw new SyntaxError(`Duplicate key '${w}' encountered at position ${A}`);
|
|
3636
3636
|
}
|
|
3637
3637
|
function x() {
|
|
3638
3638
|
throw new SyntaxError(`Quoted object key or end of object '}' expected ${C()}`);
|
|
@@ -3640,28 +3640,28 @@ function _r(n, e) {
|
|
|
3640
3640
|
function P() {
|
|
3641
3641
|
throw new SyntaxError(`Array item or end of array ']' expected ${C()}`);
|
|
3642
3642
|
}
|
|
3643
|
-
function I(
|
|
3644
|
-
throw new SyntaxError(`Invalid character '${
|
|
3643
|
+
function I(w) {
|
|
3644
|
+
throw new SyntaxError(`Invalid character '${w}' ${L()}`);
|
|
3645
3645
|
}
|
|
3646
|
-
function D(
|
|
3647
|
-
const A = n.slice(
|
|
3648
|
-
throw new SyntaxError(`Invalid escape character '${A}' ${
|
|
3646
|
+
function D(w) {
|
|
3647
|
+
const A = n.slice(w, w + 2);
|
|
3648
|
+
throw new SyntaxError(`Invalid escape character '${A}' ${L()}`);
|
|
3649
3649
|
}
|
|
3650
3650
|
function U() {
|
|
3651
|
-
throw new SyntaxError(`Object value expected after ':' ${
|
|
3651
|
+
throw new SyntaxError(`Object value expected after ':' ${L()}`);
|
|
3652
3652
|
}
|
|
3653
|
-
function
|
|
3654
|
-
const A = n.slice(
|
|
3655
|
-
throw new SyntaxError(`Invalid unicode character '${A}' ${
|
|
3653
|
+
function Se(w) {
|
|
3654
|
+
const A = n.slice(w, w + 6);
|
|
3655
|
+
throw new SyntaxError(`Invalid unicode character '${A}' ${L()}`);
|
|
3656
3656
|
}
|
|
3657
|
-
function
|
|
3657
|
+
function L() {
|
|
3658
3658
|
return `at position ${s}`;
|
|
3659
3659
|
}
|
|
3660
3660
|
function J() {
|
|
3661
3661
|
return s < n.length ? `but got '${n[s]}'` : "but reached end of input";
|
|
3662
3662
|
}
|
|
3663
3663
|
function C() {
|
|
3664
|
-
return `${J()} ${
|
|
3664
|
+
return `${J()} ${L()}`;
|
|
3665
3665
|
}
|
|
3666
3666
|
}
|
|
3667
3667
|
function Er(n) {
|
|
@@ -3674,13 +3674,13 @@ function oe(n) {
|
|
|
3674
3674
|
return n >= ze && n <= Ve;
|
|
3675
3675
|
}
|
|
3676
3676
|
function Sr(n) {
|
|
3677
|
-
return n >=
|
|
3677
|
+
return n >= Lr && n <= Ve;
|
|
3678
3678
|
}
|
|
3679
3679
|
function xr(n) {
|
|
3680
3680
|
return n >= 32 && n <= 1114111;
|
|
3681
3681
|
}
|
|
3682
|
-
function
|
|
3683
|
-
return n === e ? !0 : Array.isArray(n) && Array.isArray(e) ? n.length === e.length && n.every((t, s) =>
|
|
3682
|
+
function $e(n, e) {
|
|
3683
|
+
return n === e ? !0 : Array.isArray(n) && Array.isArray(e) ? n.length === e.length && n.every((t, s) => $e(t, e[s])) : ht(n) && ht(e) ? [.../* @__PURE__ */ new Set([...Object.keys(n), ...Object.keys(e)])].every((s) => $e(n[s], e[s])) : !1;
|
|
3684
3684
|
}
|
|
3685
3685
|
function ht(n) {
|
|
3686
3686
|
return typeof n == "object" && n !== null;
|
|
@@ -3696,7 +3696,7 @@ const Rr = {
|
|
|
3696
3696
|
r: "\r",
|
|
3697
3697
|
t: " "
|
|
3698
3698
|
// note that \u is handled separately in parseString()
|
|
3699
|
-
}, Ar = 92, Or = 123, dt = 125, Cr = 91, ft = 93, Tr = 32, kr = 10, Nr = 9, Pr = 13,
|
|
3699
|
+
}, Ar = 92, Or = 123, dt = 125, Cr = 91, ft = 93, Tr = 32, kr = 10, Nr = 9, Pr = 13, Ce = 34, Ir = 43, pt = 45, ze = 48, Lr = 49, Ve = 57, vr = 44, jr = 46, $r = 58, Fr = 65, Ur = 97, Dr = 69, qr = 101, Br = 70, Mr = 102;
|
|
3700
3700
|
function Xt(n, e, t, s) {
|
|
3701
3701
|
const r = void 0;
|
|
3702
3702
|
return o(n, "");
|
|
@@ -3759,11 +3759,11 @@ ${d}}` : "}", m;
|
|
|
3759
3759
|
}
|
|
3760
3760
|
}
|
|
3761
3761
|
function Hr(n) {
|
|
3762
|
-
return Kt(n) ?
|
|
3762
|
+
return Ee(n) && !Kt(n) ? BigInt(n) : parseFloat(n);
|
|
3763
3763
|
}
|
|
3764
3764
|
class pi {
|
|
3765
3765
|
constructor() {
|
|
3766
|
-
|
|
3766
|
+
v(this, "id", 1);
|
|
3767
3767
|
}
|
|
3768
3768
|
async exec(e, t, s = {}, r = {}, i = 6e4) {
|
|
3769
3769
|
try {
|
|
@@ -3775,7 +3775,7 @@ class pi {
|
|
|
3775
3775
|
}
|
|
3776
3776
|
this.id = this.id + 1;
|
|
3777
3777
|
try {
|
|
3778
|
-
return s.scope = window.openc3Scope, r.manual = !0, (await
|
|
3778
|
+
return s.scope = window.openc3Scope, r.manual = !0, (await qe.post(
|
|
3779
3779
|
"/openc3-api/api",
|
|
3780
3780
|
{
|
|
3781
3781
|
jsonrpc: "2.0",
|
|
@@ -3801,7 +3801,7 @@ class pi {
|
|
|
3801
3801
|
)).data.result;
|
|
3802
3802
|
} catch (o) {
|
|
3803
3803
|
let c = new Error();
|
|
3804
|
-
throw o.response ? (c.name = o.response.data.error.data.class, c.message = o.response.data.error.data.message, c.object = o.response.data.error) : o.request ? (c.name = "Request error", c.message = "Request error, no response received") : c
|
|
3804
|
+
throw o.response ? (c.name = o.response.data.error.data.class, c.message = o.response.data.error.data.message, c.object = o.response.data.error) : o.request ? (c.name = "Request error", c.message = "Request error, no response received") : c = o, c;
|
|
3805
3805
|
}
|
|
3806
3806
|
}
|
|
3807
3807
|
decode_openc3_type(e) {
|
|
@@ -4219,6 +4219,6 @@ export {
|
|
|
4219
4219
|
lt as ConfigParserError,
|
|
4220
4220
|
fi as ConfigParserService,
|
|
4221
4221
|
pi as OpenC3Api,
|
|
4222
|
-
|
|
4222
|
+
qe as axios
|
|
4223
4223
|
};
|
|
4224
4224
|
//# sourceMappingURL=services.js.map
|