@dpuse/dpuse-shared 1.0.220 → 1.0.221

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.
@@ -839,9 +839,16 @@ var he = A([
839
839
  itemTypeId: ve,
840
840
  usage: /* @__PURE__ */ y(be),
841
841
  usageId: /* @__PURE__ */ y(ye)
842
- }), Ce = 2048, N = "[REDACTED]", we = 10, Te = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Ee = [
842
+ }), Ce = /* @__PURE__ */ new Set([
843
+ "APIError",
844
+ "AppError",
845
+ "ConnectorError",
846
+ "DPUseError",
847
+ "EngineError",
848
+ "FetchError"
849
+ ]), we = 2048, N = "[REDACTED]", Te = 10, Ee = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, De = [
843
850
  [/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${N}`],
844
- [/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => Te.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],
851
+ [/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => Ee.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],
845
852
  [/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => N],
846
853
  [/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => N],
847
854
  [/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => N]
@@ -855,11 +862,11 @@ var he = A([
855
862
  constructor(e, t, n, r) {
856
863
  super(e, t, n, r), this.name = "AppError";
857
864
  }
858
- }, De = class extends P {
865
+ }, Oe = class extends P {
859
866
  constructor(e, t, n, r) {
860
867
  super(e, t, n, r), this.name = "APIError";
861
868
  }
862
- }, Oe = class extends P {
869
+ }, ke = class extends P {
863
870
  constructor(e, t, n, r) {
864
871
  super(e, t, n, r), this.name = "EngineError";
865
872
  }
@@ -872,19 +879,19 @@ var he = A([
872
879
  super(e, t, n, r), this.name = "FetchError";
873
880
  }
874
881
  };
875
- async function ke(e, t, n) {
882
+ async function Ae(e, t, n) {
876
883
  let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
877
884
  try {
878
885
  a = await e.text();
879
886
  } catch (e) {
880
887
  a = `<body unavailable: ${R(e).message}>`;
881
888
  }
882
- return new L(i, n, { body: Le(a) });
889
+ return new L(i, n, { body: Re(a) });
883
890
  }
884
- function Ae(e) {
891
+ function je(e) {
885
892
  return e.map((e) => e.message).join(" ");
886
893
  }
887
- function je(e) {
894
+ function Me(e) {
888
895
  try {
889
896
  e();
890
897
  } catch {}
@@ -901,24 +908,24 @@ function R(e) {
901
908
  }
902
909
  return /* @__PURE__ */ Error("Unknown error");
903
910
  }
904
- function Me(e) {
911
+ function Ne(e) {
905
912
  let t = /* @__PURE__ */ new Set(), n = [], r = R(e);
906
913
  for (; r != null && !t.has(r);) {
907
914
  t.add(r);
908
- let [e, i] = Re(r), a = Ie(e);
915
+ let [e, i] = Be(r), a = Le(e);
909
916
  /(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
910
917
  }
911
918
  return n;
912
919
  }
913
- function Ne(e) {
920
+ function Pe(e) {
914
921
  let t;
915
922
  for (let n of e.toReversed()) {
916
- let e = Fe(n, t);
923
+ let e = Ie(n, t);
917
924
  n.stack !== void 0 && (e.stack = n.stack), t = e;
918
925
  }
919
926
  return t ?? /* @__PURE__ */ Error("No error to unserialise.");
920
927
  }
921
- function Pe(e) {
928
+ function Fe(e) {
922
929
  let t;
923
930
  try {
924
931
  t = JSON.stringify(e);
@@ -927,12 +934,12 @@ function Pe(e) {
927
934
  }
928
935
  return t === "" && (t = "Unknown error"), t;
929
936
  }
930
- function Fe(e, t) {
937
+ function Ie(e, t) {
931
938
  switch (e.name) {
932
- case "APIError": return new De(e.message, e.locator, e.data, { cause: t });
939
+ case "APIError": return new Oe(e.message, e.locator, e.data, { cause: t });
933
940
  case "AppError": return new F(e.message, e.locator, e.data, { cause: t });
934
941
  case "ConnectorError": return new I(e.message, e.locator, e.data, { cause: t });
935
- case "EngineError": return new Oe(e.message, e.locator, e.data, { cause: t });
942
+ case "EngineError": return new ke(e.message, e.locator, e.data, { cause: t });
936
943
  case "FetchError": return new L(e.message, e.locator, e.data, { cause: t });
937
944
  default: {
938
945
  let n = e.name;
@@ -942,7 +949,7 @@ function Fe(e, t) {
942
949
  }
943
950
  }
944
951
  }
945
- function Ie(e) {
952
+ function Le(e) {
946
953
  let { data: t, message: n, stack: r } = e;
947
954
  return {
948
955
  ...e,
@@ -953,18 +960,21 @@ function Ie(e) {
953
960
  }
954
961
  function z(e) {
955
962
  let t = e;
956
- for (let [e, n] of Ee) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
963
+ for (let [e, n] of De) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
957
964
  return t;
958
965
  }
959
966
  function B(e, t, n) {
960
- return typeof e == "string" ? z(e) : typeof e != "object" || !e ? e : n >= we ? N : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => B(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && Te.test(e) ? N : B(r, t, n + 1)])));
961
- }
962
- function Le(e) {
963
- if (e != null && e !== "") return e.length > Ce ? `${e.slice(0, Ce)}... [truncated]` : e;
967
+ return typeof e == "string" ? z(e) : typeof e != "object" || !e ? e : n >= Te ? N : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => B(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && Ee.test(e) ? N : B(r, t, n + 1)])));
964
968
  }
965
969
  function Re(e) {
970
+ if (e != null && e !== "") return e.length > we ? `${e.slice(0, we)}... [truncated]` : e;
971
+ }
972
+ function ze(e) {
973
+ return e instanceof P || Ce.has(e.name) && typeof e.locator == "string";
974
+ }
975
+ function Be(e) {
966
976
  let t = e.cause == null ? null : R(e.cause);
967
- if (e instanceof P) return [{
977
+ if (ze(e)) return [{
968
978
  data: e.data,
969
979
  locator: e.locator,
970
980
  message: e.message,
@@ -981,13 +991,13 @@ function Re(e) {
981
991
  }, t] : [{
982
992
  data: n,
983
993
  locator: "",
984
- message: Pe(e),
994
+ message: Fe(e),
985
995
  name: "Error",
986
996
  stack: void 0
987
997
  }, null];
988
998
  }
989
999
  // src/encoding/index.ts
990
- var ze = {
1000
+ var Ve = {
991
1001
  arabic: {
992
1002
  id: "arabic",
993
1003
  label: {
@@ -1142,7 +1152,7 @@ var ze = {
1142
1152
  es: "Occidental"
1143
1153
  }
1144
1154
  }
1145
- }, Be = {
1155
+ }, He = {
1146
1156
  "armscii-8": {
1147
1157
  id: "armscii-8",
1148
1158
  groupId: "armenian",
@@ -1934,16 +1944,16 @@ var ze = {
1934
1944
  textDecoderId: "windows-1257",
1935
1945
  iconvLiteDecoderId: "windows1257"
1936
1946
  }
1937
- }, Ve = ze, V = Be;
1938
- function He(e) {
1947
+ }, Ue = Ve, V = He;
1948
+ function We(e) {
1939
1949
  return Object.hasOwn(V, e);
1940
1950
  }
1941
- function Ue(e) {
1942
- return He(e) ? V[e].textDecoderId ?? e : e;
1951
+ function Ge(e) {
1952
+ return We(e) ? V[e].textDecoderId ?? e : e;
1943
1953
  }
1944
- function We(e = "en") {
1954
+ function Ke(e = "en") {
1945
1955
  return Array.from(Object.values(V), ({ groupId: t, iconvLiteDecoderId: n, id: r, isDetectable: i, textDecoderId: a }) => {
1946
- let o = t == null ? "" : Ge(t, e);
1956
+ let o = t == null ? "" : qe(t, e);
1947
1957
  return {
1948
1958
  id: r,
1949
1959
  groupLabel: o,
@@ -1955,11 +1965,11 @@ function We(e = "en") {
1955
1965
  };
1956
1966
  }).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.id.localeCompare(n.id, e, { numeric: !0 }));
1957
1967
  }
1958
- function Ge(e, t) {
1959
- let n = Ve[e].label;
1968
+ function qe(e, t) {
1969
+ let n = Ue[e].label;
1960
1970
  return n[t] ?? n.en ?? e;
1961
1971
  }
1962
- var Ke = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ D(/* @__PURE__ */ h(A([
1972
+ var Je = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ D(/* @__PURE__ */ h(A([
1963
1973
  "arrow",
1964
1974
  "avro",
1965
1975
  "dtv",
@@ -1972,15 +1982,15 @@ var Ke = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ D(/* @__PURE__ */ h(
1972
1982
  "sqlite",
1973
1983
  "xlsx",
1974
1984
  "xml"
1975
- ])), /* @__PURE__ */ f(1)) }), qe = /* @__PURE__ */ h(/* @__PURE__ */ w()), Je = /* @__PURE__ */ C({
1985
+ ])), /* @__PURE__ */ f(1)) }), Ye = /* @__PURE__ */ h(/* @__PURE__ */ w()), Xe = /* @__PURE__ */ C({
1976
1986
  ...M,
1977
1987
  typeId: /* @__PURE__ */ _("tool"),
1978
- actionNames: /* @__PURE__ */ x(qe),
1979
- parser: /* @__PURE__ */ x(Ke)
1988
+ actionNames: /* @__PURE__ */ x(Ye),
1989
+ parser: /* @__PURE__ */ x(Je)
1980
1990
  });
1981
1991
  // src/component/module/tool/delimitedText.ts
1982
- async function Ye(e, t, n) {
1983
- let r = Xe(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Ze(e, t.valueDelimiterIds, t.isComplete, n);
1992
+ async function Ze(e, t, n) {
1993
+ let r = Qe(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await $e(e, t.valueDelimiterIds, t.isComplete, n);
1984
1994
  return {
1985
1995
  issues: i,
1986
1996
  parsedRecords: a,
@@ -1988,16 +1998,16 @@ async function Ye(e, t, n) {
1988
1998
  valueDelimiterId: o
1989
1999
  };
1990
2000
  }
1991
- function Xe(e) {
2001
+ function Qe(e) {
1992
2002
  let t = (e.match(/\r\n/g) ?? []).length, n = (e.match(/(?<!\r)\n/g) ?? []).length, r = (e.match(/\r(?!\n)/g) ?? []).length;
1993
2003
  return t >= n && t >= r ? "\r\n" : n >= t && n >= r ? "\n" : r >= t && r >= n ? "\r" : "\n";
1994
2004
  }
1995
- async function Ze(e, t, n, r) {
2005
+ async function $e(e, t, n, r) {
1996
2006
  let i, a, o, s = [], c, l = !1;
1997
2007
  for (let u of t) {
1998
2008
  let { issues: t, records: d } = await r(e, u, n);
1999
2009
  if (t.length > 0) {
2000
- c = Qe(c, {
2010
+ c = et(c, {
2001
2011
  delimiter: u,
2002
2012
  issues: t,
2003
2013
  records: d
@@ -2005,7 +2015,7 @@ async function Ze(e, t, n, r) {
2005
2015
  continue;
2006
2016
  }
2007
2017
  if (l = !0, d.length === 0) continue;
2008
- let { averageValueCount: f, sumOfValueCountDiffs: p } = $e(d);
2018
+ let { averageValueCount: f, sumOfValueCountDiffs: p } = tt(d);
2009
2019
  (a === void 0 || a <= 1 || p <= (o ?? 0)) && (a === void 0 || f > a) && (i = u, a = f, o = p, s = d);
2010
2020
  }
2011
2021
  if (!l && c != null) {
@@ -2013,19 +2023,19 @@ async function Ze(e, t, n, r) {
2013
2023
  return {
2014
2024
  issues: t,
2015
2025
  parsedRecords: n,
2016
- valueDelimiterId: et(n) ? e : void 0
2026
+ valueDelimiterId: nt(n) ? e : void 0
2017
2027
  };
2018
2028
  }
2019
2029
  return {
2020
2030
  issues: [],
2021
2031
  parsedRecords: s,
2022
- valueDelimiterId: i != null && et(s) ? i : void 0
2032
+ valueDelimiterId: i != null && nt(s) ? i : void 0
2023
2033
  };
2024
2034
  }
2025
- function Qe(e, t) {
2035
+ function et(e, t) {
2026
2036
  return e == null || t.issues.length < e.issues.length ? t : e;
2027
2037
  }
2028
- function $e(e) {
2038
+ function tt(e) {
2029
2039
  let t = 0, n = 0, r;
2030
2040
  for (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;
2031
2041
  return {
@@ -2033,14 +2043,14 @@ function $e(e) {
2033
2043
  sumOfValueCountDiffs: n
2034
2044
  };
2035
2045
  }
2036
- function et(e) {
2046
+ function nt(e) {
2037
2047
  let t = /* @__PURE__ */ new Map();
2038
2048
  for (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);
2039
2049
  let [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];
2040
2050
  return n > 1 && r * 2 > e.length;
2041
2051
  }
2042
2052
  // src/component/module/tool/index.ts
2043
- var tt = "https://engine-eu.dpuse.app/tools", nt = { dtv: "dpuse-tool-rust-csv-core-parser" }, H = "dpuse-tool-";
2053
+ var rt = "https://engine-eu.dpuse.app/tools", it = { dtv: "dpuse-tool-rust-csv-core-parser" }, H = "dpuse-tool-";
2044
2054
  function U(e, t) {
2045
2055
  return e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, "en"));
2046
2056
  }
@@ -2053,10 +2063,10 @@ function W(e, t, n) {
2053
2063
  };
2054
2064
  throw new F(`No tool reads the '${t}' data format.`, "dpuse-shared.component.module.tool.resolveParserToolConfig", n);
2055
2065
  }
2056
- let a = nt[t];
2066
+ let a = it[t];
2057
2067
  return r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;
2058
2068
  }
2059
- async function rt(e, t) {
2069
+ async function at(e, t) {
2060
2070
  let n = `${H}${t}`, r = e.find((e) => e.id === n);
2061
2071
  if (!r) {
2062
2072
  let r = {
@@ -2065,7 +2075,7 @@ async function rt(e, t) {
2065
2075
  };
2066
2076
  throw new F(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
2067
2077
  }
2068
- let i = `${tt}/${t}_v${r.version}/${n}.es.js`;
2078
+ let i = `${rt}/${t}_v${r.version}/${n}.es.js`;
2069
2079
  try {
2070
2080
  return new (await (import(
2071
2081
  /* @vite-ignore */
@@ -2081,8 +2091,8 @@ async function rt(e, t) {
2081
2091
  }
2082
2092
  }
2083
2093
  // src/component/module/connector/objectParsing.ts
2084
- var it = "\n", G = ",", K = new Set(de.filter(({ isStructured: e }) => e).map(({ id: e }) => e)), at = 13, q = 10, ot = 34, J = 1048576;
2085
- async function st(e) {
2094
+ var ot = "\n", G = ",", K = new Set(de.filter(({ isStructured: e }) => e).map(({ id: e }) => e)), st = 13, q = 10, ct = 34, J = 1048576;
2095
+ async function lt(e) {
2086
2096
  let { asAt: t, declaredColumnConfigs: n, declaredReadingConfig: r, filePreview: i, inferDataTypes: a, readingChoiceConfig: o, startedAt: s, toolConfigs: c } = e, { isComplete: l, text: u } = i, d = r != null, f = i.bytes.length, p = {
2087
2097
  decodedEncodingId: i.decodedEncodingId,
2088
2098
  replacementCharacterCount: i.replacementCharacterCount
@@ -2092,7 +2102,7 @@ async function st(e) {
2092
2102
  encodingSourceId: r?.encodingId == null ? i.encodingSourceId : void 0
2093
2103
  };
2094
2104
  if (f === 0) return {
2095
- contentAuditConfig: pt({
2105
+ contentAuditConfig: ht({
2096
2106
  asAt: t,
2097
2107
  columns: [],
2098
2108
  isComplete: !0,
@@ -2116,7 +2126,7 @@ async function st(e) {
2116
2126
  hasHeaders: !1,
2117
2127
  parsedRecords: [],
2118
2128
  parserId: void 0,
2119
- recordDelimiterId: it,
2129
+ recordDelimiterId: ot,
2120
2130
  size: 0,
2121
2131
  text: void 0,
2122
2132
  valueDelimiterId: G
@@ -2129,17 +2139,17 @@ async function st(e) {
2129
2139
  hasHeaders: !1,
2130
2140
  isDeclared: d,
2131
2141
  parserId: void 0,
2132
- recordDelimiterId: it,
2142
+ recordDelimiterId: ot,
2133
2143
  valueDelimiterId: G
2134
2144
  },
2135
2145
  encodingCandidates: m
2136
2146
  };
2137
- let g = r?.dataFormatId ?? i.dataFormatId, _ = r?.valueDelimiterId, v = await yt({
2147
+ let g = r?.dataFormatId ?? i.dataFormatId, _ = r?.valueDelimiterId, v = await xt({
2138
2148
  dataFormatId: g,
2139
2149
  filePreview: i,
2140
2150
  parserId: void 0,
2141
2151
  toolConfigs: c
2142
- }), y = await vt({
2152
+ }), y = await bt({
2143
2153
  dataFormatId: g,
2144
2154
  isComplete: l,
2145
2155
  parserId: void 0,
@@ -2148,12 +2158,12 @@ async function st(e) {
2148
2158
  text: u,
2149
2159
  toolConfigs: c,
2150
2160
  valueDelimiterId: _
2151
- }), b = o?.dataFormatId ?? g, x = o?.dataFormatId != null || o?.parserId != null, S = x || o?.valueDelimiterId != null || o?.structurePath != null, C = x ? await yt({
2161
+ }), b = o?.dataFormatId ?? g, x = o?.dataFormatId != null || o?.parserId != null, S = x || o?.valueDelimiterId != null || o?.structurePath != null, C = x ? await xt({
2152
2162
  dataFormatId: b,
2153
2163
  filePreview: i,
2154
2164
  parserId: o.parserId,
2155
2165
  toolConfigs: c
2156
- }) : v, w = S ? await vt({
2166
+ }) : v, w = S ? await bt({
2157
2167
  dataFormatId: b,
2158
2168
  isComplete: l,
2159
2169
  parserId: o.parserId,
@@ -2164,7 +2174,7 @@ async function st(e) {
2164
2174
  valueDelimiterId: _ ?? o.valueDelimiterId
2165
2175
  }) : y, T = w?.parseTextResult.parsedRecords ?? [], E = w?.parseTextResult.hasHeaders ?? r?.hasHeaders, D = w == null ? void 0 : a(T, E, n), O = S && y != null ? a(y.parseTextResult.parsedRecords, y.parseTextResult.hasHeaders ?? r?.hasHeaders, n) : D;
2166
2176
  return {
2167
- contentAuditConfig: pt({
2177
+ contentAuditConfig: ht({
2168
2178
  asAt: t,
2169
2179
  columns: D?.columnConfigs ?? [],
2170
2180
  isComplete: l,
@@ -2201,8 +2211,8 @@ async function st(e) {
2201
2211
  structureIndex: C
2202
2212
  };
2203
2213
  }
2204
- async function* ct(e) {
2205
- let { options: t, signal: n, stream: r, toolConfigs: i } = e, { encodingId: a, valueDelimiterId: o } = ft(t), { parser: s } = await Y(i, t.dataFormatId, t.parserId), { recordCount: c } = yield* s.parseStream(r, {
2214
+ async function* ut(e) {
2215
+ let { options: t, signal: n, stream: r, toolConfigs: i } = e, { encodingId: a, valueDelimiterId: o } = mt(t), { parser: s } = await Y(i, t.dataFormatId, t.parserId), { recordCount: c } = yield* s.parseStream(r, {
2206
2216
  abortSignal: n,
2207
2217
  chunkSize: t.chunkSize,
2208
2218
  dataFormatId: t.dataFormatId,
@@ -2212,8 +2222,8 @@ async function* ct(e) {
2212
2222
  });
2213
2223
  return { recordCount: c };
2214
2224
  }
2215
- async function lt(e) {
2216
- let { constructColumnAuditor: t, declaredColumnConfigs: n, onProgress: r, options: i, signal: a, stream: o, toolConfigs: s } = e, { encodingId: c, valueDelimiterId: l } = ft(i), u = Date.now(), d = performance.now(), f = t(i.hasHeaders, n), { parser: p } = await Y(s, i.dataFormatId, i.parserId), m = _t(o), h = K.has(i.dataFormatId), g = h ? gt(m.stream) : mt(m.stream, {
2225
+ async function dt(e) {
2226
+ let { constructColumnAuditor: t, declaredColumnConfigs: n, onProgress: r, options: i, signal: a, stream: o, toolConfigs: s } = e, { encodingId: c, valueDelimiterId: l } = mt(i), u = Date.now(), d = performance.now(), f = t(i.hasHeaders, n), { parser: p } = await Y(s, i.dataFormatId, i.parserId), m = yt(o), h = K.has(i.dataFormatId), g = h ? vt(m.stream) : gt(m.stream, {
2217
2227
  byteLimit: i.byteLimit,
2218
2228
  encodingId: c,
2219
2229
  stopSignal: i.stopSignal
@@ -2253,7 +2263,7 @@ async function lt(e) {
2253
2263
  hasHeaders: x
2254
2264
  };
2255
2265
  }
2256
- async function ut(e) {
2266
+ async function ft(e) {
2257
2267
  let { onProgress: t, options: n, signal: r, stream: i, toolConfigs: a } = e, o = await X(a, n.dataFormatId, n.parserId), s = n.encodingId ?? "utf-8";
2258
2268
  return await o.buildStructureIndex(i, {
2259
2269
  abortSignal: r,
@@ -2264,7 +2274,7 @@ async function ut(e) {
2264
2274
  onProgress: t
2265
2275
  });
2266
2276
  }
2267
- async function dt(e) {
2277
+ async function pt(e) {
2268
2278
  let { options: t, signal: n, stream: r, toolConfigs: i } = e;
2269
2279
  return await (await X(i, t.dataFormatId, t.parserId)).listStructureEntries(r, {
2270
2280
  abortSignal: n,
@@ -2275,7 +2285,7 @@ async function dt(e) {
2275
2285
  path: t.structurePath
2276
2286
  });
2277
2287
  }
2278
- function ft(e) {
2288
+ function mt(e) {
2279
2289
  let t = e.valueDelimiterId ?? (K.has(e.dataFormatId) ? "" : void 0);
2280
2290
  if (t == null || e.encodingId == null) throw Error(`'${e.path}' has no encoding or value delimiter, which a parser needs to read it.`);
2281
2291
  return {
@@ -2283,7 +2293,7 @@ function ft(e) {
2283
2293
  valueDelimiterId: t
2284
2294
  };
2285
2295
  }
2286
- function pt(e) {
2296
+ function ht(e) {
2287
2297
  let { asAt: t, columns: n, isComplete: r, recordCount: i, size: a, startedAt: o } = e;
2288
2298
  return {
2289
2299
  asAt: t,
@@ -2299,8 +2309,8 @@ function pt(e) {
2299
2309
  sourceWaitDuration: void 0
2300
2310
  };
2301
2311
  }
2302
- function mt(e, t) {
2303
- let n = e.getReader(), r = ht(t.encodingId), i = 0, a = !1, o;
2312
+ function gt(e, t) {
2313
+ let n = e.getReader(), r = _t(t.encodingId), i = 0, a = !1, o;
2304
2314
  return {
2305
2315
  byteCount: () => i,
2306
2316
  isComplete: () => a,
@@ -2326,19 +2336,19 @@ function mt(e, t) {
2326
2336
  }, { highWaterMark: 0 })
2327
2337
  };
2328
2338
  }
2329
- function ht(e) {
2330
- let t = Ue(e), n = t.startsWith("utf-16"), r = n ? 2 : 1, i = +(t === "utf-16be"), a = !1;
2339
+ function _t(e) {
2340
+ let t = Ge(e), n = t.startsWith("utf-16"), r = n ? 2 : 1, i = +(t === "utf-16be"), a = !1;
2331
2341
  return (e, t, o) => {
2332
2342
  for (let s = 0; s < e.length; s++) {
2333
2343
  let c = e[s];
2334
- if ((c === ot || c === q || c === at) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {
2335
- if (c === ot) a = !a;
2344
+ if ((c === ct || c === q || c === st) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {
2345
+ if (c === ct) a = !a;
2336
2346
  else if (!a && s >= o && (c === q || e[s + r] !== q)) return s + r - i;
2337
2347
  }
2338
2348
  }
2339
2349
  };
2340
2350
  }
2341
- function gt(e) {
2351
+ function vt(e) {
2342
2352
  let t = e.getReader(), n = 0, r = !1;
2343
2353
  return {
2344
2354
  byteCount: () => n,
@@ -2354,7 +2364,7 @@ function gt(e) {
2354
2364
  }, { highWaterMark: 0 })
2355
2365
  };
2356
2366
  }
2357
- function _t(e) {
2367
+ function yt(e) {
2358
2368
  let t = e.getReader(), n = 0;
2359
2369
  return {
2360
2370
  stream: new ReadableStream({
@@ -2369,7 +2379,7 @@ function _t(e) {
2369
2379
  waitDuration: () => n
2370
2380
  };
2371
2381
  }
2372
- async function vt(e) {
2382
+ async function bt(e) {
2373
2383
  let { dataFormatId: t, isComplete: n, parserId: r, structureIndex: i, structurePath: a, text: o, toolConfigs: s, valueDelimiterId: c } = e;
2374
2384
  if (t == null || o == null || U(s, t).length === 0) return;
2375
2385
  let { parser: l, parserId: u } = await Y(s, t, r);
@@ -2413,7 +2423,7 @@ async function vt(e) {
2413
2423
  valueDelimiterId: p ? c ?? m.valueDelimiterId ?? G : m.valueDelimiterId
2414
2424
  };
2415
2425
  }
2416
- async function yt(e) {
2426
+ async function xt(e) {
2417
2427
  let { dataFormatId: t, filePreview: n, parserId: r, toolConfigs: i } = e;
2418
2428
  if (!(t != null && K.has(t) && U(i, t).length > 0 && W(i, t, r).actionNames?.includes("buildStructureIndex") === !0)) return;
2419
2429
  let a = await X(i, t, r), o = new Blob([n.bytes]).stream(), s = n.decodedEncodingId ?? "utf-8";
@@ -2429,7 +2439,7 @@ async function yt(e) {
2429
2439
  async function Y(e, t, n) {
2430
2440
  let r = W(e, t, n);
2431
2441
  return {
2432
- parser: await rt(e, r.id.slice(H.length)),
2442
+ parser: await at(e, r.id.slice(H.length)),
2433
2443
  parserId: r.id
2434
2444
  };
2435
2445
  }
@@ -2439,10 +2449,10 @@ async function X(e, t, n) {
2439
2449
  return r;
2440
2450
  }
2441
2451
  // src/component/module/connector/storeErrors.ts
2442
- function bt(e, t, n, r) {
2452
+ function St(e, t, n, r) {
2443
2453
  return new I(t, n, { storeErrorId: e }, r);
2444
2454
  }
2445
- function xt(e) {
2455
+ function Ct(e) {
2446
2456
  let t = /* @__PURE__ */ new Set();
2447
2457
  for (let n = e; n instanceof Error && !t.has(n); n = n.cause) {
2448
2458
  t.add(n);
@@ -2451,31 +2461,31 @@ function xt(e) {
2451
2461
  }
2452
2462
  }
2453
2463
  // src/component/module/connector/storePath.ts
2454
- var St = /^[\w-]+$/u;
2455
- function Ct(e) {
2464
+ var wt = /^[\w-]+$/u;
2465
+ function Tt(e) {
2456
2466
  if (!e.startsWith("/")) return {
2457
2467
  databaseName: void 0,
2458
2468
  tableName: e
2459
2469
  };
2460
2470
  let [, t, n, ...r] = e.split("/");
2461
- if (t == null || n == null || n === "" || r.length > 0 || !St.test(t)) throw Error(`Encountered invalid store path '${e}'.`);
2471
+ if (t == null || n == null || n === "" || r.length > 0 || !wt.test(t)) throw Error(`Encountered invalid store path '${e}'.`);
2462
2472
  return {
2463
2473
  databaseName: t,
2464
2474
  tableName: n
2465
2475
  };
2466
2476
  }
2467
2477
  // src/component/module/connector/storeValues.ts
2468
- function wt(e) {
2478
+ function Et(e) {
2469
2479
  return e.map((e) => ({
2470
- value: Tt(e),
2480
+ value: Dt(e),
2471
2481
  valueWasQuoted: !1
2472
2482
  }));
2473
2483
  }
2474
- function Tt(e) {
2484
+ function Dt(e) {
2475
2485
  return e == null ? null : e instanceof Date ? e.toISOString() : String(e);
2476
2486
  }
2477
2487
  // src/component/module/connector/webLock.ts
2478
- async function Et(e, t = {}) {
2488
+ async function Ot(e, t = {}) {
2479
2489
  let n = Promise.withResolvers(), r = { isGranted: !1 }, i = navigator.locks.request(e, t.takeOver === !0 ? { steal: !0 } : { ifAvailable: !0 }, (e) => {
2480
2490
  if (e == null) n.resolve(void 0);
2481
2491
  else return r.isGranted = !0, new Promise((e) => {
@@ -2492,16 +2502,16 @@ async function Et(e, t = {}) {
2492
2502
  o(), await a;
2493
2503
  };
2494
2504
  }
2495
- var Dt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({
2505
+ var kt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({
2496
2506
  format: /* @__PURE__ */ x(/* @__PURE__ */ w()),
2497
2507
  name: /* @__PURE__ */ w(),
2498
2508
  title: /* @__PURE__ */ x(/* @__PURE__ */ w()),
2499
2509
  type: /* @__PURE__ */ x(/* @__PURE__ */ w())
2500
- })) }), Ot = /* @__PURE__ */ v({
2510
+ })) }), At = /* @__PURE__ */ v({
2501
2511
  delimiter: /* @__PURE__ */ x(/* @__PURE__ */ w()),
2502
2512
  header: /* @__PURE__ */ x(/* @__PURE__ */ g()),
2503
2513
  headerRows: /* @__PURE__ */ x(/* @__PURE__ */ h(/* @__PURE__ */ b()))
2504
- }), kt = {
2514
+ }), jt = {
2505
2515
  boolean: {
2506
2516
  dataSubtypeId: void 0,
2507
2517
  dataTypeId: "boolean"
@@ -2534,18 +2544,18 @@ var Dt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({
2534
2544
  dataSubtypeId: "integer",
2535
2545
  dataTypeId: "numeric"
2536
2546
  }
2537
- }, At = {
2547
+ }, Mt = {
2538
2548
  email: "email",
2539
2549
  uri: "url",
2540
2550
  uuid: "uuid"
2541
2551
  };
2542
- function jt(e) {
2543
- let t = /* @__PURE__ */ O(Dt, e.schema);
2552
+ function Nt(e) {
2553
+ let t = /* @__PURE__ */ O(kt, e.schema);
2544
2554
  if (!t.success) throw new F("The table schema is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
2545
- let n = /* @__PURE__ */ O(Ot, e.dialect ?? {});
2555
+ let n = /* @__PURE__ */ O(At, e.dialect ?? {});
2546
2556
  if (!n.success) throw new F("The table dialect is not valid.", "dpuse-shared.component.module.connector.tableSchema.readTableSchema");
2547
2557
  let r = t.output.fields.map((e) => {
2548
- let t = Mt(e.type, e.format);
2558
+ let t = Pt(e.type, e.format);
2549
2559
  return {
2550
2560
  name: e.name,
2551
2561
  label: e.title,
@@ -2563,18 +2573,18 @@ function jt(e) {
2563
2573
  }
2564
2574
  };
2565
2575
  }
2566
- function Mt(e, t) {
2567
- let n = e == null ? void 0 : kt[e];
2576
+ function Pt(e, t) {
2577
+ let n = e == null ? void 0 : jt[e];
2568
2578
  return n == null ? {
2569
2579
  dataSubtypeId: void 0,
2570
2580
  dataTypeId: void 0
2571
2581
  } : t == null || n.dataTypeId !== "string" ? n : {
2572
- dataSubtypeId: At[t] ?? "plain",
2582
+ dataSubtypeId: Mt[t] ?? "plain",
2573
2583
  dataTypeId: "string"
2574
2584
  };
2575
2585
  }
2576
2586
  // src/component/module/connector/index.ts
2577
- var Nt = [
2587
+ var Ft = [
2578
2588
  {
2579
2589
  id: "application",
2580
2590
  label: {
@@ -2603,7 +2613,7 @@ var Nt = [
2603
2613
  es: "Almacén de Archivos"
2604
2614
  }
2605
2615
  }
2606
- ], Pt = [
2616
+ ], It = [
2607
2617
  {
2608
2618
  id: "apiEndpoint",
2609
2619
  label: {
@@ -2625,7 +2635,7 @@ var Nt = [
2625
2635
  es: "Tabla"
2626
2636
  }
2627
2637
  }
2628
- ], Ft = {
2638
+ ], Lt = {
2629
2639
  auditObjectContent: "Audit Object Content",
2630
2640
  closeStore: "Close Store",
2631
2641
  createObject: "Create Object",
@@ -2645,7 +2655,7 @@ var Nt = [
2645
2655
  removeRecords: "Remove Records",
2646
2656
  retrieveRecords: "Retrieve Records",
2647
2657
  upsertRecords: "Upsert Records"
2648
- }, It = [
2658
+ }, Rt = [
2649
2659
  {
2650
2660
  id: "bidirectional",
2651
2661
  label: {
@@ -2674,13 +2684,13 @@ var Nt = [
2674
2684
  es: "Desconocido"
2675
2685
  }
2676
2686
  }
2677
- ], Lt = /* @__PURE__ */ new Set([
2687
+ ], zt = /* @__PURE__ */ new Set([
2678
2688
  "createObject",
2679
2689
  "dropObject",
2680
2690
  "loadObjectRecords",
2681
2691
  "removeRecords",
2682
2692
  "upsertRecords"
2683
- ]), Rt = /* @__PURE__ */ new Set([
2693
+ ]), Bt = /* @__PURE__ */ new Set([
2684
2694
  "auditObjectContent",
2685
2695
  "findObject",
2686
2696
  "getInfo",
@@ -2693,13 +2703,13 @@ var Nt = [
2693
2703
  "queryRecords",
2694
2704
  "retrieveRecords"
2695
2705
  ]);
2696
- function zt(e) {
2706
+ function Vt(e) {
2697
2707
  let t = !1, n = !1;
2698
- for (let r of e) Rt.has(r) && (t = !0), Lt.has(r) && (n = !0);
2708
+ for (let r of e) Bt.has(r) && (t = !0), zt.has(r) && (n = !0);
2699
2709
  return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
2700
2710
  }
2701
- var Bt = (e, t = "en") => {
2702
- let i = Nt.find((t) => t.id === e);
2711
+ var Ht = (e, t = "en") => {
2712
+ let i = Ft.find((t) => t.id === e);
2703
2713
  return i ? {
2704
2714
  label: r(n(i.label), t) ?? i.id,
2705
2715
  description: ""
@@ -2707,8 +2717,8 @@ var Bt = (e, t = "en") => {
2707
2717
  label: e,
2708
2718
  description: ""
2709
2719
  };
2710
- }, Vt = (e, t = "en") => {
2711
- let i = Pt.find((t) => t.id === e);
2720
+ }, Ut = (e, t = "en") => {
2721
+ let i = It.find((t) => t.id === e);
2712
2722
  return i ? {
2713
2723
  label: r(n(i.label), t) ?? i.id,
2714
2724
  description: ""
@@ -2716,8 +2726,8 @@ var Bt = (e, t = "en") => {
2716
2726
  label: e,
2717
2727
  description: ""
2718
2728
  };
2719
- }, Ht = (e, t = "en") => {
2720
- let i = It.find((t) => t.id === e);
2729
+ }, Wt = (e, t = "en") => {
2730
+ let i = Rt.find((t) => t.id === e);
2721
2731
  return i ? {
2722
2732
  label: r(n(i.label), t) ?? i.id,
2723
2733
  description: ""
@@ -2726,36 +2736,36 @@ var Bt = (e, t = "en") => {
2726
2736
  description: ""
2727
2737
  };
2728
2738
  };
2729
- function Ut(e) {
2739
+ function Gt(e) {
2730
2740
  let t = new Set(e), n = "|Action|Supported|\n";
2731
2741
  n += "|:----|:-------:|\n";
2732
- for (let e of Object.keys(Ft)) n += `| ${Ft[e]} | ${t.has(e) ? "✓" : ""} |\n`;
2742
+ for (let e of Object.keys(Lt)) n += `| ${Lt[e]} | ${t.has(e) ? "✓" : ""} |\n`;
2733
2743
  return n;
2734
2744
  }
2735
2745
  // src/component/module/cookbook/cookbookConfig.schema.ts
2736
- var Wt = A(["list"]), Gt = /* @__PURE__ */ C({
2746
+ var Kt = A(["list"]), qt = /* @__PURE__ */ C({
2737
2747
  ...M,
2738
2748
  typeId: /* @__PURE__ */ _("cookbook"),
2739
- actionNames: /* @__PURE__ */ h(Wt),
2749
+ actionNames: /* @__PURE__ */ h(Kt),
2740
2750
  recipes: /* @__PURE__ */ h(oe)
2741
2751
  });
2742
2752
  // src/component/module/engine/index.ts
2743
- function Kt(e) {
2753
+ function Jt(e) {
2744
2754
  return e.signal ?? new AbortController().signal;
2745
2755
  }
2746
2756
  // src/component/module/presenter/presenterConfig.schema.ts
2747
- var qt = A([
2757
+ var Yt = A([
2748
2758
  "list",
2749
2759
  "render",
2750
2760
  "setColorMode"
2751
- ]), Jt = /* @__PURE__ */ C({
2761
+ ]), Xt = /* @__PURE__ */ C({
2752
2762
  ...M,
2753
2763
  typeId: /* @__PURE__ */ _("presenter"),
2754
- actionNames: /* @__PURE__ */ h(qt),
2764
+ actionNames: /* @__PURE__ */ h(Yt),
2755
2765
  presentations: /* @__PURE__ */ h(oe)
2756
- }), Yt = "https://engine-eu.dpuse.app/presenters";
2757
- async function Xt(e, t, n, r) {
2758
- let i = e.id, a = `${Yt}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
2766
+ }), Zt = "https://engine-eu.dpuse.app/presenters";
2767
+ async function Qt(e, t, n, r) {
2768
+ let i = e.id, a = `${Zt}/${i.split("-").slice(2).join("-")}_v${e.version}/${i}.es.js`;
2759
2769
  try {
2760
2770
  return new (await (import(
2761
2771
  /* @vite-ignore */
@@ -2771,7 +2781,7 @@ async function Xt(e, t, n, r) {
2771
2781
  }
2772
2782
  }
2773
2783
  // src/locale/index.ts
2774
- function Zt(e, t) {
2784
+ function $t(e, t) {
2775
2785
  return {
2776
2786
  ...e,
2777
2787
  label: e.label[t] ?? e.id,
@@ -2779,7 +2789,7 @@ function Zt(e, t) {
2779
2789
  verb: e.verb?.[t] ?? void 0
2780
2790
  };
2781
2791
  }
2782
- function Qt(e, t, n = !1) {
2792
+ function en(e, t, n = !1) {
2783
2793
  let r = e.map((e) => ({
2784
2794
  ...e,
2785
2795
  label: e.label[t] ?? e.id,
@@ -2788,7 +2798,7 @@ function Qt(e, t, n = !1) {
2788
2798
  }));
2789
2799
  return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
2790
2800
  }
2791
- function $t(e, t) {
2801
+ function tn(e, t) {
2792
2802
  return {
2793
2803
  ...e,
2794
2804
  label: e.label[t] ?? e.id,
@@ -2796,7 +2806,7 @@ function $t(e, t) {
2796
2806
  };
2797
2807
  }
2798
2808
  // src/utilities/index.ts
2799
- var en = /* @__PURE__ */ new Map([
2809
+ var nn = /* @__PURE__ */ new Map([
2800
2810
  ["arrow", "application/vnd.apache.arrow.file"],
2801
2811
  ["avro", "application/vnd.apache.avro"],
2802
2812
  ["bin", "application/octet-stream"],
@@ -2823,14 +2833,14 @@ var en = /* @__PURE__ */ new Map([
2823
2833
  ["minute", 6e4],
2824
2834
  ["second", 1e3],
2825
2835
  ["millisecond", 1]
2826
- ], tn = [
2836
+ ], rn = [
2827
2837
  ["byte", 1],
2828
2838
  ["KiB", 1024],
2829
2839
  ["MiB", 1048576],
2830
2840
  ["GiB", 1073741824],
2831
2841
  ["TiB", 1099511627776]
2832
- ], nn = /* @__PURE__ */ new Map(), rn = /* @__PURE__ */ new Map();
2833
- function an(e, t = 2, n = t, r = Z) {
2842
+ ], an = /* @__PURE__ */ new Map(), on = /* @__PURE__ */ new Map();
2843
+ function sn(e, t = 2, n = t, r = Z) {
2834
2844
  return e == null ? "" : $(r, {
2835
2845
  localeMatcher: "best fit",
2836
2846
  maximumFractionDigits: t,
@@ -2840,18 +2850,18 @@ function an(e, t = 2, n = t, r = Z) {
2840
2850
  useGrouping: !0
2841
2851
  }).format(e);
2842
2852
  }
2843
- function on(e, t = Z) {
2844
- return an(e, 0, 0, t);
2853
+ function cn(e, t = Z) {
2854
+ return sn(e, 0, 0, t);
2845
2855
  }
2846
- function sn(e, t = 1, n = Z) {
2856
+ function ln(e, t = 1, n = Z) {
2847
2857
  return e == null || !Number.isFinite(e) ? "" : $(n, {
2848
2858
  maximumFractionDigits: t,
2849
2859
  notation: "compact"
2850
2860
  }).format(e);
2851
2861
  }
2852
- function cn(e, t = 1, n = Z) {
2862
+ function un(e, t = 1, n = Z) {
2853
2863
  if (e == null || !Number.isFinite(e)) return "";
2854
- let [r, i] = tn.find(([, n]) => _n(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["TiB", 1099511627776];
2864
+ let [r, i] = rn.find(([, n]) => yn(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? ["TiB", 1099511627776];
2855
2865
  return i === 1 ? $(n, {
2856
2866
  maximumFractionDigits: 0,
2857
2867
  style: "unit",
@@ -2859,7 +2869,7 @@ function cn(e, t = 1, n = Z) {
2859
2869
  unitDisplay: "long"
2860
2870
  }).format(e) : `${$(n, { maximumFractionDigits: t }).format(e / i)} ${r}`;
2861
2871
  }
2862
- function ln(e, t = "millisecond", n = Z) {
2872
+ function dn(e, t = "millisecond", n = Z) {
2863
2873
  if (e == null || !Number.isFinite(e)) return "";
2864
2874
  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 = [];
2865
2875
  for (let [t, i] of s) {
@@ -2873,25 +2883,25 @@ function ln(e, t = "millisecond", n = Z) {
2873
2883
  unitDisplay: "short"
2874
2884
  }).format(o));
2875
2885
  }
2876
- return gn(n).format(c);
2886
+ return vn(n).format(c);
2877
2887
  }
2878
- function un(e) {
2888
+ function fn(e) {
2879
2889
  if (!e) return;
2880
- let t = hn(e);
2890
+ let t = _n(e);
2881
2891
  return t === void 0 ? e : e.slice(0, t);
2882
2892
  }
2883
- function dn(e) {
2893
+ function pn(e) {
2884
2894
  if (!e) return;
2885
- let t = hn(e);
2895
+ let t = _n(e);
2886
2896
  return t === void 0 ? void 0 : e.slice(t + 1);
2887
2897
  }
2888
- function fn(e) {
2889
- return e != null && en.has(e.toLowerCase());
2898
+ function mn(e) {
2899
+ return e != null && nn.has(e.toLowerCase());
2890
2900
  }
2891
- function pn(e) {
2892
- return (e == null ? void 0 : en.get(e.toLowerCase())) ?? "application/octet-stream";
2901
+ function hn(e) {
2902
+ return (e == null ? void 0 : nn.get(e.toLowerCase())) ?? "application/octet-stream";
2893
2903
  }
2894
- function mn(e) {
2904
+ function gn(e) {
2895
2905
  switch (e) {
2896
2906
  case "Edm.Boolean": return "boolean";
2897
2907
  case "Edm.Byte":
@@ -2912,23 +2922,23 @@ function mn(e) {
2912
2922
  default: return "unknown";
2913
2923
  }
2914
2924
  }
2915
- function hn(e) {
2925
+ function _n(e) {
2916
2926
  let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
2917
2927
  return n > t && n < e.length - 1 ? n : void 0;
2918
2928
  }
2919
- function gn(e) {
2920
- let t = nn.get(e);
2929
+ function vn(e) {
2930
+ let t = an.get(e);
2921
2931
  return t || (t = new Intl.ListFormat(e, {
2922
2932
  style: "narrow",
2923
2933
  type: "unit"
2924
- }), nn.set(e, t)), t;
2934
+ }), an.set(e, t)), t;
2925
2935
  }
2926
2936
  function $(e, t) {
2927
- let n = `${e}|${JSON.stringify(t)}`, r = rn.get(n);
2928
- return r || (r = new Intl.NumberFormat(e, t), rn.set(n, r)), r;
2937
+ let n = `${e}|${JSON.stringify(t)}`, r = on.get(n);
2938
+ return r || (r = new Intl.NumberFormat(e, t), on.set(n, r)), r;
2929
2939
  }
2930
- function _n(e, t) {
2940
+ function yn(e, t) {
2931
2941
  let n = 10 ** t;
2932
2942
  return Math.round(e * n) / n;
2933
2943
  }
2934
- export { De as APIError, F as AppError, I as ConnectorError, de as DATA_FORMAT_CONFIGS, fe as DATA_TYPE_CONFIGS, pe as DECIMAL_SEPARATOR_IDS, e as DEFAULT_LOCALE_ID, Ve as ENCODING_GROUP_CONFIG_MAP, V as ENCODING_TYPE_CONFIG_MAP, Oe as EngineError, L as FetchError, t as SUPPORTED_LANGUAGES, H as TOOL_NAME_PREFIX, j as VALUE_DELIMITER_CONFIGS, Et as acquireWebLock, lt as auditObjectContentWithParser, ke as buildFetchError, st as buildPreviewObjectResult, ce as componentInstanceConfigSchema, Ae as concatenateSerialisedErrorMessages, Se as connectorConfigSchema, Bt as constructConnectorCategoryConfig, Vt as constructConnectorItemTypeConfig, Ht as constructConnectorUsageConfig, bt as constructStoreError, mn as convertODataTypeIdToUsageTypeId, wt as convertStoreRecordToParsedRecord, Tt as convertStoreValueToText, Gt as cookbookConfigSchema, n as createLabelMap, zt as determineConnectorUsageId, dn as extractExtensionFromPath, un as extractPathWithoutExtension, xt as findStoreErrorId, an as formatNumberAsDecimalNumber, ln as formatNumberAsDuration, sn as formatNumberAsSize, cn as formatNumberAsStorageSize, on as formatNumberAsWholeNumber, ue as getComponentStatus, Ut as getConnectorActionsTable, We as getEncodingTypeConfigs, me as getValueDelimiterCharacter, fn as hasMimeTypeForExtension, je as ignoreErrors, ut as indexObjectStructureWithParser, He as isEncodingTypeId, dt as listObjectStructureEntriesWithParser, U as listParserToolConfigs, Xt as loadPresenter, rt as loadTool, Zt as localiseConfig, Qt as localiseConfigs, $t as localiseReference, pn as lookupMimeTypeForExtension, R as normalizeToError, Ye as parseDelimitedText, Jt as presenterConfigSchema, jt as readTableSchema, Ue as resolveDecoderId, r as resolveLabel, W as resolveParserToolConfig, Kt as resolveRequestSignal, Ct as resolveStorePath, ct as retrieveRecordsWithParser, Me as serialiseError, Je as toolConfigSchema, Ne as unserialiseError };
2944
+ export { Oe as APIError, F as AppError, I as ConnectorError, de as DATA_FORMAT_CONFIGS, fe as DATA_TYPE_CONFIGS, pe as DECIMAL_SEPARATOR_IDS, e as DEFAULT_LOCALE_ID, Ue as ENCODING_GROUP_CONFIG_MAP, V as ENCODING_TYPE_CONFIG_MAP, ke as EngineError, L as FetchError, t as SUPPORTED_LANGUAGES, H as TOOL_NAME_PREFIX, j as VALUE_DELIMITER_CONFIGS, Ot as acquireWebLock, dt as auditObjectContentWithParser, Ae as buildFetchError, lt as buildPreviewObjectResult, ce as componentInstanceConfigSchema, je as concatenateSerialisedErrorMessages, Se as connectorConfigSchema, Ht as constructConnectorCategoryConfig, Ut as constructConnectorItemTypeConfig, Wt as constructConnectorUsageConfig, St as constructStoreError, gn as convertODataTypeIdToUsageTypeId, Et as convertStoreRecordToParsedRecord, Dt as convertStoreValueToText, qt as cookbookConfigSchema, n as createLabelMap, Vt as determineConnectorUsageId, pn as extractExtensionFromPath, fn as extractPathWithoutExtension, Ct as findStoreErrorId, sn as formatNumberAsDecimalNumber, dn as formatNumberAsDuration, ln as formatNumberAsSize, un as formatNumberAsStorageSize, cn as formatNumberAsWholeNumber, ue as getComponentStatus, Gt as getConnectorActionsTable, Ke as getEncodingTypeConfigs, me as getValueDelimiterCharacter, mn as hasMimeTypeForExtension, Me as ignoreErrors, ft as indexObjectStructureWithParser, We as isEncodingTypeId, pt as listObjectStructureEntriesWithParser, U as listParserToolConfigs, Qt as loadPresenter, at as loadTool, $t as localiseConfig, en as localiseConfigs, tn as localiseReference, hn as lookupMimeTypeForExtension, R as normalizeToError, Ze as parseDelimitedText, Xt as presenterConfigSchema, Nt as readTableSchema, Ge as resolveDecoderId, r as resolveLabel, W as resolveParserToolConfig, Jt as resolveRequestSignal, Tt as resolveStorePath, ut as retrieveRecordsWithParser, Ne as serialiseError, Xe as toolConfigSchema, Pe as unserialiseError };