@platforma-sdk/model 1.42.8 → 1.42.15

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,10 +1,10 @@
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 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 } from "@milaboratories/pl-model-common";
4
+ import { isPColumn as qe, mapPObjectData as we, isDataInfoEntries as je, 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 } from "@milaboratories/pl-model-common";
5
5
  export * from "@milaboratories/pl-model-common";
6
- import Be from "canonicalize";
7
- import { z as B } from "zod";
6
+ import $e from "canonicalize";
7
+ import { z as $ } from "zod";
8
8
  export * from "@milaboratories/pl-error-like";
9
9
  class Tt extends Error {
10
10
  constructor(e, n) {
@@ -22,7 +22,7 @@ function hn(t) {
22
22
  }
23
23
  });
24
24
  }
25
- function A(t) {
25
+ function w(t) {
26
26
  return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null ? se(t) : t;
27
27
  }
28
28
  function Z(t) {
@@ -38,9 +38,9 @@ const gn = Z("$args"), yn = Z("$it"), bn = Z("$prod"), vn = Z("$staging"), Cn =
38
38
  function se(t) {
39
39
  return { type: "Immediate", value: t };
40
40
  }
41
- function Je(t) {
41
+ function Be(t) {
42
42
  const e = {};
43
- for (const [n, r] of Object.entries(t)) e[n] = A(r);
43
+ for (const [n, r] of Object.entries(t)) e[n] = w(r);
44
44
  return {
45
45
  type: "MakeObject",
46
46
  template: e
@@ -48,7 +48,7 @@ function Je(t) {
48
48
  }
49
49
  function Tn(...t) {
50
50
  const e = [];
51
- for (const n of t) e.push(A(n));
51
+ for (const n of t) e.push(w(n));
52
52
  return {
53
53
  type: "MakeArray",
54
54
  template: e
@@ -57,8 +57,8 @@ function Tn(...t) {
57
57
  function ae(t, e) {
58
58
  return {
59
59
  type: "GetJsonField",
60
- source: A(t),
61
- field: A(e)
60
+ source: w(t),
61
+ field: w(e)
62
62
  };
63
63
  }
64
64
  function Sn(t, e, n = "$it") {
@@ -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 An(t) {
87
87
  return {
88
88
  type: "IsEmpty",
89
89
  arg: t
@@ -112,15 +112,15 @@ function In(t, e) {
112
112
  function _n(t, e) {
113
113
  return {
114
114
  type: "GetResourceField",
115
- source: A(t),
116
- field: A(e)
115
+ source: w(t),
116
+ field: w(e)
117
117
  };
118
118
  }
119
119
  function Ln() {
120
120
  return function(t) {
121
121
  return {
122
122
  type: "GetResourceValueAsJson",
123
- source: A(t)
123
+ source: w(t)
124
124
  };
125
125
  };
126
126
  }
@@ -136,14 +136,14 @@ function Vn(t, e) {
136
136
  return {
137
137
  type: "GetBlobContent",
138
138
  range: e,
139
- source: A(t)
139
+ source: w(t)
140
140
  };
141
141
  }
142
142
  function kn(t, e) {
143
143
  return {
144
144
  type: "GetBlobContentAsString",
145
145
  range: e,
146
- source: A(t)
146
+ source: w(t)
147
147
  };
148
148
  }
149
149
  function On() {
@@ -151,72 +151,72 @@ function On() {
151
151
  return {
152
152
  type: "GetBlobContentAsJson",
153
153
  range: e,
154
- source: A(t)
154
+ source: w(t)
155
155
  };
156
156
  };
157
157
  }
158
158
  function Dn(t) {
159
159
  return {
160
160
  type: "GetDownloadedBlobContent",
161
- source: A(t)
161
+ source: w(t)
162
162
  };
163
163
  }
164
164
  function Rn(t) {
165
165
  return {
166
166
  type: "GetOnDemandBlobContent",
167
- source: A(t)
167
+ source: w(t)
168
168
  };
169
169
  }
170
170
  function Nn(t, e) {
171
171
  return {
172
172
  type: "ExtractArchiveAndGetURL",
173
173
  format: e,
174
- source: A(t)
174
+ source: w(t)
175
175
  };
176
176
  }
177
177
  function Un(t) {
178
178
  return {
179
179
  type: "GetImportProgress",
180
- source: A(t)
180
+ source: w(t)
181
181
  };
182
182
  }
183
183
  function Kn(t, e) {
184
184
  return {
185
185
  type: "GetLastLogs",
186
- source: A(t),
186
+ source: w(t),
187
187
  lines: e
188
188
  };
189
189
  }
190
190
  function Mn(t, e) {
191
191
  return {
192
192
  type: "GetProgressLog",
193
- source: A(t),
193
+ source: w(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
- source: A(t),
200
+ source: w(t),
201
201
  patternToSearch: e
202
202
  };
203
203
  }
204
- function qn(t) {
204
+ function jn(t) {
205
205
  return {
206
206
  type: "GetLogHandle",
207
- source: A(t)
207
+ source: w(t)
208
208
  };
209
209
  }
210
210
  function Pt() {
211
211
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
212
212
  }
213
- function $e(t) {
213
+ function Je(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;
217
217
  throw new Error("Can't get platforma instance.");
218
218
  }
219
- function At() {
219
+ function wt() {
220
220
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
221
221
  }
222
222
  function b() {
@@ -224,13 +224,13 @@ function b() {
224
224
  throw new Error("Not in config rendering context");
225
225
  }
226
226
  function G(t, e) {
227
- const n = At();
227
+ const n = wt();
228
228
  if (n === void 0) return !1;
229
229
  if (t in n.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
230
230
  return n.callbackRegistry[t] = e, !0;
231
231
  }
232
232
  const fe = /* @__PURE__ */ new Map();
233
- function wt(t, e) {
233
+ function At(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, wt(e, (r) => {
243
+ this.handle = e, this.postProcess = n, At(e, (r) => {
244
244
  this.resolvedValue = n(r), this.isResolved = !0;
245
245
  });
246
246
  }
@@ -363,7 +363,7 @@ class O {
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(([, o]) => {
366
- if (!je(o)) throw new Error(`not a PColumn (kind = ${o.spec.kind})`);
366
+ if (!qe(o)) throw new Error(`not a PColumn (kind = ${o.spec.kind})`);
367
367
  return o;
368
368
  });
369
369
  }
@@ -381,7 +381,7 @@ class O {
381
381
  const i = {};
382
382
  for (const [o, s] of Object.entries(r)) {
383
383
  const a = [...this.resolvePath, o];
384
- i[o] = Ae(s, (l) => new O(l, a));
384
+ i[o] = we(s, (l) => new O(l, a));
385
385
  }
386
386
  return i;
387
387
  }
@@ -504,19 +504,19 @@ function xt(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 $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
508
508
  __proto__: null,
509
509
  GlobalCfgRenderCtxFeatureFlags: Ft,
510
510
  MainAccessorName: Ge,
511
511
  StagingAccessorName: We,
512
512
  getAllFutureAwaits: xt,
513
513
  isFutureAwait: He
514
- }, Symbol.toStringTag, { value: "Module" })), It = "pl7.app/label", _t = "pl7.app/trace", Lt = B.object({
515
- type: B.string(),
516
- importance: B.number().optional(),
517
- id: B.string().optional(),
518
- label: B.string()
519
- }), Et = B.array(Lt), Vt = 1e-3, kt = "__LABEL__", Ee = "__LABEL__@1";
514
+ }, Symbol.toStringTag, { value: "Module" })), It = "pl7.app/label", _t = "pl7.app/trace", Lt = $.object({
515
+ type: $.string(),
516
+ importance: $.number().optional(),
517
+ id: $.string().optional(),
518
+ label: $.string()
519
+ }), Et = $.array(Lt), Vt = 1e-3, kt = "__LABEL__", Ee = "__LABEL__@1";
520
520
  function ze(t, e, n = {}) {
521
521
  const r = /* @__PURE__ */ new Map(), i = n.forceTraceElements !== void 0 && n.forceTraceElements.length > 0 ? new Set(n.forceTraceElements) : void 0, o = /* @__PURE__ */ new Map(), s = t.map((d) => {
522
522
  var c, v;
@@ -534,16 +534,16 @@ function ze(t, e, n = {}) {
534
534
  }
535
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 = (x.get($) ?? 0) + 1;
538
- x.set($, j);
539
- const N = `${$}@${j}`;
537
+ const { type: J } = P[I], K = P[I].importance ?? 0, q = (x.get(J) ?? 0) + 1;
538
+ x.set(J, q);
539
+ const N = `${J}@${q}`;
540
540
  o.set(N, (o.get(N) ?? 0) + 1), r.set(
541
541
  N,
542
542
  Math.max(
543
543
  r.get(N) ?? Number.NEGATIVE_INFINITY,
544
544
  K - (P.length - I) * Vt
545
545
  )
546
- ), T.push({ ...P[I], fullType: N, occurrenceIndex: j });
546
+ ), T.push({ ...P[I], fullType: N, occurrenceIndex: q });
547
547
  }
548
548
  return T.reverse(), {
549
549
  value: d,
@@ -590,7 +590,7 @@ function ze(t, e, n = {}) {
590
590
  }
591
591
  return h(/* @__PURE__ */ new Set([...a, ...l]), !0);
592
592
  }
593
- const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned", J = ee + "BinaryPartitioned", Xe = ee + "Partitioned/", ce = Xe + "JsonPartitioned", z = Xe + "BinaryPartitioned";
593
+ const ee = "PColumnData/", le = ee + "ResourceMap", ue = ee + "Partitioned/ResourceMap", H = ee + "JsonPartitioned", B = ee + "BinaryPartitioned", Xe = ee + "Partitioned/", ce = Xe + "JsonPartitioned", z = Xe + "BinaryPartitioned";
594
594
  function Ye(t, e, n, r = [], i) {
595
595
  if (t === void 0) return !1;
596
596
  switch (t.resourceType.name) {
@@ -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 Bn(t, e, n = !1) {
628
628
  const r = [];
629
629
  return { isComplete: Ye(t, e, r, [], n), data: r };
630
630
  }
@@ -647,7 +647,7 @@ function Ot(t) {
647
647
  i = n.partitionKeyLength + n.keyLength;
648
648
  break;
649
649
  case H:
650
- case J:
650
+ case B:
651
651
  i = n.partitionKeyLength;
652
652
  break;
653
653
  case z:
@@ -658,9 +658,9 @@ function Ot(t) {
658
658
  switch (e) {
659
659
  case le:
660
660
  case H:
661
- case J:
661
+ case B:
662
662
  for (let o of t.listInputFields()) {
663
- e === J && (o = ve(o).baseKey);
663
+ e === B && (o = ve(o).baseKey);
664
664
  const s = [...JSON.parse(o)];
665
665
  r.push(s);
666
666
  }
@@ -702,7 +702,7 @@ function Dt(t) {
702
702
  }
703
703
  function Rt(t) {
704
704
  if (t === void 0) return;
705
- if (qe(t))
705
+ if (je(t))
706
706
  return Dt(t);
707
707
  const e = Ot(t);
708
708
  if (!e) return;
@@ -742,7 +742,7 @@ function Ce(t, e = []) {
742
742
  parts: i
743
743
  };
744
744
  }
745
- case J: {
745
+ case B: {
746
746
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
747
747
  throw new Error(`Missing partitionKeyLength in metadata for ${n}`);
748
748
  const i = [], o = /* @__PURE__ */ new Map();
@@ -797,8 +797,8 @@ function Ce(t, e = []) {
797
797
  for (const s of t.listInputFields()) {
798
798
  const a = t.resolve({ field: s, assertFieldType: "Input" });
799
799
  if (a === void 0) return;
800
- if (a.resourceType.name !== J)
801
- throw new Error(`Expected ${J} inside ${n}, but got ${a.resourceType.name}`);
800
+ if (a.resourceType.name !== B)
801
+ throw new Error(`Expected ${B} inside ${n}, but got ${a.resourceType.name}`);
802
802
  const l = Ce(a, JSON.parse(s));
803
803
  if (l === void 0) return;
804
804
  if (l.type !== "BinaryPartitioned")
@@ -817,70 +817,82 @@ function Ce(t, e = []) {
817
817
  }
818
818
  function Nt(t) {
819
819
  if (t !== void 0) {
820
- if (qe(t)) return t;
820
+ if (je(t)) return t;
821
821
  if (pe(t)) return st(t);
822
822
  if (t instanceof O) return Ce(t);
823
823
  throw new Error(`Unexpected input type: ${typeof t}`);
824
824
  }
825
825
  }
826
826
  function Ut(t, e) {
827
- const n = [...e].sort((o, s) => s[0] - o[0]);
828
- if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
829
- const { partitionKeyLength: o } = t;
830
- for (const [s] of e)
831
- if (s >= o)
832
- throw new Error(`Can't filter on non-partitioned axis ${s}. Must be >= ${o}`);
833
- } else if (t.type === "Json") {
834
- const { keyLength: o } = t;
835
- for (const [s] of e)
836
- if (s >= o)
837
- throw new Error(`Can't filter on non-data axis ${s}. Must be >= ${o}`);
838
- }
839
- const r = (o) => {
840
- for (const [s, a] of n)
841
- if (o[s] !== a)
827
+ const n = [...e].sort((s, a) => a[0] - s[0]), { type: r } = t;
828
+ switch (r) {
829
+ case "Json": {
830
+ const { keyLength: s } = t;
831
+ for (const [a] of e)
832
+ if (a >= s)
833
+ throw new Error(`Can't filter on non-data axis ${a}. Must be >= ${s}`);
834
+ break;
835
+ }
836
+ case "JsonPartitioned":
837
+ case "BinaryPartitioned":
838
+ case "ParquetPartitioned": {
839
+ const { partitionKeyLength: s } = t;
840
+ for (const [a] of e)
841
+ if (a >= s)
842
+ throw new Error(`Can't filter on non-partitioned axis ${a}. Must be >= ${s}`);
843
+ break;
844
+ }
845
+ default:
846
+ throw new Error(`Unsupported data info type: ${r}`);
847
+ }
848
+ const i = (s) => {
849
+ for (const [a, l] of n)
850
+ if (s[a] !== l)
842
851
  return !1;
843
852
  return !0;
844
- }, i = (o) => {
845
- const s = [...o];
846
- for (const [a] of n)
847
- s.splice(a, 1);
848
- return s;
853
+ }, o = (s) => {
854
+ const a = [...s];
855
+ for (const [l] of n)
856
+ a.splice(l, 1);
857
+ return a;
849
858
  };
850
859
  switch (t.type) {
851
- case "Json": {
852
- const o = t.data.filter((s) => r(s.key)).map((s) => ({
853
- key: i(s.key),
854
- value: s.value
855
- }));
860
+ case "Json":
856
861
  return {
857
862
  type: "Json",
858
863
  keyLength: t.keyLength - e.length,
859
- data: o
864
+ data: t.data.filter((s) => i(s.key)).map((s) => ({
865
+ key: o(s.key),
866
+ value: s.value
867
+ }))
860
868
  };
861
- }
862
- case "JsonPartitioned": {
863
- const o = t.parts.filter((s) => r(s.key)).map((s) => ({
864
- key: i(s.key),
865
- value: s.value
866
- }));
869
+ case "JsonPartitioned":
867
870
  return {
868
871
  type: "JsonPartitioned",
869
872
  partitionKeyLength: t.partitionKeyLength - e.length,
870
- parts: o
873
+ parts: t.parts.filter((s) => i(s.key)).map((s) => ({
874
+ key: o(s.key),
875
+ value: s.value
876
+ }))
871
877
  };
872
- }
873
- case "BinaryPartitioned": {
874
- const o = t.parts.filter((s) => r(s.key)).map((s) => ({
875
- key: i(s.key),
876
- value: s.value
877
- }));
878
+ case "BinaryPartitioned":
878
879
  return {
879
880
  type: "BinaryPartitioned",
880
881
  partitionKeyLength: t.partitionKeyLength - e.length,
881
- parts: o
882
+ parts: t.parts.filter((s) => i(s.key)).map((s) => ({
883
+ key: o(s.key),
884
+ value: s.value
885
+ }))
886
+ };
887
+ case "ParquetPartitioned":
888
+ return {
889
+ type: "ParquetPartitioned",
890
+ partitionKeyLength: t.partitionKeyLength - e.length,
891
+ parts: t.parts.filter((s) => i(s.key)).map((s) => ({
892
+ key: o(s.key),
893
+ value: s.value
894
+ }))
882
895
  };
883
- }
884
896
  }
885
897
  }
886
898
  function Kt(t) {
@@ -898,7 +910,7 @@ class Mt {
898
910
  return this.columns.filter((r) => n(r.spec));
899
911
  }
900
912
  }
901
- function jt(t) {
913
+ function qt(t) {
902
914
  if (t)
903
915
  return t.map((e) => ({
904
916
  type: `split:${ct(e.axisId)}`,
@@ -907,21 +919,21 @@ function jt(t) {
907
919
  // High importance for split filters in labels
908
920
  }));
909
921
  }
910
- function qt(t) {
922
+ function jt(t) {
911
923
  if (t)
912
924
  return t.map((e) => [e.axisIdx, e.value]);
913
925
  }
914
- function Bt(t, e) {
926
+ function $t(t, e) {
915
927
  if (!e || e.length === 0) return t;
916
928
  const n = [...e].sort((r, i) => r[0] - i[0]);
917
- return Be({ id: t, axisFilters: n });
929
+ return $e({ id: t, axisFilters: n });
918
930
  }
919
931
  function Ve(t) {
920
932
  if (!t || typeof t != "object") return !1;
921
933
  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);
922
934
  return !!e.domainAnchor || n || r;
923
935
  }
924
- function Jt(t) {
936
+ function Bt(t) {
925
937
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
926
938
  return [];
927
939
  const e = t.axes.map((n, r) => typeof n == "object" && "split" in n && n.split === !0 ? r : -1).filter((n) => n !== -1);
@@ -993,7 +1005,7 @@ class Q {
993
1005
  }
994
1006
  }
995
1007
  if (F.length === 0) continue;
996
- const S = Jt(p), P = S.length > 0;
1008
+ const S = Bt(p), P = S.length > 0;
997
1009
  for (const T of F) {
998
1010
  if (!oe(T.spec)) continue;
999
1011
  const x = T.spec;
@@ -1010,7 +1022,7 @@ class Q {
1010
1022
  const v = Rt(c), I = S[S.length - 1];
1011
1023
  if (I >= c.partitionKeyLength)
1012
1024
  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) => {
1025
+ const J = S.map((_) => this.findLabels(k(x.axesSpec[_]))), K = [], q = (_, W) => {
1014
1026
  if (W >= S.length) {
1015
1027
  if (K.push([..._]), K.length > 1e4)
1016
1028
  throw new Error("Too many key combinations, aborting.");
@@ -1019,23 +1031,23 @@ class Q {
1019
1031
  const M = S[W];
1020
1032
  if (M >= v.length)
1021
1033
  throw new Error(`Axis index ${M} out of bounds for unique keys array (length ${v.length}) during split key generation for column ${T.id}`);
1022
- const q = v[M];
1023
- if (!q || q.length === 0) {
1034
+ const j = v[M];
1035
+ if (!j || j.length === 0) {
1024
1036
  K.length = 0;
1025
1037
  return;
1026
1038
  }
1027
- for (const te of q)
1028
- _.push(te), j(_, W + 1), _.pop();
1039
+ for (const te of j)
1040
+ _.push(te), q(_, W + 1), _.pop();
1029
1041
  };
1030
- if (j([], 0), K.length === 0)
1042
+ if (q([], 0), K.length === 0)
1031
1043
  continue;
1032
1044
  const N = [...x.axesSpec], et = S.map((_) => _);
1033
1045
  for (let _ = S.length - 1; _ >= 0; _--)
1034
1046
  N.splice(S[_], 1);
1035
1047
  const tt = { ...x, axesSpec: N };
1036
1048
  for (const _ of K) {
1037
- const W = _.map((M, q) => {
1038
- const te = et[q], nt = k(x.axesSpec[te]), de = $[q], rt = (de == null ? void 0 : de[M]) ?? String(M);
1049
+ const W = _.map((M, j) => {
1050
+ const te = et[j], nt = k(x.axesSpec[te]), de = J[j], rt = (de == null ? void 0 : de[M]) ?? String(M);
1039
1051
  return { axisIdx: te, axisId: nt, value: M, label: rt };
1040
1052
  });
1041
1053
  f.push({
@@ -1061,14 +1073,14 @@ class Q {
1061
1073
  f,
1062
1074
  (p) => ({
1063
1075
  spec: p.spec,
1064
- suffixTrace: p.type === "split" ? jt(p.axisFilters) : void 0
1076
+ suffixTrace: p.type === "split" ? qt(p.axisFilters) : void 0
1065
1077
  }),
1066
1078
  l
1067
1079
  ), y = [];
1068
1080
  for (const { value: p, label: g } of d) {
1069
- const { originalColumn: C, spec: E } = p, F = p.type === "split" ? p.axisFilters : void 0, S = qt(F);
1081
+ const { originalColumn: C, spec: E } = p, F = p.type === "split" ? p.axisFilters : void 0, S = jt(F);
1070
1082
  let P;
1071
- r ? P = r.deriveS(E, S) : P = Bt(C.id, S);
1083
+ r ? P = r.deriveS(E, S) : P = $t(C.id, S);
1072
1084
  let T = { ...p.adjustedSpec };
1073
1085
  s && (T = {
1074
1086
  ...T,
@@ -1149,9 +1161,9 @@ function he(t, e) {
1149
1161
  return !0;
1150
1162
  }
1151
1163
  function ke(t) {
1152
- return Ae(t, (e) => e instanceof O ? e.handle : pe(e) ? gt(e, (n) => n.handle) : e);
1164
+ return we(t, (e) => e instanceof O ? e.handle : pe(e) ? gt(e, (n) => n.handle) : e);
1153
1165
  }
1154
- class $t {
1166
+ class Jt {
1155
1167
  constructor() {
1156
1168
  V(this, "ctx", b());
1157
1169
  }
@@ -1305,7 +1317,7 @@ class $t {
1305
1317
  )) == null ? void 0 : r.obj;
1306
1318
  const n = this.ctx.getDataFromResultPoolByRef(e.blockId, e.name);
1307
1319
  if (n)
1308
- return Ae(
1320
+ return we(
1309
1321
  n,
1310
1322
  (i) => new O(i, [e.blockId, e.name])
1311
1323
  );
@@ -1368,7 +1380,7 @@ class $t {
1368
1380
  findLabels(e) {
1369
1381
  const n = this.getData();
1370
1382
  for (const r of n.entries) {
1371
- if (!je(r.obj)) continue;
1383
+ if (!qe(r.obj)) continue;
1372
1384
  const i = r.obj.spec;
1373
1385
  if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && he(e.domain, i.axesSpec[0].domain)) {
1374
1386
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
@@ -1395,7 +1407,7 @@ class $t {
1395
1407
  let a = null;
1396
1408
  const l = this;
1397
1409
  return {
1398
- id: Be(i),
1410
+ id: $e(i),
1399
1411
  spec: s,
1400
1412
  get data() {
1401
1413
  var u;
@@ -1427,7 +1439,7 @@ class ne {
1427
1439
  V(this, "_uiStateCache");
1428
1440
  // lazy rendering because this feature is rarely used
1429
1441
  V(this, "_activeArgsCache");
1430
- V(this, "resultPool", new $t());
1442
+ V(this, "resultPool", new Jt());
1431
1443
  this.ctx = b();
1432
1444
  }
1433
1445
  get args() {
@@ -1535,7 +1547,7 @@ class ne {
1535
1547
  this.ctx.logError(e);
1536
1548
  }
1537
1549
  }
1538
- const Wt = "1.42.8", X = Wt;
1550
+ const Wt = "1.42.15", X = Wt;
1539
1551
  function Gt(t) {
1540
1552
  return t.__renderLambda === !0;
1541
1553
  }
@@ -1543,15 +1555,15 @@ function me(t) {
1543
1555
  if (t !== void 0)
1544
1556
  return Gt(t) ? t.handle : t;
1545
1557
  }
1546
- function $n(t) {
1558
+ function Jn(t) {
1547
1559
  return yt(t);
1548
1560
  }
1549
- const w = class w {
1561
+ const A = class A {
1550
1562
  constructor(e, n, r, i, o, s, a, l, u) {
1551
1563
  this._renderingMode = e, this._initialArgs = n, this._initialUiState = r, this._outputs = i, this._inputsValid = o, this._sections = s, this._title = a, this._enrichmentTargets = l, this._featureFlags = u;
1552
1564
  }
1553
1565
  static create(e = "Heavy") {
1554
- return new w(
1566
+ return new A(
1555
1567
  e,
1556
1568
  void 0,
1557
1569
  {},
@@ -1560,13 +1572,13 @@ const w = class w {
1560
1572
  se([]),
1561
1573
  void 0,
1562
1574
  void 0,
1563
- { ...w.INITIAL_BLOCK_FEATURE_FLAGS }
1575
+ { ...A.INITIAL_BLOCK_FEATURE_FLAGS }
1564
1576
  );
1565
1577
  }
1566
1578
  output(e, n, r = {}) {
1567
1579
  if (typeof n == "function") {
1568
1580
  const i = `output#${e}`;
1569
- return G(i, () => n(new ne())), new w(
1581
+ return G(i, () => n(new ne())), new A(
1570
1582
  this._renderingMode,
1571
1583
  this._initialArgs,
1572
1584
  this._initialUiState,
@@ -1585,7 +1597,7 @@ const w = class w {
1585
1597
  this._featureFlags
1586
1598
  );
1587
1599
  } else
1588
- return new w(
1600
+ return new A(
1589
1601
  this._renderingMode,
1590
1602
  this._initialArgs,
1591
1603
  this._initialUiState,
@@ -1605,7 +1617,7 @@ const w = class w {
1605
1617
  return this.output(e, n, { retentive: !0 });
1606
1618
  }
1607
1619
  argsValid(e) {
1608
- return typeof e == "function" ? (G("inputsValid", () => e(new ne())), new w(
1620
+ return typeof e == "function" ? (G("inputsValid", () => e(new ne())), new A(
1609
1621
  this._renderingMode,
1610
1622
  this._initialArgs,
1611
1623
  this._initialUiState,
@@ -1618,7 +1630,7 @@ const w = class w {
1618
1630
  this._title,
1619
1631
  this._enrichmentTargets,
1620
1632
  this._featureFlags
1621
- )) : new w(
1633
+ )) : new A(
1622
1634
  this._renderingMode,
1623
1635
  this._initialArgs,
1624
1636
  this._initialUiState,
@@ -1631,7 +1643,7 @@ const w = class w {
1631
1643
  );
1632
1644
  }
1633
1645
  sections(e) {
1634
- return Array.isArray(e) ? this.sections(se(e)) : typeof e == "function" ? (G("sections", () => e(new ne())), new w(
1646
+ return Array.isArray(e) ? this.sections(se(e)) : typeof e == "function" ? (G("sections", () => e(new ne())), new A(
1635
1647
  this._renderingMode,
1636
1648
  this._initialArgs,
1637
1649
  this._initialUiState,
@@ -1641,7 +1653,7 @@ const w = class w {
1641
1653
  this._title,
1642
1654
  this._enrichmentTargets,
1643
1655
  this._featureFlags
1644
- )) : new w(
1656
+ )) : new A(
1645
1657
  this._renderingMode,
1646
1658
  this._initialArgs,
1647
1659
  this._initialUiState,
@@ -1655,7 +1667,7 @@ const w = class w {
1655
1667
  }
1656
1668
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
1657
1669
  title(e) {
1658
- return G("title", () => e(new ne())), new w(
1670
+ return G("title", () => e(new ne())), new A(
1659
1671
  this._renderingMode,
1660
1672
  this._initialArgs,
1661
1673
  this._initialUiState,
@@ -1672,7 +1684,7 @@ const w = class w {
1672
1684
  * @deprecated use {@link withArgs}
1673
1685
  * */
1674
1686
  initialArgs(e) {
1675
- return new w(
1687
+ return new A(
1676
1688
  this._renderingMode,
1677
1689
  e,
1678
1690
  this._initialUiState,
@@ -1686,7 +1698,7 @@ const w = class w {
1686
1698
  }
1687
1699
  /** Sets initial args for the block, this value must be specified. */
1688
1700
  withArgs(e) {
1689
- return new w(
1701
+ return new A(
1690
1702
  this._renderingMode,
1691
1703
  e,
1692
1704
  this._initialUiState,
@@ -1700,7 +1712,7 @@ const w = class w {
1700
1712
  }
1701
1713
  /** Defines type and sets initial value for block UiState. */
1702
1714
  withUiState(e) {
1703
- return new w(
1715
+ return new A(
1704
1716
  this._renderingMode,
1705
1717
  this._initialArgs,
1706
1718
  e,
@@ -1714,7 +1726,7 @@ const w = class w {
1714
1726
  }
1715
1727
  /** Sets or overrides feature flags for the block. */
1716
1728
  withFeatureFlags(e) {
1717
- return new w(
1729
+ return new A(
1718
1730
  this._renderingMode,
1719
1731
  this._initialArgs,
1720
1732
  this._initialUiState,
@@ -1731,7 +1743,7 @@ const w = class w {
1731
1743
  * Influences dependency graph construction.
1732
1744
  */
1733
1745
  enriches(e) {
1734
- return G("enrichmentTargets", e), new w(
1746
+ return G("enrichmentTargets", e), new A(
1735
1747
  this._renderingMode,
1736
1748
  this._initialArgs,
1737
1749
  this._initialUiState,
@@ -1778,15 +1790,15 @@ const w = class w {
1778
1790
  Object.entries(this._outputs).map(([r, i]) => [r, me(i)])
1779
1791
  )
1780
1792
  };
1781
- return globalThis.platformaApiVersion = e, Pt() ? $e({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: n };
1793
+ return globalThis.platformaApiVersion = e, Pt() ? Je({ sdkVersion: X, apiVersion: platformaApiVersion }) : { config: n };
1782
1794
  }
1783
1795
  };
1784
- V(w, "INITIAL_BLOCK_FEATURE_FLAGS", {
1796
+ V(A, "INITIAL_BLOCK_FEATURE_FLAGS", {
1785
1797
  supportsLazyState: !0,
1786
1798
  requiresUIAPIVersion: 1,
1787
1799
  requiresModelAPIVersion: 1
1788
1800
  });
1789
- let Oe = w;
1801
+ let Oe = A;
1790
1802
  function Qe() {
1791
1803
  return {
1792
1804
  sourceId: null,
@@ -1875,6 +1887,8 @@ function Xt(t) {
1875
1887
  return Object.values(i.parts).every((s) => s.getIsReadyOrError());
1876
1888
  case "BinaryPartitioned":
1877
1889
  return Object.values(i.parts).every((s) => s.index.getIsReadyOrError() && s.values.getIsReadyOrError());
1890
+ case "ParquetPartitioned":
1891
+ return Object.values(i.parts).every((s) => s.getIsReadyOrError());
1878
1892
  }
1879
1893
  else
1880
1894
  throw Error(`unsupported column data type: ${i}`);
@@ -2572,7 +2586,7 @@ function Yn(t) {
2572
2586
  function Qn(t) {
2573
2587
  return Ze[t];
2574
2588
  }
2575
- function we(t) {
2589
+ function Ae(t) {
2576
2590
  if (t.type === "or")
2577
2591
  return {
2578
2592
  type: "or",
@@ -2586,7 +2600,7 @@ function we(t) {
2586
2600
  if (t.type === "not")
2587
2601
  return {
2588
2602
  type: "not",
2589
- filter: we(t.filter)
2603
+ filter: Ae(t.filter)
2590
2604
  };
2591
2605
  if (t.type === "isNA")
2592
2606
  return {
@@ -2693,7 +2707,7 @@ function we(t) {
2693
2707
  ln(t);
2694
2708
  }
2695
2709
  function Me(t) {
2696
- return t.filter((e) => e.type !== void 0).map(we);
2710
+ return t.filter((e) => e.type !== void 0).map(Ae);
2697
2711
  }
2698
2712
  function Zn(t) {
2699
2713
  return {
@@ -2701,7 +2715,7 @@ function Zn(t) {
2701
2715
  mode: t.mode,
2702
2716
  steps: t.steps.filter((e) => e.filter.type == null ? !1 : e.filter.type === "or" || e.filter.type === "and" ? e.filter.filters.length > 0 : !1).map((e) => ({
2703
2717
  label: e.label.trim(),
2704
- filter: we(e.filter)
2718
+ filter: Ae(e.filter)
2705
2719
  }))
2706
2720
  };
2707
2721
  }
@@ -2730,14 +2744,14 @@ class er {
2730
2744
  }
2731
2745
  }
2732
2746
  function un(t) {
2733
- return Je({
2747
+ return Be({
2734
2748
  __isRef: !0,
2735
2749
  blockId: ae(t, "blockId"),
2736
2750
  name: ae(t, "name")
2737
2751
  });
2738
2752
  }
2739
2753
  function tr(t) {
2740
- return Je({
2754
+ return Be({
2741
2755
  ref: un(ae(t, "ref")),
2742
2756
  label: ae(t, "label")
2743
2757
  });
@@ -2749,7 +2763,7 @@ function rr() {
2749
2763
  return platformaApiVersion ?? 1;
2750
2764
  }
2751
2765
  function ir() {
2752
- return $e({ sdkVersion: X, apiVersion: platformaApiVersion });
2766
+ return Je({ sdkVersion: X, apiVersion: platformaApiVersion });
2753
2767
  }
2754
2768
  function or(t) {
2755
2769
  if (typeof globalThis.getEnvironmentValue == "function")
@@ -2762,7 +2776,7 @@ export {
2762
2776
  L as FutureRef,
2763
2777
  tn as IS_VIRTUAL_COLUMN,
2764
2778
  yn as It,
2765
- Bn as JsRenderInternal,
2779
+ $n as JsRenderInternal,
2766
2780
  Ue as LABEL_ANNOTATION,
2767
2781
  nn as LINKER_COLUMN_ANNOTATION,
2768
2782
  bn as MainOutputs,
@@ -2771,14 +2785,14 @@ export {
2771
2785
  _t as PAnnotationTrace,
2772
2786
  Q as PColumnCollection,
2773
2787
  er as PFrameImpl,
2774
- J as RT_BINARY_PARTITIONED,
2788
+ B as RT_BINARY_PARTITIONED,
2775
2789
  z as RT_BINARY_SUPER_PARTITIONED,
2776
2790
  H as RT_JSON_PARTITIONED,
2777
2791
  ce as RT_JSON_SUPER_PARTITIONED,
2778
2792
  le as RT_RESOURCE_MAP,
2779
2793
  ue as RT_RESOURCE_MAP_PARTITIONED,
2780
2794
  ne as RenderCtx,
2781
- $t as ResultPool,
2795
+ Jt as ResultPool,
2782
2796
  vn as StagingOutputs,
2783
2797
  Et as Trace,
2784
2798
  Lt as TraceEntry,
@@ -2788,7 +2802,7 @@ export {
2788
2802
  re as allColumnsReady,
2789
2803
  xn as and,
2790
2804
  Zn as compileAnnotationScript,
2791
- we as compileFilter,
2805
+ Ae as compileFilter,
2792
2806
  Me as compileFilters,
2793
2807
  Nt as convertOrParsePColumnData,
2794
2808
  Hn as createPFrameForGraphs,
@@ -2801,10 +2815,10 @@ export {
2801
2815
  me as downgradeCfgOrLambda,
2802
2816
  Ke as enrichCompatible,
2803
2817
  Nn as extractArchiveAndGetURL,
2804
- $n as extractConfig,
2818
+ Jn as extractConfig,
2805
2819
  Ut as filterDataInfoEntries,
2806
2820
  Ze as filterUiMetadata,
2807
- An as flatten,
2821
+ wn as flatten,
2808
2822
  tr as fromPlOption,
2809
2823
  un as fromPlRef,
2810
2824
  zt as getAllLabelColumns,
@@ -2822,13 +2836,13 @@ export {
2822
2836
  ae as getJsonField,
2823
2837
  Kn as getLastLogs,
2824
2838
  rn as getLinkerColumnsMap,
2825
- qn as getLogHandle,
2839
+ jn as getLogHandle,
2826
2840
  Re as getMatchingLabelColumns,
2827
2841
  Rn as getOnDemandBlobContent,
2828
2842
  Ot as getPartitionKeysList,
2829
2843
  rr as getPlatformaApiVersion,
2830
2844
  Mn as getProgressLog,
2831
- jn as getProgressLogWithInfo,
2845
+ qn as getProgressLogWithInfo,
2832
2846
  ir as getRawPlatformaInstance,
2833
2847
  _n as getResourceField,
2834
2848
  Ln as getResourceValueAsJson,
@@ -2838,20 +2852,20 @@ export {
2838
2852
  Qt as isColumnOptional,
2839
2853
  an as isColumnReady,
2840
2854
  Gt as isConfigLambda,
2841
- wn as isEmpty,
2855
+ An as isEmpty,
2842
2856
  Se as isLabelColumn,
2843
2857
  Pe as isLinkerColumn,
2844
2858
  mn as isolate,
2845
2859
  Tn as makeArray,
2846
2860
  Qe as makeDefaultPTableParams,
2847
- Je as makeObject,
2861
+ Be as makeObject,
2848
2862
  Pn as mapArrayValues,
2849
2863
  Sn as mapRecordValues,
2850
2864
  En as mapResourceFields,
2851
2865
  Fn as not,
2852
2866
  In as or,
2853
2867
  Ce as parsePColumnData,
2854
- Jn as parseResourceMap,
2868
+ Bn as parseResourceMap,
2855
2869
  St as readOutput,
2856
2870
  ge as uniqueBy,
2857
2871
  ln as unreachable,