@platforma-sdk/model 1.22.97 → 1.23.4

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,65 +1,65 @@
1
- var he = Object.defineProperty;
2
- var ge = (t, e, n) => e in t ? he(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
- var S = (t, e, n) => ge(t, typeof e != "symbol" ? e + "" : e, n);
4
- import { isPColumn as N, mapPObjectData as U, mapValueInVOE as me, ensurePColumn as ye, isPColumnSpec as Z, extractAllColumns as be, mapPTableDef as ve, getAxisId as w, matchAxisId as O } from "@milaboratories/pl-model-common";
1
+ var ve = Object.defineProperty;
2
+ var _e = (t, e, n) => e in t ? ve(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
+ var P = (t, e, n) => _e(t, typeof e != "symbol" ? e + "" : e, n);
4
+ import { isPColumn as B, mapPObjectData as N, selectorsToPredicate as te, AnchorIdDeriver as $, isPlRef as Ae, resolveAnchors as ne, isPColumnSpec as G, mapValueInVOE as Se, ensurePColumn as we, extractAllColumns as Ie, mapPTableDef as Pe, getAxisId as R, matchAxisId as D } from "@milaboratories/pl-model-common";
5
5
  export * from "@milaboratories/pl-model-common";
6
- import { z as P } from "zod";
7
- class _e extends Error {
6
+ import { z as T } from "zod";
7
+ class Ce extends Error {
8
8
  constructor(e, n) {
9
9
  super(`${e.length}${n ? "+" : ""} errors, first error: ` + e[0]), this.errors = e, this.moreErrors = n;
10
10
  }
11
11
  }
12
- function Se(t) {
13
- if (!t.ok) throw new _e(t.errors, t.moreErrors);
12
+ function Re(t) {
13
+ if (!t.ok) throw new Ce(t.errors, t.moreErrors);
14
14
  return t.value;
15
15
  }
16
- function qe(t) {
16
+ function Ze(t) {
17
17
  return new Proxy(t, {
18
18
  get(e, n) {
19
- return Se(e[n]);
19
+ return Re(e[n]);
20
20
  }
21
21
  });
22
22
  }
23
- function m(t) {
23
+ function y(t) {
24
24
  return typeof t == "string" || typeof t == "number" || typeof t == "boolean" || t === null ? j(t) : t;
25
25
  }
26
- function k(t) {
26
+ function O(t) {
27
27
  return { type: "GetFromCtx", variable: t };
28
28
  }
29
- function ze(t) {
29
+ function et(t) {
30
30
  return {
31
31
  type: "Isolate",
32
32
  cfg: t
33
33
  };
34
34
  }
35
- const Ye = k("$args"), Xe = k("$it"), Qe = k("$prod"), Ze = k("$staging"), et = k("$ui");
35
+ const tt = O("$args"), nt = O("$it"), st = O("$prod"), rt = O("$staging"), it = O("$ui");
36
36
  function j(t) {
37
37
  return { type: "Immediate", value: t };
38
38
  }
39
- function ie(t) {
39
+ function ce(t) {
40
40
  const e = {};
41
- for (const [n, r] of Object.entries(t)) e[n] = m(r);
41
+ for (const [n, s] of Object.entries(t)) e[n] = y(s);
42
42
  return {
43
43
  type: "MakeObject",
44
44
  template: e
45
45
  };
46
46
  }
47
- function tt(...t) {
47
+ function ot(...t) {
48
48
  const e = [];
49
- for (const n of t) e.push(m(n));
49
+ for (const n of t) e.push(y(n));
50
50
  return {
51
51
  type: "MakeArray",
52
52
  template: e
53
53
  };
54
54
  }
55
- function B(t, e) {
55
+ function U(t, e) {
56
56
  return {
57
57
  type: "GetJsonField",
58
- source: m(t),
59
- field: m(e)
58
+ source: y(t),
59
+ field: y(e)
60
60
  };
61
61
  }
62
- function nt(t, e, n = "$it") {
62
+ function at(t, e, n = "$it") {
63
63
  return {
64
64
  type: "MapRecordValues",
65
65
  source: t,
@@ -67,7 +67,7 @@ function nt(t, e, n = "$it") {
67
67
  itVar: n
68
68
  };
69
69
  }
70
- function rt(t, e, n = "$it") {
70
+ function lt(t, e, n = "$it") {
71
71
  return {
72
72
  type: "MapArrayValues",
73
73
  source: t,
@@ -75,54 +75,54 @@ function rt(t, e, n = "$it") {
75
75
  itVar: n
76
76
  };
77
77
  }
78
- function st(t) {
78
+ function ut(t) {
79
79
  return {
80
80
  type: "Flatten",
81
81
  source: t
82
82
  };
83
83
  }
84
- function it(t) {
84
+ function ct(t) {
85
85
  return {
86
86
  type: "IsEmpty",
87
87
  arg: t
88
88
  };
89
89
  }
90
- function ot(t) {
90
+ function dt(t) {
91
91
  return {
92
92
  type: "Not",
93
93
  operand: t
94
94
  };
95
95
  }
96
- function at(t, e) {
96
+ function pt(t, e) {
97
97
  return {
98
98
  type: "And",
99
99
  operand1: t,
100
100
  operand2: e
101
101
  };
102
102
  }
103
- function lt(t, e) {
103
+ function ft(t, e) {
104
104
  return {
105
105
  type: "Or",
106
106
  operand1: t,
107
107
  operand2: e
108
108
  };
109
109
  }
110
- function ut(t, e) {
110
+ function ht(t, e) {
111
111
  return {
112
112
  type: "GetResourceField",
113
- source: m(t),
114
- field: m(e)
113
+ source: y(t),
114
+ field: y(e)
115
115
  };
116
116
  }
117
- function ct() {
117
+ function gt() {
118
118
  return function(t) {
119
119
  return {
120
120
  type: "GetResourceValueAsJson",
121
- source: m(t)
121
+ source: y(t)
122
122
  };
123
123
  };
124
124
  }
125
- function dt(t, e, n = "$it") {
125
+ function mt(t, e, n = "$it") {
126
126
  return {
127
127
  type: "MapResourceFields",
128
128
  source: t,
@@ -130,158 +130,158 @@ function dt(t, e, n = "$it") {
130
130
  itVar: n
131
131
  };
132
132
  }
133
- function pt(t) {
133
+ function yt(t) {
134
134
  return {
135
135
  type: "GetBlobContent",
136
- source: m(t)
136
+ source: y(t)
137
137
  };
138
138
  }
139
- function ft(t) {
139
+ function bt(t) {
140
140
  return {
141
141
  type: "GetBlobContentAsString",
142
- source: m(t)
142
+ source: y(t)
143
143
  };
144
144
  }
145
- function ht() {
145
+ function vt() {
146
146
  return function(t) {
147
147
  return {
148
148
  type: "GetBlobContentAsJson",
149
- source: m(t)
149
+ source: y(t)
150
150
  };
151
151
  };
152
152
  }
153
- function gt(t) {
153
+ function _t(t) {
154
154
  return {
155
155
  type: "GetDownloadedBlobContent",
156
- source: m(t)
156
+ source: y(t)
157
157
  };
158
158
  }
159
- function mt(t) {
159
+ function At(t) {
160
160
  return {
161
161
  type: "GetOnDemandBlobContent",
162
- source: m(t)
162
+ source: y(t)
163
163
  };
164
164
  }
165
- function yt(t, e) {
165
+ function St(t, e) {
166
166
  return {
167
167
  type: "ExtractArchiveAndGetURL",
168
168
  format: e,
169
- source: m(t)
169
+ source: y(t)
170
170
  };
171
171
  }
172
- function bt(t) {
172
+ function wt(t) {
173
173
  return {
174
174
  type: "GetImportProgress",
175
- source: m(t)
175
+ source: y(t)
176
176
  };
177
177
  }
178
- function vt(t, e) {
178
+ function It(t, e) {
179
179
  return {
180
180
  type: "GetLastLogs",
181
- source: m(t),
181
+ source: y(t),
182
182
  lines: e
183
183
  };
184
184
  }
185
- function _t(t, e) {
185
+ function Pt(t, e) {
186
186
  return {
187
187
  type: "GetProgressLog",
188
- source: m(t),
188
+ source: y(t),
189
189
  patternToSearch: e
190
190
  };
191
191
  }
192
- function St(t, e) {
192
+ function Ct(t, e) {
193
193
  return {
194
194
  type: "GetProgressLogWithInfo",
195
- source: m(t),
195
+ source: y(t),
196
196
  patternToSearch: e
197
197
  };
198
198
  }
199
- function At(t) {
199
+ function Rt(t) {
200
200
  return {
201
201
  type: "GetLogHandle",
202
- source: m(t)
202
+ source: y(t)
203
203
  };
204
204
  }
205
- function Ae() {
205
+ function Fe() {
206
206
  return typeof globalThis.getPlatforma < "u" || typeof globalThis.platforma < "u";
207
207
  }
208
- function oe(t) {
208
+ function de(t) {
209
209
  if (t && typeof globalThis.getPlatforma == "function")
210
210
  return globalThis.getPlatforma(t);
211
211
  if (typeof globalThis.platforma < "u") return globalThis.platforma;
212
212
  throw new Error("Can't get platforma instance.");
213
213
  }
214
- function we() {
214
+ function Te() {
215
215
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
216
216
  }
217
- function c() {
217
+ function f() {
218
218
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
219
219
  throw new Error("Not in config rendering context");
220
220
  }
221
221
  function E(t, e) {
222
- const n = we();
222
+ const n = Te();
223
223
  if (n === void 0) return !1;
224
224
  if (t in n.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
225
225
  return n.callbackRegistry[t] = e, !0;
226
226
  }
227
- const $ = /* @__PURE__ */ new Map();
228
- function Ie(t, e) {
229
- t in c().callbackRegistry || (c().callbackRegistry[t] = (n) => {
230
- for (const r of $.get(t))
231
- r(n);
232
- }, $.set(t, [])), $.get(t).push(e);
233
- }
234
- class b {
235
- constructor(e, n = (r) => r) {
236
- S(this, "isResolved", !1);
237
- S(this, "resolvedValue");
238
- this.handle = e, this.postProcess = n, Ie(e, (r) => {
239
- this.resolvedValue = n(r), this.isResolved = !0;
227
+ const W = /* @__PURE__ */ new Map();
228
+ function xe(t, e) {
229
+ t in f().callbackRegistry || (f().callbackRegistry[t] = (n) => {
230
+ for (const s of W.get(t))
231
+ s(n);
232
+ }, W.set(t, [])), W.get(t).push(e);
233
+ }
234
+ class _ {
235
+ constructor(e, n = (s) => s) {
236
+ P(this, "isResolved", !1);
237
+ P(this, "resolvedValue");
238
+ this.handle = e, this.postProcess = n, xe(e, (s) => {
239
+ this.resolvedValue = n(s), this.isResolved = !0;
240
240
  });
241
241
  }
242
242
  map(e) {
243
- return new b(this.handle, (n) => e(this.postProcess(n)));
243
+ return new _(this.handle, (n) => e(this.postProcess(n)));
244
244
  }
245
245
  mapDefined(e) {
246
- return new b(this.handle, (n) => {
247
- const r = this.postProcess(n);
248
- return r ? e(r) : void 0;
246
+ return new _(this.handle, (n) => {
247
+ const s = this.postProcess(n);
248
+ return s ? e(s) : void 0;
249
249
  });
250
250
  }
251
251
  toJSON() {
252
252
  return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
253
253
  }
254
254
  }
255
- function H(t, e) {
255
+ function z(t, e) {
256
256
  return t === void 0 ? void 0 : e(t);
257
257
  }
258
- class v {
258
+ class S {
259
259
  constructor(e, n) {
260
260
  this.handle = e, this.resolvePath = n;
261
261
  }
262
262
  resolve(...e) {
263
263
  const n = e.map(
264
- (r) => ({
264
+ (s) => ({
265
265
  assertFieldType: "Input",
266
- ...typeof r == "string" ? { field: r } : r
266
+ ...typeof s == "string" ? { field: s } : s
267
267
  })
268
268
  );
269
269
  return this.resolveWithCommon({}, ...n);
270
270
  }
271
271
  resolveOutput(...e) {
272
272
  const n = e.map(
273
- (r) => ({
273
+ (s) => ({
274
274
  assertFieldType: "Output",
275
- ...typeof r == "string" ? { field: r } : r
275
+ ...typeof s == "string" ? { field: s } : s
276
276
  })
277
277
  );
278
278
  return this.resolveWithCommon({}, ...n);
279
279
  }
280
280
  resolveInput(...e) {
281
281
  const n = e.map(
282
- (r) => ({
282
+ (s) => ({
283
283
  assertFieldType: "Input",
284
- ...typeof r == "string" ? { field: r } : r
284
+ ...typeof s == "string" ? { field: s } : s
285
285
  })
286
286
  );
287
287
  return this.resolveWithCommon({}, ...n);
@@ -290,51 +290,51 @@ class v {
290
290
  return this.resolveWithCommon({}, ...e);
291
291
  }
292
292
  resolveWithCommon(e, ...n) {
293
- const r = [
293
+ const s = [
294
294
  ...this.resolvePath,
295
- ...n.map((s) => typeof s == "string" ? s : s.field)
295
+ ...n.map((r) => typeof r == "string" ? r : r.field)
296
296
  ];
297
- return H(
298
- c().resolveWithCommon(this.handle, e, ...n),
299
- (s) => new v(s, r)
297
+ return z(
298
+ f().resolveWithCommon(this.handle, e, ...n),
299
+ (r) => new S(r, s)
300
300
  );
301
301
  }
302
302
  get resourceType() {
303
- return c().getResourceType(this.handle);
303
+ return f().getResourceType(this.handle);
304
304
  }
305
305
  getInputsLocked() {
306
- return c().getInputsLocked(this.handle);
306
+ return f().getInputsLocked(this.handle);
307
307
  }
308
308
  getOutputsLocked() {
309
- return c().getOutputsLocked(this.handle);
309
+ return f().getOutputsLocked(this.handle);
310
310
  }
311
311
  getIsReadyOrError() {
312
- return c().getIsReadyOrError(this.handle);
312
+ return f().getIsReadyOrError(this.handle);
313
313
  }
314
314
  getIsFinal() {
315
- return c().getIsFinal(this.handle);
315
+ return f().getIsFinal(this.handle);
316
316
  }
317
317
  getError() {
318
318
  const e = [...this.resolvePath, "error"];
319
- return H(
320
- c().getError(this.handle),
321
- (n) => new v(n, e)
319
+ return z(
320
+ f().getError(this.handle),
321
+ (n) => new S(n, e)
322
322
  );
323
323
  }
324
324
  listInputFields() {
325
- return c().listInputFields(this.handle);
325
+ return f().listInputFields(this.handle);
326
326
  }
327
327
  listOutputFields() {
328
- return c().listOutputFields(this.handle);
328
+ return f().listOutputFields(this.handle);
329
329
  }
330
330
  listDynamicFields() {
331
- return c().listDynamicFields(this.handle);
331
+ return f().listDynamicFields(this.handle);
332
332
  }
333
333
  getKeyValueBase64(e) {
334
- return c().getKeyValueBase64(this.handle, e);
334
+ return f().getKeyValueBase64(this.handle, e);
335
335
  }
336
336
  getKeyValueAsString(e) {
337
- return c().getKeyValueAsString(this.handle, e);
337
+ return f().getKeyValueAsString(this.handle, e);
338
338
  }
339
339
  getKeyValueAsJson(e) {
340
340
  const n = this.getKeyValueAsString(e);
@@ -342,10 +342,10 @@ class v {
342
342
  return JSON.parse(n);
343
343
  }
344
344
  getDataBase64() {
345
- return c().getDataBase64(this.handle);
345
+ return f().getDataBase64(this.handle);
346
346
  }
347
347
  getDataAsString() {
348
- return c().getDataAsString(this.handle);
348
+ return f().getDataAsString(this.handle);
349
349
  }
350
350
  getDataAsJson() {
351
351
  const e = this.getDataAsString();
@@ -356,9 +356,9 @@ class v {
356
356
  *
357
357
  */
358
358
  getPColumns(e = !1, n = "") {
359
- const r = this.parsePObjectCollection(e, n);
360
- return r === void 0 ? void 0 : Object.entries(r).map(([, i]) => {
361
- if (!N(i)) throw new Error(`not a PColumn (kind = ${i.spec.kind})`);
359
+ const s = this.parsePObjectCollection(e, n);
360
+ return s === void 0 ? void 0 : Object.entries(s).map(([, i]) => {
361
+ if (!B(i)) throw new Error(`not a PColumn (kind = ${i.spec.kind})`);
362
362
  return i;
363
363
  });
364
364
  }
@@ -366,29 +366,29 @@ class v {
366
366
  *
367
367
  */
368
368
  parsePObjectCollection(e = !1, n = "") {
369
- const r = c().parsePObjectCollection(
369
+ const s = f().parsePObjectCollection(
370
370
  this.handle,
371
371
  e,
372
372
  n,
373
373
  ...this.resolvePath
374
374
  );
375
- if (r === void 0) return;
376
- const s = {};
377
- for (const [i, o] of Object.entries(r)) {
378
- const a = [...this.resolvePath, i];
379
- s[i] = U(o, (l) => new v(l, a));
375
+ if (s === void 0) return;
376
+ const r = {};
377
+ for (const [i, o] of Object.entries(s)) {
378
+ const l = [...this.resolvePath, i];
379
+ r[i] = N(o, (a) => new S(a, l));
380
380
  }
381
- return s;
381
+ return r;
382
382
  }
383
383
  getFileContentAsBase64() {
384
- return new b(c().getBlobContentAsBase64(this.handle));
384
+ return new _(f().getBlobContentAsBase64(this.handle));
385
385
  }
386
386
  getFileContentAsString() {
387
- return new b(c().getBlobContentAsString(this.handle));
387
+ return new _(f().getBlobContentAsString(this.handle));
388
388
  }
389
389
  getFileContentAsJson() {
390
- return new b(
391
- c().getBlobContentAsString(this.handle)
390
+ return new _(
391
+ f().getBlobContentAsString(this.handle)
392
392
  ).mapDefined((e) => JSON.parse(e));
393
393
  }
394
394
  /**
@@ -407,7 +407,7 @@ class v {
407
407
  * @returns downloaded file handle
408
408
  */
409
409
  getFileHandle() {
410
- return new b(c().getDownloadedBlobContentHandle(this.handle));
410
+ return new _(f().getDownloadedBlobContentHandle(this.handle));
411
411
  }
412
412
  /**
413
413
  * @deprecated use getFileHandle
@@ -419,7 +419,7 @@ class v {
419
419
  * @returns downloaded file handle
420
420
  */
421
421
  getRemoteFileHandle() {
422
- return new b(c().getOnDemandBlobContentHandle(this.handle));
422
+ return new _(f().getOnDemandBlobContentHandle(this.handle));
423
423
  }
424
424
  /**
425
425
  * @deprecated use getRemoteFileHandle
@@ -431,22 +431,22 @@ class v {
431
431
  * @returns the url to the extracted folder
432
432
  */
433
433
  extractArchiveAndGetURL(e) {
434
- return new b(c().extractArchiveAndGetURL(this.handle, e));
434
+ return new _(f().extractArchiveAndGetURL(this.handle, e));
435
435
  }
436
436
  getImportProgress() {
437
- return new b(c().getImportProgress(this.handle));
437
+ return new _(f().getImportProgress(this.handle));
438
438
  }
439
439
  getLastLogs(e) {
440
- return new b(c().getLastLogs(this.handle, e));
440
+ return new _(f().getLastLogs(this.handle, e));
441
441
  }
442
442
  getProgressLog(e) {
443
- return new b(c().getProgressLog(this.handle, e));
443
+ return new _(f().getProgressLog(this.handle, e));
444
444
  }
445
445
  getProgressLogWithInfo(e) {
446
- return new b(c().getProgressLogWithInfo(this.handle, e));
446
+ return new _(f().getProgressLogWithInfo(this.handle, e));
447
447
  }
448
448
  getLogHandle() {
449
- return new b(c().getLogHandle(this.handle));
449
+ return new _(f().getLogHandle(this.handle));
450
450
  }
451
451
  allFieldsResolved(e = "Input") {
452
452
  switch (e) {
@@ -461,114 +461,114 @@ class v {
461
461
  }
462
462
  }
463
463
  mapFields(e, n) {
464
- const { fieldType: r, requireLocked: s, skipUnresolved: i } = {
464
+ const { fieldType: s, requireLocked: r, skipUnresolved: i } = {
465
465
  fieldType: "Input",
466
466
  requireLocked: !0,
467
467
  skipUnresolved: !1,
468
468
  ...n
469
469
  }, o = e;
470
- if (s && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
470
+ if (r && (s === "Input" && !this.getInputsLocked() || s === "Output" && !this.getOutputsLocked()))
471
471
  return;
472
- let l = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
473
- (u) => [u, this.resolve({ field: u, assertFieldType: r })]
472
+ let a = (s === "Input" ? this.listInputFields() : s === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
473
+ (u) => [u, this.resolve({ field: u, assertFieldType: s })]
474
474
  );
475
- return i && (l = l.filter((u) => u[1] !== void 0)), l.map(([u, h]) => o(u, h));
475
+ return i && (a = a.filter((u) => u[1] !== void 0)), a.map(([u, g]) => o(u, g));
476
476
  }
477
477
  }
478
- const ae = "staging", le = "main", Ce = {
478
+ const pe = "staging", fe = "main", Le = {
479
479
  inlineColumnsSupport: !0,
480
480
  activeArgs: !0
481
481
  };
482
- function ue(t) {
482
+ function he(t) {
483
483
  return typeof t == "object" && t !== null && "__awaited_futures__" in t;
484
484
  }
485
- function q(t, e, n) {
485
+ function Y(t, e, n) {
486
486
  if (e.has(n)) return;
487
487
  if (e.add(n), typeof n === "object")
488
- if (ue(n)) n.__awaited_futures__.forEach((s) => t.add(s));
488
+ if (he(n)) n.__awaited_futures__.forEach((r) => t.add(r));
489
489
  else if (Array.isArray(n))
490
- for (const s of n) q(t, e, s);
490
+ for (const r of n) Y(t, e, r);
491
491
  else
492
- for (const [, s] of Object.entries(n))
493
- s !== n && q(t, e, s);
492
+ for (const [, r] of Object.entries(n))
493
+ r !== n && Y(t, e, r);
494
494
  }
495
- function Pe(t) {
495
+ function De(t) {
496
496
  const e = /* @__PURE__ */ new Set();
497
- return q(e, /* @__PURE__ */ new Set(), t), e;
497
+ return Y(e, /* @__PURE__ */ new Set(), t), e;
498
498
  }
499
- const wt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
499
+ const Ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
500
500
  __proto__: null,
501
- GlobalCfgRenderCtxFeatureFlags: Ce,
502
- MainAccessorName: le,
503
- StagingAccessorName: ae,
504
- getAllFutureAwaits: Pe,
505
- isFutureAwait: ue
506
- }, Symbol.toStringTag, { value: "Module" })), Fe = "pl7.app/label", Re = "pl7.app/trace", xe = P.object({
507
- type: P.string(),
508
- importance: P.number().optional(),
509
- id: P.string().optional(),
510
- label: P.string()
511
- }), Te = P.array(xe), Oe = 1e-3, ke = "__LABEL__", ee = "__LABEL__@1";
512
- function Le(t, e, n = {}) {
513
- const r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), i = t.map((p) => {
514
- var R, Q;
515
- const g = e(p), f = (R = g.annotations) == null ? void 0 : R[Fe], I = (Q = g.annotations) == null ? void 0 : Q[Re], y = (I ? Te.safeParse(JSON.parse(I)).data : void 0) ?? [];
516
- if (f) {
517
- const A = { label: f, type: ke, importance: -2 };
518
- n.addLabelAsSuffix ? y.push(A) : y.splice(0, 0, A);
501
+ GlobalCfgRenderCtxFeatureFlags: Le,
502
+ MainAccessorName: fe,
503
+ StagingAccessorName: pe,
504
+ getAllFutureAwaits: De,
505
+ isFutureAwait: he
506
+ }, Symbol.toStringTag, { value: "Module" })), Oe = "pl7.app/label", ke = "pl7.app/trace", Ee = T.object({
507
+ type: T.string(),
508
+ importance: T.number().optional(),
509
+ id: T.string().optional(),
510
+ label: T.string()
511
+ }), Ve = T.array(Ee), je = 1e-3, Ne = "__LABEL__", se = "__LABEL__@1";
512
+ function re(t, e, n = {}) {
513
+ const s = /* @__PURE__ */ new Map(), r = /* @__PURE__ */ new Map(), i = t.map((d) => {
514
+ var A, ee;
515
+ const h = e(d), p = (A = h.annotations) == null ? void 0 : A[Oe], b = (ee = h.annotations) == null ? void 0 : ee[ke], m = (b ? Ve.safeParse(JSON.parse(b)).data : void 0) ?? [];
516
+ if (p) {
517
+ const C = { label: p, type: Ne, importance: -2 };
518
+ n.addLabelAsSuffix ? m.push(C) : m.splice(0, 0, C);
519
519
  }
520
- const F = [], D = /* @__PURE__ */ new Map();
521
- for (let A = y.length - 1; A >= 0; --A) {
522
- const { type: M } = y[A], fe = y[A].importance ?? 0, J = (D.get(M) ?? 0) + 1;
523
- D.set(M, J);
524
- const x = `${M}@${J}`;
525
- s.set(x, (s.get(x) ?? 0) + 1), r.set(
520
+ const I = [], v = /* @__PURE__ */ new Map();
521
+ for (let C = m.length - 1; C >= 0; --C) {
522
+ const { type: J } = m[C], be = m[C].importance ?? 0, M = (v.get(J) ?? 0) + 1;
523
+ v.set(J, M);
524
+ const x = `${J}@${M}`;
525
+ r.set(x, (r.get(x) ?? 0) + 1), s.set(
526
526
  x,
527
527
  Math.max(
528
- r.get(x) ?? Number.NEGATIVE_INFINITY,
529
- fe - (y.length - A) * Oe
528
+ s.get(x) ?? Number.NEGATIVE_INFINITY,
529
+ be - (m.length - C) * je
530
530
  )
531
- ), F.push({ ...y[A], fullType: x, occurenceIndex: J });
531
+ ), I.push({ ...m[C], fullType: x, occurenceIndex: M });
532
532
  }
533
- return F.reverse(), {
534
- value: p,
535
- spec: g,
536
- label: f,
537
- fullTrace: F
533
+ return I.reverse(), {
534
+ value: d,
535
+ spec: h,
536
+ label: p,
537
+ fullTrace: I
538
538
  };
539
- }), o = [], a = [], l = [...r];
540
- l.sort(([, p], [, g]) => g - p);
541
- for (const [p] of l)
542
- p.endsWith("@1") || s.get(p) === t.length ? o.push(p) : a.push(p);
543
- const u = (p) => i.map((g) => {
544
- const f = g.fullTrace.filter((y) => p.has(y.fullType)).map((y) => y.label), I = n.separator ?? " / ";
539
+ }), o = [], l = [], a = [...s];
540
+ a.sort(([, d], [, h]) => h - d);
541
+ for (const [d] of a)
542
+ d.endsWith("@1") || r.get(d) === t.length ? o.push(d) : l.push(d);
543
+ const u = (d) => i.map((h) => {
544
+ const p = h.fullTrace.filter((m) => d.has(m.fullType)).map((m) => m.label), b = n.separator ?? " / ";
545
545
  return {
546
- label: f.join(I),
547
- value: g.value
546
+ label: p.join(b),
547
+ value: h.value
548
548
  };
549
549
  });
550
550
  if (o.length === 0) {
551
- if (a.length !== 0) throw new Error("Assertion error.");
552
- return u(new Set(ee));
553
- }
554
- let h = 0, d = 0;
555
- for (; h < o.length; ) {
556
- const p = /* @__PURE__ */ new Set();
557
- n.includeNativeLabel && p.add(ee);
558
- for (let f = 0; f < h; ++f) p.add(o[f]);
559
- p.add(o[d]);
560
- const g = u(p);
561
- if (new Set(g.map((f) => f.label)).size === t.length) return g;
562
- d++, d == o.length && (h++, d = h);
563
- }
564
- return u(/* @__PURE__ */ new Set([...o, ...a]));
565
- }
566
- class De {
551
+ if (l.length !== 0) throw new Error("Assertion error.");
552
+ return u(new Set(se));
553
+ }
554
+ let g = 0, c = 0;
555
+ for (; g < o.length; ) {
556
+ const d = /* @__PURE__ */ new Set();
557
+ n.includeNativeLabel && d.add(se);
558
+ for (let p = 0; p < g; ++p) d.add(o[p]);
559
+ d.add(o[c]);
560
+ const h = u(d);
561
+ if (new Set(h.map((p) => p.label)).size === t.length) return h;
562
+ c++, c == o.length && (g++, c = g);
563
+ }
564
+ return u(/* @__PURE__ */ new Set([...o, ...l]));
565
+ }
566
+ class Ue {
567
567
  constructor() {
568
- S(this, "ctx", c());
569
- S(this, "defaultLabelFn", (e, n) => {
570
- var r;
571
- return ((r = e.annotations) == null ? void 0 : r["pl7.app/label"]) ?? "Unlabelled";
568
+ P(this, "ctx", f());
569
+ P(this, "defaultLabelFn", (e, n) => {
570
+ var s;
571
+ return ((s = e.annotations) == null ? void 0 : s["pl7.app/label"]) ?? "Unlabelled";
572
572
  });
573
573
  }
574
574
  /**
@@ -578,13 +578,33 @@ class De {
578
578
  return this.ctx.calculateOptions(e);
579
579
  }
580
580
  getOptions(e, n) {
581
- const r = this.getSpecs().entries.filter((s) => e(s.obj));
582
- return typeof n == "object" || typeof n > "u" ? Le(r, (s) => s.obj, n ?? {}).map(({ value: { ref: s }, label: i }) => ({
583
- ref: s,
584
- label: i
585
- })) : r.map((s) => ({
586
- ref: s.ref,
587
- label: n(s.obj, s.ref)
581
+ const s = typeof e == "function" ? e : te(e), r = this.getSpecs().entries.filter((i) => s(i.obj));
582
+ return typeof n == "object" || typeof n > "u" ? re(r, (i) => i.obj, n ?? {}).map(({ value: { ref: i }, label: o }) => ({
583
+ ref: i,
584
+ label: o
585
+ })) : r.map((i) => ({
586
+ ref: i.ref,
587
+ label: n(i.obj, i.ref)
588
+ }));
589
+ }
590
+ // Implementation
591
+ getAnchoredOptions(e, n, s) {
592
+ const r = {};
593
+ if (!(e instanceof $))
594
+ for (const [a, u] of Object.entries(e))
595
+ if (Ae(u)) {
596
+ const g = this.getPColumnSpecByRef(u);
597
+ if (!g)
598
+ return;
599
+ r[a] = g;
600
+ } else
601
+ r[a] = u;
602
+ const i = typeof n == "function" ? n : te(
603
+ Array.isArray(n) ? n.map((a) => ne(r, a)) : ne(r, n)
604
+ ), o = this.getSpecs().entries.filter(({ obj: a }) => G(a) ? i(a) : !1), l = e instanceof $ ? e : new $(r);
605
+ return re(o, (a) => a.obj, s ?? {}).map(({ value: { obj: a }, label: u }) => ({
606
+ value: l.deriveString(a),
607
+ label: u
588
608
  }));
589
609
  }
590
610
  /**
@@ -601,7 +621,7 @@ class De {
601
621
  ref: n.ref,
602
622
  obj: {
603
623
  ...n.obj,
604
- data: new v(n.obj.data, [n.ref.blockId, n.ref.name])
624
+ data: new S(n.obj.data, [n.ref.blockId, n.ref.name])
605
625
  }
606
626
  }))
607
627
  };
@@ -620,9 +640,9 @@ class De {
620
640
  ref: n.ref,
621
641
  obj: {
622
642
  ...n.obj,
623
- data: me(
643
+ data: Se(
624
644
  n.obj.data,
625
- (r) => new v(r, [n.ref.blockId, n.ref.name])
645
+ (s) => new S(s, [n.ref.blockId, n.ref.name])
626
646
  )
627
647
  }
628
648
  }))
@@ -644,10 +664,10 @@ class De {
644
664
  getDataByRef(e) {
645
665
  var n;
646
666
  return typeof this.ctx.getDataFromResultPoolByRef > "u" ? (n = this.getData().entries.find(
647
- (r) => r.ref.blockId === e.blockId && r.ref.name === e.name
648
- )) == null ? void 0 : n.obj : U(
667
+ (s) => s.ref.blockId === e.blockId && s.ref.name === e.name
668
+ )) == null ? void 0 : n.obj : N(
649
669
  this.ctx.getDataFromResultPoolByRef(e.blockId, e.name),
650
- (r) => new v(r, [e.blockId, e.name])
670
+ (s) => new S(s, [e.blockId, e.name])
651
671
  );
652
672
  }
653
673
  /**
@@ -658,7 +678,7 @@ class De {
658
678
  getPColumnByRef(e) {
659
679
  const n = this.getDataByRef(e);
660
680
  if (n)
661
- return ye(n);
681
+ return we(n);
662
682
  }
663
683
  /**
664
684
  * Returns spec associated with the ref ensuring that it is a p-column spec.
@@ -668,7 +688,7 @@ class De {
668
688
  getPColumnSpecByRef(e) {
669
689
  const n = this.getSpecByRef(e);
670
690
  if (n) {
671
- if (!Z(n)) throw new Error(`not a PColumn spec (kind = ${n.kind})`);
691
+ if (!G(n)) throw new Error(`not a PColumn spec (kind = ${n.kind})`);
672
692
  return n;
673
693
  }
674
694
  }
@@ -677,10 +697,7 @@ class De {
677
697
  * @returns object spec associated with the ref
678
698
  */
679
699
  getSpecByRef(e) {
680
- var n;
681
- return typeof this.ctx.getSpecFromResultPoolByRef > "u" ? (n = this.getSpecs().entries.find(
682
- (r) => r.ref.blockId === e.blockId && r.ref.name === e.name
683
- )) == null ? void 0 : n.obj : this.ctx.getSpecFromResultPoolByRef(e.blockId, e.name);
700
+ return this.ctx.getSpecFromResultPoolByRef(e.blockId, e.name);
684
701
  }
685
702
  /**
686
703
  * @param spec object specification
@@ -689,23 +706,23 @@ class De {
689
706
  */
690
707
  findDataWithCompatibleSpec(e) {
691
708
  const n = [];
692
- e: for (const r of this.getData().entries) {
693
- if (!Z(r.obj.spec))
709
+ e: for (const s of this.getData().entries) {
710
+ if (!G(s.obj.spec))
694
711
  continue;
695
- const s = r.obj.spec;
696
- if (e.name === s.name && e.valueType === s.valueType && e.axesSpec.length === s.axesSpec.length && z(e.domain, s.domain)) {
712
+ const r = s.obj.spec;
713
+ if (e.name === r.name && e.valueType === r.valueType && e.axesSpec.length === r.axesSpec.length && X(e.domain, r.domain)) {
697
714
  for (let i = 0; i < e.axesSpec.length; ++i) {
698
- const o = e.axesSpec[i], a = s.axesSpec[i];
699
- if (o.name !== a.name || o.type !== a.type || !z(o.domain, a.domain))
715
+ const o = e.axesSpec[i], l = r.axesSpec[i];
716
+ if (o.name !== l.name || o.type !== l.type || !X(o.domain, l.domain))
700
717
  continue e;
701
718
  }
702
- n.push(r.obj);
719
+ n.push(s.obj);
703
720
  }
704
721
  }
705
722
  return n;
706
723
  }
707
724
  }
708
- function z(t, e) {
725
+ function X(t, e) {
709
726
  if (t === void 0) return e === void 0;
710
727
  if (e === void 0) return !0;
711
728
  for (const n in e)
@@ -714,13 +731,13 @@ function z(t, e) {
714
731
  }
715
732
  class V {
716
733
  constructor() {
717
- S(this, "ctx");
718
- S(this, "args");
719
- S(this, "uiState");
734
+ P(this, "ctx");
735
+ P(this, "args");
736
+ P(this, "uiState");
720
737
  // lazy rendering because this feature is rarely used
721
- S(this, "_activeArgsCache");
722
- S(this, "resultPool", new De());
723
- this.ctx = c(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
738
+ P(this, "_activeArgsCache");
739
+ P(this, "resultPool", new Ue());
740
+ this.ctx = f(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
724
741
  }
725
742
  /**
726
743
  * Returns args snapshot the block was executed for (i.e. when "Run" button was pressed).
@@ -736,16 +753,16 @@ class V {
736
753
  // return this.ctx.featureFlags;
737
754
  // }
738
755
  getNamedAccessor(e) {
739
- return H(
756
+ return z(
740
757
  this.ctx.getAccessorHandleByName(e),
741
- (n) => new v(n, [e])
758
+ (n) => new S(n, [e])
742
759
  );
743
760
  }
744
761
  get prerun() {
745
- return this.getNamedAccessor(ae);
762
+ return this.getNamedAccessor(pe);
746
763
  }
747
764
  get outputs() {
748
- return this.getNamedAccessor(le);
765
+ return this.getNamedAccessor(fe);
749
766
  }
750
767
  /**
751
768
  * Find labels data for a given axis id. It will search for a label column and return its data as a map.
@@ -753,43 +770,43 @@ class V {
753
770
  */
754
771
  findLabels(e) {
755
772
  const n = this.resultPool.getData();
756
- for (const r of n.entries) {
757
- if (!N(r.obj)) continue;
758
- const s = r.obj.spec;
759
- if (s.name === "pl7.app/label" && s.axesSpec.length === 1 && s.axesSpec[0].name === e.name && s.axesSpec[0].type === e.type && z(e.domain, s.axesSpec[0].domain)) {
760
- if (r.obj.data.resourceType.name !== "PColumnData/Json")
761
- throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
773
+ for (const s of n.entries) {
774
+ if (!B(s.obj)) continue;
775
+ const r = s.obj.spec;
776
+ if (r.name === "pl7.app/label" && r.axesSpec.length === 1 && r.axesSpec[0].name === e.name && r.axesSpec[0].type === e.type && X(e.domain, r.axesSpec[0].domain)) {
777
+ if (s.obj.data.resourceType.name !== "PColumnData/Json")
778
+ throw Error(`Expected JSON column for labels, got: ${s.obj.data.resourceType.name}`);
762
779
  return Object.fromEntries(
763
780
  Object.entries(
764
- r.obj.data.getDataAsJson().data
781
+ s.obj.data.getDataAsJson().data
765
782
  ).map((o) => [JSON.parse(o[0])[0], o[1]])
766
783
  );
767
784
  }
768
785
  }
769
786
  }
770
787
  verifyInlineColumnsSupport(e) {
771
- var s;
772
- const n = e.some((i) => !(i.data instanceof v)), r = ((s = this.ctx.featureFlags) == null ? void 0 : s.inlineColumnsSupport) === !0;
773
- if (n && !r) throw Error("inline columns not supported");
788
+ var r;
789
+ const n = e.some((i) => !(i.data instanceof S)), s = ((r = this.ctx.featureFlags) == null ? void 0 : r.inlineColumnsSupport) === !0;
790
+ if (n && !s) throw Error("inline columns not supported");
774
791
  }
775
792
  createPFrame(e) {
776
793
  return this.verifyInlineColumnsSupport(e), this.ctx.createPFrame(
777
- e.map((n) => U(n, (r) => r instanceof v ? r.handle : r))
794
+ e.map((n) => N(n, (s) => s instanceof S ? s.handle : s))
778
795
  );
779
796
  }
780
797
  createPTable(e) {
781
- var n;
798
+ let n;
782
799
  return "columns" in e ? n = {
783
800
  src: {
784
801
  type: "full",
785
- entries: e.columns.map((r) => ({ type: "column", column: r }))
802
+ entries: e.columns.map((s) => ({ type: "column", column: s }))
786
803
  },
787
804
  filters: e.filters ?? [],
788
805
  sorting: e.sorting ?? []
789
- } : n = e, this.verifyInlineColumnsSupport(be(n.src)), this.ctx.createPTable(
790
- ve(
806
+ } : n = e, this.verifyInlineColumnsSupport(Ie(n.src)), this.ctx.createPTable(
807
+ Pe(
791
808
  n,
792
- (r) => U(r, (s) => s instanceof v ? s.handle : s)
809
+ (s) => N(s, (r) => r instanceof S ? r.handle : r)
793
810
  )
794
811
  );
795
812
  }
@@ -802,30 +819,30 @@ class V {
802
819
  return this.ctx.getCurrentUnstableMarker();
803
820
  }
804
821
  }
805
- const L = "PColumnData/", Y = L + "ResourceMap", X = L + "Partitioned/ResourceMap", te = L + "JsonPartitioned", G = L + "BinaryPartitioned", ce = L + "Partitioned/", ne = ce + "JsonPartitioned", W = ce + "BinaryPartitioned";
806
- function de(t, e, n, r = [], s) {
822
+ const k = "PColumnData/", Q = k + "ResourceMap", Z = k + "Partitioned/ResourceMap", ie = k + "JsonPartitioned", K = k + "BinaryPartitioned", ge = k + "Partitioned/", oe = ge + "JsonPartitioned", H = ge + "BinaryPartitioned";
823
+ function me(t, e, n, s = [], r) {
807
824
  if (t === void 0) return !1;
808
825
  switch (t.resourceType.name) {
809
- case Y: {
826
+ case Q: {
810
827
  let i = t.getInputsLocked();
811
828
  for (const o of t.listInputFields()) {
812
- const a = t.resolve({ field: o, assertFieldType: "Input" }), l = [...r, ...JSON.parse(o)], u = a === void 0 ? void 0 : e(a);
813
- u === void 0 && (i = !1), (u !== void 0 || s) && n.push({ key: l, value: u });
829
+ const l = t.resolve({ field: o, assertFieldType: "Input" }), a = [...s, ...JSON.parse(o)], u = l === void 0 ? void 0 : e(l);
830
+ u === void 0 && (i = !1), (u !== void 0 || r) && n.push({ key: a, value: u });
814
831
  }
815
832
  return i;
816
833
  }
817
- case X: {
834
+ case Z: {
818
835
  let i = t.getInputsLocked();
819
836
  for (const o of t.listInputFields()) {
820
- const a = t.resolve({ field: o, assertFieldType: "Input" });
821
- if (a === void 0) i = !1;
837
+ const l = t.resolve({ field: o, assertFieldType: "Input" });
838
+ if (l === void 0) i = !1;
822
839
  else {
823
- const l = [...r, ...JSON.parse(o)], u = de(
824
- a,
840
+ const a = [...s, ...JSON.parse(o)], u = me(
841
+ l,
825
842
  e,
826
843
  n,
827
- l,
828
- s
844
+ a,
845
+ r
829
846
  );
830
847
  i = i && u;
831
848
  }
@@ -836,155 +853,155 @@ function de(t, e, n, r = [], s) {
836
853
  throw new Error(`Unknown resource type: ${t.resourceType.name}`);
837
854
  }
838
855
  }
839
- function It(t, e, n = !1) {
840
- const r = [];
841
- return { isComplete: de(t, e, r, [], n), data: r };
856
+ function Tt(t, e, n = !1) {
857
+ const s = [];
858
+ return { isComplete: me(t, e, s, [], n), data: s };
842
859
  }
843
- const re = (t) => {
860
+ const ae = (t) => {
844
861
  if (!t.endsWith(".index")) {
845
862
  if (t.endsWith(".values"))
846
863
  return t.substring(0, t.length - 7);
847
864
  throw Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
848
865
  }
849
866
  };
850
- function Ee(t) {
867
+ function Be(t) {
851
868
  if (!t) return;
852
- const e = t.resourceType.name, n = t.getDataAsJson(), r = [];
853
- let s = 0;
869
+ const e = t.resourceType.name, n = t.getDataAsJson(), s = [];
870
+ let r = 0;
854
871
  switch (e) {
855
- case Y:
856
- s = n.keyLength;
872
+ case Q:
873
+ r = n.keyLength;
857
874
  break;
858
- case X:
859
- s = n.partitionKeyLength + n.keyLength;
875
+ case Z:
876
+ r = n.partitionKeyLength + n.keyLength;
860
877
  break;
861
- case te:
862
- case G:
863
- s = n.partitionKeyLength;
878
+ case ie:
879
+ case K:
880
+ r = n.partitionKeyLength;
864
881
  break;
865
- case W:
866
- case ne:
867
- s = n.superPartitionKeyLength + n.partitionKeyLength;
882
+ case H:
883
+ case oe:
884
+ r = n.superPartitionKeyLength + n.partitionKeyLength;
868
885
  break;
869
886
  }
870
887
  switch (e) {
871
- case Y:
872
- case te:
873
- case G:
888
+ case Q:
889
+ case ie:
890
+ case K:
874
891
  for (let i of t.listInputFields()) {
875
- if (e === G) {
876
- const a = re(i);
877
- if (a) i = a;
892
+ if (e === K) {
893
+ const l = ae(i);
894
+ if (l) i = l;
878
895
  else continue;
879
896
  }
880
897
  const o = [...JSON.parse(i)];
881
- r.push(o);
898
+ s.push(o);
882
899
  }
883
900
  break;
884
- case X:
885
- case W:
886
- case ne:
901
+ case Z:
902
+ case H:
903
+ case oe:
887
904
  for (const i of t.listInputFields()) {
888
- const o = [...JSON.parse(i)], a = t.resolve({ field: i, assertFieldType: "Input" });
889
- if (a !== void 0)
890
- for (let l of a.listInputFields()) {
891
- if (e === W) {
892
- const h = re(l);
893
- if (h) l = h;
905
+ const o = [...JSON.parse(i)], l = t.resolve({ field: i, assertFieldType: "Input" });
906
+ if (l !== void 0)
907
+ for (let a of l.listInputFields()) {
908
+ if (e === H) {
909
+ const g = ae(a);
910
+ if (g) a = g;
894
911
  else continue;
895
912
  }
896
- const u = [...o, ...JSON.parse(l)];
897
- r.push(u);
913
+ const u = [...o, ...JSON.parse(a)];
914
+ s.push(u);
898
915
  }
899
916
  }
900
917
  break;
901
918
  }
902
- return { data: r, keyLength: s };
919
+ return { data: s, keyLength: r };
903
920
  }
904
- function Ct(t) {
905
- const e = Ee(t);
921
+ function xt(t) {
922
+ const e = Be(t);
906
923
  if (!e) return;
907
- const { data: n, keyLength: r } = e, s = [];
908
- for (let i = 0; i < r; ++i)
909
- s.push(/* @__PURE__ */ new Set());
924
+ const { data: n, keyLength: s } = e, r = [];
925
+ for (let i = 0; i < s; ++i)
926
+ r.push(/* @__PURE__ */ new Set());
910
927
  for (const i of n) {
911
- if (i.length !== r)
928
+ if (i.length !== s)
912
929
  throw new Error("key length does not match partition length");
913
- for (let o = 0; o < r; ++o)
914
- s[o].add(i[o]);
930
+ for (let o = 0; o < s; ++o)
931
+ r[o].add(i[o]);
915
932
  }
916
- return s.map((i) => Array.from(i.values()));
933
+ return r.map((i) => Array.from(i.values()));
917
934
  }
918
- const T = "1.22.97";
919
- function Ve(t) {
935
+ const L = "1.23.4";
936
+ function Je(t) {
920
937
  return t.__renderLambda === !0;
921
938
  }
922
- function K(t) {
939
+ function q(t) {
923
940
  if (t !== void 0)
924
- return Ve(t) ? t.handle : t;
941
+ return Je(t) ? t.handle : t;
925
942
  }
926
- function C(t) {
943
+ function F(t) {
927
944
  if (t !== void 0)
928
945
  return typeof t == "string" ? { __renderLambda: !0, handle: t, retentive: !1 } : t;
929
946
  }
930
- function Pt(t) {
947
+ function Lt(t) {
931
948
  if (t.v3 !== void 0) {
932
949
  const {
933
950
  initialArgs: e,
934
951
  initialUiState: n,
935
- inputsValid: r,
936
- outputs: s,
952
+ inputsValid: s,
953
+ outputs: r,
937
954
  renderingMode: i,
938
955
  sdkVersion: o,
939
- sections: a,
940
- title: l
956
+ sections: l,
957
+ title: a
941
958
  } = t.v3, { code: u } = t;
942
959
  return {
943
960
  initialArgs: e,
944
961
  initialUiState: n,
945
- inputsValid: r,
946
- outputs: s,
962
+ inputsValid: s,
963
+ outputs: r,
947
964
  renderingMode: i,
948
965
  sdkVersion: o,
949
- sections: a,
950
- title: l,
966
+ sections: l,
967
+ title: a,
951
968
  code: u
952
969
  };
953
970
  } else if (t.inputsValid !== void 0) {
954
- const { sdkVersion: e, renderingMode: n, outputs: r, inputsValid: s, sections: i, initialArgs: o, code: a } = t, l = Object.keys(t);
955
- if (e === void 0 || n === void 0 || r === void 0 || s === void 0 || i === void 0 || o === void 0)
971
+ const { sdkVersion: e, renderingMode: n, outputs: s, inputsValid: r, sections: i, initialArgs: o, code: l } = t, a = Object.keys(t);
972
+ if (e === void 0 || n === void 0 || s === void 0 || r === void 0 || i === void 0 || o === void 0)
956
973
  throw new Error(
957
- `Malformed config v2. SDK version ${e}; Fields = ${l.join(", ")}`
974
+ `Malformed config v2. SDK version ${e}; Fields = ${a.join(", ")}`
958
975
  );
959
976
  return {
960
977
  sdkVersion: e,
961
978
  renderingMode: n,
962
979
  initialArgs: o,
963
980
  outputs: Object.fromEntries(
964
- Object.entries(r).map(([u, h]) => [u, C(h)])
981
+ Object.entries(s).map(([u, g]) => [u, F(g)])
965
982
  ),
966
- inputsValid: C(s),
967
- sections: C(i),
983
+ inputsValid: F(r),
984
+ sections: F(i),
968
985
  initialUiState: void 0,
969
- code: a
986
+ code: l
970
987
  };
971
988
  } else if (t.renderingMode !== void 0) {
972
- const { sdkVersion: e, canRun: n, renderingMode: r, outputs: s, sections: i, initialArgs: o, code: a } = t, l = Object.keys(t);
973
- if (r === void 0 || s === void 0 || n === void 0 || i === void 0 || o === void 0)
989
+ const { sdkVersion: e, canRun: n, renderingMode: s, outputs: r, sections: i, initialArgs: o, code: l } = t, a = Object.keys(t);
990
+ if (s === void 0 || r === void 0 || n === void 0 || i === void 0 || o === void 0)
974
991
  throw new Error(
975
- `Malformed config v1. SDK version ${e}; Fields = ${l.join(", ")}`
992
+ `Malformed config v1. SDK version ${e}; Fields = ${a.join(", ")}`
976
993
  );
977
994
  return {
978
995
  sdkVersion: e ?? "unknown",
979
- renderingMode: r,
996
+ renderingMode: s,
980
997
  initialArgs: o,
981
998
  outputs: Object.fromEntries(
982
- Object.entries(s).map(([u, h]) => [u, C(h)])
999
+ Object.entries(r).map(([u, g]) => [u, F(g)])
983
1000
  ),
984
- inputsValid: C(n),
985
- sections: C(i),
1001
+ inputsValid: F(n),
1002
+ sections: F(i),
986
1003
  initialUiState: void 0,
987
- code: a
1004
+ code: l
988
1005
  };
989
1006
  } else {
990
1007
  const { sdkVersion: e } = t, n = Object.keys(t);
@@ -993,12 +1010,12 @@ function Pt(t) {
993
1010
  );
994
1011
  }
995
1012
  }
996
- class _ {
997
- constructor(e, n, r, s, i, o, a) {
998
- this._renderingMode = e, this._initialArgs = n, this._initialUiState = r, this._outputs = s, this._inputsValid = i, this._sections = o, this._title = a;
1013
+ class w {
1014
+ constructor(e, n, s, r, i, o, l) {
1015
+ this._renderingMode = e, this._initialArgs = n, this._initialUiState = s, this._outputs = r, this._inputsValid = i, this._sections = o, this._title = l;
999
1016
  }
1000
1017
  static create(e = "Heavy") {
1001
- return new _(
1018
+ return new w(
1002
1019
  e,
1003
1020
  void 0,
1004
1021
  {},
@@ -1008,10 +1025,10 @@ class _ {
1008
1025
  void 0
1009
1026
  );
1010
1027
  }
1011
- output(e, n, r = {}) {
1028
+ output(e, n, s = {}) {
1012
1029
  if (typeof n == "function") {
1013
- const s = `output#${e}`;
1014
- return E(s, () => n(new V())), new _(
1030
+ const r = `output#${e}`;
1031
+ return E(r, () => n(new V())), new w(
1015
1032
  this._renderingMode,
1016
1033
  this._initialArgs,
1017
1034
  this._initialUiState,
@@ -1019,8 +1036,8 @@ class _ {
1019
1036
  ...this._outputs,
1020
1037
  [e]: {
1021
1038
  __renderLambda: !0,
1022
- handle: s,
1023
- ...r
1039
+ handle: r,
1040
+ ...s
1024
1041
  }
1025
1042
  },
1026
1043
  this._inputsValid,
@@ -1028,7 +1045,7 @@ class _ {
1028
1045
  this._title
1029
1046
  );
1030
1047
  } else
1031
- return new _(
1048
+ return new w(
1032
1049
  this._renderingMode,
1033
1050
  this._initialArgs,
1034
1051
  this._initialUiState,
@@ -1046,7 +1063,7 @@ class _ {
1046
1063
  return this.output(e, n, { retentive: !0 });
1047
1064
  }
1048
1065
  argsValid(e) {
1049
- return typeof e == "function" ? (E("inputsValid", () => e(new V())), new _(
1066
+ return typeof e == "function" ? (E("inputsValid", () => e(new V())), new w(
1050
1067
  this._renderingMode,
1051
1068
  this._initialArgs,
1052
1069
  this._initialUiState,
@@ -1057,7 +1074,7 @@ class _ {
1057
1074
  },
1058
1075
  this._sections,
1059
1076
  this._title
1060
- )) : new _(
1077
+ )) : new w(
1061
1078
  this._renderingMode,
1062
1079
  this._initialArgs,
1063
1080
  this._initialUiState,
@@ -1068,7 +1085,7 @@ class _ {
1068
1085
  );
1069
1086
  }
1070
1087
  sections(e) {
1071
- return Array.isArray(e) ? this.sections(j(e)) : typeof e == "function" ? (E("sections", () => e(new V())), new _(
1088
+ return Array.isArray(e) ? this.sections(j(e)) : typeof e == "function" ? (E("sections", () => e(new V())), new w(
1072
1089
  this._renderingMode,
1073
1090
  this._initialArgs,
1074
1091
  this._initialUiState,
@@ -1076,7 +1093,7 @@ class _ {
1076
1093
  this._inputsValid,
1077
1094
  { __renderLambda: !0, handle: "sections" },
1078
1095
  this._title
1079
- )) : new _(
1096
+ )) : new w(
1080
1097
  this._renderingMode,
1081
1098
  this._initialArgs,
1082
1099
  this._initialUiState,
@@ -1088,7 +1105,7 @@ class _ {
1088
1105
  }
1089
1106
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
1090
1107
  title(e) {
1091
- return E("title", () => e(new V())), new _(
1108
+ return E("title", () => e(new V())), new w(
1092
1109
  this._renderingMode,
1093
1110
  this._initialArgs,
1094
1111
  this._initialUiState,
@@ -1103,7 +1120,7 @@ class _ {
1103
1120
  * @deprecated use {@link withArgs}
1104
1121
  * */
1105
1122
  initialArgs(e) {
1106
- return new _(
1123
+ return new w(
1107
1124
  this._renderingMode,
1108
1125
  e,
1109
1126
  this._initialUiState,
@@ -1115,7 +1132,7 @@ class _ {
1115
1132
  }
1116
1133
  /** Sets initial args for the block, this value must be specified. */
1117
1134
  withArgs(e) {
1118
- return new _(
1135
+ return new w(
1119
1136
  this._renderingMode,
1120
1137
  e,
1121
1138
  this._initialUiState,
@@ -1127,7 +1144,7 @@ class _ {
1127
1144
  }
1128
1145
  /** Defines type and sets initial value for block UiState. */
1129
1146
  withUiState(e) {
1130
- return new _(
1147
+ return new w(
1131
1148
  this._renderingMode,
1132
1149
  this._initialArgs,
1133
1150
  e,
@@ -1144,7 +1161,7 @@ class _ {
1144
1161
  if (this._initialArgs === void 0) throw new Error("Initial arguments not set.");
1145
1162
  const e = {
1146
1163
  v3: {
1147
- sdkVersion: T,
1164
+ sdkVersion: L,
1148
1165
  renderingMode: this._renderingMode,
1149
1166
  initialArgs: this._initialArgs,
1150
1167
  initialUiState: this._initialUiState,
@@ -1154,162 +1171,185 @@ class _ {
1154
1171
  outputs: this._outputs
1155
1172
  },
1156
1173
  // fields below are added to allow previous desktop versions read generated configs
1157
- sdkVersion: T,
1174
+ sdkVersion: L,
1158
1175
  renderingMode: this._renderingMode,
1159
1176
  initialArgs: this._initialArgs,
1160
- inputsValid: K(this._inputsValid),
1161
- sections: K(this._sections),
1177
+ inputsValid: q(this._inputsValid),
1178
+ sections: q(this._sections),
1162
1179
  outputs: Object.fromEntries(
1163
- Object.entries(this._outputs).map(([n, r]) => [n, K(r)])
1180
+ Object.entries(this._outputs).map(([n, s]) => [n, q(s)])
1164
1181
  )
1165
1182
  };
1166
- return Ae() ? oe({ sdkVersion: T }) : { config: e };
1167
- }
1168
- }
1169
- function Ft(t, e, n, r) {
1170
- var u, h;
1171
- Array.isArray(r) && (r = { filters: r });
1172
- const s = t.resultPool.getData().entries.map((d) => d.obj).filter(N).filter((d) => d.spec.name === "pl7.app/label" && d.spec.axesSpec.length === 1), i = (d, p) => {
1173
- let g = d.toString();
1174
- if (p)
1175
- for (const f in p)
1176
- g += f, g += p[f];
1177
- return g;
1183
+ return Fe() ? de({ sdkVersion: L }) : { config: e };
1184
+ }
1185
+ }
1186
+ function Dt(t, e, n, s) {
1187
+ var u, g;
1188
+ Array.isArray(s) && (s = { filters: s });
1189
+ const r = t.resultPool.getData().entries.map((c) => c.obj).filter(B).filter((c) => c.spec.name === "pl7.app/label" && c.spec.axesSpec.length === 1), i = (c, d) => {
1190
+ let h = c.toString();
1191
+ if (d)
1192
+ for (const p in d)
1193
+ h += p, h += d[p];
1194
+ return h;
1178
1195
  }, o = /* @__PURE__ */ new Map();
1179
- for (const d of e)
1180
- for (const p of d.spec.axesSpec) {
1181
- const g = w(p);
1182
- for (const f of s) {
1183
- const I = f.spec.axesSpec[0], y = w(f.spec.axesSpec[0]);
1184
- if (O(g, y)) {
1185
- const F = Object.keys(g.domain ?? {}).length, D = Object.keys(y.domain ?? {}).length;
1186
- if (F > D) {
1187
- const R = i(f.id, g.domain);
1188
- o.set(R, {
1189
- id: R,
1196
+ for (const c of e)
1197
+ for (const d of c.spec.axesSpec) {
1198
+ const h = R(d);
1199
+ for (const p of r) {
1200
+ const b = p.spec.axesSpec[0], m = R(p.spec.axesSpec[0]);
1201
+ if (D(h, m)) {
1202
+ const I = Object.keys(h.domain ?? {}).length, v = Object.keys(m.domain ?? {}).length;
1203
+ if (I > v) {
1204
+ const A = i(p.id, h.domain);
1205
+ o.set(A, {
1206
+ id: A,
1190
1207
  spec: {
1191
- ...f.spec,
1192
- axesSpec: [{ ...g, annotations: I.annotations }]
1208
+ ...p.spec,
1209
+ axesSpec: [{ ...h, annotations: b.annotations }]
1193
1210
  },
1194
- data: f.data
1211
+ data: p.data
1195
1212
  });
1196
1213
  } else
1197
- o.set(i(f.id), f);
1214
+ o.set(i(p.id), p);
1198
1215
  }
1199
1216
  }
1200
1217
  }
1201
1218
  if ([...e, ...o.values()].some(
1202
- (d) => d.data instanceof v && !d.data.getIsReadyOrError()
1219
+ (c) => c.data instanceof S && !c.data.getIsReadyOrError()
1203
1220
  ))
1204
1221
  return;
1205
- let a = e;
1206
- const l = [];
1207
- if (r != null && r.coreColumnPredicate) {
1208
- a = [];
1209
- for (const d of e)
1210
- r.coreColumnPredicate(d.spec) ? a.push(d) : l.push(d);
1211
- }
1212
- return l.push(...o.values()), t.createPTable({
1222
+ let l = e;
1223
+ const a = [];
1224
+ if (s != null && s.coreColumnPredicate) {
1225
+ l = [];
1226
+ for (const c of e)
1227
+ s.coreColumnPredicate(c.spec) ? l.push(c) : a.push(c);
1228
+ }
1229
+ return a.push(...o.values()), t.createPTable({
1213
1230
  src: {
1214
1231
  type: "outer",
1215
1232
  primary: {
1216
- type: (r == null ? void 0 : r.coreJoinType) ?? "full",
1217
- entries: a.map((d) => ({ type: "column", column: d }))
1233
+ type: (s == null ? void 0 : s.coreJoinType) ?? "full",
1234
+ entries: l.map((c) => ({ type: "column", column: c }))
1218
1235
  },
1219
- secondary: l.map((d) => ({ type: "column", column: d }))
1236
+ secondary: a.map((c) => ({ type: "column", column: c }))
1220
1237
  },
1221
- filters: [...(r == null ? void 0 : r.filters) ?? [], ...((u = n == null ? void 0 : n.pTableParams) == null ? void 0 : u.filters) ?? []],
1222
- sorting: ((h = n == null ? void 0 : n.pTableParams) == null ? void 0 : h.sorting) ?? []
1238
+ filters: [...(s == null ? void 0 : s.filters) ?? [], ...((u = n == null ? void 0 : n.pTableParams) == null ? void 0 : u.filters) ?? []],
1239
+ sorting: ((g = n == null ? void 0 : n.pTableParams) == null ? void 0 : g.sorting) ?? []
1223
1240
  });
1224
1241
  }
1225
- function Rt(t, e, n) {
1226
- const r = t.findLabels(e);
1242
+ function Ot(t, e, n) {
1243
+ const s = t.findLabels(e);
1227
1244
  return {
1228
1245
  axis: e,
1229
- options: n.map((s) => ({
1230
- value: s,
1231
- label: (r == null ? void 0 : r[s]) ?? s.toString()
1246
+ options: n.map((r) => ({
1247
+ value: r,
1248
+ label: (s == null ? void 0 : s[r]) ?? r.toString()
1232
1249
  })),
1233
1250
  defaultValue: n[0]
1234
1251
  };
1235
1252
  }
1236
- const je = (t, e) => {
1253
+ const Me = (t, e) => {
1237
1254
  let n = t.toString();
1238
- return e == null || e.forEach((r) => {
1239
- if (r)
1240
- for (const [s, i] of Object.entries(r))
1241
- n += s, n += i;
1255
+ return e == null || e.forEach((s) => {
1256
+ if (s)
1257
+ for (const [r, i] of Object.entries(s))
1258
+ n += r, n += i;
1242
1259
  }), n;
1243
1260
  };
1244
- function Ue(t) {
1261
+ function $e(t) {
1245
1262
  if (!t.length)
1246
1263
  return [];
1247
1264
  let e = [[]];
1248
1265
  return t.forEach((n) => {
1249
- const r = [];
1250
- n.forEach((s) => {
1251
- r.push(...e.map((i) => [...i, s]));
1252
- }), e = r;
1266
+ const s = [];
1267
+ n.forEach((r) => {
1268
+ s.push(...e.map((i) => [...i, r]));
1269
+ }), e = s;
1253
1270
  }), e;
1254
1271
  }
1255
- function Be(t, e) {
1256
- const n = t.spec.axesSpec.map(w);
1257
- return e.spec.axesSpec.map(w).every((s) => n.some((i) => O(i, s) && O(s, i)));
1272
+ function Ge(t, e) {
1273
+ const n = t.spec.axesSpec.map(R);
1274
+ return e.spec.axesSpec.map(R).every((r) => n.some((i) => D(i, r) && D(r, i)));
1258
1275
  }
1259
- function pe(t, e) {
1260
- const n = t.spec.axesSpec.map(w);
1261
- return e.spec.axesSpec.map(w).every((s) => n.some((i) => O(i, s)));
1276
+ function ye(t, e) {
1277
+ const n = t.spec.axesSpec.map(R);
1278
+ return e.spec.axesSpec.map(R).every((r) => n.some((i) => D(i, r)));
1262
1279
  }
1263
- const Ne = "pl7.app/graph/isVirtual";
1264
- function se(t, e) {
1265
- const n = t.spec.axesSpec.map(w), r = e.spec.axesSpec.map(w);
1266
- if (Be(t, e))
1280
+ const We = "pl7.app/graph/isVirtual", le = "pl7.app/label";
1281
+ function ue(t, e) {
1282
+ const n = t.spec.axesSpec.map(R), s = e.spec.axesSpec.map(R);
1283
+ if (Ge(t, e))
1267
1284
  return [];
1268
- if (!pe(t, e))
1285
+ if (!ye(t, e))
1269
1286
  return [];
1270
- const o = r.map((l) => n.filter((u) => O(u, l)));
1271
- return Ue(o).map((l) => ({
1272
- id: je(e.id, l.map((h) => h.domain)),
1273
- spec: {
1274
- ...e.spec,
1275
- axesSpec: l.map((h, d) => ({
1287
+ const o = s.map((c) => n.filter((d) => D(d, c))), l = $e(o), a = /* @__PURE__ */ new Set(), u = /* @__PURE__ */ new Set(), g = l.map((c) => {
1288
+ const d = /* @__PURE__ */ new Set();
1289
+ return c.map((h, p) => {
1290
+ const b = e.spec.axesSpec[p].domain, m = h.domain;
1291
+ return Object.entries(m ?? {}).forEach(([I, v]) => {
1292
+ if ((b == null ? void 0 : b[I]) === void 0) {
1293
+ const A = JSON.stringify([I, v]);
1294
+ d.add(A), a.add(A);
1295
+ }
1296
+ }), {
1276
1297
  ...h,
1277
- annotations: e.spec.axesSpec[d].annotations
1278
- })),
1279
- annotations: {
1280
- ...e.spec.annotations,
1281
- [Ne]: "true"
1282
- }
1283
- },
1284
- data: e.data
1285
- }));
1298
+ annotations: e.spec.axesSpec[p].annotations
1299
+ };
1300
+ }), d;
1301
+ });
1302
+ return [...a].forEach((c) => {
1303
+ g.some((d) => !d.has(c)) && u.add(c);
1304
+ }), l.map((c, d) => {
1305
+ var I;
1306
+ const h = Me(e.id, c.map((v) => v.domain)), p = ((I = e.spec.annotations) == null ? void 0 : I[le]) ?? "", b = [...g[d]].filter((v) => u.has(v)).sort().map((v) => {
1307
+ var A;
1308
+ return (A = JSON.parse(v)) == null ? void 0 : A[1];
1309
+ }).join(" / "), m = {
1310
+ ...e.spec.annotations,
1311
+ [We]: "true"
1312
+ };
1313
+ return (p || b) && (m[le] = p && b ? p + " / " + b : p + b), {
1314
+ id: h,
1315
+ spec: {
1316
+ ...e.spec,
1317
+ axesSpec: c.map((v, A) => ({
1318
+ ...v,
1319
+ annotations: e.spec.axesSpec[A].annotations
1320
+ })),
1321
+ annotations: m
1322
+ },
1323
+ data: e.data
1324
+ };
1325
+ });
1286
1326
  }
1287
- function Me(t) {
1327
+ function Ke(t) {
1288
1328
  const e = [];
1289
1329
  for (let n = 0; n < t.length; n++)
1290
- for (let r = n + 1; r < t.length; r++) {
1291
- const s = t[n], i = t[r];
1330
+ for (let s = n + 1; s < t.length; s++) {
1331
+ const r = t[n], i = t[s];
1292
1332
  e.push(
1293
- ...se(s, i),
1294
- ...se(i, s)
1333
+ ...ue(r, i),
1334
+ ...ue(i, r)
1295
1335
  );
1296
1336
  }
1297
1337
  return e;
1298
1338
  }
1299
- function Je(t, e) {
1339
+ function He(t, e) {
1300
1340
  const n = [...t];
1301
- for (const r of e)
1302
- for (const s of t) {
1303
- if (s.id === r.id)
1341
+ for (const s of e)
1342
+ for (const r of t) {
1343
+ if (r.id === s.id)
1304
1344
  break;
1305
- if (pe(s, r)) {
1306
- n.push(r);
1345
+ if (ye(r, s)) {
1346
+ n.push(s);
1307
1347
  break;
1308
1348
  }
1309
1349
  }
1310
1350
  return n;
1311
1351
  }
1312
- const $e = [
1352
+ const qe = [
1313
1353
  "Int",
1314
1354
  "Long",
1315
1355
  "Float",
@@ -1317,15 +1357,15 @@ const $e = [
1317
1357
  "String",
1318
1358
  "Bytes"
1319
1359
  ];
1320
- function xt(t, e) {
1360
+ function kt(t, e) {
1321
1361
  if (e === void 0) return;
1322
- const n = t.resultPool.getData().entries.map((i) => i.obj).filter(N).filter((i) => $e.includes(i.spec.valueType)), r = Je(e, n), s = [...r, ...Me(r)];
1323
- if (!s.some(
1324
- (i) => i.data instanceof v && !i.data.getIsReadyOrError()
1362
+ const n = t.resultPool.getData().entries.map((i) => i.obj).filter(B).filter((i) => qe.includes(i.spec.valueType)), s = He(e, n), r = [...s, ...Ke(s)];
1363
+ if (!r.some(
1364
+ (i) => i.data instanceof S && !i.data.getIsReadyOrError()
1325
1365
  ))
1326
- return t.createPFrame(s);
1366
+ return t.createPFrame(r);
1327
1367
  }
1328
- class Tt {
1368
+ class Et {
1329
1369
  constructor(e) {
1330
1370
  this.handle = e;
1331
1371
  }
@@ -1345,100 +1385,101 @@ class Tt {
1345
1385
  return await platforma.pFrameDriver.getUniqueValues(this.handle, e);
1346
1386
  }
1347
1387
  }
1348
- function Ge(t) {
1349
- return ie({
1388
+ function ze(t) {
1389
+ return ce({
1350
1390
  __isRef: !0,
1351
- blockId: B(t, "blockId"),
1352
- name: B(t, "name")
1391
+ blockId: U(t, "blockId"),
1392
+ name: U(t, "name")
1353
1393
  });
1354
1394
  }
1355
- function Ot(t) {
1356
- return ie({
1357
- ref: Ge(B(t, "ref")),
1358
- label: B(t, "label")
1395
+ function Vt(t) {
1396
+ return ce({
1397
+ ref: ze(U(t, "ref")),
1398
+ label: U(t, "label")
1359
1399
  });
1360
1400
  }
1361
- const kt = {
1362
- sdkVersion: T
1401
+ const jt = {
1402
+ sdkVersion: L
1363
1403
  };
1364
- function Lt() {
1365
- return oe({ sdkVersion: T });
1404
+ function Nt() {
1405
+ return de({ sdkVersion: L });
1366
1406
  }
1367
- function Dt(t) {
1407
+ function Ut(t) {
1368
1408
  if (typeof globalThis.getEnvironmentValue == "function")
1369
1409
  return globalThis.getEnvironmentValue(t);
1370
1410
  }
1371
1411
  export {
1372
- Ye as Args,
1373
- _ as BlockModel,
1374
- kt as CurrentSdkInfo,
1375
- b as FutureRef,
1376
- Ne as IS_VIRTUAL_COLUMN,
1377
- Xe as It,
1378
- wt as JsRenderInternal,
1379
- Qe as MainOutputs,
1380
- _e as OutputError,
1381
- Fe as PAnnotationLabel,
1382
- Re as PAnnotationTrace,
1383
- Tt as PFrameImpl,
1384
- G as RT_BINARY_PARTITIONED,
1385
- W as RT_BINARY_SUPER_PARTITIONED,
1386
- te as RT_JSON_PARTITIONED,
1387
- ne as RT_JSON_SUPER_PARTITIONED,
1388
- Y as RT_RESOURCE_MAP,
1389
- X as RT_RESOURCE_MAP_PARTITIONED,
1412
+ tt as Args,
1413
+ w as BlockModel,
1414
+ jt as CurrentSdkInfo,
1415
+ _ as FutureRef,
1416
+ We as IS_VIRTUAL_COLUMN,
1417
+ nt as It,
1418
+ Ft as JsRenderInternal,
1419
+ le as LABEL_ANNOTATION,
1420
+ st as MainOutputs,
1421
+ Ce as OutputError,
1422
+ Oe as PAnnotationLabel,
1423
+ ke as PAnnotationTrace,
1424
+ Et as PFrameImpl,
1425
+ K as RT_BINARY_PARTITIONED,
1426
+ H as RT_BINARY_SUPER_PARTITIONED,
1427
+ ie as RT_JSON_PARTITIONED,
1428
+ oe as RT_JSON_SUPER_PARTITIONED,
1429
+ Q as RT_RESOURCE_MAP,
1430
+ Z as RT_RESOURCE_MAP_PARTITIONED,
1390
1431
  V as RenderCtx,
1391
- De as ResultPool,
1392
- Ze as StagingOutputs,
1393
- Te as Trace,
1394
- xe as TraceEntry,
1395
- v as TreeNodeAccessor,
1396
- et as UiState,
1397
- at as and,
1398
- xt as createPFrameForGraphs,
1399
- Ft as createPlDataTable,
1400
- Rt as createPlDataTableSheet,
1401
- Le as deriveLabels,
1402
- K as downgradeCfgOrLambda,
1403
- Je as enrichColumnsWithCompatible,
1404
- yt as extractArchiveAndGetURL,
1405
- Pt as extractConfig,
1406
- st as flatten,
1407
- Ot as fromPlOption,
1408
- Ge as fromPlRef,
1409
- Me as getAdditionalColumns,
1410
- pt as getBlobContent,
1411
- ht as getBlobContentAsJson,
1412
- ft as getBlobContentAsString,
1413
- gt as getDownloadedBlobContent,
1414
- Dt as getEnvironmentValue,
1415
- k as getFromCfg,
1432
+ Ue as ResultPool,
1433
+ rt as StagingOutputs,
1434
+ Ve as Trace,
1435
+ Ee as TraceEntry,
1436
+ S as TreeNodeAccessor,
1437
+ it as UiState,
1438
+ pt as and,
1439
+ kt as createPFrameForGraphs,
1440
+ Dt as createPlDataTable,
1441
+ Ot as createPlDataTableSheet,
1442
+ re as deriveLabels,
1443
+ q as downgradeCfgOrLambda,
1444
+ He as enrichColumnsWithCompatible,
1445
+ St as extractArchiveAndGetURL,
1446
+ Lt as extractConfig,
1447
+ ut as flatten,
1448
+ Vt as fromPlOption,
1449
+ ze as fromPlRef,
1450
+ Ke as getAdditionalColumns,
1451
+ yt as getBlobContent,
1452
+ vt as getBlobContentAsJson,
1453
+ bt as getBlobContentAsString,
1454
+ _t as getDownloadedBlobContent,
1455
+ Ut as getEnvironmentValue,
1456
+ O as getFromCfg,
1416
1457
  j as getImmediate,
1417
- bt as getImportProgress,
1418
- B as getJsonField,
1419
- vt as getLastLogs,
1420
- At as getLogHandle,
1421
- mt as getOnDemandBlobContent,
1422
- Ee as getPartitionKeysList,
1423
- _t as getProgressLog,
1424
- St as getProgressLogWithInfo,
1425
- Lt as getRawPlatformaInstance,
1426
- ut as getResourceField,
1427
- ct as getResourceValueAsJson,
1428
- Ct as getUniquePartitionKeys,
1429
- H as ifDef,
1430
- Ve as isConfigLambda,
1431
- it as isEmpty,
1432
- ze as isolate,
1433
- tt as makeArray,
1434
- ie as makeObject,
1435
- rt as mapArrayValues,
1436
- nt as mapRecordValues,
1437
- dt as mapResourceFields,
1438
- ot as not,
1439
- lt as or,
1440
- It as parseResourceMap,
1441
- Se as readOutput,
1442
- qe as wrapOutputs
1458
+ wt as getImportProgress,
1459
+ U as getJsonField,
1460
+ It as getLastLogs,
1461
+ Rt as getLogHandle,
1462
+ At as getOnDemandBlobContent,
1463
+ Be as getPartitionKeysList,
1464
+ Pt as getProgressLog,
1465
+ Ct as getProgressLogWithInfo,
1466
+ Nt as getRawPlatformaInstance,
1467
+ ht as getResourceField,
1468
+ gt as getResourceValueAsJson,
1469
+ xt as getUniquePartitionKeys,
1470
+ z as ifDef,
1471
+ Je as isConfigLambda,
1472
+ ct as isEmpty,
1473
+ et as isolate,
1474
+ ot as makeArray,
1475
+ ce as makeObject,
1476
+ lt as mapArrayValues,
1477
+ at as mapRecordValues,
1478
+ mt as mapResourceFields,
1479
+ dt as not,
1480
+ ft as or,
1481
+ Tt as parseResourceMap,
1482
+ Re as readOutput,
1483
+ Ze as wrapOutputs
1443
1484
  };
1444
1485
  //# sourceMappingURL=index.mjs.map