@dpuse/dpuse-shared 1.0.165 → 1.0.166

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.
@@ -135,11 +135,11 @@ function h(e, t) {
135
135
  });
136
136
  }
137
137
  /* @__NO_SIDE_EFFECTS__ */
138
- function ee(e) {
138
+ function g(e) {
139
139
  return d({
140
140
  kind: "schema",
141
141
  type: "boolean",
142
- reference: ee,
142
+ reference: g,
143
143
  expects: "boolean",
144
144
  async: !1,
145
145
  message: e,
@@ -149,11 +149,11 @@ function ee(e) {
149
149
  });
150
150
  }
151
151
  /* @__NO_SIDE_EFFECTS__ */
152
- function g(e, t) {
152
+ function _(e, t) {
153
153
  return d({
154
154
  kind: "schema",
155
155
  type: "literal",
156
- reference: g,
156
+ reference: _,
157
157
  expects: /* @__PURE__ */ o(e),
158
158
  async: !1,
159
159
  literal: e,
@@ -164,11 +164,11 @@ function g(e, t) {
164
164
  });
165
165
  }
166
166
  /* @__NO_SIDE_EFFECTS__ */
167
- function _(e, t) {
167
+ function v(e, t) {
168
168
  return d({
169
169
  kind: "schema",
170
170
  type: "nullable",
171
- reference: _,
171
+ reference: v,
172
172
  expects: `(${e.expects} | null)`,
173
173
  async: !1,
174
174
  wrapped: e,
@@ -179,11 +179,11 @@ function _(e, t) {
179
179
  });
180
180
  }
181
181
  /* @__NO_SIDE_EFFECTS__ */
182
- function v(e) {
182
+ function y(e) {
183
183
  return d({
184
184
  kind: "schema",
185
185
  type: "number",
186
- reference: v,
186
+ reference: y,
187
187
  expects: "number",
188
188
  async: !1,
189
189
  message: e,
@@ -193,11 +193,11 @@ function v(e) {
193
193
  });
194
194
  }
195
195
  /* @__NO_SIDE_EFFECTS__ */
196
- function y(e, t) {
196
+ function b(e, t) {
197
197
  return d({
198
198
  kind: "schema",
199
199
  type: "optional",
200
- reference: y,
200
+ reference: b,
201
201
  expects: `(${e.expects} | undefined)`,
202
202
  async: !1,
203
203
  wrapped: e,
@@ -208,11 +208,11 @@ function y(e, t) {
208
208
  });
209
209
  }
210
210
  /* @__NO_SIDE_EFFECTS__ */
211
- function b(e, t, n) {
211
+ function x(e, t, n) {
212
212
  return d({
213
213
  kind: "schema",
214
214
  type: "record",
215
- reference: b,
215
+ reference: x,
216
216
  expects: "Object",
217
217
  async: !1,
218
218
  key: e,
@@ -261,11 +261,11 @@ function b(e, t, n) {
261
261
  });
262
262
  }
263
263
  /* @__NO_SIDE_EFFECTS__ */
264
- function x(e, t) {
264
+ function S(e, t) {
265
265
  return d({
266
266
  kind: "schema",
267
267
  type: "strict_object",
268
- reference: x,
268
+ reference: S,
269
269
  expects: "Object",
270
270
  async: !1,
271
271
  entries: e,
@@ -328,11 +328,11 @@ function x(e, t) {
328
328
  });
329
329
  }
330
330
  /* @__NO_SIDE_EFFECTS__ */
331
- function S(e) {
331
+ function C(e) {
332
332
  return d({
333
333
  kind: "schema",
334
334
  type: "string",
335
- reference: S,
335
+ reference: C,
336
336
  expects: "string",
337
337
  async: !1,
338
338
  message: e,
@@ -342,7 +342,7 @@ function S(e) {
342
342
  });
343
343
  }
344
344
  /* @__NO_SIDE_EFFECTS__ */
345
- function C(e) {
345
+ function ee(e) {
346
346
  let t;
347
347
  if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
348
348
  else t = n.issues;
@@ -373,9 +373,9 @@ function w(e, t) {
373
373
  if (n) return n;
374
374
  if (r) {
375
375
  if (r.length === 1) return r[0];
376
- s(this, "type", e, t, { issues: /* @__PURE__ */ C(r) }), e.typed = !0;
376
+ s(this, "type", e, t, { issues: /* @__PURE__ */ ee(r) }), e.typed = !0;
377
377
  } else if (i?.length === 1) return i[0];
378
- else s(this, "type", e, t, { issues: /* @__PURE__ */ C(i) });
378
+ else s(this, "type", e, t, { issues: /* @__PURE__ */ ee(i) });
379
379
  return e;
380
380
  }
381
381
  });
@@ -399,22 +399,22 @@ function te(...e) {
399
399
  }
400
400
  //#endregion
401
401
  //#region src/locale/locale.schema.ts
402
- var T = /* @__PURE__ */ x({
403
- en: /* @__PURE__ */ S(),
404
- es: /* @__PURE__ */ S()
402
+ var T = /* @__PURE__ */ S({
403
+ en: /* @__PURE__ */ C(),
404
+ es: /* @__PURE__ */ C()
405
405
  }), ne = {
406
- id: /* @__PURE__ */ S(),
407
- label: /* @__PURE__ */ x({
408
- en: /* @__PURE__ */ y(/* @__PURE__ */ S()),
409
- es: /* @__PURE__ */ y(/* @__PURE__ */ S())
406
+ id: /* @__PURE__ */ C(),
407
+ label: /* @__PURE__ */ S({
408
+ en: /* @__PURE__ */ b(/* @__PURE__ */ C()),
409
+ es: /* @__PURE__ */ b(/* @__PURE__ */ C())
410
410
  }),
411
- description: /* @__PURE__ */ x({
412
- en: /* @__PURE__ */ y(/* @__PURE__ */ S()),
413
- es: /* @__PURE__ */ y(/* @__PURE__ */ S())
411
+ description: /* @__PURE__ */ S({
412
+ en: /* @__PURE__ */ b(/* @__PURE__ */ C()),
413
+ es: /* @__PURE__ */ b(/* @__PURE__ */ C())
414
414
  }),
415
- icon: /* @__PURE__ */ _(/* @__PURE__ */ S()),
416
- iconDark: /* @__PURE__ */ _(/* @__PURE__ */ S())
417
- }, E = (e) => /* @__PURE__ */ w(e.map((e) => /* @__PURE__ */ g(e))), re = E([
415
+ icon: /* @__PURE__ */ v(/* @__PURE__ */ C()),
416
+ iconDark: /* @__PURE__ */ v(/* @__PURE__ */ C())
417
+ }, E = (e) => /* @__PURE__ */ w(e.map((e) => /* @__PURE__ */ _(e))), re = E([
418
418
  "app",
419
419
  "connector",
420
420
  "connectorConnection",
@@ -445,23 +445,23 @@ var T = /* @__PURE__ */ x({
445
445
  "beta",
446
446
  "releaseCandidate",
447
447
  "generalAvailability"
448
- ]), oe = /* @__PURE__ */ x({
448
+ ]), oe = /* @__PURE__ */ S({
449
449
  color: ie,
450
- label: /* @__PURE__ */ S()
450
+ label: /* @__PURE__ */ C()
451
451
  }), D = {
452
452
  ...ne,
453
453
  typeId: re
454
- }, O = /* @__PURE__ */ x({
454
+ }, se = /* @__PURE__ */ S({
455
455
  ...D,
456
- order: /* @__PURE__ */ v(),
457
- path: /* @__PURE__ */ S()
458
- }), k = {
456
+ order: /* @__PURE__ */ y(),
457
+ path: /* @__PURE__ */ C()
458
+ }), O = {
459
459
  ...D,
460
- firstCreatedAt: /* @__PURE__ */ _(/* @__PURE__ */ v()),
461
- lastUpdatedAt: /* @__PURE__ */ _(/* @__PURE__ */ v()),
462
- status: /* @__PURE__ */ _(oe),
463
- statusId: /* @__PURE__ */ _(ae)
464
- }, se = /* @__PURE__ */ x({ ...k }), ce = [
460
+ firstCreatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
461
+ lastUpdatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),
462
+ status: /* @__PURE__ */ v(oe),
463
+ statusId: /* @__PURE__ */ v(ae)
464
+ }, ce = /* @__PURE__ */ S({ ...O }), le = [
465
465
  {
466
466
  id: "alpha",
467
467
  color: "danger",
@@ -495,8 +495,8 @@ var T = /* @__PURE__ */ x({
495
495
  }
496
496
  }
497
497
  ];
498
- function le(e, t = "en") {
499
- let n = ce.find((t) => t.id === e);
498
+ function ue(e, t = "en") {
499
+ let n = le.find((t) => t.id === e);
500
500
  if (n) {
501
501
  let e = n.labels[t] ?? n.labels.en ?? n.id;
502
502
  return {
@@ -511,7 +511,7 @@ function le(e, t = "en") {
511
511
  }
512
512
  //#endregion
513
513
  //#region src/component/dataView/dataFormatIcons.ts
514
- var ue = {
514
+ var de = {
515
515
  arrow: {
516
516
  icon: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1350 1181.25\"><polygon fill=\"#000\" points=\"168.75,168.75 590.62,590.62 168.75,1012.5 168.75,843.75 421.88,590.62 168.75,337.5\"/><polygon fill=\"#000\" points=\"464.06,168.75 885.94,590.62 464.06,1012.5 464.06,843.75 717.19,590.62 464.06,337.5\"/><polygon fill=\"#000\" points=\"759.38,168.75 1181.25,590.62 759.38,1012.5 759.38,843.75 1012.5,590.62 759.38,337.5\"/></svg>",
517
517
  iconDark: "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 1350 1181.25\"><polygon fill=\"#fff\" points=\"168.75,168.75 590.62,590.62 168.75,1012.5 168.75,843.75 421.88,590.62 168.75,337.5\"/><polygon fill=\"#fff\" points=\"464.06,168.75 885.94,590.62 464.06,1012.5 464.06,843.75 717.19,590.62 464.06,337.5\"/><polygon fill=\"#fff\" points=\"759.38,168.75 1181.25,590.62 759.38,1012.5 759.38,843.75 1012.5,590.62 759.38,337.5\"/></svg>"
@@ -564,7 +564,7 @@ var ue = {
564
564
  //#endregion
565
565
  //#region src/component/dataView/index.ts
566
566
  n({ en: "Arrow" }), n({ en: "Avro" }), n({ en: "Delimited text (CSV, TSV…)" }), n({ en: "JSON" }), n({ en: "JSON Lines (JSONL)" }), n({ en: "Markdown (MD)" }), n({ en: "OpenDocument spreadsheet (ODS)" }), n({ en: "Parquet" }), n({ en: "SPSS (SAV)" }), n({ en: "SQLite" }), n({ en: "Excel (XLSX, XLSM)" }), n({ en: "XML" });
567
- var A = [
567
+ var k = [
568
568
  ",",
569
569
  ";",
570
570
  " ",
@@ -586,17 +586,17 @@ n({ en: "Newline" }), n({ en: "Carriage Return" }), n({ en: "Carriage Return/New
586
586
  ]);
587
587
  //#endregion
588
588
  //#region src/component/module/moduleConfig.schema.ts
589
- var j = {
590
- ...k,
591
- vendorAccountURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),
592
- vendorDocumentationURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),
593
- vendorHomeURL: /* @__PURE__ */ _(/* @__PURE__ */ S()),
594
- version: /* @__PURE__ */ S()
589
+ var A = {
590
+ ...O,
591
+ vendorAccountURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
592
+ vendorDocumentationURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
593
+ vendorHomeURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),
594
+ version: /* @__PURE__ */ C()
595
595
  };
596
- ({ ...j });
596
+ ({ ...A });
597
597
  //#endregion
598
598
  //#region src/component/module/connector/connectorConfig.schema.ts
599
- var de = E([
599
+ var fe = E([
600
600
  "abortOperation",
601
601
  "auditObjectContent",
602
602
  "closeStore",
@@ -616,94 +616,94 @@ var de = E([
616
616
  "retrieveChunks",
617
617
  "retrieveRecords",
618
618
  "upsertRecords"
619
- ]), fe = E([
619
+ ]), pe = E([
620
620
  "application",
621
621
  "curatedDataset",
622
622
  "database",
623
623
  "fileStore"
624
- ]), pe = /* @__PURE__ */ x({ label: T }), me = E([
624
+ ]), me = /* @__PURE__ */ S({ label: T }), he = E([
625
625
  "apiEndpoint",
626
626
  "file",
627
627
  "table"
628
- ]), he = E([
628
+ ]), ge = E([
629
629
  "bidirectional",
630
630
  "destination",
631
631
  "source",
632
632
  "unknown"
633
- ]), ge = /* @__PURE__ */ x({ label: T }), _e = /* @__PURE__ */ x({
633
+ ]), _e = /* @__PURE__ */ S({ label: T }), ve = /* @__PURE__ */ S({
634
634
  authMethodId: E([
635
635
  "apiKey",
636
636
  "disabled",
637
637
  "oAuth2",
638
638
  "none"
639
639
  ]),
640
- activeConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ v()),
641
- canDescribe: /* @__PURE__ */ y(/* @__PURE__ */ ee()),
642
- id: /* @__PURE__ */ y(/* @__PURE__ */ S()),
643
- label: /* @__PURE__ */ y(T),
644
- maxConnectionCount: /* @__PURE__ */ _(/* @__PURE__ */ v()),
645
- params: /* @__PURE__ */ y(/* @__PURE__ */ h(/* @__PURE__ */ b(/* @__PURE__ */ S(), /* @__PURE__ */ S())))
646
- }), ve = /* @__PURE__ */ x({
647
- ...j,
648
- typeId: /* @__PURE__ */ g("connector"),
649
- actionNames: /* @__PURE__ */ h(de),
650
- category: /* @__PURE__ */ _(pe),
651
- categoryId: fe,
652
- implementations: /* @__PURE__ */ b(/* @__PURE__ */ S(), _e),
653
- itemTypeId: me,
654
- usage: /* @__PURE__ */ _(ge),
655
- usageId: /* @__PURE__ */ _(he)
656
- }), M = 2048, N = "[REDACTED]", ye = 10, P = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, be = [
657
- [/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${N}`],
658
- [/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => P.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],
659
- [/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => N],
660
- [/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => N],
661
- [/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => N]
662
- ], F = class extends Error {
640
+ activeConnectionCount: /* @__PURE__ */ b(/* @__PURE__ */ y()),
641
+ canDescribe: /* @__PURE__ */ b(/* @__PURE__ */ g()),
642
+ id: /* @__PURE__ */ b(/* @__PURE__ */ C()),
643
+ label: /* @__PURE__ */ b(T),
644
+ maxConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ y()),
645
+ params: /* @__PURE__ */ b(/* @__PURE__ */ h(/* @__PURE__ */ x(/* @__PURE__ */ C(), /* @__PURE__ */ C())))
646
+ }), ye = /* @__PURE__ */ S({
647
+ ...A,
648
+ typeId: /* @__PURE__ */ _("connector"),
649
+ actionNames: /* @__PURE__ */ h(fe),
650
+ category: /* @__PURE__ */ v(me),
651
+ categoryId: pe,
652
+ implementations: /* @__PURE__ */ x(/* @__PURE__ */ C(), ve),
653
+ itemTypeId: he,
654
+ usage: /* @__PURE__ */ v(_e),
655
+ usageId: /* @__PURE__ */ v(ge)
656
+ }), j = 2048, M = "[REDACTED]", be = 10, N = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, xe = [
657
+ [/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${M}`],
658
+ [/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => N.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${M}` : e],
659
+ [/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => M],
660
+ [/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => M],
661
+ [/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => M]
662
+ ], P = class extends Error {
663
663
  data;
664
664
  locator;
665
665
  constructor(e, t, n, r) {
666
666
  super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
667
667
  }
668
- }, I = class extends F {
668
+ }, F = class extends P {
669
669
  constructor(e, t, n, r) {
670
670
  super(e, t, n, r), this.name = "AppError";
671
671
  }
672
- }, L = class extends F {
672
+ }, I = class extends P {
673
673
  constructor(e, t, n, r) {
674
674
  super(e, t, n, r), this.name = "APIError";
675
675
  }
676
- }, R = class extends F {
676
+ }, L = class extends P {
677
677
  constructor(e, t, n, r) {
678
678
  super(e, t, n, r), this.name = "EngineError";
679
679
  }
680
- }, z = class extends F {
680
+ }, R = class extends P {
681
681
  constructor(e, t, n, r) {
682
682
  super(e, t, n, r), this.name = "ConnectorError";
683
683
  }
684
- }, B = class extends F {
684
+ }, z = class extends P {
685
685
  constructor(e, t, n, r) {
686
686
  super(e, t, n, r), this.name = "FetchError";
687
687
  }
688
688
  };
689
- async function xe(e, t, n) {
689
+ async function Se(e, t, n) {
690
690
  let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
691
691
  try {
692
692
  a = await e.text();
693
693
  } catch (e) {
694
- a = `<body unavailable: ${V(e).message}>`;
694
+ a = `<body unavailable: ${B(e).message}>`;
695
695
  }
696
- return new B(i, n, { body: ke(a) });
696
+ return new z(i, n, { body: Ae(a) });
697
697
  }
698
- function Se(e) {
698
+ function Ce(e) {
699
699
  return e.map((e) => e.message).join(" ");
700
700
  }
701
- function Ce(e) {
701
+ function we(e) {
702
702
  try {
703
703
  e();
704
704
  } catch {}
705
705
  }
706
- function V(e) {
706
+ function B(e) {
707
707
  if (e instanceof Error) return e;
708
708
  if (typeof e == "string") return Error(e);
709
709
  if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
@@ -715,24 +715,24 @@ function V(e) {
715
715
  }
716
716
  return /* @__PURE__ */ Error("Unknown error");
717
717
  }
718
- function we(e) {
719
- let t = /* @__PURE__ */ new Set(), n = [], r = V(e);
718
+ function Te(e) {
719
+ let t = /* @__PURE__ */ new Set(), n = [], r = B(e);
720
720
  for (; r != null && !t.has(r);) {
721
721
  t.add(r);
722
- let [e, i] = Ae(r), a = Oe(e);
722
+ let [e, i] = je(r), a = ke(e);
723
723
  /(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
724
724
  }
725
725
  return n;
726
726
  }
727
- function Te(e) {
727
+ function Ee(e) {
728
728
  let t;
729
729
  for (let n of e.toReversed()) {
730
- let e = De(n, t);
730
+ let e = Oe(n, t);
731
731
  n.stack !== void 0 && (e.stack = n.stack), t = e;
732
732
  }
733
733
  return t ?? /* @__PURE__ */ Error("No error to unserialise.");
734
734
  }
735
- function Ee(e) {
735
+ function De(e) {
736
736
  let t;
737
737
  try {
738
738
  t = JSON.stringify(e);
@@ -741,13 +741,13 @@ function Ee(e) {
741
741
  }
742
742
  return t === "" && (t = "Unknown error"), t;
743
743
  }
744
- function De(e, t) {
744
+ function Oe(e, t) {
745
745
  switch (e.name) {
746
- case "APIError": return new L(e.message, e.locator, e.data, { cause: t });
747
- case "AppError": return new I(e.message, e.locator, e.data, { cause: t });
748
- case "ConnectorError": return new z(e.message, e.locator, e.data, { cause: t });
749
- case "EngineError": return new R(e.message, e.locator, e.data, { cause: t });
750
- case "FetchError": return new B(e.message, e.locator, e.data, { cause: t });
746
+ case "APIError": return new I(e.message, e.locator, e.data, { cause: t });
747
+ case "AppError": return new F(e.message, e.locator, e.data, { cause: t });
748
+ case "ConnectorError": return new R(e.message, e.locator, e.data, { cause: t });
749
+ case "EngineError": return new L(e.message, e.locator, e.data, { cause: t });
750
+ case "FetchError": return new z(e.message, e.locator, e.data, { cause: t });
751
751
  default: {
752
752
  let n = e.name;
753
753
  return new class extends Error {
@@ -756,29 +756,29 @@ function De(e, t) {
756
756
  }
757
757
  }
758
758
  }
759
- function Oe(e) {
759
+ function ke(e) {
760
760
  let { data: t, message: n, stack: r } = e;
761
761
  return {
762
762
  ...e,
763
- data: t === void 0 ? void 0 : U(t, /* @__PURE__ */ new WeakSet(), 0),
764
- message: H(n),
765
- stack: r === void 0 ? void 0 : H(r)
763
+ data: t === void 0 ? void 0 : H(t, /* @__PURE__ */ new WeakSet(), 0),
764
+ message: V(n),
765
+ stack: r === void 0 ? void 0 : V(r)
766
766
  };
767
767
  }
768
- function H(e) {
768
+ function V(e) {
769
769
  let t = e;
770
- for (let [e, n] of be) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
770
+ for (let [e, n] of xe) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
771
771
  return t;
772
772
  }
773
- function U(e, t, n) {
774
- return typeof e == "string" ? H(e) : typeof e != "object" || !e ? e : n >= ye ? N : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => U(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && P.test(e) ? N : U(r, t, n + 1)])));
775
- }
776
- function ke(e) {
777
- if (e != null && e !== "") return e.length > M ? `${e.slice(0, M)}... [truncated]` : e;
773
+ function H(e, t, n) {
774
+ return typeof e == "string" ? V(e) : typeof e != "object" || !e ? e : n >= be ? M : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => H(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && N.test(e) ? M : H(r, t, n + 1)])));
778
775
  }
779
776
  function Ae(e) {
780
- let t = e.cause == null ? null : V(e.cause);
781
- if (e instanceof F) return [{
777
+ if (e != null && e !== "") return e.length > j ? `${e.slice(0, j)}... [truncated]` : e;
778
+ }
779
+ function je(e) {
780
+ let t = e.cause == null ? null : B(e.cause);
781
+ if (e instanceof P) return [{
782
782
  data: e.data,
783
783
  locator: e.locator,
784
784
  message: e.message,
@@ -795,12 +795,12 @@ function Ae(e) {
795
795
  }, t] : [{
796
796
  data: n,
797
797
  locator: "",
798
- message: Ee(e),
798
+ message: De(e),
799
799
  name: "Error",
800
800
  stack: void 0
801
801
  }, null];
802
802
  }
803
- var je = /* @__PURE__ */ x({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h(E([
803
+ var Me = /* @__PURE__ */ S({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h(E([
804
804
  "arrow",
805
805
  "avro",
806
806
  "dtv",
@@ -813,16 +813,16 @@ var je = /* @__PURE__ */ x({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h
813
813
  "sqlite",
814
814
  "xlsx",
815
815
  "xml"
816
- ])), /* @__PURE__ */ f(1)) }), Me = /* @__PURE__ */ h(/* @__PURE__ */ S()), Ne = /* @__PURE__ */ x({
817
- ...j,
818
- typeId: /* @__PURE__ */ g("tool"),
819
- actionNames: /* @__PURE__ */ y(Me),
820
- parser: /* @__PURE__ */ y(je)
816
+ ])), /* @__PURE__ */ f(1)) }), Ne = /* @__PURE__ */ h(/* @__PURE__ */ C()), Pe = /* @__PURE__ */ S({
817
+ ...A,
818
+ typeId: /* @__PURE__ */ _("tool"),
819
+ actionNames: /* @__PURE__ */ b(Ne),
820
+ parser: /* @__PURE__ */ b(Me)
821
821
  });
822
822
  //#endregion
823
823
  //#region src/component/module/tool/delimitedText.ts
824
- async function Pe(e, t, n) {
825
- let r = Fe(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Ie(e, t.valueDelimiterIds, t.isComplete, n);
824
+ async function Fe(e, t, n) {
825
+ let r = Ie(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Le(e, t.valueDelimiterIds, t.isComplete, n);
826
826
  return {
827
827
  issues: i,
828
828
  parsedRecords: a,
@@ -830,16 +830,16 @@ async function Pe(e, t, n) {
830
830
  valueDelimiterId: o
831
831
  };
832
832
  }
833
- function Fe(e) {
833
+ function Ie(e) {
834
834
  let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
835
835
  return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
836
836
  }
837
- async function Ie(e, t, n, r) {
837
+ async function Le(e, t, n, r) {
838
838
  let i, a, o, s = [], c, l = !1;
839
839
  for (let u of t) {
840
840
  let { issues: t, records: d } = await r(e, u, n);
841
841
  if (t.length > 0) {
842
- c = Le(c, {
842
+ c = Re(c, {
843
843
  delimiter: u,
844
844
  issues: t,
845
845
  records: d
@@ -847,7 +847,7 @@ async function Ie(e, t, n, r) {
847
847
  continue;
848
848
  }
849
849
  if (l = !0, d.length === 0) continue;
850
- let { averageValueCount: f, sumOfValueCountDiffs: p } = Re(d);
850
+ let { averageValueCount: f, sumOfValueCountDiffs: p } = ze(d);
851
851
  (!o || p <= o) && (!a || f > a) && (i = u, a = f, o = p, s = d);
852
852
  }
853
853
  if (!l && c != null) {
@@ -855,19 +855,19 @@ async function Ie(e, t, n, r) {
855
855
  return {
856
856
  issues: t,
857
857
  parsedRecords: n,
858
- valueDelimiterId: W(n) ? e : void 0
858
+ valueDelimiterId: U(n) ? e : void 0
859
859
  };
860
860
  }
861
861
  return {
862
862
  issues: [],
863
863
  parsedRecords: s,
864
- valueDelimiterId: i != null && W(s) ? i : void 0
864
+ valueDelimiterId: i != null && U(s) ? i : void 0
865
865
  };
866
866
  }
867
- function Le(e, t) {
867
+ function Re(e, t) {
868
868
  return e == null || t.issues.length < e.issues.length ? t : e;
869
869
  }
870
- function Re(e) {
870
+ function ze(e) {
871
871
  let t = 0, n = 0, r;
872
872
  for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
873
873
  return {
@@ -875,7 +875,7 @@ function Re(e) {
875
875
  sumOfValueCountDiffs: n
876
876
  };
877
877
  }
878
- function W(e) {
878
+ function U(e) {
879
879
  let t = /* @__PURE__ */ new Map();
880
880
  for (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);
881
881
  let [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];
@@ -883,32 +883,32 @@ function W(e) {
883
883
  }
884
884
  //#endregion
885
885
  //#region src/component/module/tool/index.ts
886
- var ze = "https://engine-eu.dpuse.app/tools", Be = { dtv: "dpuse-tool-rust-csv-core-parser" }, G = "dpuse-tool-";
887
- function K(e, t) {
886
+ var Be = "https://engine-eu.dpuse.app/tools", Ve = { dtv: "dpuse-tool-rust-csv-core-parser" }, W = "dpuse-tool-";
887
+ function G(e, t) {
888
888
  return e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, "en"));
889
889
  }
890
- function q(e, t, n) {
891
- let r = K(e, t), [i] = r;
890
+ function K(e, t, n) {
891
+ let r = G(e, t), [i] = r;
892
892
  if (i === void 0) {
893
893
  let n = {
894
894
  availableToolIds: e.map((e) => e.id),
895
895
  dataFormatId: t
896
896
  };
897
- throw new I(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
897
+ throw new F(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
898
898
  }
899
- let a = Be[t];
899
+ let a = Ve[t];
900
900
  return r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;
901
901
  }
902
- async function Ve(e, t) {
903
- let n = `${G}${t}`, r = e.find((e) => e.id === n);
902
+ async function He(e, t) {
903
+ let n = `${W}${t}`, r = e.find((e) => e.id === n);
904
904
  if (!r) {
905
905
  let r = {
906
906
  availableToolIds: e.map((e) => e.id),
907
907
  toolName: n
908
908
  };
909
- throw new I(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
909
+ throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
910
910
  }
911
- let i = `${ze}/${t}_v${r.version}/${n}.es.js`;
911
+ let i = `${Be}/${t}_v${r.version}/${n}.es.js`;
912
912
  try {
913
913
  return new (await (import(
914
914
  /* @vite-ignore */
@@ -920,15 +920,15 @@ async function Ve(e, t) {
920
920
  url: i,
921
921
  version: r.version
922
922
  };
923
- throw new I(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", t, { cause: e });
923
+ throw new F(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", t, { cause: e });
924
924
  }
925
925
  }
926
926
  //#endregion
927
927
  //#region src/component/module/connector/objectParsing.ts
928
- var He = "\n", J = ",";
929
- async function Ue(e) {
930
- let { asAt: t, filePreview: n, inferDataTypes: r, parserId: i, startedAt: a, toolConfigs: o } = e, { dataFormatId: s, text: c } = n, l = n.bytes.length;
931
- if (l === 0) return {
928
+ var Ue = "\n", q = ",";
929
+ async function We(e) {
930
+ let { asAt: t, filePreview: n, inferDataTypes: r, parserId: i, startedAt: a, toolConfigs: o, valueDelimiterId: s } = e, { dataFormatId: c, text: l } = n, u = n.bytes.length;
931
+ if (u === 0) return {
932
932
  asAt: t,
933
933
  columnConfigs: [],
934
934
  dataFormatId: "dtv",
@@ -937,7 +937,7 @@ async function Ue(e) {
937
937
  encodingConfidenceLevel: void 0,
938
938
  fileType: void 0,
939
939
  hasHeaders: !1,
940
- recordDelimiterId: He,
940
+ recordDelimiterId: Ue,
941
941
  parsedRecords: [],
942
942
  issues: [{
943
943
  id: "empty",
@@ -947,12 +947,12 @@ async function Ue(e) {
947
947
  }],
948
948
  size: 0,
949
949
  text: void 0,
950
- valueDelimiterId: J
950
+ valueDelimiterId: q
951
951
  };
952
- if (s == null || c == null || K(o, s).length === 0) return {
952
+ if (c == null || l == null || G(o, c).length === 0) return {
953
953
  asAt: t,
954
954
  columnConfigs: [],
955
- dataFormatId: s ?? "unknown",
955
+ dataFormatId: c ?? "unknown",
956
956
  duration: performance.now() - a,
957
957
  encodingId: n.encodingId,
958
958
  encodingConfidenceLevel: n.encodingConfidenceLevel,
@@ -961,39 +961,39 @@ async function Ue(e) {
961
961
  recordDelimiterId: void 0,
962
962
  parsedRecords: [],
963
963
  issues: [],
964
- size: l,
965
- text: c,
964
+ size: u,
965
+ text: l,
966
966
  valueDelimiterId: void 0
967
967
  };
968
- let { parser: u, parserId: d } = await Y(o, s, i), f = await u.parseText(c, {
969
- dataFormatId: s,
968
+ let { parser: d, parserId: f } = await J(o, c, i), p = s == null ? k : [s], m = await d.parseText(l, {
969
+ dataFormatId: c,
970
970
  isComplete: n.isComplete,
971
- valueDelimiterIds: A
972
- }), p = s === "dtv", m = p && f.valueDelimiterId == null ? await u.parseText(c, {
973
- dataFormatId: s,
971
+ valueDelimiterIds: p
972
+ }), h = c === "dtv", g = h && s == null && m.valueDelimiterId == null ? await d.parseText(l, {
973
+ dataFormatId: c,
974
974
  isComplete: n.isComplete,
975
- valueDelimiterIds: [J]
976
- }) : f, h = r(m.parsedRecords);
975
+ valueDelimiterIds: [q]
976
+ }) : m, _ = r(g.parsedRecords);
977
977
  return {
978
978
  asAt: t,
979
- columnConfigs: h.columnConfigs,
980
- dataFormatId: s,
979
+ columnConfigs: _.columnConfigs,
980
+ dataFormatId: c,
981
981
  duration: performance.now() - a,
982
982
  encodingId: n.encodingId,
983
983
  encodingConfidenceLevel: n.encodingConfidenceLevel,
984
984
  fileType: n.fileTypeConfig,
985
- hasHeaders: h.hasHeaderRow,
986
- recordDelimiterId: m.recordDelimiterId,
987
- parsedRecords: m.parsedRecords,
988
- parserId: d,
989
- issues: m.issues,
990
- size: l,
991
- text: c,
992
- valueDelimiterId: p ? m.valueDelimiterId ?? J : m.valueDelimiterId
985
+ hasHeaders: _.hasHeaderRow,
986
+ recordDelimiterId: g.recordDelimiterId,
987
+ parsedRecords: g.parsedRecords,
988
+ parserId: f,
989
+ issues: g.issues,
990
+ size: u,
991
+ text: l,
992
+ valueDelimiterId: h ? s ?? g.valueDelimiterId ?? q : g.valueDelimiterId
993
993
  };
994
994
  }
995
- async function We(e) {
996
- let { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await Y(a, n.dataFormatId, n.parserId);
995
+ async function Ge(e) {
996
+ let { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await J(a, n.dataFormatId, n.parserId);
997
997
  return await o.parseStream(i, {
998
998
  abortSignal: r,
999
999
  chunkSize: n.chunkSize,
@@ -1002,8 +1002,8 @@ async function We(e) {
1002
1002
  valueDelimiterId: n.valueDelimiterId
1003
1003
  }, t);
1004
1004
  }
1005
- async function Ge(e) {
1006
- let { constructColumnAuditor: t, onProgress: n, options: r, signal: i, stream: a, toolConfigs: o } = e, s = Date.now(), c = performance.now(), l = t(r.hasHeaders), { parser: u } = await Y(o, r.dataFormatId, r.parserId), d = Ke(a), f = await u.parseStream(d.stream, {
1005
+ async function Ke(e) {
1006
+ let { constructColumnAuditor: t, onProgress: n, options: r, signal: i, stream: a, toolConfigs: o } = e, s = Date.now(), c = performance.now(), l = t(r.hasHeaders), { parser: u } = await J(o, r.dataFormatId, r.parserId), d = qe(a), f = await u.parseStream(d.stream, {
1007
1007
  abortSignal: i,
1008
1008
  chunkSize: r.chunkSize,
1009
1009
  dataFormatId: r.dataFormatId,
@@ -1024,7 +1024,7 @@ async function Ge(e) {
1024
1024
  sourceWaitDuration: d.waitDuration()
1025
1025
  };
1026
1026
  }
1027
- function Ke(e) {
1027
+ function qe(e) {
1028
1028
  let t = e.getReader(), n = 0;
1029
1029
  return {
1030
1030
  stream: new ReadableStream({
@@ -1039,16 +1039,16 @@ function Ke(e) {
1039
1039
  waitDuration: () => n
1040
1040
  };
1041
1041
  }
1042
- async function Y(e, t, n) {
1043
- let r = q(e, t, n);
1042
+ async function J(e, t, n) {
1043
+ let r = K(e, t, n);
1044
1044
  return {
1045
- parser: await Ve(e, r.id.slice(G.length)),
1045
+ parser: await He(e, r.id.slice(W.length)),
1046
1046
  parserId: r.id
1047
1047
  };
1048
1048
  }
1049
1049
  //#endregion
1050
1050
  //#region src/component/module/connector/index.ts
1051
- var qe = [
1051
+ var Je = [
1052
1052
  {
1053
1053
  id: "application",
1054
1054
  label: {
@@ -1077,7 +1077,7 @@ var qe = [
1077
1077
  es: "Almacén de Archivos"
1078
1078
  }
1079
1079
  }
1080
- ], Je = [
1080
+ ], Ye = [
1081
1081
  {
1082
1082
  id: "apiEndpoint",
1083
1083
  label: {
@@ -1099,7 +1099,7 @@ var qe = [
1099
1099
  es: "Tabla"
1100
1100
  }
1101
1101
  }
1102
- ], Ye = {
1102
+ ], Xe = {
1103
1103
  abortOperation: "Abort Operation",
1104
1104
  auditObjectContent: "Audit Object Content",
1105
1105
  closeStore: "Close Store",
@@ -1119,7 +1119,7 @@ var qe = [
1119
1119
  retrieveChunks: "Retrieve Chunks",
1120
1120
  retrieveRecords: "Retrieve Records",
1121
1121
  upsertRecords: "Upsert Records"
1122
- }, Xe = [
1122
+ }, Ze = [
1123
1123
  {
1124
1124
  id: "bidirectional",
1125
1125
  label: {
@@ -1148,13 +1148,13 @@ var qe = [
1148
1148
  es: "Desconocido"
1149
1149
  }
1150
1150
  }
1151
- ], Ze = /* @__PURE__ */ new Set([
1151
+ ], Qe = /* @__PURE__ */ new Set([
1152
1152
  "createObject",
1153
1153
  "dropObject",
1154
1154
  "loadObjectRecords",
1155
1155
  "removeRecords",
1156
1156
  "upsertRecords"
1157
- ]), Qe = /* @__PURE__ */ new Set([
1157
+ ]), $e = /* @__PURE__ */ new Set([
1158
1158
  "auditObjectContent",
1159
1159
  "findObject",
1160
1160
  "getInfo",
@@ -1166,13 +1166,13 @@ var qe = [
1166
1166
  "retrieveChunks",
1167
1167
  "retrieveRecords"
1168
1168
  ]);
1169
- function $e(e) {
1169
+ function et(e) {
1170
1170
  let t = !1, n = !1;
1171
- for (let r of e) Qe.has(r) && (t = !0), Ze.has(r) && (n = !0);
1171
+ for (let r of e) $e.has(r) && (t = !0), Qe.has(r) && (n = !0);
1172
1172
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
1173
1173
  }
1174
- var et = (e, t = "en") => {
1175
- let i = qe.find((t) => t.id === e);
1174
+ var tt = (e, t = "en") => {
1175
+ let i = Je.find((t) => t.id === e);
1176
1176
  return i ? {
1177
1177
  label: r(n(i.label), t) ?? i.id,
1178
1178
  description: ""
@@ -1180,8 +1180,8 @@ var et = (e, t = "en") => {
1180
1180
  label: e,
1181
1181
  description: ""
1182
1182
  };
1183
- }, tt = (e, t = "en") => {
1184
- let i = Je.find((t) => t.id === e);
1183
+ }, nt = (e, t = "en") => {
1184
+ let i = Ye.find((t) => t.id === e);
1185
1185
  return i ? {
1186
1186
  label: r(n(i.label), t) ?? i.id,
1187
1187
  description: ""
@@ -1189,8 +1189,8 @@ var et = (e, t = "en") => {
1189
1189
  label: e,
1190
1190
  description: ""
1191
1191
  };
1192
- }, nt = (e, t = "en") => {
1193
- let i = Xe.find((t) => t.id === e);
1192
+ }, rt = (e, t = "en") => {
1193
+ let i = Ze.find((t) => t.id === e);
1194
1194
  return i ? {
1195
1195
  label: r(n(i.label), t) ?? i.id,
1196
1196
  description: ""
@@ -1199,31 +1199,31 @@ var et = (e, t = "en") => {
1199
1199
  description: ""
1200
1200
  };
1201
1201
  };
1202
- function rt(e) {
1202
+ function it(e) {
1203
1203
  let t = new Set(e), n = "|Action|Supported|\n";
1204
1204
  n += "|:----|:-------:|\n";
1205
- for (let e of Object.keys(Ye)) n += `| ${Ye[e]} | ${t.has(e) ? "✓" : ""} |\n`;
1205
+ for (let e of Object.keys(Xe)) n += `| ${Xe[e]} | ${t.has(e) ? "✓" : ""} |\n`;
1206
1206
  return n;
1207
1207
  }
1208
1208
  //#endregion
1209
1209
  //#region src/component/module/cookbook/cookbookConfig.schema.ts
1210
- var it = E(["list"]), at = /* @__PURE__ */ x({
1211
- ...j,
1212
- typeId: /* @__PURE__ */ g("cookbook"),
1213
- actionNames: /* @__PURE__ */ h(it),
1214
- recipes: /* @__PURE__ */ h(O)
1215
- }), ot = E([
1210
+ var at = E(["list"]), ot = /* @__PURE__ */ S({
1211
+ ...A,
1212
+ typeId: /* @__PURE__ */ _("cookbook"),
1213
+ actionNames: /* @__PURE__ */ h(at),
1214
+ recipes: /* @__PURE__ */ h(se)
1215
+ }), st = E([
1216
1216
  "list",
1217
1217
  "render",
1218
1218
  "setColorMode"
1219
- ]), st = /* @__PURE__ */ x({
1220
- ...j,
1221
- typeId: /* @__PURE__ */ g("presenter"),
1222
- actionNames: /* @__PURE__ */ h(ot),
1223
- presentations: /* @__PURE__ */ h(O)
1224
- }), ct = "https://engine-eu.dpuse.app/presenters";
1225
- async function lt(e, t, n, r) {
1226
- let i = e.id, a = `${ct}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
1219
+ ]), ct = /* @__PURE__ */ S({
1220
+ ...A,
1221
+ typeId: /* @__PURE__ */ _("presenter"),
1222
+ actionNames: /* @__PURE__ */ h(st),
1223
+ presentations: /* @__PURE__ */ h(se)
1224
+ }), lt = "https://engine-eu.dpuse.app/presenters";
1225
+ async function ut(e, t, n, r) {
1226
+ let i = e.id, a = `${lt}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
1227
1227
  try {
1228
1228
  return new (await (import(
1229
1229
  /* @vite-ignore */
@@ -1235,12 +1235,12 @@ async function lt(e, t, n, r) {
1235
1235
  url: a,
1236
1236
  version: e.version
1237
1237
  };
1238
- throw new I(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", n, { cause: t });
1238
+ throw new F(`Failed to load presenter '${i}' v${e.version}.`, "dpuse-shared.component.module.presenter.loadPresenter", n, { cause: t });
1239
1239
  }
1240
1240
  }
1241
1241
  //#endregion
1242
1242
  //#region src/encoding/index.ts
1243
- var ut = {
1243
+ var dt = {
1244
1244
  arabic: {
1245
1245
  id: "arabic",
1246
1246
  label: {
@@ -1388,7 +1388,7 @@ var ut = {
1388
1388
  es: "Occidental"
1389
1389
  }
1390
1390
  }
1391
- }, dt = {
1391
+ }, ft = {
1392
1392
  ascii: {
1393
1393
  id: "ascii",
1394
1394
  groupId: null,
@@ -1819,16 +1819,16 @@ var ut = {
1819
1819
  groupId: "baltic",
1820
1820
  decoderId: "windows-1257"
1821
1821
  }
1822
- }, ft = ut, X = dt;
1823
- function pt(e) {
1824
- return Object.hasOwn(X, e);
1825
- }
1822
+ }, pt = dt, Y = ft;
1826
1823
  function mt(e) {
1827
- return pt(e) ? X[e].decoderId ?? e : e;
1824
+ return Object.hasOwn(Y, e);
1828
1825
  }
1829
- function ht(e = "en") {
1830
- return Array.from(Object.values(X), ({ decoderId: t, groupId: n, id: r }) => {
1831
- let i = n == null ? "" : gt(n, e);
1826
+ function ht(e) {
1827
+ return mt(e) ? Y[e].decoderId ?? e : e;
1828
+ }
1829
+ function gt(e = "en") {
1830
+ return Array.from(Object.values(Y), ({ decoderId: t, groupId: n, id: r }) => {
1831
+ let i = n == null ? "" : _t(n, e);
1832
1832
  return {
1833
1833
  id: r,
1834
1834
  groupLabel: i,
@@ -1838,13 +1838,13 @@ function ht(e = "en") {
1838
1838
  };
1839
1839
  }).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.label.localeCompare(n.label, e));
1840
1840
  }
1841
- function gt(e, t) {
1842
- let n = ft[e].label;
1841
+ function _t(e, t) {
1842
+ let n = pt[e].label;
1843
1843
  return n[t] ?? n.en ?? e;
1844
1844
  }
1845
1845
  //#endregion
1846
1846
  //#region src/locale/index.ts
1847
- function _t(e, t) {
1847
+ function vt(e, t) {
1848
1848
  return {
1849
1849
  ...e,
1850
1850
  label: e.label[t] ?? e.id,
@@ -1852,7 +1852,7 @@ function _t(e, t) {
1852
1852
  verb: e.verb?.[t] ?? void 0
1853
1853
  };
1854
1854
  }
1855
- function vt(e, t, n = !1) {
1855
+ function yt(e, t, n = !1) {
1856
1856
  let r = e.map((e) => ({
1857
1857
  ...e,
1858
1858
  label: e.label[t] ?? e.id,
@@ -1861,7 +1861,7 @@ function vt(e, t, n = !1) {
1861
1861
  }));
1862
1862
  return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
1863
1863
  }
1864
- function yt(e, t) {
1864
+ function bt(e, t) {
1865
1865
  return {
1866
1866
  ...e,
1867
1867
  label: e.label[t] ?? e.id,
@@ -1870,7 +1870,7 @@ function yt(e, t) {
1870
1870
  }
1871
1871
  //#endregion
1872
1872
  //#region src/utilities/index.ts
1873
- var bt = /* @__PURE__ */ new Map([
1873
+ var xt = /* @__PURE__ */ new Map([
1874
1874
  ["arrow", "application/vnd.apache.arrow.file"],
1875
1875
  ["avro", "application/vnd.apache.avro"],
1876
1876
  ["bin", "application/octet-stream"],
@@ -1891,20 +1891,20 @@ var bt = /* @__PURE__ */ new Map([
1891
1891
  ["xlsm", "application/vnd.ms-excel.sheet.macroEnabled.12"],
1892
1892
  ["xlsx", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],
1893
1893
  ["xml", "application/xml"]
1894
- ]), Z = "en", Q = [
1894
+ ]), X = "en", Z = [
1895
1895
  ["day", 864e5],
1896
1896
  ["hour", 36e5],
1897
1897
  ["minute", 6e4],
1898
1898
  ["second", 1e3],
1899
1899
  ["millisecond", 1]
1900
- ], xt = [
1900
+ ], St = [
1901
1901
  ["byte", 1],
1902
1902
  ["kilobyte", 1024],
1903
1903
  ["megabyte", 1048576],
1904
1904
  ["gigabyte", 1073741824],
1905
1905
  ["terabyte", 1099511627776]
1906
- ], St = /* @__PURE__ */ new Map(), Ct = /* @__PURE__ */ new Map();
1907
- function wt(e, t = 2, n = t, r = Z) {
1906
+ ], Ct = /* @__PURE__ */ new Map(), wt = /* @__PURE__ */ new Map();
1907
+ function Tt(e, t = 2, n = t, r = X) {
1908
1908
  return e == null ? "" : $(r, {
1909
1909
  localeMatcher: "best fit",
1910
1910
  maximumFractionDigits: t,
@@ -1914,18 +1914,18 @@ function wt(e, t = 2, n = t, r = Z) {
1914
1914
  useGrouping: !0
1915
1915
  }).format(e);
1916
1916
  }
1917
- function Tt(e, t = Z) {
1918
- return wt(e, 0, 0, t);
1917
+ function Et(e, t = X) {
1918
+ return Tt(e, 0, 0, t);
1919
1919
  }
1920
- function Et(e, t = 1, n = Z) {
1920
+ function Dt(e, t = 1, n = X) {
1921
1921
  return e == null || !Number.isFinite(e) ? "" : $(n, {
1922
1922
  maximumFractionDigits: t,
1923
1923
  notation: "compact"
1924
1924
  }).format(e);
1925
1925
  }
1926
- function Dt(e, t = 1, n = Z) {
1926
+ function Ot(e, t = 1, n = X) {
1927
1927
  if (e == null || !Number.isFinite(e)) return "";
1928
- let [r, i] = xt.find(([, n]) => It(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
1928
+ let [r, i] = St.find(([, n]) => It(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
1929
1929
  return $(n, {
1930
1930
  maximumFractionDigits: i === 1 ? 0 : t,
1931
1931
  style: "unit",
@@ -1933,9 +1933,9 @@ function Dt(e, t = 1, n = Z) {
1933
1933
  unitDisplay: i === 1 ? "long" : "short"
1934
1934
  }).format(e / i);
1935
1935
  }
1936
- function Ot(e, t = "millisecond", n = Z) {
1936
+ function kt(e, t = "millisecond", n = X) {
1937
1937
  if (e == null || !Number.isFinite(e)) return "";
1938
- let r = Math.round(Math.abs(e)), i = Q.findIndex(([, e]) => r >= e), a = i === -1 ? Q.length - 1 : i, o = Q.findIndex(([e]) => e === t), s = Q.slice(a, Math.max(o, a) + 1), c = [];
1938
+ let r = Math.round(Math.abs(e)), i = Z.findIndex(([, e]) => r >= e), a = i === -1 ? Z.length - 1 : i, o = Z.findIndex(([e]) => e === t), s = Z.slice(a, Math.max(o, a) + 1), c = [];
1939
1939
  for (let [t, i] of s) {
1940
1940
  let a = Math.floor(r / i);
1941
1941
  if (a === 0 && c.length > 0) continue;
@@ -1949,23 +1949,23 @@ function Ot(e, t = "millisecond", n = Z) {
1949
1949
  }
1950
1950
  return Ft(n).format(c);
1951
1951
  }
1952
- function kt(e) {
1952
+ function At(e) {
1953
1953
  if (!e) return;
1954
- let t = Pt(e);
1954
+ let t = Q(e);
1955
1955
  return t === void 0 ? e : e.slice(0, t);
1956
1956
  }
1957
- function At(e) {
1957
+ function jt(e) {
1958
1958
  if (!e) return;
1959
- let t = Pt(e);
1959
+ let t = Q(e);
1960
1960
  return t === void 0 ? void 0 : e.slice(t + 1);
1961
1961
  }
1962
- function jt(e) {
1963
- return e != null && bt.has(e.toLowerCase());
1964
- }
1965
1962
  function Mt(e) {
1966
- return (e == null ? void 0 : bt.get(e.toLowerCase())) ?? "application/octet-stream";
1963
+ return e != null && xt.has(e.toLowerCase());
1967
1964
  }
1968
1965
  function Nt(e) {
1966
+ return (e == null ? void 0 : xt.get(e.toLowerCase())) ?? "application/octet-stream";
1967
+ }
1968
+ function Pt(e) {
1969
1969
  switch (e) {
1970
1970
  case "Edm.Boolean": return "boolean";
1971
1971
  case "Edm.Byte":
@@ -1986,24 +1986,24 @@ function Nt(e) {
1986
1986
  default: return "unknown";
1987
1987
  }
1988
1988
  }
1989
- function Pt(e) {
1989
+ function Q(e) {
1990
1990
  let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
1991
1991
  return n > t && n < e.length - 1 ? n : void 0;
1992
1992
  }
1993
1993
  function Ft(e) {
1994
- let t = St.get(e);
1994
+ let t = Ct.get(e);
1995
1995
  return t || (t = new Intl.ListFormat(e, {
1996
1996
  style: "narrow",
1997
1997
  type: "unit"
1998
- }), St.set(e, t)), t;
1998
+ }), Ct.set(e, t)), t;
1999
1999
  }
2000
2000
  function $(e, t) {
2001
- let n = `${e}|${JSON.stringify(t)}`, r = Ct.get(n);
2002
- return r || (r = new Intl.NumberFormat(e, t), Ct.set(n, r)), r;
2001
+ let n = `${e}|${JSON.stringify(t)}`, r = wt.get(n);
2002
+ return r || (r = new Intl.NumberFormat(e, t), wt.set(n, r)), r;
2003
2003
  }
2004
2004
  function It(e, t) {
2005
2005
  let n = 10 ** t;
2006
2006
  return Math.round(e * n) / n;
2007
2007
  }
2008
2008
  //#endregion
2009
- export { L as APIError, I as AppError, z as ConnectorError, ue as DATA_FORMAT_ICON_CONFIGS, e as DEFAULT_LOCALE_ID, ft as ENCODING_GROUP_CONFIG_MAP, X as ENCODING_TYPE_CONFIG_MAP, R as EngineError, B as FetchError, A as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, G as TOOL_NAME_PREFIX, Ge as auditObjectContentWithParser, xe as buildFetchError, Ue as buildPreviewConfig, se as componentInstanceConfigSchema, Se as concatenateSerialisedErrorMessages, ve as connectorConfigSchema, et as constructConnectorCategoryConfig, tt as constructConnectorItemTypeConfig, nt as constructConnectorUsageConfig, Nt as convertODataTypeIdToUsageTypeId, at as cookbookConfigSchema, n as createLabelMap, $e as determineConnectorUsageId, At as extractExtensionFromPath, kt as extractPathWithoutExtension, wt as formatNumberAsDecimalNumber, Ot as formatNumberAsDuration, Et as formatNumberAsSize, Dt as formatNumberAsStorageSize, Tt as formatNumberAsWholeNumber, le as getComponentStatus, rt as getConnectorActionsTable, ht as getEncodingTypeConfigs, jt as hasMimeTypeForExtension, Ce as ignoreErrors, pt as isEncodingTypeId, K as listParserToolConfigs, lt as loadPresenter, Ve as loadTool, _t as localiseConfig, vt as localiseConfigs, yt as localiseReference, Mt as lookupMimeTypeForExtension, V as normalizeToError, Pe as parseDelimitedText, st as presenterConfigSchema, mt as resolveDecoderId, r as resolveLabel, q as resolveParserToolConfig, We as retrieveRecordsWithParser, we as serialiseError, Ne as toolConfigSchema, Te as unserialiseError };
2009
+ export { I as APIError, F as AppError, R as ConnectorError, de as DATA_FORMAT_ICON_CONFIGS, e as DEFAULT_LOCALE_ID, pt as ENCODING_GROUP_CONFIG_MAP, Y as ENCODING_TYPE_CONFIG_MAP, L as EngineError, z as FetchError, k as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, W as TOOL_NAME_PREFIX, Ke as auditObjectContentWithParser, Se as buildFetchError, We as buildPreviewConfig, ce as componentInstanceConfigSchema, Ce as concatenateSerialisedErrorMessages, ye as connectorConfigSchema, tt as constructConnectorCategoryConfig, nt as constructConnectorItemTypeConfig, rt as constructConnectorUsageConfig, Pt as convertODataTypeIdToUsageTypeId, ot as cookbookConfigSchema, n as createLabelMap, et as determineConnectorUsageId, jt as extractExtensionFromPath, At as extractPathWithoutExtension, Tt as formatNumberAsDecimalNumber, kt as formatNumberAsDuration, Dt as formatNumberAsSize, Ot as formatNumberAsStorageSize, Et as formatNumberAsWholeNumber, ue as getComponentStatus, it as getConnectorActionsTable, gt as getEncodingTypeConfigs, Mt as hasMimeTypeForExtension, we as ignoreErrors, mt as isEncodingTypeId, G as listParserToolConfigs, ut as loadPresenter, He as loadTool, vt as localiseConfig, yt as localiseConfigs, bt as localiseReference, Nt as lookupMimeTypeForExtension, B as normalizeToError, Fe as parseDelimitedText, ct as presenterConfigSchema, ht as resolveDecoderId, r as resolveLabel, K as resolveParserToolConfig, Ge as retrieveRecordsWithParser, Te as serialiseError, Pe as toolConfigSchema, Ee as unserialiseError };