@milaboratories/milaboratories.pool-explorer.model 1.0.54 → 1.0.56

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
@@ -53,7 +53,7 @@
53
53
  return array.map((val) => typeof val === "string" ? `'${val}'` : val).join(separator);
54
54
  }
55
55
  util2.joinValues = joinValues;
56
- util2.jsonStringifyReplacer = (_2, value) => {
56
+ util2.jsonStringifyReplacer = (_, value) => {
57
57
  if (typeof value === "bigint") {
58
58
  return value.toString();
59
59
  }
@@ -3071,29 +3071,29 @@
3071
3071
  const params = { errorMap: ctx.common.contextualErrorMap };
3072
3072
  const fn2 = ctx.data;
3073
3073
  if (this._def.returns instanceof ZodPromise) {
3074
- const me2 = this;
3074
+ const me = this;
3075
3075
  return OK(async function(...args) {
3076
3076
  const error = new ZodError([]);
3077
- const parsedArgs = await me2._def.args.parseAsync(args, params).catch((e) => {
3077
+ const parsedArgs = await me._def.args.parseAsync(args, params).catch((e) => {
3078
3078
  error.addIssue(makeArgsIssue(args, e));
3079
3079
  throw error;
3080
3080
  });
3081
3081
  const result = await Reflect.apply(fn2, this, parsedArgs);
3082
- const parsedReturns = await me2._def.returns._def.type.parseAsync(result, params).catch((e) => {
3082
+ const parsedReturns = await me._def.returns._def.type.parseAsync(result, params).catch((e) => {
3083
3083
  error.addIssue(makeReturnsIssue(result, e));
3084
3084
  throw error;
3085
3085
  });
3086
3086
  return parsedReturns;
3087
3087
  });
3088
3088
  } else {
3089
- const me2 = this;
3089
+ const me = this;
3090
3090
  return OK(function(...args) {
3091
- const parsedArgs = me2._def.args.safeParse(args, params);
3091
+ const parsedArgs = me._def.args.safeParse(args, params);
3092
3092
  if (!parsedArgs.success) {
3093
3093
  throw new ZodError([makeArgsIssue(args, parsedArgs.error)]);
3094
3094
  }
3095
3095
  const result = Reflect.apply(fn2, this, parsedArgs.data);
3096
- const parsedReturns = me2._def.returns.safeParse(result, params);
3096
+ const parsedReturns = me._def.returns.safeParse(result, params);
3097
3097
  if (!parsedReturns.success) {
3098
3098
  throw new ZodError([makeReturnsIssue(result, parsedReturns.error)]);
3099
3099
  }
@@ -3955,7 +3955,7 @@
3955
3955
  return canonicalize;
3956
3956
  }
3957
3957
  var canonicalizeExports = requireCanonicalize();
3958
- const ke = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
3958
+ const Re = /* @__PURE__ */ getDefaultExportFromCjs(canonicalizeExports);
3959
3959
  var B$1 = Object.defineProperty;
3960
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
3961
  var l$1 = (n2, e, t) => j(n2, typeof e != "symbol" ? e + "" : e, t);
@@ -4103,7 +4103,7 @@
4103
4103
  return n2.map(p$1);
4104
4104
  }
4105
4105
  function Rn(n2) {
4106
- return ke(p$1(n2));
4106
+ return Re(p$1(n2));
4107
4107
  }
4108
4108
  function Y$1(n2, e) {
4109
4109
  if (n2 === void 0) return e === void 0;
@@ -4151,12 +4151,12 @@
4151
4151
  }
4152
4152
  }
4153
4153
  function nn(n2) {
4154
- return ke(n2);
4154
+ return Re(n2);
4155
4155
  }
4156
4156
  function P(n2) {
4157
- return ke(p$1(n2));
4157
+ return Re(p$1(n2));
4158
4158
  }
4159
- function k(n2, e) {
4159
+ function k$1(n2, e) {
4160
4160
  return JSON.stringify([n2, e]);
4161
4161
  }
4162
4162
  class _n {
@@ -4181,7 +4181,7 @@
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 = k(a, i);
4184
+ const u2 = k$1(a, i);
4185
4185
  this.domains.set(u2, r);
4186
4186
  }
4187
4187
  }
@@ -4216,7 +4216,7 @@
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 = k(a, i), c2 = this.domains.get(u2);
4219
+ const u2 = k$1(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) => {
@@ -4425,7 +4425,7 @@
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 = J(n2.axesSpec)), ke(e);
4428
+ return n2.domain !== void 0 && (e.domain = n2.domain), f(n2) && (e.axesSpec = J(n2.axesSpec)), Re(e);
4429
4429
  }
4430
4430
  z$1.object({
4431
4431
  __isRef: z$1.literal(true).describe("Crucial marker for the block dependency tree reconstruction"),
@@ -4495,12 +4495,12 @@
4495
4495
  }), c = l.extend({
4496
4496
  cause: z$1.lazy(() => s).optional(),
4497
4497
  errors: z$1.lazy(() => s.array()).optional()
4498
- }), m$1 = z$1.object({
4498
+ }), m = z$1.object({
4499
4499
  type: z$1.literal("StandardError"),
4500
4500
  name: z$1.string(),
4501
4501
  message: z$1.string(),
4502
4502
  stack: z$1.string().optional()
4503
- }), p = m$1.extend({
4503
+ }), p = m.extend({
4504
4504
  cause: z$1.lazy(() => s).optional(),
4505
4505
  errors: z$1.lazy(() => s.array()).optional()
4506
4506
  }), s = z$1.union([p, c]);
@@ -4513,54 +4513,54 @@
4513
4513
  cause: z$1.lazy(() => n).optional(),
4514
4514
  errors: z$1.lazy(() => n.array()).optional()
4515
4515
  });
4516
- var qe = Object.defineProperty;
4517
- var ze = (t, e, n2) => e in t ? qe(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4518
- var O = (t, e, n2) => ze(t, typeof e != "symbol" ? e + "" : e, n2);
4516
+ var Ye = Object.defineProperty;
4517
+ var Xe = (t, e, n2) => e in t ? Ye(t, e, { enumerable: true, configurable: true, writable: true, value: n2 }) : t[e] = n2;
4518
+ var k = (t, e, n2) => Xe(t, typeof e != "symbol" ? e + "" : e, n2);
4519
4519
  function re(t) {
4520
4520
  return { type: "Immediate", value: t };
4521
4521
  }
4522
- function pt() {
4522
+ function ht() {
4523
4523
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
4524
4524
  }
4525
- function De(t) {
4525
+ function Ke(t) {
4526
4526
  if (t && typeof globalThis.getPlatforma == "function")
4527
4527
  return globalThis.getPlatforma(t);
4528
4528
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
4529
4529
  throw new Error("Can't get platforma instance.");
4530
4530
  }
4531
- function ft() {
4531
+ function gt() {
4532
4532
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4533
4533
  }
4534
- function m() {
4534
+ function y() {
4535
4535
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
4536
4536
  throw new Error("Not in config rendering context");
4537
4537
  }
4538
4538
  function H(t, e) {
4539
- const n2 = ft();
4539
+ const n2 = gt();
4540
4540
  if (n2 === void 0) return false;
4541
4541
  if (t in n2.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
4542
4542
  return n2.callbackRegistry[t] = e, true;
4543
4543
  }
4544
- const ce = /* @__PURE__ */ new Map();
4545
- function ht(t, e) {
4546
- t in m().callbackRegistry || (m().callbackRegistry[t] = (n2) => {
4547
- for (const r of ce.get(t))
4544
+ const de = /* @__PURE__ */ new Map();
4545
+ function mt(t, e) {
4546
+ t in y().callbackRegistry || (y().callbackRegistry[t] = (n2) => {
4547
+ for (const r of de.get(t))
4548
4548
  r(n2);
4549
- }, ce.set(t, [])), ce.get(t).push(e);
4549
+ }, de.set(t, [])), de.get(t).push(e);
4550
4550
  }
4551
- class _ {
4551
+ class I {
4552
4552
  constructor(e, n2 = (r) => r) {
4553
- O(this, "isResolved", false);
4554
- O(this, "resolvedValue");
4555
- this.handle = e, this.postProcess = n2, ht(e, (r) => {
4553
+ k(this, "isResolved", false);
4554
+ k(this, "resolvedValue");
4555
+ this.handle = e, this.postProcess = n2, mt(e, (r) => {
4556
4556
  this.resolvedValue = n2(r), this.isResolved = true;
4557
4557
  });
4558
4558
  }
4559
4559
  map(e) {
4560
- return new _(this.handle, (n2) => e(this.postProcess(n2)));
4560
+ return new I(this.handle, (n2) => e(this.postProcess(n2)));
4561
4561
  }
4562
4562
  mapDefined(e) {
4563
- return new _(this.handle, (n2) => {
4563
+ return new I(this.handle, (n2) => {
4564
4564
  const r = this.postProcess(n2);
4565
4565
  return r ? e(r) : void 0;
4566
4566
  });
@@ -4569,7 +4569,7 @@
4569
4569
  return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
4570
4570
  }
4571
4571
  }
4572
- function he(t, e) {
4572
+ function ge(t, e) {
4573
4573
  return t === void 0 ? void 0 : e(t);
4574
4574
  }
4575
4575
  class E {
@@ -4611,47 +4611,47 @@
4611
4611
  ...this.resolvePath,
4612
4612
  ...n2.map((i) => typeof i == "string" ? i : i.field)
4613
4613
  ];
4614
- return he(
4615
- m().resolveWithCommon(this.handle, e, ...n2),
4614
+ return ge(
4615
+ y().resolveWithCommon(this.handle, e, ...n2),
4616
4616
  (i) => new E(i, r)
4617
4617
  );
4618
4618
  }
4619
4619
  get resourceType() {
4620
- return m().getResourceType(this.handle);
4620
+ return y().getResourceType(this.handle);
4621
4621
  }
4622
4622
  getInputsLocked() {
4623
- return m().getInputsLocked(this.handle);
4623
+ return y().getInputsLocked(this.handle);
4624
4624
  }
4625
4625
  getOutputsLocked() {
4626
- return m().getOutputsLocked(this.handle);
4626
+ return y().getOutputsLocked(this.handle);
4627
4627
  }
4628
4628
  getIsReadyOrError() {
4629
- return m().getIsReadyOrError(this.handle);
4629
+ return y().getIsReadyOrError(this.handle);
4630
4630
  }
4631
4631
  getIsFinal() {
4632
- return m().getIsFinal(this.handle);
4632
+ return y().getIsFinal(this.handle);
4633
4633
  }
4634
4634
  getError() {
4635
4635
  const e = [...this.resolvePath, "error"];
4636
- return he(
4637
- m().getError(this.handle),
4636
+ return ge(
4637
+ y().getError(this.handle),
4638
4638
  (n2) => new E(n2, e)
4639
4639
  );
4640
4640
  }
4641
4641
  listInputFields() {
4642
- return m().listInputFields(this.handle);
4642
+ return y().listInputFields(this.handle);
4643
4643
  }
4644
4644
  listOutputFields() {
4645
- return m().listOutputFields(this.handle);
4645
+ return y().listOutputFields(this.handle);
4646
4646
  }
4647
4647
  listDynamicFields() {
4648
- return m().listDynamicFields(this.handle);
4648
+ return y().listDynamicFields(this.handle);
4649
4649
  }
4650
4650
  getKeyValueBase64(e) {
4651
- return m().getKeyValueBase64(this.handle, e);
4651
+ return y().getKeyValueBase64(this.handle, e);
4652
4652
  }
4653
4653
  getKeyValueAsString(e) {
4654
- return m().getKeyValueAsString(this.handle, e);
4654
+ return y().getKeyValueAsString(this.handle, e);
4655
4655
  }
4656
4656
  getKeyValueAsJson(e) {
4657
4657
  const n2 = this.getKeyValueAsString(e);
@@ -4659,10 +4659,10 @@
4659
4659
  return JSON.parse(n2);
4660
4660
  }
4661
4661
  getDataBase64() {
4662
- return m().getDataBase64(this.handle);
4662
+ return y().getDataBase64(this.handle);
4663
4663
  }
4664
4664
  getDataAsString() {
4665
- return m().getDataAsString(this.handle);
4665
+ return y().getDataAsString(this.handle);
4666
4666
  }
4667
4667
  getDataAsJson() {
4668
4668
  const e = this.getDataAsString();
@@ -4683,7 +4683,7 @@
4683
4683
  *
4684
4684
  */
4685
4685
  parsePObjectCollection(e = false, n2 = "") {
4686
- const r = m().parsePObjectCollection(
4686
+ const r = y().parsePObjectCollection(
4687
4687
  this.handle,
4688
4688
  e,
4689
4689
  n2,
@@ -4698,14 +4698,14 @@
4698
4698
  return i;
4699
4699
  }
4700
4700
  getFileContentAsBase64(e) {
4701
- return new _(m().getBlobContentAsBase64(this.handle, e));
4701
+ return new I(y().getBlobContentAsBase64(this.handle, e));
4702
4702
  }
4703
4703
  getFileContentAsString(e) {
4704
- return new _(m().getBlobContentAsString(this.handle, e));
4704
+ return new I(y().getBlobContentAsString(this.handle, e));
4705
4705
  }
4706
4706
  getFileContentAsJson(e) {
4707
- return new _(
4708
- m().getBlobContentAsString(this.handle, e)
4707
+ return new I(
4708
+ y().getBlobContentAsString(this.handle, e)
4709
4709
  ).mapDefined((n2) => JSON.parse(n2));
4710
4710
  }
4711
4711
  /**
@@ -4724,7 +4724,7 @@
4724
4724
  * @returns downloaded file handle
4725
4725
  */
4726
4726
  getFileHandle() {
4727
- return new _(m().getDownloadedBlobContentHandle(this.handle));
4727
+ return new I(y().getDownloadedBlobContentHandle(this.handle));
4728
4728
  }
4729
4729
  /**
4730
4730
  * @deprecated use getFileHandle
@@ -4736,7 +4736,7 @@
4736
4736
  * @returns downloaded file handle
4737
4737
  */
4738
4738
  getRemoteFileHandle() {
4739
- return new _(m().getOnDemandBlobContentHandle(this.handle));
4739
+ return new I(y().getOnDemandBlobContentHandle(this.handle));
4740
4740
  }
4741
4741
  /**
4742
4742
  * @deprecated use getRemoteFileHandle
@@ -4748,22 +4748,22 @@
4748
4748
  * @returns the url to the extracted folder
4749
4749
  */
4750
4750
  extractArchiveAndGetURL(e) {
4751
- return new _(m().extractArchiveAndGetURL(this.handle, e));
4751
+ return new I(y().extractArchiveAndGetURL(this.handle, e));
4752
4752
  }
4753
4753
  getImportProgress() {
4754
- return new _(m().getImportProgress(this.handle));
4754
+ return new I(y().getImportProgress(this.handle));
4755
4755
  }
4756
4756
  getLastLogs(e) {
4757
- return new _(m().getLastLogs(this.handle, e));
4757
+ return new I(y().getLastLogs(this.handle, e));
4758
4758
  }
4759
4759
  getProgressLog(e) {
4760
- return new _(m().getProgressLog(this.handle, e));
4760
+ return new I(y().getProgressLog(this.handle, e));
4761
4761
  }
4762
4762
  getProgressLogWithInfo(e) {
4763
- return new _(m().getProgressLogWithInfo(this.handle, e));
4763
+ return new I(y().getProgressLogWithInfo(this.handle, e));
4764
4764
  }
4765
4765
  getLogHandle() {
4766
- return new _(m().getLogHandle(this.handle));
4766
+ return new I(y().getLogHandle(this.handle));
4767
4767
  }
4768
4768
  allFieldsResolved(e = "Input") {
4769
4769
  switch (e) {
@@ -4792,95 +4792,95 @@
4792
4792
  return s2 && (l2 = l2.filter((u2) => u2[1] !== void 0)), l2.map(([u2, c2]) => o(u2, c2));
4793
4793
  }
4794
4794
  }
4795
- const Re = "staging", Fe = "main";
4796
- const yt = "pl7.app/label", vt = "pl7.app/trace", bt = z$1.object({
4795
+ const Ve = "staging", je = "main";
4796
+ const bt = "pl7.app/label", wt = "pl7.app/trace", At = z$1.object({
4797
4797
  type: z$1.string(),
4798
4798
  importance: z$1.number().optional(),
4799
4799
  id: z$1.string().optional(),
4800
4800
  label: z$1.string()
4801
- }), wt = z$1.array(bt), At = 1e-3, xt = "__LABEL__", Pe = "__LABEL__@1";
4802
- function je(t, e, n2 = {}) {
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 P2, R;
4805
- const w2 = e(f2);
4806
- let p2, g, b;
4807
- "spec" in w2 && typeof w2.spec == "object" ? (p2 = w2.spec, g = w2.prefixTrace, b = w2.suffixTrace) : p2 = w2;
4808
- const h2 = (P2 = p2.annotations) == null ? void 0 : P2[yt], I = (R = p2.annotations) == null ? void 0 : R[vt], x = (I ? wt.safeParse(JSON.parse(I)).data : void 0) ?? [], v = [
4809
- ...g ?? [],
4810
- ...x,
4801
+ }), xt = z$1.array(At), Ct = 1e-3, Pt = "__LABEL__", Te = "__LABEL__@1";
4802
+ function $e(t, e, n2 = {}) {
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((p2) => {
4804
+ var S, F;
4805
+ const m2 = e(p2);
4806
+ let f2, v, b;
4807
+ "spec" in m2 && typeof m2.spec == "object" ? (f2 = m2.spec, v = m2.prefixTrace, b = m2.suffixTrace) : f2 = m2;
4808
+ const g = (S = f2.annotations) == null ? void 0 : S[bt], x = (F = f2.annotations) == null ? void 0 : F[wt], A = (x ? xt.safeParse(JSON.parse(x)).data : void 0) ?? [], C = [
4809
+ ...v ?? [],
4810
+ ...A,
4811
4811
  ...b ?? []
4812
4812
  ];
4813
- if (h2 !== void 0) {
4814
- const k2 = { label: h2, type: xt, importance: -2 };
4815
- n2.addLabelAsSuffix ? v.push(k2) : v.splice(0, 0, k2);
4816
- }
4817
- const A = [], L = /* @__PURE__ */ new Map();
4818
- for (let k2 = v.length - 1; k2 >= 0; --k2) {
4819
- const { type: W } = v[k2], j2 = v[k2].importance ?? 0, $ = (L.get(W) ?? 0) + 1;
4820
- L.set(W, $);
4821
- const F = `${W}@${$}`;
4822
- s2.set(F, (s2.get(F) ?? 0) + 1), r.set(
4823
- F,
4813
+ if (g !== void 0) {
4814
+ const D = { label: g, type: Pt, importance: -2 };
4815
+ n2.addLabelAsSuffix ? C.push(D) : C.splice(0, 0, D);
4816
+ }
4817
+ const w2 = [], T = /* @__PURE__ */ new Map();
4818
+ for (let D = C.length - 1; D >= 0; --D) {
4819
+ const { type: W } = C[D], j2 = C[D].importance ?? 0, $ = (T.get(W) ?? 0) + 1;
4820
+ T.set(W, $);
4821
+ const K2 = `${W}@${$}`;
4822
+ s2.set(K2, (s2.get(K2) ?? 0) + 1), r.set(
4823
+ K2,
4824
4824
  Math.max(
4825
- r.get(F) ?? Number.NEGATIVE_INFINITY,
4826
- j2 - (v.length - k2) * At
4825
+ r.get(K2) ?? Number.NEGATIVE_INFINITY,
4826
+ j2 - (C.length - D) * Ct
4827
4827
  )
4828
- ), A.push({ ...v[k2], fullType: F, occurrenceIndex: $ });
4828
+ ), w2.push({ ...C[D], fullType: K2, occurrenceIndex: $ });
4829
4829
  }
4830
- return A.reverse(), {
4831
- value: f2,
4832
- spec: p2,
4833
- label: h2,
4834
- fullTrace: A
4830
+ return w2.reverse(), {
4831
+ value: p2,
4832
+ spec: f2,
4833
+ label: g,
4834
+ fullTrace: w2
4835
4835
  };
4836
4836
  }), a = [], l2 = [], u2 = [...r];
4837
- u2.sort(([, f2], [, w2]) => w2 - f2);
4838
- for (const [f2] of u2)
4839
- f2.endsWith("@1") || s2.get(f2) === t.length ? a.push(f2) : l2.push(f2);
4840
- const c2 = (f2, w2 = false) => {
4841
- const p2 = [];
4842
- for (let g = 0; g < o.length; g++) {
4843
- const b = o[g], h2 = b.fullTrace.filter((v) => f2.has(v.fullType) || i && i.has(v.type));
4844
- if (h2.length === 0)
4845
- if (w2)
4846
- p2.push({
4837
+ u2.sort(([, p2], [, m2]) => m2 - p2);
4838
+ for (const [p2] of u2)
4839
+ p2.endsWith("@1") || s2.get(p2) === t.length ? a.push(p2) : l2.push(p2);
4840
+ const c2 = (p2, m2 = false) => {
4841
+ const f2 = [];
4842
+ for (let v = 0; v < o.length; v++) {
4843
+ const b = o[v], g = b.fullTrace.filter((C) => p2.has(C.fullType) || i && i.has(C.type));
4844
+ if (g.length === 0)
4845
+ if (m2)
4846
+ f2.push({
4847
4847
  label: "Unlabeled",
4848
4848
  value: b.value
4849
4849
  });
4850
4850
  else return;
4851
- const I = h2.map((v) => v.label), x = n2.separator ?? " / ";
4852
- p2.push({
4853
- label: I.join(x),
4851
+ const x = g.map((C) => C.label), A = n2.separator ?? " / ";
4852
+ f2.push({
4853
+ label: x.join(A),
4854
4854
  value: b.value
4855
4855
  });
4856
4856
  }
4857
- return p2;
4857
+ return f2;
4858
4858
  };
4859
4859
  if (a.length === 0) {
4860
4860
  if (l2.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
4861
- return c2(new Set(Pe), true);
4861
+ return c2(new Set(Te), true);
4862
4862
  }
4863
- let d = 0, y = -1;
4863
+ let d = 0, h2 = -1;
4864
4864
  for (; d < a.length; ) {
4865
- const f2 = /* @__PURE__ */ new Set();
4866
- n2.includeNativeLabel && f2.add(Pe);
4867
- for (let p2 = 0; p2 < d; ++p2) f2.add(a[p2]);
4868
- y >= 0 && f2.add(a[y]);
4869
- const w2 = c2(f2);
4870
- if (w2 !== void 0 && new Set(w2.map((p2) => p2.label)).size === t.length) return w2;
4871
- y++, y >= a.length && (d++, y = d);
4865
+ const p2 = /* @__PURE__ */ new Set();
4866
+ n2.includeNativeLabel && p2.add(Te);
4867
+ for (let f2 = 0; f2 < d; ++f2) p2.add(a[f2]);
4868
+ h2 >= 0 && p2.add(a[h2]);
4869
+ const m2 = c2(p2);
4870
+ if (m2 !== void 0 && new Set(m2.map((f2) => f2.label)).size === t.length) return m2;
4871
+ h2++, h2 >= a.length && (d++, h2 = d);
4872
4872
  }
4873
4873
  return c2(/* @__PURE__ */ new Set([...a, ...l2]), true);
4874
4874
  }
4875
- const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", Ve = Z + "Partitioned/", ae = Ve + "JsonPartitioned", z = Ve + "BinaryPartitioned";
4876
- const me = (t) => {
4875
+ const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", Je = Z + "Partitioned/", ae = Je + "JsonPartitioned", z = Je + "BinaryPartitioned";
4876
+ const ye = (t) => {
4877
4877
  if (t.endsWith(".index"))
4878
4878
  return { baseKey: t.substring(0, t.length - 6), type: "index" };
4879
4879
  if (t.endsWith(".values"))
4880
4880
  return { baseKey: t.substring(0, t.length - 7), type: "values" };
4881
4881
  throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
4882
4882
  };
4883
- function Ct(t) {
4883
+ function St(t) {
4884
4884
  if (!t) return;
4885
4885
  const e = t.resourceType.name, n2 = t.getDataAsJson(), r = [];
4886
4886
  let i = 0;
@@ -4905,7 +4905,7 @@
4905
4905
  case q:
4906
4906
  case B:
4907
4907
  for (let s2 of t.listInputFields()) {
4908
- e === B && (s2 = me(s2).baseKey);
4908
+ e === B && (s2 = ye(s2).baseKey);
4909
4909
  const o = [...JSON.parse(s2)];
4910
4910
  r.push(o);
4911
4911
  }
@@ -4917,7 +4917,7 @@
4917
4917
  const o = [...JSON.parse(s2)], a = t.resolve({ field: s2, assertFieldType: "Input" });
4918
4918
  if (a !== void 0)
4919
4919
  for (let l2 of a.listInputFields()) {
4920
- e === z && (l2 = me(l2).baseKey);
4920
+ e === z && (l2 = ye(l2).baseKey);
4921
4921
  const u2 = [...o, ...JSON.parse(l2)];
4922
4922
  r.push(u2);
4923
4923
  }
@@ -4926,7 +4926,7 @@
4926
4926
  }
4927
4927
  return { data: r, keyLength: i };
4928
4928
  }
4929
- function Pt(t) {
4929
+ function _t(t) {
4930
4930
  if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
4931
4931
  throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
4932
4932
  const { parts: e, partitionKeyLength: n2 } = t, r = [];
@@ -4945,11 +4945,11 @@
4945
4945
  }
4946
4946
  return r.map((i) => Array.from(i.values()));
4947
4947
  }
4948
- function St(t) {
4948
+ function It(t) {
4949
4949
  if (t === void 0) return;
4950
4950
  if (K(t))
4951
- return Pt(t);
4952
- const e = Ct(t);
4951
+ return _t(t);
4952
+ const e = St(t);
4953
4953
  if (!e) return;
4954
4954
  const { data: n2, keyLength: r } = e, i = [];
4955
4955
  for (let s2 = 0; s2 < r; ++s2)
@@ -4962,7 +4962,7 @@
4962
4962
  }
4963
4963
  return i.map((s2) => Array.from(s2.values()));
4964
4964
  }
4965
- function ye(t, e = []) {
4965
+ function ve(t, e = []) {
4966
4966
  if (t === void 0 || !t.getIsReadyOrError()) return;
4967
4967
  const n2 = t.resourceType.name, r = t.getDataAsJson();
4968
4968
  if (e.length > 0 && (n2 === ae || n2 === z))
@@ -4992,7 +4992,7 @@
4992
4992
  throw new Error(`Missing partitionKeyLength in metadata for ${n2}`);
4993
4993
  const i = [], s2 = /* @__PURE__ */ new Map();
4994
4994
  for (const o of t.listInputFields()) {
4995
- const a = me(o), l2 = t.resolve({ field: o, assertFieldType: "Input" });
4995
+ const a = ye(o), l2 = t.resolve({ field: o, assertFieldType: "Input" });
4996
4996
  if (l2 === void 0) return;
4997
4997
  let u2 = s2.get(a.baseKey);
4998
4998
  u2 || (u2 = {}, s2.set(a.baseKey, u2)), a.type === "index" ? u2.index = l2 : u2.values = l2;
@@ -5023,7 +5023,7 @@
5023
5023
  if (a === void 0) return;
5024
5024
  if (a.resourceType.name !== q)
5025
5025
  throw new Error(`Expected ${q} inside ${n2}, but got ${a.resourceType.name}`);
5026
- const l2 = ye(a, JSON.parse(o));
5026
+ const l2 = ve(a, JSON.parse(o));
5027
5027
  if (l2 === void 0) return;
5028
5028
  if (l2.type !== "JsonPartitioned")
5029
5029
  throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
@@ -5044,7 +5044,7 @@
5044
5044
  if (a === void 0) return;
5045
5045
  if (a.resourceType.name !== B)
5046
5046
  throw new Error(`Expected ${B} inside ${n2}, but got ${a.resourceType.name}`);
5047
- const l2 = ye(a, JSON.parse(o));
5047
+ const l2 = ve(a, JSON.parse(o));
5048
5048
  if (l2 === void 0) return;
5049
5049
  if (l2.type !== "BinaryPartitioned")
5050
5050
  throw new Error(`Unexpected inner result type for ${n2}: ${l2.type}`);
@@ -5060,15 +5060,15 @@
5060
5060
  throw new Error(`Unknown resource type: ${n2}`);
5061
5061
  }
5062
5062
  }
5063
- function _t(t) {
5063
+ function Tt(t) {
5064
5064
  if (t !== void 0) {
5065
5065
  if (K(t)) return t;
5066
5066
  if (En(t)) return Cn(t);
5067
- if (t instanceof E) return ye(t);
5067
+ if (t instanceof E) return ve(t);
5068
5068
  throw new Error(`Unexpected input type: ${typeof t}`);
5069
5069
  }
5070
5070
  }
5071
- function It(t, e) {
5071
+ function Lt(t, e) {
5072
5072
  const n2 = [...e].sort((s2, o) => o[0] - s2[0]);
5073
5073
  if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
5074
5074
  const { partitionKeyLength: s2 } = t;
@@ -5128,13 +5128,13 @@
5128
5128
  }
5129
5129
  }
5130
5130
  }
5131
- function Lt(t) {
5131
+ function Et(t) {
5132
5132
  if (!Array.isArray(t)) return false;
5133
5133
  if (t.length === 0) return true;
5134
5134
  const e = t[0];
5135
5135
  return typeof e == "object" && e !== null && "key" in e && "val" in e;
5136
5136
  }
5137
- class Tt {
5137
+ class Dt {
5138
5138
  constructor(e) {
5139
5139
  this.columns = e;
5140
5140
  }
@@ -5143,7 +5143,7 @@
5143
5143
  return this.columns.filter((r) => n2(r.spec));
5144
5144
  }
5145
5145
  }
5146
- function Et(t) {
5146
+ function kt(t) {
5147
5147
  if (t)
5148
5148
  return t.map((e) => ({
5149
5149
  type: `split:${Rn(e.axisId)}`,
@@ -5152,21 +5152,21 @@
5152
5152
  // High importance for split filters in labels
5153
5153
  }));
5154
5154
  }
5155
- function kt(t) {
5155
+ function Ot(t) {
5156
5156
  if (t)
5157
5157
  return t.map((e) => [e.axisIdx, e.value]);
5158
5158
  }
5159
- function Ot(t, e) {
5159
+ function Rt(t, e) {
5160
5160
  if (!e || e.length === 0) return t;
5161
5161
  const n2 = [...e].sort((r, i) => r[0] - i[0]);
5162
- return ke({ id: t, axisFilters: n2 });
5162
+ return Re({ id: t, axisFilters: n2 });
5163
5163
  }
5164
- function Se(t) {
5164
+ function Le(t) {
5165
5165
  if (!t || typeof t != "object") return false;
5166
5166
  const e = t, n2 = e.domain && typeof e.domain == "object" && Object.values(e.domain).some((i) => typeof i == "object" && i !== null && "anchor" in i), r = e.axes && Array.isArray(e.axes) && e.axes.some((i) => typeof i == "object" && i !== null && "anchor" in i);
5167
5167
  return !!e.domainAnchor || n2 || r;
5168
5168
  }
5169
- function Dt(t) {
5169
+ function Ft(t) {
5170
5170
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
5171
5171
  return [];
5172
5172
  const e = t.axes.map((n2, r) => typeof n2 == "object" && "split" in n2 && n2.split === true ? r : -1).filter((n2) => n2 !== -1);
@@ -5176,9 +5176,9 @@
5176
5176
  }
5177
5177
  class le {
5178
5178
  constructor() {
5179
- O(this, "defaultProviderStore", []);
5180
- O(this, "providers", [new Tt(this.defaultProviderStore)]);
5181
- O(this, "axisLabelProviders", []);
5179
+ k(this, "defaultProviderStore", []);
5180
+ k(this, "providers", [new Dt(this.defaultProviderStore)]);
5181
+ k(this, "axisLabelProviders", []);
5182
5182
  }
5183
5183
  addColumnProvider(e) {
5184
5184
  return this.providers.push(e), this;
@@ -5206,129 +5206,129 @@
5206
5206
  };
5207
5207
  let u2 = () => false;
5208
5208
  if (a) {
5209
- const p2 = (Array.isArray(a) ? a : [a]).map((g) => {
5210
- if (Se(g)) {
5209
+ const f2 = (Array.isArray(a) ? a : [a]).map((v) => {
5210
+ if (Le(v)) {
5211
5211
  if (!r)
5212
5212
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
5213
- return Gn(Mn(r.anchors, g, n2));
5213
+ return Gn(Mn(r.anchors, v, n2));
5214
5214
  } else
5215
- return Gn(g);
5215
+ return Gn(v);
5216
5216
  });
5217
- u2 = (g) => p2.some((b) => b(g));
5217
+ u2 = (v) => f2.some((b) => b(v));
5218
5218
  }
5219
- const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], y = /* @__PURE__ */ new Set();
5220
- for (const p2 of c2) {
5221
- const g = Se(p2);
5219
+ const c2 = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], h2 = /* @__PURE__ */ new Set();
5220
+ for (const f$1 of c2) {
5221
+ const v = Le(f$1);
5222
5222
  let b;
5223
- if (g) {
5223
+ if (v) {
5224
5224
  if (!r)
5225
5225
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
5226
- b = Mn(r.anchors, p2, n2);
5226
+ b = Mn(r.anchors, f$1, n2);
5227
5227
  } else
5228
- b = p2;
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 R = Qn(P2.spec);
5237
- y.has(R) || (h2.add(P2.id), y.add(R), I.push(P2));
5228
+ b = f$1;
5229
+ const g = /* @__PURE__ */ new Set(), x = [];
5230
+ for (const w2 of this.providers) {
5231
+ const T = w2.selectColumns(b);
5232
+ for (const S of T) {
5233
+ if (u2(S.spec)) continue;
5234
+ if (g.has(S.id))
5235
+ throw new Error(`Duplicate column id ${S.id} in provider ${w2.constructor.name}`);
5236
+ const F = Qn(S.spec);
5237
+ h2.has(F) || (g.add(S.id), h2.add(F), x.push(S));
5238
5238
  }
5239
5239
  }
5240
- if (I.length === 0) continue;
5241
- const x = Dt(p2), v = x.length > 0;
5242
- for (const A of I) {
5243
- if (!f(A.spec)) continue;
5244
- const L = A.spec;
5245
- if (v) {
5246
- if (Lt(A.data))
5247
- throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A.id}`);
5248
- const P2 = _t(A.data);
5249
- if (!P2) {
5240
+ if (x.length === 0) continue;
5241
+ const A = Ft(f$1), C = A.length > 0;
5242
+ for (const w2 of x) {
5243
+ if (!f(w2.spec)) continue;
5244
+ const T = w2.spec;
5245
+ if (C) {
5246
+ if (Et(w2.data))
5247
+ throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${w2.id}`);
5248
+ const S = Tt(w2.data);
5249
+ if (!S) {
5250
5250
  if (s2) continue;
5251
5251
  return;
5252
5252
  }
5253
- if (!Sn(P2))
5254
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P2.type} for column ${A.id}`);
5255
- const R = St(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]))), j2 = [], $ = (S, G) => {
5259
- if (G >= x.length) {
5260
- if (j2.push([...S]), j2.length > 1e4)
5253
+ if (!Sn(S))
5254
+ throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${w2.id}`);
5255
+ const F = It(S), D = A[A.length - 1];
5256
+ if (D >= S.partitionKeyLength)
5257
+ throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${D}) in column ${T.name}`);
5258
+ const W = A.map((_) => this.findLabels(p$1(T.axesSpec[_]))), j2 = [], $ = (_, G) => {
5259
+ if (G >= A.length) {
5260
+ if (j2.push([..._]), j2.length > 1e4)
5261
5261
  throw new Error("Too many key combinations, aborting.");
5262
5262
  return;
5263
5263
  }
5264
- const V = x[G];
5265
- if (V >= R.length)
5266
- throw new Error(`Axis index ${V} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${A.id}`);
5267
- const N2 = R[V];
5268
- if (!N2 || N2.length === 0) {
5264
+ const N2 = A[G];
5265
+ if (N2 >= F.length)
5266
+ throw new Error(`Axis index ${N2} out of bounds for unique keys array (length ${F.length}) during split key generation for column ${w2.id}`);
5267
+ const J2 = F[N2];
5268
+ if (!J2 || J2.length === 0) {
5269
5269
  j2.length = 0;
5270
5270
  return;
5271
5271
  }
5272
- for (const ee of N2)
5273
- S.push(ee), $(S, G + 1), S.pop();
5272
+ for (const ee of J2)
5273
+ _.push(ee), $(_, G + 1), _.pop();
5274
5274
  };
5275
5275
  if ($([], 0), j2.length === 0)
5276
5276
  continue;
5277
- const F = [...L.axesSpec], Be = x.map((S) => S);
5278
- for (let S = x.length - 1; S >= 0; S--)
5279
- F.splice(x[S], 1);
5280
- const We = { ...L, axesSpec: F };
5281
- for (const S of j2) {
5282
- const G = S.map((V, N2) => {
5283
- const ee = Be[N2], Ge = p$1(L.axesSpec[ee]), ue = W[N2], He = (ue == null ? void 0 : ue[V]) ?? String(V);
5284
- return { axisIdx: ee, axisId: Ge, value: V, label: He };
5277
+ const K2 = [...T.axesSpec], Ge = A.map((_) => _);
5278
+ for (let _ = A.length - 1; _ >= 0; _--)
5279
+ K2.splice(A[_], 1);
5280
+ const He = { ...T, axesSpec: K2 };
5281
+ for (const _ of j2) {
5282
+ const G = _.map((N2, J2) => {
5283
+ const ee = Ge[J2], qe = p$1(T.axesSpec[ee]), ce = W[J2], ze = (ce == null ? void 0 : ce[N2]) ?? String(N2);
5284
+ return { axisIdx: ee, axisId: qe, value: N2, label: ze };
5285
5285
  });
5286
5286
  d.push({
5287
5287
  type: "split",
5288
- originalColumn: A,
5289
- spec: L,
5290
- adjustedSpec: We,
5291
- dataEntries: P2,
5288
+ originalColumn: w2,
5289
+ spec: T,
5290
+ adjustedSpec: He,
5291
+ dataEntries: S,
5292
5292
  axisFilters: G
5293
5293
  });
5294
5294
  }
5295
5295
  } else
5296
5296
  d.push({
5297
5297
  type: "direct",
5298
- originalColumn: A,
5299
- spec: L,
5300
- adjustedSpec: L
5298
+ originalColumn: w2,
5299
+ spec: T,
5300
+ adjustedSpec: T
5301
5301
  });
5302
5302
  }
5303
5303
  }
5304
5304
  if (d.length === 0) return [];
5305
- const f$1 = je(
5305
+ const p2 = $e(
5306
5306
  d,
5307
- (p2) => ({
5308
- spec: p2.spec,
5309
- suffixTrace: p2.type === "split" ? Et(p2.axisFilters) : void 0
5307
+ (f2) => ({
5308
+ spec: f2.spec,
5309
+ suffixTrace: f2.type === "split" ? kt(f2.axisFilters) : void 0
5310
5310
  }),
5311
5311
  l2
5312
- ), w2 = [];
5313
- for (const { value: p2, label: g } of f$1) {
5314
- const { originalColumn: b, spec: h2 } = p2, I = p2.type === "split" ? p2.axisFilters : void 0, x = kt(I);
5315
- let v;
5316
- r ? v = r.deriveS(h2, x) : v = Ot(b.id, x);
5317
- let A = { ...p2.adjustedSpec };
5318
- o && (A = {
5319
- ...A,
5312
+ ), m2 = [];
5313
+ for (const { value: f2, label: v } of p2) {
5314
+ const { originalColumn: b, spec: g } = f2, x = f2.type === "split" ? f2.axisFilters : void 0, A = Ot(x);
5315
+ let C;
5316
+ r ? C = r.deriveS(g, A) : C = Rt(b.id, A);
5317
+ let w2 = { ...f2.adjustedSpec };
5318
+ o && (w2 = {
5319
+ ...w2,
5320
5320
  annotations: {
5321
- ...A.annotations ?? {},
5322
- "pl7.app/label": g
5321
+ ...w2.annotations ?? {},
5322
+ "pl7.app/label": v
5323
5323
  }
5324
- }), w2.push({
5325
- id: v,
5326
- spec: A,
5327
- data: () => p2.type === "split" ? Jn(It(p2.dataEntries, x)) : p2.originalColumn.data,
5328
- label: g
5324
+ }), m2.push({
5325
+ id: C,
5326
+ spec: w2,
5327
+ data: () => f2.type === "split" ? Jn(Lt(f2.dataEntries, A)) : f2.originalColumn.data,
5328
+ label: v
5329
5329
  });
5330
5330
  }
5331
- return w2;
5331
+ return m2;
5332
5332
  }
5333
5333
  getColumns(e, n2) {
5334
5334
  const r = this.getUniversalEntries(e, {
@@ -5353,19 +5353,19 @@
5353
5353
  return i;
5354
5354
  }
5355
5355
  }
5356
- function de(t, e) {
5356
+ function pe(t, e) {
5357
5357
  if (t === void 0) return e === void 0;
5358
5358
  if (e === void 0) return true;
5359
5359
  for (const n2 in e)
5360
5360
  if (t[n2] !== e[n2]) return false;
5361
5361
  return true;
5362
5362
  }
5363
- function _e(t) {
5363
+ function Ee(t) {
5364
5364
  return Wn(t, (e) => e instanceof E ? e.handle : En(e) ? Nn(e, (n2) => n2.handle) : e);
5365
5365
  }
5366
- class Rt {
5366
+ class Kt {
5367
5367
  constructor() {
5368
- O(this, "ctx", m());
5368
+ k(this, "ctx", y());
5369
5369
  }
5370
5370
  /**
5371
5371
  * @deprecated use getOptions()
@@ -5376,7 +5376,7 @@
5376
5376
  getOptions(e, n2) {
5377
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
- 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" ? je(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
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" ? $e(i, (a) => a.obj, s2 ?? {}).map(({ value: { ref: a }, label: l2 }) => ({
5380
5380
  ref: te$1(a, o),
5381
5381
  label: l2
5382
5382
  })) : i.map(({ ref: a, obj: l2 }) => ({
@@ -5562,10 +5562,10 @@
5562
5562
  if (!f(r.obj.spec))
5563
5563
  continue;
5564
5564
  const i = r.obj.spec;
5565
- if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && de(e.domain, i.domain)) {
5565
+ if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && pe(e.domain, i.domain)) {
5566
5566
  for (let s2 = 0; s2 < e.axesSpec.length; ++s2) {
5567
5567
  const o = e.axesSpec[s2], a = i.axesSpec[s2];
5568
- if (o.name !== a.name || o.type !== a.type || !de(o.domain, a.domain))
5568
+ if (o.name !== a.name || o.type !== a.type || !pe(o.domain, a.domain))
5569
5569
  continue e;
5570
5570
  }
5571
5571
  n2.push(r.obj);
@@ -5582,7 +5582,7 @@
5582
5582
  for (const r of n2.entries) {
5583
5583
  if (!rn(r.obj)) continue;
5584
5584
  const i = r.obj.spec;
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)) {
5585
+ if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && pe(e.domain, i.axesSpec[0].domain)) {
5586
5586
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
5587
5587
  throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
5588
5588
  return Object.fromEntries(
@@ -5607,7 +5607,7 @@
5607
5607
  let a = null;
5608
5608
  const l2 = this;
5609
5609
  return {
5610
- id: ke(i),
5610
+ id: Re(i),
5611
5611
  spec: o,
5612
5612
  get data() {
5613
5613
  var u2;
@@ -5634,12 +5634,12 @@
5634
5634
  }
5635
5635
  class te {
5636
5636
  constructor() {
5637
- O(this, "ctx");
5638
- O(this, "args");
5639
- O(this, "uiState");
5640
- O(this, "_activeArgsCache");
5641
- O(this, "resultPool", new Rt());
5642
- this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5637
+ k(this, "ctx");
5638
+ k(this, "args");
5639
+ k(this, "uiState");
5640
+ k(this, "_activeArgsCache");
5641
+ k(this, "resultPool", new Kt());
5642
+ this.ctx = y(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
5643
5643
  }
5644
5644
  /**
5645
5645
  * Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
@@ -5655,16 +5655,16 @@
5655
5655
  // return this.ctx.featureFlags;
5656
5656
  // }
5657
5657
  getNamedAccessor(e) {
5658
- return he(
5658
+ return ge(
5659
5659
  this.ctx.getAccessorHandleByName(e),
5660
5660
  (n2) => new E(n2, [e])
5661
5661
  );
5662
5662
  }
5663
5663
  get prerun() {
5664
- return this.getNamedAccessor(Re);
5664
+ return this.getNamedAccessor(Ve);
5665
5665
  }
5666
5666
  get outputs() {
5667
- return this.getNamedAccessor(Fe);
5667
+ return this.getNamedAccessor(je);
5668
5668
  }
5669
5669
  /**
5670
5670
  * Find labels data for a given axis id. It will search for a label column and return its data as a map.
@@ -5682,7 +5682,7 @@
5682
5682
  // TODO remove all non-PColumn fields
5683
5683
  createPFrame(e) {
5684
5684
  return this.verifyInlineAndExplicitColumnsSupport(e), this.ctx.createPFrame(
5685
- e.map((n2) => _e(n2))
5685
+ e.map((n2) => Ee(n2))
5686
5686
  );
5687
5687
  }
5688
5688
  createPTable(e) {
@@ -5695,7 +5695,7 @@
5695
5695
  filters: e.filters ?? [],
5696
5696
  sorting: e.sorting ?? []
5697
5697
  } : n2 = e, this.verifyInlineAndExplicitColumnsSupport(Xn(n2.src)), this.ctx.createPTable(
5698
- Un(n2, (r) => _e(r))
5698
+ Un(n2, (r) => Ee(r))
5699
5699
  );
5700
5700
  }
5701
5701
  /** @deprecated scheduled for removal from SDK */
@@ -5715,20 +5715,20 @@
5715
5715
  this.ctx.logError(e);
5716
5716
  }
5717
5717
  }
5718
- const Y = "1.34.8";
5719
- function Ft(t) {
5718
+ const Y = "1.37.0";
5719
+ function Vt(t) {
5720
5720
  return t.__renderLambda === true;
5721
5721
  }
5722
- function pe(t) {
5722
+ function fe(t) {
5723
5723
  if (t !== void 0)
5724
- return Ft(t) ? t.handle : t;
5724
+ return Vt(t) ? t.handle : t;
5725
5725
  }
5726
- class T {
5726
+ class L {
5727
5727
  constructor(e, n2, r, i, s2, o, a, l2) {
5728
5728
  this._renderingMode = e, this._initialArgs = n2, this._initialUiState = r, this._outputs = i, this._inputsValid = s2, this._sections = o, this._title = a, this._enrichmentTargets = l2;
5729
5729
  }
5730
5730
  static create(e = "Heavy") {
5731
- return new T(
5731
+ return new L(
5732
5732
  e,
5733
5733
  void 0,
5734
5734
  {},
@@ -5742,7 +5742,7 @@
5742
5742
  output(e, n2, r = {}) {
5743
5743
  if (typeof n2 == "function") {
5744
5744
  const i = `output#${e}`;
5745
- return H(i, () => n2(new te())), new T(
5745
+ return H(i, () => n2(new te())), new L(
5746
5746
  this._renderingMode,
5747
5747
  this._initialArgs,
5748
5748
  this._initialUiState,
@@ -5760,7 +5760,7 @@
5760
5760
  this._enrichmentTargets
5761
5761
  );
5762
5762
  } else
5763
- return new T(
5763
+ return new L(
5764
5764
  this._renderingMode,
5765
5765
  this._initialArgs,
5766
5766
  this._initialUiState,
@@ -5779,7 +5779,7 @@
5779
5779
  return this.output(e, n2, { retentive: true });
5780
5780
  }
5781
5781
  argsValid(e) {
5782
- return typeof e == "function" ? (H("inputsValid", () => e(new te())), new T(
5782
+ return typeof e == "function" ? (H("inputsValid", () => e(new te())), new L(
5783
5783
  this._renderingMode,
5784
5784
  this._initialArgs,
5785
5785
  this._initialUiState,
@@ -5791,7 +5791,7 @@
5791
5791
  this._sections,
5792
5792
  this._title,
5793
5793
  this._enrichmentTargets
5794
- )) : new T(
5794
+ )) : new L(
5795
5795
  this._renderingMode,
5796
5796
  this._initialArgs,
5797
5797
  this._initialUiState,
@@ -5803,7 +5803,7 @@
5803
5803
  );
5804
5804
  }
5805
5805
  sections(e) {
5806
- return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new T(
5806
+ return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new L(
5807
5807
  this._renderingMode,
5808
5808
  this._initialArgs,
5809
5809
  this._initialUiState,
@@ -5812,7 +5812,7 @@
5812
5812
  { __renderLambda: true, handle: "sections" },
5813
5813
  this._title,
5814
5814
  this._enrichmentTargets
5815
- )) : new T(
5815
+ )) : new L(
5816
5816
  this._renderingMode,
5817
5817
  this._initialArgs,
5818
5818
  this._initialUiState,
@@ -5825,7 +5825,7 @@
5825
5825
  }
5826
5826
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
5827
5827
  title(e) {
5828
- return H("title", () => e(new te())), new T(
5828
+ return H("title", () => e(new te())), new L(
5829
5829
  this._renderingMode,
5830
5830
  this._initialArgs,
5831
5831
  this._initialUiState,
@@ -5841,7 +5841,7 @@
5841
5841
  * @deprecated use {@link withArgs}
5842
5842
  * */
5843
5843
  initialArgs(e) {
5844
- return new T(
5844
+ return new L(
5845
5845
  this._renderingMode,
5846
5846
  e,
5847
5847
  this._initialUiState,
@@ -5854,7 +5854,7 @@
5854
5854
  }
5855
5855
  /** Sets initial args for the block, this value must be specified. */
5856
5856
  withArgs(e) {
5857
- return new T(
5857
+ return new L(
5858
5858
  this._renderingMode,
5859
5859
  e,
5860
5860
  this._initialUiState,
@@ -5867,7 +5867,7 @@
5867
5867
  }
5868
5868
  /** Defines type and sets initial value for block UiState. */
5869
5869
  withUiState(e) {
5870
- return new T(
5870
+ return new L(
5871
5871
  this._renderingMode,
5872
5872
  this._initialArgs,
5873
5873
  e,
@@ -5883,7 +5883,7 @@
5883
5883
  * Influences dependency graph construction.
5884
5884
  */
5885
5885
  enriches(e) {
5886
- return H("enrichmentTargets", e), new T(
5886
+ return H("enrichmentTargets", e), new L(
5887
5887
  this._renderingMode,
5888
5888
  this._initialArgs,
5889
5889
  this._initialUiState,
@@ -5915,16 +5915,16 @@
5915
5915
  sdkVersion: Y,
5916
5916
  renderingMode: this._renderingMode,
5917
5917
  initialArgs: this._initialArgs,
5918
- inputsValid: pe(this._inputsValid),
5919
- sections: pe(this._sections),
5918
+ inputsValid: fe(this._inputsValid),
5919
+ sections: fe(this._sections),
5920
5920
  outputs: Object.fromEntries(
5921
- Object.entries(this._outputs).map(([n2, r]) => [n2, pe(r)])
5921
+ Object.entries(this._outputs).map(([n2, r]) => [n2, fe(r)])
5922
5922
  )
5923
5923
  };
5924
- return pt() ? De({ sdkVersion: Y }) : { config: e };
5924
+ return ht() ? Ke({ sdkVersion: Y }) : { config: e };
5925
5925
  }
5926
5926
  }
5927
- const platforma = T.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
5927
+ const platforma = L.create("Heavy").withArgs({ titleArg: "The title" }).output("allSpecs", (ctx) => ctx.resultPool.getSpecs()).sections((ctx) => {
5928
5928
  return [{ type: "link", href: "/", label: "Main" }];
5929
5929
  }).title((ctx) => "Pool explorer").done();
5930
5930
  exports2.platforma = platforma;