@milaboratories/milaboratories.pool-explorer.model 1.0.51 → 1.0.52

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;
@@ -3956,19 +3956,19 @@
3956
3956
  }
3957
3957
  var canonicalizeExports = requireCanonicalize();
3958
3958
  const ke = /* @__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({
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 = {};
@@ -4099,23 +4099,23 @@
4099
4099
  const { type: e, name: t, domain: r } = n2, o = { type: e, name: t };
4100
4100
  return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
4101
4101
  }
4102
- function C(n2) {
4102
+ function J(n2) {
4103
4103
  return n2.map(p$1);
4104
4104
  }
4105
- function In(n2) {
4105
+ function Rn(n2) {
4106
4106
  return ke(p$1(n2));
4107
4107
  }
4108
- function z$1(n2, e) {
4108
+ function Y$1(n2, e) {
4109
4109
  if (n2 === void 0) return e === void 0;
4110
4110
  if (e === void 0) return true;
4111
4111
  for (const t in e)
4112
4112
  if (n2[t] !== e[t]) return false;
4113
4113
  return true;
4114
4114
  }
4115
- function X(n2, e) {
4116
- return n2.name === e.name && z$1(n2.domain, e.domain);
4115
+ function Z$1(n2, e) {
4116
+ return n2.name === e.name && Y$1(n2.domain, e.domain);
4117
4117
  }
4118
- function Dn(n2, e) {
4118
+ function Un(n2, e) {
4119
4119
  return { ...n2, src: h(n2.src, e) };
4120
4120
  }
4121
4121
  function h(n2, e) {
@@ -4150,16 +4150,16 @@
4150
4150
  w(n2);
4151
4151
  }
4152
4152
  }
4153
- function G(n2) {
4153
+ function nn(n2) {
4154
4154
  return ke(n2);
4155
4155
  }
4156
- function x(n2) {
4156
+ function P(n2) {
4157
4157
  return ke(p$1(n2));
4158
4158
  }
4159
- function A(n2, e) {
4159
+ function k(n2, e) {
4160
4160
  return JSON.stringify([n2, e]);
4161
4161
  }
4162
- class Vn {
4162
+ class _n {
4163
4163
  /**
4164
4164
  * Creates a new anchor context from a set of anchor column specifications
4165
4165
  * @param anchors Record of anchor column specifications indexed by anchor ID
@@ -4174,14 +4174,14 @@
4174
4174
  t.sort((r, o) => r[0].localeCompare(o[0]));
4175
4175
  for (const [r, o] of t) {
4176
4176
  for (let s2 = 0; s2 < o.axesSpec.length; s2++) {
4177
- const a = o.axesSpec[s2], i = x(a);
4177
+ const a = o.axesSpec[s2], i = P(a);
4178
4178
  this.axes.set(i, { anchor: r, idx: s2 });
4179
4179
  }
4180
4180
  if (o.domain !== void 0) {
4181
4181
  const s2 = Object.entries(o.domain);
4182
4182
  s2.sort((a, i) => a[0].localeCompare(i[0])), this.domainPackToAnchor.set(JSON.stringify(s2), r), this.domainPacks.push(s2.map(([a]) => a));
4183
4183
  for (const [a, i] of s2) {
4184
- const u2 = A(a, i);
4184
+ const u2 = k(a, i);
4185
4185
  this.domains.set(u2, r);
4186
4186
  }
4187
4187
  }
@@ -4216,11 +4216,11 @@
4216
4216
  for (const [a, i] of Object.entries(e.domain ?? {})) {
4217
4217
  if (o !== void 0 && o.has(a))
4218
4218
  continue;
4219
- const u2 = A(a, i), c2 = this.domains.get(u2);
4219
+ const u2 = k(a, i), c2 = this.domains.get(u2);
4220
4220
  r.domain ?? (r.domain = {}), r.domain[a] = c2 ? { anchor: c2 } : i;
4221
4221
  }
4222
4222
  if (r.axes = e.axesSpec.map((a) => {
4223
- const i = x(a), u2 = this.axes.get(i);
4223
+ const i = P(a), u2 = this.axes.get(i);
4224
4224
  return u2 === void 0 ? p$1(a) : u2;
4225
4225
  }), !t || t.length === 0)
4226
4226
  return r;
@@ -4250,10 +4250,10 @@
4250
4250
  * @returns A canonicalized string representation of the anchored column identifier
4251
4251
  */
