@milaboratories/pl-middle-layer 1.35.1 → 1.36.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/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +78 -66
- package/dist/index.mjs.map +1 -1
- package/dist/model/project_model_util.d.ts +9 -5
- package/dist/model/project_model_util.d.ts.map +1 -1
- package/dist/mutator/project.d.ts.map +1 -1
- package/package.json +9 -9
- package/src/model/project_model_util.test.ts +10 -6
- package/src/model/project_model_util.ts +49 -19
- package/src/mutator/project.ts +1 -2
package/dist/index.mjs
CHANGED
|
@@ -45,7 +45,7 @@ export * from "@milaboratories/pl-client";
|
|
|
45
45
|
import { SynchronizedTreeState as es, treeDumpStats as ao, isPlTreeNodeAccessor as co } from "@milaboratories/pl-tree";
|
|
46
46
|
import { Computable as J, ChangeSource as ir, PollComputablePool as lo, WatchableValue as uo } from "@milaboratories/computable";
|
|
47
47
|
import { randomUUID as be, createHash as Ee } from "node:crypto";
|
|
48
|
-
import { PlTemplateV1 as _, PlTemplateOverrideV1 as we, PlTemplateLibV1 as de, PlTemplateSoftwareV1 as
|
|
48
|
+
import { PlTemplateV1 as _, PlTemplateOverrideV1 as we, PlTemplateLibV1 as de, PlTemplateSoftwareV1 as ne, parseTemplate as po } from "@milaboratories/pl-model-backend";
|
|
49
49
|
import { LRUCache as ts } from "lru-cache";
|
|
50
50
|
import { Worker as fo } from "node:worker_threads";
|
|
51
51
|
import rs from "denque";
|
|
@@ -401,11 +401,11 @@ const fr = {
|
|
|
401
401
|
}
|
|
402
402
|
}, Ge = {
|
|
403
403
|
updateCacheKey(s, e, t) {
|
|
404
|
-
e.update(
|
|
404
|
+
e.update(ne.type.name).update(ne.type.version).update(s.name).update(s.version).update(Re(s.name, t, s.sourceHash));
|
|
405
405
|
},
|
|
406
406
|
render(s, e, t, r) {
|
|
407
|
-
const o =
|
|
408
|
-
return e.setKValue(n,
|
|
407
|
+
const o = ne.fromV3Data(s, Re(s.name, r, s.sourceHash)), n = e.createStruct(ne.type, o.data);
|
|
408
|
+
return e.setKValue(n, ne.metaNameKey, JSON.stringify(o.name)), e.lock(n), n;
|
|
409
409
|
}
|
|
410
410
|
}, ds = {
|
|
411
411
|
updateCacheKey(s, e, t) {
|
|
@@ -489,11 +489,11 @@ const hr = {
|
|
|
489
489
|
}
|
|
490
490
|
}, Je = {
|
|
491
491
|
hash(s, e) {
|
|
492
|
-
e.update(
|
|
492
|
+
e.update(ne.type.name).update(ne.type.version).update(s.name).update(s.version).update(s.src);
|
|
493
493
|
},
|
|
494
494
|
render(s, e, t) {
|
|
495
|
-
const r =
|
|
496
|
-
return e.setKValue(o,
|
|
495
|
+
const r = ne.fromV2Data(s), o = e.createStruct(ne.type, r.data);
|
|
496
|
+
return e.setKValue(o, ne.metaNameKey, JSON.stringify(r.name)), e.lock(o), o;
|
|
497
497
|
}
|
|
498
498
|
}, ps = {
|
|
499
499
|
hash(s, e) {
|
|
@@ -848,7 +848,7 @@ function Cn(s, e) {
|
|
|
848
848
|
const t = { upstreams: /* @__PURE__ */ new Set(), missingReferences: !1 };
|
|
849
849
|
return It(t, s, e), t;
|
|
850
850
|
}
|
|
851
|
-
function
|
|
851
|
+
function ee(s) {
|
|
852
852
|
return {
|
|
853
853
|
*[Symbol.iterator]() {
|
|
854
854
|
for (const e of s.groups) for (const t of e.blocks) yield t;
|
|
@@ -888,30 +888,42 @@ class ys {
|
|
|
888
888
|
function Ft(s) {
|
|
889
889
|
const e = /* @__PURE__ */ new Map();
|
|
890
890
|
let t;
|
|
891
|
-
for (const { id: r } of
|
|
891
|
+
for (const { id: r } of ee(s)) {
|
|
892
892
|
const o = {
|
|
893
893
|
id: r,
|
|
894
894
|
missingReferences: !1
|
|
895
895
|
};
|
|
896
|
-
e.set(r, o), t === void 0 ? o.upstream = /* @__PURE__ */ new Set() : (o.upstream = /* @__PURE__ */ new Set([t.id]), t.downstream = /* @__PURE__ */ new Set([o.id])), t = o;
|
|
896
|
+
e.set(r, o), t === void 0 ? o.directUpstream = o.upstream = /* @__PURE__ */ new Set() : (o.directUpstream = o.upstream = /* @__PURE__ */ new Set([t.id]), t.directDownstream = t.downstream = /* @__PURE__ */ new Set([o.id])), t = o;
|
|
897
897
|
}
|
|
898
|
-
return t !== void 0 && (t.downstream = /* @__PURE__ */ new Set()), new ys(e);
|
|
898
|
+
return t !== void 0 && (t.directDownstream = t.downstream = /* @__PURE__ */ new Set()), new ys(e);
|
|
899
899
|
}
|
|
900
900
|
function Ze(s, e) {
|
|
901
|
-
const t = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Set();
|
|
902
|
-
for (const { id:
|
|
903
|
-
const
|
|
904
|
-
if (
|
|
905
|
-
const
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
901
|
+
const t = /* @__PURE__ */ new Map(), r = new ys(t), o = /* @__PURE__ */ new Set();
|
|
902
|
+
for (const { id: n } of ee(s)) {
|
|
903
|
+
const i = e(n);
|
|
904
|
+
if (i === void 0) continue;
|
|
905
|
+
const a = Cn(i, o), c = r.traverseIds("directDownstream", ...a.upstreams), u = /* @__PURE__ */ new Set();
|
|
906
|
+
for (const { id: d } of ee(s)) {
|
|
907
|
+
if (d === n) break;
|
|
908
|
+
if (c.has(d)) {
|
|
909
|
+
u.add(d);
|
|
910
|
+
for (const f of r.traverseIdsExcludingRoots("upstream", d))
|
|
911
|
+
u.delete(f);
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
const l = {
|
|
915
|
+
id: n,
|
|
916
|
+
missingReferences: a.missingReferences,
|
|
917
|
+
upstream: u,
|
|
918
|
+
directUpstream: a.upstreams,
|
|
919
|
+
downstream: /* @__PURE__ */ new Set(),
|
|
920
|
+
// will be populated from downstream blocks
|
|
921
|
+
directDownstream: /* @__PURE__ */ new Set()
|
|
910
922
|
// will be populated from downstream blocks
|
|
911
923
|
};
|
|
912
|
-
t.set(
|
|
924
|
+
t.set(n, l), a.upstreams.forEach((d) => t.get(d).directDownstream.add(n)), u.forEach((d) => t.get(d).downstream.add(n)), o.add(n);
|
|
913
925
|
}
|
|
914
|
-
return
|
|
926
|
+
return r;
|
|
915
927
|
}
|
|
916
928
|
function kn(s, e) {
|
|
917
929
|
if (s.size !== e.size) return !1;
|
|
@@ -1094,7 +1106,7 @@ class st {
|
|
|
1094
1106
|
return this.createJsonFieldValueByContent(JSON.stringify(e));
|
|
1095
1107
|
}
|
|
1096
1108
|
getBlock(e) {
|
|
1097
|
-
for (const t of
|
|
1109
|
+
for (const t of ee(this.struct)) if (t.id === e) return t;
|
|
1098
1110
|
throw new Error("block not found");
|
|
1099
1111
|
}
|
|
1100
1112
|
setBlockFieldObj(e, t, r) {
|
|
@@ -1322,7 +1334,7 @@ class st {
|
|
|
1322
1334
|
throw new Error("Can't render blocks not including all upstreams.");
|
|
1323
1335
|
}
|
|
1324
1336
|
const n = /* @__PURE__ */ new Set();
|
|
1325
|
-
for (const a of
|
|
1337
|
+
for (const a of ee(this.structure)) {
|
|
1326
1338
|
if (!r.has(a.id)) continue;
|
|
1327
1339
|
let c = this.getBlockInfo(a.id).requireProductionRendering || this.blocksInLimbo.has(a.id);
|
|
1328
1340
|
if (!c) {
|
|
@@ -1460,11 +1472,11 @@ class st {
|
|
|
1460
1472
|
const M = await ws(), ge = $t(M.hash), L = d.fields.find(
|
|
1461
1473
|
(p) => p.name === ge
|
|
1462
1474
|
);
|
|
1463
|
-
let
|
|
1464
|
-
L !== void 0 ?
|
|
1475
|
+
let se;
|
|
1476
|
+
L !== void 0 ? se = Et(L.value) : (se = A.wrapInHolder(e, Vt(e, M.spec)), e.createField(
|
|
1465
1477
|
U(t, $t(M.hash)),
|
|
1466
1478
|
"Dynamic",
|
|
1467
|
-
|
|
1479
|
+
se
|
|
1468
1480
|
));
|
|
1469
1481
|
const ce = { stagingRefreshTimestamp: x }, z = new Set(T), ie = /* @__PURE__ */ new Map();
|
|
1470
1482
|
for (const p of B) {
|
|
@@ -1487,7 +1499,7 @@ class st {
|
|
|
1487
1499
|
const D = /* @__PURE__ */ new Map();
|
|
1488
1500
|
$.forEach(({ id: p, fields: m }) => D.set(p, new yr(p, m)));
|
|
1489
1501
|
const W = /* @__PURE__ */ new Set();
|
|
1490
|
-
for (const p of
|
|
1502
|
+
for (const p of ee(g)) {
|
|
1491
1503
|
if (!D.has(p.id))
|
|
1492
1504
|
throw new Error(`Inconsistent project structure: no inputs for ${p.id}`);
|
|
1493
1505
|
W.add(p.id);
|
|
@@ -1509,7 +1521,7 @@ class st {
|
|
|
1509
1521
|
z,
|
|
1510
1522
|
D,
|
|
1511
1523
|
ie,
|
|
1512
|
-
|
|
1524
|
+
se
|
|
1513
1525
|
);
|
|
1514
1526
|
return v.fixProblemsAndMigrate(), v;
|
|
1515
1527
|
}
|
|
@@ -1902,7 +1914,7 @@ class Ut {
|
|
|
1902
1914
|
}
|
|
1903
1915
|
static create(e, t, r) {
|
|
1904
1916
|
const o = e.accessor(t).node(), n = j(o.getKeyValueAsJson(he)), a = Ft(n).traverseIds("upstream", r), c = /* @__PURE__ */ new Map();
|
|
1905
|
-
for (const u of
|
|
1917
|
+
for (const u of ee(n)) {
|
|
1906
1918
|
if (!a.has(u.id)) continue;
|
|
1907
1919
|
const l = br(
|
|
1908
1920
|
o.traverse({
|
|
@@ -1954,7 +1966,7 @@ function Gt(s, e) {
|
|
|
1954
1966
|
uiState: (n) => n.accessor(s).node().getKeyValueAsString(kt(e)),
|
|
1955
1967
|
blockMeta: (n) => {
|
|
1956
1968
|
const i = n.accessor(s).node(), a = j(i.getKeyValueAsJson(he)), c = /* @__PURE__ */ new Map();
|
|
1957
|
-
for (const u of
|
|
1969
|
+
for (const u of ee(a)) c.set(u.id, u);
|
|
1958
1970
|
return c;
|
|
1959
1971
|
}
|
|
1960
1972
|
};
|
|
@@ -3208,7 +3220,7 @@ function Pi(s, e, t) {
|
|
|
3208
3220
|
const o = r.accessor(s).node(), n = j(o.getKeyValueAsJson(xt)), i = j(o.getKeyValueAsJson(Be)), a = j(o.getKeyValueAsJson(je)), c = j(o.getKeyValueAsJson(he)), u = j(
|
|
3209
3221
|
o.getKeyValueAsJson(rt)
|
|
3210
3222
|
), l = /* @__PURE__ */ new Map();
|
|
3211
|
-
for (const { id: L } of
|
|
3223
|
+
for (const { id: L } of ee(c)) {
|
|
3212
3224
|
const ce = o.traverse({
|
|
3213
3225
|
field: G(L, "currentArgs"),
|
|
3214
3226
|
assertFieldType: "Dynamic",
|
|
@@ -3241,7 +3253,7 @@ function Pi(s, e, t) {
|
|
|
3241
3253
|
}
|
|
3242
3254
|
l.set(L, { currentArguments: ce, prod: z });
|
|
3243
3255
|
}
|
|
3244
|
-
const d = Ze(c, (L) => l.get(L).currentArguments), f = new Set(u.blocksInLimbo), h = [...
|
|
3256
|
+
const d = Ze(c, (L) => l.get(L).currentArguments), f = new Set(u.blocksInLimbo), h = [...ee(c)].map(({ id: L, label: se, renderingMode: ce }) => {
|
|
3245
3257
|
var S, E, O, C, F;
|
|
3246
3258
|
const z = j(l.get(L)), ie = j(d.nodes.get(L));
|
|
3247
3259
|
let Y = "NotCalculated";
|
|
@@ -3292,8 +3304,8 @@ function Pi(s, e, t) {
|
|
|
3292
3304
|
return {
|
|
3293
3305
|
projectResourceId: Se(s.rid),
|
|
3294
3306
|
id: L,
|
|
3295
|
-
label: v ??
|
|
3296
|
-
title: v ??
|
|
3307
|
+
label: v ?? se,
|
|
3308
|
+
title: v ?? se,
|
|
3297
3309
|
renderingMode: ce,
|
|
3298
3310
|
stale: ((S = z.prod) == null ? void 0 : S.stale) !== !1 || Y === "Limbo",
|
|
3299
3311
|
missingReference: ie.missingReferences,
|
|
@@ -3426,7 +3438,7 @@ function Fi(s, e, t) {
|
|
|
3426
3438
|
function Ai(s, e) {
|
|
3427
3439
|
return J.make((t) => {
|
|
3428
3440
|
const r = t.accessor(s).node(), o = j(r.getKeyValueAsJson(he)), n = [];
|
|
3429
|
-
for (const { id: i } of
|
|
3441
|
+
for (const { id: i } of ee(o)) {
|
|
3430
3442
|
const a = it(r, i);
|
|
3431
3443
|
if (a === void 0) continue;
|
|
3432
3444
|
const c = Object.entries(a.cfg.outputs).map(([, l]) => l).filter((l) => Ci(l)).map((l) => l);
|
|
@@ -3911,9 +3923,9 @@ var Ts = {
|
|
|
3911
3923
|
rcompareIdentifiers: zi
|
|
3912
3924
|
};
|
|
3913
3925
|
const We = ct, { MAX_LENGTH: Pr, MAX_SAFE_INTEGER: qe } = at, { safeRe: Or, safeSrc: $r, t: ze } = Ve, Xi = Mt, { compareIdentifiers: me } = Ts;
|
|
3914
|
-
let Yi = class
|
|
3926
|
+
let Yi = class oe {
|
|
3915
3927
|
constructor(e, t) {
|
|
3916
|
-
if (t = Xi(t), e instanceof
|
|
3928
|
+
if (t = Xi(t), e instanceof oe) {
|
|
3917
3929
|
if (e.loose === !!t.loose && e.includePrerelease === !!t.includePrerelease)
|
|
3918
3930
|
return e;
|
|
3919
3931
|
e = e.version;
|
|
@@ -3949,18 +3961,18 @@ let Yi = class se {
|
|
|
3949
3961
|
return this.version;
|
|
3950
3962
|
}
|
|
3951
3963
|
compare(e) {
|
|
3952
|
-
if (We("SemVer.compare", this.version, this.options, e), !(e instanceof
|
|
3964
|
+
if (We("SemVer.compare", this.version, this.options, e), !(e instanceof oe)) {
|
|
3953
3965
|
if (typeof e == "string" && e === this.version)
|
|
3954
3966
|
return 0;
|
|
3955
|
-
e = new
|
|
3967
|
+
e = new oe(e, this.options);
|
|
3956
3968
|
}
|
|
3957
3969
|
return e.version === this.version ? 0 : this.compareMain(e) || this.comparePre(e);
|
|
3958
3970
|
}
|
|
3959
3971
|
compareMain(e) {
|
|
3960
|
-
return e instanceof
|
|
3972
|
+
return e instanceof oe || (e = new oe(e, this.options)), me(this.major, e.major) || me(this.minor, e.minor) || me(this.patch, e.patch);
|
|
3961
3973
|
}
|
|
3962
3974
|
comparePre(e) {
|
|
3963
|
-
if (e instanceof
|
|
3975
|
+
if (e instanceof oe || (e = new oe(e, this.options)), this.prerelease.length && !e.prerelease.length)
|
|
3964
3976
|
return -1;
|
|
3965
3977
|
if (!this.prerelease.length && e.prerelease.length)
|
|
3966
3978
|
return 1;
|
|
@@ -3981,7 +3993,7 @@ let Yi = class se {
|
|
|
3981
3993
|
} while (++t);
|
|
3982
3994
|
}
|
|
3983
3995
|
compareBuild(e) {
|
|
3984
|
-
e instanceof
|
|
3996
|
+
e instanceof oe || (e = new oe(e, this.options));
|
|
3985
3997
|
let t = 0;
|
|
3986
3998
|
do {
|
|
3987
3999
|
const r = this.build[t], o = e.build[t];
|
|
@@ -4123,10 +4135,10 @@ const ya = Ce, wa = (s, e) => {
|
|
|
4123
4135
|
};
|
|
4124
4136
|
var Sa = wa;
|
|
4125
4137
|
const Tr = q, ba = (s, e, t) => new Tr(s, t).compare(new Tr(e, t));
|
|
4126
|
-
var
|
|
4127
|
-
const Ra =
|
|
4138
|
+
var te = ba;
|
|
4139
|
+
const Ra = te, Ea = (s, e, t) => Ra(e, s, t);
|
|
4128
4140
|
var Ca = Ea;
|
|
4129
|
-
const ka =
|
|
4141
|
+
const ka = te, Pa = (s, e) => ka(s, e, !0);
|
|
4130
4142
|
var Oa = Pa;
|
|
4131
4143
|
const Lr = q, $a = (s, e, t) => {
|
|
4132
4144
|
const r = new Lr(s, t), o = new Lr(e, t);
|
|
@@ -4137,17 +4149,17 @@ const Ia = _t, Fa = (s, e) => s.sort((t, r) => Ia(t, r, e));
|
|
|
4137
4149
|
var Aa = Fa;
|
|
4138
4150
|
const Ta = _t, La = (s, e) => s.sort((t, r) => Ta(r, t, e));
|
|
4139
4151
|
var Da = La;
|
|
4140
|
-
const Na =
|
|
4152
|
+
const Na = te, Ba = (s, e, t) => Na(s, e, t) > 0;
|
|
4141
4153
|
var lt = Ba;
|
|
4142
|
-
const ja =
|
|
4154
|
+
const ja = te, xa = (s, e, t) => ja(s, e, t) < 0;
|
|
4143
4155
|
var Kt = xa;
|
|
4144
|
-
const Va =
|
|
4156
|
+
const Va = te, Ua = (s, e, t) => Va(s, e, t) === 0;
|
|
4145
4157
|
var Ls = Ua;
|
|
4146
|
-
const Ga =
|
|
4158
|
+
const Ga = te, Ja = (s, e, t) => Ga(s, e, t) !== 0;
|
|
4147
4159
|
var Ds = Ja;
|
|
4148
|
-
const Ma =
|
|
4160
|
+
const Ma = te, _a = (s, e, t) => Ma(s, e, t) >= 0;
|
|
4149
4161
|
var Ht = _a;
|
|
4150
|
-
const Ka =
|
|
4162
|
+
const Ka = te, Ha = (s, e, t) => Ka(s, e, t) <= 0;
|
|
4151
4163
|
var Wt = Ha;
|
|
4152
4164
|
const Wa = Ls, qa = Ds, za = lt, Xa = Ht, Ya = Kt, Qa = Wt, Za = (s, e, t, r) => {
|
|
4153
4165
|
switch (e) {
|
|
@@ -4220,7 +4232,7 @@ class oc {
|
|
|
4220
4232
|
}
|
|
4221
4233
|
}
|
|
4222
4234
|
var nc = oc, gt, Dr;
|
|
4223
|
-
function
|
|
4235
|
+
function re() {
|
|
4224
4236
|
if (Dr) return gt;
|
|
4225
4237
|
Dr = 1;
|
|
4226
4238
|
const s = /\s+/g;
|
|
@@ -4324,7 +4336,7 @@ function te() {
|
|
|
4324
4336
|
let C;
|
|
4325
4337
|
return $(b) ? C = "" : $(S) ? C = `>=${b}.0.0 <${+b + 1}.0.0-0` : $(E) ? C = `>=${b}.${S}.0 <${b}.${+S + 1}.0-0` : O ? (i("replaceTilde pr", O), C = `>=${b}.${S}.${E}-${O} <${b}.${+S + 1}.0-0`) : C = `>=${b}.${S}.${E} <${b}.${+S + 1}.0-0`, i("tilde return", C), C;
|
|
4326
4338
|
});
|
|
4327
|
-
}, L = (v, p) => v.trim().split(/\s+/).map((m) =>
|
|
4339
|
+
}, L = (v, p) => v.trim().split(/\s+/).map((m) => se(m, p)).join(" "), se = (v, p) => {
|
|
4328
4340
|
i("caret", v, p);
|
|
4329
4341
|
const m = p.loose ? c[u.CARETLOOSE] : c[u.CARET], y = p.includePrerelease ? "-0" : "";
|
|
4330
4342
|
return v.replace(m, (b, S, E, O, C) => {
|
|
@@ -4401,10 +4413,10 @@ function ut() {
|
|
|
4401
4413
|
}
|
|
4402
4414
|
}
|
|
4403
4415
|
mt = e;
|
|
4404
|
-
const t = Mt, { safeRe: r, t: o } = Ve, n = Ns, i = ct, a = q, c =
|
|
4416
|
+
const t = Mt, { safeRe: r, t: o } = Ve, n = Ns, i = ct, a = q, c = re();
|
|
4405
4417
|
return mt;
|
|
4406
4418
|
}
|
|
4407
|
-
const ic =
|
|
4419
|
+
const ic = re(), ac = (s, e, t) => {
|
|
4408
4420
|
try {
|
|
4409
4421
|
e = new ic(e, t);
|
|
4410
4422
|
} catch {
|
|
@@ -4413,9 +4425,9 @@ const ic = te(), ac = (s, e, t) => {
|
|
|
4413
4425
|
return e.test(s);
|
|
4414
4426
|
};
|
|
4415
4427
|
var dt = ac;
|
|
4416
|
-
const cc =
|
|
4428
|
+
const cc = re(), lc = (s, e) => new cc(s, e).set.map((t) => t.map((r) => r.value).join(" ").trim().split(" "));
|
|
4417
4429
|
var uc = lc;
|
|
4418
|
-
const dc = q, pc =
|
|
4430
|
+
const dc = q, pc = re(), fc = (s, e, t) => {
|
|
4419
4431
|
let r = null, o = null, n = null;
|
|
4420
4432
|
try {
|
|
4421
4433
|
n = new pc(e, t);
|
|
@@ -4427,7 +4439,7 @@ const dc = q, pc = te(), fc = (s, e, t) => {
|
|
|
4427
4439
|
}), r;
|
|
4428
4440
|
};
|
|
4429
4441
|
var hc = fc;
|
|
4430
|
-
const gc = q, mc =
|
|
4442
|
+
const gc = q, mc = re(), vc = (s, e, t) => {
|
|
4431
4443
|
let r = null, o = null, n = null;
|
|
4432
4444
|
try {
|
|
4433
4445
|
n = new mc(e, t);
|
|
@@ -4439,7 +4451,7 @@ const gc = q, mc = te(), vc = (s, e, t) => {
|
|
|
4439
4451
|
}), r;
|
|
4440
4452
|
};
|
|
4441
4453
|
var yc = vc;
|
|
4442
|
-
const vt = q, wc =
|
|
4454
|
+
const vt = q, wc = re(), Br = lt, Sc = (s, e) => {
|
|
4443
4455
|
s = new wc(s, e);
|
|
4444
4456
|
let t = new vt("0.0.0");
|
|
4445
4457
|
if (s.test(t) || (t = new vt("0.0.0-0"), s.test(t)))
|
|
@@ -4468,7 +4480,7 @@ const vt = q, wc = te(), Br = lt, Sc = (s, e) => {
|
|
|
4468
4480
|
return t && s.test(t) ? t : null;
|
|
4469
4481
|
};
|
|
4470
4482
|
var bc = Sc;
|
|
4471
|
-
const Rc =
|
|
4483
|
+
const Rc = re(), Ec = (s, e) => {
|
|
4472
4484
|
try {
|
|
4473
4485
|
return new Rc(s, e).range || "*";
|
|
4474
4486
|
} catch {
|
|
@@ -4476,7 +4488,7 @@ const Rc = te(), Ec = (s, e) => {
|
|
|
4476
4488
|
}
|
|
4477
4489
|
};
|
|
4478
4490
|
var Cc = Ec;
|
|
4479
|
-
const kc = q, Bs = ut(), { ANY: Pc } = Bs, Oc =
|
|
4491
|
+
const kc = q, Bs = ut(), { ANY: Pc } = Bs, Oc = re(), $c = dt, jr = lt, xr = Kt, Ic = Wt, Fc = Ht, Ac = (s, e, t, r) => {
|
|
4480
4492
|
s = new kc(s, r), e = new Oc(e, r);
|
|
4481
4493
|
let o, n, i, a, c;
|
|
4482
4494
|
switch (t) {
|
|
@@ -4508,9 +4520,9 @@ const Tc = qt, Lc = (s, e, t) => Tc(s, e, ">", t);
|
|
|
4508
4520
|
var Dc = Lc;
|
|
4509
4521
|
const Nc = qt, Bc = (s, e, t) => Nc(s, e, "<", t);
|
|
4510
4522
|
var jc = Bc;
|
|
4511
|
-
const Vr =
|
|
4523
|
+
const Vr = re(), xc = (s, e, t) => (s = new Vr(s, t), e = new Vr(e, t), s.intersects(e, t));
|
|
4512
4524
|
var Vc = xc;
|
|
4513
|
-
const Uc = dt, Gc =
|
|
4525
|
+
const Uc = dt, Gc = te;
|
|
4514
4526
|
var Jc = (s, e, t) => {
|
|
4515
4527
|
const r = [];
|
|
4516
4528
|
let o = null, n = null;
|
|
@@ -4524,7 +4536,7 @@ var Jc = (s, e, t) => {
|
|
|
4524
4536
|
const c = a.join(" || "), u = typeof e.raw == "string" ? e.raw : String(e);
|
|
4525
4537
|
return c.length < u.length ? c : e;
|
|
4526
4538
|
};
|
|
4527
|
-
const Ur =
|
|
4539
|
+
const Ur = re(), zt = ut(), { ANY: yt } = zt, Pe = dt, Xt = te, Mc = (s, e, t = {}) => {
|
|
4528
4540
|
if (s === e)
|
|
4529
4541
|
return !0;
|
|
4530
4542
|
s = new Ur(s, t), e = new Ur(e, t);
|
|
@@ -4606,7 +4618,7 @@ const Ur = te(), zt = ut(), { ANY: yt } = zt, Pe = dt, Xt = ee, Mc = (s, e, t =
|
|
|
4606
4618
|
return r < 0 ? s : r > 0 || e.operator === "<" && s.operator === "<=" ? e : s;
|
|
4607
4619
|
};
|
|
4608
4620
|
var Hc = Mc;
|
|
4609
|
-
const wt = Ve, _r = at, Wc = q, Kr = Ts, qc = Ce, zc = ta, Xc = oa, Yc = ia, Qc = ca, Zc = da, el = ha, tl = va, rl = Sa, sl =
|
|
4621
|
+
const wt = Ve, _r = at, Wc = q, Kr = Ts, qc = Ce, zc = ta, Xc = oa, Yc = ia, Qc = ca, Zc = da, el = ha, tl = va, rl = Sa, sl = te, ol = Ca, nl = Oa, il = _t, al = Aa, cl = Da, ll = lt, ul = Kt, dl = Ls, pl = Ds, fl = Ht, hl = Wt, gl = Ns, ml = sc, vl = ut(), yl = re(), wl = dt, Sl = uc, bl = hc, Rl = yc, El = bc, Cl = Cc, kl = qt, Pl = Dc, Ol = jc, $l = Vc, Il = Jc, Fl = Hc;
|
|
4610
4622
|
var Al = {
|
|
4611
4623
|
parse: qc,
|
|
4612
4624
|
valid: zc,
|