@platforma-sdk/model 1.22.2 → 1.22.59

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
@@ -32,11 +32,11 @@ function Ge(t) {
32
32
  cfg: t
33
33
  };
34
34
  }
35
- const Ke = O("$args"), He = O("$it"), We = O("$prod"), qe = O("$staging"), ze = O("$ui");
35
+ const Ke = O("$args"), We = O("$it"), He = O("$prod"), qe = O("$staging"), ze = O("$ui");
36
36
  function V(t) {
37
37
  return { type: "Immediate", value: t };
38
38
  }
39
- function se(t) {
39
+ function ie(t) {
40
40
  const e = {};
41
41
  for (const [n, r] of Object.entries(t)) e[n] = m(r);
42
42
  return {
@@ -107,14 +107,14 @@ function rt(t, e) {
107
107
  operand2: e
108
108
  };
109
109
  }
110
- function it(t, e) {
110
+ function st(t, e) {
111
111
  return {
112
112
  type: "GetResourceField",
113
113
  source: m(t),
114
114
  field: m(e)
115
115
  };
116
116
  }
117
- function st() {
117
+ function it() {
118
118
  return function(t) {
119
119
  return {
120
120
  type: "GetResourceValueAsJson",
@@ -189,7 +189,14 @@ function gt(t, e) {
189
189
  patternToSearch: e
190
190
  };
191
191
  }
192
- function mt(t) {
192
+ function mt(t, e) {
193
+ return {
194
+ type: "GetProgressLogWithInfo",
195
+ source: m(t),
196
+ patternToSearch: e
197
+ };
198
+ }
199
+ function yt(t) {
193
200
  return {
194
201
  type: "GetLogHandle",
195
202
  source: m(t)
@@ -211,7 +218,7 @@ function c() {
211
218
  if (typeof globalThis.cfgRenderCtx < "u") return globalThis.cfgRenderCtx;
212
219
  throw new Error("Not in config rendering context");
213
220
  }
214
- function L(t, e) {
221
+ function D(t, e) {
215
222
  const n = we();
216
223
  if (n === void 0) return !1;
217
224
  if (t in n.callbackRegistry) throw new Error(`Callback with key ${t} already registered.`);
@@ -245,7 +252,7 @@ class b {
245
252
  return this.isResolved ? this.resolvedValue : { __awaited_futures__: [this.handle] };
246
253
  }
247
254
  }
248
- function H(t, e) {
255
+ function W(t, e) {
249
256
  return t === void 0 ? void 0 : e(t);
250
257
  }
251
258
  class v {
@@ -285,11 +292,11 @@ class v {
285
292
  resolveWithCommon(e, ...n) {
286
293
  const r = [
287
294
  ...this.resolvePath,
288
- ...n.map((i) => typeof i == "string" ? i : i.field)
295
+ ...n.map((s) => typeof s == "string" ? s : s.field)
289
296
  ];
290
- return H(
297
+ return W(
291
298
  c().resolveWithCommon(this.handle, e, ...n),
292
- (i) => new v(i, r)
299
+ (s) => new v(s, r)
293
300
  );
294
301
  }
295
302
  get resourceType() {
@@ -309,7 +316,7 @@ class v {
309
316
  }
310
317
  getError() {
311
318
  const e = [...this.resolvePath, "error"];
312
- return H(
319
+ return W(
313
320
  c().getError(this.handle),
314
321
  (n) => new v(n, e)
315
322
  );
@@ -350,9 +357,9 @@ class v {
350
357
  */
351
358
  getPColumns(e = !1, n = "") {
352
359
  const r = this.parsePObjectCollection(e, n);
353
- return r === void 0 ? void 0 : Object.entries(r).map(([, s]) => {
354
- if (!X(s)) throw new Error(`not a PColumn (kind = ${s.spec.kind})`);
355
- return s;
360
+ return r === void 0 ? void 0 : Object.entries(r).map(([, i]) => {
361
+ if (!X(i)) throw new Error(`not a PColumn (kind = ${i.spec.kind})`);
362
+ return i;
356
363
  });
357
364
  }
358
365
  /**
@@ -366,12 +373,12 @@ class v {
366
373
  ...this.resolvePath
367
374
  );
368
375
  if (r === void 0) return;
369
- const i = {};
370
- for (const [s, o] of Object.entries(r)) {
371
- const l = [...this.resolvePath, s];
372
- i[s] = j(o, (a) => new v(a, l));
376
+ const s = {};
377
+ for (const [i, o] of Object.entries(r)) {
378
+ const l = [...this.resolvePath, i];
379
+ s[i] = j(o, (a) => new v(a, l));
373
380
  }
374
- return i;
381
+ return s;
375
382
  }
376
383
  getFileContentAsBase64() {
377
384
  return new b(c().getBlobContentAsBase64(this.handle));
@@ -435,6 +442,9 @@ class v {
435
442
  getProgressLog(e) {
436
443
  return new b(c().getProgressLog(this.handle, e));
437
444
  }
445
+ getProgressLogWithInfo(e) {
446
+ return new b(c().getProgressLogWithInfo(this.handle, e));
447
+ }
438
448
  getLogHandle() {
439
449
  return new b(c().getLogHandle(this.handle));
440
450
  }
@@ -451,18 +461,18 @@ class v {
451
461
  }
452
462
  }
453
463
  mapFields(e, n) {
454
- const { fieldType: r, requireLocked: i, skipUnresolved: s } = {
464
+ const { fieldType: r, requireLocked: s, skipUnresolved: i } = {
455
465
  fieldType: "Input",
456
466
  requireLocked: !0,
457
467
  skipUnresolved: !1,
458
468
  ...n
459
469
  }, o = e;
460
- if (i && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
470
+ if (s && (r === "Input" && !this.getInputsLocked() || r === "Output" && !this.getOutputsLocked()))
461
471
  return;
462
472
  let a = (r === "Input" ? this.listInputFields() : r === "Output" ? this.listOutputFields() : this.listDynamicFields()).map(
463
473
  (u) => [u, this.resolve({ field: u, assertFieldType: r })]
464
474
  );
465
- return s && (a = a.filter((u) => u[1] !== void 0)), a.map(([u, h]) => o(u, h));
475
+ return i && (a = a.filter((u) => u[1] !== void 0)), a.map(([u, h]) => o(u, h));
466
476
  }
467
477
  }
468
478
  const ae = "staging", le = "main", Ce = {
@@ -472,21 +482,21 @@ const ae = "staging", le = "main", Ce = {
472
482
  function ue(t) {
473
483
  return typeof t == "object" && t !== null && "__awaited_futures__" in t;
474
484
  }
475
- function W(t, e, n) {
485
+ function H(t, e, n) {
476
486
  if (e.has(n)) return;
477
487
  if (e.add(n), typeof n === "object")
478
- if (ue(n)) n.__awaited_futures__.forEach((i) => t.add(i));
488
+ if (ue(n)) n.__awaited_futures__.forEach((s) => t.add(s));
479
489
  else if (Array.isArray(n))
480
- for (const i of n) W(t, e, i);
490
+ for (const s of n) H(t, e, s);
481
491
  else
482
- for (const [, i] of Object.entries(n))
483
- i !== n && W(t, e, i);
492
+ for (const [, s] of Object.entries(n))
493
+ s !== n && H(t, e, s);
484
494
  }
485
495
  function Pe(t) {
486
496
  const e = /* @__PURE__ */ new Set();
487
- return W(e, /* @__PURE__ */ new Set(), t), e;
497
+ return H(e, /* @__PURE__ */ new Set(), t), e;
488
498
  }
489
- const yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
499
+ const bt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
490
500
  __proto__: null,
491
501
  GlobalCfgRenderCtxFeatureFlags: Ce,
492
502
  MainAccessorName: le,
@@ -500,19 +510,19 @@ const yt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
500
510
  label: P.string()
501
511
  }), xe = P.array(Fe), Te = 1e-3, Oe = "__LABEL__", ee = "__LABEL__@1";
502
512
  function ke(t, e, n = {}) {
503
- const r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), s = t.map((p) => {
513
+ const r = /* @__PURE__ */ new Map(), s = /* @__PURE__ */ new Map(), i = t.map((p) => {
504
514
  var R, Q;
505
515
  const g = e(p), f = (R = g.annotations) == null ? void 0 : R[Ie], A = (Q = g.annotations) == null ? void 0 : Q[Re], y = (A ? xe.safeParse(JSON.parse(A)).data : void 0) ?? [];
506
516
  if (f) {
507
517
  const w = { label: f, type: Oe, importance: -2 };
508
518
  n.addLabelAsSuffix ? y.push(w) : y.splice(0, 0, w);
509
519
  }
510
- const I = [], D = /* @__PURE__ */ new Map();
520
+ const I = [], L = /* @__PURE__ */ new Map();
511
521
  for (let w = y.length - 1; w >= 0; --w) {
512
- const { type: N } = y[w], pe = y[w].importance ?? 0, M = (D.get(N) ?? 0) + 1;
513
- D.set(N, M);
522
+ const { type: N } = y[w], pe = y[w].importance ?? 0, M = (L.get(N) ?? 0) + 1;
523
+ L.set(N, M);
514
524
  const F = `${N}@${M}`;
515
- i.set(F, (i.get(F) ?? 0) + 1), r.set(
525
+ s.set(F, (s.get(F) ?? 0) + 1), r.set(
516
526
  F,
517
527
  Math.max(
518
528
  r.get(F) ?? Number.NEGATIVE_INFINITY,
@@ -529,8 +539,8 @@ function ke(t, e, n = {}) {
529
539
  }), o = [], l = [], a = [...r];
530
540
  a.sort(([, p], [, g]) => g - p);
531
541
  for (const [p] of a)
532
- p.endsWith("@1") || i.get(p) === t.length ? o.push(p) : l.push(p);
533
- const u = (p) => s.map((g) => {
542
+ p.endsWith("@1") || s.get(p) === t.length ? o.push(p) : l.push(p);
543
+ const u = (p) => i.map((g) => {
534
544
  const f = g.fullTrace.filter((y) => p.has(y.fullType)).map((y) => y.label), A = n.separator ?? " / ";
535
545
  return {
536
546
  label: f.join(A),
@@ -553,7 +563,7 @@ function ke(t, e, n = {}) {
553
563
  }
554
564
  return u(/* @__PURE__ */ new Set([...o, ...l]));
555
565
  }
556
- class De {
566
+ class Le {
557
567
  constructor() {
558
568
  S(this, "ctx", c());
559
569
  S(this, "defaultLabelFn", (e, n) => {
@@ -568,13 +578,13 @@ class De {
568
578
  return this.ctx.calculateOptions(e);
569
579
  }
570
580
  getOptions(e, n) {
571
- const r = this.getSpecs().entries.filter((i) => e(i.obj));
572
- return typeof n == "object" || typeof n > "u" ? ke(r, (i) => i.obj, n ?? {}).map(({ value: { ref: i }, label: s }) => ({
573
- ref: i,
574
- label: s
575
- })) : r.map((i) => ({
576
- ref: i.ref,
577
- label: n(i.obj, i.ref)
581
+ const r = this.getSpecs().entries.filter((s) => e(s.obj));
582
+ return typeof n == "object" || typeof n > "u" ? ke(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)
578
588
  }));
579
589
  }
580
590
  /**
@@ -682,10 +692,10 @@ class De {
682
692
  e: for (const r of this.getData().entries) {
683
693
  if (!Z(r.obj.spec))
684
694
  continue;
685
- const i = r.obj.spec;
686
- if (e.name === i.name && e.valueType === i.valueType && e.axesSpec.length === i.axesSpec.length && q(e.domain, i.domain)) {
687
- for (let s = 0; s < e.axesSpec.length; ++s) {
688
- const o = e.axesSpec[s], l = i.axesSpec[s];
695
+ const s = r.obj.spec;
696
+ if (e.name === s.name && e.valueType === s.valueType && e.axesSpec.length === s.axesSpec.length && q(e.domain, s.domain)) {
697
+ for (let i = 0; i < e.axesSpec.length; ++i) {
698
+ const o = e.axesSpec[i], l = s.axesSpec[i];
689
699
  if (o.name !== l.name || o.type !== l.type || !q(o.domain, l.domain))
690
700
  continue e;
691
701
  }
@@ -709,7 +719,7 @@ class E {
709
719
  S(this, "uiState");
710
720
  // lazy rendering because this feature is rarely used
711
721
  S(this, "_activeArgsCache");
712
- S(this, "resultPool", new De());
722
+ S(this, "resultPool", new Le());
713
723
  this.ctx = c(), this.args = JSON.parse(this.ctx.args), this.uiState = this.ctx.uiState !== void 0 ? JSON.parse(this.ctx.uiState) : {};
714
724
  }
715
725
  /**
@@ -726,7 +736,7 @@ class E {
726
736
  // return this.ctx.featureFlags;
727
737
  // }
728
738
  getNamedAccessor(e) {
729
- return H(
739
+ return W(
730
740
  this.ctx.getAccessorHandleByName(e),
731
741
  (n) => new v(n, [e])
732
742
  );
@@ -745,8 +755,8 @@ class E {
745
755
  const n = this.resultPool.getData();
746
756
  for (const r of n.entries) {
747
757
  if (!X(r.obj)) continue;
748
- const i = r.obj.spec;
749
- if (i.name === "pl7.app/label" && i.axesSpec.length === 1 && i.axesSpec[0].name === e.name && i.axesSpec[0].type === e.type && q(e.domain, i.axesSpec[0].domain)) {
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 && q(e.domain, s.axesSpec[0].domain)) {
750
760
  if (r.obj.data.resourceType.name !== "PColumnData/Json")
751
761
  throw Error(`Expected JSON column for labels, got: ${r.obj.data.resourceType.name}`);
752
762
  return Object.fromEntries(
@@ -758,8 +768,8 @@ class E {
758
768
  }
759
769
  }
760
770
  verifyInlineColumnsSupport(e) {
761
- var i;
762
- const n = e.some((s) => !(s.data instanceof v)), r = ((i = this.ctx.featureFlags) == null ? void 0 : i.inlineColumnsSupport) === !0;
771
+ var s;
772
+ const n = e.some((i) => !(i.data instanceof v)), r = ((s = this.ctx.featureFlags) == null ? void 0 : s.inlineColumnsSupport) === !0;
763
773
  if (n && !r) throw Error("inline columns not supported");
764
774
  }
765
775
  createPFrame(e) {
@@ -779,7 +789,7 @@ class E {
779
789
  } : n = e, this.verifyInlineColumnsSupport(ye(n.src)), this.ctx.createPTable(
780
790
  be(
781
791
  n,
782
- (r) => j(r, (i) => i instanceof v ? i.handle : i)
792
+ (r) => j(r, (s) => s instanceof v ? s.handle : s)
783
793
  )
784
794
  );
785
795
  }
@@ -793,40 +803,40 @@ class E {
793
803
  }
794
804
  }
795
805
  const k = "PColumnData/", z = k + "ResourceMap", Y = k + "Partitioned/ResourceMap", te = k + "JsonPartitioned", $ = k + "BinaryPartitioned", ce = k + "Partitioned/", ne = ce + "JsonPartitioned", G = ce + "BinaryPartitioned";
796
- function de(t, e, n, r = [], i) {
806
+ function de(t, e, n, r = [], s) {
797
807
  if (t === void 0) return !1;
798
808
  switch (t.resourceType.name) {
799
809
  case z: {
800
- let s = t.getInputsLocked();
810
+ let i = t.getInputsLocked();
801
811
  for (const o of t.listInputFields()) {
802
812
  const l = t.resolve({ field: o, assertFieldType: "Input" }), a = [...r, ...JSON.parse(o)], u = l === void 0 ? void 0 : e(l);
803
- u === void 0 && (s = !1), (u !== void 0 || i) && n.push({ key: a, value: u });
813
+ u === void 0 && (i = !1), (u !== void 0 || s) && n.push({ key: a, value: u });
804
814
  }
805
- return s;
815
+ return i;
806
816
  }
807
817
  case Y: {
808
- let s = t.getInputsLocked();
818
+ let i = t.getInputsLocked();
809
819
  for (const o of t.listInputFields()) {
810
820
  const l = t.resolve({ field: o, assertFieldType: "Input" });
811
- if (l === void 0) s = !1;
821
+ if (l === void 0) i = !1;
812
822
  else {
813
823
  const a = [...r, ...JSON.parse(o)], u = de(
814
824
  l,
815
825
  e,
816
826
  n,
817
827
  a,
818
- i
828
+ s
819
829
  );
820
- s = s && u;
830
+ i = i && u;
821
831
  }
822
832
  }
823
- return s;
833
+ return i;
824
834
  }
825
835
  default:
826
836
  throw new Error(`Unknown resource type: ${t.resourceType.name}`);
827
837
  }
828
838
  }
829
- function bt(t, e, n = !1) {
839
+ function vt(t, e, n = !1) {
830
840
  const r = [];
831
841
  return { isComplete: de(t, e, r, [], n), data: r };
832
842
  }
@@ -837,45 +847,45 @@ const re = (t) => {
837
847
  throw Error(`key must ends on .index/.values for binary p-column, got: ${t}`);
838
848
  }
839
849
  };
840
- function Le(t) {
850
+ function De(t) {
841
851
  if (!t) return;
842
852
  const e = t.resourceType.name, n = t.getDataAsJson(), r = [];
843
- let i = 0;
853
+ let s = 0;
844
854
  switch (e) {
845
855
  case z:
846
- i = n.keyLength;
856
+ s = n.keyLength;
847
857
  break;
848
858
  case Y:
849
- i = n.partitionKeyLength + n.keyLength;
859
+ s = n.partitionKeyLength + n.keyLength;
850
860
  break;
851
861
  case te:
852
862
  case $:
853
- i = n.partitionKeyLength;
863
+ s = n.partitionKeyLength;
854
864
  break;
855
865
  case G:
856
866
  case ne:
857
- i = n.superPartitionKeyLength + n.partitionKeyLength;
867
+ s = n.superPartitionKeyLength + n.partitionKeyLength;
858
868
  break;
859
869
  }
860
870
  switch (e) {
861
871
  case z:
862
872
  case te:
863
873
  case $:
864
- for (let s of t.listInputFields()) {
874
+ for (let i of t.listInputFields()) {
865
875
  if (e === $) {
866
- const l = re(s);
867
- if (l) s = l;
876
+ const l = re(i);
877
+ if (l) i = l;
868
878
  else continue;
869
879
  }
870
- const o = [...JSON.parse(s)];
880
+ const o = [...JSON.parse(i)];
871
881
  r.push(o);
872
882
  }
873
883
  break;
874
884
  case Y:
875
885
  case G:
876
886
  case ne:
877
- for (const s of t.listInputFields()) {
878
- const o = [...JSON.parse(s)], l = t.resolve({ field: s, assertFieldType: "Input" });
887
+ for (const i of t.listInputFields()) {
888
+ const o = [...JSON.parse(i)], l = t.resolve({ field: i, assertFieldType: "Input" });
879
889
  if (l !== void 0)
880
890
  for (let a of l.listInputFields()) {
881
891
  if (e === G) {
@@ -889,23 +899,23 @@ function Le(t) {
889
899
  }
890
900
  break;
891
901
  }
892
- return { data: r, keyLength: i };
902
+ return { data: r, keyLength: s };
893
903
  }
894
- function vt(t) {
895
- const e = Le(t);
904
+ function _t(t) {
905
+ const e = De(t);
896
906
  if (!e) return;
897
- const { data: n, keyLength: r } = e, i = [];
898
- for (let s = 0; s < r; ++s)
899
- i.push(/* @__PURE__ */ new Set());
900
- for (const s of n) {
901
- if (s.length !== r)
907
+ const { data: n, keyLength: r } = e, s = [];
908
+ for (let i = 0; i < r; ++i)
909
+ s.push(/* @__PURE__ */ new Set());
910
+ for (const i of n) {
911
+ if (i.length !== r)
902
912
  throw new Error("key length does not match partition length");
903
913
  for (let o = 0; o < r; ++o)
904
- i[o].add(s[o]);
914
+ s[o].add(i[o]);
905
915
  }
906
- return i.map((s) => Array.from(s.values()));
916
+ return s.map((i) => Array.from(i.values()));
907
917
  }
908
- const T = "1.22.2";
918
+ const T = "1.22.59";
909
919
  function Ee(t) {
910
920
  return t.__renderLambda === !0;
911
921
  }
@@ -917,14 +927,14 @@ function C(t) {
917
927
  if (t !== void 0)
918
928
  return typeof t == "string" ? { __renderLambda: !0, handle: t, retentive: !1 } : t;
919
929
  }
920
- function _t(t) {
930
+ function St(t) {
921
931
  if (t.v3 !== void 0) {
922
932
  const {
923
933
  initialArgs: e,
924
934
  initialUiState: n,
925
935
  inputsValid: r,
926
- outputs: i,
927
- renderingMode: s,
936
+ outputs: s,
937
+ renderingMode: i,
928
938
  sdkVersion: o,
929
939
  sections: l,
930
940
  title: a
@@ -933,16 +943,16 @@ function _t(t) {
933
943
  initialArgs: e,
934
944
  initialUiState: n,
935
945
  inputsValid: r,
936
- outputs: i,
937
- renderingMode: s,
946
+ outputs: s,
947
+ renderingMode: i,
938
948
  sdkVersion: o,
939
949
  sections: l,
940
950
  title: a,
941
951
  code: u
942
952
  };
943
953
  } else if (t.inputsValid !== void 0) {
944
- const { sdkVersion: e, renderingMode: n, outputs: r, inputsValid: i, sections: s, initialArgs: o, code: l } = t, a = Object.keys(t);
945
- if (e === void 0 || n === void 0 || r === void 0 || i === void 0 || s === void 0 || o === void 0)
954
+ const { sdkVersion: e, renderingMode: n, outputs: r, inputsValid: s, sections: i, initialArgs: o, code: l } = t, a = Object.keys(t);
955
+ if (e === void 0 || n === void 0 || r === void 0 || s === void 0 || i === void 0 || o === void 0)
946
956
  throw new Error(
947
957
  `Malformed config v2. SDK version ${e}; Fields = ${a.join(", ")}`
948
958
  );
@@ -953,14 +963,14 @@ function _t(t) {
953
963
  outputs: Object.fromEntries(
954
964
  Object.entries(r).map(([u, h]) => [u, C(h)])
955
965
  ),
956
- inputsValid: C(i),
957
- sections: C(s),
966
+ inputsValid: C(s),
967
+ sections: C(i),
958
968
  initialUiState: void 0,
959
969
  code: l
960
970
  };
961
971
  } else if (t.renderingMode !== void 0) {
962
- const { sdkVersion: e, canRun: n, renderingMode: r, outputs: i, sections: s, initialArgs: o, code: l } = t, a = Object.keys(t);
963
- if (r === void 0 || i === void 0 || n === void 0 || s === void 0 || o === void 0)
972
+ const { sdkVersion: e, canRun: n, renderingMode: r, outputs: s, sections: i, initialArgs: o, code: l } = t, a = Object.keys(t);
973
+ if (r === void 0 || s === void 0 || n === void 0 || i === void 0 || o === void 0)
964
974
  throw new Error(
965
975
  `Malformed config v1. SDK version ${e}; Fields = ${a.join(", ")}`
966
976
  );
@@ -969,10 +979,10 @@ function _t(t) {
969
979
  renderingMode: r,
970
980
  initialArgs: o,
971
981
  outputs: Object.fromEntries(
972
- Object.entries(i).map(([u, h]) => [u, C(h)])
982
+ Object.entries(s).map(([u, h]) => [u, C(h)])
973
983
  ),
974
984
  inputsValid: C(n),
975
- sections: C(s),
985
+ sections: C(i),
976
986
  initialUiState: void 0,
977
987
  code: l
978
988
  };
@@ -984,8 +994,8 @@ function _t(t) {
984
994
  }
985
995
  }
986
996
  class _ {
987
- constructor(e, n, r, i, s, o, l) {
988
- this._renderingMode = e, this._initialArgs = n, this._initialUiState = r, this._outputs = i, this._inputsValid = s, this._sections = o, this._title = l;
997
+ constructor(e, n, r, s, i, o, l) {
998
+ this._renderingMode = e, this._initialArgs = n, this._initialUiState = r, this._outputs = s, this._inputsValid = i, this._sections = o, this._title = l;
989
999
  }
990
1000
  static create(e = "Heavy") {
991
1001
  return new _(
@@ -1000,8 +1010,8 @@ class _ {
1000
1010
  }
1001
1011
  output(e, n, r = {}) {
1002
1012
  if (typeof n == "function") {
1003
- const i = `output#${e}`;
1004
- return L(i, () => n(new E())), new _(
1013
+ const s = `output#${e}`;
1014
+ return D(s, () => n(new E())), new _(
1005
1015
  this._renderingMode,
1006
1016
  this._initialArgs,
1007
1017
  this._initialUiState,
@@ -1009,7 +1019,7 @@ class _ {
1009
1019
  ...this._outputs,
1010
1020
  [e]: {
1011
1021
  __renderLambda: !0,
1012
- handle: i,
1022
+ handle: s,
1013
1023
  ...r
1014
1024
  }
1015
1025
  },
@@ -1036,7 +1046,7 @@ class _ {
1036
1046
  return this.output(e, n, { retentive: !0 });
1037
1047
  }
1038
1048
  argsValid(e) {
1039
- return typeof e == "function" ? (L("inputsValid", () => e(new E())), new _(
1049
+ return typeof e == "function" ? (D("inputsValid", () => e(new E())), new _(
1040
1050
  this._renderingMode,
1041
1051
  this._initialArgs,
1042
1052
  this._initialUiState,
@@ -1058,7 +1068,7 @@ class _ {
1058
1068
  );
1059
1069
  }
1060
1070
  sections(e) {
1061
- return Array.isArray(e) ? this.sections(V(e)) : typeof e == "function" ? (L("sections", () => e(new E())), new _(
1071
+ return Array.isArray(e) ? this.sections(V(e)) : typeof e == "function" ? (D("sections", () => e(new E())), new _(
1062
1072
  this._renderingMode,
1063
1073
  this._initialArgs,
1064
1074
  this._initialUiState,
@@ -1078,7 +1088,7 @@ class _ {
1078
1088
  }
1079
1089
  /** Sets a rendering function to derive block title, shown for the block in the left blocks-overview panel. */
1080
1090
  title(e) {
1081
- return L("title", () => e(new E())), new _(
1091
+ return D("title", () => e(new E())), new _(
1082
1092
  this._renderingMode,
1083
1093
  this._initialArgs,
1084
1094
  this._initialUiState,
@@ -1156,10 +1166,10 @@ class _ {
1156
1166
  return Se() ? oe({ sdkVersion: T }) : { config: e };
1157
1167
  }
1158
1168
  }
1159
- function St(t, e, n, r) {
1169
+ function wt(t, e, n, r) {
1160
1170
  var u, h;
1161
1171
  Array.isArray(r) && (r = { filters: r });
1162
- const i = t.resultPool.getData().entries.map((d) => d.obj).filter(X).filter((d) => d.spec.name === "pl7.app/label" && d.spec.axesSpec.length === 1), s = (d, p) => {
1172
+ const s = t.resultPool.getData().entries.map((d) => d.obj).filter(X).filter((d) => d.spec.name === "pl7.app/label" && d.spec.axesSpec.length === 1), i = (d, p) => {
1163
1173
  let g = d.toString();
1164
1174
  if (p)
1165
1175
  for (const f in p)
@@ -1169,12 +1179,12 @@ function St(t, e, n, r) {
1169
1179
  for (const d of e)
1170
1180
  for (const p of d.spec.axesSpec) {
1171
1181
  const g = U(p);
1172
- for (const f of i) {
1182
+ for (const f of s) {
1173
1183
  const A = f.spec.axesSpec[0], y = U(f.spec.axesSpec[0]);
1174
1184
  if (x(g, y)) {
1175
- const I = Object.keys(g.domain ?? {}).length, D = Object.keys(y.domain ?? {}).length;
1176
- if (I > D) {
1177
- const R = s(f.id, g.domain);
1185
+ const I = Object.keys(g.domain ?? {}).length, L = Object.keys(y.domain ?? {}).length;
1186
+ if (I > L) {
1187
+ const R = i(f.id, g.domain);
1178
1188
  o.set(R, {
1179
1189
  id: R,
1180
1190
  spec: {
@@ -1184,7 +1194,7 @@ function St(t, e, n, r) {
1184
1194
  data: f.data
1185
1195
  });
1186
1196
  } else
1187
- o.set(s(f.id), f);
1197
+ o.set(i(f.id), f);
1188
1198
  }
1189
1199
  }
1190
1200
  }
@@ -1212,13 +1222,13 @@ function St(t, e, n, r) {
1212
1222
  sorting: ((h = n == null ? void 0 : n.pTableParams) == null ? void 0 : h.sorting) ?? []
1213
1223
  });
1214
1224
  }
1215
- function wt(t, e, n) {
1225
+ function At(t, e, n) {
1216
1226
  const r = t.findLabels(e);
1217
1227
  return {
1218
1228
  axis: e,
1219
- options: n.map((i) => ({
1220
- value: i,
1221
- label: (r == null ? void 0 : r[i]) ?? i.toString()
1229
+ options: n.map((s) => ({
1230
+ value: s,
1231
+ label: (r == null ? void 0 : r[s]) ?? s.toString()
1222
1232
  })),
1223
1233
  defaultValue: n[0]
1224
1234
  };
@@ -1227,8 +1237,8 @@ const Ve = (t, e) => {
1227
1237
  let n = t.toString();
1228
1238
  return e == null || e.forEach((r) => {
1229
1239
  if (r)
1230
- for (const [i, s] of Object.entries(r))
1231
- n += i, n += s;
1240
+ for (const [s, i] of Object.entries(r))
1241
+ n += s, n += i;
1232
1242
  }), n;
1233
1243
  };
1234
1244
  function je(t) {
@@ -1237,12 +1247,12 @@ function je(t) {
1237
1247
  let e = [[]];
1238
1248
  return t.forEach((n) => {
1239
1249
  const r = [];
1240
- n.forEach((i) => {
1241
- r.push(...e.map((s) => [...s, i]));
1250
+ n.forEach((s) => {
1251
+ r.push(...e.map((i) => [...i, s]));
1242
1252
  }), e = r;
1243
1253
  }), e;
1244
1254
  }
1245
- function ie(t, e) {
1255
+ function se(t, e) {
1246
1256
  const n = t.spec.axesSpec.map(U), r = e.spec.axesSpec.map(U);
1247
1257
  if (r.every((a) => n.some((u) => x(u, a) && x(a, u))))
1248
1258
  return [];
@@ -1265,22 +1275,22 @@ function Ue(t) {
1265
1275
  const e = [];
1266
1276
  for (let n = 0; n < t.length; n++)
1267
1277
  for (let r = n + 1; r < t.length; r++) {
1268
- const i = t[n], s = t[r];
1278
+ const s = t[n], i = t[r];
1269
1279
  e.push(
1270
- ...ie(i, s),
1271
- ...ie(s, i)
1280
+ ...se(s, i),
1281
+ ...se(i, s)
1272
1282
  );
1273
1283
  }
1274
1284
  return e;
1275
1285
  }
1276
- function At(t, e) {
1286
+ function Ct(t, e) {
1277
1287
  const n = [...e, ...Ue(e)];
1278
1288
  if (!n.some(
1279
1289
  (r) => r.data instanceof v && !r.data.getIsReadyOrError()
1280
1290
  ))
1281
1291
  return t.createPFrame(n);
1282
1292
  }
1283
- class Ct {
1293
+ class Pt {
1284
1294
  constructor(e) {
1285
1295
  this.handle = e;
1286
1296
  }
@@ -1301,40 +1311,40 @@ class Ct {
1301
1311
  }
1302
1312
  }
1303
1313
  function Be(t) {
1304
- return se({
1314
+ return ie({
1305
1315
  __isRef: !0,
1306
1316
  blockId: B(t, "blockId"),
1307
1317
  name: B(t, "name")
1308
1318
  });
1309
1319
  }
1310
- function Pt(t) {
1311
- return se({
1320
+ function It(t) {
1321
+ return ie({
1312
1322
  ref: Be(B(t, "ref")),
1313
1323
  label: B(t, "label")
1314
1324
  });
1315
1325
  }
1316
- const It = {
1326
+ const Rt = {
1317
1327
  sdkVersion: T
1318
1328
  };
1319
- function Rt() {
1329
+ function Ft() {
1320
1330
  return oe({ sdkVersion: T });
1321
1331
  }
1322
- function Ft(t) {
1332
+ function xt(t) {
1323
1333
  if (typeof globalThis.getEnvironmentValue == "function")
1324
1334
  return globalThis.getEnvironmentValue(t);
1325
1335
  }
1326
1336
  export {
1327
1337
  Ke as Args,
1328
1338
  _ as BlockModel,
1329
- It as CurrentSdkInfo,
1339
+ Rt as CurrentSdkInfo,
1330
1340
  b as FutureRef,
1331
- He as It,
1332
- yt as JsRenderInternal,
1333
- We as MainOutputs,
1341
+ We as It,
1342
+ bt as JsRenderInternal,
1343
+ He as MainOutputs,
1334
1344
  ve as OutputError,
1335
1345
  Ie as PAnnotationLabel,
1336
1346
  Re as PAnnotationTrace,
1337
- Ct as PFrameImpl,
1347
+ Pt as PFrameImpl,
1338
1348
  $ as RT_BINARY_PARTITIONED,
1339
1349
  G as RT_BINARY_SUPER_PARTITIONED,
1340
1350
  te as RT_JSON_PARTITIONED,
@@ -1342,54 +1352,55 @@ export {
1342
1352
  z as RT_RESOURCE_MAP,
1343
1353
  Y as RT_RESOURCE_MAP_PARTITIONED,
1344
1354
  E as RenderCtx,
1345
- De as ResultPool,
1355
+ Le as ResultPool,
1346
1356
  qe as StagingOutputs,
1347
1357
  xe as Trace,
1348
1358
  Fe as TraceEntry,
1349
1359
  v as TreeNodeAccessor,
1350
1360
  ze as UiState,
1351
1361
  nt as and,
1352
- At as createPFrameForGraphs,
1353
- St as createPlDataTable,
1354
- wt as createPlDataTableSheet,
1362
+ Ct as createPFrameForGraphs,
1363
+ wt as createPlDataTable,
1364
+ At as createPlDataTableSheet,
1355
1365
  ke as deriveLabels,
1356
1366
  K as downgradeCfgOrLambda,
1357
1367
  pt as extractArchiveAndGetURL,
1358
- _t as extractConfig,
1368
+ St as extractConfig,
1359
1369
  Ze as flatten,
1360
- Pt as fromPlOption,
1370
+ It as fromPlOption,
1361
1371
  Be as fromPlRef,
1362
1372
  Ue as getAdditionalColumns,
1363
1373
  at as getBlobContent,
1364
1374
  ut as getBlobContentAsJson,
1365
1375
  lt as getBlobContentAsString,
1366
1376
  ct as getDownloadedBlobContent,
1367
- Ft as getEnvironmentValue,
1377
+ xt as getEnvironmentValue,
1368
1378
  O as getFromCfg,
1369
1379
  V as getImmediate,
1370
1380
  ft as getImportProgress,
1371
1381
  B as getJsonField,
1372
1382
  ht as getLastLogs,
1373
- mt as getLogHandle,
1383
+ yt as getLogHandle,
1374
1384
  dt as getOnDemandBlobContent,
1375
- Le as getPartitionKeysList,
1385
+ De as getPartitionKeysList,
1376
1386
  gt as getProgressLog,
1377
- Rt as getRawPlatformaInstance,
1378
- it as getResourceField,
1379
- st as getResourceValueAsJson,
1380
- vt as getUniquePartitionKeys,
1381
- H as ifDef,
1387
+ mt as getProgressLogWithInfo,
1388
+ Ft as getRawPlatformaInstance,
1389
+ st as getResourceField,
1390
+ it as getResourceValueAsJson,
1391
+ _t as getUniquePartitionKeys,
1392
+ W as ifDef,
1382
1393
  Ee as isConfigLambda,
1383
1394
  et as isEmpty,
1384
1395
  Ge as isolate,
1385
1396
  Ye as makeArray,
1386
- se as makeObject,
1397
+ ie as makeObject,
1387
1398
  Qe as mapArrayValues,
1388
1399
  Xe as mapRecordValues,
1389
1400
  ot as mapResourceFields,
1390
1401
  tt as not,
1391
1402
  rt as or,
1392
- bt as parseResourceMap,
1403
+ vt as parseResourceMap,
1393
1404
  _e as readOutput,
1394
1405
  $e as wrapOutputs
1395
1406
  };