4252
4252
  deriveS(e, t) {
4253
- return G(this.derive(e, t));
4253
+ return nn(this.derive(e, t));
4254
4254
  }
4255
4255
  }
4256
- function Bn(n2, e, t) {
4256
+ function Mn(n2, e, t) {
4257
4257
  const r = { ...e }, o = (t == null ? void 0 : t.ignoreMissingDomains) ?? false;
4258
4258
  if (r.domainAnchor !== void 0) {
4259
4259
  const s2 = n2[r.domainAnchor];
@@ -4280,10 +4280,10 @@
4280
4280
  }
4281
4281
  r.domain = s2;
4282
4282
  }
4283
- return r.axes && (r.axes = r.axes.map((s2) => Q(n2, s2))), r;
4283
+ return r.axes && (r.axes = r.axes.map((s2) => en(n2, s2))), r;
4284
4284
  }
4285
- function Q(n2, e) {
4286
- if (!Y$1(e))
4285
+ function en(n2, e) {
4286
+ if (!tn(e))
4287
4287
  return e;
4288
4288
  const t = e.anchor, r = n2[t];
4289
4289
  if (!r)
@@ -4300,7 +4300,7 @@
4300
4300
  throw new Error(`Axis with name "${e.name}" not found in anchor "${t}"`);
4301
4301
  return o[0];
4302
4302
  } else if ("id" in e) {
4303
- const o = r.axesSpec.filter((s2) => X(e.id, p$1(s2)));
4303
+ const o = r.axesSpec.filter((s2) => Z$1(e.id, p$1(s2)));
4304
4304
  if (o.length > 1)
4305
4305
  throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
4306
4306
  if (o.length === 0)
@@ -4309,26 +4309,26 @@
4309
4309
  }
4310
4310
  throw new Error("Unsupported axis reference type");
4311
4311
  }
