@synnaxlabs/pluto 0.29.0 → 0.30.0
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/{Animated-BRUqvVsW.js → Animated-CADTcu8B.js} +1 -1
- package/dist/{Animated-DbOFofnA.cjs → Animated-DZSBu1oS.cjs} +1 -1
- package/dist/{Keyboard-BpXlLck_.js → Keyboard-Bc_uxMTG.js} +1 -1
- package/dist/{Keyboard-X_-hpfg9.cjs → Keyboard-BvHL3Wf2.cjs} +1 -1
- package/dist/{LinePlot-CtIZPK_F.js → LinePlot-CUYMMNNX.js} +1 -1
- package/dist/{LinePlot-B51qhAb1.cjs → LinePlot-DUHbDcz3.cjs} +1 -1
- package/dist/{Link-TUMI2ARc.cjs → Link-BUlcFhdF.cjs} +1 -1
- package/dist/{Link-CrB722xh.js → Link-CurnG57L.js} +1 -1
- package/dist/{List-BI_89AyO.js → List-DD-MkX0Z.js} +2 -2
- package/dist/{List-Cgx098Ae.cjs → List-d1KJe77_.cjs} +1 -1
- package/dist/{Toggle-3WohopP9.js → Toggle-BGyo9v6o.js} +1 -1
- package/dist/{Toggle-B8cAGDWx.cjs → Toggle-DWKDszrQ.cjs} +1 -1
- package/dist/{aggregator-CoVqjgd_.cjs → aggregator-C7n8uv-R.cjs} +20 -20
- package/dist/{aggregator-BpQMir30.js → aggregator-Dgqx_W5g.js} +287 -284
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +4 -4
- package/dist/{external-Ahp3C6QS.cjs → external--tP96O6n.cjs} +1 -1
- package/dist/{external-Lmkzu-RE.cjs → external-1ZU7gP__.cjs} +1 -1
- package/dist/{external-CqQG_X0V.cjs → external-5teQpcGD.cjs} +1 -1
- package/dist/{external-DMdyqHe5.js → external-B-gkanM-.js} +2 -2
- package/dist/{external-CnWUVmQS.js → external-B-qyhpkX.js} +2 -2
- package/dist/{external-DnVHgC7D.js → external-B0zpdR1h.js} +2 -2
- package/dist/{external-B4LzaEYW.js → external-B6F5s5aQ.js} +2 -2
- package/dist/{external-GQjdWsOX.cjs → external-B8UhV4HB.cjs} +1 -1
- package/dist/{external-DYr-TNbF.js → external-BjZo74zS.js} +5 -5
- package/dist/{external-D8r96cqI.js → external-C2rLSz0G.js} +3 -3
- package/dist/{external-DY38DhOK.cjs → external-C4beOlX2.cjs} +1 -1
- package/dist/{external-tnXiEaTc.cjs → external-C5nr86pR.cjs} +1 -1
- package/dist/{external-BFldRd_W.cjs → external-CNl6YOd-.cjs} +1 -1
- package/dist/{external-BXXNOCb0.cjs → external-CTth9RPW.cjs} +1 -1
- package/dist/{external-Dst1oSuM.js → external-CW9xTNHG.js} +5 -5
- package/dist/{external--UUIWzFw.cjs → external-Co2r9DLy.cjs} +1 -1
- package/dist/{external-DmgHQYvn.js → external-CulLnj8B.js} +2 -2
- package/dist/{external-rB_b8uvo.js → external-Dds3S09i.js} +2 -2
- package/dist/{external-BICFLjgD.js → external-Dh0igrIc.js} +3 -3
- package/dist/{external-D1KK9_Hu.js → external-E30UptW0.js} +2 -2
- package/dist/{external-D1HsngQj.cjs → external-FuH8ekoj.cjs} +1 -1
- package/dist/{external-Dckibeci.cjs → external-HLgDxDKN.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +25 -25
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/package.json +7 -7
|
@@ -73,14 +73,14 @@ let tc = class {
|
|
|
73
73
|
}
|
|
74
74
|
decodeString(e, n) {
|
|
75
75
|
const [r, ...i] = e.trim().split(`
|
|
76
|
-
`).map((
|
|
76
|
+
`).map((c) => c.trim());
|
|
77
77
|
if (r.length === 0)
|
|
78
78
|
return n != null ? n.parse({}) : {};
|
|
79
|
-
const a = r.split(",").map((
|
|
80
|
-
return a.forEach((
|
|
81
|
-
o[
|
|
82
|
-
}), i.forEach((
|
|
83
|
-
const u =
|
|
79
|
+
const a = r.split(",").map((c) => c.trim()), o = {};
|
|
80
|
+
return a.forEach((c) => {
|
|
81
|
+
o[c] = [];
|
|
82
|
+
}), i.forEach((c) => {
|
|
83
|
+
const u = c.split(",").map((d) => d.trim());
|
|
84
84
|
a.forEach((d, f) => {
|
|
85
85
|
const h = this.parseValue(u[f]);
|
|
86
86
|
h != null && o[d].push(h);
|
|
@@ -163,12 +163,12 @@ const ji = (t) => t != null && typeof t == "object" && "toString" in t, jm = (t)
|
|
|
163
163
|
const n = /([a-zA-Z]+)|(\d+)/g, r = t.replace(/[\s_.-]+/g, "").match(n), i = e.replace(/[\s_.-]+/g, "").match(n);
|
|
164
164
|
if (!r || !i) return 0;
|
|
165
165
|
for (let a = 0; a < Math.min(r.length, i.length); a++) {
|
|
166
|
-
const o = r[a],
|
|
167
|
-
if (isNaN(Number(o)) && isNaN(Number(
|
|
168
|
-
const u = o.localeCompare(
|
|
166
|
+
const o = r[a], c = i[a];
|
|
167
|
+
if (isNaN(Number(o)) && isNaN(Number(c))) {
|
|
168
|
+
const u = o.localeCompare(c);
|
|
169
169
|
if (u !== 0) return u;
|
|
170
|
-
} else if (!isNaN(Number(o)) && !isNaN(Number(
|
|
171
|
-
const u = Number(o) - Number(
|
|
170
|
+
} else if (!isNaN(Number(o)) && !isNaN(Number(c))) {
|
|
171
|
+
const u = Number(o) - Number(c);
|
|
172
172
|
if (u !== 0) return u;
|
|
173
173
|
} else
|
|
174
174
|
return isNaN(Number(o)) ? -1 : 1;
|
|
@@ -210,14 +210,14 @@ const ji = (t) => t != null && typeof t == "object" && "toString" in t, jm = (t)
|
|
|
210
210
|
}).filter((i) => i != null).join(n);
|
|
211
211
|
}, Ui = (t, e, n = { optional: !1, separator: "." }) => {
|
|
212
212
|
n.separator ?? (n.separator = ".");
|
|
213
|
-
const { optional: r, getter: i = (
|
|
213
|
+
const { optional: r, getter: i = (c, u) => c[u] } = n, a = e.split(n.separator);
|
|
214
214
|
if (a.length === 1 && a[0] === "") return t;
|
|
215
215
|
let o = t;
|
|
216
|
-
for (const
|
|
217
|
-
const u = i(o,
|
|
216
|
+
for (const c of a) {
|
|
217
|
+
const u = i(o, c);
|
|
218
218
|
if (u == null) {
|
|
219
219
|
if (r) return null;
|
|
220
|
-
throw new Error(`Path ${e} does not exist. ${
|
|
220
|
+
throw new Error(`Path ${e} does not exist. ${c} is null`);
|
|
221
221
|
}
|
|
222
222
|
o = u;
|
|
223
223
|
}
|
|
@@ -271,34 +271,34 @@ const ji = (t) => t != null && typeof t == "object" && "toString" in t, jm = (t)
|
|
|
271
271
|
o === i.length - 1 ? delete r[a] : a in r && (r = r[a]);
|
|
272
272
|
});
|
|
273
273
|
}), t), bc = (t, e, n = "") => {
|
|
274
|
-
const r = {}, i = (a, o,
|
|
274
|
+
const r = {}, i = (a, o, c) => {
|
|
275
275
|
if (typeof a != typeof o || a === null || o === null) {
|
|
276
|
-
r[
|
|
276
|
+
r[c] = [a, o];
|
|
277
277
|
return;
|
|
278
278
|
}
|
|
279
279
|
if (typeof a == "object" && typeof o == "object")
|
|
280
280
|
if (Array.isArray(a) && Array.isArray(o)) {
|
|
281
281
|
if (a.length !== o.length) {
|
|
282
|
-
r[
|
|
282
|
+
r[c] = [a, o];
|
|
283
283
|
return;
|
|
284
284
|
}
|
|
285
285
|
for (let u = 0; u < a.length; u++)
|
|
286
|
-
i(a[u], o[u], `${
|
|
286
|
+
i(a[u], o[u], `${c}[${u}]`);
|
|
287
287
|
} else
|
|
288
288
|
(/* @__PURE__ */ new Set([...Object.keys(a), ...Object.keys(o)])).forEach((u) => {
|
|
289
|
-
i(a[u], o[u],
|
|
289
|
+
i(a[u], o[u], c !== "" ? `${c}.${u}` : u);
|
|
290
290
|
});
|
|
291
291
|
else
|
|
292
|
-
a !== o && (r[
|
|
292
|
+
a !== o && (r[c] = [a, o]);
|
|
293
293
|
};
|
|
294
294
|
return i(t, e, n), r;
|
|
295
295
|
}, Ar = (t, e) => {
|
|
296
296
|
const n = Array.isArray(t), r = Array.isArray(e);
|
|
297
297
|
if (n !== r) return !1;
|
|
298
298
|
if (n && r) {
|
|
299
|
-
const o = t,
|
|
300
|
-
if (o.length !==
|
|
301
|
-
for (let u = 0; u < o.length; u++) if (!Ar(o[u],
|
|
299
|
+
const o = t, c = e;
|
|
300
|
+
if (o.length !== c.length) return !1;
|
|
301
|
+
for (let u = 0; u < o.length; u++) if (!Ar(o[u], c[u])) return !1;
|
|
302
302
|
return !0;
|
|
303
303
|
}
|
|
304
304
|
if (t == null || e == null || typeof t != "object" || typeof e != "object")
|
|
@@ -307,10 +307,10 @@ const ji = (t) => t != null && typeof t == "object" && "toString" in t, jm = (t)
|
|
|
307
307
|
const i = Object.keys(t), a = Object.keys(e);
|
|
308
308
|
if (i.length !== a.length) return !1;
|
|
309
309
|
for (const o of i) {
|
|
310
|
-
const
|
|
311
|
-
if (typeof
|
|
312
|
-
if (!Ar(
|
|
313
|
-
} else if (
|
|
310
|
+
const c = t[o], u = e[o];
|
|
311
|
+
if (typeof c == "object" && typeof u == "object") {
|
|
312
|
+
if (!Ar(c, u)) return !1;
|
|
313
|
+
} else if (c !== u) return !1;
|
|
314
314
|
}
|
|
315
315
|
return !0;
|
|
316
316
|
}, Bi = (t, e) => {
|
|
@@ -337,12 +337,12 @@ const ji = (t) => t != null && typeof t == "object" && "toString" in t, jm = (t)
|
|
|
337
337
|
return xr(t, ...e);
|
|
338
338
|
}, vc = (t, e, n) => {
|
|
339
339
|
const r = (i, a, o) => {
|
|
340
|
-
for (const
|
|
341
|
-
const u = a[
|
|
342
|
-
if (o != null && o.shape[
|
|
343
|
-
const d = o.shape[
|
|
344
|
-
d.success && (i[
|
|
345
|
-
} else typeof u == "object" && !Array.isArray(u) && u !== null && o && o.shape && o.shape[
|
|
340
|
+
for (const c in a) {
|
|
341
|
+
const u = a[c];
|
|
342
|
+
if (o != null && o.shape[c]) {
|
|
343
|
+
const d = o.shape[c].safeParse(u);
|
|
344
|
+
d.success && (i[c] = d.data);
|
|
345
|
+
} else typeof u == "object" && !Array.isArray(u) && u !== null && o && o.shape && o.shape[c] && (i[c] || (i[c] = {}), r(i[c], u, o.shape[c]));
|
|
346
346
|
}
|
|
347
347
|
return i;
|
|
348
348
|
};
|
|
@@ -415,9 +415,9 @@ const Ec = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", Li
|
|
|
415
415
|
}
|
|
416
416
|
static parseTimeString(e, n = "UTC") {
|
|
417
417
|
const [r, i, a] = e.split(":");
|
|
418
|
-
let o = "00",
|
|
419
|
-
a != null && ([o,
|
|
420
|
-
let u = O.hours(parseInt(r ?? "00", 10)).add(O.minutes(parseInt(i ?? "00", 10))).add(O.seconds(parseInt(o ?? "00", 10))).add(O.milliseconds(parseInt(
|
|
418
|
+
let o = "00", c = "00";
|
|
419
|
+
a != null && ([o, c] = a.split("."));
|
|
420
|
+
let u = O.hours(parseInt(r ?? "00", 10)).add(O.minutes(parseInt(i ?? "00", 10))).add(O.seconds(parseInt(o ?? "00", 10))).add(O.milliseconds(parseInt(c ?? "00", 10)));
|
|
421
421
|
return n === "local" && (u = u.add(O.utcOffset)), u.valueOf();
|
|
422
422
|
}
|
|
423
423
|
static parseDateTimeString(e, n = "UTC") {
|
|
@@ -717,7 +717,7 @@ const L = class k {
|
|
|
717
717
|
);
|
|
718
718
|
}
|
|
719
719
|
toString() {
|
|
720
|
-
const e = this.truncate(k.DAY), n = this.truncate(k.HOUR), r = this.truncate(k.MINUTE), i = this.truncate(k.SECOND), a = this.truncate(k.MILLISECOND), o = this.truncate(k.MICROSECOND),
|
|
720
|
+
const e = this.truncate(k.DAY), n = this.truncate(k.HOUR), r = this.truncate(k.MINUTE), i = this.truncate(k.SECOND), a = this.truncate(k.MILLISECOND), o = this.truncate(k.MICROSECOND), c = this.truncate(k.NANOSECOND), u = e, d = n.sub(e), f = r.sub(n), h = i.sub(r), j = a.sub(i), F = o.sub(a), re = c.sub(o);
|
|
721
721
|
let R = "";
|
|
722
722
|
return u.isZero || (R += `${u.days}d `), d.isZero || (R += `${d.hours}h `), f.isZero || (R += `${f.minutes}m `), h.isZero || (R += `${h.seconds}s `), j.isZero || (R += `${j.milliseconds}ms `), F.isZero || (R += `${F.microseconds}µs `), re.isZero || (R += `${re.nanoseconds}ns`), R.trim();
|
|
723
723
|
}
|
|
@@ -1275,9 +1275,9 @@ const se = class V extends Number {
|
|
|
1275
1275
|
return this.valueOf() / V.TERABYTE.valueOf();
|
|
1276
1276
|
}
|
|
1277
1277
|
toString() {
|
|
1278
|
-
const e = this.truncate(V.TERABYTE), n = this.truncate(V.GIGABYTE), r = this.truncate(V.MEGABYTE), i = this.truncate(V.KILOBYTE), a = this.truncate(V.BYTE), o = e,
|
|
1278
|
+
const e = this.truncate(V.TERABYTE), n = this.truncate(V.GIGABYTE), r = this.truncate(V.MEGABYTE), i = this.truncate(V.KILOBYTE), a = this.truncate(V.BYTE), o = e, c = n.sub(e), u = r.sub(n), d = i.sub(r), f = a.sub(i);
|
|
1279
1279
|
let h = "";
|
|
1280
|
-
return o.isZero || (h += `${o.terabytes}TB `),
|
|
1280
|
+
return o.isZero || (h += `${o.terabytes}TB `), c.isZero || (h += `${c.gigabytes}GB `), u.isZero || (h += `${u.megabytes}MB `), d.isZero || (h += `${d.kilobytes}KB `), (!f.isZero || h === "") && (h += `${f.valueOf()}B`), h.trim();
|
|
1281
1281
|
}
|
|
1282
1282
|
/**
|
|
1283
1283
|
* Creates a Size from the given number of bytes.
|
|
@@ -1363,7 +1363,7 @@ let Ac = class Ae {
|
|
|
1363
1363
|
sampleOffset: i = 0,
|
|
1364
1364
|
glBufferUsage: a = "static",
|
|
1365
1365
|
alignment: o = 0n,
|
|
1366
|
-
key:
|
|
1366
|
+
key: c = Li()
|
|
1367
1367
|
} = e, { data: u } = e;
|
|
1368
1368
|
if (u instanceof Ae || typeof u == "object" && "isSynnaxSeries" in u && u.isSynnaxSeries === !0) {
|
|
1369
1369
|
const h = u;
|
|
@@ -1411,7 +1411,7 @@ let Ac = class Ae {
|
|
|
1411
1411
|
`
|
|
1412
1412
|
)) : this._data = new this.dataType.Array(h).buffer;
|
|
1413
1413
|
}
|
|
1414
|
-
this.key =
|
|
1414
|
+
this.key = c, this.alignment = o, this.sampleOffset = i ?? 0, this._timeRange = r, this.gl = {
|
|
1415
1415
|
control: null,
|
|
1416
1416
|
buffer: null,
|
|
1417
1417
|
prevBuffer: 0,
|
|
@@ -2022,7 +2022,7 @@ let Jc = Gi;
|
|
|
2022
2022
|
new Jc();
|
|
2023
2023
|
const Qm = (t) => t ? -1 : 1, $r = s.string().regex(/^\d+\.\d+\.\d+$/), Dt = (t, e, n = {}) => {
|
|
2024
2024
|
n.checkMajor ?? (n.checkMajor = !0), n.checkMinor ?? (n.checkMinor = !0), n.checkPatch ?? (n.checkPatch = !0);
|
|
2025
|
-
const r = $r.parse(t), i = $r.parse(e), [a, o,
|
|
2025
|
+
const r = $r.parse(t), i = $r.parse(e), [a, o, c] = r.split(".").map(Number), [u, d, f] = i.split(".").map(Number);
|
|
2026
2026
|
if (n.checkMajor) {
|
|
2027
2027
|
if (a < u) return tr;
|
|
2028
2028
|
if (a > u) return nr;
|
|
@@ -2032,8 +2032,8 @@ const Qm = (t) => t ? -1 : 1, $r = s.string().regex(/^\d+\.\d+\.\d+$/), Dt = (t,
|
|
|
2032
2032
|
if (o > d) return nr;
|
|
2033
2033
|
}
|
|
2034
2034
|
if (n.checkPatch) {
|
|
2035
|
-
if (
|
|
2036
|
-
if (
|
|
2035
|
+
if (c < f) return tr;
|
|
2036
|
+
if (c > f) return nr;
|
|
2037
2037
|
}
|
|
2038
2038
|
return cc;
|
|
2039
2039
|
}, Hc = (t, e, n = {}) => Pi(Dt(t, e, n)), Zi = (t, e, n = {}) => Di(Dt(t, e, n)), Xc = (t, e, n = {}) => Mi(Dt(t, e, n)), Qc = ({
|
|
@@ -2069,12 +2069,12 @@ const Qm = (t) => t ? -1 : 1, $r = s.string().regex(/^\d+\.\d+\.\d+$/), Dt = (t,
|
|
|
2069
2069
|
};
|
|
2070
2070
|
const a = Object.keys(e).length;
|
|
2071
2071
|
let o = !1;
|
|
2072
|
-
const
|
|
2072
|
+
const c = (u) => {
|
|
2073
2073
|
try {
|
|
2074
2074
|
if (a === 0 || Zi(u.version, i))
|
|
2075
2075
|
return console.log(o ? `${t} ${u.version} now up to date` : `${t} version ${u.version} is up to date with target version ${r.version}`), u;
|
|
2076
2076
|
const d = u.version, f = e[d], h = f(u);
|
|
2077
|
-
return o = !0,
|
|
2077
|
+
return o = !0, c(h);
|
|
2078
2078
|
} catch (d) {
|
|
2079
2079
|
return console.log(
|
|
2080
2080
|
`${t} failed to migrate from ${u.version} to ${i}`
|
|
@@ -2083,7 +2083,7 @@ const Qm = (t) => t ? -1 : 1, $r = s.string().regex(/^\d+\.\d+\.\d+$/), Dt = (t,
|
|
|
2083
2083
|
};
|
|
2084
2084
|
return (u) => {
|
|
2085
2085
|
try {
|
|
2086
|
-
return
|
|
2086
|
+
return c(u);
|
|
2087
2087
|
} catch (d) {
|
|
2088
2088
|
return console.log(`${t} failed to parse final result. Exiting with default`), console.error(d), r;
|
|
2089
2089
|
}
|
|
@@ -2401,10 +2401,10 @@ const al = () => (sr == null && (sr = document.createElement("canvas")), sr), aw
|
|
|
2401
2401
|
const {
|
|
2402
2402
|
typography: r,
|
|
2403
2403
|
sizes: { base: i }
|
|
2404
|
-
} = t, a = r[wl(e) ? il[e] : e].size, o = i * a, [
|
|
2405
|
-
return n != null ? ` ${n} ${o}px ${
|
|
2404
|
+
} = t, a = r[wl(e) ? il[e] : e].size, o = i * a, [c, u] = r.family.split(", ");
|
|
2405
|
+
return n != null ? ` ${n} ${o}px ${c}, ${u}` : ` ${o}px ${r.family}`;
|
|
2406
2406
|
};
|
|
2407
|
-
var bl = Object.defineProperty, vl = (t, e, n) => e in t ? bl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n,
|
|
2407
|
+
var bl = Object.defineProperty, vl = (t, e, n) => e in t ? bl(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, l = (t, e, n) => vl(t, typeof e != "symbol" ? e + "" : e, n), Ol = Object.defineProperty, Tl = (t, e, n) => e in t ? Ol(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, M = (t, e, n) => Tl(t, typeof e != "symbol" ? e + "" : e, n);
|
|
2408
2408
|
const Sl = (t) => {
|
|
2409
2409
|
const e = t.replace(/_[a-z]/g, (n) => n[1].toUpperCase());
|
|
2410
2410
|
return e.length > 1 && e[0] === e[0].toUpperCase() && e[1] === e[1].toUpperCase() ? e : e[0].toLowerCase() + e.slice(1);
|
|
@@ -2416,12 +2416,12 @@ const Sl = (t) => {
|
|
|
2416
2416
|
r = kl(r);
|
|
2417
2417
|
const i = {}, a = n;
|
|
2418
2418
|
return Object.keys(a).forEach((o) => {
|
|
2419
|
-
let
|
|
2419
|
+
let c = a[o];
|
|
2420
2420
|
const u = t(o);
|
|
2421
|
-
r.recursive && (ir(
|
|
2421
|
+
r.recursive && (ir(c) ? Bs(c, r.keepTypesOnRecursion) || (c = e(c, r)) : r.recursiveInArray && Us(c) && (c = [...c].map((d) => {
|
|
2422
2422
|
let f = d;
|
|
2423
2423
|
return ir(d) ? Bs(f, r.keepTypesOnRecursion) || (f = e(d, r)) : Us(d) && (f = e({ key: d }, r).key), f;
|
|
2424
|
-
}))), i[u] =
|
|
2424
|
+
}))), i[u] = c;
|
|
2425
2425
|
}), i;
|
|
2426
2426
|
};
|
|
2427
2427
|
return e;
|
|
@@ -2482,9 +2482,9 @@ let Cl = class {
|
|
|
2482
2482
|
return i.forEach((o) => {
|
|
2483
2483
|
a[o] = [];
|
|
2484
2484
|
}), r.forEach((o) => {
|
|
2485
|
-
const
|
|
2485
|
+
const c = o.split(",").map((u) => u.trim());
|
|
2486
2486
|
i.forEach((u, d) => {
|
|
2487
|
-
const f = this.parseValue(
|
|
2487
|
+
const f = this.parseValue(c[d]);
|
|
2488
2488
|
f != null && a[u].push(f);
|
|
2489
2489
|
});
|
|
2490
2490
|
}), e != null ? e.parse(a) : a;
|
|
@@ -2612,7 +2612,7 @@ const Ql = (t) => (e, n, r, i) => n === "dimension" ? [e, r] : [
|
|
|
2612
2612
|
i ? r / t : r * t
|
|
2613
2613
|
], tu = (t) => (e, n, r) => {
|
|
2614
2614
|
if (e === null) return [t, r];
|
|
2615
|
-
const { lower: i, upper: a } = e, { lower: o, upper:
|
|
2615
|
+
const { lower: i, upper: a } = e, { lower: o, upper: c } = t, u = a - i, d = c - o;
|
|
2616
2616
|
if (n === "dimension") return [t, r * (d / u)];
|
|
2617
2617
|
const f = (r - i) * (d / u) + o;
|
|
2618
2618
|
return [t, f];
|
|
@@ -2684,9 +2684,9 @@ const Ql = (t) => (e, n, r, i) => n === "dimension" ? [e, r] : [
|
|
|
2684
2684
|
e.ops.reverse();
|
|
2685
2685
|
const n = [];
|
|
2686
2686
|
return e.ops.forEach((r, i) => {
|
|
2687
|
-
if (r.type === "scale" || n.some(([o,
|
|
2687
|
+
if (r.type === "scale" || n.some(([o, c]) => i >= o && i <= c))
|
|
2688
2688
|
return;
|
|
2689
|
-
const a = e.ops.findIndex((o,
|
|
2689
|
+
const a = e.ops.findIndex((o, c) => o.type === "scale" && c > i);
|
|
2690
2690
|
a !== -1 && n.push([i, a]);
|
|
2691
2691
|
}), n.forEach(([r, i]) => {
|
|
2692
2692
|
const a = e.ops.slice(r, i);
|
|
@@ -2819,9 +2819,9 @@ const oa = (t, e) => {
|
|
|
2819
2819
|
}
|
|
2820
2820
|
static parseTimeString(e, n = "UTC") {
|
|
2821
2821
|
const [r, i, a] = e.split(":");
|
|
2822
|
-
let o = "00",
|
|
2823
|
-
a != null && ([o,
|
|
2824
|
-
let u = T.hours(parseInt(r ?? "00", 10)).add(T.minutes(parseInt(i ?? "00", 10))).add(T.seconds(parseInt(o ?? "00", 10))).add(T.milliseconds(parseInt(
|
|
2822
|
+
let o = "00", c = "00";
|
|
2823
|
+
a != null && ([o, c] = a.split("."));
|
|
2824
|
+
let u = T.hours(parseInt(r ?? "00", 10)).add(T.minutes(parseInt(i ?? "00", 10))).add(T.seconds(parseInt(o ?? "00", 10))).add(T.milliseconds(parseInt(c ?? "00", 10)));
|
|
2825
2825
|
return n === "local" && (u = u.add(T.utcOffset)), u.valueOf();
|
|
2826
2826
|
}
|
|
2827
2827
|
static parseDateTimeString(e, n = "UTC") {
|
|
@@ -3121,7 +3121,7 @@ const z = class A {
|
|
|
3121
3121
|
);
|
|
3122
3122
|
}
|
|
3123
3123
|
toString() {
|
|
3124
|
-
const e = this.truncate(A.DAY), n = this.truncate(A.HOUR), r = this.truncate(A.MINUTE), i = this.truncate(A.SECOND), a = this.truncate(A.MILLISECOND), o = this.truncate(A.MICROSECOND),
|
|
3124
|
+
const e = this.truncate(A.DAY), n = this.truncate(A.HOUR), r = this.truncate(A.MINUTE), i = this.truncate(A.SECOND), a = this.truncate(A.MILLISECOND), o = this.truncate(A.MICROSECOND), c = this.truncate(A.NANOSECOND), u = e, d = n.sub(e), f = r.sub(n), h = i.sub(r), j = a.sub(i), F = o.sub(a), re = c.sub(o);
|
|
3125
3125
|
let R = "";
|
|
3126
3126
|
return u.isZero || (R += `${u.days}d `), d.isZero || (R += `${d.hours}h `), f.isZero || (R += `${f.minutes}m `), h.isZero || (R += `${h.seconds}s `), j.isZero || (R += `${j.milliseconds}ms `), F.isZero || (R += `${F.microseconds}µs `), re.isZero || (R += `${re.nanoseconds}ns`), R.trim();
|
|
3127
3127
|
}
|
|
@@ -3677,9 +3677,9 @@ const ie = class G extends Number {
|
|
|
3677
3677
|
return this.valueOf() / G.TERABYTE.valueOf();
|
|
3678
3678
|
}
|
|
3679
3679
|
toString() {
|
|
3680
|
-
const e = this.truncate(G.TERABYTE), n = this.truncate(G.GIGABYTE), r = this.truncate(G.MEGABYTE), i = this.truncate(G.KILOBYTE), a = this.truncate(G.BYTE), o = e,
|
|
3680
|
+
const e = this.truncate(G.TERABYTE), n = this.truncate(G.GIGABYTE), r = this.truncate(G.MEGABYTE), i = this.truncate(G.KILOBYTE), a = this.truncate(G.BYTE), o = e, c = n.sub(e), u = r.sub(n), d = i.sub(r), f = a.sub(i);
|
|
3681
3681
|
let h = "";
|
|
3682
|
-
return o.isZero || (h += `${o.terabytes}TB `),
|
|
3682
|
+
return o.isZero || (h += `${o.terabytes}TB `), c.isZero || (h += `${c.gigabytes}GB `), u.isZero || (h += `${u.megabytes}MB `), d.isZero || (h += `${d.kilobytes}KB `), (!f.isZero || h === "") && (h += `${f.valueOf()}B`), h.trim();
|
|
3683
3683
|
}
|
|
3684
3684
|
/**
|
|
3685
3685
|
* Creates a Size from the given number of bytes.
|
|
@@ -3995,8 +3995,8 @@ class Au extends wa {
|
|
|
3995
3995
|
async send(e, n, r, i) {
|
|
3996
3996
|
n = r == null ? void 0 : r.parse(n);
|
|
3997
3997
|
let a = null;
|
|
3998
|
-
const o = this.endpoint.child(e),
|
|
3999
|
-
|
|
3998
|
+
const o = this.endpoint.child(e), c = {};
|
|
3999
|
+
c.method = "POST", c.body = this.encoder.encode(n ?? {});
|
|
4000
4000
|
const [, u] = await this.executeMiddleware(
|
|
4001
4001
|
{
|
|
4002
4002
|
target: o.toString(),
|
|
@@ -4006,13 +4006,13 @@ class Au extends wa {
|
|
|
4006
4006
|
},
|
|
4007
4007
|
async (d) => {
|
|
4008
4008
|
const f = { ...d, params: {} };
|
|
4009
|
-
|
|
4009
|
+
c.headers = {
|
|
4010
4010
|
...this.headers,
|
|
4011
4011
|
...d.params
|
|
4012
4012
|
};
|
|
4013
4013
|
let h;
|
|
4014
4014
|
try {
|
|
4015
|
-
h = await Zs(d.protocol)(d.target,
|
|
4015
|
+
h = await Zs(d.protocol)(d.target, c);
|
|
4016
4016
|
} catch (F) {
|
|
4017
4017
|
let re = F;
|
|
4018
4018
|
return re.message === "Load failed" && (re = new Ve({ url: o })), [f, re];
|
|
@@ -4111,8 +4111,8 @@ const ju = "freighterctx", Ru = 1e3, Mu = 1001, Du = [Ru, Mu], Pu = (t) => Du.in
|
|
|
4111
4111
|
let a;
|
|
4112
4112
|
const [, o] = await this.executeMiddleware(
|
|
4113
4113
|
{ target: e, protocol: "websocket", params: {}, role: "client" },
|
|
4114
|
-
async (
|
|
4115
|
-
const u = i(this.buildURL(e,
|
|
4114
|
+
async (c) => {
|
|
4115
|
+
const u = i(this.buildURL(e, c)), d = { ...c, params: {} };
|
|
4116
4116
|
u.binaryType = Oa.MESSAGE_TYPE;
|
|
4117
4117
|
const f = await this.wrapSocket(u, n, r);
|
|
4118
4118
|
return f instanceof Error ? [d, f] : (a = f, [d, null]);
|
|
@@ -4155,12 +4155,12 @@ const Bu = (t) => {
|
|
|
4155
4155
|
r = zu(r);
|
|
4156
4156
|
const i = {}, a = n;
|
|
4157
4157
|
return Object.keys(a).forEach((o) => {
|
|
4158
|
-
let
|
|
4158
|
+
let c = a[o];
|
|
4159
4159
|
const u = t(o);
|
|
4160
|
-
r.recursive && (ur(
|
|
4160
|
+
r.recursive && (ur(c) ? Js(c, r.keepTypesOnRecursion) || (c = e(c, r)) : r.recursiveInArray && Ks(c) && (c = [...c].map((d) => {
|
|
4161
4161
|
let f = d;
|
|
4162
4162
|
return ur(d) ? Js(f, r.keepTypesOnRecursion) || (f = e(d, r)) : Ks(d) && (f = e({ key: d }, r).key), f;
|
|
4163
|
-
}))), i[u] =
|
|
4163
|
+
}))), i[u] = c;
|
|
4164
4164
|
}), i;
|
|
4165
4165
|
};
|
|
4166
4166
|
return e;
|
|
@@ -4221,9 +4221,9 @@ let Na = class {
|
|
|
4221
4221
|
return i.forEach((o) => {
|
|
4222
4222
|
a[o] = [];
|
|
4223
4223
|
}), r.forEach((o) => {
|
|
4224
|
-
const
|
|
4224
|
+
const c = o.split(",").map((u) => u.trim());
|
|
4225
4225
|
i.forEach((u, d) => {
|
|
4226
|
-
const f = this.parseValue(
|
|
4226
|
+
const f = this.parseValue(c[d]);
|
|
4227
4227
|
f != null && a[u].push(f);
|
|
4228
4228
|
});
|
|
4229
4229
|
}), e != null ? e.parse(a) : a;
|
|
@@ -4384,7 +4384,7 @@ const Oh = (t) => (e, n, r, i) => n === "dimension" ? [e, r] : [
|
|
|
4384
4384
|
i ? r / t : r * t
|
|
4385
4385
|
], Sh = (t) => (e, n, r) => {
|
|
4386
4386
|
if (e === null) return [t, r];
|
|
4387
|
-
const { lower: i, upper: a } = e, { lower: o, upper:
|
|
4387
|
+
const { lower: i, upper: a } = e, { lower: o, upper: c } = t, u = a - i, d = c - o;
|
|
4388
4388
|
if (n === "dimension") return [t, r * (d / u)];
|
|
4389
4389
|
const f = (r - i) * (d / u) + o;
|
|
4390
4390
|
return [t, f];
|
|
@@ -4456,9 +4456,9 @@ const Oh = (t) => (e, n, r, i) => n === "dimension" ? [e, r] : [
|
|
|
4456
4456
|
e.ops.reverse();
|
|
4457
4457
|
const n = [];
|
|
4458
4458
|
return e.ops.forEach((r, i) => {
|
|
4459
|
-
if (r.type === "scale" || n.some(([o,
|
|
4459
|
+
if (r.type === "scale" || n.some(([o, c]) => i >= o && i <= c))
|
|
4460
4460
|
return;
|
|
4461
|
-
const a = e.ops.findIndex((o,
|
|
4461
|
+
const a = e.ops.findIndex((o, c) => o.type === "scale" && c > i);
|
|
4462
4462
|
a !== -1 && n.push([i, a]);
|
|
4463
4463
|
}), n.forEach(([r, i]) => {
|
|
4464
4464
|
const a = e.ops.slice(r, i);
|
|
@@ -4598,9 +4598,9 @@ const Ch = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", Ma
|
|
|
4598
4598
|
}
|
|
4599
4599
|
static parseTimeString(e, n = "UTC") {
|
|
4600
4600
|
const [r, i, a] = e.split(":");
|
|
4601
|
-
let o = "00",
|
|
4602
|
-
a != null && ([o,
|
|
4603
|
-
let u = S.hours(parseInt(r ?? "00", 10)).add(S.minutes(parseInt(i ?? "00", 10))).add(S.seconds(parseInt(o ?? "00", 10))).add(S.milliseconds(parseInt(
|
|
4601
|
+
let o = "00", c = "00";
|
|
4602
|
+
a != null && ([o, c] = a.split("."));
|
|
4603
|
+
let u = S.hours(parseInt(r ?? "00", 10)).add(S.minutes(parseInt(i ?? "00", 10))).add(S.seconds(parseInt(o ?? "00", 10))).add(S.milliseconds(parseInt(c ?? "00", 10)));
|
|
4604
4604
|
return n === "local" && (u = u.add(S.utcOffset)), u.valueOf();
|
|
4605
4605
|
}
|
|
4606
4606
|
static parseDateTimeString(e, n = "UTC") {
|
|
@@ -4900,7 +4900,7 @@ const _ = class x {
|
|
|
4900
4900
|
);
|
|
4901
4901
|
}
|
|
4902
4902
|
toString() {
|
|
4903
|
-
const e = this.truncate(x.DAY), n = this.truncate(x.HOUR), r = this.truncate(x.MINUTE), i = this.truncate(x.SECOND), a = this.truncate(x.MILLISECOND), o = this.truncate(x.MICROSECOND),
|
|
4903
|
+
const e = this.truncate(x.DAY), n = this.truncate(x.HOUR), r = this.truncate(x.MINUTE), i = this.truncate(x.SECOND), a = this.truncate(x.MILLISECOND), o = this.truncate(x.MICROSECOND), c = this.truncate(x.NANOSECOND), u = e, d = n.sub(e), f = r.sub(n), h = i.sub(r), j = a.sub(i), F = o.sub(a), re = c.sub(o);
|
|
4904
4904
|
let R = "";
|
|
4905
4905
|
return u.isZero || (R += `${u.days}d `), d.isZero || (R += `${d.hours}h `), f.isZero || (R += `${f.minutes}m `), h.isZero || (R += `${h.seconds}s `), j.isZero || (R += `${j.milliseconds}ms `), F.isZero || (R += `${F.microseconds}µs `), re.isZero || (R += `${re.nanoseconds}ns`), R.trim();
|
|
4906
4906
|
}
|
|
@@ -5458,9 +5458,9 @@ const ae = class Z extends Number {
|
|
|
5458
5458
|
return this.valueOf() / Z.TERABYTE.valueOf();
|
|
5459
5459
|
}
|
|
5460
5460
|
toString() {
|
|
5461
|
-
const e = this.truncate(Z.TERABYTE), n = this.truncate(Z.GIGABYTE), r = this.truncate(Z.MEGABYTE), i = this.truncate(Z.KILOBYTE), a = this.truncate(Z.BYTE), o = e,
|
|
5461
|
+
const e = this.truncate(Z.TERABYTE), n = this.truncate(Z.GIGABYTE), r = this.truncate(Z.MEGABYTE), i = this.truncate(Z.KILOBYTE), a = this.truncate(Z.BYTE), o = e, c = n.sub(e), u = r.sub(n), d = i.sub(r), f = a.sub(i);
|
|
5462
5462
|
let h = "";
|
|
5463
|
-
return o.isZero || (h += `${o.terabytes}TB `),
|
|
5463
|
+
return o.isZero || (h += `${o.terabytes}TB `), c.isZero || (h += `${c.gigabytes}GB `), u.isZero || (h += `${u.megabytes}MB `), d.isZero || (h += `${d.kilobytes}KB `), (!f.isZero || h === "") && (h += `${f.valueOf()}B`), h.trim();
|
|
5464
5464
|
}
|
|
5465
5465
|
/**
|
|
5466
5466
|
* Creates a Size from the given number of bytes.
|
|
@@ -5547,7 +5547,7 @@ let He = class $e {
|
|
|
5547
5547
|
sampleOffset: i = 0,
|
|
5548
5548
|
glBufferUsage: a = "static",
|
|
5549
5549
|
alignment: o = 0n,
|
|
5550
|
-
key:
|
|
5550
|
+
key: c = Ma()
|
|
5551
5551
|
} = e, { data: u } = e;
|
|
5552
5552
|
if (u instanceof $e || typeof u == "object" && "isSynnaxSeries" in u && u.isSynnaxSeries === !0) {
|
|
5553
5553
|
const h = u;
|
|
@@ -5595,7 +5595,7 @@ let He = class $e {
|
|
|
5595
5595
|
`
|
|
5596
5596
|
)) : this._data = new this.dataType.Array(h).buffer;
|
|
5597
5597
|
}
|
|
5598
|
-
this.key =
|
|
5598
|
+
this.key = c, this.alignment = o, this.sampleOffset = i ?? 0, this._timeRange = r, this.gl = {
|
|
5599
5599
|
control: null,
|
|
5600
5600
|
buffer: null,
|
|
5601
5601
|
prevBuffer: 0,
|
|
@@ -6213,7 +6213,7 @@ let td = Ya;
|
|
|
6213
6213
|
new td();
|
|
6214
6214
|
const zr = s.string().regex(/^\d+\.\d+\.\d+$/), Ut = (t, e, n = {}) => {
|
|
6215
6215
|
n.checkMajor ?? (n.checkMajor = !0), n.checkMinor ?? (n.checkMinor = !0), n.checkPatch ?? (n.checkPatch = !0);
|
|
6216
|
-
const r = zr.parse(t), i = zr.parse(e), [a, o,
|
|
6216
|
+
const r = zr.parse(t), i = zr.parse(e), [a, o, c] = r.split(".").map(Number), [u, d, f] = i.split(".").map(Number);
|
|
6217
6217
|
if (n.checkMajor) {
|
|
6218
6218
|
if (a < u) return hr;
|
|
6219
6219
|
if (a > u) return dr;
|
|
@@ -6223,8 +6223,8 @@ const zr = s.string().regex(/^\d+\.\d+\.\d+$/), Ut = (t, e, n = {}) => {
|
|
|
6223
6223
|
if (o > d) return dr;
|
|
6224
6224
|
}
|
|
6225
6225
|
if (n.checkPatch) {
|
|
6226
|
-
if (
|
|
6227
|
-
if (
|
|
6226
|
+
if (c < f) return hr;
|
|
6227
|
+
if (c > f) return dr;
|
|
6228
6228
|
}
|
|
6229
6229
|
return Ju;
|
|
6230
6230
|
}, nd = (t, e, n = {}) => Qu(Ut(t, e, n)), za = (t, e, n = {}) => Xu(Ut(t, e, n)), rd = (t, e, n = {}) => Hu(Ut(t, e, n)), sd = ({
|
|
@@ -6260,12 +6260,12 @@ const zr = s.string().regex(/^\d+\.\d+\.\d+$/), Ut = (t, e, n = {}) => {
|
|
|
6260
6260
|
};
|
|
6261
6261
|
const a = Object.keys(e).length;
|
|
6262
6262
|
let o = !1;
|
|
6263
|
-
const
|
|
6263
|
+
const c = (u) => {
|
|
6264
6264
|
try {
|
|
6265
6265
|
if (a === 0 || za(u.version, i))
|
|
6266
6266
|
return console.log(o ? `${t} ${u.version} now up to date` : `${t} version ${u.version} is up to date with target version ${r.version}`), u;
|
|
6267
6267
|
const d = u.version, f = e[d], h = f(u);
|
|
6268
|
-
return o = !0,
|
|
6268
|
+
return o = !0, c(h);
|
|
6269
6269
|
} catch (d) {
|
|
6270
6270
|
return console.log(
|
|
6271
6271
|
`${t} failed to migrate from ${u.version} to ${i}`
|
|
@@ -6274,7 +6274,7 @@ const zr = s.string().regex(/^\d+\.\d+\.\d+$/), Ut = (t, e, n = {}) => {
|
|
|
6274
6274
|
};
|
|
6275
6275
|
return (u) => {
|
|
6276
6276
|
try {
|
|
6277
|
-
return
|
|
6277
|
+
return c(u);
|
|
6278
6278
|
} catch (d) {
|
|
6279
6279
|
return console.log(`${t} failed to parse final result. Exiting with default`), console.error(d), r;
|
|
6280
6280
|
}
|
|
@@ -6290,31 +6290,31 @@ const zr = s.string().regex(/^\d+\.\d+\.\d+$/), Ut = (t, e, n = {}) => {
|
|
|
6290
6290
|
versionsEqual: nd
|
|
6291
6291
|
}, Symbol.toStringTag, { value: "Module" })), Ue = "sy.", fn = class qa extends be {
|
|
6292
6292
|
constructor() {
|
|
6293
|
-
super(...arguments),
|
|
6293
|
+
super(...arguments), l(this, "type", qa.TYPE);
|
|
6294
6294
|
}
|
|
6295
6295
|
};
|
|
6296
|
-
|
|
6296
|
+
l(fn, "TYPE", Ue + "validation"), l(fn, "matches", he(fn.TYPE));
|
|
6297
6297
|
let J = fn;
|
|
6298
6298
|
const yn = class _a extends J {
|
|
6299
6299
|
constructor(e, n) {
|
|
6300
|
-
super(e + ": " + n),
|
|
6300
|
+
super(e + ": " + n), l(this, "type", _a.TYPE), l(this, "field"), l(this, "message"), this.field = e, this.message = n;
|
|
6301
6301
|
}
|
|
6302
6302
|
};
|
|
6303
|
-
|
|
6303
|
+
l(yn, "TYPE", J.TYPE + ".field"), l(yn, "matches", he(yn.TYPE));
|
|
6304
6304
|
let hi = yn;
|
|
6305
6305
|
const gn = class Fa extends be {
|
|
6306
6306
|
constructor() {
|
|
6307
|
-
super(...arguments),
|
|
6307
|
+
super(...arguments), l(this, "type", Fa.TYPE);
|
|
6308
6308
|
}
|
|
6309
6309
|
};
|
|
6310
|
-
|
|
6310
|
+
l(gn, "TYPE", Ue + "auth"), l(gn, "matches", he(gn.TYPE));
|
|
6311
6311
|
let jn = gn;
|
|
6312
6312
|
const pn = class Wa extends jn {
|
|
6313
6313
|
constructor() {
|
|
6314
|
-
super(...arguments),
|
|
6314
|
+
super(...arguments), l(this, "type", Wa.TYPE);
|
|
6315
6315
|
}
|
|
6316
6316
|
};
|
|
6317
|
-
|
|
6317
|
+
l(pn, "TYPE", jn.TYPE + ".invalid-token"), l(pn, "matches", he(pn.TYPE));
|
|
6318
6318
|
let qr = pn;
|
|
6319
6319
|
const mn = class Va extends be {
|
|
6320
6320
|
constructor(e) {
|
|
@@ -6324,59 +6324,59 @@ const mn = class Va extends be {
|
|
|
6324
6324
|
${e}
|
|
6325
6325
|
|
|
6326
6326
|
Please report this to the Synnax team.
|
|
6327
|
-
`),
|
|
6327
|
+
`), l(this, "type", Va.TYPE);
|
|
6328
6328
|
}
|
|
6329
6329
|
};
|
|
6330
|
-
|
|
6330
|
+
l(mn, "TYPE", Ue + "unexpected"), l(mn, "matches", he(mn.TYPE));
|
|
6331
6331
|
let we = mn;
|
|
6332
6332
|
const wn = class Ga extends be {
|
|
6333
6333
|
constructor() {
|
|
6334
|
-
super(...arguments),
|
|
6334
|
+
super(...arguments), l(this, "type", Ga.TYPE);
|
|
6335
6335
|
}
|
|
6336
6336
|
};
|
|
6337
|
-
|
|
6337
|
+
l(wn, "TYPE", Ue + "query"), l(wn, "matches", he(wn.TYPE));
|
|
6338
6338
|
let ke = wn;
|
|
6339
6339
|
const bn = class Za extends ke {
|
|
6340
6340
|
constructor() {
|
|
6341
|
-
super(...arguments),
|
|
6341
|
+
super(...arguments), l(this, "type", Za.TYPE);
|
|
6342
6342
|
}
|
|
6343
6343
|
};
|
|
6344
|
-
|
|
6344
|
+
l(bn, "TYPE", ke.TYPE + ".not_found"), l(bn, "matches", he(bn.TYPE));
|
|
6345
6345
|
let Rn = bn;
|
|
6346
6346
|
const vn = class Ka extends ke {
|
|
6347
6347
|
constructor() {
|
|
6348
|
-
super(...arguments),
|
|
6348
|
+
super(...arguments), l(this, "type", Ka.TYPE);
|
|
6349
6349
|
}
|
|
6350
6350
|
};
|
|
6351
|
-
|
|
6351
|
+
l(vn, "TYPE", ke.TYPE + ".multiple_results"), l(vn, "matches", he(vn.TYPE));
|
|
6352
6352
|
let Mn = vn;
|
|
6353
6353
|
const On = class Ja extends be {
|
|
6354
6354
|
constructor(e, n) {
|
|
6355
|
-
super(e),
|
|
6355
|
+
super(e), l(this, "type", Ja.TYPE), l(this, "path"), this.path = n;
|
|
6356
6356
|
}
|
|
6357
6357
|
};
|
|
6358
|
-
|
|
6358
|
+
l(On, "TYPE", Ue + "route"), l(On, "matches", he(On.TYPE));
|
|
6359
6359
|
let di = On;
|
|
6360
6360
|
const Tn = class Ha extends be {
|
|
6361
6361
|
constructor() {
|
|
6362
|
-
super(...arguments),
|
|
6362
|
+
super(...arguments), l(this, "type", Ha.TYPE);
|
|
6363
6363
|
}
|
|
6364
6364
|
};
|
|
6365
|
-
|
|
6365
|
+
l(Tn, "TYPE", Ue + "control"), l(Tn, "matches", he(Tn.TYPE));
|
|
6366
6366
|
let Dn = Tn;
|
|
6367
6367
|
const Sn = class Xa extends Dn {
|
|
6368
6368
|
constructor() {
|
|
6369
|
-
super(...arguments),
|
|
6369
|
+
super(...arguments), l(this, "type", Xa.TYPE);
|
|
6370
6370
|
}
|
|
6371
6371
|
};
|
|
6372
|
-
|
|
6372
|
+
l(Sn, "TYPE", Dn.TYPE + ".unauthorized"), l(Sn, "matches", he(Sn.TYPE));
|
|
6373
6373
|
let fi = Sn;
|
|
6374
6374
|
const gr = class Qa extends be {
|
|
6375
6375
|
constructor() {
|
|
6376
|
-
super(...arguments),
|
|
6376
|
+
super(...arguments), l(this, "type", Qa.TYPE);
|
|
6377
6377
|
}
|
|
6378
6378
|
};
|
|
6379
|
-
|
|
6379
|
+
l(gr, "TYPE", Ue + "contiguity"), l(gr, "matches", he(gr.TYPE));
|
|
6380
6380
|
const ad = (t) => {
|
|
6381
6381
|
if (!t.type.startsWith(Ue)) return null;
|
|
6382
6382
|
if (t.type.startsWith(J.TYPE)) {
|
|
@@ -6403,7 +6403,7 @@ const cd = async (t, e) => {
|
|
|
6403
6403
|
};
|
|
6404
6404
|
class eo {
|
|
6405
6405
|
constructor(e, n) {
|
|
6406
|
-
|
|
6406
|
+
l(this, "key"), l(this, "name"), this.key = n, this.name = e;
|
|
6407
6407
|
}
|
|
6408
6408
|
get ontologyID() {
|
|
6409
6409
|
return new $({
|
|
@@ -6437,7 +6437,7 @@ const ld = s.string().uuid(), to = s.object({
|
|
|
6437
6437
|
return { type: e, key: n };
|
|
6438
6438
|
}), hd = s.union([ud, ye]), Nn = class no {
|
|
6439
6439
|
constructor(e) {
|
|
6440
|
-
if (
|
|
6440
|
+
if (l(this, "type"), l(this, "key"), e instanceof no)
|
|
6441
6441
|
this.type = e.type, this.key = e.key;
|
|
6442
6442
|
else if (typeof e == "string") {
|
|
6443
6443
|
const [n, r] = e.split(":");
|
|
@@ -6455,7 +6455,7 @@ const ld = s.string().uuid(), to = s.object({
|
|
|
6455
6455
|
};
|
|
6456
6456
|
}
|
|
6457
6457
|
};
|
|
6458
|
-
|
|
6458
|
+
l(Nn, "z", s.union([hd, s.instanceof(Nn)]).transform((t) => new Nn(t)));
|
|
6459
6459
|
let $ = Nn;
|
|
6460
6460
|
new $({ type: "builtin", key: "root" });
|
|
6461
6461
|
const dd = s.object({
|
|
@@ -6495,7 +6495,7 @@ const yi = (t) => {
|
|
|
6495
6495
|
var De;
|
|
6496
6496
|
let bd = (De = class {
|
|
6497
6497
|
constructor(t) {
|
|
6498
|
-
|
|
6498
|
+
l(this, "client"), this.client = t;
|
|
6499
6499
|
}
|
|
6500
6500
|
async create(t, e, n) {
|
|
6501
6501
|
return (await v(
|
|
@@ -6524,9 +6524,9 @@ let bd = (De = class {
|
|
|
6524
6524
|
s.object({})
|
|
6525
6525
|
);
|
|
6526
6526
|
}
|
|
6527
|
-
},
|
|
6527
|
+
}, l(De, "ENDPOINT", "/ontology/create-group"), l(De, "ENDPOINT_RENAME", "/ontology/rename-group"), l(De, "ENDPOINT_DELETE", "/ontology/delete-group"), De), vd = class {
|
|
6528
6528
|
constructor(t) {
|
|
6529
|
-
|
|
6529
|
+
l(this, "creator"), this.creator = new bd(t);
|
|
6530
6530
|
}
|
|
6531
6531
|
async create(t, e, n) {
|
|
6532
6532
|
return this.sugar(await this.creator.create(t, e, n));
|
|
@@ -6555,7 +6555,7 @@ const pr = {
|
|
|
6555
6555
|
});
|
|
6556
6556
|
let Td = class {
|
|
6557
6557
|
constructor(t) {
|
|
6558
|
-
|
|
6558
|
+
l(this, "client"), this.client = t;
|
|
6559
6559
|
}
|
|
6560
6560
|
async addChildren(t, ...e) {
|
|
6561
6561
|
await v(
|
|
@@ -6605,7 +6605,7 @@ const Sd = "/ontology/retrieve", Nd = s.object({
|
|
|
6605
6605
|
}), mr = (t) => N(t).map((e) => new $(e).payload);
|
|
6606
6606
|
let Id = class {
|
|
6607
6607
|
constructor(t, e) {
|
|
6608
|
-
|
|
6608
|
+
l(this, "type", "ontology"), l(this, "groups"), l(this, "client"), l(this, "writer"), l(this, "framer"), this.client = t, this.writer = new Td(t), this.groups = new vd(t), this.framer = e;
|
|
6609
6609
|
}
|
|
6610
6610
|
/**
|
|
6611
6611
|
* Executes a fuzzy search on the ontology for resources with names/fields similar to the
|
|
@@ -6726,7 +6726,7 @@ let Id = class {
|
|
|
6726
6726
|
const pi = "sy_ontology_resource_set", mi = "sy_ontology_resource_delete", wi = "sy_ontology_relationship_set", bi = "sy_ontology_relationship_delete";
|
|
6727
6727
|
class Fn {
|
|
6728
6728
|
constructor(e, n) {
|
|
6729
|
-
|
|
6729
|
+
l(this, "relationships"), l(this, "resources"), l(this, "resourceObs"), l(this, "relationshipObs"), l(this, "streamer"), l(this, "client"), l(this, "closePromise"), this.relationshipObs = new Ge.Observer(), this.relationships = this.relationshipObs, this.resourceObs = new Ge.Observer(), this.resources = this.resourceObs, this.client = n, this.streamer = e, this.closePromise = this.start();
|
|
6730
6730
|
}
|
|
6731
6731
|
async close() {
|
|
6732
6732
|
this.streamer.close(), await this.closePromise;
|
|
@@ -6796,13 +6796,13 @@ class os extends Ge.Observer {
|
|
|
6796
6796
|
relationshipType: r = "parent",
|
|
6797
6797
|
relationshipDirection: i = "from",
|
|
6798
6798
|
resourceType: a
|
|
6799
|
-
}, o,
|
|
6800
|
-
super(),
|
|
6799
|
+
}, o, c) {
|
|
6800
|
+
super(), l(this, "internal"), l(this, "target"), l(this, "relDir"), l(this, "resourceType"), l(this, "dependents"), l(this, "client"), l(this, "relType"), l(this, "handleResourceChange", (u) => {
|
|
6801
6801
|
this.dependents = this.dependents.map((d) => {
|
|
6802
6802
|
const f = u.find((h) => h.key.toString() == d.id.toString());
|
|
6803
6803
|
return f == null || f.variant === "delete" ? d : f.value;
|
|
6804
6804
|
}), this.notify(this.dependents);
|
|
6805
|
-
}),
|
|
6805
|
+
}), l(this, "handleRelationshipChange", (u) => {
|
|
6806
6806
|
const d = u.filter(
|
|
6807
6807
|
(h) => h.variant === "delete" && h.key[this.relDir].toString() === this.target.toString() && (this.resourceType == null || h.key[vi(this.relDir)].type === this.resourceType)
|
|
6808
6808
|
);
|
|
@@ -6818,7 +6818,7 @@ class os extends Ge.Observer {
|
|
|
6818
6818
|
this.client.retrieve(f.map((h) => h.key.to)).then((h) => {
|
|
6819
6819
|
this.dependents = this.dependents.concat(h), this.notify(this.dependents);
|
|
6820
6820
|
});
|
|
6821
|
-
}), this.resourceType = a, this.internal = o, this.target = e, this.dependents = n, this.resourceType != null && (this.dependents = this.dependents.filter((u) => u.id.type === this.resourceType)), this.client =
|
|
6821
|
+
}), this.resourceType = a, this.internal = o, this.target = e, this.dependents = n, this.resourceType != null && (this.dependents = this.dependents.filter((u) => u.id.type === this.resourceType)), this.client = c, this.relType = r, this.relDir = i, this.internal.resources.onChange(this.handleResourceChange), this.internal.relationships.onChange(this.handleRelationshipChange);
|
|
6822
6822
|
}
|
|
6823
6823
|
static async open(e, n, r) {
|
|
6824
6824
|
const i = await Fn.open(n, r);
|
|
@@ -6855,7 +6855,7 @@ var xd = function(t, e, n, r) {
|
|
|
6855
6855
|
});
|
|
6856
6856
|
}
|
|
6857
6857
|
return new (n || (n = Promise))(function(a, o) {
|
|
6858
|
-
function
|
|
6858
|
+
function c(f) {
|
|
6859
6859
|
try {
|
|
6860
6860
|
d(r.next(f));
|
|
6861
6861
|
} catch (h) {
|
|
@@ -6870,7 +6870,7 @@ var xd = function(t, e, n, r) {
|
|
|
6870
6870
|
}
|
|
6871
6871
|
}
|
|
6872
6872
|
function d(f) {
|
|
6873
|
-
f.done ? a(f.value) : i(f.value).then(
|
|
6873
|
+
f.done ? a(f.value) : i(f.value).then(c, u);
|
|
6874
6874
|
}
|
|
6875
6875
|
d((r = r.apply(t, e || [])).next());
|
|
6876
6876
|
});
|
|
@@ -6883,7 +6883,7 @@ class Cd {
|
|
|
6883
6883
|
if (e <= 0)
|
|
6884
6884
|
throw new Error(`invalid weight ${e}: must be positive`);
|
|
6885
6885
|
return new Promise((r, i) => {
|
|
6886
|
-
const a = { resolve: r, reject: i, weight: e, priority: n }, o = io(this._queue, (
|
|
6886
|
+
const a = { resolve: r, reject: i, weight: e, priority: n }, o = io(this._queue, (c) => n <= c.priority);
|
|
6887
6887
|
o === -1 && e <= this._value ? this._dispatchItem(a) : this._queue.splice(o + 1, 0, a);
|
|
6888
6888
|
});
|
|
6889
6889
|
}
|
|
@@ -6973,7 +6973,7 @@ var jd = function(t, e, n, r) {
|
|
|
6973
6973
|
});
|
|
6974
6974
|
}
|
|
6975
6975
|
return new (n || (n = Promise))(function(a, o) {
|
|
6976
|
-
function
|
|
6976
|
+
function c(f) {
|
|
6977
6977
|
try {
|
|
6978
6978
|
d(r.next(f));
|
|
6979
6979
|
} catch (h) {
|
|
@@ -6988,7 +6988,7 @@ var jd = function(t, e, n, r) {
|
|
|
6988
6988
|
}
|
|
6989
6989
|
}
|
|
6990
6990
|
function d(f) {
|
|
6991
|
-
f.done ? a(f.value) : i(f.value).then(
|
|
6991
|
+
f.done ? a(f.value) : i(f.value).then(c, u);
|
|
6992
6992
|
}
|
|
6993
6993
|
d((r = r.apply(t, e || [])).next());
|
|
6994
6994
|
});
|
|
@@ -7023,10 +7023,10 @@ const Wn = (t, e, { convertNumericStrings: n = !0 } = {}) => {
|
|
|
7023
7023
|
const r = !Array.isArray(t);
|
|
7024
7024
|
let i = N(t);
|
|
7025
7025
|
const a = i[0], o = typeof a;
|
|
7026
|
-
let
|
|
7027
|
-
return o === "string" && n && !isNaN(parseInt(a)) && "number" in e ? (
|
|
7026
|
+
let c;
|
|
7027
|
+
return o === "string" && n && !isNaN(parseInt(a)) && "number" in e ? (c = e.number, i = i.map((u) => parseInt(u))) : c = e[o], {
|
|
7028
7028
|
single: r,
|
|
7029
|
-
variant:
|
|
7029
|
+
variant: c,
|
|
7030
7030
|
normalized: i,
|
|
7031
7031
|
actual: t
|
|
7032
7032
|
};
|
|
@@ -7059,7 +7059,7 @@ const Wn = (t, e, { convertNumericStrings: n = !0 } = {}) => {
|
|
|
7059
7059
|
string: "names"
|
|
7060
7060
|
}), ao = class oo {
|
|
7061
7061
|
constructor(e) {
|
|
7062
|
-
|
|
7062
|
+
l(this, "client"), this.client = e;
|
|
7063
7063
|
}
|
|
7064
7064
|
async search(e, n) {
|
|
7065
7065
|
return await this.execute({ search: e, ...n });
|
|
@@ -7083,11 +7083,11 @@ const Wn = (t, e, { convertNumericStrings: n = !0 } = {}) => {
|
|
|
7083
7083
|
return n.channels;
|
|
7084
7084
|
}
|
|
7085
7085
|
};
|
|
7086
|
-
|
|
7086
|
+
l(ao, "ENDPOINT", "/channel/retrieve");
|
|
7087
7087
|
let cs = ao;
|
|
7088
7088
|
class ls {
|
|
7089
7089
|
constructor(e) {
|
|
7090
|
-
|
|
7090
|
+
l(this, "cache"), l(this, "namesToKeys"), l(this, "wrapped"), this.cache = /* @__PURE__ */ new Map(), this.namesToKeys = /* @__PURE__ */ new Map(), this.wrapped = e;
|
|
7091
7091
|
}
|
|
7092
7092
|
async search(e, n) {
|
|
7093
7093
|
return await this.wrapped.search(e, n);
|
|
@@ -7100,9 +7100,9 @@ class ls {
|
|
|
7100
7100
|
string: "names",
|
|
7101
7101
|
number: "keys"
|
|
7102
7102
|
}), i = [], a = [];
|
|
7103
|
-
if (r.forEach((
|
|
7104
|
-
const u = this.get(
|
|
7105
|
-
u != null ? i.push(...u) : a.push(
|
|
7103
|
+
if (r.forEach((c) => {
|
|
7104
|
+
const u = this.get(c);
|
|
7105
|
+
u != null ? i.push(...u) : a.push(c);
|
|
7106
7106
|
}), a.length === 0) return i;
|
|
7107
7107
|
const o = await this.wrapped.retrieve(a, n);
|
|
7108
7108
|
return this.set(o), i.concat(o);
|
|
@@ -7122,8 +7122,8 @@ class ls {
|
|
|
7122
7122
|
const a = n[i], o = this.cache.get(r);
|
|
7123
7123
|
if (o == null) return;
|
|
7124
7124
|
this.cache.delete(r);
|
|
7125
|
-
const
|
|
7126
|
-
|
|
7125
|
+
const c = this.namesToKeys.get(o.name);
|
|
7126
|
+
c != null && (c.delete(r), c.size === 0 && this.namesToKeys.delete(o.name)), o.name = a, this.cache.set(r, o);
|
|
7127
7127
|
const u = this.namesToKeys.get(a);
|
|
7128
7128
|
u == null ? this.namesToKeys.set(a, /* @__PURE__ */ new Set([r])) : u.add(r);
|
|
7129
7129
|
});
|
|
@@ -7152,7 +7152,7 @@ class ls {
|
|
|
7152
7152
|
}
|
|
7153
7153
|
class co {
|
|
7154
7154
|
constructor(e, n) {
|
|
7155
|
-
|
|
7155
|
+
l(this, "mu", new Rd()), l(this, "requests", /* @__PURE__ */ new Map()), l(this, "wrapped"), l(this, "debouncedRun"), this.wrapped = e, this.debouncedRun = Lh(() => {
|
|
7156
7156
|
this.run();
|
|
7157
7157
|
}, n);
|
|
7158
7158
|
}
|
|
@@ -7203,13 +7203,13 @@ class uo {
|
|
|
7203
7203
|
leaseholder: i = 0,
|
|
7204
7204
|
key: a = 0,
|
|
7205
7205
|
isIndex: o = !1,
|
|
7206
|
-
index:
|
|
7206
|
+
index: c = 0,
|
|
7207
7207
|
internal: u = !1,
|
|
7208
7208
|
virtual: d = !1,
|
|
7209
7209
|
frameClient: f,
|
|
7210
7210
|
alias: h
|
|
7211
7211
|
}) {
|
|
7212
|
-
|
|
7212
|
+
l(this, "_frameClient"), l(this, "key"), l(this, "name"), l(this, "rate"), l(this, "dataType"), l(this, "leaseholder"), l(this, "index"), l(this, "isIndex"), l(this, "internal"), l(this, "alias"), l(this, "virtual"), this.key = a, this.name = r, this.rate = new ss(n ?? 0), this.dataType = new E(e), this.leaseholder = i, this.index = c, this.isIndex = o, this.internal = u, this.alias = h, this.virtual = d, this._frameClient = f ?? null;
|
|
7213
7213
|
}
|
|
7214
7214
|
get framer() {
|
|
7215
7215
|
if (this._frameClient == null)
|
|
@@ -7264,14 +7264,14 @@ const Pd = "/channel/retrieve-group", Ud = s.object({}), Bd = s.object({
|
|
|
7264
7264
|
});
|
|
7265
7265
|
let ho = class {
|
|
7266
7266
|
constructor(t, e, n, r) {
|
|
7267
|
-
|
|
7267
|
+
l(this, "type", "channel"), l(this, "frameClient"), l(this, "client"), l(this, "retriever"), l(this, "writer"), this.frameClient = t, this.retriever = e, this.client = n, this.writer = r;
|
|
7268
7268
|
}
|
|
7269
7269
|
async create(t, e = {}) {
|
|
7270
7270
|
const { retrieveIfNameExists: n = !1 } = e, r = !Array.isArray(t);
|
|
7271
7271
|
let i = N(t), a = [];
|
|
7272
7272
|
if (n) {
|
|
7273
|
-
const o = await this.retriever.retrieve(i.map((u) => u.name)),
|
|
7274
|
-
i = i.filter((u) => !
|
|
7273
|
+
const o = await this.retriever.retrieve(i.map((u) => u.name)), c = new Set(o.map((u) => u.name));
|
|
7274
|
+
i = i.filter((u) => !c.has(u.name)), a = this.sugar(o);
|
|
7275
7275
|
}
|
|
7276
7276
|
return a = a.concat(this.sugar(await this.writer.create(i))), r ? a[0] : a;
|
|
7277
7277
|
}
|
|
@@ -7340,7 +7340,7 @@ const Ld = s.object({ channels: ro.array() }), Yd = s.object({ channels: Bt.arra
|
|
|
7340
7340
|
}), Fd = s.object({}), Wd = "/channel/create", Vd = "/channel/delete", Gd = "/channel/rename";
|
|
7341
7341
|
let fo = class {
|
|
7342
7342
|
constructor(t, e) {
|
|
7343
|
-
|
|
7343
|
+
l(this, "client"), l(this, "cache"), this.client = t, this.cache = e;
|
|
7344
7344
|
}
|
|
7345
7345
|
async create(t) {
|
|
7346
7346
|
const { channels: e } = await v(this.client, Wd, { channels: t }, Ld, Yd);
|
|
@@ -7390,7 +7390,7 @@ const dw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
7390
7390
|
});
|
|
7391
7391
|
let sf = class {
|
|
7392
7392
|
constructor(t) {
|
|
7393
|
-
|
|
7393
|
+
l(this, "client"), this.client = t;
|
|
7394
7394
|
}
|
|
7395
7395
|
async create(t) {
|
|
7396
7396
|
const e = !Array.isArray(t), { policies: n } = await v(
|
|
@@ -7419,7 +7419,7 @@ let sf = class {
|
|
|
7419
7419
|
const af = "/user/register";
|
|
7420
7420
|
let of = class {
|
|
7421
7421
|
constructor(t) {
|
|
7422
|
-
|
|
7422
|
+
l(this, "client"), this.client = t;
|
|
7423
7423
|
}
|
|
7424
7424
|
async register(t, e) {
|
|
7425
7425
|
const { user: n } = await v(
|
|
@@ -7445,12 +7445,12 @@ const cf = s.object({
|
|
|
7445
7445
|
}), Oi = "/auth/login", lf = 3;
|
|
7446
7446
|
let uf = class {
|
|
7447
7447
|
constructor(t, e) {
|
|
7448
|
-
|
|
7448
|
+
l(this, "token"), l(this, "client"), l(this, "credentials"), l(this, "authenticating"), l(this, "authenticated"), l(this, "user"), l(this, "retryCount"), this.client = t, this.authenticated = !1, this.credentials = e, this.retryCount = 0;
|
|
7449
7449
|
}
|
|
7450
7450
|
middleware() {
|
|
7451
7451
|
const t = async (e, n) => {
|
|
7452
7452
|
if (!this.authenticated && !e.target.endsWith(Oi)) {
|
|
7453
|
-
this.authenticating == null && (this.authenticating = new Promise((o,
|
|
7453
|
+
this.authenticating == null && (this.authenticating = new Promise((o, c) => {
|
|
7454
7454
|
this.client.send(
|
|
7455
7455
|
Oi,
|
|
7456
7456
|
this.credentials,
|
|
@@ -7459,7 +7459,7 @@ let uf = class {
|
|
|
7459
7459
|
).then(([u, d]) => {
|
|
7460
7460
|
if (d != null) return o(d);
|
|
7461
7461
|
this.token = u == null ? void 0 : u.token, this.user = u == null ? void 0 : u.user, this.authenticated = !0, o(null);
|
|
7462
|
-
}).catch(
|
|
7462
|
+
}).catch(c);
|
|
7463
7463
|
}));
|
|
7464
7464
|
const a = await this.authenticating;
|
|
7465
7465
|
if (a != null) return [e, a];
|
|
@@ -7488,7 +7488,7 @@ const hf = ["disconnected", "connecting", "connected", "failed"], df = s.enum(hf
|
|
|
7488
7488
|
error: void 0,
|
|
7489
7489
|
message: "Disconnected",
|
|
7490
7490
|
clientServerCompatible: !1,
|
|
7491
|
-
clientVersion: "0.
|
|
7491
|
+
clientVersion: "0.30.0"
|
|
7492
7492
|
}, Ti = (t, e, n) => {
|
|
7493
7493
|
const r = n ? "cluster" : "client";
|
|
7494
7494
|
return `Synnax cluster node version ${t != null ? t + " " : ""}is too ${n ? "old" : "new"} for client version ${e}.
|
|
@@ -7501,7 +7501,7 @@ const hf = ["disconnected", "connecting", "connected", "failed"], df = s.enum(hf
|
|
|
7501
7501
|
* connectivity information.
|
|
7502
7502
|
*/
|
|
7503
7503
|
constructor(e, n = I.seconds(30), r, i) {
|
|
7504
|
-
|
|
7504
|
+
l(this, "_state"), l(this, "pollFrequency", I.seconds(30)), l(this, "client"), l(this, "name"), l(this, "interval"), l(this, "clientVersion"), l(this, "onChangeHandlers", []), l(this, "versionWarned", !1), this._state = { ...po }, this.client = e, this.pollFrequency = n, this.clientVersion = r, this.name = i, this.check(), this.startChecking();
|
|
7505
7505
|
}
|
|
7506
7506
|
/** Stops the connectivity client from polling the cluster for connectivity */
|
|
7507
7507
|
stopChecking() {
|
|
@@ -7522,12 +7522,12 @@ const hf = ["disconnected", "connecting", "connected", "failed"], df = s.enum(hf
|
|
|
7522
7522
|
yf
|
|
7523
7523
|
);
|
|
7524
7524
|
if (i != null) throw i;
|
|
7525
|
-
const a = r.nodeVersion, o = this.clientVersion,
|
|
7526
|
-
a == null ? (this._state.clientServerCompatible = !1,
|
|
7525
|
+
const a = r.nodeVersion, o = this.clientVersion, c = this.versionWarned;
|
|
7526
|
+
a == null ? (this._state.clientServerCompatible = !1, c || (console.warn(Ti(null, o, !0)), this.versionWarned = !0)) : ui.versionsEqual(o, a, {
|
|
7527
7527
|
checkMajor: !0,
|
|
7528
7528
|
checkMinor: !0,
|
|
7529
7529
|
checkPatch: !1
|
|
7530
|
-
}) ? this._state.clientServerCompatible = !0 : (this._state.clientServerCompatible = !1,
|
|
7530
|
+
}) ? this._state.clientServerCompatible = !0 : (this._state.clientServerCompatible = !1, c || (console.warn(
|
|
7531
7531
|
Ti(
|
|
7532
7532
|
a,
|
|
7533
7533
|
o,
|
|
@@ -7553,7 +7553,7 @@ const hf = ["disconnected", "connecting", "connected", "failed"], df = s.enum(hf
|
|
|
7553
7553
|
}, this.pollFrequency.milliseconds);
|
|
7554
7554
|
}
|
|
7555
7555
|
};
|
|
7556
|
-
|
|
7556
|
+
l(En, "ENDPOINT", "/connectivity/check"), l(En, "DEFAULT", po), l(En, "connectionStateZ", ff);
|
|
7557
7557
|
let wo = En;
|
|
7558
7558
|
const gf = s.object({
|
|
7559
7559
|
keys: Be.array().optional(),
|
|
@@ -7562,7 +7562,7 @@ const gf = s.object({
|
|
|
7562
7562
|
}), pf = s.object({}), mf = "/frame/delete";
|
|
7563
7563
|
class wf {
|
|
7564
7564
|
constructor(e) {
|
|
7565
|
-
|
|
7565
|
+
l(this, "client"), this.client = e;
|
|
7566
7566
|
}
|
|
7567
7567
|
async delete(e) {
|
|
7568
7568
|
await v(
|
|
@@ -7590,7 +7590,7 @@ const Si = (t) => {
|
|
|
7590
7590
|
};
|
|
7591
7591
|
let me = class Je {
|
|
7592
7592
|
constructor(e = [], n = []) {
|
|
7593
|
-
if (
|
|
7593
|
+
if (l(this, "columns", []), l(this, "series", []), e instanceof Je) {
|
|
7594
7594
|
this.columns = e.columns, this.series = e.series;
|
|
7595
7595
|
return;
|
|
7596
7596
|
}
|
|
@@ -7831,7 +7831,7 @@ const bf = s.object({
|
|
|
7831
7831
|
});
|
|
7832
7832
|
class Gn {
|
|
7833
7833
|
constructor(e) {
|
|
7834
|
-
|
|
7834
|
+
l(this, "adapter"), l(this, "retriever"), l(this, "keys"), this.retriever = e, this.adapter = null, this.keys = [];
|
|
7835
7835
|
}
|
|
7836
7836
|
static async open(e, n) {
|
|
7837
7837
|
const r = new Gn(e);
|
|
@@ -7845,9 +7845,9 @@ class Gn {
|
|
|
7845
7845
|
}
|
|
7846
7846
|
const i = await this.retriever.retrieve(r), a = /* @__PURE__ */ new Map();
|
|
7847
7847
|
this.adapter = a, r.forEach((o) => {
|
|
7848
|
-
const
|
|
7849
|
-
if (
|
|
7850
|
-
a.set(
|
|
7848
|
+
const c = i.find((u) => u.name === o);
|
|
7849
|
+
if (c == null) throw new Error(`Channel ${o} not found`);
|
|
7850
|
+
a.set(c.key, c.name);
|
|
7851
7851
|
}), this.keys = Array.from(this.adapter.keys());
|
|
7852
7852
|
}
|
|
7853
7853
|
adapt(e) {
|
|
@@ -7865,7 +7865,7 @@ class Gn {
|
|
|
7865
7865
|
}
|
|
7866
7866
|
class fs {
|
|
7867
7867
|
constructor(e) {
|
|
7868
|
-
|
|
7868
|
+
l(this, "adapter"), l(this, "retriever"), l(this, "keys"), this.retriever = e, this.adapter = null, this.keys = [];
|
|
7869
7869
|
}
|
|
7870
7870
|
static async open(e, n) {
|
|
7871
7871
|
const r = new fs(e);
|
|
@@ -7901,8 +7901,8 @@ class fs {
|
|
|
7901
7901
|
`);
|
|
7902
7902
|
n = n;
|
|
7903
7903
|
}
|
|
7904
|
-
const o = await this.fetchChannel(e),
|
|
7905
|
-
return new me(o.key,
|
|
7904
|
+
const o = await this.fetchChannel(e), c = new He({ data: n, dataType: o.dataType });
|
|
7905
|
+
return new me(o.key, c);
|
|
7906
7906
|
}
|
|
7907
7907
|
if (Array.isArray(e)) {
|
|
7908
7908
|
if (n == null)
|
|
@@ -7913,7 +7913,7 @@ class fs {
|
|
|
7913
7913
|
throw new J(`
|
|
7914
7914
|
Received an array of channel names or keys but no array of series.
|
|
7915
7915
|
`);
|
|
7916
|
-
const o = [],
|
|
7916
|
+
const o = [], c = [];
|
|
7917
7917
|
for (let u = 0; u < e.length; u++) {
|
|
7918
7918
|
const d = await this.fetchChannel(e[u]);
|
|
7919
7919
|
if (u >= n.length)
|
|
@@ -7924,15 +7924,15 @@ class fs {
|
|
|
7924
7924
|
data: n[u],
|
|
7925
7925
|
dataType: d.dataType
|
|
7926
7926
|
});
|
|
7927
|
-
o.push(d.key),
|
|
7927
|
+
o.push(d.key), c.push(f);
|
|
7928
7928
|
}
|
|
7929
|
-
return new me(o,
|
|
7929
|
+
return new me(o, c);
|
|
7930
7930
|
}
|
|
7931
7931
|
if (e instanceof me || e instanceof Map) {
|
|
7932
7932
|
const o = new me(e);
|
|
7933
7933
|
if (this.adapter == null) return o;
|
|
7934
|
-
let
|
|
7935
|
-
return
|
|
7934
|
+
let c = [];
|
|
7935
|
+
return c = o.columns.map((u) => {
|
|
7936
7936
|
var d;
|
|
7937
7937
|
const f = typeof u == "string" ? (d = this.adapter) == null ? void 0 : d.get(u) : u;
|
|
7938
7938
|
if (f == null)
|
|
@@ -7940,11 +7940,11 @@ class fs {
|
|
|
7940
7940
|
Channel ${u} was not provided in the list of channels when opening the writer
|
|
7941
7941
|
`);
|
|
7942
7942
|
return f;
|
|
7943
|
-
}), new me(
|
|
7943
|
+
}), new me(c, o.series);
|
|
7944
7944
|
}
|
|
7945
7945
|
const r = [], i = [], a = Object.entries(e);
|
|
7946
7946
|
for (let o = 0; o < a.length; o++) {
|
|
7947
|
-
const [
|
|
7947
|
+
const [c, u] = a[o], d = await this.fetchChannel(c), f = new He({ data: u, dataType: d.dataType });
|
|
7948
7948
|
r.push(d.key), i.push(f);
|
|
7949
7949
|
}
|
|
7950
7950
|
return new me(r, i);
|
|
@@ -7952,7 +7952,7 @@ class fs {
|
|
|
7952
7952
|
}
|
|
7953
7953
|
class ys {
|
|
7954
7954
|
constructor(e, n) {
|
|
7955
|
-
|
|
7955
|
+
l(this, "name"), l(this, "stream"), this.stream = n, this.name = e;
|
|
7956
7956
|
}
|
|
7957
7957
|
async receive() {
|
|
7958
7958
|
const [e, n] = await this.stream.receive();
|
|
@@ -7999,7 +7999,7 @@ const Tf = s.object({
|
|
|
7999
7999
|
frame: ds.optional()
|
|
8000
8000
|
}), vo = class _r {
|
|
8001
8001
|
constructor(e, n) {
|
|
8002
|
-
|
|
8002
|
+
l(this, "stream"), l(this, "adapter"), l(this, "value"), this.stream = new ys("Iterator", e), this.value = new me(), this.adapter = n;
|
|
8003
8003
|
}
|
|
8004
8004
|
/**
|
|
8005
8005
|
* Opens the iterator, configuring it to iterate over the telemetry in the
|
|
@@ -8013,7 +8013,7 @@ const Tf = s.object({
|
|
|
8013
8013
|
* @param opts - See {@link IteratorConfig}.
|
|
8014
8014
|
*/
|
|
8015
8015
|
static async _open(e, n, r, i, a = {}) {
|
|
8016
|
-
const o = await Gn.open(r, n),
|
|
8016
|
+
const o = await Gn.open(r, n), c = await i.stream(_r.ENDPOINT, Tf, Sf), u = new _r(c, o);
|
|
8017
8017
|
return await u.execute({
|
|
8018
8018
|
command: 0,
|
|
8019
8019
|
keys: o.keys,
|
|
@@ -8128,11 +8128,11 @@ const Tf = s.object({
|
|
|
8128
8128
|
}
|
|
8129
8129
|
}
|
|
8130
8130
|
};
|
|
8131
|
-
|
|
8131
|
+
l(vo, "ENDPOINT", "/frame/iterate");
|
|
8132
8132
|
let Nf = vo;
|
|
8133
8133
|
class Ef {
|
|
8134
8134
|
constructor(e) {
|
|
8135
|
-
|
|
8135
|
+
l(this, "iter"), l(this, "open", !1), this.iter = e;
|
|
8136
8136
|
}
|
|
8137
8137
|
async next() {
|
|
8138
8138
|
try {
|
|
@@ -8149,14 +8149,17 @@ const If = s.object({ keys: s.number().array() }), kf = s.object({
|
|
|
8149
8149
|
}), Af = "/frame/stream";
|
|
8150
8150
|
class ps {
|
|
8151
8151
|
constructor(e, n) {
|
|
8152
|
-
|
|
8152
|
+
l(this, "stream"), l(this, "adapter"), this.stream = new ys("Streamer", e), this.adapter = n;
|
|
8153
8153
|
}
|
|
8154
8154
|
get keys() {
|
|
8155
8155
|
return this.adapter.keys;
|
|
8156
8156
|
}
|
|
8157
8157
|
static async _open(e, n, { channels: r }) {
|
|
8158
8158
|
const i = await Gn.open(e, r), a = await n.stream(Af, If, kf), o = new ps(a, i);
|
|
8159
|
-
|
|
8159
|
+
a.send({ keys: i.keys });
|
|
8160
|
+
const [, c] = await a.receive();
|
|
8161
|
+
if (c != null) throw c;
|
|
8162
|
+
return o;
|
|
8160
8163
|
}
|
|
8161
8164
|
async next() {
|
|
8162
8165
|
try {
|
|
@@ -8181,7 +8184,7 @@ class ps {
|
|
|
8181
8184
|
}
|
|
8182
8185
|
class Zn extends Ge.Observer {
|
|
8183
8186
|
constructor(e, n) {
|
|
8184
|
-
super(n),
|
|
8187
|
+
super(n), l(this, "streamer"), l(this, "closePromise"), this.streamer = e, this.closePromise = this.stream();
|
|
8185
8188
|
}
|
|
8186
8189
|
async close() {
|
|
8187
8190
|
this.streamer.close(), await this.closePromise;
|
|
@@ -8226,7 +8229,7 @@ const Cf = s.object({
|
|
|
8226
8229
|
var at;
|
|
8227
8230
|
let Rf = (at = class {
|
|
8228
8231
|
constructor(t, e) {
|
|
8229
|
-
|
|
8232
|
+
l(this, "stream"), l(this, "adapter"), this.stream = new ys("Writer", t), this.adapter = e;
|
|
8230
8233
|
}
|
|
8231
8234
|
static async _open(t, e, {
|
|
8232
8235
|
channels: n,
|
|
@@ -8234,7 +8237,7 @@ let Rf = (at = class {
|
|
|
8234
8237
|
authorities: i = et.Authority.Absolute,
|
|
8235
8238
|
controlSubject: a,
|
|
8236
8239
|
mode: o = 1,
|
|
8237
|
-
errOnUnauthorized:
|
|
8240
|
+
errOnUnauthorized: c = !1,
|
|
8238
8241
|
enableAutoCommit: u = !1,
|
|
8239
8242
|
autoIndexPersistInterval: d = I.SECOND
|
|
8240
8243
|
}) {
|
|
@@ -8247,7 +8250,7 @@ let Rf = (at = class {
|
|
|
8247
8250
|
controlSubject: a,
|
|
8248
8251
|
authorities: N(i),
|
|
8249
8252
|
mode: xf(o),
|
|
8250
|
-
errOnUnauthorized:
|
|
8253
|
+
errOnUnauthorized: c,
|
|
8251
8254
|
enableAutoCommit: u,
|
|
8252
8255
|
autoIndexPersistInterval: d
|
|
8253
8256
|
}
|
|
@@ -8331,9 +8334,9 @@ let Rf = (at = class {
|
|
|
8331
8334
|
get errorAccumulated() {
|
|
8332
8335
|
return this.stream.received();
|
|
8333
8336
|
}
|
|
8334
|
-
},
|
|
8337
|
+
}, l(at, "ENDPOINT", "/frame/write"), at), Mf = class {
|
|
8335
8338
|
constructor(t, e, n) {
|
|
8336
|
-
|
|
8339
|
+
l(this, "streamClient"), l(this, "retriever"), l(this, "deleter"), this.streamClient = t, this.retriever = n, this.deleter = new wf(e);
|
|
8337
8340
|
}
|
|
8338
8341
|
/**
|
|
8339
8342
|
* Opens a new iterator over the given channels within the provided time range.
|
|
@@ -8429,7 +8432,7 @@ class Oo extends Zn {
|
|
|
8429
8432
|
super(e, (n) => {
|
|
8430
8433
|
const r = this.codec.decode(n.series[0].buffer);
|
|
8431
8434
|
return this.merge(r), [r.transfers, !0];
|
|
8432
|
-
}),
|
|
8435
|
+
}), l(this, "states"), l(this, "codec"), this.states = /* @__PURE__ */ new Map(), this.codec = new tt.JSONCodec();
|
|
8433
8436
|
}
|
|
8434
8437
|
subjects() {
|
|
8435
8438
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -8444,7 +8447,7 @@ class Oo extends Zn {
|
|
|
8444
8447
|
const Bf = "sy_node_1_control";
|
|
8445
8448
|
let To = class {
|
|
8446
8449
|
constructor(t) {
|
|
8447
|
-
|
|
8450
|
+
l(this, "framer"), this.framer = t;
|
|
8448
8451
|
}
|
|
8449
8452
|
async openStateTracker() {
|
|
8450
8453
|
const t = await this.framer.openStreamer(Bf);
|
|
@@ -8461,7 +8464,7 @@ const fw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
8461
8464
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
8462
8465
|
let Lf = class {
|
|
8463
8466
|
constructor(t, e, n) {
|
|
8464
|
-
|
|
8467
|
+
l(this, "tasks"), l(this, "racks"), l(this, "devices"), this.tasks = t, this.racks = e, this.devices = n;
|
|
8465
8468
|
}
|
|
8466
8469
|
};
|
|
8467
8470
|
const Lt = s.number(), ws = s.object({
|
|
@@ -8482,10 +8485,10 @@ const Lt = s.number(), ws = s.object({
|
|
|
8482
8485
|
properties: s.unknown().transform((t) => tt.JSON_CODEC.encodeString(t))
|
|
8483
8486
|
}), nt = async (t, e, n, r) => {
|
|
8484
8487
|
const i = await t.openStreamer([e, n]), a = (o) => {
|
|
8485
|
-
const
|
|
8486
|
-
return n != null &&
|
|
8488
|
+
const c = [];
|
|
8489
|
+
return n != null && c.push(
|
|
8487
8490
|
...o.get(n).series.flatMap((u) => r("delete", u))
|
|
8488
|
-
), e != null &&
|
|
8491
|
+
), e != null && c.push(...o.get(e).series.flatMap((u) => r("set", u))), [c, c.length > 0];
|
|
8489
8492
|
};
|
|
8490
8493
|
return new Zn(i, a);
|
|
8491
8494
|
}, qf = "sy_device_set", _f = "sy_device_delete", wr = "/hardware/device/retrieve", Ff = "/hardware/device/create", Wf = "/hardware/device/delete", Vf = s.object({ devices: zf.array() }), Gf = s.object({ devices: Kn.array() }), Zf = s.object({ keys: bs.array() }), Kf = s.object({}), br = s.object({
|
|
@@ -8498,7 +8501,7 @@ const Lt = s.number(), ws = s.object({
|
|
|
8498
8501
|
}), vr = s.object({ devices: Le(Kn) });
|
|
8499
8502
|
let Jf = class {
|
|
8500
8503
|
constructor(t, e) {
|
|
8501
|
-
|
|
8504
|
+
l(this, "type", "device"), l(this, "client"), l(this, "frameClient"), this.client = t, this.frameClient = e;
|
|
8502
8505
|
}
|
|
8503
8506
|
async retrieve(t, e) {
|
|
8504
8507
|
const n = !Array.isArray(t), r = await v(
|
|
@@ -8581,7 +8584,7 @@ const Hf = (t, e) => t === "delete" ? e.toStrings().map((n) => ({ variant: t, ke
|
|
|
8581
8584
|
}), ry = s.object({});
|
|
8582
8585
|
let sy = class {
|
|
8583
8586
|
constructor(t, e, n) {
|
|
8584
|
-
|
|
8587
|
+
l(this, "type", "rack"), l(this, "client"), l(this, "frameClient"), l(this, "tasks"), this.client = t, this.frameClient = e, this.tasks = n;
|
|
8585
8588
|
}
|
|
8586
8589
|
async delete(t) {
|
|
8587
8590
|
await v(
|
|
@@ -8641,7 +8644,7 @@ let sy = class {
|
|
|
8641
8644
|
};
|
|
8642
8645
|
class iy {
|
|
8643
8646
|
constructor(e, n, r) {
|
|
8644
|
-
|
|
8647
|
+
l(this, "key"), l(this, "name"), l(this, "tasks"), this.key = e, this.name = n, this.tasks = r;
|
|
8645
8648
|
}
|
|
8646
8649
|
async listTasks() {
|
|
8647
8650
|
return await this.tasks.retrieve(this.key);
|
|
@@ -8691,8 +8694,8 @@ s.object({
|
|
|
8691
8694
|
});
|
|
8692
8695
|
const kt = "sy_task_state", Ii = "sy_task_cmd", Zt = new Error("Task not created");
|
|
8693
8696
|
class oy {
|
|
8694
|
-
constructor(e, n, r, i, a = !1, o = !1,
|
|
8695
|
-
|
|
8697
|
+
constructor(e, n, r, i, a = !1, o = !1, c, u = null, d = null, f = null) {
|
|
8698
|
+
l(this, "key"), l(this, "name"), l(this, "internal"), l(this, "type"), l(this, "config"), l(this, "snapshot"), l(this, "state"), l(this, "frameClient"), l(this, "ontologyClient"), l(this, "rangeClient"), this.key = e, this.name = n, this.type = r, this.config = i, this.internal = a, this.snapshot = o, c !== null && (this.state = c), this.frameClient = u, this.ontologyClient = d, this.rangeClient = f;
|
|
8696
8699
|
}
|
|
8697
8700
|
get payload() {
|
|
8698
8701
|
return {
|
|
@@ -8716,11 +8719,11 @@ class oy {
|
|
|
8716
8719
|
if (this.frameClient == null) throw Zt;
|
|
8717
8720
|
const i = await this.frameClient.openStreamer(kt), a = await this.executeCommand(e, n);
|
|
8718
8721
|
let o;
|
|
8719
|
-
const
|
|
8722
|
+
const c = new Promise(
|
|
8720
8723
|
(u) => setTimeout(() => u(!1), new I(r).milliseconds)
|
|
8721
8724
|
);
|
|
8722
8725
|
for (; ; ) {
|
|
8723
|
-
const u = await Promise.any([i.read(),
|
|
8726
|
+
const u = await Promise.any([i.read(), c]);
|
|
8724
8727
|
if (u === !1) throw new Error("Command timed out");
|
|
8725
8728
|
const d = Pn.safeParse(u.at(-1).sy_task_state);
|
|
8726
8729
|
if (d.success) {
|
|
@@ -8767,7 +8770,7 @@ const cy = s.object({
|
|
|
8767
8770
|
}), by = s.object({ task: Jn });
|
|
8768
8771
|
let vy = class {
|
|
8769
8772
|
constructor(t, e, n, r) {
|
|
8770
|
-
|
|
8773
|
+
l(this, "type", "task"), l(this, "client"), l(this, "frameClient"), l(this, "ontologyClient"), l(this, "rangeClient"), this.client = t, this.frameClient = e, this.ontologyClient = n, this.rangeClient = r;
|
|
8771
8774
|
}
|
|
8772
8775
|
async create(t) {
|
|
8773
8776
|
const e = !Array.isArray(t), n = await v(
|
|
@@ -8804,8 +8807,8 @@ let vy = class {
|
|
|
8804
8807
|
{ convertNumericStrings: !1 }
|
|
8805
8808
|
), a = { ...e };
|
|
8806
8809
|
i === "rack" ? a.rack = t : a.keys = r;
|
|
8807
|
-
const o = await this.execRetrieve(a),
|
|
8808
|
-
return n && i !== "rack" ?
|
|
8810
|
+
const o = await this.execRetrieve(a), c = this.sugar(o);
|
|
8811
|
+
return n && i !== "rack" ? c[0] : c;
|
|
8809
8812
|
}
|
|
8810
8813
|
async copy(t, e, n) {
|
|
8811
8814
|
const r = await v(
|
|
@@ -8832,13 +8835,13 @@ let vy = class {
|
|
|
8832
8835
|
}
|
|
8833
8836
|
sugar(t) {
|
|
8834
8837
|
return t.map(
|
|
8835
|
-
({ key: e, name: n, type: r, config: i, state: a, internal: o, snapshot:
|
|
8838
|
+
({ key: e, name: n, type: r, config: i, state: a, internal: o, snapshot: c }) => new oy(
|
|
8836
8839
|
e,
|
|
8837
8840
|
n,
|
|
8838
8841
|
r,
|
|
8839
8842
|
i,
|
|
8840
8843
|
o,
|
|
8841
|
-
|
|
8844
|
+
c,
|
|
8842
8845
|
a,
|
|
8843
8846
|
this.frameClient,
|
|
8844
8847
|
this.ontologyClient,
|
|
@@ -8886,7 +8889,7 @@ const Yt = s.string().uuid(), Hn = s.object({
|
|
|
8886
8889
|
var Kt;
|
|
8887
8890
|
let Sy = (Kt = class {
|
|
8888
8891
|
constructor(t) {
|
|
8889
|
-
|
|
8892
|
+
l(this, "client"), this.client = t;
|
|
8890
8893
|
}
|
|
8891
8894
|
async retrieve(t) {
|
|
8892
8895
|
const e = N(t);
|
|
@@ -8911,7 +8914,7 @@ let Sy = (Kt = class {
|
|
|
8911
8914
|
if (n != null) throw n;
|
|
8912
8915
|
return e.labels;
|
|
8913
8916
|
}
|
|
8914
|
-
},
|
|
8917
|
+
}, l(Kt, "ENDPOINT", "/label/retrieve"), Kt);
|
|
8915
8918
|
const Ny = Hn.extend({ key: Yt.optional() }), Ey = s.object({
|
|
8916
8919
|
labels: Ny.array()
|
|
8917
8920
|
}), Iy = s.object({
|
|
@@ -8925,7 +8928,7 @@ const Ny = Hn.extend({ key: Yt.optional() }), Ey = s.object({
|
|
|
8925
8928
|
}), Ay = So.omit({ replace: !0 }), Nr = s.object({}), xy = "/label/create", Cy = "/label/delete", $y = "/label/set", jy = "/label/remove";
|
|
8926
8929
|
let Ry = class {
|
|
8927
8930
|
constructor(t) {
|
|
8928
|
-
|
|
8931
|
+
l(this, "client"), this.client = t;
|
|
8929
8932
|
}
|
|
8930
8933
|
async create(t) {
|
|
8931
8934
|
return (await v(
|
|
@@ -8967,7 +8970,7 @@ let Ry = class {
|
|
|
8967
8970
|
const My = "sy_label_set", Dy = "sy_label_delete";
|
|
8968
8971
|
let Py = class {
|
|
8969
8972
|
constructor(t, e, n) {
|
|
8970
|
-
|
|
8973
|
+
l(this, "type", "label"), l(this, "retriever"), l(this, "writer"), l(this, "frameClient"), l(this, "ontology"), this.writer = new Ry(t), this.retriever = new Sy(t), this.frameClient = e, this.ontology = n;
|
|
8971
8974
|
}
|
|
8972
8975
|
async search(t) {
|
|
8973
8976
|
return await this.retriever.search(t);
|
|
@@ -9062,7 +9065,7 @@ const Uy = (t, e) => t === "delete" ? e.toUUIDs().map((n) => ({ variant: t, key:
|
|
|
9062
9065
|
aliases: s.record(s.string(), s.string())
|
|
9063
9066
|
}), vt = class Ot {
|
|
9064
9067
|
constructor(e, n, r) {
|
|
9065
|
-
|
|
9068
|
+
l(this, "frameClient"), l(this, "cache", /* @__PURE__ */ new Map()), l(this, "client"), l(this, "rangeKey"), this.rangeKey = e, this.cache = /* @__PURE__ */ new Map(), this.client = r, this.frameClient = n;
|
|
9066
9069
|
}
|
|
9067
9070
|
async resolve(e) {
|
|
9068
9071
|
const n = [], r = typeof e == "string", i = {};
|
|
@@ -9072,8 +9075,8 @@ const Uy = (t, e) => t === "delete" ? e.toUUIDs().map((n) => ({ variant: t, key:
|
|
|
9072
9075
|
n.push(e);
|
|
9073
9076
|
} else
|
|
9074
9077
|
e.forEach((o) => {
|
|
9075
|
-
const
|
|
9076
|
-
|
|
9078
|
+
const c = this.cache.get(o);
|
|
9079
|
+
c != null ? i[o] = c : n.push(o);
|
|
9077
9080
|
});
|
|
9078
9081
|
if (n.length === 0) return i;
|
|
9079
9082
|
const a = await v(
|
|
@@ -9083,7 +9086,7 @@ const Uy = (t, e) => t === "delete" ? e.toUUIDs().map((n) => ({ variant: t, key:
|
|
|
9083
9086
|
qy,
|
|
9084
9087
|
_y
|
|
9085
9088
|
);
|
|
9086
|
-
return Object.entries(a.aliases).forEach(([o,
|
|
9089
|
+
return Object.entries(a.aliases).forEach(([o, c]) => this.cache.set(o, c)), r ? a.aliases[n[0]] : { ...i, ...a.aliases };
|
|
9087
9090
|
}
|
|
9088
9091
|
async set(e) {
|
|
9089
9092
|
await v(
|
|
@@ -9121,7 +9124,7 @@ const Uy = (t, e) => t === "delete" ? e.toUUIDs().map((n) => ({ variant: t, key:
|
|
|
9121
9124
|
);
|
|
9122
9125
|
}
|
|
9123
9126
|
};
|
|
9124
|
-
|
|
9127
|
+
l(vt, "SET_ENDPOINT", "/range/alias/set"), l(vt, "RESOLVE_ENDPOINT", "/range/alias/resolve"), l(vt, "LIST_ENDPOINT", "/range/alias/list"), l(vt, "DELETE_ENDPOINT", "/range/alias/delete");
|
|
9125
9128
|
let Jy = vt;
|
|
9126
9129
|
const Hy = s.object({
|
|
9127
9130
|
range: de,
|
|
@@ -9152,7 +9155,7 @@ const Hy = s.object({
|
|
|
9152
9155
|
keys: s.string().array()
|
|
9153
9156
|
}), In = class kn {
|
|
9154
9157
|
constructor(e, n, r) {
|
|
9155
|
-
|
|
9158
|
+
l(this, "rangeKey"), l(this, "client"), l(this, "frameClient"), this.rangeKey = e, this.client = n, this.frameClient = r;
|
|
9156
9159
|
}
|
|
9157
9160
|
async get(e) {
|
|
9158
9161
|
const n = await v(
|
|
@@ -9206,12 +9209,12 @@ const Hy = s.object({
|
|
|
9206
9209
|
);
|
|
9207
9210
|
}
|
|
9208
9211
|
};
|
|
9209
|
-
|
|
9212
|
+
l(In, "GET_ENDPOINT", "/range/kv/get"), l(In, "SET_ENDPOINT", "/range/kv/set"), l(In, "DELETE_ENDPOINT", "/range/kv/delete");
|
|
9210
9213
|
let Fr = In;
|
|
9211
9214
|
const Er = (t) => new $({ type: "range", key: t });
|
|
9212
9215
|
class Ao {
|
|
9213
|
-
constructor(e, n = oe.ZERO, r, i, a, o,
|
|
9214
|
-
|
|
9216
|
+
constructor(e, n = oe.ZERO, r, i, a, o, c, u, d, f, h) {
|
|
9217
|
+
l(this, "key"), l(this, "name"), l(this, "kv"), l(this, "timeRange"), l(this, "color"), l(this, "channels"), l(this, "aliaser"), l(this, "frameClient"), l(this, "labelClient"), l(this, "ontologyClient"), l(this, "rangeClient"), this.key = r, this.name = e, this.timeRange = n, this.frameClient = a, this.color = i, this.kv = o, this.aliaser = c, this.channels = u, this.labelClient = d, this.ontologyClient = f, this.rangeClient = h;
|
|
9215
9218
|
}
|
|
9216
9219
|
get ontologyID() {
|
|
9217
9220
|
return new $({ key: this.key, type: "range" });
|
|
@@ -9286,9 +9289,9 @@ class Ao {
|
|
|
9286
9289
|
relationshipDirection: "to"
|
|
9287
9290
|
});
|
|
9288
9291
|
return a.onChange((o) => {
|
|
9289
|
-
const
|
|
9290
|
-
if (
|
|
9291
|
-
const u =
|
|
9292
|
+
const c = this.rangeClient.resourcesToRanges(o);
|
|
9293
|
+
if (c.length === 0) return;
|
|
9294
|
+
const u = c[0];
|
|
9292
9295
|
e.notify(u);
|
|
9293
9296
|
}), e.setCloser(async () => await a.close()), e;
|
|
9294
9297
|
}
|
|
@@ -9305,7 +9308,7 @@ const sg = s.object({
|
|
|
9305
9308
|
});
|
|
9306
9309
|
let xo = class {
|
|
9307
9310
|
constructor(t, e, n, r, i, a) {
|
|
9308
|
-
|
|
9311
|
+
l(this, "type", "range"), l(this, "frameClient"), l(this, "writer"), l(this, "unaryClient"), l(this, "channels"), l(this, "labelClient"), l(this, "ontologyClient"), this.frameClient = t, this.writer = e, this.unaryClient = n, this.channels = r, this.labelClient = i, this.ontologyClient = a;
|
|
9309
9312
|
}
|
|
9310
9313
|
async create(t, e) {
|
|
9311
9314
|
const n = !Array.isArray(t), r = this.sugarMany(await this.writer.create(N(t), e));
|
|
@@ -9410,7 +9413,7 @@ const og = s.object({
|
|
|
9410
9413
|
}), dg = s.object({}), fg = "/range/create", yg = "/range/delete", gg = "/range/rename";
|
|
9411
9414
|
let Co = class {
|
|
9412
9415
|
constructor(t) {
|
|
9413
|
-
|
|
9416
|
+
l(this, "client"), this.client = t;
|
|
9414
9417
|
}
|
|
9415
9418
|
async rename(t, e) {
|
|
9416
9419
|
await v(
|
|
@@ -9457,7 +9460,7 @@ const yw = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
9457
9460
|
}, Symbol.toStringTag, { value: "Module" })), pg = "/api/v1/";
|
|
9458
9461
|
class mg {
|
|
9459
9462
|
constructor(e, n = !1) {
|
|
9460
|
-
|
|
9463
|
+
l(this, "url"), l(this, "unary"), l(this, "stream"), l(this, "secure"), this.secure = n, this.url = e.child(pg);
|
|
9461
9464
|
const r = new tt.JSONCodec();
|
|
9462
9465
|
this.unary = new Au(this.url, r, this.secure), this.stream = new Uu(this.url, r, this.secure);
|
|
9463
9466
|
}
|
|
@@ -9472,7 +9475,7 @@ const Os = s.string().uuid(), Ts = s.object({
|
|
|
9472
9475
|
}), wg = s.object({ keys: s.string().array() }), bg = s.object({ linePlots: Ts.array() });
|
|
9473
9476
|
let vg = class {
|
|
9474
9477
|
constructor(t) {
|
|
9475
|
-
|
|
9478
|
+
l(this, "ENDPOINT", "/workspace/lineplot/retrieve"), l(this, "client"), this.client = t;
|
|
9476
9479
|
}
|
|
9477
9480
|
async retrieve(t) {
|
|
9478
9481
|
const e = N(t);
|
|
@@ -9504,7 +9507,7 @@ const Ze = s.string().uuid(), $o = (t) => JSON.parse(t), jo = s.object({
|
|
|
9504
9507
|
}), xg = s.object({}), Cg = "/workspace/lineplot/create", $g = "/workspace/lineplot/delete", jg = "/workspace/lineplot/rename", Rg = "/workspace/lineplot/set-data";
|
|
9505
9508
|
let Mg = class {
|
|
9506
9509
|
constructor(t) {
|
|
9507
|
-
|
|
9510
|
+
l(this, "client"), this.client = t;
|
|
9508
9511
|
}
|
|
9509
9512
|
async create(t, e) {
|
|
9510
9513
|
const n = { ...e, data: JSON.stringify(e.data) };
|
|
@@ -9546,7 +9549,7 @@ let Mg = class {
|
|
|
9546
9549
|
}
|
|
9547
9550
|
}, Dg = class {
|
|
9548
9551
|
constructor(t) {
|
|
9549
|
-
|
|
9552
|
+
l(this, "writer"), l(this, "retriever"), this.writer = new Mg(t), this.retriever = new vg(t);
|
|
9550
9553
|
}
|
|
9551
9554
|
async create(t, e) {
|
|
9552
9555
|
return await this.writer.create(t, e);
|
|
@@ -9575,7 +9578,7 @@ const Pg = s.object({
|
|
|
9575
9578
|
var Jt;
|
|
9576
9579
|
let Bg = (Jt = class {
|
|
9577
9580
|
constructor(t) {
|
|
9578
|
-
|
|
9581
|
+
l(this, "client"), this.client = t;
|
|
9579
9582
|
}
|
|
9580
9583
|
async retrieve(t) {
|
|
9581
9584
|
const e = N(t);
|
|
@@ -9599,7 +9602,7 @@ let Bg = (Jt = class {
|
|
|
9599
9602
|
Ug
|
|
9600
9603
|
)).workspaces;
|
|
9601
9604
|
}
|
|
9602
|
-
},
|
|
9605
|
+
}, l(Jt, "ENDPOINT", "/workspace/retrieve"), Jt);
|
|
9603
9606
|
const Xn = s.string().uuid(), Lg = s.object({
|
|
9604
9607
|
key: s.string(),
|
|
9605
9608
|
name: s.string(),
|
|
@@ -9613,7 +9616,7 @@ const Xn = s.string().uuid(), Lg = s.object({
|
|
|
9613
9616
|
}), Yg = s.object({ keys: s.string().array() }), zg = s.object({ schematics: Ss.array() });
|
|
9614
9617
|
class qg {
|
|
9615
9618
|
constructor(e) {
|
|
9616
|
-
|
|
9619
|
+
l(this, "ENDPOINT", "/workspace/schematic/retrieve"), l(this, "client"), this.client = e;
|
|
9617
9620
|
}
|
|
9618
9621
|
async retrieve(e) {
|
|
9619
9622
|
return (await v(
|
|
@@ -9652,7 +9655,7 @@ const Jg = s.object({
|
|
|
9652
9655
|
}), Xg = "/workspace/schematic/create", Qg = "/workspace/schematic/delete", ep = "/workspace/schematic/rename", tp = "/workspace/schematic/set-data", np = "/workspace/schematic/copy";
|
|
9653
9656
|
let rp = class {
|
|
9654
9657
|
constructor(t) {
|
|
9655
|
-
|
|
9658
|
+
l(this, "client"), this.client = t;
|
|
9656
9659
|
}
|
|
9657
9660
|
async create(t, e) {
|
|
9658
9661
|
const n = { ...e, data: JSON.stringify(e.data) };
|
|
@@ -9703,7 +9706,7 @@ let rp = class {
|
|
|
9703
9706
|
}
|
|
9704
9707
|
}, sp = class {
|
|
9705
9708
|
constructor(t) {
|
|
9706
|
-
|
|
9709
|
+
l(this, "writer"), l(this, "retriever"), this.writer = new rp(t), this.retriever = new qg(t);
|
|
9707
9710
|
}
|
|
9708
9711
|
async create(t, e) {
|
|
9709
9712
|
return await this.writer.create(t, e);
|
|
@@ -9743,7 +9746,7 @@ const ip = jo.partial({ key: !0 }).transform((t) => ({
|
|
|
9743
9746
|
}), fp = s.object({}), yp = "/workspace/create", gp = "/workspace/delete", pp = "/workspace/rename", mp = "/workspace/set-layout";
|
|
9744
9747
|
class wp {
|
|
9745
9748
|
constructor(e) {
|
|
9746
|
-
|
|
9749
|
+
l(this, "client"), this.client = e;
|
|
9747
9750
|
}
|
|
9748
9751
|
async create(e) {
|
|
9749
9752
|
return (await v(
|
|
@@ -9784,7 +9787,7 @@ class wp {
|
|
|
9784
9787
|
}
|
|
9785
9788
|
class bp {
|
|
9786
9789
|
constructor(e) {
|
|
9787
|
-
|
|
9790
|
+
l(this, "type", "workspace"), l(this, "schematic"), l(this, "linePlot"), l(this, "retriever"), l(this, "writer"), this.schematic = new sp(e), this.linePlot = new Dg(e), this.retriever = new Bg(e), this.writer = new wp(e);
|
|
9788
9791
|
}
|
|
9789
9792
|
async search(e) {
|
|
9790
9793
|
return await this.retriever.search(e);
|
|
@@ -9847,16 +9850,16 @@ class Op extends Mf {
|
|
|
9847
9850
|
* the client from polling the cluster for connectivity information.
|
|
9848
9851
|
*/
|
|
9849
9852
|
constructor(e) {
|
|
9850
|
-
const n = vp.parse(e), { host: r, port: i, username: a, password: o, connectivityPollFrequency:
|
|
9853
|
+
const n = vp.parse(e), { host: r, port: i, username: a, password: o, connectivityPollFrequency: c, secure: u } = n, d = new mg(new Jh({ host: r, port: Number(i) }), u);
|
|
9851
9854
|
d.use(cd);
|
|
9852
9855
|
let f;
|
|
9853
9856
|
a != null && o != null && (f = new uf(d.unary, { username: a, password: o }), d.use(f.middleware()));
|
|
9854
9857
|
const h = new ls(
|
|
9855
9858
|
new cs(d.unary)
|
|
9856
9859
|
), j = new fo(d.unary, h);
|
|
9857
|
-
super(d.stream, d.unary, h),
|
|
9860
|
+
super(d.stream, d.unary, h), l(this, "createdAt"), l(this, "props"), l(this, "ranges"), l(this, "channels"), l(this, "auth"), l(this, "user"), l(this, "access"), l(this, "connectivity"), l(this, "ontology"), l(this, "workspaces"), l(this, "labels"), l(this, "hardware"), l(this, "control"), l(this, "transport"), l(this, "clientVersion", "0.30.0"), this.createdAt = C.now(), this.props = n, this.auth = f, this.transport = d, this.channels = new ho(this, h, d.unary, j), this.connectivity = new wo(
|
|
9858
9861
|
d.unary,
|
|
9859
|
-
|
|
9862
|
+
c,
|
|
9860
9863
|
this.clientVersion,
|
|
9861
9864
|
n.name
|
|
9862
9865
|
), this.control = new To(this), this.ontology = new Id(d.unary, this);
|
|
@@ -9884,7 +9887,7 @@ class Op extends Mf {
|
|
|
9884
9887
|
this.connectivity.stopChecking();
|
|
9885
9888
|
}
|
|
9886
9889
|
}
|
|
9887
|
-
|
|
9890
|
+
l(Op, "connectivity", wo);
|
|
9888
9891
|
const gw = et.Authority, Ai = (t, e, n = "") => {
|
|
9889
9892
|
try {
|
|
9890
9893
|
return t.parse(e);
|
|
@@ -9969,30 +9972,30 @@ function kp(t) {
|
|
|
9969
9972
|
prerelease: r[4]
|
|
9970
9973
|
};
|
|
9971
9974
|
if (i.prerelease != null)
|
|
9972
|
-
return function(
|
|
9973
|
-
return
|
|
9975
|
+
return function(c) {
|
|
9976
|
+
return c === t;
|
|
9974
9977
|
};
|
|
9975
|
-
function a(
|
|
9976
|
-
return n.add(
|
|
9978
|
+
function a(c) {
|
|
9979
|
+
return n.add(c), !1;
|
|
9977
9980
|
}
|
|
9978
|
-
function o(
|
|
9979
|
-
return e.add(
|
|
9981
|
+
function o(c) {
|
|
9982
|
+
return e.add(c), !0;
|
|
9980
9983
|
}
|
|
9981
|
-
return function(
|
|
9982
|
-
if (e.has(
|
|
9984
|
+
return function(c) {
|
|
9985
|
+
if (e.has(c))
|
|
9983
9986
|
return !0;
|
|
9984
|
-
if (n.has(
|
|
9987
|
+
if (n.has(c))
|
|
9985
9988
|
return !1;
|
|
9986
|
-
var u =
|
|
9989
|
+
var u = c.match(xi);
|
|
9987
9990
|
if (!u)
|
|
9988
|
-
return a(
|
|
9991
|
+
return a(c);
|
|
9989
9992
|
var d = {
|
|
9990
9993
|
major: +u[1],
|
|
9991
9994
|
minor: +u[2],
|
|
9992
9995
|
patch: +u[3],
|
|
9993
9996
|
prerelease: u[4]
|
|
9994
9997
|
};
|
|
9995
|
-
return d.prerelease != null || i.major !== d.major ? a(
|
|
9998
|
+
return d.prerelease != null || i.major !== d.major ? a(c) : i.major === 0 ? i.minor === d.minor && i.patch <= d.patch ? o(c) : a(c) : i.minor <= d.minor ? o(c) : a(c);
|
|
9996
9999
|
};
|
|
9997
10000
|
}
|
|
9998
10001
|
var Ap = kp(We), xp = We.split(".")[0], $t = Symbol.for("opentelemetry.js.api." + xp), jt = Ip;
|
|
@@ -10028,8 +10031,8 @@ var Cp = function(t, e) {
|
|
|
10028
10031
|
var r = n.call(t), i, a = [], o;
|
|
10029
10032
|
try {
|
|
10030
10033
|
for (; (e === void 0 || e-- > 0) && !(i = r.next()).done; ) a.push(i.value);
|
|
10031
|
-
} catch (
|
|
10032
|
-
o = { error:
|
|
10034
|
+
} catch (c) {
|
|
10035
|
+
o = { error: c };
|
|
10033
10036
|
} finally {
|
|
10034
10037
|
try {
|
|
10035
10038
|
i && !i.done && (n = r.return) && n.call(r);
|
|
@@ -10101,8 +10104,8 @@ var Mp = function(t, e) {
|
|
|
10101
10104
|
var r = n.call(t), i, a = [], o;
|
|
10102
10105
|
try {
|
|
10103
10106
|
for (; (e === void 0 || e-- > 0) && !(i = r.next()).done; ) a.push(i.value);
|
|
10104
|
-
} catch (
|
|
10105
|
-
o = { error:
|
|
10107
|
+
} catch (c) {
|
|
10108
|
+
o = { error: c };
|
|
10106
10109
|
} finally {
|
|
10107
10110
|
try {
|
|
10108
10111
|
i && !i.done && (n = r.return) && n.call(r);
|
|
@@ -10123,13 +10126,13 @@ var Mp = function(t, e) {
|
|
|
10123
10126
|
return function() {
|
|
10124
10127
|
for (var a = [], o = 0; o < arguments.length; o++)
|
|
10125
10128
|
a[o] = arguments[o];
|
|
10126
|
-
var
|
|
10127
|
-
if (
|
|
10128
|
-
return
|
|
10129
|
+
var c = Rt("diag");
|
|
10130
|
+
if (c)
|
|
10131
|
+
return c[i].apply(c, Dp([], Mp(a), !1));
|
|
10129
10132
|
};
|
|
10130
10133
|
}
|
|
10131
10134
|
var n = this, r = function(i, a) {
|
|
10132
|
-
var o,
|
|
10135
|
+
var o, c, u;
|
|
10133
10136
|
if (a === void 0 && (a = { logLevel: ge.INFO }), i === n) {
|
|
10134
10137
|
var d = new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");
|
|
10135
10138
|
return n.error((o = d.stack) !== null && o !== void 0 ? o : d.message), !1;
|
|
@@ -10137,7 +10140,7 @@ var Mp = function(t, e) {
|
|
|
10137
10140
|
typeof a == "number" && (a = {
|
|
10138
10141
|
logLevel: a
|
|
10139
10142
|
});
|
|
10140
|
-
var f = Rt("diag"), h = Rp((
|
|
10143
|
+
var f = Rt("diag"), h = Rp((c = a.logLevel) !== null && c !== void 0 ? c : ge.INFO, i);
|
|
10141
10144
|
if (f && !a.suppressOverrideMessage) {
|
|
10142
10145
|
var j = (u = new Error().stack) !== null && u !== void 0 ? u : "<failed to generate stacktrace>";
|
|
10143
10146
|
f.warn("Current logger will be overwritten from " + j), h.warn("Current logger will overwrite one already registered from " + j);
|
|
@@ -10160,8 +10163,8 @@ var Mp = function(t, e) {
|
|
|
10160
10163
|
var r = n.call(t), i, a = [], o;
|
|
10161
10164
|
try {
|
|
10162
10165
|
for (; (e === void 0 || e-- > 0) && !(i = r.next()).done; ) a.push(i.value);
|
|
10163
|
-
} catch (
|
|
10164
|
-
o = { error:
|
|
10166
|
+
} catch (c) {
|
|
10167
|
+
o = { error: c };
|
|
10165
10168
|
} finally {
|
|
10166
10169
|
try {
|
|
10167
10170
|
i && !i.done && (n = r.return) && n.call(r);
|
|
@@ -10205,15 +10208,15 @@ var Mp = function(t, e) {
|
|
|
10205
10208
|
r[i] = arguments[i];
|
|
10206
10209
|
var a = new t(this._entries);
|
|
10207
10210
|
try {
|
|
10208
|
-
for (var o = Bp(r),
|
|
10209
|
-
var u =
|
|
10211
|
+
for (var o = Bp(r), c = o.next(); !c.done; c = o.next()) {
|
|
10212
|
+
var u = c.value;
|
|
10210
10213
|
a._entries.delete(u);
|
|
10211
10214
|
}
|
|
10212
10215
|
} catch (d) {
|
|
10213
10216
|
e = { error: d };
|
|
10214
10217
|
} finally {
|
|
10215
10218
|
try {
|
|
10216
|
-
|
|
10219
|
+
c && !c.done && (n = o.return) && n.call(o);
|
|
10217
10220
|
} finally {
|
|
10218
10221
|
if (e) throw e.error;
|
|
10219
10222
|
}
|
|
@@ -10266,8 +10269,8 @@ var qp = (
|
|
|
10266
10269
|
var r = n.call(t), i, a = [], o;
|
|
10267
10270
|
try {
|
|
10268
10271
|
for (; (e === void 0 || e-- > 0) && !(i = r.next()).done; ) a.push(i.value);
|
|
10269
|
-
} catch (
|
|
10270
|
-
o = { error:
|
|
10272
|
+
} catch (c) {
|
|
10273
|
+
o = { error: c };
|
|
10271
10274
|
} finally {
|
|
10272
10275
|
try {
|
|
10273
10276
|
i && !i.done && (n = r.return) && n.call(r);
|
|
@@ -10305,8 +10308,8 @@ var qp = (
|
|
|
10305
10308
|
var r = n.call(t), i, a = [], o;
|
|
10306
10309
|
try {
|
|
10307
10310
|
for (; (e === void 0 || e-- > 0) && !(i = r.next()).done; ) a.push(i.value);
|
|
10308
|
-
} catch (
|
|
10309
|
-
o = { error:
|
|
10311
|
+
} catch (c) {
|
|
10312
|
+
o = { error: c };
|
|
10310
10313
|
} finally {
|
|
10311
10314
|
try {
|
|
10312
10315
|
i && !i.done && (n = r.return) && n.call(r);
|
|
@@ -10530,7 +10533,7 @@ var um = function(t, e, n, r) {
|
|
|
10530
10533
|
});
|
|
10531
10534
|
}
|
|
10532
10535
|
return new (n || (n = Promise))(function(a, o) {
|
|
10533
|
-
function
|
|
10536
|
+
function c(f) {
|
|
10534
10537
|
try {
|
|
10535
10538
|
d(r.next(f));
|
|
10536
10539
|
} catch (h) {
|
|
@@ -10545,7 +10548,7 @@ var um = function(t, e, n, r) {
|
|
|
10545
10548
|
}
|
|
10546
10549
|
}
|
|
10547
10550
|
function d(f) {
|
|
10548
|
-
f.done ? a(f.value) : i(f.value).then(
|
|
10551
|
+
f.done ? a(f.value) : i(f.value).then(c, u);
|
|
10549
10552
|
}
|
|
10550
10553
|
d((r = r.apply(t, e || [])).next());
|
|
10551
10554
|
});
|
|
@@ -10558,7 +10561,7 @@ class hm {
|
|
|
10558
10561
|
if (e <= 0)
|
|
10559
10562
|
throw new Error(`invalid weight ${e}: must be positive`);
|
|
10560
10563
|
return new Promise((r, i) => {
|
|
10561
|
-
const a = { resolve: r, reject: i, weight: e, priority: n }, o = Wo(this._queue, (
|
|
10564
|
+
const a = { resolve: r, reject: i, weight: e, priority: n }, o = Wo(this._queue, (c) => n <= c.priority);
|
|
10562
10565
|
o === -1 && e <= this._value ? this._dispatchItem(a) : this._queue.splice(o + 1, 0, a);
|
|
10563
10566
|
});
|
|
10564
10567
|
}
|
|
@@ -10648,7 +10651,7 @@ var fm = function(t, e, n, r) {
|
|
|
10648
10651
|
});
|
|
10649
10652
|
}
|
|
10650
10653
|
return new (n || (n = Promise))(function(a, o) {
|
|
10651
|
-
function
|
|
10654
|
+
function c(f) {
|
|
10652
10655
|
try {
|
|
10653
10656
|
d(r.next(f));
|
|
10654
10657
|
} catch (h) {
|
|
@@ -10663,7 +10666,7 @@ var fm = function(t, e, n, r) {
|
|
|
10663
10666
|
}
|
|
10664
10667
|
}
|
|
10665
10668
|
function d(f) {
|
|
10666
|
-
f.done ? a(f.value) : i(f.value).then(
|
|
10669
|
+
f.done ? a(f.value) : i(f.value).then(c, u);
|
|
10667
10670
|
}
|
|
10668
10671
|
d((r = r.apply(t, e || [])).next());
|
|
10669
10672
|
});
|
|
@@ -10918,8 +10921,8 @@ class er extends Vo {
|
|
|
10918
10921
|
const { variant: r, path: i } = n;
|
|
10919
10922
|
if (r === "context")
|
|
10920
10923
|
return this._ctx = n.ctx.copyAndMerge(this._ctx), await this.updateContext({ ...n, ctx: this.ctx });
|
|
10921
|
-
const [a, o] = this.getRequiredKey(i),
|
|
10922
|
-
return o.length === 0 ? await this.updateThis(a,
|
|
10924
|
+
const [a, o] = this.getRequiredKey(i), c = { ...n, ctx: this.ctx };
|
|
10925
|
+
return o.length === 0 ? await this.updateThis(a, c) : await this.updateChild(o, c);
|
|
10923
10926
|
}
|
|
10924
10927
|
async updateContext(n) {
|
|
10925
10928
|
await super.internalUpdate(n);
|
|
@@ -10958,7 +10961,7 @@ class er extends Vo {
|
|
|
10958
10961
|
);
|
|
10959
10962
|
const o = this.children;
|
|
10960
10963
|
this._children = /* @__PURE__ */ new Map();
|
|
10961
|
-
for (const
|
|
10964
|
+
for (const c of o) await c.internalDelete([c.key]);
|
|
10962
10965
|
await super.internalDelete([this.key]);
|
|
10963
10966
|
}
|
|
10964
10967
|
const a = this.getChild(i[0]);
|
|
@@ -11008,8 +11011,8 @@ const gm = s.object({}), Ie = class Ie extends er {
|
|
|
11008
11011
|
U(this, "wrap");
|
|
11009
11012
|
U(this, "schema", Ie.schema);
|
|
11010
11013
|
U(this, "mu", new ym());
|
|
11011
|
-
this.mu.runExclusive(async () => await this.internalUpdate(o)), this.wrap = n, this.wrap.handle((
|
|
11012
|
-
this.mu.runExclusive(async () => await this.handle(
|
|
11014
|
+
this.mu.runExclusive(async () => await this.internalUpdate(o)), this.wrap = n, this.wrap.handle((c) => {
|
|
11015
|
+
this.mu.runExclusive(async () => await this.handle(c));
|
|
11013
11016
|
});
|
|
11014
11017
|
}
|
|
11015
11018
|
async handle(n) {
|