@platforma-sdk/model 1.30.26 → 1.30.37

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,41 +1,41 @@
1
1
  var ze = Object.defineProperty;
2
2
  var Ye = (t, e, n) => e in t ? ze(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var F = (t, e, n) => Ye(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { isPColumn as ye, mapPObjectData as ve, isDataInfoEntries as Le, isDataInfo as be, dataInfoToEntries as Xe, selectorsToPredicate as Y, resolveAnchors as we, deriveNativeId as Qe, isPColumnSpec as te, isPartitionedDataInfoEntries as Ze, getAxisId as O, entriesToDataInfo as et, canonicalizeAxisId as tt, withEnrichments as Ae, AnchoredIdDeriver as xe, isPlRef as nt, mapValueInVOE as rt, ensurePColumn as it, extractAllColumns as st, mapPTableDef as ot, mapDataInfo as at, canonicalizeJson as re, matchAxisId as K, getColumnIdAndSpec as Ee, getPColumnSpecId as Pe } from "@milaboratories/pl-model-common";
4
+ import { isPColumn as ye, mapPObjectData as ve, isDataInfoEntries as Le, isDataInfo as be, dataInfoToEntries as Xe, selectorsToPredicate as X, resolveAnchors as we, deriveNativeId as Qe, isPColumnSpec as ne, isPartitionedDataInfoEntries as Ze, getAxisId as R, entriesToDataInfo as et, canonicalizeAxisId as tt, withEnrichments as Ae, AnchoredIdDeriver as xe, isPlRef as nt, mapValueInVOE as rt, ensurePColumn as it, extractAllColumns as st, mapPTableDef as ot, mapDataInfo as at, canonicalizeJson as M, getPColumnSpecId as Pe, matchAxisId as K, getColumnIdAndSpec as Ee, parseJson as lt, isPTableAbsent as ut, PTableNA as ct } from "@milaboratories/pl-model-common";
5
5
  export * from "@milaboratories/pl-model-common";
6
6
  import De from "canonicalize";
7
7
  import { z as U } from "zod";
8
8
  export * from "@milaboratories/pl-error-like";
9
- class lt extends Error {
9
+ class pt extends Error {
10
10
  constructor(e, n) {
11
11
  super(`${e.length}${n ? "+" : ""} errors, first error: ` + e[0].message), this.errors = e, this.moreErrors = n;
12
12
  }
13
13
  }
14
- function ut(t) {
15
- if (!t.ok) throw new lt(t.errors, t.moreErrors);
14
+ function dt(t) {
15
+ if (!t.ok) throw new pt(t.errors, t.moreErrors);
16
16
  return t.value;
17
17
  }
18
- function qt(t) {
18
+ function Xt(t) {
19
19
  return new Proxy(t, {
20
20
  get(e, n) {
21
- return ut(e[n]);
21
+ return dt(e[n]);
22
22
  }
23
23
  });
24
24
  }
25
25
  function C(t) {
26
- return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null ? ne(t) : t;
26
+ return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null ? re(t) : t;
27
27
  }
28
- function X(t) {
28
+ function Q(t) {
29
29
  return { type: "GetFromCtx", variable: t };
30
30
  }
31
- function zt(t) {
31
+ function Qt(t) {
32
32
  return {
33
33
  type: "Isolate",
34
34
  cfg: t
35
35
  };
36
36
  }
37
- const Yt = X("$args"), Xt = X("$it"), Qt = X("$prod"), Zt = X("$staging"), en = X("$ui");
38
- function ne(t) {
37
+ const Zt = Q("$args"), en = Q("$it"), tn = Q("$prod"), nn = Q("$staging"), rn = Q("$ui");
38
+ function re(t) {
39
39
  return { type: "Immediate", value: t };
40
40
  }
41
41
  function Fe(t) {
@@ -46,7 +46,7 @@ function Fe(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(C(n));
52
52
  return {
@@ -61,7 +61,7 @@ function ie(t, e) {
61
61
  field: C(e)
62
62
  };
63
63
  }
64
- function nn(t, e, n = "$it") {
64
+ function on(t, e, n = "$it") {
65
65
  return {
66
66
  type: "MapRecordValues",
67
67
  source: t,
@@ -69,7 +69,7 @@ function nn(t, e, n = "$it") {
69
69
  itVar: n
70
70
  };
71
71
  }
72
- function rn(t, e, n = "$it") {
72
+ function an(t, e, n = "$it") {
73
73
  return {
74
74
  type: "MapArrayValues",
75
75
  source: t,
@@ -77,46 +77,46 @@ function rn(t, e, n = "$it") {
77
77
  itVar: n
78
78
  };
79
79
  }
80
- function sn(t) {
80
+ function ln(t) {
81
81
  return {
82
82
  type: "Flatten",
83
83
  source: t
84
84
  };
85
85
  }
86
- function on(t) {
86
+ function un(t) {
87
87
  return {
88
88
  type: "IsEmpty",
89
89
  arg: t
90
90
  };
91
91
  }
92
- function an(t) {
92
+ function cn(t) {
93
93
  return {
94
94
  type: "Not",
95
95
  operand: t
96
96
  };
97
97
  }
98
- function ln(t, e) {
98
+ function pn(t, e) {
99
99
  return {
100
100
  type: "And",
101
101
  operand1: t,
102
102
  operand2: e
103
103
  };
104
104
  }
105
- function un(t, e) {
105
+ function dn(t, e) {
106
106
  return {
107
107
  type: "Or",
108
108
  operand1: t,
109
109
  operand2: e
110
110
  };
111
111
  }
112
- function cn(t, e) {
112
+ function fn(t, e) {
113
113
  return {
114
114
  type: "GetResourceField",
115
115
  source: C(t),
116
116
  field: C(e)
117
117
  };
118
118
  }
119
- function dn() {
119
+ function hn() {
120
120
  return function(t) {
121
121
  return {
122
122
  type: "GetResourceValueAsJson",
@@ -124,7 +124,7 @@ function dn() {
124
124
  };
125
125
  };
126
126
  }
127
- function pn(t, e, n = "$it") {
127
+ function gn(t, e, n = "$it") {
128
128
  return {
129
129
  type: "MapResourceFields",
130
130
  source: t,
@@ -132,19 +132,19 @@ function pn(t, e, n = "$it") {
132
132
  itVar: n
133
133
  };
134
134
  }
135
- function fn(t) {
135
+ function mn(t) {
136
136
  return {
137
137
  type: "GetBlobContent",
138
138
  source: C(t)
139
139
  };
140
140
  }
141
- function hn(t) {
141
+ function yn(t) {
142
142
  return {
143
143
  type: "GetBlobContentAsString",
144
144
  source: C(t)
145
145
  };
146
146
  }
147
- function gn() {
147
+ function vn() {
148
148
  return function(t) {
149
149
  return {
150
150
  type: "GetBlobContentAsJson",
@@ -152,82 +152,82 @@ function gn() {
152
152
  };
153
153
  };
154
154
  }
155
- function mn(t) {
155
+ function bn(t) {
156
156
  return {
157
157
  type: "GetDownloadedBlobContent",
158
158
  source: C(t)
159
159
  };
160
160
  }
161
- function yn(t) {
161
+ function wn(t) {
162
162
  return {
163
163
  type: "GetOnDemandBlobContent",
164
164
  source: C(t)
165
165
  };
166
166
  }
167
- function vn(t, e) {
167
+ function An(t, e) {
168
168
  return {
169
169
  type: "ExtractArchiveAndGetURL",
170
170
  format: e,
171
171
  source: C(t)
172
172
  };
173
173
  }
174
- function bn(t) {
174
+ function xn(t) {
175
175
  return {
176
176
  type: "GetImportProgress",
177
177
  source: C(t)
178
178
  };
179
179
  }
180
- function wn(t, e) {
180
+ function Pn(t, e) {
181
181
  return {
182
182
  type: "GetLastLogs",
183
183
  source: C(t),
184
184
  lines: e
185
185
  };
186
186
  }
187
- function An(t, e) {
187
+ function Cn(t, e) {
188
188
  return {
189
189
  type: "GetProgressLog",
190
190
  source: C(t),
191
191
  patternToSearch: e
192
192
  };
193
193
  }
194
- function xn(t, e) {
194
+ function Sn(t, e) {
195
195
  return {
196
196
  type: "GetProgressLogWithInfo",
197
197
  source: C(t),
198
198
  patternToSearch: e
199
199
  };
200
200
  }
201
- function Pn(t) {
201
+ function _n(t) {
202
202
  return {
203
203
  type: "GetLogHandle",
204
204
  source: C(t)
205
205
  };
206
206
  }
207
- function ct() {
207
+ function ft() {
208
208
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
209
209
  }
210
- function Oe(t) {
210
+ function Re(t) {
211
211
  if (t && typeof globalThis.getPlatforma == "function")
212
212
  return globalThis.getPlatforma(t);
213
213
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
214
214
  throw new Error("Can't get platforma instance.");
215
215
  }
216
- function dt() {
216
+ function ht() {
217
217
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
218
218
  }
219
219
  function f() {
220
220
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
221
221
  throw new Error("Not in config rendering context");
222
222
  }
223
- function G(t, e) {
224
- const n = dt();
223
+ function H(t, e) {
224
+ const n = ht();
225
225
  if (n === void 0) return !1;
226
226
  if (t in n.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
227
227
  return n.callbackRegistry[t] = e, !0;
228
228
  }
229
229
  const ue = /* @__PURE__ */ new Map();
230
- function pt(t, e) {
230
+ function gt(t, e) {
231
231
  t in f().callbackRegistry || (f().callbackRegistry[t] = (n) => {
232
232
  for (const r of ue.get(t))
233
233
  r(n);
@@ -237,7 +237,7 @@ class I {
237
237
  constructor(e, n = (r) => r) {
238
238
  F(this, "isResolved", !1);
239
239
  F(this, "resolvedValue");
240
- this.handle = e, this.postProcess = n, pt(e, (r) => {
240
+ this.handle = e, this.postProcess = n, gt(e, (r) => {
241
241
  this.resolvedValue = n(r), this.isResolved = !0;
242
242
  });
243
243
  }
@@ -254,7 +254,7 @@ class I {
254
254
  return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
255
255
  }
256
256
  }
257
- function pe(t, e) {
257
+ function de(t, e) {
258
258
  return t === void 0 ? void 0 : e(t);
259
259
  }
260
260
  class E {
@@ -296,7 +296,7 @@ class E {
296
296
  ...this.resolvePath,
297
297
  ...n.map((i) => typeof i == "string" ? i : i.field)
298
298
  ];
299
- return pe(
299
+ return de(
300
300
  f().resolveWithCommon(this.handle, e, ...n),
301
301
  (i) => new E(i, r)
302
302
  );
@@ -318,7 +318,7 @@ class E {
318
318
  }
319
319
  getError() {
320
320
  const e = [...this.resolvePath, "error"];
321
- return pe(
321
+ return de(
322
322
  f().getError(this.handle),
323
323
  (n) => new E(n, e)
324
324
  );
@@ -474,10 +474,10 @@ class E {
474
474
  let l = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
475
475
  (u) => [u, this.resolve({ field: u, assertFieldType: r })]
476
476
  );
477
- return s && (l = l.filter((u) => u[1] !== void 0)), l.map(([u, p]) => o(u, p));
477
+ return s && (l = l.filter((u) => u[1] !== void 0)), l.map(([u, d]) => o(u, d));
478
478
  }
479
479
  }
480
- const Re = "staging", ke = "main", ft = {
480
+ const Oe = "staging", ke = "main", mt = {
481
481
  explicitColumnsSupport: !0,
482
482
  inlineColumnsSupport: !0,
483
483
  activeArgs: !0
@@ -495,83 +495,83 @@ function fe(t, e, n) {
495
495
  for (const [, i] of Object.entries(n))
496
496
  i !== n && fe(t, e, i);
497
497
  }
498
- function ht(t) {
498
+ function yt(t) {
499
499
  const e = /* @__PURE__ */ new Set();
500
500
  return fe(e, /* @__PURE__ */ new Set(), t), e;
501
501
  }
502
- const Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
502
+ const In = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
503
503
  __proto__: null,
504
- GlobalCfgRenderCtxFeatureFlags: ft,
504
+ GlobalCfgRenderCtxFeatureFlags: mt,
505
505
  MainAccessorName: ke,
506
- StagingAccessorName: Re,
507
- getAllFutureAwaits: ht,
506
+ StagingAccessorName: Oe,
507
+ getAllFutureAwaits: yt,
508
508
  isFutureAwait: je
509
- }, Symbol.toStringTag, { value: "Module" })), gt = "pl7.app/label", mt = "pl7.app/trace", yt = U.object({
509
+ }, Symbol.toStringTag, { value: "Module" })), vt = "pl7.app/label", bt = "pl7.app/trace", wt = U.object({
510
510
  type: U.string(),
511
511
  importance: U.number().optional(),
512
512
  id: U.string().optional(),
513
513
  label: U.string()
514
- }), vt = U.array(yt), bt = 1e-3, wt = "__LABEL__", Ce = "__LABEL__@1";
514
+ }), At = U.array(wt), xt = 1e-3, Pt = "__LABEL__", Ce = "__LABEL__@1";
515
515
  function Ve(t, e, n = {}) {
516
516
  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((g) => {
517
- var S, R;
517
+ var S, O;
518
518
  const m = e(g);
519
- let c, y, d;
520
- "spec" in m && typeof m.spec == "object" ? (c = m.spec, y = m.prefixTrace, d = m.suffixTrace) : c = m;
521
- const b = (S = c.annotations) == null ? void 0 : S[gt], A = (R = c.annotations) == null ? void 0 : R[mt], v = (A ? vt.safeParse(JSON.parse(A)).data : void 0) ?? [], P = [
522
- ...y ?? [],
523
- ...v,
524
- ...d ?? []
519
+ let c, v, b;
520
+ "spec" in m && typeof m.spec == "object" ? (c = m.spec, v = m.prefixTrace, b = m.suffixTrace) : c = m;
521
+ const p = (S = c.annotations) == null ? void 0 : S[vt], A = (O = c.annotations) == null ? void 0 : O[bt], x = (A ? At.safeParse(JSON.parse(A)).data : void 0) ?? [], y = [
522
+ ...v ?? [],
523
+ ...x,
524
+ ...b ?? []
525
525
  ];
526
- if (b !== void 0) {
527
- const D = { label: b, type: wt, importance: -2 };
528
- n.addLabelAsSuffix ? P.push(D) : P.splice(0, 0, D);
526
+ if (p !== void 0) {
527
+ const D = { label: p, type: Pt, importance: -2 };
528
+ n.addLabelAsSuffix ? y.push(D) : y.splice(0, 0, D);
529
529
  }
530
- const x = [], T = /* @__PURE__ */ new Map();
531
- for (let D = P.length - 1; D >= 0; --D) {
532
- const { type: M } = P[D], j = P[D].importance ?? 0, $ = (T.get(M) ?? 0) + 1;
533
- T.set(M, $);
534
- const k = `${M}@${$}`;
530
+ const P = [], T = /* @__PURE__ */ new Map();
531
+ for (let D = y.length - 1; D >= 0; --D) {
532
+ const { type: W } = y[D], j = y[D].importance ?? 0, $ = (T.get(W) ?? 0) + 1;
533
+ T.set(W, $);
534
+ const k = `${W}@${$}`;
535
535
  s.set(k, (s.get(k) ?? 0) + 1), r.set(
536
536
  k,
537
537
  Math.max(
538
538
  r.get(k) ?? Number.NEGATIVE_INFINITY,
539
- j - (P.length - D) * bt
539
+ j - (y.length - D) * xt
540
540
  )
541
- ), x.push({ ...P[D], fullType: k, occurrenceIndex: $ });
541
+ ), P.push({ ...y[D], fullType: k, occurrenceIndex: $ });
542
542
  }
543
- return x.reverse(), {
543
+ return P.reverse(), {
544
544
  value: g,
545
545
  spec: c,
546
- label: b,
547
- fullTrace: x
546
+ label: p,
547
+ fullTrace: P
548
548
  };
549
549
  }), a = [], l = [], u = [...r];
550
550
  u.sort(([, g], [, m]) => m - g);
551
551
  for (const [g] of u)
552
552
  g.endsWith("@1") || s.get(g) === t.length ? a.push(g) : l.push(g);
553
- const p = (g, m = !1) => {
553
+ const d = (g, m = !1) => {
554
554
  const c = [];
555
- for (let y = 0; y < o.length; y++) {
556
- const d = o[y], b = d.fullTrace.filter((P) => g.has(P.fullType) || i && i.has(P.type));
557
- if (b.length === 0)
555
+ for (let v = 0; v < o.length; v++) {
556
+ const b = o[v], p = b.fullTrace.filter((y) => g.has(y.fullType) || i && i.has(y.type));
557
+ if (p.length === 0)
558
558
  if (m)
559
559
  c.push({
560
560
  label: "Unlabeled",
561
- value: d.value
561
+ value: b.value
562
562
  });
563
563
  else return;
564
- const A = b.map((P) => P.label), v = n.separator ?? " / ";
564
+ const A = p.map((y) => y.label), x = n.separator ?? " / ";
565
565
  c.push({
566
- label: A.join(v),
567
- value: d.value
566
+ label: A.join(x),
567
+ value: b.value
568
568
  });
569
569
  }
570
570
  return c;
571
571
  };
572
572
  if (a.length === 0) {
573
573
  if (l.length !== 0) throw new Error("Non-empty secondary types list while main types list is empty.");
574
- return p(new Set(Ce), !0);
574
+ return d(new Set(Ce), !0);
575
575
  }
576
576
  let h = 0, w = -1;
577
577
  for (; h < a.length; ) {
@@ -579,13 +579,13 @@ function Ve(t, e, n = {}) {
579
579
  n.includeNativeLabel && g.add(Ce);
580
580
  for (let c = 0; c < h; ++c) g.add(a[c]);
581
581
  w >= 0 && g.add(a[w]);
582
- const m = p(g);
582
+ const m = d(g);
583
583
  if (m !== void 0 && new Set(m.map((c) => c.label)).size === t.length) return m;
584
584
  w++, w >= a.length && (h++, w = h);
585
585
  }
586
- return p(/* @__PURE__ */ new Set([...a, ...l]), !0);
586
+ return d(/* @__PURE__ */ new Set([...a, ...l]), !0);
587
587
  }
588
- const Q = "PColumnData/", se = Q + "ResourceMap", oe = Q + "Partitioned/ResourceMap", H = Q + "JsonPartitioned", B = Q + "BinaryPartitioned", Ke = Q + "Partitioned/", ae = Ke + "JsonPartitioned", q = Ke + "BinaryPartitioned";
588
+ const Z = "PColumnData/", se = Z + "ResourceMap", oe = Z + "Partitioned/ResourceMap", q = Z + "JsonPartitioned", B = Z + "BinaryPartitioned", Ke = Z + "Partitioned/", ae = Ke + "JsonPartitioned", z = Ke + "BinaryPartitioned";
589
589
  function $e(t, e, n, r = [], i) {
590
590
  if (t === void 0) return !1;
591
591
  switch (t.resourceType.name) {
@@ -619,7 +619,7 @@ function $e(t, e, n, r = [], i) {
619
619
  throw new Error(`Unknown resource type: ${t.resourceType.name}`);
620
620
  }
621
621
  }
622
- function Sn(t, e, n = !1) {
622
+ function Tn(t, e, n = !1) {
623
623
  const r = [];
624
624
  return { isComplete: $e(t, e, r, [], n), data: r };
625
625
  }
@@ -630,7 +630,7 @@ const he = (t) => {
630
630
  return { baseKey: t.substring(0, t.length - 7), type: "values" };
631
631
  throw new Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
632
632
  };
633
- function At(t) {
633
+ function Ct(t) {
634
634
  if (!t) return;
635
635
  const e = t.resourceType.name, n = t.getDataAsJson(), r = [];
636
636
  let i = 0;
@@ -641,18 +641,18 @@ function At(t) {
641
641
  case oe:
642
642
  i = n.partitionKeyLength + n.keyLength;
643
643
  break;
644
- case H:
644
+ case q:
645
645
  case B:
646
646
  i = n.partitionKeyLength;
647
647
  break;
648
- case q:
648
+ case z:
649
649
  case ae:
650
650
  i = n.superPartitionKeyLength + n.partitionKeyLength;
651
651
  break;
652
652
  }
653
653
  switch (e) {
654
654
  case se:
655
- case H:
655
+ case q:
656
656
  case B:
657
657
  for (let s of t.listInputFields()) {
658
658
  e === B && (s = he(s).baseKey);
@@ -661,13 +661,13 @@ function At(t) {
661
661
  }
662
662
  break;
663
663
  case oe:
664
- case q:
664
+ case z:
665
665
  case ae:
666
666
  for (const s of t.listInputFields()) {
667
667
  const o = [...JSON.parse(s)], a = t.resolve({ field: s, assertFieldType: "Input" });
668
668
  if (a !== void 0)
669
669
  for (let l of a.listInputFields()) {
670
- e === q && (l = he(l).baseKey);
670
+ e === z && (l = he(l).baseKey);
671
671
  const u = [...o, ...JSON.parse(l)];
672
672
  r.push(u);
673
673
  }
@@ -676,7 +676,7 @@ function At(t) {
676
676
  }
677
677
  return { data: r, keyLength: i };
678
678
  }
679
- function xt(t) {
679
+ function St(t) {
680
680
  if (t.type !== "JsonPartitioned" && t.type !== "BinaryPartitioned")
681
681
  throw new Error(`Splitting requires Partitioned DataInfoEntries, got ${t.type}`);
682
682
  const { parts: e, partitionKeyLength: n } = t, r = [];
@@ -695,11 +695,11 @@ function xt(t) {
695
695
  }
696
696
  return r.map((i) => Array.from(i.values()));
697
697
  }
698
- function Pt(t) {
698
+ function _t(t) {
699
699
  if (t === void 0) return;
700
700
  if (Le(t))
701
- return xt(t);
702
- const e = At(t);
701
+ return St(t);
702
+ const e = Ct(t);
703
703
  if (!e) return;
704
704
  const { data: n, keyLength: r } = e, i = [];
705
705
  for (let s = 0; s < r; ++s)
@@ -715,13 +715,13 @@ function Pt(t) {
715
715
  function ge(t, e = []) {
716
716
  if (t === void 0 || !t.getIsReadyOrError()) return;
717
717
  const n = t.resourceType.name, r = t.getDataAsJson();
718
- if (e.length > 0 && (n === ae || n === q))
718
+ if (e.length > 0 && (n === ae || n === z))
719
719
  throw new Error(`Unexpected nested super-partitioned resource: ${n}`);
720
720
  switch (n) {
721
721
  case se:
722
722
  case oe:
723
723
  throw new Error(`Only data columns are supported, got: ${n}`);
724
- case H: {
724
+ case q: {
725
725
  if (typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
726
726
  throw new Error(`Missing partitionKeyLength in metadata for ${n}`);
727
727
  const i = [];
@@ -771,8 +771,8 @@ function ge(t, e = []) {
771
771
  for (const o of t.listInputFields()) {
772
772
  const a = t.resolve({ field: o, assertFieldType: "Input" });
773
773
  if (a === void 0) return;
774
- if (a.resourceType.name !== H)
775
- throw new Error(`Expected ${H} inside ${n}, but got ${a.resourceType.name}`);
774
+ if (a.resourceType.name !== q)
775
+ throw new Error(`Expected ${q} inside ${n}, but got ${a.resourceType.name}`);
776
776
  const l = ge(a, JSON.parse(o));
777
777
  if (l === void 0) return;
778
778
  if (l.type !== "JsonPartitioned")
@@ -785,7 +785,7 @@ function ge(t, e = []) {
785
785
  parts: s
786
786
  };
787
787
  }
788
- case q: {
788
+ case z: {
789
789
  if (typeof (r == null ? void 0 : r.superPartitionKeyLength) != "number" || typeof (r == null ? void 0 : r.partitionKeyLength) != "number")
790
790
  throw new Error(`Missing superPartitionKeyLength or partitionKeyLength in metadata for ${n}`);
791
791
  const i = r.superPartitionKeyLength + r.partitionKeyLength, s = [];
@@ -810,7 +810,7 @@ function ge(t, e = []) {
810
810
  throw new Error(`Unknown resource type: ${n}`);
811
811
  }
812
812
  }
813
- function Ct(t) {
813
+ function It(t) {
814
814
  if (t !== void 0) {
815
815
  if (Le(t)) return t;
816
816
  if (be(t)) return Xe(t);
@@ -818,7 +818,7 @@ function Ct(t) {
818
818
  throw new Error(`Unexpected input type: ${typeof t}`);
819
819
  }
820
820
  }
821
- function St(t, e) {
821
+ function Tt(t, e) {
822
822
  const n = [...e].sort((s, o) => o[0] - s[0]);
823
823
  if (t.type === "JsonPartitioned" || t.type === "BinaryPartitioned") {
824
824
  const { partitionKeyLength: s } = t;
@@ -878,16 +878,16 @@ function St(t, e) {
878
878
  }
879
879
  }
880
880
  }
881
- class _t {
881
+ class Lt {
882
882
  constructor(e) {
883
883
  this.columns = e;
884
884
  }
885
885
  selectColumns(e) {
886
- const n = typeof e == "function" ? e : Y(e);
886
+ const n = typeof e == "function" ? e : X(e);
887
887
  return this.columns.filter((r) => n(r.spec));
888
888
  }
889
889
  }
890
- function It(t) {
890
+ function Et(t) {
891
891
  if (t)
892
892
  return t.map((e) => ({
893
893
  type: `split:${tt(e.axisId)}`,
@@ -896,11 +896,11 @@ function It(t) {
896
896
  // High importance for split filters in labels
897
897
  }));
898
898
  }
899
- function Tt(t) {
899
+ function Dt(t) {
900
900
  if (t)
901
901
  return t.map((e) => [e.axisIdx, e.value]);
902
902
  }
903
- function Lt(t, e) {
903
+ function Ft(t, e) {
904
904
  if (!e || e.length === 0) return t;
905
905
  const n = [...e].sort((r, i) => r[0] - i[0]);
906
906
  return De({ id: t, axisFilters: n });
@@ -910,7 +910,7 @@ function Se(t) {
910
910
  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);
911
911
  return !!e.domainAnchor || n || r;
912
912
  }
913
- function Et(t) {
913
+ function Rt(t) {
914
914
  if (typeof t != "object" || !("axes" in t) || t.axes === void 0)
915
915
  return [];
916
916
  const e = t.axes.map((n, r) => typeof n == "object" && "split" in n && n.split === !0 ? r : -1).filter((n) => n !== -1);
@@ -921,7 +921,7 @@ function Et(t) {
921
921
  class me {
922
922
  constructor() {
923
923
  F(this, "defaultProviderStore", []);
924
- F(this, "providers", [new _t(this.defaultProviderStore)]);
924
+ F(this, "providers", [new Lt(this.defaultProviderStore)]);
925
925
  F(this, "axisLabelProviders", []);
926
926
  }
927
927
  addColumnProvider(e) {
@@ -950,94 +950,94 @@ class me {
950
950
  };
951
951
  let u = () => !1;
952
952
  if (a) {
953
- const c = (Array.isArray(a) ? a : [a]).map((y) => {
954
- if (Se(y)) {
953
+ const c = (Array.isArray(a) ? a : [a]).map((v) => {
954
+ if (Se(v)) {
955
955
  if (!r)
956
956
  throw new Error("Anchored selectors in exclude require an AnchoredIdDeriver to be provided in options.");
957
- return Y(we(r.anchors, y, n));
957
+ return X(we(r.anchors, v, n));
958
958
  } else
959
- return Y(y);
959
+ return X(v);
960
960
  });
961
- u = (y) => c.some((d) => d(y));
961
+ u = (v) => c.some((b) => b(v));
962
962
  }
963
- const p = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], h = [], w = /* @__PURE__ */ new Set();
964
- for (const c of p) {
965
- const y = Se(c);
966
- let d;
967
- if (y) {
963
+ const d = typeof e == "function" ? [e] : Array.isArray(e) ? e : [e], h = [], w = /* @__PURE__ */ new Set();
964
+ for (const c of d) {
965
+ const v = Se(c);
966
+ let b;
967
+ if (v) {
968
968
  if (!r)
969
969
  throw new Error("Anchored selectors require an AnchoredIdDeriver to be provided in options.");
970
- d = we(r.anchors, c, n);
970
+ b = we(r.anchors, c, n);
971
971
  } else
972
- d = c;
973
- const b = /* @__PURE__ */ new Set(), A = [];
974
- for (const x of this.providers) {
975
- const T = x.selectColumns(d);
972
+ b = c;
973
+ const p = /* @__PURE__ */ new Set(), A = [];
974
+ for (const P of this.providers) {
975
+ const T = P.selectColumns(b);
976
976
  for (const S of T) {
977
977
  if (u(S.spec)) continue;
978
- if (b.has(S.id))
979
- throw new Error(`Duplicate column id ${S.id} in provider ${x.constructor.name}`);
980
- const R = Qe(S.spec);
981
- w.has(R) || (b.add(S.id), w.add(R), A.push(S));
978
+ if (p.has(S.id))
979
+ throw new Error(`Duplicate column id ${S.id} in provider ${P.constructor.name}`);
980
+ const O = Qe(S.spec);
981
+ w.has(O) || (p.add(S.id), w.add(O), A.push(S));
982
982
  }
983
983
  }
984
984
  if (A.length === 0) continue;
985
- const v = Et(c), P = v.length > 0;
986
- for (const x of A) {
987
- if (!te(x.spec)) continue;
988
- const T = x.spec;
989
- if (P) {
990
- const S = Ct(x.data);
985
+ const x = Rt(c), y = x.length > 0;
986
+ for (const P of A) {
987
+ if (!ne(P.spec)) continue;
988
+ const T = P.spec;
989
+ if (y) {
990
+ const S = It(P.data);
991
991
  if (!S) {
992
992
  if (s) continue;
993
993
  return;
994
994
  }
995
995
  if (!Ze(S))
996
- throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${x.id}`);
997
- const R = Pt(S), D = v[v.length - 1];
996
+ throw new Error(`Splitting requires Partitioned DataInfoEntries, but parsing resulted in ${S.type} for column ${P.id}`);
997
+ const O = _t(S), D = x[x.length - 1];
998
998
  if (D >= S.partitionKeyLength)
999
999
  throw new Error(`Not enough partition keys (${S.partitionKeyLength}) for requested split axes (max index ${D}) in column ${T.name}`);
1000
- const M = v.map((_) => this.findLabels(O(T.axesSpec[_]))), j = [], $ = (_, W) => {
1001
- if (W >= v.length) {
1000
+ const W = x.map((_) => this.findLabels(R(T.axesSpec[_]))), j = [], $ = (_, G) => {
1001
+ if (G >= x.length) {
1002
1002
  if (j.push([..._]), j.length > 1e4)
1003
1003
  throw new Error("Too many key combinations, aborting.");
1004
1004
  return;
1005
1005
  }
1006
- const V = v[W];
1007
- if (V >= R.length)
1008
- throw new Error(`Axis index ${V} out of bounds for unique keys array (length ${R.length}) during split key generation for column ${x.id}`);
1009
- const J = R[V];
1006
+ const V = x[G];
1007
+ if (V >= O.length)
1008
+ throw new Error(`Axis index ${V} out of bounds for unique keys array (length ${O.length}) during split key generation for column ${P.id}`);
1009
+ const J = O[V];
1010
1010
  if (!J || J.length === 0) {
1011
1011
  j.length = 0;
1012
1012
  return;
1013
1013
  }
1014
- for (const Z of J)
1015
- _.push(Z), $(_, W + 1), _.pop();
1014
+ for (const ee of J)
1015
+ _.push(ee), $(_, G + 1), _.pop();
1016
1016
  };
1017
1017
  if ($([], 0), j.length === 0)
1018
1018
  continue;
1019
- const k = [...T.axesSpec], We = v.map((_) => _);
1020
- for (let _ = v.length - 1; _ >= 0; _--)
1021
- k.splice(v[_], 1);
1019
+ const k = [...T.axesSpec], We = x.map((_) => _);
1020
+ for (let _ = x.length - 1; _ >= 0; _--)
1021
+ k.splice(x[_], 1);
1022
1022
  const Ge = { ...T, axesSpec: k };
1023
1023
  for (const _ of j) {
1024
- const W = _.map((V, J) => {
1025
- const Z = We[J], He = O(T.axesSpec[Z]), le = M[J], qe = (le == null ? void 0 : le[V]) ?? String(V);
1026
- return { axisIdx: Z, axisId: He, value: V, label: qe };
1024
+ const G = _.map((V, J) => {
1025
+ const ee = We[J], He = R(T.axesSpec[ee]), le = W[J], qe = (le == null ? void 0 : le[V]) ?? String(V);
1026
+ return { axisIdx: ee, axisId: He, value: V, label: qe };
1027
1027
  });
1028
1028
  h.push({
1029
1029
  type: "split",
1030
- originalColumn: x,
1030
+ originalColumn: P,
1031
1031
  spec: T,
1032
1032
  adjustedSpec: Ge,
1033
1033
  dataEntries: S,
1034
- axisFilters: W
1034
+ axisFilters: G
1035
1035
  });
1036
1036
  }
1037
1037
  } else
1038
1038
  h.push({
1039
1039
  type: "direct",
1040
- originalColumn: x,
1040
+ originalColumn: P,
1041
1041
  spec: T,
1042
1042
  adjustedSpec: T
1043
1043
  });
@@ -1048,26 +1048,26 @@ class me {
1048
1048
  h,
1049
1049
  (c) => ({
1050
1050
  spec: c.spec,
1051
- suffixTrace: c.type === "split" ? It(c.axisFilters) : void 0
1051
+ suffixTrace: c.type === "split" ? Et(c.axisFilters) : void 0
1052
1052
  }),
1053
1053
  l
1054
1054
  ), m = [];
1055
- for (const { value: c, label: y } of g) {
1056
- const { originalColumn: d, spec: b } = c, A = c.type === "split" ? c.axisFilters : void 0, v = Tt(A);
1057
- let P;
1058
- r ? P = r.deriveS(b, v) : P = Lt(d.id, v);
1059
- let x = { ...c.adjustedSpec };
1060
- o && (x = {
1061
- ...x,
1055
+ for (const { value: c, label: v } of g) {
1056
+ const { originalColumn: b, spec: p } = c, A = c.type === "split" ? c.axisFilters : void 0, x = Dt(A);
1057
+ let y;
1058
+ r ? y = r.deriveS(p, x) : y = Ft(b.id, x);
1059
+ let P = { ...c.adjustedSpec };
1060
+ o && (P = {
1061
+ ...P,
1062
1062
  annotations: {
1063
- ...x.annotations ?? {},
1064
- "pl7.app/label": y
1063
+ ...P.annotations ?? {},
1064
+ "pl7.app/label": v
1065
1065
  }
1066
1066
  }), m.push({
1067
- id: P,
1068
- spec: x,
1069
- data: () => c.type === "split" ? et(St(c.dataEntries, v)) : c.originalColumn.data,
1070
- label: y
1067
+ id: y,
1068
+ spec: P,
1069
+ data: () => c.type === "split" ? et(Tt(c.dataEntries, x)) : c.originalColumn.data,
1070
+ label: v
1071
1071
  });
1072
1072
  }
1073
1073
  return m;
@@ -1105,7 +1105,7 @@ function ce(t, e) {
1105
1105
  function _e(t) {
1106
1106
  return ve(t, (e) => e instanceof E ? e.handle : be(e) ? at(e, (n) => n.handle) : e);
1107
1107
  }
1108
- class Dt {
1108
+ class Ot {
1109
1109
  constructor() {
1110
1110
  F(this, "ctx", f());
1111
1111
  }
@@ -1116,7 +1116,7 @@ class Dt {
1116
1116
  return this.ctx.calculateOptions(e);
1117
1117
  }
1118
1118
  getOptions(e, n) {
1119
- const r = typeof e == "function" ? e : Y(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
1119
+ const r = typeof e == "function" ? e : X(e), i = this.getSpecs().entries.filter((a) => r(a.obj));
1120
1120
  let s = {}, o = !1;
1121
1121
  return typeof n < "u" && (typeof n == "function" ? s = n : typeof n == "object" && ("includeNativeLabel" in n || "separator" in n || "addLabelAsSuffix" in n ? s = n : (n = n, s = n.label ?? {}, o = n.refsWithEnrichments ?? !1))), typeof s == "object" ? Ve(i, (a) => a.obj, s ?? {}).map(({ value: { ref: a }, label: l }) => ({
1122
1122
  ref: Ae(a, o),
@@ -1282,7 +1282,7 @@ class Dt {
1282
1282
  getPColumnSpecByRef(e) {
1283
1283
  const n = this.getSpecByRef(e);
1284
1284
  if (n) {
1285
- if (!te(n)) throw new Error(`not a PColumn spec (kind = ${n.kind})`);
1285
+ if (!ne(n)) throw new Error(`not a PColumn spec (kind = ${n.kind})`);
1286
1286
  return n;
1287
1287
  }
1288
1288
  }
@@ -1301,7 +1301,7 @@ class Dt {
1301
1301
  findDataWithCompatibleSpec(e) {
1302
1302
  const n = [];
1303
1303
  e: for (const r of this.getData().entries) {
1304
- if (!te(r.obj.spec))
1304
+ if (!ne(r.obj.spec))
1305
1305
  continue;
1306
1306
  const i = r.obj.spec;
1307
1307
  if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && ce(e.domain, i.domain)) {
@@ -1343,8 +1343,8 @@ class Dt {
1343
1343
  * @returns An array of PColumn objects matching the selectors. Data is loaded on first access.
1344
1344
  */
1345
1345
  selectColumns(e) {
1346
- const n = typeof e == "function" ? e : Y(e);
1347
- return this.getSpecs().entries.filter(({ obj: i }) => te(i) ? n(i) : !1).map(({ ref: i, obj: s }) => {
1346
+ const n = typeof e == "function" ? e : X(e);
1347
+ return this.getSpecs().entries.filter(({ obj: i }) => ne(i) ? n(i) : !1).map(({ ref: i, obj: s }) => {
1348
1348
  const o = s;
1349
1349
  let a = null;
1350
1350
  const l = this;
@@ -1374,14 +1374,14 @@ class Dt {
1374
1374
  return r;
1375
1375
  }
1376
1376
  }
1377
- class ee {
1377
+ class te {
1378
1378
  constructor() {
1379
1379
  F(this, "ctx");
1380
1380
  F(this, "args");
1381
1381
  F(this, "uiState");
1382
1382
  // lazy rendering because this feature is rarely used
1383
1383
  F(this, "_activeArgsCache");
1384
- F(this, "resultPool", new Dt());
1384
+ F(this, "resultPool", new Ot());
1385
1385
  this.ctx = f(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
1386
1386
  }
1387
1387
  /**
@@ -1398,13 +1398,13 @@ class ee {
1398
1398
  // return this.ctx.featureFlags;
1399
1399
  // }
1400
1400
  getNamedAccessor(e) {
1401
- return pe(
1401
+ return de(
1402
1402
  this.ctx.getAccessorHandleByName(e),
1403
1403
  (n) => new E(n, [e])
1404
1404
  );
1405
1405
  }
1406
1406
  get prerun() {
1407
- return this.getNamedAccessor(Re);
1407
+ return this.getNamedAccessor(Oe);
1408
1408
  }
1409
1409
  get outputs() {
1410
1410
  return this.getNamedAccessor(ke);
@@ -1449,19 +1449,19 @@ class ee {
1449
1449
  return this.ctx.getCurrentUnstableMarker();
1450
1450
  }
1451
1451
  }
1452
- const z = "1.30.26";
1453
- function Ft(t) {
1452
+ const Y = "1.30.37";
1453
+ function kt(t) {
1454
1454
  return t.__renderLambda === !0;
1455
1455
  }
1456
- function de(t) {
1456
+ function pe(t) {
1457
1457
  if (t !== void 0)
1458
- return Ft(t) ? t.handle : t;
1458
+ return kt(t) ? t.handle : t;
1459
1459
  }
1460
1460
  function N(t) {
1461
1461
  if (t !== void 0)
1462
1462
  return typeof t == "string" ? { __renderLambda: !0, handle: t, retentive: !1 } : t;
1463
1463
  }
1464
- function _n(t) {
1464
+ function Ln(t) {
1465
1465
  if (t.v3 !== void 0) {
1466
1466
  const {
1467
1467
  initialArgs: e,
@@ -1473,7 +1473,7 @@ function _n(t) {
1473
1473
  sections: a,
1474
1474
  title: l,
1475
1475
  enrichmentTargets: u
1476
- } = t.v3, { code: p } = t;
1476
+ } = t.v3, { code: d } = t;
1477
1477
  return {
1478
1478
  initialArgs: e,
1479
1479
  initialUiState: n,
@@ -1483,7 +1483,7 @@ function _n(t) {
1483
1483
  sdkVersion: o,
1484
1484
  sections: a,
1485
1485
  title: l,
1486
- code: p,
1486
+ code: d,
1487
1487
  enrichmentTargets: u
1488
1488
  };
1489
1489
  } else if (t.inputsValid !== void 0) {
@@ -1497,7 +1497,7 @@ function _n(t) {
1497
1497
  renderingMode: n,
1498
1498
  initialArgs: o,
1499
1499
  outputs: Object.fromEntries(
1500
- Object.entries(r).map(([u, p]) => [u, N(p)])
1500
+ Object.entries(r).map(([u, d]) => [u, N(d)])
1501
1501
  ),
1502
1502
  inputsValid: N(i),
1503
1503
  sections: N(s),
@@ -1515,7 +1515,7 @@ function _n(t) {
1515
1515
  renderingMode: r,
1516
1516
  initialArgs: o,
1517
1517
  outputs: Object.fromEntries(
1518
- Object.entries(i).map(([u, p]) => [u, N(p)])
1518
+ Object.entries(i).map(([u, d]) => [u, N(d)])
1519
1519
  ),
1520
1520
  inputsValid: N(n),
1521
1521
  sections: N(s),
@@ -1539,8 +1539,8 @@ class L {
1539
1539
  void 0,
1540
1540
  {},
1541
1541
  {},
1542
- ne(!0),
1543
- ne([]),
1542
+ re(!0),
1543
+ re([]),
1544
1544
  void 0,
1545
1545
  void 0
1546
1546
  );
@@ -1548,7 +1548,7 @@ class L {
1548
1548
  output(e, n, r = {}) {
1549
1549
  if (typeof n == "function") {
1550
1550
  const i = `output#${e}`;
1551
- return G(i, () => n(new ee())), new L(
1551
+ return H(i, () => n(new te())), new L(
1552
1552
  this._renderingMode,
1553
1553
  this._initialArgs,
1554
1554
  this._initialUiState,
@@ -1585,7 +1585,7 @@ class L {
1585
1585
  return this.output(e, n, { retentive: !0 });
1586
1586
  }
1587
1587
  argsValid(e) {
1588
- return typeof e == "function" ? (G("inputsValid", () => e(new ee())), new L(
1588
+ return typeof e == "function" ? (H("inputsValid", () => e(new te())), new L(
1589
1589
  this._renderingMode,
1590
1590
  this._initialArgs,
1591
1591
  this._initialUiState,
@@ -1609,7 +1609,7 @@ class L {
1609
1609
  );
1610
1610
  }
1611
1611
  sections(e) {
1612
- return Array.isArray(e) ? this.sections(ne(e)) : typeof e == "function" ? (G("sections", () => e(new ee())), new L(
1612
+ return Array.isArray(e) ? this.sections(re(e)) : typeof e == "function" ? (H("sections", () => e(new te())), new L(
1613
1613
  this._renderingMode,
1614
1614
  this._initialArgs,
1615
1615
  this._initialUiState,
@@ -1631,7 +1631,7 @@ class L {
1631
1631
  }
1632
1632
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
1633
1633
  title(e) {
1634
- return G("title", () => e(new ee())), new L(
1634
+ return H("title", () => e(new te())), new L(
1635
1635
  this._renderingMode,
1636
1636
  this._initialArgs,
1637
1637
  this._initialUiState,
@@ -1689,7 +1689,7 @@ class L {
1689
1689
  * Influences dependency graph construction.
1690
1690
  */
1691
1691
  enriches(e) {
1692
- return G("enrichmentTargets", e), new L(
1692
+ return H("enrichmentTargets", e), new L(
1693
1693
  this._renderingMode,
1694
1694
  this._initialArgs,
1695
1695
  this._initialUiState,
@@ -1707,7 +1707,7 @@ class L {
1707
1707
  if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
1708
1708
  const e = {
1709
1709
  v3: {
1710
- sdkVersion: z,
1710
+ sdkVersion: Y,
1711
1711
  renderingMode: this._renderingMode,
1712
1712
  initialArgs: this._initialArgs,
1713
1713
  initialUiState: this._initialUiState,
@@ -1718,67 +1718,177 @@ class L {
1718
1718
  enrichmentTargets: this._enrichmentTargets
1719
1719
  },
1720
1720
  // fields below are added to allow previous desktop versions read generated configs
1721
- sdkVersion: z,
1721
+ sdkVersion: Y,
1722
1722
  renderingMode: this._renderingMode,
1723
1723
  initialArgs: this._initialArgs,
1724
- inputsValid: de(this._inputsValid),
1725
- sections: de(this._sections),
1724
+ inputsValid: pe(this._inputsValid),
1725
+ sections: pe(this._sections),
1726
1726
  outputs: Object.fromEntries(
1727
- Object.entries(this._outputs).map(([n, r]) => [n, de(r)])
1727
+ Object.entries(this._outputs).map(([n, r]) => [n, pe(r)])
1728
1728
  )
1729
1729
  };
1730
- return ct() ? Oe({ sdkVersion: z }) : { config: e };
1730
+ return ft() ? Re({ sdkVersion: Y }) : { config: e };
1731
1731
  }
1732
1732
  }
1733
- function In(t) {
1733
+ const jt = (t, e) => {
1734
+ let n = t.toString();
1735
+ return e == null || e.forEach((r) => {
1736
+ if (r)
1737
+ for (const [i, s] of Object.entries(r))
1738
+ n += i, n += s;
1739
+ }), n;
1740
+ };
1741
+ function Vt(t) {
1742
+ if (!t.length)
1743
+ return [];
1744
+ let e = [[]];
1745
+ return t.forEach((n) => {
1746
+ const r = [];
1747
+ n.forEach((i) => {
1748
+ r.push(...e.map((s) => [...s, i]));
1749
+ }), e = r;
1750
+ }), e;
1751
+ }
1752
+ function Kt(t, e) {
1753
+ const n = t.axesSpec.map(R);
1754
+ return e.axesSpec.map(R).every((i) => n.some((s) => K(s, i) && K(i, s)));
1755
+ }
1756
+ function Je(t, e) {
1757
+ const n = t.axesSpec.map(R);
1758
+ return e.axesSpec.map(R).every((i) => n.some((s) => K(s, i)));
1759
+ }
1760
+ const $t = "pl7.app/graph/isVirtual", Ie = "pl7.app/label";
1761
+ function Te(t, e) {
1762
+ const n = t.spec.axesSpec.map(R), r = e.spec.axesSpec.map(R);
1763
+ if (Kt(t.spec, e.spec))
1764
+ return [];
1765
+ if (!Je(t.spec, e.spec))
1766
+ return [];
1767
+ const o = r.map((h) => n.filter((w) => K(w, h))), a = Vt(o), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), d = a.map((h) => {
1768
+ const w = /* @__PURE__ */ new Set();
1769
+ return h.map((g, m) => {
1770
+ const c = e.spec.axesSpec[m].domain, v = g.domain;
1771
+ return Object.entries(v ?? {}).forEach(([b, p]) => {
1772
+ if ((c == null ? void 0 : c[b]) === void 0) {
1773
+ const A = JSON.stringify([b, p]);
1774
+ w.add(A), l.add(A);
1775
+ }
1776
+ }), {
1777
+ ...g,
1778
+ annotations: e.spec.axesSpec[m].annotations
1779
+ };
1780
+ }), w;
1781
+ });
1782
+ return [...l].forEach((h) => {
1783
+ d.some((w) => !w.has(h)) && u.add(h);
1784
+ }), a.map((h, w) => {
1785
+ var b;
1786
+ const g = jt(e.id, h.map((p) => p.domain)), m = ((b = e.spec.annotations) == null ? void 0 : b[Ie]) ?? "", c = [...d[w]].filter((p) => u.has(p)).sort().map((p) => {
1787
+ var A;
1788
+ return (A = JSON.parse(p)) == null ? void 0 : A[1];
1789
+ }).join(" / "), v = {
1790
+ ...e.spec.annotations,
1791
+ [$t]: "true"
1792
+ };
1793
+ return (m || c) && (v[Ie] = m && c ? m + " / " + c : m + c), {
1794
+ id: g,
1795
+ spec: {
1796
+ ...e.spec,
1797
+ axesSpec: h.map((p, A) => ({
1798
+ ...p,
1799
+ annotations: e.spec.axesSpec[A].annotations
1800
+ })),
1801
+ annotations: v
1802
+ },
1803
+ data: e.data
1804
+ };
1805
+ });
1806
+ }
1807
+ function Jt(t) {
1808
+ const e = [];
1809
+ for (let n = 0; n < t.length; n++)
1810
+ for (let r = n + 1; r < t.length; r++) {
1811
+ const i = t[n], s = t[r];
1812
+ e.push(
1813
+ ...Te(i, s),
1814
+ ...Te(s, i)
1815
+ );
1816
+ }
1817
+ return e;
1818
+ }
1819
+ function Nt(t, e) {
1820
+ const n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
1821
+ t.forEach((s) => {
1822
+ n.add(s.id), r.set(M(Pe(s.spec)), s);
1823
+ });
1824
+ const i = /* @__PURE__ */ new Map();
1825
+ for (const s of e) {
1826
+ if (n.has(s.id)) continue;
1827
+ const o = M(Pe(s.spec));
1828
+ if (!r.has(o)) {
1829
+ for (const a of r.values())
1830
+ if (Je(a.spec, s.spec)) {
1831
+ i.set(o, s);
1832
+ break;
1833
+ }
1834
+ }
1835
+ }
1836
+ return [...r.values(), ...i.values()];
1837
+ }
1838
+ function En(t, e) {
1839
+ if (!e) return;
1840
+ const n = t.resultPool.getData().entries.map((s) => s.obj).filter(ye), r = Nt(e, n), i = [...r, ...Jt(r)];
1841
+ if (!i.some(
1842
+ (s) => s.data instanceof E && !s.data.getIsReadyOrError()
1843
+ ))
1844
+ return t.createPFrame(i);
1845
+ }
1846
+ function Dn(t) {
1734
1847
  const e = t.type;
1735
1848
  switch (e) {
1736
1849
  case "axis":
1737
- return re(t);
1850
+ return M(t);
1738
1851
  case "column":
1739
- return re(t);
1852
+ return M(t);
1740
1853
  default:
1741
1854
  throw Error(`unsupported column type: ${e}`);
1742
1855
  }
1743
1856
  }
1744
- function Ot(t) {
1745
- return JSON.parse(t);
1746
- }
1747
- function Rt(t) {
1857
+ function Ut(t) {
1748
1858
  return t.axesSpec.length === 1 && t.name === "pl7.app/label";
1749
1859
  }
1750
- function Je(t) {
1860
+ function Ne(t) {
1751
1861
  return new me().addAxisLabelProvider(t).addColumnProvider(t).getColumns({
1752
1862
  name: "pl7.app/label",
1753
1863
  axes: [{}]
1754
1864
  // exactly one axis
1755
1865
  }, { dontWaitAllData: !0 });
1756
1866
  }
1757
- function Ne(t, e) {
1867
+ function Ue(t, e) {
1758
1868
  const n = [], r = [];
1759
1869
  for (const a of t)
1760
- Rt(a.spec) ? n.push(a) : r.push(a);
1870
+ Ut(a.spec) ? n.push(a) : r.push(a);
1761
1871
  const i = [];
1762
1872
  for (const a of r)
1763
1873
  for (const l of a.spec.axesSpec) {
1764
- const u = O(l);
1765
- i.some((p) => K(p, u)) || i.push(u);
1874
+ const u = R(l);
1875
+ i.some((d) => K(d, u)) || i.push(u);
1766
1876
  }
1767
1877
  for (const a of n) {
1768
- const l = O(a.spec.axesSpec[0]), u = i.findIndex((p) => K(p, l));
1878
+ const l = R(a.spec.axesSpec[0]), u = i.findIndex((d) => K(d, l));
1769
1879
  u !== -1 && i.splice(u, 1);
1770
1880
  }
1771
1881
  const s = (a, l) => {
1772
1882
  let u = a.toString();
1773
1883
  if (l)
1774
- for (const p in l)
1775
- u += p, u += l[p];
1884
+ for (const d in l)
1885
+ u += d, u += l[d];
1776
1886
  return u;
1777
1887
  }, o = [];
1778
1888
  for (const a of e) {
1779
- const l = a.spec.axesSpec[0], u = O(l), p = i.findIndex((h) => K(h, u));
1780
- if (p !== -1) {
1781
- const h = i[p], w = Object.keys(h.domain ?? {}).length, g = Object.keys(l.domain ?? {}).length;
1889
+ const l = a.spec.axesSpec[0], u = R(l), d = i.findIndex((h) => K(h, u));
1890
+ if (d !== -1) {
1891
+ const h = i[d], w = Object.keys(h.domain ?? {}).length, g = Object.keys(l.domain ?? {}).length;
1782
1892
  w > g ? o.push({
1783
1893
  id: s(a.id, h.domain),
1784
1894
  spec: {
@@ -1786,12 +1896,12 @@ function Ne(t, e) {
1786
1896
  axesSpec: [{ ...h, annotations: l.annotations }]
1787
1897
  },
1788
1898
  data: a.data
1789
- }) : o.push(a), i.splice(p, 1);
1899
+ }) : o.push(a), i.splice(d, 1);
1790
1900
  }
1791
1901
  }
1792
1902
  return o;
1793
1903
  }
1794
- function Ue(t) {
1904
+ function Be(t) {
1795
1905
  const e = (i) => Array.isArray(i), n = (i) => i instanceof E, r = (i) => typeof i == "object" && "type" in i;
1796
1906
  return t.map((i) => i.data).every((i) => {
1797
1907
  if (e(i))
@@ -1811,7 +1921,7 @@ function Ue(t) {
1811
1921
  throw Error(`unsupported column data type: ${i}`);
1812
1922
  });
1813
1923
  }
1814
- function Be(t, e, n, r, i, s) {
1924
+ function Me(t, e, n, r, i, s) {
1815
1925
  let o = t;
1816
1926
  const a = [];
1817
1927
  if (s) {
@@ -1832,56 +1942,60 @@ function Be(t, e, n, r, i, s) {
1832
1942
  sorting: i
1833
1943
  };
1834
1944
  }
1835
- function Tn(t, e, n, r) {
1836
- var u, p;
1945
+ function Fn(t, e, n, r) {
1946
+ var u, d;
1837
1947
  Array.isArray(r) && (r = { filters: r });
1838
- 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 = ((p = n == null ? void 0 : n.pTableParams) == null ? void 0 : p.sorting) ?? [], a = Je(t.resultPool);
1948
+ 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 = ((d = n == null ? void 0 : n.pTableParams) == null ? void 0 : d.sorting) ?? [], a = Ne(t.resultPool);
1839
1949
  if (!a) return;
1840
- const l = Ne(e.map(Ee), a);
1841
- if (Ue([...e, ...l]))
1950
+ const l = Ue(e.map(Ee), a);
1951
+ if (Be([...e, ...l]))
1842
1952
  return t.createPTable(
1843
- Be(e, l, i, s, o, r == null ? void 0 : r.coreColumnPredicate)
1953
+ Me(e, l, i, s, o, r == null ? void 0 : r.coreColumnPredicate)
1844
1954
  );
1845
1955
  }
1846
- function kt(t) {
1956
+ function Bt(t) {
1957
+ var e;
1958
+ return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "hidden";
1959
+ }
1960
+ function Mt(t) {
1847
1961
  var e;
1848
1962
  return ((e = t.annotations) == null ? void 0 : e["pl7.app/table/visibility"]) === "optional";
1849
1963
  }
1850
- function Ln(t, e, n, r, i) {
1851
- var c, y;
1852
- const s = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((c = r == null ? void 0 : r.pTableParams) == null ? void 0 : c.filters) ?? []], a = ((y = r == null ? void 0 : r.pTableParams) == null ? void 0 : y.sorting) ?? [], l = e.find((d) => n(d.spec));
1853
- if (!l) return;
1854
- const u = Je(t.resultPool);
1964
+ function Rn(t, e, n, r, i) {
1965
+ var v, b;
1966
+ const s = (i == null ? void 0 : i.coreJoinType) ?? "full", o = [...(i == null ? void 0 : i.filters) ?? [], ...((v = r == null ? void 0 : r.pTableParams) == null ? void 0 : v.filters) ?? []], a = ((b = r == null ? void 0 : r.pTableParams) == null ? void 0 : b.sorting) ?? [], l = e.filter((p) => !Bt(p.spec)), u = l.find((p) => n(p.spec));
1855
1967
  if (!u) return;
1856
- const p = new Set((() => {
1857
- var b, A;
1968
+ const d = Ne(t.resultPool);
1969
+ if (!d) return;
1970
+ const h = new Set((() => {
1971
+ var A, x;
1858
1972
  if (s === "inner") return [];
1859
- const d = (A = (b = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : b.hiddenColIds) == null ? void 0 : A.map(Ot).filter((v) => v.type === "column").map((v) => v.id);
1860
- return d || e.filter((v) => kt(v.spec)).map((v) => v.id);
1973
+ const p = (x = (A = r == null ? void 0 : r.gridState.columnVisibility) == null ? void 0 : A.hiddenColIds) == null ? void 0 : x.map(lt).filter((y) => y.type === "column").map((y) => y.id);
1974
+ return p || l.filter((y) => Mt(y.spec)).map((y) => y.id);
1861
1975
  })());
1862
- p.delete(l.id), [...o.map((d) => d.column), ...a.map((d) => d.column)].filter((d) => d.type === "column").map((d) => p.delete(d.id));
1863
- const h = e.filter((d) => !p.has(d.id)), w = Ne(h.map(Ee), u), g = [
1864
- ...l.spec.axesSpec.map((d) => ({
1976
+ h.delete(u.id), [...o.map((p) => p.column), ...a.map((p) => p.column)].filter((p) => p.type === "column").map((p) => h.delete(p.id));
1977
+ const w = l.filter((p) => !h.has(p.id)), g = Ue(w.map(Ee), d), m = [
1978
+ ...u.spec.axesSpec.map((p) => ({
1865
1979
  type: "axis",
1866
- id: O(d),
1867
- spec: d
1980
+ id: R(p),
1981
+ spec: p
1868
1982
  })),
1869
- ...[...e, ...w].map((d) => ({
1983
+ ...[...l, ...g].map((p) => ({
1870
1984
  type: "column",
1871
- id: d.id,
1872
- spec: d.spec
1985
+ id: p.id,
1986
+ spec: p.spec
1873
1987
  }))
1874
1988
  ];
1875
- if (!Ue([...h, ...w])) return;
1876
- const m = t.createPTable(
1877
- Be(e, w, s, o, a, i == null ? void 0 : i.coreColumnPredicate)
1989
+ if (!Be([...w, ...g])) return;
1990
+ const c = t.createPTable(
1991
+ Me(l, g, s, o, a, i == null ? void 0 : i.coreColumnPredicate)
1878
1992
  );
1879
1993
  return {
1880
- tableSpec: g,
1881
- tableHandle: m
1994
+ tableSpec: m,
1995
+ tableHandle: c
1882
1996
  };
1883
1997
  }
1884
- function En(t, e, n) {
1998
+ function On(t, e, n) {
1885
1999
  const r = t.resultPool.findLabels(e);
1886
2000
  return {
1887
2001
  axis: e,
@@ -1892,120 +2006,41 @@ function En(t, e, n) {
1892
2006
  defaultValue: n[0]
1893
2007
  };
1894
2008
  }
1895
- const jt = (t, e) => {
1896
- let n = t.toString();
1897
- return e == null || e.forEach((r) => {
1898
- if (r)
1899
- for (const [i, s] of Object.entries(r))
1900
- n += i, n += s;
1901
- }), n;
1902
- };
1903
- function Vt(t) {
1904
- if (!t.length)
1905
- return [];
1906
- let e = [[]];
1907
- return t.forEach((n) => {
1908
- const r = [];
1909
- n.forEach((i) => {
1910
- r.push(...e.map((s) => [...s, i]));
1911
- }), e = r;
1912
- }), e;
1913
- }
1914
- function Kt(t, e) {
1915
- const n = t.axesSpec.map(O);
1916
- return e.axesSpec.map(O).every((i) => n.some((s) => K(s, i) && K(i, s)));
1917
- }
1918
- function Me(t, e) {
1919
- const n = t.axesSpec.map(O);
1920
- return e.axesSpec.map(O).every((i) => n.some((s) => K(s, i)));
2009
+ function kn(t) {
2010
+ const e = t.type;
2011
+ switch (e) {
2012
+ case "axis":
2013
+ return M(t);
2014
+ case "column":
2015
+ return M(t);
2016
+ default:
2017
+ throw Error(`unsupported column type: ${e}`);
2018
+ }
1921
2019
  }
1922
- const $t = "pl7.app/graph/isVirtual", Ie = "pl7.app/label";
1923
- function Te(t, e) {
1924
- const n = t.spec.axesSpec.map(O), r = e.spec.axesSpec.map(O);
1925
- if (Kt(t.spec, e.spec))
1926
- return [];
1927
- if (!Me(t.spec, e.spec))
1928
- return [];
1929
- const o = r.map((h) => n.filter((w) => K(w, h))), a = Vt(o), l = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), p = a.map((h) => {
1930
- const w = /* @__PURE__ */ new Set();
1931
- return h.map((g, m) => {
1932
- const c = e.spec.axesSpec[m].domain, y = g.domain;
1933
- return Object.entries(y ?? {}).forEach(([d, b]) => {
1934
- if ((c == null ? void 0 : c[d]) === void 0) {
1935
- const A = JSON.stringify([d, b]);
1936
- w.add(A), l.add(A);
1937
- }
1938
- }), {
1939
- ...g,
1940
- annotations: e.spec.axesSpec[m].annotations
1941
- };
1942
- }), w;
1943
- });
1944
- return [...l].forEach((h) => {
1945
- p.some((w) => !w.has(h)) && u.add(h);
1946
- }), a.map((h, w) => {
1947
- var d;
1948
- const g = jt(e.id, h.map((b) => b.domain)), m = ((d = e.spec.annotations) == null ? void 0 : d[Ie]) ?? "", c = [...p[w]].filter((b) => u.has(b)).sort().map((b) => {
1949
- var A;
1950
- return (A = JSON.parse(b)) == null ? void 0 : A[1];
1951
- }).join(" / "), y = {
1952
- ...e.spec.annotations,
1953
- [$t]: "true"
1954
- };
1955
- return (m || c) && (y[Ie] = m && c ? m + " / " + c : m + c), {
1956
- id: g,
2020
+ function jn(t, e, n, r) {
2021
+ if (!(!e || e.axesSpec.length === 0))
2022
+ return {
2023
+ id: t,
1957
2024
  spec: {
1958
- ...e.spec,
1959
- axesSpec: h.map((b, A) => ({
1960
- ...b,
1961
- annotations: e.spec.axesSpec[A].annotations
1962
- })),
1963
- annotations: y
2025
+ kind: "PColumn",
2026
+ valueType: "Int",
2027
+ name: "pl7.app/table/row-selection",
2028
+ axesSpec: e.axesSpec,
2029
+ ...r && { domain: r },
2030
+ annotations: {
2031
+ "pl7.app/label": n ?? "Selected rows",
2032
+ "pl7.app/discreteValues": "[1]"
2033
+ }
1964
2034
  },
1965
- data: e.data
2035
+ data: e.selectedKeys.filter((i) => !i.some((s) => ut(s))).map((i) => ({ key: i, val: 1 }))
1966
2036
  };
1967
- });
1968
2037
  }
1969
- function Jt(t) {
1970
- const e = [];
1971
- for (let n = 0; n < t.length; n++)
1972
- for (let r = n + 1; r < t.length; r++) {
1973
- const i = t[n], s = t[r];
1974
- e.push(
1975
- ...Te(i, s),
1976
- ...Te(s, i)
1977
- );
1978
- }
1979
- return e;
1980
- }
1981
- function Nt(t, e) {
1982
- const n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
1983
- t.forEach((s) => {
1984
- n.add(s.id), r.set(re(Pe(s.spec)), s);
1985
- });
1986
- const i = /* @__PURE__ */ new Map();
1987
- for (const s of e) {
1988
- if (n.has(s.id)) continue;
1989
- const o = re(Pe(s.spec));
1990
- if (!r.has(o)) {
1991
- for (const a of r.values())
1992
- if (Me(a.spec, s.spec)) {
1993
- i.set(o, s);
1994
- break;
1995
- }
1996
- }
1997
- }
1998
- return [...r.values(), ...i.values()];
2038
+ function Vn(t) {
2039
+ if (t === ct)
2040
+ throw new Error("Axis value can never be N/A");
2041
+ return t;
1999
2042
  }
2000
- function Dn(t, e) {
2001
- if (!e) return;
2002
- const n = t.resultPool.getData().entries.map((s) => s.obj).filter(ye), r = Nt(e, n), i = [...r, ...Jt(r)];
2003
- if (!i.some(
2004
- (s) => s.data instanceof E && !s.data.getIsReadyOrError()
2005
- ))
2006
- return t.createPFrame(i);
2007
- }
2008
- class Fn {
2043
+ class Kn {
2009
2044
  constructor(e) {
2010
2045
  this.handle = e;
2011
2046
  }
@@ -2025,121 +2060,124 @@ class Fn {
2025
2060
  return await platforma.pFrameDriver.getUniqueValues(this.handle, e);
2026
2061
  }
2027
2062
  }
2028
- function Ut(t) {
2063
+ function Wt(t) {
2029
2064
  return Fe({
2030
2065
  __isRef: !0,
2031
2066
  blockId: ie(t, "blockId"),
2032
2067
  name: ie(t, "name")
2033
2068
  });
2034
2069
  }
2035
- function On(t) {
2070
+ function $n(t) {
2036
2071
  return Fe({
2037
- ref: Ut(ie(t, "ref")),
2072
+ ref: Wt(ie(t, "ref")),
2038
2073
  label: ie(t, "label")
2039
2074
  });
2040
2075
  }
2041
- const Rn = {
2042
- sdkVersion: z
2076
+ const Jn = {
2077
+ sdkVersion: Y
2043
2078
  };
2044
- function Bt() {
2045
- return Oe({ sdkVersion: z });
2079
+ function Gt() {
2080
+ return Re({ sdkVersion: Y });
2046
2081
  }
2047
- function kn(t) {
2082
+ function Nn(t) {
2048
2083
  try {
2049
- return Bt();
2084
+ return Gt();
2050
2085
  } catch {
2051
2086
  return t;
2052
2087
  }
2053
2088
  }
2054
- function jn(t) {
2089
+ function Un(t) {
2055
2090
  if (typeof globalThis.getEnvironmentValue == "function")
2056
2091
  return globalThis.getEnvironmentValue(t);
2057
2092
  }
2058
2093
  export {
2059
- Yt as Args,
2094
+ Zt as Args,
2060
2095
  L as BlockModel,
2061
- Rn as CurrentSdkInfo,
2096
+ Jn as CurrentSdkInfo,
2062
2097
  I as FutureRef,
2063
2098
  $t as IS_VIRTUAL_COLUMN,
2064
- Xt as It,
2065
- Cn as JsRenderInternal,
2099
+ en as It,
2100
+ In as JsRenderInternal,
2066
2101
  Ie as LABEL_ANNOTATION,
2067
- Qt as MainOutputs,
2068
- lt as OutputError,
2069
- gt as PAnnotationLabel,
2070
- mt as PAnnotationTrace,
2102
+ tn as MainOutputs,
2103
+ pt as OutputError,
2104
+ vt as PAnnotationLabel,
2105
+ bt as PAnnotationTrace,
2071
2106
  me as PColumnCollection,
2072
- Fn as PFrameImpl,
2107
+ Kn as PFrameImpl,
2073
2108
  B as RT_BINARY_PARTITIONED,
2074
- q as RT_BINARY_SUPER_PARTITIONED,
2075
- H as RT_JSON_PARTITIONED,
2109
+ z as RT_BINARY_SUPER_PARTITIONED,
2110
+ q as RT_JSON_PARTITIONED,
2076
2111
  ae as RT_JSON_SUPER_PARTITIONED,
2077
2112
  se as RT_RESOURCE_MAP,
2078
2113
  oe as RT_RESOURCE_MAP_PARTITIONED,
2079
- ee as RenderCtx,
2080
- Dt as ResultPool,
2081
- Zt as StagingOutputs,
2082
- vt as Trace,
2083
- yt as TraceEntry,
2114
+ te as RenderCtx,
2115
+ Ot as ResultPool,
2116
+ nn as StagingOutputs,
2117
+ At as Trace,
2118
+ wt as TraceEntry,
2084
2119
  E as TreeNodeAccessor,
2085
- en as UiState,
2086
- Ue as allColumnsComputed,
2087
- ln as and,
2088
- Ct as convertOrParsePColumnData,
2089
- Dn as createPFrameForGraphs,
2090
- Tn as createPlDataTable,
2091
- En as createPlDataTableSheet,
2092
- Ln as createPlDataTableV2,
2120
+ rn as UiState,
2121
+ Be as allColumnsComputed,
2122
+ pn as and,
2123
+ It as convertOrParsePColumnData,
2124
+ En as createPFrameForGraphs,
2125
+ Fn as createPlDataTable,
2126
+ On as createPlDataTableSheet,
2127
+ Rn as createPlDataTableV2,
2128
+ jn as createRowSelectionColumn,
2093
2129
  Ve as deriveLabels,
2094
- de as downgradeCfgOrLambda,
2130
+ pe as downgradeCfgOrLambda,
2095
2131
  Nt as enrichColumnsWithCompatible,
2096
- vn as extractArchiveAndGetURL,
2097
- _n as extractConfig,
2098
- St as filterDataInfoEntries,
2099
- sn as flatten,
2100
- On as fromPlOption,
2101
- Ut as fromPlRef,
2132
+ An as extractArchiveAndGetURL,
2133
+ Ln as extractConfig,
2134
+ Tt as filterDataInfoEntries,
2135
+ ln as flatten,
2136
+ $n as fromPlOption,
2137
+ Wt as fromPlRef,
2102
2138
  Jt as getAdditionalColumns,
2103
- Je as getAllLabelColumns,
2104
- fn as getBlobContent,
2105
- gn as getBlobContentAsJson,
2106
- hn as getBlobContentAsString,
2107
- mn as getDownloadedBlobContent,
2108
- jn as getEnvironmentValue,
2109
- X as getFromCfg,
2110
- ne as getImmediate,
2111
- bn as getImportProgress,
2139
+ Ne as getAllLabelColumns,
2140
+ mn as getBlobContent,
2141
+ vn as getBlobContentAsJson,
2142
+ yn as getBlobContentAsString,
2143
+ bn as getDownloadedBlobContent,
2144
+ Un as getEnvironmentValue,
2145
+ Q as getFromCfg,
2146
+ re as getImmediate,
2147
+ xn as getImportProgress,
2112
2148
  ie as getJsonField,
2113
- wn as getLastLogs,
2114
- Pn as getLogHandle,
2115
- Ne as getMatchingLabelColumns,
2116
- yn as getOnDemandBlobContent,
2117
- At as getPartitionKeysList,
2118
- kn as getPlatformaOrDefault,
2119
- An as getProgressLog,
2120
- xn as getProgressLogWithInfo,
2121
- Bt as getRawPlatformaInstance,
2122
- cn as getResourceField,
2123
- dn as getResourceValueAsJson,
2124
- Pt as getUniquePartitionKeys,
2125
- pe as ifDef,
2126
- kt as isColumnOptional,
2127
- Ft as isConfigLambda,
2128
- on as isEmpty,
2129
- Rt as isLabelColumn,
2130
- zt as isolate,
2131
- tn as makeArray,
2149
+ Pn as getLastLogs,
2150
+ _n as getLogHandle,
2151
+ Ue as getMatchingLabelColumns,
2152
+ wn as getOnDemandBlobContent,
2153
+ Ct as getPartitionKeysList,
2154
+ Nn as getPlatformaOrDefault,
2155
+ Cn as getProgressLog,
2156
+ Sn as getProgressLogWithInfo,
2157
+ Gt as getRawPlatformaInstance,
2158
+ fn as getResourceField,
2159
+ hn as getResourceValueAsJson,
2160
+ _t as getUniquePartitionKeys,
2161
+ de as ifDef,
2162
+ Bt as isColumnHidden,
2163
+ Mt as isColumnOptional,
2164
+ kt as isConfigLambda,
2165
+ un as isEmpty,
2166
+ Ut as isLabelColumn,
2167
+ Qt as isolate,
2168
+ sn as makeArray,
2132
2169
  Fe as makeObject,
2133
- rn as mapArrayValues,
2134
- nn as mapRecordValues,
2135
- pn as mapResourceFields,
2136
- an as not,
2137
- un as or,
2170
+ an as mapArrayValues,
2171
+ Vn as mapPTableValueToAxisKey,
2172
+ on as mapRecordValues,
2173
+ gn as mapResourceFields,
2174
+ cn as not,
2175
+ dn as or,
2138
2176
  ge as parsePColumnData,
2139
- Ot as parsePTableColumnId,
2140
- Sn as parseResourceMap,
2141
- ut as readOutput,
2142
- In as stringifyPTableColumnId,
2143
- qt as wrapOutputs
2177
+ Tn as parseResourceMap,
2178
+ dt as readOutput,
2179
+ kn as stringifyPTableColumnId,
2180
+ Dn as stringifyPTableColumnSpec,
2181
+ Xt as wrapOutputs
2144
2182
  };
2145
2183
  //# sourceMappingURL=index.mjs.map