4312
- function Y$1(n2) {
4312
+ function tn(n2) {
4313
4313
  return typeof n2 == "object" && "anchor" in n2;
4314
4314
  }
4315
4315
  function f(n2) {
4316
4316
  return n2.kind === "PColumn";
4317
4317
  }
4318
- function Z$1(n2) {
4318
+ function rn(n2) {
4319
4319
  return f(n2.spec);
4320
4320
  }
4321
- function Un(n2) {
4322
- if (!Z$1(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
4321
+ function qn(n2) {
4322
+ if (!rn(n2)) throw new Error(`not a PColumn (kind = ${n2.spec.kind})`);
4323
4323
  return n2;
4324
4324
  }
4325
- function Kn(n2, e) {
4325
+ function Wn(n2, e) {
4326
4326
  return n2 === void 0 ? void 0 : {
4327
4327
  ...n2,
4328
4328
  data: e(n2.data)
4329
4329
  };
4330
4330
  }
4331
- function vn(n2) {
4331
+ function Xn(n2) {
4332
4332
  const e = /* @__PURE__ */ new Map(), t = (r) => {
4333
4333
  switch (r.type) {
4334
4334
  case "column":
@@ -4353,7 +4353,7 @@
4353
4353
  };
4354
4354
  return t(n2), [...e.values()];
4355
4355
  }
4356
- function k(n2, e) {
4356
+ function E$1(n2, e) {
4357
4357
  if (n2.name !== void 0 && n2.name !== e.name)
4358
4358
  return false;
4359
4359
  if (n2.type !== void 0) {
@@ -4391,13 +4391,13 @@
4391
4391
  const t = n2.axesSpec.map(p$1);
4392
4392
  if (e.partialAxesMatch) {
4393
4393
  for (const r of e.axes)
4394
- if (!t.some((o) => k(r, o)))
4394
+ if (!t.some((o) => E$1(r, o)))
4395
4395
  return false;
4396
4396
  } else {
4397
4397
  if (t.length !== e.axes.length)
4398
4398
  return false;
4399
4399
  for (let r = 0; r < e.axes.length; r++)
4400
- if (!k(e.axes[r], t[r]))
4400
+ if (!E$1(e.axes[r], t[r]))
4401
4401
  return false;
4402
4402
  }
4403
4403
  }
@@ -4417,28 +4417,28 @@
4417
4417
  }
4418
4418
  return true;
4419
4419
  }
4420
- function _n(n2) {
4420
+ function Gn(n2) {
4421
4421
  return Array.isArray(n2) ? (e) => n2.some((t) => f(e) && N(e, t)) : (e) => f(e) && N(e, n2);
4422
4422
  }
4423
- function Mn(n2) {
4423
+ function Qn(n2) {
4424
4424
  const e = {
4425
4425
  kind: n2.kind,
4426
4426
  name: n2.name
4427
4427
  };
4428
- return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = C(n2.axesSpec)), ke(e);
4428
+ return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = J(n2.axesSpec)), ke(e);
4429
4429
  }
4430
- z$2.object({
4431
- __isRef: z$2.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
4432
- blockId: z$2.string().describe("Upstream block id"),
4433
- name: z$2.string().describe("Name of the output provided to the upstream block's output context"),
4434
- 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")
4430
+ z$1.object({
4431
+ __isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
4432
+ blockId: z$1.string().describe("Upstream block id"),
4433
+ name: z$1.string().describe("Name of the output provided to the upstream block's output context"),
4434
+ 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")
4435
4435
  }).describe(
4436
4436
  "Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees."
4437
4437
  ).readonly();
4438
- function qn(n2) {
4438
+ function ne(n2) {
4439
4439
  return typeof n2 == "object" && n2 !== null && "__isRef" in n2 && n2.__isRef === true && "blockId" in n2 && "name" in n2;
4440
4440
  }
4441
- function zn(n2, e = true) {
4441
+ function te$1(n2, e = true) {
4442
4442
  if (e)
4443
4443
  return {
4444
4444
  ...n2,
@@ -4449,11 +4449,11 @@
4449
4449
  return r;
4450
4450
  }
4451
4451
  }
4452
- function Gn(n2, e) {
4452
+ function oe$1(n2, e) {
4453
4453
  return n2.ok ? { ok: true, value: e(n2.value) } : n2;
4454
4454
  }
4455
- const sn = 24;
4456
- z$2.string().length(sn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4455
+ const fn = 24;
4456
+ z$1.string().length(fn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
4457
4457
  var stringify = { exports: {} };
4458
4458
  var hasRequiredStringify;
4459
4459
  function requireStringify() {
@@ -4485,33 +4485,33 @@
4485
4485
  return stringify.exports;
4486
4486
  }
4487
4487
  requireStringify();
4488
- const l = z$2.object({
4489
- type: z$2.literal("PlError"),
4490
- name: z$2.string(),
4491
- message: z$2.string(),
4488
+ const l = z$1.object({
4489
+ type: z$1.literal("PlError"),
4490
+ name: z$1.string(),
4491
+ message: z$1.string(),
4492
4492
  /** The message with all details needed for SDK developers. */
4493
- fullMessage: z$2.string().optional(),
4494
- stack: z$2.string().optional()
4493
+ fullMessage: z$1.string().optional(),
4494
+ stack: z$1.string().optional()
4495
4495
  }), c = l.extend({
4496
- cause: z$2.lazy(() => s).optional(),
4497
- errors: z$2.lazy(() => s.array()).optional()
4498
- }), m$1 = z$2.object({
4499
- type: z$2.literal("StandardError"),
4500
- name: z$2.string(),
4501
- message: z$2.string(),
4502
- stack: z$2.string().optional()
4496
+ cause: z$1.lazy(() => s).optional(),
4497
+ errors: z$1.lazy(() => s.array()).optional()
4498
+ }), m$1 = z$1.object({
4499
+ type: z$1.literal("StandardError"),
4500
+ name: z$1.string(),
4501
+ message: z$1.string(),
4502
+ stack: z$1.string().optional()
4503
4503
  }), p = m$1.extend({
4504
- cause: z$2.lazy(() => s).optional(),
4505
- errors: z$2.lazy(() => s.array()).optional()
4506
- }), s = z$2.union([p, c]);
4507
- const u = z$2.object({
4508
- name: z$2.string(),
4509
- message: z$2.string(),
4510
- fullMessage: z$2.string().optional(),
4511
- stack: z$2.string().optional()
4504
+ cause: z$1.lazy(() => s).optional(),
4505
+ errors: z$1.lazy(() => s.array()).optional()
4506
+ }), s = z$1.union([p, c]);
4507
+ const u = z$1.object({
4508
+ name: z$1.string(),
4509
+ message: z$1.string(),
4510
+ fullMessage: z$1.string().optional(),
4511
+ stack: z$1.string().optional()
4512
4512
  }), n = u.extend({
4513
- cause: z$2.lazy(() => n).optional(),
4514
- errors: z$2.lazy(() => n.array()).optional()
4513
+ cause: z$1.lazy(() => n).optional(),
4514
+ errors: z$1.lazy(() => n.array()).optional()
4515
4515
  });
4516
4516
  var qe = Object.defineProperty;
4517
4517
  var ze = (t, e, n2) => e in t ? qe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
@@ -4675,7 +4675,7 @@
4675
4675
  getPColumns(e = false, n2 = "") {
4676
4676
  const r = this.parsePObjectCollection(e, n2);
4677
4677
  return r === void 0 ? void 0 : Object.entries(r).map(([, s2]) => {
4678
- if (!Z$1(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
4678
+ if (!rn(s2)) throw new Error(`not a PColumn (kind = ${s2.spec.kind})`);
4679
4679
  return s2;
4680
4680
  });
4681
4681
  }
@@ -4693,7 +4693,7 @@
4693
4693
  const i = {};
4694
4694
  for (const [s2, o] of Object.entries(r)) {
4695
4695
  const a = [...this.resolvePath, s2];
4696
- i[s2] = Kn(o, (l2) => new E(l2, a));
4696
+ i[s2] = Wn(o, (l2) => new E(l2, a));
4697
4697
  }
4698
4698
  return i;
4699
4699
  }
@@ -4793,45 +4793,45 @@
4793
4793
  }
4794
4794
  }
4795
4795
  const Re = "staging", Fe = "main";
4796
- const mt = "pl7.app/label", yt = "pl7.app/trace", vt = z$2.object({
4797
- type: z$2.string(),
4798
- importance: z$2.number().optional(),
4799
- id: z$2.string().optional(),
4800
- label: z$2.string()
4801
- }), bt = z$2.array(vt), wt = 1e-3, At = "__LABEL__", Pe = "__LABEL__@1";
4796
+ const mt = "pl7.app/label", yt = "pl7.app/trace", vt = z$1.object({
4797
+ type: z$1.string(),
4798
+ importance: z$1.number().optional(),
4799
+ id: z$1.string().optional(),
4800
+ label: z$1.string()
4801
+ }), bt = z$1.array(vt), wt = 1e-3, At = "__LABEL__", Pe = "__LABEL__@1";
4802
4802
  function Ve(t, e, n2 = {}) {
4803
4803
  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) => {
4804
- var P, F2;
4804
+ var P2, F;
4805
4805
  const w2 = e(f2);
4806
4806
  let p2, g, b;
4807
4807
  "spec" in w2 && typeof w2.spec == "object" ? (p2 = w2.spec, g = w2.prefixTrace, b = w2.suffixTrace) : p2 = w2;
4808
- const h2 = (P = p2.annotations) == null ? void 0 : P[mt], I2 = (F2 = p2.annotations) == null ? void 0 : F2[yt], x2 = (I2 ? bt.safeParse(JSON.parse(I2)).data : void 0) ?? [], v = [
4808
+ 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 = [
4809
4809
  ...g ?? [],
4810
- ...x2,
4810
+ ...x,
4811
4811
  ...b ?? []
4812
4812
  ];
4813
4813
  if (h2 !== void 0) {
4814
4814
  const k2 = { label: h2, type: At, importance: -2 };
4815
4815
  n2.addLabelAsSuffix ? v.push(k2) : v.splice(0, 0, k2);
4816
4816
  }
4817
- const A2 = [], L = /* @__PURE__ */ new Map();
4817
+ const A = [], L = /* @__PURE__ */ new Map();
4818
4818
  for (let k2 = v.length - 1; k2 >= 0; --k2) {
4819
4819
  const { type: W } = v[k2], V = v[k2].importance ?? 0, $ = (L.get(W) ?? 0) + 1;
4820
4820
  L.set(W, $);
4821
- const K = `${W}@${$}`;
4822
- s2.set(K, (s2.get(K) ?? 0) + 1), r.set(
4823
- K,
4821
+ const K2 = `${W}@${$}`;
4822
+ s2.set(K2, (s2.get(K2) ?? 0) + 1), r.set(
4823
+ K2,
4824
4824
  Math.max(
4825
- r.get(K) ?? Number.NEGATIVE_INFINITY,
4825
+ r.get(K2) ?? Number.NEGATIVE_INFINITY,
4826
4826
  V - (v.length - k2) * wt
4827
4827
  )
4828
- ), A2.push({ ...v[k2], fullType: K, occurrenceIndex: $ });
4828
+ ), A.push({ ...v[k2], fullType: K2, occurrenceIndex: $ });
4829
4829
  }
4830
- return A2.reverse(), {
4830
+ return A.reverse(), {
4831
4831
  value: f2,
4832
4832
  spec: p2,
4833
4833
  label: h2,
4834
- fullTrace: A2
4834
+ fullTrace: A
4835
4835
  };
4836
4836
  }), a = [], l2 = [], u2 = [...r];
4837
4837
  u2.sort(([, f2], [, w2]) => w2 - f2);
@@ -4848,9 +4848,9 @@
4848
4848
  value: b.value
4849
4849
  });
4850
4850
  else return;
4851
- const I2 = h2.map((v) => v.label), x2 = n2.separator ?? " / ";
4851
+ const I = h2.map((v) => v.label), x = n2.separator ?? " / ";
4852
4852
  p2.push({
4853
- label: I2.join(x2),
4853
+ label: I.join(x),
4854
4854
  value: b.value
4855
4855
  });
4856
4856
  }
@@ -4947,7 +4947,7 @@
4947
4947
  }
4948
4948
  function Pt(t) {
4949
4949
  if (t === void 0) return;
4950
- if (F(t))
4950
+ if (K(t))
4951
4951
  return Ct(t);
4952
4952
  const e = xt(t);
4953
4953
  if (!e) return;
@@ -5062,8 +5062,8 @@
5062
5062
  }
5063
5063
  function St(t) {
5064
5064
  if (t !== void 0) {
5065
- if (F(t)) return t;
5066
- if (hn(t)) return wn(t);
5065
+ if (K(t)) return t;
5066
+ if (En(t)) return Cn(t);
5067
5067
  if (t instanceof E) return ye(t);
5068
5068
  throw new Error(`Unexpected input type: ${typeof t}`);
5069
5069
  }
@@ -5139,14 +5139,14 @@
5139
5139
  this.columns = e;
5140
5140
  }
5141
5141
  selectColumns(e) {
5142
- const n2 = typeof e == "function" ? e : _n(e);
5142
+ const n2 = typeof e == "function" ? e : Gn(e);
5143
5143
  return this.columns.filter((r) => n2(r.spec));
5144
5144
  }
5145
5145
  }
5146
5146
  function Tt(t) {
5147
5147
  if (t)
5148
5148
  return t.map((e) => ({
5149
- type: `split:${In(e.axisId)}`,
5149
+ type: `split:${Rn(e.axisId)}`,
5150
5150
  label: e.label,
5151
5151
  importance: 1e6
5152
5152
  // High importance for split filters in labels
@@ -5210,9 +5210,9 @@
5210
5210
  if (Se(g)) {
5211
5211
  if (!r)
5212
5212
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
5213
- return _n(Bn(r.anchors, g, n2));
5213
+ return Gn(Mn(r.anchors, g, n2));
5214
5214
  } else
5215
- return _n(g);
5215
+ return Gn(g);
5216
5216
  });
5217
5217
  u2 = (g) => p2.some((b) => b(g));
5218
5218
  }
@@ -5223,79 +5223,79 @@
5223
5223
  if (g) {
5224
5224
  if (!r)
5225
5225
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5226
- b = Bn(r.anchors, p2, n2);
5226
+ b = Mn(r.anchors, p2, n2);
5227
5227
  } else
5228
5228
  b = p2;
5229
- const h2 = /* @__PURE__ */ new Set(), I2 = [];
5230
- for (const A2 of this.providers) {
5231
- const L = A2.selectColumns(b);
5232
- for (const P of L) {
5233
- if (u2(P.spec)) continue;
5234
- if (h2.has(P.id))
5235
- throw new Error(`Duplicate column id ${P.id} in provider ${A2.constructor.name}`);
5236
- const F2 = Mn(P.spec);
5237
- y.has(F2) || (h2.add(P.id), y.add(F2), I2.push(P));
5229
+ const h2 = /* @__PURE__ */ new Set(), I = [];
5230
+ for (const A of this.providers) {
5231
+ const L = A.selectColumns(b);
5232
+ for (const P2 of L) {
5233
+ if (u2(P2.spec)) continue;
5234
+ if (h2.has(P2.id))
5235
+ throw new Error(`Duplicate column id ${P2.id} in provider ${A.constructor.name}`);
5236
+ const F = Qn(P2.spec);
5237
+ y.has(F) || (h2.add(P2.id), y.add(F), I.push(P2));
5238
5238
  }
5239
5239
  }
5240
- if (I2.length === 0) continue;
5241
- const x2 = Ot(p2), v = x2.length > 0;
5242
- for (const A2 of I2) {
5243
- if (!f(A2.spec)) continue;
5244
- const L = A2.spec;
5240
+ if (I.length === 0) continue;
5241
+ const x = Ot(p2), v = x.length > 0;
5242
+ for (const A of I) {
5243
+ if (!f(A.spec)) continue;
5244
+ const L = A.spec;
5245
5245
  if (v) {
5246
- if (It(A2.data))
5247
- throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A2.id}`);
5248
- const P = St(A2.data);
5249
- if (!P) {
5246
+ if (It(A.data))
5247
+ throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A.id}`);
5248
+ const P2 = St(A.data);
5249
+ if (!P2) {
5250
5250
  if (s2) continue;
5251
5251
  return;
5252
5252
  }
5253
- if (!bn(P))
5254
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P.type} for column ${A2.id}`);
5255
- const F2 = Pt(P), k2 = x2[x2.length - 1];
5256
- if (k2 >= P.partitionKeyLength)
5257
- throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
5258
- const W = x2.map((S) => this.findLabels(p$1(L.axesSpec[S]))), V = [], $ = (S, G2) => {
5259
- if (G2 >= x2.length) {
5253
+ if (!Sn(P2))
5254
+ throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P2.type} for column ${A.id}`);
5255
+ const F = Pt(P2), k2 = x[x.length - 1];
5256
+ if (k2 >= P2.partitionKeyLength)
5257
+ throw new Error(`Not enough partition keys (${P2.partitionKeyLength}) for requested split axes (max index ${k2}) in column ${L.name}`);
5258
+ const W = x.map((S) => this.findLabels(p$1(L.axesSpec[S]))), V = [], $ = (S, G) => {
5259
+ if (G >= x.length) {
5260
5260
  if (V.push([...S]), V.length > 1e4)
5261
5261
  throw new Error("Too many key combinations, aborting.");
5262
5262
  return;
5263
5263
  }
5264
- const j = x2[G2];
5265
- if (j >= F2.length)
5266
- throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${F2.length}) during split key generation for column ${A2.id}`);
5267
- const N2 = F2[j];
5264
+ const j2 = x[G];
5265
+ if (j2 >= F.length)
5266
+ throw new Error(`Axis index ${j2} out of bounds for unique keys array (length ${F.length}) during split key generation for column ${A.id}`);
5267
+ const N2 = F[j2];
5268
5268
  if (!N2 || N2.length === 0) {
5269
5269
  V.length = 0;
5270
5270
  return;
5271
5271
  }
5272
5272
  for (const ee of N2)
5273
- S.push(ee), $(S, G2 + 1), S.pop();
5273
+ S.push(ee), $(S, G + 1), S.pop();
5274
5274
  };
5275
5275
  if ($([], 0), V.length === 0)
5276
5276
  continue;
5277
- const K = [...L.axesSpec], Be = x2.map((S) => S);
5278
- for (let S = x2.length - 1; S >= 0; S--)
5279
- K.splice(x2[S], 1);
5280
- const We = { ...L, axesSpec: K };
5277
+ const K2 = [...L.axesSpec], Be = x.map((S) => S);
5278
+ for (let S = x.length - 1; S >= 0; S--)
5279
+ K2.splice(x[S], 1);
5280
+ const We = { ...L, axesSpec: K2 };
5281
5281
  for (const S of V) {
5282
- const G2 = S.map((j, N2) => {
5283
- const ee = Be[N2], Ge = p$1(L.axesSpec[ee]), ue = W[N2], He = (ue == null ? void 0 : ue[j]) ?? String(j);
5284
- return { axisIdx: ee, axisId: Ge, value: j, label: He };
5282
+ const G = S.map((j2, N2) => {
5283
+ const ee = Be[N2], Ge = p$1(L.axesSpec[ee]), ue = W[N2], He = (ue == null ? void 0 : ue[j2]) ?? String(j2);
5284
+ return { axisIdx: ee, axisId: Ge, value: j2, label: He };
5285
5285
  });
5286
5286
  d.push({
5287
5287
  type: "split",
5288
- originalColumn: A2,
5288
+ originalColumn: A,
5289
5289
  spec: L,
5290
5290
  adjustedSpec: We,
5291
- dataEntries: P,
5292
- axisFilters: G2
5291
+ dataEntries: P2,
5292
+ axisFilters: G
5293
5293
  });
5294
5294
  }
5295
5295
  } else
5296
5296
  d.push({
5297
5297
  type: "direct",
5298
- originalColumn: A2,
5298
+ originalColumn: A,
5299
5299
  spec: L,
5300
5300
  adjustedSpec: L
5301
5301
  });
@@ -5311,20 +5311,20 @@
5311
5311
  l2
5312
5312
  ), w2 = [];
5313
5313
  for (const { value: p2, label: g } of f$1) {
5314
- const { originalColumn: b, spec: h2 } = p2, I2 = p2.type === "split" ? p2.axisFilters : void 0, x2 = Et(I2);
5314
+ const { originalColumn: b, spec: h2 } = p2, I = p2.type === "split" ? p2.axisFilters : void 0, x = Et(I);
5315
5315
  let v;
5316
- r ? v = r.deriveS(h2, x2) : v = kt(b.id, x2);
5317
- let A2 = { ...p2.adjustedSpec };
5318
- o && (A2 = {
5319
- ...A2,
5316
+ r ? v = r.deriveS(h2, x) : v = kt(b.id, x);
5317
+ let A = { ...p2.adjustedSpec };
5318
+ o && (A = {
5319
+ ...A,
5320
5320
  annotations: {
5321
- ...A2.annotations ?? {},
5321
+ ...A.annotations ?? {},
5322
5322
  "pl7.app/label": g
5323
5323
  }
5324
5324
  }), w2.push({
5325
5325
  id: v,
5326
- spec: A2,
5327
- data: () => p2.type === "split" ? Pn(_t(p2.dataEntries, x2)) : p2.originalColumn.data,
5326
+ spec: A,
5327
+ data: () => p2.type === "split" ? Jn(_t(p2.dataEntries, x)) : p2.originalColumn.data,
5328
5328
  label: g
5329
5329
  });
5330
5330
  }
@@ -5361,7 +5361,7 @@
5361
5361
  return true;
5362
5362
  }
5363
5363
  function _e(t) {
5364
- return Kn(t, (e) => e instanceof E ? e.handle : hn(e) ? gn(e, (n2) => n2.handle) : e);
5364
+ return Wn(t, (e) => e instanceof E ? e.handle : En(e) ? Nn(e, (n2) => n2.handle) : e);
5365
5365
  }
5366
5366
  class Dt {
5367
5367
  constructor() {
@@ -5374,28 +5374,28 @@
5374
5374
  return this.ctx.calculateOptions(e);
5375
5375
  }
5376
5376
  getOptions(e, n2) {
5377
- const r = typeof e == "function" ? e : _n(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5377
+ const r = typeof e == "function" ? e : Gn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5378
5378
  let s2 = {}, o = false;
5379
5379
  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 }) => ({
5380
- ref: zn(a, o),
5380
+ ref: te$1(a, o),
5381
5381
  label: l2
5382
5382
  })) : i.map(({ ref: a, obj: l2 }) => ({
5383
- ref: zn(a, o),
5383
+ ref: te$1(a, o),
5384
5384
  label: s2(l2, a)
5385
5385
  }));
5386
5386
  }
5387
5387
  resolveAnchorCtx(e) {
5388
- if (e instanceof Vn) return e;
5388
+ if (e instanceof _n) return e;
5389
5389
  const n2 = {};
5390
5390
  for (const [r, i] of Object.entries(e))
5391
- if (qn(i)) {
5391
+ if (ne(i)) {
5392
5392
  const s2 = this.getPColumnSpecByRef(i);
5393
5393
  if (!s2)
5394
5394
  return;
5395
5395
  n2[r] = s2;
5396
5396
  } else
5397
5397
  n2[r] = i;
5398
- return new Vn(n2);
5398
+ return new _n(n2);
5399
5399
  }
5400
5400
  /**
5401
5401
  * Returns columns that match the provided anchors and selectors. It applies axis filters and label derivation.
@@ -5488,7 +5488,7 @@
5488
5488
  ref: n2.ref,
5489
5489
  obj: {
5490
5490
  ...n2.obj,
5491
- data: Gn(
5491
+ data: oe$1(
5492
5492
  n2.obj.data,
5493
5493
  (r) => new E(r, [n2.ref.blockId, n2.ref.name])
5494
5494
  )
@@ -5517,7 +5517,7 @@
5517
5517
  )) == null ? void 0 : r.obj;
5518
5518
  const n2 = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
5519
5519
  if (n2)
5520
- return Kn(
5520
+ return Wn(
5521
5521
  n2,
5522
5522
  (i) => new E(i, [e.blockId, e.name])
5523
5523
  );
@@ -5530,7 +5530,7 @@
5530
5530
  getPColumnByRef(e) {
5531
5531
  const n2 = this.getDataByRef(e);
5532
5532
  if (n2)
5533
- return Un(n2);
5533
+ return qn(n2);
5534
5534
  }
5535
5535
  /**
5536
5536
  * Returns spec associated with the ref ensuring that it is a p-column spec.
@@ -5580,7 +5580,7 @@
5580
5580
  findLabels(e) {
5581
5581
  const n2 = this.getData();
5582
5582
  for (const r of n2.entries) {
5583
- if (!Z$1(r.obj)) continue;
5583
+ if (!rn(r.obj)) continue;
5584
5584
  const i = r.obj.spec;
5585
5585
  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)) {
5586
5586
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
@@ -5601,7 +5601,7 @@
5601
5601
  * @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
5602
5602
  */
5603
5603
  selectColumns(e) {
5604
- const n2 = typeof e == "function" ? e : _n(e);
5604
+ const n2 = typeof e == "function" ? e : Gn(e);
5605
5605
  return this.getSpecs().entries.filter(({ obj: i }) => f(i) ? n2(i) : false).map(({ ref: i, obj: s2 }) => {
5606
5606
  const o = s2;
5607
5607
  let a = null;
@@ -5676,7 +5676,7 @@
5676
5676
  }
5677
5677
  verifyInlineAndExplicitColumnsSupport(e) {
5678
5678
  var i;
5679
- const n2 = e.some((s2) => !(s2.data instanceof E) || hn(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5679
+ const n2 = e.some((s2) => !(s2.data instanceof E) || En(s2.data)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === true;
5680
5680
  if (n2 && !r) throw Error("Inline or explicit columns not supported");
5681
5681
  }
5682
5682
  // TODO remove all non-PColumn fields
@@ -5694,8 +5694,8 @@
5694
5694
  },
5695
5695
  filters: e.filters ?? [],
5696
5696
  sorting: e.sorting ?? []
5697
- } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(vn(n2.src)), this.ctx.createPTable(
5698
- Dn(n2, (r) => _e(r))
5697
+ } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Xn(n2.src)), this.ctx.createPTable(
5698
+ Un(n2, (r) => _e(r))
5699
5699
  );
5700
5700
  }
5701
5701
  /** @deprecated scheduled for removal from SDK */
@@ -5715,7 +5715,7 @@
5715
5715
  this.ctx.logError(e);
5716
5716
  }
5717
5717
  }
5718
- const Y = "1.33.16";
5718
+ const Y = "1.33.17";
5719
5719
  function Rt(t) {
5720
5720
  return t.__renderLambda === true;
5721
5721
  }