@platforma-sdk/model 1.33.14 → 1.33.17

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/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  var qe = Object.defineProperty;
2
2
  var ze = (t, e, n) => e in t ? qe(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var k = (t, e, n) => ze(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { isPColumn as Te, mapPObjectData as be, isDataInfoEntries as Le, isDataInfo as we, dataInfoToEntries as Ye, selectorsToPredicate as X, resolveAnchors as Ae, deriveNativeId as Xe, isPColumnSpec as ne, isPartitionedDataInfoEntries as Qe, getAxisId as D, entriesToDataInfo as Ze, canonicalizeAxisId as et, withEnrichments as xe, AnchoredIdDeriver as Ce, isPlRef as tt, mapValueInVOE as nt, ensurePColumn as rt, extractAllColumns as it, mapPTableDef as st, mapDataInfo as ot, canonicalizeJson as K, matchAxisId as U, getColumnIdAndSpec as Ee, parseJson as fe, isPTableAbsent as at, PTableNA as lt } from "@milaboratories/pl-model-common";
3
+ var O = (t, e, n) => ze(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { isPColumn as Le, mapPObjectData as be, isDataInfoEntries as Te, isDataInfo as we, dataInfoToEntries as Ye, selectorsToPredicate as X, resolveAnchors as Ae, deriveNativeId as Xe, isPColumnSpec as ne, isPartitionedDataInfoEntries as Qe, getAxisId as D, entriesToDataInfo as Ze, canonicalizeAxisId as et, withEnrichments as xe, AnchoredIdDeriver as Ce, isPlRef as tt, mapValueInVOE as nt, ensurePColumn as rt, extractAllColumns as it, mapPTableDef as st, mapDataInfo as ot, canonicalizeJson as R, matchAxisId as U, getColumnIdAndSpec as Ee, parseJson as fe, isPTableAbsent as at, PTableNA as lt } from "@milaboratories/pl-model-common";
5
5
  export * from "@milaboratories/pl-model-common";
6
- import Oe from "canonicalize";
6
+ import ke from "canonicalize";
7
7
  import { z as M } from "zod";
8
8
  export * from "@milaboratories/pl-error-like";
9
9
  class ut extends Error {
@@ -38,7 +38,7 @@ const en = Q("$args"), tn = Q("$it"), nn = Q("$prod"), rn = Q("$staging"), sn =
38
38
  function re(t) {
39
39
  return { type: "Immediate", value: t };
40
40
  }
41
- function ke(t) {
41
+ function Oe(t) {
42
42
  const e = {};
43
43
  for (const [n, r] of Object.entries(t)) e[n] = C(r);
44
44
  return {
@@ -210,7 +210,7 @@ function In(t) {
210
210
  function dt() {
211
211
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
212
212
  }
213
- function Re(t) {
213
+ function De(t) {
214
214
  if (t && typeof globalThis.getPlatforma == "function")
215
215
  return globalThis.getPlatforma(t);
216
216
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
@@ -219,7 +219,7 @@ function Re(t) {
219
219
  function pt() {
220
220
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
221
221
  }
222
- function g() {
222
+ function m() {
223
223
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
224
224
  throw new Error("Not in config rendering context");
225
225
  }
@@ -231,15 +231,15 @@ function H(t, e) {
231
231
  }
232
232
  const ce = /* @__PURE__ */ new Map();
233
233
  function ft(t, e) {
234
- t in g().callbackRegistry || (g().callbackRegistry[t] = (n) => {
234
+ t in m().callbackRegistry || (m().callbackRegistry[t] = (n) => {
235
235
  for (const r of ce.get(t))
236
236
  r(n);
237
237
  }, ce.set(t, [])), ce.get(t).push(e);
238
238
  }
239
239
  class _ {
240
240
  constructor(e, n = (r) => r) {
241
- k(this, "isResolved", !1);
242
- k(this, "resolvedValue");
241
+ O(this, "isResolved", !1);
242
+ O(this, "resolvedValue");
243
243
  this.handle = e, this.postProcess = n, ft(e, (r) => {
244
244
  this.resolvedValue = n(r), this.isResolved = !0;
245
245
  });
@@ -300,46 +300,46 @@ class E {
300
300
  ...n.map((i) => typeof i == "string" ? i : i.field)
301
301
  ];
302
302
  return he(
303
- g().resolveWithCommon(this.handle, e, ...n),
303
+ m().resolveWithCommon(this.handle, e, ...n),
304
304
  (i) => new E(i, r)
305
305
  );
306
306
  }
307
307
  get resourceType() {
308
- return g().getResourceType(this.handle);
308
+ return m().getResourceType(this.handle);
309
309
  }
310
310
  getInputsLocked() {
311
- return g().getInputsLocked(this.handle);
311
+ return m().getInputsLocked(this.handle);
312
312
  }
313
313
  getOutputsLocked() {
314
- return g().getOutputsLocked(this.handle);
314
+ return m().getOutputsLocked(this.handle);
315
315
  }
316
316
  getIsReadyOrError() {
317
- return g().getIsReadyOrError(this.handle);
317
+ return m().getIsReadyOrError(this.handle);
318
318
  }
319
319
  getIsFinal() {
320
- return g().getIsFinal(this.handle);
320
+ return m().getIsFinal(this.handle);
321
321
  }
322
322
  getError() {
323
323
  const e = [...this.resolvePath, "error"];
324
324
  return he(
325
- g().getError(this.handle),
325
+ m().getError(this.handle),
326
326
  (n) => new E(n, e)
327
327
  );
328
328
  }
329
329
  listInputFields() {
330
- return g().listInputFields(this.handle);
330
+ return m().listInputFields(this.handle);
331
331
  }
332
332
  listOutputFields() {
333
- return g().listOutputFields(this.handle);
333
+ return m().listOutputFields(this.handle);
334
334
  }
335
335
  listDynamicFields() {
336
- return g().listDynamicFields(this.handle);
336
+ return m().listDynamicFields(this.handle);
337
337
  }
338
338
  getKeyValueBase64(e) {
339
- return g().getKeyValueBase64(this.handle, e);
339
+ return m().getKeyValueBase64(this.handle, e);
340
340
  }
341
341
  getKeyValueAsString(e) {
342
- return g().getKeyValueAsString(this.handle, e);
342
+ return m().getKeyValueAsString(this.handle, e);
343
343
  }
344
344
  getKeyValueAsJson(e) {
345
345
  const n = this.getKeyValueAsString(e);
@@ -347,10 +347,10 @@ class E {
347
347
  return JSON.parse(n);
348
348
  }
349
349
  getDataBase64() {
350
- return g().getDataBase64(this.handle);
350
+ return m().getDataBase64(this.handle);
351
351
  }
352
352
  getDataAsString() {
353
- return g().getDataAsString(this.handle);
353
+ return m().getDataAsString(this.handle);
354
354
  }
355
355
  getDataAsJson() {
356
356
  const e = this.getDataAsString();
@@ -363,7 +363,7 @@ class E {
363
363
  getPColumns(e = !1, n = "") {
364
364
  const r = this.parsePObjectCollection(e, n);
365
365
  return r === void 0 ? void 0 : Object.entries(r).map(([, s]) => {
366
- if (!Te(s)) throw new Error(`not a PColumn (kind = ${s.spec.kind})`);
366
+ if (!Le(s)) throw new Error(`not a PColumn (kind = ${s.spec.kind})`);
367
367
  return s;
368
368
  });
369
369
  }
@@ -371,7 +371,7 @@ class E {
371
371
  *
372
372
  */
373
373
  parsePObjectCollection(e = !1, n = "") {
374
- const r = g().parsePObjectCollection(
374
+ const r = m().parsePObjectCollection(
375
375
  this.handle,
376
376
  e,
377
377
  n,
@@ -386,14 +386,14 @@ class E {
386
386
  return i;
387
387
  }
388
388
  getFileContentAsBase64(e) {
389
- return new _(g().getBlobContentAsBase64(this.handle, e));
389
+ return new _(m().getBlobContentAsBase64(this.handle, e));
390
390
  }
391
391
  getFileContentAsString(e) {
392
- return new _(g().getBlobContentAsString(this.handle, e));
392
+ return new _(m().getBlobContentAsString(this.handle, e));
393
393
  }
394
394
  getFileContentAsJson(e) {
395
395
  return new _(
396
- g().getBlobContentAsString(this.handle, e)
396
+ m().getBlobContentAsString(this.handle, e)
397
397
  ).mapDefined((n) => JSON.parse(n));
398
398
  }
399
399
  /**
@@ -412,7 +412,7 @@ class E {
412
412
  * @returns downloaded file handle
413
413
  */
414
414
  getFileHandle() {
415
- return new _(g().getDownloadedBlobContentHandle(this.handle));
415
+ return new _(m().getDownloadedBlobContentHandle(this.handle));
416
416
  }
417
417
  /**
418
418
  * @deprecated use getFileHandle
@@ -424,7 +424,7 @@ class E {
424
424
  * @returns downloaded file handle
425
425
  */
426
426
  getRemoteFileHandle() {
427
- return new _(g().getOnDemandBlobContentHandle(this.handle));
427
+ return new _(m().getOnDemandBlobContentHandle(this.handle));
428
428
  }
429
429
  /**
430
430
  * @deprecated use getRemoteFileHandle
@@ -436,22 +436,22 @@ class E {
436
436
  * @returns the url to the extracted folder
437
437
  */
438
438
  extractArchiveAndGetURL(e) {
439
- return new _(g().extractArchiveAndGetURL(this.handle, e));
439
+ return new _(m().extractArchiveAndGetURL(this.handle, e));
440
440
  }
441
441
  getImportProgress() {
442
- return new _(g().getImportProgress(this.handle));
442
+ return new _(m().getImportProgress(this.handle));
443
443
  }
444
444
  getLastLogs(e) {
445
- return new _(g().getLastLogs(this.handle, e));
445
+ return new _(m().getLastLogs(this.handle, e));
446
446
  }
447
447
  getProgressLog(e) {
448
- return new _(g().getProgressLog(this.handle, e));
448
+ return new _(m().getProgressLog(this.handle, e));
449
449
  }
450
450
  getProgressLogWithInfo(e) {
451
- return new _(g().getProgressLogWithInfo(this.handle, e));
451
+ return new _(m().getProgressLogWithInfo(this.handle, e));
452
452
  }
453
453
  getLogHandle() {
454
- return new _(g().getLogHandle(this.handle));
454
+ return new _(m().getLogHandle(this.handle));
455
455
  }
456
456
  allFieldsResolved(e = "Input") {
457
457
  switch (e) {
@@ -480,7 +480,7 @@ class E {
480
480
  return s && (l = l.filter((u) => u[1] !== void 0)), l.map(([u, c]) => o(u, c));
481
481
  }
482
482
  }
483
- const De = "staging", Fe = "main", ht = {
483
+ const Re = "staging", Fe = "main", ht = {
484
484
  explicitColumnsSupport: !0,
485
485
  inlineColumnsSupport: !0,
486
486
  activeArgs: !0
@@ -502,11 +502,11 @@ function gt(t) {
502
502
  const e = /* @__PURE__ */ new Set();
503
503
  return ge(e, /* @__PURE__ */ new Set(), t), e;
504
504
  }
505
- const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
505
+ const Ln = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
506
506
  __proto__: null,
507
507
  GlobalCfgRenderCtxFeatureFlags: ht,
508
508
  MainAccessorName: Fe,
509
- StagingAccessorName: De,
509
+ StagingAccessorName: Re,
510
510
  getAllFutureAwaits: gt,
511
511
  isFutureAwait: Ke
512
512
  }, Symbol.toStringTag, { value: "Module" })), mt = "pl7.app/label", yt = "pl7.app/trace", vt = M.object({
@@ -517,36 +517,36 @@ const Tn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
517
517
  }), bt = M.array(vt), wt = 1e-3, At = "__LABEL__", Pe = "__LABEL__@1";
518
518
  function Ve(t, e, n = {}) {
519
519
  const r = /* @__PURE__ */ new Map(), i = n.forceTraceElements !== void 0 && n.forceTraceElements.length > 0 ? new Set(n.forceTraceElements) : void 0, s = /* @__PURE__ */ new Map(), o = t.map((f) => {
520
- var P, R;
520
+ var P, F;
521
521
  const w = e(f);
522
- let d, h, b;
523
- "spec" in w && typeof w.spec == "object" ? (d = w.spec, h = w.prefixTrace, b = w.suffixTrace) : d = w;
524
- const p = (P = d.annotations) == null ? void 0 : P[mt], I = (R = d.annotations) == null ? void 0 : R[yt], x = (I ? bt.safeParse(JSON.parse(I)).data : void 0) ?? [], y = [
525
- ...h ?? [],
522
+ let p, g, b;
523
+ "spec" in w && typeof w.spec == "object" ? (p = w.spec, g = w.prefixTrace, b = w.suffixTrace) : p = w;
524
+ const h = (P = p.annotations) == null ? void 0 : P[mt], I = (F = p.annotations) == null ? void 0 : F[yt], x = (I ? bt.safeParse(JSON.parse(I)).data : void 0) ?? [], v = [
525
+ ...g ?? [],
526
526
  ...x,
527
527
  ...b ?? []
528
528
  ];
529
- if (p !== void 0) {
530
- const O = { label: p, type: At, importance: -2 };
531
- n.addLabelAsSuffix ? y.push(O) : y.splice(0, 0, O);
529
+ if (h !== void 0) {
530
+ const k = { label: h, type: At, importance: -2 };
531
+ n.addLabelAsSuffix ? v.push(k) : v.splice(0, 0, k);
532
532
  }
533
- const A = [], T = /* @__PURE__ */ new Map();
534
- for (let O = y.length - 1; O >= 0; --O) {
535
- const { type: W } = y[O], V = y[O].importance ?? 0, $ = (T.get(W) ?? 0) + 1;
536
- T.set(W, $);
537
- const F = `${W}@${$}`;
538
- s.set(F, (s.get(F) ?? 0) + 1), r.set(
539
- F,
533
+ const A = [], L = /* @__PURE__ */ new Map();
534
+ for (let k = v.length - 1; k >= 0; --k) {
535
+ const { type: W } = v[k], V = v[k].importance ?? 0, $ = (L.get(W) ?? 0) + 1;
536
+ L.set(W, $);
537
+ const K = `${W}@${$}`;
538
+ s.set(K, (s.get(K) ?? 0) + 1), r.set(
539
+ K,
540
540
  Math.max(
541
- r.get(F) ?? Number.NEGATIVE_INFINITY,
542
- V - (y.length - O) * wt
541
+ r.get(K) ?? Number.NEGATIVE_INFINITY,
542
+ V - (v.length - k) * wt
543
543
  )
544
- ), A.push({ ...y[O], fullType: F, occurrenceIndex: $ });
544
+ ), A.push({ ...v[k], fullType: K, occurrenceIndex: $ });
545
545
  }
546
546
  return A.reverse(), {
547
547
  value: f,
548
- spec: d,
549
- label: p,
548
+ spec: p,
549
+ label: h,
550
550
  fullTrace: A
551
551
  };
552
552
  }), a = [], l = [], u = [...r];
@@ -554,37 +554,37 @@ function Ve(t, e, n = {}) {
554
554
  for (const [f] of u)
555
555
  f.endsWith("@1") || s.get(f) === t.length ? a.push(f) : l.push(f);
556
556
  const c = (f, w = !1) => {
557
- const d = [];
558
- for (let h = 0; h < o.length; h++) {
559
- const b = o[h], p = b.fullTrace.filter((y) => f.has(y.fullType) || i && i.has(y.type));
560
- if (p.length === 0)
557
+ const p = [];
558
+ for (let g = 0; g < o.length; g++) {
559
+ const b = o[g], h = b.fullTrace.filter((v) => f.has(v.fullType) || i && i.has(v.type));
560
+ if (h.length === 0)
561
561
  if (w)
562
- d.push({
562
+ p.push({
563
563
  label: "Unlabeled",
564
564
  value: b.value
565
565
  });
566
566
  else return;
567
- const I = p.map((y) => y.label), x = n.separator ?? " / ";
568
- d.push({
567
+ const I = h.map((v) => v.label), x = n.separator ?? " / ";
568
+ p.push({
569
569
  label: I.join(x),
570
570
  value: b.value
571
571
  });
572
572
  }
573
- return d;
573
+ return p;
574
574
  };
575
575
  if (a.length === 0) {
576
576
  if (l.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
577
577
  return c(new Set(Pe), !0);
578
578
  }
579
- let m = 0, v = -1;
580
- for (; m < a.length; ) {
579
+ let d = 0, y = -1;
580
+ for (; d < a.length; ) {
581
581
  const f = /* @__PURE__ */ new Set();
582
582
  n.includeNativeLabel && f.add(Pe);
583
- for (let d = 0; d < m; ++d) f.add(a[d]);
584
- v >= 0 && f.add(a[v]);
583
+ for (let p = 0; p < d; ++p) f.add(a[p]);
584
+ y >= 0 && f.add(a[y]);
585
585
  const w = c(f);
586
- if (w !== void 0 && new Set(w.map((d) => d.label)).size === t.length) return w;
587
- v++, v >= a.length && (m++, v = m);
586
+ if (w !== void 0 && new Set(w.map((p) => p.label)).size === t.length) return w;
587
+ y++, y >= a.length && (d++, y = d);
588
588
  }
589
589
  return c(/* @__PURE__ */ new Set([...a, ...l]), !0);
590
590
  }
@@ -622,7 +622,7 @@ function $e(t, e, n, r = [], i) {
622
622
  throw new Error(`Unknown resource type: ${t.resourceType.name}`);
623
623
  }
624
624
  }
625
- function Ln(t, e, n = !1) {
625
+ function Tn(t, e, n = !1) {
626
626
  const r = [];
627
627
  return { isComplete: $e(t, e, r, [], n), data: r };
628
628
  }
@@ -700,7 +700,7 @@ function Ct(t) {
700
700
  }
701
701
  function Pt(t) {
702
702
  if (t === void 0) return;
703
- if (Le(t))
703
+ if (Te(t))
704
704
  return Ct(t);
705
705
  const e = xt(t);
706
706
  if (!e) return;
@@ -815,7 +815,7 @@ function ye(t, e = []) {
815
815
  }
816
816
  function St(t) {
817
817
  if (t !== void 0) {
818
- if (Le(t)) return t;
818
+ if (Te(t)) return t;
819
819
  if (we(t)) return Ye(t);
820
820
  if (t instanceof E) return ye(t);
821
821
  throw new Error(`Unexpected input type: ${typeof t}`);
@@ -887,7 +887,7 @@ function It(t) {
887
887
  const e = t[0];
888
888
  return typeof e == "object" && e !== null && "key" in e && "val" in e;
889
889
  }
890
- class Tt {
890
+ class Lt {
891
891
  constructor(e) {
892
892
  this.columns = e;
893
893
  }
@@ -896,7 +896,7 @@ class Tt {
896
896
  return this.columns.filter((r) => n(r.spec));
897
897
  }
898
898
  }
899
- function Lt(t) {
899
+ function Tt(t) {
900
900
  if (t)
901
901
  return t.map((e) => ({
902
902
  type: `split:${et(e.axisId)}`,
@@ -909,17 +909,17 @@ function Et(t) {
909
909
  if (t)
910
910
  return t.map((e) => [e.axisIdx, e.value]);
911
911
  }
912
- function Ot(t, e) {
912
+ function kt(t, e) {
913
913
  if (!e || e.length === 0) return t;
914
914
  const n = [...e].sort((r, i) => r[0] - i[0]);
915
- return Oe({ id: t, axisFilters: n });
915
+ return ke({ id: t, axisFilters: n });
916
916
  }
917
917
  function Se(t) {
918
918
  if (!t || typeof t != "object") return !1;
919
919
  const e = t, n = 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);
920
920
  return !!e.domainAnchor || n || r;
921
921
  }
922
- function kt(t) {
922
+ function Ot(t) {
923
923
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
924
924
  return [];
925
925
  const e = t.axes.map((n, r) => typeof n == "object" && "split" in n && n.split === !0 ? r : -1).filter((n) => n !== -1);
@@ -929,9 +929,9 @@ function kt(t) {
929
929
  }
930
930
  class le {
931
931
  constructor() {
932
- k(this, "defaultProviderStore", []);
933
- k(this, "providers", [new Tt(this.defaultProviderStore)]);
934
- k(this, "axisLabelProviders", []);
932
+ O(this, "defaultProviderStore", []);
933
+ O(this, "providers", [new Lt(this.defaultProviderStore)]);
934
+ O(this, "axisLabelProviders", []);
935
935
  }
936
936
  addColumnProvider(e) {
937
937
  return this.providers.push(e), this;
@@ -959,43 +959,43 @@ class le {
959
959
  };
960
960
  let u = () => !1;
961
961
  if (a) {
962
- const d = (Array.isArray(a) ? a : [a]).map((h) => {
963
- if (Se(h)) {
962
+ const p = (Array.isArray(a) ? a : [a]).map((g) => {
963
+ if (Se(g)) {
964
964
  if (!r)
965
965
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
966
- return X(Ae(r.anchors, h, n));
966
+ return X(Ae(r.anchors, g, n));
967
967
  } else
968
- return X(h);
968
+ return X(g);
969
969
  });
970
- u = (h) => d.some((b) => b(h));
970
+ u = (g) => p.some((b) => b(g));
971
971
  }
972
- const c = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], m = [], v = /* @__PURE__ */ new Set();
973
- for (const d of c) {
974
- const h = Se(d);
972
+ const c = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], d = [], y = /* @__PURE__ */ new Set();
973
+ for (const p of c) {
974
+ const g = Se(p);
975
975
  let b;
976
- if (h) {
976
+ if (g) {
977
977
  if (!r)
978
978
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
979
- b = Ae(r.anchors, d, n);
979
+ b = Ae(r.anchors, p, n);
980
980
  } else
981
- b = d;
982
- const p = /* @__PURE__ */ new Set(), I = [];
981
+ b = p;
982
+ const h = /* @__PURE__ */ new Set(), I = [];
983
983
  for (const A of this.providers) {
984
- const T = A.selectColumns(b);
985
- for (const P of T) {
984
+ const L = A.selectColumns(b);
985
+ for (const P of L) {
986
986
  if (u(P.spec)) continue;
987
- if (p.has(P.id))
987
+ if (h.has(P.id))
988
988
  throw new Error(`Duplicate column id ${P.id} in provider ${A.constructor.name}`);
989
- const R = Xe(P.spec);
990
- v.has(R) || (p.add(P.id), v.add(R), I.push(P));
989
+ const F = Xe(P.spec);
990
+ y.has(F) || (h.add(P.id), y.add(F), I.push(P));
991
991
  }
992
992
  }
993
993
  if (I.length === 0) continue;
994
- const x = kt(d), y = x.length > 0;
994
+ const x = Ot(p), v = x.length > 0;
995
995
  for (const A of I) {
996
996
  if (!ne(A.spec)) continue;
997
- const T = A.spec;
998
- if (y) {
997
+ const L = A.spec;
998
+ if (v) {
999
999
  if (It(A.data))
1000
1000
  throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${A.id}`);
1001
1001
  const P = St(A.data);
@@ -1005,19 +1005,19 @@ class le {
1005
1005
  }
1006
1006
  if (!Qe(P))
1007
1007
  throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${P.type} for column ${A.id}`);
1008
- const R = Pt(P), O = x[x.length - 1];
1009
- if (O >= P.partitionKeyLength)
1010
- throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${O}) in column ${T.name}`);
1011
- const W = x.map((S) => this.findLabels(D(T.axesSpec[S]))), V = [], $ = (S, G) => {
1008
+ const F = Pt(P), k = x[x.length - 1];
1009
+ if (k >= P.partitionKeyLength)
1010
+ throw new Error(`Not enough partition keys (${P.partitionKeyLength}) for requested split axes (max index ${k}) in column ${L.name}`);
1011
+ const W = x.map((S) => this.findLabels(D(L.axesSpec[S]))), V = [], $ = (S, G) => {
1012
1012
  if (G >= x.length) {
1013
1013
  if (V.push([...S]), V.length > 1e4)
1014
1014
  throw new Error("Too many key combinations, aborting.");
1015
1015
  return;
1016
1016
  }
1017
1017
  const j = x[G];
1018
- if (j >= R.length)
1019
- throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${A.id}`);
1020
- const N = R[j];
1018
+ if (j >= F.length)
1019
+ throw new Error(`Axis index ${j} out of bounds for unique keys array (length ${F.length}) during split key generation for column ${A.id}`);
1020
+ const N = F[j];
1021
1021
  if (!N || N.length === 0) {
1022
1022
  V.length = 0;
1023
1023
  return;
@@ -1027,58 +1027,58 @@ class le {
1027
1027
  };
1028
1028
  if ($([], 0), V.length === 0)
1029
1029
  continue;
1030
- const F = [...T.axesSpec], Be = x.map((S) => S);
1030
+ const K = [...L.axesSpec], Be = x.map((S) => S);
1031
1031
  for (let S = x.length - 1; S >= 0; S--)
1032
- F.splice(x[S], 1);
1033
- const We = { ...T, axesSpec: F };
1032
+ K.splice(x[S], 1);
1033
+ const We = { ...L, axesSpec: K };
1034
1034
  for (const S of V) {
1035
1035
  const G = S.map((j, N) => {
1036
- const ee = Be[N], Ge = D(T.axesSpec[ee]), ue = W[N], He = (ue == null ? void 0 : ue[j]) ?? String(j);
1036
+ const ee = Be[N], Ge = D(L.axesSpec[ee]), ue = W[N], He = (ue == null ? void 0 : ue[j]) ?? String(j);
1037
1037
  return { axisIdx: ee, axisId: Ge, value: j, label: He };
1038
1038
  });
1039
- m.push({
1039
+ d.push({
1040
1040
  type: "split",
1041
1041
  originalColumn: A,
1042
- spec: T,
1042
+ spec: L,
1043
1043
  adjustedSpec: We,
1044
1044
  dataEntries: P,
1045
1045
  axisFilters: G
1046
1046
  });
1047
1047
  }
1048
1048
  } else
1049
- m.push({
1049
+ d.push({
1050
1050
  type: "direct",
1051
1051
  originalColumn: A,
1052
- spec: T,
1053
- adjustedSpec: T
1052
+ spec: L,
1053
+ adjustedSpec: L
1054
1054
  });
1055
1055
  }
1056
1056
  }
1057
- if (m.length === 0) return [];
1057
+ if (d.length === 0) return [];
1058
1058
  const f = Ve(
1059
- m,
1060
- (d) => ({
1061
- spec: d.spec,
1062
- suffixTrace: d.type === "split" ? Lt(d.axisFilters) : void 0
1059
+ d,
1060
+ (p) => ({
1061
+ spec: p.spec,
1062
+ suffixTrace: p.type === "split" ? Tt(p.axisFilters) : void 0
1063
1063
  }),
1064
1064
  l
1065
1065
  ), w = [];
1066
- for (const { value: d, label: h } of f) {
1067
- const { originalColumn: b, spec: p } = d, I = d.type === "split" ? d.axisFilters : void 0, x = Et(I);
1068
- let y;
1069
- r ? y = r.deriveS(p, x) : y = Ot(b.id, x);
1070
- let A = { ...d.adjustedSpec };
1066
+ for (const { value: p, label: g } of f) {
1067
+ const { originalColumn: b, spec: h } = p, I = p.type === "split" ? p.axisFilters : void 0, x = Et(I);
1068
+ let v;
1069
+ r ? v = r.deriveS(h, x) : v = kt(b.id, x);
1070
+ let A = { ...p.adjustedSpec };
1071
1071
  o && (A = {
1072
1072
  ...A,
1073
1073
  annotations: {
1074
1074
  ...A.annotations ?? {},
1075
- "pl7.app/label": h
1075
+ "pl7.app/label": g
1076
1076
  }
1077
1077
  }), w.push({
1078
- id: y,
1078
+ id: v,
1079
1079
  spec: A,
1080
- data: () => d.type === "split" ? Ze(_t(d.dataEntries, x)) : d.originalColumn.data,
1081
- label: h
1080
+ data: () => p.type === "split" ? Ze(_t(p.dataEntries, x)) : p.originalColumn.data,
1081
+ label: g
1082
1082
  });
1083
1083
  }
1084
1084
  return w;
@@ -1116,9 +1116,9 @@ function de(t, e) {
1116
1116
  function _e(t) {
1117
1117
  return be(t, (e) => e instanceof E ? e.handle : we(e) ? ot(e, (n) => n.handle) : e);
1118
1118
  }
1119
- class Rt {
1119
+ class Dt {
1120
1120
  constructor() {
1121
- k(this, "ctx", g());
1121
+ O(this, "ctx", m());
1122
1122
  }
1123
1123
  /**
1124
1124
  * @deprecated use getOptions()
@@ -1333,7 +1333,7 @@ class Rt {
1333
1333
  findLabels(e) {
1334
1334
  const n = this.getData();
1335
1335
  for (const r of n.entries) {
1336
- if (!Te(r.obj)) continue;
1336
+ if (!Le(r.obj)) continue;
1337
1337
  const i = r.obj.spec;
1338
1338
  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)) {
1339
1339
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
@@ -1360,7 +1360,7 @@ class Rt {
1360
1360
  let a = null;
1361
1361
  const l = this;
1362
1362
  return {
1363
- id: Oe(i),
1363
+ id: ke(i),
1364
1364
  spec: o,
1365
1365
  get data() {
1366
1366
  var u;
@@ -1387,13 +1387,13 @@ class Rt {
1387
1387
  }
1388
1388
  class te {
1389
1389
  constructor() {
1390
- k(this, "ctx");
1391
- k(this, "args");
1392
- k(this, "uiState");
1390
+ O(this, "ctx");
1391
+ O(this, "args");
1392
+ O(this, "uiState");
1393
1393
  // lazy rendering because this feature is rarely used
1394
- k(this, "_activeArgsCache");
1395
- k(this, "resultPool", new Rt());
1396
- this.ctx = g(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
1394
+ O(this, "_activeArgsCache");
1395
+ O(this, "resultPool", new Dt());
1396
+ this.ctx = m(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
1397
1397
  }
1398
1398
  /**
1399
1399
  * Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
@@ -1415,7 +1415,7 @@ class te {
1415
1415
  );
1416
1416
  }
1417
1417
  get prerun() {
1418
- return this.getNamedAccessor(De);
1418
+ return this.getNamedAccessor(Re);
1419
1419
  }
1420
1420
  get outputs() {
1421
1421
  return this.getNamedAccessor(Fe);
@@ -1469,13 +1469,13 @@ class te {
1469
1469
  this.ctx.logError(e);
1470
1470
  }
1471
1471
  }
1472
- const Y = "1.33.14";
1473
- function Dt(t) {
1472
+ const Y = "1.33.17";
1473
+ function Rt(t) {
1474
1474
  return t.__renderLambda === !0;
1475
1475
  }
1476
1476
  function pe(t) {
1477
1477
  if (t !== void 0)
1478
- return Dt(t) ? t.handle : t;
1478
+ return Rt(t) ? t.handle : t;
1479
1479
  }
1480
1480
  function J(t) {
1481
1481
  if (t !== void 0)
@@ -1549,12 +1549,12 @@ function En(t) {
1549
1549
  );
1550
1550
  }
1551
1551
  }
1552
- class L {
1552
+ class T {
1553
1553
  constructor(e, n, r, i, s, o, a, l) {
1554
1554
  this._renderingMode = e, this._initialArgs = n, this._initialUiState = r, this._outputs = i, this._inputsValid = s, this._sections = o, this._title = a, this._enrichmentTargets = l;
1555
1555
  }
1556
1556
  static create(e = "Heavy") {
1557
- return new L(
1557
+ return new T(
1558
1558
  e,
1559
1559
  void 0,
1560
1560
  {},
@@ -1568,7 +1568,7 @@ class L {
1568
1568
  output(e, n, r = {}) {
1569
1569
  if (typeof n == "function") {
1570
1570
  const i = `output#${e}`;
1571
- return H(i, () => n(new te())), new L(
1571
+ return H(i, () => n(new te())), new T(
1572
1572
  this._renderingMode,
1573
1573
  this._initialArgs,
1574
1574
  this._initialUiState,
@@ -1586,7 +1586,7 @@ class L {
1586
1586
  this._enrichmentTargets
1587
1587
  );
1588
1588
  } else
1589
- return new L(
1589
+ return new T(
1590
1590
  this._renderingMode,
1591
1591
  this._initialArgs,
1592
1592
  this._initialUiState,
@@ -1605,7 +1605,7 @@ class L {
1605
1605
  return this.output(e, n, { retentive: !0 });
1606
1606
  }
1607
1607
  argsValid(e) {
1608
- return typeof e == "function" ? (H("inputsValid", () => e(new te())), new L(
1608
+ return typeof e == "function" ? (H("inputsValid", () => e(new te())), new T(
1609
1609
  this._renderingMode,
1610
1610
  this._initialArgs,
1611
1611
  this._initialUiState,
@@ -1617,7 +1617,7 @@ class L {
1617
1617
  this._sections,
1618
1618
  this._title,
1619
1619
  this._enrichmentTargets
1620
- )) : new L(
1620
+ )) : new T(
1621
1621
  this._renderingMode,
1622
1622
  this._initialArgs,
1623
1623
  this._initialUiState,
@@ -1629,7 +1629,7 @@ class L {
1629
1629
  );
1630
1630
  }
1631
1631
  sections(e) {
1632
- return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new L(
1632
+ return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new T(
1633
1633
  this._renderingMode,
1634
1634
  this._initialArgs,
1635
1635
  this._initialUiState,
@@ -1638,7 +1638,7 @@ class L {
1638
1638
  { __renderLambda: !0, handle: "sections" },
1639
1639
  this._title,
1640
1640
  this._enrichmentTargets
1641
- )) : new L(
1641
+ )) : new T(
1642
1642
  this._renderingMode,
1643
1643
  this._initialArgs,
1644
1644
  this._initialUiState,
@@ -1651,7 +1651,7 @@ class L {
1651
1651
  }
1652
1652
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
1653
1653
  title(e) {
1654
- return H("title", () => e(new te())), new L(
1654
+ return H("title", () => e(new te())), new T(
1655
1655
  this._renderingMode,
1656
1656
  this._initialArgs,
1657
1657
  this._initialUiState,
@@ -1667,7 +1667,7 @@ class L {
1667
1667
  * @deprecated use {@link withArgs}
1668
1668
  * */
1669
1669
  initialArgs(e) {
1670
- return new L(
1670
+ return new T(
1671
1671
  this._renderingMode,
1672
1672
  e,
1673
1673
  this._initialUiState,
@@ -1680,7 +1680,7 @@ class L {
1680
1680
  }
1681
1681
  /** Sets initial args for the block, this value must be specified. */
1682
1682
  withArgs(e) {
1683
- return new L(
1683
+ return new T(
1684
1684
  this._renderingMode,
1685
1685
  e,
1686
1686
  this._initialUiState,
@@ -1693,7 +1693,7 @@ class L {
1693
1693
  }
1694
1694
  /** Defines type and sets initial value for block UiState. */
1695
1695
  withUiState(e) {
1696
- return new L(
1696
+ return new T(
1697
1697
  this._renderingMode,
1698
1698
  this._initialArgs,
1699
1699
  e,
@@ -1709,7 +1709,7 @@ class L {
1709
1709
  * Influences dependency graph construction.
1710
1710
  */
1711
1711
  enriches(e) {
1712
- return H("enrichmentTargets", e), new L(
1712
+ return H("enrichmentTargets", e), new T(
1713
1713
  this._renderingMode,
1714
1714
  this._initialArgs,
1715
1715
  this._initialUiState,
@@ -1747,16 +1747,16 @@ class L {
1747
1747
  Object.entries(this._outputs).map(([n, r]) => [n, pe(r)])
1748
1748
  )
1749
1749
  };
1750
- return dt() ? Re({ sdkVersion: Y }) : { config: e };
1750
+ return dt() ? De({ sdkVersion: Y }) : { config: e };
1751
1751
  }
1752
1752
  }
1753
- function On(t) {
1753
+ function kn(t) {
1754
1754
  const e = t.type;
1755
1755
  switch (e) {
1756
1756
  case "axis":
1757
- return K(t);
1757
+ return R(t);
1758
1758
  case "column":
1759
- return K(t);
1759
+ return R(t);
1760
1760
  default:
1761
1761
  throw Error(`unsupported column type: ${e}`);
1762
1762
  }
@@ -1793,14 +1793,14 @@ function Je(t, e) {
1793
1793
  return u;
1794
1794
  }, o = [];
1795
1795
  for (const a of e) {
1796
- const l = a.spec.axesSpec[0], u = D(l), c = i.findIndex((m) => U(m, u));
1796
+ const l = a.spec.axesSpec[0], u = D(l), c = i.findIndex((d) => U(d, u));
1797
1797
  if (c !== -1) {
1798
- const m = i[c], v = Object.keys(m.domain ?? {}).length, f = Object.keys(l.domain ?? {}).length;
1799
- v > f ? o.push({
1800
- id: s(a.id, m.domain),
1798
+ const d = i[c], y = Object.keys(d.domain ?? {}).length, f = Object.keys(l.domain ?? {}).length;
1799
+ y > f ? o.push({
1800
+ id: s(a.id, d.domain),
1801
1801
  spec: {
1802
1802
  ...a.spec,
1803
- axesSpec: [{ ...m, annotations: l.annotations }]
1803
+ axesSpec: [{ ...d, annotations: l.annotations }]
1804
1804
  },
1805
1805
  data: a.data
1806
1806
  }) : o.push(a), i.splice(c, 1);
@@ -1849,7 +1849,7 @@ function Ue(t, e, n, r, i, s) {
1849
1849
  sorting: i
1850
1850
  };
1851
1851
  }
1852
- function kn(t, e, n, r) {
1852
+ function On(t, e, n, r) {
1853
1853
  var u, c;
1854
1854
  Array.isArray(r) && (r = { filters: r });
1855
1855
  const i = (r == null ? void 0 : r.coreJoinType) ?? "full", s = [...(r == null ? void 0 : r.filters) ?? [], ...((u = n == null ? void 0 : n.pTableParams) == null ? void 0 : u.filters) ?? []], o = ((c = n == null ? void 0 : n.pTableParams) == null ? void 0 : c.sorting) ?? [], a = Ne(t.resultPool);
@@ -1868,41 +1868,41 @@ function Kt(t) {
1868
1868
  var e;
1869
1869
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
1870
1870
  }
1871
- function Rn(t, e, n, r, i) {
1872
- var h, b;
1873
- const s = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((h = r == null ? void 0 : r.pTableParams) == null ? void 0 : h.filters) ?? []], a = ((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.sorting) ?? [], l = e.filter((p) => !Ft(p.spec)), u = l.find((p) => n(p.spec));
1871
+ function Dn(t, e, n, r, i) {
1872
+ var g, b;
1873
+ const s = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((g = r == null ? void 0 : r.pTableParams) == null ? void 0 : g.filters) ?? []], a = ((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.sorting) ?? [], l = e.filter((h) => !Ft(h.spec)), u = l.find((h) => n(h.spec));
1874
1874
  if (!u) return;
1875
1875
  const c = Ne(t.resultPool);
1876
1876
  if (!c) return;
1877
- const m = new Set((() => {
1877
+ const d = new Set((() => {
1878
1878
  var I, x;
1879
1879
  if (s === "inner") return [];
1880
- const p = (x = (I = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : I.hiddenColIds) == null ? void 0 : x.map(fe).filter((y) => y.type === "column").map((y) => y.id);
1881
- return p || l.filter((y) => Kt(y.spec)).map((y) => y.id);
1880
+ const h = (x = (I = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : I.hiddenColIds) == null ? void 0 : x.map(fe).filter((v) => v.type === "column").map((v) => v.id);
1881
+ return h || l.filter((v) => Kt(v.spec)).map((v) => v.id);
1882
1882
  })());
1883
- m.delete(u.id), [...o.map((p) => p.column), ...a.map((p) => p.column)].filter((p) => p.type === "column").map((p) => m.delete(p.id));
1884
- const v = l.filter((p) => !m.has(p.id)), f = Je(v.map(Ee), c), w = [
1885
- ...u.spec.axesSpec.map((p) => ({
1883
+ d.delete(u.id), [...o.map((h) => h.column), ...a.map((h) => h.column)].filter((h) => h.type === "column").map((h) => d.delete(h.id));
1884
+ const y = l.filter((h) => !d.has(h.id)), f = Je(y.map(Ee), c), w = [
1885
+ ...u.spec.axesSpec.map((h) => ({
1886
1886
  type: "axis",
1887
- id: D(p),
1888
- spec: p
1887
+ id: D(h),
1888
+ spec: h
1889
1889
  })),
1890
- ...[...l, ...f].map((p) => ({
1890
+ ...[...l, ...f].map((h) => ({
1891
1891
  type: "column",
1892
- id: p.id,
1893
- spec: p.spec
1892
+ id: h.id,
1893
+ spec: h.spec
1894
1894
  }))
1895
1895
  ];
1896
- if (!Me([...v, ...f])) return;
1897
- const d = t.createPTable(
1896
+ if (!Me([...y, ...f])) return;
1897
+ const p = t.createPTable(
1898
1898
  Ue(l, f, s, o, a, i == null ? void 0 : i.coreColumnPredicate)
1899
1899
  );
1900
1900
  return {
1901
1901
  tableSpec: w,
1902
- tableHandle: d
1902
+ tableHandle: p
1903
1903
  };
1904
1904
  }
1905
- function Dn(t, e, n) {
1905
+ function Rn(t, e, n) {
1906
1906
  const r = t.resultPool.findLabels(e);
1907
1907
  return {
1908
1908
  axis: e,
@@ -1941,7 +1941,7 @@ function Mt(t) {
1941
1941
  var n, r;
1942
1942
  const e = /* @__PURE__ */ new Map();
1943
1943
  for (const { spec: i } of t) {
1944
- const s = i.axesSpec.map(D).map(K);
1944
+ const s = i.axesSpec.map(D).map(R);
1945
1945
  s.forEach((o) => {
1946
1946
  e.has(o) || e.set(o, /* @__PURE__ */ new Set());
1947
1947
  });
@@ -1957,7 +1957,7 @@ function Ut(t, e) {
1957
1957
  const n = Mt(t), r = [...n.keys()].map(fe), i = [];
1958
1958
  for (const l of e.values()) {
1959
1959
  const u = r.find((c) => U(l, c));
1960
- u && i.push(K(u));
1960
+ u && i.push(R(u));
1961
1961
  }
1962
1962
  const s = new Set(i), o = /* @__PURE__ */ new Map();
1963
1963
  let a = [...i];
@@ -1978,25 +1978,25 @@ function Bt(t, e) {
1978
1978
  }
1979
1979
  function Wt(t, e) {
1980
1980
  const n = e.spec.axesSpec.map(D);
1981
- if (n.every((u) => t.has(K(u))))
1981
+ if (n.every((u) => t.has(R(u))))
1982
1982
  return [e];
1983
1983
  const r = n.map((u) => {
1984
1984
  const c = [];
1985
- for (const [m, v] of t)
1986
- U(v, u) && !U(u, v) && c.push(v);
1985
+ for (const [d, y] of t)
1986
+ U(y, u) && !U(u, y) && c.push(y);
1987
1987
  return c;
1988
1988
  }), i = jt(r), s = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), a = i.map((u) => {
1989
1989
  const c = /* @__PURE__ */ new Set();
1990
- return u.map((m, v) => {
1991
- const f = e.spec.axesSpec[v].domain, w = m.domain;
1992
- return Object.entries(w ?? {}).forEach(([d, h]) => {
1993
- if ((f == null ? void 0 : f[d]) === void 0) {
1994
- const b = JSON.stringify([d, h]);
1990
+ return u.map((d, y) => {
1991
+ const f = e.spec.axesSpec[y].domain, w = d.domain;
1992
+ return Object.entries(w ?? {}).forEach(([p, g]) => {
1993
+ if ((f == null ? void 0 : f[p]) === void 0) {
1994
+ const b = JSON.stringify([p, g]);
1995
1995
  c.add(b), s.add(b);
1996
1996
  }
1997
1997
  }), {
1998
- ...m,
1999
- annotations: e.spec.axesSpec[v].annotations
1998
+ ...d,
1999
+ annotations: e.spec.axesSpec[y].annotations
2000
2000
  };
2001
2001
  }), c;
2002
2002
  });
@@ -2004,20 +2004,20 @@ function Wt(t, e) {
2004
2004
  a.some((c) => !c.has(u)) && o.add(u);
2005
2005
  });
2006
2006
  const l = i.map((u, c) => {
2007
- var d;
2008
- const m = Vt(e.id, u.map((h) => h.domain)), v = ((d = e.spec.annotations) == null ? void 0 : d[Ie]) ?? "", f = [...a[c]].filter((h) => o.has(h)).sort().map((h) => {
2007
+ var p;
2008
+ const d = Vt(e.id, u.map((g) => g.domain)), y = ((p = e.spec.annotations) == null ? void 0 : p[Ie]) ?? "", f = [...a[c]].filter((g) => o.has(g)).sort().map((g) => {
2009
2009
  var b;
2010
- return (b = JSON.parse(h)) == null ? void 0 : b[1];
2010
+ return (b = JSON.parse(g)) == null ? void 0 : b[1];
2011
2011
  }).join(" / "), w = {
2012
2012
  ...e.spec.annotations,
2013
2013
  [Nt]: "true"
2014
2014
  };
2015
- return (v || f) && (w[Ie] = v && f ? v + " / " + f : v + f), {
2016
- id: m,
2015
+ return (y || f) && (w[Ie] = y && f ? y + " / " + f : y + f), {
2016
+ id: d,
2017
2017
  spec: {
2018
2018
  ...e.spec,
2019
- axesSpec: u.map((h, b) => ({
2020
- ...h,
2019
+ axesSpec: u.map((g, b) => ({
2020
+ ...g,
2021
2021
  annotations: e.spec.axesSpec[b].annotations
2022
2022
  })),
2023
2023
  annotations: w
@@ -2031,33 +2031,40 @@ function Fn(t, e) {
2031
2031
  if (!e) return;
2032
2032
  const n = new le();
2033
2033
  n.addColumnProvider(t.resultPool), n.addColumns(e);
2034
- const r = /* @__PURE__ */ new Map();
2035
- for (const u of e)
2036
- for (const c of u.spec.axesSpec) {
2037
- const m = D(c);
2038
- r.set(K(m), m);
2034
+ const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
2035
+ for (const d of e)
2036
+ for (const y of d.spec.axesSpec) {
2037
+ const f = D(y);
2038
+ r.set(R(f), f), i.set(R(f), f);
2039
+ }
2040
+ const s = n.getColumns((d) => $t(d)) ?? [], o = Ut(s, r);
2041
+ for (const d of o)
2042
+ r.set(...d), i.set(...d);
2043
+ const a = (n.getColumns([...r.values()].map((d) => ({
2044
+ axes: [d],
2045
+ partialAxesMatch: !0
2046
+ })), { dontWaitAllData: !0, overrideLabelAnnotation: !1 }) ?? []).filter((d) => !ve(d.spec));
2047
+ for (const d of a)
2048
+ for (const y of d.spec.axesSpec) {
2049
+ const f = D(y);
2050
+ i.set(R(f), f);
2039
2051
  }
2040
- const i = n.getColumns((u) => $t(u)) ?? [], s = Ut(i, r), o = n.getColumns(ve) ?? [];
2041
- for (const u of s)
2042
- r.set(...u);
2043
- let a = (n.getColumns([...r.values()].map((u) => ({
2044
- axes: [u],
2052
+ const l = (n.getColumns([...i.values()].map((d) => ({
2053
+ axes: [d],
2045
2054
  partialAxesMatch: !0
2046
- }))) ?? []).filter((u) => !ve(u.spec));
2047
- a = a.concat(o);
2048
- const l = Bt(r, a);
2049
- if (!l.some(
2050
- (u) => u.data instanceof E && !u.data.getIsReadyOrError()
2055
+ })), { dontWaitAllData: !0, overrideLabelAnnotation: !1 }) ?? []).filter((d) => ve(d.spec)), u = [...a, ...l], c = Bt(r, u);
2056
+ if (!c.some(
2057
+ (d) => d.data instanceof E && !d.data.getIsReadyOrError()
2051
2058
  ))
2052
- return t.createPFrame(l);
2059
+ return t.createPFrame(c);
2053
2060
  }
2054
2061
  function Kn(t) {
2055
2062
  const e = t.type;
2056
2063
  switch (e) {
2057
2064
  case "axis":
2058
- return K(t);
2065
+ return R(t);
2059
2066
  case "column":
2060
- return K(t);
2067
+ return R(t);
2061
2068
  default:
2062
2069
  throw Error(`unsupported column type: ${e}`);
2063
2070
  }
@@ -2104,14 +2111,14 @@ class $n {
2104
2111
  }
2105
2112
  }
2106
2113
  function Gt(t) {
2107
- return ke({
2114
+ return Oe({
2108
2115
  __isRef: !0,
2109
2116
  blockId: ie(t, "blockId"),
2110
2117
  name: ie(t, "name")
2111
2118
  });
2112
2119
  }
2113
2120
  function Nn(t) {
2114
- return ke({
2121
+ return Oe({
2115
2122
  ref: Gt(ie(t, "ref")),
2116
2123
  label: ie(t, "label")
2117
2124
  });
@@ -2120,7 +2127,7 @@ const Jn = {
2120
2127
  sdkVersion: Y
2121
2128
  };
2122
2129
  function Ht() {
2123
- return Re({ sdkVersion: Y });
2130
+ return De({ sdkVersion: Y });
2124
2131
  }
2125
2132
  function Mn(t) {
2126
2133
  try {
@@ -2135,12 +2142,12 @@ function Un(t) {
2135
2142
  }
2136
2143
  export {
2137
2144
  en as Args,
2138
- L as BlockModel,
2145
+ T as BlockModel,
2139
2146
  Jn as CurrentSdkInfo,
2140
2147
  _ as FutureRef,
2141
2148
  Nt as IS_VIRTUAL_COLUMN,
2142
2149
  tn as It,
2143
- Tn as JsRenderInternal,
2150
+ Ln as JsRenderInternal,
2144
2151
  Ie as LABEL_ANNOTATION,
2145
2152
  Jt as LINKER_COLUMN_ANNOTATION,
2146
2153
  nn as MainOutputs,
@@ -2156,7 +2163,7 @@ export {
2156
2163
  se as RT_RESOURCE_MAP,
2157
2164
  oe as RT_RESOURCE_MAP_PARTITIONED,
2158
2165
  te as RenderCtx,
2159
- Rt as ResultPool,
2166
+ Dt as ResultPool,
2160
2167
  rn as StagingOutputs,
2161
2168
  bt as Trace,
2162
2169
  vt as TraceEntry,
@@ -2166,9 +2173,9 @@ export {
2166
2173
  pn as and,
2167
2174
  St as convertOrParsePColumnData,
2168
2175
  Fn as createPFrameForGraphs,
2169
- kn as createPlDataTable,
2170
- Dn as createPlDataTableSheet,
2171
- Rn as createPlDataTableV2,
2176
+ On as createPlDataTable,
2177
+ Rn as createPlDataTableSheet,
2178
+ Dn as createPlDataTableV2,
2172
2179
  Vn as createRowSelectionColumn,
2173
2180
  Ve as deriveLabels,
2174
2181
  pe as downgradeCfgOrLambda,
@@ -2206,13 +2213,13 @@ export {
2206
2213
  he as ifDef,
2207
2214
  Ft as isColumnHidden,
2208
2215
  Kt as isColumnOptional,
2209
- Dt as isConfigLambda,
2216
+ Rt as isConfigLambda,
2210
2217
  cn as isEmpty,
2211
2218
  ve as isLabelColumn,
2212
2219
  $t as isLinkerColumn,
2213
2220
  Zt as isolate,
2214
2221
  on as makeArray,
2215
- ke as makeObject,
2222
+ Oe as makeObject,
2216
2223
  ln as mapArrayValues,
2217
2224
  jn as mapPTableValueToAxisKey,
2218
2225
  an as mapRecordValues,
@@ -2220,10 +2227,10 @@ export {
2220
2227
  dn as not,
2221
2228
  fn as or,
2222
2229
  ye as parsePColumnData,
2223
- Ln as parseResourceMap,
2230
+ Tn as parseResourceMap,
2224
2231
  ct as readOutput,
2225
2232
  Kn as stringifyPTableColumnId,
2226
- On as stringifyPTableColumnSpec,
2233
+ kn as stringifyPTableColumnSpec,
2227
2234
  Qt as wrapOutputs
2228
2235
  };
2229
2236
  //# sourceMappingURL=index.mjs.map