@platforma-sdk/ui-vue 1.42.14 → 1.42.18

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.
Files changed (56) hide show
  1. package/.turbo/turbo-build.log +25 -24
  2. package/.turbo/turbo-type-check.log +1 -1
  3. package/CHANGELOG.md +16 -0
  4. package/dist/components/PlAgDataTable/PlAgDataTableSheets.vue2.js +5 -5
  5. package/dist/components/PlAgDataTable/PlAgDataTableV2.vue2.js +21 -21
  6. package/dist/components/PlAgDataTable/sources/table-source-v2.d.ts.map +1 -1
  7. package/dist/components/PlAgDataTable/sources/table-source-v2.js +122 -123
  8. package/dist/components/PlAgDataTable/sources/table-source-v2.js.map +1 -1
  9. package/dist/components/PlAgDataTable/sources/table-state-v2.js +9 -9
  10. package/dist/components/PlAgDataTable/sources/value-rendering.d.ts.map +1 -1
  11. package/dist/components/PlAgDataTable/sources/value-rendering.js +24 -25
  12. package/dist/components/PlAgDataTable/sources/value-rendering.js.map +1 -1
  13. package/dist/components/PlAnnotations/components/DynamicForm.vue2.js +12 -12
  14. package/dist/components/PlAnnotations/components/FilterSidebar.vue2.js +2 -2
  15. package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.d.ts.map +1 -1
  16. package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.js +21 -20
  17. package/dist/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue.js.map +1 -1
  18. package/dist/components/PlMultiSequenceAlignment/data.d.ts.map +1 -1
  19. package/dist/components/PlMultiSequenceAlignment/data.js +169 -184
  20. package/dist/components/PlMultiSequenceAlignment/data.js.map +1 -1
  21. package/dist/components/PlTableFilters/filters-state.js +8 -8
  22. package/dist/components/PlTableFilters/filters_logic.d.ts.map +1 -1
  23. package/dist/components/PlTableFilters/filters_logic.js +67 -77
  24. package/dist/components/PlTableFilters/filters_logic.js.map +1 -1
  25. package/dist/defineApp.js +20 -20
  26. package/dist/internal/UpdateSerializer.js +3 -3
  27. package/dist/lib/model/common/dist/index.js +576 -444
  28. package/dist/lib/model/common/dist/index.js.map +1 -1
  29. package/dist/lib/ui/uikit/dist/components/DataTable/TableComponent.vue.js +1 -1
  30. package/dist/lib/ui/uikit/dist/components/PlAccordion/PlAccordionSection.vue2.js +1 -1
  31. package/dist/lib/ui/uikit/dist/components/PlFileDialog/Local.vue.js +6 -6
  32. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js +17 -17
  33. package/dist/lib/ui/uikit/dist/components/PlFileInput/PlFileInput.vue.js.map +1 -1
  34. package/dist/lib/ui/uikit/dist/components/PlLogView/PlLogView.vue.js +89 -63
  35. package/dist/lib/ui/uikit/dist/components/PlLogView/PlLogView.vue.js.map +1 -1
  36. package/dist/lib/ui/uikit/dist/components/PlSlideModal/PlPureSlideModal.vue.js +1 -1
  37. package/dist/lib/ui/uikit/dist/helpers/dom.js.map +1 -1
  38. package/dist/lib/ui/uikit/dist/helpers/downloadContent.js +32 -0
  39. package/dist/lib/ui/uikit/dist/helpers/downloadContent.js.map +1 -0
  40. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js +257 -192
  41. package/dist/lib/ui/uikit/dist/lib/model/common/dist/index.js.map +1 -1
  42. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js +473 -457
  43. package/dist/lib/ui/uikit/dist/sdk/model/dist/index.js.map +1 -1
  44. package/dist/lib.js +52 -50
  45. package/dist/lib.js.map +1 -1
  46. package/dist/sdk/model/dist/index.js +542 -526
  47. package/dist/sdk/model/dist/index.js.map +1 -1
  48. package/package.json +3 -3
  49. package/src/components/PlAgDataTable/sources/table-source-v2.ts +20 -16
  50. package/src/components/PlAgDataTable/sources/value-rendering.ts +15 -7
  51. package/src/components/PlAppErrorNotificationAlert/PlAppErrorNotificationAlert.vue +1 -0
  52. package/src/components/PlMultiSequenceAlignment/data.ts +12 -12
  53. package/src/components/PlTableFilters/filters_logic.ts +18 -15
  54. package/.turbo/turbo-test.log +0 -565
  55. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js +0 -27
  56. package/dist/lib/ui/uikit/dist/components/PlAccordion/ExpandTransition.vue.js.map +0 -1
