@platforma-sdk/model 1.41.1 → 1.41.3

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,7 +1,7 @@
1
1
  var it = Object.defineProperty;
2
2
  var ot = (t, e, n) => e in t ? it(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var V = (t, e, n) => ot(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { isPColumn as je, mapPObjectData as Ae, isDataInfoEntries as qe, isDataInfo as pe, dataInfoToEntries as st, selectorsToPredicate as Y, resolveAnchors as xe, deriveNativeId as at, isPColumnSpec as oe, isPartitionedDataInfoEntries as lt, getAxisId as k, entriesToDataInfo as ut, canonicalizeAxisId as ct, withEnrichments as Fe, AnchoredIdDeriver as Ie, isPlRef as pt, mapValueInVOE as dt, ensurePColumn as ft, extractAllColumns as ht, mapPTableDef as mt, mapDataInfo as gt, extractConfigGeneric as yt, matchAxisId as U, getColumnIdAndSpec as _e, canonicalizeJson as D, parseJson as Le, visitDataInfo as bt, isPTableAbsent as vt, uniquePlId as Ct, PTableNA as Tt } from "@milaboratories/pl-model-common";
4
+ import { isPColumn as je, mapPObjectData as Ae, isDataInfoEntries as qe, isDataInfo as pe, dataInfoToEntries as st, selectorsToPredicate as Y, resolveAnchors as Fe, deriveNativeId as at, isPColumnSpec as oe, isPartitionedDataInfoEntries as lt, getAxisId as k, entriesToDataInfo as ut, canonicalizeAxisId as ct, withEnrichments as xe, AnchoredIdDeriver as Ie, isPlRef as pt, mapValueInVOE as dt, ensurePColumn as ft, extractAllColumns as ht, mapPTableDef as mt, mapDataInfo as gt, extractConfigGeneric as yt, matchAxisId as U, getColumnIdAndSpec as _e, canonicalizeJson as D, parseJson as Le, visitDataInfo as bt, isPTableAbsent as vt, uniquePlId as Ct, PTableNA as Tt } from "@milaboratories/pl-model-common";
5
5
  export * from "@milaboratories/pl-model-common";
6
6
  import Be from "canonicalize";
7
7
  import { z as B } from "zod";
@@ -15,7 +15,7 @@ function Pt(t) {
15
15
  if (!t.ok) throw new St(t.errors, t.moreErrors);
16
16
  return t.value;
17
17
  }
18
- function hn(t) {
18
+ function mn(t) {
19
19
  return new Proxy(t, {
20
20
  get(e, n) {
21
21
  return Pt(e[n]);
@@ -28,13 +28,13 @@ function A(t) {
28
28
  function Z(t) {
29
29
  return { type: "GetFromCtx", variable: t };
30
30
  }
31
- function mn(t) {
31
+ function gn(t) {
32
32
  return {
33
33
  type: "Isolate",
34
34
  cfg: t
35
35
  };
36
36
  }
37
- const gn = Z("$args"), yn = Z("$it"), bn = Z("$prod"), vn = Z("$staging"), Cn = Z("$ui");
37
+ const yn = Z("$args"), bn = Z("$it"), vn = Z("$prod"), Cn = Z("$staging"), Tn = Z("$ui");
38
38
  function se(t) {
39
39
  return { type: "Immediate", value: t };
40
40
  }
@@ -46,7 +46,7 @@ function Je(t) {
46
46
  template: e
47
47
  };
48
48
  }
49
- function Tn(...t) {
49
+ function Sn(...t) {
50
50
  const e = [];
51
51
  for (const n of t) e.push(A(n));
52
52
  return {
@@ -61,7 +61,7 @@ function ae(t, e) {
61
61
  field: A(e)
62
62
  };
63
63
  }
64
- function Sn(t, e, n = "$it") {
64
+ function Pn(t, e, n = "$it") {
65
65
  return {
66
66
  type: "MapRecordValues",
67
67
  source: t,
@@ -69,7 +69,7 @@ function Sn(t, e, n = "$it") {
69
69
  itVar: n
70
70
  };
71
71
  }
72
- function Pn(t, e, n = "$it") {
72
+ function An(t, e, n = "$it") {
73
73
  return {
74
74
  type: "MapArrayValues",
75
75
  source: t,
@@ -77,13 +77,13 @@ function Pn(t, e, n = "$it") {
77
77
  itVar: n
78
78
  };
79
79
  }
80
- function An(t) {
80
+ function wn(t) {
81
81
  return {
82
82
  type: "Flatten",
83
83
  source: t
84
84
  };
85
85
  }
86
- function wn(t) {
86
+ function Fn(t) {
87
87
  return {
88
88
  type: "IsEmpty",
89
89
  arg: t
@@ -95,28 +95,28 @@ function xn(t) {
95
95
  operand: t
96
96
  };
97
97
  }
98
- function Fn(t, e) {
98
+ function In(t, e) {
99
99
  return {
100
100
  type: "And",
101
101
  operand1: t,
102
102
  operand2: e
103
103
  };
104
104
  }
105
- function In(t, e) {
105
+ function _n(t, e) {
106
106
  return {
107
107
  type: "Or",
108
108
  operand1: t,
109
109
  operand2: e
110
110
  };
111
111
  }
112
- function _n(t, e) {
112
+ function Ln(t, e) {
113
113
  return {
114
114
  type: "GetResourceField",
115
115
  source: A(t),
116
116
  field: A(e)
117
117
  };
118
118
  }
119
- function Ln() {
119
+ function En() {
120
120
  return function(t) {
121
121
  return {
122
122
  type: "GetResourceValueAsJson",
@@ -124,7 +124,7 @@ function Ln() {
124
124
  };
125
125
  };
126
126
  }
127
- function En(t, e, n = "$it") {
127
+ function Vn(t, e, n = "$it") {
128
128
  return {
129
129
  type: "MapResourceFields",
130
130
  source: t,
@@ -132,21 +132,21 @@ function En(t, e, n = "$it") {
132
132
  itVar: n
133
133
  };
134
134
  }
135
- function Vn(t, e) {
135
+ function kn(t, e) {
136
136
  return {
137
137
  type: "GetBlobContent",
138
138
  range: e,
139
139
  source: A(t)
140
140
  };
141
141
  }
142
- function kn(t, e) {
142
+ function On(t, e) {
143
143
  return {
144
144
  type: "GetBlobContentAsString",
145
145
  range: e,
146
146
  source: A(t)
147
147
  };
148
148
  }
149
- function On() {
149
+ function Dn() {
150
150
  return function(t, e) {
151
151
  return {
152
152
  type: "GetBlobContentAsJson",
@@ -155,53 +155,53 @@ function On() {
155
155
  };
156
156
  };
157
157
  }
158
- function Dn(t) {
158
+ function Rn(t) {
159
159
  return {
160
160
  type: "GetDownloadedBlobContent",
161
161
  source: A(t)
162
162
  };
163
163
  }
164
- function Rn(t) {
164
+ function Nn(t) {
165
165
  return {
166
166
  type: "GetOnDemandBlobContent",
167
167
  source: A(t)
168
168
  };
169
169
  }
170
- function Nn(t, e) {
170
+ function Un(t, e) {
171
171
  return {
172
172
  type: "ExtractArchiveAndGetURL",
173
173
  format: e,
174
174
  source: A(t)
175
175
  };
176
176
  }
177
- function Un(t) {
177
+ function Kn(t) {
178
178
  return {
179
179
  type: "GetImportProgress",
180
180
  source: A(t)
181
181
  };
182
182
  }
183
- function Kn(t, e) {
183
+ function Mn(t, e) {
184
184
  return {
185
185
  type: "GetLastLogs",
186
186
  source: A(t),
187
187
  lines: e
188
188
  };
189
189
  }
190
- function Mn(t, e) {
190
+ function jn(t, e) {
191
191
  return {
192
192
  type: "GetProgressLog",
193
193
  source: A(t),
194
194
  patternToSearch: e
195
195
  };
196
196
  }
197
- function jn(t, e) {
197
+ function qn(t, e) {
198
198
  return {
199
199
  type: "GetProgressLogWithInfo",
200
200
  source: A(t),
201
201
  patternToSearch: e
202
202
  };
203
203
  }
204
- function qn(t) {
204
+ function Bn(t) {
205
205
  return {
206
206
  type: "GetLogHandle",
207
207
  source: A(t)
@@ -230,7 +230,7 @@ function G(t, e) {
230
230
  return n.callbackRegistry[t] = e, !0;
231
231
  }
232
232
  const fe = /* @__PURE__ */ new Map();
233
- function xt(t, e) {
233
+ function Ft(t, e) {
234
234
  t in b().callbackRegistry || (b().callbackRegistry[t] = (n) => {
235
235
  for (const r of fe.get(t))
236
236
  r(n);
@@ -240,7 +240,7 @@ class L {
240
240
  constructor(e, n = (r) => r) {
241
241
  V(this, "isResolved", !1);
242
242
  V(this, "resolvedValue");
243
- this.handle = e, this.postProcess = n, xt(e, (r) => {
243
+ this.handle = e, this.postProcess = n, Ft(e, (r) => {
244
244
  this.resolvedValue = n(r), this.isResolved = !0;
245
245
  });
246
246
  }
@@ -480,7 +480,7 @@ class O {
480
480
  return o && (l = l.filter((u) => u[1] !== void 0)), l.map(([u, h]) => s(u, h));
481
481
  }
482
482
  }
483
- const We = "staging", Ge = "main", Ft = {
483
+ const We = "staging", Ge = "main", xt = {
484
484
  explicitColumnsSupport: !0,
485
485
  inlineColumnsSupport: !0,
486
486
  activeArgs: !0,
@@ -504,9 +504,9 @@ function It(t) {
504
504
  const e = /* @__PURE__ */ new Set();
505
505
  return be(e, /* @__PURE__ */ new Set(), t), e;
506
506
  }
507
- const Bn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
507
+ const Jn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
508
508
  __proto__: null,
509
- GlobalCfgRenderCtxFeatureFlags: Ft,
509
+ GlobalCfgRenderCtxFeatureFlags: xt,
510
510
  MainAccessorName: Ge,
511
511
  StagingAccessorName: We,
512
512
  getAllFutureAwaits: It,
@@ -523,7 +523,7 @@ function ze(t, e, n = {}) {
523
523
  const y = e(d);
524
524
  let p, g, C;
525
525
  "spec" in y && typeof y.spec == "object" ? (p = y.spec, g = y.prefixTrace, C = y.suffixTrace) : p = y;
526
- const E = (c = p.annotations) == null ? void 0 : c[_t], x = (v = p.annotations) == null ? void 0 : v[Lt], S = (x ? Vt.safeParse(JSON.parse(x)).data : void 0) ?? [], P = [
526
+ const E = (c = p.annotations) == null ? void 0 : c[_t], F = (v = p.annotations) == null ? void 0 : v[Lt], S = (F ? Vt.safeParse(JSON.parse(F)).data : void 0) ?? [], P = [
527
527
  ...g ?? [],
528
528
  ...S,
529
529
  ...C ?? []
@@ -532,10 +532,10 @@ function ze(t, e, n = {}) {
532
532
  const I = { label: E, type: Ot, importance: -2 };
533
533
  n.addLabelAsSuffix ? P.push(I) : P.splice(0, 0, I);
534
534
  }
535
- const T = [], F = /* @__PURE__ */ new Map();
535
+ const T = [], x = /* @__PURE__ */ new Map();
536
536
  for (let I = P.length - 1; I >= 0; --I) {
537
- const { type: $ } = P[I], K = P[I].importance ?? 0, j = (F.get($) ?? 0) + 1;
538
- F.set($, j);
537
+ const { type: $ } = P[I], K = P[I].importance ?? 0, j = (x.get($) ?? 0) + 1;
538
+ x.set($, j);
539
539
  const N = `${$}@${j}`;
540
540
  o.set(N, (o.get(N) ?? 0) + 1), r.set(
541
541
  N,
@@ -566,9 +566,9 @@ function ze(t, e, n = {}) {
566
566
  value: C.value
567
567
  });
568
568
  else return;
569
- const x = E.map((P) => P.label), S = n.separator ?? " / ";
569
+ const F = E.map((P) => P.label), S = n.separator ?? " / ";
570
570
  p.push({
571
- label: x.join(S),
571
+ label: F.join(S),
572
572
  value: C.value
573
573
  });
574
574
  }
@@ -624,7 +624,7 @@ function Ye(t, e, n, r = [], i) {
624
624
  throw new Error(`Unknown resource type: ${t.resourceType.name}`);
625
625
  }
626
626
  }
627
- function Jn(t, e, n = !1) {
627
+ function $n(t, e, n = !1) {
628
628
  const r = [];
629
629
  return { isComplete: Ye(t, e, r, [], n), data: r };
630
630
  }
@@ -965,7 +965,7 @@ class Q {
965
965
  if (Ve(g)) {
966
966
  if (!r)
967
967
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
968
- return Y(xe(r.anchors, g, n));
968
+ return Y(Fe(r.anchors, g, n));
969
969
  } else
970
970
  return Y(g);
971
971
  });
@@ -978,25 +978,25 @@ class Q {
978
978
  if (g) {
979
979
  if (!r)
980
980
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
981
- C = xe(r.anchors, p, n);
981
+ C = Fe(r.anchors, p, n);
982
982
  } else
983
983
  C = p;
984
- const E = /* @__PURE__ */ new Set(), x = [];
984
+ const E = /* @__PURE__ */ new Set(), F = [];
985
985
  for (const T of this.providers) {
986
- const F = T.selectColumns(C);
987
- for (const c of F) {
986
+ const x = T.selectColumns(C);
987
+ for (const c of x) {
988
988
  if (u(c.spec)) continue;
989
989
  if (E.has(c.id))
990
990
  throw new Error(`Duplicate column id ${c.id} in provider ${T.constructor.name}`);
991
991
  const v = at(c.spec);
992
- m.has(v) || (E.add(c.id), m.add(v), x.push(c));
992
+ m.has(v) || (E.add(c.id), m.add(v), F.push(c));
993
993
  }
994
994
  }
995
- if (x.length === 0) continue;
995
+ if (F.length === 0) continue;
996
996
  const S = $t(p), P = S.length > 0;
997
- for (const T of x) {
997
+ for (const T of F) {
998
998
  if (!oe(T.spec)) continue;
999
- const F = T.spec;
999
+ const x = T.spec;
1000
1000
  if (P) {
1001
1001
  if (Mt(T.data))
1002
1002
  throw new Error(`Splitting is not supported for PColumns with PColumnValues data format. Column id: ${T.id}`);
@@ -1009,8 +1009,8 @@ class Q {
1009
1009
  throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${c.type} for column ${T.id}`);
1010
1010
  const v = Nt(c), I = S[S.length - 1];
1011
1011
  if (I >= c.partitionKeyLength)
1012
- throw new Error(`Not enough partition keys (${c.partitionKeyLength}) for requested split axes (max index ${I}) in column ${F.name}`);
1013
- const $ = S.map((_) => this.findLabels(k(F.axesSpec[_]))), K = [], j = (_, W) => {
1012
+ throw new Error(`Not enough partition keys (${c.partitionKeyLength}) for requested split axes (max index ${I}) in column ${x.name}`);
1013
+ const $ = S.map((_) => this.findLabels(k(x.axesSpec[_]))), K = [], j = (_, W) => {
1014
1014
  if (W >= S.length) {
1015
1015
  if (K.push([..._]), K.length > 1e4)
1016
1016
  throw new Error("Too many key combinations, aborting.");
@@ -1029,19 +1029,19 @@ class Q {
1029
1029
  };
1030
1030
  if (j([], 0), K.length === 0)
1031
1031
  continue;
1032
- const N = [...F.axesSpec], et = S.map((_) => _);
1032
+ const N = [...x.axesSpec], et = S.map((_) => _);
1033
1033
  for (let _ = S.length - 1; _ >= 0; _--)
1034
1034
  N.splice(S[_], 1);
1035
- const tt = { ...F, axesSpec: N };
1035
+ const tt = { ...x, axesSpec: N };
1036
1036
  for (const _ of K) {
1037
1037
  const W = _.map((M, q) => {
1038
- const te = et[q], nt = k(F.axesSpec[te]), de = $[q], rt = (de == null ? void 0 : de[M]) ?? String(M);
1038
+ const te = et[q], nt = k(x.axesSpec[te]), de = $[q], rt = (de == null ? void 0 : de[M]) ?? String(M);
1039
1039
  return { axisIdx: te, axisId: nt, value: M, label: rt };
1040
1040
  });
1041
1041
  f.push({
1042
1042
  type: "split",
1043
1043
  originalColumn: T,
1044
- spec: F,
1044
+ spec: x,
1045
1045
  adjustedSpec: tt,
1046
1046
  dataEntries: c,
1047
1047
  axisFilters: W
@@ -1051,8 +1051,8 @@ class Q {
1051
1051
  f.push({
1052
1052
  type: "direct",
1053
1053
  originalColumn: T,
1054
- spec: F,
1055
- adjustedSpec: F
1054
+ spec: x,
1055
+ adjustedSpec: x
1056
1056
  });
1057
1057
  }
1058
1058
  }
@@ -1066,7 +1066,7 @@ class Q {
1066
1066
  l
1067
1067
  ), y = [];
1068
1068
  for (const { value: p, label: g } of d) {
1069
- const { originalColumn: C, spec: E } = p, x = p.type === "split" ? p.axisFilters : void 0, S = Bt(x);
1069
+ const { originalColumn: C, spec: E } = p, F = p.type === "split" ? p.axisFilters : void 0, S = Bt(F);
1070
1070
  let P;
1071
1071
  r ? P = r.deriveS(E, S) : P = Jt(C.id, S);
1072
1072
  let T = { ...p.adjustedSpec };
@@ -1165,10 +1165,10 @@ class Wt {
1165
1165
  const r = typeof e == "function" ? e : Y(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
1166
1166
  let o = {}, s = !1;
1167
1167
  return typeof n < "u" && (typeof n == "function" ? o = n : typeof n == "object" && ("includeNativeLabel" in n || "separator" in n || "addLabelAsSuffix" in n ? o = n : (n = n, o = n.label ?? {}, s = n.refsWithEnrichments ?? !1))), typeof o == "object" ? ze(i, (a) => a.obj, o ?? {}).map(({ value: { ref: a }, label: l }) => ({
1168
- ref: Fe(a, s),
1168
+ ref: xe(a, s),
1169
1169
  label: l
1170
1170
  })) : i.map(({ ref: a, obj: l }) => ({
1171
- ref: Fe(a, s),
1171
+ ref: xe(a, s),
1172
1172
  label: o(l, a)
1173
1173
  }));
1174
1174
  }
@@ -1535,15 +1535,15 @@ class ne {
1535
1535
  this.ctx.logError(e);
1536
1536
  }
1537
1537
  }
1538
- const X = "1.41.1";
1539
- function Gt(t) {
1538
+ const Gt = "1.41.3", X = Gt;
1539
+ function Ht(t) {
1540
1540
  return t.__renderLambda === !0;
1541
1541
  }
1542
1542
  function me(t) {
1543
1543
  if (t !== void 0)
1544
- return Gt(t) ? t.handle : t;
1544
+ return Ht(t) ? t.handle : t;
1545
1545
  }
1546
- function $n(t) {
1546
+ function Wn(t) {
1547
1547
  return yt(t);
1548
1548
  }
1549
1549
  const w = class w {
@@ -1803,7 +1803,7 @@ function De() {
1803
1803
  pTableParams: Qe()
1804
1804
  };
1805
1805
  }
1806
- function Ht(t) {
1806
+ function zt(t) {
1807
1807
  return "version" in t || (t = De()), t.version === 2 && (t = {
1808
1808
  version: 3,
1809
1809
  stateCache: t.stateCache.map((e) => ({
@@ -1816,7 +1816,7 @@ function Ht(t) {
1816
1816
  function Se(t) {
1817
1817
  return t.axesSpec.length === 1 && t.name === "pl7.app/label";
1818
1818
  }
1819
- function zt(t) {
1819
+ function Xt(t) {
1820
1820
  return new Q().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
1821
1821
  name: "pl7.app/label",
1822
1822
  axes: [{}]
@@ -1860,7 +1860,7 @@ function Re(t, e) {
1860
1860
  }
1861
1861
  return s;
1862
1862
  }
1863
- function Xt(t) {
1863
+ function Yt(t) {
1864
1864
  const e = (i) => Array.isArray(i), n = (i) => i instanceof O, r = (i) => typeof i == "object" && "type" in i;
1865
1865
  return t.map((i) => i.data).every((i) => {
1866
1866
  if (e(i))
@@ -1902,20 +1902,20 @@ function Ne(t) {
1902
1902
  sorting: t.sorting
1903
1903
  };
1904
1904
  }
1905
- function Yt(t) {
1905
+ function Qt(t) {
1906
1906
  var e;
1907
1907
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
1908
1908
  }
1909
- function Qt(t) {
1909
+ function Zt(t) {
1910
1910
  var e;
1911
1911
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
1912
1912
  }
1913
1913
  function ge(t, e) {
1914
1914
  return [...new Map(t.map((n) => [e(n), n])).values()];
1915
1915
  }
1916
- function Wn(t, e, n, r) {
1916
+ function Gn(t, e, n, r) {
1917
1917
  if (e.length === 0) return;
1918
- const i = e.filter((c) => Pe(c.spec) || !Yt(c.spec)), o = Ht(n), s = zt(t.resultPool);
1918
+ const i = e.filter((c) => Pe(c.spec) || !Qt(c.spec)), o = zt(n), s = Xt(t.resultPool);
1919
1919
  if (!s) return;
1920
1920
  const a = Re(i.map(_e), s), l = [...i, ...a], h = [
1921
1921
  ...ge(
@@ -1946,17 +1946,17 @@ function Wn(t, e, n, r) {
1946
1946
  filters: p,
1947
1947
  sorting: g,
1948
1948
  coreColumnPredicate: r == null ? void 0 : r.coreColumnPredicate
1949
- }), E = t.createPTable(C), x = new Set((() => {
1949
+ }), E = t.createPTable(C), F = new Set((() => {
1950
1950
  if (d === "inner") return [];
1951
1951
  const c = o.pTableParams.hiddenColIds;
1952
- return c || i.filter((v) => Qt(v.spec)).map((v) => v.id);
1952
+ return c || i.filter((v) => Zt(v.spec)).map((v) => v.id);
1953
1953
  })());
1954
- i.filter((c) => Pe(c.spec)).forEach((c) => x.delete(c.id)), r != null && r.coreColumnPredicate && i.flatMap((v) => {
1954
+ i.filter((c) => Pe(c.spec)).forEach((c) => F.delete(c.id)), r != null && r.coreColumnPredicate && i.flatMap((v) => {
1955
1955
  var I;
1956
1956
  return (I = r == null ? void 0 : r.coreColumnPredicate) != null && I.call(r, v.spec) ? [v.id] : [];
1957
- }).forEach((v) => x.delete(v)), [...y.map((c) => c.column), ...p.map((c) => c.column), ...g.map((c) => c.column)].filter((c) => c.type === "column").forEach((c) => x.delete(c.id));
1958
- const S = i.filter((c) => !x.has(c.id)), P = Re(S.map(_e), s);
1959
- if (!Xt([...S, ...P])) return;
1957
+ }).forEach((v) => F.delete(v)), [...y.map((c) => c.column), ...p.map((c) => c.column), ...g.map((c) => c.column)].filter((c) => c.type === "column").forEach((c) => F.delete(c.id));
1958
+ const S = i.filter((c) => !F.has(c.id)), P = Re(S.map(_e), s);
1959
+ if (!Yt([...S, ...P])) return;
1960
1960
  const T = Ne({
1961
1961
  columns: S,
1962
1962
  labelColumns: P,
@@ -1965,14 +1965,14 @@ function Wn(t, e, n, r) {
1965
1965
  filters: p,
1966
1966
  sorting: g,
1967
1967
  coreColumnPredicate: r == null ? void 0 : r.coreColumnPredicate
1968
- }), F = t.createPTable(T);
1968
+ }), x = t.createPTable(T);
1969
1969
  return {
1970
1970
  sourceId: o.pTableParams.sourceId,
1971
1971
  fullTableHandle: E,
1972
- visibleTableHandle: F
1972
+ visibleTableHandle: x
1973
1973
  };
1974
1974
  }
1975
- function Gn(t, e, n) {
1975
+ function Hn(t, e, n) {
1976
1976
  const r = t.resultPool.findLabels(e);
1977
1977
  return {
1978
1978
  axis: e,
@@ -1983,7 +1983,7 @@ function Gn(t, e, n) {
1983
1983
  defaultValue: n[0]
1984
1984
  };
1985
1985
  }
1986
- const Zt = (t, e) => {
1986
+ const en = (t, e) => {
1987
1987
  let n = t.toString();
1988
1988
  return e == null || e.forEach((r) => {
1989
1989
  if (r)
@@ -1991,7 +1991,7 @@ const Zt = (t, e) => {
1991
1991
  n += i, n += o;
1992
1992
  }), n;
1993
1993
  };
1994
- function en(t) {
1994
+ function tn(t) {
1995
1995
  if (!t.length)
1996
1996
  return [];
1997
1997
  let e = [[]];
@@ -2004,10 +2004,10 @@ function en(t) {
2004
2004
  }
2005
2005
  function Pe(t) {
2006
2006
  var e;
2007
- return t.axesSpec.length === 2 && ((e = t.annotations) == null ? void 0 : e[nn]) === "true";
2007
+ return ((e = t.annotations) == null ? void 0 : e[rn]) === "true";
2008
2008
  }
2009
- const tn = "pl7.app/graph/isVirtual", Ue = "pl7.app/label", nn = "pl7.app/isLinkerColumn";
2010
- function rn(t) {
2009
+ const nn = "pl7.app/graph/isVirtual", Ue = "pl7.app/label", rn = "pl7.app/isLinkerColumn";
2010
+ function on(t) {
2011
2011
  var n, r;
2012
2012
  const e = /* @__PURE__ */ new Map();
2013
2013
  for (const { spec: i } of t) {
@@ -2023,8 +2023,8 @@ function rn(t) {
2023
2023
  }
2024
2024
  return e;
2025
2025
  }
2026
- function on(t, e) {
2027
- const n = rn(t), r = [...n.keys()].map(Le), i = [];
2026
+ function sn(t, e) {
2027
+ const n = on(t), r = [...n.keys()].map(Le), i = [];
2028
2028
  for (const l of e.values()) {
2029
2029
  const u = r.find((h) => U(l, h));
2030
2030
  u && i.push(D(u));
@@ -2043,10 +2043,10 @@ function on(t, e) {
2043
2043
  function Ke(t, e) {
2044
2044
  const n = [];
2045
2045
  return e.forEach((r) => {
2046
- n.push(...sn(t, r));
2046
+ n.push(...an(t, r));
2047
2047
  }), n;
2048
2048
  }
2049
- function sn(t, e) {
2049
+ function an(t, e) {
2050
2050
  const n = e.spec.axesSpec.map(k);
2051
2051
  if (n.every((u) => t.has(D(u))))
2052
2052
  return [e];
@@ -2055,7 +2055,7 @@ function sn(t, e) {
2055
2055
  for (const [f, m] of t)
2056
2056
  U(m, u) && !U(u, m) && h.push(m);
2057
2057
  return h;
2058
- }), i = en(r), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a = i.map((u) => {
2058
+ }), i = tn(r), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Set(), a = i.map((u) => {
2059
2059
  const h = /* @__PURE__ */ new Set();
2060
2060
  return u.map((f, m) => {
2061
2061
  const d = e.spec.axesSpec[m].domain, y = f.domain;
@@ -2075,12 +2075,12 @@ function sn(t, e) {
2075
2075
  });
2076
2076
  const l = i.map((u, h) => {
2077
2077
  var p;
2078
- const f = Zt(e.id, u.map((g) => g.domain)), m = ((p = e.spec.annotations) == null ? void 0 : p[Ue]) ?? "", d = [...a[h]].filter((g) => s.has(g)).sort().map((g) => {
2078
+ const f = en(e.id, u.map((g) => g.domain)), m = ((p = e.spec.annotations) == null ? void 0 : p[Ue]) ?? "", d = [...a[h]].filter((g) => s.has(g)).sort().map((g) => {
2079
2079
  var C;
2080
2080
  return (C = JSON.parse(g)) == null ? void 0 : C[1];
2081
2081
  }).join(" / "), y = {
2082
2082
  ...e.spec.annotations,
2083
- [tn]: "true"
2083
+ [nn]: "true"
2084
2084
  };
2085
2085
  return (m || d) && (y[Ue] = m && d ? m + " / " + d : m + d), {
2086
2086
  id: f,
@@ -2097,16 +2097,16 @@ function sn(t, e) {
2097
2097
  });
2098
2098
  return [e, ...l];
2099
2099
  }
2100
- function an(t) {
2100
+ function ln(t) {
2101
2101
  let e = !0;
2102
2102
  return t.data instanceof O ? e = e && t.data.getIsReadyOrError() : pe(t.data) && bt(t.data, (n) => {
2103
2103
  e = e && n.getIsReadyOrError();
2104
2104
  }), e;
2105
2105
  }
2106
2106
  function re(t) {
2107
- return t.every(an);
2107
+ return t.every(ln);
2108
2108
  }
2109
- function Hn(t, e) {
2109
+ function zn(t, e) {
2110
2110
  if (!e) {
2111
2111
  const f = new Q();
2112
2112
  f.addColumnProvider(t.resultPool);
@@ -2129,7 +2129,7 @@ function Hn(t, e) {
2129
2129
  const d = k(m);
2130
2130
  r.set(D(d), d), i.set(D(d), d);
2131
2131
  }
2132
- const o = n.getColumns((f) => Pe(f)) ?? [], s = on(o, r);
2132
+ const o = n.getColumns((f) => Pe(f)) ?? [], s = sn(o, r);
2133
2133
  for (const f of s)
2134
2134
  r.set(...f), i.set(...f);
2135
2135
  const a = (n.getColumns((f) => f.axesSpec.some((m) => {
@@ -2158,7 +2158,7 @@ function Hn(t, e) {
2158
2158
  const u = [...a, ...l], h = Ke(r, u);
2159
2159
  return t.createPFrame(h);
2160
2160
  }
2161
- function zn({
2161
+ function Xn({
2162
2162
  selection: t,
2163
2163
  columnId: e = Ct(),
2164
2164
  label: n = "Selection marker",
@@ -2184,10 +2184,10 @@ function zn({
2184
2184
  data: i
2185
2185
  };
2186
2186
  }
2187
- function Xn(t) {
2187
+ function Yn(t) {
2188
2188
  return t === Tt ? (console.error("Axis value can never be N/A"), "") : t;
2189
2189
  }
2190
- function ln(t) {
2190
+ function un(t) {
2191
2191
  throw new Error("Unexpected object: " + t);
2192
2192
  }
2193
2193
  function R(t) {
@@ -2560,13 +2560,13 @@ const Ze = {
2560
2560
  supportedFor: () => !1
2561
2561
  }
2562
2562
  };
2563
- function Yn(t) {
2563
+ function Qn(t) {
2564
2564
  return t ? Object.entries(Ze).filter(([e, n]) => n.supportedFor(t)).map(([e, n]) => ({
2565
2565
  label: n.label,
2566
2566
  value: e
2567
2567
  })) : [];
2568
2568
  }
2569
- function Qn(t) {
2569
+ function Zn(t) {
2570
2570
  return Ze[t];
2571
2571
  }
2572
2572
  function we(t) {
@@ -2687,12 +2687,12 @@ function we(t) {
2687
2687
  };
2688
2688
  if (t.type === void 0)
2689
2689
  throw new Error("Filter type is undefined, this should not happen");
2690
- ln(t);
2690
+ un(t);
2691
2691
  }
2692
2692
  function Me(t) {
2693
2693
  return t.filter((e) => e.type !== void 0).map(we);
2694
2694
  }
2695
- function Zn(t) {
2695
+ function er(t) {
2696
2696
  return {
2697
2697
  title: t.title,
2698
2698
  mode: t.mode,
@@ -2702,7 +2702,7 @@ function Zn(t) {
2702
2702
  }))
2703
2703
  };
2704
2704
  }
2705
- class er {
2705
+ class tr {
2706
2706
  constructor(e) {
2707
2707
  this.handle = e;
2708
2708
  }
@@ -2726,48 +2726,48 @@ class er {
2726
2726
  return await platforma.pFrameDriver.getUniqueValues(this.handle, e);
2727
2727
  }
2728
2728
  }
2729
- function un(t) {
2729
+ function cn(t) {
2730
2730
  return Je({
2731
2731
  __isRef: !0,
2732
2732
  blockId: ae(t, "blockId"),
2733
2733
  name: ae(t, "name")
2734
2734
  });
2735
2735
  }
2736
- function tr(t) {
2736
+ function nr(t) {
2737
2737
  return Je({
2738
- ref: un(ae(t, "ref")),
2738
+ ref: cn(ae(t, "ref")),
2739
2739
  label: ae(t, "label")
2740
2740
  });
2741
2741
  }
2742
- const nr = {
2742
+ const rr = {
2743
2743
  sdkVersion: X
2744
2744
  };
2745
- function rr() {
2745
+ function ir() {
2746
2746
  return platformaApiVersion ?? 1;
2747
2747
  }
2748
- function ir() {
2748
+ function or() {
2749
2749
  return $e({ sdkVersion: X, apiVersion: platformaApiVersion });
2750
2750
  }
2751
- function or(t) {
2751
+ function sr(t) {
2752
2752
  if (typeof globalThis.getEnvironmentValue == "function")
2753
2753
  return globalThis.getEnvironmentValue(t);
2754
2754
  }
2755
2755
  export {
2756
- gn as Args,
2756
+ yn as Args,
2757
2757
  Oe as BlockModel,
2758
- nr as CurrentSdkInfo,
2758
+ rr as CurrentSdkInfo,
2759
2759
  L as FutureRef,
2760
- tn as IS_VIRTUAL_COLUMN,
2761
- yn as It,
2762
- Bn as JsRenderInternal,
2760
+ nn as IS_VIRTUAL_COLUMN,
2761
+ bn as It,
2762
+ Jn as JsRenderInternal,
2763
2763
  Ue as LABEL_ANNOTATION,
2764
- nn as LINKER_COLUMN_ANNOTATION,
2765
- bn as MainOutputs,
2764
+ rn as LINKER_COLUMN_ANNOTATION,
2765
+ vn as MainOutputs,
2766
2766
  St as OutputError,
2767
2767
  _t as PAnnotationLabel,
2768
2768
  Lt as PAnnotationTrace,
2769
2769
  Q as PColumnCollection,
2770
- er as PFrameImpl,
2770
+ tr as PFrameImpl,
2771
2771
  J as RT_BINARY_PARTITIONED,
2772
2772
  z as RT_BINARY_SUPER_PARTITIONED,
2773
2773
  H as RT_JSON_PARTITIONED,
@@ -2776,83 +2776,83 @@ export {
2776
2776
  ue as RT_RESOURCE_MAP_PARTITIONED,
2777
2777
  ne as RenderCtx,
2778
2778
  Wt as ResultPool,
2779
- vn as StagingOutputs,
2779
+ Cn as StagingOutputs,
2780
2780
  Vt as Trace,
2781
2781
  Et as TraceEntry,
2782
2782
  O as TreeNodeAccessor,
2783
- Cn as UiState,
2784
- Xt as allColumnsComputed,
2783
+ Tn as UiState,
2784
+ Yt as allColumnsComputed,
2785
2785
  re as allColumnsReady,
2786
- Fn as and,
2787
- Zn as compileAnnotationScript,
2786
+ In as and,
2787
+ er as compileAnnotationScript,
2788
2788
  we as compileFilter,
2789
2789
  Me as compileFilters,
2790
2790
  Ut as convertOrParsePColumnData,
2791
- Hn as createPFrameForGraphs,
2792
- Gn as createPlDataTableSheet,
2791
+ zn as createPFrameForGraphs,
2792
+ Hn as createPlDataTableSheet,
2793
2793
  De as createPlDataTableStateV2,
2794
- Wn as createPlDataTableV2,
2795
- zn as createRowSelectionColumn,
2794
+ Gn as createPlDataTableV2,
2795
+ Xn as createRowSelectionColumn,
2796
2796
  ze as deriveLabels,
2797
2797
  me as downgradeCfgOrLambda,
2798
2798
  Ke as enrichCompatible,
2799
- Nn as extractArchiveAndGetURL,
2800
- $n as extractConfig,
2799
+ Un as extractArchiveAndGetURL,
2800
+ Wn as extractConfig,
2801
2801
  Kt as filterDataInfoEntries,
2802
2802
  Ze as filterUiMetadata,
2803
- An as flatten,
2804
- tr as fromPlOption,
2805
- un as fromPlRef,
2806
- zt as getAllLabelColumns,
2807
- on as getAvailableWithLinkersAxes,
2808
- Vn as getBlobContent,
2809
- On as getBlobContentAsJson,
2810
- kn as getBlobContentAsString,
2811
- Dn as getDownloadedBlobContent,
2812
- or as getEnvironmentValue,
2813
- Qn as getFilterUiMetadata,
2814
- Yn as getFilterUiTypeOptions,
2803
+ wn as flatten,
2804
+ nr as fromPlOption,
2805
+ cn as fromPlRef,
2806
+ Xt as getAllLabelColumns,
2807
+ sn as getAvailableWithLinkersAxes,
2808
+ kn as getBlobContent,
2809
+ Dn as getBlobContentAsJson,
2810
+ On as getBlobContentAsString,
2811
+ Rn as getDownloadedBlobContent,
2812
+ sr as getEnvironmentValue,
2813
+ Zn as getFilterUiMetadata,
2814
+ Qn as getFilterUiTypeOptions,
2815
2815
  Z as getFromCfg,
2816
2816
  se as getImmediate,
2817
- Un as getImportProgress,
2817
+ Kn as getImportProgress,
2818
2818
  ae as getJsonField,
2819
- Kn as getLastLogs,
2820
- rn as getLinkerColumnsMap,
2821
- qn as getLogHandle,
2819
+ Mn as getLastLogs,
2820
+ on as getLinkerColumnsMap,
2821
+ Bn as getLogHandle,
2822
2822
  Re as getMatchingLabelColumns,
2823
- Rn as getOnDemandBlobContent,
2823
+ Nn as getOnDemandBlobContent,
2824
2824
  Dt as getPartitionKeysList,
2825
- rr as getPlatformaApiVersion,
2826
- Mn as getProgressLog,
2827
- jn as getProgressLogWithInfo,
2828
- ir as getRawPlatformaInstance,
2829
- _n as getResourceField,
2830
- Ln as getResourceValueAsJson,
2825
+ ir as getPlatformaApiVersion,
2826
+ jn as getProgressLog,
2827
+ qn as getProgressLogWithInfo,
2828
+ or as getRawPlatformaInstance,
2829
+ Ln as getResourceField,
2830
+ En as getResourceValueAsJson,
2831
2831
  Nt as getUniquePartitionKeys,
2832
2832
  ye as ifDef,
2833
- Yt as isColumnHidden,
2834
- Qt as isColumnOptional,
2835
- an as isColumnReady,
2836
- Gt as isConfigLambda,
2837
- wn as isEmpty,
2833
+ Qt as isColumnHidden,
2834
+ Zt as isColumnOptional,
2835
+ ln as isColumnReady,
2836
+ Ht as isConfigLambda,
2837
+ Fn as isEmpty,
2838
2838
  Se as isLabelColumn,
2839
2839
  Pe as isLinkerColumn,
2840
- mn as isolate,
2841
- Tn as makeArray,
2840
+ gn as isolate,
2841
+ Sn as makeArray,
2842
2842
  Qe as makeDefaultPTableParams,
2843
2843
  Je as makeObject,
2844
- Pn as mapArrayValues,
2845
- Xn as mapPTableValueToAxisKey,
2846
- Sn as mapRecordValues,
2847
- En as mapResourceFields,
2844
+ An as mapArrayValues,
2845
+ Yn as mapPTableValueToAxisKey,
2846
+ Pn as mapRecordValues,
2847
+ Vn as mapResourceFields,
2848
2848
  xn as not,
2849
- In as or,
2849
+ _n as or,
2850
2850
  Ce as parsePColumnData,
2851
- Jn as parseResourceMap,
2851
+ $n as parseResourceMap,
2852
2852
  Pt as readOutput,
2853
2853
  ge as uniqueBy,
2854
- ln as unreachable,
2855
- Ht as upgradePlDataTableStateV2,
2856
- hn as wrapOutputs
2854
+ un as unreachable,
2855
+ zt as upgradePlDataTableStateV2,
2856
+ mn as wrapOutputs
2857
2857
  };
2858
2858
  //# sourceMappingURL=index.mjs.map