@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/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((k) => typeof obj[obj[k]] !== "number");
23
+ const validKeys = util2.objectKeys(obj).filter((k2) => typeof obj[obj[k2]] !== "number");
24
24
  const filtered = {};
25
- for (const k of validKeys) {
26
- filtered[k] = obj[k];
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((x2) => !!x2)
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 = (x2) => x2.status === "aborted";
458
- const isDirty = (x2) => x2.status === "dirty";
459
- const isValid = (x2) => x2.status === "valid";
460
- const isAsync = (x2) => typeof Promise !== "undefined" && x2 instanceof Promise;
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((x2) => !!x2);
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((x2) => !!x2),
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((x2) => !!x2),
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(x2) {
3918
- return x2 && x2.__esModule && Object.prototype.hasOwnProperty.call(x2, "default") ? x2["default"] : x2;
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 Be$1 = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
3959
- var V$1 = Object.defineProperty;
3960
- var T = (e, n2, r) => n2 in e ? V$1(e, n2, { enumerable: true, configurable: true, writable: true, value: r }) : e[n2] = r;
3961
- var d = (e, n2, r) => T(e, typeof n2 != "symbol" ? n2 + "" : n2, r);
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 g(e) {
3968
+ function k$1(e) {
3969
3969
  throw new Error("Unexpected object: " + e);
3970
3970
  }
3971
- function Se(e) {
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 Oe$1(e, n2) {
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 r = {};
3995
- for (const [t, o] of Object.entries(e.parts))
3996
- r[t] = n2(o);
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: r
3999
+ parts: t
4000
4000
  };
4001
4001
  }
4002
4002
  case "BinaryPartitioned": {
4003
- const r = {};
4004
- for (const [t, o] of Object.entries(e.parts))
4005
- r[t] = {
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: r
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 _(e) {
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 Fe(e) {
4034
- return _(e) ? e.type === "JsonPartitioned" || e.type === "BinaryPartitioned" : false;
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 je(e) {
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 Ie(e) {
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: n2
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: n2
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: n2
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 h(e) {
4099
- const { type: n2, name: r, domain: t } = e, o = { type: n2, name: r };
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 I(e) {
4103
- return e.map(h);
4124
+ function me$1(e) {
4125
+ return JSON.parse(e);
4104
4126
  }
4105
- function Te$1(e) {
4106
- return Be$1(h(e));
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
- function G$1(e, n2) {
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 r in n2)
4112
- if (e[r] !== n2[r]) return false;
4198
+ for (const t in n2)
4199
+ if (e[t] !== n2[t]) return false;
4113
4200
  return true;
4114
4201
  }
4115
- function X$1(e, n2) {
4116
- return e.name === n2.name && G$1(e.domain, n2.domain);
4202
+ function we(e, n2) {
4203
+ return e.name === n2.name && Ae$1(e.domain, n2.domain);
4117
4204
  }
4118
- function Be(e, n2) {
4119
- return { ...e, src: b$1(e.src, n2) };
4205
+ function In(e, n2) {
4206
+ return { ...e, src: E(e.src, n2) };
4120
4207
  }
4121
- function b$1(e, n2) {
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((r) => b$1(r, n2))
4228
+ entries: e.entries.map((t) => E(t, n2))
4142
4229
  };
4143
4230
  case "outer":
4144
4231
  return {
4145
4232
  type: "outer",
4146
- primary: b$1(e.primary, n2),
4147
- secondary: e.secondary.map((r) => b$1(r, n2))
4233
+ primary: E(e.primary, n2),
4234
+ secondary: e.secondary.map((t) => E(t, n2))
4148
4235
  };
4149
4236
  default:
4150
- g(e);
4237
+ k$1(e);
4151
4238
  }
4152
4239
  }
4153
- function Q$1(e) {
4154
- return Be$1(e);
4240
+ function Se$1(e) {
4241
+ return We(e);
4155
4242
  }
4156
- function A(e) {
4157
- return Be$1(h(e));
4243
+ function N(e) {
4244
+ return We(p$1(e));
4158
4245
  }
4159
- function x(e, n2) {
4246
+ function R(e, n2) {
4160
4247
  return JSON.stringify([e, n2]);
4161
4248
  }
4162
- class Me {
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
- d(this, "domains", /* @__PURE__ */ new Map());
4169
- d(this, "axes", /* @__PURE__ */ new Map());
4170
- d(this, "domainPacks", []);
4171
- d(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
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 r = Object.entries(n2);
4174
- r.sort((t, o) => t[0].localeCompare(o[0]));
4175
- for (const [t, o] of r) {
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 s2 = o.axesSpec[i], a = A(s2);
4178
- this.axes.set(a, { anchor: t, idx: i });
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((s2, a) => s2[0].localeCompare(a[0])), this.domainPackToAnchor.set(JSON.stringify(i), t), this.domainPacks.push(i.map(([s2]) => s2));
4183
- for (const [s2, a] of i) {
4184
- const u2 = x(s2, a);
4185
- this.domains.set(u2, t);
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, r) {
4194
- const t = {
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 s2 of this.domainPacks) {
4202
- const a = [];
4203
- for (const c2 of s2) {
4204
- const f = n2.domain[c2];
4205
- if (f !== void 0)
4206
- a.push([c2, f]);
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(a));
4297
+ const u2 = this.domainPackToAnchor.get(JSON.stringify(s2));
4211
4298
  if (u2 !== void 0) {
4212
- t.domainAnchor = u2, o = new Set(s2);
4299
+ r.domainAnchor = u2, o = new Set(a);
4213
4300
  break;
4214
4301
  }
4215
4302
  }
4216
- for (const [s2, a] of Object.entries(n2.domain ?? {})) {
4217
- if (o !== void 0 && o.has(s2))
4303
+ for (const [a, s2] of Object.entries(n2.domain ?? {})) {
4304
+ if (o !== void 0 && o.has(a))
4218
4305
  continue;
4219
- const u2 = x(s2, a), c2 = this.domains.get(u2);
4220
- t.domain ?? (t.domain = {}), t.domain[s2] = c2 ? { anchor: c2 } : a;
4221
- }
4222
- if (t.axes = n2.axesSpec.map((s2) => {
4223
- const a = A(s2), u2 = this.axes.get(a);
4224
- return u2 === void 0 ? h(s2) : u2;
4225
- }), !r || r.length === 0)
4226
- return t;
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 s2 of r) {
4229
- const [a, u2] = s2;
4230
- if (typeof a == "number") {
4231
- if (a < 0 || a >= n2.axesSpec.length)
4232
- throw new Error(`Axis index ${a} is out of bounds (0-${n2.axesSpec.length - 1})`);
4233
- i.push([a, u2]);
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((f) => f.name === a);
4322
+ const c2 = n2.axesSpec.findIndex((d) => d.name === s2);
4236
4323
  if (c2 === -1)
4237
- throw new Error(`Axis with name "${a}" not found in the column specification`);
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((s2, a) => s2[0] - a[0]), {
4242
- source: t,
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, r) {
4253
- return Q$1(this.derive(n2, r));
4339
+ deriveS(n2, t) {
4340
+ return Se$1(this.derive(n2, t));
4254
4341
  }
4255
4342
  }
4256
- function _e(e, n2, r) {
4257
- const t = { ...n2 }, o = (r == null ? void 0 : r.ignoreMissingDomains) ?? false;
4258
- if (t.domainAnchor !== void 0) {
4259
- const i = e[t.domainAnchor];
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 "${t.domainAnchor}" not found`);
4262
- const s2 = i.domain || {};
4263
- t.domain = { ...s2, ...t.domain }, delete t.domainAnchor;
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 (t.domain) {
4352
+ if (r.domain) {
4266
4353
  const i = {};
4267
- for (const [s2, a] of Object.entries(t.domain))
4268
- if (typeof a == "string")
4269
- i[s2] = a;
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[a.anchor];
4358
+ const u2 = e[s2.anchor];
4272
4359
  if (!u2)
4273
- throw new Error(`Anchor "${a.anchor}" not found for domain key "${s2}"`);
4274
- if (!u2.domain || u2.domain[s2] === void 0) {
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 "${s2}" not found in anchor "${a.anchor}"`);
4363
+ throw new Error(`Domain key "${a}" not found in anchor "${s2.anchor}"`);
4277
4364
  continue;
4278
4365
  }
4279
- i[s2] = u2.domain[s2];
4366
+ i[a] = u2.domain[a];
4280
4367
  }
4281
- t.domain = i;
4368
+ r.domain = i;
4282
4369
  }
4283
- return t.axes && (t.axes = t.axes.map((i) => Y(e, i))), t;
4370
+ return r.axes && (r.axes = r.axes.map((i) => Ee(e, i))), r;
4284
4371
  }
4285
- function Y(e, n2) {
4286
- if (!Z(n2))
4372
+ function Ee(e, n2) {
4373
+ if (!Oe$1(n2))
4287
4374
  return n2;
4288
- const r = n2.anchor, t = e[r];
4289
- if (!t)
4290
- throw new Error(`Anchor "${r}" not found for axis reference`);
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 >= t.axesSpec.length)
4293
- throw new Error(`Axis index ${n2.idx} out of bounds for anchor "${r}"`);
4294
- return t.axesSpec[n2.idx];
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 = t.axesSpec.filter((i) => i.name === n2.name);
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 "${r}"`);
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 "${r}"`);
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 = t.axesSpec.filter((i) => X$1(n2.id, h(i)));
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 "${r}"`);
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 "${r}"`);
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 Z(e) {
4399
+ function Oe$1(e) {
4313
4400
  return typeof e == "object" && "anchor" in e;
4314
4401
  }
4315
- function l$1(e) {
4402
+ function w$1(e) {
4316
4403
  return e.kind === "PColumn";
4317
4404
  }
4318
- function ee$1(e) {
4319
- return l$1(e.spec);
4405
+ function Fe(e) {
4406
+ return w$1(e.spec);
4320
4407
  }
4321
- function We$1(e) {
4322
- if (!ee$1(e)) throw new Error(`not a PColumn (kind = ${e.spec.kind})`);
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 Ge$1(e, n2) {
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 Xe$1(e) {
4332
- const n2 = /* @__PURE__ */ new Map(), r = (t) => {
4333
- switch (t.type) {
4418
+ function Mn(e) {
4419
+ const n2 = /* @__PURE__ */ new Map(), t = (r) => {
4420
+ switch (r.type) {
4334
4421
  case "column":
4335
- n2.set(t.column.id, t.column);
4422
+ n2.set(r.column.id, r.column);
4336
4423
  return;
4337
4424
  case "slicedColumn":
4338
- n2.set(t.column.id, t.column);
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 t.entries) r(o);
4431
+ for (const o of r.entries) t(o);
4345
4432
  return;
4346
4433
  case "outer":
4347
- r(t.primary);
4348
- for (const o of t.secondary) r(o);
4434
+ t(r.primary);
4435
+ for (const o of r.secondary) t(o);
4349
4436
  return;
4350
4437
  default:
4351
- g(t);
4438
+ k$1(r);
4352
4439
  }
4353
4440
  };
4354
- return r(e), [...n2.values()];
4441
+ return t(e), [...n2.values()];
4355
4442
  }
4356
- function P(e, n2) {
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 r = n2.domain || {};
4368
- for (const [t, o] of Object.entries(e.domain))
4369
- if (r[t] !== o)
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 E(e, n2) {
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 r = e.domain || {};
4386
- for (const [t, o] of Object.entries(n2.domain))
4387
- if (r[t] !== o)
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 r = e.axesSpec.map(h);
4478
+ const t = e.axesSpec.map(p$1);
4392
4479
  if (n2.partialAxesMatch) {
4393
- for (const t of n2.axes)
4394
- if (!r.some((o) => P(t, o)))
4480
+ for (const r of n2.axes)
4481
+ if (!t.some((o) => T(r, o)))
4395
4482
  return false;
4396
4483
  } else {
4397
- if (r.length !== n2.axes.length)
4484
+ if (t.length !== n2.axes.length)
4398
4485
  return false;
4399
- for (let t = 0; t < n2.axes.length; t++)
4400
- if (!P(n2.axes[t], r[t]))
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 r = e.annotations || {};
4406
- for (const [t, o] of Object.entries(n2.annotations))
4407
- if (r[t] !== o)
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 r = e.annotations || {};
4412
- for (const [t, o] of Object.entries(n2.annotationPatterns)) {
4413
- const i = r[t];
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 Qe(e) {
4421
- return Array.isArray(e) ? (n2) => e.some((r) => l$1(n2) && E(n2, r)) : (n2) => l$1(n2) && E(n2, e);
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 Ye(e) {
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), l$1(e) && (n2.axesSpec = I(e.axesSpec)), Be$1(n2);
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 nn(e) {
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 tn(e, n2 = true) {
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: r, ...t } = e;
4449
- return t;
4535
+ const { requireEnrichments: t, ...r } = e;
4536
+ return r;
4450
4537
  }
4451
4538
  }
4452
- function an(e, n2) {
4539
+ function Xn(e, n2) {
4453
4540
  return e.ok ? { ok: true, value: n2(e.value) } : e;
4454
4541
  }
4455
- const ae = 24;
4456
- z$1.string().length(ae).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
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 it = Object.defineProperty;
4517
- var ot = (t, e, n2) => e in t ? it(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4518
- var V = (t, e, n2) => ot(t, typeof e != "symbol" ? e + "" : 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 Pt() {
4609
+ function Vt() {
4523
4610
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4524
4611
  }
4525
- function $e(t) {
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 At() {
4618
+ function kt() {
4532
4619
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4533
4620
  }
4534
- function b() {
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 = At();
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 fe = /* @__PURE__ */ new Map();
4545
- function wt(t, e) {
4546
- t in b().callbackRegistry || (b().callbackRegistry[t] = (n2) => {
4547
- for (const r of fe.get(t))
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
- }, fe.set(t, [])), fe.get(t).push(e);
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, wt(e, (r) => {
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 ye(t, e) {
4659
+ function Ce(t, e) {
4573
4660
  return t === void 0 ? void 0 : e(t);
4574
4661
  }
4575
- class O {
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 ye(
4615
- b().resolveWithCommon(this.handle, e, ...n2),
4616
- (i) => new O(i, r)
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 b().getResourceType(this.handle);
4707
+ return v().getResourceType(this.handle);
4621
4708
  }
4622
4709
  getInputsLocked() {
4623
- return b().getInputsLocked(this.handle);
4710
+ return v().getInputsLocked(this.handle);
4624
4711
  }
4625
4712
  getOutputsLocked() {
4626
- return b().getOutputsLocked(this.handle);
4713
+ return v().getOutputsLocked(this.handle);
4627
4714
  }
4628
4715
  getIsReadyOrError() {
4629
- return b().getIsReadyOrError(this.handle);
4716
+ return v().getIsReadyOrError(this.handle);
4630
4717
  }
4631
4718
  getIsFinal() {
4632
- return b().getIsFinal(this.handle);
4719
+ return v().getIsFinal(this.handle);
4633
4720
  }
4634
4721
  getError() {
4635
4722
  const e = [...this.resolvePath, "error"];
4636
- return ye(
4637
- b().getError(this.handle),
4638
- (n2) => new O(n2, e)
4723
+ return Ce(
4724
+ v().getError(this.handle),
4725
+ (n2) => new k(n2, e)
4639
4726
  );
4640
4727
  }
4641
4728
  listInputFields() {
4642
- return b().listInputFields(this.handle);
4729
+ return v().listInputFields(this.handle);
4643
4730
  }
4644
4731
  listOutputFields() {
4645
- return b().listOutputFields(this.handle);
4732
+ return v().listOutputFields(this.handle);
4646
4733
  }
4647
4734
  listDynamicFields() {
4648
- return b().listDynamicFields(this.handle);
4735
+ return v().listDynamicFields(this.handle);
4649
4736
  }
4650
4737
  getKeyValueBase64(e) {
4651
- return b().getKeyValueBase64(this.handle, e);
4738
+ return v().getKeyValueBase64(this.handle, e);
4652
4739
  }
4653
4740
  getKeyValueAsString(e) {
4654
- return b().getKeyValueAsString(this.handle, e);
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 b().getDataBase64(this.handle);
4749
+ return v().getDataBase64(this.handle);
4663
4750
  }
4664
4751
  getDataAsString() {
4665
- return b().getDataAsString(this.handle);
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 (!ee$1(o)) throw new Error(`not a PColumn (kind = ${o.spec.kind})`);
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 = b().parsePObjectCollection(
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] = Ge$1(s2, (l2) => new O(l2, a));
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(b().getBlobContentAsBase64(this.handle, e));
4788
+ return new L(v().getBlobContentAsBase64(this.handle, e));
4702
4789
  }
4703
4790
  getFileContentAsString(e) {
4704
- return new L(b().getBlobContentAsString(this.handle, e));
4791
+ return new L(v().getBlobContentAsString(this.handle, e));
4705
4792
  }
4706
4793
  getFileContentAsJson(e) {
4707
4794
  return new L(
4708
- b().getBlobContentAsString(this.handle, e)
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(b().getDownloadedBlobContentHandle(this.handle));
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(b().getOnDemandBlobContentHandle(this.handle));
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(b().extractArchiveAndGetURL(this.handle, e));
4838
+ return new L(v().extractArchiveAndGetURL(this.handle, e));
4752
4839
  }
4753
4840
  getImportProgress() {
4754
- return new L(b().getImportProgress(this.handle));
4841
+ return new L(v().getImportProgress(this.handle));
4755
4842
  }
4756
4843
  getLastLogs(e) {
4757
- return new L(b().getLastLogs(this.handle, e));
4844
+ return new L(v().getLastLogs(this.handle, e));
4758
4845
  }
4759
4846
  getProgressLog(e) {
4760
- return new L(b().getProgressLog(this.handle, e));
4847
+ return new L(v().getProgressLog(this.handle, e));
4761
4848
  }
4762
4849
  getProgressLogWithInfo(e) {
4763
- return new L(b().getProgressLogWithInfo(this.handle, e));
4850
+ return new L(v().getProgressLogWithInfo(this.handle, e));
4764
4851
  }
4765
4852
  getLogHandle() {
4766
- return new L(b().getLogHandle(this.handle));
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
- (u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
4877
+ (c2) => [c2, this.resolve({ field: c2, assertFieldType: r })]
4791
4878
  );
4792
- return o && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, h2]) => s2(u2, h2));
4879
+ return o && (l2 = l2.filter((c2) => c2[1] !== void 0)), l2.map(([c2, m2]) => s2(c2, m2));
4793
4880
  }
4794
4881
  }
4795
- const We = "staging", Ge = "main";
4796
- const It = "pl7.app/label", _t = "pl7.app/trace", Lt = z$1.object({
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
- }), Et = z$1.array(Lt), Vt = 1e-3, kt = "__LABEL__", Ee = "__LABEL__@1";
4802
- function ze(t, e, n2 = {}) {
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((d2) => {
4804
- var c2, v;
4805
- const y = e(d2);
4806
- let p2, g2, C;
4807
- "spec" in y && typeof y.spec == "object" ? (p2 = y.spec, g2 = y.prefixTrace, C = y.suffixTrace) : p2 = y;
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
- ...S,
4811
- ...C ?? []
4896
+ ...T2,
4897
+ ...P ?? []
4812
4898
  ];
4813
4899
  if (E2 !== void 0) {
4814
- const I2 = { label: E2, type: kt, importance: -2 };
4815
- n2.addLabelAsSuffix ? P2.push(I2) : P2.splice(0, 0, I2);
4816
- }
4817
- const T2 = [], x2 = /* @__PURE__ */ new Map();
4818
- for (let I2 = P2.length - 1; I2 >= 0; --I2) {
4819
- const { type: $ } = P2[I2], K = P2[I2].importance ?? 0, j = (x2.get($) ?? 0) + 1;
4820
- x2.set($, j);
4821
- const N = `${$}@${j}`;
4822
- o.set(N, (o.get(N) ?? 0) + 1), r.set(
4823
- N,
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(N) ?? Number.NEGATIVE_INFINITY,
4826
- K - (P2.length - I2) * Vt
4911
+ r.get(O) ?? Number.NEGATIVE_INFINITY,
4912
+ K - (S.length - u2) * Kt
4827
4913
  )
4828
- ), T2.push({ ...P2[I2], fullType: N, occurrenceIndex: j });
4914
+ ), C.push({ ...S[u2], fullType: O, occurrenceIndex: B });
4829
4915
  }
4830
- return T2.reverse(), {
4831
- value: d2,
4916
+ return C.reverse(), {
4917
+ value: f,
4832
4918
  spec: p2,
4833
4919
  label: E2,
4834
- fullTrace: T2
4920
+ fullTrace: C
4835
4921
  };
4836
- }), a = [], l2 = [], u2 = [...r];
4837
- u2.sort(([, d2], [, y]) => y - d2);
4838
- for (const [d2] of u2)
4839
- d2.endsWith("@1") || o.get(d2) === t.length ? a.push(d2) : l2.push(d2);
4840
- const h2 = (d2, y = false) => {
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 C = s2[g2], E2 = C.fullTrace.filter((P2) => d2.has(P2.fullType) || i && i.has(P2.type));
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 (y)
4931
+ if (y2)
4846
4932
  p2.push({
4847
4933
  label: "Unlabeled",
4848
- value: C.value
4934
+ value: P.value
4849
4935
  });
4850
4936
  else return;
4851
- const F = E2.map((P2) => P2.label), S = n2.separator ?? " / ";
4937
+ const x = E2.map((S) => S.label), T2 = n2.separator ?? " / ";
4852
4938
  p2.push({
4853
- label: F.join(S),
4854
- value: C.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 h2(new Set(Ee), true);
4862
- }
4863
- let f = 0, m2 = -1;
4864
- for (; f < a.length; ) {
4865
- const d2 = /* @__PURE__ */ new Set();
4866
- n2.includeNativeLabel && d2.add(Ee);
4867
- for (let p2 = 0; p2 < f; ++p2) d2.add(a[p2]);
4868
- m2 >= 0 && d2.add(a[m2]);
4869
- const y = h2(d2);
4870
- if (y !== void 0 && new Set(y.map((p2) => p2.label)).size === t.length) return y;
4871
- m2++, m2 >= a.length && (f++, m2 = f);
4872
- }
4873
- return h2(/* @__PURE__ */ new Set([...a, ...l2]), true);
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", J = ee + "BinaryPartitioned", Xe = ee + "Partitioned/", ce = Xe + "JsonPartitioned", z = Xe + "BinaryPartitioned";
4876
- const ve = (t) => {
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 Ot(t) {
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 J:
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 J:
4992
+ case $:
4907
4993
  for (let o of t.listInputFields()) {
4908
- e === J && (o = ve(o).baseKey);
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 = ve(l2).baseKey);
4921
- const u2 = [...s2, ...JSON.parse(l2)];
4922
- r.push(u2);
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 Dt(t) {
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 Rt(t) {
5034
+ function $t(t) {
4949
5035
  if (t === void 0) return;
4950
- if (_(t))
4951
- return Dt(t);
4952
- const e = Ot(t);
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 Ce(t, e = []) {
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 J: {
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 = ve(s2), l2 = t.resolve({ field: s2, assertFieldType: "Input" });
5081
+ const a = Se(s2), l2 = t.resolve({ field: s2, assertFieldType: "Input" });
4996
5082
  if (l2 === void 0) return;
4997
- let u2 = o.get(a.baseKey);
4998
- u2 || (u2 = {}, o.set(a.baseKey, u2)), a.type === "index" ? u2.index = l2 : u2.values = l2;
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 = Ce(a, JSON.parse(s2));
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 !== J)
5046
- throw new Error(`Expected ${J} inside ${n2}, but got ${a.resourceType.name}`);
5047
- const l2 = Ce(a, JSON.parse(s2));
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 Nt(t) {
5149
+ function Jt(t) {
5064
5150
  if (t !== void 0) {
5065
- if (_(t)) return t;
5066
- if (Se(t)) return je(t);
5067
- if (t instanceof O) return Ce(t);
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 Ut(t, e) {
5072
- const n2 = [...e].sort((o, s2) => s2[0] - o[0]);
5073
- if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
5074
- const { partitionKeyLength: o } = t;
5075
- for (const [s2] of e)
5076
- if (s2 >= o)
5077
- throw new Error(`Can't filter on non-partitioned axis ${s2}. Must be >= ${o}`);
5078
- } else if (t.type === "Json") {
5079
- const { keyLength: o } = t;
5080
- for (const [s2] of e)
5081
- if (s2 >= o)
5082
- throw new Error(`Can't filter on non-data axis ${s2}. Must be >= ${o}`);
5083
- }
5084
- const r = (o) => {
5085
- for (const [s2, a] of n2)
5086
- if (o[s2] !== a)
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
- }, i = (o) => {
5090
- const s2 = [...o];
5091
- for (const [a] of n2)
5092
- s2.splice(a, 1);
5093
- return s2;
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: o
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: o
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: o
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 Kt(t) {
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 Mt {
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 : Qe(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 jt(t) {
5244
+ function Ht(t) {
5147
5245
  if (t)
5148
5246
  return t.map((e) => ({
5149
- type: `split:${Te$1(e.axisId)}`,
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 qt(t) {
5253
+ function zt(t) {
5156
5254
  if (t)
5157
5255
  return t.map((e) => [e.axisIdx, e.value]);
5158
5256
  }
5159
- function Bt(t, e) {
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 Be$1({ id: t, axisFilters: n2 });
5260
+ return We({ id: t, axisFilters: n2 });
5163
5261
  }
5164
- function Ve(t) {
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 Jt(t) {
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 Mt(this.defaultProviderStore)]);
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 u2 = () => false;
5305
+ let c2 = () => false;
5208
5306
  if (a) {
5209
5307
  const p2 = (Array.isArray(a) ? a : [a]).map((g2) => {
5210
- if (Ve(g2)) {
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 Qe(_e(r.anchors, g2, n2));
5311
+ return Un(Rn(r.anchors, g2, n2));
5214
5312
  } else
5215
- return Qe(g2);
5313
+ return Un(g2);
5216
5314
  });
5217
- u2 = (g2) => p2.some((C) => C(g2));
5315
+ c2 = (g2) => p2.some((P) => P(g2));
5218
5316
  }
5219
- const h$1 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], f = [], m2 = /* @__PURE__ */ new Set();
5220
- for (const p2 of h$1) {
5221
- const g2 = Ve(p2);
5222
- let C;
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
- C = _e(r.anchors, p2, n2);
5324
+ P = Rn(r.anchors, p2, n2);
5227
5325
  } else
5228
- C = p2;
5229
- const E2 = /* @__PURE__ */ new Set(), F = [];
5230
- for (const T2 of this.providers) {
5231
- const x2 = T2.selectColumns(C);
5232
- for (const c2 of x2) {
5233
- if (u2(c2.spec)) continue;
5234
- if (E2.has(c2.id))
5235
- throw new Error(`Duplicate column id ${c2.id} in provider ${T2.constructor.name}`);
5236
- const v = Ye(c2.spec);
5237
- m2.has(v) || (E2.add(c2.id), m2.add(v), F.push(c2));
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 (F.length === 0) continue;
5241
- const S = Jt(p2), P2 = S.length > 0;
5242
- for (const T2 of F) {
5243
- if (!l$1(T2.spec)) continue;
5244
- const x2 = T2.spec;
5245
- if (P2) {
5246
- if (Kt(T2.data))
5247
- throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${T2.id}`);
5248
- const c2 = Nt(T2.data);
5249
- if (!c2) {
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 (!Fe(c2))
5254
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c2.type} for column ${T2.id}`);
5255
- const v = Rt(c2), I2 = S[S.length - 1];
5256
- if (I2 >= c2.partitionKeyLength)
5257
- throw new Error(`Not enough partition keys (${c2.partitionKeyLength}) for requested split axes (max index ${I2}) in column ${x2.name}`);
5258
- const $ = S.map((_2) => this.findLabels(h(x2.axesSpec[_2]))), K = [], j = (_2, W) => {
5259
- if (W >= S.length) {
5260
- if (K.push([..._2]), K.length > 1e4)
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 M = S[W];
5265
- if (M >= v.length)
5266
- throw new Error(`Axis index ${M} out of bounds for unique keys array (length ${v.length}) during split key generation for column ${T2.id}`);
5267
- const q = v[M];
5268
- if (!q || q.length === 0) {
5269
- K.length = 0;
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 te of q)
5273
- _2.push(te), j(_2, W + 1), _2.pop();
5370
+ for (const te2 of j)
5371
+ _2.push(te2), _e(_2, W + 1), _2.pop();
5274
5372
  };
5275
- if (j([], 0), K.length === 0)
5373
+ if (_e([], 0), O.length === 0)
5276
5374
  continue;
5277
- const N = [...x2.axesSpec], et = S.map((_2) => _2);
5278
- for (let _2 = S.length - 1; _2 >= 0; _2--)
5279
- N.splice(S[_2], 1);
5280
- const tt = { ...x2, axesSpec: N };
5281
- for (const _2 of K) {
5282
- const W = _2.map((M, q) => {
5283
- const te = et[q], nt = h(x2.axesSpec[te]), de = $[q], rt = (de == null ? void 0 : de[M]) ?? String(M);
5284
- return { axisIdx: te, axisId: nt, value: M, label: rt };
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
- f.push({
5384
+ d.push({
5287
5385
  type: "split",
5288
- originalColumn: T2,
5289
- spec: x2,
5290
- adjustedSpec: tt,
5291
- dataEntries: c2,
5386
+ originalColumn: C,
5387
+ spec: I2,
5388
+ adjustedSpec: it,
5389
+ dataEntries: u2,
5292
5390
  axisFilters: W
5293
5391
  });
5294
5392
  }
5295
5393
  } else
5296
- f.push({
5394
+ d.push({
5297
5395
  type: "direct",
5298
- originalColumn: T2,
5299
- spec: x2,
5300
- adjustedSpec: x2
5396
+ originalColumn: C,
5397
+ spec: I2,
5398
+ adjustedSpec: I2
5301
5399
  });
5302
5400
  }
5303
5401
  }
5304
- if (f.length === 0) return [];
5305
- const d2 = ze(
5306
- f,
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" ? jt(p2.axisFilters) : void 0
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 d2) {
5314
- const { originalColumn: C, spec: E2 } = p2, F = p2.type === "split" ? p2.axisFilters : void 0, S = qt(F);
5315
- let P2;
5316
- r ? P2 = r.deriveS(E2, S) : P2 = Bt(C.id, S);
5317
- let T2 = { ...p2.adjustedSpec };
5318
- s2 && (T2 = {
5319
- ...T2,
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
- ...T2.annotations ?? {},
5322
- "pl7.app/label": g2
5419
+ ...C.annotations ?? {},
5420
+ [y.Label]: g2
5323
5421
  }
5324
- }), y.push({
5325
- id: P2,
5326
- spec: T2,
5327
- data: () => p2.type === "split" ? Ie(Ut(p2.dataEntries, S)) : p2.originalColumn.data,
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 Te(t) {
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 he(t, e) {
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 ke(t) {
5397
- return Ge$1(t, (e) => e instanceof O ? e.handle : Se(e) ? Oe$1(e, (n2) => n2.handle) : e);
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 $t {
5497
+ class Qt {
5400
5498
  constructor() {
5401
- V(this, "ctx", b());
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 : Qe(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
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" ? ze(i, (a) => a.obj, o ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5413
- ref: tn(a, s2),
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: tn(a, s2),
5514
+ ref: _n(a, s2),
5417
5515
  label: o(l2, a)
5418
5516
  }));
5419
5517
  }
5420
5518
  resolveAnchorCtx(e) {
5421
- if (e instanceof Me) return e;
5519
+ if (e instanceof Nn) return e;
5422
5520
  const n2 = {};
5423
5521
  for (const [r, i] of Object.entries(e))
5424
- if (nn(i)) {
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 Me(n2);
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 O(n2.obj.data, [n2.ref.blockId, n2.ref.name])
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: an(
5622
+ data: Xn(
5525
5623
  n2.obj.data,
5526
- (r) => new O(r, [n2.ref.blockId, n2.ref.name])
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 Ge$1(
5651
+ return Bn(
5554
5652
  n2,
5555
- (i) => new O(i, [e.blockId, e.name])
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 We$1(n2);
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 (!l$1(n2)) throw new Error(`not a PColumn spec (kind = ${n2.kind})`);
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 (!l$1(r.obj.spec))
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 && he(e.domain, i.domain)) {
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 || !he(s2.domain, a.domain))
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 (!ee$1(r.obj)) continue;
5714
+ if (!Fe(r.obj)) continue;
5617
5715
  const i = r.obj.spec;
5618
- if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && he(e.domain, i.axesSpec[0].domain)) {
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 : Qe(e);
5638
- return this.getSpecs().entries.filter(({ obj: i }) => l$1(i) ? n2(i) : false).map(({ ref: i, obj: o }) => {
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: Be$1(i),
5741
+ id: We(i),
5644
5742
  spec: s2,
5645
5743
  get data() {
5646
- var u2;
5647
- return a !== null || (a = (u2 = l2.getPColumnByRef(i)) == null ? void 0 : u2.data), 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 = (o = e.annotations) == null ? void 0 : o["pl7.app/axisKeys/" + n2];
5757
+ const i = wn(e, `pl7.app/axisKeys/${n2}`);
5661
5758
  if (i !== void 0) {
5662
- const s2 = JSON.parse(i);
5663
- return Object.fromEntries(s2.map((a) => [a, r[a] ?? "Unlabelled"]));
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 $t());
5675
- this.ctx = b();
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 ye(
5806
+ return Ce(
5710
5807
  this.ctx.getAccessorHandleByName(e),
5711
- (n2) => new O(n2, [e])
5808
+ (n2) => new k(n2, [e])
5712
5809
  );
5713
5810
  }
5714
5811
  get prerun() {
5715
- return this.getNamedAccessor(We);
5812
+ return this.getNamedAccessor(ze);
5716
5813
  }
5717
5814
  get outputs() {
5718
- return this.getNamedAccessor(Ge);
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 O) || Se(o.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
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: Te(e.partitionFilters),
5742
- filters: Te(e.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) => ke(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(Xe$1(n2.src)), this.ctx.createPTable(
5762
- Be(n2, (r) => ke(r))
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 Wt = "1.42.10", X = Wt;
5783
- function Gt(t) {
5879
+ const Zt = "1.42.16", X = Zt;
5880
+ function en(t) {
5784
5881
  return t.__renderLambda === true;
5785
5882
  }
5786
- function me(t) {
5883
+ function ge(t) {
5787
5884
  if (t !== void 0)
5788
- return Gt(t) ? t.handle : t;
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, u2) {
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 = u2;
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: me(this._inputsValid),
6017
- sections: me(this._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, me(i)])
6116
+ Object.entries(this._outputs).map(([r, i]) => [r, ge(i)])
6020
6117
  )
6021
6118
  };
6022
- return globalThis.platformaApiVersion = e, Pt() ? $e({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: n2 };
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 Oe = w;
6031
- const platforma = Oe.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
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;