@dpuse/dpuse-shared 1.0.125 → 1.0.126

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/README.md CHANGED
@@ -241,14 +241,14 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
241
241
 
242
242
  | Chunk/Module/File | Composition |
243
243
  | :-------------------------------------------------------------------------- | :-------------------------------------------------------------------------------------------- |
244
- | **dist/dpuse-shared.es.js** | 35.6 kB · gzip 9.4 kB · 100.0% of the build |
245
- |     src → index.ts + 9 more | `█████████████░░░░░░░` 65.7% · 23.4 kB |
246
- |         ↳ index.ts | `▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░` 55.9% · 19.9 kB |
247
- |         ↳ connectorConfig.schema.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.3% · 1.2 kB |
248
- |         ↳ componentConfig.schema.ts | `▒░░░░░░░░░░░░░░░░░░░` 2.6% · 936 B |
249
- |         ↳ 7 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 4.0% · 1.4 kB |
250
- |     valibot → dist/index.mjs | `████░░░░░░░░░░░░░░░░` 19.7% · 7.0 kB |
251
- |     (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 14.6% · 5.2 kB |
244
+ | **dist/dpuse-shared.es.js** | 36.1 kB · gzip 9.5 kB · 100.0% of the build |
245
+ |     src → index.ts + 9 more | `█████████████░░░░░░░` 65.9% · 23.8 kB |
246
+ |         ↳ index.ts | `▒▒▒▒▒▒▒▒▒▒▒░░░░░░░░░` 56.0% · 20.2 kB |
247
+ |         ↳ connectorConfig.schema.ts | `▒░░░░░░░░░░░░░░░░░░░` 3.4% · 1.2 kB |
248
+ |         ↳ componentConfig.schema.ts | `▒░░░░░░░░░░░░░░░░░░░` 2.5% · 936 B |
249
+ |         ↳ 7 smaller files | `▒░░░░░░░░░░░░░░░░░░░` 3.9% · 1.4 kB |
250
+ |     valibot → dist/index.mjs | `████░░░░░░░░░░░░░░░░` 19.4% · 7.0 kB |
251
+ |     (bundler output, whitespace & JSON) | `███░░░░░░░░░░░░░░░░░` 14.6% · 5.3 kB |
252
252
 
253
253
  Bars show each row's share of its output file. ↳ rows are part of the row above.
254
254
 
@@ -534,11 +534,15 @@ var ue = T([
534
534
  "database",
535
535
  "fileStore"
536
536
  ]), fe = /* @__PURE__ */ b({ label: w }), pe = T([
537
+ "apiEndpoint",
538
+ "file",
539
+ "table"
540
+ ]), me = T([
537
541
  "bidirectional",
538
542
  "destination",
539
543
  "source",
540
544
  "unknown"
541
- ]), me = /* @__PURE__ */ b({ label: w }), he = /* @__PURE__ */ b({
545
+ ]), he = /* @__PURE__ */ b({ label: w }), ge = /* @__PURE__ */ b({
542
546
  authMethodId: T([
543
547
  "apiKey",
544
548
  "disabled",
@@ -551,16 +555,17 @@ var ue = T([
551
555
  label: /* @__PURE__ */ v(w),
552
556
  maxConnectionCount: /* @__PURE__ */ g(/* @__PURE__ */ _()),
553
557
  params: /* @__PURE__ */ v(/* @__PURE__ */ p(/* @__PURE__ */ y(/* @__PURE__ */ x(), /* @__PURE__ */ x())))
554
- }), ge = /* @__PURE__ */ b({
558
+ }), _e = /* @__PURE__ */ b({
555
559
  ...k,
556
560
  typeId: /* @__PURE__ */ h("connector"),
557
561
  actionNames: /* @__PURE__ */ p(ue),
558
562
  category: /* @__PURE__ */ g(fe),
559
563
  categoryId: de,
560
- implementations: /* @__PURE__ */ y(/* @__PURE__ */ x(), he),
561
- usage: /* @__PURE__ */ g(me),
562
- usageId: /* @__PURE__ */ g(pe)
563
- }), _e = [
564
+ implementations: /* @__PURE__ */ y(/* @__PURE__ */ x(), ge),
565
+ itemTypeId: pe,
566
+ usage: /* @__PURE__ */ g(he),
567
+ usageId: /* @__PURE__ */ g(me)
568
+ }), ve = [
564
569
  {
565
570
  id: "application",
566
571
  label: {
@@ -589,6 +594,28 @@ var ue = T([
589
594
  es: "Almacén de Archivos"
590
595
  }
591
596
  }
597
+ ], ye = [
598
+ {
599
+ id: "apiEndpoint",
600
+ label: {
601
+ en: "API Endpoint",
602
+ es: "Endpoint de API"
603
+ }
604
+ },
605
+ {
606
+ id: "file",
607
+ label: {
608
+ en: "File",
609
+ es: "Archivo"
610
+ }
611
+ },
612
+ {
613
+ id: "table",
614
+ label: {
615
+ en: "Table",
616
+ es: "Tabla"
617
+ }
618
+ }
592
619
  ], A = {
593
620
  abortOperation: "Abort Operation",
594
621
  auditObjectContent: "Audit Object Content",
@@ -605,7 +632,7 @@ var ue = T([
605
632
  retrieveChunks: "Retrieve Chunks",
606
633
  retrieveRecords: "Retrieve Records",
607
634
  upsertRecords: "Upsert Records"
608
- }, ve = [
635
+ }, be = [
609
636
  {
610
637
  id: "bidirectional",
611
638
  label: {
@@ -634,12 +661,12 @@ var ue = T([
634
661
  es: "Desconocido"
635
662
  }
636
663
  }
637
- ], ye = /* @__PURE__ */ new Set([
664
+ ], xe = /* @__PURE__ */ new Set([
638
665
  "createObject",
639
666
  "dropObject",
640
667
  "removeRecords",
641
668
  "upsertRecords"
642
- ]), be = /* @__PURE__ */ new Set([
669
+ ]), Se = /* @__PURE__ */ new Set([
643
670
  "auditObjectContent",
644
671
  "findObject",
645
672
  "getInfo",
@@ -650,13 +677,13 @@ var ue = T([
650
677
  "retrieveChunks",
651
678
  "retrieveRecords"
652
679
  ]);
653
- function xe(e) {
680
+ function Ce(e) {
654
681
  let t = !1, n = !1;
655
- for (let r of e) be.has(r) && (t = !0), ye.has(r) && (n = !0);
682
+ for (let r of e) Se.has(r) && (t = !0), xe.has(r) && (n = !0);
656
683
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
657
684
  }
658
- var Se = (e, t = "en") => {
659
- let i = _e.find((t) => t.id === e);
685
+ var we = (e, t = "en") => {
686
+ let i = ve.find((t) => t.id === e);
660
687
  return i ? {
661
688
  label: r(n(i.label), t) ?? i.id,
662
689
  description: ""
@@ -664,8 +691,17 @@ var Se = (e, t = "en") => {
664
691
  label: e,
665
692
  description: ""
666
693
  };
667
- }, Ce = (e, t = "en") => {
668
- let i = ve.find((t) => t.id === e);
694
+ }, Te = (e, t = "en") => {
695
+ let i = ye.find((t) => t.id === e);
696
+ return i ? {
697
+ label: r(n(i.label), t) ?? i.id,
698
+ description: ""
699
+ } : {
700
+ label: e,
701
+ description: ""
702
+ };
703
+ }, Ee = (e, t = "en") => {
704
+ let i = be.find((t) => t.id === e);
669
705
  return i ? {
670
706
  label: r(n(i.label), t) ?? i.id,
671
707
  description: ""
@@ -674,7 +710,7 @@ var Se = (e, t = "en") => {
674
710
  description: ""
675
711
  };
676
712
  };
677
- function we(e) {
713
+ function De(e) {
678
714
  let t = new Set(e), n = "|Action|Supported|\n";
679
715
  n += "|:----|:-------:|\n";
680
716
  for (let e of Object.keys(A)) n += `| ${A[e]} | ${t.has(e) ? "✓" : ""} |\n`;
@@ -682,12 +718,12 @@ function we(e) {
682
718
  }
683
719
  //#endregion
684
720
  //#region src/component/module/cookbook/cookbookConfig.schema.ts
685
- var Te = T(["list"]), Ee = /* @__PURE__ */ b({
721
+ var Oe = T(["list"]), ke = /* @__PURE__ */ b({
686
722
  ...k,
687
723
  typeId: /* @__PURE__ */ h("cookbook"),
688
- actionNames: /* @__PURE__ */ p(Te),
724
+ actionNames: /* @__PURE__ */ p(Oe),
689
725
  recipes: /* @__PURE__ */ p(D)
690
- }), j = 2048, M = "[REDACTED]", De = 10, N = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Oe = [
726
+ }), j = 2048, M = "[REDACTED]", Ae = 10, N = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, je = [
691
727
  [/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${M}`],
692
728
  [/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => N.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${M}` : e],
693
729
  [/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => M],
@@ -720,19 +756,19 @@ var Te = T(["list"]), Ee = /* @__PURE__ */ b({
720
756
  super(e, t, n, r), this.name = "FetchError";
721
757
  }
722
758
  };
723
- async function ke(e, t, n) {
759
+ async function Me(e, t, n) {
724
760
  let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
725
761
  try {
726
762
  a = await e.text();
727
763
  } catch (e) {
728
764
  a = `<body unavailable: ${B(e).message}>`;
729
765
  }
730
- return new z(i, n, { body: Le(a) });
766
+ return new z(i, n, { body: ze(a) });
731
767
  }
732
- function Ae(e) {
768
+ function Ne(e) {
733
769
  return e.map((e) => e.message).join(" ");
734
770
  }
735
- function je(e) {
771
+ function Pe(e) {
736
772
  try {
737
773
  e();
738
774
  } catch {}
@@ -749,24 +785,24 @@ function B(e) {
749
785
  }
750
786
  return /* @__PURE__ */ Error("Unknown error");
751
787
  }
752
- function Me(e) {
788
+ function Fe(e) {
753
789
  let t = /* @__PURE__ */ new Set(), n = [], r = B(e);
754
790
  for (; r != null && !t.has(r);) {
755
791
  t.add(r);
756
- let [e, i] = Re(r), a = Ie(e);
792
+ let [e, i] = Be(r), a = V(e);
757
793
  /(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
758
794
  }
759
795
  return n;
760
796
  }
761
- function Ne(e) {
797
+ function Ie(e) {
762
798
  let t;
763
799
  for (let n of e.toReversed()) {
764
- let e = Fe(n, t);
800
+ let e = Re(n, t);
765
801
  n.stack !== void 0 && (e.stack = n.stack), t = e;
766
802
  }
767
803
  return t ?? /* @__PURE__ */ Error("No error to unserialise.");
768
804
  }
769
- function Pe(e) {
805
+ function Le(e) {
770
806
  let t;
771
807
  try {
772
808
  t = JSON.stringify(e);
@@ -775,7 +811,7 @@ function Pe(e) {
775
811
  }
776
812
  return t === "" && (t = "Unknown error"), t;
777
813
  }
778
- function Fe(e, t) {
814
+ function Re(e, t) {
779
815
  switch (e.name) {
780
816
  case "APIError": return new I(e.message, e.locator, e.data, { cause: t });
781
817
  case "AppError": return new F(e.message, e.locator, e.data, { cause: t });
@@ -790,27 +826,27 @@ function Fe(e, t) {
790
826
  }
791
827
  }
792
828
  }
793
- function Ie(e) {
829
+ function V(e) {
794
830
  let { data: t, message: n, stack: r } = e;
795
831
  return {
796
832
  ...e,
797
- data: t === void 0 ? void 0 : H(t, /* @__PURE__ */ new WeakSet(), 0),
798
- message: V(n),
799
- stack: r === void 0 ? void 0 : V(r)
833
+ data: t === void 0 ? void 0 : U(t, /* @__PURE__ */ new WeakSet(), 0),
834
+ message: H(n),
835
+ stack: r === void 0 ? void 0 : H(r)
800
836
  };
801
837
  }
802
- function V(e) {
838
+ function H(e) {
803
839
  let t = e;
804
- for (let [e, n] of Oe) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
840
+ for (let [e, n] of je) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
805
841
  return t;
806
842
  }
807
- function H(e, t, n) {
808
- return typeof e == "string" ? V(e) : typeof e != "object" || !e ? e : n >= De ? 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)])));
843
+ function U(e, t, n) {
844
+ return typeof e == "string" ? H(e) : typeof e != "object" || !e ? e : n >= Ae ? M : 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 && N.test(e) ? M : U(r, t, n + 1)])));
809
845
  }
810
- function Le(e) {
846
+ function ze(e) {
811
847
  if (e != null && e !== "") return e.length > j ? `${e.slice(0, j)}... [truncated]` : e;
812
848
  }
813
- function Re(e) {
849
+ function Be(e) {
814
850
  let t = e.cause == null ? null : B(e.cause);
815
851
  if (e instanceof P) return [{
816
852
  data: e.data,
@@ -829,25 +865,25 @@ function Re(e) {
829
865
  }, t] : [{
830
866
  data: n,
831
867
  locator: "",
832
- message: Pe(e),
868
+ message: Le(e),
833
869
  name: "Error",
834
870
  stack: void 0
835
871
  }, null];
836
872
  }
837
873
  //#endregion
838
874
  //#region src/component/module/presenter/presenterConfig.schema.ts
839
- var ze = T([
875
+ var Ve = T([
840
876
  "list",
841
877
  "render",
842
878
  "setColorMode"
843
- ]), Be = /* @__PURE__ */ b({
879
+ ]), He = /* @__PURE__ */ b({
844
880
  ...k,
845
881
  typeId: /* @__PURE__ */ h("presenter"),
846
- actionNames: /* @__PURE__ */ p(ze),
882
+ actionNames: /* @__PURE__ */ p(Ve),
847
883
  presentations: /* @__PURE__ */ p(D)
848
- }), Ve = "https://engine-eu.dpuse.app/presenters";
849
- async function He(e, t, n, r) {
850
- let i = e.id, a = `${Ve}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
884
+ }), Ue = "https://engine-eu.dpuse.app/presenters";
885
+ async function We(e, t, n, r) {
886
+ let i = e.id, a = `${Ue}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
851
887
  try {
852
888
  return new (await (import(
853
889
  /* @vite-ignore */
@@ -864,8 +900,8 @@ async function He(e, t, n, r) {
864
900
  }
865
901
  //#endregion
866
902
  //#region src/component/module/tool/index.ts
867
- var Ue = "https://engine-eu.dpuse.app/tools";
868
- async function We(e, t) {
903
+ var Ge = "https://engine-eu.dpuse.app/tools";
904
+ async function Ke(e, t) {
869
905
  let n = `dpuse-tool-${t}`, r = e.find((e) => e.id === n);
870
906
  if (!r) {
871
907
  let r = {
@@ -874,7 +910,7 @@ async function We(e, t) {
874
910
  };
875
911
  throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
876
912
  }
877
- let i = `${Ue}/${t}_v${r.version}/${n}.es.js`;
913
+ let i = `${Ge}/${t}_v${r.version}/${n}.es.js`;
878
914
  try {
879
915
  return new (await (import(
880
916
  /* @vite-ignore */
@@ -891,7 +927,7 @@ async function We(e, t) {
891
927
  }
892
928
  //#endregion
893
929
  //#region src/encoding/index.ts
894
- var Ge = {
930
+ var qe = {
895
931
  arabic: {
896
932
  id: "arabic",
897
933
  label: {
@@ -1039,7 +1075,7 @@ var Ge = {
1039
1075
  es: "Occidental"
1040
1076
  }
1041
1077
  }
1042
- }, Ke = {
1078
+ }, Je = {
1043
1079
  ascii: {
1044
1080
  id: "ascii",
1045
1081
  groupId: null,
@@ -1470,16 +1506,16 @@ var Ge = {
1470
1506
  groupId: "baltic",
1471
1507
  decoderId: "windows-1257"
1472
1508
  }
1473
- }, U = Ge, W = Ke;
1474
- function G(e) {
1475
- return Object.hasOwn(W, e);
1509
+ }, W = qe, G = Je;
1510
+ function K(e) {
1511
+ return Object.hasOwn(G, e);
1476
1512
  }
1477
- function qe(e) {
1478
- return G(e) ? W[e].decoderId ?? e : e;
1513
+ function Ye(e) {
1514
+ return K(e) ? G[e].decoderId ?? e : e;
1479
1515
  }
1480
- function Je(e = "en") {
1481
- return Array.from(Object.values(W), ({ decoderId: t, groupId: n, id: r }) => {
1482
- let i = n == null ? "" : Ye(n, e);
1516
+ function Xe(e = "en") {
1517
+ return Array.from(Object.values(G), ({ decoderId: t, groupId: n, id: r }) => {
1518
+ let i = n == null ? "" : Ze(n, e);
1483
1519
  return {
1484
1520
  id: r,
1485
1521
  groupLabel: i,
@@ -1489,13 +1525,13 @@ function Je(e = "en") {
1489
1525
  };
1490
1526
  }).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.label.localeCompare(n.label, e));
1491
1527
  }
1492
- function Ye(e, t) {
1493
- let n = U[e].label;
1528
+ function Ze(e, t) {
1529
+ let n = W[e].label;
1494
1530
  return n[t] ?? n.en ?? e;
1495
1531
  }
1496
1532
  //#endregion
1497
1533
  //#region src/locale/index.ts
1498
- function Xe(e, t) {
1534
+ function Qe(e, t) {
1499
1535
  return {
1500
1536
  ...e,
1501
1537
  label: e.label[t] ?? e.id,
@@ -1503,7 +1539,7 @@ function Xe(e, t) {
1503
1539
  verb: e.verb?.[t] ?? void 0
1504
1540
  };
1505
1541
  }
1506
- function Ze(e, t, n = !1) {
1542
+ function $e(e, t, n = !1) {
1507
1543
  let r = e.map((e) => ({
1508
1544
  ...e,
1509
1545
  label: e.label[t] ?? e.id,
@@ -1512,7 +1548,7 @@ function Ze(e, t, n = !1) {
1512
1548
  }));
1513
1549
  return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
1514
1550
  }
1515
- function Qe(e, t) {
1551
+ function et(e, t) {
1516
1552
  return {
1517
1553
  ...e,
1518
1554
  label: e.label[t] ?? e.id,
@@ -1521,20 +1557,20 @@ function Qe(e, t) {
1521
1557
  }
1522
1558
  //#endregion
1523
1559
  //#region src/utilities/index.ts
1524
- var K = "en", q = [
1560
+ var q = "en", J = [
1525
1561
  ["day", 864e5],
1526
1562
  ["hour", 36e5],
1527
1563
  ["minute", 6e4],
1528
1564
  ["second", 1e3],
1529
1565
  ["millisecond", 1]
1530
- ], $e = [
1566
+ ], tt = [
1531
1567
  ["byte", 1],
1532
1568
  ["kilobyte", 1024],
1533
1569
  ["megabyte", 1048576],
1534
1570
  ["gigabyte", 1073741824],
1535
1571
  ["terabyte", 1099511627776]
1536
- ], J = /* @__PURE__ */ new Map(), Y = /* @__PURE__ */ new Map();
1537
- function X(e, t = 2, n = t, r = K) {
1572
+ ], Y = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map();
1573
+ function Z(e, t = 2, n = t, r = q) {
1538
1574
  return e == null ? "" : $(r, {
1539
1575
  localeMatcher: "best fit",
1540
1576
  maximumFractionDigits: t,
@@ -1544,18 +1580,18 @@ function X(e, t = 2, n = t, r = K) {
1544
1580
  useGrouping: !0
1545
1581
  }).format(e);
1546
1582
  }
1547
- function Z(e, t = K) {
1548
- return X(e, 0, 0, t);
1583
+ function nt(e, t = q) {
1584
+ return Z(e, 0, 0, t);
1549
1585
  }
1550
- function et(e, t = 1, n = K) {
1586
+ function rt(e, t = 1, n = q) {
1551
1587
  return e == null || !Number.isFinite(e) ? "" : $(n, {
1552
1588
  maximumFractionDigits: t,
1553
1589
  notation: "compact"
1554
1590
  }).format(e);
1555
1591
  }
1556
- function tt(e, t = 1, n = K) {
1592
+ function it(e, t = 1, n = q) {
1557
1593
  if (e == null || !Number.isFinite(e)) return "";
1558
- let [r, i] = $e.find(([, n]) => ct(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
1594
+ let [r, i] = tt.find(([, n]) => dt(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["terabyte", 1099511627776];
1559
1595
  return $(n, {
1560
1596
  maximumFractionDigits: i === 1 ? 0 : t,
1561
1597
  style: "unit",
@@ -1563,9 +1599,9 @@ function tt(e, t = 1, n = K) {
1563
1599
  unitDisplay: i === 1 ? "long" : "short"
1564
1600
  }).format(e / i);
1565
1601
  }
1566
- function nt(e, t = "millisecond", n = K) {
1602
+ function at(e, t = "millisecond", n = q) {
1567
1603
  if (e == null || !Number.isFinite(e)) return "";
1568
- 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 = [];
1604
+ let r = Math.round(Math.abs(e)), i = J.findIndex(([, e]) => r >= e), a = i === -1 ? J.length - 1 : i, o = J.findIndex(([e]) => e === t), s = J.slice(a, Math.max(o, a) + 1), c = [];
1569
1605
  for (let [t, i] of s) {
1570
1606
  let a = Math.floor(r / i);
1571
1607
  if (a === 0 && c.length > 0) continue;
@@ -1577,19 +1613,19 @@ function nt(e, t = "millisecond", n = K) {
1577
1613
  unitDisplay: "short"
1578
1614
  }).format(o));
1579
1615
  }
1580
- return st(n).format(c);
1616
+ return ut(n).format(c);
1581
1617
  }
1582
- function rt(e) {
1618
+ function ot(e) {
1583
1619
  if (!e) return;
1584
1620
  let t = Q(e);
1585
1621
  return t === void 0 ? e : e.slice(0, t);
1586
1622
  }
1587
- function it(e) {
1623
+ function st(e) {
1588
1624
  if (!e) return;
1589
1625
  let t = Q(e);
1590
1626
  return t === void 0 ? void 0 : e.slice(t + 1);
1591
1627
  }
1592
- function at(e) {
1628
+ function ct(e) {
1593
1629
  switch (e?.toLowerCase()) {
1594
1630
  case "csv": return "text/csv";
1595
1631
  case "tab":
@@ -1599,7 +1635,7 @@ function at(e) {
1599
1635
  default: return "application/octet-stream";
1600
1636
  }
1601
1637
  }
1602
- function ot(e) {
1638
+ function lt(e) {
1603
1639
  switch (e) {
1604
1640
  case "Edm.Boolean": return "boolean";
1605
1641
  case "Edm.Byte":
@@ -1624,20 +1660,20 @@ function Q(e) {
1624
1660
  let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
1625
1661
  return n > t && n < e.length - 1 ? n : void 0;
1626
1662
  }
1627
- function st(e) {
1628
- let t = J.get(e);
1663
+ function ut(e) {
1664
+ let t = Y.get(e);
1629
1665
  return t || (t = new Intl.ListFormat(e, {
1630
1666
  style: "narrow",
1631
1667
  type: "unit"
1632
- }), J.set(e, t)), t;
1668
+ }), Y.set(e, t)), t;
1633
1669
  }
1634
1670
  function $(e, t) {
1635
- let n = `${e}|${JSON.stringify(t)}`, r = Y.get(n);
1636
- return r || (r = new Intl.NumberFormat(e, t), Y.set(n, r)), r;
1671
+ let n = `${e}|${JSON.stringify(t)}`, r = X.get(n);
1672
+ return r || (r = new Intl.NumberFormat(e, t), X.set(n, r)), r;
1637
1673
  }
1638
- function ct(e, t) {
1674
+ function dt(e, t) {
1639
1675
  let n = 10 ** t;
1640
1676
  return Math.round(e * n) / n;
1641
1677
  }
1642
1678
  //#endregion
1643
- export { I as APIError, F as AppError, R as ConnectorError, e as DEFAULT_LOCALE_ID, U as ENCODING_GROUP_CONFIG_MAP, W as ENCODING_TYPE_CONFIG_MAP, L as EngineError, z as FetchError, le as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, ke as buildFetchError, oe as componentInstanceConfigSchema, Ae as concatenateSerialisedErrorMessages, ge as connectorConfigSchema, Se as constructConnectorCategoryConfig, Ce as constructConnectorUsageConfig, ot as convertODataTypeIdToUsageTypeId, Ee as cookbookConfigSchema, n as createLabelMap, xe as determineConnectorUsageId, it as extractExtensionFromPath, rt as extractPathWithoutExtension, X as formatNumberAsDecimalNumber, nt as formatNumberAsDuration, et as formatNumberAsSize, tt as formatNumberAsStorageSize, Z as formatNumberAsWholeNumber, ce as getComponentStatus, we as getConnectorActionsTable, Je as getEncodingTypeConfigs, je as ignoreErrors, G as isEncodingTypeId, He as loadPresenter, We as loadTool, Xe as localiseConfig, Ze as localiseConfigs, Qe as localiseReference, at as lookupMimeTypeForExtension, B as normalizeToError, Be as presenterConfigSchema, qe as resolveDecoderId, r as resolveLabel, Me as serialiseError, Ne as unserialiseError };
1679
+ export { I as APIError, F as AppError, R as ConnectorError, e as DEFAULT_LOCALE_ID, W as ENCODING_GROUP_CONFIG_MAP, G as ENCODING_TYPE_CONFIG_MAP, L as EngineError, z as FetchError, le as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, Me as buildFetchError, oe as componentInstanceConfigSchema, Ne as concatenateSerialisedErrorMessages, _e as connectorConfigSchema, we as constructConnectorCategoryConfig, Te as constructConnectorItemTypeConfig, Ee as constructConnectorUsageConfig, lt as convertODataTypeIdToUsageTypeId, ke as cookbookConfigSchema, n as createLabelMap, Ce as determineConnectorUsageId, st as extractExtensionFromPath, ot as extractPathWithoutExtension, Z as formatNumberAsDecimalNumber, at as formatNumberAsDuration, rt as formatNumberAsSize, it as formatNumberAsStorageSize, nt as formatNumberAsWholeNumber, ce as getComponentStatus, De as getConnectorActionsTable, Xe as getEncodingTypeConfigs, Pe as ignoreErrors, K as isEncodingTypeId, We as loadPresenter, Ke as loadTool, Qe as localiseConfig, $e as localiseConfigs, et as localiseReference, ct as lookupMimeTypeForExtension, B as normalizeToError, He as presenterConfigSchema, Ye as resolveDecoderId, r as resolveLabel, Fe as serialiseError, Ie as unserialiseError };