@@ -1,305 +1,456 @@
1
- import f from "../../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
2
- import p from "../../../../_virtual/canonicalize.js";
3
- var E = Object.defineProperty, S = (t, e, n) => e in t ? E(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, m = (t, e, n) => S(t, typeof e != "symbol" ? e + "" : e, n);
4
- f.object({
1
+ import o from "../../../../node_modules/.pnpm/zod@3.23.8/node_modules/zod/lib/index.js";
2
+ import g from "../../../../_virtual/canonicalize.js";
3
+ var J = Object.defineProperty, I = (n, t, e) => t in n ? J(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, y = (n, t, e) => I(n, typeof t != "symbol" ? t + "" : t, e);
4
+ o.object({
5
5
  /** Included left border. */
6
- from: f.number(),
6
+ from: o.number(),
7
7
  /** Excluded right border. */
8
- to: f.number()
8
+ to: o.number()
9
9
  });
10
- function x(t) {
11
- throw new Error("Unexpected object: " + t);
10
+ function w(n) {
11
+ throw new Error("Unexpected object: " + n);
12
12
  }
13
- function Y(t) {
14
- if (!t || typeof t != "object")
13
+ function cn(n) {
14
+ if (!n || typeof n != "object")
15
15
  return !1;
16
- const e = t;
17
- if (!("type" in e))
16
+ const t = n;
17
+ if (!("type" in t))
18
18
  return !1;
19
- switch (e.type) {
19
+ switch (t.type) {
20
20
  case "Json":
21
- return typeof e.keyLength == "number" && e.data !== void 0 && typeof e.data == "object";
21
+ return typeof t.keyLength == "number" && t.data !== void 0 && typeof t.data == "object";
22
22
  case "JsonPartitioned":
23
- return typeof e.partitionKeyLength == "number" && e.parts !== void 0 && typeof e.parts == "object";
24
23
  case "BinaryPartitioned":
25
- return typeof e.partitionKeyLength == "number" && e.parts !== void 0 && typeof e.parts == "object";
24
+ case "ParquetPartitioned":
25
+ return typeof t.partitionKeyLength == "number" && t.parts !== void 0 && typeof t.parts == "object";
26
26
  default:
27
27
  return !1;
28
28
  }
29
29
  }
30
- function Z(t, e) {
31
- if (t !== void 0)
32
- switch (t.type) {
30
+ function un(n, t) {
31
+ if (n !== void 0)
32
+ switch (n.type) {
33
33
  case "Json":
34
- return t;
34
+ return n;
35
35
  case "JsonPartitioned": {
36
- const n = {};
37
- for (const [r, o] of Object.entries(t.parts))
38
- n[r] = e(o);
36
+ const e = {};
37
+ for (const [r, a] of Object.entries(n.parts))
38
+ e[r] = t(a);
39
39
  return {
40
- ...t,
41
- parts: n
40
+ ...n,
41
+ parts: e
42
42
  };
43
43
  }
44
44
  case "BinaryPartitioned": {
45
- const n = {};
46
- for (const [r, o] of Object.entries(t.parts))
47
- n[r] = {
48
- index: e(o.index),
49
- values: e(o.values)
45
+ const e = {};
46
+ for (const [r, a] of Object.entries(n.parts))
47
+ e[r] = {
48
+ index: t(a.index),
49
+ values: t(a.values)
50
50
  };
51
51
  return {
52
- ...t,
53
- parts: n
52
+ ...n,
53
+ parts: e
54
+ };
55
+ }
56
+ case "ParquetPartitioned": {
57
+ const e = {};
58
+ for (const [r, a] of Object.entries(n.parts))
59
+ e[r] = t(a);
60
+ return {
61
+ ...n,
62
+ parts: e
54
63
  };
55
64
  }
56
65
  }
57
66
  }
58
- function I(t) {
59
- if (!t || typeof t != "object")
67
+ function j(n) {
68
+ if (!n || typeof n != "object")
60
69
  return !1;
61
- const e = t;
62
- if (!("type" in e))
70
+ const t = n;
71
+ if (!("type" in t))
63
72
  return !1;
64
- switch (e.type) {
73
+ switch (t.type) {
65
74
  case "Json":
66
- return typeof e.keyLength == "number" && Array.isArray(e.data);
75
+ return typeof t.keyLength == "number" && Array.isArray(t.data);
67
76
  case "JsonPartitioned":
68
- return typeof e.partitionKeyLength == "number" && Array.isArray(e.parts);
69
77
  case "BinaryPartitioned":
70
- return typeof e.partitionKeyLength == "number" && Array.isArray(e.parts);
78
+ case "ParquetPartitioned":
79
+ return typeof t.partitionKeyLength == "number" && Array.isArray(t.parts);
71
80
  default:
72
81
  return !1;
73
82
  }
74
83
  }
75
- function tt(t) {
76
- return I(t) ? t.type === "JsonPartitioned" || t.type === "BinaryPartitioned" : !1;
84
+ function fn(n) {
85
+ if (!j(n)) return !1;
86
+ switch (n.type) {
87
+ case "JsonPartitioned":
88
+ case "BinaryPartitioned":
89
+ case "ParquetPartitioned":
90
+ return !0;
91
+ default:
92
+ return !1;
93
+ }
77
94
  }
78
- function et(t) {
79
- switch (t.type) {
80
- case "Json": {
81
- const e = Object.entries(t.data).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
95
+ function ln(n) {
96
+ switch (n.type) {
97
+ case "Json":
82
98
  return {
83
99
  type: "Json",
84
- keyLength: t.keyLength,
85
- data: e
100
+ keyLength: n.keyLength,
101
+ data: Object.entries(n.data).map(([t, e]) => ({ key: JSON.parse(t), value: e }))
86
102
  };
87
- }
88
- case "JsonPartitioned": {
89
- const e = Object.entries(t.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
103
+ case "JsonPartitioned":
90
104
  return {
91
105
  type: "JsonPartitioned",
92
- partitionKeyLength: t.partitionKeyLength,
93
- parts: e
106
+ partitionKeyLength: n.partitionKeyLength,
107
+ parts: Object.entries(n.parts).map(([t, e]) => ({ key: JSON.parse(t), value: e }))
94
108
  };
95
- }
96
- case "BinaryPartitioned": {
97
- const e = Object.entries(t.parts).map(([n, r]) => ({ key: JSON.parse(n), value: r }));
109
+ case "BinaryPartitioned":
98
110
  return {
99
111
  type: "BinaryPartitioned",
100
- partitionKeyLength: t.partitionKeyLength,
101
- parts: e
112
+ partitionKeyLength: n.partitionKeyLength,
113
+ parts: Object.entries(n.parts).map(([t, e]) => ({ key: JSON.parse(t), value: e }))
102
114
  };
103
- }
115
+ case "ParquetPartitioned":
116
+ return {
117
+ type: "ParquetPartitioned",
118
+ partitionKeyLength: n.partitionKeyLength,
119
+ parts: Object.entries(n.parts).map(([t, e]) => ({ key: JSON.parse(t), value: e }))
120
+ };
121
+ default:
122
+ w(n);
104
123
  }
105
124
  }
106
- function nt(t) {
107
- switch (t.type) {
108
- case "Json": {
109
- const e = {};
110
- for (const n of t.data)
111
- e[JSON.stringify(n.key)] = n.value;
125
+ function pn(n) {
126
+ switch (n.type) {
127
+ case "Json":
112
128
  return {
113
129
  type: "Json",
114
- keyLength: t.keyLength,
115
- data: e
130
+ keyLength: n.keyLength,
131
+ data: Object.fromEntries(
132
+ n.data.map(({ key: t, value: e }) => [JSON.stringify(t), e])
133
+ )
116
134
  };
117
- }
118
- case "JsonPartitioned": {
119
- const e = {};
120
- for (const n of t.parts)
121
- e[JSON.stringify(n.key)] = n.value;
135
+ case "JsonPartitioned":
122
136
  return {
123
137
  type: "JsonPartitioned",
124
- partitionKeyLength: t.partitionKeyLength,
125
- parts: e
138
+ partitionKeyLength: n.partitionKeyLength,
139
+ parts: Object.fromEntries(
140
+ n.parts.map(({ key: t, value: e }) => [JSON.stringify(t), e])
141
+ )
126
142
  };
127
- }
128
- case "BinaryPartitioned": {
129
- const e = {};
130
- for (const n of t.parts)
131
- e[JSON.stringify(n.key)] = n.value;
143
+ case "BinaryPartitioned":
132
144
  return {
133
145
  type: "BinaryPartitioned",
134
- partitionKeyLength: t.partitionKeyLength,
135
- parts: e
146
+ partitionKeyLength: n.partitionKeyLength,
147
+ parts: Object.fromEntries(
148
+ n.parts.map(({ key: t, value: e }) => [JSON.stringify(t), e])
149
+ )
136
150
  };
151
+ case "ParquetPartitioned":
152
+ return {
153
+ type: "ParquetPartitioned",
154
+ partitionKeyLength: n.partitionKeyLength,
155
+ parts: Object.fromEntries(
156
+ n.parts.map(({ key: t, value: e }) => [JSON.stringify(t), e])
157
+ )
158
+ };
159
+ default:
160
+ w(n);
161
+ }
162
+ }
163
+ function N(n) {
164
+ return n instanceof Error ? n.name === "AbortError" || N(n.cause) : !1;
165
+ }
166
+ function L(n) {
167
+ if (typeof n == "string")
168
+ return `String value was thrown: ${n}`;
169
+ if (n && typeof n == "object")
170
+ try {
171
+ return `Plain object was thrown: ${JSON.stringify(n)}`;
172
+ } catch (t) {
173
+ return `Non-serializable object was thrown (JSON.stringify failed: ${t instanceof Error ? t.message : String(t)}): ${String(n)}`;
137
174
  }
175
+ return `Non-Error value (${typeof n}) was thrown: ${n}`;
176
+ }
177
+ function T(n) {
178
+ return n instanceof Error ? n : new Error(L(n));
179
+ }
180
+ function E(n) {
181
+ const t = n.cause ? E(n.cause) : void 0, e = new Error(n.message, t !== void 0 ? { cause: t } : void 0);
182
+ return e.name = n.name || "Error", e.stack = n.stack, e;
183
+ }
184
+ function dn(n) {
185
+ if (n.error)
186
+ throw n.error instanceof Error ? n.error : E(n.error);
187
+ return n.value;
188
+ }
189
+ function mn(n) {
190
+ return JSON.stringify(n);
191
+ }
192
+ function C(n) {
193
+ return g(n);
194
+ }
195
+ function yn(n) {
196
+ return JSON.parse(n);
197
+ }
198
+ const l = {
199
+ Int: "Int",
200
+ Long: "Long",
201
+ Float: "Float",
202
+ Double: "Double",
203
+ String: "String",
204
+ Bytes: "Bytes"
205
+ };
206
+ function v(n, t) {
207
+ return n == null ? void 0 : n[t];
208
+ }
209
+ function $(n, t, e, r = "readMetadataJsonOrThrow") {
210
+ const a = v(n, e);
211
+ if (a === void 0) return;
212
+ const c = t[e];
213
+ try {
214
+ const i = JSON.parse(a);
215
+ return c.parse(i);
216
+ } catch (i) {
217
+ throw new Error(
218
+ `${r} failed, key: ${String(e)}, value: ${a}, error: ${T(i)}`
219
+ );
220
+ }
221
+ }
222
+ function D(n, t, e) {
223
+ try {
224
+ return $(n, t, e);
225
+ } catch {
226
+ return;
138
227
  }
139
228
  }
140
- function A(t, e) {
141
- const n = Math.floor(e / 8), r = 1 << 7 - e % 8;
142
- return (t[n] & r) > 0;
229
+ const hn = {
230
+ Alphabet: "pl7.app/alphabet"
231
+ };
232
+ function bn(n, t) {
233
+ return v(n == null ? void 0 : n.domain, t);
234
+ }
235
+ const p = {
236
+ Alphabet: "pl7.app/alphabet",
237
+ DiscreteValues: "pl7.app/discreteValues",
238
+ Format: "pl7.app/format",
239
+ Graph: {
240
+ IsVirtual: "pl7.app/graph/isVirtual"
241
+ },
242
+ HideDataFromUi: "pl7.app/hideDataFromUi",
243
+ IsLinkerColumn: "pl7.app/isLinkerColumn",
244
+ Label: "pl7.app/label",
245
+ Max: "pl7.app/max",
246
+ Min: "pl7.app/min",
247
+ Parents: "pl7.app/parents",
248
+ Sequence: {
249
+ Annotation: {
250
+ Mapping: "pl7.app/sequence/annotation/mapping"
251
+ },
252
+ IsAnnotation: "pl7.app/sequence/isAnnotation"
253
+ },
254
+ Table: {
255
+ FontFamily: "pl7.app/table/fontFamily",
256
+ OrderPriority: "pl7.app/table/orderPriority",
257
+ Visibility: "pl7.app/table/visibility"
258
+ },
259
+ Trace: "pl7.app/trace"
260
+ }, F = o.object({
261
+ type: o.nativeEnum(l),
262
+ name: o.string(),
263
+ domain: o.record(o.string(), o.string()).optional(),
264
+ annotations: o.record(o.string(), o.string()).optional(),
265
+ parentAxes: o.array(o.number()).optional()
266
+ }).passthrough(), M = {
267
+ [p.DiscreteValues]: o.array(o.string()).or(o.array(o.number())),
268
+ [p.Graph.IsVirtual]: o.boolean(),
269
+ [p.HideDataFromUi]: o.boolean(),
270
+ [p.IsLinkerColumn]: o.boolean(),
271
+ [p.Max]: o.number(),
272
+ [p.Min]: o.number(),
273
+ [p.Parents]: o.array(F),
274
+ [p.Sequence.Annotation.Mapping]: o.record(o.string(), o.string()),
275
+ [p.Sequence.IsAnnotation]: o.boolean(),
276
+ [p.Table.OrderPriority]: o.number(),
277
+ [p.Trace]: o.record(o.string(), o.unknown())
278
+ };
279
+ function gn(n, t) {
280
+ return v(n == null ? void 0 : n.annotations, t);
281
+ }
282
+ function wn(n, t) {
283
+ return D(n == null ? void 0 : n.annotations, M, t);
143
284
  }
144
- function J(t, e) {
145
- return A(t.absent, e);
285
+ const vn = {
286
+ Label: "pl7.app/label",
287
+ Table: {
288
+ RowSelection: "pl7.app/table/row-selection"
289
+ }
290
+ };
291
+ function m(n) {
292
+ const { type: t, name: e, domain: r } = n, a = { type: t, name: e };
293
+ return r && Object.entries(r).length > 0 && Object.assign(a, { domain: r }), a;
146
294
  }
147
- function O(t, e) {
148
- if (t.isNA) return A(t.isNA, e);
149
- const n = t.type, r = t.data[e];
150
- switch (n) {
151
- case "Int":
295
+ function B(n) {
296
+ return n.map(m);
297
+ }
298
+ function Pn(n) {
299
+ return C(m(n));
300
+ }
301
+ function R(n, t) {
302
+ if (n === void 0) return t === void 0;
303
+ if (t === void 0) return !0;
304
+ for (const e in t)
305
+ if (n[e] !== t[e]) return !1;
306
+ return !0;
307
+ }
308
+ function V(n, t) {
309
+ return n.name === t.name && R(n.domain, t.domain);
310
+ }
311
+ function S(n, t) {
312
+ const e = Math.floor(t / 8), r = 1 << 7 - t % 8;
313
+ return (n[e] & r) > 0;
314
+ }
315
+ function q(n, t) {
316
+ return S(n.absent, t);
317
+ }
318
+ function U(n, t) {
319
+ if (n.isNA) return S(n.isNA, t);
320
+ const e = n.type, r = n.data[t];
321
+ switch (e) {
322
+ case l.Int:
152
323
  return r === -2147483648;
153
- case "Long":
324
+ case l.Long:
154
325
  return r === -9007199254740991n;
155
- case "Float":
326
+ case l.Float:
156
327
  return Number.isNaN(r);
157
- case "Double":
328
+ case l.Double:
158
329
  return Number.isNaN(r);
159
- case "String":
330
+ case l.String:
160
331
  return r === null;
161
- case "Bytes":
332
+ case l.Bytes:
162
333
  return r === null;
163
334
  default:
164
- throw Error(`unsupported data type: ${n}`);
335
+ throw Error(`unsupported data type: ${e}`);
165
336
  }
166
337
  }
167
- const N = { type: "absent" };
168
- function rt(t) {
169
- return typeof t == "object" && t !== null && "type" in t && t.type === "absent";
338
+ const K = { type: "absent" };
339
+ function xn(n) {
340
+ return typeof n == "object" && n !== null && "type" in n && n.type === "absent";
170
341
  }
171
- const P = null;
172
- function j(t) {
173
- return t === P;
342
+ const O = null;
343
+ function G(n) {
344
+ return n === O;
174
345
  }
175
- function ot(t, e) {
176
- return !j(t);
346
+ function An(n, t) {
347
+ return !G(n);
177
348
  }
178
- function C(t, e, n) {
179
- const r = t.type;
180
- if (r === "Bytes")
349
+ function H(n, t, e) {
350
+ const r = n.type;
351
+ if (r === l.Bytes)
181
352
  throw Error("Bytes not yet supported");
182
- if (n && "dataType" in n && n.dataType !== void 0 && n.dataType !== r)
183
- throw Error(`expected column of type ${n.dataType}, got ${r}`);
184
- if (J(t, e))
185
- return (n == null ? void 0 : n.absent) !== void 0 ? n.absent : N;
186
- if (O(t, e))
187
- return (n == null ? void 0 : n.na) !== void 0 ? n.na : P;
188
- const o = t.data[e];
353
+ if (e && "dataType" in e && e.dataType !== void 0 && e.dataType !== r)
354
+ throw Error(`expected column of type ${e.dataType}, got ${r}`);
355
+ if (q(n, t))
356
+ return (e == null ? void 0 : e.absent) !== void 0 ? e.absent : K;
357
+ if (U(n, t))
358
+ return (e == null ? void 0 : e.na) !== void 0 ? e.na : O;
359
+ const a = n.data[t];
189
360
  switch (r) {
190
- case "Int":
191
- return o;
192
- case "Long":
193
- return Number(o);
194
- case "Float":
195
- return o;
196
- case "Double":
197
- return o;
198
- case "String":
199
- return o;
361
+ case l.Int:
362
+ return a;
363
+ case l.Long:
364
+ return Number(a);
365
+ case l.Float:
366
+ return a;
367
+ case l.Double:
368
+ return a;
369
+ case l.String:
370
+ return a;
200
371
  }
201
372
  }
202
- function at(t, e, n) {
203
- return C(t, e, n);
204
- }
205
- function l(t) {
206
- const { type: e, name: n, domain: r } = t, o = { type: e, name: n };
207
- return r && Object.entries(r).length > 0 && Object.assign(o, { domain: r }), o;
373
+ function kn(n, t, e) {
374
+ return H(n, t, e);
208
375
  }
209
- function $(t) {
210
- return t.map(l);
376
+ function En(n, t) {
377
+ return { ...n, src: h(n.src, t) };
211
378
  }
212
- function it(t) {
213
- return p(l(t));
214
- }
215
- function T(t, e) {
216
- if (t === void 0) return e === void 0;
217
- if (e === void 0) return !0;
218
- for (const n in e)
219
- if (t[n] !== e[n]) return !1;
220
- return !0;
221
- }
222
- function L(t, e) {
223
- return t.name === e.name && T(t.domain, e.domain);
224
- }
225
- function st(t, e) {
226
- return { ...t, src: y(t.src, e) };
227
- }
228
- function y(t, e) {
229
- switch (t.type) {
379
+ function h(n, t) {
380
+ switch (n.type) {
230
381
  case "column":
231
382
  return {
232
383
  type: "column",
233
- column: e(t.column)
384
+ column: t(n.column)
234
385
  };
235
386
  case "slicedColumn":
236
387
  return {
237
388
  type: "slicedColumn",
238
- column: e(t.column),
239
- newId: t.newId,
240
- axisFilters: t.axisFilters
389
+ column: t(n.column),
390
+ newId: n.newId,
391
+ axisFilters: n.axisFilters
241
392
  };
242
393
  case "inlineColumn":
243
- return t;
394
+ return n;
244
395
  case "inner":
245
396
  case "full":
246
397
  return {
247
- type: t.type,
248
- entries: t.entries.map((n) => y(n, e))
398
+ type: n.type,
399
+ entries: n.entries.map((e) => h(e, t))
249
400
  };
250
401
  case "outer":
251
402
  return {
252
403
  type: "outer",
253
- primary: y(t.primary, e),
254
- secondary: t.secondary.map((n) => y(n, e))
404
+ primary: h(n.primary, t),
405
+ secondary: n.secondary.map((e) => h(e, t))
255
406
  };
256
407
  default:
257
- x(t);
408
+ w(n);
258
409
  }
259
410
  }
260
- function ct(t) {
261
- switch (t.type) {
411
+ function Sn(n) {
412
+ switch (n.type) {
262
413
  case "axis":
263
414
  return {
264
415
  type: "axis",
265
- id: t.id
416
+ id: n.id
266
417
  };
267
418
  case "column":
268
419
  return {
269
420
  type: "column",
270
- id: t.id
421
+ id: n.id
271
422
  };
272
423
  }
273
424
  }
274
- function B(t) {
275
- return p(t);
425
+ function _(n) {
426
+ return g(n);
276
427
  }
277
- function b(t) {
278
- return p(l(t));
428
+ function P(n) {
429
+ return g(m(n));
279
430
  }
280
- function g(t, e) {
281
- return JSON.stringify([t, e]);
431
+ function x(n, t) {
432
+ return JSON.stringify([n, t]);
282
433
  }
283
- class ut {
434
+ class On {
284
435
  /**
285
436
  * Creates a new anchor context from a set of anchor column specifications
286
437
  * @param anchors Record of anchor column specifications indexed by anchor ID
287
438
  */
288
- constructor(e) {
289
- m(this, "domains", /* @__PURE__ */ new Map()), m(this, "axes", /* @__PURE__ */ new Map()), m(this, "domainPacks", []), m(this, "domainPackToAnchor", /* @__PURE__ */ new Map()), this.anchors = e;
290
- const n = Object.entries(e);
291
- n.sort((r, o) => r[0].localeCompare(o[0]));
292
- for (const [r, o] of n) {
293
- for (let s = 0; s < o.axesSpec.length; s++) {
294
- const i = o.axesSpec[s], a = b(i);
295
- this.axes.set(a, { anchor: r, idx: s });
439
+ constructor(t) {
440
+ y(this, "domains", /* @__PURE__ */ new Map()), y(this, "axes", /* @__PURE__ */ new Map()), y(this, "domainPacks", []), y(this, "domainPackToAnchor", /* @__PURE__ */ new Map()), this.anchors = t;
441
+ const e = Object.entries(t);
442
+ e.sort((r, a) => r[0].localeCompare(a[0]));
443
+ for (const [r, a] of e) {
444
+ for (let c = 0; c < a.axesSpec.length; c++) {
445
+ const i = a.axesSpec[c], s = P(i);
446
+ this.axes.set(s, { anchor: r, idx: c });
296
447
  }
297
- if (o.domain !== void 0) {
298
- const s = Object.entries(o.domain);
299
- s.sort((i, a) => i[0].localeCompare(a[0])), this.domainPackToAnchor.set(JSON.stringify(s), r), this.domainPacks.push(s.map(([i]) => i));
300
- for (const [i, a] of s) {
301
- const c = g(i, a);
302
- this.domains.set(c, r);
448
+ if (a.domain !== void 0) {
449
+ const c = Object.entries(a.domain);
450
+ c.sort((i, s) => i[0].localeCompare(s[0])), this.domainPackToAnchor.set(JSON.stringify(c), r), this.domainPacks.push(c.map(([i]) => i));
451
+ for (const [i, s] of c) {
452
+ const u = x(i, s);
453
+ this.domains.set(u, r);
303
454
  }
304
455
  }
305
456
  }
@@ -307,57 +458,57 @@ class ut {
307
458
  /**
308
459
  * Implementation of derive method
309
460
  */
310
- derive(e, n) {
461
+ derive(t, e) {
311
462
  const r = {
312
- name: e.name,
463
+ name: t.name,
313
464
  axes: []
314
465
  };
315
- let o;
316
- if (e.domain !== void 0)
317
- t:
466
+ let a;
467
+ if (t.domain !== void 0)
468
+ n:
318
469
  for (const i of this.domainPacks) {
319
- const a = [];
320
- for (const u of i) {
321
- const d = e.domain[u];
470
+ const s = [];
471
+ for (const f of i) {
472
+ const d = t.domain[f];
322
473
  if (d !== void 0)
323
- a.push([u, d]);
474
+ s.push([f, d]);
324
475
  else
325
- break t;
476
+ break n;
326
477
  }
327
- const c = this.domainPackToAnchor.get(JSON.stringify(a));
328
- if (c !== void 0) {
329
- r.domainAnchor = c, o = new Set(i);
478
+ const u = this.domainPackToAnchor.get(JSON.stringify(s));
479
+ if (u !== void 0) {
480
+ r.domainAnchor = u, a = new Set(i);
330
481
  break;
331
482
  }
332
483
  }
333
- for (const [i, a] of Object.entries(e.domain ?? {})) {
334
- if (o !== void 0 && o.has(i))
484
+ for (const [i, s] of Object.entries(t.domain ?? {})) {
485
+ if (a !== void 0 && a.has(i))
335
486
  continue;
336
- const c = g(i, a), u = this.domains.get(c);
337
- r.domain ?? (r.domain = {}), r.domain[i] = u ? { anchor: u } : a;
487
+ const u = x(i, s), f = this.domains.get(u);
488
+ r.domain ?? (r.domain = {}), r.domain[i] = f ? { anchor: f } : s;
338
489
  }
339
- if (r.axes = e.axesSpec.map((i) => {
340
- const a = b(i), c = this.axes.get(a);
341
- return c === void 0 ? l(i) : c;
342
- }), !n || n.length === 0)
490
+ if (r.axes = t.axesSpec.map((i) => {
491
+ const s = P(i), u = this.axes.get(s);
492
+ return u === void 0 ? m(i) : u;
493
+ }), !e || e.length === 0)
343
494
  return r;
344
- const s = [];
345
- for (const i of n) {
346
- const [a, c] = i;
347
- if (typeof a == "number") {
348
- if (a < 0 || a >= e.axesSpec.length)
349
- throw new Error(`Axis index ${a} is out of bounds (0-${e.axesSpec.length - 1})`);
350
- s.push([a, c]);
495
+ const c = [];
496
+ for (const i of e) {
497
+ const [s, u] = i;
498
+ if (typeof s == "number") {
499
+ if (s < 0 || s >= t.axesSpec.length)
500
+ throw new Error(`Axis index ${s} is out of bounds (0-${t.axesSpec.length - 1})`);
501
+ c.push([s, u]);
351
502
  } else {
352
- const u = e.axesSpec.findIndex((d) => d.name === a);
353
- if (u === -1)
354
- throw new Error(`Axis with name "${a}" not found in the column specification`);
355
- s.push([u, c]);
503
+ const f = t.axesSpec.findIndex((d) => d.name === s);
504
+ if (f === -1)
505
+ throw new Error(`Axis with name "${s}" not found in the column specification`);
506
+ c.push([f, u]);
356
507
  }
357
508
  }
358
- return s.sort((i, a) => i[0] - a[0]), {
509
+ return c.sort((i, s) => i[0] - s[0]), {
359
510
  source: r,
360
- axisFilters: s
511
+ axisFilters: c
361
512
  };
362
513
  }
363
514
  /**
@@ -366,326 +517,307 @@ class ut {
366
517
  * @param axisFilters Optional axis filters to apply to the column
367
518
  * @returns A canonicalized string representation of the anchored column identifier
368
519
  */
369
- deriveS(e, n) {
370
- return B(this.derive(e, n));
520
+ deriveS(t, e) {
521
+ return _(this.derive(t, e));
371
522
  }
372
523
  }
373
- function ft(t, e, n) {
374
- const r = { ...e }, o = (n == null ? void 0 : n.ignoreMissingDomains) ?? !1;
524
+ function Jn(n, t, e) {
525
+ const r = { ...t }, a = (e == null ? void 0 : e.ignoreMissingDomains) ?? !1;
375
526
  if (r.domainAnchor !== void 0) {
376
- const s = t[r.domainAnchor];
377
- if (!s)
527
+ const c = n[r.domainAnchor];
528
+ if (!c)
378
529
  throw new Error(`Anchor "${r.domainAnchor}" not found`);
379
- const i = s.domain || {};
530
+ const i = c.domain || {};
380
531
  r.domain = { ...i, ...r.domain }, delete r.domainAnchor;
381
532
  }
382
533
  if (r.domain) {
383
- const s = {};
384
- for (const [i, a] of Object.entries(r.domain))
385
- if (typeof a == "string")
386
- s[i] = a;
534
+ const c = {};
535
+ for (const [i, s] of Object.entries(r.domain))
536
+ if (typeof s == "string")
537
+ c[i] = s;
387
538
  else {
388
- const c = t[a.anchor];
389
- if (!c)
390
- throw new Error(`Anchor "${a.anchor}" not found for domain key "${i}"`);
391
- if (!c.domain || c.domain[i] === void 0) {
392
- if (!o)
393
- throw new Error(`Domain key "${i}" not found in anchor "${a.anchor}"`);
539
+ const u = n[s.anchor];
540
+ if (!u)
541
+ throw new Error(`Anchor "${s.anchor}" not found for domain key "${i}"`);
542
+ if (!u.domain || u.domain[i] === void 0) {
543
+ if (!a)
544
+ throw new Error(`Domain key "${i}" not found in anchor "${s.anchor}"`);
394
545
  continue;
395
546
  }
396
- s[i] = c.domain[i];
547
+ c[i] = u.domain[i];
397
548
  }
398
- r.domain = s;
549
+ r.domain = c;
399
550
  }
400
- return r.axes && (r.axes = r.axes.map((s) => R(t, s))), r;
551
+ return r.axes && (r.axes = r.axes.map((c) => z(n, c))), r;
401
552
  }
402
- function R(t, e) {
403
- if (!D(e))
404
- return e;
405
- const n = e.anchor, r = t[n];
553
+ function z(n, t) {
554
+ if (!X(t))
555
+ return t;
556
+ const e = t.anchor, r = n[e];
406
557
  if (!r)
407
- throw new Error(`Anchor "${n}" not found for axis reference`);
408
- if ("idx" in e) {
409
- if (e.idx < 0 || e.idx >= r.axesSpec.length)
410
- throw new Error(`Axis index ${e.idx} out of bounds for anchor "${n}"`);
411
- return r.axesSpec[e.idx];
412
- } else if ("name" in e) {
413
- const o = r.axesSpec.filter((s) => s.name === e.name);
414
- if (o.length > 1)
415
- throw new Error(`Multiple axes with name "${e.name}" found in anchor "${n}"`);
416
- if (o.length === 0)
417
- throw new Error(`Axis with name "${e.name}" not found in anchor "${n}"`);
418
- return o[0];
419
- } else if ("id" in e) {
420
- const o = r.axesSpec.filter((s) => L(e.id, l(s)));
421
- if (o.length > 1)
422
- throw new Error(`Multiple matching axes found for matcher in anchor "${n}"`);
423
- if (o.length === 0)
424
- throw new Error(`No matching axis found for matcher in anchor "${n}"`);
425
- return o[0];
558
+ throw new Error(`Anchor "${e}" not found for axis reference`);
559
+ if ("idx" in t) {
560
+ if (t.idx < 0 || t.idx >= r.axesSpec.length)
561
+ throw new Error(`Axis index ${t.idx} out of bounds for anchor "${e}"`);
562
+ return r.axesSpec[t.idx];
563
+ } else if ("name" in t) {
564
+ const a = r.axesSpec.filter((c) => c.name === t.name);
565
+ if (a.length > 1)
566
+ throw new Error(`Multiple axes with name "${t.name}" found in anchor "${e}"`);
567
+ if (a.length === 0)
568
+ throw new Error(`Axis with name "${t.name}" not found in anchor "${e}"`);
569
+ return a[0];
570
+ } else if ("id" in t) {
571
+ const a = r.axesSpec.filter((c) => V(t.id, m(c)));
572
+ if (a.length > 1)
573
+ throw new Error(`Multiple matching axes found for matcher in anchor "${e}"`);
574
+ if (a.length === 0)
575
+ throw new Error(`No matching axis found for matcher in anchor "${e}"`);
576
+ return a[0];
426
577
  }
427
578
  throw new Error("Unsupported axis reference type");
428
579
  }
429
- function D(t) {
430
- return typeof t == "object" && "anchor" in t;
580
+ function X(n) {
581
+ return typeof n == "object" && "anchor" in n;
431
582
  }
432
- function h(t) {
433
- return t.kind === "PColumn";
583
+ function b(n) {
584
+ return n.kind === "PColumn";
434
585
  }
435
- function K(t) {
436
- return h(t.spec);
586
+ function Q(n) {
587
+ return b(n.spec);
437
588
  }
438
- function dt(t) {
439
- if (!K(t)) throw new Error(`not a PColumn (kind = ${t.spec.kind})`);
440
- return t;
589
+ function In(n) {
590
+ if (!Q(n)) throw new Error(`not a PColumn (kind = ${n.spec.kind})`);
591
+ return n;
441
592
  }
442
- function lt(t, e) {
443
- return t === void 0 ? void 0 : {
444
- ...t,
445
- data: e(t.data)
593
+ function jn(n, t) {
594
+ return n === void 0 ? void 0 : {
595
+ ...n,
596
+ data: t(n.data)
446
597
  };
447
598
  }
448
- function pt(t) {
449
- const e = /* @__PURE__ */ new Map(), n = (r) => {
599
+ function Nn(n) {
600
+ const t = /* @__PURE__ */ new Map(), e = (r) => {
450
601
  switch (r.type) {
451
602
  case "column":
452
- e.set(r.column.id, r.column);
603
+ t.set(r.column.id, r.column);
453
604
  return;
454
605
  case "slicedColumn":
455
- e.set(r.column.id, r.column);
606
+ t.set(r.column.id, r.column);
456
607
  return;
457
608
  case "inlineColumn":
458
609
  return;
459
610
  case "full":
460
611
  case "inner":
461
- for (const o of r.entries) n(o);
612
+ for (const a of r.entries) e(a);
462
613
  return;
463
614
  case "outer":
464
- n(r.primary);
465
- for (const o of r.secondary) n(o);
615
+ e(r.primary);
616
+ for (const a of r.secondary) e(a);
466
617
  return;
467
618
  default:
468
- x(r);
619
+ w(r);
469
620
  }
470
621
  };
471
- return n(t), [...e.values()];
622
+ return e(n), [...t.values()];
472
623
  }
473
- function w(t, e) {
474
- if (t.name !== void 0 && t.name !== e.name)
624
+ function A(n, t) {
625
+ if (n.name !== void 0 && n.name !== t.name)
475
626
  return !1;
476
- if (t.type !== void 0) {
477
- if (Array.isArray(t.type)) {
478
- if (!t.type.includes(e.type))
627
+ if (n.type !== void 0) {
628
+ if (Array.isArray(n.type)) {
629
+ if (!n.type.includes(t.type))
479
630
  return !1;
480
- } else if (t.type !== e.type)
631
+ } else if (n.type !== t.type)
481
632
  return !1;
482
633
  }
483
- if (t.domain !== void 0) {
484
- const n = e.domain || {};
485
- for (const [r, o] of Object.entries(t.domain))
486
- if (n[r] !== o)
634
+ if (n.domain !== void 0) {
635
+ const e = t.domain || {};
636
+ for (const [r, a] of Object.entries(n.domain))
637
+ if (e[r] !== a)
487
638
  return !1;
488
639
  }
489
640
  return !0;
490
641
  }
491
- function v(t, e) {
492
- if (e.name !== void 0 && t.name !== e.name || e.namePattern !== void 0 && !new RegExp(e.namePattern).test(t.name))
642
+ function k(n, t) {
643
+ if (t.name !== void 0 && n.name !== t.name || t.namePattern !== void 0 && !new RegExp(t.namePattern).test(n.name))
493
644
  return !1;
494
- if (e.type !== void 0) {
495
- if (Array.isArray(e.type)) {
496
- if (!e.type.includes(t.valueType))
645
+ if (t.type !== void 0) {
646
+ if (Array.isArray(t.type)) {
647
+ if (!t.type.includes(n.valueType))
497
648
  return !1;
498
- } else if (e.type !== t.valueType)
649
+ } else if (t.type !== n.valueType)
499
650
  return !1;
500
651
  }
501
- if (e.domain !== void 0) {
502
- const n = t.domain || {};
503
- for (const [r, o] of Object.entries(e.domain))
504
- if (n[r] !== o)
652
+ if (t.domain !== void 0) {
653
+ const e = n.domain || {};
654
+ for (const [r, a] of Object.entries(t.domain))
655
+ if (e[r] !== a)
505
656
  return !1;
506
657
  }
507
- if (e.axes !== void 0) {
508
- const n = t.axesSpec.map(l);
509
- if (e.partialAxesMatch) {
510
- for (const r of e.axes)
511
- if (!n.some((o) => w(r, o)))
658
+ if (t.axes !== void 0) {
659
+ const e = n.axesSpec.map(m);
660
+ if (t.partialAxesMatch) {
661
+ for (const r of t.axes)
662
+ if (!e.some((a) => A(r, a)))
512
663
  return !1;
513
664
  } else {
514
- if (n.length !== e.axes.length)
665
+ if (e.length !== t.axes.length)
515
666
  return !1;
516
- for (let r = 0; r < e.axes.length; r++)
517
- if (!w(e.axes[r], n[r]))
667
+ for (let r = 0; r < t.axes.length; r++)
668
+ if (!A(t.axes[r], e[r]))
518
669
  return !1;
519
670
  }
520
671
  }
521
- if (e.annotations !== void 0) {
522
- const n = t.annotations || {};
523
- for (const [r, o] of Object.entries(e.annotations))
524
- if (n[r] !== o)
672
+ if (t.annotations !== void 0) {
673
+ const e = n.annotations || {};
674
+ for (const [r, a] of Object.entries(t.annotations))
675
+ if (e[r] !== a)
525
676
  return !1;
526
677
  }
527
- if (e.annotationPatterns !== void 0) {
528
- const n = t.annotations || {};
529
- for (const [r, o] of Object.entries(e.annotationPatterns)) {
530
- const s = n[r];
531
- if (s === void 0 || !new RegExp(o).test(s))
678
+ if (t.annotationPatterns !== void 0) {
679
+ const e = n.annotations || {};
680
+ for (const [r, a] of Object.entries(t.annotationPatterns)) {
681
+ const c = e[r];
682
+ if (c === void 0 || !new RegExp(a).test(c))
532
683
  return !1;
533
684
  }
534
685
  }
535
686
  return !0;
536
687
  }
537
- function mt(t) {
538
- return Array.isArray(t) ? (e) => t.some((n) => h(e) && v(e, n)) : (e) => h(e) && v(e, t);
688
+ function Ln(n) {
689
+ return Array.isArray(n) ? (t) => n.some((e) => b(t) && k(t, e)) : (t) => b(t) && k(t, n);
539
690
  }
540
- function yt(t) {
541
- const e = {
542
- kind: t.kind,
543
- name: t.name
691
+ function Tn(n) {
692
+ const t = {
693
+ kind: n.kind,
694
+ name: n.name
544
695
  };
545
- return t.domain !== void 0 && (e.domain = t.domain), h(t) && (e.axesSpec = $(t.axesSpec)), p(e);
696
+ return n.domain !== void 0 && (t.domain = n.domain), b(n) && (t.axesSpec = B(n.axesSpec)), g(t);
546
697
  }
547
- f.object({
548
- __isRef: f.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
549
- blockId: f.string().describe("Upstream block id"),
550
- name: f.string().describe("Name of the output provided to the upstream block's output context"),
551
- requireEnrichments: f.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")
698
+ o.object({
699
+ __isRef: o.literal(!0).describe("Crucial marker for the block dependency tree reconstruction"),
700
+ blockId: o.string().describe("Upstream block id"),
701
+ name: o.string().describe("Name of the output provided to the upstream block's output context"),
702
+ requireEnrichments: o.literal(!0).optional().describe("True if current block that stores this reference in its args, may need enrichments for the references value originating from the blocks in between current and referenced block")
552
703
  }).describe(
553
704
  "Universal reference type, allowing to set block connections. It is crucial that {@link __isRef} is present and equal to true, internal logic relies on this marker to build block dependency trees."
554
705
  ).readonly();
555
- function ht(t) {
556
- return typeof t == "object" && t !== null && "__isRef" in t && t.__isRef === !0 && "blockId" in t && "name" in t;
706
+ function Cn(n) {
707
+ return typeof n == "object" && n !== null && "__isRef" in n && n.__isRef === !0 && "blockId" in n && "name" in n;
557
708
  }
558
- function bt(t, e = !0) {
559
- if (e)
709
+ function $n(n, t = !0) {
710
+ if (t)
560
711
  return {
561
- ...t,
712
+ ...n,
562
713
  requireEnrichments: !0
563
714
  };
564
715
  {
565
- const { requireEnrichments: n, ...r } = t;
716
+ const { requireEnrichments: e, ...r } = n;
566
717
  return r;
567
718
  }
568
719
  }
569
- function gt(t, e) {
570
- return t.ok ? { ok: !0, value: e(t.value) } : t;
720
+ function Dn(n, t) {
721
+ return n.ok ? { ok: !0, value: t(n.value) } : n;
571
722
  }
572
- function F(t) {
573
- if (t instanceof Int8Array || t instanceof Uint8Array || t instanceof Uint8ClampedArray)
574
- return new DataView(t.buffer, t.byteOffset, t.byteLength);
575
- if (t instanceof ArrayBuffer) return new DataView(t);
723
+ function Y(n) {
724
+ if (n instanceof Int8Array || n instanceof Uint8Array || n instanceof Uint8ClampedArray)
725
+ return new DataView(n.buffer, n.byteOffset, n.byteLength);
726
+ if (n instanceof ArrayBuffer) return new DataView(n);
576
727
  throw new TypeError(
577
728
  "Expected `data` to be an ArrayBuffer, Buffer, Int8Array, Uint8Array or Uint8ClampedArray"
578
729
  );
579
730
  }
580
- const U = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", M = "0123456789ABCDEFGHIJKLMNOPQRSTUV", V = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
581
- function _(t, e, n) {
582
- n = n || {};
583
- let r, o;
584
- switch (e) {
731
+ const Z = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567", W = "0123456789ABCDEFGHIJKLMNOPQRSTUV", nn = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
732
+ function tn(n, t, e) {
733
+ e = e || {};
734
+ let r, a;
735
+ switch (t) {
585
736
  case "RFC3548":
586
737
  case "RFC4648":
587
- r = U, o = !0;
738
+ r = Z, a = !0;
588
739
  break;
589
740
  case "RFC4648-HEX":
590
- r = M, o = !0;
741
+ r = W, a = !0;
591
742
  break;
592
743
  case "Crockford":
593
- r = V, o = !1;
744
+ r = nn, a = !1;
594
745
  break;
595
746
  default:
596
- throw new Error("Unknown base32 variant: " + String(e));
747
+ throw new Error("Unknown base32 variant: " + String(t));
597
748
  }
598
- const s = n.padding !== void 0 ? n.padding : o, i = F(t);
599
- let a = 0, c = 0, u = "";
749
+ const c = e.padding !== void 0 ? e.padding : a, i = Y(n);
750
+ let s = 0, u = 0, f = "";
600
751
  for (let d = 0; d < i.byteLength; d++)
601
- for (c = c << 8 | i.getUint8(d), a += 8; a >= 5; )
602
- u += r[c >>> a - 5 & 31], a -= 5;
603
- if (a > 0 && (u += r[c << 5 - a & 31]), s)
604
- for (; u.length % 8 !== 0; )
605
- u += "=";
606
- return u;
607
- }
608
- const z = 15, q = 24, G = f.string().length(q).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
609
- function wt() {
610
- const t = new Uint8Array(z);
611
- return crypto.getRandomValues(t), G.parse(_(t, "RFC4648"));
612
- }
613
- function vt(t) {
614
- return p(t);
615
- }
616
- function xt(t) {
617
- return JSON.parse(t);
618
- }
619
- function H(t) {
620
- return t instanceof Error ? t.name === "AbortError" || H(t.cause) : !1;
621
- }
622
- function Q(t) {
623
- if (typeof t == "string")
624
- return `String value was thrown: ${t}`;
625
- if (t && typeof t == "object")
626
- try {
627
- return `Plain object was thrown: ${JSON.stringify(t)}`;
628
- } catch (e) {
629
- return `Non-serializable object was thrown (JSON.stringify failed: ${e instanceof Error ? e.message : String(e)}): ${String(t)}`;
630
- }
631
- return `Non-Error value (${typeof t}) was thrown: ${t}`;
632
- }
633
- function At(t) {
634
- return t instanceof Error ? t : new Error(Q(t));
635
- }
636
- function k(t) {
637
- const e = t.cause ? k(t.cause) : void 0, n = new Error(t.message, e !== void 0 ? { cause: e } : void 0);
638
- return n.name = t.name || "Error", n.stack = t.stack, n;
639
- }
640
- function Pt(t) {
641
- if (t.error)
642
- throw t.error instanceof Error ? t.error : k(t.error);
643
- return t.value;
752
+ for (u = u << 8 | i.getUint8(d), s += 8; s >= 5; )
753
+ f += r[u >>> s - 5 & 31], s -= 5;
754
+ if (s > 0 && (f += r[u << 5 - s & 31]), c)
755
+ for (; f.length % 8 !== 0; )
756
+ f += "=";
757
+ return f;
758
+ }
759
+ const en = 15, rn = 24, an = o.string().length(rn).regex(/[ABCDEFGHIJKLMNOPQRSTUVWXYZ234567]/).brand("PlId");
760
+ function Fn() {
761
+ const n = new Uint8Array(en);
762
+ return crypto.getRandomValues(n), an.parse(tn(n, "RFC4648"));
644
763
  }
645
764
  export {
646
- ut as AnchoredIdDeriver,
647
- N as PTableAbsent,
648
- P as PTableNA,
649
- G as PlId,
650
- z as PlIdBytes,
651
- q as PlIdLength,
652
- it as canonicalizeAxisId,
653
- vt as canonicalizeJson,
654
- et as dataInfoToEntries,
655
- yt as deriveNativeId,
656
- k as deserializeError,
657
- At as ensureError,
658
- dt as ensurePColumn,
659
- nt as entriesToDataInfo,
660
- pt as extractAllColumns,
661
- $ as getAxesId,
662
- l as getAxisId,
663
- ct as getPTableColumnId,
664
- H as hasAbortError,
665
- Y as isDataInfo,
666
- I as isDataInfoEntries,
667
- K as isPColumn,
668
- h as isPColumnSpec,
669
- rt as isPTableAbsent,
670
- j as isPTableNA,
671
- ot as isPTableValueAxis,
672
- tt as isPartitionedDataInfoEntries,
673
- ht as isPlRef,
674
- Z as mapDataInfo,
675
- y as mapJoinEntry,
676
- lt as mapPObjectData,
677
- st as mapPTableDef,
678
- gt as mapValueInVOE,
679
- w as matchAxis,
680
- L as matchAxisId,
681
- v as matchPColumn,
682
- at as pTableValue,
683
- xt as parseJson,
684
- ft as resolveAnchors,
685
- mt as selectorsToPredicate,
686
- B as stringifyColumnId,
687
- wt as uniquePlId,
688
- Pt as unwrapResult,
689
- bt as withEnrichments
765
+ On as AnchoredIdDeriver,
766
+ p as Annotation,
767
+ M as AnnotationJson,
768
+ F as AxisSpec,
769
+ hn as Domain,
770
+ vn as PColumnName,
771
+ K as PTableAbsent,
772
+ O as PTableNA,
773
+ an as PlId,
774
+ en as PlIdBytes,
775
+ rn as PlIdLength,
776
+ l as ValueType,
777
+ Pn as canonicalizeAxisId,
778
+ C as canonicalizeJson,
779
+ ln as dataInfoToEntries,
780
+ Tn as deriveNativeId,
781
+ E as deserializeError,
782
+ T as ensureError,
783
+ In as ensurePColumn,
784
+ pn as entriesToDataInfo,
785
+ Nn as extractAllColumns,
786
+ B as getAxesId,
787
+ m as getAxisId,
788
+ Sn as getPTableColumnId,
789
+ N as hasAbortError,
790
+ cn as isDataInfo,
791
+ j as isDataInfoEntries,
792
+ Q as isPColumn,
793
+ b as isPColumnSpec,
794
+ xn as isPTableAbsent,
795
+ G as isPTableNA,
796
+ An as isPTableValueAxis,
797
+ fn as isPartitionedDataInfoEntries,
798
+ Cn as isPlRef,
799
+ un as mapDataInfo,
800
+ h as mapJoinEntry,
801
+ jn as mapPObjectData,
802
+ En as mapPTableDef,
803
+ Dn as mapValueInVOE,
804
+ A as matchAxis,
805
+ V as matchAxisId,
806
+ k as matchPColumn,
807
+ kn as pTableValue,
808
+ yn as parseJson,
809
+ gn as readAnnotation,
810
+ wn as readAnnotationJson,
811
+ bn as readDomain,
812
+ v as readMetadata,
813
+ D as readMetadataJson,
814
+ $ as readMetadataJsonOrThrow,
815
+ Jn as resolveAnchors,
816
+ Ln as selectorsToPredicate,
817
+ _ as stringifyColumnId,
818
+ mn as stringifyJson,
819
+ Fn as uniquePlId,
820
+ dn as unwrapResult,
821
+ $n as withEnrichments
690
822
  };
691
823
  //# sourceMappingURL=index.js.map