@synnaxlabs/x 0.15.4 → 0.16.1
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/.turbo/turbo-build.log +6 -7
- package/README.md +1 -1
- package/dist/binary/encoder.d.ts +1 -0
- package/dist/binary/encoder.d.ts.map +1 -0
- package/dist/binary/encoder.spec.d.ts +1 -0
- package/dist/binary/encoder.spec.d.ts.map +1 -0
- package/dist/binary/index.d.ts +1 -0
- package/dist/binary/index.d.ts.map +1 -0
- package/dist/case.d.ts +1 -0
- package/dist/case.d.ts.map +1 -0
- package/dist/change/change.d.ts +1 -0
- package/dist/change/change.d.ts.map +1 -0
- package/dist/change/index.d.ts +1 -0
- package/dist/change/index.d.ts.map +1 -0
- package/dist/clamp.d.ts +1 -0
- package/dist/clamp.d.ts.map +1 -0
- package/dist/compare/compare.d.ts +1 -0
- package/dist/compare/compare.d.ts.map +1 -0
- package/dist/compare/index.d.ts +1 -0
- package/dist/compare/index.d.ts.map +1 -0
- package/dist/debounce.d.ts +1 -0
- package/dist/debounce.d.ts.map +1 -0
- package/dist/deep/copy.d.ts +1 -0
- package/dist/deep/copy.d.ts.map +1 -0
- package/dist/deep/delete.d.ts +2 -1
- package/dist/deep/delete.d.ts.map +1 -0
- package/dist/deep/delete.spec.d.ts +1 -0
- package/dist/deep/delete.spec.d.ts.map +1 -0
- package/dist/deep/difference.d.ts +1 -0
- package/dist/deep/difference.d.ts.map +1 -0
- package/dist/deep/difference.spec.d.ts +1 -0
- package/dist/deep/difference.spec.d.ts.map +1 -0
- package/dist/deep/equal.d.ts +1 -0
- package/dist/deep/equal.d.ts.map +1 -0
- package/dist/deep/equal.spec.d.ts +1 -0
- package/dist/deep/equal.spec.d.ts.map +1 -0
- package/dist/deep/external.d.ts +1 -0
- package/dist/deep/external.d.ts.map +1 -0
- package/dist/deep/index.d.ts +1 -0
- package/dist/deep/index.d.ts.map +1 -0
- package/dist/deep/memo.d.ts +1 -0
- package/dist/deep/memo.d.ts.map +1 -0
- package/dist/deep/merge.d.ts +2 -1
- package/dist/deep/merge.d.ts.map +1 -0
- package/dist/deep/merge.spec.d.ts +1 -0
- package/dist/deep/merge.spec.d.ts.map +1 -0
- package/dist/deep/partial.d.ts +1 -0
- package/dist/deep/partial.d.ts.map +1 -0
- package/dist/deep/path.d.ts +1 -0
- package/dist/deep/path.d.ts.map +1 -0
- package/dist/deep/path.spec.d.ts +1 -0
- package/dist/deep/path.spec.d.ts.map +1 -0
- package/dist/destructor.d.ts +1 -0
- package/dist/destructor.d.ts.map +1 -0
- package/dist/identity.d.ts +1 -0
- package/dist/identity.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/invert.d.ts +1 -0
- package/dist/invert.d.ts.map +1 -0
- package/dist/join.d.ts +1 -0
- package/dist/join.d.ts.map +1 -0
- package/dist/kv/index.d.ts +1 -0
- package/dist/kv/index.d.ts.map +1 -0
- package/dist/kv/types.d.ts +1 -0
- package/dist/kv/types.d.ts.map +1 -0
- package/dist/migrate/index.d.ts +1 -0
- package/dist/migrate/index.d.ts.map +1 -0
- package/dist/migrate/migrate.d.ts +1 -0
- package/dist/migrate/migrate.d.ts.map +1 -0
- package/dist/migrate/migrate.spec.d.ts +1 -0
- package/dist/migrate/migrate.spec.d.ts.map +1 -0
- package/dist/mock/MockGLBufferController.d.ts +1 -0
- package/dist/mock/MockGLBufferController.d.ts.map +1 -0
- package/dist/mock/index.d.ts +1 -0
- package/dist/mock/index.d.ts.map +1 -0
- package/dist/observe/index.d.ts +1 -0
- package/dist/observe/index.d.ts.map +1 -0
- package/dist/observe/observe.d.ts +1 -0
- package/dist/observe/observe.d.ts.map +1 -0
- package/dist/optional.d.ts +1 -0
- package/dist/optional.d.ts.map +1 -0
- package/dist/primitive.d.ts +1 -0
- package/dist/primitive.d.ts.map +1 -0
- package/dist/record.d.ts +1 -0
- package/dist/record.d.ts.map +1 -0
- package/dist/renderable.d.ts +1 -0
- package/dist/renderable.d.ts.map +1 -0
- package/dist/runtime/detect.d.ts +1 -0
- package/dist/runtime/detect.d.ts.map +1 -0
- package/dist/runtime/external.d.ts +1 -0
- package/dist/runtime/external.d.ts.map +1 -0
- package/dist/runtime/index.d.ts +1 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/os.d.ts +1 -0
- package/dist/runtime/os.d.ts.map +1 -0
- package/dist/search.d.ts +1 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/shallowCopy.d.ts +1 -0
- package/dist/shallowCopy.d.ts.map +1 -0
- package/dist/spatial/base.d.ts +1 -0
- package/dist/spatial/base.d.ts.map +1 -0
- package/dist/spatial/bounds/bounds.d.ts +1 -0
- package/dist/spatial/bounds/bounds.d.ts.map +1 -0
- package/dist/spatial/bounds/bounds.spec.d.ts +1 -0
- package/dist/spatial/bounds/bounds.spec.d.ts.map +1 -0
- package/dist/spatial/bounds/index.d.ts +1 -0
- package/dist/spatial/bounds/index.d.ts.map +1 -0
- package/dist/spatial/box/box.d.ts +1 -0
- package/dist/spatial/box/box.d.ts.map +1 -0
- package/dist/spatial/box/box.spec.d.ts +1 -0
- package/dist/spatial/box/box.spec.d.ts.map +1 -0
- package/dist/spatial/box/index.d.ts +1 -0
- package/dist/spatial/box/index.d.ts.map +1 -0
- package/dist/spatial/dimensions/dimensions.d.ts +1 -0
- package/dist/spatial/dimensions/dimensions.d.ts.map +1 -0
- package/dist/spatial/dimensions/dimensions.spec.d.ts +1 -0
- package/dist/spatial/dimensions/dimensions.spec.d.ts.map +1 -0
- package/dist/spatial/dimensions/index.d.ts +1 -0
- package/dist/spatial/dimensions/index.d.ts.map +1 -0
- package/dist/spatial/direction/direction.d.ts +1 -0
- package/dist/spatial/direction/direction.d.ts.map +1 -0
- package/dist/spatial/direction/direction.spec.d.ts +1 -0
- package/dist/spatial/direction/direction.spec.d.ts.map +1 -0
- package/dist/spatial/direction/index.d.ts +1 -0
- package/dist/spatial/direction/index.d.ts.map +1 -0
- package/dist/spatial/external.d.ts +1 -0
- package/dist/spatial/external.d.ts.map +1 -0
- package/dist/spatial/index.d.ts +1 -0
- package/dist/spatial/index.d.ts.map +1 -0
- package/dist/spatial/location/index.d.ts +1 -0
- package/dist/spatial/location/index.d.ts.map +1 -0
- package/dist/spatial/location/location.d.ts +1 -0
- package/dist/spatial/location/location.d.ts.map +1 -0
- package/dist/spatial/location/location.spec.d.ts +1 -0
- package/dist/spatial/location/location.spec.d.ts.map +1 -0
- package/dist/spatial/position/index.d.ts +1 -0
- package/dist/spatial/position/index.d.ts.map +1 -0
- package/dist/spatial/position/position.d.ts +1 -0
- package/dist/spatial/position/position.d.ts.map +1 -0
- package/dist/spatial/position/position.spec.d.ts +1 -0
- package/dist/spatial/position/position.spec.d.ts.map +1 -0
- package/dist/spatial/scale/index.d.ts +1 -0
- package/dist/spatial/scale/index.d.ts.map +1 -0
- package/dist/spatial/scale/scale.d.ts +1 -0
- package/dist/spatial/scale/scale.d.ts.map +1 -0
- package/dist/spatial/scale/scale.spec.d.ts +1 -0
- package/dist/spatial/scale/scale.spec.d.ts.map +1 -0
- package/dist/spatial/spatial.d.ts +1 -0
- package/dist/spatial/spatial.d.ts.map +1 -0
- package/dist/spatial/xy/index.d.ts +1 -0
- package/dist/spatial/xy/index.d.ts.map +1 -0
- package/dist/spatial/xy/xy.d.ts +1 -0
- package/dist/spatial/xy/xy.d.ts.map +1 -0
- package/dist/spatial/xy/xy.spec.d.ts +1 -0
- package/dist/spatial/xy/xy.spec.d.ts.map +1 -0
- package/dist/telem/generate.d.ts +1 -0
- package/dist/telem/generate.d.ts.map +1 -0
- package/dist/telem/gl.d.ts +1 -0
- package/dist/telem/gl.d.ts.map +1 -0
- package/dist/telem/index.d.ts +1 -0
- package/dist/telem/index.d.ts.map +1 -0
- package/dist/telem/series.d.ts +3 -0
- package/dist/telem/series.d.ts.map +1 -0
- package/dist/telem/series.spec.d.ts +1 -0
- package/dist/telem/series.spec.d.ts.map +1 -0
- package/dist/telem/telem.d.ts +1 -0
- package/dist/telem/telem.d.ts.map +1 -0
- package/dist/telem/telem.spec.d.ts +1 -0
- package/dist/telem/telem.spec.d.ts.map +1 -0
- package/dist/toArray.d.ts +1 -0
- package/dist/toArray.d.ts.map +1 -0
- package/dist/transform.d.ts +1 -0
- package/dist/transform.d.ts.map +1 -0
- package/dist/unique.d.ts +1 -0
- package/dist/unique.d.ts.map +1 -0
- package/dist/url/index.d.ts +1 -0
- package/dist/url/index.d.ts.map +1 -0
- package/dist/url/url.d.ts +1 -0
- package/dist/url/url.d.ts.map +1 -0
- package/dist/url/url.spec.d.ts +1 -0
- package/dist/url/url.spec.d.ts.map +1 -0
- package/dist/worker/worker.d.ts +1 -0
- package/dist/worker/worker.d.ts.map +1 -0
- package/dist/worker/worker.spec.d.ts +1 -0
- package/dist/worker/worker.spec.d.ts.map +1 -0
- package/dist/x.cjs +2 -2
- package/dist/x.cjs.map +1 -1
- package/dist/x.js +127 -117
- package/dist/x.js.map +1 -1
- package/package.json +11 -11
- package/src/deep/equal.ts +11 -7
- package/src/deep/merge.ts +1 -4
- package/src/telem/series.spec.ts +10 -0
- package/src/telem/series.ts +14 -0
package/dist/x.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var es = Object.defineProperty;
|
|
2
2
|
var ts = (t, e, r) => e in t ? es(t, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : t[e] = r;
|
|
3
3
|
var u = (t, e, r) => (ts(t, typeof e != "symbol" ? e + "" : e, r), r);
|
|
4
|
-
let rs = "
|
|
4
|
+
let rs = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", ns = (t = 21) => {
|
|
5
5
|
let e = "", r = t;
|
|
6
6
|
for (; r--; )
|
|
7
7
|
e += rs[Math.random() * 64 | 0];
|
|
@@ -293,10 +293,10 @@ let qr = Ve;
|
|
|
293
293
|
function ds(t) {
|
|
294
294
|
qr = t;
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function St() {
|
|
297
297
|
return qr;
|
|
298
298
|
}
|
|
299
|
-
const
|
|
299
|
+
const At = (t) => {
|
|
300
300
|
const { data: e, path: r, errorMaps: n, issueData: s } = t, i = [...r, ...s.path || []], a = {
|
|
301
301
|
...s,
|
|
302
302
|
path: i
|
|
@@ -312,14 +312,14 @@ const St = (t) => {
|
|
|
312
312
|
};
|
|
313
313
|
}, fs = [];
|
|
314
314
|
function m(t, e) {
|
|
315
|
-
const r =
|
|
315
|
+
const r = At({
|
|
316
316
|
issueData: e,
|
|
317
317
|
data: t.data,
|
|
318
318
|
path: t.path,
|
|
319
319
|
errorMaps: [
|
|
320
320
|
t.common.contextualErrorMap,
|
|
321
321
|
t.schemaErrorMap,
|
|
322
|
-
|
|
322
|
+
St(),
|
|
323
323
|
Ve
|
|
324
324
|
// then global default map
|
|
325
325
|
].filter((n) => !!n)
|
|
@@ -367,7 +367,7 @@ class B {
|
|
|
367
367
|
}
|
|
368
368
|
const O = Object.freeze({
|
|
369
369
|
status: "aborted"
|
|
370
|
-
}), Yr = (t) => ({ status: "dirty", value: t }), P = (t) => ({ status: "valid", value: t }), nr = (t) => t.status === "aborted", sr = (t) => t.status === "dirty", ze = (t) => t.status === "valid",
|
|
370
|
+
}), Yr = (t) => ({ status: "dirty", value: t }), P = (t) => ({ status: "valid", value: t }), nr = (t) => t.status === "aborted", sr = (t) => t.status === "dirty", ze = (t) => t.status === "valid", It = (t) => typeof Promise < "u" && t instanceof Promise;
|
|
371
371
|
var v;
|
|
372
372
|
(function(t) {
|
|
373
373
|
t.errToObj = (e) => typeof e == "string" ? { message: e } : e || {}, t.toString = (e) => typeof e == "string" ? e : e == null ? void 0 : e.message;
|
|
@@ -438,7 +438,7 @@ class T {
|
|
|
438
438
|
}
|
|
439
439
|
_parseSync(e) {
|
|
440
440
|
const r = this._parse(e);
|
|
441
|
-
if (
|
|
441
|
+
if (It(r))
|
|
442
442
|
throw new Error("Synchronous parse encountered promise.");
|
|
443
443
|
return r;
|
|
444
444
|
}
|
|
@@ -486,7 +486,7 @@ class T {
|
|
|
486
486
|
parent: null,
|
|
487
487
|
data: e,
|
|
488
488
|
parsedType: pe(e)
|
|
489
|
-
}, s = this._parse({ data: e, path: n.path, parent: n }), i = await (
|
|
489
|
+
}, s = this._parse({ data: e, path: n.path, parent: n }), i = await (It(s) ? s : Promise.resolve(s));
|
|
490
490
|
return Zr(n, i);
|
|
491
491
|
}
|
|
492
492
|
refine(e, r) {
|
|
@@ -559,7 +559,7 @@ class T {
|
|
|
559
559
|
}
|
|
560
560
|
catch(e) {
|
|
561
561
|
const r = typeof e == "function" ? e : () => e;
|
|
562
|
-
return new
|
|
562
|
+
return new Ct({
|
|
563
563
|
..._(this._def),
|
|
564
564
|
innerType: this,
|
|
565
565
|
catchValue: r,
|
|
@@ -574,10 +574,10 @@ class T {
|
|
|
574
574
|
});
|
|
575
575
|
}
|
|
576
576
|
pipe(e) {
|
|
577
|
-
return
|
|
577
|
+
return ut.create(this, e);
|
|
578
578
|
}
|
|
579
579
|
readonly() {
|
|
580
|
-
return
|
|
580
|
+
return jt.create(this);
|
|
581
581
|
}
|
|
582
582
|
isOptional() {
|
|
583
583
|
return this.safeParse(void 0).success;
|
|
@@ -1293,7 +1293,7 @@ Ne.create = (t) => new Ne({
|
|
|
1293
1293
|
typeName: w.ZodDate,
|
|
1294
1294
|
..._(t)
|
|
1295
1295
|
});
|
|
1296
|
-
class
|
|
1296
|
+
class Nt extends T {
|
|
1297
1297
|
_parse(e) {
|
|
1298
1298
|
if (this._getType(e) !== y.symbol) {
|
|
1299
1299
|
const n = this._getOrReturnCtx(e);
|
|
@@ -1306,7 +1306,7 @@ class It extends T {
|
|
|
1306
1306
|
return P(e.data);
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
|
-
|
|
1309
|
+
Nt.create = (t) => new Nt({
|
|
1310
1310
|
typeName: w.ZodSymbol,
|
|
1311
1311
|
..._(t)
|
|
1312
1312
|
});
|
|
@@ -1382,7 +1382,7 @@ le.create = (t) => new le({
|
|
|
1382
1382
|
typeName: w.ZodNever,
|
|
1383
1383
|
..._(t)
|
|
1384
1384
|
});
|
|
1385
|
-
class
|
|
1385
|
+
class kt extends T {
|
|
1386
1386
|
_parse(e) {
|
|
1387
1387
|
if (this._getType(e) !== y.undefined) {
|
|
1388
1388
|
const n = this._getOrReturnCtx(e);
|
|
@@ -1395,7 +1395,7 @@ class Nt extends T {
|
|
|
1395
1395
|
return P(e.data);
|
|
1396
1396
|
}
|
|
1397
1397
|
}
|
|
1398
|
-
|
|
1398
|
+
kt.create = (t) => new kt({
|
|
1399
1399
|
typeName: w.ZodVoid,
|
|
1400
1400
|
..._(t)
|
|
1401
1401
|
});
|
|
@@ -1850,7 +1850,7 @@ Ke.create = (t, e) => new Ke({
|
|
|
1850
1850
|
typeName: w.ZodUnion,
|
|
1851
1851
|
..._(e)
|
|
1852
1852
|
});
|
|
1853
|
-
const
|
|
1853
|
+
const ft = (t) => t instanceof He ? ft(t.schema) : t instanceof K ? ft(t.innerType()) : t instanceof Je ? [t.value] : t instanceof xe ? t.options : t instanceof Xe ? Object.keys(t.enum) : t instanceof Qe ? ft(t._def.innerType) : t instanceof Ye ? [void 0] : t instanceof We ? [null] : null;
|
|
1854
1854
|
class Pt extends T {
|
|
1855
1855
|
_parse(e) {
|
|
1856
1856
|
const { ctx: r } = this._processInputParams(e);
|
|
@@ -1895,7 +1895,7 @@ class Pt extends T {
|
|
|
1895
1895
|
static create(e, r, n) {
|
|
1896
1896
|
const s = /* @__PURE__ */ new Map();
|
|
1897
1897
|
for (const i of r) {
|
|
1898
|
-
const a =
|
|
1898
|
+
const a = ft(i.shape[e]);
|
|
1899
1899
|
if (!a)
|
|
1900
1900
|
throw new Error(`A discriminator value for key \`${e}\` could not be extracted from all schema options`);
|
|
1901
1901
|
for (const o of a) {
|
|
@@ -2068,7 +2068,7 @@ class Fe extends T {
|
|
|
2068
2068
|
});
|
|
2069
2069
|
}
|
|
2070
2070
|
}
|
|
2071
|
-
class
|
|
2071
|
+
class Et extends T {
|
|
2072
2072
|
get keySchema() {
|
|
2073
2073
|
return this._def.keyType;
|
|
2074
2074
|
}
|
|
@@ -2110,7 +2110,7 @@ class kt extends T {
|
|
|
2110
2110
|
}
|
|
2111
2111
|
}
|
|
2112
2112
|
}
|
|
2113
|
-
|
|
2113
|
+
Et.create = (t, e, r) => new Et({
|
|
2114
2114
|
valueType: e,
|
|
2115
2115
|
keyType: t,
|
|
2116
2116
|
typeName: w.ZodMap,
|
|
@@ -2193,13 +2193,13 @@ class Ze extends T {
|
|
|
2193
2193
|
received: r.parsedType
|
|
2194
2194
|
}), O;
|
|
2195
2195
|
function n(o, c) {
|
|
2196
|
-
return
|
|
2196
|
+
return At({
|
|
2197
2197
|
data: o,
|
|
2198
2198
|
path: r.path,
|
|
2199
2199
|
errorMaps: [
|
|
2200
2200
|
r.common.contextualErrorMap,
|
|
2201
2201
|
r.schemaErrorMap,
|
|
2202
|
-
|
|
2202
|
+
St(),
|
|
2203
2203
|
Ve
|
|
2204
2204
|
].filter((f) => !!f),
|
|
2205
2205
|
issueData: {
|
|
@@ -2209,13 +2209,13 @@ class Ze extends T {
|
|
|
2209
2209
|
});
|
|
2210
2210
|
}
|
|
2211
2211
|
function s(o, c) {
|
|
2212
|
-
return
|
|
2212
|
+
return At({
|
|
2213
2213
|
data: o,
|
|
2214
2214
|
path: r.path,
|
|
2215
2215
|
errorMaps: [
|
|
2216
2216
|
r.common.contextualErrorMap,
|
|
2217
2217
|
r.schemaErrorMap,
|
|
2218
|
-
|
|
2218
|
+
St(),
|
|
2219
2219
|
Ve
|
|
2220
2220
|
].filter((f) => !!f),
|
|
2221
2221
|
issueData: {
|
|
@@ -2552,7 +2552,7 @@ Qe.create = (t, e) => new Qe({
|
|
|
2552
2552
|
defaultValue: typeof e.default == "function" ? e.default : () => e.default,
|
|
2553
2553
|
..._(e)
|
|
2554
2554
|
});
|
|
2555
|
-
class
|
|
2555
|
+
class Ct extends T {
|
|
2556
2556
|
_parse(e) {
|
|
2557
2557
|
const { ctx: r } = this._processInputParams(e), n = {
|
|
2558
2558
|
...r,
|
|
@@ -2567,7 +2567,7 @@ class Et extends T {
|
|
|
2567
2567
|
...n
|
|
2568
2568
|
}
|
|
2569
2569
|
});
|
|
2570
|
-
return
|
|
2570
|
+
return It(s) ? s.then((i) => ({
|
|
2571
2571
|
status: "valid",
|
|
2572
2572
|
value: i.status === "valid" ? i.value : this._def.catchValue({
|
|
2573
2573
|
get error() {
|
|
@@ -2589,13 +2589,13 @@ class Et extends T {
|
|
|
2589
2589
|
return this._def.innerType;
|
|
2590
2590
|
}
|
|
2591
2591
|
}
|
|
2592
|
-
|
|
2592
|
+
Ct.create = (t, e) => new Ct({
|
|
2593
2593
|
innerType: t,
|
|
2594
2594
|
typeName: w.ZodCatch,
|
|
2595
2595
|
catchValue: typeof e.catch == "function" ? e.catch : () => e.catch,
|
|
2596
2596
|
..._(e)
|
|
2597
2597
|
});
|
|
2598
|
-
class
|
|
2598
|
+
class Mt extends T {
|
|
2599
2599
|
_parse(e) {
|
|
2600
2600
|
if (this._getType(e) !== y.nan) {
|
|
2601
2601
|
const n = this._getOrReturnCtx(e);
|
|
@@ -2608,7 +2608,7 @@ class Ct extends T {
|
|
|
2608
2608
|
return { status: "valid", value: e.data };
|
|
2609
2609
|
}
|
|
2610
2610
|
}
|
|
2611
|
-
|
|
2611
|
+
Mt.create = (t) => new Mt({
|
|
2612
2612
|
typeName: w.ZodNaN,
|
|
2613
2613
|
..._(t)
|
|
2614
2614
|
});
|
|
@@ -2626,7 +2626,7 @@ class Kr extends T {
|
|
|
2626
2626
|
return this._def.type;
|
|
2627
2627
|
}
|
|
2628
2628
|
}
|
|
2629
|
-
class
|
|
2629
|
+
class ut extends T {
|
|
2630
2630
|
_parse(e) {
|
|
2631
2631
|
const { status: r, ctx: n } = this._processInputParams(e);
|
|
2632
2632
|
if (n.common.async)
|
|
@@ -2659,20 +2659,20 @@ class ct extends T {
|
|
|
2659
2659
|
}
|
|
2660
2660
|
}
|
|
2661
2661
|
static create(e, r) {
|
|
2662
|
-
return new
|
|
2662
|
+
return new ut({
|
|
2663
2663
|
in: e,
|
|
2664
2664
|
out: r,
|
|
2665
2665
|
typeName: w.ZodPipeline
|
|
2666
2666
|
});
|
|
2667
2667
|
}
|
|
2668
2668
|
}
|
|
2669
|
-
class
|
|
2669
|
+
class jt extends T {
|
|
2670
2670
|
_parse(e) {
|
|
2671
2671
|
const r = this._def.innerType._parse(e);
|
|
2672
2672
|
return ze(r) && (r.value = Object.freeze(r.value)), r;
|
|
2673
2673
|
}
|
|
2674
2674
|
}
|
|
2675
|
-
|
|
2675
|
+
jt.create = (t, e) => new jt({
|
|
2676
2676
|
innerType: t,
|
|
2677
2677
|
typeName: w.ZodReadonly,
|
|
2678
2678
|
..._(e)
|
|
@@ -2692,7 +2692,7 @@ var w;
|
|
|
2692
2692
|
})(w || (w = {}));
|
|
2693
2693
|
const As = (t, e = {
|
|
2694
2694
|
message: `Input not instance of ${t.name}`
|
|
2695
|
-
}) => Gr((r) => r instanceof t, e), Fr = q.create, Hr = be.create, Is =
|
|
2695
|
+
}) => Gr((r) => r instanceof t, e), Fr = q.create, Hr = be.create, Is = Mt.create, Ns = we.create, Jr = qe.create, ks = Ne.create, Es = Nt.create, Cs = Ye.create, Ms = We.create, js = $e.create, Rs = Ae.create, Zs = le.create, $s = kt.create, Ls = W.create, Bs = M.create, Ps = M.strictCreate, Us = Ke.create, Ds = Pt.create, Vs = Ge.create, zs = Q.create, qs = Fe.create, Ys = Et.create, Ws = ke.create, Ks = Ze.create, Gs = He.create, Fs = Je.create, Hs = xe.create, Js = Xe.create, Xs = Le.create, $r = K.create, Qs = ue.create, ei = Ee.create, ti = K.createWithPreprocess, ri = ut.create, ni = () => Fr().optional(), si = () => Hr().optional(), ii = () => Jr().optional(), ai = {
|
|
2696
2696
|
string: (t) => q.create({ ...t, coerce: !0 }),
|
|
2697
2697
|
number: (t) => be.create({ ...t, coerce: !0 }),
|
|
2698
2698
|
boolean: (t) => qe.create({
|
|
@@ -2706,8 +2706,8 @@ var d = /* @__PURE__ */ Object.freeze({
|
|
|
2706
2706
|
__proto__: null,
|
|
2707
2707
|
defaultErrorMap: Ve,
|
|
2708
2708
|
setErrorMap: ds,
|
|
2709
|
-
getErrorMap:
|
|
2710
|
-
makeIssue:
|
|
2709
|
+
getErrorMap: St,
|
|
2710
|
+
makeIssue: At,
|
|
2711
2711
|
EMPTY_PATH: fs,
|
|
2712
2712
|
addIssueToContext: m,
|
|
2713
2713
|
ParseStatus: B,
|
|
@@ -2717,7 +2717,7 @@ var d = /* @__PURE__ */ Object.freeze({
|
|
|
2717
2717
|
isAborted: nr,
|
|
2718
2718
|
isDirty: sr,
|
|
2719
2719
|
isValid: ze,
|
|
2720
|
-
isAsync:
|
|
2720
|
+
isAsync: It,
|
|
2721
2721
|
get util() {
|
|
2722
2722
|
return I;
|
|
2723
2723
|
},
|
|
@@ -2732,13 +2732,13 @@ var d = /* @__PURE__ */ Object.freeze({
|
|
|
2732
2732
|
ZodBigInt: we,
|
|
2733
2733
|
ZodBoolean: qe,
|
|
2734
2734
|
ZodDate: Ne,
|
|
2735
|
-
ZodSymbol:
|
|
2735
|
+
ZodSymbol: Nt,
|
|
2736
2736
|
ZodUndefined: Ye,
|
|
2737
2737
|
ZodNull: We,
|
|
2738
2738
|
ZodAny: $e,
|
|
2739
2739
|
ZodUnknown: Ae,
|
|
2740
2740
|
ZodNever: le,
|
|
2741
|
-
ZodVoid:
|
|
2741
|
+
ZodVoid: kt,
|
|
2742
2742
|
ZodArray: W,
|
|
2743
2743
|
ZodObject: M,
|
|
2744
2744
|
ZodUnion: Ke,
|
|
@@ -2746,7 +2746,7 @@ var d = /* @__PURE__ */ Object.freeze({
|
|
|
2746
2746
|
ZodIntersection: Ge,
|
|
2747
2747
|
ZodTuple: Q,
|
|
2748
2748
|
ZodRecord: Fe,
|
|
2749
|
-
ZodMap:
|
|
2749
|
+
ZodMap: Et,
|
|
2750
2750
|
ZodSet: ke,
|
|
2751
2751
|
ZodFunction: Ze,
|
|
2752
2752
|
ZodLazy: He,
|
|
@@ -2759,12 +2759,12 @@ var d = /* @__PURE__ */ Object.freeze({
|
|
|
2759
2759
|
ZodOptional: ue,
|
|
2760
2760
|
ZodNullable: Ee,
|
|
2761
2761
|
ZodDefault: Qe,
|
|
2762
|
-
ZodCatch:
|
|
2763
|
-
ZodNaN:
|
|
2762
|
+
ZodCatch: Ct,
|
|
2763
|
+
ZodNaN: Mt,
|
|
2764
2764
|
BRAND: Ts,
|
|
2765
2765
|
ZodBranded: Kr,
|
|
2766
|
-
ZodPipeline:
|
|
2767
|
-
ZodReadonly:
|
|
2766
|
+
ZodPipeline: ut,
|
|
2767
|
+
ZodReadonly: jt,
|
|
2768
2768
|
custom: Gr,
|
|
2769
2769
|
Schema: T,
|
|
2770
2770
|
ZodSchema: T,
|
|
@@ -3051,26 +3051,26 @@ var Yi = z && z.__spreadArrays || function() {
|
|
|
3051
3051
|
};
|
|
3052
3052
|
Object.defineProperty(_r, "__esModule", { value: !0 });
|
|
3053
3053
|
var re = Ce;
|
|
3054
|
-
function
|
|
3054
|
+
function ht(t, e) {
|
|
3055
3055
|
if (e === void 0 && (e = re.DefaultOption), !re.isValidObject(t))
|
|
3056
3056
|
return null;
|
|
3057
3057
|
e = re.validateOptions(e);
|
|
3058
3058
|
var r = {};
|
|
3059
3059
|
return Object.keys(t).forEach(function(n) {
|
|
3060
3060
|
var s = t[n], i = n.toLowerCase();
|
|
3061
|
-
e.recursive && (re.isValidObject(s) ? re.belongToTypes(s, e.keepTypesOnRecursion) || (s =
|
|
3061
|
+
e.recursive && (re.isValidObject(s) ? re.belongToTypes(s, e.keepTypesOnRecursion) || (s = ht(s, e)) : e.recursiveInArray && re.isArrayObject(s) && (s = Yi(s).map(function(a) {
|
|
3062
3062
|
var o = a;
|
|
3063
3063
|
if (re.isValidObject(a))
|
|
3064
|
-
re.belongToTypes(o, e.keepTypesOnRecursion) || (o =
|
|
3064
|
+
re.belongToTypes(o, e.keepTypesOnRecursion) || (o = ht(a, e));
|
|
3065
3065
|
else if (re.isArrayObject(a)) {
|
|
3066
|
-
var c =
|
|
3066
|
+
var c = ht({ key: a }, e);
|
|
3067
3067
|
o = c.key;
|
|
3068
3068
|
}
|
|
3069
3069
|
return o;
|
|
3070
3070
|
}))), r[i] = s;
|
|
3071
3071
|
}), r;
|
|
3072
3072
|
}
|
|
3073
|
-
_r.default =
|
|
3073
|
+
_r.default = ht;
|
|
3074
3074
|
var Tr = {}, Wi = z && z.__spreadArrays || function() {
|
|
3075
3075
|
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
3076
3076
|
t += arguments[e].length;
|
|
@@ -3081,26 +3081,26 @@ var Tr = {}, Wi = z && z.__spreadArrays || function() {
|
|
|
3081
3081
|
};
|
|
3082
3082
|
Object.defineProperty(Tr, "__esModule", { value: !0 });
|
|
3083
3083
|
var ne = Ce;
|
|
3084
|
-
function
|
|
3084
|
+
function pt(t, e) {
|
|
3085
3085
|
if (e === void 0 && (e = ne.DefaultOption), !ne.isValidObject(t))
|
|
3086
3086
|
return null;
|
|
3087
3087
|
e = ne.validateOptions(e);
|
|
3088
3088
|
var r = {};
|
|
3089
3089
|
return Object.keys(t).forEach(function(n) {
|
|
3090
3090
|
var s = t[n], i = n.toUpperCase();
|
|
3091
|
-
e.recursive && (ne.isValidObject(s) ? ne.belongToTypes(s, e.keepTypesOnRecursion) || (s =
|
|
3091
|
+
e.recursive && (ne.isValidObject(s) ? ne.belongToTypes(s, e.keepTypesOnRecursion) || (s = pt(s, e)) : e.recursiveInArray && ne.isArrayObject(s) && (s = Wi(s).map(function(a) {
|
|
3092
3092
|
var o = a;
|
|
3093
3093
|
if (ne.isValidObject(a))
|
|
3094
|
-
ne.belongToTypes(o, e.keepTypesOnRecursion) || (o =
|
|
3094
|
+
ne.belongToTypes(o, e.keepTypesOnRecursion) || (o = pt(a, e));
|
|
3095
3095
|
else if (ne.isArrayObject(a)) {
|
|
3096
|
-
var c =
|
|
3096
|
+
var c = pt({ key: a }, e);
|
|
3097
3097
|
o = c.key;
|
|
3098
3098
|
}
|
|
3099
3099
|
return o;
|
|
3100
3100
|
}))), r[i] = s;
|
|
3101
3101
|
}), r;
|
|
3102
3102
|
}
|
|
3103
|
-
Tr.default =
|
|
3103
|
+
Tr.default = pt;
|
|
3104
3104
|
var Sr = {}, Ki = z && z.__spreadArrays || function() {
|
|
3105
3105
|
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
3106
3106
|
t += arguments[e].length;
|
|
@@ -3111,26 +3111,26 @@ var Sr = {}, Ki = z && z.__spreadArrays || function() {
|
|
|
3111
3111
|
};
|
|
3112
3112
|
Object.defineProperty(Sr, "__esModule", { value: !0 });
|
|
3113
3113
|
var se = Ce, Gi = zt;
|
|
3114
|
-
function
|
|
3114
|
+
function yt(t, e) {
|
|
3115
3115
|
if (e === void 0 && (e = se.DefaultOption), !se.isValidObject(t))
|
|
3116
3116
|
return null;
|
|
3117
3117
|
e = se.validateOptions(e);
|
|
3118
3118
|
var r = {};
|
|
3119
3119
|
return Object.keys(t).forEach(function(n) {
|
|
3120
3120
|
var s = t[n], i = Gi.default(n);
|
|
3121
|
-
e.recursive && (se.isValidObject(s) ? se.belongToTypes(s, e.keepTypesOnRecursion) || (s =
|
|
3121
|
+
e.recursive && (se.isValidObject(s) ? se.belongToTypes(s, e.keepTypesOnRecursion) || (s = yt(s, e)) : e.recursiveInArray && se.isArrayObject(s) && (s = Ki(s).map(function(a) {
|
|
3122
3122
|
var o = a;
|
|
3123
3123
|
if (se.isValidObject(a))
|
|
3124
|
-
se.belongToTypes(o, e.keepTypesOnRecursion) || (o =
|
|
3124
|
+
se.belongToTypes(o, e.keepTypesOnRecursion) || (o = yt(a, e));
|
|
3125
3125
|
else if (se.isArrayObject(a)) {
|
|
3126
|
-
var c =
|
|
3126
|
+
var c = yt({ key: a }, e);
|
|
3127
3127
|
o = c.key;
|
|
3128
3128
|
}
|
|
3129
3129
|
return o;
|
|
3130
3130
|
}))), r[i] = s;
|
|
3131
3131
|
}), r;
|
|
3132
3132
|
}
|
|
3133
|
-
Sr.default =
|
|
3133
|
+
Sr.default = yt;
|
|
3134
3134
|
var Ar = {}, Fi = z && z.__spreadArrays || function() {
|
|
3135
3135
|
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
3136
3136
|
t += arguments[e].length;
|
|
@@ -3141,26 +3141,26 @@ var Ar = {}, Fi = z && z.__spreadArrays || function() {
|
|
|
3141
3141
|
};
|
|
3142
3142
|
Object.defineProperty(Ar, "__esModule", { value: !0 });
|
|
3143
3143
|
var ie = Ce, Hi = qt;
|
|
3144
|
-
function
|
|
3144
|
+
function mt(t, e) {
|
|
3145
3145
|
if (e === void 0 && (e = ie.DefaultOption), !ie.isValidObject(t))
|
|
3146
3146
|
return null;
|
|
3147
3147
|
e = ie.validateOptions(e);
|
|
3148
3148
|
var r = {};
|
|
3149
3149
|
return Object.keys(t).forEach(function(n) {
|
|
3150
3150
|
var s = t[n], i = Hi.default(n);
|
|
3151
|
-
e.recursive && (ie.isValidObject(s) ? ie.belongToTypes(s, e.keepTypesOnRecursion) || (s =
|
|
3151
|
+
e.recursive && (ie.isValidObject(s) ? ie.belongToTypes(s, e.keepTypesOnRecursion) || (s = mt(s, e)) : e.recursiveInArray && ie.isArrayObject(s) && (s = Fi(s).map(function(a) {
|
|
3152
3152
|
var o = a;
|
|
3153
3153
|
if (ie.isValidObject(a))
|
|
3154
|
-
ie.belongToTypes(o, e.keepTypesOnRecursion) || (o =
|
|
3154
|
+
ie.belongToTypes(o, e.keepTypesOnRecursion) || (o = mt(a, e));
|
|
3155
3155
|
else if (ie.isArrayObject(a)) {
|
|
3156
|
-
var c =
|
|
3156
|
+
var c = mt({ key: a }, e);
|
|
3157
3157
|
o = c.key;
|
|
3158
3158
|
}
|
|
3159
3159
|
return o;
|
|
3160
3160
|
}))), r[i] = s;
|
|
3161
3161
|
}), r;
|
|
3162
3162
|
}
|
|
3163
|
-
Ar.default =
|
|
3163
|
+
Ar.default = mt;
|
|
3164
3164
|
var Ir = {}, Ji = z && z.__spreadArrays || function() {
|
|
3165
3165
|
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
3166
3166
|
t += arguments[e].length;
|
|
@@ -3171,26 +3171,26 @@ var Ir = {}, Ji = z && z.__spreadArrays || function() {
|
|
|
3171
3171
|
};
|
|
3172
3172
|
Object.defineProperty(Ir, "__esModule", { value: !0 });
|
|
3173
3173
|
var ae = Ce, Xi = Yt;
|
|
3174
|
-
function
|
|
3174
|
+
function gt(t, e) {
|
|
3175
3175
|
if (e === void 0 && (e = ae.DefaultOption), !ae.isValidObject(t))
|
|
3176
3176
|
return null;
|
|
3177
3177
|
e = ae.validateOptions(e);
|
|
3178
3178
|
var r = {};
|
|
3179
3179
|
return Object.keys(t).forEach(function(n) {
|
|
3180
3180
|
var s = t[n], i = Xi.default(n);
|
|
3181
|
-
e.recursive && (ae.isValidObject(s) ? ae.belongToTypes(s, e.keepTypesOnRecursion) || (s =
|
|
3181
|
+
e.recursive && (ae.isValidObject(s) ? ae.belongToTypes(s, e.keepTypesOnRecursion) || (s = gt(s, e)) : e.recursiveInArray && ae.isArrayObject(s) && (s = Ji(s).map(function(a) {
|
|
3182
3182
|
var o = a;
|
|
3183
3183
|
if (ae.isValidObject(a))
|
|
3184
|
-
ae.belongToTypes(o, e.keepTypesOnRecursion) || (o =
|
|
3184
|
+
ae.belongToTypes(o, e.keepTypesOnRecursion) || (o = gt(a, e));
|
|
3185
3185
|
else if (ae.isArrayObject(a)) {
|
|
3186
|
-
var c =
|
|
3186
|
+
var c = gt({ key: a }, e);
|
|
3187
3187
|
o = c.key;
|
|
3188
3188
|
}
|
|
3189
3189
|
return o;
|
|
3190
3190
|
}))), r[i] = s;
|
|
3191
3191
|
}), r;
|
|
3192
3192
|
}
|
|
3193
|
-
Ir.default =
|
|
3193
|
+
Ir.default = gt;
|
|
3194
3194
|
var Nr = {}, Qi = z && z.__spreadArrays || function() {
|
|
3195
3195
|
for (var t = 0, e = 0, r = arguments.length; e < r; e++)
|
|
3196
3196
|
t += arguments[e].length;
|
|
@@ -3201,26 +3201,26 @@ var Nr = {}, Qi = z && z.__spreadArrays || function() {
|
|
|
3201
3201
|
};
|
|
3202
3202
|
Object.defineProperty(Nr, "__esModule", { value: !0 });
|
|
3203
3203
|
var oe = Ce, ea = Wt;
|
|
3204
|
-
function
|
|
3204
|
+
function vt(t, e) {
|
|
3205
3205
|
if (e === void 0 && (e = oe.DefaultOption), !oe.isValidObject(t))
|
|
3206
3206
|
return null;
|
|
3207
3207
|
e = oe.validateOptions(e);
|
|
3208
3208
|
var r = {};
|
|
3209
3209
|
return Object.keys(t).forEach(function(n) {
|
|
3210
3210
|
var s = t[n], i = ea.default(n);
|
|
3211
|
-
e.recursive && (oe.isValidObject(s) ? oe.belongToTypes(s, e.keepTypesOnRecursion) || (s =
|
|
3211
|
+
e.recursive && (oe.isValidObject(s) ? oe.belongToTypes(s, e.keepTypesOnRecursion) || (s = vt(s, e)) : e.recursiveInArray && oe.isArrayObject(s) && (s = Qi(s).map(function(a) {
|
|
3212
3212
|
var o = a;
|
|
3213
3213
|
if (oe.isValidObject(a))
|
|
3214
|
-
oe.belongToTypes(o, e.keepTypesOnRecursion) || (o =
|
|
3214
|
+
oe.belongToTypes(o, e.keepTypesOnRecursion) || (o = vt(a, e));
|
|
3215
3215
|
else if (oe.isArrayObject(a)) {
|
|
3216
|
-
var c =
|
|
3216
|
+
var c = vt({ key: a }, e);
|
|
3217
3217
|
o = c.key;
|
|
3218
3218
|
}
|
|
3219
3219
|
return o;
|
|
3220
3220
|
}))), r[i] = s;
|
|
3221
3221
|
}), r;
|
|
3222
3222
|
}
|
|
3223
|
-
Nr.default =
|
|
3223
|
+
Nr.default = vt;
|
|
3224
3224
|
Object.defineProperty(S, "__esModule", { value: !0 });
|
|
3225
3225
|
S.kebabKeys = S.pascalKeys = S.snakeKeys = S.camelKeys = S.upperKeys = S.lowerKeys = S.toLowerCase = S.toUpperCase = S.toKebabCase = S.toHeaderCase = S.toSentenceCase = S.toTextCase = S.toPathCase = S.toDotCase = S.toPascalCase = S.toSnakeCase = S.toCamelCase = void 0;
|
|
3226
3226
|
var cn = zt;
|
|
@@ -3303,7 +3303,7 @@ const sa = pr, ia = mr, aa = {
|
|
|
3303
3303
|
bottom: "right",
|
|
3304
3304
|
left: "bottom",
|
|
3305
3305
|
center: "center"
|
|
3306
|
-
}, ca = mi, Oe = (t) => t instanceof String ? t : hr.includes(t) ? t === "x" ? "left" : "top" : t,
|
|
3306
|
+
}, ca = mi, Oe = (t) => t instanceof String ? t : hr.includes(t) ? t === "x" ? "left" : "top" : t, bt = (t) => aa[Oe(t)], ua = (t) => oa[Oe(t)], rt = (t) => {
|
|
3307
3307
|
const e = Oe(t);
|
|
3308
3308
|
return e === "top" || e === "bottom" ? "y" : "x";
|
|
3309
3309
|
}, In = d.object({
|
|
@@ -3319,20 +3319,20 @@ const sa = pr, ia = mr, aa = {
|
|
|
3319
3319
|
Kt,
|
|
3320
3320
|
Er,
|
|
3321
3321
|
nt
|
|
3322
|
-
]), Gt = (t, e) => t.x === e.x && t.y === e.y,
|
|
3322
|
+
]), Gt = (t, e) => t.x === e.x && t.y === e.y, wt = (t, e) => {
|
|
3323
3323
|
if (typeof e == "object") {
|
|
3324
3324
|
let r = !0;
|
|
3325
3325
|
return "x" in e && (t.x === e.x || (r = !1)), "y" in e && (t.y === e.y || (r = !1)), r;
|
|
3326
3326
|
}
|
|
3327
3327
|
return t.x === e || t.y === e;
|
|
3328
|
-
}, Rn = (t) => [t.x, t.y],
|
|
3328
|
+
}, Rn = (t) => [t.x, t.y], xt = (t) => rt(Oe(t)) === "x", la = (t) => rt(Oe(t)) === "y", da = (t) => `${t.x}${tt.capitalize(t.y)}`, fa = (t, e) => {
|
|
3329
3329
|
let r, n;
|
|
3330
3330
|
if (typeof t == "object" && "x" in t ? (r = t.x, n = t.y) : (r = Oe(t), n = Oe(e ?? t)), rt(r) === rt(n) && r !== "center" && n !== "center")
|
|
3331
3331
|
throw new Error(
|
|
3332
3332
|
`[XYLocation] - encountered two locations with the same direction: ${r.toString()} - ${n.toString()}`
|
|
3333
3333
|
);
|
|
3334
3334
|
const s = { ...nt };
|
|
3335
|
-
return r === "center" ?
|
|
3335
|
+
return r === "center" ? xt(n) ? [s.x, s.y] = [n, r] : [s.x, s.y] = [r, n] : n === "center" ? xt(r) ? [s.x, s.y] = [r, n] : [s.x, s.y] = [n, r] : xt(r) ? [s.x, s.y] = [r, n] : [s.x, s.y] = [n, r], s;
|
|
3336
3336
|
}, Qo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3337
3337
|
__proto__: null,
|
|
3338
3338
|
BOTTOM_CENTER: En,
|
|
@@ -3353,17 +3353,17 @@ const sa = pr, ia = mr, aa = {
|
|
|
3353
3353
|
corner: Nn,
|
|
3354
3354
|
crude: ca,
|
|
3355
3355
|
direction: rt,
|
|
3356
|
-
isX:
|
|
3356
|
+
isX: xt,
|
|
3357
3357
|
isY: la,
|
|
3358
3358
|
location: Dt,
|
|
3359
3359
|
outer: di,
|
|
3360
3360
|
rotate90: ua,
|
|
3361
|
-
swap:
|
|
3361
|
+
swap: bt,
|
|
3362
3362
|
x: sa,
|
|
3363
3363
|
xy: In,
|
|
3364
3364
|
xyCouple: Rn,
|
|
3365
3365
|
xyEquals: Gt,
|
|
3366
|
-
xyMatches:
|
|
3366
|
+
xyMatches: wt,
|
|
3367
3367
|
xyToString: da,
|
|
3368
3368
|
y: ia
|
|
3369
3369
|
}, Symbol.toStringTag, { value: "Module" })), or = d.union([
|
|
@@ -3380,10 +3380,10 @@ const sa = pr, ia = mr, aa = {
|
|
|
3380
3380
|
return t === "x" ? { x: e, y: 0 } : { x: 0, y: e };
|
|
3381
3381
|
}
|
|
3382
3382
|
return typeof t == "number" ? { x: t, y: e ?? t } : Array.isArray(t) ? { x: t[0], y: t[1] } : "signedWidth" in t ? { x: t.signedWidth, y: t.signedHeight } : "clientX" in t ? { x: t.clientX, y: t.clientY } : "width" in t ? { x: t.width, y: t.height } : { x: t.x, y: t.y };
|
|
3383
|
-
}, de = { x: 0, y: 0 }, Zn = { x: 1, y: 1 }, ha = { x: 1 / 0, y: 1 / 0 }, pa = { x: NaN, y: NaN },
|
|
3383
|
+
}, de = { x: 0, y: 0 }, Zn = { x: 1, y: 1 }, ha = { x: 1 / 0, y: 1 / 0 }, pa = { x: NaN, y: NaN }, Rt = (t, e, r = 0) => {
|
|
3384
3384
|
const n = C(t), s = C(e);
|
|
3385
3385
|
return r === 0 ? n.x === s.x && n.y === s.y : Math.abs(n.x - s.x) <= r && Math.abs(n.y - s.y) <= r;
|
|
3386
|
-
}, ya = (t) =>
|
|
3386
|
+
}, ya = (t) => Rt(t, de), ma = (t, e, r = e) => {
|
|
3387
3387
|
const n = C(t);
|
|
3388
3388
|
return { x: n.x * e, y: n.y * r };
|
|
3389
3389
|
}, Cr = (t, e) => {
|
|
@@ -3392,7 +3392,7 @@ const sa = pr, ia = mr, aa = {
|
|
|
3392
3392
|
}, Mr = (t, e) => {
|
|
3393
3393
|
const r = C(t);
|
|
3394
3394
|
return { x: r.x, y: r.y + e };
|
|
3395
|
-
},
|
|
3395
|
+
}, Zt = (t, e, r, ...n) => typeof e == "string" && typeof r == "number" ? e === "x" ? Cr(t, r) : Mr(t, r) : [t, e, r ?? de, ...n].reduce((s, i) => {
|
|
3396
3396
|
const a = C(i);
|
|
3397
3397
|
return { x: s.x + a.x, y: s.y + a.y };
|
|
3398
3398
|
}, de), ga = (t, e, r) => {
|
|
@@ -3437,13 +3437,13 @@ const sa = pr, ia = mr, aa = {
|
|
|
3437
3437
|
crudeZ: or,
|
|
3438
3438
|
css: Sa,
|
|
3439
3439
|
distance: va,
|
|
3440
|
-
equals:
|
|
3440
|
+
equals: Rt,
|
|
3441
3441
|
isFinite: _a,
|
|
3442
3442
|
isNan: Oa,
|
|
3443
3443
|
isZero: ya,
|
|
3444
3444
|
scale: ma,
|
|
3445
3445
|
set: ga,
|
|
3446
|
-
translate:
|
|
3446
|
+
translate: Zt,
|
|
3447
3447
|
translateX: Cr,
|
|
3448
3448
|
translateY: Mr,
|
|
3449
3449
|
translation: xa,
|
|
@@ -3451,12 +3451,12 @@ const sa = pr, ia = mr, aa = {
|
|
|
3451
3451
|
xDistance: ba,
|
|
3452
3452
|
xy: et,
|
|
3453
3453
|
yDistance: wa
|
|
3454
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3454
|
+
}, Symbol.toStringTag, { value: "Module" })), lt = d.union([d.number(), d.string()]);
|
|
3455
3455
|
d.object({
|
|
3456
|
-
top:
|
|
3457
|
-
left:
|
|
3458
|
-
width:
|
|
3459
|
-
height:
|
|
3456
|
+
top: lt,
|
|
3457
|
+
left: lt,
|
|
3458
|
+
width: lt,
|
|
3459
|
+
height: lt
|
|
3460
3460
|
});
|
|
3461
3461
|
d.object({
|
|
3462
3462
|
left: d.number(),
|
|
@@ -3508,7 +3508,7 @@ const Aa = d.object({
|
|
|
3508
3508
|
}, Ln = (t, e) => {
|
|
3509
3509
|
const r = k(t);
|
|
3510
3510
|
return "one" in e ? me(e) >= me(r) && ye(e) <= ye(r) && ge(e) >= ge(r) && Ie(e) <= Ie(r) : e.x >= me(r) && e.x <= ye(r) && e.y >= ge(r) && e.y <= Ie(r);
|
|
3511
|
-
}, Ea = (t, e) =>
|
|
3511
|
+
}, Ea = (t, e) => Rt(t.one, e.one) && Rt(t.two, e.two) && Gt(t.root, e.root), jr = (t) => ({
|
|
3512
3512
|
width: G(t),
|
|
3513
3513
|
height: ee(t)
|
|
3514
3514
|
}), Ca = (t) => ({
|
|
@@ -3540,7 +3540,7 @@ const Aa = d.object({
|
|
|
3540
3540
|
}, Ht = (t) => {
|
|
3541
3541
|
const e = k(t);
|
|
3542
3542
|
return e.two.y - e.one.y;
|
|
3543
|
-
}, Bn = (t) => Ue(t, Pe), Za = (t) => Ue(t, kr), $a = (t) => Ue(t, Kt), La = (t) => Ue(t, Er), ye = (t) => _e(t, "right"), Ie = (t) => _e(t, "bottom"), me = (t) => _e(t, "left"), ge = (t) => _e(t, "top"), st = (t) =>
|
|
3543
|
+
}, Bn = (t) => Ue(t, Pe), Za = (t) => Ue(t, kr), $a = (t) => Ue(t, Kt), La = (t) => Ue(t, Er), ye = (t) => _e(t, "right"), Ie = (t) => _e(t, "bottom"), me = (t) => _e(t, "left"), ge = (t) => _e(t, "top"), st = (t) => Zt(Bn(t), {
|
|
3544
3544
|
x: Ft(t) / 2,
|
|
3545
3545
|
y: Ht(t) / 2
|
|
3546
3546
|
}), it = (t) => {
|
|
@@ -3549,10 +3549,10 @@ const Aa = d.object({
|
|
|
3549
3549
|
}, at = (t) => {
|
|
3550
3550
|
const e = k(t);
|
|
3551
3551
|
return e.root.y === "top" ? ge(e) : Ie(e);
|
|
3552
|
-
}, Ba = (t) => ({ x: it(t), y: at(t) }),
|
|
3552
|
+
}, Ba = (t) => ({ x: it(t), y: at(t) }), Ot = (t) => {
|
|
3553
3553
|
const e = k(t);
|
|
3554
3554
|
return { lower: e.one.x, upper: e.two.x };
|
|
3555
|
-
},
|
|
3555
|
+
}, _t = (t) => {
|
|
3556
3556
|
const e = k(t);
|
|
3557
3557
|
return { lower: e.one.y, upper: e.two.y };
|
|
3558
3558
|
}, Pa = (t, e) => $n(t, e), Ua = (t, e) => {
|
|
@@ -3573,8 +3573,8 @@ const Aa = d.object({
|
|
|
3573
3573
|
}
|
|
3574
3574
|
const n = k(t);
|
|
3575
3575
|
return k(
|
|
3576
|
-
|
|
3577
|
-
|
|
3576
|
+
Zt(n.one, e),
|
|
3577
|
+
Zt(n.two, e),
|
|
3578
3578
|
void 0,
|
|
3579
3579
|
void 0,
|
|
3580
3580
|
n.root
|
|
@@ -3636,10 +3636,10 @@ const Aa = d.object({
|
|
|
3636
3636
|
truncate: qa,
|
|
3637
3637
|
width: G,
|
|
3638
3638
|
x: it,
|
|
3639
|
-
xBounds:
|
|
3639
|
+
xBounds: Ot,
|
|
3640
3640
|
xyLoc: Ue,
|
|
3641
3641
|
y: at,
|
|
3642
|
-
yBounds:
|
|
3642
|
+
yBounds: _t
|
|
3643
3643
|
}, Symbol.toStringTag, { value: "Module" })), zn = d.object({ signedWidth: d.number(), signedHeight: d.number() }), Ya = d.union([fr, zn, et, dr]), Wa = { width: 0, height: 0 }, Ka = { width: 1, height: 1 }, F = (t, e) => typeof t == "number" ? { width: t, height: e ?? t } : Array.isArray(t) ? { width: t[0], height: t[1] } : "x" in t ? { width: t.x, height: t.y } : "signedWidth" in t ? { width: t.signedWidth, height: t.signedHeight } : { ...t }, Ga = (t, e) => {
|
|
3644
3644
|
if (e == null)
|
|
3645
3645
|
return !1;
|
|
@@ -3829,17 +3829,17 @@ const uo = (t) => ({
|
|
|
3829
3829
|
const r = this.copy();
|
|
3830
3830
|
if (Pn(e)) {
|
|
3831
3831
|
const n = this.currRoot;
|
|
3832
|
-
return r.currRoot = e.root, n != null && !Gt(n, e.root) && (n.x !== e.root.x && (r.x = r.x.invert()), n.y !== e.root.y && (r.y = r.y.invert())), r.x = r.x.scale(
|
|
3832
|
+
return r.currRoot = e.root, n != null && !Gt(n, e.root) && (n.x !== e.root.x && (r.x = r.x.invert()), n.y !== e.root.y && (r.y = r.y.invert())), r.x = r.x.scale(Ot(e)), r.y = r.y.scale(_t(e)), r;
|
|
3833
3833
|
}
|
|
3834
3834
|
return r.x = r.x.scale(e.width), r.y = r.y.scale(e.height), r;
|
|
3835
3835
|
}
|
|
3836
3836
|
reBound(e) {
|
|
3837
3837
|
const r = this.copy();
|
|
3838
|
-
return r.x = this.x.reBound(
|
|
3838
|
+
return r.x = this.x.reBound(Ot(e)), r.y = this.y.reBound(_t(e)), r;
|
|
3839
3839
|
}
|
|
3840
3840
|
clamp(e) {
|
|
3841
3841
|
const r = this.copy();
|
|
3842
|
-
return r.x = this.x.clamp(
|
|
3842
|
+
return r.x = this.x.clamp(Ot(e)), r.y = this.y.clamp(_t(e)), r;
|
|
3843
3843
|
}
|
|
3844
3844
|
copy() {
|
|
3845
3845
|
const e = new V();
|
|
@@ -3896,12 +3896,12 @@ const nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3896
3896
|
if (s != null) {
|
|
3897
3897
|
const R = s.map((te) => Br(te));
|
|
3898
3898
|
c = c.slice().sort((te, Jt) => {
|
|
3899
|
-
const je = R.findIndex((Qt) =>
|
|
3899
|
+
const je = R.findIndex((Qt) => wt(te, Qt)), Xt = R.findIndex((Qt) => wt(Jt, Qt));
|
|
3900
3900
|
return je > -1 && Xt > -1 ? je - Xt : je > -1 ? -1 : Xt > -1 ? 1 : 0;
|
|
3901
3901
|
});
|
|
3902
3902
|
}
|
|
3903
3903
|
const f = c.filter(
|
|
3904
|
-
(R) => !Gt(R, nt) && (o.x == null || R.x === o.x) && (o.y == null || R.y === o.y) && !a.some((te) =>
|
|
3904
|
+
(R) => !Gt(R, nt) && (o.x == null || R.x === o.x) && (o.y == null || R.y === o.y) && !a.some((te) => wt(R, te))
|
|
3905
3905
|
).map((R) => i == null ? void 0 : i.map((te) => [R, te])).flat(), b = k(t), x = k(e), H = k(r);
|
|
3906
3906
|
let D = -1 / 0;
|
|
3907
3907
|
const Me = { location: nt, adjustedDialog: H };
|
|
@@ -3942,11 +3942,11 @@ const nc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3942
3942
|
}, qn = (t, e) => {
|
|
3943
3943
|
const r = { x: "center", y: "center" };
|
|
3944
3944
|
if (t.y !== "center") {
|
|
3945
|
-
r.y =
|
|
3946
|
-
const n = t.x === "left" ?
|
|
3945
|
+
r.y = bt(t.y);
|
|
3946
|
+
const n = t.x === "left" ? bt : (s) => s;
|
|
3947
3947
|
r.x = n(po[e]);
|
|
3948
3948
|
} else
|
|
3949
|
-
r.x =
|
|
3949
|
+
r.x = bt(t.x), r.y = yo[e];
|
|
3950
3950
|
return r;
|
|
3951
3951
|
}, sc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3952
3952
|
__proto__: null,
|
|
@@ -4553,7 +4553,7 @@ const $ = class $ extends Number {
|
|
|
4553
4553
|
return e.valueOf() / this.valueOf();
|
|
4554
4554
|
}
|
|
4555
4555
|
size(e) {
|
|
4556
|
-
return new
|
|
4556
|
+
return new ct(e * this.valueOf());
|
|
4557
4557
|
}
|
|
4558
4558
|
};
|
|
4559
4559
|
/** Unknown/Invalid Density. */
|
|
@@ -4925,7 +4925,7 @@ u(A, "z", d.union([
|
|
|
4925
4925
|
d.number().transform((e) => new A(e)),
|
|
4926
4926
|
d.instanceof(A)
|
|
4927
4927
|
]));
|
|
4928
|
-
let
|
|
4928
|
+
let ct = A;
|
|
4929
4929
|
const ac = d.union([
|
|
4930
4930
|
d.instanceof(Uint8Array),
|
|
4931
4931
|
d.instanceof(Uint16Array),
|
|
@@ -5137,7 +5137,7 @@ class J {
|
|
|
5137
5137
|
}
|
|
5138
5138
|
/** @returns the capacity of the series in bytes. */
|
|
5139
5139
|
get byteCapacity() {
|
|
5140
|
-
return new
|
|
5140
|
+
return new ct(this.buffer.byteLength);
|
|
5141
5141
|
}
|
|
5142
5142
|
/** @returns the capacity of the series in samples. */
|
|
5143
5143
|
get capacity() {
|
|
@@ -5493,6 +5493,16 @@ class oc {
|
|
|
5493
5493
|
if (r)
|
|
5494
5494
|
throw new Error(`[series] - no value at index ${e}`);
|
|
5495
5495
|
}
|
|
5496
|
+
get byteLength() {
|
|
5497
|
+
return new ct(this.series.reduce((e, r) => e + r.byteLength.valueOf(), 0));
|
|
5498
|
+
}
|
|
5499
|
+
get data() {
|
|
5500
|
+
const e = new this.dataType.Array(this.length);
|
|
5501
|
+
let r = 0;
|
|
5502
|
+
for (const n of this.series)
|
|
5503
|
+
e.set(n.data, r), r += n.length;
|
|
5504
|
+
return new this.dataType.Array(e);
|
|
5505
|
+
}
|
|
5496
5506
|
[Symbol.iterator]() {
|
|
5497
5507
|
return this.series.length === 0 ? {
|
|
5498
5508
|
next() {
|
|
@@ -5528,11 +5538,11 @@ const cc = d.record(
|
|
|
5528
5538
|
if (t.toString === void 0)
|
|
5529
5539
|
throw new Error("invalid renderer");
|
|
5530
5540
|
return t.toString();
|
|
5531
|
-
},
|
|
5541
|
+
}, Tt = (t) => t != null && typeof t == "object" && !Array.isArray(t), Kn = () => (
|
|
5532
5542
|
// eslint-disable-next-line @typescript-eslint/prefer-optional-chain
|
|
5533
5543
|
typeof process < "u" && process.versions != null && process.versions.node != null ? "node" : typeof window > "u" || window.document === void 0 ? "webworker" : "browser"
|
|
5534
5544
|
), Oo = Kn(), Gn = ["MacOS", "Windows", "Linux", "Docker"], _o = d.enum(Gn);
|
|
5535
|
-
let
|
|
5545
|
+
let dt;
|
|
5536
5546
|
const To = () => {
|
|
5537
5547
|
if (typeof window > "u")
|
|
5538
5548
|
return;
|
|
@@ -5545,7 +5555,7 @@ const To = () => {
|
|
|
5545
5555
|
return "Linux";
|
|
5546
5556
|
}, So = (t = {}) => {
|
|
5547
5557
|
const { force: e, default: r } = t;
|
|
5548
|
-
return e ??
|
|
5558
|
+
return e ?? dt ?? (dt = To(), dt ?? r);
|
|
5549
5559
|
}, dc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5550
5560
|
__proto__: null,
|
|
5551
5561
|
OPERATING_SYSTEMS: Gn,
|
|
@@ -5597,10 +5607,10 @@ const To = () => {
|
|
|
5597
5607
|
if (e.length === 0)
|
|
5598
5608
|
return t;
|
|
5599
5609
|
const r = e.shift();
|
|
5600
|
-
if (
|
|
5610
|
+
if (Tt(t) && Tt(r))
|
|
5601
5611
|
for (const n in r)
|
|
5602
5612
|
try {
|
|
5603
|
-
|
|
5613
|
+
Tt(r[n]) ? (n in t || Object.assign(t, { [n]: {} }), lr(t[n], r[n])) : Object.assign(t, { [n]: r[n] });
|
|
5604
5614
|
} catch (s) {
|
|
5605
5615
|
throw s instanceof TypeError ? new TypeError(`.${n}: ${s.message}`) : s;
|
|
5606
5616
|
}
|
|
@@ -5812,7 +5822,7 @@ class Xn {
|
|
|
5812
5822
|
this.decoder = new TextDecoder();
|
|
5813
5823
|
}
|
|
5814
5824
|
encode(e) {
|
|
5815
|
-
const r = JSON.stringify(tt.toSnake(e), (n, s) => ArrayBuffer.isView(s) ? Array.from(s) :
|
|
5825
|
+
const r = JSON.stringify(tt.toSnake(e), (n, s) => ArrayBuffer.isView(s) ? Array.from(s) : Tt(s) && "encode_value" in s ? typeof s.value == "bigint" ? s.value.toString() : s.value : typeof s == "bigint" ? s.toString() : s);
|
|
5816
5826
|
return new TextEncoder().encode(r);
|
|
5817
5827
|
}
|
|
5818
5828
|
decode(e, r) {
|
|
@@ -5877,7 +5887,7 @@ export {
|
|
|
5877
5887
|
Ur as RoutedWorker,
|
|
5878
5888
|
xc as Search,
|
|
5879
5889
|
J as Series,
|
|
5880
|
-
|
|
5890
|
+
ct as Size,
|
|
5881
5891
|
Be as TimeRange,
|
|
5882
5892
|
Z as TimeSpan,
|
|
5883
5893
|
j as TimeStamp,
|
|
@@ -5901,7 +5911,7 @@ export {
|
|
|
5901
5911
|
uc as getEntries,
|
|
5902
5912
|
Ic as invert,
|
|
5903
5913
|
go as isCrudeSeries,
|
|
5904
|
-
|
|
5914
|
+
Tt as isObject,
|
|
5905
5915
|
Dr as isStringer,
|
|
5906
5916
|
Wn as isTelemValue,
|
|
5907
5917
|
mc as kv,
|