@milaboratories/pl-middle-layer 1.41.9 → 1.41.10

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,14 +1,14 @@
1
1
  var uo = Object.defineProperty;
2
- var qr = (s, e) => (e = Symbol[s]) ? e : Symbol.for("Symbol." + s), Kr = (s) => {
2
+ var Kr = (s, e) => (e = Symbol[s]) ? e : Symbol.for("Symbol." + s), Hr = (s) => {
3
3
  throw TypeError(s);
4
4
  };
5
5
  var po = (s, e, t) => e in s ? uo(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t;
6
6
  var b = (s, e, t) => po(s, typeof e != "symbol" ? e + "" : e, t);
7
- var Hr = (s, e, t) => {
7
+ var Wr = (s, e, t) => {
8
8
  if (e != null) {
9
- typeof e != "object" && typeof e != "function" && Kr("Object expected");
9
+ typeof e != "object" && typeof e != "function" && Hr("Object expected");
10
10
  var r, n;
11
- t && (r = e[qr("asyncDispose")]), r === void 0 && (r = e[qr("dispose")], t && (n = r)), typeof r != "function" && Kr("Object not disposable"), n && (r = function() {
11
+ t && (r = e[Kr("asyncDispose")]), r === void 0 && (r = e[Kr("dispose")], t && (n = r)), typeof r != "function" && Hr("Object not disposable"), n && (r = function() {
12
12
  try {
13
13
  n.call(this);
14
14
  } catch (i) {
@@ -17,7 +17,7 @@ var Hr = (s, e, t) => {
17
17
  }), s.push([t, r, e]);
18
18
  } else t && s.push([t]);
19
19
  return e;
20
- }, Wr = (s, e, t) => {
20
+ }, zr = (s, e, t) => {
21
21
  var r = typeof SuppressedError == "function" ? SuppressedError : function(o, a, c, l) {
22
22
  return l = Error(c), l.name = "SuppressedError", l.error = o, l.suppressed = a, l;
23
23
  }, n = (o) => e = t ? new r(o, e, "An error was suppressed during disposal") : (t = !0, o), i = (o) => {
@@ -32,43 +32,43 @@ var Hr = (s, e, t) => {
32
32
  };
33
33
  return i();
34
34
  };
35
- import { extractConfig as Ce, UiError as zr, mapValueInVOE as gn, executePSpecPredicate as fo, mapPObjectData as ve, mapPTableDef as wr, isDataInfo as mn, mapDataInfo as vn, checkBlockFlag as ho, JsRenderInternal as go, isConfigLambda as yn, extractCodeWithInfo as ft, DefaultNavigationState as mo, PFrameDriverError as fe, isPFrameDriverError as vo, ensureError as it, extractAllColumns as yo, isAbortError as wo, RuntimeCapabilities as So } from "@platforma-sdk/model";
35
+ import { extractConfig as Pe, UiError as Xr, PFrameDriverError as M, mapValueInVOE as gn, executePSpecPredicate as fo, mapPObjectData as ve, mapPTableDef as Sr, isDataInfo as mn, mapDataInfo as vn, checkBlockFlag as ho, JsRenderInternal as go, isConfigLambda as yn, extractCodeWithInfo as ft, DefaultNavigationState as mo, isPFrameDriverError as vo, ensureError as it, extractAllColumns as yo, isAbortError as wo, RuntimeCapabilities as So } from "@platforma-sdk/model";
36
36
  export * from "@platforma-sdk/model";
37
- import { StableChannel as Ne, AnyChannel as Be, InitialBlockSettings as Xr, blockPackIdToString as bo } from "@milaboratories/pl-model-middle-layer";
37
+ import { StableChannel as Be, AnyChannel as je, InitialBlockSettings as Yr, blockPackIdToString as bo } from "@milaboratories/pl-model-middle-layer";
38
38
  export * from "@milaboratories/pl-model-middle-layer";
39
39
  export * from "@milaboratories/pl-deployments";
40
- import { request as Fr, RetryAgent as ko } from "undici";
41
- import { RegistryV1 as ye, tryLoadPackDescription as Sr, BlockPackMetaEmbedAbsoluteBytes as Ro, RegistryV2Reader as Co, folderReaderByUrl as Po, loadPackDescription as Yr } from "@platforma-sdk/block-tools";
42
- import ne from "node:fs";
40
+ import { request as Tr, RetryAgent as ko } from "undici";
41
+ import { RegistryV1 as ye, tryLoadPackDescription as br, BlockPackMetaEmbedAbsoluteBytes as Co, RegistryV2Reader as Ro, folderReaderByUrl as Po, loadPackDescription as Qr } from "@platforma-sdk/block-tools";
42
+ import oe from "node:fs";
43
43
  import * as Eo from "node:path";
44
44
  import _ from "node:path";
45
45
  import Oo from "yaml";
46
- import { assertNever as Y, notEmpty as N, canonicalJsonBytes as Fo, canonicalJsonGzBytes as To, cachedDeserialize as Ve, cachedDecode as kt, deepFreeze as Qr, ConsoleLoggerAdapter as wn, isDisposable as Io, isAsyncDisposable as $o, ConcurrencyLimitingExecutor as Zr, emptyDir as Ao, HmacSha256Signer as Tr, BlockEventDispatcher as Lo } from "@milaboratories/ts-helpers";
46
+ import { assertNever as Q, notEmpty as N, canonicalJsonBytes as Fo, canonicalJsonGzBytes as To, cachedDeserialize as Je, cachedDecode as kt, deepFreeze as Zr, ConsoleLoggerAdapter as wn, isDisposable as Io, isAsyncDisposable as $o, ConcurrencyLimitingExecutor as es, emptyDir as Ao, HmacSha256Signer as Ir, BlockEventDispatcher as Lo } from "@milaboratories/ts-helpers";
47
47
  import * as Sn from "node:fs/promises";
48
48
  import at from "node:fs/promises";
49
49
  import { tryResolve as Do } from "@milaboratories/resolve-helper";
50
- import { resourceTypesEqual as pe, field as J, Pl as D, PlClient as bn, isResourceId as es, isNullResourceId as Me, isResource as No, isResourceRef as Bo, isNotNullResourceId as br, ensureResourceIdNotNull as ct, resourceType as We, resourceTypeToString as jo, stringifyWithResourceId as Ye, resourceIdToString as Ee, isNotFoundError as xo, isTimeoutOrCancelError as Uo, toGlobalResourceId as Vo, UnauthenticatedPlClient as kn, toGlobalFieldId as Mo, poll as Jo, ContinuePolling as Go, plAddressToConfig as _o } from "@milaboratories/pl-client";
50
+ import { resourceTypesEqual as ue, field as G, Pl as D, PlClient as bn, isResourceId as ts, isNullResourceId as Me, isResource as No, isResourceRef as Bo, isNotNullResourceId as kr, ensureResourceIdNotNull as ct, resourceType as we, resourceTypeToString as jo, stringifyWithResourceId as Ye, resourceIdToString as Oe, isNotFoundError as xo, isTimeoutOrCancelError as Uo, toGlobalResourceId as Vo, UnauthenticatedPlClient as kn, toGlobalFieldId as Jo, poll as Mo, ContinuePolling as Go, plAddressToConfig as qo } from "@milaboratories/pl-client";
51
51
  export * from "@milaboratories/pl-client";
52
- import { SynchronizedTreeState as Rn, treeDumpStats as qo, isPlTreeNodeAccessor as Ko } from "@milaboratories/pl-tree";
53
- import { Computable as K, ChangeSource as ts, PollComputablePool as Ho, WatchableValue as Wo } from "@milaboratories/computable";
54
- import { randomUUID as ge, createHash as Fe, randomBytes as zo } from "node:crypto";
55
- import { PlTemplateV1 as X, PlTemplateOverrideV1 as Pe, PlTemplateLibV1 as he, PlTemplateSoftwareV1 as le, parseTemplate as Xo } from "@milaboratories/pl-model-backend";
52
+ import { SynchronizedTreeState as Cn, treeDumpStats as _o, isPlTreeNodeAccessor as Ko } from "@milaboratories/pl-tree";
53
+ import { Computable as H, ChangeSource as rs, PollComputablePool as Ho, WatchableValue as Wo } from "@milaboratories/computable";
54
+ import { randomUUID as ge, createHash as Te, randomBytes as zo } from "node:crypto";
55
+ import { PlTemplateV1 as Y, PlTemplateOverrideV1 as Ee, PlTemplateLibV1 as he, PlTemplateSoftwareV1 as de, parseTemplate as Xo } from "@milaboratories/pl-model-backend";
56
56
  import { LRUCache as lt } from "lru-cache";
57
57
  import { Worker as Yo } from "node:worker_threads";
58
- import Cn from "denque";
59
- import { Templates as we } from "@platforma-sdk/workflow-tengo";
60
- import te from "canonicalize";
58
+ import Rn from "denque";
59
+ import { Templates as Se } from "@platforma-sdk/workflow-tengo";
60
+ import re from "canonicalize";
61
61
  import Qo from "node:assert";
62
- import { Scope as Je, errors as Zo, getQuickJS as ei } from "quickjs-emscripten";
62
+ import { Scope as Ge, errors as Zo, getQuickJS as ei } from "quickjs-emscripten";
63
63
  import { PlQuickJSError as ti } from "@milaboratories/pl-errors";
64
- import * as rs from "remeda";
64
+ import * as ss from "remeda";
65
65
  import { setTimeout as Pn } from "node:timers/promises";
66
66
  import { createDownloadClient as En, createLogsClient as ri, createUploadBlobClient as On, createUploadProgressClient as si, DownloadDriver as ni, DownloadBlobToURLDriver as oi, UploadDriver as ii, LogsStreamDriver as ai, LogsDriver as ci, LsDriver as Fn, DownloadUrlDriver as li, uploadBlob as Tn, ImportFileHandleUploadData as In, isUpload as ui, isSignMatch as di } from "@milaboratories/pl-drivers";
67
67
  import { PFrame as $n } from "@milaboratories/pframes-rs-node";
68
68
  import { channel as pi } from "node:diagnostics_channel";
69
69
  import { text as fi } from "node:stream/consumers";
70
70
  import An from "node:os";
71
- async function ss(s) {
71
+ async function ns(s) {
72
72
  try {
73
73
  return await Sn.stat(s, { bigint: !0 });
74
74
  } catch (e) {
@@ -77,36 +77,36 @@ async function ss(s) {
77
77
  throw e;
78
78
  }
79
79
  }
80
- const hi = [ye.PlPackageYamlConfigFile], gi = [ye.PlPackageJsonConfigFile], Ir = ["backend", "dist", "tengo", "tpl", "main.plj.gz"], $r = ["config", "dist", "config.json"], Ln = ["frontend", "dist"], ns = "block-model/dist/config.json", mi = "block-ui/package.json", vi = [
81
- Ir,
80
+ const hi = [ye.PlPackageYamlConfigFile], gi = [ye.PlPackageJsonConfigFile], $r = ["backend", "dist", "tengo", "tpl", "main.plj.gz"], Ar = ["config", "dist", "config.json"], Ln = ["frontend", "dist"], os = "block-model/dist/config.json", mi = "block-ui/package.json", vi = [
82
81
  $r,
82
+ Ar,
83
83
  hi,
84
84
  gi,
85
85
  Ln
86
86
  ];
87
87
  async function yi(s) {
88
- return await ss(_.join(s, ...$r)) !== void 0 || await ss(_.join(s, ...Ir)) !== void 0;
88
+ return await ns(_.join(s, ...Ar)) !== void 0 || await ns(_.join(s, ...$r)) !== void 0;
89
89
  }
90
- function Rt(s, e) {
90
+ function Ct(s, e) {
91
91
  const t = Do(s, e);
92
92
  if (t === void 0) throw new Error(`Can't resolve ${e} against ${s}`);
93
93
  return t;
94
94
  }
95
- async function os(s, e) {
95
+ async function is(s, e) {
96
96
  if (_.isAbsolute(s) || (s = _.resolve(s)), await yi(s))
97
97
  return {
98
- workflow: _.join(s, ...Ir),
99
- config: _.join(s, ...$r),
98
+ workflow: _.join(s, ...$r),
99
+ config: _.join(s, ...Ar),
100
100
  ui: _.join(s, ...Ln)
101
101
  };
102
102
  {
103
- const t = Rt(s, ns), r = Rt(s, ns), n = Rt(s, mi);
103
+ const t = Ct(s, os), r = Ct(s, os), n = Ct(s, mi);
104
104
  return { workflow: t, config: r, ui: _.resolve(n, "..", "dist") };
105
105
  }
106
106
  }
107
107
  async function wi(s) {
108
108
  try {
109
- return await ne.promises.readFile(s, "utf8");
109
+ return await oe.promises.readFile(s, "utf8");
110
110
  } catch (e) {
111
111
  if (e instanceof Error && "code" in e && e.code === "ENOENT")
112
112
  return;
@@ -115,7 +115,7 @@ async function wi(s) {
115
115
  }
116
116
  async function Si(s) {
117
117
  try {
118
- return await ne.promises.stat(s, { bigint: !0 });
118
+ return await oe.promises.stat(s, { bigint: !0 });
119
119
  } catch (e) {
120
120
  if (e instanceof Error && "code" in e && e.code === "ENOENT")
121
121
  return;
@@ -130,13 +130,13 @@ async function Dn(s) {
130
130
  }
131
131
  return e.toString();
132
132
  }
133
- async function Ar(s) {
134
- const e = await ne.promises.stat(s.components.workflow.main.file, {
133
+ async function Lr(s) {
134
+ const e = await oe.promises.stat(s.components.workflow.main.file, {
135
135
  bigint: !0
136
- }), t = await ne.promises.stat(s.components.model.file, { bigint: !0 });
136
+ }), t = await oe.promises.stat(s.components.model.file, { bigint: !0 });
137
137
  return (e.mtimeNs > t.mtimeNs ? e.mtimeNs : t.mtimeNs).toString();
138
138
  }
139
- class au {
139
+ class lu {
140
140
  constructor(e, t, r) {
141
141
  this.v2Provider = e, this.registries = t, this.http = r;
142
142
  }
@@ -144,7 +144,7 @@ class au {
144
144
  const t = [], r = e.spec;
145
145
  switch (r.type) {
146
146
  case "remote-v1": {
147
- const n = this.http !== void 0 ? { dispatcher: this.http } : {}, o = await (await Fr(
147
+ const n = this.http !== void 0 ? { dispatcher: this.http } : {}, o = await (await Tr(
148
148
  `${r.url}/${ye.GlobalOverviewPath}`,
149
149
  n
150
150
  )).body.json();
@@ -173,8 +173,8 @@ class au {
173
173
  registryId: e.id,
174
174
  id: p,
175
175
  latestByChannel: {
176
- [Be]: f,
177
- [Ne]: f
176
+ [je]: f,
177
+ [Be]: f
178
178
  },
179
179
  allVersions: a.allVersions.map((v) => ({ version: v, channels: [] }))
180
180
  });
@@ -202,7 +202,7 @@ class au {
202
202
  // registryId: regEntry.id,
203
203
  // },
204
204
  case "local-dev":
205
- for (const n of await ne.promises.readdir(r.path, { withFileTypes: !0 })) {
205
+ for (const n of await oe.promises.readdir(r.path, { withFileTypes: !0 })) {
206
206
  if (!n.isDirectory()) continue;
207
207
  const i = _.join(r.path, n.name), o = await wi(
208
208
  _.join(i, ye.PlPackageYamlConfigFile)
@@ -232,21 +232,21 @@ class au {
232
232
  registryId: e.id,
233
233
  id: l,
234
234
  latestByChannel: {
235
- [Be]: u,
236
- [Ne]: u
235
+ [je]: u,
236
+ [Be]: u
237
237
  },
238
238
  allVersions: []
239
239
  });
240
240
  } else {
241
- let a = i, c = await Sr(a);
241
+ let a = i, c = await br(a);
242
242
  if (c === void 0) {
243
243
  for (const l of ["block", "meta"])
244
- if (a = _.join(i, l), c = await Sr(a), c !== void 0) break;
244
+ if (a = _.join(i, l), c = await br(a), c !== void 0) break;
245
245
  }
246
246
  if (c !== void 0) {
247
- const l = await Ar(c), u = {
247
+ const l = await Lr(c), u = {
248
248
  id: c.id,
249
- meta: await Ro.parseAsync(c.meta),
249
+ meta: await Co.parseAsync(c.meta),
250
250
  featureFlags: c.featureFlags,
251
251
  spec: {
252
252
  type: "dev-v2",
@@ -258,8 +258,8 @@ class au {
258
258
  registryId: e.id,
259
259
  id: c.id,
260
260
  latestByChannel: {
261
- [Be]: u,
262
- [Ne]: u
261
+ [je]: u,
262
+ [Be]: u
263
263
  },
264
264
  allVersions: []
265
265
  });
@@ -268,7 +268,7 @@ class au {
268
268
  }
269
269
  return t;
270
270
  default:
271
- return Y(r);
271
+ return Q(r);
272
272
  }
273
273
  }
274
274
  async listBlockPacks() {
@@ -296,35 +296,35 @@ class bi {
296
296
  getRegistry(e) {
297
297
  const t = this.registries.get(e);
298
298
  if (t) return t;
299
- const r = new Co(Po(e, this.http));
299
+ const r = new Ro(Po(e, this.http));
300
300
  return this.registries.set(e, r), r;
301
301
  }
302
302
  }
303
- const cu = {
303
+ const uu = {
304
304
  type: "remote-v2",
305
305
  url: "https://blocks.pl-open.science/"
306
- }, lu = {
306
+ }, du = {
307
307
  type: "remote-v1",
308
308
  url: "https://block.registry.platforma.bio/releases"
309
- }, uu = {
309
+ }, pu = {
310
310
  type: "remote-v1",
311
311
  url: "https://block.registry.platforma.bio/dev"
312
312
  }, ki = {
313
313
  groups: [{ id: "default", label: "Default", blocks: [] }]
314
- }, Ri = {
314
+ }, Ci = {
315
315
  stagingRefreshTimestamp: 0,
316
316
  blocksInLimbo: []
317
- }, Ci = {
317
+ }, Ri = {
318
318
  label: "New Project"
319
- }, Pi = { name: "UserProject", version: "2" }, ut = "SchemaVersion", Ge = "2", Lr = "ProjectCreated", _e = "ProjectLastModified", qe = "ProjectMeta", de = "ProjectStructure", dt = "BlockRenderingState", Ei = "BlockArgsAuthor/";
320
- function kr(s) {
319
+ }, Pi = { name: "UserProject", version: "2" }, ut = "SchemaVersion", qe = "2", Dr = "ProjectCreated", _e = "ProjectLastModified", Ke = "ProjectMeta", fe = "ProjectStructure", dt = "BlockRenderingState", Ei = "BlockArgsAuthor/";
320
+ function Cr(s) {
321
321
  return `${Ei}${s}`;
322
322
  }
323
323
  const Rr = "ProjectStructureAuthor", Oi = "__serviceTemplate_";
324
- function Cr(s) {
324
+ function Pr(s) {
325
325
  return `${Oi}${s}`;
326
326
  }
327
- const Ct = /* @__PURE__ */ new Set([
327
+ const Rt = /* @__PURE__ */ new Set([
328
328
  "blockPack",
329
329
  "blockSettings",
330
330
  "uiState",
@@ -334,7 +334,7 @@ const Ct = /* @__PURE__ */ new Set([
334
334
  "prodUiCtx",
335
335
  "prodOutput"
336
336
  ]);
337
- function q(s, e) {
337
+ function K(s, e) {
338
338
  return `${s}-${e}`;
339
339
  }
340
340
  const Fi = /^(?<blockId>.*)-(?<fieldName>blockPack|blockSettings|uiState|prodArgs|currentArgs|prodCtx|prodUiCtx|prodOutput|prodCtxPrevious|prodUiCtxPrevious|prodOutputPrevious|stagingCtx|stagingUiCtx|stagingOutput|stagingCtxPrevious|stagingUiCtxPrevious|stagingOutputPrevious)$/;
@@ -344,9 +344,9 @@ function Ti(s) {
344
344
  const { blockId: t, fieldName: r } = e.groups;
345
345
  return { blockId: t, fieldName: r };
346
346
  }
347
- const Ii = "projects", Nn = { name: "Projects", version: "1" }, $i = (s) => pe(s.type, Nn) ? s.fields : [];
347
+ const Ii = "projects", Nn = { name: "Projects", version: "1" }, $i = (s) => ue(s.type, Nn) ? s.fields : [];
348
348
  async function Ai(s, e, t, r) {
349
- const n = await Rn.init(
349
+ const n = await Cn.init(
350
350
  s,
351
351
  e,
352
352
  {
@@ -355,14 +355,14 @@ async function Ai(s, e, t, r) {
355
355
  },
356
356
  r.logger
357
357
  );
358
- return { computable: K.make((o) => {
358
+ return { computable: H.make((o) => {
359
359
  const a = o.accessor(n.entry()).node(), c = t.getValue(o);
360
360
  if (a === void 0) return;
361
361
  const l = [];
362
362
  for (const u of a.listDynamicFields()) {
363
363
  const d = a.traverse(u);
364
364
  if (d === void 0) continue;
365
- const p = N(d.getKeyValueAsJson(qe)), f = N(d.getKeyValueAsJson(Lr)), v = N(d.getKeyValueAsJson(_e));
365
+ const p = N(d.getKeyValueAsJson(Ke)), f = N(d.getKeyValueAsJson(Dr)), v = N(d.getKeyValueAsJson(_e));
366
366
  l.push({
367
367
  id: u,
368
368
  rid: d.id,
@@ -382,31 +382,31 @@ const Li = {
382
382
  name: "RenderTemplate",
383
383
  version: "1"
384
384
  };
385
- function Dr(s, e, t, r, n) {
385
+ function Nr(s, e, t, r, n) {
386
386
  if (n.length === 0) throw new Error("Zero output names provided");
387
- const i = t ? s.createEphemeral(Li) : s.createStruct(Di), o = J(i, "template"), a = J(i, "inputs");
387
+ const i = t ? s.createEphemeral(Li) : s.createStruct(Di), o = G(i, "template"), a = G(i, "inputs");
388
388
  return s.createField(o, "Input", e), s.createField(a, "Input", D.createPlMap(s, r, t)), s.lockInputs(i), D.futureRecord(s, i, n, "Output", "outputs/");
389
389
  }
390
390
  const Ni = { name: "BContextEnd", version: "1" }, Bi = { name: "BContext", version: "1" }, ji = "id", xi = "parent/", Ui = ["context", "result"];
391
- function is(s, e, t) {
392
- return Dr(s, e, !0, t, Ui);
391
+ function as(s, e, t) {
392
+ return Nr(s, e, !0, t, Ui);
393
393
  }
394
394
  function Vi(s) {
395
395
  const e = s.createEphemeral(Ni);
396
396
  return s.lock(e), e;
397
397
  }
398
- function as(s, e) {
398
+ function cs(s, e) {
399
399
  if (e.length === 0) return Vi(s);
400
400
  if (e.length === 1) return e[0];
401
401
  const t = s.createEphemeral(Bi);
402
- s.createField(J(t, ji), "Input", D.createPlString(s, ge()));
402
+ s.createField(G(t, ji), "Input", D.createPlString(s, ge()));
403
403
  for (let r = 0; r < e.length; r++)
404
- s.createField(J(t, `${xi}${r}`), "Input", e[r]);
404
+ s.createField(G(t, `${xi}${r}`), "Input", e[r]);
405
405
  return s.lock(t), t;
406
406
  }
407
407
  function Bn(s, e) {
408
408
  const t = /* @__PURE__ */ new Map(), r = (n, i, o) => {
409
- const a = Fe("sha256");
409
+ const a = Te("sha256");
410
410
  i.updateCacheKey(n, a, o);
411
411
  const c = a.digest("hex");
412
412
  if (!t.has(c)) {
@@ -417,30 +417,30 @@ function Bn(s, e) {
417
417
  };
418
418
  return r(e.template, jn, e.hashToSource);
419
419
  }
420
- const cs = {
420
+ const ls = {
421
421
  updateCacheKey(s, e, t) {
422
- e.update(he.type.name).update(he.type.version).update(s.name).update(s.version).update(Oe(s.name, t, s.sourceHash));
422
+ e.update(he.type.name).update(he.type.version).update(s.name).update(s.version).update(Fe(s.name, t, s.sourceHash));
423
423
  },
424
424
  render(s, e, t, r) {
425
425
  return e.createValue(
426
426
  he.type,
427
- JSON.stringify(he.fromV3Data(s, Oe(s.name, r, s.sourceHash)).data)
427
+ JSON.stringify(he.fromV3Data(s, Fe(s.name, r, s.sourceHash)).data)
428
428
  );
429
429
  }
430
430
  }, Qe = {
431
431
  updateCacheKey(s, e, t) {
432
- e.update(le.type.name).update(le.type.version).update(s.name).update(s.version).update(Oe(s.name, t, s.sourceHash));
432
+ e.update(de.type.name).update(de.type.version).update(s.name).update(s.version).update(Fe(s.name, t, s.sourceHash));
433
433
  },
434
434
  render(s, e, t, r) {
435
- const n = le.fromV3Data(s, Oe(s.name, r, s.sourceHash)), i = e.createStruct(le.type, n.data);
436
- return e.setKValue(i, le.metaNameKey, JSON.stringify(n.name)), e.lock(i), i;
435
+ const n = de.fromV3Data(s, Fe(s.name, r, s.sourceHash)), i = e.createStruct(de.type, n.data);
436
+ return e.setKValue(i, de.metaNameKey, JSON.stringify(n.name)), e.lock(i), i;
437
437
  }
438
438
  }, jn = {
439
439
  updateCacheKey(s, e, t) {
440
- e.update(X.type.name).update(X.type.version).update(s.hashOverride ?? "no-override").update(s.name).update(s.version).update(Oe(s.name, t, s.sourceHash));
440
+ e.update(Y.type.name).update(Y.type.version).update(s.hashOverride ?? "no-override").update(s.name).update(s.version).update(Fe(s.name, t, s.sourceHash));
441
441
  const r = (n) => (n.sort((i, o) => i[0] === o[0] ? 0 : i[0] < o[0] ? -1 : 1), n);
442
442
  for (const [n, i] of r(Object.entries(s.libs ?? {})))
443
- e.update("lib:" + n), cs.updateCacheKey(i, e, t);
443
+ e.update("lib:" + n), ls.updateCacheKey(i, e, t);
444
444
  for (const [n, i] of r(Object.entries(s.software ?? {})))
445
445
  e.update("soft:" + n), Qe.updateCacheKey(i, e, t);
446
446
  for (const [n, i] of r(Object.entries(s.assets ?? {})))
@@ -450,40 +450,40 @@ const cs = {
450
450
  },
451
451
  render(s, e, t, r) {
452
452
  const n = e.createStruct(
453
- X.type,
454
- JSON.stringify(X.fromV3Data(s, Oe(s.name, r, s.sourceHash)).data)
453
+ Y.type,
454
+ JSON.stringify(Y.fromV3Data(s, Fe(s.name, r, s.sourceHash)).data)
455
455
  );
456
456
  for (const [a, c] of Object.entries(s.libs ?? {})) {
457
- const l = X.libField(n, a);
458
- e.createField(l, "Input"), e.setField(l, t(c, cs, r));
457
+ const l = Y.libField(n, a);
458
+ e.createField(l, "Input"), e.setField(l, t(c, ls, r));
459
459
  }
460
460
  for (const [a, c] of Object.entries(s.software ?? {})) {
461
- const l = X.swField(n, a);
461
+ const l = Y.swField(n, a);
462
462
  e.createField(l, "Input"), e.setField(l, t(c, Qe, r));
463
463
  }
464
464
  for (const [a, c] of Object.entries(s.assets ?? {})) {
465
- const l = X.swField(n, a);
465
+ const l = Y.swField(n, a);
466
466
  e.createField(l, "Input"), e.setField(l, t(c, Qe, r));
467
467
  }
468
468
  for (const [a, c] of Object.entries(s.templates ?? {})) {
469
- const l = X.tplField(n, a);
469
+ const l = Y.tplField(n, a);
470
470
  e.createField(l, "Input"), e.setField(l, t(c, jn, r));
471
471
  }
472
472
  if (e.lock(n), !s.hashOverride) return n;
473
473
  const i = e.createStruct(
474
- Pe.type,
475
- JSON.stringify(Pe.fromV3Data(s))
476
- ), o = Pe.tplField(i);
474
+ Ee.type,
475
+ JSON.stringify(Ee.fromV3Data(s))
476
+ ), o = Ee.tplField(i);
477
477
  return e.createField(o, "Service"), e.setField(o, n), e.lock(i), i;
478
478
  }
479
479
  };
480
- function Oe(s, e, t) {
480
+ function Fe(s, e, t) {
481
481
  return N(
482
482
  e[t],
483
483
  `trying to get "${s}" source: sources map doesn't contain source hash ${t}`
484
484
  );
485
485
  }
486
- function Mi(s, e) {
486
+ function Ji(s, e) {
487
487
  const t = Xo(e.content), r = t.type;
488
488
  switch (r) {
489
489
  case "pl.tengo-template.v2":
@@ -491,10 +491,10 @@ function Mi(s, e) {
491
491
  case "pl.tengo-template.v3":
492
492
  return Bn(s, t);
493
493
  default:
494
- Y(r);
494
+ Q(r);
495
495
  }
496
496
  }
497
- function Ji(s, e) {
497
+ function Mi(s, e) {
498
498
  const t = e.data, r = t.type;
499
499
  switch (r) {
500
500
  case "pl.tengo-template.v2":
@@ -502,10 +502,10 @@ function Ji(s, e) {
502
502
  case "pl.tengo-template.v3":
503
503
  return Bn(s, t);
504
504
  default:
505
- Y(r);
505
+ Q(r);
506
506
  }
507
507
  }
508
- const ls = {
508
+ const us = {
509
509
  hash(s, e) {
510
510
  e.update(he.type.name).update(he.type.version).update(s.name).update(s.version).update(s.src);
511
511
  },
@@ -517,18 +517,18 @@ const ls = {
517
517
  }
518
518
  }, Ze = {
519
519
  hash(s, e) {
520
- e.update(le.type.name).update(le.type.version).update(s.name).update(s.version).update(s.src);
520
+ e.update(de.type.name).update(de.type.version).update(s.name).update(s.version).update(s.src);
521
521
  },
522
522
  render(s, e, t) {
523
- const r = le.fromV2Data(s), n = e.createStruct(le.type, r.data);
524
- return e.setKValue(n, le.metaNameKey, JSON.stringify(r.name)), e.lock(n), n;
523
+ const r = de.fromV2Data(s), n = e.createStruct(de.type, r.data);
524
+ return e.setKValue(n, de.metaNameKey, JSON.stringify(r.name)), e.lock(n), n;
525
525
  }
526
526
  }, xn = {
527
527
  hash(s, e) {
528
- e.update(X.type.name).update(X.type.version).update(s.hashOverride ?? "no-override").update(s.name).update(s.version).update(s.src);
528
+ e.update(Y.type.name).update(Y.type.version).update(s.hashOverride ?? "no-override").update(s.name).update(s.version).update(s.src);
529
529
  const t = (r) => (r.sort((n, i) => n[0] === i[0] ? 0 : n[0] < i[0] ? -1 : 1), r);
530
530
  for (const [r, n] of t(Object.entries(s.libs ?? {})))
531
- e.update("lib:" + r), ls.hash(n, e);
531
+ e.update("lib:" + r), us.hash(n, e);
532
532
  for (const [r, n] of t(Object.entries(s.software ?? {})))
533
533
  e.update("soft:" + r), Ze.hash(n, e);
534
534
  for (const [r, n] of t(Object.entries(s.assets ?? {})))
@@ -538,36 +538,36 @@ const ls = {
538
538
  },
539
539
  render(s, e, t) {
540
540
  const r = e.createStruct(
541
- X.type,
542
- JSON.stringify(X.fromV2Data(s).data)
541
+ Y.type,
542
+ JSON.stringify(Y.fromV2Data(s).data)
543
543
  );
544
544
  for (const [o, a] of Object.entries(s.libs ?? {})) {
545
- const c = X.libField(r, o);
546
- e.createField(c, "Input"), e.setField(c, t(a, ls));
545
+ const c = Y.libField(r, o);
546
+ e.createField(c, "Input"), e.setField(c, t(a, us));
547
547
  }
548
548
  for (const [o, a] of Object.entries(s.software ?? {})) {
549
- const c = X.swField(r, o);
549
+ const c = Y.swField(r, o);
550
550
  e.createField(c, "Input"), e.setField(c, t(a, Ze));
551
551
  }
552
552
  for (const [o, a] of Object.entries(s.assets ?? {})) {
553
- const c = X.swField(r, o);
553
+ const c = Y.swField(r, o);
554
554
  e.createField(c, "Input"), e.setField(c, t(a, Ze));
555
555
  }
556
556
  for (const [o, a] of Object.entries(s.templates ?? {})) {
557
- const c = X.tplField(r, o);
557
+ const c = Y.tplField(r, o);
558
558
  e.createField(c, "Input"), e.setField(c, t(a, xn));
559
559
  }
560
560
  if (e.lock(r), !s.hashOverride) return r;
561
561
  const n = e.createStruct(
562
- Pe.type,
563
- JSON.stringify(Pe.fromV2Data(s))
564
- ), i = Pe.tplField(n);
562
+ Ee.type,
563
+ JSON.stringify(Ee.fromV2Data(s))
564
+ ), i = Ee.tplField(n);
565
565
  return e.createField(i, "Service"), e.setField(i, r), e.lock(n), n;
566
566
  }
567
567
  };
568
568
  function Un(s, e) {
569
569
  const t = /* @__PURE__ */ new Map(), r = (n, i) => {
570
- const o = Fe("sha256");
570
+ const o = Te("sha256");
571
571
  i.hash(n, o);
572
572
  const a = o.digest("hex");
573
573
  if (!t.has(a)) {
@@ -578,16 +578,16 @@ function Un(s, e) {
578
578
  };
579
579
  return r(e, xn);
580
580
  }
581
- const Gi = { name: "TengoTemplateGet", version: "1" }, _i = "registry", qi = "templateURI", Ki = "template", du = { name: "TengoTemplatePack", version: "1" }, pu = {
581
+ const Gi = { name: "TengoTemplateGet", version: "1" }, qi = "registry", _i = "templateURI", Ki = "template", fu = { name: "TengoTemplatePack", version: "1" }, hu = {
582
582
  name: "TengoTemplatePackConvert",
583
583
  version: "1"
584
- }, fu = "templatePack", hu = "template";
584
+ }, gu = "templatePack", mu = "template";
585
585
  async function Vn(s) {
586
586
  switch (s.type) {
587
587
  case "from-file":
588
588
  return {
589
589
  type: "explicit",
590
- content: await ne.promises.readFile(s.path)
590
+ content: await oe.promises.readFile(s.path)
591
591
  };
592
592
  case "from-registry":
593
593
  case "explicit":
@@ -595,11 +595,11 @@ async function Vn(s) {
595
595
  case "prepared":
596
596
  return s;
597
597
  default:
598
- return Y(s);
598
+ return Q(s);
599
599
  }
600
600
  }
601
601
  function Hi(s, e) {
602
- const t = s.createStruct(Gi), r = J(t, _i), n = J(t, qi), i = J(t, Ki);
602
+ const t = s.createStruct(Gi), r = G(t, qi), n = G(t, _i), i = G(t, Ki);
603
603
  return s.setField(r, s.createValue(D.JsonString, Buffer.from(JSON.stringify(e.registry)))), s.setField(n, s.createValue(D.JsonString, Buffer.from(JSON.stringify(e.path)))), i;
604
604
  }
605
605
  function ht(s, e) {
@@ -607,14 +607,14 @@ function ht(s, e) {
607
607
  case "from-registry":
608
608
  return Hi(s, e);
609
609
  case "explicit":
610
- return Mi(s, e);
611
- case "prepared":
612
610
  return Ji(s, e);
611
+ case "prepared":
612
+ return Mi(s, e);
613
613
  default:
614
- return Y(e);
614
+ return Q(e);
615
615
  }
616
616
  }
617
- const Mn = { name: "Frontend/FromUrl", version: "1" }, Jn = {
617
+ const Jn = { name: "Frontend/FromUrl", version: "1" }, Mn = {
618
618
  name: "Frontend/FromFolder",
619
619
  version: "1"
620
620
  };
@@ -622,19 +622,19 @@ function Wi(s, e) {
622
622
  switch (e.type) {
623
623
  case "url":
624
624
  return s.createValue(
625
- Mn,
625
+ Jn,
626
626
  JSON.stringify({ url: e.url })
627
627
  );
628
628
  case "local":
629
629
  return s.createValue(
630
- Jn,
630
+ Mn,
631
631
  JSON.stringify({
632
632
  path: e.path,
633
633
  signature: e.signature
634
634
  })
635
635
  );
636
636
  default:
637
- return Y(e);
637
+ return Q(e);
638
638
  }
639
639
  }
640
640
  class zi {
@@ -673,8 +673,8 @@ class zi {
673
673
  return this.terminate();
674
674
  }
675
675
  }
676
- const Xi = { name: "BlockPackCustom", version: "1" }, Gn = "template", _n = "frontend";
677
- function us(s) {
676
+ const Xi = { name: "BlockPackCustom", version: "1" }, Gn = "template", qn = "frontend";
677
+ function ds(s) {
678
678
  return s.endsWith("/") ? s : `${s}/`;
679
679
  }
680
680
  function Yi(s) {
@@ -690,7 +690,7 @@ class Qi {
690
690
  maxSize: 128 * 1024 * 1024,
691
691
  fetchMethod: async (e) => {
692
692
  const t = this.http !== void 0 ? { dispatcher: this.http } : {};
693
- return await (await Fr(e, t)).body.arrayBuffer();
693
+ return await (await Tr(e, t)).body.arrayBuffer();
694
694
  },
695
695
  sizeCalculation: (e) => e.byteLength
696
696
  }));
@@ -703,17 +703,17 @@ class Qi {
703
703
  case "prepared":
704
704
  return e.config;
705
705
  case "dev-v1": {
706
- const t = await os(e.folder), r = await ne.promises.readFile(t.config, { encoding: "utf-8" });
706
+ const t = await is(e.folder), r = await oe.promises.readFile(t.config, { encoding: "utf-8" });
707
707
  return JSON.parse(r);
708
708
  }
709
709
  case "dev-v2": {
710
- const t = await Yr(e.folder), r = await ne.promises.readFile(t.components.model.file, {
710
+ const t = await Qr(e.folder), r = await oe.promises.readFile(t.components.model.file, {
711
711
  encoding: "utf-8"
712
712
  });
713
713
  return JSON.parse(r);
714
714
  }
715
715
  case "from-registry-v1": {
716
- const t = `${us(e.registryUrl)}${ye.packageContentPrefix({ organization: e.id.organization, package: e.id.name, version: e.id.version })}`, r = await this.remoteContentCache.forceFetch(`${t}/config.json`);
716
+ const t = `${ds(e.registryUrl)}${ye.packageContentPrefix({ organization: e.id.organization, package: e.id.name, version: e.id.version })}`, r = await this.remoteContentCache.forceFetch(`${t}/config.json`);
717
717
  return et(r);
718
718
  }
719
719
  case "from-registry-v2": {
@@ -721,7 +721,7 @@ class Qi {
721
721
  return et(n);
722
722
  }
723
723
  default:
724
- return Y(e);
724
+ return Q(e);
725
725
  }
726
726
  }
727
727
  async prepare(e) {
@@ -730,7 +730,7 @@ class Qi {
730
730
  if (e.type === "prepared")
731
731
  return e;
732
732
  const t = await this.prepareWithoutUnpacking(e);
733
- const r = Hr(n, new zi(), !0);
733
+ const r = Wr(n, new zi(), !0);
734
734
  return {
735
735
  ...t,
736
736
  type: "prepared",
@@ -742,7 +742,7 @@ class Qi {
742
742
  } catch (i) {
743
743
  var o = i, a = !0;
744
744
  } finally {
745
- var c = Wr(n, o, a);
745
+ var c = zr(n, o, a);
746
746
  c && await c;
747
747
  }
748
748
  }
@@ -751,8 +751,8 @@ class Qi {
751
751
  case "explicit":
752
752
  return e;
753
753
  case "dev-v1": {
754
- const t = await os(e.folder), r = await ne.promises.readFile(t.workflow), n = JSON.parse(
755
- await ne.promises.readFile(t.config, "utf-8")
754
+ const t = await is(e.folder), r = await oe.promises.readFile(t.workflow), n = JSON.parse(
755
+ await oe.promises.readFile(t.config, "utf-8")
756
756
  ), i = t.ui;
757
757
  return {
758
758
  type: "explicit",
@@ -770,14 +770,14 @@ class Qi {
770
770
  };
771
771
  }
772
772
  case "dev-v2": {
773
- const t = await Yr(e.folder), r = JSON.parse(
774
- await ne.promises.readFile(t.components.model.file, {
773
+ const t = await Qr(e.folder), r = JSON.parse(
774
+ await oe.promises.readFile(t.components.model.file, {
775
775
  encoding: "utf-8"
776
776
  })
777
- ), n = await ne.promises.readFile(
777
+ ), n = await oe.promises.readFile(
778
778
  t.components.workflow.main.file
779
779
  ), i = t.components.ui.folder, o = { ...e };
780
- return e.mtime === void 0 && (o.mtime = await Ar(t)), {
780
+ return e.mtime === void 0 && (o.mtime = await Lr(t)), {
781
781
  type: "explicit",
782
782
  template: {
783
783
  type: "explicit",
@@ -793,7 +793,7 @@ class Qi {
793
793
  };
794
794
  }
795
795
  case "from-registry-v1": {
796
- const t = `${us(e.registryUrl)}${ye.packageContentPrefix({ organization: e.id.organization, package: e.id.name, version: e.id.version })}`, r = `${t}/template.plj.gz`, n = await this.remoteContentCache.forceFetch(r), i = new Uint8Array(n), o = await this.remoteContentCache.forceFetch(`${t}/config.json`), a = et(o);
796
+ const t = `${ds(e.registryUrl)}${ye.packageContentPrefix({ organization: e.id.organization, package: e.id.name, version: e.id.version })}`, r = `${t}/template.plj.gz`, n = await this.remoteContentCache.forceFetch(r), i = new Uint8Array(n), o = await this.remoteContentCache.forceFetch(`${t}/config.json`), a = et(o);
797
797
  return {
798
798
  type: "explicit",
799
799
  template: {
@@ -825,20 +825,20 @@ class Qi {
825
825
  };
826
826
  }
827
827
  default:
828
- return Y(e);
828
+ return Q(e);
829
829
  }
830
830
  }
831
831
  }
832
832
  function Zi(s, e) {
833
833
  const t = { config: e.config, source: e.source }, r = s.createStruct(Xi, JSON.stringify(t));
834
- return s.createField(J(r, Gn), "Input", ht(s, e.template)), s.createField(J(r, _n), "Input", Wi(s, e.frontend)), s.lock(r), r;
834
+ return s.createField(G(r, Gn), "Input", ht(s, e.template)), s.createField(G(r, qn), "Input", Wi(s, e.frontend)), s.lock(r), r;
835
835
  }
836
- function ds(s, e) {
836
+ function ps(s, e) {
837
837
  switch (e.type) {
838
838
  case "prepared":
839
839
  return Zi(s, e);
840
840
  default:
841
- return Y(e.type);
841
+ return Q(e.type);
842
842
  }
843
843
  }
844
844
  function tt(s, e, t) {
@@ -847,7 +847,7 @@ function tt(s, e, t) {
847
847
  function ea(s) {
848
848
  return typeof s == "object" && s !== null && "__isRef" in s && s.__isRef === !0 && "blockId" in s && "name" in s;
849
849
  }
850
- function Pr(s, e, t) {
850
+ function Er(s, e, t) {
851
851
  const r = typeof e;
852
852
  switch (r) {
853
853
  case "function":
@@ -863,27 +863,27 @@ function Pr(s, e, t) {
863
863
  if (ea(e))
864
864
  t === void 0 || t.has(e.blockId) ? (s.upstreams.add(e.blockId), e.requireEnrichments && s.upstreamsRequiringEnrichments.add(e.blockId)) : s.missingReferences = !0;
865
865
  else if (Array.isArray(e))
866
- for (const n of e) Pr(s, n, t);
866
+ for (const n of e) Er(s, n, t);
867
867
  else
868
868
  for (const [, n] of Object.entries(e))
869
- Pr(s, n, t);
869
+ Er(s, n, t);
870
870
  return;
871
871
  default:
872
- Y(r);
872
+ Q(r);
873
873
  }
874
874
  }
875
875
  function ta(s, e) {
876
876
  const t = { upstreams: /* @__PURE__ */ new Set(), upstreamsRequiringEnrichments: /* @__PURE__ */ new Set(), missingReferences: !1 };
877
- return Pr(t, s, e), t;
877
+ return Er(t, s, e), t;
878
878
  }
879
- function re(s) {
879
+ function se(s) {
880
880
  return {
881
881
  *[Symbol.iterator]() {
882
882
  for (const e of s.groups) for (const t of e.blocks) yield t;
883
883
  }
884
884
  };
885
885
  }
886
- class qn {
886
+ class _n {
887
887
  constructor(e) {
888
888
  /** Nodes are stored in the map in topological order */
889
889
  b(this, "nodes");
@@ -913,28 +913,28 @@ class qn {
913
913
  }
914
914
  }
915
915
  }
916
- function Er(s) {
916
+ function Or(s) {
917
917
  const e = /* @__PURE__ */ new Map();
918
918
  let t;
919
- for (const { id: r } of re(s)) {
919
+ for (const { id: r } of se(s)) {
920
920
  const n = {
921
921
  id: r,
922
922
  missingReferences: !1
923
923
  };
924
924
  e.set(r, n), t === void 0 ? (n.directUpstream = n.upstream = /* @__PURE__ */ new Set(), n.enrichments = n.enrichmentTargets = /* @__PURE__ */ new Set()) : (n.directUpstream = n.upstream = /* @__PURE__ */ new Set([t.id]), t.directDownstream = t.downstream = /* @__PURE__ */ new Set([n.id]), t.enrichments = t.enrichmentTargets = /* @__PURE__ */ new Set()), t = n;
925
925
  }
926
- return t !== void 0 && (t.directDownstream = t.downstream = /* @__PURE__ */ new Set()), new qn(e);
926
+ return t !== void 0 && (t.directDownstream = t.downstream = /* @__PURE__ */ new Set()), new _n(e);
927
927
  }
928
928
  function nt(s, e) {
929
- const t = /* @__PURE__ */ new Map(), r = new qn(t), n = /* @__PURE__ */ new Set();
930
- for (const { id: i } of re(s)) {
929
+ const t = /* @__PURE__ */ new Map(), r = new _n(t), n = /* @__PURE__ */ new Set();
930
+ for (const { id: i } of se(s)) {
931
931
  const o = e(i);
932
932
  if (o === void 0) continue;
933
933
  const a = ta(o.args, n), c = /* @__PURE__ */ new Set([
934
934
  ...a.upstreams,
935
935
  ...r.traverseIds("enrichments", ...a.upstreamsRequiringEnrichments)
936
936
  ]), l = /* @__PURE__ */ new Set();
937
- for (const { id: p } of re(s)) {
937
+ for (const { id: p } of se(s)) {
938
938
  if (p === i) break;
939
939
  if (c.has(p)) {
940
940
  l.add(p);
@@ -967,41 +967,41 @@ function ra(s, e) {
967
967
  for (const t of s) if (!e.has(t)) return !1;
968
968
  return !0;
969
969
  }
970
- function Or(s, e) {
971
- if (s.size > e.size) return Or(e, s);
970
+ function Fr(s, e) {
971
+ if (s.size > e.size) return Fr(e, s);
972
972
  for (const t of s) if (e.has(t)) return !0;
973
973
  return !1;
974
974
  }
975
- function ps(s, e) {
975
+ function fs(s, e) {
976
976
  const t = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
977
977
  return s.nodes.forEach((i) => {
978
978
  const o = e.nodes.get(i.id);
979
- o === void 0 ? t.add(i.id) : (!ra(i.upstream, o.upstream) || Or(i.upstream, n)) && n.add(i.id);
979
+ o === void 0 ? t.add(i.id) : (!ra(i.upstream, o.upstream) || Fr(i.upstream, n)) && n.add(i.id);
980
980
  }), e.nodes.forEach((i) => {
981
- s.nodes.has(i.id) ? Or(i.upstream, n) && n.add(i.id) : r.add(i.id);
981
+ s.nodes.has(i.id) ? Fr(i.upstream, n) && n.add(i.id) : r.add(i.id);
982
982
  }), { onlyInA: t, onlyInB: r, different: n };
983
983
  }
984
984
  let Pt;
985
985
  async function Kn() {
986
986
  if (Pt === void 0) {
987
- const s = await Vn(we["pframes.export-pframe-for-ui"]);
987
+ const s = await Vn(Se["pframes.export-pframe-for-ui"]);
988
988
  if (s.type !== "explicit") throw new Error("Unexpected prepared template type.");
989
- const e = Fe("sha256").update(s.content).digest("hex");
989
+ const e = Te("sha256").update(s.content).digest("hex");
990
990
  Pt = { spec: s, hash: e };
991
991
  }
992
992
  return Pt;
993
993
  }
994
994
  function sa(s, e, t) {
995
- return Dr(s, e, !0, { pf: t }, ["result"]).result;
995
+ return Nr(s, e, !0, { pf: t }, ["result"]).result;
996
996
  }
997
- let be;
998
- function Q() {
999
- return be || (be = {
997
+ let ke;
998
+ function Z() {
999
+ return ke || (ke = {
1000
1000
  logPFrameRequests: process.env.MI_LOG_PFRAMES !== void 0,
1001
1001
  dumpInitialTreeState: process.env.MI_DUMP_INITIAL_TREE_STATE !== void 0,
1002
1002
  logProjectMutationStat: process.env.MI_LOG_PROJECT_MUTATION_STAT !== void 0,
1003
1003
  logOutputRecalculations: process.env.MI_LOG_OUTPUT_RECALCULATIONS !== void 0
1004
- }, process.env.MI_LOG_OUTPUT_STATUS && (be.logOutputStatus = process.env.MI_LOG_OUTPUT_STATUS === "unstable-only" ? "unstable-only" : "any"), process.env.MI_LOG_TREE_STAT && (be.logTreeStats = process.env.MI_LOG_TREE_STAT === "cumulative" ? "cumulative" : "per-request"), be);
1004
+ }, process.env.MI_LOG_OUTPUT_STATUS && (ke.logOutputStatus = process.env.MI_LOG_OUTPUT_STATUS === "unstable-only" ? "unstable-only" : "any"), process.env.MI_LOG_TREE_STAT && (ke.logTreeStats = process.env.MI_LOG_TREE_STAT === "cumulative" ? "cumulative" : "per-request"), ke);
1005
1005
  }
1006
1006
  function Et(s, e) {
1007
1007
  let t = !1, r, n;
@@ -1016,7 +1016,7 @@ class Ot {
1016
1016
  constructor(e, t, r, n) {
1017
1017
  b(this, "currentArgsC", Et(
1018
1018
  () => this.fields.currentArgs.modCount,
1019
- () => Ve(this.fields.currentArgs.value)
1019
+ () => Je(this.fields.currentArgs.value)
1020
1020
  ));
1021
1021
  b(this, "prodArgsC", Et(
1022
1022
  () => {
@@ -1027,7 +1027,7 @@ class Ot {
1027
1027
  var t;
1028
1028
  const e = (t = this.fields.prodArgs) == null ? void 0 : t.value;
1029
1029
  if (e !== void 0)
1030
- return Ve(e);
1030
+ return Je(e);
1031
1031
  }
1032
1032
  ));
1033
1033
  b(this, "productionStaleC", Et(
@@ -1111,7 +1111,7 @@ class pt {
1111
1111
  });
1112
1112
  let e;
1113
1113
  this.blockInfos.forEach((t) => {
1114
- t.fields.blockSettings === void 0 && (e === void 0 && (e = this.createJsonFieldValue(Xr)), this.setBlockFieldObj(t.id, "blockSettings", e));
1114
+ t.fields.blockSettings === void 0 && (e === void 0 && (e = this.createJsonFieldValue(Yr)), this.setBlockFieldObj(t.id, "blockSettings", e));
1115
1115
  });
1116
1116
  }
1117
1117
  get wasModified() {
@@ -1121,7 +1121,7 @@ class pt {
1121
1121
  return JSON.parse(JSON.stringify(this.struct));
1122
1122
  }
1123
1123
  getStagingGraph() {
1124
- return this.stagingGraph === void 0 && (this.stagingGraph = Er(this.struct)), this.stagingGraph;
1124
+ return this.stagingGraph === void 0 && (this.stagingGraph = Or(this.struct)), this.stagingGraph;
1125
1125
  }
1126
1126
  getProductionGraphBlockInfo(e, t) {
1127
1127
  const r = this.getBlockInfo(e);
@@ -1132,7 +1132,7 @@ class pt {
1132
1132
  } else
1133
1133
  n = N(r.fields.currentArgs), i = r.currentArgs;
1134
1134
  const o = N(r.fields.blockPack);
1135
- return es(n.ref) && es(o.ref) ? {
1135
+ return ts(n.ref) && ts(o.ref) ? {
1136
1136
  args: i,
1137
1137
  enrichmentTargets: this.projectHelper.getEnrichmentTargets(
1138
1138
  () => r.config,
@@ -1172,11 +1172,11 @@ class pt {
1172
1172
  return this.createJsonFieldValueByContent(JSON.stringify(e));
1173
1173
  }
1174
1174
  getBlock(e) {
1175
- for (const t of re(this.struct)) if (t.id === e) return t;
1175
+ for (const t of se(this.struct)) if (t.id === e) return t;
1176
1176
  throw new Error("block not found");
1177
1177
  }
1178
1178
  setBlockFieldObj(e, t, r) {
1179
- const n = J(this.rid, q(e, t));
1179
+ const n = G(this.rid, K(e, t));
1180
1180
  if (r.ref === void 0) throw new Error("Can't set value with empty ref");
1181
1181
  this.getBlockInfo(e).fields[t] === void 0 ? this.tx.createField(n, "Dynamic", r.ref) : this.tx.setField(n, r.ref), this.getBlockInfo(e).fields[t] = {
1182
1182
  modCount: this.globalModCount++,
@@ -1191,7 +1191,7 @@ class pt {
1191
1191
  const n = this.getBlockInfo(e);
1192
1192
  for (const i of t) {
1193
1193
  const o = n.fields;
1194
- i in o && (this.tx.removeField(J(this.rid, q(e, i))), delete o[i], this.fieldsChanged = !0, r = !0);
1194
+ i in o && (this.tx.removeField(G(this.rid, K(e, i))), delete o[i], this.fieldsChanged = !0, r = !0);
1195
1195
  }
1196
1196
  return r;
1197
1197
  }
@@ -1273,7 +1273,7 @@ class pt {
1273
1273
  if (((i = n.fields.prodCtx) == null ? void 0 : i.ref) === void 0)
1274
1274
  throw new Error("One of the upstreams staging is not rendered.");
1275
1275
  t.push(D.unwrapHolder(this.tx, n.fields.prodCtx.ref));
1276
- }), as(this.tx, t);
1276
+ }), cs(this.tx, t);
1277
1277
  }
1278
1278
  createStagingCtx(e) {
1279
1279
  const t = [];
@@ -1283,7 +1283,7 @@ class pt {
1283
1283
  if (((i = n.fields.stagingCtx) == null ? void 0 : i.ref) === void 0)
1284
1284
  throw new Error("One of the upstreams staging is not rendered.");
1285
1285
  t.push(D.unwrapHolder(this.tx, n.fields.stagingCtx.ref)), ((o = n.fields.prodCtx) == null ? void 0 : o.ref) !== void 0 && t.push(D.unwrapHolder(this.tx, n.fields.prodCtx.ref));
1286
- }), as(this.tx, t);
1286
+ }), cs(this.tx, t);
1287
1287
  }
1288
1288
  exportCtx(e) {
1289
1289
  return sa(this.tx, D.unwrapHolder(this.tx, this.ctxExportTplHolder), e);
@@ -1292,7 +1292,7 @@ class pt {
1292
1292
  this.resetStaging(e);
1293
1293
  const t = this.getBlockInfo(e), r = this.createStagingCtx(this.getStagingGraph().nodes.get(e).upstream);
1294
1294
  if (this.getBlock(e).renderingMode !== "Heavy") throw new Error("not supported yet");
1295
- const n = t.getTemplate(this.tx), i = is(this.tx, n, {
1295
+ const n = t.getTemplate(this.tx), i = as(this.tx, n, {
1296
1296
  args: t.fields.currentArgs.ref,
1297
1297
  blockId: this.tx.createValue(D.JsonString, JSON.stringify(e)),
1298
1298
  isProduction: this.tx.createValue(D.JsonBool, JSON.stringify(!1)),
@@ -1310,7 +1310,7 @@ class pt {
1310
1310
  const t = this.getBlockInfo(e), r = this.createProdCtx(this.getPendingProductionGraph().nodes.get(e).upstream);
1311
1311
  if (this.getBlock(e).renderingMode === "Light")
1312
1312
  throw new Error("Can't render production for light block.");
1313
- const n = t.getTemplate(this.tx), i = is(this.tx, n, {
1313
+ const n = t.getTemplate(this.tx), i = as(this.tx, n, {
1314
1314
  args: t.fields.currentArgs.ref,
1315
1315
  blockId: this.tx.createValue(D.JsonString, JSON.stringify(e)),
1316
1316
  isProduction: this.tx.createValue(D.JsonBool, JSON.stringify(!0)),
@@ -1327,23 +1327,23 @@ class pt {
1327
1327
  // Structure changes
1328
1328
  //
1329
1329
  initializeNewBlock(e, t) {
1330
- const r = new Ot(e, {}, Ce(t.blockPack.config), t.blockPack.source);
1330
+ const r = new Ot(e, {}, Pe(t.blockPack.config), t.blockPack.source);
1331
1331
  this.blockInfos.set(e, r);
1332
- const n = ds(this.tx, t.blockPack);
1332
+ const n = ps(this.tx, t.blockPack);
1333
1333
  this.setBlockField(e, "blockPack", D.wrapInHolder(this.tx, n), "NotReady"), this.setBlockFieldObj(
1334
1334
  e,
1335
1335
  "blockSettings",
1336
- this.createJsonFieldValue(Xr)
1336
+ this.createJsonFieldValue(Yr)
1337
1337
  ), this.setBlockFieldObj(e, "currentArgs", this.createJsonFieldValueByContent(t.args)), this.setBlockFieldObj(e, "uiState", this.createJsonFieldValueByContent(t.uiState ?? "{}")), r.check();
1338
1338
  }
1339
1339
  getFieldNamesToDuplicate(e) {
1340
1340
  var n, i;
1341
1341
  const t = this.getBlockInfo(e).fields, r = (o, a) => new Set([...o].filter((c) => !a.has(c)));
1342
- return ((n = t.prodOutput) == null ? void 0 : n.status) === "Ready" && ((i = t.prodCtx) == null ? void 0 : i.status) === "Ready" ? this.blocksInLimbo.has(e) ? Ct : r(Ct, /* @__PURE__ */ new Set([
1342
+ return ((n = t.prodOutput) == null ? void 0 : n.status) === "Ready" && ((i = t.prodCtx) == null ? void 0 : i.status) === "Ready" ? this.blocksInLimbo.has(e) ? Rt : r(Rt, /* @__PURE__ */ new Set([
1343
1343
  "prodOutputPrevious",
1344
1344
  "prodCtxPrevious",
1345
1345
  "prodUiCtxPrevious"
1346
- ])) : r(Ct, /* @__PURE__ */ new Set([
1346
+ ])) : r(Rt, /* @__PURE__ */ new Set([
1347
1347
  "prodOutput",
1348
1348
  "prodCtx",
1349
1349
  "prodUiCtx",
@@ -1372,7 +1372,7 @@ class pt {
1372
1372
  }
1373
1373
  /** Very generic method, better check for more specialized case-specific methods first. */
1374
1374
  updateStructure(e, t = na) {
1375
- const r = this.getStagingGraph(), n = this.getActualProductionGraph(), i = Er(e), o = ps(r, i);
1375
+ const r = this.getStagingGraph(), n = this.getActualProductionGraph(), i = Or(e), o = fs(r, i);
1376
1376
  for (const l of o.onlyInA) {
1377
1377
  const { fields: u } = this.getBlockInfo(l);
1378
1378
  this.deleteBlockFields(l, ...Object.keys(u)), this.blockInfos.delete(l), this.blocksInLimbo.delete(l) && (this.renderingStateChanged = !0);
@@ -1383,7 +1383,7 @@ class pt {
1383
1383
  const a = nt(
1384
1384
  e,
1385
1385
  (l) => this.getProductionGraphBlockInfo(l, !0)
1386
- ), c = ps(n, a);
1386
+ ), c = fs(n, a);
1387
1387
  n.traverse("downstream", [...c.different], (l) => {
1388
1388
  this.resetOrLimboProduction(l.id);
1389
1389
  }), (o.onlyInB.size > 0 || o.onlyInA.size > 0 || o.different.size > 0) && this.resetStagingRefreshTimestamp(), this.struct = e, this.structureChanged = !0, this.stagingGraph = void 0, this.pendingProductionGraph = void 0, this.actualProductionGraph = void 0, this.updateLastModified();
@@ -1464,7 +1464,7 @@ class pt {
1464
1464
  this.setBlockField(
1465
1465
  e,
1466
1466
  "blockPack",
1467
- D.wrapInHolder(this.tx, ds(this.tx, t)),
1467
+ D.wrapInHolder(this.tx, ps(this.tx, t)),
1468
1468
  "NotReady"
1469
1469
  ), r !== void 0 ? this.setStates([{ blockId: e, args: r.args, uiState: r.uiState }]) : this.getStagingGraph().traverse("downstream", [e], ({ id: i }) => this.resetStaging(i)), n.productionRendered && this.getActualProductionGraph().traverse(
1470
1470
  "downstream",
@@ -1490,7 +1490,7 @@ class pt {
1490
1490
  throw new Error("Can't render blocks not including all upstreams.");
1491
1491
  }
1492
1492
  const i = /* @__PURE__ */ new Set();
1493
- for (const a of re(this.structure)) {
1493
+ for (const a of se(this.structure)) {
1494
1494
  if (!r.has(a.id)) continue;
1495
1495
  let c = this.getBlockInfo(a.id).requireProductionRendering || this.blocksInLimbo.has(a.id);
1496
1496
  if (!c) {
@@ -1513,7 +1513,7 @@ class pt {
1513
1513
  * accordingly */
1514
1514
  stopProduction(...e) {
1515
1515
  var o, a;
1516
- const t = this.getActualProductionGraph(), r = new Cn(e), n = new Set(e), i = [];
1516
+ const t = this.getActualProductionGraph(), r = new Rn(e), n = new Set(e), i = [];
1517
1517
  for (; !r.isEmpty(); ) {
1518
1518
  const c = r.shift(), l = this.getBlockInfo(c).fields;
1519
1519
  if (!(((o = l.prodOutput) == null ? void 0 : o.status) === "Ready" && ((a = l.prodCtx) == null ? void 0 : a.status) === "Ready") && this.deleteBlockFields(c, "prodOutput", "prodCtx", "prodUiCtx", "prodArgs")) {
@@ -1573,21 +1573,21 @@ class pt {
1573
1573
  assignAuthorMarkers() {
1574
1574
  const e = this.author ? JSON.stringify(this.author) : void 0;
1575
1575
  for (const t of this.blocksWithChangedInputs)
1576
- e === void 0 ? this.tx.deleteKValue(this.rid, kr(t)) : this.tx.setKValue(this.rid, kr(t), e);
1576
+ e === void 0 ? this.tx.deleteKValue(this.rid, Cr(t)) : this.tx.setKValue(this.rid, Cr(t), e);
1577
1577
  (this.metaChanged || this.structureChanged) && (e === void 0 ? this.tx.deleteKValue(this.rid, Rr) : this.tx.setKValue(this.rid, Rr, e));
1578
1578
  }
1579
1579
  save() {
1580
- this.wasModified && (this.lastModifiedChanged && this.tx.setKValue(this.rid, _e, JSON.stringify(this.lastModified)), this.structureChanged && this.tx.setKValue(this.rid, de, JSON.stringify(this.struct)), this.renderingStateChanged && this.tx.setKValue(
1580
+ this.wasModified && (this.lastModifiedChanged && this.tx.setKValue(this.rid, _e, JSON.stringify(this.lastModified)), this.structureChanged && this.tx.setKValue(this.rid, fe, JSON.stringify(this.struct)), this.renderingStateChanged && this.tx.setKValue(
1581
1581
  this.rid,
1582
1582
  dt,
1583
1583
  JSON.stringify({
1584
1584
  ...this.renderingState,
1585
1585
  blocksInLimbo: [...this.blocksInLimbo]
1586
1586
  })
1587
- ), this.metaChanged && this.tx.setKValue(this.rid, qe, JSON.stringify(this.meta)), this.assignAuthorMarkers());
1587
+ ), this.metaChanged && this.tx.setKValue(this.rid, Ke, JSON.stringify(this.meta)), this.assignAuthorMarkers());
1588
1588
  }
1589
1589
  static async load(e, t, r, n) {
1590
- const i = t.getResourceData(r, !0), o = t.getKValueJson(r, ut), a = t.getKValueJson(r, _e), c = t.getKValueJson(r, qe), l = t.getKValueJson(r, de), u = t.getKValueJson(r, dt), d = await i, p = /* @__PURE__ */ new Map();
1590
+ const i = t.getResourceData(r, !0), o = t.getKValueJson(r, ut), a = t.getKValueJson(r, _e), c = t.getKValueJson(r, Ke), l = t.getKValueJson(r, fe), u = t.getKValueJson(r, dt), d = await i, p = /* @__PURE__ */ new Map();
1591
1591
  for (const g of d.fields) {
1592
1592
  const m = Ti(g.name);
1593
1593
  if (m === void 0) continue;
@@ -1604,12 +1604,12 @@ class pt {
1604
1604
  if (w.ref === void 0) continue;
1605
1605
  if (!No(w.ref) || Bo(w.ref))
1606
1606
  throw new Error("unexpected behaviour");
1607
- const R = S;
1607
+ const C = S;
1608
1608
  f.push([
1609
1609
  g,
1610
- R,
1610
+ C,
1611
1611
  w,
1612
- t.getResourceData(w.ref, R == "blockPack")
1612
+ t.getResourceData(w.ref, C == "blockPack")
1613
1613
  ]);
1614
1614
  }
1615
1615
  });
@@ -1626,48 +1626,48 @@ class pt {
1626
1626
  l,
1627
1627
  u
1628
1628
  ]);
1629
- if (v !== Ge)
1630
- throw Number(v) < Number(Ge) ? new zr("Can't perform this action on this project because it has older schema. Try (re)loading the project to update it.") : new zr("Can't perform this action on this project because it has newer schema. Upgrade your desktop app to the latest version.");
1629
+ if (v !== qe)
1630
+ throw Number(v) < Number(qe) ? new Xr("Can't perform this action on this project because it has older schema. Try (re)loading the project to update it.") : new Xr("Can't perform this action on this project because it has newer schema. Upgrade your desktop app to the latest version.");
1631
1631
  const x = [];
1632
1632
  for (const [g, m, S, w] of f) {
1633
- const R = await w;
1634
- if (S.value = R.data, br(R.error) ? S.status = "Error" : R.resourceReady || br(R.originalResourceId) ? S.status = "Ready" : S.status = "NotReady", m === "blockPack") {
1635
- const k = R.fields.find((O) => O.name === D.HolderRefField);
1633
+ const C = await w;
1634
+ if (S.value = C.data, kr(C.error) ? S.status = "Error" : C.resourceReady || kr(C.originalResourceId) ? S.status = "Ready" : S.status = "NotReady", m === "blockPack") {
1635
+ const k = C.fields.find((O) => O.name === D.HolderRefField);
1636
1636
  if (k === void 0)
1637
1637
  throw new Error("Block pack ref field is missing");
1638
1638
  x.push([g, t.getResourceData(ct(k.value), !1)]);
1639
1639
  }
1640
1640
  }
1641
1641
  for (const [g, m] of x) {
1642
- const S = await m, w = Ve(N(S.data));
1643
- g.blockConfig = Ce(w.config), g.blockPack = w.source;
1642
+ const S = await m, w = Je(N(S.data));
1643
+ g.blockConfig = Pe(w.config), g.blockPack = w.source;
1644
1644
  }
1645
- const U = await Kn(), P = Cr(U.hash), $ = d.fields.find(
1645
+ const U = await Kn(), P = Pr(U.hash), $ = d.fields.find(
1646
1646
  (g) => g.name === P
1647
1647
  );
1648
- let C;
1649
- $ !== void 0 ? C = ct($.value) : (C = D.wrapInHolder(t, ht(t, U.spec)), t.createField(
1650
- J(r, Cr(U.hash)),
1648
+ let R;
1649
+ $ !== void 0 ? R = ct($.value) : (R = D.wrapInHolder(t, ht(t, U.spec)), t.createField(
1650
+ G(r, Pr(U.hash)),
1651
1651
  "Dynamic",
1652
- C
1652
+ R
1653
1653
  ));
1654
- const G = { stagingRefreshTimestamp: B }, ce = new Set(F), z = /* @__PURE__ */ new Map();
1655
- p.forEach(({ id: g, fields: m, blockConfig: S, blockPack: w }) => z.set(
1654
+ const q = { stagingRefreshTimestamp: B }, le = new Set(F), X = /* @__PURE__ */ new Map();
1655
+ p.forEach(({ id: g, fields: m, blockConfig: S, blockPack: w }) => X.set(
1656
1656
  g,
1657
1657
  new Ot(g, m, N(S), N(w))
1658
1658
  ));
1659
- const M = /* @__PURE__ */ new Set();
1660
- for (const g of re(E)) {
1661
- if (!z.has(g.id))
1659
+ const J = /* @__PURE__ */ new Set();
1660
+ for (const g of se(E)) {
1661
+ if (!X.has(g.id))
1662
1662
  throw new Error(`Inconsistent project structure: no inputs for ${g.id}`);
1663
- M.add(g.id);
1663
+ J.add(g.id);
1664
1664
  }
1665
- z.forEach((g) => {
1666
- if (!M.has(g.id))
1665
+ X.forEach((g) => {
1666
+ if (!J.has(g.id))
1667
1667
  throw new Error(`Inconsistent project structure: no structure entry for ${g.id}`);
1668
1668
  g.check();
1669
1669
  });
1670
- const W = new pt(
1670
+ const z = new pt(
1671
1671
  r,
1672
1672
  t,
1673
1673
  n,
@@ -1675,35 +1675,35 @@ class pt {
1675
1675
  h,
1676
1676
  y,
1677
1677
  E,
1678
- G,
1679
- ce,
1680
- z,
1681
- C,
1678
+ q,
1679
+ le,
1680
+ X,
1681
+ R,
1682
1682
  e
1683
1683
  );
1684
- return W.fixProblemsAndMigrate(), W;
1684
+ return z.fixProblemsAndMigrate(), z;
1685
1685
  }
1686
1686
  }
1687
- async function oa(s, e = Ci) {
1687
+ async function oa(s, e = Ri) {
1688
1688
  const t = s.createEphemeral(Pi);
1689
1689
  s.lock(t);
1690
1690
  const r = String(Date.now());
1691
- s.setKValue(t, ut, JSON.stringify(Ge)), s.setKValue(t, Lr, r), s.setKValue(t, _e, r), s.setKValue(t, qe, JSON.stringify(e)), s.setKValue(t, de, JSON.stringify(ki)), s.setKValue(t, dt, JSON.stringify(Ri));
1691
+ s.setKValue(t, ut, JSON.stringify(qe)), s.setKValue(t, Dr, r), s.setKValue(t, _e, r), s.setKValue(t, Ke, JSON.stringify(e)), s.setKValue(t, fe, JSON.stringify(ki)), s.setKValue(t, dt, JSON.stringify(Ci));
1692
1692
  const n = await Kn();
1693
1693
  return s.createField(
1694
- J(t, Cr(n.hash)),
1694
+ G(t, Pr(n.hash)),
1695
1695
  "Dynamic",
1696
1696
  D.wrapInHolder(s, ht(s, n.spec))
1697
1697
  ), t;
1698
1698
  }
1699
1699
  async function rt(s, e, t, r) {
1700
- return se(s, e, t, void 0, r);
1700
+ return ne(s, e, t, void 0, r);
1701
1701
  }
1702
- async function se(s, e, t, r, n) {
1702
+ async function ne(s, e, t, r, n) {
1703
1703
  if (e instanceof bn)
1704
1704
  return await e.withWriteTx("ProjectAction", async (i) => {
1705
1705
  const o = await pt.load(s, i, t, r), a = await n(o);
1706
- return o.wasModified && (o.save(), await i.commit(), Q().logProjectMutationStat && console.log(JSON.stringify(i.stat))), a;
1706
+ return o.wasModified && (o.save(), await i.commit(), Z().logProjectMutationStat && console.log(JSON.stringify(i.stat))), a;
1707
1707
  });
1708
1708
  {
1709
1709
  const i = await pt.load(s, e, t, r), o = await n(i);
@@ -1721,11 +1721,14 @@ function* ia(s) {
1721
1721
  for (const [, { index: e, values: t }] of Object.entries(s.parts))
1722
1722
  yield e, yield t;
1723
1723
  return;
1724
+ case "ParquetPartitioned":
1725
+ for (const [, e] of Object.entries(s.parts)) yield e;
1726
+ return;
1724
1727
  default:
1725
- Y(s);
1728
+ Q(s);
1726
1729
  }
1727
1730
  }
1728
- function fs(s, e) {
1731
+ function Ft(s, e) {
1729
1732
  return Object.fromEntries(
1730
1733
  Object.entries(s).map(([t, r]) => [t, e(r, t)])
1731
1734
  );
@@ -1735,39 +1738,50 @@ function aa(s, e) {
1735
1738
  case "Json":
1736
1739
  return { ...s };
1737
1740
  case "JsonPartitioned":
1738
- return { ...s, parts: fs(s.parts, e) };
1741
+ return {
1742
+ ...s,
1743
+ parts: Ft(s.parts, e)
1744
+ };
1739
1745
  case "BinaryPartitioned":
1740
1746
  return {
1741
1747
  ...s,
1742
- parts: fs(s.parts, (t) => ({
1748
+ parts: Ft(s.parts, (t) => ({
1743
1749
  index: e(t.index),
1744
1750
  values: e(t.values)
1745
1751
  }))
1746
1752
  };
1753
+ case "ParquetPartitioned":
1754
+ return {
1755
+ ...s,
1756
+ parts: Ft(s.parts, e)
1757
+ };
1747
1758
  default:
1748
- Y(s);
1759
+ Q(s);
1749
1760
  }
1750
1761
  }
1751
- const ca = We("PColumnData/JsonPartitioned", "1"), la = We(
1762
+ const ca = we("PColumnData/JsonPartitioned", "1"), la = we(
1752
1763
  "PColumnData/Partitioned/JsonPartitioned",
1753
1764
  "1"
1754
- ), ua = We("PColumnData/BinaryPartitioned", "1"), da = We(
1765
+ ), ua = we("PColumnData/BinaryPartitioned", "1"), da = we(
1755
1766
  "PColumnData/Partitioned/BinaryPartitioned",
1756
1767
  "1"
1757
- ), pa = We("PColumnData/Json", "1");
1758
- function fa(s) {
1759
- if (!s.getIsReadyOrError()) throw new Error("Data not ready.");
1768
+ ), pa = we("PColumnData/ParquetPartitioned", "1"), fa = we(
1769
+ "PColumnData/Partitioned/ParquetPartitioned",
1770
+ "1"
1771
+ ), ha = we("PColumnData/Json", "1");
1772
+ function ga(s) {
1773
+ if (!s.getIsReadyOrError()) throw new M("Data not ready.");
1760
1774
  const e = s.getDataAsJson();
1761
1775
  if (e === void 0)
1762
- throw new Error("unexpected data info structure, no resource data");
1763
- if (pe(s.resourceType, pa)) {
1776
+ throw new M("unexpected data info structure, no resource data");
1777
+ if (ue(s.resourceType, ha)) {
1764
1778
  const t = e;
1765
1779
  return {
1766
1780
  type: "Json",
1767
1781
  keyLength: t.keyLength,
1768
1782
  data: t.data
1769
1783
  };
1770
- } else if (pe(s.resourceType, ca)) {
1784
+ } else if (ue(s.resourceType, ca)) {
1771
1785
  const t = e, r = Object.fromEntries(
1772
1786
  s.listInputFields().map((n) => [n, s.traverse({ field: n, errorIfFieldNotSet: !0 }).resourceInfo])
1773
1787
  );
@@ -1776,11 +1790,11 @@ function fa(s) {
1776
1790
  partitionKeyLength: t.partitionKeyLength,
1777
1791
  parts: r
1778
1792
  };
1779
- } else if (pe(s.resourceType, la)) {
1793
+ } else if (ue(s.resourceType, la)) {
1780
1794
  const t = e, r = {};
1781
1795
  for (const n of s.listInputFields()) {
1782
1796
  const i = s.traverse({ field: n, errorIfFieldNotSet: !0 }), o = i.listInputFields();
1783
- if (o === void 0) throw new Error(`no partition keys for super key ${n}`);
1797
+ if (o === void 0) throw new M(`no partition keys for super key ${n}`);
1784
1798
  for (const a of o) {
1785
1799
  const c = JSON.stringify([
1786
1800
  ...JSON.parse(n),
@@ -1794,7 +1808,7 @@ function fa(s) {
1794
1808
  partitionKeyLength: t.superPartitionKeyLength + t.partitionKeyLength,
1795
1809
  parts: r
1796
1810
  };
1797
- } else if (pe(s.resourceType, ua)) {
1811
+ } else if (ue(s.resourceType, ua)) {
1798
1812
  const t = e, r = {};
1799
1813
  for (const n of s.listInputFields())
1800
1814
  if (n.endsWith(".index")) {
@@ -1805,21 +1819,21 @@ function fa(s) {
1805
1819
  const i = n.slice(0, n.length - 7);
1806
1820
  let o = r[i];
1807
1821
  o === void 0 && (o = {}, r[i] = o), o.values = s.traverse({ field: n, errorIfFieldNotSet: !0 }).resourceInfo;
1808
- } else throw new Error(`unrecognized part field name: ${n}`);
1822
+ } else throw new M(`unrecognized part field name: ${n}`);
1809
1823
  for (const [n, i] of Object.entries(r)) {
1810
- if (i.index === void 0) throw new Error(`no index for part ${n}`);
1811
- if (i.values === void 0) throw new Error(`no values for part ${n}`);
1824
+ if (i.index === void 0) throw new M(`no index for part ${n}`);
1825
+ if (i.values === void 0) throw new M(`no values for part ${n}`);
1812
1826
  }
1813
1827
  return {
1814
1828
  type: "BinaryPartitioned",
1815
1829
  partitionKeyLength: t.partitionKeyLength,
1816
1830
  parts: r
1817
1831
  };
1818
- } else if (pe(s.resourceType, da)) {
1832
+ } else if (ue(s.resourceType, da)) {
1819
1833
  const t = e, r = {};
1820
1834
  for (const n of s.listInputFields()) {
1821
1835
  const i = s.traverse({ field: n, errorIfFieldNotSet: !0 }), o = i.listInputFields();
1822
- if (o === void 0) throw new Error(`no partition keys for super key ${n}`);
1836
+ if (o === void 0) throw new M(`no partition keys for super key ${n}`);
1823
1837
  for (const a of o)
1824
1838
  if (a.endsWith(".index")) {
1825
1839
  const c = a.slice(0, a.length - 6), l = JSON.stringify([
@@ -1841,21 +1855,68 @@ function fa(s) {
1841
1855
  field: a,
1842
1856
  errorIfFieldNotSet: !0
1843
1857
  }).resourceInfo;
1844
- } else throw new Error(`unrecognized part field name: ${a}`);
1858
+ } else throw new M(`unrecognized part field name: ${a}`);
1845
1859
  }
1846
1860
  return {
1847
1861
  type: "BinaryPartitioned",
1848
1862
  partitionKeyLength: t.superPartitionKeyLength + t.partitionKeyLength,
1849
1863
  parts: r
1850
1864
  };
1865
+ } else if (ue(s.resourceType, pa)) {
1866
+ const t = e, r = {};
1867
+ for (const n of s.listInputFields()) {
1868
+ const i = s.traverse({ field: n, assertFieldType: "Input", errorIfFieldNotSet: !0 }), o = i.traverse(
1869
+ { field: "blob", assertFieldType: "Service", errorIfFieldNotSet: !0 }
1870
+ ).resourceInfo, a = i.getDataAsJson(), c = i.traverse(
1871
+ { field: "mapping", assertFieldType: "Service", errorIfFieldNotSet: !0 }
1872
+ ).getDataAsJson();
1873
+ r[n] = {
1874
+ data: o,
1875
+ ...a,
1876
+ ...c
1877
+ };
1878
+ }
1879
+ return {
1880
+ type: "ParquetPartitioned",
1881
+ partitionKeyLength: t.partitionKeyLength,
1882
+ parts: r
1883
+ // TODO: remove cast
1884
+ };
1885
+ } else if (ue(s.resourceType, fa)) {
1886
+ const t = e, r = {};
1887
+ for (const n of s.listInputFields()) {
1888
+ const o = s.traverse({ field: n, errorIfFieldNotSet: !0 }).listInputFields();
1889
+ if (o === void 0) throw new M(`no partition keys for super key ${n}`);
1890
+ for (const a of o) {
1891
+ const c = s.traverse({ field: a, errorIfFieldNotSet: !0 }), l = c.traverse(
1892
+ { field: "blob", assertFieldType: "Service", errorIfFieldNotSet: !0 }
1893
+ ).resourceInfo, u = c.getDataAsJson(), d = c.traverse(
1894
+ { field: "mapping", assertFieldType: "Service", errorIfFieldNotSet: !0 }
1895
+ ).getDataAsJson(), p = JSON.stringify([
1896
+ ...JSON.parse(n),
1897
+ ...JSON.parse(a)
1898
+ ]);
1899
+ r[p] = {
1900
+ data: l,
1901
+ ...u,
1902
+ ...d
1903
+ };
1904
+ }
1905
+ }
1906
+ return {
1907
+ type: "ParquetPartitioned",
1908
+ partitionKeyLength: t.superPartitionKeyLength + t.partitionKeyLength,
1909
+ parts: r
1910
+ // TODO: remove cast
1911
+ };
1851
1912
  }
1852
- throw new Error(`unsupported resource type: ${jo(s.resourceType)}`);
1913
+ throw new M(`unsupported resource type: ${jo(s.resourceType)}`);
1853
1914
  }
1854
- function ha(s, e) {
1915
+ function ma(s, e) {
1855
1916
  const t = s.axesSpec.length, r = {};
1856
1917
  for (const { key: n, val: i } of e) {
1857
1918
  if (n.length !== t)
1858
- throw new Error(`inline column key length ${n.length} differs from axes count ${t}`);
1919
+ throw new M(`inline column key length ${n.length} differs from axes count ${t}`);
1859
1920
  r[JSON.stringify(n)] = i;
1860
1921
  }
1861
1922
  return {
@@ -1864,15 +1925,15 @@ function ha(s, e) {
1864
1925
  data: r
1865
1926
  };
1866
1927
  }
1867
- function ga(s, e) {
1868
- const t = Fe("sha256");
1869
- return t.update(te(s)), t.update(String(Me(e.originalId) ? e.id : e.originalId)), t.digest().toString("hex");
1928
+ function va(s, e) {
1929
+ const t = Te("sha256");
1930
+ return t.update(re(s)), t.update(String(Me(e.originalId) ? e.id : e.originalId)), t.digest().toString("hex");
1870
1931
  }
1871
1932
  function hs(s, e) {
1872
- return te({ __isRef: !0, blockId: s, name: e });
1933
+ return re({ __isRef: !0, blockId: s, name: e });
1873
1934
  }
1874
- function ma(s, e) {
1875
- return te({ resolvePath: s, name: e });
1935
+ function ya(s, e) {
1936
+ return re({ resolvePath: s, name: e });
1876
1937
  }
1877
1938
  function Hn(s, e = !0, t = !1, r = "") {
1878
1939
  var a, c, l;
@@ -1912,7 +1973,7 @@ function Hn(s, e = !0, t = !1, r = "") {
1912
1973
  for (const [, u] of i) u.data === void 0 && (u.hasData = !1);
1913
1974
  return { locked: o, results: i };
1914
1975
  }
1915
- function va(s, e = !0, t = "", r) {
1976
+ function wa(s, e = !0, t = "", r) {
1916
1977
  if (!s.getIsReadyOrError()) throw new Error("resource is not ready");
1917
1978
  const n = Hn(s, e, !1, t);
1918
1979
  Qo(n.locked);
@@ -1925,14 +1986,14 @@ function va(s, e = !0, t = "", r) {
1925
1986
  if (c === void 0) throw new Error(`no data for key ${o}`);
1926
1987
  if (!c.ok) throw c.error;
1927
1988
  i[o] = {
1928
- id: r.length === 0 ? ga(a.spec, c.value) : ma(r, o),
1989
+ id: r.length === 0 ? va(a.spec, c.value) : ya(r, o),
1929
1990
  spec: a.spec,
1930
1991
  data: c.value
1931
1992
  };
1932
1993
  }
1933
1994
  return i;
1934
1995
  }
1935
- class Nr {
1996
+ class Br {
1936
1997
  constructor(e, t) {
1937
1998
  b(this, "allSpecsAvailable");
1938
1999
  this.ctx = e, this.blocks = t;
@@ -2071,33 +2132,33 @@ class Nr {
2071
2132
  return t;
2072
2133
  }
2073
2134
  static create(e, t, r) {
2074
- const n = e.accessor(t).node(), i = N(n.getKeyValueAsJson(de)), a = Er(i).traverseIds("upstream", r), c = /* @__PURE__ */ new Map();
2075
- for (const l of re(i)) {
2135
+ const n = e.accessor(t).node(), i = N(n.getKeyValueAsJson(fe)), a = Or(i).traverseIds("upstream", r), c = /* @__PURE__ */ new Map();
2136
+ for (const l of se(i)) {
2076
2137
  if (!a.has(l.id)) continue;
2077
2138
  const u = gs(
2078
2139
  n.traverse({
2079
- field: q(l.id, "prodCtx"),
2140
+ field: K(l.id, "prodCtx"),
2080
2141
  ignoreError: !0,
2081
2142
  pureFieldErrorToUndefined: !0,
2082
2143
  stableIfNotFound: !0
2083
2144
  }) !== void 0,
2084
2145
  n.traverseOrError({
2085
- field: q(l.id, "prodUiCtx"),
2146
+ field: K(l.id, "prodUiCtx"),
2086
2147
  stableIfNotFound: !0
2087
2148
  })
2088
2149
  ), d = gs(
2089
2150
  n.traverse({
2090
- field: q(l.id, "stagingCtx"),
2151
+ field: K(l.id, "stagingCtx"),
2091
2152
  ignoreError: !0,
2092
2153
  pureFieldErrorToUndefined: !0
2093
2154
  }) !== void 0,
2094
2155
  n.traverseOrError({
2095
- field: q(l.id, "stagingUiCtx")
2156
+ field: K(l.id, "stagingUiCtx")
2096
2157
  })
2097
2158
  );
2098
2159
  c.set(l.id, { info: l, prod: u, staging: d });
2099
2160
  }
2100
- return new Nr(e, c);
2161
+ return new Br(e, c);
2101
2162
  }
2102
2163
  }
2103
2164
  function gs(s, e) {
@@ -2105,19 +2166,19 @@ function gs(s, e) {
2105
2166
  return s ? { locked: !1, results: /* @__PURE__ */ new Map() } : void 0;
2106
2167
  if (e.ok) return Hn(e.value, !1, !0);
2107
2168
  }
2108
- function Br(s, e) {
2169
+ function jr(s, e) {
2109
2170
  return {
2110
2171
  blockId: e,
2111
2172
  args: (i) => kt(N(
2112
2173
  i.accessor(s).node().traverse({
2113
- field: q(e, "currentArgs"),
2174
+ field: K(e, "currentArgs"),
2114
2175
  errorIfFieldNotSet: !0
2115
2176
  }).getData()
2116
2177
  )),
2117
2178
  activeArgs: (i) => {
2118
2179
  var a;
2119
2180
  const o = (a = i.accessor(s).node().traverse({
2120
- field: q(e, "prodArgs"),
2181
+ field: K(e, "prodArgs"),
2121
2182
  stableIfNotFound: !0
2122
2183
  })) == null ? void 0 : a.getData();
2123
2184
  return o ? kt(o) : void 0;
@@ -2125,25 +2186,25 @@ function Br(s, e) {
2125
2186
  uiState: (i) => {
2126
2187
  var a;
2127
2188
  const o = (a = i.accessor(s).node().traverse({
2128
- field: q(e, "uiState"),
2189
+ field: K(e, "uiState"),
2129
2190
  stableIfNotFound: !0
2130
2191
  })) == null ? void 0 : a.getData();
2131
2192
  return o ? kt(o) : void 0;
2132
2193
  },
2133
2194
  blockMeta: (i) => {
2134
- const o = i.accessor(s).node(), a = N(o.getKeyValueAsJson(de)), c = /* @__PURE__ */ new Map();
2135
- for (const l of re(a)) c.set(l.id, l);
2195
+ const o = i.accessor(s).node(), a = N(o.getKeyValueAsJson(fe)), c = /* @__PURE__ */ new Map();
2196
+ for (const l of se(a)) c.set(l.id, l);
2136
2197
  return c;
2137
2198
  }
2138
2199
  };
2139
2200
  }
2140
2201
  function Wn(s, e) {
2141
2202
  return {
2142
- ...Br(s, e),
2203
+ ...jr(s, e),
2143
2204
  prod: (t) => {
2144
2205
  var r;
2145
2206
  return (r = t.accessor(s).node({ ignoreError: !0 }).traverse({
2146
- field: q(e, "prodOutput"),
2207
+ field: K(e, "prodOutput"),
2147
2208
  stableIfNotFound: !0,
2148
2209
  ignoreError: !0
2149
2210
  })) == null ? void 0 : r.persist();
@@ -2151,36 +2212,36 @@ function Wn(s, e) {
2151
2212
  staging: (t) => {
2152
2213
  var n;
2153
2214
  const r = (n = t.accessor(s).node({ ignoreError: !0 }).traverse({
2154
- field: q(e, "stagingOutput"),
2215
+ field: K(e, "stagingOutput"),
2155
2216
  ignoreError: !0
2156
2217
  })) == null ? void 0 : n.persist();
2157
2218
  return r === void 0 && t.markUnstable("staging_not_rendered"), r;
2158
2219
  },
2159
- getResultsPool: (t) => Nr.create(t, s, e)
2220
+ getResultsPool: (t) => Br.create(t, s, e)
2160
2221
  };
2161
2222
  }
2162
- function* ee(s, e) {
2223
+ function* te(s, e) {
2163
2224
  switch (yield s, s.type) {
2164
2225
  case "GetFromCtx":
2165
2226
  case "Immediate":
2166
2227
  return;
2167
2228
  case "Isolate":
2168
- yield* ee(s.cfg);
2229
+ yield* te(s.cfg);
2169
2230
  return;
2170
2231
  case "MakeObject":
2171
- for (const [, t] of Object.entries(s.template)) yield* ee(t);
2232
+ for (const [, t] of Object.entries(s.template)) yield* te(t);
2172
2233
  return;
2173
2234
  case "MakeArray":
2174
- for (const t of s.template) yield* ee(t);
2235
+ for (const t of s.template) yield* te(t);
2175
2236
  return;
2176
2237
  case "GetJsonField":
2177
2238
  case "GetResourceField":
2178
- yield* ee(s.source), yield* ee(s.field);
2239
+ yield* te(s.source), yield* te(s.field);
2179
2240
  return;
2180
2241
  case "MapRecordValues":
2181
2242
  case "MapArrayValues":
2182
2243
  case "MapResourceFields":
2183
- yield* ee(s.source), yield* ee(s.mapping);
2244
+ yield* te(s.source), yield* te(s.mapping);
2184
2245
  return;
2185
2246
  case "Flatten":
2186
2247
  case "GetResourceValueAsJson":
@@ -2195,31 +2256,31 @@ function* ee(s, e) {
2195
2256
  case "GetProgressLog":
2196
2257
  case "GetProgressLogWithInfo":
2197
2258
  case "GetLogHandle":
2198
- yield* ee(s.source);
2259
+ yield* te(s.source);
2199
2260
  return;
2200
2261
  case "IsEmpty":
2201
- yield* ee(s.arg);
2262
+ yield* te(s.arg);
2202
2263
  return;
2203
2264
  case "Not":
2204
- yield* ee(s.operand);
2265
+ yield* te(s.operand);
2205
2266
  return;
2206
2267
  case "And":
2207
2268
  case "Or":
2208
- yield* ee(s.operand1), yield* ee(s.operand2);
2269
+ yield* te(s.operand1), yield* te(s.operand2);
2209
2270
  return;
2210
2271
  default:
2211
- Y(s);
2272
+ Q(s);
2212
2273
  }
2213
2274
  }
2214
- function ya(s, e) {
2275
+ function Sa(s, e) {
2215
2276
  const t = {};
2216
2277
  for (const [r, n] of Object.entries(s)) t[r] = e(n);
2217
2278
  return t;
2218
2279
  }
2219
- function je(s, e) {
2280
+ function xe(s, e) {
2220
2281
  return s === void 0 ? void 0 : e(s);
2221
2282
  }
2222
- function wa(s) {
2283
+ function ba(s) {
2223
2284
  switch (s.type) {
2224
2285
  case "GetImportProgress":
2225
2286
  return !0;
@@ -2227,8 +2288,8 @@ function wa(s) {
2227
2288
  return !1;
2228
2289
  }
2229
2290
  }
2230
- function Sa(s) {
2231
- for (const e of ee(s)) if (wa(e)) return !0;
2291
+ function ka(s) {
2292
+ for (const e of te(s)) if (ba(e)) return !0;
2232
2293
  return !1;
2233
2294
  }
2234
2295
  function gt(s) {
@@ -2240,18 +2301,18 @@ function gt(s) {
2240
2301
  function I(s) {
2241
2302
  return () => gt(s);
2242
2303
  }
2243
- const ba = (s) => {
2304
+ const Ca = (s) => {
2244
2305
  const e = {};
2245
2306
  for (const [t, r] of Object.entries(s)) e[t] = r;
2246
2307
  return I(e);
2247
- }, ka = (s) => {
2308
+ }, Ra = (s) => {
2248
2309
  const e = s.source;
2249
2310
  if (e === void 0) return I(void 0);
2250
2311
  const t = [];
2251
2312
  for (const r of e)
2252
2313
  r instanceof Array ? t.push(...r) : t.push(r);
2253
2314
  return I(t);
2254
- }, Ra = (s) => {
2315
+ }, Pa = (s) => {
2255
2316
  const e = s.source, t = s.field;
2256
2317
  return e === void 0 || t === void 0 ? I(void 0) : ({ cCtx: r }) => {
2257
2318
  var n;
@@ -2263,7 +2324,7 @@ function zn(s, e) {
2263
2324
  for (let n = 0; n < r; n++) t[String(n)] = e(s[n]);
2264
2325
  return t;
2265
2326
  }
2266
- function Ca(s, e) {
2327
+ function Ea(s, e) {
2267
2328
  return (t) => {
2268
2329
  const r = t.source;
2269
2330
  return r === void 0 ? I(void 0) : () => ({
@@ -2280,7 +2341,7 @@ function Xn(s) {
2280
2341
  return I(t);
2281
2342
  };
2282
2343
  }
2283
- function Pa(s, e) {
2344
+ function Oa(s, e) {
2284
2345
  return (t) => {
2285
2346
  const r = t.source;
2286
2347
  if (r === void 0) return I(void 0);
@@ -2291,34 +2352,34 @@ function Pa(s, e) {
2291
2352
  }
2292
2353
  return () => ({
2293
2354
  type: "ScheduleSubroutine",
2294
- subroutine: Ea,
2355
+ subroutine: Fa,
2295
2356
  args: n
2296
2357
  });
2297
2358
  };
2298
2359
  }
2299
- const Ea = (s) => I(s), Oa = (s) => {
2360
+ const Fa = (s) => I(s), Ta = (s) => {
2300
2361
  const e = s.arg;
2301
2362
  return I(e === void 0 ? void 0 : e.length === 0);
2302
- }, Fa = (s) => {
2363
+ }, Ia = (s) => {
2303
2364
  const e = s.operand;
2304
2365
  return I(e === void 0 ? void 0 : !e);
2305
- }, Ta = (s) => {
2366
+ }, $a = (s) => {
2306
2367
  const e = s.operand1, t = s.operand2;
2307
2368
  return I(e === void 0 || t === void 0 ? void 0 : e && t);
2308
- }, Ia = (s) => {
2369
+ }, Aa = (s) => {
2309
2370
  const e = s.operand1, t = s.operand2;
2310
2371
  return I(e === void 0 || t === void 0 ? void 0 : e || t);
2311
- }, $a = (s) => {
2372
+ }, La = (s) => {
2312
2373
  const e = s.source;
2313
2374
  return e === void 0 ? I(void 0) : ({ cCtx: t }) => {
2314
2375
  var r;
2315
2376
  return gt((r = t.accessor(e).node()) == null ? void 0 : r.getDataAsJson());
2316
2377
  };
2317
- }, Aa = (s) => {
2378
+ }, Da = (s) => {
2318
2379
  const e = s.source, t = s.field;
2319
2380
  return I(e === void 0 || t === void 0 ? void 0 : e[t]);
2320
2381
  };
2321
- function La(s, e) {
2382
+ function Na(s, e) {
2322
2383
  return (t) => {
2323
2384
  const r = t.source;
2324
2385
  return r === void 0 ? I(void 0) : ({ cCtx: n }) => {
@@ -2333,17 +2394,17 @@ function La(s, e) {
2333
2394
  }
2334
2395
  return {
2335
2396
  type: "ScheduleSubroutine",
2336
- subroutine: Da,
2397
+ subroutine: Ba,
2337
2398
  args: o
2338
2399
  };
2339
2400
  };
2340
2401
  };
2341
2402
  }
2342
- const Da = (s) => I(s), Na = (s) => (e) => {
2403
+ const Ba = (s) => I(s), ja = (s) => (e) => {
2343
2404
  const t = e.source;
2344
2405
  return t === void 0 ? I(void 0) : ({ drivers: r }) => ({
2345
2406
  type: "ScheduleComputable",
2346
- computable: K.make(
2407
+ computable: H.make(
2347
2408
  (n) => r.blobDriver.getDownloadedBlob(n.accessor(t).node().resourceInfo),
2348
2409
  {
2349
2410
  postprocessValue: async (n) => {
@@ -2353,22 +2414,22 @@ const Da = (s) => I(s), Na = (s) => (e) => {
2353
2414
  }
2354
2415
  )
2355
2416
  });
2356
- }, Ba = (s) => (e) => {
2417
+ }, xa = (s) => (e) => {
2357
2418
  const t = e.source;
2358
2419
  return t === void 0 ? I(void 0) : ({ cCtx: r, drivers: n }) => {
2359
2420
  const i = r.accessor(t).node().resourceInfo;
2360
2421
  return {
2361
2422
  type: "ScheduleComputable",
2362
- computable: K.make((o) => n.blobDriver.getDownloadedBlob(i, o), {
2423
+ computable: H.make((o) => n.blobDriver.getDownloadedBlob(i, o), {
2363
2424
  postprocessValue: async (o) => o === void 0 ? void 0 : (await n.blobDriver.getContent(o.handle, s)).toString()
2364
2425
  })
2365
2426
  };
2366
2427
  };
2367
- }, ja = (s) => (e) => {
2428
+ }, Ua = (s) => (e) => {
2368
2429
  const t = e.source;
2369
2430
  return t === void 0 ? I(void 0) : ({ drivers: r }) => ({
2370
2431
  type: "ScheduleComputable",
2371
- computable: K.make(
2432
+ computable: H.make(
2372
2433
  (n) => r.blobDriver.getDownloadedBlob(n.accessor(t).node().resourceInfo, n),
2373
2434
  {
2374
2435
  postprocessValue: async (n) => {
@@ -2380,49 +2441,49 @@ const Da = (s) => I(s), Na = (s) => (e) => {
2380
2441
  }
2381
2442
  )
2382
2443
  });
2383
- }, xa = (s) => {
2444
+ }, Va = (s) => {
2384
2445
  const e = s.source;
2385
2446
  return e === void 0 ? I(void 0) : (t) => ({
2386
2447
  type: "ScheduleComputable",
2387
2448
  computable: t.drivers.blobDriver.getDownloadedBlob(e)
2388
2449
  });
2389
- }, Ua = (s) => {
2450
+ }, Ja = (s) => {
2390
2451
  const e = s.source;
2391
2452
  return e === void 0 ? I(void 0) : ({ drivers: t }) => ({
2392
2453
  type: "ScheduleComputable",
2393
2454
  computable: t.blobDriver.getOnDemandBlob(e)
2394
2455
  });
2395
- }, Va = (s) => (e) => {
2456
+ }, Ma = (s) => (e) => {
2396
2457
  const t = e.source;
2397
2458
  return t === void 0 ? I(void 0) : ({ drivers: r }) => ({
2398
2459
  type: "ScheduleComputable",
2399
2460
  computable: r.blobToURLDriver.extractArchiveAndGetURL(t, s)
2400
2461
  });
2401
- }, Ma = (s) => {
2462
+ }, Ga = (s) => {
2402
2463
  const e = s.source;
2403
2464
  return e === void 0 ? I(void 0) : ({ drivers: t }) => ({
2404
2465
  type: "ScheduleComputable",
2405
2466
  computable: t.uploadDriver.getProgressId(e)
2406
2467
  });
2407
- }, Ja = (s) => (e) => {
2468
+ }, qa = (s) => (e) => {
2408
2469
  const t = e.source;
2409
2470
  return t === void 0 ? I(void 0) : ({ drivers: r }) => ({
2410
2471
  type: "ScheduleComputable",
2411
2472
  computable: r.logDriver.getLastLogs(t, s)
2412
2473
  });
2413
- }, Ga = (s) => (e) => {
2474
+ }, _a = (s) => (e) => {
2414
2475
  const t = e.source;
2415
2476
  return t === void 0 ? I(void 0) : ({ drivers: r }) => ({
2416
2477
  type: "ScheduleComputable",
2417
2478
  computable: r.logDriver.getProgressLog(t, s)
2418
2479
  });
2419
- }, _a = (s) => (e) => {
2480
+ }, Ka = (s) => (e) => {
2420
2481
  const t = e.source;
2421
2482
  return t === void 0 ? I(void 0) : ({ drivers: r }) => ({
2422
2483
  type: "ScheduleComputable",
2423
2484
  computable: r.logDriver.getProgressLogWithInfo(t, s)
2424
2485
  });
2425
- }, qa = (s) => {
2486
+ }, Ha = (s) => {
2426
2487
  const e = s.source;
2427
2488
  return e === void 0 ? I(void 0) : ({ drivers: t }) => ({
2428
2489
  type: "ScheduleComputable",
@@ -2445,7 +2506,7 @@ function L(s, e) {
2445
2506
  case "GetJsonField":
2446
2507
  return () => ({
2447
2508
  type: "ScheduleSubroutine",
2448
- subroutine: Aa,
2509
+ subroutine: Da,
2449
2510
  args: {
2450
2511
  source: L(s, e.source),
2451
2512
  field: L(s, e.field)
@@ -2454,7 +2515,7 @@ function L(s, e) {
2454
2515
  case "MapArrayValues":
2455
2516
  return () => ({
2456
2517
  type: "ScheduleSubroutine",
2457
- subroutine: Ca(s, e),
2518
+ subroutine: Ea(s, e),
2458
2519
  args: {
2459
2520
  source: L(s, e.source)
2460
2521
  }
@@ -2462,7 +2523,7 @@ function L(s, e) {
2462
2523
  case "MapRecordValues":
2463
2524
  return () => ({
2464
2525
  type: "ScheduleSubroutine",
2465
- subroutine: Pa(s, e),
2526
+ subroutine: Oa(s, e),
2466
2527
  args: {
2467
2528
  source: L(s, e.source)
2468
2529
  }
@@ -2470,8 +2531,8 @@ function L(s, e) {
2470
2531
  case "MakeObject":
2471
2532
  return () => ({
2472
2533
  type: "ScheduleSubroutine",
2473
- subroutine: ba,
2474
- args: ya(e.template, (t) => L(s, t))
2534
+ subroutine: Ca,
2535
+ args: Sa(e.template, (t) => L(s, t))
2475
2536
  });
2476
2537
  case "MakeArray":
2477
2538
  return () => ({
@@ -2482,7 +2543,7 @@ function L(s, e) {
2482
2543
  case "Flatten":
2483
2544
  return () => ({
2484
2545
  type: "ScheduleSubroutine",
2485
- subroutine: ka,
2546
+ subroutine: Ra,
2486
2547
  args: {
2487
2548
  source: L(s, e.source)
2488
2549
  }
@@ -2490,7 +2551,7 @@ function L(s, e) {
2490
2551
  case "IsEmpty":
2491
2552
  return () => ({
2492
2553
  type: "ScheduleSubroutine",
2493
- subroutine: Oa,
2554
+ subroutine: Ta,
2494
2555
  args: {
2495
2556
  arg: L(s, e.arg)
2496
2557
  }
@@ -2498,7 +2559,7 @@ function L(s, e) {
2498
2559
  case "Not":
2499
2560
  return () => ({
2500
2561
  type: "ScheduleSubroutine",
2501
- subroutine: Fa,
2562
+ subroutine: Ia,
2502
2563
  args: {
2503
2564
  operand: L(s, e.operand)
2504
2565
  }
@@ -2506,7 +2567,7 @@ function L(s, e) {
2506
2567
  case "And":
2507
2568
  return () => ({
2508
2569
  type: "ScheduleSubroutine",
2509
- subroutine: Ta,
2570
+ subroutine: $a,
2510
2571
  args: {
2511
2572
  operand1: L(s, e.operand1),
2512
2573
  operand2: L(s, e.operand2)
@@ -2515,7 +2576,7 @@ function L(s, e) {
2515
2576
  case "Or":
2516
2577
  return () => ({
2517
2578
  type: "ScheduleSubroutine",
2518
- subroutine: Ia,
2579
+ subroutine: Aa,
2519
2580
  args: {
2520
2581
  operand1: L(s, e.operand1),
2521
2582
  operand2: L(s, e.operand2)
@@ -2524,7 +2585,7 @@ function L(s, e) {
2524
2585
  case "MapResourceFields":
2525
2586
  return () => ({
2526
2587
  type: "ScheduleSubroutine",
2527
- subroutine: La(s, e),
2588
+ subroutine: Na(s, e),
2528
2589
  args: {
2529
2590
  source: L(s, e.source)
2530
2591
  }
@@ -2532,7 +2593,7 @@ function L(s, e) {
2532
2593
  case "GetResourceField":
2533
2594
  return () => ({
2534
2595
  type: "ScheduleSubroutine",
2535
- subroutine: Ra,
2596
+ subroutine: Pa,
2536
2597
  args: {
2537
2598
  source: L(s, e.source),
2538
2599
  field: L(s, e.field)
@@ -2541,7 +2602,7 @@ function L(s, e) {
2541
2602
  case "GetResourceValueAsJson":
2542
2603
  return () => ({
2543
2604
  type: "ScheduleSubroutine",
2544
- subroutine: $a,
2605
+ subroutine: La,
2545
2606
  args: {
2546
2607
  source: L(s, e.source)
2547
2608
  }
@@ -2549,7 +2610,7 @@ function L(s, e) {
2549
2610
  case "GetBlobContent":
2550
2611
  return () => ({
2551
2612
  type: "ScheduleSubroutine",
2552
- subroutine: Na(e.range),
2613
+ subroutine: ja(e.range),
2553
2614
  args: {
2554
2615
  source: L(s, e.source)
2555
2616
  }
@@ -2557,7 +2618,7 @@ function L(s, e) {
2557
2618
  case "GetBlobContentAsString":
2558
2619
  return () => ({
2559
2620
  type: "ScheduleSubroutine",
2560
- subroutine: Ba(e.range),
2621
+ subroutine: xa(e.range),
2561
2622
  args: {
2562
2623
  source: L(s, e.source)
2563
2624
  }
@@ -2565,7 +2626,7 @@ function L(s, e) {
2565
2626
  case "GetBlobContentAsJson":
2566
2627
  return () => ({
2567
2628
  type: "ScheduleSubroutine",
2568
- subroutine: ja(e.range),
2629
+ subroutine: Ua(e.range),
2569
2630
  args: {
2570
2631
  source: L(s, e.source)
2571
2632
  }
@@ -2573,7 +2634,7 @@ function L(s, e) {
2573
2634
  case "GetDownloadedBlobContent":
2574
2635
  return () => ({
2575
2636
  type: "ScheduleSubroutine",
2576
- subroutine: xa,
2637
+ subroutine: Va,
2577
2638
  args: {
2578
2639
  source: L(s, e.source)
2579
2640
  }
@@ -2581,7 +2642,7 @@ function L(s, e) {
2581
2642
  case "GetOnDemandBlobContent":
2582
2643
  return () => ({
2583
2644
  type: "ScheduleSubroutine",
2584
- subroutine: Ua,
2645
+ subroutine: Ja,
2585
2646
  args: {
2586
2647
  source: L(s, e.source)
2587
2648
  }
@@ -2589,7 +2650,7 @@ function L(s, e) {
2589
2650
  case "ExtractArchiveAndGetURL":
2590
2651
  return () => ({
2591
2652
  type: "ScheduleSubroutine",
2592
- subroutine: Va(e.format),
2653
+ subroutine: Ma(e.format),
2593
2654
  args: {
2594
2655
  source: L(s, e.source)
2595
2656
  }
@@ -2597,7 +2658,7 @@ function L(s, e) {
2597
2658
  case "GetImportProgress":
2598
2659
  return () => ({
2599
2660
  type: "ScheduleSubroutine",
2600
- subroutine: Ma,
2661
+ subroutine: Ga,
2601
2662
  args: {
2602
2663
  source: L(s, e.source)
2603
2664
  }
@@ -2605,7 +2666,7 @@ function L(s, e) {
2605
2666
  case "GetLastLogs":
2606
2667
  return () => ({
2607
2668
  type: "ScheduleSubroutine",
2608
- subroutine: Ja(e.lines),
2669
+ subroutine: qa(e.lines),
2609
2670
  args: {
2610
2671
  source: L(s, e.source)
2611
2672
  }
@@ -2613,7 +2674,7 @@ function L(s, e) {
2613
2674
  case "GetProgressLog":
2614
2675
  return () => ({
2615
2676
  type: "ScheduleSubroutine",
2616
- subroutine: Ga(e.patternToSearch),
2677
+ subroutine: _a(e.patternToSearch),
2617
2678
  args: {
2618
2679
  source: L(s, e.source)
2619
2680
  }
@@ -2621,7 +2682,7 @@ function L(s, e) {
2621
2682
  case "GetProgressLogWithInfo":
2622
2683
  return () => ({
2623
2684
  type: "ScheduleSubroutine",
2624
- subroutine: _a(e.patternToSearch),
2685
+ subroutine: Ka(e.patternToSearch),
2625
2686
  args: {
2626
2687
  source: L(s, e.source)
2627
2688
  }
@@ -2629,17 +2690,17 @@ function L(s, e) {
2629
2690
  case "GetLogHandle":
2630
2691
  return () => ({
2631
2692
  type: "ScheduleSubroutine",
2632
- subroutine: qa,
2693
+ subroutine: Ha,
2633
2694
  args: {
2634
2695
  source: L(s, e.source)
2635
2696
  }
2636
2697
  });
2637
2698
  default:
2638
- return Y(e);
2699
+ return Q(e);
2639
2700
  }
2640
2701
  }
2641
- const Ka = ["$prod", "$staging"];
2642
- function Ha(s) {
2702
+ const Wa = ["$prod", "$staging"];
2703
+ function za(s) {
2643
2704
  return {
2644
2705
  $blockId: s.blockId,
2645
2706
  $args: (e) => JSON.parse(s.args(e)),
@@ -2651,16 +2712,16 @@ function Ha(s) {
2651
2712
  $staging: s.staging
2652
2713
  };
2653
2714
  }
2654
- const Yn = Symbol(), Qn = "return", Wa = { op: Yn, arg: Qn };
2655
- function za(s) {
2715
+ const Yn = Symbol(), Qn = "return", Xa = { op: Yn, arg: Qn };
2716
+ function Ya(s) {
2656
2717
  return s.op == Yn && s.arg == Qn;
2657
2718
  }
2658
- function Xa() {
2719
+ function Qa() {
2659
2720
  return { pendingSubroutines: /* @__PURE__ */ new Map() };
2660
2721
  }
2661
2722
  function ms(s, e, t, r) {
2662
- const n = new Cn(t), i = (a, c) => {
2663
- if (za(a))
2723
+ const n = new Rn(t), i = (a, c) => {
2724
+ if (Ya(a))
2664
2725
  return e.result = c, !1;
2665
2726
  const l = N(e.pendingSubroutines.get(a.op));
2666
2727
  if (a.arg in l.args) throw new Error("argument already set");
@@ -2708,31 +2769,31 @@ function ms(s, e, t, r) {
2708
2769
  });
2709
2770
  break;
2710
2771
  default:
2711
- Y(c);
2772
+ Q(c);
2712
2773
  }
2713
2774
  }
2714
2775
  return o;
2715
2776
  }
2716
- function Ya(s, e, t, r = {}) {
2717
- return Zn(s, Ha(e), t, r);
2777
+ function Za(s, e, t, r = {}) {
2778
+ return Zn(s, za(e), t, r);
2718
2779
  }
2719
2780
  function Zn(s, e, t, r = {}) {
2720
- const n = `${e.blockId}#` + te({
2781
+ const n = `${e.blockId}#` + re({
2721
2782
  ctx: Object.fromEntries(
2722
- Object.entries(e).filter(([i]) => Ka.indexOf(i) === -1)
2783
+ Object.entries(e).filter(([i]) => Wa.indexOf(i) === -1)
2723
2784
  ),
2724
2785
  cfg: t
2725
2786
  });
2726
- return K.makeRaw(
2787
+ return H.makeRaw(
2727
2788
  (i) => {
2728
- const o = { drivers: s, cCtx: i }, a = Xa();
2789
+ const o = { drivers: s, cCtx: i }, a = Qa();
2729
2790
  return {
2730
2791
  ir: ms(
2731
2792
  o,
2732
2793
  a,
2733
2794
  [
2734
2795
  {
2735
- destination: Wa,
2796
+ destination: Xa,
2736
2797
  operation: L(e, t)
2737
2798
  }
2738
2799
  ],
@@ -2766,7 +2827,7 @@ function Zn(s, e, t, r = {}) {
2766
2827
  function vs(s) {
2767
2828
  return s !== void 0 ? Buffer.from(s).toString("base64") : void 0;
2768
2829
  }
2769
- class Qa {
2830
+ class ec {
2770
2831
  constructor(e, t, r, n, i) {
2771
2832
  b(this, "computablesToResolve", {});
2772
2833
  b(this, "computableCtx");
@@ -2850,7 +2911,7 @@ class Qa {
2850
2911
  parsePObjectCollection(e, t, r, ...n) {
2851
2912
  const i = this.getAccessor(e);
2852
2913
  if (!i.getIsReadyOrError()) return;
2853
- const o = va(i, t, r, n), a = {};
2914
+ const o = wa(i, t, r, n), a = {};
2854
2915
  for (const [c, l] of Object.entries(o))
2855
2916
  a[c] = ve(l, (u) => this.wrapAccessor(u));
2856
2917
  return a;
@@ -2866,7 +2927,7 @@ class Qa {
2866
2927
  const r = this.getAccessor(e).resourceInfo;
2867
2928
  return this.registerComputable(
2868
2929
  "getBlobContentAsString",
2869
- K.make((n) => this.env.driverKit.blobDriver.getDownloadedBlob(r, n), {
2930
+ H.make((n) => this.env.driverKit.blobDriver.getDownloadedBlob(r, n), {
2870
2931
  postprocessValue: async (n) => {
2871
2932
  if (n !== void 0)
2872
2933
  return Buffer.from(await this.env.driverKit.blobDriver.getContent(n.handle, t)).toString(
@@ -2880,7 +2941,7 @@ class Qa {
2880
2941
  const r = this.getAccessor(e).resourceInfo;
2881
2942
  return this.registerComputable(
2882
2943
  "getBlobContentAsBase64",
2883
- K.make((n) => this.env.driverKit.blobDriver.getDownloadedBlob(r, n), {
2944
+ H.make((n) => this.env.driverKit.blobDriver.getDownloadedBlob(r, n), {
2884
2945
  postprocessValue: async (n) => {
2885
2946
  if (n !== void 0)
2886
2947
  return Buffer.from(await this.env.driverKit.blobDriver.getContent(n.handle, t)).toString(
@@ -3035,7 +3096,7 @@ class Qa {
3035
3096
  "can't instantiate PTable from this context (most porbably called from the future mapper)"
3036
3097
  );
3037
3098
  return this.env.driverKit.pFrameDriver.createPTable(
3038
- wr(
3099
+ Sr(
3039
3100
  e,
3040
3101
  (t) => ve(t, (r) => this.transformInputPData(r))
3041
3102
  ),
@@ -3086,7 +3147,7 @@ class Qa {
3086
3147
  }
3087
3148
  injectCtx(e) {
3088
3149
  const t = this.parent, r = t.vm;
3089
- Je.withScope((n) => {
3150
+ Ge.withScope((n) => {
3090
3151
  const i = (o, a) => {
3091
3152
  const c = (...l) => {
3092
3153
  try {
@@ -3203,15 +3264,15 @@ class Qa {
3203
3264
  });
3204
3265
  }
3205
3266
  }
3206
- function Za(s) {
3267
+ function tc(s) {
3207
3268
  return s instanceof ArrayBuffer || ArrayBuffer.isView(s);
3208
3269
  }
3209
- class Ke {
3270
+ class He {
3210
3271
  constructor(e, t, r, n, i) {
3211
3272
  b(this, "callbackRegistry");
3212
3273
  b(this, "fnJSONStringify");
3213
3274
  b(this, "fnJSONParse");
3214
- b(this, "errorRepo", new ec());
3275
+ b(this, "errorRepo", new rc());
3215
3276
  b(this, "computableHelper");
3216
3277
  if (this.scope = e, this.vm = t, this.deadlineSetter = r, this.callbackRegistry = this.scope.manage(this.vm.newObject()), this.fnJSONStringify = e.manage(
3217
3278
  t.getProp(t.global, "JSON").consume((o) => t.getProp(o, "stringify"))
@@ -3220,7 +3281,7 @@ class Ke {
3220
3281
  if (this.fnJSONParse = e.manage(
3221
3282
  t.getProp(t.global, "JSON").consume((o) => t.getProp(o, "parse"))
3222
3283
  ), t.typeof(this.fnJSONParse) !== "function") throw new Error("JSON.parse() not found.");
3223
- i !== void 0 && (this.computableHelper = new Qa(this, i.blockCtx, i.mlEnv, n, i.computableCtx)), this.injectCtx();
3284
+ i !== void 0 && (this.computableHelper = new ec(this, i.blockCtx, i.mlEnv, n, i.computableCtx)), this.injectCtx();
3224
3285
  }
3225
3286
  resetComputableCtx() {
3226
3287
  N(this.computableHelper, "Computable context helper is not initialized").resetComputableCtx();
@@ -3241,14 +3302,14 @@ class Ke {
3241
3302
  try {
3242
3303
  this.deadlineSetter({ currentExecutionTarget: "evaluateBundle", deadline: Date.now() + 1e4 }), this.vm.unwrapResult(this.vm.evalCode(e, "bundle.js", { type: "global" })).dispose();
3243
3304
  } catch (t) {
3244
- throw Ke.cleanErrorContext(t), t;
3305
+ throw He.cleanErrorContext(t), t;
3245
3306
  } finally {
3246
3307
  this.deadlineSetter(void 0);
3247
3308
  }
3248
3309
  }
3249
3310
  runCallback(e, ...t) {
3250
3311
  try {
3251
- return this.deadlineSetter({ currentExecutionTarget: e, deadline: Date.now() + 1e4 }), Je.withScope((r) => {
3312
+ return this.deadlineSetter({ currentExecutionTarget: e, deadline: Date.now() + 1e4 }), Ge.withScope((r) => {
3252
3313
  const n = r.manage(this.vm.getProp(this.callbackRegistry, e));
3253
3314
  if (this.vm.typeof(n) !== "function")
3254
3315
  throw new Error(`No such callback: ${e}`);
@@ -3263,7 +3324,7 @@ class Ke {
3263
3324
  );
3264
3325
  });
3265
3326
  } catch (r) {
3266
- throw Ke.cleanErrorContext(r), this.errorRepo.getOriginal(r);
3327
+ throw He.cleanErrorContext(r), this.errorRepo.getOriginal(r);
3267
3328
  } finally {
3268
3329
  this.deadlineSetter(void 0);
3269
3330
  }
@@ -3297,7 +3358,7 @@ class Ke {
3297
3358
  r = this.vm.null;
3298
3359
  break;
3299
3360
  }
3300
- if (Za(e)) {
3361
+ if (tc(e)) {
3301
3362
  r = this.vm.newArrayBuffer(e), n = !0;
3302
3363
  break;
3303
3364
  }
@@ -3334,7 +3395,7 @@ class Ke {
3334
3395
  return JSON.parse(t);
3335
3396
  }
3336
3397
  injectCtx() {
3337
- Je.withScope((e) => {
3398
+ Ge.withScope((e) => {
3338
3399
  const t = e.manage(this.vm.newObject());
3339
3400
  this.vm.setProp(t, "callbackRegistry", this.callbackRegistry), this.vm.setProp(
3340
3401
  t,
@@ -3344,7 +3405,7 @@ class Ke {
3344
3405
  });
3345
3406
  }
3346
3407
  }
3347
- class ec {
3408
+ class rc {
3348
3409
  constructor() {
3349
3410
  b(this, "errorIdToError", /* @__PURE__ */ new Map());
3350
3411
  }
@@ -3376,13 +3437,13 @@ class ec {
3376
3437
  }
3377
3438
  }
3378
3439
  function ys(s, e, t, r, n) {
3379
- Q().logOutputStatus && (Q().logOutputStatus === "any" || !t) && console.log(t ? `Stable output ${s} calculated ${e !== void 0 ? "defined" : "undefined"}; (#${r})` : `Unstable output ${s}; marker = ${n}; ${e !== void 0 ? "defined" : "undefined"} (#${r})`);
3440
+ Z().logOutputStatus && (Z().logOutputStatus === "any" || !t) && console.log(t ? `Stable output ${s} calculated ${e !== void 0 ? "defined" : "undefined"}; (#${r})` : `Unstable output ${s}; marker = ${n}; ${e !== void 0 ? "defined" : "undefined"} (#${r})`);
3380
3441
  }
3381
- function tc(s, e, t, r, n, i = {}) {
3442
+ function sc(s, e, t, r, n, i = {}) {
3382
3443
  const { code: o, featureFlags: a } = r, c = `${e.blockId}#lambda#${n}#${t.handle}`;
3383
- return i = { ...i, key: c }, i.mode === void 0 && t.retentive === !0 && (i.mode = "StableOnlyRetentive"), K.makeRaw((l) => {
3384
- Q().logOutputRecalculations && console.log(`Block lambda recalculation : ${c} (${l.changeSourceMarker}; ${l.bodyInvocations} invocations)`);
3385
- const u = new Je();
3444
+ return i = { ...i, key: c }, i.mode === void 0 && t.retentive === !0 && (i.mode = "StableOnlyRetentive"), H.makeRaw((l) => {
3445
+ Z().logOutputRecalculations && console.log(`Block lambda recalculation : ${c} (${l.changeSourceMarker}; ${l.bodyInvocations} invocations)`);
3446
+ const u = new Ge();
3386
3447
  let d = !1;
3387
3448
  l.addOnDestroy(() => {
3388
3449
  d && u.dispose();
@@ -3392,7 +3453,7 @@ function tc(s, e, t, r, n, i = {}) {
3392
3453
  p.setMemoryLimit(1024 * 1024 * 8), p.setMaxStackSize(1024 * 320);
3393
3454
  let f;
3394
3455
  p.setInterruptHandler(() => f === void 0 ? !1 : Date.now() > f.deadline);
3395
- const v = u.manage(p.newContext()), h = new Ke(
3456
+ const v = u.manage(p.newContext()), h = new He(
3396
3457
  u,
3397
3458
  v,
3398
3459
  (F) => {
@@ -3410,10 +3471,10 @@ function tc(s, e, t, r, n, i = {}) {
3410
3471
  return ys(t.handle, F, l.unstableMarker === void 0, -1, l.unstableMarker), { ir: F };
3411
3472
  }
3412
3473
  let B = 0;
3413
- return Q().logOutputStatus && console.log(`Output ${t.handle} scaffold calculated (not all computables resolved yet).`), d = !0, {
3474
+ return Z().logOutputStatus && console.log(`Output ${t.handle} scaffold calculated (not all computables resolved yet).`), d = !0, {
3414
3475
  ir: E,
3415
3476
  postprocessValue: (F, { unstableMarker: x, stable: U }) => {
3416
- for (const [$, C] of Object.entries(F)) h.runCallback($, C);
3477
+ for (const [$, R] of Object.entries(F)) h.runCallback($, R);
3417
3478
  const P = h.importObjectUniversal(y);
3418
3479
  return B++, ys(t.handle, P, U, B, x), P;
3419
3480
  }
@@ -3425,14 +3486,14 @@ function tc(s, e, t, r, n, i = {}) {
3425
3486
  }
3426
3487
  }, i);
3427
3488
  }
3428
- function rc(s, e, t, ...r) {
3429
- const { code: n, featureFlags: i } = t, o = new Je();
3489
+ function nc(s, e, t, ...r) {
3490
+ const { code: n, featureFlags: i } = t, o = new Ge();
3430
3491
  try {
3431
3492
  const a = o.manage(s.newRuntime());
3432
3493
  a.setMemoryLimit(1024 * 1024 * 8), a.setMaxStackSize(1024 * 320);
3433
3494
  let c;
3434
3495
  a.setInterruptHandler(() => c === void 0 ? !1 : Date.now() > c.deadline);
3435
- const l = o.manage(a.newContext()), u = new Ke(
3496
+ const l = o.manage(a.newContext()), u = new He(
3436
3497
  o,
3437
3498
  l,
3438
3499
  (d) => {
@@ -3445,161 +3506,161 @@ function rc(s, e, t, ...r) {
3445
3506
  o.dispose();
3446
3507
  }
3447
3508
  }
3448
- function sc(s) {
3449
- return yn(s) ? s.isActive === !0 : Sa(s);
3509
+ function oc(s) {
3510
+ return yn(s) ? s.isActive === !0 : ka(s);
3450
3511
  }
3451
- function xe(s, e, t, r, n, i = {}) {
3512
+ function Ue(s, e, t, r, n, i = {}) {
3452
3513
  if (yn(t)) {
3453
3514
  if (r === void 0) throw new Error("No code bundle.");
3454
- return tc(s, e, t, r, n, i);
3455
- } else return Ya(s.driverKit, e, t, i);
3515
+ return sc(s, e, t, r, n, i);
3516
+ } else return Za(s.driverKit, e, t, i);
3456
3517
  }
3457
- function He(s, e) {
3458
- return je(
3518
+ function We(s, e) {
3519
+ return xe(
3459
3520
  s.traverse(
3460
3521
  {
3461
- field: q(e, "blockPack"),
3522
+ field: K(e, "blockPack"),
3462
3523
  assertFieldType: "Dynamic",
3463
3524
  errorIfFieldNotSet: !0
3464
3525
  },
3465
3526
  { field: D.HolderRefField, assertFieldType: "Input", errorIfFieldNotFound: !0 }
3466
3527
  ),
3467
3528
  (t) => {
3468
- const r = t.getDataAsJson(), n = Ce(r.config);
3529
+ const r = t.getDataAsJson(), n = Pe(r.config);
3469
3530
  return { bpResourceId: t.resourceInfo.id, bpId: t.resourceInfo.id.toString(), info: r, cfg: n };
3470
3531
  }
3471
3532
  );
3472
3533
  }
3473
- function nc(s, e) {
3534
+ function ic(s, e) {
3474
3535
  if (s === e) return !0;
3475
3536
  if (s === void 0 || e === void 0) return !1;
3476
- const t = rs.omitBy((r, n) => n.startsWith("__"));
3477
- return rs.isDeepEqual(t(s), t(e));
3537
+ const t = ss.omitBy((r, n) => n.startsWith("__"));
3538
+ return ss.isDeepEqual(t(s), t(e));
3478
3539
  }
3479
- function oc(s, e, t) {
3480
- return K.make(
3540
+ function ac(s, e, t) {
3541
+ return H.make(
3481
3542
  (r) => {
3482
3543
  var v, h, y, E, B, F, x, U;
3483
- const n = r.accessor(s).node(), i = N(n.getKeyValueAsJson(Lr)), o = N(n.getKeyValueAsJson(_e)), a = N(n.getKeyValueAsJson(qe)), c = N(n.getKeyValueAsJson(de)), l = N(
3544
+ const n = r.accessor(s).node(), i = N(n.getKeyValueAsJson(Dr)), o = N(n.getKeyValueAsJson(_e)), a = N(n.getKeyValueAsJson(Ke)), c = N(n.getKeyValueAsJson(fe)), l = N(
3484
3545
  n.getKeyValueAsJson(dt)
3485
3546
  ), u = /* @__PURE__ */ new Map();
3486
- for (const { id: P } of re(c)) {
3547
+ for (const { id: P } of se(c)) {
3487
3548
  const $ = n.traverse({
3488
- field: q(P, "currentArgs"),
3549
+ field: K(P, "currentArgs"),
3489
3550
  assertFieldType: "Dynamic",
3490
3551
  errorIfFieldNotSet: !0
3491
- }), C = $.getDataAsJson();
3492
- let G;
3493
- const ce = n.traverse({
3494
- field: q(P, "prodArgs"),
3552
+ }), R = $.getDataAsJson();
3553
+ let q;
3554
+ const le = n.traverse({
3555
+ field: K(P, "prodArgs"),
3495
3556
  assertFieldType: "Dynamic",
3496
3557
  stableIfNotFound: !0
3497
3558
  });
3498
- if (ce !== void 0) {
3499
- const z = ce.getDataAsJson(), M = n.getField({
3500
- field: q(P, "prodOutput"),
3559
+ if (le !== void 0) {
3560
+ const X = le.getDataAsJson(), J = n.getField({
3561
+ field: K(P, "prodOutput"),
3501
3562
  assertFieldType: "Dynamic",
3502
3563
  errorIfFieldNotFound: !0
3503
- }), W = n.getField({
3504
- field: q(P, "prodUiCtx"),
3564
+ }), z = n.getField({
3565
+ field: K(P, "prodUiCtx"),
3505
3566
  assertFieldType: "Dynamic",
3506
3567
  errorIfFieldNotFound: !0
3507
3568
  });
3508
- G = {
3509
- arguments: z,
3510
- stale: !nc(C, z),
3511
- outputError: M.error !== void 0 || W.error !== void 0 || ((v = M.value) == null ? void 0 : v.getError()) !== void 0 || ((h = W.value) == null ? void 0 : h.getError()) !== void 0,
3512
- outputsError: ((y = M.error) == null ? void 0 : y.getDataAsString()) ?? ((B = (E = M.value) == null ? void 0 : E.getError()) == null ? void 0 : B.getDataAsString()),
3513
- exportsError: ((F = W.error) == null ? void 0 : F.getDataAsString()) ?? ((U = (x = W.value) == null ? void 0 : x.getError()) == null ? void 0 : U.getDataAsString()),
3514
- finished: (M.value !== void 0 && M.value.getIsReadyOrError() || M.error !== void 0 && M.error.getIsReadyOrError()) && (W.value !== void 0 && W.value.getIsReadyOrError() || W.error !== void 0 && W.error.getIsReadyOrError())
3569
+ q = {
3570
+ arguments: X,
3571
+ stale: !ic(R, X),
3572
+ outputError: J.error !== void 0 || z.error !== void 0 || ((v = J.value) == null ? void 0 : v.getError()) !== void 0 || ((h = z.value) == null ? void 0 : h.getError()) !== void 0,
3573
+ outputsError: ((y = J.error) == null ? void 0 : y.getDataAsString()) ?? ((B = (E = J.value) == null ? void 0 : E.getError()) == null ? void 0 : B.getDataAsString()),
3574
+ exportsError: ((F = z.error) == null ? void 0 : F.getDataAsString()) ?? ((U = (x = z.value) == null ? void 0 : x.getError()) == null ? void 0 : U.getDataAsString()),
3575
+ finished: (J.value !== void 0 && J.value.getIsReadyOrError() || J.error !== void 0 && J.error.getIsReadyOrError()) && (z.value !== void 0 && z.value.getIsReadyOrError() || z.error !== void 0 && z.error.getIsReadyOrError())
3515
3576
  };
3516
3577
  }
3517
- u.set(P, { currentArguments: C, prod: G, argsRid: $.resourceInfo.id });
3578
+ u.set(P, { currentArguments: R, prod: q, argsRid: $.resourceInfo.id });
3518
3579
  }
3519
3580
  const d = nt(c, (P) => {
3520
- const $ = He(n, P), C = u.get(P), G = C.currentArguments;
3581
+ const $ = We(n, P), R = u.get(P), q = R.currentArguments;
3521
3582
  return {
3522
- args: G,
3523
- enrichmentTargets: t.projectHelper.getEnrichmentTargets(() => $.cfg, () => G, { argsRid: C.argsRid, blockPackRid: $.bpResourceId })
3583
+ args: q,
3584
+ enrichmentTargets: t.projectHelper.getEnrichmentTargets(() => $.cfg, () => q, { argsRid: R.argsRid, blockPackRid: $.bpResourceId })
3524
3585
  };
3525
- }), p = new Set(l.blocksInLimbo), f = [...re(c)].map(({ id: P, label: $, renderingMode: C }) => {
3526
- var A, T, j, H, V;
3527
- const G = N(u.get(P)), ce = N(d.nodes.get(P));
3528
- let z = "NotCalculated";
3529
- G.prod !== void 0 && (p.has(P) ? z = "Limbo" : z = G.prod.finished ? "Done" : "Running");
3530
- const M = He(n, P), { sections: W, title: g, inputsValid: m, sdkVersion: S, featureFlags: w, isIncompatibleWithRuntime: R } = je(M, ({ bpId: oe, cfg: Se }) => {
3531
- if (!t.runtimeCapabilities.checkCompatibility(Se.featureFlags))
3586
+ }), p = new Set(l.blocksInLimbo), f = [...se(c)].map(({ id: P, label: $, renderingMode: R }) => {
3587
+ var A, T, j, W, V;
3588
+ const q = N(u.get(P)), le = N(d.nodes.get(P));
3589
+ let X = "NotCalculated";
3590
+ q.prod !== void 0 && (p.has(P) ? X = "Limbo" : X = q.prod.finished ? "Done" : "Running");
3591
+ const J = We(n, P), { sections: z, title: g, inputsValid: m, sdkVersion: S, featureFlags: w, isIncompatibleWithRuntime: C } = xe(J, ({ bpId: ie, cfg: be }) => {
3592
+ if (!t.runtimeCapabilities.checkCompatibility(be.featureFlags))
3532
3593
  return {
3533
3594
  isIncompatibleWithRuntime: !0,
3534
- featureFlags: Se.featureFlags
3595
+ featureFlags: be.featureFlags
3535
3596
  };
3536
- const bt = Br(s, P), ue = ft(Se);
3597
+ const bt = jr(s, P), pe = ft(be);
3537
3598
  return {
3538
- sections: xe(
3599
+ sections: Ue(
3539
3600
  t,
3540
3601
  bt,
3541
- Se.sections,
3542
- ue,
3543
- oe
3602
+ be.sections,
3603
+ pe,
3604
+ ie
3544
3605
  ).wrap({
3545
- recover: (Le) => (t.logger.error("Error in block model sections"), t.logger.error(Le), [])
3606
+ recover: (De) => (t.logger.error("Error in block model sections"), t.logger.error(De), [])
3546
3607
  }),
3547
- title: je(
3548
- Se.title,
3549
- (Le) => xe(
3608
+ title: xe(
3609
+ be.title,
3610
+ (De) => Ue(
3550
3611
  t,
3551
3612
  bt,
3552
- Le,
3553
- ue,
3554
- oe
3613
+ De,
3614
+ pe,
3615
+ ie
3555
3616
  ).wrap({
3556
3617
  recover: (lo) => (t.logger.error("Error in block model title"), t.logger.error(lo), "Invalid title")
3557
3618
  })
3558
3619
  ),
3559
- inputsValid: xe(
3620
+ inputsValid: Ue(
3560
3621
  t,
3561
3622
  bt,
3562
- Se.inputsValid,
3563
- ue,
3564
- oe
3623
+ be.inputsValid,
3624
+ pe,
3625
+ ie
3565
3626
  ).wrap({
3566
- recover: (Le) => (t.logger.error("Error in block model argsValid"), t.logger.error(Le), !1)
3627
+ recover: (De) => (t.logger.error("Error in block model argsValid"), t.logger.error(De), !1)
3567
3628
  }),
3568
- sdkVersion: ue == null ? void 0 : ue.sdkVersion,
3569
- featureFlags: (ue == null ? void 0 : ue.featureFlags) ?? {},
3629
+ sdkVersion: pe == null ? void 0 : pe.sdkVersion,
3630
+ featureFlags: (pe == null ? void 0 : pe.featureFlags) ?? {},
3570
3631
  isIncompatibleWithRuntime: !1
3571
3632
  };
3572
3633
  }) || {}, k = n.traverse({
3573
- field: q(P, "blockSettings"),
3634
+ field: K(P, "blockSettings"),
3574
3635
  assertFieldType: "Dynamic",
3575
3636
  errorIfFieldNotSet: !0
3576
- }).getDataAsJson(), O = je(
3577
- M,
3578
- ({ info: oe }) => t.blockUpdateWatcher.get({ currentSpec: oe.source, settings: k })
3637
+ }).getDataAsJson(), O = xe(
3638
+ J,
3639
+ ({ info: ie }) => t.blockUpdateWatcher.get({ currentSpec: ie.source, settings: k })
3579
3640
  );
3580
3641
  return {
3581
- projectResourceId: Ee(s.rid),
3642
+ projectResourceId: Oe(s.rid),
3582
3643
  id: P,
3583
3644
  label: g ?? $,
3584
3645
  title: g ?? $,
3585
- renderingMode: C,
3586
- stale: ((A = G.prod) == null ? void 0 : A.stale) !== !1 || z === "Limbo",
3587
- missingReference: ce.missingReferences,
3646
+ renderingMode: R,
3647
+ stale: ((A = q.prod) == null ? void 0 : A.stale) !== !1 || X === "Limbo",
3648
+ missingReference: le.missingReferences,
3588
3649
  upstreams: [...d.traverseIdsExcludingRoots("upstream", P)],
3589
3650
  downstreams: [...d.traverseIdsExcludingRoots("downstream", P)],
3590
- calculationStatus: z,
3591
- outputErrors: ((T = G.prod) == null ? void 0 : T.outputError) === !0,
3592
- outputsError: (j = G.prod) == null ? void 0 : j.outputsError,
3593
- exportsError: (H = G.prod) == null ? void 0 : H.exportsError,
3651
+ calculationStatus: X,
3652
+ outputErrors: ((T = q.prod) == null ? void 0 : T.outputError) === !0,
3653
+ outputsError: (j = q.prod) == null ? void 0 : j.outputsError,
3654
+ exportsError: (W = q.prod) == null ? void 0 : W.exportsError,
3594
3655
  settings: k,
3595
- sections: W,
3656
+ sections: z,
3596
3657
  inputsValid: m,
3597
3658
  updateInfo: {},
3598
- currentBlockPack: (V = M == null ? void 0 : M.info) == null ? void 0 : V.source,
3659
+ currentBlockPack: (V = J == null ? void 0 : J.info) == null ? void 0 : V.source,
3599
3660
  updates: O,
3600
3661
  sdkVersion: S,
3601
3662
  featureFlags: w,
3602
- isIncompatibleWithRuntime: R,
3663
+ isIncompatibleWithRuntime: C,
3603
3664
  navigationState: e.getState(P)
3604
3665
  };
3605
3666
  });
@@ -3633,13 +3694,13 @@ function oc(s, e, t) {
3633
3694
  }
3634
3695
  ).withStableType();
3635
3696
  }
3636
- function ic(s, e) {
3697
+ function cc(s, e) {
3637
3698
  const t = s.node();
3638
- if (pe(t.resourceType, Mn)) {
3699
+ if (ue(t.resourceType, Jn)) {
3639
3700
  const r = t.getDataAsJson();
3640
3701
  if (r === void 0) throw new Error("No resource data.");
3641
3702
  return e.frontendDownloadDriver.getUrl(new URL(r.url)).withStableType();
3642
- } else if (pe(t.resourceType, Jn)) {
3703
+ } else if (ue(t.resourceType, Mn)) {
3643
3704
  const r = t.getDataAsJson();
3644
3705
  if (r === void 0) throw new Error("No resource data.");
3645
3706
  return e.signer.verify(
@@ -3650,10 +3711,10 @@ function ic(s, e) {
3650
3711
  } else
3651
3712
  throw new Error(`Unsupported resource type: ${JSON.stringify(t.resourceType)}`);
3652
3713
  }
3653
- function ac(s, e) {
3714
+ function lc(s, e) {
3654
3715
  if (s !== void 0)
3655
- return K.make(
3656
- (t) => ic(t.accessor(s), e),
3716
+ return H.make(
3717
+ (t) => cc(t.accessor(s), e),
3657
3718
  {
3658
3719
  postprocessValue: (t) => {
3659
3720
  if (t !== void 0) {
@@ -3665,20 +3726,20 @@ function ac(s, e) {
3665
3726
  }
3666
3727
  ).withStableType();
3667
3728
  }
3668
- function cc(s, e, t) {
3669
- return K.make(
3729
+ function uc(s, e, t) {
3730
+ return H.make(
3670
3731
  (r) => {
3671
3732
  var a;
3672
- const n = r.accessor(s).node(), i = He(n, e), o = (a = n.traverse(
3733
+ const n = r.accessor(s).node(), i = We(n, e), o = (a = n.traverse(
3673
3734
  {
3674
- field: q(e, "blockPack"),
3735
+ field: K(e, "blockPack"),
3675
3736
  assertFieldType: "Dynamic"
3676
3737
  },
3677
3738
  { field: D.HolderRefField, assertFieldType: "Input", errorIfFieldNotFound: !0 },
3678
- { field: _n, assertFieldType: "Input" }
3739
+ { field: qn, assertFieldType: "Input" }
3679
3740
  )) == null ? void 0 : a.persist();
3680
3741
  return {
3681
- url: ac(o, t),
3742
+ url: lc(o, t),
3682
3743
  sdkVersion: i == null ? void 0 : i.cfg.sdkVersion
3683
3744
  };
3684
3745
  },
@@ -3687,29 +3748,29 @@ function cc(s, e, t) {
3687
3748
  }
3688
3749
  function eo(s, e, t) {
3689
3750
  if (t === void 0)
3690
- return K.make((o) => eo(s, e, o), {
3691
- key: `inputs#${Ee(s.rid)}#${e}`
3751
+ return H.make((o) => eo(s, e, o), {
3752
+ key: `inputs#${Oe(s.rid)}#${e}`
3692
3753
  });
3693
- const r = t.accessor(s).node(), n = Br(s, e), i = n.uiState(t);
3754
+ const r = t.accessor(s).node(), n = jr(s, e), i = n.uiState(t);
3694
3755
  return {
3695
- author: r.getKeyValueAsJson(kr(e)),
3756
+ author: r.getKeyValueAsJson(Cr(e)),
3696
3757
  // @TODO add deserialization caching
3697
- args: Qr(JSON.parse(n.args(t))),
3758
+ args: Zr(JSON.parse(n.args(t))),
3698
3759
  // @TODO add deserialization caching
3699
- ui: i !== void 0 ? Qr(JSON.parse(i)) : void 0
3760
+ ui: i !== void 0 ? Zr(JSON.parse(i)) : void 0
3700
3761
  };
3701
3762
  }
3702
- function lc(s, e, t) {
3703
- const r = "outputs#" + Ee(s.rid) + "#" + e;
3704
- return K.make(
3763
+ function dc(s, e, t) {
3764
+ const r = "outputs#" + Oe(s.rid) + "#" + e;
3765
+ return H.make(
3705
3766
  (n) => {
3706
- Q().logOutputRecalculations && console.log(`blockOutput recalculation : ${r} (${n.changeSourceMarker}; ${n.bodyInvocations} invocations)`);
3767
+ Z().logOutputRecalculations && console.log(`blockOutput recalculation : ${r} (${n.changeSourceMarker}; ${n.bodyInvocations} invocations)`);
3707
3768
  const i = n.accessor(s).node(), o = Wn(s, e);
3708
- return je(He(i, e), ({ cfg: a, bpId: c }) => {
3769
+ return xe(We(i, e), ({ cfg: a, bpId: c }) => {
3709
3770
  const l = {};
3710
3771
  for (const [u, d] of Object.entries(a.outputs)) {
3711
- const p = xe(t, o, d, ft(a), c);
3712
- l[u] = K.wrapError(p, 1);
3772
+ const p = Ue(t, o, d, ft(a), c);
3773
+ l[u] = H.wrapError(p, 1);
3713
3774
  }
3714
3775
  return l;
3715
3776
  });
@@ -3717,41 +3778,41 @@ function lc(s, e, t) {
3717
3778
  { key: r }
3718
3779
  ).withStableType();
3719
3780
  }
3720
- function uc(s, e) {
3721
- return K.make((t) => {
3722
- const r = t.accessor(s).node(), n = N(r.getKeyValueAsJson(de)), i = [];
3723
- for (const { id: o } of re(n)) {
3724
- const a = He(r, o);
3781
+ function pc(s, e) {
3782
+ return H.make((t) => {
3783
+ const r = t.accessor(s).node(), n = N(r.getKeyValueAsJson(fe)), i = [];
3784
+ for (const { id: o } of se(n)) {
3785
+ const a = We(r, o);
3725
3786
  if (a === void 0) continue;
3726
- const c = Object.entries(a.cfg.outputs).map(([, u]) => u).filter((u) => sc(u)).map((u) => u);
3787
+ const c = Object.entries(a.cfg.outputs).map(([, u]) => u).filter((u) => oc(u)).map((u) => u);
3727
3788
  if (c.length === 0) continue;
3728
3789
  const l = Wn(r.persist(), o);
3729
3790
  for (const u of c)
3730
3791
  i.push(
3731
- K.wrapError(xe(e, l, u, ft(a.cfg), a.bpId))
3792
+ H.wrapError(Ue(e, l, u, ft(a.cfg), a.bpId))
3732
3793
  );
3733
3794
  }
3734
3795
  return i;
3735
3796
  });
3736
3797
  }
3737
- class dc {
3798
+ class fc {
3738
3799
  constructor() {
3739
3800
  b(this, "states", /* @__PURE__ */ new Map());
3740
3801
  }
3741
3802
  setState(e, t) {
3742
3803
  const r = this.states.get(e);
3743
3804
  if (r === void 0) {
3744
- this.states.set(e, { state: t, change: new ts() });
3805
+ this.states.set(e, { state: t, change: new rs() });
3745
3806
  return;
3746
3807
  }
3747
3808
  r.state = { ...t }, r.change.markChanged("navigation state changed");
3748
3809
  }
3749
3810
  readState(e, t) {
3750
3811
  let r = this.states.get(t);
3751
- return r === void 0 && (r = { state: { ...mo }, change: new ts() }, this.states.set(t, r)), r.change.attachWatcher(e.watcher), r.state;
3812
+ return r === void 0 && (r = { state: { ...mo }, change: new rs() }, this.states.set(t, r)), r.change.attachWatcher(e.watcher), r.state;
3752
3813
  }
3753
3814
  getState(e) {
3754
- return K.make(
3815
+ return H.make(
3755
3816
  (t) => this.readState(t, e),
3756
3817
  { key: `navigationState#${e}` }
3757
3818
  );
@@ -3761,48 +3822,48 @@ class dc {
3761
3822
  t !== void 0 && (this.states.delete(e), t.change.markChanged("block deleted"));
3762
3823
  }
3763
3824
  }
3764
- function pc(s) {
3765
- return K.make((e) => {
3766
- const t = e.accessor(s).node(), r = N(t.getKeyValueAsJson(de));
3825
+ function hc(s) {
3826
+ return H.make((e) => {
3827
+ const t = e.accessor(s).node(), r = N(t.getKeyValueAsJson(fe));
3767
3828
  return {
3768
- listOfBlocks: [...re(r)].map((n) => n.id)
3829
+ listOfBlocks: [...se(r)].map((n) => n.id)
3769
3830
  };
3770
3831
  });
3771
3832
  }
3772
- const fc = "1", hc = "BlockFrontendState/";
3773
- async function gc(s, e) {
3833
+ const gc = "1", mc = "BlockFrontendState/";
3834
+ async function vc(s, e) {
3774
3835
  await s.withWriteTx("ProjectMigration", async (t) => {
3775
3836
  const r = await t.getKValueJson(e, ut);
3776
- if (r !== Ge) {
3777
- if (r === fc)
3778
- await mc(t, e);
3837
+ if (r !== qe) {
3838
+ if (r === gc)
3839
+ await yc(t, e);
3779
3840
  else
3780
3841
  throw new Error(`Unknown project schema version: ${r}`);
3781
- t.setKValue(e, ut, JSON.stringify(Ge)), await t.commit();
3842
+ t.setKValue(e, ut, JSON.stringify(qe)), await t.commit();
3782
3843
  }
3783
3844
  });
3784
3845
  }
3785
- async function mc(s, e) {
3846
+ async function yc(s, e) {
3786
3847
  const [t, r] = await Promise.all([
3787
- s.getKValueJson(e, de),
3848
+ s.getKValueJson(e, fe),
3788
3849
  s.listKeyValues(e)
3789
3850
  ]), n = new Map(r.map((i) => [i.key, i.value]));
3790
- for (const i of re(t)) {
3791
- const o = hc + i.id, a = n.get(o), c = a ? Ve(a) : {}, l = s.createJsonGzValue(c), u = J(e, q(i.id, "uiState"));
3851
+ for (const i of se(t)) {
3852
+ const o = mc + i.id, a = n.get(o), c = a ? Je(a) : {}, l = s.createJsonGzValue(c), u = G(e, K(i.id, "uiState"));
3792
3853
  s.createField(u, "Dynamic", l), s.deleteKValue(e, o);
3793
3854
  }
3794
3855
  }
3795
3856
  function ws(s) {
3796
- return JSON.stringify(s, (e, t) => typeof t == "bigint" ? Ee(t) : ArrayBuffer.isView(t) || t instanceof Int8Array || t instanceof Uint8Array || t instanceof Uint8ClampedArray || t instanceof Int16Array || t instanceof Uint16Array || t instanceof Int32Array || t instanceof Uint32Array || t instanceof Float32Array || t instanceof Float64Array || t instanceof BigInt64Array || t instanceof BigUint64Array ? Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64") : Buffer.isBuffer(t) ? t.toString("base64") : t);
3857
+ return JSON.stringify(s, (e, t) => typeof t == "bigint" ? Oe(t) : ArrayBuffer.isView(t) || t instanceof Int8Array || t instanceof Uint8Array || t instanceof Uint8ClampedArray || t instanceof Int16Array || t instanceof Uint16Array || t instanceof Int32Array || t instanceof Uint32Array || t instanceof Float32Array || t instanceof Float64Array || t instanceof BigInt64Array || t instanceof BigUint64Array ? Buffer.from(t.buffer, t.byteOffset, t.byteLength).toString("base64") : Buffer.isBuffer(t) ? t.toString("base64") : t);
3797
3858
  }
3798
- class jr {
3859
+ class xr {
3799
3860
  constructor(e, t, r) {
3800
3861
  /** Underlying pl resource id */
3801
3862
  b(this, "rid");
3802
3863
  /** Data for the left panel, contain basic information about block status. */
3803
3864
  b(this, "overview");
3804
3865
  b(this, "overviewLight");
3805
- b(this, "navigationStates", new dc());
3866
+ b(this, "navigationStates", new fc());
3806
3867
  // null is set for deleted blocks
3807
3868
  b(this, "blockComputables", /* @__PURE__ */ new Map());
3808
3869
  b(this, "blockFrontends", /* @__PURE__ */ new Map());
@@ -3810,11 +3871,11 @@ class jr {
3810
3871
  b(this, "refreshLoopResult");
3811
3872
  b(this, "abortController", new AbortController());
3812
3873
  b(this, "destroyed", !1);
3813
- this.env = e, this.projectTree = r, this.overview = oc(
3874
+ this.env = e, this.projectTree = r, this.overview = ac(
3814
3875
  r.entry(),
3815
3876
  this.navigationStates,
3816
3877
  e
3817
- ).withPreCalculatedValueTree(), this.overviewLight = pc(r.entry()).withPreCalculatedValueTree(), this.rid = t, this.refreshLoopResult = this.refreshLoop(), this.activeConfigs = uc(r.entry(), e);
3878
+ ).withPreCalculatedValueTree(), this.overviewLight = hc(r.entry()).withPreCalculatedValueTree(), this.rid = t, this.refreshLoopResult = this.refreshLoop(), this.activeConfigs = pc(r.entry(), e);
3818
3879
  }
3819
3880
  async refreshLoop() {
3820
3881
  for (; !this.destroyed; )
@@ -3850,8 +3911,8 @@ class jr {
3850
3911
  * @return returns newly created block id
3851
3912
  * */
3852
3913
  async addBlock(e, t, r, n = void 0, i = ge()) {
3853
- const o = await this.env.bpPreparer.prepare(t), a = await this.env.bpPreparer.getBlockConfigContainer(t), c = Ce(a);
3854
- return await se(
3914
+ const o = await this.env.bpPreparer.prepare(t), a = await this.env.bpPreparer.getBlockConfigContainer(t), c = Pe(a);
3915
+ return await ne(
3855
3916
  this.env.projectHelper,
3856
3917
  this.env.pl,
3857
3918
  this.rid,
@@ -3863,8 +3924,8 @@ class jr {
3863
3924
  renderingMode: c.renderingMode
3864
3925
  },
3865
3926
  {
3866
- args: te(c.initialArgs),
3867
- uiState: te(c.initialUiState),
3927
+ args: re(c.initialArgs),
3928
+ uiState: re(c.initialUiState),
3868
3929
  blockPack: o
3869
3930
  },
3870
3931
  r
@@ -3884,7 +3945,7 @@ class jr {
3884
3945
  * @return returns newly created block id
3885
3946
  * */
3886
3947
  async duplicateBlock(e, t, r = void 0, n = ge()) {
3887
- return await se(
3948
+ return await ne(
3888
3949
  this.env.projectHelper,
3889
3950
  this.env.pl,
3890
3951
  this.rid,
@@ -3897,8 +3958,8 @@ class jr {
3897
3958
  * initial values
3898
3959
  * */
3899
3960
  async updateBlockPack(e, t, r = !1, n) {
3900
- const i = await this.env.bpPreparer.prepare(t), o = Ce(await this.env.bpPreparer.getBlockConfigContainer(t));
3901
- await se(
3961
+ const i = await this.env.bpPreparer.prepare(t), o = Pe(await this.env.bpPreparer.getBlockConfigContainer(t));
3962
+ await ne(
3902
3963
  this.env.projectHelper,
3903
3964
  this.env.pl,
3904
3965
  this.rid,
@@ -3912,7 +3973,7 @@ class jr {
3912
3973
  }
3913
3974
  /** Deletes a block with all associated data. */
3914
3975
  async deleteBlock(e, t) {
3915
- await se(this.env.projectHelper, this.env.pl, this.rid, t, (r) => r.deleteBlock(e)), this.navigationStates.deleteBlock(e), await this.projectTree.refreshState();
3976
+ await ne(this.env.projectHelper, this.env.pl, this.rid, t, (r) => r.deleteBlock(e)), this.navigationStates.deleteBlock(e), await this.projectTree.refreshState();
3916
3977
  }
3917
3978
  /**
3918
3979
  * Updates block order according to the given array of block ids.
@@ -3921,7 +3982,7 @@ class jr {
3921
3982
  * an error will be thrown instead.
3922
3983
  */
3923
3984
  async reorderBlocks(e, t) {
3924
- await se(this.env.projectHelper, this.env.pl, this.rid, t, (r) => {
3985
+ await ne(this.env.projectHelper, this.env.pl, this.rid, t, (r) => {
3925
3986
  const n = r.structure;
3926
3987
  if (n.groups.length !== 1)
3927
3988
  throw new Error("Unexpected project structure, non-sinular block group");
@@ -3975,7 +4036,7 @@ class jr {
3975
4036
  * in collaborative editing scenario.
3976
4037
  * */
3977
4038
  async setBlockArgs(e, t, r) {
3978
- await se(
4039
+ await ne(
3979
4040
  this.env.projectHelper,
3980
4041
  this.env.pl,
3981
4042
  this.rid,
@@ -3990,7 +4051,7 @@ class jr {
3990
4051
  * in collaborative editing scenario.
3991
4052
  * */
3992
4053
  async setUiState(e, t, r) {
3993
- await se(
4054
+ await ne(
3994
4055
  this.env.projectHelper,
3995
4056
  this.env.pl,
3996
4057
  this.rid,
@@ -4012,13 +4073,13 @@ class jr {
4012
4073
  * in collaborative editing scenario.
4013
4074
  * */
4014
4075
  async setBlockArgsAndUiState(e, t, r, n) {
4015
- await se(this.env.projectHelper, this.env.pl, this.rid, n, (i) => {
4076
+ await ne(this.env.projectHelper, this.env.pl, this.rid, n, (i) => {
4016
4077
  i.setStates([{ blockId: e, args: t, uiState: r }]);
4017
4078
  }), await this.projectTree.refreshState();
4018
4079
  }
4019
4080
  /** Update block settings */
4020
4081
  async setBlockSettings(e, t) {
4021
- await se(this.env.projectHelper, this.env.pl, this.rid, void 0, (r) => {
4082
+ await ne(this.env.projectHelper, this.env.pl, this.rid, void 0, (r) => {
4022
4083
  r.setBlockSettings(e, t);
4023
4084
  }), await this.projectTree.refreshState();
4024
4085
  }
@@ -4026,11 +4087,11 @@ class jr {
4026
4087
  async resetBlockArgsAndUiState(e, t) {
4027
4088
  await this.env.pl.withWriteTx("BlockInputsReset", async (r) => {
4028
4089
  const n = ct(
4029
- (await r.getField(J(this.rid, q(e, "blockPack")))).value
4090
+ (await r.getField(G(this.rid, K(e, "blockPack")))).value
4030
4091
  ), i = ct(
4031
- (await r.getField(J(n, D.HolderRefField))).value
4032
- ), o = await r.getResourceData(i, !1), a = Ce(Ve(N(o.data)).config);
4033
- await se(this.env.projectHelper, r, this.rid, t, (c) => {
4092
+ (await r.getField(G(n, D.HolderRefField))).value
4093
+ ), o = await r.getResourceData(i, !1), a = Pe(Je(N(o.data)).config);
4094
+ await ne(this.env.projectHelper, r, this.rid, t, (c) => {
4034
4095
  c.setStates([{ blockId: e, args: a.initialArgs, uiState: a.initialUiState }]);
4035
4096
  }), await r.commit();
4036
4097
  }), await this.projectTree.refreshState();
@@ -4039,8 +4100,8 @@ class jr {
4039
4100
  const t = this.blockComputables.get(e);
4040
4101
  if (t === null) throw new Error(`Block ${e} is deleted`);
4041
4102
  if (t === void 0) {
4042
- const r = lc(this.projectTree.entry(), e, this.env), i = {
4043
- fullState: K.make(
4103
+ const r = dc(this.projectTree.entry(), e, this.env), i = {
4104
+ fullState: H.make(
4044
4105
  (o) => ({
4045
4106
  argsAndUiState: eo(this.projectTree.entry(), e, o),
4046
4107
  outputs: r,
@@ -4050,7 +4111,7 @@ class jr {
4050
4111
  {
4051
4112
  postprocessValue: (o) => {
4052
4113
  var u, d, p;
4053
- const a = (p = (d = (u = o.overview) == null ? void 0 : u.blocks) == null ? void 0 : d.find((f) => f.id == e)) == null ? void 0 : p.sdkVersion, l = a && yc(a) && o.outputs !== void 0 ? Sc(o.outputs) : o.outputs;
4114
+ const a = (p = (d = (u = o.overview) == null ? void 0 : u.blocks) == null ? void 0 : d.find((f) => f.id == e)) == null ? void 0 : p.sdkVersion, l = a && Sc(a) && o.outputs !== void 0 ? kc(o.outputs) : o.outputs;
4054
4115
  return {
4055
4116
  ...o.argsAndUiState,
4056
4117
  outputs: l,
@@ -4078,7 +4139,7 @@ class jr {
4078
4139
  getBlockFrontend(e) {
4079
4140
  const t = this.blockFrontends.get(e);
4080
4141
  if (t === void 0) {
4081
- const r = cc(
4142
+ const r = uc(
4082
4143
  this.projectTree.entry(),
4083
4144
  e,
4084
4145
  this.env
@@ -4098,14 +4159,14 @@ class jr {
4098
4159
  await this.destroy();
4099
4160
  }
4100
4161
  static async init(e, t) {
4101
- await gc(e.pl, t), await rt(e.projectHelper, e.pl, t, (n) => {
4162
+ await vc(e.pl, t), await rt(e.projectHelper, e.pl, t, (n) => {
4102
4163
  });
4103
- const r = await Rn.init(
4164
+ const r = await Cn.init(
4104
4165
  e.pl,
4105
4166
  t,
4106
4167
  {
4107
4168
  ...e.ops.defaultTreeOptions,
4108
- pruning: vc
4169
+ pruning: wc
4109
4170
  },
4110
4171
  e.logger
4111
4172
  );
@@ -4115,13 +4176,13 @@ class jr {
4115
4176
  var c, l;
4116
4177
  return (((c = a.data) == null ? void 0 : c.byteLength) ?? 0) - (((l = o.data) == null ? void 0 : l.byteLength) ?? 0);
4117
4178
  });
4118
- const i = qo(n);
4119
- await at.writeFile(`${Ee(t)}.json`, ws(n)), await at.writeFile(`${Ee(t)}.stats.json`, ws(i));
4179
+ const i = _o(n);
4180
+ await at.writeFile(`${Oe(t)}.json`, ws(n)), await at.writeFile(`${Oe(t)}.stats.json`, ws(i));
4120
4181
  }
4121
- return new jr(e, t, r);
4182
+ return new xr(e, t, r);
4122
4183
  }
4123
4184
  }
4124
- function vc(s) {
4185
+ function wc(s) {
4125
4186
  if (s.type.name.startsWith("StreamWorkdir/"))
4126
4187
  return [];
4127
4188
  switch (s.type.name) {
@@ -4135,14 +4196,14 @@ function vc(s) {
4135
4196
  return s.fields;
4136
4197
  }
4137
4198
  }
4138
- function yc(s) {
4139
- return !wc(s, "1.26.0");
4199
+ function Sc(s) {
4200
+ return !bc(s, "1.26.0");
4140
4201
  }
4141
- function wc(s, e) {
4202
+ function bc(s, e) {
4142
4203
  const t = s.split(".").map(Number), r = e.split(".").map(Number);
4143
4204
  return t[0] > r[0] || t[0] === r[0] && t[1] > r[1] || t[0] === r[0] && t[1] === r[1] && t[2] > r[2];
4144
4205
  }
4145
- function Sc(s) {
4206
+ function kc(s) {
4146
4207
  const e = {};
4147
4208
  for (const [t, r] of Object.entries(s)) {
4148
4209
  if (r.ok) {
@@ -4205,7 +4266,7 @@ function ro(s) {
4205
4266
  pframesSpillPath: _.join(s, "pframes")
4206
4267
  };
4207
4268
  }
4208
- const bc = {
4269
+ const Cc = {
4209
4270
  ...to,
4210
4271
  defaultTreeOptions: {
4211
4272
  pollingInterval: 350,
@@ -4220,22 +4281,22 @@ const bc = {
4220
4281
  projectRefreshInterval: 700,
4221
4282
  stagingRenderingRate: 5
4222
4283
  };
4223
- function kc(s) {
4284
+ function Rc(s) {
4224
4285
  return {
4225
4286
  ...ro(s),
4226
4287
  frontendDownloadPath: _.join(s, "frontend")
4227
4288
  };
4228
4289
  }
4229
- function Rc(s) {
4290
+ function Pc(s) {
4230
4291
  return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
4231
4292
  }
4232
- var st = { exports: {} }, Ft, Ss;
4293
+ var st = { exports: {} }, Tt, Ss;
4233
4294
  function mt() {
4234
- if (Ss) return Ft;
4295
+ if (Ss) return Tt;
4235
4296
  Ss = 1;
4236
4297
  const s = "2.0.0", e = 256, t = Number.MAX_SAFE_INTEGER || /* istanbul ignore next */
4237
4298
  9007199254740991, r = 16, n = e - 6;
4238
- return Ft = {
4299
+ return Tt = {
4239
4300
  MAX_LENGTH: e,
4240
4301
  MAX_SAFE_COMPONENT_LENGTH: r,
4241
4302
  MAX_SAFE_BUILD_LENGTH: n,
@@ -4252,12 +4313,12 @@ function mt() {
4252
4313
  SEMVER_SPEC_VERSION: s,
4253
4314
  FLAG_INCLUDE_PRERELEASE: 1,
4254
4315
  FLAG_LOOSE: 2
4255
- }, Ft;
4316
+ }, Tt;
4256
4317
  }
4257
- var Tt, bs;
4318
+ var It, bs;
4258
4319
  function vt() {
4259
- return bs || (bs = 1, Tt = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...e) => console.error("SEMVER", ...e) : () => {
4260
- }), Tt;
4320
+ return bs || (bs = 1, It = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...e) => console.error("SEMVER", ...e) : () => {
4321
+ }), It;
4261
4322
  }
4262
4323
  var ks;
4263
4324
  function ze() {
@@ -4285,31 +4346,31 @@ function ze() {
4285
4346
  h("NUMERICIDENTIFIER", "0|[1-9]\\d*"), h("NUMERICIDENTIFIERLOOSE", "\\d+"), h("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${p}*`), h("MAINVERSION", `(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})\\.(${c[u.NUMERICIDENTIFIER]})`), h("MAINVERSIONLOOSE", `(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})\\.(${c[u.NUMERICIDENTIFIERLOOSE]})`), h("PRERELEASEIDENTIFIER", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIER]})`), h("PRERELEASEIDENTIFIERLOOSE", `(?:${c[u.NONNUMERICIDENTIFIER]}|${c[u.NUMERICIDENTIFIERLOOSE]})`), h("PRERELEASE", `(?:-(${c[u.PRERELEASEIDENTIFIER]}(?:\\.${c[u.PRERELEASEIDENTIFIER]})*))`), h("PRERELEASELOOSE", `(?:-?(${c[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${c[u.PRERELEASEIDENTIFIERLOOSE]})*))`), h("BUILDIDENTIFIER", `${p}+`), h("BUILD", `(?:\\+(${c[u.BUILDIDENTIFIER]}(?:\\.${c[u.BUILDIDENTIFIER]})*))`), h("FULLPLAIN", `v?${c[u.MAINVERSION]}${c[u.PRERELEASE]}?${c[u.BUILD]}?`), h("FULL", `^${c[u.FULLPLAIN]}$`), h("LOOSEPLAIN", `[v=\\s]*${c[u.MAINVERSIONLOOSE]}${c[u.PRERELEASELOOSE]}?${c[u.BUILD]}?`), h("LOOSE", `^${c[u.LOOSEPLAIN]}$`), h("GTLT", "((?:<|>)?=?)"), h("XRANGEIDENTIFIERLOOSE", `${c[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), h("XRANGEIDENTIFIER", `${c[u.NUMERICIDENTIFIER]}|x|X|\\*`), h("XRANGEPLAIN", `[v=\\s]*(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:\\.(${c[u.XRANGEIDENTIFIER]})(?:${c[u.PRERELEASE]})?${c[u.BUILD]}?)?)?`), h("XRANGEPLAINLOOSE", `[v=\\s]*(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${c[u.XRANGEIDENTIFIERLOOSE]})(?:${c[u.PRERELEASELOOSE]})?${c[u.BUILD]}?)?)?`), h("XRANGE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAIN]}$`), h("XRANGELOOSE", `^${c[u.GTLT]}\\s*${c[u.XRANGEPLAINLOOSE]}$`), h("COERCEPLAIN", `(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?`), h("COERCE", `${c[u.COERCEPLAIN]}(?:$|[^\\d])`), h("COERCEFULL", c[u.COERCEPLAIN] + `(?:${c[u.PRERELEASE]})?(?:${c[u.BUILD]})?(?:$|[^\\d])`), h("COERCERTL", c[u.COERCE], !0), h("COERCERTLFULL", c[u.COERCEFULL], !0), h("LONETILDE", "(?:~>?)"), h("TILDETRIM", `(\\s*)${c[u.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", h("TILDE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAIN]}$`), h("TILDELOOSE", `^${c[u.LONETILDE]}${c[u.XRANGEPLAINLOOSE]}$`), h("LONECARET", "(?:\\^)"), h("CARETTRIM", `(\\s*)${c[u.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", h("CARET", `^${c[u.LONECARET]}${c[u.XRANGEPLAIN]}$`), h("CARETLOOSE", `^${c[u.LONECARET]}${c[u.XRANGEPLAINLOOSE]}$`), h("COMPARATORLOOSE", `^${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]})$|^$`), h("COMPARATOR", `^${c[u.GTLT]}\\s*(${c[u.FULLPLAIN]})$|^$`), h("COMPARATORTRIM", `(\\s*)${c[u.GTLT]}\\s*(${c[u.LOOSEPLAIN]}|${c[u.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", h("HYPHENRANGE", `^\\s*(${c[u.XRANGEPLAIN]})\\s+-\\s+(${c[u.XRANGEPLAIN]})\\s*$`), h("HYPHENRANGELOOSE", `^\\s*(${c[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${c[u.XRANGEPLAINLOOSE]})\\s*$`), h("STAR", "(<|>)?=?\\s*\\*"), h("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), h("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
4286
4347
  }(st, st.exports)), st.exports;
4287
4348
  }
4288
- var It, Rs;
4289
- function xr() {
4290
- if (Rs) return It;
4291
- Rs = 1;
4292
- const s = Object.freeze({ loose: !0 }), e = Object.freeze({});
4293
- return It = (r) => r ? typeof r != "object" ? s : r : e, It;
4294
- }
4295
4349
  var $t, Cs;
4296
- function so() {
4350
+ function Ur() {
4297
4351
  if (Cs) return $t;
4298
4352
  Cs = 1;
4353
+ const s = Object.freeze({ loose: !0 }), e = Object.freeze({});
4354
+ return $t = (r) => r ? typeof r != "object" ? s : r : e, $t;
4355
+ }
4356
+ var At, Rs;
4357
+ function so() {
4358
+ if (Rs) return At;
4359
+ Rs = 1;
4299
4360
  const s = /^[0-9]+$/, e = (r, n) => {
4300
4361
  const i = s.test(r), o = s.test(n);
4301
4362
  return i && o && (r = +r, n = +n), r === n ? 0 : i && !o ? -1 : o && !i ? 1 : r < n ? -1 : 1;
4302
4363
  };
4303
- return $t = {
4364
+ return At = {
4304
4365
  compareIdentifiers: e,
4305
4366
  rcompareIdentifiers: (r, n) => e(n, r)
4306
- }, $t;
4367
+ }, At;
4307
4368
  }
4308
- var At, Ps;
4309
- function Z() {
4310
- if (Ps) return At;
4369
+ var Lt, Ps;
4370
+ function ee() {
4371
+ if (Ps) return Lt;
4311
4372
  Ps = 1;
4312
- const s = vt(), { MAX_LENGTH: e, MAX_SAFE_INTEGER: t } = mt(), { safeRe: r, t: n } = ze(), i = xr(), { compareIdentifiers: o } = so();
4373
+ const s = vt(), { MAX_LENGTH: e, MAX_SAFE_INTEGER: t } = mt(), { safeRe: r, t: n } = ze(), i = Ur(), { compareIdentifiers: o } = so();
4313
4374
  class a {
4314
4375
  constructor(l, u) {
4315
4376
  if (u = i(u), l instanceof a) {
@@ -4464,14 +4525,14 @@ function Z() {
4464
4525
  return this.raw = this.format(), this.build.length && (this.raw += `+${this.build.join(".")}`), this;
4465
4526
  }
4466
4527
  }
4467
- return At = a, At;
4528
+ return Lt = a, Lt;
4468
4529
  }
4469
- var Lt, Es;
4470
- function Te() {
4471
- if (Es) return Lt;
4530
+ var Dt, Es;
4531
+ function Ie() {
4532
+ if (Es) return Dt;
4472
4533
  Es = 1;
4473
- const s = Z();
4474
- return Lt = (t, r, n = !1) => {
4534
+ const s = ee();
4535
+ return Dt = (t, r, n = !1) => {
4475
4536
  if (t instanceof s)
4476
4537
  return t;
4477
4538
  try {
@@ -4481,34 +4542,34 @@ function Te() {
4481
4542
  return null;
4482
4543
  throw i;
4483
4544
  }
4484
- }, Lt;
4545
+ }, Dt;
4485
4546
  }
4486
- var Dt, Os;
4487
- function Cc() {
4488
- if (Os) return Dt;
4547
+ var Nt, Os;
4548
+ function Ec() {
4549
+ if (Os) return Nt;
4489
4550
  Os = 1;
4490
- const s = Te();
4491
- return Dt = (t, r) => {
4551
+ const s = Ie();
4552
+ return Nt = (t, r) => {
4492
4553
  const n = s(t, r);
4493
4554
  return n ? n.version : null;
4494
- }, Dt;
4555
+ }, Nt;
4495
4556
  }
4496
- var Nt, Fs;
4497
- function Pc() {
4498
- if (Fs) return Nt;
4557
+ var Bt, Fs;
4558
+ function Oc() {
4559
+ if (Fs) return Bt;
4499
4560
  Fs = 1;
4500
- const s = Te();
4501
- return Nt = (t, r) => {
4561
+ const s = Ie();
4562
+ return Bt = (t, r) => {
4502
4563
  const n = s(t.trim().replace(/^[=v]+/, ""), r);
4503
4564
  return n ? n.version : null;
4504
- }, Nt;
4565
+ }, Bt;
4505
4566
  }
4506
- var Bt, Ts;
4507
- function Ec() {
4508
- if (Ts) return Bt;
4567
+ var jt, Ts;
4568
+ function Fc() {
4569
+ if (Ts) return jt;
4509
4570
  Ts = 1;
4510
- const s = Z();
4511
- return Bt = (t, r, n, i, o) => {
4571
+ const s = ee();
4572
+ return jt = (t, r, n, i, o) => {
4512
4573
  typeof n == "string" && (o = i, i = n, n = void 0);
4513
4574
  try {
4514
4575
  return new s(
@@ -4518,14 +4579,14 @@ function Ec() {
4518
4579
  } catch {
4519
4580
  return null;
4520
4581
  }
4521
- }, Bt;
4582
+ }, jt;
4522
4583
  }
4523
- var jt, Is;
4524
- function Oc() {
4525
- if (Is) return jt;
4584
+ var xt, Is;
4585
+ function Tc() {
4586
+ if (Is) return xt;
4526
4587
  Is = 1;
4527
- const s = Te();
4528
- return jt = (t, r) => {
4588
+ const s = Ie();
4589
+ return xt = (t, r) => {
4529
4590
  const n = s(t, null, !0), i = s(r, null, !0), o = n.compare(i);
4530
4591
  if (o === 0)
4531
4592
  return null;
@@ -4538,132 +4599,132 @@ function Oc() {
4538
4599
  }
4539
4600
  const p = u ? "pre" : "";
4540
4601
  return n.major !== i.major ? p + "major" : n.minor !== i.minor ? p + "minor" : n.patch !== i.patch ? p + "patch" : "prerelease";
4541
- }, jt;
4602
+ }, xt;
4542
4603
  }
4543
- var xt, $s;
4544
- function Fc() {
4545
- if ($s) return xt;
4604
+ var Ut, $s;
4605
+ function Ic() {
4606
+ if ($s) return Ut;
4546
4607
  $s = 1;
4547
- const s = Z();
4548
- return xt = (t, r) => new s(t, r).major, xt;
4608
+ const s = ee();
4609
+ return Ut = (t, r) => new s(t, r).major, Ut;
4549
4610
  }
4550
- var Ut, As;
4551
- function Tc() {
4552
- if (As) return Ut;
4611
+ var Vt, As;
4612
+ function $c() {
4613
+ if (As) return Vt;
4553
4614
  As = 1;
4554
- const s = Z();
4555
- return Ut = (t, r) => new s(t, r).minor, Ut;
4615
+ const s = ee();
4616
+ return Vt = (t, r) => new s(t, r).minor, Vt;
4556
4617
  }
4557
- var Vt, Ls;
4558
- function Ic() {
4559
- if (Ls) return Vt;
4618
+ var Jt, Ls;
4619
+ function Ac() {
4620
+ if (Ls) return Jt;
4560
4621
  Ls = 1;
4561
- const s = Z();
4562
- return Vt = (t, r) => new s(t, r).patch, Vt;
4622
+ const s = ee();
4623
+ return Jt = (t, r) => new s(t, r).patch, Jt;
4563
4624
  }
4564
4625
  var Mt, Ds;
4565
- function $c() {
4626
+ function Lc() {
4566
4627
  if (Ds) return Mt;
4567
4628
  Ds = 1;
4568
- const s = Te();
4629
+ const s = Ie();
4569
4630
  return Mt = (t, r) => {
4570
4631
  const n = s(t, r);
4571
4632
  return n && n.prerelease.length ? n.prerelease : null;
4572
4633
  }, Mt;
4573
4634
  }
4574
- var Jt, Ns;
4575
- function ie() {
4576
- if (Ns) return Jt;
4635
+ var Gt, Ns;
4636
+ function ae() {
4637
+ if (Ns) return Gt;
4577
4638
  Ns = 1;
4578
- const s = Z();
4579
- return Jt = (t, r, n) => new s(t, n).compare(new s(r, n)), Jt;
4639
+ const s = ee();
4640
+ return Gt = (t, r, n) => new s(t, n).compare(new s(r, n)), Gt;
4580
4641
  }
4581
- var Gt, Bs;
4582
- function Ac() {
4583
- if (Bs) return Gt;
4642
+ var qt, Bs;
4643
+ function Dc() {
4644
+ if (Bs) return qt;
4584
4645
  Bs = 1;
4585
- const s = ie();
4586
- return Gt = (t, r, n) => s(r, t, n), Gt;
4646
+ const s = ae();
4647
+ return qt = (t, r, n) => s(r, t, n), qt;
4587
4648
  }
4588
4649
  var _t, js;
4589
- function Lc() {
4650
+ function Nc() {
4590
4651
  if (js) return _t;
4591
4652
  js = 1;
4592
- const s = ie();
4653
+ const s = ae();
4593
4654
  return _t = (t, r) => s(t, r, !0), _t;
4594
4655
  }
4595
- var qt, xs;
4596
- function Ur() {
4597
- if (xs) return qt;
4656
+ var Kt, xs;
4657
+ function Vr() {
4658
+ if (xs) return Kt;
4598
4659
  xs = 1;
4599
- const s = Z();
4600
- return qt = (t, r, n) => {
4660
+ const s = ee();
4661
+ return Kt = (t, r, n) => {
4601
4662
  const i = new s(t, n), o = new s(r, n);
4602
4663
  return i.compare(o) || i.compareBuild(o);
4603
- }, qt;
4664
+ }, Kt;
4604
4665
  }
4605
- var Kt, Us;
4606
- function Dc() {
4607
- if (Us) return Kt;
4666
+ var Ht, Us;
4667
+ function Bc() {
4668
+ if (Us) return Ht;
4608
4669
  Us = 1;
4609
- const s = Ur();
4610
- return Kt = (t, r) => t.sort((n, i) => s(n, i, r)), Kt;
4670
+ const s = Vr();
4671
+ return Ht = (t, r) => t.sort((n, i) => s(n, i, r)), Ht;
4611
4672
  }
4612
- var Ht, Vs;
4613
- function Nc() {
4614
- if (Vs) return Ht;
4673
+ var Wt, Vs;
4674
+ function jc() {
4675
+ if (Vs) return Wt;
4615
4676
  Vs = 1;
4616
- const s = Ur();
4617
- return Ht = (t, r) => t.sort((n, i) => s(i, n, r)), Ht;
4618
- }
4619
- var Wt, Ms;
4620
- function yt() {
4621
- if (Ms) return Wt;
4622
- Ms = 1;
4623
- const s = ie();
4624
- return Wt = (t, r, n) => s(t, r, n) > 0, Wt;
4677
+ const s = Vr();
4678
+ return Wt = (t, r) => t.sort((n, i) => s(i, n, r)), Wt;
4625
4679
  }
4626
4680
  var zt, Js;
4627
- function Vr() {
4681
+ function yt() {
4628
4682
  if (Js) return zt;
4629
4683
  Js = 1;
4630
- const s = ie();
4631
- return zt = (t, r, n) => s(t, r, n) < 0, zt;
4684
+ const s = ae();
4685
+ return zt = (t, r, n) => s(t, r, n) > 0, zt;
4632
4686
  }
4633
- var Xt, Gs;
4687
+ var Xt, Ms;
4688
+ function Jr() {
4689
+ if (Ms) return Xt;
4690
+ Ms = 1;
4691
+ const s = ae();
4692
+ return Xt = (t, r, n) => s(t, r, n) < 0, Xt;
4693
+ }
4694
+ var Yt, Gs;
4634
4695
  function no() {
4635
- if (Gs) return Xt;
4696
+ if (Gs) return Yt;
4636
4697
  Gs = 1;
4637
- const s = ie();
4638
- return Xt = (t, r, n) => s(t, r, n) === 0, Xt;
4639
- }
4640
- var Yt, _s;
4641
- function oo() {
4642
- if (_s) return Yt;
4643
- _s = 1;
4644
- const s = ie();
4645
- return Yt = (t, r, n) => s(t, r, n) !== 0, Yt;
4698
+ const s = ae();
4699
+ return Yt = (t, r, n) => s(t, r, n) === 0, Yt;
4646
4700
  }
4647
4701
  var Qt, qs;
4648
- function Mr() {
4702
+ function oo() {
4649
4703
  if (qs) return Qt;
4650
4704
  qs = 1;
4651
- const s = ie();
4652
- return Qt = (t, r, n) => s(t, r, n) >= 0, Qt;
4705
+ const s = ae();
4706
+ return Qt = (t, r, n) => s(t, r, n) !== 0, Qt;
4653
4707
  }
4654
- var Zt, Ks;
4655
- function Jr() {
4656
- if (Ks) return Zt;
4708
+ var Zt, _s;
4709
+ function Mr() {
4710
+ if (_s) return Zt;
4711
+ _s = 1;
4712
+ const s = ae();
4713
+ return Zt = (t, r, n) => s(t, r, n) >= 0, Zt;
4714
+ }
4715
+ var er, Ks;
4716
+ function Gr() {
4717
+ if (Ks) return er;
4657
4718
  Ks = 1;
4658
- const s = ie();
4659
- return Zt = (t, r, n) => s(t, r, n) <= 0, Zt;
4719
+ const s = ae();
4720
+ return er = (t, r, n) => s(t, r, n) <= 0, er;
4660
4721
  }
4661
- var er, Hs;
4722
+ var tr, Hs;
4662
4723
  function io() {
4663
- if (Hs) return er;
4724
+ if (Hs) return tr;
4664
4725
  Hs = 1;
4665
- const s = no(), e = oo(), t = yt(), r = Mr(), n = Vr(), i = Jr();
4666
- return er = (a, c, l, u) => {
4726
+ const s = no(), e = oo(), t = yt(), r = Mr(), n = Jr(), i = Gr();
4727
+ return tr = (a, c, l, u) => {
4667
4728
  switch (c) {
4668
4729
  case "===":
4669
4730
  return typeof a == "object" && (a = a.version), typeof l == "object" && (l = l.version), a === l;
@@ -4686,14 +4747,14 @@ function io() {
4686
4747
  default:
4687
4748
  throw new TypeError(`Invalid operator: ${c}`);
4688
4749
  }
4689
- }, er;
4750
+ }, tr;
4690
4751
  }
4691
- var tr, Ws;
4692
- function Bc() {
4693
- if (Ws) return tr;
4752
+ var rr, Ws;
4753
+ function xc() {
4754
+ if (Ws) return rr;
4694
4755
  Ws = 1;
4695
- const s = Z(), e = Te(), { safeRe: t, t: r } = ze();
4696
- return tr = (i, o) => {
4756
+ const s = ee(), e = Ie(), { safeRe: t, t: r } = ze();
4757
+ return rr = (i, o) => {
4697
4758
  if (i instanceof s)
4698
4759
  return i;
4699
4760
  if (typeof i == "number" && (i = String(i)), typeof i != "string")
@@ -4713,11 +4774,11 @@ function Bc() {
4713
4774
  return null;
4714
4775
  const c = a[2], l = a[3] || "0", u = a[4] || "0", d = o.includePrerelease && a[5] ? `-${a[5]}` : "", p = o.includePrerelease && a[6] ? `+${a[6]}` : "";
4715
4776
  return e(`${c}.${l}.${u}${d}${p}`, o);
4716
- }, tr;
4777
+ }, rr;
4717
4778
  }
4718
- var rr, zs;
4719
- function jc() {
4720
- if (zs) return rr;
4779
+ var sr, zs;
4780
+ function Uc() {
4781
+ if (zs) return sr;
4721
4782
  zs = 1;
4722
4783
  class s {
4723
4784
  constructor() {
@@ -4742,11 +4803,11 @@ function jc() {
4742
4803
  return this;
4743
4804
  }
4744
4805
  }
4745
- return rr = s, rr;
4806
+ return sr = s, sr;
4746
4807
  }
4747
- var sr, Xs;
4748
- function ae() {
4749
- if (Xs) return sr;
4808
+ var nr, Xs;
4809
+ function ce() {
4810
+ if (Xs) return nr;
4750
4811
  Xs = 1;
4751
4812
  const s = /\s+/g;
4752
4813
  class e {
@@ -4759,12 +4820,12 @@ function ae() {
4759
4820
  throw new TypeError(`Invalid SemVer Range: ${this.raw}`);
4760
4821
  if (this.set.length > 1) {
4761
4822
  const w = this.set[0];
4762
- if (this.set = this.set.filter((R) => !h(R[0])), this.set.length === 0)
4823
+ if (this.set = this.set.filter((C) => !h(C[0])), this.set.length === 0)
4763
4824
  this.set = [w];
4764
4825
  else if (this.set.length > 1) {
4765
- for (const R of this.set)
4766
- if (R.length === 1 && y(R[0])) {
4767
- this.set = [R];
4826
+ for (const C of this.set)
4827
+ if (C.length === 1 && y(C[0])) {
4828
+ this.set = [C];
4768
4829
  break;
4769
4830
  }
4770
4831
  }
@@ -4790,12 +4851,12 @@ function ae() {
4790
4851
  return this.range;
4791
4852
  }
4792
4853
  parseRange(m) {
4793
- const w = ((this.options.includePrerelease && f) | (this.options.loose && v)) + ":" + m, R = r.get(w);
4794
- if (R)
4795
- return R;
4854
+ const w = ((this.options.includePrerelease && f) | (this.options.loose && v)) + ":" + m, C = r.get(w);
4855
+ if (C)
4856
+ return C;
4796
4857
  const k = this.options.loose, O = k ? c[l.HYPHENRANGELOOSE] : c[l.HYPHENRANGE];
4797
- m = m.replace(O, M(this.options.includePrerelease)), o("hyphen replace", m), m = m.replace(c[l.COMPARATORTRIM], u), o("comparator trim", m), m = m.replace(c[l.TILDETRIM], d), o("tilde trim", m), m = m.replace(c[l.CARETTRIM], p), o("caret trim", m);
4798
- let A = m.split(" ").map((V) => B(V, this.options)).join(" ").split(/\s+/).map((V) => z(V, this.options));
4858
+ m = m.replace(O, J(this.options.includePrerelease)), o("hyphen replace", m), m = m.replace(c[l.COMPARATORTRIM], u), o("comparator trim", m), m = m.replace(c[l.TILDETRIM], d), o("tilde trim", m), m = m.replace(c[l.CARETTRIM], p), o("caret trim", m);
4859
+ let A = m.split(" ").map((V) => B(V, this.options)).join(" ").split(/\s+/).map((V) => X(V, this.options));
4799
4860
  k && (A = A.filter((V) => (o("loose invalid filter", V, this.options), !!V.match(c[l.COMPARATORLOOSE])))), o("range list", A);
4800
4861
  const T = /* @__PURE__ */ new Map(), j = A.map((V) => new i(V, this.options));
4801
4862
  for (const V of j) {
@@ -4804,13 +4865,13 @@ function ae() {
4804
4865
  T.set(V.value, V);
4805
4866
  }
4806
4867
  T.size > 1 && T.has("") && T.delete("");
4807
- const H = [...T.values()];
4808
- return r.set(w, H), H;
4868
+ const W = [...T.values()];
4869
+ return r.set(w, W), W;
4809
4870
  }
4810
4871
  intersects(m, S) {
4811
4872
  if (!(m instanceof e))
4812
4873
  throw new TypeError("a Range is required");
4813
- return this.set.some((w) => E(w, S) && m.set.some((R) => E(R, S) && w.every((k) => R.every((O) => k.intersects(O, S)))));
4874
+ return this.set.some((w) => E(w, S) && m.set.some((C) => E(C, S) && w.every((k) => C.every((O) => k.intersects(O, S)))));
4814
4875
  }
4815
4876
  // if ANY of the sets match ALL of its comparators, then pass
4816
4877
  test(m) {
@@ -4823,13 +4884,13 @@ function ae() {
4823
4884
  return !1;
4824
4885
  }
4825
4886
  for (let S = 0; S < this.set.length; S++)
4826
- if (W(this.set[S], m, this.options))
4887
+ if (z(this.set[S], m, this.options))
4827
4888
  return !0;
4828
4889
  return !1;
4829
4890
  }
4830
4891
  }
4831
- sr = e;
4832
- const t = jc(), r = new t(), n = xr(), i = wt(), o = vt(), a = Z(), {
4892
+ nr = e;
4893
+ const t = Uc(), r = new t(), n = Ur(), i = wt(), o = vt(), a = ee(), {
4833
4894
  safeRe: c,
4834
4895
  t: l,
4835
4896
  comparatorTrimReplace: u,
@@ -4838,53 +4899,53 @@ function ae() {
4838
4899
  } = ze(), { FLAG_INCLUDE_PRERELEASE: f, FLAG_LOOSE: v } = mt(), h = (g) => g.value === "<0.0.0-0", y = (g) => g.value === "", E = (g, m) => {
4839
4900
  let S = !0;
4840
4901
  const w = g.slice();
4841
- let R = w.pop();
4902
+ let C = w.pop();
4842
4903
  for (; S && w.length; )
4843
- S = w.every((k) => R.intersects(k, m)), R = w.pop();
4904
+ S = w.every((k) => C.intersects(k, m)), C = w.pop();
4844
4905
  return S;
4845
- }, B = (g, m) => (o("comp", g, m), g = P(g, m), o("caret", g), g = x(g, m), o("tildes", g), g = C(g, m), o("xrange", g), g = ce(g, m), o("stars", g), g), F = (g) => !g || g.toLowerCase() === "x" || g === "*", x = (g, m) => g.trim().split(/\s+/).map((S) => U(S, m)).join(" "), U = (g, m) => {
4906
+ }, B = (g, m) => (o("comp", g, m), g = P(g, m), o("caret", g), g = x(g, m), o("tildes", g), g = R(g, m), o("xrange", g), g = le(g, m), o("stars", g), g), F = (g) => !g || g.toLowerCase() === "x" || g === "*", x = (g, m) => g.trim().split(/\s+/).map((S) => U(S, m)).join(" "), U = (g, m) => {
4846
4907
  const S = m.loose ? c[l.TILDELOOSE] : c[l.TILDE];
4847
- return g.replace(S, (w, R, k, O, A) => {
4848
- o("tilde", g, w, R, k, O, A);
4908
+ return g.replace(S, (w, C, k, O, A) => {
4909
+ o("tilde", g, w, C, k, O, A);
4849
4910
  let T;
4850
- return F(R) ? T = "" : F(k) ? T = `>=${R}.0.0 <${+R + 1}.0.0-0` : F(O) ? T = `>=${R}.${k}.0 <${R}.${+k + 1}.0-0` : A ? (o("replaceTilde pr", A), T = `>=${R}.${k}.${O}-${A} <${R}.${+k + 1}.0-0`) : T = `>=${R}.${k}.${O} <${R}.${+k + 1}.0-0`, o("tilde return", T), T;
4911
+ return F(C) ? T = "" : F(k) ? T = `>=${C}.0.0 <${+C + 1}.0.0-0` : F(O) ? T = `>=${C}.${k}.0 <${C}.${+k + 1}.0-0` : A ? (o("replaceTilde pr", A), T = `>=${C}.${k}.${O}-${A} <${C}.${+k + 1}.0-0`) : T = `>=${C}.${k}.${O} <${C}.${+k + 1}.0-0`, o("tilde return", T), T;
4851
4912
  });
4852
4913
  }, P = (g, m) => g.trim().split(/\s+/).map((S) => $(S, m)).join(" "), $ = (g, m) => {
4853
4914
  o("caret", g, m);
4854
4915
  const S = m.loose ? c[l.CARETLOOSE] : c[l.CARET], w = m.includePrerelease ? "-0" : "";
4855
- return g.replace(S, (R, k, O, A, T) => {
4856
- o("caret", g, R, k, O, A, T);
4916
+ return g.replace(S, (C, k, O, A, T) => {
4917
+ o("caret", g, C, k, O, A, T);
4857
4918
  let j;
4858
4919
  return F(k) ? j = "" : F(O) ? j = `>=${k}.0.0${w} <${+k + 1}.0.0-0` : F(A) ? k === "0" ? j = `>=${k}.${O}.0${w} <${k}.${+O + 1}.0-0` : j = `>=${k}.${O}.0${w} <${+k + 1}.0.0-0` : T ? (o("replaceCaret pr", T), k === "0" ? O === "0" ? j = `>=${k}.${O}.${A}-${T} <${k}.${O}.${+A + 1}-0` : j = `>=${k}.${O}.${A}-${T} <${k}.${+O + 1}.0-0` : j = `>=${k}.${O}.${A}-${T} <${+k + 1}.0.0-0`) : (o("no pr"), k === "0" ? O === "0" ? j = `>=${k}.${O}.${A}${w} <${k}.${O}.${+A + 1}-0` : j = `>=${k}.${O}.${A}${w} <${k}.${+O + 1}.0-0` : j = `>=${k}.${O}.${A} <${+k + 1}.0.0-0`), o("caret return", j), j;
4859
4920
  });
4860
- }, C = (g, m) => (o("replaceXRanges", g, m), g.split(/\s+/).map((S) => G(S, m)).join(" ")), G = (g, m) => {
4921
+ }, R = (g, m) => (o("replaceXRanges", g, m), g.split(/\s+/).map((S) => q(S, m)).join(" ")), q = (g, m) => {
4861
4922
  g = g.trim();
4862
4923
  const S = m.loose ? c[l.XRANGELOOSE] : c[l.XRANGE];
4863
- return g.replace(S, (w, R, k, O, A, T) => {
4864
- o("xRange", g, w, R, k, O, A, T);
4865
- const j = F(k), H = j || F(O), V = H || F(A), oe = V;
4866
- return R === "=" && oe && (R = ""), T = m.includePrerelease ? "-0" : "", j ? R === ">" || R === "<" ? w = "<0.0.0-0" : w = "*" : R && oe ? (H && (O = 0), A = 0, R === ">" ? (R = ">=", H ? (k = +k + 1, O = 0, A = 0) : (O = +O + 1, A = 0)) : R === "<=" && (R = "<", H ? k = +k + 1 : O = +O + 1), R === "<" && (T = "-0"), w = `${R + k}.${O}.${A}${T}`) : H ? w = `>=${k}.0.0${T} <${+k + 1}.0.0-0` : V && (w = `>=${k}.${O}.0${T} <${k}.${+O + 1}.0-0`), o("xRange return", w), w;
4924
+ return g.replace(S, (w, C, k, O, A, T) => {
4925
+ o("xRange", g, w, C, k, O, A, T);
4926
+ const j = F(k), W = j || F(O), V = W || F(A), ie = V;
4927
+ return C === "=" && ie && (C = ""), T = m.includePrerelease ? "-0" : "", j ? C === ">" || C === "<" ? w = "<0.0.0-0" : w = "*" : C && ie ? (W && (O = 0), A = 0, C === ">" ? (C = ">=", W ? (k = +k + 1, O = 0, A = 0) : (O = +O + 1, A = 0)) : C === "<=" && (C = "<", W ? k = +k + 1 : O = +O + 1), C === "<" && (T = "-0"), w = `${C + k}.${O}.${A}${T}`) : W ? w = `>=${k}.0.0${T} <${+k + 1}.0.0-0` : V && (w = `>=${k}.${O}.0${T} <${k}.${+O + 1}.0-0`), o("xRange return", w), w;
4867
4928
  });
4868
- }, ce = (g, m) => (o("replaceStars", g, m), g.trim().replace(c[l.STAR], "")), z = (g, m) => (o("replaceGTE0", g, m), g.trim().replace(c[m.includePrerelease ? l.GTE0PRE : l.GTE0], "")), M = (g) => (m, S, w, R, k, O, A, T, j, H, V, oe) => (F(w) ? S = "" : F(R) ? S = `>=${w}.0.0${g ? "-0" : ""}` : F(k) ? S = `>=${w}.${R}.0${g ? "-0" : ""}` : O ? S = `>=${S}` : S = `>=${S}${g ? "-0" : ""}`, F(j) ? T = "" : F(H) ? T = `<${+j + 1}.0.0-0` : F(V) ? T = `<${j}.${+H + 1}.0-0` : oe ? T = `<=${j}.${H}.${V}-${oe}` : g ? T = `<${j}.${H}.${+V + 1}-0` : T = `<=${T}`, `${S} ${T}`.trim()), W = (g, m, S) => {
4929
+ }, le = (g, m) => (o("replaceStars", g, m), g.trim().replace(c[l.STAR], "")), X = (g, m) => (o("replaceGTE0", g, m), g.trim().replace(c[m.includePrerelease ? l.GTE0PRE : l.GTE0], "")), J = (g) => (m, S, w, C, k, O, A, T, j, W, V, ie) => (F(w) ? S = "" : F(C) ? S = `>=${w}.0.0${g ? "-0" : ""}` : F(k) ? S = `>=${w}.${C}.0${g ? "-0" : ""}` : O ? S = `>=${S}` : S = `>=${S}${g ? "-0" : ""}`, F(j) ? T = "" : F(W) ? T = `<${+j + 1}.0.0-0` : F(V) ? T = `<${j}.${+W + 1}.0-0` : ie ? T = `<=${j}.${W}.${V}-${ie}` : g ? T = `<${j}.${W}.${+V + 1}-0` : T = `<=${T}`, `${S} ${T}`.trim()), z = (g, m, S) => {
4869
4930
  for (let w = 0; w < g.length; w++)
4870
4931
  if (!g[w].test(m))
4871
4932
  return !1;
4872
4933
  if (m.prerelease.length && !S.includePrerelease) {
4873
4934
  for (let w = 0; w < g.length; w++)
4874
4935
  if (o(g[w].semver), g[w].semver !== i.ANY && g[w].semver.prerelease.length > 0) {
4875
- const R = g[w].semver;
4876
- if (R.major === m.major && R.minor === m.minor && R.patch === m.patch)
4936
+ const C = g[w].semver;
4937
+ if (C.major === m.major && C.minor === m.minor && C.patch === m.patch)
4877
4938
  return !0;
4878
4939
  }
4879
4940
  return !1;
4880
4941
  }
4881
4942
  return !0;
4882
4943
  };
4883
- return sr;
4944
+ return nr;
4884
4945
  }
4885
- var nr, Ys;
4946
+ var or, Ys;
4886
4947
  function wt() {
4887
- if (Ys) return nr;
4948
+ if (Ys) return or;
4888
4949
  Ys = 1;
4889
4950
  const s = Symbol("SemVer ANY");
4890
4951
  class e {
@@ -4925,37 +4986,37 @@ function wt() {
4925
4986
  return this.operator === "" ? this.value === "" ? !0 : new c(u.value, d).test(this.value) : u.operator === "" ? u.value === "" ? !0 : new c(this.value, d).test(u.semver) : (d = t(d), d.includePrerelease && (this.value === "<0.0.0-0" || u.value === "<0.0.0-0") || !d.includePrerelease && (this.value.startsWith("<0.0.0") || u.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && u.operator.startsWith(">") || this.operator.startsWith("<") && u.operator.startsWith("<") || this.semver.version === u.semver.version && this.operator.includes("=") && u.operator.includes("=") || i(this.semver, "<", u.semver, d) && this.operator.startsWith(">") && u.operator.startsWith("<") || i(this.semver, ">", u.semver, d) && this.operator.startsWith("<") && u.operator.startsWith(">")));
4926
4987
  }
4927
4988
  }
4928
- nr = e;
4929
- const t = xr(), { safeRe: r, t: n } = ze(), i = io(), o = vt(), a = Z(), c = ae();
4930
- return nr;
4989
+ or = e;
4990
+ const t = Ur(), { safeRe: r, t: n } = ze(), i = io(), o = vt(), a = ee(), c = ce();
4991
+ return or;
4931
4992
  }
4932
- var or, Qs;
4993
+ var ir, Qs;
4933
4994
  function St() {
4934
- if (Qs) return or;
4995
+ if (Qs) return ir;
4935
4996
  Qs = 1;
4936
- const s = ae();
4937
- return or = (t, r, n) => {
4997
+ const s = ce();
4998
+ return ir = (t, r, n) => {
4938
4999
  try {
4939
5000
  r = new s(r, n);
4940
5001
  } catch {
4941
5002
  return !1;
4942
5003
  }
4943
5004
  return r.test(t);
4944
- }, or;
5005
+ }, ir;
4945
5006
  }
4946
- var ir, Zs;
4947
- function xc() {
4948
- if (Zs) return ir;
5007
+ var ar, Zs;
5008
+ function Vc() {
5009
+ if (Zs) return ar;
4949
5010
  Zs = 1;
4950
- const s = ae();
4951
- return ir = (t, r) => new s(t, r).set.map((n) => n.map((i) => i.value).join(" ").trim().split(" ")), ir;
5011
+ const s = ce();
5012
+ return ar = (t, r) => new s(t, r).set.map((n) => n.map((i) => i.value).join(" ").trim().split(" ")), ar;
4952
5013
  }
4953
- var ar, en;
4954
- function Uc() {
4955
- if (en) return ar;
5014
+ var cr, en;
5015
+ function Jc() {
5016
+ if (en) return cr;
4956
5017
  en = 1;
4957
- const s = Z(), e = ae();
4958
- return ar = (r, n, i) => {
5018
+ const s = ee(), e = ce();
5019
+ return cr = (r, n, i) => {
4959
5020
  let o = null, a = null, c = null;
4960
5021
  try {
4961
5022
  c = new e(n, i);
@@ -4965,14 +5026,14 @@ function Uc() {
4965
5026
  return r.forEach((l) => {
4966
5027
  c.test(l) && (!o || a.compare(l) === -1) && (o = l, a = new s(o, i));
4967
5028
  }), o;
4968
- }, ar;
5029
+ }, cr;
4969
5030
  }
4970
- var cr, tn;
4971
- function Vc() {
4972
- if (tn) return cr;
5031
+ var lr, tn;
5032
+ function Mc() {
5033
+ if (tn) return lr;
4973
5034
  tn = 1;
4974
- const s = Z(), e = ae();
4975
- return cr = (r, n, i) => {
5035
+ const s = ee(), e = ce();
5036
+ return lr = (r, n, i) => {
4976
5037
  let o = null, a = null, c = null;
4977
5038
  try {
4978
5039
  c = new e(n, i);
@@ -4982,14 +5043,14 @@ function Vc() {
4982
5043
  return r.forEach((l) => {
4983
5044
  c.test(l) && (!o || a.compare(l) === 1) && (o = l, a = new s(o, i));
4984
5045
  }), o;
4985
- }, cr;
5046
+ }, lr;
4986
5047
  }
4987
- var lr, rn;
4988
- function Mc() {
4989
- if (rn) return lr;
5048
+ var ur, rn;
5049
+ function Gc() {
5050
+ if (rn) return ur;
4990
5051
  rn = 1;
4991
- const s = Z(), e = ae(), t = yt();
4992
- return lr = (n, i) => {
5052
+ const s = ee(), e = ce(), t = yt();
5053
+ return ur = (n, i) => {
4993
5054
  n = new e(n, i);
4994
5055
  let o = new s("0.0.0");
4995
5056
  if (n.test(o) || (o = new s("0.0.0-0"), n.test(o)))
@@ -5018,27 +5079,27 @@ function Mc() {
5018
5079
  }), l && (!o || t(o, l)) && (o = l);
5019
5080
  }
5020
5081
  return o && n.test(o) ? o : null;
5021
- }, lr;
5082
+ }, ur;
5022
5083
  }
5023
- var ur, sn;
5024
- function Jc() {
5025
- if (sn) return ur;
5084
+ var dr, sn;
5085
+ function qc() {
5086
+ if (sn) return dr;
5026
5087
  sn = 1;
5027
- const s = ae();
5028
- return ur = (t, r) => {
5088
+ const s = ce();
5089
+ return dr = (t, r) => {
5029
5090
  try {
5030
5091
  return new s(t, r).range || "*";
5031
5092
  } catch {
5032
5093
  return null;
5033
5094
  }
5034
- }, ur;
5095
+ }, dr;
5035
5096
  }
5036
- var dr, nn;
5037
- function Gr() {
5038
- if (nn) return dr;
5097
+ var pr, nn;
5098
+ function qr() {
5099
+ if (nn) return pr;
5039
5100
  nn = 1;
5040
- const s = Z(), e = wt(), { ANY: t } = e, r = ae(), n = St(), i = yt(), o = Vr(), a = Jr(), c = Mr();
5041
- return dr = (u, d, p, f) => {
5101
+ const s = ee(), e = wt(), { ANY: t } = e, r = ce(), n = St(), i = yt(), o = Jr(), a = Gr(), c = Mr();
5102
+ return pr = (u, d, p, f) => {
5042
5103
  u = new s(u, f), d = new r(d, f);
5043
5104
  let v, h, y, E, B;
5044
5105
  switch (p) {
@@ -5064,35 +5125,35 @@ function Gr() {
5064
5125
  return !1;
5065
5126
  }
5066
5127
  return !0;
5067
- }, dr;
5128
+ }, pr;
5068
5129
  }
5069
- var pr, on;
5070
- function Gc() {
5071
- if (on) return pr;
5130
+ var fr, on;
5131
+ function _c() {
5132
+ if (on) return fr;
5072
5133
  on = 1;
5073
- const s = Gr();
5074
- return pr = (t, r, n) => s(t, r, ">", n), pr;
5134
+ const s = qr();
5135
+ return fr = (t, r, n) => s(t, r, ">", n), fr;
5075
5136
  }
5076
- var fr, an;
5077
- function _c() {
5078
- if (an) return fr;
5137
+ var hr, an;
5138
+ function Kc() {
5139
+ if (an) return hr;
5079
5140
  an = 1;
5080
- const s = Gr();
5081
- return fr = (t, r, n) => s(t, r, "<", n), fr;
5141
+ const s = qr();
5142
+ return hr = (t, r, n) => s(t, r, "<", n), hr;
5082
5143
  }
5083
- var hr, cn;
5084
- function qc() {
5085
- if (cn) return hr;
5144
+ var gr, cn;
5145
+ function Hc() {
5146
+ if (cn) return gr;
5086
5147
  cn = 1;
5087
- const s = ae();
5088
- return hr = (t, r, n) => (t = new s(t, n), r = new s(r, n), t.intersects(r, n)), hr;
5148
+ const s = ce();
5149
+ return gr = (t, r, n) => (t = new s(t, n), r = new s(r, n), t.intersects(r, n)), gr;
5089
5150
  }
5090
- var gr, ln;
5091
- function Kc() {
5092
- if (ln) return gr;
5151
+ var mr, ln;
5152
+ function Wc() {
5153
+ if (ln) return mr;
5093
5154
  ln = 1;
5094
- const s = St(), e = ie();
5095
- return gr = (t, r, n) => {
5155
+ const s = St(), e = ae();
5156
+ return mr = (t, r, n) => {
5096
5157
  const i = [];
5097
5158
  let o = null, a = null;
5098
5159
  const c = t.sort((p, f) => e(p, f, n));
@@ -5104,13 +5165,13 @@ function Kc() {
5104
5165
  p === f ? l.push(p) : !f && p === c[0] ? l.push("*") : f ? p === c[0] ? l.push(`<=${f}`) : l.push(`${p} - ${f}`) : l.push(`>=${p}`);
5105
5166
  const u = l.join(" || "), d = typeof r.raw == "string" ? r.raw : String(r);
5106
5167
  return u.length < d.length ? u : r;
5107
- }, gr;
5168
+ }, mr;
5108
5169
  }
5109
- var mr, un;
5110
- function Hc() {
5111
- if (un) return mr;
5170
+ var vr, un;
5171
+ function zc() {
5172
+ if (un) return vr;
5112
5173
  un = 1;
5113
- const s = ae(), e = wt(), { ANY: t } = e, r = St(), n = ie(), i = (d, p, f = {}) => {
5174
+ const s = ce(), e = wt(), { ANY: t } = e, r = St(), n = ae(), i = (d, p, f = {}) => {
5114
5175
  if (d === p)
5115
5176
  return !0;
5116
5177
  d = new s(d, f), p = new s(p, f);
@@ -5140,8 +5201,8 @@ function Hc() {
5140
5201
  }
5141
5202
  const v = /* @__PURE__ */ new Set();
5142
5203
  let h, y;
5143
- for (const C of d)
5144
- C.operator === ">" || C.operator === ">=" ? h = l(h, C, f) : C.operator === "<" || C.operator === "<=" ? y = u(y, C, f) : v.add(C.semver);
5204
+ for (const R of d)
5205
+ R.operator === ">" || R.operator === ">=" ? h = l(h, R, f) : R.operator === "<" || R.operator === "<=" ? y = u(y, R, f) : v.add(R.semver);
5145
5206
  if (v.size > 1)
5146
5207
  return null;
5147
5208
  let E;
@@ -5151,32 +5212,32 @@ function Hc() {
5151
5212
  if (E === 0 && (h.operator !== ">=" || y.operator !== "<="))
5152
5213
  return null;
5153
5214
  }
5154
- for (const C of v) {
5155
- if (h && !r(C, String(h), f) || y && !r(C, String(y), f))
5215
+ for (const R of v) {
5216
+ if (h && !r(R, String(h), f) || y && !r(R, String(y), f))
5156
5217
  return null;
5157
- for (const G of p)
5158
- if (!r(C, String(G), f))
5218
+ for (const q of p)
5219
+ if (!r(R, String(q), f))
5159
5220
  return !1;
5160
5221
  return !0;
5161
5222
  }
5162
5223
  let B, F, x, U, P = y && !f.includePrerelease && y.semver.prerelease.length ? y.semver : !1, $ = h && !f.includePrerelease && h.semver.prerelease.length ? h.semver : !1;
5163
5224
  P && P.prerelease.length === 1 && y.operator === "<" && P.prerelease[0] === 0 && (P = !1);
5164
- for (const C of p) {
5165
- if (U = U || C.operator === ">" || C.operator === ">=", x = x || C.operator === "<" || C.operator === "<=", h) {
5166
- if ($ && C.semver.prerelease && C.semver.prerelease.length && C.semver.major === $.major && C.semver.minor === $.minor && C.semver.patch === $.patch && ($ = !1), C.operator === ">" || C.operator === ">=") {
5167
- if (B = l(h, C, f), B === C && B !== h)
5225
+ for (const R of p) {
5226
+ if (U = U || R.operator === ">" || R.operator === ">=", x = x || R.operator === "<" || R.operator === "<=", h) {
5227
+ if ($ && R.semver.prerelease && R.semver.prerelease.length && R.semver.major === $.major && R.semver.minor === $.minor && R.semver.patch === $.patch && ($ = !1), R.operator === ">" || R.operator === ">=") {
5228
+ if (B = l(h, R, f), B === R && B !== h)
5168
5229
  return !1;
5169
- } else if (h.operator === ">=" && !r(h.semver, String(C), f))
5230
+ } else if (h.operator === ">=" && !r(h.semver, String(R), f))
5170
5231
  return !1;
5171
5232
  }
5172
5233
  if (y) {
5173
- if (P && C.semver.prerelease && C.semver.prerelease.length && C.semver.major === P.major && C.semver.minor === P.minor && C.semver.patch === P.patch && (P = !1), C.operator === "<" || C.operator === "<=") {
5174
- if (F = u(y, C, f), F === C && F !== y)
5234
+ if (P && R.semver.prerelease && R.semver.prerelease.length && R.semver.major === P.major && R.semver.minor === P.minor && R.semver.patch === P.patch && (P = !1), R.operator === "<" || R.operator === "<=") {
5235
+ if (F = u(y, R, f), F === R && F !== y)
5175
5236
  return !1;
5176
- } else if (y.operator === "<=" && !r(y.semver, String(C), f))
5237
+ } else if (y.operator === "<=" && !r(y.semver, String(R), f))
5177
5238
  return !1;
5178
5239
  }
5179
- if (!C.operator && (y || h) && E !== 0)
5240
+ if (!R.operator && (y || h) && E !== 0)
5180
5241
  return !1;
5181
5242
  }
5182
5243
  return !(h && x && !y && E !== 0 || y && U && !h && E !== 0 || $ || P);
@@ -5191,14 +5252,14 @@ function Hc() {
5191
5252
  const v = n(d.semver, p.semver, f);
5192
5253
  return v < 0 ? d : v > 0 || p.operator === "<" && d.operator === "<=" ? p : d;
5193
5254
  };
5194
- return mr = i, mr;
5255
+ return vr = i, vr;
5195
5256
  }
5196
- var vr, dn;
5197
- function Wc() {
5198
- if (dn) return vr;
5257
+ var yr, dn;
5258
+ function Xc() {
5259
+ if (dn) return yr;
5199
5260
  dn = 1;
5200
- const s = ze(), e = mt(), t = Z(), r = so(), n = Te(), i = Cc(), o = Pc(), a = Ec(), c = Oc(), l = Fc(), u = Tc(), d = Ic(), p = $c(), f = ie(), v = Ac(), h = Lc(), y = Ur(), E = Dc(), B = Nc(), F = yt(), x = Vr(), U = no(), P = oo(), $ = Mr(), C = Jr(), G = io(), ce = Bc(), z = wt(), M = ae(), W = St(), g = xc(), m = Uc(), S = Vc(), w = Mc(), R = Jc(), k = Gr(), O = Gc(), A = _c(), T = qc(), j = Kc(), H = Hc();
5201
- return vr = {
5261
+ const s = ze(), e = mt(), t = ee(), r = so(), n = Ie(), i = Ec(), o = Oc(), a = Fc(), c = Tc(), l = Ic(), u = $c(), d = Ac(), p = Lc(), f = ae(), v = Dc(), h = Nc(), y = Vr(), E = Bc(), B = jc(), F = yt(), x = Jr(), U = no(), P = oo(), $ = Mr(), R = Gr(), q = io(), le = xc(), X = wt(), J = ce(), z = St(), g = Vc(), m = Jc(), S = Mc(), w = Gc(), C = qc(), k = qr(), O = _c(), A = Kc(), T = Hc(), j = Wc(), W = zc();
5262
+ return yr = {
5202
5263
  parse: n,
5203
5264
  valid: i,
5204
5265
  clean: o,
@@ -5219,23 +5280,23 @@ function Wc() {
5219
5280
  eq: U,
5220
5281
  neq: P,
5221
5282
  gte: $,
5222
- lte: C,
5223
- cmp: G,
5224
- coerce: ce,
5225
- Comparator: z,
5226
- Range: M,
5227
- satisfies: W,
5283
+ lte: R,
5284
+ cmp: q,
5285
+ coerce: le,
5286
+ Comparator: X,
5287
+ Range: J,
5288
+ satisfies: z,
5228
5289
  toComparators: g,
5229
5290
  maxSatisfying: m,
5230
5291
  minSatisfying: S,
5231
5292
  minVersion: w,
5232
- validRange: R,
5293
+ validRange: C,
5233
5294
  outside: k,
5234
5295
  gtr: O,
5235
5296
  ltr: A,
5236
5297
  intersects: T,
5237
5298
  simplifyRange: j,
5238
- subset: H,
5299
+ subset: W,
5239
5300
  SemVer: t,
5240
5301
  re: s.re,
5241
5302
  src: s.src,
@@ -5244,15 +5305,15 @@ function Wc() {
5244
5305
  RELEASE_TYPES: e.RELEASE_TYPES,
5245
5306
  compareIdentifiers: r.compareIdentifiers,
5246
5307
  rcompareIdentifiers: r.rcompareIdentifiers
5247
- }, vr;
5308
+ }, yr;
5248
5309
  }
5249
- var zc = Wc();
5250
- const Xc = /* @__PURE__ */ Rc(zc), Yc = {
5310
+ var Yc = Xc();
5311
+ const Qc = /* @__PURE__ */ Pc(Yc), Zc = {
5251
5312
  minDelay: 1500
5252
- }, Qc = "__no_updates__";
5253
- class Zc extends Ho {
5313
+ }, el = "__no_updates__";
5314
+ class tl extends Ho {
5254
5315
  constructor(t, r, n = {}) {
5255
- super({ ...n, ...Yc }, r);
5316
+ super({ ...n, ...Zc }, r);
5256
5317
  b(this, "http");
5257
5318
  b(this, "preferredUpdateChannel");
5258
5319
  this.registryProvider = t, this.http = n.http, this.preferredUpdateChannel = n.preferredUpdateChannel;
@@ -5264,9 +5325,9 @@ class Zc extends Ho {
5264
5325
  case "dev-v2":
5265
5326
  return `dev_2_${t.currentSpec.folder}_${t.currentSpec.mtime}`;
5266
5327
  case "from-registry-v2":
5267
- return `from_registry_v2_${te(t)}`;
5328
+ return `from_registry_v2_${re(t)}`;
5268
5329
  default:
5269
- return Qc;
5330
+ return el;
5270
5331
  }
5271
5332
  }
5272
5333
  async readValue(t) {
@@ -5283,9 +5344,9 @@ class Zc extends Ho {
5283
5344
  }
5284
5345
  case "dev-v2":
5285
5346
  try {
5286
- const o = await Sr(i.folder, this.logger);
5347
+ const o = await br(i.folder, this.logger);
5287
5348
  if (o === void 0) return { suggestions: [] };
5288
- const a = await Ar(o);
5349
+ const a = await Lr(o);
5289
5350
  return a === i.mtime ? { suggestions: [] } : { mainSuggestion: { ...i, mtime: a }, suggestions: [] };
5290
5351
  } catch (o) {
5291
5352
  return this.logger.warn(o), { suggestions: [] };
@@ -5298,13 +5359,13 @@ class Zc extends Ho {
5298
5359
  let l = this.preferredUpdateChannel;
5299
5360
  if (l === void 0)
5300
5361
  if (i.channel === void 0)
5301
- if (await c.getLatestOverview(i.id, Ne)) l = Ne;
5362
+ if (await c.getLatestOverview(i.id, Be)) l = Be;
5302
5363
  else {
5303
- if (await c.getLatestOverview(i.id, Be) === void 0)
5364
+ if (await c.getLatestOverview(i.id, je) === void 0)
5304
5365
  return this.logger.error(
5305
5366
  `No "any" channel record for ${bo(i.id)}`
5306
5367
  ), { suggestions: [] };
5307
- l = Be;
5368
+ l = je;
5308
5369
  }
5309
5370
  else l = i.channel;
5310
5371
  const u = await c.getUpdateSuggestions(i.id, l);
@@ -5327,7 +5388,7 @@ class Zc extends Ho {
5327
5388
  update: { ...i, id: { ...i.id, version: h } }
5328
5389
  }));
5329
5390
  if (d === void 0) return { suggestions: p };
5330
- if (a !== void 0 && Xc.lte(d, a))
5391
+ if (a !== void 0 && Qc.lte(d, a))
5331
5392
  return { suggestions: p };
5332
5393
  const f = {
5333
5394
  ...i,
@@ -5351,7 +5412,7 @@ class Zc extends Ho {
5351
5412
  }
5352
5413
  }
5353
5414
  resultsEqual(t, r) {
5354
- return te(t) === te(r);
5415
+ return re(t) === re(r);
5355
5416
  }
5356
5417
  }
5357
5418
  class pn {
@@ -5391,11 +5452,11 @@ class pn {
5391
5452
  return (t = this.resources.get(e)) == null ? void 0 : t.resource;
5392
5453
  }
5393
5454
  }
5394
- function Ue(s) {
5455
+ function Ve(s) {
5395
5456
  return String(s.id);
5396
5457
  }
5397
- const el = ["Int", "Long", "Float", "Double", "String", "Bytes"];
5398
- function De(s) {
5458
+ const rl = ["Int", "Long", "Float", "Double", "String", "Bytes"];
5459
+ function Ne(s) {
5399
5460
  const e = [], t = [];
5400
5461
  for (const r of s)
5401
5462
  r.type === "bySingleColumn" ? (e.push(r), t.push({
@@ -5413,16 +5474,16 @@ function De(s) {
5413
5474
  function fn(s) {
5414
5475
  return "partitionFilters" in s ? {
5415
5476
  ...s,
5416
- partitionFilters: De(s.partitionFilters),
5417
- filters: De(s.filters)
5477
+ partitionFilters: Ne(s.partitionFilters),
5478
+ filters: Ne(s.filters)
5418
5479
  } : {
5419
5480
  ...s,
5420
- partitionFilters: De(s.filters.filter((e) => e.column.type === "axis")),
5421
- filters: De(s.filters.filter((e) => e.column.type === "column"))
5481
+ partitionFilters: Ne(s.filters.filter((e) => e.column.type === "axis")),
5482
+ filters: Ne(s.filters.filter((e) => e.column.type === "column"))
5422
5483
  };
5423
5484
  }
5424
- const ke = (s, e) => typeof e == "bigint" ? e.toString() : e;
5425
- class tl {
5485
+ const Ce = (s, e) => typeof e == "bigint" ? e.toString() : e;
5486
+ class sl {
5426
5487
  constructor(e, t) {
5427
5488
  b(this, "perFrame", /* @__PURE__ */ new Map());
5428
5489
  b(this, "global");
@@ -5433,13 +5494,13 @@ class tl {
5433
5494
  var a, c;
5434
5495
  i === "evict" && ((a = this.perFrame.get(r.resource.pFrame)) == null || a.delete(n)), ((c = this.perFrame.get(r.resource.pFrame)) == null ? void 0 : c.size) === 0 && this.perFrame.delete(r.resource.pFrame);
5435
5496
  const o = this.disposeListeners.get(n);
5436
- this.disposeListeners.delete(n), r.resource.disposeSignal.removeEventListener("abort", o), r.unref(), Q().logPFrameRequests && this.logger.info(`calculateTableData cache - removed PTable ${n}`);
5497
+ this.disposeListeners.delete(n), r.resource.disposeSignal.removeEventListener("abort", o), r.unref(), Z().logPFrameRequests && this.logger.info(`calculateTableData cache - removed PTable ${n}`);
5437
5498
  }
5438
5499
  });
5439
5500
  }
5440
5501
  cache(e, t) {
5441
5502
  const r = e.key;
5442
- Q().logPFrameRequests && this.logger.info(`calculateTableData cache - added PTable ${r} with size ${t}`), this.global.set(r, e, { size: t });
5503
+ Z().logPFrameRequests && this.logger.info(`calculateTableData cache - added PTable ${r} with size ${t}`), this.global.set(r, e, { size: t });
5443
5504
  let n = this.perFrame.get(e.resource.pFrame);
5444
5505
  n || (n = new lt({
5445
5506
  max: this.ops.pFrameCacheMaxCount,
@@ -5454,7 +5515,7 @@ class tl {
5454
5515
  this.disposeListeners.set(r, i), e.resource.disposeSignal.addEventListener("abort", i);
5455
5516
  }
5456
5517
  }
5457
- class rl {
5518
+ class nl {
5458
5519
  constructor(e, t, r, n) {
5459
5520
  b(this, "pFramePromise");
5460
5521
  b(this, "abortController", new AbortController());
@@ -5479,28 +5540,33 @@ class rl {
5479
5540
  const i = (a, c) => this.logger[a](c);
5480
5541
  for (const a of n)
5481
5542
  for (const c of ia(a.data))
5482
- this.blobIdToResource.set(Ue(c), c);
5543
+ this.blobIdToResource.set(Ve(c), c);
5483
5544
  const o = [
5484
5545
  ...new Map(n.map((a) => ({
5485
5546
  ...a,
5486
- data: aa(a.data, Ue)
5547
+ data: aa(a.data, Ve)
5487
5548
  })).map(
5488
- (a) => [te(a), a]
5549
+ (a) => [re(a), a]
5489
5550
  )).values()
5490
5551
  ];
5491
5552
  try {
5492
5553
  const a = new $n(this.spillPath, i);
5493
5554
  a.setDataSource(this);
5494
5555
  const c = [];
5495
- for (const l of o)
5496
- a.addColumnSpec(l.id, l.spec), c.push(a.setColumnData(l.id, l.data, { signal: this.disposeSignal }));
5556
+ for (const l of o) {
5557
+ if (a.addColumnSpec(l.id, l.spec), l.data.type === "ParquetPartitioned")
5558
+ throw new M(
5559
+ `ParquetPartitioned data is not supported yet, column: ${JSON.stringify(l)}, data: ${JSON.stringify(l.data)}`
5560
+ );
5561
+ c.push(a.setColumnData(l.id, l.data, { signal: this.disposeSignal }));
5562
+ }
5497
5563
  this.pFramePromise = Promise.all(c).then(() => a).catch((l) => {
5498
- throw this.dispose(), a.dispose(), new fe(
5564
+ throw this.dispose(), a.dispose(), new M(
5499
5565
  `PFrame creation failed asynchronously, columns: ${JSON.stringify(o)}, error: ${it(l)}`
5500
5566
  );
5501
5567
  });
5502
5568
  } catch (a) {
5503
- throw new fe(
5569
+ throw new M(
5504
5570
  `PFrame creation failed synchronously, columns: ${JSON.stringify(o)}, error: ${it(a)}`
5505
5571
  );
5506
5572
  }
@@ -5509,7 +5575,7 @@ class rl {
5509
5575
  let t = this.blobHandleComputables.get(e);
5510
5576
  if (t !== void 0) return t;
5511
5577
  const r = this.blobIdToResource.get(e);
5512
- if (r === void 0) throw new fe(`Blob with id ${e} not found.`);
5578
+ if (r === void 0) throw new M(`Blob with id ${e} not found.`);
5513
5579
  return t = this.blobDriver.getDownloadedBlob(r).withPreCalculatedValueTree(), this.blobHandleComputables.set(e, t), t;
5514
5580
  }
5515
5581
  get disposeSignal() {
@@ -5524,7 +5590,7 @@ class rl {
5524
5590
  });
5525
5591
  }
5526
5592
  }
5527
- class yr {
5593
+ class wr {
5528
5594
  constructor(e, t, r, n) {
5529
5595
  b(this, "abortController", new AbortController());
5530
5596
  b(this, "combinedDisposeSignal");
@@ -5547,8 +5613,8 @@ class _r {
5547
5613
  b(this, "frameConcurrencyLimiter");
5548
5614
  b(this, "tableConcurrencyLimiter");
5549
5615
  this.blobDriver = e, this.logger = t, this.spillPath = r;
5550
- const i = new Zr(n.pFrameConcurrency);
5551
- this.frameConcurrencyLimiter = i, this.tableConcurrencyLimiter = new Zr(n.pTableConcurrency), this.pTableCache = new tl(this.logger, n), this.pFrames = new class extends pn {
5616
+ const i = new es(n.pFrameConcurrency);
5617
+ this.frameConcurrencyLimiter = i, this.tableConcurrencyLimiter = new es(n.pTableConcurrency), this.pTableCache = new sl(this.logger, n), this.pFrames = new class extends pn {
5552
5618
  constructor(o, a, c) {
5553
5619
  super(), this.blobDriver = o, this.logger = a, this.spillPath = c;
5554
5620
  }
@@ -5557,19 +5623,19 @@ class _r {
5557
5623
  }
5558
5624
  getByKey(o) {
5559
5625
  const a = super.tryGetByKey(o);
5560
- if (!a) throw new fe(`PFrame not found, handle = ${o}`);
5626
+ if (!a) throw new M(`PFrame not found, handle = ${o}`);
5561
5627
  return a;
5562
5628
  }
5563
5629
  createNewResource(o) {
5564
- return Q().logPFrameRequests && t.info(
5565
- `PFrame creation (pFrameHandle = ${this.calculateParamsKey(o)}): ${JSON.stringify(o, ke)}`
5566
- ), new rl(this.blobDriver, this.logger, this.spillPath, o);
5630
+ return Z().logPFrameRequests && t.info(
5631
+ `PFrame creation (pFrameHandle = ${this.calculateParamsKey(o)}): ${JSON.stringify(o, Ce)}`
5632
+ ), new nl(this.blobDriver, this.logger, this.spillPath, o);
5567
5633
  }
5568
5634
  calculateParamsKey(o) {
5569
5635
  try {
5570
- return nl(o);
5636
+ return il(o);
5571
5637
  } catch (a) {
5572
- throw vo(a) ? a : new fe(`PFrame handle calculation failed, request: ${JSON.stringify(o, ke)}, error: ${it(a)}`);
5638
+ throw vo(a) ? a : new M(`PFrame handle calculation failed, request: ${JSON.stringify(o, Ce)}, error: ${it(a)}`);
5573
5639
  }
5574
5640
  }
5575
5641
  }(this.blobDriver, this.logger, this.spillPath), this.pTables = new class extends pn {
@@ -5578,12 +5644,12 @@ class _r {
5578
5644
  }
5579
5645
  getByKey(o) {
5580
5646
  const a = super.tryGetByKey(o);
5581
- if (!a) throw new fe(`PTable not found, handle = ${o}`);
5647
+ if (!a) throw new M(`PTable not found, handle = ${o}`);
5582
5648
  return a;
5583
5649
  }
5584
5650
  createNewResource(o) {
5585
- Q().logPFrameRequests && t.info(
5586
- `PTable creation (pTableHandle = ${this.calculateParamsKey(o)}): ${JSON.stringify(o, ke)}`
5651
+ Z().logPFrameRequests && t.info(
5652
+ `PTable creation (pTableHandle = ${this.calculateParamsKey(o)}): ${JSON.stringify(o, Ce)}`
5587
5653
  );
5588
5654
  const a = o.pFrameHandle, { pFramePromise: c, disposeSignal: l } = this.pFrames.getByKey(a);
5589
5655
  if (o.def.sorting.length > 0) {
@@ -5594,7 +5660,7 @@ class _r {
5594
5660
  sorting: []
5595
5661
  }
5596
5662
  }), { resource: { pTablePromise: p } } = d, f = p.then((v) => v.sort(o.def.sorting));
5597
- return new yr(a, l, f, d);
5663
+ return new wr(a, l, f, d);
5598
5664
  }
5599
5665
  if (o.def.filters.length > 0) {
5600
5666
  const d = this.acquire({
@@ -5604,19 +5670,19 @@ class _r {
5604
5670
  filters: []
5605
5671
  }
5606
5672
  }), { resource: { pTablePromise: p } } = d, f = p.then((v) => v.filter(o.def.filters));
5607
- return new yr(a, l, f, d);
5673
+ return new wr(a, l, f, d);
5608
5674
  }
5609
5675
  const u = c.then((d) => d.createTable({
5610
5676
  src: ot(o.def.src),
5611
5677
  filters: o.def.partitionFilters
5612
5678
  }));
5613
- return new yr(a, l, u);
5679
+ return new wr(a, l, u);
5614
5680
  }
5615
5681
  calculateParamsKey(o) {
5616
5682
  try {
5617
- return sl(o);
5683
+ return ol(o);
5618
5684
  } catch (a) {
5619
- throw new fe(`PTable handle calculation failed, request: ${JSON.stringify(o)}, error: ${it(a)}`);
5685
+ throw new M(`PTable handle calculation failed, request: ${JSON.stringify(o)}, error: ${it(a)}`);
5620
5686
  }
5621
5687
  }
5622
5688
  }(this.pFrames);
@@ -5632,20 +5698,20 @@ class _r {
5632
5698
  // Internal / Config API Methods
5633
5699
  //
5634
5700
  createPFrame(e, t) {
5635
- const r = e.filter((i) => el.find((o) => o === i.spec.valueType)).map(
5701
+ const r = e.filter((i) => rl.find((o) => o === i.spec.valueType)).map(
5636
5702
  (i) => ve(
5637
5703
  i,
5638
- (o) => Ko(o) ? fa(o) : mn(o) ? vn(o, (a) => a.resourceInfo) : ha(i.spec, o)
5704
+ (o) => Ko(o) ? ga(o) : mn(o) ? vn(o, (a) => a.resourceInfo) : ma(i.spec, o)
5639
5705
  )
5640
5706
  ), n = this.pFrames.acquire(r);
5641
5707
  return t.addOnDestroy(n.unref), n.key;
5642
5708
  }
5643
5709
  createPTable(e, t) {
5644
- const r = fn(e), n = this.createPFrame(yo(r.src), t), i = wr(r, (a) => a.id), o = this.pTables.acquire({ def: i, pFrameHandle: n });
5645
- return Q().logPFrameRequests && this.logger.info(
5710
+ const r = fn(e), n = this.createPFrame(yo(r.src), t), i = Sr(r, (a) => a.id), o = this.pTables.acquire({ def: i, pFrameHandle: n });
5711
+ return Z().logPFrameRequests && this.logger.info(
5646
5712
  `Create PTable call (pFrameHandle = ${n}; pTableHandle = ${JSON.stringify(o)}): ${JSON.stringify(
5647
- wr(r, (a) => a.spec),
5648
- ke
5713
+ Sr(r, (a) => a.spec),
5714
+ Ce
5649
5715
  )}`
5650
5716
  ), t.addOnDestroy(o.unref), o.key;
5651
5717
  }
@@ -5658,7 +5724,7 @@ class _r {
5658
5724
  compatibleWith: t.compatibleWith.length !== 0 ? [{
5659
5725
  axesSpec: [
5660
5726
  ...new Map(t.compatibleWith.map(
5661
- (a) => [te(a), a]
5727
+ (a) => [re(a), a]
5662
5728
  )).values()
5663
5729
  ],
5664
5730
  qualifications: []
@@ -5680,8 +5746,8 @@ class _r {
5680
5746
  return await (await t).listColumns();
5681
5747
  }
5682
5748
  async calculateTableData(e, t, r, n) {
5683
- Q().logPFrameRequests && this.logger.info(
5684
- `Call calculateTableData, handle = ${e}, request = ${JSON.stringify(t, ke)}`
5749
+ Z().logPFrameRequests && this.logger.info(
5750
+ `Call calculateTableData, handle = ${e}, request = ${JSON.stringify(t, Ce)}`
5685
5751
  );
5686
5752
  const i = this.pTables.acquire({
5687
5753
  pFrameHandle: e,
@@ -5706,13 +5772,13 @@ class _r {
5706
5772
  });
5707
5773
  }
5708
5774
  async getUniqueValues(e, t, r) {
5709
- Q().logPFrameRequests && this.logger.info(
5710
- `Call getUniqueValues, handle = ${e}, request = ${JSON.stringify(t, ke)}`
5775
+ Z().logPFrameRequests && this.logger.info(
5776
+ `Call getUniqueValues, handle = ${e}, request = ${JSON.stringify(t, Ce)}`
5711
5777
  );
5712
5778
  const { pFramePromise: n, disposeSignal: i } = this.pFrames.getByKey(e), o = await n, a = AbortSignal.any([r, i].filter((c) => !!c));
5713
5779
  return await this.frameConcurrencyLimiter.run(async () => await o.getUniqueValues({
5714
5780
  ...t,
5715
- filters: De(t.filters)
5781
+ filters: Ne(t.filters)
5716
5782
  }, {
5717
5783
  signal: a
5718
5784
  }));
@@ -5776,14 +5842,14 @@ function ot(s) {
5776
5842
  secondary: s.secondary.map((e) => ot(e))
5777
5843
  };
5778
5844
  default:
5779
- Y(s);
5845
+ Q(s);
5780
5846
  }
5781
5847
  }
5782
- function sl(s) {
5783
- const e = Fe("sha256");
5784
- return e.update(te(s)), e.digest().toString("hex");
5848
+ function ol(s) {
5849
+ const e = Te("sha256");
5850
+ return e.update(re(s)), e.digest().toString("hex");
5785
5851
  }
5786
- function nl(s) {
5852
+ function il(s) {
5787
5853
  const e = [...s].map(
5788
5854
  (r) => ve(r, (n) => {
5789
5855
  let i;
@@ -5805,7 +5871,7 @@ function nl(s) {
5805
5871
  keyLength: n.partitionKeyLength,
5806
5872
  payload: Object.entries(n.parts).map(([a, c]) => ({
5807
5873
  key: a,
5808
- value: Ue(c)
5874
+ value: Ve(c)
5809
5875
  }))
5810
5876
  };
5811
5877
  break;
@@ -5815,26 +5881,41 @@ function nl(s) {
5815
5881
  keyLength: n.partitionKeyLength,
5816
5882
  payload: Object.entries(n.parts).map(([a, c]) => ({
5817
5883
  key: a,
5818
- value: [Ue(c.index), Ue(c.values)]
5884
+ value: [Ve(c.index), Ve(c.values)]
5819
5885
  }))
5820
5886
  };
5821
5887
  break;
5888
+ case "ParquetPartitioned":
5889
+ throw new M(`unsupported resource type: ${JSON.stringify(o)}`);
5890
+ // TODO: remove
5891
+ // result = {
5892
+ // type: r.type,
5893
+ // keyLength: r.partitionKeyLength,
5894
+ // payload: Object.entries(r.parts).map(([part, info]) => ({
5895
+ // key: part,
5896
+ // value: info.dataDigest || [
5897
+ // blobKey(info.data),
5898
+ // JSON.stringify({ axes: info.axes, column: info.column }),
5899
+ // ] as const,
5900
+ // })),
5901
+ // };
5902
+ // break;
5822
5903
  default:
5823
- throw new fe(`unsupported resource type: ${JSON.stringify(o)}`);
5904
+ throw new M(`unsupported resource type: ${JSON.stringify(o)}`);
5824
5905
  }
5825
5906
  return i.payload.sort((a, c) => a.key.localeCompare(c.key)), i;
5826
5907
  })
5827
5908
  );
5828
5909
  e.sort((r, n) => r.id.localeCompare(n.id));
5829
- const t = Fe("sha256");
5830
- return t.update(te(e)), t.digest().toString("hex");
5910
+ const t = Te("sha256");
5911
+ return t.update(re(e)), t.digest().toString("hex");
5831
5912
  }
5832
- async function ol(s, e, t, r) {
5913
+ async function al(s, e, t, r) {
5833
5914
  const n = {
5834
5915
  ...to,
5835
5916
  ...ro(e),
5836
5917
  ...r
5837
- }, i = new Tr(n.localSecret), o = En(n.logger, s, n.localProjections), a = ri(s, n.logger), c = On(s, n.logger), l = si(s, n.logger), u = await ni.init(
5918
+ }, i = new Ir(n.localSecret), o = En(n.logger, s, n.localProjections), a = ri(s, n.logger), c = On(s, n.logger), l = si(s, n.logger), u = await ni.init(
5838
5919
  n.logger,
5839
5920
  o,
5840
5921
  a,
@@ -5884,7 +5965,7 @@ async function ol(s, e, t, r) {
5884
5965
  frontendDriver: E
5885
5966
  };
5886
5967
  }
5887
- class il {
5968
+ class cl {
5888
5969
  constructor(e) {
5889
5970
  b(this, "enrichmentTargetsCache", new lt({
5890
5971
  max: 256,
@@ -5896,7 +5977,7 @@ class il {
5896
5977
  const t = e.blockConfig();
5897
5978
  if (t.enrichmentTargets === void 0) return;
5898
5979
  const r = e.args();
5899
- return rc(this.quickJs, t.enrichmentTargets, ft(t), r);
5980
+ return nc(this.quickJs, t.enrichmentTargets, ft(t), r);
5900
5981
  }
5901
5982
  getEnrichmentTargets(e, t, r) {
5902
5983
  const n = { blockConfig: e, args: t };
@@ -5932,13 +6013,13 @@ class ao {
5932
6013
  async createProject(e, t = ge()) {
5933
6014
  const r = await this.pl.withWriteTx("MLCreateProject", async (n) => {
5934
6015
  const i = await oa(n, e);
5935
- return n.createField(J(this.projectListResourceId, t), "Dynamic", i), await n.commit(), await Vo(i);
6016
+ return n.createField(G(this.projectListResourceId, t), "Dynamic", i), await n.commit(), await Vo(i);
5936
6017
  });
5937
6018
  return await this.projectListTree.refreshState(), r;
5938
6019
  }
5939
6020
  /** Updates project metadata */
5940
6021
  async setProjectMeta(e, t, r) {
5941
- await se(this.env.projectHelper, this.pl, e, r, (n) => {
6022
+ await ne(this.env.projectHelper, this.pl, e, r, (n) => {
5942
6023
  n.setMeta(t);
5943
6024
  }), await this.projectListTree.refreshState();
5944
6025
  }
@@ -5946,12 +6027,12 @@ class ao {
5946
6027
  * destruction of all attached objects, like files, analysis results etc. */
5947
6028
  async deleteProject(e) {
5948
6029
  await this.pl.withWriteTx("MLRemoveProject", async (t) => {
5949
- t.removeField(J(this.projectListResourceId, e)), await t.commit();
6030
+ t.removeField(G(this.projectListResourceId, e)), await t.commit();
5950
6031
  }), await this.projectListTree.refreshState();
5951
6032
  }
5952
6033
  async projectIdToResourceId(e) {
5953
6034
  return await this.pl.withReadTx("Project id to resource id", async (t) => {
5954
- const r = (await t.getField(J(this.projectListResourceId, e))).value;
6035
+ const r = (await t.getField(G(this.projectListResourceId, e))).value;
5955
6036
  if (Me(r)) throw new Error("Unexpected project list structure.");
5956
6037
  return r;
5957
6038
  });
@@ -5963,7 +6044,7 @@ class ao {
5963
6044
  async openProject(e) {
5964
6045
  const t = await this.ensureProjectRid(e);
5965
6046
  if (this.openedProjectsByRid.has(t)) throw new Error(`Project ${t} already opened`);
5966
- this.openedProjectsByRid.set(t, await jr.init(this.env, t)), this.openedProjectsList.setValue([...this.openedProjectsByRid.keys()]);
6047
+ this.openedProjectsByRid.set(t, await xr.init(this.env, t)), this.openedProjectsList.setValue([...this.openedProjectsByRid.keys()]);
5967
6048
  }
5968
6049
  /** Closes the project, and deallocate all corresponding resources. */
5969
6050
  async closeProject(e) {
@@ -5991,7 +6072,7 @@ class ao {
5991
6072
  /** Generates sufficiently random string to be used as local secret for the
5992
6073
  * middle layer */
5993
6074
  static generateLocalSecret() {
5994
- return Tr.generateSecret();
6075
+ return Ir.generateSecret();
5995
6076
  }
5996
6077
  /** Returns a block event dispatcher, which can be used to listen to block events. */
5997
6078
  get blockEventDispatcher() {
@@ -6000,13 +6081,13 @@ class ao {
6000
6081
  /** Initialize middle layer */
6001
6082
  static async init(e, t, r) {
6002
6083
  const n = {
6003
- ...bc,
6004
- ...kc(t),
6084
+ ...Cc,
6085
+ ...Rc(t),
6005
6086
  ...r
6006
6087
  };
6007
- n.defaultTreeOptions.logStat = Q().logTreeStats, n.debugOps.dumpInitialTreeState = Q().dumpInitialTreeState;
6088
+ n.defaultTreeOptions.logStat = Z().logTreeStats, n.debugOps.dumpInitialTreeState = Z().dumpInitialTreeState;
6008
6089
  const i = await e.withWriteTx("MLInitialization", async (y) => {
6009
- const E = J(y.clientRoot, Ii);
6090
+ const E = G(y.clientRoot, Ii);
6010
6091
  y.createField(E, "Dynamic");
6011
6092
  const B = await y.getField(E);
6012
6093
  if (Me(B.value)) {
@@ -6014,7 +6095,7 @@ class ao {
6014
6095
  return y.lock(F), y.setField(E, F), await y.commit(), await F.globalId;
6015
6096
  } else
6016
6097
  return B.value;
6017
- }), o = n.logger, a = await ol(e, t, n.frontendDownloadPath, n), c = new ko(e.httpDispatcher), l = new bi(c), u = new Qi(
6098
+ }), o = n.logger, a = await al(e, t, n.frontendDownloadPath, n), c = new ko(e.httpDispatcher), l = new bi(c), u = new Qi(
6018
6099
  l,
6019
6100
  a.signer,
6020
6101
  c
@@ -6031,14 +6112,14 @@ class ao {
6031
6112
  bpPreparer: u,
6032
6113
  frontendDownloadDriver: a.frontendDriver,
6033
6114
  driverKit: a,
6034
- blockUpdateWatcher: new Zc(l, o, {
6115
+ blockUpdateWatcher: new tl(l, o, {
6035
6116
  minDelay: n.devBlockUpdateRecheckInterval,
6036
6117
  http: c,
6037
6118
  preferredUpdateChannel: n.preferredUpdateChannel
6038
6119
  }),
6039
6120
  runtimeCapabilities: p,
6040
6121
  quickJs: d,
6041
- projectHelper: new il(d)
6122
+ projectHelper: new cl(d)
6042
6123
  }, v = new Wo([]), h = await Ai(e, i, v, f);
6043
6124
  return new ao(
6044
6125
  f,
@@ -6052,48 +6133,48 @@ class ao {
6052
6133
  );
6053
6134
  }
6054
6135
  }
6055
- async function al(s, e) {
6056
- return await Ie(s.pingCheckDurationMs, s.maxPingsPerSecond, async () => {
6136
+ async function ll(s, e) {
6137
+ return await $e(s.pingCheckDurationMs, s.maxPingsPerSecond, async () => {
6057
6138
  const r = await new kn(e).ping();
6058
6139
  return JSON.stringify(r).slice(0, s.bodyLimit) + "...";
6059
6140
  });
6060
6141
  }
6061
- async function cl(s, e) {
6062
- return await Ie(
6142
+ async function ul(s, e) {
6143
+ return await $e(
6063
6144
  s.blockRegistryDurationMs,
6064
6145
  s.maxRegistryChecksPerSecond,
6065
6146
  async () => await Xe(new URL(s.blockOverviewPath, s.blockRegistryUrl), s, e)
6066
6147
  );
6067
6148
  }
6068
- async function ll(s, e) {
6069
- return await Ie(
6149
+ async function dl(s, e) {
6150
+ return await $e(
6070
6151
  s.blockRegistryDurationMs,
6071
6152
  s.maxRegistryChecksPerSecond,
6072
6153
  async () => await Xe(new URL(s.blockOverviewPath, s.blockGARegistryUrl), s, e)
6073
6154
  );
6074
6155
  }
6075
- async function ul(s, e) {
6076
- return await Ie(
6156
+ async function pl(s, e) {
6157
+ return await $e(
6077
6158
  s.blockRegistryDurationMs,
6078
6159
  s.maxRegistryChecksPerSecond,
6079
6160
  async () => await Xe(new URL(s.blockUiPath, s.blockRegistryUrl), s, e)
6080
6161
  );
6081
6162
  }
6082
- async function dl(s, e) {
6083
- return await Ie(
6163
+ async function fl(s, e) {
6164
+ return await $e(
6084
6165
  s.blockRegistryDurationMs,
6085
6166
  s.maxRegistryChecksPerSecond,
6086
6167
  async () => await Xe(new URL(s.blockUiPath, s.blockGARegistryUrl), s, e)
6087
6168
  );
6088
6169
  }
6089
- async function pl(s, e) {
6090
- return await Ie(
6170
+ async function hl(s, e) {
6171
+ return await $e(
6091
6172
  s.autoUpdateCdnDurationMs,
6092
6173
  s.maxAutoUpdateCdnChecksPerSecond,
6093
6174
  async () => await Xe(s.autoUpdateCdnUrl, s, e)
6094
6175
  );
6095
6176
  }
6096
- async function Ie(s, e, t) {
6177
+ async function $e(s, e, t) {
6097
6178
  const r = Date.now(), n = [];
6098
6179
  for (; hn(r) < s; ) {
6099
6180
  const i = Date.now();
@@ -6114,7 +6195,7 @@ async function Ie(s, e, t) {
6114
6195
  return n;
6115
6196
  }
6116
6197
  async function Xe(s, e, t) {
6117
- const { body: r, statusCode: n } = await Fr(s, {
6198
+ const { body: r, statusCode: n } = await Tr(s, {
6118
6199
  dispatcher: t,
6119
6200
  headersTimeout: e.httpTimeoutMs,
6120
6201
  bodyTimeout: e.httpTimeoutMs
@@ -6128,7 +6209,7 @@ function hn(s) {
6128
6209
  return Date.now() - s;
6129
6210
  }
6130
6211
  function Re(s) {
6131
- const e = s.filter((o) => o.response.ok), t = s.length - e.length, { mean: r, median: n } = fl(s), i = `
6212
+ const e = s.filter((o) => o.response.ok), t = s.length - e.length, { mean: r, median: n } = gl(s), i = `
6132
6213
  total: ${s.length};
6133
6214
  successes: ${e.length};
6134
6215
  errors: ${t};
@@ -6140,7 +6221,7 @@ function Re(s) {
6140
6221
  details: i
6141
6222
  };
6142
6223
  }
6143
- function fl(s) {
6224
+ function gl(s) {
6144
6225
  const e = s.map((n) => n.elapsedMs).sort(), t = e.reduce((n, i) => n + i) / e.length;
6145
6226
  let r;
6146
6227
  if (e.length > 0) {
@@ -6149,19 +6230,19 @@ function fl(s) {
6149
6230
  }
6150
6231
  return { mean: t, median: r };
6151
6232
  }
6152
- async function hl(s, e, t) {
6233
+ async function ml(s, e, t) {
6153
6234
  try {
6154
- const r = await gl(s, e, t);
6235
+ const r = await vl(s, e, t);
6155
6236
  return r !== `Hello, ${t}` ? { status: "failed", message: `Template uploading failed: expected: ${t}, got: ${r}` } : { status: "ok", message: `Template uploading succeeded: ${r}` };
6156
6237
  } catch (r) {
6157
6238
  return { status: "failed", message: `Template uploading failed: error occurred: ${r}` };
6158
6239
  }
6159
6240
  }
6160
- async function gl(s, e, t) {
6241
+ async function vl(s, e, t) {
6161
6242
  var n;
6162
- const r = await $e(
6243
+ const r = await Ae(
6163
6244
  e,
6164
- we["check_network.upload_template"],
6245
+ Se["check_network.upload_template"],
6165
6246
  !0,
6166
6247
  (i) => ({
6167
6248
  name: i.createValue(D.JsonObject, JSON.stringify(t))
@@ -6171,22 +6252,22 @@ async function gl(s, e, t) {
6171
6252
  try {
6172
6253
  return JSON.parse(N((n = (await me(e, r.greeting)).data) == null ? void 0 : n.toString()));
6173
6254
  } finally {
6174
- r != null && await Ae(e, Object.values(r));
6255
+ r != null && await Le(e, Object.values(r));
6175
6256
  }
6176
6257
  }
6177
- async function ml(s, e, t, r, n, i) {
6258
+ async function yl(s, e, t, r, n, i) {
6178
6259
  try {
6179
- const o = await vl(s, e, t, r, n, i);
6260
+ const o = await wl(s, e, t, r, n, i);
6180
6261
  return o.type.name !== "Blob" ? { status: "failed", message: `File uploading failed: ${o.type.name}` } : { status: "ok", message: `File uploading succeeded: ${o.type.name}` };
6181
6262
  } catch (o) {
6182
6263
  return { status: "failed", message: `File uploading failed: error occurred: ${o}` };
6183
6264
  }
6184
6265
  }
6185
- async function vl(s, e, t, r, n, i) {
6266
+ async function wl(s, e, t, r, n, i) {
6186
6267
  var c;
6187
- const o = await t.getLocalFileHandle(i), a = await $e(
6268
+ const o = await t.getLocalFileHandle(i), a = await Ae(
6188
6269
  n,
6189
- we["check_network.upload_blob"],
6270
+ Se["check_network.upload_blob"],
6190
6271
  !0,
6191
6272
  (l) => ({
6192
6273
  file: l.createValue(D.JsonObject, JSON.stringify(o))
@@ -6213,22 +6294,22 @@ async function vl(s, e, t, r, n, i) {
6213
6294
  }
6214
6295
  return await me(n, a.file);
6215
6296
  } finally {
6216
- await Ae(n, Object.values(a));
6297
+ await Le(n, Object.values(a));
6217
6298
  }
6218
6299
  }
6219
- async function yl(s, e, t, r, n, i, o) {
6300
+ async function Sl(s, e, t, r, n, i, o) {
6220
6301
  try {
6221
- const a = await wl(s, e, t, r, n, i);
6302
+ const a = await bl(s, e, t, r, n, i);
6222
6303
  return a !== o ? { status: "failed", message: `File downloading failed: expected: ${o}, got: ${a}` } : { status: "ok", message: `File downloading succeeded: ${a}` };
6223
6304
  } catch (a) {
6224
6305
  return { status: "failed", message: `File downloading failed: error occurred: ${a}` };
6225
6306
  }
6226
6307
  }
6227
- async function wl(s, e, t, r, n, i) {
6308
+ async function bl(s, e, t, r, n, i) {
6228
6309
  var c;
6229
- const o = await t.getLocalFileHandle(i), a = await $e(
6310
+ const o = await t.getLocalFileHandle(i), a = await Ae(
6230
6311
  e,
6231
- we["check_network.download_blob"],
6312
+ Se["check_network.download_blob"],
6232
6313
  !0,
6233
6314
  (l) => ({ file: l.createValue(D.JsonObject, JSON.stringify(o)) }),
6234
6315
  ["progress", "file"]
@@ -6256,23 +6337,23 @@ async function wl(s, e, t, r, n, i) {
6256
6337
  async (d) => await fi(d)
6257
6338
  );
6258
6339
  } finally {
6259
- await Ae(e, Object.values(a));
6340
+ await Le(e, Object.values(a));
6260
6341
  }
6261
6342
  }
6262
- async function Sl(s) {
6343
+ async function kl(s) {
6263
6344
  try {
6264
- const e = await bl(s);
6345
+ const e = await Cl(s);
6265
6346
  return e !== `Hello from go binary
6266
6347
  ` ? { status: "failed", message: `Software check failed: got: ${e}` } : { status: "ok", message: `Software check succeeded: ${e}` };
6267
6348
  } catch (e) {
6268
6349
  return { status: "failed", message: `Software check failed: error occurred: ${e}` };
6269
6350
  }
6270
6351
  }
6271
- async function bl(s) {
6352
+ async function Cl(s) {
6272
6353
  var t;
6273
- const e = await $e(
6354
+ const e = await Ae(
6274
6355
  s,
6275
- we["check_network.run_hello_world"],
6356
+ Se["check_network.run_hello_world"],
6276
6357
  !0,
6277
6358
  (r) => ({}),
6278
6359
  ["greeting"]
@@ -6280,23 +6361,23 @@ async function bl(s) {
6280
6361
  try {
6281
6362
  return N((t = (await me(s, e.greeting)).data) == null ? void 0 : t.toString());
6282
6363
  } finally {
6283
- await Ae(s, Object.values(e));
6364
+ await Le(s, Object.values(e));
6284
6365
  }
6285
6366
  }
6286
- async function kl(s, e) {
6367
+ async function Rl(s, e) {
6287
6368
  try {
6288
- const t = await Rl(s, e);
6369
+ const t = await Pl(s, e);
6289
6370
  return t !== `Hello, ${e}!
6290
6371
  ` ? { status: "failed", message: `Python software check failed: got: ${t}` } : { status: "ok", message: `Python software check succeeded: ${t}` };
6291
6372
  } catch (t) {
6292
6373
  return { status: "failed", message: `Python software check failed: error occurred: ${t}` };
6293
6374
  }
6294
6375
  }
6295
- async function Rl(s, e) {
6376
+ async function Pl(s, e) {
6296
6377
  var r;
6297
- const t = await $e(
6378
+ const t = await Ae(
6298
6379
  s,
6299
- we["check_network.run_hello_world_py"],
6380
+ Se["check_network.run_hello_world_py"],
6300
6381
  !0,
6301
6382
  (n) => ({ name: n.createValue(D.JsonObject, JSON.stringify(e)) }),
6302
6383
  ["greeting"]
@@ -6304,15 +6385,15 @@ async function Rl(s, e) {
6304
6385
  try {
6305
6386
  return N((r = (await me(s, t.greeting)).data) == null ? void 0 : r.toString());
6306
6387
  } finally {
6307
- await Ae(s, Object.values(t));
6388
+ await Le(s, Object.values(t));
6308
6389
  }
6309
6390
  }
6310
- async function Cl(s, e, t, r) {
6391
+ async function El(s, e, t, r) {
6311
6392
  var n, i;
6312
6393
  try {
6313
6394
  const o = await t.getStorageList(), a = {};
6314
6395
  for (const c of o) {
6315
- const l = await Pl(t, c, r.nFilesToCheck, r.minFileSize, r.maxFileSize, r.minLsRequests);
6396
+ const l = await Ol(t, c, r.nFilesToCheck, r.minFileSize, r.maxFileSize, r.minLsRequests);
6316
6397
  if (l.file === void 0) {
6317
6398
  a[c.name] = {
6318
6399
  status: "warn",
@@ -6321,9 +6402,9 @@ async function Cl(s, e, t, r) {
6321
6402
  continue;
6322
6403
  }
6323
6404
  s.info(`Downloading file ${JSON.stringify(l)} from storage ${c.name}`);
6324
- const u = await $e(
6405
+ const u = await Ae(
6325
6406
  e,
6326
- we["check_network.create_workdir_from_storage"],
6407
+ Se["check_network.create_workdir_from_storage"],
6327
6408
  !0,
6328
6409
  (d) => ({ file: d.createValue(D.JsonObject, JSON.stringify(l.file.handle)) }),
6329
6410
  ["workdirTypeName"]
@@ -6338,7 +6419,7 @@ async function Cl(s, e, t, r) {
6338
6419
  message: `Workdir creation failed: ${d}, size of file: ${(i = l.file) == null ? void 0 : i.size}, checked ${l.nCheckedFiles} files, did ${l.nLsRequests} ls requests`
6339
6420
  };
6340
6421
  } finally {
6341
- await Ae(e, Object.values(u));
6422
+ await Le(e, Object.values(u));
6342
6423
  }
6343
6424
  }
6344
6425
  return a;
@@ -6346,7 +6427,7 @@ async function Cl(s, e, t, r) {
6346
6427
  return { unknown: { status: "failed", message: `Download from every storage failed: error occurred: ${o}` } };
6347
6428
  }
6348
6429
  }
6349
- async function Pl(s, e, t, r, n, i) {
6430
+ async function Ol(s, e, t, r, n, i) {
6350
6431
  const o = co(s, e, "", 0);
6351
6432
  let a, c = 0, l = 0;
6352
6433
  for await (const { file: u, nLsRequests: d } of o) {
@@ -6371,17 +6452,17 @@ async function* co(s, e, t, r) {
6371
6452
  for await (const o of co(s, e, i.fullPath, r))
6372
6453
  r = Math.max(o.nLsRequests, r), yield o;
6373
6454
  }
6374
- async function El() {
6455
+ async function Fl() {
6375
6456
  const s = _.join(An.tmpdir(), `check-network-big-temp-${Date.now()}.bin`), e = 20 * 1024 * 1024, t = zo(e);
6376
6457
  return await at.appendFile(s, t), { filePath: s };
6377
6458
  }
6378
- async function Ol() {
6459
+ async function Tl() {
6379
6460
  const s = _.join(An.tmpdir(), `check-network-temp-${Date.now()}.txt`), e = "Hello, world! " + (/* @__PURE__ */ new Date()).toISOString();
6380
6461
  return await at.writeFile(s, e), { filePath: s, fileContent: e };
6381
6462
  }
6382
- async function $e(s, e, t, r, n) {
6463
+ async function Ae(s, e, t, r, n) {
6383
6464
  return await s.withWriteTx("TemplateRender", async (i) => {
6384
- const o = await Vn(e), a = ht(i, o), c = Dr(
6465
+ const o = await Vn(e), a = ht(i, o), c = Nr(
6385
6466
  i,
6386
6467
  a,
6387
6468
  t,
@@ -6389,16 +6470,16 @@ async function $e(s, e, t, r, n) {
6389
6470
  n
6390
6471
  ), l = {};
6391
6472
  for (const u of n) {
6392
- const d = J(s.clientRoot, u);
6393
- i.createField(d, "Dynamic", c[u]), l[u] = await Mo(d);
6473
+ const d = G(s.clientRoot, u);
6474
+ i.createField(d, "Dynamic", c[u]), l[u] = await Jo(d);
6394
6475
  }
6395
6476
  return await i.commit(), l;
6396
6477
  });
6397
6478
  }
6398
6479
  async function me(s, e) {
6399
- return await Jo(s, async (t) => {
6480
+ return await Mo(s, async (t) => {
6400
6481
  const r = await t.tx.getField(e);
6401
- if (br(r.error)) {
6482
+ if (kr(r.error)) {
6402
6483
  const n = await t.tx.getResourceData(r.error, !0);
6403
6484
  throw new Error(`getFieldValue of "${e.fieldName}" field failed: ${n.data}`);
6404
6485
  }
@@ -6407,16 +6488,16 @@ async function me(s, e) {
6407
6488
  return await t.tx.getResourceData(r.value, !0);
6408
6489
  });
6409
6490
  }
6410
- async function Ae(s, e) {
6491
+ async function Le(s, e) {
6411
6492
  await s.withWriteTx("DeleteFields", async (t) => {
6412
6493
  for (const r of e)
6413
6494
  t.resetField(r);
6414
6495
  await t.commit();
6415
6496
  });
6416
6497
  }
6417
- async function gu(s, e, t, r = {}) {
6498
+ async function vu(s, e, t, r = {}) {
6418
6499
  const n = [];
6419
- Il.forEach((i) => {
6500
+ Al.forEach((i) => {
6420
6501
  pi(i).subscribe((a) => {
6421
6502
  var u, d;
6422
6503
  const c = (/* @__PURE__ */ new Date()).toISOString(), l = { ...a };
@@ -6440,19 +6521,19 @@ async function gu(s, e, t, r = {}) {
6440
6521
  lsDriver: d,
6441
6522
  httpClient: p,
6442
6523
  ops: f
6443
- } = await Fl(s, e, t, r), { filePath: v, fileContent: h } = await Ol(), { filePath: y } = await El(), E = {
6444
- plPings: await al(f, o),
6445
- blockRegistryOverviewChecks: await cl(f, p),
6446
- blockGARegistryOverviewChecks: await ll(f, p),
6447
- blockRegistryUiChecks: await ul(f, p),
6448
- blockGARegistryUiChecks: await dl(f, p),
6449
- autoUpdateCdnChecks: await pl(f, p),
6450
- uploadTemplateCheck: await hl(i, a, "Jack"),
6451
- uploadFileCheck: await ml(i, c, d, u, a, y),
6452
- downloadFileCheck: await yl(i, a, d, u, l, v, h),
6453
- softwareCheck: await Sl(a),
6454
- pythonSoftwareCheck: await kl(a, "Jack"),
6455
- storageToDownloadReport: await Cl(
6524
+ } = await Il(s, e, t, r), { filePath: v, fileContent: h } = await Tl(), { filePath: y } = await Fl(), E = {
6525
+ plPings: await ll(f, o),
6526
+ blockRegistryOverviewChecks: await ul(f, p),
6527
+ blockGARegistryOverviewChecks: await dl(f, p),
6528
+ blockRegistryUiChecks: await pl(f, p),
6529
+ blockGARegistryUiChecks: await fl(f, p),
6530
+ autoUpdateCdnChecks: await hl(f, p),
6531
+ uploadTemplateCheck: await ml(i, a, "Jack"),
6532
+ uploadFileCheck: await yl(i, c, d, u, a, y),
6533
+ downloadFileCheck: await Sl(i, a, d, u, l, v, h),
6534
+ softwareCheck: await kl(a),
6535
+ pythonSoftwareCheck: await Rl(a, "Jack"),
6536
+ storageToDownloadReport: await El(
6456
6537
  i,
6457
6538
  a,
6458
6539
  d,
@@ -6465,12 +6546,12 @@ async function gu(s, e, t, r = {}) {
6465
6546
  }
6466
6547
  )
6467
6548
  };
6468
- return Tl(E, s, f, n);
6549
+ return $l(E, s, f, n);
6469
6550
  } catch (i) {
6470
6551
  return `Unhandled error while checking the network: ${i}`;
6471
6552
  }
6472
6553
  }
6473
- async function Fl(s, e, t, r = {}) {
6554
+ async function Il(s, e, t, r = {}) {
6474
6555
  const n = {
6475
6556
  pingCheckDurationMs: 1e4,
6476
6557
  pingTimeoutMs: 3e3,
@@ -6493,14 +6574,14 @@ async function Fl(s, e, t, r = {}) {
6493
6574
  everyStorageNFilesToCheck: 300,
6494
6575
  everyStorageMinLsRequests: 50,
6495
6576
  ...r
6496
- }, i = _o(s, {
6577
+ }, i = qo(s, {
6497
6578
  defaultRequestTimeout: n.pingTimeoutMs
6498
6579
  });
6499
6580
  i.alternativeRoot = `check_network_${ge()}`;
6500
6581
  const o = new kn(i);
6501
6582
  let a = {};
6502
6583
  e && t && (a = await o.login(e, t));
6503
- const c = await bn.init(s, { authInformation: a }), l = o.ll.httpDispatcher, u = new wn(), d = new Tr("localSecret"), p = En(u, c, []), f = On(c, u), v = await Fn.init(
6584
+ const c = await bn.init(s, { authInformation: a }), l = o.ll.httpDispatcher, u = new wn(), d = new Ir("localSecret"), p = En(u, c, []), f = On(c, u), v = await Fn.init(
6504
6585
  u,
6505
6586
  c,
6506
6587
  d,
@@ -6523,7 +6604,7 @@ async function Fl(s, e, t, r = {}) {
6523
6604
  }
6524
6605
  };
6525
6606
  }
6526
- function Tl(s, e, t, r) {
6607
+ function $l(s, e, t, r) {
6527
6608
  const n = s.plPings.filter((y) => y.response.ok), i = s.plPings.filter((y) => !y.response.ok), o = [
6528
6609
  ...new Set(n.map((y) => JSON.stringify(y.response.value)))
6529
6610
  ], a = (y) => y ? "OK" : "FAILED", c = (y) => y.status === "ok" ? "OK" : y.status === "warn" ? "WARN" : "FAILED", l = Re(s.plPings), u = Re(s.blockRegistryOverviewChecks), d = Re(s.blockGARegistryOverviewChecks), p = Re(s.blockRegistryUiChecks), f = Re(s.blockGARegistryUiChecks), v = Re(s.autoUpdateCdnChecks), h = Object.entries(s.storageToDownloadReport).map(([y, E]) => `${c(E)} ${y} storage check`).join(`
@@ -6595,7 +6676,7 @@ ${r.join(`
6595
6676
  `)}
6596
6677
  `;
6597
6678
  }
6598
- const Il = [
6679
+ const Al = [
6599
6680
  "undici:request:create",
6600
6681
  // When a new request is created
6601
6682
  "undici:request:bodySent",
@@ -6634,33 +6715,33 @@ const Il = [
6634
6715
  // When a dispatcher retries a request
6635
6716
  ];
6636
6717
  export {
6637
- au as BlockPackRegistry,
6638
- cu as CentralBlockRegistry,
6718
+ lu as BlockPackRegistry,
6719
+ uu as CentralBlockRegistry,
6639
6720
  ro as DefaultDriverKitOpsPaths,
6640
6721
  to as DefaultDriverKitOpsSettings,
6641
- kc as DefaultMiddleLayerOpsPaths,
6642
- bc as DefaultMiddleLayerOpsSettings,
6643
- Jn as FrontendFromFolderResourceType,
6644
- Mn as FrontendFromUrlResourceType,
6722
+ Rc as DefaultMiddleLayerOpsPaths,
6723
+ Cc as DefaultMiddleLayerOpsSettings,
6724
+ Mn as FrontendFromFolderResourceType,
6725
+ Jn as FrontendFromUrlResourceType,
6645
6726
  ao as MiddleLayer,
6646
- jr as Project,
6727
+ xr as Project,
6647
6728
  Gi as TengoTemplateGet,
6648
- _i as TengoTemplateGetRegistry,
6729
+ qi as TengoTemplateGetRegistry,
6649
6730
  Ki as TengoTemplateGetTemplate,
6650
- qi as TengoTemplateGetTemplateURI,
6651
- du as TengoTemplatePack,
6652
- pu as TengoTemplatePackConvert,
6653
- hu as TengoTemplatePackConvertTemplate,
6654
- fu as TengoTemplatePackConvertTemplatePack,
6655
- uu as V1CentralDevSnapshotRegistry,
6656
- lu as V1CentralRegistry,
6731
+ _i as TengoTemplateGetTemplateURI,
6732
+ fu as TengoTemplatePack,
6733
+ hu as TengoTemplatePackConvert,
6734
+ mu as TengoTemplatePackConvertTemplate,
6735
+ gu as TengoTemplatePackConvertTemplatePack,
6736
+ pu as V1CentralDevSnapshotRegistry,
6737
+ du as V1CentralRegistry,
6657
6738
  bi as V2RegistryProvider,
6658
- gu as checkNetwork,
6659
- Dr as createRenderTemplate,
6739
+ vu as checkNetwork,
6740
+ Nr as createRenderTemplate,
6660
6741
  Dn as getDevV1PacketMtime,
6661
- Ar as getDevV2PacketMtime,
6662
- ol as initDriverKit,
6663
- Fl as initNetworkCheck,
6742
+ Lr as getDevV2PacketMtime,
6743
+ al as initDriverKit,
6744
+ Il as initNetworkCheck,
6664
6745
  ht as loadTemplate,
6665
6746
  Vn as prepareTemplateSpec
6666
6747
  };