@milaboratories/milaboratories.ui-examples.model 1.1.68 → 1.1.70

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
@@ -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, f2) {
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
@@ -3069,7 +3069,7 @@
3069
3069
  });
3070
3070
  }
3071
3071
  const params = { errorMap: ctx.common.contextualErrorMap };
3072
- const fn = ctx.data;
3072
+ const fn2 = ctx.data;
3073
3073
  if (this._def.returns instanceof ZodPromise) {
3074
3074
  const me2 = this;
3075
3075
  return OK(async function(...args) {
@@ -3078,7 +3078,7 @@
3078
3078
  error.addIssue(makeArgsIssue(args, e));
3079
3079
  throw error;
3080
3080
  });
3081
- const result = await Reflect.apply(fn, this, parsedArgs);
3081
+ const result = await Reflect.apply(fn2, this, parsedArgs);
3082
3082
  const parsedReturns = await me2._def.returns._def.type.parseAsync(result, params).catch((e) => {
3083
3083
  error.addIssue(makeReturnsIssue(result, e));
3084
3084
  throw error;
@@ -3092,7 +3092,7 @@
3092
3092
  if (!parsedArgs.success) {
3093
3093
  throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
3094
3094
  }
3095
- const result = Reflect.apply(fn, this, parsedArgs.data);
3095
+ const result = Reflect.apply(fn2, this, parsedArgs.data);
3096
3096
  const parsedReturns = me2._def.returns.safeParse(result, params);
3097
3097
  if (!parsedReturns.success) {
3098
3098
  throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
@@ -3798,7 +3798,7 @@
3798
3798
  date: (arg) => ZodDate.create({ ...arg, coerce: true })
3799
3799
  };
3800
3800
  const NEVER = INVALID;
3801
- var z$2 = /* @__PURE__ */ Object.freeze({
3801
+ var z$1 = /* @__PURE__ */ Object.freeze({
3802
3802
  __proto__: null,
3803
3803
  defaultErrorMap: errorMap,
3804
3804
  setErrorMap,
@@ -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 Oe = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
3959
- var I = Object.defineProperty;
3960
- var D = (n2, e, t) => e in n2 ? I(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3961
- var l$1 = (n2, e, t) => D(n2, typeof e != "symbol" ? e + "" : e, t);
3962
- z$2.object({
3958
+ const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
3959
+ var B$1 = Object.defineProperty;
3960
+ var j = (n2, e, t) => e in n2 ? B$1(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3961
+ var l$1 = (n2, e, t) => j(n2, typeof e != "symbol" ? e + "" : e, t);
3962
+ z$1.object({
3963
3963
  /** Included left border. */
3964
- from: z$2.number(),
3964
+ from: z$1.number(),
3965
3965
  /** Excluded right border. */
3966
- to: z$2.number()
3966
+ to: z$1.number()
3967
3967
  });
3968
3968
  function w(n2) {
3969
3969
  throw new Error("Unexpected object: " + n2);
3970
3970
  }
3971
- function hn(n2) {
3971
+ function En(n2) {
3972
3972
  if (!n2 || typeof n2 != "object")
3973
3973
  return false;
3974
3974
  const e = n2;
@@ -3985,7 +3985,7 @@
3985
3985
  return false;
3986
3986
  }
3987
3987
  }
3988
- function gn(n2, e) {
3988
+ function Nn(n2, e) {
3989
3989
  if (n2 !== void 0)
3990
3990
  switch (n2.type) {
3991
3991
  case "Json":
@@ -4013,7 +4013,7 @@
4013
4013
  }
4014
4014
  }
4015
4015
  }
4016
- function F(n2) {
4016
+ function K(n2) {
4017
4017
  if (!n2 || typeof n2 != "object")
4018
4018
  return false;
4019
4019
  const e = n2;
@@ -4030,10 +4030,10 @@
4030
4030
  return false;
4031
4031
  }
4032
4032
  }
4033
- function bn(n2) {
4034
- return F(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4033
+ function Sn(n2) {
4034
+ return K(n2) ? n2.type === "JsonPartitioned" || n2.type === "BinaryPartitioned" : false;
4035
4035
  }
4036
- function wn(n2) {
4036
+ function Cn(n2) {
4037
4037
  switch (n2.type) {
4038
4038
  case "Json": {
4039
4039
  const e = Object.entries(n2.data).map(([t, r]) => ({ key: JSON.parse(t), value: r }));
@@ -4061,7 +4061,7 @@
4061
4061
  }
4062
4062
  }
4063
4063
  }
4064
- function Pn(n2) {
4064
+ function Jn(n2) {
4065
4065
  switch (n2.type) {
4066
4066
  case "Json": {
4067
4067
  const e = {};
@@ -4095,7 +4095,7 @@
4095
4095
  }
4096
4096
  }
4097
4097
  }
4098
- function $n(n2) {
4098
+ function Fn(n2) {
4099
4099
  return {
4100
4100
  columnId: n2.id,
4101
4101
  spec: n2.spec
@@ -4105,23 +4105,23 @@
4105
4105
  const { type: e, name: t, domain: r } = n2, o = { type: e, name: t };
4106
4106
  return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
4107
4107
  }
4108
- function C(n2) {
4108
+ function J(n2) {
4109
4109
  return n2.map(p$1);
4110
4110
  }
4111
- function In(n2) {
4112
- return Oe(p$1(n2));
4111
+ function Rn(n2) {
4112
+ return ke(p$1(n2));
4113
4113
  }
4114
- function z$1(n2, e) {
4114
+ function Y$1(n2, e) {
4115
4115
  if (n2 === void 0) return e === void 0;
4116
4116
  if (e === void 0) return true;
4117
4117
  for (const t in e)
4118
4118
  if (n2[t] !== e[t]) return false;
4119
4119
  return true;
4120
4120
  }
4121
- function X(n2, e) {
4122
- return n2.name === e.name && z$1(n2.domain, e.domain);
4121
+ function Z$1(n2, e) {
4122
+ return n2.name === e.name && Y$1(n2.domain, e.domain);
4123
4123
  }
4124
- function Dn(n2, e) {
4124
+ function Un(n2, e) {
4125
4125
  return { ...n2, src: h(n2.src, e) };
4126
4126
  }
4127
4127
  function h(n2, e) {
@@ -4156,16 +4156,16 @@
4156
4156
  w(n2);
4157
4157
  }
4158
4158
  }
4159
- function G(n2) {
4160
- return Oe(n2);
4159
+ function nn(n2) {
4160
+ return ke(n2);
4161
4161
  }
4162
- function x(n2) {
4163
- return Oe(p$1(n2));
4162
+ function P(n2) {
4163
+ return ke(p$1(n2));
4164
4164
  }
4165
- function A(n2, e) {
4165
+ function k(n2, e) {
4166
4166
  return JSON.stringify([n2, e]);
4167
4167
  }
4168
- class Vn {
4168
+ class _n {
4169
4169
  /**
4170
4170
  * Creates a new anchor context from a set of anchor column specifications
4171
4171
  * @param anchors Record of anchor column specifications indexed by anchor ID
@@ -4180,14 +4180,14 @@
4180
4180
  t.sort((r, o) => r[0].localeCompare(o[0]));
4181
4181
  for (const [r, o] of t) {
4182
4182
  for (let s2 = 0; s2 < o.axesSpec.length; s2++) {
4183
- const a = o.axesSpec[s2], i = x(a);
4183
+ const a = o.axesSpec[s2], i = P(a);
4184
4184
  this.axes.set(i, { anchor: r, idx: s2 });
4185
4185
  }
4186
4186
  if (o.domain !== void 0) {
4187
4187
  const s2 = Object.entries(o.domain);
4188
4188
  s2.sort((a, i) => a[0].localeCompare(i[0])), this.domainPackToAnchor.set(JSON.stringify(s2), r), this.domainPacks.push(s2.map(([a]) => a));
4189
4189
  for (const [a, i] of s2) {
4190
- const u2 = A(a, i);
4190
+ const u2 = k(a, i);
4191
4191
  this.domains.set(u2, r);
4192
4192
  }
4193
4193
  }
@@ -4222,11 +4222,11 @@
4222
4222
  for (const [a, i] of Object.entries(e.domain ?? {})) {
4223
4223
  if (o !== void 0 && o.has(a))
4224
4224
  continue;
4225
- const u2 = A(a, i), c2 = this.domains.get(u2);
4225
+ const u2 = k(a, i), c2 = this.domains.get(u2);
4226
4226
  r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : i;
4227
4227
  }
4228
4228
  if (r.axes = e.axesSpec.map((a) => {
4229
- const i = x(a), u2 = this.axes.get(i);
4229
+ const i = P(a), u2 = this.axes.get(i);
4230
4230
  return u2 === void 0 ? p$1(a) : u2;
4231
4231
  }), !t || t.length === 0)
4232
4232
  return r;
@@ -4256,10 +4256,10 @@
4256
4256
  * @returns A canonicalized string representation of the anchored column identifier
4257
4257
  */
4258
4258
  deriveS(e, t) {
4259
- return G(this.derive(e, t));
4259
+ return nn(this.derive(e, t));
4260
4260
  }
4261
4261
  }
4262
- function Bn(n2, e, t) {
4262
+ function Mn(n2, e, t) {
4263
4263
  const r = { ...e }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
4264
4264
  if (r.domainAnchor !== void 0) {
4265
4265
  const s2 = n2[r.domainAnchor];
@@ -4286,10 +4286,10 @@
4286
4286
  }
4287
4287
  r.domain = s2;
4288
4288
  }
4289
- return r.axes && (r.axes = r.axes.map((s2) => Q(n2, s2))), r;
4289
+ return r.axes && (r.axes = r.axes.map((s2) => en(n2, s2))), r;
4290
4290
  }
4291
- function Q(n2, e) {
4292
- if (!Y$1(e))
4291
+ function en(n2, e) {
4292
+ if (!tn(e))
4293
4293
  return e;
4294
4294
  const t = e.anchor, r = n2[t];
4295
4295
  if (!r)
@@ -4306,7 +4306,7 @@
4306
4306
  throw new Error(`Axis with name "${e.name}" not found in anchor "${t}"`);
4307
4307
  return o[0];
4308
4308
  } else if ("id" in e) {
4309
- const o = r.axesSpec.filter((s2) => X(e.id, p$1(s2)));
4309
+ const o = r.axesSpec.filter((s2) => Z$1(e.id, p$1(s2)));
4310
4310
  if (o.length > 1)
4311
4311
  throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
4312
4312
  if (o.length === 0)
@@ -4315,26 +4315,26 @@
4315
4315
  }
4316
4316
  throw new Error("Unsupported axis reference type");
4317
4317
  }
4318
- function Y$1(n2) {
4318
+ function tn(n2) {
4319
4319
  return typeof n2 == "object" && "anchor" in n2;
4320
4320
  }
4321
4321
  function f(n2) {
4322
4322
  return n2.kind === "PColumn";
4323
4323
  }
4324
- function Z$1(n2) {
4324
+ function rn(n2) {
4325
4325
  return f(n2.spec);
4326
4326
  }
4327
- function Un(n2) {
4328
- if (!Z$1(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
4327
+ function qn(n2) {
4328
+ if (!rn(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
4329
4329
  return n2;
4330
4330
  }
4331
- function Kn(n2, e) {
4331
+ function Wn(n2, e) {
4332
4332
  return n2 === void 0 ? void 0 : {
4333
4333
  ...n2,
4334
4334
  data: e(n2.data)
4335
4335
  };
4336
4336
  }
4337
- function vn(n2) {
4337
+ function Xn(n2) {
4338
4338
  const e = /* @__PURE__ */ new Map(), t = (r) => {
4339
4339
  switch (r.type) {
4340
4340
  case "column":
@@ -4359,7 +4359,7 @@
4359
4359
  };
4360
4360
  return t(n2), [...e.values()];
4361
4361
  }
4362
- function k$1(n2, e) {
4362
+ function E$1(n2, e) {
4363
4363
  if (n2.name !== void 0 && n2.name !== e.name)
4364
4364
  return false;
4365
4365
  if (n2.type !== void 0) {
@@ -4397,13 +4397,13 @@
4397
4397
  const t = n2.axesSpec.map(p$1);
4398
4398
  if (e.partialAxesMatch) {
4399
4399
  for (const r of e.axes)
4400
- if (!t.some((o) => k$1(r, o)))
4400
+ if (!t.some((o) => E$1(r, o)))
4401
4401
  return false;
4402
4402
  } else {
4403
4403
  if (t.length !== e.axes.length)
4404
4404
  return false;
4405
4405
  for (let r = 0; r < e.axes.length; r++)
4406
- if (!k$1(e.axes[r], t[r]))
4406
+ if (!E$1(e.axes[r], t[r]))
4407
4407
  return false;
4408
4408
  }
4409
4409
  }
@@ -4423,28 +4423,28 @@
4423
4423
  }
4424
4424
  return true;
4425
4425
  }
4426
- function _n(n2) {
4426
+ function Gn(n2) {
4427
4427
  return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N(e, t)) : (e) => f(e) && N(e, n2);
4428
4428
  }
4429
- function Mn(n2) {
4429
+ function Qn(n2) {
4430
4430
  const e = {
4431
4431
  kind: n2.kind,
4432
4432
  name: n2.name
4433
4433
  };
4434
- return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)), Oe(e);
4434
+ return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = J(n2.axesSpec)), ke(e);
4435
4435
  }
4436
- z$2.object({
4437
- __isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
4438
- blockId: z$2.string().describe("Upstream block id"),
4439
- name: z$2.string().describe("Name of the output provided to the upstream block's output context"),
4440
- requireEnrichments: z$2.literal(true).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")
4436
+ z$1.object({
4437
+ __isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
4438
+ blockId: z$1.string().describe("Upstream block id"),
4439
+ name: z$1.string().describe("Name of the output provided to the upstream block's output context"),
4440
+ requireEnrichments: z$1.literal(true).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")
4441
4441
  }).describe(
4442
4442
  "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."
4443
4443
  ).readonly();
4444
- function qn(n2) {
4444
+ function ne(n2) {
4445
4445
  return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
4446
4446
  }
4447
- function zn(n2, e = true) {
4447
+ function te$1(n2, e = true) {
4448
4448
  if (e)
4449
4449
  return {
4450
4450
  ...n2,
@@ -4455,12 +4455,12 @@
4455
4455
  return r;
4456
4456
  }
4457
4457
  }
4458
- function Gn(n2, e) {
4458
+ function oe$1(n2, e) {
4459
4459
  return n2.ok ? { ok: true, value: e(n2.value) } : n2;
4460
4460
  }
4461
- const sn = 24;
4462
- z$2.string().length(sn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4463
- function ee(n2) {
4461
+ const fn = 24;
4462
+ z$1.string().length(fn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4463
+ function ce$1(n2) {
4464
4464
  return JSON.parse(n2);
4465
4465
  }
4466
4466
  var stringify = { exports: {} };
@@ -4494,44 +4494,44 @@
4494
4494
  return stringify.exports;
4495
4495
  }
4496
4496
  requireStringify();
4497
- const l = z$2.object({
4498
- type: z$2.literal("PlError"),
4499
- name: z$2.string(),
4500
- message: z$2.string(),
4497
+ const l = z$1.object({
4498
+ type: z$1.literal("PlError"),
4499
+ name: z$1.string(),
4500
+ message: z$1.string(),
4501
4501
  /** The message with all details needed for SDK developers. */
4502
- fullMessage: z$2.string().optional(),
4503
- stack: z$2.string().optional()
4502
+ fullMessage: z$1.string().optional(),
4503
+ stack: z$1.string().optional()
4504
4504
  }), c = l.extend({
4505
- cause: z$2.lazy(() => s).optional(),
4506
- errors: z$2.lazy(() => s.array()).optional()
4507
- }), m = z$2.object({
4508
- type: z$2.literal("StandardError"),
4509
- name: z$2.string(),
4510
- message: z$2.string(),
4511
- stack: z$2.string().optional()
4512
- }), p = m.extend({
4513
- cause: z$2.lazy(() => s).optional(),
4514
- errors: z$2.lazy(() => s.array()).optional()
4515
- }), s = z$2.union([p, c]);
4516
- const u = z$2.object({
4517
- name: z$2.string(),
4518
- message: z$2.string(),
4519
- fullMessage: z$2.string().optional(),
4520
- stack: z$2.string().optional()
4505
+ cause: z$1.lazy(() => s).optional(),
4506
+ errors: z$1.lazy(() => s.array()).optional()
4507
+ }), m$1 = z$1.object({
4508
+ type: z$1.literal("StandardError"),
4509
+ name: z$1.string(),
4510
+ message: z$1.string(),
4511
+ stack: z$1.string().optional()
4512
+ }), p = m$1.extend({
4513
+ cause: z$1.lazy(() => s).optional(),
4514
+ errors: z$1.lazy(() => s.array()).optional()
4515
+ }), s = z$1.union([p, c]);
4516
+ const u = z$1.object({
4517
+ name: z$1.string(),
4518
+ message: z$1.string(),
4519
+ fullMessage: z$1.string().optional(),
4520
+ stack: z$1.string().optional()
4521
4521
  }), n = u.extend({
4522
- cause: z$2.lazy(() => n).optional(),
4523
- errors: z$2.lazy(() => n.array()).optional()
4522
+ cause: z$1.lazy(() => n).optional(),
4523
+ errors: z$1.lazy(() => n.array()).optional()
4524
4524
  });
4525
4525
  var qe = Object.defineProperty;
4526
4526
  var ze = (t, e, n2) => e in t ? qe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4527
- var k = (t, e, n2) => ze(t, typeof e != "symbol" ? e + "" : e, n2);
4527
+ var O = (t, e, n2) => ze(t, typeof e != "symbol" ? e + "" : e, n2);
4528
4528
  function re(t) {
4529
4529
  return { type: "Immediate", value: t };
4530
4530
  }
4531
4531
  function dt() {
4532
4532
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4533
4533
  }
4534
- function Re(t) {
4534
+ function De(t) {
4535
4535
  if (t && typeof globalThis.getPlatforma == "function")
4536
4536
  return globalThis.getPlatforma(t);
4537
4537
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
@@ -4540,7 +4540,7 @@
4540
4540
  function pt() {
4541
4541
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4542
4542
  }
4543
- function g() {
4543
+ function m() {
4544
4544
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4545
4545
  throw new Error("Not in config rendering context");
4546
4546
  }
@@ -4552,15 +4552,15 @@
4552
4552
  }
4553
4553
  const ce = /* @__PURE__ */ new Map();
4554
4554
  function ft(t, e) {
4555
- t in g().callbackRegistry || (g().callbackRegistry[t] = (n2) => {
4555
+ t in m().callbackRegistry || (m().callbackRegistry[t] = (n2) => {
4556
4556
  for (const r of ce.get(t))
4557
4557
  r(n2);
4558
4558
  }, ce.set(t, [])), ce.get(t).push(e);
4559
4559
  }
4560
4560
  class _ {
4561
4561
  constructor(e, n2 = (r) => r) {
4562
- k(this, "isResolved", false);
4563
- k(this, "resolvedValue");
4562
+ O(this, "isResolved", false);
4563
+ O(this, "resolvedValue");
4564
4564
  this.handle = e, this.postProcess = n2, ft(e, (r) => {
4565
4565
  this.resolvedValue = n2(r), this.isResolved = true;
4566
4566
  });
@@ -4621,46 +4621,46 @@
4621
4621
  ...n2.map((i) => typeof i == "string" ? i : i.field)
4622
4622
  ];
4623
4623
  return he(
4624
- g().resolveWithCommon(this.handle, e, ...n2),
4624
+ m().resolveWithCommon(this.handle, e, ...n2),
4625
4625
  (i) => new E(i, r)
4626
4626
  );
4627
4627
  }
4628
4628
  get resourceType() {
4629
- return g().getResourceType(this.handle);
4629
+ return m().getResourceType(this.handle);
4630
4630
  }
4631
4631
  getInputsLocked() {
4632
- return g().getInputsLocked(this.handle);
4632
+ return m().getInputsLocked(this.handle);
4633
4633
  }
4634
4634
  getOutputsLocked() {
4635
- return g().getOutputsLocked(this.handle);
4635
+ return m().getOutputsLocked(this.handle);
4636
4636
  }
4637
4637
  getIsReadyOrError() {
4638
- return g().getIsReadyOrError(this.handle);
4638
+ return m().getIsReadyOrError(this.handle);
4639
4639
  }
4640
4640
  getIsFinal() {
4641
- return g().getIsFinal(this.handle);
4641
+ return m().getIsFinal(this.handle);
4642
4642
  }
4643
4643
  getError() {
4644
4644
  const e = [...this.resolvePath, "error"];
4645
4645
  return he(
4646
- g().getError(this.handle),
4646
+ m().getError(this.handle),
4647
4647
  (n2) => new E(n2, e)
4648
4648
  );
4649
4649
  }
4650
4650
  listInputFields() {
4651
- return g().listInputFields(this.handle);
4651
+ return m().listInputFields(this.handle);
4652
4652
  }
4653
4653
  listOutputFields() {
4654
- return g().listOutputFields(this.handle);
4654
+ return m().listOutputFields(this.handle);
4655
4655
  }
4656
4656
  listDynamicFields() {
4657
- return g().listDynamicFields(this.handle);
4657
+ return m().listDynamicFields(this.handle);
4658
4658
  }
4659
4659
  getKeyValueBase64(e) {
4660
- return g().getKeyValueBase64(this.handle, e);
4660
+ return m().getKeyValueBase64(this.handle, e);
4661
4661
  }
4662
4662
  getKeyValueAsString(e) {
4663
- return g().getKeyValueAsString(this.handle, e);
4663
+ return m().getKeyValueAsString(this.handle, e);
4664
4664
  }
4665
4665
  getKeyValueAsJson(e) {
4666
4666
  const n2 = this.getKeyValueAsString(e);
@@ -4668,10 +4668,10 @@
4668
4668
  return JSON.parse(n2);
4669
4669
  }
4670
4670
  getDataBase64() {
4671
- return g().getDataBase64(this.handle);
4671
+ return m().getDataBase64(this.handle);
4672
4672
  }
4673
4673
  getDataAsString() {
4674
- return g().getDataAsString(this.handle);
4674
+ return m().getDataAsString(this.handle);
4675
4675
  }
4676
4676
  getDataAsJson() {
4677
4677
  const e = this.getDataAsString();
@@ -4684,7 +4684,7 @@
4684
4684
  getPColumns(e = false, n2 = "") {
4685
4685
  const r = this.parsePObjectCollection(e, n2);
4686
4686
  return r === void 0 ? void 0 : Object.entries(r).map(([, s2]) => {
4687
- if (!Z$1(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
4687
+ if (!rn(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
4688
4688
  return s2;
4689
4689
  });
4690
4690
  }
@@ -4692,7 +4692,7 @@
4692
4692
  *
4693
4693
  */
4694
4694
  parsePObjectCollection(e = false, n2 = "") {
4695
- const r = g().parsePObjectCollection(
4695
+ const r = m().parsePObjectCollection(
4696
4696
  this.handle,
4697
4697
  e,
4698
4698
  n2,
@@ -4702,19 +4702,19 @@
4702
4702
  const i = {};
4703
4703
  for (const [s2, o] of Object.entries(r)) {
4704
4704
  const a = [...this.resolvePath, s2];
4705
- i[s2] = Kn(o, (l2) => new E(l2, a));
4705
+ i[s2] = Wn(o, (l2) => new E(l2, a));
4706
4706
  }
4707
4707
  return i;
4708
4708
  }
4709
4709
  getFileContentAsBase64(e) {
4710
- return new _(g().getBlobContentAsBase64(this.handle, e));
4710
+ return new _(m().getBlobContentAsBase64(this.handle, e));
4711
4711
  }
4712
4712
  getFileContentAsString(e) {
4713
- return new _(g().getBlobContentAsString(this.handle, e));
4713
+ return new _(m().getBlobContentAsString(this.handle, e));
4714
4714
  }
4715
4715
  getFileContentAsJson(e) {
4716
4716
  return new _(
4717
- g().getBlobContentAsString(this.handle, e)
4717
+ m().getBlobContentAsString(this.handle, e)
4718
4718
  ).mapDefined((n2) => JSON.parse(n2));
4719
4719
  }
4720
4720
  /**
@@ -4733,7 +4733,7 @@
4733
4733
  * @returns downloaded file handle
4734
4734
  */
4735
4735
  getFileHandle() {
4736
- return new _(g().getDownloadedBlobContentHandle(this.handle));
4736
+ return new _(m().getDownloadedBlobContentHandle(this.handle));
4737
4737
  }
4738
4738
  /**
4739
4739
  * @deprecated use getFileHandle
@@ -4745,7 +4745,7 @@
4745
4745
  * @returns downloaded file handle
4746
4746
  */
4747
4747
  getRemoteFileHandle() {
4748
- return new _(g().getOnDemandBlobContentHandle(this.handle));
4748
+ return new _(m().getOnDemandBlobContentHandle(this.handle));
4749
4749
  }
4750
4750
  /**
4751
4751
  * @deprecated use getRemoteFileHandle
@@ -4757,22 +4757,22 @@
4757
4757
  * @returns the url to the extracted folder
4758
4758
  */
4759
4759
  extractArchiveAndGetURL(e) {
4760
- return new _(g().extractArchiveAndGetURL(this.handle, e));
4760
+ return new _(m().extractArchiveAndGetURL(this.handle, e));
4761
4761
  }
4762
4762
  getImportProgress() {
4763
- return new _(g().getImportProgress(this.handle));
4763
+ return new _(m().getImportProgress(this.handle));
4764
4764
  }
4765
4765
  getLastLogs(e) {
4766
- return new _(g().getLastLogs(this.handle, e));
4766
+ return new _(m().getLastLogs(this.handle, e));
4767
4767
  }
4768
4768
  getProgressLog(e) {
4769
- return new _(g().getProgressLog(this.handle, e));
4769
+ return new _(m().getProgressLog(this.handle, e));
4770
4770
  }
4771
4771
  getProgressLogWithInfo(e) {
4772
- return new _(g().getProgressLogWithInfo(this.handle, e));
4772
+ return new _(m().getProgressLogWithInfo(this.handle, e));
4773
4773
  }
4774
4774
  getLogHandle() {
4775
- return new _(g().getLogHandle(this.handle));
4775
+ return new _(m().getLogHandle(this.handle));
4776
4776
  }
4777
4777
  allFieldsResolved(e = "Input") {
4778
4778
  switch (e) {
@@ -4801,83 +4801,83 @@
4801
4801
  return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, c2]) => o(u2, c2));
4802
4802
  }
4803
4803
  }
4804
- const De = "staging", Fe = "main";
4805
- const mt = "pl7.app/label", yt = "pl7.app/trace", vt = z$2.object({
4806
- type: z$2.string(),
4807
- importance: z$2.number().optional(),
4808
- id: z$2.string().optional(),
4809
- label: z$2.string()
4810
- }), bt = z$2.array(vt), wt = 1e-3, At = "__LABEL__", Pe = "__LABEL__@1";
4804
+ const Re = "staging", Fe = "main";
4805
+ const mt = "pl7.app/label", yt = "pl7.app/trace", vt = z$1.object({
4806
+ type: z$1.string(),
4807
+ importance: z$1.number().optional(),
4808
+ id: z$1.string().optional(),
4809
+ label: z$1.string()
4810
+ }), bt = z$1.array(vt), wt = 1e-3, At = "__LABEL__", Pe = "__LABEL__@1";
4811
4811
  function Ve(t, e, n2 = {}) {
4812
4812
  const r = /* @__PURE__ */ new Map(), i = n2.forceTraceElements !== void 0 && n2.forceTraceElements.length > 0 ? new Set(n2.forceTraceElements) : void 0, s2 = /* @__PURE__ */ new Map(), o = t.map((f2) => {
4813
- var P, R;
4813
+ var P2, F;
4814
4814
  const w2 = e(f2);
4815
- let d, h2, b;
4816
- "spec" in w2 && typeof w2.spec == "object" ? (d = w2.spec, h2 = w2.prefixTrace, b = w2.suffixTrace) : d = w2;
4817
- const p2 = (P = d.annotations) == null ? void 0 : P[mt], I2 = (R = d.annotations) == null ? void 0 : R[yt], x2 = (I2 ? bt.safeParse(JSON.parse(I2)).data : void 0) ?? [], y = [
4818
- ...h2 ?? [],
4819
- ...x2,
4815
+ let p2, g, b;
4816
+ "spec" in w2 && typeof w2.spec == "object" ? (p2 = w2.spec, g = w2.prefixTrace, b = w2.suffixTrace) : p2 = w2;
4817
+ const h2 = (P2 = p2.annotations) == null ? void 0 : P2[mt], I = (F = p2.annotations) == null ? void 0 : F[yt], x = (I ? bt.safeParse(JSON.parse(I)).data : void 0) ?? [], v = [
4818
+ ...g ?? [],
4819
+ ...x,
4820
4820
  ...b ?? []
4821
4821
  ];
4822
- if (p2 !== void 0) {
4823
- const O = { label: p2, type: At, importance: -2 };
4824
- n2.addLabelAsSuffix ? y.push(O) : y.splice(0, 0, O);
4825
- }
4826
- const A2 = [], T = /* @__PURE__ */ new Map();
4827
- for (let O = y.length - 1; O >= 0; --O) {
4828
- const { type: W } = y[O], V = y[O].importance ?? 0, $ = (T.get(W) ?? 0) + 1;
4829
- T.set(W, $);
4830
- const F2 = `${W}@${$}`;
4831
- s2.set(F2, (s2.get(F2) ?? 0) + 1), r.set(
4832
- F2,
4822
+ if (h2 !== void 0) {
4823
+ const k2 = { label: h2, type: At, importance: -2 };
4824
+ n2.addLabelAsSuffix ? v.push(k2) : v.splice(0, 0, k2);
4825
+ }
4826
+ const A = [], L = /* @__PURE__ */ new Map();
4827
+ for (let k2 = v.length - 1; k2 >= 0; --k2) {
4828
+ const { type: W } = v[k2], V = v[k2].importance ?? 0, $ = (L.get(W) ?? 0) + 1;
4829
+ L.set(W, $);
4830
+ const K2 = `${W}@${$}`;
4831
+ s2.set(K2, (s2.get(K2) ?? 0) + 1), r.set(
4832
+ K2,
4833
4833
  Math.max(
4834
- r.get(F2) ?? Number.NEGATIVE_INFINITY,
4835
- V - (y.length - O) * wt
4834
+ r.get(K2) ?? Number.NEGATIVE_INFINITY,
4835
+ V - (v.length - k2) * wt
4836
4836
  )
4837
- ), A2.push({ ...y[O], fullType: F2, occurrenceIndex: $ });
4837
+ ), A.push({ ...v[k2], fullType: K2, occurrenceIndex: $ });
4838
4838
  }
4839
- return A2.reverse(), {
4839
+ return A.reverse(), {
4840
4840
  value: f2,
4841
- spec: d,
4842
- label: p2,
4843
- fullTrace: A2
4841
+ spec: p2,
4842
+ label: h2,
4843
+ fullTrace: A
4844
4844
  };
4845
4845
  }), a = [], l2 = [], u2 = [...r];
4846
4846
  u2.sort(([, f2], [, w2]) => w2 - f2);
4847
4847
  for (const [f2] of u2)
4848
4848
  f2.endsWith("@1") || s2.get(f2) === t.length ? a.push(f2) : l2.push(f2);
4849
4849
  const c2 = (f2, w2 = false) => {
4850
- const d = [];
4851
- for (let h2 = 0; h2 < o.length; h2++) {
4852
- const b = o[h2], p2 = b.fullTrace.filter((y) => f2.has(y.fullType) || i && i.has(y.type));
4853
- if (p2.length === 0)
4850
+ const p2 = [];
4851
+ for (let g = 0; g < o.length; g++) {
4852
+ const b = o[g], h2 = b.fullTrace.filter((v) => f2.has(v.fullType) || i && i.has(v.type));
4853
+ if (h2.length === 0)
4854
4854
  if (w2)
4855
- d.push({
4855
+ p2.push({
4856
4856
  label: "Unlabeled",
4857
4857
  value: b.value
4858
4858
  });
4859
4859
  else return;
4860
- const I2 = p2.map((y) => y.label), x2 = n2.separator ?? " / ";
4861
- d.push({
4862
- label: I2.join(x2),
4860
+ const I = h2.map((v) => v.label), x = n2.separator ?? " / ";
4861
+ p2.push({
4862
+ label: I.join(x),
4863
4863
  value: b.value
4864
4864
  });
4865
4865
  }
4866
- return d;
4866
+ return p2;
4867
4867
  };
4868
4868
  if (a.length === 0) {
4869
4869
  if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
4870
4870
  return c2(new Set(Pe), true);
4871
4871
  }
4872
- let m2 = 0, v = -1;
4873
- for (; m2 < a.length; ) {
4872
+ let d = 0, y = -1;
4873
+ for (; d < a.length; ) {
4874
4874
  const f2 = /* @__PURE__ */ new Set();
4875
4875
  n2.includeNativeLabel && f2.add(Pe);
4876
- for (let d = 0; d < m2; ++d) f2.add(a[d]);
4877
- v >= 0 && f2.add(a[v]);
4876
+ for (let p2 = 0; p2 < d; ++p2) f2.add(a[p2]);
4877
+ y >= 0 && f2.add(a[y]);
4878
4878
  const w2 = c2(f2);
4879
- if (w2 !== void 0 && new Set(w2.map((d) => d.label)).size === t.length) return w2;
4880
- v++, v >= a.length && (m2++, v = m2);
4879
+ if (w2 !== void 0 && new Set(w2.map((p2) => p2.label)).size === t.length) return w2;
4880
+ y++, y >= a.length && (d++, y = d);
4881
4881
  }
4882
4882
  return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
4883
4883
  }
@@ -4956,7 +4956,7 @@
4956
4956
  }
4957
4957
  function Pt(t) {
4958
4958
  if (t === void 0) return;
4959
- if (F(t))
4959
+ if (K(t))
4960
4960
  return Ct(t);
4961
4961
  const e = xt(t);
4962
4962
  if (!e) return;
@@ -5071,8 +5071,8 @@
5071
5071
  }
5072
5072
  function St(t) {
5073
5073
  if (t !== void 0) {
5074
- if (F(t)) return t;
5075
- if (hn(t)) return wn(t);
5074
+ if (K(t)) return t;
5075
+ if (En(t)) return Cn(t);
5076
5076
  if (t instanceof E) return ye(t);
5077
5077
  throw new Error(`Unexpected input type: ${typeof t}`);
5078
5078
  }
@@ -5143,19 +5143,19 @@
5143
5143
  const e = t[0];
5144
5144
  return typeof e == "object" && e !== null && "key" in e && "val" in e;
5145
5145
  }
5146
- class Tt {
5146
+ class Lt {
5147
5147
  constructor(e) {
5148
5148
  this.columns = e;
5149
5149
  }
5150
5150
  selectColumns(e) {
5151
- const n2 = typeof e == "function" ? e : _n(e);
5151
+ const n2 = typeof e == "function" ? e : Gn(e);
5152
5152
  return this.columns.filter((r) => n2(r.spec));
5153
5153
  }
5154
5154
  }
5155
- function Lt(t) {
5155
+ function Tt(t) {
5156
5156
  if (t)
5157
5157
  return t.map((e) => ({
5158
- type: `split:${In(e.axisId)}`,
5158
+ type: `split:${Rn(e.axisId)}`,
5159
5159
  label: e.label,
5160
5160
  importance: 1e6
5161
5161
  // High importance for split filters in labels
@@ -5165,17 +5165,17 @@
5165
5165
  if (t)
5166
5166
  return t.map((e) => [e.axisIdx, e.value]);
5167
5167
  }
5168
- function Ot(t, e) {
5168
+ function kt(t, e) {
5169
5169
  if (!e || e.length === 0) return t;
5170
5170
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5171
- return Oe({ id: t, axisFilters: n2 });
5171
+ return ke({ id: t, axisFilters: n2 });
5172
5172
  }
5173
5173
  function Se(t) {
5174
5174
  if (!t || typeof t != "object") return false;
5175
5175
  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);
5176
5176
  return !!e.domainAnchor || n2 || r;
5177
5177
  }
5178
- function kt(t) {
5178
+ function Ot(t) {
5179
5179
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
5180
5180
  return [];
5181
5181
  const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
@@ -5185,9 +5185,9 @@
5185
5185
  }
5186
5186
  class le {
5187
5187
  constructor() {
5188
- k(this, "defaultProviderStore", []);
5189
- k(this, "providers", [new Tt(this.defaultProviderStore)]);
5190
- k(this, "axisLabelProviders", []);
5188
+ O(this, "defaultProviderStore", []);
5189
+ O(this, "providers", [new Lt(this.defaultProviderStore)]);
5190
+ O(this, "axisLabelProviders", []);
5191
5191
  }
5192
5192
  addColumnProvider(e) {
5193
5193
  return this.providers.push(e), this;
@@ -5215,126 +5215,126 @@
5215
5215
  };
5216
5216
  let u2 = () => false;
5217
5217
  if (a) {
5218
- const d = (Array.isArray(a) ? a : [a]).map((h2) => {
5219
- if (Se(h2)) {
5218
+ const p2 = (Array.isArray(a) ? a : [a]).map((g) => {
5219
+ if (Se(g)) {
5220
5220
  if (!r)
5221
5221
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
5222
- return _n(Bn(r.anchors, h2, n2));
5222
+ return Gn(Mn(r.anchors, g, n2));
5223
5223
  } else
5224
- return _n(h2);
5224
+ return Gn(g);
5225
5225
  });
5226
- u2 = (h2) => d.some((b) => b(h2));
5226
+ u2 = (g) => p2.some((b) => b(g));
5227
5227
  }
5228
- const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], m2 = [], v = /* @__PURE__ */ new Set();
5229
- for (const d of c2) {
5230
- const h2 = Se(d);
5228
+ const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], y = /* @__PURE__ */ new Set();
5229
+ for (const p2 of c2) {
5230
+ const g = Se(p2);
5231
5231
  let b;
5232
- if (h2) {
5232
+ if (g) {
5233
5233
  if (!r)
5234
5234
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5235
- b = Bn(r.anchors, d, n2);
5235
+ b = Mn(r.anchors, p2, n2);
5236
5236
  } else
5237
- b = d;
5238
- const p2 = /* @__PURE__ */ new Set(), I2 = [];
5239
- for (const A2 of this.providers) {
5240
- const T = A2.selectColumns(b);
5241
- for (const P of T) {
5242
- if (u2(P.spec)) continue;
5243
- if (p2.has(P.id))
5244
- throw new Error(`Duplicate column id ${P.id} in provider ${A2.constructor.name}`);
5245
- const R = Mn(P.spec);
5246
- v.has(R) || (p2.add(P.id), v.add(R), I2.push(P));
5237
+ b = p2;
5238
+ const h2 = /* @__PURE__ */ new Set(), I = [];
5239
+ for (const A of this.providers) {
5240
+ const L = A.selectColumns(b);
5241
+ for (const P2 of L) {
5242
+ if (u2(P2.spec)) continue;
5243
+ if (h2.has(P2.id))
5244
+ throw new Error(`Duplicate column id ${P2.id} in provider ${A.constructor.name}`);
5245
+ const F = Qn(P2.spec);
5246
+ y.has(F) || (h2.add(P2.id), y.add(F), I.push(P2));
5247
5247
  }
5248
5248
  }
5249
- if (I2.length === 0) continue;
5250
- const x2 = kt(d), y = x2.length > 0;
5251
- for (const A2 of I2) {
5252
- if (!f(A2.spec)) continue;
5253
- const T = A2.spec;
5254
- if (y) {
5255
- if (It(A2.data))
5256
- throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A2.id}`);
5257
- const P = St(A2.data);
5258
- if (!P) {
5249
+ if (I.length === 0) continue;
5250
+ const x = Ot(p2), v = x.length > 0;
5251
+ for (const A of I) {
5252
+ if (!f(A.spec)) continue;
5253
+ const L = A.spec;
5254
+ if (v) {
5255
+ if (It(A.data))
5256
+ throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A.id}`);
5257
+ const P2 = St(A.data);
5258
+ if (!P2) {
5259
5259
  if (s2) continue;
5260
5260
  return;
5261
5261
  }
5262
- if (!bn(P))
5263
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P.type} for column ${A2.id}`);
5264
- const R = Pt(P), O = x2[x2.length - 1];
5265
- if (O >= P.partitionKeyLength)
5266
- throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${O}) in column ${T.name}`);
5267
- const W = x2.map((S) => this.findLabels(p$1(T.axesSpec[S]))), V = [], $ = (S, G2) => {
5268
- if (G2 >= x2.length) {
5262
+ if (!Sn(P2))
5263
+ throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P2.type} for column ${A.id}`);
5264
+ const F = Pt(P2), k2 = x[x.length - 1];
5265
+ if (k2 >= P2.partitionKeyLength)
5266
+ throw new Error(`Not enough partition keys (${P2.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
5267
+ const W = x.map((S) => this.findLabels(p$1(L.axesSpec[S]))), V = [], $ = (S, G) => {
5268
+ if (G >= x.length) {
5269
5269
  if (V.push([...S]), V.length > 1e4)
5270
5270
  throw new Error("Too many key combinations, aborting.");
5271
5271
  return;
5272
5272
  }
5273
- const j = x2[G2];
5274
- if (j >= R.length)
5275
- throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${A2.id}`);
5276
- const N2 = R[j];
5273
+ const j2 = x[G];
5274
+ if (j2 >= F.length)
5275
+ throw new Error(`Axis index ${j2} out of bounds for unique keys array (length ${F.length}) during split key generation for column ${A.id}`);
5276
+ const N2 = F[j2];
5277
5277
  if (!N2 || N2.length === 0) {
5278
5278
  V.length = 0;
5279
5279
  return;
5280
5280
  }
5281
- for (const ee2 of N2)
5282
- S.push(ee2), $(S, G2 + 1), S.pop();
5281
+ for (const ee of N2)
5282
+ S.push(ee), $(S, G + 1), S.pop();
5283
5283
  };
5284
5284
  if ($([], 0), V.length === 0)
5285
5285
  continue;
5286
- const F2 = [...T.axesSpec], Be = x2.map((S) => S);
5287
- for (let S = x2.length - 1; S >= 0; S--)
5288
- F2.splice(x2[S], 1);
5289
- const We = { ...T, axesSpec: F2 };
5286
+ const K2 = [...L.axesSpec], Be = x.map((S) => S);
5287
+ for (let S = x.length - 1; S >= 0; S--)
5288
+ K2.splice(x[S], 1);
5289
+ const We = { ...L, axesSpec: K2 };
5290
5290
  for (const S of V) {
5291
- const G2 = S.map((j, N2) => {
5292
- const ee2 = Be[N2], Ge = p$1(T.axesSpec[ee2]), ue = W[N2], He = (ue == null ? void 0 : ue[j]) ?? String(j);
5293
- return { axisIdx: ee2, axisId: Ge, value: j, label: He };
5291
+ const G = S.map((j2, N2) => {
5292
+ const ee = Be[N2], Ge = p$1(L.axesSpec[ee]), ue = W[N2], He = (ue == null ? void 0 : ue[j2]) ?? String(j2);
5293
+ return { axisIdx: ee, axisId: Ge, value: j2, label: He };
5294
5294
  });
5295
- m2.push({
5295
+ d.push({
5296
5296
  type: "split",
5297
- originalColumn: A2,
5298
- spec: T,
5297
+ originalColumn: A,
5298
+ spec: L,
5299
5299
  adjustedSpec: We,
5300
- dataEntries: P,
5301
- axisFilters: G2
5300
+ dataEntries: P2,
5301
+ axisFilters: G
5302
5302
  });
5303
5303
  }
5304
5304
  } else
5305
- m2.push({
5305
+ d.push({
5306
5306
  type: "direct",
5307
- originalColumn: A2,
5308
- spec: T,
5309
- adjustedSpec: T
5307
+ originalColumn: A,
5308
+ spec: L,
5309
+ adjustedSpec: L
5310
5310
  });
5311
5311
  }
5312
5312
  }
5313
- if (m2.length === 0) return [];
5313
+ if (d.length === 0) return [];
5314
5314
  const f$1 = Ve(
5315
- m2,
5316
- (d) => ({
5317
- spec: d.spec,
5318
- suffixTrace: d.type === "split" ? Lt(d.axisFilters) : void 0
5315
+ d,
5316
+ (p2) => ({
5317
+ spec: p2.spec,
5318
+ suffixTrace: p2.type === "split" ? Tt(p2.axisFilters) : void 0
5319
5319
  }),
5320
5320
  l2
5321
5321
  ), w2 = [];
5322
- for (const { value: d, label: h2 } of f$1) {
5323
- const { originalColumn: b, spec: p2 } = d, I2 = d.type === "split" ? d.axisFilters : void 0, x2 = Et(I2);
5324
- let y;
5325
- r ? y = r.deriveS(p2, x2) : y = Ot(b.id, x2);
5326
- let A2 = { ...d.adjustedSpec };
5327
- o && (A2 = {
5328
- ...A2,
5322
+ for (const { value: p2, label: g } of f$1) {
5323
+ const { originalColumn: b, spec: h2 } = p2, I = p2.type === "split" ? p2.axisFilters : void 0, x = Et(I);
5324
+ let v;
5325
+ r ? v = r.deriveS(h2, x) : v = kt(b.id, x);
5326
+ let A = { ...p2.adjustedSpec };
5327
+ o && (A = {
5328
+ ...A,
5329
5329
  annotations: {
5330
- ...A2.annotations ?? {},
5331
- "pl7.app/label": h2
5330
+ ...A.annotations ?? {},
5331
+ "pl7.app/label": g
5332
5332
  }
5333
5333
  }), w2.push({
5334
- id: y,
5335
- spec: A2,
5336
- data: () => d.type === "split" ? Pn(_t(d.dataEntries, x2)) : d.originalColumn.data,
5337
- label: h2
5334
+ id: v,
5335
+ spec: A,
5336
+ data: () => p2.type === "split" ? Jn(_t(p2.dataEntries, x)) : p2.originalColumn.data,
5337
+ label: g
5338
5338
  });
5339
5339
  }
5340
5340
  return w2;
@@ -5370,11 +5370,11 @@
5370
5370
  return true;
5371
5371
  }
5372
5372
  function _e(t) {
5373
- return Kn(t, (e) => e instanceof E ? e.handle : hn(e) ? gn(e, (n2) => n2.handle) : e);
5373
+ return Wn(t, (e) => e instanceof E ? e.handle : En(e) ? Nn(e, (n2) => n2.handle) : e);
5374
5374
  }
5375
- class Rt {
5375
+ class Dt {
5376
5376
  constructor() {
5377
- k(this, "ctx", g());
5377
+ O(this, "ctx", m());
5378
5378
  }
5379
5379
  /**
5380
5380
  * @deprecated use getOptions()
@@ -5383,28 +5383,28 @@
5383
5383
  return this.ctx.calculateOptions(e);
5384
5384
  }
5385
5385
  getOptions(e, n2) {
5386
- const r = typeof e == "function" ? e : _n(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5386
+ const r = typeof e == "function" ? e : Gn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5387
5387
  let s2 = {}, o = false;
5388
5388
  return typeof n2 < "u" && (typeof n2 == "function" ? s2 = n2 : typeof n2 == "object" && ("includeNativeLabel" in n2 || "separator" in n2 || "addLabelAsSuffix" in n2 ? s2 = n2 : (n2 = n2, s2 = n2.label ?? {}, o = n2.refsWithEnrichments ?? false))), typeof s2 == "object" ? Ve(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5389
- ref: zn(a, o),
5389
+ ref: te$1(a, o),
5390
5390
  label: l2
5391
5391
  })) : i.map(({ ref: a, obj: l2 }) => ({
5392
- ref: zn(a, o),
5392
+ ref: te$1(a, o),
5393
5393
  label: s2(l2, a)
5394
5394
  }));
5395
5395
  }
5396
5396
  resolveAnchorCtx(e) {
5397
- if (e instanceof Vn) return e;
5397
+ if (e instanceof _n) return e;
5398
5398
  const n2 = {};
5399
5399
  for (const [r, i] of Object.entries(e))
5400
- if (qn(i)) {
5400
+ if (ne(i)) {
5401
5401
  const s2 = this.getPColumnSpecByRef(i);
5402
5402
  if (!s2)
5403
5403
  return;
5404
5404
  n2[r] = s2;
5405
5405
  } else
5406
5406
  n2[r] = i;
5407
- return new Vn(n2);
5407
+ return new _n(n2);
5408
5408
  }
5409
5409
  /**
5410
5410
  * Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
@@ -5497,7 +5497,7 @@
5497
5497
  ref: n2.ref,
5498
5498
  obj: {
5499
5499
  ...n2.obj,
5500
- data: Gn(
5500
+ data: oe$1(
5501
5501
  n2.obj.data,
5502
5502
  (r) => new E(r, [n2.ref.blockId, n2.ref.name])
5503
5503
  )
@@ -5526,7 +5526,7 @@
5526
5526
  )) == null ? void 0 : r.obj;
5527
5527
  const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
5528
5528
  if (n2)
5529
- return Kn(
5529
+ return Wn(
5530
5530
  n2,
5531
5531
  (i) => new E(i, [e.blockId, e.name])
5532
5532
  );
@@ -5539,7 +5539,7 @@
5539
5539
  getPColumnByRef(e) {
5540
5540
  const n2 = this.getDataByRef(e);
5541
5541
  if (n2)
5542
- return Un(n2);
5542
+ return qn(n2);
5543
5543
  }
5544
5544
  /**
5545
5545
  * Returns spec associated with the ref ensuring that it is a p-column spec.
@@ -5589,7 +5589,7 @@
5589
5589
  findLabels(e) {
5590
5590
  const n2 = this.getData();
5591
5591
  for (const r of n2.entries) {
5592
- if (!Z$1(r.obj)) continue;
5592
+ if (!rn(r.obj)) continue;
5593
5593
  const i = r.obj.spec;
5594
5594
  if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && de(e.domain, i.axesSpec[0].domain)) {
5595
5595
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
@@ -5610,13 +5610,13 @@
5610
5610
  * @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
5611
5611
  */
5612
5612
  selectColumns(e) {
5613
- const n2 = typeof e == "function" ? e : _n(e);
5613
+ const n2 = typeof e == "function" ? e : Gn(e);
5614
5614
  return this.getSpecs().entries.filter(({ obj: i }) => f(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
5615
5615
  const o = s2;
5616
5616
  let a = null;
5617
5617
  const l2 = this;
5618
5618
  return {
5619
- id: Oe(i),
5619
+ id: ke(i),
5620
5620
  spec: o,
5621
5621
  get data() {
5622
5622
  var u2;
@@ -5643,12 +5643,12 @@
5643
5643
  }
5644
5644
  class te {
5645
5645
  constructor() {
5646
- k(this, "ctx");
5647
- k(this, "args");
5648
- k(this, "uiState");
5649
- k(this, "_activeArgsCache");
5650
- k(this, "resultPool", new Rt());
5651
- this.ctx = g(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5646
+ O(this, "ctx");
5647
+ O(this, "args");
5648
+ O(this, "uiState");
5649
+ O(this, "_activeArgsCache");
5650
+ O(this, "resultPool", new Dt());
5651
+ this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5652
5652
  }
5653
5653
  /**
5654
5654
  * Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
@@ -5670,7 +5670,7 @@
5670
5670
  );
5671
5671
  }
5672
5672
  get prerun() {
5673
- return this.getNamedAccessor(De);
5673
+ return this.getNamedAccessor(Re);
5674
5674
  }
5675
5675
  get outputs() {
5676
5676
  return this.getNamedAccessor(Fe);
@@ -5685,7 +5685,7 @@
5685
5685
  }
5686
5686
  verifyInlineAndExplicitColumnsSupport(e) {
5687
5687
  var i;
5688
- const n2 = e.some((s2) => !(s2.data instanceof E) || hn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5688
+ const n2 = e.some((s2) => !(s2.data instanceof E) || En(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5689
5689
  if (n2 && !r) throw Error("Inline or explicit columns not supported");
5690
5690
  }
5691
5691
  // TODO remove all non-PColumn fields
@@ -5703,8 +5703,8 @@
5703
5703
  },
5704
5704
  filters: e.filters ?? [],
5705
5705
  sorting: e.sorting ?? []
5706
- } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(vn(n2.src)), this.ctx.createPTable(
5707
- Dn(n2, (r) => _e(r))
5706
+ } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Xn(n2.src)), this.ctx.createPTable(
5707
+ Un(n2, (r) => _e(r))
5708
5708
  );
5709
5709
  }
5710
5710
  /** @deprecated scheduled for removal from SDK */
@@ -5724,20 +5724,20 @@
5724
5724
  this.ctx.logError(e);
5725
5725
  }
5726
5726
  }
5727
- const Y = "1.33.14";
5728
- function Dt(t) {
5727
+ const Y = "1.33.17";
5728
+ function Rt(t) {
5729
5729
  return t.__renderLambda === true;
5730
5730
  }
5731
5731
  function pe(t) {
5732
5732
  if (t !== void 0)
5733
- return Dt(t) ? t.handle : t;
5733
+ return Rt(t) ? t.handle : t;
5734
5734
  }
5735
- class L {
5735
+ class T {
5736
5736
  constructor(e, n2, r, i, s2, o, a, l2) {
5737
5737
  this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2;
5738
5738
  }
5739
5739
  static create(e = "Heavy") {
5740
- return new L(
5740
+ return new T(
5741
5741
  e,
5742
5742
  void 0,
5743
5743
  {},
@@ -5751,7 +5751,7 @@
5751
5751
  output(e, n2, r = {}) {
5752
5752
  if (typeof n2 == "function") {
5753
5753
  const i = `output#${e}`;
5754
- return H(i, () => n2(new te())), new L(
5754
+ return H(i, () => n2(new te())), new T(
5755
5755
  this._renderingMode,
5756
5756
  this._initialArgs,
5757
5757
  this._initialUiState,
@@ -5769,7 +5769,7 @@
5769
5769
  this._enrichmentTargets
5770
5770
  );
5771
5771
  } else
5772
- return new L(
5772
+ return new T(
5773
5773
  this._renderingMode,
5774
5774
  this._initialArgs,
5775
5775
  this._initialUiState,
@@ -5788,7 +5788,7 @@
5788
5788
  return this.output(e, n2, { retentive: true });
5789
5789
  }
5790
5790
  argsValid(e) {
5791
- return typeof e == "function" ? (H("inputsValid", () => e(new te())), new L(
5791
+ return typeof e == "function" ? (H("inputsValid", () => e(new te())), new T(
5792
5792
  this._renderingMode,
5793
5793
  this._initialArgs,
5794
5794
  this._initialUiState,
@@ -5800,7 +5800,7 @@
5800
5800
  this._sections,
5801
5801
  this._title,
5802
5802
  this._enrichmentTargets
5803
- )) : new L(
5803
+ )) : new T(
5804
5804
  this._renderingMode,
5805
5805
  this._initialArgs,
5806
5806
  this._initialUiState,
@@ -5812,7 +5812,7 @@
5812
5812
  );
5813
5813
  }
5814
5814
  sections(e) {
5815
- return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new L(
5815
+ return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new T(
5816
5816
  this._renderingMode,
5817
5817
  this._initialArgs,
5818
5818
  this._initialUiState,
@@ -5821,7 +5821,7 @@
5821
5821
  { __renderLambda: true, handle: "sections" },
5822
5822
  this._title,
5823
5823
  this._enrichmentTargets
5824
- )) : new L(
5824
+ )) : new T(
5825
5825
  this._renderingMode,
5826
5826
  this._initialArgs,
5827
5827
  this._initialUiState,
@@ -5834,7 +5834,7 @@
5834
5834
  }
5835
5835
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
5836
5836
  title(e) {
5837
- return H("title", () => e(new te())), new L(
5837
+ return H("title", () => e(new te())), new T(
5838
5838
  this._renderingMode,
5839
5839
  this._initialArgs,
5840
5840
  this._initialUiState,
@@ -5850,7 +5850,7 @@
5850
5850
  * @deprecated use {@link withArgs}
5851
5851
  * */
5852
5852
  initialArgs(e) {
5853
- return new L(
5853
+ return new T(
5854
5854
  this._renderingMode,
5855
5855
  e,
5856
5856
  this._initialUiState,
@@ -5863,7 +5863,7 @@
5863
5863
  }
5864
5864
  /** Sets initial args for the block, this value must be specified. */
5865
5865
  withArgs(e) {
5866
- return new L(
5866
+ return new T(
5867
5867
  this._renderingMode,
5868
5868
  e,
5869
5869
  this._initialUiState,
@@ -5876,7 +5876,7 @@
5876
5876
  }
5877
5877
  /** Defines type and sets initial value for block UiState. */
5878
5878
  withUiState(e) {
5879
- return new L(
5879
+ return new T(
5880
5880
  this._renderingMode,
5881
5881
  this._initialArgs,
5882
5882
  e,
@@ -5892,7 +5892,7 @@
5892
5892
  * Influences dependency graph construction.
5893
5893
  */
5894
5894
  enriches(e) {
5895
- return H("enrichmentTargets", e), new L(
5895
+ return H("enrichmentTargets", e), new T(
5896
5896
  this._renderingMode,
5897
5897
  this._initialArgs,
5898
5898
  this._initialUiState,
@@ -5930,7 +5930,7 @@
5930
5930
  Object.entries(this._outputs).map(([n2, r]) => [n2, pe(r)])
5931
5931
  )
5932
5932
  };
5933
- return dt() ? Re({ sdkVersion: Y }) : { config: e };
5933
+ return dt() ? De({ sdkVersion: Y }) : { config: e };
5934
5934
  }
5935
5935
  }
5936
5936
  function ve(t) {
@@ -5951,10 +5951,10 @@
5951
5951
  for (const a of r)
5952
5952
  for (const l2 of a.spec.axesSpec) {
5953
5953
  const u2 = p$1(l2);
5954
- i.some((c2) => X(c2, u2)) || i.push(u2);
5954
+ i.some((c2) => Z$1(c2, u2)) || i.push(u2);
5955
5955
  }
5956
5956
  for (const a of n2) {
5957
- const l2 = p$1(a.spec.axesSpec[0]), u2 = i.findIndex((c2) => X(c2, l2));
5957
+ const l2 = p$1(a.spec.axesSpec[0]), u2 = i.findIndex((c2) => Z$1(c2, l2));
5958
5958
  u2 !== -1 && i.splice(u2, 1);
5959
5959
  }
5960
5960
  const s2 = (a, l2) => {
@@ -5965,14 +5965,14 @@
5965
5965
  return u2;
5966
5966
  }, o = [];
5967
5967
  for (const a of e) {
5968
- const l2 = a.spec.axesSpec[0], u2 = p$1(l2), c2 = i.findIndex((m2) => X(m2, u2));
5968
+ const l2 = a.spec.axesSpec[0], u2 = p$1(l2), c2 = i.findIndex((d) => Z$1(d, u2));
5969
5969
  if (c2 !== -1) {
5970
- const m2 = i[c2], v = Object.keys(m2.domain ?? {}).length, f2 = Object.keys(l2.domain ?? {}).length;
5971
- v > f2 ? o.push({
5972
- id: s2(a.id, m2.domain),
5970
+ const d = i[c2], y = Object.keys(d.domain ?? {}).length, f2 = Object.keys(l2.domain ?? {}).length;
5971
+ y > f2 ? o.push({
5972
+ id: s2(a.id, d.domain),
5973
5973
  spec: {
5974
5974
  ...a.spec,
5975
- axesSpec: [{ ...m2, annotations: l2.annotations }]
5975
+ axesSpec: [{ ...d, annotations: l2.annotations }]
5976
5976
  },
5977
5977
  data: a.data
5978
5978
  }) : o.push(a), i.splice(c2, 1);
@@ -6021,12 +6021,12 @@
6021
6021
  sorting: i
6022
6022
  };
6023
6023
  }
6024
- function kn(t, e, n2, r) {
6024
+ function On(t, e, n2, r) {
6025
6025
  var u2, c2;
6026
6026
  Array.isArray(r) && (r = { filters: r });
6027
6027
  const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s2 = [...(r == null ? void 0 : r.filters) ?? [], ...((u2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : u2.filters) ?? []], o = ((c2 = n2 == null ? void 0 : n2.pTableParams) == null ? void 0 : c2.sorting) ?? [], a = Ne(t.resultPool);
6028
6028
  if (!a) return;
6029
- const l2 = Je(e.map($n), a);
6029
+ const l2 = Je(e.map(Fn), a);
6030
6030
  if (Me([...e, ...l2]))
6031
6031
  return t.createPTable(
6032
6032
  Ue(e, l2, i, s2, o, r == null ? void 0 : r.coreColumnPredicate)
@@ -6040,41 +6040,41 @@
6040
6040
  var e;
6041
6041
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
6042
6042
  }
6043
- function Rn(t, e, n2, r, i) {
6044
- var h2, b;
6045
- const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((h2 = r == null ? void 0 : r.pTableParams) == null ? void 0 : h2.filters) ?? []], a = ((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.sorting) ?? [], l2 = e.filter((p2) => !Ft(p2.spec)), u2 = l2.find((p2) => n2(p2.spec));
6043
+ function Dn(t, e, n2, r, i) {
6044
+ var g, b;
6045
+ const s2 = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.sorting) ?? [], l2 = e.filter((h2) => !Ft(h2.spec)), u2 = l2.find((h2) => n2(h2.spec));
6046
6046
  if (!u2) return;
6047
6047
  const c2 = Ne(t.resultPool);
6048
6048
  if (!c2) return;
6049
- const m2 = new Set((() => {
6050
- var I2, x2;
6049
+ const d = new Set((() => {
6050
+ var I, x;
6051
6051
  if (s2 === "inner") return [];
6052
- const p2 = (x2 = (I2 = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : I2.hiddenColIds) == null ? void 0 : x2.map(ee).filter((y) => y.type === "column").map((y) => y.id);
6053
- return p2 || l2.filter((y) => Kt(y.spec)).map((y) => y.id);
6052
+ const h2 = (x = (I = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : I.hiddenColIds) == null ? void 0 : x.map(ce$1).filter((v) => v.type === "column").map((v) => v.id);
6053
+ return h2 || l2.filter((v) => Kt(v.spec)).map((v) => v.id);
6054
6054
  })());
6055
- m2.delete(u2.id), [...o.map((p2) => p2.column), ...a.map((p2) => p2.column)].filter((p2) => p2.type === "column").map((p2) => m2.delete(p2.id));
6056
- const v = l2.filter((p2) => !m2.has(p2.id)), f2 = Je(v.map($n), c2), w2 = [
6057
- ...u2.spec.axesSpec.map((p2) => ({
6055
+ d.delete(u2.id), [...o.map((h2) => h2.column), ...a.map((h2) => h2.column)].filter((h2) => h2.type === "column").map((h2) => d.delete(h2.id));
6056
+ const y = l2.filter((h2) => !d.has(h2.id)), f2 = Je(y.map(Fn), c2), w2 = [
6057
+ ...u2.spec.axesSpec.map((h2) => ({
6058
6058
  type: "axis",
6059
- id: p$1(p2),
6060
- spec: p2
6059
+ id: p$1(h2),
6060
+ spec: h2
6061
6061
  })),
6062
- ...[...l2, ...f2].map((p2) => ({
6062
+ ...[...l2, ...f2].map((h2) => ({
6063
6063
  type: "column",
6064
- id: p2.id,
6065
- spec: p2.spec
6064
+ id: h2.id,
6065
+ spec: h2.spec
6066
6066
  }))
6067
6067
  ];
6068
- if (!Me([...v, ...f2])) return;
6069
- const d = t.createPTable(
6068
+ if (!Me([...y, ...f2])) return;
6069
+ const p2 = t.createPTable(
6070
6070
  Ue(l2, f2, s2, o, a, i == null ? void 0 : i.coreColumnPredicate)
6071
6071
  );
6072
6072
  return {
6073
6073
  tableSpec: w2,
6074
- tableHandle: d
6074
+ tableHandle: p2
6075
6075
  };
6076
6076
  }
6077
- const ImportFileHandleSchema = z$2.string().optional().refine(
6077
+ const ImportFileHandleSchema = z$1.string().optional().refine(
6078
6078
  (_a) => true
6079
6079
  );
6080
6080
  function* range(from, to, step = 1) {
@@ -6092,12 +6092,12 @@
6092
6092
  function times(n2, cb) {
6093
6093
  return toList(range(0, n2)).map(cb);
6094
6094
  }
6095
- const $BlockArgs = z$2.object({
6096
- tableNumRows: z$2.number().default(100),
6097
- numbers: z$2.array(z$2.coerce.number()),
6098
- handles: z$2.array(ImportFileHandleSchema)
6095
+ const $BlockArgs = z$1.object({
6096
+ tableNumRows: z$1.number().default(100),
6097
+ numbers: z$1.array(z$1.coerce.number()),
6098
+ handles: z$1.array(ImportFileHandleSchema)
6099
6099
  });
6100
- const platforma = L.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], tableNumRows: 100, handles: [] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).argsValid((ctx) => {
6100
+ const platforma = T.create("Heavy").withArgs({ numbers: [1, 2, 3, 4], tableNumRows: 100, handles: [] }).withUiState({ dataTableState: void 0, dynamicSections: [] }).argsValid((ctx) => {
6101
6101
  if (ctx.args.numbers.length === 5) {
6102
6102
  throw new Error("argsValid: test error");
6103
6103
  }
@@ -6120,7 +6120,7 @@
6120
6120
  val: v.toString()
6121
6121
  };
6122
6122
  });
6123
- return kn(
6123
+ return On(
6124
6124
  ctx,
6125
6125
  [
6126
6126
  {
@@ -6173,7 +6173,7 @@
6173
6173
  val: v.toString()
6174
6174
  };
6175
6175
  });
6176
- return Rn(
6176
+ return Dn(
6177
6177
  ctx,
6178
6178
  [
6179
6179
  {
@@ -6208,7 +6208,7 @@
6208
6208
  data
6209
6209
  }
6210
6210
  ],
6211
- _n({
6211
+ Gn({
6212
6212
  name: "example"
6213
6213
  }),
6214
6214
  ctx.uiState.dataTableState.tableState,