@milaboratories/milaboratories.pool-explorer.model 1.0.34 → 1.0.36

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -3948,8 +3948,8 @@
3948
3948
  quotelessJson,
3949
3949
  ZodError
3950
3950
  });
3951
- var $ = Object.defineProperty;
3952
- var I$1 = (n2, e, t) => e in n2 ? $(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3951
+ var $$1 = Object.defineProperty;
3952
+ var I$1 = (n2, e, t) => e in n2 ? $$1(n2, e, { enumerable: true, configurable: true, writable: true, value: t }) : n2[e] = t;
3953
3953
  var l$1 = (n2, e, t) => I$1(n2, typeof e != "symbol" ? e + "" : e, t);
3954
3954
  function w(n2) {
3955
3955
  throw new Error("Unexpected object: " + n2);
@@ -4081,12 +4081,12 @@
4081
4081
  }
4082
4082
  }
4083
4083
  }
4084
- function m$2(n2) {
4084
+ function m$1(n2) {
4085
4085
  const { type: e, name: t, domain: r } = n2;
4086
4086
  return { type: e, name: t, ...r && { domain: r } };
4087
4087
  }
4088
4088
  function Jn(n2) {
4089
- return Le(m$2(n2));
4089
+ return Le(m$1(n2));
4090
4090
  }
4091
4091
  function z(n2, e) {
4092
4092
  if (n2 === void 0) return e === void 0;
@@ -4099,9 +4099,9 @@
4099
4099
  return n2.name === e.name && z(n2.domain, e.domain);
4100
4100
  }
4101
4101
  function On(n2, e) {
4102
- return { ...n2, src: y(n2.src, e) };
4102
+ return { ...n2, src: y$1(n2.src, e) };
4103
4103
  }
4104
- function y(n2, e) {
4104
+ function y$1(n2, e) {
4105
4105
  switch (n2.type) {
4106
4106
  case "column":
4107
4107
  return {
@@ -4119,23 +4119,23 @@
4119
4119
  case "full":
4120
4120
  return {
4121
4121
  type: n2.type,
4122
- entries: n2.entries.map((t) => y(t, e))
4122
+ entries: n2.entries.map((t) => y$1(t, e))
4123
4123
  };
4124
4124
  case "outer":
4125
4125
  return {
4126
4126
  type: "outer",
4127
- primary: y(n2.primary, e),
4128
- secondary: n2.secondary.map((t) => y(t, e))
4127
+ primary: y$1(n2.primary, e),
4128
+ secondary: n2.secondary.map((t) => y$1(t, e))
4129
4129
  };
4130
4130
  default:
4131
4131
  w(n2);
4132
4132
  }
4133
4133
  }
4134
- function G(n2) {
4134
+ function G$1(n2) {
4135
4135
  return Le(n2);
4136
4136
  }
4137
4137
  function x(n2) {
4138
- return Le(m$2(n2));
4138
+ return Le(m$1(n2));
4139
4139
  }
4140
4140
  function A(n2, e) {
4141
4141
  return JSON.stringify([n2, e]);
@@ -4202,7 +4202,7 @@
4202
4202
  }
4203
4203
  if (r.axes = e.axesSpec.map((a) => {
4204
4204
  const i = x(a), u2 = this.axes.get(i);
4205
- return u2 === void 0 ? m$2(a) : u2;
4205
+ return u2 === void 0 ? m$1(a) : u2;
4206
4206
  }), !t || t.length === 0)
4207
4207
  return r;
4208
4208
  const s2 = [];
@@ -4231,7 +4231,7 @@
4231
4231
  * @returns A canonicalized string representation of the anchored column identifier
4232
4232
  */
4233
4233
  deriveS(e, t) {
4234
- return G(this.derive(e, t));
4234
+ return G$1(this.derive(e, t));
4235
4235
  }
4236
4236
  }
4237
4237
  function Dn(n2, e, t) {
@@ -4281,7 +4281,7 @@
4281
4281
  throw new Error(`Axis with name "${e.name}" not found in anchor "${t}"`);
4282
4282
  return o[0];
4283
4283
  } else if ("id" in e) {
4284
- const o = r.axesSpec.filter((s2) => X$1(e.id, m$2(s2)));
4284
+ const o = r.axesSpec.filter((s2) => X$1(e.id, m$1(s2)));
4285
4285
  if (o.length > 1)
4286
4286
  throw new Error(`Multiple matching axes found for matcher in anchor "${t}"`);
4287
4287
  if (o.length === 0)
@@ -4367,7 +4367,7 @@
4367
4367
  return false;
4368
4368
  }
4369
4369
  if (e.axes !== void 0) {
4370
- const t = n2.axesSpec.map(m$2);
4370
+ const t = n2.axesSpec.map(m$1);
4371
4371
  if (e.partialAxesMatch) {
4372
4372
  for (const r of e.axes)
4373
4373
  if (!t.some((o) => k(r, o)))
@@ -4460,12 +4460,12 @@
4460
4460
  }), c = l.extend({
4461
4461
  cause: z$1.lazy(() => s).optional(),
4462
4462
  errors: z$1.lazy(() => s.array()).optional()
4463
- }), m$1 = z$1.object({
4463
+ }), m = z$1.object({
4464
4464
  type: z$1.literal("StandardError"),
4465
4465
  name: z$1.string(),
4466
4466
  message: z$1.string(),
4467
4467
  stack: z$1.string().optional()
4468
- }), p = m$1.extend({
4468
+ }), p = m.extend({
4469
4469
  cause: z$1.lazy(() => s).optional(),
4470
4470
  errors: z$1.lazy(() => s.array()).optional()
4471
4471
  }), s = z$1.union([p, c]);
@@ -4496,11 +4496,11 @@
4496
4496
  function ot() {
4497
4497
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4498
4498
  }
4499
- function m() {
4499
+ function y() {
4500
4500
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4501
4501
  throw new Error("Not in config rendering context");
4502
4502
  }
4503
- function U(t, e) {
4503
+ function B(t, e) {
4504
4504
  const n2 = ot();
4505
4505
  if (n2 === void 0) return false;
4506
4506
  if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
@@ -4508,12 +4508,12 @@
4508
4508
  }
4509
4509
  const ae = /* @__PURE__ */ new Map();
4510
4510
  function at(t, e) {
4511
- t in m().callbackRegistry || (m().callbackRegistry[t] = (n2) => {
4511
+ t in y().callbackRegistry || (y().callbackRegistry[t] = (n2) => {
4512
4512
  for (const r of ae.get(t))
4513
4513
  r(n2);
4514
4514
  }, ae.set(t, [])), ae.get(t).push(e);
4515
4515
  }
4516
- class C {
4516
+ class S {
4517
4517
  constructor(e, n2 = (r) => r) {
4518
4518
  T(this, "isResolved", false);
4519
4519
  T(this, "resolvedValue");
@@ -4522,10 +4522,10 @@
4522
4522
  });
4523
4523
  }
4524
4524
  map(e) {
4525
- return new C(this.handle, (n2) => e(this.postProcess(n2)));
4525
+ return new S(this.handle, (n2) => e(this.postProcess(n2)));
4526
4526
  }
4527
4527
  mapDefined(e) {
4528
- return new C(this.handle, (n2) => {
4528
+ return new S(this.handle, (n2) => {
4529
4529
  const r = this.postProcess(n2);
4530
4530
  return r ? e(r) : void 0;
4531
4531
  });
@@ -4534,7 +4534,7 @@
4534
4534
  return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
4535
4535
  }
4536
4536
  }
4537
- function de(t, e) {
4537
+ function pe(t, e) {
4538
4538
  return t === void 0 ? void 0 : e(t);
4539
4539
  }
4540
4540
  class I {
@@ -4576,47 +4576,47 @@
4576
4576
  ...this.resolvePath,
4577
4577
  ...n2.map((i) => typeof i == "string" ? i : i.field)
4578
4578
  ];
4579
- return de(
4580
- m().resolveWithCommon(this.handle, e, ...n2),
4579
+ return pe(
4580
+ y().resolveWithCommon(this.handle, e, ...n2),
4581
4581
  (i) => new I(i, r)
4582
4582
  );
4583
4583
  }
4584
4584
  get resourceType() {
4585
- return m().getResourceType(this.handle);
4585
+ return y().getResourceType(this.handle);
4586
4586
  }
4587
4587
  getInputsLocked() {
4588
- return m().getInputsLocked(this.handle);
4588
+ return y().getInputsLocked(this.handle);
4589
4589
  }
4590
4590
  getOutputsLocked() {
4591
- return m().getOutputsLocked(this.handle);
4591
+ return y().getOutputsLocked(this.handle);
4592
4592
  }
4593
4593
  getIsReadyOrError() {
4594
- return m().getIsReadyOrError(this.handle);
4594
+ return y().getIsReadyOrError(this.handle);
4595
4595
  }
4596
4596
  getIsFinal() {
4597
- return m().getIsFinal(this.handle);
4597
+ return y().getIsFinal(this.handle);
4598
4598
  }
4599
4599
  getError() {
4600
4600
  const e = [...this.resolvePath, "error"];
4601
- return de(
4602
- m().getError(this.handle),
4601
+ return pe(
4602
+ y().getError(this.handle),
4603
4603
  (n2) => new I(n2, e)
4604
4604
  );
4605
4605
  }
4606
4606
  listInputFields() {
4607
- return m().listInputFields(this.handle);
4607
+ return y().listInputFields(this.handle);
4608
4608
  }
4609
4609
  listOutputFields() {
4610
- return m().listOutputFields(this.handle);
4610
+ return y().listOutputFields(this.handle);
4611
4611
  }
4612
4612
  listDynamicFields() {
4613
- return m().listDynamicFields(this.handle);
4613
+ return y().listDynamicFields(this.handle);
4614
4614
  }
4615
4615
  getKeyValueBase64(e) {
4616
- return m().getKeyValueBase64(this.handle, e);
4616
+ return y().getKeyValueBase64(this.handle, e);
4617
4617
  }
4618
4618
  getKeyValueAsString(e) {
4619
- return m().getKeyValueAsString(this.handle, e);
4619
+ return y().getKeyValueAsString(this.handle, e);
4620
4620
  }
4621
4621
  getKeyValueAsJson(e) {
4622
4622
  const n2 = this.getKeyValueAsString(e);
@@ -4624,10 +4624,10 @@
4624
4624
  return JSON.parse(n2);
4625
4625
  }
4626
4626
  getDataBase64() {
4627
- return m().getDataBase64(this.handle);
4627
+ return y().getDataBase64(this.handle);
4628
4628
  }
4629
4629
  getDataAsString() {
4630
- return m().getDataAsString(this.handle);
4630
+ return y().getDataAsString(this.handle);
4631
4631
  }
4632
4632
  getDataAsJson() {
4633
4633
  const e = this.getDataAsString();
@@ -4648,7 +4648,7 @@
4648
4648
  *
4649
4649
  */
4650
4650
  parsePObjectCollection(e = false, n2 = "") {
4651
- const r = m().parsePObjectCollection(
4651
+ const r = y().parsePObjectCollection(
4652
4652
  this.handle,
4653
4653
  e,
4654
4654
  n2,
@@ -4663,14 +4663,14 @@
4663
4663
  return i;
4664
4664
  }
4665
4665
  getFileContentAsBase64() {
4666
- return new C(m().getBlobContentAsBase64(this.handle));
4666
+ return new S(y().getBlobContentAsBase64(this.handle));
4667
4667
  }
4668
4668
  getFileContentAsString() {
4669
- return new C(m().getBlobContentAsString(this.handle));
4669
+ return new S(y().getBlobContentAsString(this.handle));
4670
4670
  }
4671
4671
  getFileContentAsJson() {
4672
- return new C(
4673
- m().getBlobContentAsString(this.handle)
4672
+ return new S(
4673
+ y().getBlobContentAsString(this.handle)
4674
4674
  ).mapDefined((e) => JSON.parse(e));
4675
4675
  }
4676
4676
  /**
@@ -4689,7 +4689,7 @@
4689
4689
  * @returns downloaded file handle
4690
4690
  */
4691
4691
  getFileHandle() {
4692
- return new C(m().getDownloadedBlobContentHandle(this.handle));
4692
+ return new S(y().getDownloadedBlobContentHandle(this.handle));
4693
4693
  }
4694
4694
  /**
4695
4695
  * @deprecated use getFileHandle
@@ -4701,7 +4701,7 @@
4701
4701
  * @returns downloaded file handle
4702
4702
  */
4703
4703
  getRemoteFileHandle() {
4704
- return new C(m().getOnDemandBlobContentHandle(this.handle));
4704
+ return new S(y().getOnDemandBlobContentHandle(this.handle));
4705
4705
  }
4706
4706
  /**
4707
4707
  * @deprecated use getRemoteFileHandle
@@ -4713,22 +4713,22 @@
4713
4713
  * @returns the url to the extracted folder
4714
4714
  */
4715
4715
  extractArchiveAndGetURL(e) {
4716
- return new C(m().extractArchiveAndGetURL(this.handle, e));
4716
+ return new S(y().extractArchiveAndGetURL(this.handle, e));
4717
4717
  }
4718
4718
  getImportProgress() {
4719
- return new C(m().getImportProgress(this.handle));
4719
+ return new S(y().getImportProgress(this.handle));
4720
4720
  }
4721
4721
  getLastLogs(e) {
4722
- return new C(m().getLastLogs(this.handle, e));
4722
+ return new S(y().getLastLogs(this.handle, e));
4723
4723
  }
4724
4724
  getProgressLog(e) {
4725
- return new C(m().getProgressLog(this.handle, e));
4725
+ return new S(y().getProgressLog(this.handle, e));
4726
4726
  }
4727
4727
  getProgressLogWithInfo(e) {
4728
- return new C(m().getProgressLogWithInfo(this.handle, e));
4728
+ return new S(y().getProgressLogWithInfo(this.handle, e));
4729
4729
  }
4730
4730
  getLogHandle() {
4731
- return new C(m().getLogHandle(this.handle));
4731
+ return new S(y().getLogHandle(this.handle));
4732
4732
  }
4733
4733
  allFieldsResolved(e = "Input") {
4734
4734
  switch (e) {
@@ -4754,89 +4754,89 @@
4754
4754
  let l2 = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
4755
4755
  (u2) => [u2, this.resolve({ field: u2, assertFieldType: r })]
4756
4756
  );
4757
- return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, y2]) => o(u2, y2));
4757
+ return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, p2]) => o(u2, p2));
4758
4758
  }
4759
4759
  }
4760
4760
  const Fe = "staging", De = "main";
4761
- const ct = "pl7.app/label", dt = "pl7.app/trace", pt = z$1.object({
4761
+ const ct = "pl7.app/label", pt = "pl7.app/trace", dt = z$1.object({
4762
4762
  type: z$1.string(),
4763
4763
  importance: z$1.number().optional(),
4764
4764
  id: z$1.string().optional(),
4765
4765
  label: z$1.string()
4766
- }), ft = z$1.array(pt), ht = 1e-3, gt = "__LABEL__", Pe = "__LABEL__@1";
4766
+ }), ft = z$1.array(dt), ht = 1e-3, gt = "__LABEL__", xe = "__LABEL__@1";
4767
4767
  function Re(t, e, n2 = {}) {
4768
4768
  const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s2 = t.map((f2) => {
4769
4769
  var z2, F;
4770
- const h = e(f2);
4771
- let p2, x2, c2;
4772
- "spec" in h && typeof h.spec == "object" ? (p2 = h.spec, x2 = h.prefixTrace, c2 = h.suffixTrace) : p2 = h;
4773
- const v = (z2 = p2.annotations) == null ? void 0 : z2[ct], g = (F = p2.annotations) == null ? void 0 : F[dt], b = (g ? ft.safeParse(JSON.parse(g)).data : void 0) ?? [], A2 = [
4774
- ...x2 ?? [],
4775
- ...b,
4770
+ const g = e(f2);
4771
+ let h, P, c2;
4772
+ "spec" in g && typeof g.spec == "object" ? (h = g.spec, P = g.prefixTrace, c2 = g.suffixTrace) : h = g;
4773
+ const b = (z2 = h.annotations) == null ? void 0 : z2[ct], m2 = (F = h.annotations) == null ? void 0 : F[pt], w2 = (m2 ? ft.safeParse(JSON.parse(m2)).data : void 0) ?? [], A2 = [
4774
+ ...P ?? [],
4775
+ ...w2,
4776
4776
  ...c2 ?? []
4777
4777
  ];
4778
- if (v) {
4779
- const L = { label: v, type: gt, importance: -2 };
4778
+ if (b) {
4779
+ const L = { label: b, type: gt, importance: -2 };
4780
4780
  n2.addLabelAsSuffix ? A2.push(L) : A2.splice(0, 0, L);
4781
4781
  }
4782
- const D = [], $2 = /* @__PURE__ */ new Map();
4782
+ const D = [], J = /* @__PURE__ */ new Map();
4783
4783
  for (let L = A2.length - 1; L >= 0; --L) {
4784
- const { type: R } = A2[L], se = A2[L].importance ?? 0, J = ($2.get(R) ?? 0) + 1;
4785
- $2.set(R, J);
4786
- const P = `${R}@${J}`;
4787
- i.set(P, (i.get(P) ?? 0) + 1), r.set(
4788
- P,
4784
+ const { type: k2 } = A2[L], se = A2[L].importance ?? 0, N2 = (J.get(k2) ?? 0) + 1;
4785
+ J.set(k2, N2);
4786
+ const x2 = `${k2}@${N2}`;
4787
+ i.set(x2, (i.get(x2) ?? 0) + 1), r.set(
4788
+ x2,
4789
4789
  Math.max(
4790
- r.get(P) ?? Number.NEGATIVE_INFINITY,
4790
+ r.get(x2) ?? Number.NEGATIVE_INFINITY,
4791
4791
  se - (A2.length - L) * ht
4792
4792
  )
4793
- ), D.push({ ...A2[L], fullType: P, occurenceIndex: J });
4793
+ ), D.push({ ...A2[L], fullType: x2, occurenceIndex: N2 });
4794
4794
  }
4795
4795
  return D.reverse(), {
4796
4796
  value: f2,
4797
- spec: p2,
4798
- label: v,
4797
+ spec: h,
4798
+ label: b,
4799
4799
  fullTrace: D
4800
4800
  };
4801
4801
  }), o = [], a = [], l2 = [...r];
4802
- l2.sort(([, f2], [, h]) => h - f2);
4802
+ l2.sort(([, f2], [, g]) => g - f2);
4803
4803
  for (const [f2] of l2)
4804
4804
  f2.endsWith("@1") || i.get(f2) === t.length ? o.push(f2) : a.push(f2);
4805
4805
  const u2 = (f2) => {
4806
- const h = [];
4807
- for (let p2 = 0; p2 < s2.length; p2++) {
4808
- const x2 = s2[p2], c2 = x2.fullTrace.filter((b) => f2.has(b.fullType));
4806
+ const g = [];
4807
+ for (let h = 0; h < s2.length; h++) {
4808
+ const P = s2[h], c2 = P.fullTrace.filter((w2) => f2.has(w2.fullType));
4809
4809
  if (c2.length === 0)
4810
4810
  return;
4811
- const v = c2.map((b) => b.label), g = n2.separator ?? " / ";
4812
- h.push({
4813
- label: v.join(g),
4814
- value: x2.value
4811
+ const b = c2.map((w2) => w2.label), m2 = n2.separator ?? " / ";
4812
+ g.push({
4813
+ label: b.join(m2),
4814
+ value: P.value
4815
4815
  });
4816
4816
  }
4817
- return h;
4817
+ return g;
4818
4818
  };
4819
4819
  if (o.length === 0) {
4820
4820
  if (a.length !== 0) throw new Error("Assertion error.");
4821
- const f2 = u2(new Set(Pe));
4821
+ const f2 = u2(new Set(xe));
4822
4822
  if (f2 === void 0) throw new Error("Assertion error.");
4823
4823
  return f2;
4824
4824
  }
4825
- let y2 = 0, w2 = 0;
4826
- for (; y2 < o.length; ) {
4825
+ let p2 = 0, v = 0;
4826
+ for (; p2 < o.length; ) {
4827
4827
  const f2 = /* @__PURE__ */ new Set();
4828
- n2.includeNativeLabel && f2.add(Pe);
4829
- for (let p2 = 0; p2 < y2; ++p2) f2.add(o[p2]);
4830
- f2.add(o[w2]);
4831
- const h = u2(f2);
4832
- if (h !== void 0 && new Set(h.map((p2) => p2.label)).size === t.length) return h;
4833
- w2++, w2 >= o.length && (y2++, w2 = y2);
4828
+ n2.includeNativeLabel && f2.add(xe);
4829
+ for (let h = 0; h < p2; ++h) f2.add(o[h]);
4830
+ f2.add(o[v]);
4831
+ const g = u2(f2);
4832
+ if (g !== void 0 && new Set(g.map((h) => h.label)).size === t.length) return g;
4833
+ v++, v >= o.length && (p2++, v = p2);
4834
4834
  }
4835
4835
  const d = u2(/* @__PURE__ */ new Set([...o, ...a]));
4836
4836
  if (d === void 0) throw new Error("Assertion error.");
4837
4837
  return d;
4838
4838
  }
4839
- const q = "PColumnData/", ne = q + "ResourceMap", re = q + "Partitioned/ResourceMap", B = q + "JsonPartitioned", K = q + "BinaryPartitioned", ke = q + "Partitioned/", ie = ke + "JsonPartitioned", M = ke + "BinaryPartitioned";
4839
+ const q = "PColumnData/", ne = q + "ResourceMap", re = q + "Partitioned/ResourceMap", M = q + "JsonPartitioned", $ = q + "BinaryPartitioned", ke = q + "Partitioned/", ie = ke + "JsonPartitioned", W = ke + "BinaryPartitioned";
4840
4840
  const fe = (t) => {
4841
4841
  if (t.endsWith(".index"))
4842
4842
  return { baseKey: t.substring(0, t.length - 6), type: "index" };
@@ -4855,33 +4855,33 @@
4855
4855
  case re:
4856
4856
  i = n2.partitionKeyLength + n2.keyLength;
4857
4857
  break;
4858
- case B:
4859
- case K:
4858
+ case M:
4859
+ case $:
4860
4860
  i = n2.partitionKeyLength;
4861
4861
  break;
4862
- case M:
4862
+ case W:
4863
4863
  case ie:
4864
4864
  i = n2.superPartitionKeyLength + n2.partitionKeyLength;
4865
4865
  break;
4866
4866
  }
4867
4867
  switch (e) {
4868
4868
  case ne:
4869
- case B:
4870
- case K:
4869
+ case M:
4870
+ case $:
4871
4871
  for (let s2 of t.listInputFields()) {
4872
- e === K && (s2 = fe(s2).baseKey);
4872
+ e === $ && (s2 = fe(s2).baseKey);
4873
4873
  const o = [...JSON.parse(s2)];
4874
4874
  r.push(o);
4875
4875
  }
4876
4876
  break;
4877
4877
  case re:
4878
- case M:
4878
+ case W:
4879
4879
  case ie:
4880
4880
  for (const s2 of t.listInputFields()) {
4881
4881
  const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
4882
4882
  if (a !== void 0)
4883
4883
  for (let l2 of a.listInputFields()) {
4884
- e === M && (l2 = fe(l2).baseKey);
4884
+ e === W && (l2 = fe(l2).baseKey);
4885
4885
  const u2 = [...o, ...JSON.parse(l2)];
4886
4886
  r.push(u2);
4887
4887
  }
@@ -4929,13 +4929,13 @@
4929
4929
  function he(t, e = []) {
4930
4930
  if (t === void 0 || !t.getIsReadyOrError()) return;
4931
4931
  const n2 = t.resourceType.name, r = t.getDataAsJson();
4932
- if (e.length > 0 && (n2 === ie || n2 === M))
4932
+ if (e.length > 0 && (n2 === ie || n2 === W))
4933
4933
  throw new Error(`Unexpected nested super-partitioned resource: ${n2}`);
4934
4934
  switch (n2) {
4935
4935
  case ne:
4936
4936
  case re:
4937
4937
  throw new Error(`Only data columns are supported, got: ${n2}`);
4938
- case B: {
4938
+ case M: {
4939
4939
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4940
4940
  throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
4941
4941
  const i = [];
@@ -4951,7 +4951,7 @@
4951
4951
  parts: i
4952
4952
  };
4953
4953
  }
4954
- case K: {
4954
+ case $: {
4955
4955
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
4956
4956
  throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
4957
4957
  const i = [], s2 = /* @__PURE__ */ new Map();
@@ -4985,8 +4985,8 @@
4985
4985
  for (const o of t.listInputFields()) {
4986
4986
  const a = t.resolve({ field: o, assertFieldType: "Input" });
4987
4987
  if (a === void 0) return;
4988
- if (a.resourceType.name !== B)
4989
- throw new Error(`Expected ${B} inside ${n2}, but got ${a.resourceType.name}`);
4988
+ if (a.resourceType.name !== M)
4989
+ throw new Error(`Expected ${M} inside ${n2}, but got ${a.resourceType.name}`);
4990
4990
  const l2 = he(a, JSON.parse(o));
4991
4991
  if (l2 === void 0) return;
4992
4992
  if (l2.type !== "JsonPartitioned")
@@ -4999,15 +4999,15 @@
4999
4999
  parts: s2
5000
5000
  };
5001
5001
  }
5002
- case M: {
5002
+ case W: {
5003
5003
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
5004
5004
  throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n2}`);
5005
5005
  const i = r.superPartitionKeyLength + r.partitionKeyLength, s2 = [];
5006
5006
  for (const o of t.listInputFields()) {
5007
5007
  const a = t.resolve({ field: o, assertFieldType: "Input" });
5008
5008
  if (a === void 0) return;
5009
- if (a.resourceType.name !== K)
5010
- throw new Error(`Expected ${K} inside ${n2}, but got ${a.resourceType.name}`);
5009
+ if (a.resourceType.name !== $)
5010
+ throw new Error(`Expected ${$} inside ${n2}, but got ${a.resourceType.name}`);
5011
5011
  const l2 = he(a, JSON.parse(o));
5012
5012
  if (l2 === void 0) return;
5013
5013
  if (l2.type !== "BinaryPartitioned")
@@ -5101,7 +5101,7 @@
5101
5101
  return this.columns.filter((r) => n2(r.spec));
5102
5102
  }
5103
5103
  }
5104
- function Pt(t) {
5104
+ function xt(t) {
5105
5105
  if (t)
5106
5106
  return t.map((e) => ({
5107
5107
  type: `split:${Jn(e.axisId)}`,
@@ -5110,16 +5110,16 @@
5110
5110
  // High importance for split filters in labels
5111
5111
  }));
5112
5112
  }
5113
- function xt(t) {
5113
+ function Pt(t) {
5114
5114
  if (t)
5115
5115
  return t.map((e) => [e.axisIdx, e.value]);
5116
5116
  }
5117
- function St(t, e) {
5117
+ function Ct(t, e) {
5118
5118
  if (!e || e.length === 0) return t;
5119
5119
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5120
5120
  return Le({ id: t, axisFilters: n2 });
5121
5121
  }
5122
- function Ct(t) {
5122
+ function St(t) {
5123
5123
  if (!t || typeof t != "object") return false;
5124
5124
  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);
5125
5125
  return !!e.domainAnchor || n2 || r;
@@ -5163,112 +5163,112 @@
5163
5163
  ...i ?? {}
5164
5164
  }, l2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], u2 = [];
5165
5165
  for (const d of l2) {
5166
- const f$1 = Ct(d);
5167
- let h;
5166
+ const f$1 = St(d);
5167
+ let g;
5168
5168
  if (f$1) {
5169
5169
  if (!r)
5170
5170
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5171
- h = Dn(r.anchors, d, n2);
5171
+ g = Dn(r.anchors, d, n2);
5172
5172
  } else
5173
- h = d;
5174
- const p2 = /* @__PURE__ */ new Set(), x2 = [];
5175
- for (const g of this.providers) {
5176
- const b = g.selectColumns(h);
5177
- for (const A2 of b) {
5178
- if (p2.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${g.constructor.name}`);
5179
- p2.add(A2.id), x2.push(A2);
5173
+ g = d;
5174
+ const h = /* @__PURE__ */ new Set(), P = [];
5175
+ for (const m2 of this.providers) {
5176
+ const w2 = m2.selectColumns(g);
5177
+ for (const A2 of w2) {
5178
+ if (h.has(A2.id)) throw new Error(`Duplicate column id ${A2.id} in provider ${m2.constructor.name}`);
5179
+ h.add(A2.id), P.push(A2);
5180
5180
  }
5181
5181
  }
5182
- if (x2.length === 0) continue;
5183
- const c2 = _t(d), v = c2.length > 0;
5184
- for (const g of x2) {
5185
- if (!f(g.spec)) continue;
5186
- const b = g.spec;
5187
- if (v) {
5188
- const A2 = bt(g.data);
5182
+ if (P.length === 0) continue;
5183
+ const c2 = _t(d), b = c2.length > 0;
5184
+ for (const m2 of P) {
5185
+ if (!f(m2.spec)) continue;
5186
+ const w2 = m2.spec;
5187
+ if (b) {
5188
+ const A2 = bt(m2.data);
5189
5189
  if (!A2) {
5190
5190
  if (s2) continue;
5191
5191
  return;
5192
5192
  }
5193
5193
  if (!yn(A2))
5194
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${g.id}`);
5195
- const D = vt(A2), $2 = c2[c2.length - 1];
5196
- if ($2 >= A2.partitionKeyLength)
5197
- throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${$2}) in column ${b.name}`);
5198
- const z2 = c2.map((P) => this.findLabels(m$2(b.axesSpec[P]))), F = [], L = (P, N2) => {
5199
- if (N2 >= c2.length) {
5200
- if (F.push([...P]), F.length > 1e4)
5194
+ throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${A2.type} for column ${m2.id}`);
5195
+ const D = vt(A2), J = c2[c2.length - 1];
5196
+ if (J >= A2.partitionKeyLength)
5197
+ throw new Error(`Not enough partition keys (${A2.partitionKeyLength}) for requested split axes (max index ${J}) in column ${w2.name}`);
5198
+ const z2 = c2.map((x2) => this.findLabels(m$1(w2.axesSpec[x2]))), F = [], L = (x2, U) => {
5199
+ if (U >= c2.length) {
5200
+ if (F.push([...x2]), F.length > 1e4)
5201
5201
  throw new Error("Too many key combinations, aborting.");
5202
5202
  return;
5203
5203
  }
5204
- const O = c2[N2];
5204
+ const O = c2[U];
5205
5205
  if (O >= D.length)
5206
- throw new Error(`Axis index ${O} out of bounds for unique keys array (length ${D.length}) during split key generation for column ${g.id}`);
5207
- const k2 = D[O];
5208
- if (!k2 || k2.length === 0) {
5206
+ throw new Error(`Axis index ${O} out of bounds for unique keys array (length ${D.length}) during split key generation for column ${m2.id}`);
5207
+ const j2 = D[O];
5208
+ if (!j2 || j2.length === 0) {
5209
5209
  F.length = 0;
5210
5210
  return;
5211
5211
  }
5212
- for (const Y2 of k2)
5213
- P.push(Y2), L(P, N2 + 1), P.pop();
5212
+ for (const Y2 of j2)
5213
+ x2.push(Y2), L(x2, U + 1), x2.pop();
5214
5214
  };
5215
5215
  if (L([], 0), F.length === 0)
5216
5216
  continue;
5217
- const R = [...b.axesSpec], se = c2.map((P) => P);
5218
- for (let P = c2.length - 1; P >= 0; P--)
5219
- R.splice(c2[P], 1);
5220
- const J = { ...b, axesSpec: R };
5221
- for (const P of F) {
5222
- const N2 = P.map((O, k2) => {
5223
- const Y2 = se[k2], Ue = m$2(b.axesSpec[Y2]), oe = z2[k2], Be = (oe == null ? void 0 : oe[O]) ?? String(O);
5217
+ const k2 = [...w2.axesSpec], se = c2.map((x2) => x2);
5218
+ for (let x2 = c2.length - 1; x2 >= 0; x2--)
5219
+ k2.splice(c2[x2], 1);
5220
+ const N2 = { ...w2, axesSpec: k2 };
5221
+ for (const x2 of F) {
5222
+ const U = x2.map((O, j2) => {
5223
+ const Y2 = se[j2], Ue = m$1(w2.axesSpec[Y2]), oe = z2[j2], Be = (oe == null ? void 0 : oe[O]) ?? String(O);
5224
5224
  return { axisIdx: Y2, axisId: Ue, value: O, label: Be };
5225
5225
  });
5226
5226
  u2.push({
5227
5227
  type: "split",
5228
- originalColumn: g,
5229
- spec: b,
5230
- adjustedSpec: J,
5228
+ originalColumn: m2,
5229
+ spec: w2,
5230
+ adjustedSpec: N2,
5231
5231
  dataEntries: A2,
5232
- axisFilters: N2
5232
+ axisFilters: U
5233
5233
  });
5234
5234
  }
5235
5235
  } else
5236
5236
  u2.push({
5237
5237
  type: "direct",
5238
- originalColumn: g,
5239
- spec: b,
5240
- adjustedSpec: b
5238
+ originalColumn: m2,
5239
+ spec: w2,
5240
+ adjustedSpec: w2
5241
5241
  });
5242
5242
  }
5243
5243
  }
5244
5244
  if (u2.length === 0) return [];
5245
- const y2 = Re(
5245
+ const p2 = Re(
5246
5246
  u2,
5247
5247
  (d) => ({
5248
5248
  spec: d.spec,
5249
- suffixTrace: d.type === "split" ? Pt(d.axisFilters) : void 0
5249
+ suffixTrace: d.type === "split" ? xt(d.axisFilters) : void 0
5250
5250
  }),
5251
5251
  a
5252
- ), w2 = [];
5253
- for (const { value: d, label: f2 } of y2) {
5254
- const { originalColumn: h, spec: p2 } = d, x2 = d.type === "split" ? d.axisFilters : void 0, c2 = xt(x2);
5255
- let v;
5256
- r ? v = r.deriveS(p2, c2) : v = St(h.id, c2);
5257
- let g = { ...d.adjustedSpec };
5258
- o && (g = {
5259
- ...g,
5252
+ ), v = [];
5253
+ for (const { value: d, label: f2 } of p2) {
5254
+ const { originalColumn: g, spec: h } = d, P = d.type === "split" ? d.axisFilters : void 0, c2 = Pt(P);
5255
+ let b;
5256
+ r ? b = r.deriveS(h, c2) : b = Ct(g.id, c2);
5257
+ let m2 = { ...d.adjustedSpec };
5258
+ o && (m2 = {
5259
+ ...m2,
5260
5260
  annotations: {
5261
- ...g.annotations ?? {},
5261
+ ...m2.annotations ?? {},
5262
5262
  "pl7.app/label": f2
5263
5263
  }
5264
- }), w2.push({
5265
- id: v,
5266
- spec: g,
5264
+ }), v.push({
5265
+ id: b,
5266
+ spec: m2,
5267
5267
  data: () => d.type === "split" ? gn(wt(d.dataEntries, c2)) : d.originalColumn.data,
5268
5268
  label: f2
5269
5269
  });
5270
5270
  }
5271
- return w2;
5271
+ return v;
5272
5272
  }
5273
5273
  getColumns(e, n2) {
5274
5274
  const r = this.getUniversalEntries(e, {
@@ -5300,12 +5300,12 @@
5300
5300
  if (t[n2] !== e[n2]) return false;
5301
5301
  return true;
5302
5302
  }
5303
- function xe(t) {
5303
+ function Pe(t) {
5304
5304
  return Fn(t, (e) => e instanceof I ? e.handle : mn(e) ? ln(e, (n2) => n2.handle) : e);
5305
5305
  }
5306
5306
  class It {
5307
5307
  constructor() {
5308
- T(this, "ctx", m());
5308
+ T(this, "ctx", y());
5309
5309
  }
5310
5310
  /**
5311
5311
  * @deprecated use getOptions()
@@ -5316,7 +5316,7 @@
5316
5316
  getOptions(e, n2) {
5317
5317
  const r = typeof e == "function" ? e : Kn(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
5318
5318
  let s2 = {}, o = false;
5319
- 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.requireEnrichments ?? false))), typeof s2 == "object" ? Re(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5319
+ 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" ? Re(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5320
5320
  ref: vn(a, o),
5321
5321
  label: l2
5322
5322
  })) : i.map(({ ref: a, obj: l2 }) => ({
@@ -5579,7 +5579,7 @@
5579
5579
  T(this, "uiState");
5580
5580
  T(this, "_activeArgsCache");
5581
5581
  T(this, "resultPool", new It());
5582
- this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5582
+ this.ctx = y(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5583
5583
  }
5584
5584
  /**
5585
5585
  * Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
@@ -5595,7 +5595,7 @@
5595
5595
  // return this.ctx.featureFlags;
5596
5596
  // }
5597
5597
  getNamedAccessor(e) {
5598
- return de(
5598
+ return pe(
5599
5599
  this.ctx.getAccessorHandleByName(e),
5600
5600
  (n2) => new I(n2, [e])
5601
5601
  );
@@ -5622,7 +5622,7 @@
5622
5622
  // TODO remove all non-PColumn fields
5623
5623
  createPFrame(e) {
5624
5624
  return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
5625
- e.map((n2) => xe(n2))
5625
+ e.map((n2) => Pe(n2))
5626
5626
  );
5627
5627
  }
5628
5628
  createPTable(e) {
@@ -5635,7 +5635,7 @@
5635
5635
  filters: e.filters ?? [],
5636
5636
  sorting: e.sorting ?? []
5637
5637
  } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Un(n2.src)), this.ctx.createPTable(
5638
- On(n2, (r) => xe(r))
5638
+ On(n2, (r) => Pe(r))
5639
5639
  );
5640
5640
  }
5641
5641
  /** @deprecated scheduled for removal from SDK */
@@ -5646,7 +5646,7 @@
5646
5646
  return this.ctx.getCurrentUnstableMarker();
5647
5647
  }
5648
5648
  }
5649
- const W = "1.30.0";
5649
+ const G = "1.30.11";
5650
5650
  function Lt(t) {
5651
5651
  return t.__renderLambda === true;
5652
5652
  }
@@ -5673,7 +5673,7 @@
5673
5673
  output(e, n2, r = {}) {
5674
5674
  if (typeof n2 == "function") {
5675
5675
  const i = `output#${e}`;
5676
- return U(i, () => n2(new X())), new _(
5676
+ return B(i, () => n2(new X())), new _(
5677
5677
  this._renderingMode,
5678
5678
  this._initialArgs,
5679
5679
  this._initialUiState,
@@ -5710,7 +5710,7 @@
5710
5710
  return this.output(e, n2, { retentive: true });
5711
5711
  }
5712
5712
  argsValid(e) {
5713
- return typeof e == "function" ? (U("inputsValid", () => e(new X())), new _(
5713
+ return typeof e == "function" ? (B("inputsValid", () => e(new X())), new _(
5714
5714
  this._renderingMode,
5715
5715
  this._initialArgs,
5716
5716
  this._initialUiState,
@@ -5734,7 +5734,7 @@
5734
5734
  );
5735
5735
  }
5736
5736
  sections(e) {
5737
- return Array.isArray(e) ? this.sections(Z(e)) : typeof e == "function" ? (U("sections", () => e(new X())), new _(
5737
+ return Array.isArray(e) ? this.sections(Z(e)) : typeof e == "function" ? (B("sections", () => e(new X())), new _(
5738
5738
  this._renderingMode,
5739
5739
  this._initialArgs,
5740
5740
  this._initialUiState,
@@ -5756,7 +5756,7 @@
5756
5756
  }
5757
5757
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
5758
5758
  title(e) {
5759
- return U("title", () => e(new X())), new _(
5759
+ return B("title", () => e(new X())), new _(
5760
5760
  this._renderingMode,
5761
5761
  this._initialArgs,
5762
5762
  this._initialUiState,
@@ -5814,7 +5814,7 @@
5814
5814
  * Influences dependency graph construction.
5815
5815
  */
5816
5816
  enriches(e) {
5817
- return U("enrichmentTargets", e), new _(
5817
+ return B("enrichmentTargets", e), new _(
5818
5818
  this._renderingMode,
5819
5819
  this._initialArgs,
5820
5820
  this._initialUiState,
@@ -5832,7 +5832,7 @@
5832
5832
  if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
5833
5833
  const e = {
5834
5834
  v3: {
5835
- sdkVersion: W,
5835
+ sdkVersion: G,
5836
5836
  renderingMode: this._renderingMode,
5837
5837
  initialArgs: this._initialArgs,
5838
5838
  initialUiState: this._initialUiState,
@@ -5843,7 +5843,7 @@
5843
5843
  enrichmentTargets: this._enrichmentTargets
5844
5844
  },
5845
5845
  // fields below are added to allow previous desktop versions read generated configs
5846
- sdkVersion: W,
5846
+ sdkVersion: G,
5847
5847
  renderingMode: this._renderingMode,
5848
5848
  initialArgs: this._initialArgs,
5849
5849
  inputsValid: ue(this._inputsValid),
@@ -5852,7 +5852,7 @@
5852
5852
  Object.entries(this._outputs).map(([n2, r]) => [n2, ue(r)])
5853
5853
  )
5854
5854
  };
5855
- return st() ? Ee({ sdkVersion: W }) : { config: e };
5855
+ return st() ? Ee({ sdkVersion: G }) : { config: e };
5856
5856
  }
5857
5857
  }
5858
5858
  const platforma = _.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {