@milaboratories/milaboratories.ui-examples.model 1.1.35 → 1.1.36

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
@@ -402,7 +402,7 @@
402
402
  };
403
403
  }
404
404
  let errorMessage = "";
405
- const maps = errorMaps.filter((m) => !!m).slice().reverse();
405
+ const maps = errorMaps.filter((m2) => !!m2).slice().reverse();
406
406
  for (const map of maps) {
407
407
  errorMessage = map(fullIssue, { data, defaultError: errorMessage }).message;
408
408
  }
@@ -443,12 +443,12 @@
443
443
  }
444
444
  static mergeArray(status, results) {
445
445
  const arrayValue = [];
446
- for (const s of results) {
447
- if (s.status === "aborted")
446
+ for (const s2 of results) {
447
+ if (s2.status === "aborted")
448
448
  return INVALID;
449
- if (s.status === "dirty")
449
+ if (s2.status === "dirty")
450
450
  status.dirty();
451
- arrayValue.push(s.value);
451
+ arrayValue.push(s2.value);
452
452
  }
453
453
  return { status: status.value, value: arrayValue };
454
454
  }
@@ -3949,15 +3949,15 @@
3949
3949
  ZodError
3950
3950
  });
3951
3951
  var $ = Object.defineProperty;
3952
- var L = (n, t, e) => t in n ? $(n, t, { enumerable: true, configurable: true, writable: true, value: e }) : n[t] = e;
3953
- var p = (n, t, e) => L(n, typeof t != "symbol" ? t + "" : t, e);
3954
- function w(n) {
3955
- throw new Error("Unexpected object: " + n);
3952
+ var L = (n2, t, e) => t in n2 ? $(n2, t, { enumerable: true, configurable: true, writable: true, value: e }) : n2[t] = e;
3953
+ var p$1 = (n2, t, e) => L(n2, typeof t != "symbol" ? t + "" : t, e);
3954
+ function w(n2) {
3955
+ throw new Error("Unexpected object: " + n2);
3956
3956
  }
3957
- function dn(n) {
3958
- if (!n || typeof n != "object")
3957
+ function dn(n2) {
3958
+ if (!n2 || typeof n2 != "object")
3959
3959
  return false;
3960
- const t = n;
3960
+ const t = n2;
3961
3961
  if (!("type" in t))
3962
3962
  return false;
3963
3963
  switch (t.type) {
@@ -3971,126 +3971,126 @@
3971
3971
  return false;
3972
3972
  }
3973
3973
  }
3974
- function pn(n, t) {
3975
- if (n !== void 0)
3976
- switch (n.type) {
3974
+ function pn(n2, t) {
3975
+ if (n2 !== void 0)
3976
+ switch (n2.type) {
3977
3977
  case "Json":
3978
- return n;
3978
+ return n2;
3979
3979
  case "JsonPartitioned": {
3980
3980
  const e = {};
3981
- for (const [r, o] of Object.entries(n.parts))
3981
+ for (const [r, o] of Object.entries(n2.parts))
3982
3982
  e[r] = t(o);
3983
3983
  return {
3984
- ...n,
3984
+ ...n2,
3985
3985
  parts: e
3986
3986
  };
3987
3987
  }
3988
3988
  case "BinaryPartitioned": {
3989
3989
  const e = {};
3990
- for (const [r, o] of Object.entries(n.parts))
3990
+ for (const [r, o] of Object.entries(n2.parts))
3991
3991
  e[r] = {
3992
3992
  index: t(o.index),
3993
3993
  values: t(o.values)
3994
3994
  };
3995
3995
  return {
3996
- ...n,
3996
+ ...n2,
3997
3997
  parts: e
3998
3998
  };
3999
3999
  }
4000
4000
  }
4001
4001
  }
4002
- function ln(n) {
4003
- switch (n.type) {
4002
+ function ln(n2) {
4003
+ switch (n2.type) {
4004
4004
  case "Json": {
4005
4005
  const t = {};
4006
- for (const e of n.data)
4006
+ for (const e of n2.data)
4007
4007
  t[JSON.stringify(e.key)] = e.value;
4008
4008
  return {
4009
4009
  type: "Json",
4010
- keyLength: n.keyLength,
4010
+ keyLength: n2.keyLength,
4011
4011
  data: t
4012
4012
  };
4013
4013
  }
4014
4014
  case "JsonPartitioned": {
4015
4015
  const t = {};
4016
- for (const e of n.parts)
4016
+ for (const e of n2.parts)
4017
4017
  t[JSON.stringify(e.key)] = e.value;
4018
4018
  return {
4019
4019
  type: "JsonPartitioned",
4020
- partitionKeyLength: n.partitionKeyLength,
4020
+ partitionKeyLength: n2.partitionKeyLength,
4021
4021
  parts: t
4022
4022
  };
4023
4023
  }
4024
4024
  case "BinaryPartitioned": {
4025
4025
  const t = {};
4026
- for (const e of n.parts)
4026
+ for (const e of n2.parts)
4027
4027
  t[JSON.stringify(e.key)] = e.value;
4028
4028
  return {
4029
4029
  type: "BinaryPartitioned",
4030
- partitionKeyLength: n.partitionKeyLength,
4030
+ partitionKeyLength: n2.partitionKeyLength,
4031
4031
  parts: t
4032
4032
  };
4033
4033
  }
4034
4034
  }
4035
4035
  }
4036
- function y(n) {
4037
- const { type: t, name: e, domain: r } = n;
4036
+ function y(n2) {
4037
+ const { type: t, name: e, domain: r } = n2;
4038
4038
  return { type: t, name: e, ...r && { domain: r } };
4039
4039
  }
4040
- function Sn(n) {
4041
- return g(y(n));
4040
+ function Sn(n2) {
4041
+ return g(y(n2));
4042
4042
  }
4043
- function W(n, t) {
4044
- if (n === void 0) return t === void 0;
4043
+ function W(n2, t) {
4044
+ if (n2 === void 0) return t === void 0;
4045
4045
  if (t === void 0) return true;
4046
4046
  for (const e in t)
4047
- if (n[e] !== t[e]) return false;
4047
+ if (n2[e] !== t[e]) return false;
4048
4048
  return true;
4049
4049
  }
4050
- function X(n, t) {
4051
- return n.name === t.name && W(n.domain, t.domain);
4050
+ function X(n2, t) {
4051
+ return n2.name === t.name && W(n2.domain, t.domain);
4052
4052
  }
4053
- function En(n, t) {
4054
- return { ...n, src: l(n.src, t) };
4053
+ function En(n2, t) {
4054
+ return { ...n2, src: l$1(n2.src, t) };
4055
4055
  }
4056
- function l(n, t) {
4057
- switch (n.type) {
4056
+ function l$1(n2, t) {
4057
+ switch (n2.type) {
4058
4058
  case "column":
4059
4059
  return {
4060
4060
  type: "column",
4061
- column: t(n.column)
4061
+ column: t(n2.column)
4062
4062
  };
4063
4063
  case "slicedColumn":
4064
4064
  return {
4065
4065
  type: "slicedColumn",
4066
- column: t(n.column),
4067
- newId: n.newId,
4068
- axisFilters: n.axisFilters
4066
+ column: t(n2.column),
4067
+ newId: n2.newId,
4068
+ axisFilters: n2.axisFilters
4069
4069
  };
4070
4070
  case "inner":
4071
4071
  case "full":
4072
4072
  return {
4073
- type: n.type,
4074
- entries: n.entries.map((e) => l(e, t))
4073
+ type: n2.type,
4074
+ entries: n2.entries.map((e) => l$1(e, t))
4075
4075
  };
4076
4076
  case "outer":
4077
4077
  return {
4078
4078
  type: "outer",
4079
- primary: l(n.primary, t),
4080
- secondary: n.secondary.map((e) => l(e, t))
4079
+ primary: l$1(n2.primary, t),
4080
+ secondary: n2.secondary.map((e) => l$1(e, t))
4081
4081
  };
4082
4082
  default:
4083
- w(n);
4083
+ w(n2);
4084
4084
  }
4085
4085
  }
4086
- function z$1(n) {
4087
- return g(n);
4086
+ function z$1(n2) {
4087
+ return g(n2);
4088
4088
  }
4089
- function P(n) {
4090
- return g(y(n));
4089
+ function P(n2) {
4090
+ return g(y(n2));
4091
4091
  }
4092
- function x(n, t) {
4093
- return JSON.stringify([n, t]);
4092
+ function x(n2, t) {
4093
+ return JSON.stringify([n2, t]);
4094
4094
  }
4095
4095
  class On {
4096
4096
  /**
@@ -4098,24 +4098,24 @@
4098
4098
  * @param anchors Record of anchor column specifications indexed by anchor ID
4099
4099
  */
4100
4100
  constructor(t) {
4101
- p(this, "domains", /* @__PURE__ */ new Map());
4102
- p(this, "axes", /* @__PURE__ */ new Map());
4103
- p(this, "domainPacks", []);
4104
- p(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
4101
+ p$1(this, "domains", /* @__PURE__ */ new Map());
4102
+ p$1(this, "axes", /* @__PURE__ */ new Map());
4103
+ p$1(this, "domainPacks", []);
4104
+ p$1(this, "domainPackToAnchor", /* @__PURE__ */ new Map());
4105
4105
  this.anchors = t;
4106
4106
  const e = Object.entries(t);
4107
4107
  e.sort((r, o) => r[0].localeCompare(o[0]));
4108
4108
  for (const [r, o] of e) {
4109
4109
  for (let i = 0; i < o.axesSpec.length; i++) {
4110
- const a = o.axesSpec[i], s = P(a);
4111
- this.axes.set(s, { anchor: r, idx: i });
4110
+ const a = o.axesSpec[i], s2 = P(a);
4111
+ this.axes.set(s2, { anchor: r, idx: i });
4112
4112
  }
4113
4113
  if (o.domain !== void 0) {
4114
4114
  const i = Object.entries(o.domain);
4115
- i.sort((a, s) => a[0].localeCompare(s[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
4116
- for (const [a, s] of i) {
4117
- const u = x(a, s);
4118
- this.domains.set(u, r);
4115
+ i.sort((a, s2) => a[0].localeCompare(s2[0])), this.domainPackToAnchor.set(JSON.stringify(i), r), this.domainPacks.push(i.map(([a]) => a));
4116
+ for (const [a, s2] of i) {
4117
+ const u2 = x(a, s2);
4118
+ this.domains.set(u2, r);
4119
4119
  }
4120
4120
  }
4121
4121
  }
@@ -4132,46 +4132,46 @@
4132
4132
  if (t.domain !== void 0)
4133
4133
  n:
4134
4134
  for (const a of this.domainPacks) {
4135
- const s = [];
4136
- for (const c of a) {
4137
- const d = t.domain[c];
4135
+ const s2 = [];
4136
+ for (const c2 of a) {
4137
+ const d = t.domain[c2];
4138
4138
  if (d !== void 0)
4139
- s.push([c, d]);
4139
+ s2.push([c2, d]);
4140
4140
  else
4141
4141
  break n;
4142
4142
  }
4143
- const u = this.domainPackToAnchor.get(JSON.stringify(s));
4144
- if (u !== void 0) {
4145
- r.domainAnchor = u, o = new Set(a);
4143
+ const u2 = this.domainPackToAnchor.get(JSON.stringify(s2));
4144
+ if (u2 !== void 0) {
4145
+ r.domainAnchor = u2, o = new Set(a);
4146
4146
  break;
4147
4147
  }
4148
4148
  }
4149
- for (const [a, s] of Object.entries(t.domain ?? {})) {
4149
+ for (const [a, s2] of Object.entries(t.domain ?? {})) {
4150
4150
  if (o !== void 0 && o.has(a))
4151
4151
  continue;
4152
- const u = x(a, s), c = this.domains.get(u);
4153
- r.domain ?? (r.domain = {}), r.domain[a] = c ? { anchor: c } : s;
4152
+ const u2 = x(a, s2), c2 = this.domains.get(u2);
4153
+ r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : s2;
4154
4154
  }
4155
4155
  if (r.axes = t.axesSpec.map((a) => {
4156
- const s = P(a);
4157
- return this.axes.get(s) ?? a;
4156
+ const s2 = P(a);
4157
+ return this.axes.get(s2) ?? a;
4158
4158
  }), !e || e.length === 0)
4159
4159
  return r;
4160
4160
  const i = [];
4161
4161
  for (const a of e) {
4162
- const [s, u] = a;
4163
- if (typeof s == "number") {
4164
- if (s < 0 || s >= t.axesSpec.length)
4165
- throw new Error(`Axis index ${s} is out of bounds (0-${t.axesSpec.length - 1})`);
4166
- i.push([s, u]);
4162
+ const [s2, u2] = a;
4163
+ if (typeof s2 == "number") {
4164
+ if (s2 < 0 || s2 >= t.axesSpec.length)
4165
+ throw new Error(`Axis index ${s2} is out of bounds (0-${t.axesSpec.length - 1})`);
4166
+ i.push([s2, u2]);
4167
4167
  } else {
4168
- const c = t.axesSpec.findIndex((d) => d.name === s);
4169
- if (c === -1)
4170
- throw new Error(`Axis with name "${s}" not found in the column specification`);
4171
- i.push([c, u]);
4168
+ const c2 = t.axesSpec.findIndex((d) => d.name === s2);
4169
+ if (c2 === -1)
4170
+ throw new Error(`Axis with name "${s2}" not found in the column specification`);
4171
+ i.push([c2, u2]);
4172
4172
  }
4173
4173
  }
4174
- return i.sort((a, s) => a[0] - s[0]), {
4174
+ return i.sort((a, s2) => a[0] - s2[0]), {
4175
4175
  source: r,
4176
4176
  axisFilters: i
4177
4177
  };
@@ -4186,10 +4186,10 @@
4186
4186
  return z$1(this.derive(t, e));
4187
4187
  }
4188
4188
  }
4189
- function Jn(n, t) {
4189
+ function Jn(n2, t) {
4190
4190
  const e = { ...t };
4191
4191
  if (e.domainAnchor !== void 0) {
4192
- const r = n[e.domainAnchor];
4192
+ const r = n2[e.domainAnchor];
4193
4193
  if (!r)
4194
4194
  throw new Error(`Anchor "${e.domainAnchor}" not found`);
4195
4195
  const o = r.domain || {};
@@ -4201,7 +4201,7 @@
4201
4201
  if (typeof i == "string")
4202
4202
  r[o] = i;
4203
4203
  else {
4204
- const a = n[i.anchor];
4204
+ const a = n2[i.anchor];
4205
4205
  if (!a)
4206
4206
  throw new Error(`Anchor "${i.anchor}" not found for domain key "${o}"`);
4207
4207
  if (!a.domain || a.domain[o] === void 0)
@@ -4210,12 +4210,12 @@
4210
4210
  }
4211
4211
  e.domain = r;
4212
4212
  }
4213
- return e.axes && (e.axes = e.axes.map((r) => G(n, r))), e;
4213
+ return e.axes && (e.axes = e.axes.map((r) => G(n2, r))), e;
4214
4214
  }
4215
- function G(n, t) {
4215
+ function G(n2, t) {
4216
4216
  if (!Q$1(t))
4217
4217
  return t;
4218
- const e = t.anchor, r = n[e];
4218
+ const e = t.anchor, r = n2[e];
4219
4219
  if (!r)
4220
4220
  throw new Error(`Anchor "${e}" not found for axis reference`);
4221
4221
  if ("idx" in t) {
@@ -4239,26 +4239,26 @@
4239
4239
  }
4240
4240
  throw new Error("Unsupported axis reference type");
4241
4241
  }
4242
- function Q$1(n) {
4243
- return typeof n == "object" && "anchor" in n;
4242
+ function Q$1(n2) {
4243
+ return typeof n2 == "object" && "anchor" in n2;
4244
4244
  }
4245
- function f(n) {
4246
- return n.kind === "PColumn";
4245
+ function f(n2) {
4246
+ return n2.kind === "PColumn";
4247
4247
  }
4248
- function Y$1(n) {
4249
- return f(n.spec);
4248
+ function Y$1(n2) {
4249
+ return f(n2.spec);
4250
4250
  }
4251
- function Dn(n) {
4252
- if (!Y$1(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
4253
- return n;
4251
+ function Dn(n2) {
4252
+ if (!Y$1(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
4253
+ return n2;
4254
4254
  }
4255
- function In(n, t) {
4256
- return n === void 0 ? void 0 : {
4257
- ...n,
4258
- data: t(n.data)
4255
+ function In(n2, t) {
4256
+ return n2 === void 0 ? void 0 : {
4257
+ ...n2,
4258
+ data: t(n2.data)
4259
4259
  };
4260
4260
  }
4261
- function jn(n) {
4261
+ function jn(n2) {
4262
4262
  const t = /* @__PURE__ */ new Map(), e = (r) => {
4263
4263
  switch (r.type) {
4264
4264
  case "column":
@@ -4279,44 +4279,44 @@
4279
4279
  w(r);
4280
4280
  }
4281
4281
  };
4282
- return e(n), [...t.values()];
4282
+ return e(n2), [...t.values()];
4283
4283
  }
4284
- function k(n, t) {
4285
- if (n.name !== void 0 && n.name !== t.name)
4284
+ function k(n2, t) {
4285
+ if (n2.name !== void 0 && n2.name !== t.name)
4286
4286
  return false;
4287
- if (n.type !== void 0) {
4288
- if (Array.isArray(n.type)) {
4289
- if (!n.type.includes(t.type))
4287
+ if (n2.type !== void 0) {
4288
+ if (Array.isArray(n2.type)) {
4289
+ if (!n2.type.includes(t.type))
4290
4290
  return false;
4291
- } else if (n.type !== t.type)
4291
+ } else if (n2.type !== t.type)
4292
4292
  return false;
4293
4293
  }
4294
- if (n.domain !== void 0) {
4294
+ if (n2.domain !== void 0) {
4295
4295
  const e = t.domain || {};
4296
- for (const [r, o] of Object.entries(n.domain))
4296
+ for (const [r, o] of Object.entries(n2.domain))
4297
4297
  if (e[r] !== o)
4298
4298
  return false;
4299
4299
  }
4300
4300
  return true;
4301
4301
  }
4302
- function N$1(n, t) {
4303
- if (t.name !== void 0 && n.name !== t.name || t.namePattern !== void 0 && !new RegExp(t.namePattern).test(n.name))
4302
+ function N$1(n2, t) {
4303
+ if (t.name !== void 0 && n2.name !== t.name || t.namePattern !== void 0 && !new RegExp(t.namePattern).test(n2.name))
4304
4304
  return false;
4305
4305
  if (t.type !== void 0) {
4306
4306
  if (Array.isArray(t.type)) {
4307
- if (!t.type.includes(n.valueType))
4307
+ if (!t.type.includes(n2.valueType))
4308
4308
  return false;
4309
- } else if (t.type !== n.valueType)
4309
+ } else if (t.type !== n2.valueType)
4310
4310
  return false;
4311
4311
  }
4312
4312
  if (t.domain !== void 0) {
4313
- const e = n.domain || {};
4313
+ const e = n2.domain || {};
4314
4314
  for (const [r, o] of Object.entries(t.domain))
4315
4315
  if (e[r] !== o)
4316
4316
  return false;
4317
4317
  }
4318
4318
  if (t.axes !== void 0) {
4319
- const e = n.axesSpec.map(y);
4319
+ const e = n2.axesSpec.map(y);
4320
4320
  if (t.partialAxesMatch) {
4321
4321
  for (const r of t.axes)
4322
4322
  if (!e.some((o) => k(r, o)))
@@ -4330,13 +4330,13 @@
4330
4330
  }
4331
4331
  }
4332
4332
  if (t.annotations !== void 0) {
4333
- const e = n.annotations || {};
4333
+ const e = n2.annotations || {};
4334
4334
  for (const [r, o] of Object.entries(t.annotations))
4335
4335
  if (e[r] !== o)
4336
4336
  return false;
4337
4337
  }
4338
4338
  if (t.annotationPatterns !== void 0) {
4339
- const e = n.annotations || {};
4339
+ const e = n2.annotations || {};
4340
4340
  for (const [r, o] of Object.entries(t.annotationPatterns)) {
4341
4341
  const i = e[r];
4342
4342
  if (i === void 0 || !new RegExp(o).test(i))
@@ -4345,8 +4345,8 @@
4345
4345
  }
4346
4346
  return true;
4347
4347
  }
4348
- function Bn(n) {
4349
- return Array.isArray(n) ? (t) => n.some((e) => f(t) && N$1(t, e)) : (t) => f(t) && N$1(t, n);
4348
+ function Bn(n2) {
4349
+ return Array.isArray(n2) ? (t) => n2.some((e) => f(t) && N$1(t, e)) : (t) => f(t) && N$1(t, n2);
4350
4350
  }
4351
4351
  z$2.object({
4352
4352
  __isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
@@ -4355,17 +4355,69 @@
4355
4355
  }).describe(
4356
4356
  "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."
4357
4357
  ).strict().readonly();
4358
- function Kn(n) {
4359
- return typeof n == "object" && n !== null && "__isRef" in n && n.__isRef === true && "blockId" in n && "name" in n;
4358
+ function Kn(n2) {
4359
+ return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
4360
4360
  }
4361
- function Mn(n, t) {
4362
- return n.ok ? { ok: true, value: t(n.value) } : n;
4361
+ function Mn(n2, t) {
4362
+ return n2.ok ? { ok: true, value: t(n2.value) } : n2;
4363
4363
  }
4364
4364
  const rn = 24;
4365
4365
  z$2.string().length(rn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4366
+ var stringify = { exports: {} };
4367
+ (function(module2, exports3) {
4368
+ exports3 = module2.exports = stringify2;
4369
+ exports3.getSerialize = serializer;
4370
+ function stringify2(obj, replacer, spaces, cycleReplacer) {
4371
+ return JSON.stringify(obj, serializer(replacer, cycleReplacer), spaces);
4372
+ }
4373
+ function serializer(replacer, cycleReplacer) {
4374
+ var stack = [], keys = [];
4375
+ if (cycleReplacer == null) cycleReplacer = function(key, value) {
4376
+ if (stack[0] === value) return "[Circular ~]";
4377
+ return "[Circular ~." + keys.slice(0, stack.indexOf(value)).join(".") + "]";
4378
+ };
4379
+ return function(key, value) {
4380
+ if (stack.length > 0) {
4381
+ var thisPos = stack.indexOf(this);
4382
+ ~thisPos ? stack.splice(thisPos + 1) : stack.push(this);
4383
+ ~thisPos ? keys.splice(thisPos, Infinity, key) : keys.push(key);
4384
+ if (~stack.indexOf(value)) value = cycleReplacer.call(this, key, value);
4385
+ } else stack.push(value);
4386
+ return replacer == null ? value : replacer.call(this, key, value);
4387
+ };
4388
+ }
4389
+ })(stringify, stringify.exports);
4390
+ const l = z$2.object({
4391
+ type: z$2.literal("PlError"),
4392
+ name: z$2.string(),
4393
+ message: z$2.string(),
4394
+ /** The message with all details needed for SDK developers. */
4395
+ fullMessage: z$2.string().optional(),
4396
+ stack: z$2.string().optional()
4397
+ }), c = l.extend({
4398
+ cause: z$2.lazy(() => s).optional(),
4399
+ errors: z$2.lazy(() => s.array()).optional()
4400
+ }), m = z$2.object({
4401
+ type: z$2.literal("StandardError"),
4402
+ name: z$2.string(),
4403
+ message: z$2.string(),
4404
+ stack: z$2.string().optional()
4405
+ }), p = m.extend({
4406
+ cause: z$2.lazy(() => s).optional(),
4407
+ errors: z$2.lazy(() => s.array()).optional()
4408
+ }), s = z$2.union([p, c]);
4409
+ const u = z$2.object({
4410
+ name: z$2.string(),
4411
+ message: z$2.string(),
4412
+ fullMessage: z$2.string().optional(),
4413
+ stack: z$2.string().optional()
4414
+ }), n = u.extend({
4415
+ cause: z$2.lazy(() => n).optional(),
4416
+ errors: z$2.lazy(() => n.array()).optional()
4417
+ });
4366
4418
  var _e = Object.defineProperty;
4367
- var Ie = (t, e, n) => e in t ? _e(t, e, { enumerable: true, configurable: true, writable: true, value: n }) : t[e] = n;
4368
- var T = (t, e, n) => Ie(t, typeof e != "symbol" ? e + "" : e, n);
4419
+ var Ie = (t, e, n2) => e in t ? _e(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4420
+ var T = (t, e, n2) => Ie(t, typeof e != "symbol" ? e + "" : e, n2);
4369
4421
  function Y(t) {
4370
4422
  return { type: "Immediate", value: t };
4371
4423
  }
@@ -4386,32 +4438,32 @@
4386
4438
  throw new Error("Not in config rendering context");
4387
4439
  }
4388
4440
  function q(t, e) {
4389
- const n = $e();
4390
- if (n === void 0) return false;
4391
- if (t in n.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
4392
- return n.callbackRegistry[t] = e, true;
4441
+ const n2 = $e();
4442
+ if (n2 === void 0) return false;
4443
+ if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
4444
+ return n2.callbackRegistry[t] = e, true;
4393
4445
  }
4394
4446
  const ne = /* @__PURE__ */ new Map();
4395
4447
  function Je(t, e) {
4396
- t in h().callbackRegistry || (h().callbackRegistry[t] = (n) => {
4448
+ t in h().callbackRegistry || (h().callbackRegistry[t] = (n2) => {
4397
4449
  for (const r of ne.get(t))
4398
- r(n);
4450
+ r(n2);
4399
4451
  }, ne.set(t, [])), ne.get(t).push(e);
4400
4452
  }
4401
4453
  class S {
4402
- constructor(e, n = (r) => r) {
4454
+ constructor(e, n2 = (r) => r) {
4403
4455
  T(this, "isResolved", false);
4404
4456
  T(this, "resolvedValue");
4405
- this.handle = e, this.postProcess = n, Je(e, (r) => {
4406
- this.resolvedValue = n(r), this.isResolved = true;
4457
+ this.handle = e, this.postProcess = n2, Je(e, (r) => {
4458
+ this.resolvedValue = n2(r), this.isResolved = true;
4407
4459
  });
4408
4460
  }
4409
4461
  map(e) {
4410
- return new S(this.handle, (n) => e(this.postProcess(n)));
4462
+ return new S(this.handle, (n2) => e(this.postProcess(n2)));
4411
4463
  }
4412
4464
  mapDefined(e) {
4413
- return new S(this.handle, (n) => {
4414
- const r = this.postProcess(n);
4465
+ return new S(this.handle, (n2) => {
4466
+ const r = this.postProcess(n2);
4415
4467
  return r ? e(r) : void 0;
4416
4468
  });
4417
4469
  }
@@ -4423,46 +4475,46 @@
4423
4475
  return t === void 0 ? void 0 : e(t);
4424
4476
  }
4425
4477
  class I {
4426
- constructor(e, n) {
4427
- this.handle = e, this.resolvePath = n;
4478
+ constructor(e, n2) {
4479
+ this.handle = e, this.resolvePath = n2;
4428
4480
  }
4429
4481
  resolve(...e) {
4430
- const n = e.map(
4482
+ const n2 = e.map(
4431
4483
  (r) => ({
4432
4484
  assertFieldType: "Input",
4433
4485
  ...typeof r == "string" ? { field: r } : r
4434
4486
  })
4435
4487
  );
4436
- return this.resolveWithCommon({}, ...n);
4488
+ return this.resolveWithCommon({}, ...n2);
4437
4489
  }
4438
4490
  resolveOutput(...e) {
4439
- const n = e.map(
4491
+ const n2 = e.map(
4440
4492
  (r) => ({
4441
4493
  assertFieldType: "Output",
4442
4494
  ...typeof r == "string" ? { field: r } : r
4443
4495
  })
4444
4496
  );
4445
- return this.resolveWithCommon({}, ...n);
4497
+ return this.resolveWithCommon({}, ...n2);
4446
4498
  }
4447
4499
  resolveInput(...e) {
4448
- const n = e.map(
4500
+ const n2 = e.map(
4449
4501
  (r) => ({
4450
4502
  assertFieldType: "Input",
4451
4503
  ...typeof r == "string" ? { field: r } : r
4452
4504
  })
4453
4505
  );
4454
- return this.resolveWithCommon({}, ...n);
4506
+ return this.resolveWithCommon({}, ...n2);
4455
4507
  }
4456
4508
  resolveAny(...e) {
4457
4509
  return this.resolveWithCommon({}, ...e);
4458
4510
  }
4459
- resolveWithCommon(e, ...n) {
4511
+ resolveWithCommon(e, ...n2) {
4460
4512
  const r = [
4461
4513
  ...this.resolvePath,
4462
- ...n.map((i) => typeof i == "string" ? i : i.field)
4514
+ ...n2.map((i) => typeof i == "string" ? i : i.field)
4463
4515
  ];
4464
4516
  return ie(
4465
- h().resolveWithCommon(this.handle, e, ...n),
4517
+ h().resolveWithCommon(this.handle, e, ...n2),
4466
4518
  (i) => new I(i, r)
4467
4519
  );
4468
4520
  }
@@ -4485,7 +4537,7 @@
4485
4537
  const e = [...this.resolvePath, "error"];
4486
4538
  return ie(
4487
4539
  h().getError(this.handle),
4488
- (n) => new I(n, e)
4540
+ (n2) => new I(n2, e)
4489
4541
  );
4490
4542
  }
4491
4543
  listInputFields() {
@@ -4504,9 +4556,9 @@
4504
4556
  return h().getKeyValueAsString(this.handle, e);
4505
4557
  }
4506
4558
  getKeyValueAsJson(e) {
4507
- const n = this.getKeyValueAsString(e);
4508
- if (n == null) throw new Error("Resource has no content.");
4509
- return JSON.parse(n);
4559
+ const n2 = this.getKeyValueAsString(e);
4560
+ if (n2 == null) throw new Error("Resource has no content.");
4561
+ return JSON.parse(n2);
4510
4562
  }
4511
4563
  getDataBase64() {
4512
4564
  return h().getDataBase64(this.handle);
@@ -4522,28 +4574,28 @@
4522
4574
  /**
4523
4575
  *
4524
4576
  */
4525
- getPColumns(e = false, n = "") {
4526
- const r = this.parsePObjectCollection(e, n);
4527
- return r === void 0 ? void 0 : Object.entries(r).map(([, s]) => {
4528
- if (!Y$1(s)) throw new Error(`not a PColumn (kind = ${s.spec.kind})`);
4529
- return s;
4577
+ getPColumns(e = false, n2 = "") {
4578
+ const r = this.parsePObjectCollection(e, n2);
4579
+ return r === void 0 ? void 0 : Object.entries(r).map(([, s2]) => {
4580
+ if (!Y$1(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
4581
+ return s2;
4530
4582
  });
4531
4583
  }
4532
4584
  /**
4533
4585
  *
4534
4586
  */
4535
- parsePObjectCollection(e = false, n = "") {
4587
+ parsePObjectCollection(e = false, n2 = "") {
4536
4588
  const r = h().parsePObjectCollection(
4537
4589
  this.handle,
4538
4590
  e,
4539
- n,
4591
+ n2,
4540
4592
  ...this.resolvePath
4541
4593
  );
4542
4594
  if (r === void 0) return;
4543
4595
  const i = {};
4544
- for (const [s, o] of Object.entries(r)) {
4545
- const a = [...this.resolvePath, s];
4546
- i[s] = In(o, (c) => new I(c, a));
4596
+ for (const [s2, o] of Object.entries(r)) {
4597
+ const a = [...this.resolvePath, s2];
4598
+ i[s2] = In(o, (c2) => new I(c2, a));
4547
4599
  }
4548
4600
  return i;
4549
4601
  }
@@ -4619,27 +4671,27 @@
4619
4671
  switch (e) {
4620
4672
  case "Input":
4621
4673
  return this.getInputsLocked() && this.listInputFields().every(
4622
- (n) => this.resolve({ field: n, assertFieldType: "Input" }) !== void 0
4674
+ (n2) => this.resolve({ field: n2, assertFieldType: "Input" }) !== void 0
4623
4675
  );
4624
4676
  case "Output":
4625
4677
  return this.getOutputsLocked() && this.listOutputFields().every(
4626
- (n) => this.resolve({ field: n, assertFieldType: "Output" }) !== void 0
4678
+ (n2) => this.resolve({ field: n2, assertFieldType: "Output" }) !== void 0
4627
4679
  );
4628
4680
  }
4629
4681
  }
4630
- mapFields(e, n) {
4631
- const { fieldType: r, requireLocked: i, skipUnresolved: s } = {
4682
+ mapFields(e, n2) {
4683
+ const { fieldType: r, requireLocked: i, skipUnresolved: s2 } = {
4632
4684
  fieldType: "Input",
4633
4685
  requireLocked: true,
4634
4686
  skipUnresolved: false,
4635
- ...n
4687
+ ...n2
4636
4688
  }, o = e;
4637
4689
  if (i && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
4638
4690
  return;
4639
- let c = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
4691
+ let c2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
4640
4692
  (l2) => [l2, this.resolve({ field: l2, assertFieldType: r })]
4641
4693
  );
4642
- return s && (c = c.filter((l2) => l2[1] !== void 0)), c.map(([l2, m]) => o(l2, m));
4694
+ return s2 && (c2 = c2.filter((l2) => l2[1] !== void 0)), c2.map(([l2, m2]) => o(l2, m2));
4643
4695
  }
4644
4696
  }
4645
4697
  const ve = "staging", we = "main";
@@ -4649,8 +4701,8 @@
4649
4701
  id: z$2.string().optional(),
4650
4702
  label: z$2.string()
4651
4703
  }), We = z$2.array(Ge), He = 1e-3, qe = "__LABEL__", pe = "__LABEL__@1";
4652
- function de(t, e, n = {}) {
4653
- const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = t.map((f2) => {
4704
+ function de(t, e, n2 = {}) {
4705
+ const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((f2) => {
4654
4706
  var R, k2;
4655
4707
  const p2 = e(f2);
4656
4708
  let d, y2, g2;
@@ -4662,7 +4714,7 @@
4662
4714
  ];
4663
4715
  if (v) {
4664
4716
  const A = { label: v, type: qe, importance: -2 };
4665
- n.addLabelAsSuffix ? C.push(A) : C.splice(0, 0, A);
4717
+ n2.addLabelAsSuffix ? C.push(A) : C.splice(0, 0, A);
4666
4718
  }
4667
4719
  const P2 = [], F = /* @__PURE__ */ new Map();
4668
4720
  for (let A = C.length - 1; A >= 0; --A) {
@@ -4683,12 +4735,12 @@
4683
4735
  label: v,
4684
4736
  fullTrace: P2
4685
4737
  };
4686
- }), o = [], a = [], c = [...r];
4687
- c.sort(([, f2], [, p2]) => p2 - f2);
4688
- for (const [f2] of c)
4738
+ }), o = [], a = [], c2 = [...r];
4739
+ c2.sort(([, f2], [, p2]) => p2 - f2);
4740
+ for (const [f2] of c2)
4689
4741
  f2.endsWith("@1") || i.get(f2) === t.length ? o.push(f2) : a.push(f2);
4690
- const l2 = (f2) => s.map((p2) => {
4691
- const d = p2.fullTrace.filter((g2) => f2.has(g2.fullType)).map((g2) => g2.label), y2 = n.separator ?? " / ";
4742
+ const l2 = (f2) => s2.map((p2) => {
4743
+ const d = p2.fullTrace.filter((g2) => f2.has(g2.fullType)).map((g2) => g2.label), y2 = n2.separator ?? " / ";
4692
4744
  return {
4693
4745
  label: d.join(y2),
4694
4746
  value: p2.value
@@ -4698,19 +4750,19 @@
4698
4750
  if (a.length !== 0) throw new Error("Assertion error.");
4699
4751
  return l2(new Set(pe));
4700
4752
  }
4701
- let m = 0, u = 0;
4702
- for (; m < o.length; ) {
4753
+ let m2 = 0, u2 = 0;
4754
+ for (; m2 < o.length; ) {
4703
4755
  const f2 = /* @__PURE__ */ new Set();
4704
- n.includeNativeLabel && f2.add(pe);
4705
- for (let d = 0; d < m; ++d) f2.add(o[d]);
4706
- f2.add(o[u]);
4756
+ n2.includeNativeLabel && f2.add(pe);
4757
+ for (let d = 0; d < m2; ++d) f2.add(o[d]);
4758
+ f2.add(o[u2]);
4707
4759
  const p2 = l2(f2);
4708
4760
  if (new Set(p2.map((d) => d.label)).size === t.length) return p2;
4709
- u++, u == o.length && (m++, u = m);
4761
+ u2++, u2 == o.length && (m2++, u2 = m2);
4710
4762
  }
4711
4763
  return l2(/* @__PURE__ */ new Set([...o, ...a]));
4712
4764
  }
4713
- const H = "PColumnData/", Q = H + "ResourceMap", Z = H + "Partitioned/ResourceMap", N = H + "JsonPartitioned", O = H + "BinaryPartitioned", Ae = H + "Partitioned/", ee = Ae + "JsonPartitioned", B = Ae + "BinaryPartitioned";
4765
+ const H = "PColumnData/", Q = H + "ResourceMap", Z = H + "Partitioned/ResourceMap", N = H + "JsonPartitioned", E = H + "BinaryPartitioned", Ae = H + "Partitioned/", ee = Ae + "JsonPartitioned", B = Ae + "BinaryPartitioned";
4714
4766
  const ae = (t) => {
4715
4767
  if (t.endsWith(".index"))
4716
4768
  return { baseKey: t.substring(0, t.length - 6), type: "index" };
@@ -4720,43 +4772,43 @@
4720
4772
  };
4721
4773
  function ze(t) {
4722
4774
  if (!t) return;
4723
- const e = t.resourceType.name, n = t.getDataAsJson(), r = [];
4775
+ const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
4724
4776
  let i = 0;
4725
4777
  switch (e) {
4726
4778
  case Q:
4727
- i = n.keyLength;
4779
+ i = n2.keyLength;
4728
4780
  break;
4729
4781
  case Z:
4730
- i = n.partitionKeyLength + n.keyLength;
4782
+ i = n2.partitionKeyLength + n2.keyLength;
4731
4783
  break;
4732
4784
  case N:
4733
- case O:
4734
- i = n.partitionKeyLength;
4785
+ case E:
4786
+ i = n2.partitionKeyLength;
4735
4787
  break;
4736
4788
  case B:
4737
4789
  case ee:
4738
- i = n.superPartitionKeyLength + n.partitionKeyLength;
4790
+ i = n2.superPartitionKeyLength + n2.partitionKeyLength;
4739
4791
  break;
4740
4792
  }
4741
4793
  switch (e) {
4742
4794
  case Q:
4743
4795
  case N:
4744
- case O:
4745
- for (let s of t.listInputFields()) {
4746
- e === O && (s = ae(s).baseKey);
4747
- const o = [...JSON.parse(s)];
4796
+ case E:
4797
+ for (let s2 of t.listInputFields()) {
4798
+ e === E && (s2 = ae(s2).baseKey);
4799
+ const o = [...JSON.parse(s2)];
4748
4800
  r.push(o);
4749
4801
  }
4750
4802
  break;
4751
4803
  case Z:
4752
4804
  case B:
4753
4805
  case ee:
4754
- for (const s of t.listInputFields()) {
4755
- const o = [...JSON.parse(s)], a = t.resolve({ field: s, assertFieldType: "Input" });
4806
+ for (const s2 of t.listInputFields()) {
4807
+ const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
4756
4808
  if (a !== void 0)
4757
- for (let c of a.listInputFields()) {
4758
- e === B && (c = ae(c).baseKey);
4759
- const l2 = [...o, ...JSON.parse(c)];
4809
+ for (let c2 of a.listInputFields()) {
4810
+ e === B && (c2 = ae(c2).baseKey);
4811
+ const l2 = [...o, ...JSON.parse(c2)];
4760
4812
  r.push(l2);
4761
4813
  }
4762
4814
  }
@@ -4767,34 +4819,34 @@
4767
4819
  function Ye(t) {
4768
4820
  const e = ze(t);
4769
4821
  if (!e) return;
4770
- const { data: n, keyLength: r } = e, i = [];
4771
- for (let s = 0; s < r; ++s)
4822
+ const { data: n2, keyLength: r } = e, i = [];
4823
+ for (let s2 = 0; s2 < r; ++s2)
4772
4824
  i.push(/* @__PURE__ */ new Set());
4773
- for (const s of n) {
4774
- if (s.length !== r)
4825
+ for (const s2 of n2) {
4826
+ if (s2.length !== r)
4775
4827
  throw new Error("key length does not match partition length");
4776
4828
  for (let o = 0; o < r; ++o)
4777
- i[o].add(s[o]);
4829
+ i[o].add(s2[o]);
4778
4830
  }
4779
- return i.map((s) => Array.from(s.values()));
4831
+ return i.map((s2) => Array.from(s2.values()));
4780
4832
  }
4781
4833
  function le(t, e = []) {
4782
4834
  if (t === void 0) return;
4783
- const n = t.resourceType.name, r = t.getDataAsJson();
4784
- if (e.length > 0 && (n === ee || n === B))
4785
- throw new Error(`Unexpected nested super-partitioned resource: ${n}`);
4786
- switch (n) {
4835
+ const n2 = t.resourceType.name, r = t.getDataAsJson();
4836
+ if (e.length > 0 && (n2 === ee || n2 === B))
4837
+ throw new Error(`Unexpected nested super-partitioned resource: ${n2}`);
4838
+ switch (n2) {
4787
4839
  case Q:
4788
4840
  case Z:
4789
- throw new Error(`Only data columns are supported, got: ${n}`);
4841
+ throw new Error(`Only data columns are supported, got: ${n2}`);
4790
4842
  case N: {
4791
4843
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4792
- throw new Error(`Missing partitionKeyLength in metadata for ${n}`);
4844
+ throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
4793
4845
  const i = [];
4794
- for (const s of t.listInputFields()) {
4795
- const o = t.resolve({ field: s, assertFieldType: "Input" });
4846
+ for (const s2 of t.listInputFields()) {
4847
+ const o = t.resolve({ field: s2, assertFieldType: "Input" });
4796
4848
  if (o === void 0) return;
4797
- const a = [...e, ...JSON.parse(s)];
4849
+ const a = [...e, ...JSON.parse(s2)];
4798
4850
  i.push({ key: a, value: o });
4799
4851
  }
4800
4852
  return {
@@ -4803,21 +4855,21 @@
4803
4855
  parts: i
4804
4856
  };
4805
4857
  }
4806
- case O: {
4858
+ case E: {
4807
4859
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4808
- throw new Error(`Missing partitionKeyLength in metadata for ${n}`);
4809
- const i = [], s = /* @__PURE__ */ new Map();
4860
+ throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
4861
+ const i = [], s2 = /* @__PURE__ */ new Map();
4810
4862
  for (const o of t.listInputFields()) {
4811
- const a = ae(o), c = t.resolve({ field: o, assertFieldType: "Input" });
4812
- if (c === void 0) return;
4813
- let l2 = s.get(a.baseKey);
4814
- l2 || (l2 = {}, s.set(a.baseKey, l2)), a.type === "index" ? l2.index = c : l2.values = c;
4863
+ const a = ae(o), c2 = t.resolve({ field: o, assertFieldType: "Input" });
4864
+ if (c2 === void 0) return;
4865
+ let l2 = s2.get(a.baseKey);
4866
+ l2 || (l2 = {}, s2.set(a.baseKey, l2)), a.type === "index" ? l2.index = c2 : l2.values = c2;
4815
4867
  }
4816
- for (const [o, a] of s.entries()) {
4868
+ for (const [o, a] of s2.entries()) {
4817
4869
  if (!a.index || !a.values) return;
4818
- const c = [...e, ...JSON.parse(o)];
4870
+ const c2 = [...e, ...JSON.parse(o)];
4819
4871
  i.push({
4820
- key: c,
4872
+ key: c2,
4821
4873
  value: {
4822
4874
  index: a.index,
4823
4875
  values: a.values
@@ -4832,106 +4884,106 @@
4832
4884
  }
4833
4885
  case ee: {
4834
4886
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4835
- throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n}`);
4836
- const i = r.superPartitionKeyLength + r.partitionKeyLength, s = [];
4887
+ throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
4888
+ const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
4837
4889
  for (const o of t.listInputFields()) {
4838
4890
  const a = t.resolve({ field: o, assertFieldType: "Input" });
4839
4891
  if (a === void 0) return;
4840
4892
  if (a.resourceType.name !== N)
4841
- throw new Error(`Expected ${N} inside ${n}, but got ${a.resourceType.name}`);
4842
- const c = le(a, JSON.parse(o));
4843
- if (c === void 0) return;
4844
- if (c.type !== "JsonPartitioned")
4845
- throw new Error(`Unexpected inner result type for ${n}: ${c.type}`);
4846
- s.push(...c.parts);
4893
+ throw new Error(`Expected ${N} inside ${n2}, but got ${a.resourceType.name}`);
4894
+ const c2 = le(a, JSON.parse(o));
4895
+ if (c2 === void 0) return;
4896
+ if (c2.type !== "JsonPartitioned")
4897
+ throw new Error(`Unexpected inner result type for ${n2}: ${c2.type}`);
4898
+ s2.push(...c2.parts);
4847
4899
  }
4848
4900
  return {
4849
4901
  type: "JsonPartitioned",
4850
4902
  partitionKeyLength: i,
4851
- parts: s
4903
+ parts: s2
4852
4904
  };
4853
4905
  }
4854
4906
  case B: {
4855
4907
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4856
- throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n}`);
4857
- const i = r.superPartitionKeyLength + r.partitionKeyLength, s = [];
4908
+ throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
4909
+ const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
4858
4910
  for (const o of t.listInputFields()) {
4859
4911
  const a = t.resolve({ field: o, assertFieldType: "Input" });
4860
4912
  if (a === void 0) return;
4861
- if (a.resourceType.name !== O)
4862
- throw new Error(`Expected ${O} inside ${n}, but got ${a.resourceType.name}`);
4863
- const c = le(a, JSON.parse(o));
4864
- if (c === void 0) return;
4865
- if (c.type !== "BinaryPartitioned")
4866
- throw new Error(`Unexpected inner result type for ${n}: ${c.type}`);
4867
- s.push(...c.parts);
4913
+ if (a.resourceType.name !== E)
4914
+ throw new Error(`Expected ${E} inside ${n2}, but got ${a.resourceType.name}`);
4915
+ const c2 = le(a, JSON.parse(o));
4916
+ if (c2 === void 0) return;
4917
+ if (c2.type !== "BinaryPartitioned")
4918
+ throw new Error(`Unexpected inner result type for ${n2}: ${c2.type}`);
4919
+ s2.push(...c2.parts);
4868
4920
  }
4869
4921
  return {
4870
4922
  type: "BinaryPartitioned",
4871
4923
  partitionKeyLength: i,
4872
- parts: s
4924
+ parts: s2
4873
4925
  };
4874
4926
  }
4875
4927
  default:
4876
- throw new Error(`Unknown resource type: ${n}`);
4928
+ throw new Error(`Unknown resource type: ${n2}`);
4877
4929
  }
4878
4930
  }
4879
4931
  function Xe(t, e) {
4880
- const n = [...e].sort((s, o) => o[0] - s[0]);
4932
+ const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
4881
4933
  if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
4882
- const { partitionKeyLength: s } = t;
4934
+ const { partitionKeyLength: s2 } = t;
4883
4935
  for (const [o] of e)
4884
- if (o >= s)
4885
- throw new Error(`Can't filter on non-partitioned axis ${o}. Must be >= ${s}`);
4936
+ if (o >= s2)
4937
+ throw new Error(`Can't filter on non-partitioned axis ${o}. Must be >= ${s2}`);
4886
4938
  } else if (t.type === "Json") {
4887
- const { keyLength: s } = t;
4939
+ const { keyLength: s2 } = t;
4888
4940
  for (const [o] of e)
4889
- if (o >= s)
4890
- throw new Error(`Can't filter on non-data axis ${o}. Must be >= ${s}`);
4941
+ if (o >= s2)
4942
+ throw new Error(`Can't filter on non-data axis ${o}. Must be >= ${s2}`);
4891
4943
  }
4892
- const r = (s) => {
4893
- for (const [o, a] of n)
4894
- if (s[o] !== a)
4944
+ const r = (s2) => {
4945
+ for (const [o, a] of n2)
4946
+ if (s2[o] !== a)
4895
4947
  return false;
4896
4948
  return true;
4897
- }, i = (s) => {
4898
- const o = [...s];
4899
- for (const [a] of n)
4949
+ }, i = (s2) => {
4950
+ const o = [...s2];
4951
+ for (const [a] of n2)
4900
4952
  o.splice(a, 1);
4901
4953
  return o;
4902
4954
  };
4903
4955
  switch (t.type) {
4904
4956
  case "Json": {
4905
- const s = t.data.filter((o) => r(o.key)).map((o) => ({
4957
+ const s2 = t.data.filter((o) => r(o.key)).map((o) => ({
4906
4958
  key: i(o.key),
4907
4959
  value: o.value
4908
4960
  }));
4909
4961
  return {
4910
4962
  type: "Json",
4911
4963
  keyLength: t.keyLength - e.length,
4912
- data: s
4964
+ data: s2
4913
4965
  };
4914
4966
  }
4915
4967
  case "JsonPartitioned": {
4916
- const s = t.parts.filter((o) => r(o.key)).map((o) => ({
4968
+ const s2 = t.parts.filter((o) => r(o.key)).map((o) => ({
4917
4969
  key: i(o.key),
4918
4970
  value: o.value
4919
4971
  }));
4920
4972
  return {
4921
4973
  type: "JsonPartitioned",
4922
4974
  partitionKeyLength: t.partitionKeyLength - e.length,
4923
- parts: s
4975
+ parts: s2
4924
4976
  };
4925
4977
  }
4926
4978
  case "BinaryPartitioned": {
4927
- const s = t.parts.filter((o) => r(o.key)).map((o) => ({
4979
+ const s2 = t.parts.filter((o) => r(o.key)).map((o) => ({
4928
4980
  key: i(o.key),
4929
4981
  value: o.value
4930
4982
  }));
4931
4983
  return {
4932
4984
  type: "BinaryPartitioned",
4933
4985
  partitionKeyLength: t.partitionKeyLength - e.length,
4934
- parts: s
4986
+ parts: s2
4935
4987
  };
4936
4988
  }
4937
4989
  }
@@ -4939,12 +4991,12 @@
4939
4991
  function re(t, e) {
4940
4992
  if (t === void 0) return e === void 0;
4941
4993
  if (e === void 0) return true;
4942
- for (const n in e)
4943
- if (t[n] !== e[n]) return false;
4994
+ for (const n2 in e)
4995
+ if (t[n2] !== e[n2]) return false;
4944
4996
  return true;
4945
4997
  }
4946
4998
  function fe(t) {
4947
- return In(t, (e) => e instanceof I ? e.handle : dn(e) ? pn(e, (n) => n.handle) : e);
4999
+ return In(t, (e) => e instanceof I ? e.handle : dn(e) ? pn(e, (n2) => n2.handle) : e);
4948
5000
  }
4949
5001
  function Qe(t) {
4950
5002
  if (t)
@@ -4969,40 +5021,40 @@
4969
5021
  calculateOptions(e) {
4970
5022
  return this.ctx.calculateOptions(e);
4971
5023
  }
4972
- getOptions(e, n) {
4973
- const r = typeof e == "function" ? e : Bn(e), i = this.getSpecs().entries.filter((s) => r(s.obj));
4974
- return typeof n == "object" || typeof n > "u" ? de(i, (s) => s.obj, n ?? {}).map(({ value: { ref: s }, label: o }) => ({
4975
- ref: s,
5024
+ getOptions(e, n2) {
5025
+ const r = typeof e == "function" ? e : Bn(e), i = this.getSpecs().entries.filter((s2) => r(s2.obj));
5026
+ return typeof n2 == "object" || typeof n2 > "u" ? de(i, (s2) => s2.obj, n2 ?? {}).map(({ value: { ref: s2 }, label: o }) => ({
5027
+ ref: s2,
4976
5028
  label: o
4977
- })) : i.map((s) => ({
4978
- ref: s.ref,
4979
- label: n(s.obj, s.ref)
5029
+ })) : i.map((s2) => ({
5030
+ ref: s2.ref,
5031
+ label: n2(s2.obj, s2.ref)
4980
5032
  }));
4981
5033
  }
4982
5034
  /**
4983
5035
  * Internal implementation that generates UniversalPColumnEntry objects from the provided
4984
5036
  * anchors and selectors.
4985
5037
  */
4986
- getUniversalPColumnEntries(e, n, r) {
5038
+ getUniversalPColumnEntries(e, n2, r) {
4987
5039
  const i = {};
4988
5040
  if (!(e instanceof On))
4989
- for (const [l2, m] of Object.entries(e))
4990
- if (Kn(m)) {
4991
- const u = this.getPColumnSpecByRef(m);
4992
- if (!u)
5041
+ for (const [l2, m2] of Object.entries(e))
5042
+ if (Kn(m2)) {
5043
+ const u2 = this.getPColumnSpecByRef(m2);
5044
+ if (!u2)
4993
5045
  return;
4994
- i[l2] = u;
5046
+ i[l2] = u2;
4995
5047
  } else
4996
- i[l2] = m;
4997
- const s = typeof n == "function" ? [n] : Array.isArray(n) ? n : [n], o = e instanceof On ? e : new On(i), a = [];
4998
- for (const l2 of s) {
4999
- const m = typeof l2 == "function" ? l2 : Bn(Jn(i, l2)), u = this.getSpecs().entries.filter(({ obj: p2 }) => f(p2) ? m(p2) : false);
5000
- if (u.length === 0)
5048
+ i[l2] = m2;
5049
+ const s2 = typeof n2 == "function" ? [n2] : Array.isArray(n2) ? n2 : [n2], o = e instanceof On ? e : new On(i), a = [];
5050
+ for (const l2 of s2) {
5051
+ const m2 = typeof l2 == "function" ? l2 : Bn(Jn(i, l2)), u2 = this.getSpecs().entries.filter(({ obj: p2 }) => f(p2) ? m2(p2) : false);
5052
+ if (u2.length === 0)
5001
5053
  continue;
5002
5054
  const f$1 = typeof l2 == "object" && "axes" in l2 && l2.axes !== void 0 && l2.partialAxesMatch === void 0 ? l2.axes.map((p2, d) => "split" in p2 && p2.split === true ? d : -1).filter((p2) => p2 !== -1) : [];
5003
5055
  if (f$1.sort((p2, d) => p2 - d), f$1.length > 0) {
5004
5056
  const p2 = f$1[f$1.length - 1];
5005
- for (const { ref: d, obj: y$1 } of u) {
5057
+ for (const { ref: d, obj: y$1 } of u2) {
5006
5058
  if (!f(y$1)) throw new Error(`Assertion failed: expected PColumnSpec, got ${y$1.kind}`);
5007
5059
  const g2 = this.getDataByRef(d);
5008
5060
  if (!g2) {
@@ -5040,7 +5092,7 @@
5040
5092
  }
5041
5093
  }
5042
5094
  } else
5043
- for (const { ref: p2, obj: d } of u)
5095
+ for (const { ref: p2, obj: d } of u2)
5044
5096
  f(d) && a.push({
5045
5097
  obj: d,
5046
5098
  ref: p2
@@ -5075,52 +5127,52 @@
5075
5127
  * @param opts - Optional configuration for label generation and data waiting
5076
5128
  * @returns A PFrameHandle for the created PFrame, or undefined if any required data is missing
5077
5129
  */
5078
- getAnchoredPColumns(e, n, r) {
5130
+ getAnchoredPColumns(e, n2, r) {
5079
5131
  const i = {
5080
5132
  ...r,
5081
5133
  labelOps: {
5082
5134
  includeNativeLabel: true,
5083
5135
  ...(r == null ? void 0 : r.labelOps) || {}
5084
5136
  }
5085
- }, s = this.getUniversalPColumnEntries(
5137
+ }, s2 = this.getUniversalPColumnEntries(
5086
5138
  e,
5087
- n,
5139
+ n2,
5088
5140
  i
5089
5141
  );
5090
- if (!s || s.length === 0) return;
5142
+ if (!s2 || s2.length === 0) return;
5091
5143
  const o = [];
5092
- for (const a of s) {
5093
- const c = this.getPColumnByRef(a.ref);
5094
- if (!c) return;
5095
- const l2 = le(c.data);
5144
+ for (const a of s2) {
5145
+ const c2 = this.getPColumnByRef(a.ref);
5146
+ if (!c2) return;
5147
+ const l2 = le(c2.data);
5096
5148
  if (!l2) return;
5097
- let m = l2, u = { ...c.spec };
5149
+ let m2 = l2, u2 = { ...c2.spec };
5098
5150
  if (a.axisFilters && a.axisFilters.length > 0) {
5099
5151
  const p2 = a.axisFilters.map((g2) => [
5100
5152
  g2.axisIdx,
5101
5153
  g2.value
5102
5154
  ]);
5103
- m = Xe(l2, p2);
5104
- const d = [...a.axisFilters].map((g2) => g2.axisIdx).sort((g2, v) => v - g2), y2 = [...u.axesSpec];
5155
+ m2 = Xe(l2, p2);
5156
+ const d = [...a.axisFilters].map((g2) => g2.axisIdx).sort((g2, v) => v - g2), y2 = [...u2.axesSpec];
5105
5157
  for (const g2 of d)
5106
5158
  y2.splice(g2, 1);
5107
- u = { ...u, axesSpec: y2 };
5159
+ u2 = { ...u2, axesSpec: y2 };
5108
5160
  }
5109
- const f2 = ln(m);
5110
- u.annotations ? u = {
5111
- ...u,
5161
+ const f2 = ln(m2);
5162
+ u2.annotations ? u2 = {
5163
+ ...u2,
5112
5164
  annotations: {
5113
- ...u.annotations,
5165
+ ...u2.annotations,
5114
5166
  "pl7.app/label": a.label
5115
5167
  }
5116
- } : u = {
5117
- ...u,
5168
+ } : u2 = {
5169
+ ...u2,
5118
5170
  annotations: {
5119
5171
  "pl7.app/label": a.label
5120
5172
  }
5121
5173
  }, o.push({
5122
5174
  id: a.id,
5123
- spec: u,
5175
+ spec: u2,
5124
5176
  data: f2
5125
5177
  });
5126
5178
  }
@@ -5155,12 +5207,12 @@
5155
5207
  * @returns An array of objects with `label` (display text) and `value` (anchored ID string) properties,
5156
5208
  * or undefined if any PlRef resolution fails.
5157
5209
  */
5158
- getCanonicalOptions(e, n, r) {
5159
- const i = this.getUniversalPColumnEntries(e, n, r);
5210
+ getCanonicalOptions(e, n2, r) {
5211
+ const i = this.getUniversalPColumnEntries(e, n2, r);
5160
5212
  if (i)
5161
- return i.map((s) => ({
5162
- value: s.id,
5163
- label: s.label
5213
+ return i.map((s2) => ({
5214
+ value: s2.id,
5215
+ label: s2.label
5164
5216
  }));
5165
5217
  }
5166
5218
  /**
@@ -5173,11 +5225,11 @@
5173
5225
  const e = this.ctx.getDataFromResultPool();
5174
5226
  return {
5175
5227
  isComplete: e.isComplete,
5176
- entries: e.entries.map((n) => ({
5177
- ref: n.ref,
5228
+ entries: e.entries.map((n2) => ({
5229
+ ref: n2.ref,
5178
5230
  obj: {
5179
- ...n.obj,
5180
- data: new I(n.obj.data, [n.ref.blockId, n.ref.name])
5231
+ ...n2.obj,
5232
+ data: new I(n2.obj.data, [n2.ref.blockId, n2.ref.name])
5181
5233
  }
5182
5234
  }))
5183
5235
  };
@@ -5192,13 +5244,13 @@
5192
5244
  const e = this.ctx.getDataWithErrorsFromResultPool();
5193
5245
  return {
5194
5246
  isComplete: e.isComplete,
5195
- entries: e.entries.map((n) => ({
5196
- ref: n.ref,
5247
+ entries: e.entries.map((n2) => ({
5248
+ ref: n2.ref,
5197
5249
  obj: {
5198
- ...n.obj,
5250
+ ...n2.obj,
5199
5251
  data: Mn(
5200
- n.obj.data,
5201
- (r) => new I(r, [n.ref.blockId, n.ref.name])
5252
+ n2.obj.data,
5253
+ (r) => new I(r, [n2.ref.blockId, n2.ref.name])
5202
5254
  )
5203
5255
  }
5204
5256
  }))
@@ -5223,10 +5275,10 @@
5223
5275
  return (r = this.getData().entries.find(
5224
5276
  (i) => i.ref.blockId === e.blockId && i.ref.name === e.name
5225
5277
  )) == null ? void 0 : r.obj;
5226
- const n = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
5227
- if (n)
5278
+ const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
5279
+ if (n2)
5228
5280
  return In(
5229
- n,
5281
+ n2,
5230
5282
  (i) => new I(i, [e.blockId, e.name])
5231
5283
  );
5232
5284
  }
@@ -5236,9 +5288,9 @@
5236
5288
  * @returns p-column associated with the ref
5237
5289
  */
5238
5290
  getPColumnByRef(e) {
5239
- const n = this.getDataByRef(e);
5240
- if (n)
5241
- return Dn(n);
5291
+ const n2 = this.getDataByRef(e);
5292
+ if (n2)
5293
+ return Dn(n2);
5242
5294
  }
5243
5295
  /**
5244
5296
  * Returns spec associated with the ref ensuring that it is a p-column spec.
@@ -5246,10 +5298,10 @@
5246
5298
  * @returns p-column spec associated with the ref
5247
5299
  */
5248
5300
  getPColumnSpecByRef(e) {
5249
- const n = this.getSpecByRef(e);
5250
- if (n) {
5251
- if (!f(n)) throw new Error(`not a PColumn spec (kind = ${n.kind})`);
5252
- return n;
5301
+ const n2 = this.getSpecByRef(e);
5302
+ if (n2) {
5303
+ if (!f(n2)) throw new Error(`not a PColumn spec (kind = ${n2.kind})`);
5304
+ return n2;
5253
5305
  }
5254
5306
  }
5255
5307
  /**
@@ -5265,29 +5317,29 @@
5265
5317
  * @deprecated delete this method after Jan 1, 2025
5266
5318
  */
5267
5319
  findDataWithCompatibleSpec(e) {
5268
- const n = [];
5320
+ const n2 = [];
5269
5321
  e: for (const r of this.getData().entries) {
5270
5322
  if (!f(r.obj.spec))
5271
5323
  continue;
5272
5324
  const i = r.obj.spec;
5273
5325
  if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && re(e.domain, i.domain)) {
5274
- for (let s = 0; s < e.axesSpec.length; ++s) {
5275
- const o = e.axesSpec[s], a = i.axesSpec[s];
5326
+ for (let s2 = 0; s2 < e.axesSpec.length; ++s2) {
5327
+ const o = e.axesSpec[s2], a = i.axesSpec[s2];
5276
5328
  if (o.name !== a.name || o.type !== a.type || !re(o.domain, a.domain))
5277
5329
  continue e;
5278
5330
  }
5279
- n.push(r.obj);
5331
+ n2.push(r.obj);
5280
5332
  }
5281
5333
  }
5282
- return n;
5334
+ return n2;
5283
5335
  }
5284
5336
  /**
5285
5337
  * Find labels data for a given axis id. It will search for a label column and return its data as a map.
5286
5338
  * @returns a map of axis value => label
5287
5339
  */
5288
5340
  findLabels(e) {
5289
- const n = this.getData();
5290
- for (const r of n.entries) {
5341
+ const n2 = this.getData();
5342
+ for (const r of n2.entries) {
5291
5343
  if (!Y$1(r.obj)) continue;
5292
5344
  const i = r.obj.spec;
5293
5345
  if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && re(e.domain, i.axesSpec[0].domain)) {
@@ -5327,7 +5379,7 @@
5327
5379
  getNamedAccessor(e) {
5328
5380
  return ie(
5329
5381
  this.ctx.getAccessorHandleByName(e),
5330
- (n) => new I(n, [e])
5382
+ (n2) => new I(n2, [e])
5331
5383
  );
5332
5384
  }
5333
5385
  get prerun() {
@@ -5346,25 +5398,25 @@
5346
5398
  }
5347
5399
  verifyInlineAndExplicitColumnsSupport(e) {
5348
5400
  var i;
5349
- const n = e.some((s) => !(s.data instanceof I) || dn(s.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5350
- if (n && !r) throw Error("Inline or explicit columns not supported");
5401
+ const n2 = e.some((s2) => !(s2.data instanceof I) || dn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5402
+ if (n2 && !r) throw Error("Inline or explicit columns not supported");
5351
5403
  }
5352
5404
  createPFrame(e) {
5353
5405
  return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
5354
- e.map((n) => fe(n))
5406
+ e.map((n2) => fe(n2))
5355
5407
  );
5356
5408
  }
5357
5409
  createPTable(e) {
5358
- let n;
5359
- return "columns" in e ? n = {
5410
+ let n2;
5411
+ return "columns" in e ? n2 = {
5360
5412
  src: {
5361
5413
  type: "full",
5362
5414
  entries: e.columns.map((r) => ({ type: "column", column: r }))
5363
5415
  },
5364
5416
  filters: e.filters ?? [],
5365
5417
  sorting: e.sorting ?? []
5366
- } : n = e, this.verifyInlineAndExplicitColumnsSupport(jn(n.src)), this.ctx.createPTable(
5367
- En(n, (r) => fe(r))
5418
+ } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(jn(n2.src)), this.ctx.createPTable(
5419
+ En(n2, (r) => fe(r))
5368
5420
  );
5369
5421
  }
5370
5422
  /** @deprecated scheduled for removal from SDK */
@@ -5376,7 +5428,7 @@
5376
5428
  return this.ctx.getCurrentUnstableMarker();
5377
5429
  }
5378
5430
  }
5379
- const U = "1.27.8";
5431
+ const U = "1.27.10";
5380
5432
  function tt(t) {
5381
5433
  return t.__renderLambda === true;
5382
5434
  }
@@ -5385,8 +5437,8 @@
5385
5437
  return tt(t) ? t.handle : t;
5386
5438
  }
5387
5439
  class _ {
5388
- constructor(e, n, r, i, s, o, a) {
5389
- this._renderingMode = e, this._initialArgs = n, this._initialUiState = r, this._outputs = i, this._inputsValid = s, this._sections = o, this._title = a;
5440
+ constructor(e, n2, r, i, s2, o, a) {
5441
+ this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a;
5390
5442
  }
5391
5443
  static create(e = "Heavy") {
5392
5444
  return new _(
@@ -5399,10 +5451,10 @@
5399
5451
  void 0
5400
5452
  );
5401
5453
  }
5402
- output(e, n, r = {}) {
5403
- if (typeof n == "function") {
5454
+ output(e, n2, r = {}) {
5455
+ if (typeof n2 == "function") {
5404
5456
  const i = `output#${e}`;
5405
- return q(i, () => n(new z())), new _(
5457
+ return q(i, () => n2(new z())), new _(
5406
5458
  this._renderingMode,
5407
5459
  this._initialArgs,
5408
5460
  this._initialUiState,
@@ -5425,7 +5477,7 @@
5425
5477
  this._initialUiState,
5426
5478
  {
5427
5479
  ...this._outputs,
5428
- [e]: n
5480
+ [e]: n2
5429
5481
  },
5430
5482
  this._inputsValid,
5431
5483
  this._sections,
@@ -5433,8 +5485,8 @@
5433
5485
  );
5434
5486
  }
5435
5487
  /** Shortcut for {@link output} with retentive flag set to true. */
5436
- retentiveOutput(e, n) {
5437
- return this.output(e, n, { retentive: true });
5488
+ retentiveOutput(e, n2) {
5489
+ return this.output(e, n2, { retentive: true });
5438
5490
  }
5439
5491
  argsValid(e) {
5440
5492
  return typeof e == "function" ? (q("inputsValid", () => e(new z())), new _(
@@ -5551,31 +5603,31 @@
5551
5603
  inputsValid: se(this._inputsValid),
5552
5604
  sections: se(this._sections),
5553
5605
  outputs: Object.fromEntries(
5554
- Object.entries(this._outputs).map(([n, r]) => [n, se(r)])
5606
+ Object.entries(this._outputs).map(([n2, r]) => [n2, se(r)])
5555
5607
  )
5556
5608
  };
5557
5609
  return Ke() ? be({ sdkVersion: U }) : { config: e };
5558
5610
  }
5559
5611
  }
5560
- function Gt(t, e, n, r) {
5561
- var l2, m;
5612
+ function Wt(t, e, n2, r) {
5613
+ var l2, m2;
5562
5614
  Array.isArray(r) && (r = { filters: r });
5563
- const i = t.resultPool.getData().entries.map((u) => u.obj).filter(Y$1).filter((u) => u.spec.name === "pl7.app/label" && u.spec.axesSpec.length === 1), s = (u, f2) => {
5564
- let p2 = u.toString();
5615
+ const i = t.resultPool.getData().entries.map((u2) => u2.obj).filter(Y$1).filter((u2) => u2.spec.name === "pl7.app/label" && u2.spec.axesSpec.length === 1), s2 = (u2, f2) => {
5616
+ let p2 = u2.toString();
5565
5617
  if (f2)
5566
5618
  for (const d in f2)
5567
5619
  p2 += d, p2 += f2[d];
5568
5620
  return p2;
5569
5621
  }, o = /* @__PURE__ */ new Map();
5570
- for (const u of e)
5571
- for (const f2 of u.spec.axesSpec) {
5622
+ for (const u2 of e)
5623
+ for (const f2 of u2.spec.axesSpec) {
5572
5624
  const p2 = y(f2);
5573
5625
  for (const d of i) {
5574
5626
  const y$1 = d.spec.axesSpec[0], g2 = y(d.spec.axesSpec[0]);
5575
5627
  if (X(p2, g2)) {
5576
5628
  const v = Object.keys(p2.domain ?? {}).length, w2 = Object.keys(g2.domain ?? {}).length;
5577
5629
  if (v > w2) {
5578
- const x2 = s(d.id, p2.domain);
5630
+ const x2 = s2(d.id, p2.domain);
5579
5631
  o.set(x2, {
5580
5632
  id: x2,
5581
5633
  spec: {
@@ -5585,32 +5637,32 @@
5585
5637
  data: d.data
5586
5638
  });
5587
5639
  } else
5588
- o.set(s(d.id), d);
5640
+ o.set(s2(d.id), d);
5589
5641
  }
5590
5642
  }
5591
5643
  }
5592
5644
  if ([...e, ...o.values()].some(
5593
- (u) => u.data instanceof I && !u.data.getIsReadyOrError()
5645
+ (u2) => u2.data instanceof I && !u2.data.getIsReadyOrError()
5594
5646
  ))
5595
5647
  return;
5596
5648
  let a = e;
5597
- const c = [];
5649
+ const c2 = [];
5598
5650
  if (r != null && r.coreColumnPredicate) {
5599
5651
  a = [];
5600
- for (const u of e)
5601
- r.coreColumnPredicate(u.spec) ? a.push(u) : c.push(u);
5652
+ for (const u2 of e)
5653
+ r.coreColumnPredicate(u2.spec) ? a.push(u2) : c2.push(u2);
5602
5654
  }
5603
- return c.push(...o.values()), t.createPTable({
5655
+ return c2.push(...o.values()), t.createPTable({
5604
5656
  src: {
5605
5657
  type: "outer",
5606
5658
  primary: {
5607
5659
  type: (r == null ? void 0 : r.coreJoinType) ?? "full",
5608
- entries: a.map((u) => ({ type: "column", column: u }))
5660
+ entries: a.map((u2) => ({ type: "column", column: u2 }))
5609
5661
  },
5610
- secondary: c.map((u) => ({ type: "column", column: u }))
5662
+ secondary: c2.map((u2) => ({ type: "column", column: u2 }))
5611
5663
  },
5612
- filters: [...(r == null ? void 0 : r.filters) ?? [], ...((l2 = n == null ? void 0 : n.pTableParams) == null ? void 0 : l2.filters) ?? []],
5613
- sorting: ((m = n == null ? void 0 : n.pTableParams) == null ? void 0 : m.sorting) ?? []
5664
+ filters: [...(r == null ? void 0 : r.filters) ?? [], ...((l2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : l2.filters) ?? []],
5665
+ sorting: ((m2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : m2.sorting) ?? []
5614
5666
  });
5615
5667
  }
5616
5668
  const ImportFileHandleSchema = z$2.string().optional().refine(
@@ -5628,8 +5680,8 @@
5628
5680
  }
5629
5681
  return lst;
5630
5682
  }
5631
- function times(n, cb) {
5632
- return toList(range(0, n)).map(cb);
5683
+ function times(n2, cb) {
5684
+ return toList(range(0, n2)).map(cb);
5633
5685
  }
5634
5686
  const $BlockArgs = z$2.object({
5635
5687
  tableNumRows: z$2.number().default(100),
@@ -5646,8 +5698,8 @@
5646
5698
  return (_b = (_a = ctx.outputs) == null ? void 0 : _a.resolve("numbers")) == null ? void 0 : _b.getDataAsJson();
5647
5699
  }).output("progresses", (ctx) => {
5648
5700
  var _a;
5649
- const m = (_a = ctx.outputs) == null ? void 0 : _a.resolve("progresses");
5650
- const progresses = m == null ? void 0 : m.mapFields((name, val) => [name, val == null ? void 0 : val.getImportProgress()]);
5701
+ const m2 = (_a = ctx.outputs) == null ? void 0 : _a.resolve("progresses");
5702
+ const progresses = m2 == null ? void 0 : m2.mapFields((name, val) => [name, val == null ? void 0 : val.getImportProgress()]);
5651
5703
  return Object.fromEntries(progresses ?? []);
5652
5704
  }).output("pt", (ctx) => {
5653
5705
  var _a, _b, _c, _d, _e2;
@@ -5659,7 +5711,7 @@
5659
5711
  val: v.toString()
5660
5712
  };
5661
5713
  });
5662
- return Gt(
5714
+ return Wt(
5663
5715
  ctx,
5664
5716
  [
5665
5717
  {