@milaboratories/milaboratories.pool-explorer.model 1.0.81 → 1.0.83
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 +9 -9
- package/CHANGELOG.md +14 -0
- package/dist/bundle.js +635 -538
- package/dist/bundle.js.map +1 -1
- package/dist/model.json +1 -1
- package/package.json +3 -3
package/dist/bundle.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
return obj;
|
|
21
21
|
};
|
|
22
22
|
util2.getValidEnumValues = (obj) => {
|
|
23
|
-
const validKeys = util2.objectKeys(obj).filter((
|
|
23
|
+
const validKeys = util2.objectKeys(obj).filter((k2) => typeof obj[obj[k2]] !== "number");
|
|
24
24
|
const filtered = {};
|
|
25
|
-
for (const
|
|
26
|
-
filtered[
|
|
25
|
+
for (const k2 of validKeys) {
|
|
26
|
+
filtered[k2] = obj[k2];
|
|
27
27
|
}
|
|
28
28
|
return util2.objectValues(filtered);
|
|
29
29
|
};
|
|
@@ -391,7 +391,7 @@
|
|
|
391
391
|
overrideMap,
|
|
392
392
|
overrideMap === errorMap ? void 0 : errorMap
|
|
393
393
|
// then global default map
|
|
394
|
-
].filter((
|
|
394
|
+
].filter((x) => !!x)
|
|
395
395
|
});
|
|
396
396
|
ctx.common.issues.push(issue);
|
|
397
397
|
}
|
|
@@ -454,10 +454,10 @@
|
|
|
454
454
|
});
|
|
455
455
|
const DIRTY = (value) => ({ status: "dirty", value });
|
|
456
456
|
const OK = (value) => ({ status: "valid", value });
|
|
457
|
-
const isAborted = (
|
|
458
|
-
const isDirty = (
|
|
459
|
-
const isValid = (
|
|
460
|
-
const isAsync = (
|
|
457
|
+
const isAborted = (x) => x.status === "aborted";
|
|
458
|
+
const isDirty = (x) => x.status === "dirty";
|
|
459
|
+
const isValid = (x) => x.status === "valid";
|
|
460
|
+
const isAsync = (x) => typeof Promise !== "undefined" && x instanceof Promise;
|
|
461
461
|
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
462
462
|
if (typeof state === "function" ? receiver !== state || true : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
463
463
|
return state.get(receiver);
|
|
@@ -2787,7 +2787,7 @@
|
|
|
2787
2787
|
if (!schema)
|
|
2788
2788
|
return null;
|
|
2789
2789
|
return schema._parse(new ParseInputLazyPath(ctx, item, ctx.path, itemIndex));
|
|
2790
|
-
}).filter((
|
|
2790
|
+
}).filter((x) => !!x);
|
|
2791
2791
|
if (ctx.common.async) {
|
|
2792
2792
|
return Promise.all(items).then((results) => {
|
|
2793
2793
|
return ParseStatus.mergeArray(status, results);
|
|
@@ -3045,7 +3045,7 @@
|
|
|
3045
3045
|
ctx.schemaErrorMap,
|
|
3046
3046
|
getErrorMap(),
|
|
3047
3047
|
errorMap
|
|
3048
|
-
].filter((
|
|
3048
|
+
].filter((x) => !!x),
|
|
3049
3049
|
issueData: {
|
|
3050
3050
|
code: ZodIssueCode.invalid_arguments,
|
|
3051
3051
|
argumentsError: error
|
|
@@ -3061,7 +3061,7 @@
|
|
|
3061
3061
|
ctx.schemaErrorMap,
|
|
3062
3062
|
getErrorMap(),
|
|
3063
3063
|
errorMap
|
|
3064
|
-
].filter((
|
|
3064
|
+
].filter((x) => !!x),
|
|
3065
3065
|
issueData: {
|
|
3066
3066
|
code: ZodIssueCode.invalid_return_type,
|
|
3067
3067
|
returnTypeError: error
|
|
@@ -3914,8 +3914,8 @@
|
|
|
3914
3914
|
quotelessJson,
|
|
3915
3915
|
ZodError
|
|
3916
3916
|
});
|
|
3917
|
-
function getDefaultExportFromCjs(
|
|
3918
|
-
return
|
|
3917
|
+
function getDefaultExportFromCjs(x) {
|
|
3918
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
3919
3919
|
}
|
|
3920
3920
|
var canonicalize;
|
|
3921
3921
|
var hasRequiredCanonicalize;
|
|
@@ -3955,20 +3955,20 @@
|
|
|
3955
3955
|
return canonicalize;
|
|
3956
3956
|
}
|
|
3957
3957
|
var canonicalizeExports = requireCanonicalize();
|
|
3958
|
-
const
|
|
3959
|
-
var
|
|
3960
|
-
var
|
|
3961
|
-
var
|
|
3958
|
+
const We = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
|
|
3959
|
+
var te = Object.defineProperty;
|
|
3960
|
+
var re = (e, n2, t) => n2 in e ? te(e, n2, { enumerable: true, configurable: true, writable: true, value: t }) : e[n2] = t;
|
|
3961
|
+
var b = (e, n2, t) => re(e, typeof n2 != "symbol" ? n2 + "" : n2, t);
|
|
3962
3962
|
z$1.object({
|
|
3963
3963
|
/** Included left border. */
|
|
3964
3964
|
from: z$1.number(),
|
|
3965
3965
|
/** Excluded right border. */
|
|
3966
3966
|
to: z$1.number()
|
|
3967
3967
|
});
|
|
3968
|
-
function
|
|
3968
|
+
function k$1(e) {
|
|
3969
3969
|
throw new Error("Unexpected object: " + e);
|
|
3970
3970
|
}
|
|
3971
|
-
function
|
|
3971
|
+
function Qe$1(e) {
|
|
3972
3972
|
if (!e || typeof e != "object")
|
|
3973
3973
|
return false;
|
|
3974
3974
|
const n2 = e;
|
|
@@ -3978,42 +3978,51 @@
|
|
|
3978
3978
|
case "Json":
|
|
3979
3979
|
return typeof n2.keyLength == "number" && n2.data !== void 0 && typeof n2.data == "object";
|
|
3980
3980
|
case "JsonPartitioned":
|
|
3981
|
-
return typeof n2.partitionKeyLength == "number" && n2.parts !== void 0 && typeof n2.parts == "object";
|
|
3982
3981
|
case "BinaryPartitioned":
|
|
3982
|
+
case "ParquetPartitioned":
|
|
3983
3983
|
return typeof n2.partitionKeyLength == "number" && n2.parts !== void 0 && typeof n2.parts == "object";
|
|
3984
3984
|
default:
|
|
3985
3985
|
return false;
|
|
3986
3986
|
}
|
|
3987
3987
|
}
|
|
3988
|
-
function
|
|
3988
|
+
function Xe$1(e, n2) {
|
|
3989
3989
|
if (e !== void 0)
|
|
3990
3990
|
switch (e.type) {
|
|
3991
3991
|
case "Json":
|
|
3992
3992
|
return e;
|
|
3993
3993
|
case "JsonPartitioned": {
|
|
3994
|
-
const
|
|
3995
|
-
for (const [
|
|
3996
|
-
r
|
|
3994
|
+
const t = {};
|
|
3995
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
3996
|
+
t[r] = n2(o);
|
|
3997
3997
|
return {
|
|
3998
3998
|
...e,
|
|
3999
|
-
parts:
|
|
3999
|
+
parts: t
|
|
4000
4000
|
};
|
|
4001
4001
|
}
|
|
4002
4002
|
case "BinaryPartitioned": {
|
|
4003
|
-
const
|
|
4004
|
-
for (const [
|
|
4005
|
-
r
|
|
4003
|
+
const t = {};
|
|
4004
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
4005
|
+
t[r] = {
|
|
4006
4006
|
index: n2(o.index),
|
|
4007
4007
|
values: n2(o.values)
|
|
4008
4008
|
};
|
|
4009
4009
|
return {
|
|
4010
4010
|
...e,
|
|
4011
|
-
parts:
|
|
4011
|
+
parts: t
|
|
4012
|
+
};
|
|
4013
|
+
}
|
|
4014
|
+
case "ParquetPartitioned": {
|
|
4015
|
+
const t = {};
|
|
4016
|
+
for (const [r, o] of Object.entries(e.parts))
|
|
4017
|
+
t[r] = n2(o);
|
|
4018
|
+
return {
|
|
4019
|
+
...e,
|
|
4020
|
+
parts: t
|
|
4012
4021
|
};
|
|
4013
4022
|
}
|
|
4014
4023
|
}
|
|
4015
4024
|
}
|
|
4016
|
-
function
|
|
4025
|
+
function ue$1(e) {
|
|
4017
4026
|
if (!e || typeof e != "object")
|
|
4018
4027
|
return false;
|
|
4019
4028
|
const n2 = e;
|
|
@@ -4023,102 +4032,180 @@
|
|
|
4023
4032
|
case "Json":
|
|
4024
4033
|
return typeof n2.keyLength == "number" && Array.isArray(n2.data);
|
|
4025
4034
|
case "JsonPartitioned":
|
|
4026
|
-
return typeof n2.partitionKeyLength == "number" && Array.isArray(n2.parts);
|
|
4027
4035
|
case "BinaryPartitioned":
|
|
4036
|
+
case "ParquetPartitioned":
|
|
4028
4037
|
return typeof n2.partitionKeyLength == "number" && Array.isArray(n2.parts);
|
|
4029
4038
|
default:
|
|
4030
4039
|
return false;
|
|
4031
4040
|
}
|
|
4032
4041
|
}
|
|
4033
|
-
function
|
|
4034
|
-
|
|
4042
|
+
function Ze$1(e) {
|
|
4043
|
+
if (!ue$1(e)) return false;
|
|
4044
|
+
switch (e.type) {
|
|
4045
|
+
case "JsonPartitioned":
|
|
4046
|
+
case "BinaryPartitioned":
|
|
4047
|
+
case "ParquetPartitioned":
|
|
4048
|
+
return true;
|
|
4049
|
+
default:
|
|
4050
|
+
return false;
|
|
4051
|
+
}
|
|
4035
4052
|
}
|
|
4036
|
-
function
|
|
4053
|
+
function en$1(e) {
|
|
4037
4054
|
switch (e.type) {
|
|
4038
|
-
case "Json":
|
|
4039
|
-
const n2 = Object.entries(e.data).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
|
|
4055
|
+
case "Json":
|
|
4040
4056
|
return {
|
|
4041
4057
|
type: "Json",
|
|
4042
4058
|
keyLength: e.keyLength,
|
|
4043
|
-
data: n2
|
|
4059
|
+
data: Object.entries(e.data).map(([n2, t]) => ({ key: JSON.parse(n2), value: t }))
|
|
4044
4060
|
};
|
|
4045
|
-
|
|
4046
|
-
case "JsonPartitioned": {
|
|
4047
|
-
const n2 = Object.entries(e.parts).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
|
|
4061
|
+
case "JsonPartitioned":
|
|
4048
4062
|
return {
|
|
4049
4063
|
type: "JsonPartitioned",
|
|
4050
4064
|
partitionKeyLength: e.partitionKeyLength,
|
|
4051
|
-
parts: n2
|
|
4065
|
+
parts: Object.entries(e.parts).map(([n2, t]) => ({ key: JSON.parse(n2), value: t }))
|
|
4052
4066
|
};
|
|
4053
|
-
|
|
4054
|
-
case "BinaryPartitioned": {
|
|
4055
|
-
const n2 = Object.entries(e.parts).map(([r, t]) => ({ key: JSON.parse(r), value: t }));
|
|
4067
|
+
case "BinaryPartitioned":
|
|
4056
4068
|
return {
|
|
4057
4069
|
type: "BinaryPartitioned",
|
|
4058
4070
|
partitionKeyLength: e.partitionKeyLength,
|
|
4059
|
-
parts: n2
|
|
4071
|
+
parts: Object.entries(e.parts).map(([n2, t]) => ({ key: JSON.parse(n2), value: t }))
|
|
4060
4072
|
};
|
|
4061
|
-
|
|
4073
|
+
case "ParquetPartitioned":
|
|
4074
|
+
return {
|
|
4075
|
+
type: "ParquetPartitioned",
|
|
4076
|
+
partitionKeyLength: e.partitionKeyLength,
|
|
4077
|
+
parts: Object.entries(e.parts).map(([n2, t]) => ({ key: JSON.parse(n2), value: t }))
|
|
4078
|
+
};
|
|
4079
|
+
default:
|
|
4080
|
+
k$1(e);
|
|
4062
4081
|
}
|
|
4063
4082
|
}
|
|
4064
|
-
function
|
|
4083
|
+
function nn(e) {
|
|
4065
4084
|
switch (e.type) {
|
|
4066
|
-
case "Json":
|
|
4067
|
-
const n2 = {};
|
|
4068
|
-
for (const r of e.data)
|
|
4069
|
-
n2[JSON.stringify(r.key)] = r.value;
|
|
4085
|
+
case "Json":
|
|
4070
4086
|
return {
|
|
4071
4087
|
type: "Json",
|
|
4072
4088
|
keyLength: e.keyLength,
|
|
4073
|
-
data:
|
|
4089
|
+
data: Object.fromEntries(
|
|
4090
|
+
e.data.map(({ key: n2, value: t }) => [JSON.stringify(n2), t])
|
|
4091
|
+
)
|
|
4074
4092
|
};
|
|
4075
|
-
|
|
4076
|
-
case "JsonPartitioned": {
|
|
4077
|
-
const n2 = {};
|
|
4078
|
-
for (const r of e.parts)
|
|
4079
|
-
n2[JSON.stringify(r.key)] = r.value;
|
|
4093
|
+
case "JsonPartitioned":
|
|
4080
4094
|
return {
|
|
4081
4095
|
type: "JsonPartitioned",
|
|
4082
4096
|
partitionKeyLength: e.partitionKeyLength,
|
|
4083
|
-
parts:
|
|
4097
|
+
parts: Object.fromEntries(
|
|
4098
|
+
e.parts.map(({ key: n2, value: t }) => [JSON.stringify(n2), t])
|
|
4099
|
+
)
|
|
4084
4100
|
};
|
|
4085
|
-
|
|
4086
|
-
case "BinaryPartitioned": {
|
|
4087
|
-
const n2 = {};
|
|
4088
|
-
for (const r of e.parts)
|
|
4089
|
-
n2[JSON.stringify(r.key)] = r.value;
|
|
4101
|
+
case "BinaryPartitioned":
|
|
4090
4102
|
return {
|
|
4091
4103
|
type: "BinaryPartitioned",
|
|
4092
4104
|
partitionKeyLength: e.partitionKeyLength,
|
|
4093
|
-
parts:
|
|
4105
|
+
parts: Object.fromEntries(
|
|
4106
|
+
e.parts.map(({ key: n2, value: t }) => [JSON.stringify(n2), t])
|
|
4107
|
+
)
|
|
4094
4108
|
};
|
|
4095
|
-
|
|
4109
|
+
case "ParquetPartitioned":
|
|
4110
|
+
return {
|
|
4111
|
+
type: "ParquetPartitioned",
|
|
4112
|
+
partitionKeyLength: e.partitionKeyLength,
|
|
4113
|
+
parts: Object.fromEntries(
|
|
4114
|
+
e.parts.map(({ key: n2, value: t }) => [JSON.stringify(n2), t])
|
|
4115
|
+
)
|
|
4116
|
+
};
|
|
4117
|
+
default:
|
|
4118
|
+
k$1(e);
|
|
4096
4119
|
}
|
|
4097
4120
|
}
|
|
4098
|
-
function
|
|
4099
|
-
|
|
4100
|
-
return t && Object.entries(t).length > 0 && Object.assign(o, { domain: t }), o;
|
|
4121
|
+
function m$1(e) {
|
|
4122
|
+
return We(e);
|
|
4101
4123
|
}
|
|
4102
|
-
function
|
|
4103
|
-
return
|
|
4124
|
+
function me$1(e) {
|
|
4125
|
+
return JSON.parse(e);
|
|
4104
4126
|
}
|
|
4105
|
-
|
|
4106
|
-
|
|
4127
|
+
const g = {
|
|
4128
|
+
Int: "Int",
|
|
4129
|
+
Long: "Long",
|
|
4130
|
+
Float: "Float",
|
|
4131
|
+
Double: "Double",
|
|
4132
|
+
String: "String",
|
|
4133
|
+
Bytes: "Bytes"
|
|
4134
|
+
};
|
|
4135
|
+
function I(e, n2) {
|
|
4136
|
+
return e == null ? void 0 : e[n2];
|
|
4107
4137
|
}
|
|
4108
|
-
|
|
4138
|
+
const y = {
|
|
4139
|
+
DiscreteValues: "pl7.app/discreteValues",
|
|
4140
|
+
Graph: {
|
|
4141
|
+
IsVirtual: "pl7.app/graph/isVirtual"
|
|
4142
|
+
},
|
|
4143
|
+
HideDataFromUi: "pl7.app/hideDataFromUi",
|
|
4144
|
+
IsLinkerColumn: "pl7.app/isLinkerColumn",
|
|
4145
|
+
Label: "pl7.app/label",
|
|
4146
|
+
Max: "pl7.app/max",
|
|
4147
|
+
Min: "pl7.app/min",
|
|
4148
|
+
Parents: "pl7.app/parents",
|
|
4149
|
+
Sequence: {
|
|
4150
|
+
Annotation: {
|
|
4151
|
+
Mapping: "pl7.app/sequence/annotation/mapping"
|
|
4152
|
+
},
|
|
4153
|
+
IsAnnotation: "pl7.app/sequence/isAnnotation"
|
|
4154
|
+
},
|
|
4155
|
+
Table: {
|
|
4156
|
+
OrderPriority: "pl7.app/table/orderPriority"
|
|
4157
|
+
},
|
|
4158
|
+
Trace: "pl7.app/trace"
|
|
4159
|
+
}, he = z$1.object({
|
|
4160
|
+
type: z$1.nativeEnum(g),
|
|
4161
|
+
name: z$1.string(),
|
|
4162
|
+
domain: z$1.record(z$1.string(), z$1.string()).optional(),
|
|
4163
|
+
annotations: z$1.record(z$1.string(), z$1.string()).optional(),
|
|
4164
|
+
parentAxes: z$1.array(z$1.number()).optional()
|
|
4165
|
+
}).passthrough();
|
|
4166
|
+
({
|
|
4167
|
+
[y.DiscreteValues]: z$1.array(z$1.string()).or(z$1.array(z$1.number())),
|
|
4168
|
+
[y.Graph.IsVirtual]: z$1.boolean(),
|
|
4169
|
+
[y.HideDataFromUi]: z$1.boolean(),
|
|
4170
|
+
[y.IsLinkerColumn]: z$1.boolean(),
|
|
4171
|
+
[y.Max]: z$1.number(),
|
|
4172
|
+
[y.Min]: z$1.number(),
|
|
4173
|
+
[y.Parents]: z$1.array(he),
|
|
4174
|
+
[y.Sequence.Annotation.Mapping]: z$1.record(z$1.string(), z$1.string()),
|
|
4175
|
+
[y.Sequence.IsAnnotation]: z$1.boolean(),
|
|
4176
|
+
[y.Table.OrderPriority]: z$1.number(),
|
|
4177
|
+
[y.Trace]: z$1.record(z$1.string(), z$1.unknown())
|
|
4178
|
+
});
|
|
4179
|
+
function wn(e, n2) {
|
|
4180
|
+
return I(e == null ? void 0 : e.annotations, n2);
|
|
4181
|
+
}
|
|
4182
|
+
const Pn = {
|
|
4183
|
+
Label: "pl7.app/label"
|
|
4184
|
+
};
|
|
4185
|
+
function p$1(e) {
|
|
4186
|
+
const { type: n2, name: t, domain: r } = e, o = { type: n2, name: t };
|
|
4187
|
+
return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
|
|
4188
|
+
}
|
|
4189
|
+
function _(e) {
|
|
4190
|
+
return e.map(p$1);
|
|
4191
|
+
}
|
|
4192
|
+
function On(e) {
|
|
4193
|
+
return m$1(p$1(e));
|
|
4194
|
+
}
|
|
4195
|
+
function Ae$1(e, n2) {
|
|
4109
4196
|
if (e === void 0) return n2 === void 0;
|
|
4110
4197
|
if (n2 === void 0) return true;
|
|
4111
|
-
for (const
|
|
4112
|
-
if (e[
|
|
4198
|
+
for (const t in n2)
|
|
4199
|
+
if (e[t] !== n2[t]) return false;
|
|
4113
4200
|
return true;
|
|
4114
4201
|
}
|
|
4115
|
-
function
|
|
4116
|
-
return e.name === n2.name &&
|
|
4202
|
+
function we(e, n2) {
|
|
4203
|
+
return e.name === n2.name && Ae$1(e.domain, n2.domain);
|
|
4117
4204
|
}
|
|
4118
|
-
function
|
|
4119
|
-
return { ...e, src:
|
|
4205
|
+
function In(e, n2) {
|
|
4206
|
+
return { ...e, src: E(e.src, n2) };
|
|
4120
4207
|
}
|
|
4121
|
-
function
|
|
4208
|
+
function E(e, n2) {
|
|
4122
4209
|
switch (e.type) {
|
|
4123
4210
|
case "column":
|
|
4124
4211
|
return {
|
|
@@ -4138,51 +4225,51 @@
|
|
|
4138
4225
|
case "full":
|
|
4139
4226
|
return {
|
|
4140
4227
|
type: e.type,
|
|
4141
|
-
entries: e.entries.map((
|
|
4228
|
+
entries: e.entries.map((t) => E(t, n2))
|
|
4142
4229
|
};
|
|
4143
4230
|
case "outer":
|
|
4144
4231
|
return {
|
|
4145
4232
|
type: "outer",
|
|
4146
|
-
primary:
|
|
4147
|
-
secondary: e.secondary.map((
|
|
4233
|
+
primary: E(e.primary, n2),
|
|
4234
|
+
secondary: e.secondary.map((t) => E(t, n2))
|
|
4148
4235
|
};
|
|
4149
4236
|
default:
|
|
4150
|
-
|
|
4237
|
+
k$1(e);
|
|
4151
4238
|
}
|
|
4152
4239
|
}
|
|
4153
|
-
function
|
|
4154
|
-
return
|
|
4240
|
+
function Se$1(e) {
|
|
4241
|
+
return We(e);
|
|
4155
4242
|
}
|
|
4156
|
-
function
|
|
4157
|
-
return
|
|
4243
|
+
function N(e) {
|
|
4244
|
+
return We(p$1(e));
|
|
4158
4245
|
}
|
|
4159
|
-
function
|
|
4246
|
+
function R(e, n2) {
|
|
4160
4247
|
return JSON.stringify([e, n2]);
|
|
4161
4248
|
}
|
|
4162
|
-
class
|
|
4249
|
+
class Nn {
|
|
4163
4250
|
/**
|
|
4164
4251
|
* Creates a new anchor context from a set of anchor column specifications
|
|
4165
4252
|
* @param anchors Record of anchor column specifications indexed by anchor ID
|
|
4166
4253
|
*/
|
|
4167
4254
|
constructor(n2) {
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4255
|
+
b(this, "domains", /* @__PURE__ */ new Map());
|
|
4256
|
+
b(this, "axes", /* @__PURE__ */ new Map());
|
|
4257
|
+
b(this, "domainPacks", []);
|
|
4258
|
+
b(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
|
|
4172
4259
|
this.anchors = n2;
|
|
4173
|
-
const
|
|
4174
|
-
|
|
4175
|
-
for (const [
|
|
4260
|
+
const t = Object.entries(n2);
|
|
4261
|
+
t.sort((r, o) => r[0].localeCompare(o[0]));
|
|
4262
|
+
for (const [r, o] of t) {
|
|
4176
4263
|
for (let i = 0; i < o.axesSpec.length; i++) {
|
|
4177
|
-
const
|
|
4178
|
-
this.axes.set(
|
|
4264
|
+
const a = o.axesSpec[i], s2 = N(a);
|
|
4265
|
+
this.axes.set(s2, { anchor: r, idx: i });
|
|
4179
4266
|
}
|
|
4180
4267
|
if (o.domain !== void 0) {
|
|
4181
4268
|
const i = Object.entries(o.domain);
|
|
4182
|
-
i.sort((
|
|
4183
|
-
for (const [
|
|
4184
|
-
const u2 =
|
|
4185
|
-
this.domains.set(u2,
|
|
4269
|
+
i.sort((a, s2) => a[0].localeCompare(s2[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
|
|
4270
|
+
for (const [a, s2] of i) {
|
|
4271
|
+
const u2 = R(a, s2);
|
|
4272
|
+
this.domains.set(u2, r);
|
|
4186
4273
|
}
|
|
4187
4274
|
}
|
|
4188
4275
|
}
|
|
@@ -4190,56 +4277,56 @@
|
|
|
4190
4277
|
/**
|
|
4191
4278
|
* Implementation of derive method
|
|
4192
4279
|
*/
|
|
4193
|
-
derive(n2,
|
|
4194
|
-
const
|
|
4280
|
+
derive(n2, t) {
|
|
4281
|
+
const r = {
|
|
4195
4282
|
name: n2.name,
|
|
4196
4283
|
axes: []
|
|
4197
4284
|
};
|
|
4198
4285
|
let o;
|
|
4199
4286
|
if (n2.domain !== void 0)
|
|
4200
4287
|
e:
|
|
4201
|
-
for (const
|
|
4202
|
-
const
|
|
4203
|
-
for (const c2 of
|
|
4204
|
-
const
|
|
4205
|
-
if (
|
|
4206
|
-
|
|
4288
|
+
for (const a of this.domainPacks) {
|
|
4289
|
+
const s2 = [];
|
|
4290
|
+
for (const c2 of a) {
|
|
4291
|
+
const d = n2.domain[c2];
|
|
4292
|
+
if (d !== void 0)
|
|
4293
|
+
s2.push([c2, d]);
|
|
4207
4294
|
else
|
|
4208
4295
|
break e;
|
|
4209
4296
|
}
|
|
4210
|
-
const u2 = this.domainPackToAnchor.get(JSON.stringify(
|
|
4297
|
+
const u2 = this.domainPackToAnchor.get(JSON.stringify(s2));
|
|
4211
4298
|
if (u2 !== void 0) {
|
|
4212
|
-
|
|
4299
|
+
r.domainAnchor = u2, o = new Set(a);
|
|
4213
4300
|
break;
|
|
4214
4301
|
}
|
|
4215
4302
|
}
|
|
4216
|
-
for (const [
|
|
4217
|
-
if (o !== void 0 && o.has(
|
|
4303
|
+
for (const [a, s2] of Object.entries(n2.domain ?? {})) {
|
|
4304
|
+
if (o !== void 0 && o.has(a))
|
|
4218
4305
|
continue;
|
|
4219
|
-
const u2 =
|
|
4220
|
-
|
|
4221
|
-
}
|
|
4222
|
-
if (
|
|
4223
|
-
const
|
|
4224
|
-
return u2 === void 0 ?
|
|
4225
|
-
}), !
|
|
4226
|
-
return
|
|
4306
|
+
const u2 = R(a, s2), c2 = this.domains.get(u2);
|
|
4307
|
+
r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : s2;
|
|
4308
|
+
}
|
|
4309
|
+
if (r.axes = n2.axesSpec.map((a) => {
|
|
4310
|
+
const s2 = N(a), u2 = this.axes.get(s2);
|
|
4311
|
+
return u2 === void 0 ? p$1(a) : u2;
|
|
4312
|
+
}), !t || t.length === 0)
|
|
4313
|
+
return r;
|
|
4227
4314
|
const i = [];
|
|
4228
|
-
for (const
|
|
4229
|
-
const [
|
|
4230
|
-
if (typeof
|
|
4231
|
-
if (
|
|
4232
|
-
throw new Error(`Axis index ${
|
|
4233
|
-
i.push([
|
|
4315
|
+
for (const a of t) {
|
|
4316
|
+
const [s2, u2] = a;
|
|
4317
|
+
if (typeof s2 == "number") {
|
|
4318
|
+
if (s2 < 0 || s2 >= n2.axesSpec.length)
|
|
4319
|
+
throw new Error(`Axis index ${s2} is out of bounds (0-${n2.axesSpec.length - 1})`);
|
|
4320
|
+
i.push([s2, u2]);
|
|
4234
4321
|
} else {
|
|
4235
|
-
const c2 = n2.axesSpec.findIndex((
|
|
4322
|
+
const c2 = n2.axesSpec.findIndex((d) => d.name === s2);
|
|
4236
4323
|
if (c2 === -1)
|
|
4237
|
-
throw new Error(`Axis with name "${
|
|
4324
|
+
throw new Error(`Axis with name "${s2}" not found in the column specification`);
|
|
4238
4325
|
i.push([c2, u2]);
|
|
4239
4326
|
}
|
|
4240
4327
|
}
|
|
4241
|
-
return i.sort((
|
|
4242
|
-
source:
|
|
4328
|
+
return i.sort((a, s2) => a[0] - s2[0]), {
|
|
4329
|
+
source: r,
|
|
4243
4330
|
axisFilters: i
|
|
4244
4331
|
};
|
|
4245
4332
|
}
|
|
@@ -4249,111 +4336,111 @@
|
|
|
4249
4336
|
* @param axisFilters Optional axis filters to apply to the column
|
|
4250
4337
|
* @returns A canonicalized string representation of the anchored column identifier
|
|
4251
4338
|
*/
|
|
4252
|
-
deriveS(n2,
|
|
4253
|
-
return
|
|
4339
|
+
deriveS(n2, t) {
|
|
4340
|
+
return Se$1(this.derive(n2, t));
|
|
4254
4341
|
}
|
|
4255
4342
|
}
|
|
4256
|
-
function
|
|
4257
|
-
const
|
|
4258
|
-
if (
|
|
4259
|
-
const i = e[
|
|
4343
|
+
function Rn(e, n2, t) {
|
|
4344
|
+
const r = { ...n2 }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
|
|
4345
|
+
if (r.domainAnchor !== void 0) {
|
|
4346
|
+
const i = e[r.domainAnchor];
|
|
4260
4347
|
if (!i)
|
|
4261
|
-
throw new Error(`Anchor "${
|
|
4262
|
-
const
|
|
4263
|
-
|
|
4348
|
+
throw new Error(`Anchor "${r.domainAnchor}" not found`);
|
|
4349
|
+
const a = i.domain || {};
|
|
4350
|
+
r.domain = { ...a, ...r.domain }, delete r.domainAnchor;
|
|
4264
4351
|
}
|
|
4265
|
-
if (
|
|
4352
|
+
if (r.domain) {
|
|
4266
4353
|
const i = {};
|
|
4267
|
-
for (const [
|
|
4268
|
-
if (typeof
|
|
4269
|
-
i[
|
|
4354
|
+
for (const [a, s2] of Object.entries(r.domain))
|
|
4355
|
+
if (typeof s2 == "string")
|
|
4356
|
+
i[a] = s2;
|
|
4270
4357
|
else {
|
|
4271
|
-
const u2 = e[
|
|
4358
|
+
const u2 = e[s2.anchor];
|
|
4272
4359
|
if (!u2)
|
|
4273
|
-
throw new Error(`Anchor "${
|
|
4274
|
-
if (!u2.domain || u2.domain[
|
|
4360
|
+
throw new Error(`Anchor "${s2.anchor}" not found for domain key "${a}"`);
|
|
4361
|
+
if (!u2.domain || u2.domain[a] === void 0) {
|
|
4275
4362
|
if (!o)
|
|
4276
|
-
throw new Error(`Domain key "${
|
|
4363
|
+
throw new Error(`Domain key "${a}" not found in anchor "${s2.anchor}"`);
|
|
4277
4364
|
continue;
|
|
4278
4365
|
}
|
|
4279
|
-
i[
|
|
4366
|
+
i[a] = u2.domain[a];
|
|
4280
4367
|
}
|
|
4281
|
-
|
|
4368
|
+
r.domain = i;
|
|
4282
4369
|
}
|
|
4283
|
-
return
|
|
4370
|
+
return r.axes && (r.axes = r.axes.map((i) => Ee(e, i))), r;
|
|
4284
4371
|
}
|
|
4285
|
-
function
|
|
4286
|
-
if (!
|
|
4372
|
+
function Ee(e, n2) {
|
|
4373
|
+
if (!Oe$1(n2))
|
|
4287
4374
|
return n2;
|
|
4288
|
-
const
|
|
4289
|
-
if (!
|
|
4290
|
-
throw new Error(`Anchor "${
|
|
4375
|
+
const t = n2.anchor, r = e[t];
|
|
4376
|
+
if (!r)
|
|
4377
|
+
throw new Error(`Anchor "${t}" not found for axis reference`);
|
|
4291
4378
|
if ("idx" in n2) {
|
|
4292
|
-
if (n2.idx < 0 || n2.idx >=
|
|
4293
|
-
throw new Error(`Axis index ${n2.idx} out of bounds for anchor "${
|
|
4294
|
-
return
|
|
4379
|
+
if (n2.idx < 0 || n2.idx >= r.axesSpec.length)
|
|
4380
|
+
throw new Error(`Axis index ${n2.idx} out of bounds for anchor "${t}"`);
|
|
4381
|
+
return r.axesSpec[n2.idx];
|
|
4295
4382
|
} else if ("name" in n2) {
|
|
4296
|
-
const o =
|
|
4383
|
+
const o = r.axesSpec.filter((i) => i.name === n2.name);
|
|
4297
4384
|
if (o.length > 1)
|
|
4298
|
-
throw new Error(`Multiple axes with name "${n2.name}" found in anchor "${
|
|
4385
|
+
throw new Error(`Multiple axes with name "${n2.name}" found in anchor "${t}"`);
|
|
4299
4386
|
if (o.length === 0)
|
|
4300
|
-
throw new Error(`Axis with name "${n2.name}" not found in anchor "${
|
|
4387
|
+
throw new Error(`Axis with name "${n2.name}" not found in anchor "${t}"`);
|
|
4301
4388
|
return o[0];
|
|
4302
4389
|
} else if ("id" in n2) {
|
|
4303
|
-
const o =
|
|
4390
|
+
const o = r.axesSpec.filter((i) => we(n2.id, p$1(i)));
|
|
4304
4391
|
if (o.length > 1)
|
|
4305
|
-
throw new Error(`Multiple matching axes found for matcher in anchor "${
|
|
4392
|
+
throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
|
|
4306
4393
|
if (o.length === 0)
|
|
4307
|
-
throw new Error(`No matching axis found for matcher in anchor "${
|
|
4394
|
+
throw new Error(`No matching axis found for matcher in anchor "${t}"`);
|
|
4308
4395
|
return o[0];
|
|
4309
4396
|
}
|
|
4310
4397
|
throw new Error("Unsupported axis reference type");
|
|
4311
4398
|
}
|
|
4312
|
-
function
|
|
4399
|
+
function Oe$1(e) {
|
|
4313
4400
|
return typeof e == "object" && "anchor" in e;
|
|
4314
4401
|
}
|
|
4315
|
-
function
|
|
4402
|
+
function w$1(e) {
|
|
4316
4403
|
return e.kind === "PColumn";
|
|
4317
4404
|
}
|
|
4318
|
-
function
|
|
4319
|
-
return
|
|
4405
|
+
function Fe(e) {
|
|
4406
|
+
return w$1(e.spec);
|
|
4320
4407
|
}
|
|
4321
|
-
function
|
|
4322
|
-
if (!
|
|
4408
|
+
function Vn(e) {
|
|
4409
|
+
if (!Fe(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
|
|
4323
4410
|
return e;
|
|
4324
4411
|
}
|
|
4325
|
-
function
|
|
4412
|
+
function Bn(e, n2) {
|
|
4326
4413
|
return e === void 0 ? void 0 : {
|
|
4327
4414
|
...e,
|
|
4328
4415
|
data: n2(e.data)
|
|
4329
4416
|
};
|
|
4330
4417
|
}
|
|
4331
|
-
function
|
|
4332
|
-
const n2 = /* @__PURE__ */ new Map(),
|
|
4333
|
-
switch (
|
|
4418
|
+
function Mn(e) {
|
|
4419
|
+
const n2 = /* @__PURE__ */ new Map(), t = (r) => {
|
|
4420
|
+
switch (r.type) {
|
|
4334
4421
|
case "column":
|
|
4335
|
-
n2.set(
|
|
4422
|
+
n2.set(r.column.id, r.column);
|
|
4336
4423
|
return;
|
|
4337
4424
|
case "slicedColumn":
|
|
4338
|
-
n2.set(
|
|
4425
|
+
n2.set(r.column.id, r.column);
|
|
4339
4426
|
return;
|
|
4340
4427
|
case "inlineColumn":
|
|
4341
4428
|
return;
|
|
4342
4429
|
case "full":
|
|
4343
4430
|
case "inner":
|
|
4344
|
-
for (const o of
|
|
4431
|
+
for (const o of r.entries) t(o);
|
|
4345
4432
|
return;
|
|
4346
4433
|
case "outer":
|
|
4347
|
-
r
|
|
4348
|
-
for (const o of
|
|
4434
|
+
t(r.primary);
|
|
4435
|
+
for (const o of r.secondary) t(o);
|
|
4349
4436
|
return;
|
|
4350
4437
|
default:
|
|
4351
|
-
|
|
4438
|
+
k$1(r);
|
|
4352
4439
|
}
|
|
4353
4440
|
};
|
|
4354
|
-
return
|
|
4441
|
+
return t(e), [...n2.values()];
|
|
4355
4442
|
}
|
|
4356
|
-
function
|
|
4443
|
+
function T(e, n2) {
|
|
4357
4444
|
if (e.name !== void 0 && e.name !== n2.name)
|
|
4358
4445
|
return false;
|
|
4359
4446
|
if (e.type !== void 0) {
|
|
@@ -4364,14 +4451,14 @@
|
|
|
4364
4451
|
return false;
|
|
4365
4452
|
}
|
|
4366
4453
|
if (e.domain !== void 0) {
|
|
4367
|
-
const
|
|
4368
|
-
for (const [
|
|
4369
|
-
if (r
|
|
4454
|
+
const t = n2.domain || {};
|
|
4455
|
+
for (const [r, o] of Object.entries(e.domain))
|
|
4456
|
+
if (t[r] !== o)
|
|
4370
4457
|
return false;
|
|
4371
4458
|
}
|
|
4372
4459
|
return true;
|
|
4373
4460
|
}
|
|
4374
|
-
function
|
|
4461
|
+
function $$1(e, n2) {
|
|
4375
4462
|
if (n2.name !== void 0 && e.name !== n2.name || n2.namePattern !== void 0 && !new RegExp(n2.namePattern).test(e.name))
|
|
4376
4463
|
return false;
|
|
4377
4464
|
if (n2.type !== void 0) {
|
|
@@ -4382,50 +4469,50 @@
|
|
|
4382
4469
|
return false;
|
|
4383
4470
|
}
|
|
4384
4471
|
if (n2.domain !== void 0) {
|
|
4385
|
-
const
|
|
4386
|
-
for (const [
|
|
4387
|
-
if (r
|
|
4472
|
+
const t = e.domain || {};
|
|
4473
|
+
for (const [r, o] of Object.entries(n2.domain))
|
|
4474
|
+
if (t[r] !== o)
|
|
4388
4475
|
return false;
|
|
4389
4476
|
}
|
|
4390
4477
|
if (n2.axes !== void 0) {
|
|
4391
|
-
const
|
|
4478
|
+
const t = e.axesSpec.map(p$1);
|
|
4392
4479
|
if (n2.partialAxesMatch) {
|
|
4393
|
-
for (const
|
|
4394
|
-
if (!
|
|
4480
|
+
for (const r of n2.axes)
|
|
4481
|
+
if (!t.some((o) => T(r, o)))
|
|
4395
4482
|
return false;
|
|
4396
4483
|
} else {
|
|
4397
|
-
if (
|
|
4484
|
+
if (t.length !== n2.axes.length)
|
|
4398
4485
|
return false;
|
|
4399
|
-
for (let
|
|
4400
|
-
if (!
|
|
4486
|
+
for (let r = 0; r < n2.axes.length; r++)
|
|
4487
|
+
if (!T(n2.axes[r], t[r]))
|
|
4401
4488
|
return false;
|
|
4402
4489
|
}
|
|
4403
4490
|
}
|
|
4404
4491
|
if (n2.annotations !== void 0) {
|
|
4405
|
-
const
|
|
4406
|
-
for (const [
|
|
4407
|
-
if (r
|
|
4492
|
+
const t = e.annotations || {};
|
|
4493
|
+
for (const [r, o] of Object.entries(n2.annotations))
|
|
4494
|
+
if (t[r] !== o)
|
|
4408
4495
|
return false;
|
|
4409
4496
|
}
|
|
4410
4497
|
if (n2.annotationPatterns !== void 0) {
|
|
4411
|
-
const
|
|
4412
|
-
for (const [
|
|
4413
|
-
const i = r
|
|
4498
|
+
const t = e.annotations || {};
|
|
4499
|
+
for (const [r, o] of Object.entries(n2.annotationPatterns)) {
|
|
4500
|
+
const i = t[r];
|
|
4414
4501
|
if (i === void 0 || !new RegExp(o).test(i))
|
|
4415
4502
|
return false;
|
|
4416
4503
|
}
|
|
4417
4504
|
}
|
|
4418
4505
|
return true;
|
|
4419
4506
|
}
|
|
4420
|
-
function
|
|
4421
|
-
return Array.isArray(e) ? (n2) => e.some((
|
|
4507
|
+
function Un(e) {
|
|
4508
|
+
return Array.isArray(e) ? (n2) => e.some((t) => w$1(n2) && $$1(n2, t)) : (n2) => w$1(n2) && $$1(n2, e);
|
|
4422
4509
|
}
|
|
4423
|
-
function
|
|
4510
|
+
function qn(e) {
|
|
4424
4511
|
const n2 = {
|
|
4425
4512
|
kind: e.kind,
|
|
4426
4513
|
name: e.name
|
|
4427
4514
|
};
|
|
4428
|
-
return e.domain !== void 0 && (n2.domain = e.domain),
|
|
4515
|
+
return e.domain !== void 0 && (n2.domain = e.domain), w$1(e) && (n2.axesSpec = _(e.axesSpec)), We(n2);
|
|
4429
4516
|
}
|
|
4430
4517
|
z$1.object({
|
|
4431
4518
|
__isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
|
|
@@ -4435,25 +4522,25 @@
|
|
|
4435
4522
|
}).describe(
|
|
4436
4523
|
"Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees."
|
|
4437
4524
|
).readonly();
|
|
4438
|
-
function
|
|
4525
|
+
function Hn(e) {
|
|
4439
4526
|
return typeof e == "object" && e !== null && "__isRef" in e && e.__isRef === true && "blockId" in e && "name" in e;
|
|
4440
4527
|
}
|
|
4441
|
-
function
|
|
4528
|
+
function _n(e, n2 = true) {
|
|
4442
4529
|
if (n2)
|
|
4443
4530
|
return {
|
|
4444
4531
|
...e,
|
|
4445
4532
|
requireEnrichments: true
|
|
4446
4533
|
};
|
|
4447
4534
|
{
|
|
4448
|
-
const { requireEnrichments:
|
|
4449
|
-
return
|
|
4535
|
+
const { requireEnrichments: t, ...r } = e;
|
|
4536
|
+
return r;
|
|
4450
4537
|
}
|
|
4451
4538
|
}
|
|
4452
|
-
function
|
|
4539
|
+
function Xn(e, n2) {
|
|
4453
4540
|
return e.ok ? { ok: true, value: n2(e.value) } : e;
|
|
4454
4541
|
}
|
|
4455
|
-
const
|
|
4456
|
-
z$1.string().length(
|
|
4542
|
+
const De$1 = 24;
|
|
4543
|
+
z$1.string().length(De$1).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
|
|
4457
4544
|
var stringify = { exports: {} };
|
|
4458
4545
|
var hasRequiredStringify;
|
|
4459
4546
|
function requireStringify() {
|
|
@@ -4513,46 +4600,46 @@
|
|
|
4513
4600
|
cause: z$1.lazy(() => n).optional(),
|
|
4514
4601
|
errors: z$1.lazy(() => n.array()).optional()
|
|
4515
4602
|
});
|
|
4516
|
-
var
|
|
4517
|
-
var
|
|
4518
|
-
var V = (t, e, n2) =>
|
|
4603
|
+
var at = Object.defineProperty;
|
|
4604
|
+
var lt = (t, e, n2) => e in t ? at(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
|
|
4605
|
+
var V = (t, e, n2) => lt(t, typeof e != "symbol" ? e + "" : e, n2);
|
|
4519
4606
|
function se(t) {
|
|
4520
4607
|
return { type: "Immediate", value: t };
|
|
4521
4608
|
}
|
|
4522
|
-
function
|
|
4609
|
+
function Vt() {
|
|
4523
4610
|
return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
|
|
4524
4611
|
}
|
|
4525
|
-
function
|
|
4612
|
+
function He(t) {
|
|
4526
4613
|
if (t && typeof globalThis.getPlatforma == "function")
|
|
4527
4614
|
return globalThis.getPlatforma(t);
|
|
4528
4615
|
if (typeof globalThis.platforma < "u") return globalThis.platforma;
|
|
4529
4616
|
throw new Error("Can't get platforma instance.");
|
|
4530
4617
|
}
|
|
4531
|
-
function
|
|
4618
|
+
function kt() {
|
|
4532
4619
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4533
4620
|
}
|
|
4534
|
-
function
|
|
4621
|
+
function v() {
|
|
4535
4622
|
if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
|
|
4536
4623
|
throw new Error("Not in config rendering context");
|
|
4537
4624
|
}
|
|
4538
4625
|
function G(t, e) {
|
|
4539
|
-
const n2 =
|
|
4626
|
+
const n2 = kt();
|
|
4540
4627
|
if (n2 === void 0) return false;
|
|
4541
4628
|
if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
|
|
4542
4629
|
return n2.callbackRegistry[t] = e, true;
|
|
4543
4630
|
}
|
|
4544
|
-
const
|
|
4545
|
-
function
|
|
4546
|
-
t in
|
|
4547
|
-
for (const r of
|
|
4631
|
+
const me = /* @__PURE__ */ new Map();
|
|
4632
|
+
function Dt(t, e) {
|
|
4633
|
+
t in v().callbackRegistry || (v().callbackRegistry[t] = (n2) => {
|
|
4634
|
+
for (const r of me.get(t))
|
|
4548
4635
|
r(n2);
|
|
4549
|
-
},
|
|
4636
|
+
}, me.set(t, [])), me.get(t).push(e);
|
|
4550
4637
|
}
|
|
4551
4638
|
class L {
|
|
4552
4639
|
constructor(e, n2 = (r) => r) {
|
|
4553
4640
|
V(this, "isResolved", false);
|
|
4554
4641
|
V(this, "resolvedValue");
|
|
4555
|
-
this.handle = e, this.postProcess = n2,
|
|
4642
|
+
this.handle = e, this.postProcess = n2, Dt(e, (r) => {
|
|
4556
4643
|
this.resolvedValue = n2(r), this.isResolved = true;
|
|
4557
4644
|
});
|
|
4558
4645
|
}
|
|
@@ -4569,10 +4656,10 @@
|
|
|
4569
4656
|
return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
|
|
4570
4657
|
}
|
|
4571
4658
|
}
|
|
4572
|
-
function
|
|
4659
|
+
function Ce(t, e) {
|
|
4573
4660
|
return t === void 0 ? void 0 : e(t);
|
|
4574
4661
|
}
|
|
4575
|
-
class
|
|
4662
|
+
class k {
|
|
4576
4663
|
constructor(e, n2) {
|
|
4577
4664
|
this.handle = e, this.resolvePath = n2;
|
|
4578
4665
|
}
|
|
@@ -4611,47 +4698,47 @@
|
|
|
4611
4698
|
...this.resolvePath,
|
|
4612
4699
|
...n2.map((i) => typeof i == "string" ? i : i.field)
|
|
4613
4700
|
];
|
|
4614
|
-
return
|
|
4615
|
-
|
|
4616
|
-
(i) => new
|
|
4701
|
+
return Ce(
|
|
4702
|
+
v().resolveWithCommon(this.handle, e, ...n2),
|
|
4703
|
+
(i) => new k(i, r)
|
|
4617
4704
|
);
|
|
4618
4705
|
}
|
|
4619
4706
|
get resourceType() {
|
|
4620
|
-
return
|
|
4707
|
+
return v().getResourceType(this.handle);
|
|
4621
4708
|
}
|
|
4622
4709
|
getInputsLocked() {
|
|
4623
|
-
return
|
|
4710
|
+
return v().getInputsLocked(this.handle);
|
|
4624
4711
|
}
|
|
4625
4712
|
getOutputsLocked() {
|
|
4626
|
-
return
|
|
4713
|
+
return v().getOutputsLocked(this.handle);
|
|
4627
4714
|
}
|
|
4628
4715
|
getIsReadyOrError() {
|
|
4629
|
-
return
|
|
4716
|
+
return v().getIsReadyOrError(this.handle);
|
|
4630
4717
|
}
|
|
4631
4718
|
getIsFinal() {
|
|
4632
|
-
return
|
|
4719
|
+
return v().getIsFinal(this.handle);
|
|
4633
4720
|
}
|
|
4634
4721
|
getError() {
|
|
4635
4722
|
const e = [...this.resolvePath, "error"];
|
|
4636
|
-
return
|
|
4637
|
-
|
|
4638
|
-
(n2) => new
|
|
4723
|
+
return Ce(
|
|
4724
|
+
v().getError(this.handle),
|
|
4725
|
+
(n2) => new k(n2, e)
|
|
4639
4726
|
);
|
|
4640
4727
|
}
|
|
4641
4728
|
listInputFields() {
|
|
4642
|
-
return
|
|
4729
|
+
return v().listInputFields(this.handle);
|
|
4643
4730
|
}
|
|
4644
4731
|
listOutputFields() {
|
|
4645
|
-
return
|
|
4732
|
+
return v().listOutputFields(this.handle);
|
|
4646
4733
|
}
|
|
4647
4734
|
listDynamicFields() {
|
|
4648
|
-
return
|
|
4735
|
+
return v().listDynamicFields(this.handle);
|
|
4649
4736
|
}
|
|
4650
4737
|
getKeyValueBase64(e) {
|
|
4651
|
-
return
|
|
4738
|
+
return v().getKeyValueBase64(this.handle, e);
|
|
4652
4739
|
}
|
|
4653
4740
|
getKeyValueAsString(e) {
|
|
4654
|
-
return
|
|
4741
|
+
return v().getKeyValueAsString(this.handle, e);
|
|
4655
4742
|
}
|
|
4656
4743
|
getKeyValueAsJson(e) {
|
|
4657
4744
|
const n2 = this.getKeyValueAsString(e);
|
|
@@ -4659,10 +4746,10 @@
|
|
|
4659
4746
|
return JSON.parse(n2);
|
|
4660
4747
|
}
|
|
4661
4748
|
getDataBase64() {
|
|
4662
|
-
return
|
|
4749
|
+
return v().getDataBase64(this.handle);
|
|
4663
4750
|
}
|
|
4664
4751
|
getDataAsString() {
|
|
4665
|
-
return
|
|
4752
|
+
return v().getDataAsString(this.handle);
|
|
4666
4753
|
}
|
|
4667
4754
|
getDataAsJson() {
|
|
4668
4755
|
const e = this.getDataAsString();
|
|
@@ -4675,7 +4762,7 @@
|
|
|
4675
4762
|
getPColumns(e = false, n2 = "") {
|
|
4676
4763
|
const r = this.parsePObjectCollection(e, n2);
|
|
4677
4764
|
return r === void 0 ? void 0 : Object.entries(r).map(([, o]) => {
|
|
4678
|
-
if (!
|
|
4765
|
+
if (!Fe(o)) throw new Error(`not a PColumn (kind = ${o.spec.kind})`);
|
|
4679
4766
|
return o;
|
|
4680
4767
|
});
|
|
4681
4768
|
}
|
|
@@ -4683,7 +4770,7 @@
|
|
|
4683
4770
|
*
|
|
4684
4771
|
*/
|
|
4685
4772
|
parsePObjectCollection(e = false, n2 = "") {
|
|
4686
|
-
const r =
|
|
4773
|
+
const r = v().parsePObjectCollection(
|
|
4687
4774
|
this.handle,
|
|
4688
4775
|
e,
|
|
4689
4776
|
n2,
|
|
@@ -4693,19 +4780,19 @@
|
|
|
4693
4780
|
const i = {};
|
|
4694
4781
|
for (const [o, s2] of Object.entries(r)) {
|
|
4695
4782
|
const a = [...this.resolvePath, o];
|
|
4696
|
-
i[o] =
|
|
4783
|
+
i[o] = Bn(s2, (l2) => new k(l2, a));
|
|
4697
4784
|
}
|
|
4698
4785
|
return i;
|
|
4699
4786
|
}
|
|
4700
4787
|
getFileContentAsBase64(e) {
|
|
4701
|
-
return new L(
|
|
4788
|
+
return new L(v().getBlobContentAsBase64(this.handle, e));
|
|
4702
4789
|
}
|
|
4703
4790
|
getFileContentAsString(e) {
|
|
4704
|
-
return new L(
|
|
4791
|
+
return new L(v().getBlobContentAsString(this.handle, e));
|
|
4705
4792
|
}
|
|
4706
4793
|
getFileContentAsJson(e) {
|
|
4707
4794
|
return new L(
|
|
4708
|
-
|
|
4795
|
+
v().getBlobContentAsString(this.handle, e)
|
|
4709
4796
|
).mapDefined((n2) => JSON.parse(n2));
|
|
4710
4797
|
}
|
|
4711
4798
|
/**
|
|
@@ -4724,7 +4811,7 @@
|
|
|
4724
4811
|
* @returns downloaded file handle
|
|
4725
4812
|
*/
|
|
4726
4813
|
getFileHandle() {
|
|
4727
|
-
return new L(
|
|
4814
|
+
return new L(v().getDownloadedBlobContentHandle(this.handle));
|
|
4728
4815
|
}
|
|
4729
4816
|
/**
|
|
4730
4817
|
* @deprecated use getFileHandle
|
|
@@ -4736,7 +4823,7 @@
|
|
|
4736
4823
|
* @returns downloaded file handle
|
|
4737
4824
|
*/
|
|
4738
4825
|
getRemoteFileHandle() {
|
|
4739
|
-
return new L(
|
|
4826
|
+
return new L(v().getOnDemandBlobContentHandle(this.handle));
|
|
4740
4827
|
}
|
|
4741
4828
|
/**
|
|
4742
4829
|
* @deprecated use getRemoteFileHandle
|
|
@@ -4748,22 +4835,22 @@
|
|
|
4748
4835
|
* @returns the url to the extracted folder
|
|
4749
4836
|
*/
|
|
4750
4837
|
extractArchiveAndGetURL(e) {
|
|
4751
|
-
return new L(
|
|
4838
|
+
return new L(v().extractArchiveAndGetURL(this.handle, e));
|
|
4752
4839
|
}
|
|
4753
4840
|
getImportProgress() {
|
|
4754
|
-
return new L(
|
|
4841
|
+
return new L(v().getImportProgress(this.handle));
|
|
4755
4842
|
}
|
|
4756
4843
|
getLastLogs(e) {
|
|
4757
|
-
return new L(
|
|
4844
|
+
return new L(v().getLastLogs(this.handle, e));
|
|
4758
4845
|
}
|
|
4759
4846
|
getProgressLog(e) {
|
|
4760
|
-
return new L(
|
|
4847
|
+
return new L(v().getProgressLog(this.handle, e));
|
|
4761
4848
|
}
|
|
4762
4849
|
getProgressLogWithInfo(e) {
|
|
4763
|
-
return new L(
|
|
4850
|
+
return new L(v().getProgressLogWithInfo(this.handle, e));
|
|
4764
4851
|
}
|
|
4765
4852
|
getLogHandle() {
|
|
4766
|
-
return new L(
|
|
4853
|
+
return new L(v().getLogHandle(this.handle));
|
|
4767
4854
|
}
|
|
4768
4855
|
allFieldsResolved(e = "Input") {
|
|
4769
4856
|
switch (e) {
|
|
@@ -4787,100 +4874,99 @@
|
|
|
4787
4874
|
if (i && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
|
|
4788
4875
|
return;
|
|
4789
4876
|
let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
|
|
4790
|
-
(
|
|
4877
|
+
(c2) => [c2, this.resolve({ field: c2, assertFieldType: r })]
|
|
4791
4878
|
);
|
|
4792
|
-
return o && (l2 = l2.filter((
|
|
4879
|
+
return o && (l2 = l2.filter((c2) => c2[1] !== void 0)), l2.map(([c2, m2]) => s2(c2, m2));
|
|
4793
4880
|
}
|
|
4794
4881
|
}
|
|
4795
|
-
const
|
|
4796
|
-
const
|
|
4882
|
+
const ze = "staging", Xe = "main";
|
|
4883
|
+
const Nt = z$1.object({
|
|
4797
4884
|
type: z$1.string(),
|
|
4798
4885
|
importance: z$1.number().optional(),
|
|
4799
4886
|
id: z$1.string().optional(),
|
|
4800
4887
|
label: z$1.string()
|
|
4801
|
-
}),
|
|
4802
|
-
function
|
|
4803
|
-
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, o = /* @__PURE__ */ new Map(), s2 = t.map((
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
const E2 = (c2 = p2.annotations) == null ? void 0 : c2[It], F = (v = p2.annotations) == null ? void 0 : v[_t], S = (F ? Et.safeParse(JSON.parse(F)).data : void 0) ?? [], P2 = [
|
|
4888
|
+
}), Ut = z$1.array(Nt), Kt = 1e-3, qt = "__LABEL__", De = "__LABEL__@1";
|
|
4889
|
+
function Qe(t, e, n2 = {}) {
|
|
4890
|
+
const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, o = /* @__PURE__ */ new Map(), s2 = t.map((f) => {
|
|
4891
|
+
const y$1 = e(f);
|
|
4892
|
+
let p2, g2, P;
|
|
4893
|
+
"spec" in y$1 && typeof y$1.spec == "object" ? (p2 = y$1.spec, g2 = y$1.prefixTrace, P = y$1.suffixTrace) : p2 = y$1;
|
|
4894
|
+
const E2 = wn(p2, y.Label), x = wn(p2, y.Trace), T2 = (x ? Ut.safeParse(me$1(x)).data : void 0) ?? [], S = [
|
|
4809
4895
|
...g2 ?? [],
|
|
4810
|
-
...
|
|
4811
|
-
...
|
|
4896
|
+
...T2,
|
|
4897
|
+
...P ?? []
|
|
4812
4898
|
];
|
|
4813
4899
|
if (E2 !== void 0) {
|
|
4814
|
-
const
|
|
4815
|
-
n2.addLabelAsSuffix ?
|
|
4816
|
-
}
|
|
4817
|
-
const
|
|
4818
|
-
for (let
|
|
4819
|
-
const { type:
|
|
4820
|
-
|
|
4821
|
-
const
|
|
4822
|
-
o.set(
|
|
4823
|
-
|
|
4900
|
+
const u2 = { label: E2, type: qt, importance: -2 };
|
|
4901
|
+
n2.addLabelAsSuffix ? S.push(u2) : S.splice(0, 0, u2);
|
|
4902
|
+
}
|
|
4903
|
+
const C = [], I2 = /* @__PURE__ */ new Map();
|
|
4904
|
+
for (let u2 = S.length - 1; u2 >= 0; --u2) {
|
|
4905
|
+
const { type: b2 } = S[u2], K = S[u2].importance ?? 0, B = (I2.get(b2) ?? 0) + 1;
|
|
4906
|
+
I2.set(b2, B);
|
|
4907
|
+
const O = `${b2}@${B}`;
|
|
4908
|
+
o.set(O, (o.get(O) ?? 0) + 1), r.set(
|
|
4909
|
+
O,
|
|
4824
4910
|
Math.max(
|
|
4825
|
-
r.get(
|
|
4826
|
-
K - (
|
|
4911
|
+
r.get(O) ?? Number.NEGATIVE_INFINITY,
|
|
4912
|
+
K - (S.length - u2) * Kt
|
|
4827
4913
|
)
|
|
4828
|
-
),
|
|
4914
|
+
), C.push({ ...S[u2], fullType: O, occurrenceIndex: B });
|
|
4829
4915
|
}
|
|
4830
|
-
return
|
|
4831
|
-
value:
|
|
4916
|
+
return C.reverse(), {
|
|
4917
|
+
value: f,
|
|
4832
4918
|
spec: p2,
|
|
4833
4919
|
label: E2,
|
|
4834
|
-
fullTrace:
|
|
4920
|
+
fullTrace: C
|
|
4835
4921
|
};
|
|
4836
|
-
}), a = [], l2 = [],
|
|
4837
|
-
|
|
4838
|
-
for (const [
|
|
4839
|
-
|
|
4840
|
-
const
|
|
4922
|
+
}), a = [], l2 = [], c2 = [...r];
|
|
4923
|
+
c2.sort(([, f], [, y2]) => y2 - f);
|
|
4924
|
+
for (const [f] of c2)
|
|
4925
|
+
f.endsWith("@1") || o.get(f) === t.length ? a.push(f) : l2.push(f);
|
|
4926
|
+
const m2 = (f, y2 = false) => {
|
|
4841
4927
|
const p2 = [];
|
|
4842
4928
|
for (let g2 = 0; g2 < s2.length; g2++) {
|
|
4843
|
-
const
|
|
4929
|
+
const P = s2[g2], E2 = P.fullTrace.filter((S) => f.has(S.fullType) || i && i.has(S.type));
|
|
4844
4930
|
if (E2.length === 0)
|
|
4845
|
-
if (
|
|
4931
|
+
if (y2)
|
|
4846
4932
|
p2.push({
|
|
4847
4933
|
label: "Unlabeled",
|
|
4848
|
-
value:
|
|
4934
|
+
value: P.value
|
|
4849
4935
|
});
|
|
4850
4936
|
else return;
|
|
4851
|
-
const
|
|
4937
|
+
const x = E2.map((S) => S.label), T2 = n2.separator ?? " / ";
|
|
4852
4938
|
p2.push({
|
|
4853
|
-
label:
|
|
4854
|
-
value:
|
|
4939
|
+
label: x.join(T2),
|
|
4940
|
+
value: P.value
|
|
4855
4941
|
});
|
|
4856
4942
|
}
|
|
4857
4943
|
return p2;
|
|
4858
4944
|
};
|
|
4859
4945
|
if (a.length === 0) {
|
|
4860
4946
|
if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
|
|
4861
|
-
return
|
|
4862
|
-
}
|
|
4863
|
-
let
|
|
4864
|
-
for (;
|
|
4865
|
-
const
|
|
4866
|
-
n2.includeNativeLabel &&
|
|
4867
|
-
for (let p2 = 0; p2 <
|
|
4868
|
-
|
|
4869
|
-
const
|
|
4870
|
-
if (
|
|
4871
|
-
|
|
4872
|
-
}
|
|
4873
|
-
return
|
|
4947
|
+
return m2(new Set(De), true);
|
|
4948
|
+
}
|
|
4949
|
+
let d = 0, h = -1;
|
|
4950
|
+
for (; d < a.length; ) {
|
|
4951
|
+
const f = /* @__PURE__ */ new Set();
|
|
4952
|
+
n2.includeNativeLabel && f.add(De);
|
|
4953
|
+
for (let p2 = 0; p2 < d; ++p2) f.add(a[p2]);
|
|
4954
|
+
h >= 0 && f.add(a[h]);
|
|
4955
|
+
const y2 = m2(f);
|
|
4956
|
+
if (y2 !== void 0 && new Set(y2.map((p2) => p2.label)).size === t.length) return y2;
|
|
4957
|
+
h++, h >= a.length && (d++, h = d);
|
|
4958
|
+
}
|
|
4959
|
+
return m2(/* @__PURE__ */ new Set([...a, ...l2]), true);
|
|
4874
4960
|
}
|
|
4875
|
-
const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned",
|
|
4876
|
-
const
|
|
4961
|
+
const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned", $ = ee + "BinaryPartitioned", Ze = ee + "Partitioned/", ce = Ze + "JsonPartitioned", z = Ze + "BinaryPartitioned";
|
|
4962
|
+
const Se = (t) => {
|
|
4877
4963
|
if (t.endsWith(".index"))
|
|
4878
4964
|
return { baseKey: t.substring(0, t.length - 6), type: "index" };
|
|
4879
4965
|
if (t.endsWith(".values"))
|
|
4880
4966
|
return { baseKey: t.substring(0, t.length - 7), type: "values" };
|
|
4881
4967
|
throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
|
|
4882
4968
|
};
|
|
4883
|
-
function
|
|
4969
|
+
function jt(t) {
|
|
4884
4970
|
if (!t) return;
|
|
4885
4971
|
const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
|
|
4886
4972
|
let i = 0;
|
|
@@ -4892,7 +4978,7 @@
|
|
|
4892
4978
|
i = n2.partitionKeyLength + n2.keyLength;
|
|
4893
4979
|
break;
|
|
4894
4980
|
case H:
|
|
4895
|
-
case
|
|
4981
|
+
case $:
|
|
4896
4982
|
i = n2.partitionKeyLength;
|
|
4897
4983
|
break;
|
|
4898
4984
|
case z:
|
|
@@ -4903,9 +4989,9 @@
|
|
|
4903
4989
|
switch (e) {
|
|
4904
4990
|
case le:
|
|
4905
4991
|
case H:
|
|
4906
|
-
case
|
|
4992
|
+
case $:
|
|
4907
4993
|
for (let o of t.listInputFields()) {
|
|
4908
|
-
e ===
|
|
4994
|
+
e === $ && (o = Se(o).baseKey);
|
|
4909
4995
|
const s2 = [...JSON.parse(o)];
|
|
4910
4996
|
r.push(s2);
|
|
4911
4997
|
}
|
|
@@ -4917,16 +5003,16 @@
|
|
|
4917
5003
|
const s2 = [...JSON.parse(o)], a = t.resolve({ field: o, assertFieldType: "Input" });
|
|
4918
5004
|
if (a !== void 0)
|
|
4919
5005
|
for (let l2 of a.listInputFields()) {
|
|
4920
|
-
e === z && (l2 =
|
|
4921
|
-
const
|
|
4922
|
-
r.push(
|
|
5006
|
+
e === z && (l2 = Se(l2).baseKey);
|
|
5007
|
+
const c2 = [...s2, ...JSON.parse(l2)];
|
|
5008
|
+
r.push(c2);
|
|
4923
5009
|
}
|
|
4924
5010
|
}
|
|
4925
5011
|
break;
|
|
4926
5012
|
}
|
|
4927
5013
|
return { data: r, keyLength: i };
|
|
4928
5014
|
}
|
|
4929
|
-
function
|
|
5015
|
+
function Mt(t) {
|
|
4930
5016
|
if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
|
|
4931
5017
|
throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
|
|
4932
5018
|
const { parts: e, partitionKeyLength: n2 } = t, r = [];
|
|
@@ -4945,11 +5031,11 @@
|
|
|
4945
5031
|
}
|
|
4946
5032
|
return r.map((i) => Array.from(i.values()));
|
|
4947
5033
|
}
|
|
4948
|
-
function
|
|
5034
|
+
function $t(t) {
|
|
4949
5035
|
if (t === void 0) return;
|
|
4950
|
-
if (
|
|
4951
|
-
return
|
|
4952
|
-
const e =
|
|
5036
|
+
if (ue$1(t))
|
|
5037
|
+
return Mt(t);
|
|
5038
|
+
const e = jt(t);
|
|
4953
5039
|
if (!e) return;
|
|
4954
5040
|
const { data: n2, keyLength: r } = e, i = [];
|
|
4955
5041
|
for (let o = 0; o < r; ++o)
|
|
@@ -4962,7 +5048,7 @@
|
|
|
4962
5048
|
}
|
|
4963
5049
|
return i.map((o) => Array.from(o.values()));
|
|
4964
5050
|
}
|
|
4965
|
-
function
|
|
5051
|
+
function Pe(t, e = []) {
|
|
4966
5052
|
if (t === void 0 || !t.getIsReadyOrError()) return;
|
|
4967
5053
|
const n2 = t.resourceType.name, r = t.getDataAsJson();
|
|
4968
5054
|
if (e.length > 0 && (n2 === ce || n2 === z))
|
|
@@ -4987,15 +5073,15 @@
|
|
|
4987
5073
|
parts: i
|
|
4988
5074
|
};
|
|
4989
5075
|
}
|
|
4990
|
-
case
|
|
5076
|
+
case $: {
|
|
4991
5077
|
if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
|
|
4992
5078
|
throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
|
|
4993
5079
|
const i = [], o = /* @__PURE__ */ new Map();
|
|
4994
5080
|
for (const s2 of t.listInputFields()) {
|
|
4995
|
-
const a =
|
|
5081
|
+
const a = Se(s2), l2 = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
4996
5082
|
if (l2 === void 0) return;
|
|
4997
|
-
let
|
|
4998
|
-
|
|
5083
|
+
let c2 = o.get(a.baseKey);
|
|
5084
|
+
c2 || (c2 = {}, o.set(a.baseKey, c2)), a.type === "index" ? c2.index = l2 : c2.values = l2;
|
|
4999
5085
|
}
|
|
5000
5086
|
for (const [s2, a] of o.entries()) {
|
|
5001
5087
|
if (!a.index || !a.values) return;
|
|
@@ -5023,7 +5109,7 @@
|
|
|
5023
5109
|
if (a === void 0) return;
|
|
5024
5110
|
if (a.resourceType.name !== H)
|
|
5025
5111
|
throw new Error(`Expected ${H} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5026
|
-
const l2 =
|
|
5112
|
+
const l2 = Pe(a, JSON.parse(s2));
|
|
5027
5113
|
if (l2 === void 0) return;
|
|
5028
5114
|
if (l2.type !== "JsonPartitioned")
|
|
5029
5115
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -5042,9 +5128,9 @@
|
|
|
5042
5128
|
for (const s2 of t.listInputFields()) {
|
|
5043
5129
|
const a = t.resolve({ field: s2, assertFieldType: "Input" });
|
|
5044
5130
|
if (a === void 0) return;
|
|
5045
|
-
if (a.resourceType.name !==
|
|
5046
|
-
throw new Error(`Expected ${
|
|
5047
|
-
const l2 =
|
|
5131
|
+
if (a.resourceType.name !== $)
|
|
5132
|
+
throw new Error(`Expected ${$} inside ${n2}, but got ${a.resourceType.name}`);
|
|
5133
|
+
const l2 = Pe(a, JSON.parse(s2));
|
|
5048
5134
|
if (l2 === void 0) return;
|
|
5049
5135
|
if (l2.type !== "BinaryPartitioned")
|
|
5050
5136
|
throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
|
|
@@ -5060,113 +5146,125 @@
|
|
|
5060
5146
|
throw new Error(`Unknown resource type: ${n2}`);
|
|
5061
5147
|
}
|
|
5062
5148
|
}
|
|
5063
|
-
function
|
|
5149
|
+
function Jt(t) {
|
|
5064
5150
|
if (t !== void 0) {
|
|
5065
|
-
if (
|
|
5066
|
-
if (
|
|
5067
|
-
if (t instanceof
|
|
5151
|
+
if (ue$1(t)) return t;
|
|
5152
|
+
if (Qe$1(t)) return en$1(t);
|
|
5153
|
+
if (t instanceof k) return Pe(t);
|
|
5068
5154
|
throw new Error(`Unexpected input type: ${typeof t}`);
|
|
5069
5155
|
}
|
|
5070
5156
|
}
|
|
5071
|
-
function
|
|
5072
|
-
const n2 = [...e].sort((
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5076
|
-
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5080
|
-
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5157
|
+
function Bt(t, e) {
|
|
5158
|
+
const n2 = [...e].sort((s2, a) => a[0] - s2[0]), { type: r } = t;
|
|
5159
|
+
switch (r) {
|
|
5160
|
+
case "Json": {
|
|
5161
|
+
const { keyLength: s2 } = t;
|
|
5162
|
+
for (const [a] of e)
|
|
5163
|
+
if (a >= s2)
|
|
5164
|
+
throw new Error(`Can't filter on non-data axis ${a}. Must be >= ${s2}`);
|
|
5165
|
+
break;
|
|
5166
|
+
}
|
|
5167
|
+
case "JsonPartitioned":
|
|
5168
|
+
case "BinaryPartitioned":
|
|
5169
|
+
case "ParquetPartitioned": {
|
|
5170
|
+
const { partitionKeyLength: s2 } = t;
|
|
5171
|
+
for (const [a] of e)
|
|
5172
|
+
if (a >= s2)
|
|
5173
|
+
throw new Error(`Can't filter on non-partitioned axis ${a}. Must be >= ${s2}`);
|
|
5174
|
+
break;
|
|
5175
|
+
}
|
|
5176
|
+
default:
|
|
5177
|
+
throw new Error(`Unsupported data info type: ${r}`);
|
|
5178
|
+
}
|
|
5179
|
+
const i = (s2) => {
|
|
5180
|
+
for (const [a, l2] of n2)
|
|
5181
|
+
if (s2[a] !== l2)
|
|
5087
5182
|
return false;
|
|
5088
5183
|
return true;
|
|
5089
|
-
},
|
|
5090
|
-
const
|
|
5091
|
-
for (const [
|
|
5092
|
-
|
|
5093
|
-
return
|
|
5184
|
+
}, o = (s2) => {
|
|
5185
|
+
const a = [...s2];
|
|
5186
|
+
for (const [l2] of n2)
|
|
5187
|
+
a.splice(l2, 1);
|
|
5188
|
+
return a;
|
|
5094
5189
|
};
|
|
5095
5190
|
switch (t.type) {
|
|
5096
|
-
case "Json":
|
|
5097
|
-
const o = t.data.filter((s2) => r(s2.key)).map((s2) => ({
|
|
5098
|
-
key: i(s2.key),
|
|
5099
|
-
value: s2.value
|
|
5100
|
-
}));
|
|
5191
|
+
case "Json":
|
|
5101
5192
|
return {
|
|
5102
5193
|
type: "Json",
|
|
5103
5194
|
keyLength: t.keyLength - e.length,
|
|
5104
|
-
data:
|
|
5195
|
+
data: t.data.filter((s2) => i(s2.key)).map((s2) => ({
|
|
5196
|
+
key: o(s2.key),
|
|
5197
|
+
value: s2.value
|
|
5198
|
+
}))
|
|
5105
5199
|
};
|
|
5106
|
-
|
|
5107
|
-
case "JsonPartitioned": {
|
|
5108
|
-
const o = t.parts.filter((s2) => r(s2.key)).map((s2) => ({
|
|
5109
|
-
key: i(s2.key),
|
|
5110
|
-
value: s2.value
|
|
5111
|
-
}));
|
|
5200
|
+
case "JsonPartitioned":
|
|
5112
5201
|
return {
|
|
5113
5202
|
type: "JsonPartitioned",
|
|
5114
5203
|
partitionKeyLength: t.partitionKeyLength - e.length,
|
|
5115
|
-
parts:
|
|
5204
|
+
parts: t.parts.filter((s2) => i(s2.key)).map((s2) => ({
|
|
5205
|
+
key: o(s2.key),
|
|
5206
|
+
value: s2.value
|
|
5207
|
+
}))
|
|
5116
5208
|
};
|
|
5117
|
-
|
|
5118
|
-
case "BinaryPartitioned": {
|
|
5119
|
-
const o = t.parts.filter((s2) => r(s2.key)).map((s2) => ({
|
|
5120
|
-
key: i(s2.key),
|
|
5121
|
-
value: s2.value
|
|
5122
|
-
}));
|
|
5209
|
+
case "BinaryPartitioned":
|
|
5123
5210
|
return {
|
|
5124
5211
|
type: "BinaryPartitioned",
|
|
5125
5212
|
partitionKeyLength: t.partitionKeyLength - e.length,
|
|
5126
|
-
parts:
|
|
5213
|
+
parts: t.parts.filter((s2) => i(s2.key)).map((s2) => ({
|
|
5214
|
+
key: o(s2.key),
|
|
5215
|
+
value: s2.value
|
|
5216
|
+
}))
|
|
5217
|
+
};
|
|
5218
|
+
case "ParquetPartitioned":
|
|
5219
|
+
return {
|
|
5220
|
+
type: "ParquetPartitioned",
|
|
5221
|
+
partitionKeyLength: t.partitionKeyLength - e.length,
|
|
5222
|
+
parts: t.parts.filter((s2) => i(s2.key)).map((s2) => ({
|
|
5223
|
+
key: o(s2.key),
|
|
5224
|
+
value: s2.value
|
|
5225
|
+
}))
|
|
5127
5226
|
};
|
|
5128
|
-
}
|
|
5129
5227
|
}
|
|
5130
5228
|
}
|
|
5131
|
-
function
|
|
5229
|
+
function Wt(t) {
|
|
5132
5230
|
if (!Array.isArray(t)) return false;
|
|
5133
5231
|
if (t.length === 0) return true;
|
|
5134
5232
|
const e = t[0];
|
|
5135
5233
|
return typeof e == "object" && e !== null && "key" in e && "val" in e;
|
|
5136
5234
|
}
|
|
5137
|
-
class
|
|
5235
|
+
class Gt {
|
|
5138
5236
|
constructor(e) {
|
|
5139
5237
|
this.columns = e;
|
|
5140
5238
|
}
|
|
5141
5239
|
selectColumns(e) {
|
|
5142
|
-
const n2 = typeof e == "function" ? e :
|
|
5240
|
+
const n2 = typeof e == "function" ? e : Un(e);
|
|
5143
5241
|
return this.columns.filter((r) => n2(r.spec));
|
|
5144
5242
|
}
|
|
5145
5243
|
}
|
|
5146
|
-
function
|
|
5244
|
+
function Ht(t) {
|
|
5147
5245
|
if (t)
|
|
5148
5246
|
return t.map((e) => ({
|
|
5149
|
-
type: `split:${
|
|
5247
|
+
type: `split:${On(e.axisId)}`,
|
|
5150
5248
|
label: e.label,
|
|
5151
5249
|
importance: 1e6
|
|
5152
5250
|
// High importance for split filters in labels
|
|
5153
5251
|
}));
|
|
5154
5252
|
}
|
|
5155
|
-
function
|
|
5253
|
+
function zt(t) {
|
|
5156
5254
|
if (t)
|
|
5157
5255
|
return t.map((e) => [e.axisIdx, e.value]);
|
|
5158
5256
|
}
|
|
5159
|
-
function
|
|
5257
|
+
function Xt(t, e) {
|
|
5160
5258
|
if (!e || e.length === 0) return t;
|
|
5161
5259
|
const n2 = [...e].sort((r, i) => r[0] - i[0]);
|
|
5162
|
-
return
|
|
5260
|
+
return We({ id: t, axisFilters: n2 });
|
|
5163
5261
|
}
|
|
5164
|
-
function
|
|
5262
|
+
function Oe(t) {
|
|
5165
5263
|
if (!t || typeof t != "object") return false;
|
|
5166
5264
|
const e = t, n2 = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
|
|
5167
5265
|
return !!e.domainAnchor || n2 || r;
|
|
5168
5266
|
}
|
|
5169
|
-
function
|
|
5267
|
+
function Yt(t) {
|
|
5170
5268
|
if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
|
|
5171
5269
|
return [];
|
|
5172
5270
|
const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
|
|
@@ -5177,7 +5275,7 @@
|
|
|
5177
5275
|
class Q {
|
|
5178
5276
|
constructor() {
|
|
5179
5277
|
V(this, "defaultProviderStore", []);
|
|
5180
|
-
V(this, "providers", [new
|
|
5278
|
+
V(this, "providers", [new Gt(this.defaultProviderStore)]);
|
|
5181
5279
|
V(this, "axisLabelProviders", []);
|
|
5182
5280
|
}
|
|
5183
5281
|
addColumnProvider(e) {
|
|
@@ -5204,131 +5302,131 @@
|
|
|
5204
5302
|
...s2 && (i == null ? void 0 : i.includeNativeLabel) !== false ? { includeNativeLabel: true } : {},
|
|
5205
5303
|
...i ?? {}
|
|
5206
5304
|
};
|
|
5207
|
-
let
|
|
5305
|
+
let c2 = () => false;
|
|
5208
5306
|
if (a) {
|
|
5209
5307
|
const p2 = (Array.isArray(a) ? a : [a]).map((g2) => {
|
|
5210
|
-
if (
|
|
5308
|
+
if (Oe(g2)) {
|
|
5211
5309
|
if (!r)
|
|
5212
5310
|
throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
|
|
5213
|
-
return
|
|
5311
|
+
return Un(Rn(r.anchors, g2, n2));
|
|
5214
5312
|
} else
|
|
5215
|
-
return
|
|
5313
|
+
return Un(g2);
|
|
5216
5314
|
});
|
|
5217
|
-
|
|
5315
|
+
c2 = (g2) => p2.some((P) => P(g2));
|
|
5218
5316
|
}
|
|
5219
|
-
const
|
|
5220
|
-
for (const p2 of
|
|
5221
|
-
const g2 =
|
|
5222
|
-
let
|
|
5317
|
+
const m2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], h = /* @__PURE__ */ new Set();
|
|
5318
|
+
for (const p2 of m2) {
|
|
5319
|
+
const g2 = Oe(p2);
|
|
5320
|
+
let P;
|
|
5223
5321
|
if (g2) {
|
|
5224
5322
|
if (!r)
|
|
5225
5323
|
throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
|
|
5226
|
-
|
|
5324
|
+
P = Rn(r.anchors, p2, n2);
|
|
5227
5325
|
} else
|
|
5228
|
-
|
|
5229
|
-
const E2 = /* @__PURE__ */ new Set(),
|
|
5230
|
-
for (const
|
|
5231
|
-
const
|
|
5232
|
-
for (const
|
|
5233
|
-
if (u2
|
|
5234
|
-
if (E2.has(
|
|
5235
|
-
throw new Error(`Duplicate column id ${
|
|
5236
|
-
const
|
|
5237
|
-
|
|
5326
|
+
P = p2;
|
|
5327
|
+
const E2 = /* @__PURE__ */ new Set(), x = [];
|
|
5328
|
+
for (const C of this.providers) {
|
|
5329
|
+
const I2 = C.selectColumns(P);
|
|
5330
|
+
for (const u2 of I2) {
|
|
5331
|
+
if (c2(u2.spec)) continue;
|
|
5332
|
+
if (E2.has(u2.id))
|
|
5333
|
+
throw new Error(`Duplicate column id ${u2.id} in provider ${C.constructor.name}`);
|
|
5334
|
+
const b2 = qn(u2.spec);
|
|
5335
|
+
h.has(b2) || (E2.add(u2.id), h.add(b2), x.push(u2));
|
|
5238
5336
|
}
|
|
5239
5337
|
}
|
|
5240
|
-
if (
|
|
5241
|
-
const
|
|
5242
|
-
for (const
|
|
5243
|
-
if (!
|
|
5244
|
-
const
|
|
5245
|
-
if (
|
|
5246
|
-
if (
|
|
5247
|
-
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${
|
|
5248
|
-
const
|
|
5249
|
-
if (!
|
|
5338
|
+
if (x.length === 0) continue;
|
|
5339
|
+
const T2 = Yt(p2), S = T2.length > 0;
|
|
5340
|
+
for (const C of x) {
|
|
5341
|
+
if (!w$1(C.spec)) continue;
|
|
5342
|
+
const I2 = C.spec;
|
|
5343
|
+
if (S) {
|
|
5344
|
+
if (Wt(C.data))
|
|
5345
|
+
throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${C.id}`);
|
|
5346
|
+
const u2 = Jt(C.data);
|
|
5347
|
+
if (!u2) {
|
|
5250
5348
|
if (o) continue;
|
|
5251
5349
|
return;
|
|
5252
5350
|
}
|
|
5253
|
-
if (!
|
|
5254
|
-
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${
|
|
5255
|
-
const
|
|
5256
|
-
if (
|
|
5257
|
-
throw new Error(`Not enough partition keys (${
|
|
5258
|
-
const
|
|
5259
|
-
if (W >=
|
|
5260
|
-
if (
|
|
5351
|
+
if (!Ze$1(u2))
|
|
5352
|
+
throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${u2.type} for column ${C.id}`);
|
|
5353
|
+
const b2 = $t(u2), K = T2[T2.length - 1];
|
|
5354
|
+
if (K >= u2.partitionKeyLength)
|
|
5355
|
+
throw new Error(`Not enough partition keys (${u2.partitionKeyLength}) for requested split axes (max index ${K}) in column ${I2.name}`);
|
|
5356
|
+
const B = T2.map((_2) => this.findLabels(p$1(I2.axesSpec[_2]))), O = [], _e = (_2, W) => {
|
|
5357
|
+
if (W >= T2.length) {
|
|
5358
|
+
if (O.push([..._2]), O.length > 1e4)
|
|
5261
5359
|
throw new Error("Too many key combinations, aborting.");
|
|
5262
5360
|
return;
|
|
5263
5361
|
}
|
|
5264
|
-
const
|
|
5265
|
-
if (
|
|
5266
|
-
throw new Error(`Axis index ${
|
|
5267
|
-
const
|
|
5268
|
-
if (!
|
|
5269
|
-
|
|
5362
|
+
const q = T2[W];
|
|
5363
|
+
if (q >= b2.length)
|
|
5364
|
+
throw new Error(`Axis index ${q} out of bounds for unique keys array (length ${b2.length}) during split key generation for column ${C.id}`);
|
|
5365
|
+
const j = b2[q];
|
|
5366
|
+
if (!j || j.length === 0) {
|
|
5367
|
+
O.length = 0;
|
|
5270
5368
|
return;
|
|
5271
5369
|
}
|
|
5272
|
-
for (const
|
|
5273
|
-
_2.push(
|
|
5370
|
+
for (const te2 of j)
|
|
5371
|
+
_2.push(te2), _e(_2, W + 1), _2.pop();
|
|
5274
5372
|
};
|
|
5275
|
-
if (
|
|
5373
|
+
if (_e([], 0), O.length === 0)
|
|
5276
5374
|
continue;
|
|
5277
|
-
const
|
|
5278
|
-
for (let _2 =
|
|
5279
|
-
|
|
5280
|
-
const
|
|
5281
|
-
for (const _2 of
|
|
5282
|
-
const W = _2.map((
|
|
5283
|
-
const
|
|
5284
|
-
return { axisIdx:
|
|
5375
|
+
const Le = [...I2.axesSpec], rt = T2.map((_2) => _2);
|
|
5376
|
+
for (let _2 = T2.length - 1; _2 >= 0; _2--)
|
|
5377
|
+
Le.splice(T2[_2], 1);
|
|
5378
|
+
const it = { ...I2, axesSpec: Le };
|
|
5379
|
+
for (const _2 of O) {
|
|
5380
|
+
const W = _2.map((q, j) => {
|
|
5381
|
+
const te2 = rt[j], ot = p$1(I2.axesSpec[te2]), fe = B[j], st = (fe == null ? void 0 : fe[q]) ?? String(q);
|
|
5382
|
+
return { axisIdx: te2, axisId: ot, value: q, label: st };
|
|
5285
5383
|
});
|
|
5286
|
-
|
|
5384
|
+
d.push({
|
|
5287
5385
|
type: "split",
|
|
5288
|
-
originalColumn:
|
|
5289
|
-
spec:
|
|
5290
|
-
adjustedSpec:
|
|
5291
|
-
dataEntries:
|
|
5386
|
+
originalColumn: C,
|
|
5387
|
+
spec: I2,
|
|
5388
|
+
adjustedSpec: it,
|
|
5389
|
+
dataEntries: u2,
|
|
5292
5390
|
axisFilters: W
|
|
5293
5391
|
});
|
|
5294
5392
|
}
|
|
5295
5393
|
} else
|
|
5296
|
-
|
|
5394
|
+
d.push({
|
|
5297
5395
|
type: "direct",
|
|
5298
|
-
originalColumn:
|
|
5299
|
-
spec:
|
|
5300
|
-
adjustedSpec:
|
|
5396
|
+
originalColumn: C,
|
|
5397
|
+
spec: I2,
|
|
5398
|
+
adjustedSpec: I2
|
|
5301
5399
|
});
|
|
5302
5400
|
}
|
|
5303
5401
|
}
|
|
5304
|
-
if (
|
|
5305
|
-
const
|
|
5306
|
-
|
|
5402
|
+
if (d.length === 0) return [];
|
|
5403
|
+
const f = Qe(
|
|
5404
|
+
d,
|
|
5307
5405
|
(p2) => ({
|
|
5308
5406
|
spec: p2.spec,
|
|
5309
|
-
suffixTrace: p2.type === "split" ?
|
|
5407
|
+
suffixTrace: p2.type === "split" ? Ht(p2.axisFilters) : void 0
|
|
5310
5408
|
}),
|
|
5311
5409
|
l2
|
|
5312
|
-
), y = [];
|
|
5313
|
-
for (const { value: p2, label: g2 } of
|
|
5314
|
-
const { originalColumn:
|
|
5315
|
-
let
|
|
5316
|
-
r ?
|
|
5317
|
-
let
|
|
5318
|
-
s2 && (
|
|
5319
|
-
...
|
|
5410
|
+
), y$1 = [];
|
|
5411
|
+
for (const { value: p2, label: g2 } of f) {
|
|
5412
|
+
const { originalColumn: P, spec: E2 } = p2, x = p2.type === "split" ? p2.axisFilters : void 0, T2 = zt(x);
|
|
5413
|
+
let S;
|
|
5414
|
+
r ? S = r.deriveS(E2, T2) : S = Xt(P.id, T2);
|
|
5415
|
+
let C = { ...p2.adjustedSpec };
|
|
5416
|
+
s2 && (C = {
|
|
5417
|
+
...C,
|
|
5320
5418
|
annotations: {
|
|
5321
|
-
...
|
|
5322
|
-
|
|
5419
|
+
...C.annotations ?? {},
|
|
5420
|
+
[y.Label]: g2
|
|
5323
5421
|
}
|
|
5324
|
-
}), y.push({
|
|
5325
|
-
id:
|
|
5326
|
-
spec:
|
|
5327
|
-
data: () => p2.type === "split" ?
|
|
5422
|
+
}), y$1.push({
|
|
5423
|
+
id: S,
|
|
5424
|
+
spec: C,
|
|
5425
|
+
data: () => p2.type === "split" ? nn(Bt(p2.dataEntries, T2)) : p2.originalColumn.data,
|
|
5328
5426
|
label: g2
|
|
5329
5427
|
});
|
|
5330
5428
|
}
|
|
5331
|
-
return y;
|
|
5429
|
+
return y$1;
|
|
5332
5430
|
}
|
|
5333
5431
|
getColumns(e, n2) {
|
|
5334
5432
|
const r = this.getUniversalEntries(e, {
|
|
@@ -5353,7 +5451,7 @@
|
|
|
5353
5451
|
return i;
|
|
5354
5452
|
}
|
|
5355
5453
|
}
|
|
5356
|
-
function
|
|
5454
|
+
function Ae(t) {
|
|
5357
5455
|
const e = (i) => i.operator !== "InSet" ? i : {
|
|
5358
5456
|
operator: "Or",
|
|
5359
5457
|
operands: i.references.map((o) => ({
|
|
@@ -5386,19 +5484,19 @@
|
|
|
5386
5484
|
});
|
|
5387
5485
|
return t.map((i) => r(i, e));
|
|
5388
5486
|
}
|
|
5389
|
-
function
|
|
5487
|
+
function ye(t, e) {
|
|
5390
5488
|
if (t === void 0) return e === void 0;
|
|
5391
5489
|
if (e === void 0) return true;
|
|
5392
5490
|
for (const n2 in e)
|
|
5393
5491
|
if (t[n2] !== e[n2]) return false;
|
|
5394
5492
|
return true;
|
|
5395
5493
|
}
|
|
5396
|
-
function
|
|
5397
|
-
return
|
|
5494
|
+
function Re(t) {
|
|
5495
|
+
return Bn(t, (e) => e instanceof k ? e.handle : Qe$1(e) ? Xe$1(e, (n2) => n2.handle) : e);
|
|
5398
5496
|
}
|
|
5399
|
-
class
|
|
5497
|
+
class Qt {
|
|
5400
5498
|
constructor() {
|
|
5401
|
-
V(this, "ctx",
|
|
5499
|
+
V(this, "ctx", v());
|
|
5402
5500
|
}
|
|
5403
5501
|
/**
|
|
5404
5502
|
* @deprecated use getOptions()
|
|
@@ -5407,28 +5505,28 @@
|
|
|
5407
5505
|
return this.ctx.calculateOptions(e);
|
|
5408
5506
|
}
|
|
5409
5507
|
getOptions(e, n2) {
|
|
5410
|
-
const r = typeof e == "function" ? e :
|
|
5508
|
+
const r = typeof e == "function" ? e : Un(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
|
|
5411
5509
|
let o = {}, s2 = false;
|
|
5412
|
-
return typeof n2 < "u" && (typeof n2 == "function" ? o = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? o = n2 : (n2 = n2, o = n2.label ?? {}, s2 = n2.refsWithEnrichments ?? false))), typeof o == "object" ?
|
|
5413
|
-
ref:
|
|
5510
|
+
return typeof n2 < "u" && (typeof n2 == "function" ? o = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? o = n2 : (n2 = n2, o = n2.label ?? {}, s2 = n2.refsWithEnrichments ?? false))), typeof o == "object" ? Qe(i, (a) => a.obj, o ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
|
|
5511
|
+
ref: _n(a, s2),
|
|
5414
5512
|
label: l2
|
|
5415
5513
|
})) : i.map(({ ref: a, obj: l2 }) => ({
|
|
5416
|
-
ref:
|
|
5514
|
+
ref: _n(a, s2),
|
|
5417
5515
|
label: o(l2, a)
|
|
5418
5516
|
}));
|
|
5419
5517
|
}
|
|
5420
5518
|
resolveAnchorCtx(e) {
|
|
5421
|
-
if (e instanceof
|
|
5519
|
+
if (e instanceof Nn) return e;
|
|
5422
5520
|
const n2 = {};
|
|
5423
5521
|
for (const [r, i] of Object.entries(e))
|
|
5424
|
-
if (
|
|
5522
|
+
if (Hn(i)) {
|
|
5425
5523
|
const o = this.getPColumnSpecByRef(i);
|
|
5426
5524
|
if (!o)
|
|
5427
5525
|
return;
|
|
5428
5526
|
n2[r] = o;
|
|
5429
5527
|
} else
|
|
5430
5528
|
n2[r] = i;
|
|
5431
|
-
return new
|
|
5529
|
+
return new Nn(n2);
|
|
5432
5530
|
}
|
|
5433
5531
|
/**
|
|
5434
5532
|
* Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
|
|
@@ -5502,7 +5600,7 @@
|
|
|
5502
5600
|
ref: n2.ref,
|
|
5503
5601
|
obj: {
|
|
5504
5602
|
...n2.obj,
|
|
5505
|
-
data: new
|
|
5603
|
+
data: new k(n2.obj.data, [n2.ref.blockId, n2.ref.name])
|
|
5506
5604
|
}
|
|
5507
5605
|
}))
|
|
5508
5606
|
};
|
|
@@ -5521,9 +5619,9 @@
|
|
|
5521
5619
|
ref: n2.ref,
|
|
5522
5620
|
obj: {
|
|
5523
5621
|
...n2.obj,
|
|
5524
|
-
data:
|
|
5622
|
+
data: Xn(
|
|
5525
5623
|
n2.obj.data,
|
|
5526
|
-
(r) => new
|
|
5624
|
+
(r) => new k(r, [n2.ref.blockId, n2.ref.name])
|
|
5527
5625
|
)
|
|
5528
5626
|
}
|
|
5529
5627
|
}))
|
|
@@ -5550,9 +5648,9 @@
|
|
|
5550
5648
|
)) == null ? void 0 : r.obj;
|
|
5551
5649
|
const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
|
|
5552
5650
|
if (n2)
|
|
5553
|
-
return
|
|
5651
|
+
return Bn(
|
|
5554
5652
|
n2,
|
|
5555
|
-
(i) => new
|
|
5653
|
+
(i) => new k(i, [e.blockId, e.name])
|
|
5556
5654
|
);
|
|
5557
5655
|
}
|
|
5558
5656
|
/**
|
|
@@ -5563,7 +5661,7 @@
|
|
|
5563
5661
|
getPColumnByRef(e) {
|
|
5564
5662
|
const n2 = this.getDataByRef(e);
|
|
5565
5663
|
if (n2)
|
|
5566
|
-
return
|
|
5664
|
+
return Vn(n2);
|
|
5567
5665
|
}
|
|
5568
5666
|
/**
|
|
5569
5667
|
* Returns spec associated with the ref ensuring that it is a p-column spec.
|
|
@@ -5573,7 +5671,7 @@
|
|
|
5573
5671
|
getPColumnSpecByRef(e) {
|
|
5574
5672
|
const n2 = this.getSpecByRef(e);
|
|
5575
5673
|
if (n2) {
|
|
5576
|
-
if (!
|
|
5674
|
+
if (!w$1(n2)) throw new Error(`not a PColumn spec (kind = ${n2.kind})`);
|
|
5577
5675
|
return n2;
|
|
5578
5676
|
}
|
|
5579
5677
|
}
|
|
@@ -5592,13 +5690,13 @@
|
|
|
5592
5690
|
findDataWithCompatibleSpec(e) {
|
|
5593
5691
|
const n2 = [];
|
|
5594
5692
|
e: for (const r of this.getData().entries) {
|
|
5595
|
-
if (!
|
|
5693
|
+
if (!w$1(r.obj.spec))
|
|
5596
5694
|
continue;
|
|
5597
5695
|
const i = r.obj.spec;
|
|
5598
|
-
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length &&
|
|
5696
|
+
if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && ye(e.domain, i.domain)) {
|
|
5599
5697
|
for (let o = 0; o < e.axesSpec.length; ++o) {
|
|
5600
5698
|
const s2 = e.axesSpec[o], a = i.axesSpec[o];
|
|
5601
|
-
if (s2.name !== a.name || s2.type !== a.type || !
|
|
5699
|
+
if (s2.name !== a.name || s2.type !== a.type || !ye(s2.domain, a.domain))
|
|
5602
5700
|
continue e;
|
|
5603
5701
|
}
|
|
5604
5702
|
n2.push(r.obj);
|
|
@@ -5613,9 +5711,9 @@
|
|
|
5613
5711
|
findLabels(e) {
|
|
5614
5712
|
const n2 = this.getData();
|
|
5615
5713
|
for (const r of n2.entries) {
|
|
5616
|
-
if (!
|
|
5714
|
+
if (!Fe(r.obj)) continue;
|
|
5617
5715
|
const i = r.obj.spec;
|
|
5618
|
-
if (i.name ===
|
|
5716
|
+
if (i.name === Pn.Label && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && ye(e.domain, i.axesSpec[0].domain)) {
|
|
5619
5717
|
if (r.obj.data.resourceType.name !== "PColumnData/Json")
|
|
5620
5718
|
throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
|
|
5621
5719
|
return Object.fromEntries(
|
|
@@ -5634,17 +5732,17 @@
|
|
|
5634
5732
|
* @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
|
|
5635
5733
|
*/
|
|
5636
5734
|
selectColumns(e) {
|
|
5637
|
-
const n2 = typeof e == "function" ? e :
|
|
5638
|
-
return this.getSpecs().entries.filter(({ obj: i }) =>
|
|
5735
|
+
const n2 = typeof e == "function" ? e : Un(e);
|
|
5736
|
+
return this.getSpecs().entries.filter(({ obj: i }) => w$1(i) ? n2(i) : false).map(({ ref: i, obj: o }) => {
|
|
5639
5737
|
const s2 = o;
|
|
5640
5738
|
let a = null;
|
|
5641
5739
|
const l2 = this;
|
|
5642
5740
|
return {
|
|
5643
|
-
id:
|
|
5741
|
+
id: We(i),
|
|
5644
5742
|
spec: s2,
|
|
5645
5743
|
get data() {
|
|
5646
|
-
var
|
|
5647
|
-
return a !== null || (a = (
|
|
5744
|
+
var c2;
|
|
5745
|
+
return a !== null || (a = (c2 = l2.getPColumnByRef(i)) == null ? void 0 : c2.data), a;
|
|
5648
5746
|
}
|
|
5649
5747
|
};
|
|
5650
5748
|
});
|
|
@@ -5654,13 +5752,12 @@
|
|
|
5654
5752
|
* @returns a map of axis value => label
|
|
5655
5753
|
*/
|
|
5656
5754
|
findLabelsForColumnAxis(e, n2) {
|
|
5657
|
-
var o;
|
|
5658
5755
|
const r = this.findLabels(e.axesSpec[n2]);
|
|
5659
5756
|
if (!r) return;
|
|
5660
|
-
const i = (
|
|
5757
|
+
const i = wn(e, `pl7.app/axisKeys/${n2}`);
|
|
5661
5758
|
if (i !== void 0) {
|
|
5662
|
-
const
|
|
5663
|
-
return Object.fromEntries(
|
|
5759
|
+
const o = JSON.parse(i);
|
|
5760
|
+
return Object.fromEntries(o.map((s2) => [s2, r[s2] ?? "Unlabelled"]));
|
|
5664
5761
|
} else
|
|
5665
5762
|
return r;
|
|
5666
5763
|
}
|
|
@@ -5671,8 +5768,8 @@
|
|
|
5671
5768
|
V(this, "_argsCache");
|
|
5672
5769
|
V(this, "_uiStateCache");
|
|
5673
5770
|
V(this, "_activeArgsCache");
|
|
5674
|
-
V(this, "resultPool", new
|
|
5675
|
-
this.ctx =
|
|
5771
|
+
V(this, "resultPool", new Qt());
|
|
5772
|
+
this.ctx = v();
|
|
5676
5773
|
}
|
|
5677
5774
|
get args() {
|
|
5678
5775
|
if (this._argsCache === void 0) {
|
|
@@ -5706,16 +5803,16 @@
|
|
|
5706
5803
|
// return this.ctx.featureFlags;
|
|
5707
5804
|
// }
|
|
5708
5805
|
getNamedAccessor(e) {
|
|
5709
|
-
return
|
|
5806
|
+
return Ce(
|
|
5710
5807
|
this.ctx.getAccessorHandleByName(e),
|
|
5711
|
-
(n2) => new
|
|
5808
|
+
(n2) => new k(n2, [e])
|
|
5712
5809
|
);
|
|
5713
5810
|
}
|
|
5714
5811
|
get prerun() {
|
|
5715
|
-
return this.getNamedAccessor(
|
|
5812
|
+
return this.getNamedAccessor(ze);
|
|
5716
5813
|
}
|
|
5717
5814
|
get outputs() {
|
|
5718
|
-
return this.getNamedAccessor(
|
|
5815
|
+
return this.getNamedAccessor(Xe);
|
|
5719
5816
|
}
|
|
5720
5817
|
/**
|
|
5721
5818
|
* Find labels data for a given axis id. It will search for a label column and return its data as a map.
|
|
@@ -5727,7 +5824,7 @@
|
|
|
5727
5824
|
}
|
|
5728
5825
|
verifyInlineAndExplicitColumnsSupport(e) {
|
|
5729
5826
|
var i;
|
|
5730
|
-
const n2 = e.some((o) => !(o.data instanceof
|
|
5827
|
+
const n2 = e.some((o) => !(o.data instanceof k) || Qe$1(o.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
|
|
5731
5828
|
if (n2 && !r) throw Error("Inline or explicit columns not supported");
|
|
5732
5829
|
}
|
|
5733
5830
|
patchPTableDef(e) {
|
|
@@ -5738,14 +5835,14 @@
|
|
|
5738
5835
|
filters: [...e.partitionFilters, ...e.filters]
|
|
5739
5836
|
}), (r = this.ctx.featureFlags) != null && r.pFrameInSetFilterSupport || (e = {
|
|
5740
5837
|
...e,
|
|
5741
|
-
partitionFilters:
|
|
5742
|
-
filters:
|
|
5838
|
+
partitionFilters: Ae(e.partitionFilters),
|
|
5839
|
+
filters: Ae(e.filters)
|
|
5743
5840
|
}), e;
|
|
5744
5841
|
}
|
|
5745
5842
|
// TODO remove all non-PColumn fields
|
|
5746
5843
|
createPFrame(e) {
|
|
5747
5844
|
return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
|
|
5748
|
-
e.map((n2) =>
|
|
5845
|
+
e.map((n2) => Re(n2))
|
|
5749
5846
|
);
|
|
5750
5847
|
}
|
|
5751
5848
|
createPTable(e) {
|
|
@@ -5758,8 +5855,8 @@
|
|
|
5758
5855
|
partitionFilters: e.filters ?? [],
|
|
5759
5856
|
filters: [],
|
|
5760
5857
|
sorting: e.sorting ?? []
|
|
5761
|
-
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(
|
|
5762
|
-
|
|
5858
|
+
}) : n2 = this.patchPTableDef(e), this.verifyInlineAndExplicitColumnsSupport(Mn(n2.src)), this.ctx.createPTable(
|
|
5859
|
+
In(n2, (r) => Re(r))
|
|
5763
5860
|
);
|
|
5764
5861
|
}
|
|
5765
5862
|
/** @deprecated scheduled for removal from SDK */
|
|
@@ -5779,17 +5876,17 @@
|
|
|
5779
5876
|
this.ctx.logError(e);
|
|
5780
5877
|
}
|
|
5781
5878
|
}
|
|
5782
|
-
const
|
|
5783
|
-
function
|
|
5879
|
+
const Zt = "1.42.16", X = Zt;
|
|
5880
|
+
function en(t) {
|
|
5784
5881
|
return t.__renderLambda === true;
|
|
5785
5882
|
}
|
|
5786
|
-
function
|
|
5883
|
+
function ge(t) {
|
|
5787
5884
|
if (t !== void 0)
|
|
5788
|
-
return
|
|
5885
|
+
return en(t) ? t.handle : t;
|
|
5789
5886
|
}
|
|
5790
5887
|
const w = class w2 {
|
|
5791
|
-
constructor(e, n2, r, i, o, s2, a, l2,
|
|
5792
|
-
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = o, this._sections = s2, this._title = a, this._enrichmentTargets = l2, this._featureFlags =
|
|
5888
|
+
constructor(e, n2, r, i, o, s2, a, l2, c2) {
|
|
5889
|
+
this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = o, this._sections = s2, this._title = a, this._enrichmentTargets = l2, this._featureFlags = c2;
|
|
5793
5890
|
}
|
|
5794
5891
|
static create(e = "Heavy") {
|
|
5795
5892
|
return new w2(
|
|
@@ -6013,13 +6110,13 @@
|
|
|
6013
6110
|
sdkVersion: X,
|
|
6014
6111
|
renderingMode: this._renderingMode,
|
|
6015
6112
|
initialArgs: this._initialArgs,
|
|
6016
|
-
inputsValid:
|
|
6017
|
-
sections:
|
|
6113
|
+
inputsValid: ge(this._inputsValid),
|
|
6114
|
+
sections: ge(this._sections),
|
|
6018
6115
|
outputs: Object.fromEntries(
|
|
6019
|
-
Object.entries(this._outputs).map(([r, i]) => [r,
|
|
6116
|
+
Object.entries(this._outputs).map(([r, i]) => [r, ge(i)])
|
|
6020
6117
|
)
|
|
6021
6118
|
};
|
|
6022
|
-
return globalThis.platformaApiVersion = e,
|
|
6119
|
+
return globalThis.platformaApiVersion = e, Vt() ? He({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: n2 };
|
|
6023
6120
|
}
|
|
6024
6121
|
};
|
|
6025
6122
|
V(w, "INITIAL_BLOCK_FEATURE_FLAGS", {
|
|
@@ -6027,8 +6124,8 @@
|
|
|
6027
6124
|
requiresUIAPIVersion: 1,
|
|
6028
6125
|
requiresModelAPIVersion: 1
|
|
6029
6126
|
});
|
|
6030
|
-
let
|
|
6031
|
-
const platforma =
|
|
6127
|
+
let Ne = w;
|
|
6128
|
+
const platforma = Ne.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
|
|
6032
6129
|
return [{ type: "link", href: "/", label: "Main" }];
|
|
6033
6130
|
}).title((ctx) => "Pool explorer").done();
|
|
6034
6131
|
exports2.platforma = platforma;
|