@dpuse/dpuse-shared 1.0.107 → 1.0.110
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 +119 -67
- package/dist/dpuse-shared.es.js +412 -323
- package/dist/dpuse-shared.es.js.map +1 -1
- package/dist/types/src/encoding/index.d.ts +329 -244
- package/package.json +2 -2
package/dist/dpuse-shared.es.js
CHANGED
|
@@ -650,12 +650,12 @@ var ue = T([
|
|
|
650
650
|
"retrieveChunks",
|
|
651
651
|
"retrieveRecords"
|
|
652
652
|
]);
|
|
653
|
-
function
|
|
653
|
+
function xe(e) {
|
|
654
654
|
let t = !1, n = !1;
|
|
655
655
|
for (let r of e) be.has(r) && (t = !0), ye.has(r) && (n = !0);
|
|
656
656
|
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
657
657
|
}
|
|
658
|
-
var
|
|
658
|
+
var j = (e, t = "en") => {
|
|
659
659
|
let i = _e.find((t) => t.id === e);
|
|
660
660
|
return i ? {
|
|
661
661
|
label: r(n(i.label), t) ?? i.id,
|
|
@@ -664,7 +664,7 @@ var M = (e, t = "en") => {
|
|
|
664
664
|
label: e,
|
|
665
665
|
description: ""
|
|
666
666
|
};
|
|
667
|
-
},
|
|
667
|
+
}, M = (e, t = "en") => {
|
|
668
668
|
let i = ve.find((t) => t.id === e);
|
|
669
669
|
return i ? {
|
|
670
670
|
label: r(n(i.label), t) ?? i.id,
|
|
@@ -674,7 +674,7 @@ var M = (e, t = "en") => {
|
|
|
674
674
|
description: ""
|
|
675
675
|
};
|
|
676
676
|
};
|
|
677
|
-
function
|
|
677
|
+
function Se(e) {
|
|
678
678
|
let t = new Set(e), n = "|Action|Supported|\n";
|
|
679
679
|
n += "|:----|:-------:|\n";
|
|
680
680
|
for (let e of Object.keys(A)) n += `| ${A[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
@@ -682,71 +682,71 @@ function xe(e) {
|
|
|
682
682
|
}
|
|
683
683
|
//#endregion
|
|
684
684
|
//#region src/component/module/cookbook/cookbookConfig.schema.ts
|
|
685
|
-
var
|
|
685
|
+
var Ce = T(["list"]), we = /* @__PURE__ */ b({
|
|
686
686
|
...k,
|
|
687
687
|
typeId: /* @__PURE__ */ h("cookbook"),
|
|
688
|
-
actionNames: /* @__PURE__ */ p(
|
|
688
|
+
actionNames: /* @__PURE__ */ p(Ce),
|
|
689
689
|
recipes: /* @__PURE__ */ p(D)
|
|
690
|
-
}),
|
|
690
|
+
}), Te = T([
|
|
691
691
|
"list",
|
|
692
692
|
"render",
|
|
693
693
|
"setColorMode"
|
|
694
|
-
]),
|
|
694
|
+
]), Ee = /* @__PURE__ */ b({
|
|
695
695
|
...k,
|
|
696
696
|
typeId: /* @__PURE__ */ h("presenter"),
|
|
697
|
-
actionNames: /* @__PURE__ */ p(
|
|
697
|
+
actionNames: /* @__PURE__ */ p(Te),
|
|
698
698
|
presentations: /* @__PURE__ */ p(D)
|
|
699
|
-
}),
|
|
700
|
-
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${
|
|
701
|
-
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) =>
|
|
702
|
-
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () =>
|
|
703
|
-
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () =>
|
|
704
|
-
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () =>
|
|
705
|
-
],
|
|
699
|
+
}), N = 2048, P = "[REDACTED]", De = 10, F = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Oe = [
|
|
700
|
+
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${P}`],
|
|
701
|
+
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => F.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${P}` : e],
|
|
702
|
+
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => P],
|
|
703
|
+
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => P],
|
|
704
|
+
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => P]
|
|
705
|
+
], I = class extends Error {
|
|
706
706
|
data;
|
|
707
707
|
locator;
|
|
708
708
|
constructor(e, t, n, r) {
|
|
709
709
|
super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
|
|
710
710
|
}
|
|
711
|
-
},
|
|
711
|
+
}, L = class extends I {
|
|
712
712
|
constructor(e, t, n, r) {
|
|
713
713
|
super(e, t, n, r), this.name = "AppError";
|
|
714
714
|
}
|
|
715
|
-
},
|
|
715
|
+
}, R = class extends I {
|
|
716
716
|
constructor(e, t, n, r) {
|
|
717
717
|
super(e, t, n, r), this.name = "APIError";
|
|
718
718
|
}
|
|
719
|
-
},
|
|
719
|
+
}, z = class extends I {
|
|
720
720
|
constructor(e, t, n, r) {
|
|
721
721
|
super(e, t, n, r), this.name = "EngineError";
|
|
722
722
|
}
|
|
723
|
-
},
|
|
723
|
+
}, B = class extends I {
|
|
724
724
|
constructor(e, t, n, r) {
|
|
725
725
|
super(e, t, n, r), this.name = "ConnectorError";
|
|
726
726
|
}
|
|
727
|
-
},
|
|
727
|
+
}, V = class extends I {
|
|
728
728
|
constructor(e, t, n, r) {
|
|
729
729
|
super(e, t, n, r), this.name = "FetchError";
|
|
730
730
|
}
|
|
731
731
|
};
|
|
732
|
-
async function
|
|
732
|
+
async function ke(e, t, n) {
|
|
733
733
|
let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
|
|
734
734
|
try {
|
|
735
735
|
a = await e.text();
|
|
736
736
|
} catch (e) {
|
|
737
|
-
a = `<body unavailable: ${
|
|
737
|
+
a = `<body unavailable: ${H(e).message}>`;
|
|
738
738
|
}
|
|
739
|
-
return new
|
|
739
|
+
return new V(i, n, { body: Le(a) });
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Ae(e) {
|
|
742
742
|
return e.map((e) => e.message).join(" ");
|
|
743
743
|
}
|
|
744
|
-
function
|
|
744
|
+
function je(e) {
|
|
745
745
|
try {
|
|
746
746
|
e();
|
|
747
747
|
} catch {}
|
|
748
748
|
}
|
|
749
|
-
function
|
|
749
|
+
function H(e) {
|
|
750
750
|
if (e instanceof Error) return e;
|
|
751
751
|
if (typeof e == "string") return Error(e);
|
|
752
752
|
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
|
|
@@ -758,24 +758,24 @@ function U(e) {
|
|
|
758
758
|
}
|
|
759
759
|
return /* @__PURE__ */ Error("Unknown error");
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
let t = /* @__PURE__ */ new Set(), n = [], r =
|
|
761
|
+
function Me(e) {
|
|
762
|
+
let t = /* @__PURE__ */ new Set(), n = [], r = H(e);
|
|
763
763
|
for (; r != null && !t.has(r);) {
|
|
764
764
|
t.add(r);
|
|
765
|
-
let [e, i] =
|
|
766
|
-
/(?:\.{3}|[.!?])$/.test(
|
|
765
|
+
let [e, i] = Re(r), a = Ie(e);
|
|
766
|
+
/(?:\.{3}|[.!?])$/.test(a.message) || (a.message += "."), n.push(a), r = i;
|
|
767
767
|
}
|
|
768
768
|
return n;
|
|
769
769
|
}
|
|
770
|
-
function
|
|
770
|
+
function Ne(e) {
|
|
771
771
|
let t;
|
|
772
772
|
for (let n of e.toReversed()) {
|
|
773
|
-
let e =
|
|
773
|
+
let e = Fe(n, t);
|
|
774
774
|
n.stack !== void 0 && (e.stack = n.stack), t = e;
|
|
775
775
|
}
|
|
776
776
|
return t ?? /* @__PURE__ */ Error("No error to unserialise.");
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function Pe(e) {
|
|
779
779
|
let t;
|
|
780
780
|
try {
|
|
781
781
|
t = JSON.stringify(e);
|
|
@@ -784,13 +784,13 @@ function Ne(e) {
|
|
|
784
784
|
}
|
|
785
785
|
return t === "" && (t = "Unknown error"), t;
|
|
786
786
|
}
|
|
787
|
-
function
|
|
787
|
+
function Fe(e, t) {
|
|
788
788
|
switch (e.name) {
|
|
789
|
-
case "APIError": return new
|
|
790
|
-
case "AppError": return new
|
|
791
|
-
case "ConnectorError": return new
|
|
792
|
-
case "EngineError": return new
|
|
793
|
-
case "FetchError": return new
|
|
789
|
+
case "APIError": return new R(e.message, e.locator, e.data, { cause: t });
|
|
790
|
+
case "AppError": return new L(e.message, e.locator, e.data, { cause: t });
|
|
791
|
+
case "ConnectorError": return new B(e.message, e.locator, e.data, { cause: t });
|
|
792
|
+
case "EngineError": return new z(e.message, e.locator, e.data, { cause: t });
|
|
793
|
+
case "FetchError": return new V(e.message, e.locator, e.data, { cause: t });
|
|
794
794
|
default: {
|
|
795
795
|
let n = e.name;
|
|
796
796
|
return new class extends Error {
|
|
@@ -799,29 +799,29 @@ function Pe(e, t) {
|
|
|
799
799
|
}
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
function
|
|
802
|
+
function Ie(e) {
|
|
803
803
|
let { data: t, message: n, stack: r } = e;
|
|
804
804
|
return {
|
|
805
805
|
...e,
|
|
806
|
-
data: t === void 0 ? void 0 :
|
|
807
|
-
message:
|
|
808
|
-
stack: r === void 0 ? void 0 :
|
|
806
|
+
data: t === void 0 ? void 0 : W(t, /* @__PURE__ */ new WeakSet(), 0),
|
|
807
|
+
message: U(n),
|
|
808
|
+
stack: r === void 0 ? void 0 : U(r)
|
|
809
809
|
};
|
|
810
810
|
}
|
|
811
|
-
function
|
|
811
|
+
function U(e) {
|
|
812
812
|
let t = e;
|
|
813
|
-
for (let [e, n] of
|
|
813
|
+
for (let [e, n] of Oe) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
|
|
814
814
|
return t;
|
|
815
815
|
}
|
|
816
|
-
function
|
|
817
|
-
return typeof e == "string" ?
|
|
818
|
-
}
|
|
819
|
-
function Ie(e) {
|
|
820
|
-
if (e != null && e !== "") return e.length > P ? `${e.slice(0, P)}... [truncated]` : e;
|
|
816
|
+
function W(e, t, n) {
|
|
817
|
+
return typeof e == "string" ? U(e) : typeof e != "object" || !e ? e : n >= De ? P : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => W(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && F.test(e) ? P : W(r, t, n + 1)])));
|
|
821
818
|
}
|
|
822
819
|
function Le(e) {
|
|
823
|
-
|
|
824
|
-
|
|
820
|
+
if (e != null && e !== "") return e.length > N ? `${e.slice(0, N)}... [truncated]` : e;
|
|
821
|
+
}
|
|
822
|
+
function Re(e) {
|
|
823
|
+
let t = e.cause == null ? null : H(e.cause);
|
|
824
|
+
if (e instanceof I) return [{
|
|
825
825
|
data: e.data,
|
|
826
826
|
locator: e.locator,
|
|
827
827
|
message: e.message,
|
|
@@ -838,24 +838,24 @@ function Le(e) {
|
|
|
838
838
|
}, t] : [{
|
|
839
839
|
data: n,
|
|
840
840
|
locator: "",
|
|
841
|
-
message:
|
|
841
|
+
message: Pe(e),
|
|
842
842
|
name: "Error",
|
|
843
843
|
stack: void 0
|
|
844
844
|
}, null];
|
|
845
845
|
}
|
|
846
846
|
//#endregion
|
|
847
847
|
//#region src/component/module/tool/index.ts
|
|
848
|
-
var
|
|
849
|
-
async function
|
|
848
|
+
var ze = "https://engine-eu.dpuse.app/tools";
|
|
849
|
+
async function Be(e, t) {
|
|
850
850
|
let n = `dpuse-tool-${t}`, r = e.find((e) => e.id === n);
|
|
851
851
|
if (!r) {
|
|
852
852
|
let r = {
|
|
853
853
|
availableToolIds: e.map((e) => e.id),
|
|
854
854
|
toolName: n
|
|
855
855
|
};
|
|
856
|
-
throw new
|
|
856
|
+
throw new L(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
|
|
857
857
|
}
|
|
858
|
-
let i = `${
|
|
858
|
+
let i = `${ze}/${t}_v${r.version}/${n}.es.js`;
|
|
859
859
|
try {
|
|
860
860
|
return new (await (import(
|
|
861
861
|
/* @vite-ignore */
|
|
@@ -867,12 +867,12 @@ async function ze(e, t) {
|
|
|
867
867
|
url: i,
|
|
868
868
|
version: r.version
|
|
869
869
|
};
|
|
870
|
-
throw new
|
|
870
|
+
throw new L(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", t, { cause: e });
|
|
871
871
|
}
|
|
872
872
|
}
|
|
873
873
|
//#endregion
|
|
874
874
|
//#region src/encoding/index.ts
|
|
875
|
-
var
|
|
875
|
+
var Ve = {
|
|
876
876
|
arabic: {
|
|
877
877
|
id: "arabic",
|
|
878
878
|
label: {
|
|
@@ -1020,374 +1020,463 @@ var Be = {
|
|
|
1020
1020
|
es: "Occidental"
|
|
1021
1021
|
}
|
|
1022
1022
|
}
|
|
1023
|
-
},
|
|
1023
|
+
}, He = {
|
|
1024
1024
|
ascii: {
|
|
1025
1025
|
id: "ascii",
|
|
1026
1026
|
groupId: null,
|
|
1027
|
-
isDetectable: !0,
|
|
1028
|
-
isDecodable: !0,
|
|
1029
1027
|
decoderId: "windows-1252"
|
|
1030
1028
|
},
|
|
1031
|
-
|
|
1032
|
-
id: "
|
|
1029
|
+
Big5: {
|
|
1030
|
+
id: "Big5",
|
|
1033
1031
|
groupId: "chineseTraditional",
|
|
1034
|
-
|
|
1035
|
-
|
|
1032
|
+
decoderId: "big5"
|
|
1033
|
+
},
|
|
1034
|
+
cp273: {
|
|
1035
|
+
id: "cp273",
|
|
1036
|
+
groupId: "western",
|
|
1036
1037
|
decoderId: null
|
|
1037
1038
|
},
|
|
1038
|
-
|
|
1039
|
-
id: "
|
|
1040
|
-
groupId: "
|
|
1041
|
-
isDetectable: !0,
|
|
1042
|
-
isDecodable: !0,
|
|
1039
|
+
cp424: {
|
|
1040
|
+
id: "cp424",
|
|
1041
|
+
groupId: "hebrew",
|
|
1043
1042
|
decoderId: null
|
|
1044
1043
|
},
|
|
1045
|
-
|
|
1046
|
-
id: "
|
|
1047
|
-
groupId: "
|
|
1048
|
-
isDetectable: !0,
|
|
1049
|
-
isDecodable: !0,
|
|
1044
|
+
cp437: {
|
|
1045
|
+
id: "cp437",
|
|
1046
|
+
groupId: "western",
|
|
1050
1047
|
decoderId: null
|
|
1051
1048
|
},
|
|
1052
|
-
|
|
1053
|
-
id: "
|
|
1054
|
-
groupId: "
|
|
1055
|
-
isDetectable: !0,
|
|
1056
|
-
isDecodable: !0,
|
|
1049
|
+
cp500: {
|
|
1050
|
+
id: "cp500",
|
|
1051
|
+
groupId: "western",
|
|
1057
1052
|
decoderId: null
|
|
1058
1053
|
},
|
|
1059
|
-
|
|
1060
|
-
id: "
|
|
1061
|
-
groupId: "
|
|
1062
|
-
isDetectable: !1,
|
|
1063
|
-
isDecodable: !0,
|
|
1054
|
+
cp720: {
|
|
1055
|
+
id: "cp720",
|
|
1056
|
+
groupId: "arabic",
|
|
1064
1057
|
decoderId: null
|
|
1065
1058
|
},
|
|
1066
|
-
|
|
1067
|
-
id: "
|
|
1068
|
-
groupId: "
|
|
1069
|
-
isDetectable: !1,
|
|
1070
|
-
isDecodable: !0,
|
|
1059
|
+
cp737: {
|
|
1060
|
+
id: "cp737",
|
|
1061
|
+
groupId: "greek",
|
|
1071
1062
|
decoderId: null
|
|
1072
1063
|
},
|
|
1073
|
-
|
|
1074
|
-
id: "
|
|
1075
|
-
groupId: "
|
|
1076
|
-
isDetectable: !0,
|
|
1077
|
-
isDecodable: !1,
|
|
1064
|
+
cp775: {
|
|
1065
|
+
id: "cp775",
|
|
1066
|
+
groupId: "baltic",
|
|
1078
1067
|
decoderId: null
|
|
1079
1068
|
},
|
|
1080
|
-
|
|
1081
|
-
id: "
|
|
1082
|
-
groupId: "
|
|
1083
|
-
isDetectable: !0,
|
|
1084
|
-
isDecodable: !0,
|
|
1069
|
+
cp850: {
|
|
1070
|
+
id: "cp850",
|
|
1071
|
+
groupId: "western",
|
|
1085
1072
|
decoderId: null
|
|
1086
1073
|
},
|
|
1087
|
-
|
|
1088
|
-
id: "
|
|
1089
|
-
groupId: "
|
|
1090
|
-
|
|
1091
|
-
|
|
1074
|
+
cp852: {
|
|
1075
|
+
id: "cp852",
|
|
1076
|
+
groupId: "centralEuropean",
|
|
1077
|
+
decoderId: null
|
|
1078
|
+
},
|
|
1079
|
+
cp856: {
|
|
1080
|
+
id: "cp856",
|
|
1081
|
+
groupId: "hebrew",
|
|
1092
1082
|
decoderId: null
|
|
1093
1083
|
},
|
|
1094
|
-
|
|
1095
|
-
id: "
|
|
1084
|
+
cp857: {
|
|
1085
|
+
id: "cp857",
|
|
1086
|
+
groupId: "turkish",
|
|
1087
|
+
decoderId: null
|
|
1088
|
+
},
|
|
1089
|
+
cp858: {
|
|
1090
|
+
id: "cp858",
|
|
1096
1091
|
groupId: "western",
|
|
1097
|
-
|
|
1098
|
-
isDecodable: !0,
|
|
1099
|
-
decoderId: "windows-1252"
|
|
1092
|
+
decoderId: null
|
|
1100
1093
|
},
|
|
1101
|
-
|
|
1102
|
-
id: "
|
|
1103
|
-
groupId: "
|
|
1104
|
-
isDetectable: !0,
|
|
1105
|
-
isDecodable: !0,
|
|
1094
|
+
cp860: {
|
|
1095
|
+
id: "cp860",
|
|
1096
|
+
groupId: "western",
|
|
1106
1097
|
decoderId: null
|
|
1107
1098
|
},
|
|
1108
|
-
|
|
1109
|
-
id: "
|
|
1110
|
-
groupId: "
|
|
1111
|
-
isDetectable: !1,
|
|
1112
|
-
isDecodable: !0,
|
|
1099
|
+
cp861: {
|
|
1100
|
+
id: "cp861",
|
|
1101
|
+
groupId: "nordic",
|
|
1113
1102
|
decoderId: null
|
|
1114
1103
|
},
|
|
1115
|
-
|
|
1116
|
-
id: "
|
|
1117
|
-
groupId: "
|
|
1118
|
-
isDetectable: !1,
|
|
1119
|
-
isDecodable: !0,
|
|
1104
|
+
cp862: {
|
|
1105
|
+
id: "cp862",
|
|
1106
|
+
groupId: "hebrew",
|
|
1120
1107
|
decoderId: null
|
|
1121
1108
|
},
|
|
1122
|
-
|
|
1123
|
-
id: "
|
|
1124
|
-
groupId: "
|
|
1125
|
-
isDetectable: !0,
|
|
1126
|
-
isDecodable: !0,
|
|
1109
|
+
cp863: {
|
|
1110
|
+
id: "cp863",
|
|
1111
|
+
groupId: "western",
|
|
1127
1112
|
decoderId: null
|
|
1128
1113
|
},
|
|
1129
|
-
|
|
1130
|
-
id: "
|
|
1114
|
+
cp864: {
|
|
1115
|
+
id: "cp864",
|
|
1131
1116
|
groupId: "arabic",
|
|
1132
|
-
isDetectable: !0,
|
|
1133
|
-
isDecodable: !0,
|
|
1134
1117
|
decoderId: null
|
|
1135
1118
|
},
|
|
1136
|
-
|
|
1137
|
-
id: "
|
|
1119
|
+
cp865: {
|
|
1120
|
+
id: "cp865",
|
|
1121
|
+
groupId: "nordic",
|
|
1122
|
+
decoderId: null
|
|
1123
|
+
},
|
|
1124
|
+
cp869: {
|
|
1125
|
+
id: "cp869",
|
|
1138
1126
|
groupId: "greek",
|
|
1139
|
-
isDetectable: !0,
|
|
1140
|
-
isDecodable: !0,
|
|
1141
1127
|
decoderId: null
|
|
1142
1128
|
},
|
|
1143
|
-
|
|
1144
|
-
id: "
|
|
1145
|
-
groupId: "
|
|
1146
|
-
|
|
1147
|
-
|
|
1129
|
+
CP874: {
|
|
1130
|
+
id: "CP874",
|
|
1131
|
+
groupId: "thai",
|
|
1132
|
+
decoderId: "windows-874"
|
|
1133
|
+
},
|
|
1134
|
+
cp875: {
|
|
1135
|
+
id: "cp875",
|
|
1136
|
+
groupId: "greek",
|
|
1148
1137
|
decoderId: null
|
|
1149
1138
|
},
|
|
1150
|
-
|
|
1151
|
-
id: "
|
|
1139
|
+
CP932: {
|
|
1140
|
+
id: "CP932",
|
|
1141
|
+
groupId: "japanese",
|
|
1142
|
+
decoderId: "shift_jis"
|
|
1143
|
+
},
|
|
1144
|
+
CP949: {
|
|
1145
|
+
id: "CP949",
|
|
1146
|
+
groupId: "korean",
|
|
1147
|
+
decoderId: "euc-kr"
|
|
1148
|
+
},
|
|
1149
|
+
cp1006: {
|
|
1150
|
+
id: "cp1006",
|
|
1151
|
+
groupId: "arabic",
|
|
1152
|
+
decoderId: null
|
|
1153
|
+
},
|
|
1154
|
+
cp1026: {
|
|
1155
|
+
id: "cp1026",
|
|
1152
1156
|
groupId: "turkish",
|
|
1153
|
-
|
|
1154
|
-
isDecodable: !0,
|
|
1155
|
-
decoderId: "windows-1254"
|
|
1157
|
+
decoderId: null
|
|
1156
1158
|
},
|
|
1157
|
-
|
|
1158
|
-
id: "
|
|
1159
|
-
groupId: "
|
|
1160
|
-
isDetectable: !1,
|
|
1161
|
-
isDecodable: !0,
|
|
1159
|
+
cp1125: {
|
|
1160
|
+
id: "cp1125",
|
|
1161
|
+
groupId: "cyrillic",
|
|
1162
1162
|
decoderId: null
|
|
1163
1163
|
},
|
|
1164
|
-
|
|
1165
|
-
id: "
|
|
1166
|
-
groupId: "
|
|
1167
|
-
|
|
1168
|
-
isDecodable: !0,
|
|
1169
|
-
decoderId: "windows-874"
|
|
1164
|
+
cp1140: {
|
|
1165
|
+
id: "cp1140",
|
|
1166
|
+
groupId: "western",
|
|
1167
|
+
decoderId: null
|
|
1170
1168
|
},
|
|
1171
|
-
|
|
1172
|
-
id: "
|
|
1173
|
-
groupId: "
|
|
1174
|
-
|
|
1175
|
-
|
|
1169
|
+
cp1258: {
|
|
1170
|
+
id: "cp1258",
|
|
1171
|
+
groupId: "vietnamese",
|
|
1172
|
+
decoderId: "windows-1258"
|
|
1173
|
+
},
|
|
1174
|
+
"EUC-JP": {
|
|
1175
|
+
id: "EUC-JP",
|
|
1176
|
+
groupId: "japanese",
|
|
1177
|
+
decoderId: "euc-jp"
|
|
1178
|
+
},
|
|
1179
|
+
"EUC-KR": {
|
|
1180
|
+
id: "EUC-KR",
|
|
1181
|
+
groupId: "korean",
|
|
1182
|
+
decoderId: "euc-kr"
|
|
1183
|
+
},
|
|
1184
|
+
GB18030: {
|
|
1185
|
+
id: "GB18030",
|
|
1186
|
+
groupId: "chineseSimplified",
|
|
1187
|
+
decoderId: "gb18030"
|
|
1188
|
+
},
|
|
1189
|
+
"hp-roman8": {
|
|
1190
|
+
id: "hp-roman8",
|
|
1191
|
+
groupId: "western",
|
|
1176
1192
|
decoderId: null
|
|
1177
1193
|
},
|
|
1178
|
-
"
|
|
1179
|
-
id: "
|
|
1180
|
-
groupId: "
|
|
1181
|
-
|
|
1182
|
-
|
|
1194
|
+
"HZ-GB-2312": {
|
|
1195
|
+
id: "HZ-GB-2312",
|
|
1196
|
+
groupId: "chineseSimplified",
|
|
1197
|
+
decoderId: null
|
|
1198
|
+
},
|
|
1199
|
+
IBM855: {
|
|
1200
|
+
id: "IBM855",
|
|
1201
|
+
groupId: "cyrillic",
|
|
1183
1202
|
decoderId: null
|
|
1184
1203
|
},
|
|
1185
|
-
|
|
1186
|
-
id: "
|
|
1204
|
+
IBM866: {
|
|
1205
|
+
id: "IBM866",
|
|
1206
|
+
groupId: "cyrillic",
|
|
1207
|
+
decoderId: "ibm866"
|
|
1208
|
+
},
|
|
1209
|
+
"ISO-2022-JP": {
|
|
1210
|
+
id: "ISO-2022-JP",
|
|
1211
|
+
groupId: "japanese",
|
|
1212
|
+
decoderId: "iso-2022-jp"
|
|
1213
|
+
},
|
|
1214
|
+
"ISO-2022-KR": {
|
|
1215
|
+
id: "ISO-2022-KR",
|
|
1216
|
+
groupId: "korean",
|
|
1217
|
+
decoderId: null
|
|
1218
|
+
},
|
|
1219
|
+
"ISO-8859-1": {
|
|
1220
|
+
id: "ISO-8859-1",
|
|
1187
1221
|
groupId: "western",
|
|
1188
|
-
|
|
1189
|
-
|
|
1222
|
+
decoderId: "windows-1252"
|
|
1223
|
+
},
|
|
1224
|
+
"ISO-8859-2": {
|
|
1225
|
+
id: "ISO-8859-2",
|
|
1226
|
+
groupId: "centralEuropean",
|
|
1227
|
+
decoderId: "iso-8859-2"
|
|
1228
|
+
},
|
|
1229
|
+
"ISO-8859-5": {
|
|
1230
|
+
id: "ISO-8859-5",
|
|
1231
|
+
groupId: "cyrillic",
|
|
1232
|
+
decoderId: "iso-8859-5"
|
|
1233
|
+
},
|
|
1234
|
+
"ISO-8859-6": {
|
|
1235
|
+
id: "ISO-8859-6",
|
|
1236
|
+
groupId: "arabic",
|
|
1237
|
+
decoderId: "iso-8859-6"
|
|
1238
|
+
},
|
|
1239
|
+
"ISO-8859-7": {
|
|
1240
|
+
id: "ISO-8859-7",
|
|
1241
|
+
groupId: "greek",
|
|
1242
|
+
decoderId: "iso-8859-7"
|
|
1243
|
+
},
|
|
1244
|
+
"ISO-8859-8": {
|
|
1245
|
+
id: "ISO-8859-8",
|
|
1246
|
+
groupId: "hebrew",
|
|
1247
|
+
decoderId: "iso-8859-8-i"
|
|
1248
|
+
},
|
|
1249
|
+
"ISO-8859-9": {
|
|
1250
|
+
id: "ISO-8859-9",
|
|
1251
|
+
groupId: "turkish",
|
|
1252
|
+
decoderId: "windows-1254"
|
|
1253
|
+
},
|
|
1254
|
+
"ISO-8859-13": {
|
|
1255
|
+
id: "ISO-8859-13",
|
|
1256
|
+
groupId: "baltic",
|
|
1257
|
+
decoderId: "iso-8859-13"
|
|
1258
|
+
},
|
|
1259
|
+
iso2022_jp_2004: {
|
|
1260
|
+
id: "iso2022_jp_2004",
|
|
1261
|
+
groupId: "japanese",
|
|
1190
1262
|
decoderId: null
|
|
1191
1263
|
},
|
|
1192
|
-
|
|
1193
|
-
id: "
|
|
1264
|
+
iso2022_jp_ext: {
|
|
1265
|
+
id: "iso2022_jp_ext",
|
|
1266
|
+
groupId: "japanese",
|
|
1267
|
+
decoderId: null
|
|
1268
|
+
},
|
|
1269
|
+
"iso8859-3": {
|
|
1270
|
+
id: "iso8859-3",
|
|
1271
|
+
groupId: "southernEuropean",
|
|
1272
|
+
decoderId: "iso-8859-3"
|
|
1273
|
+
},
|
|
1274
|
+
"iso8859-4": {
|
|
1275
|
+
id: "iso8859-4",
|
|
1276
|
+
groupId: "baltic",
|
|
1277
|
+
decoderId: "iso-8859-4"
|
|
1278
|
+
},
|
|
1279
|
+
"iso8859-10": {
|
|
1280
|
+
id: "iso8859-10",
|
|
1281
|
+
groupId: "nordic",
|
|
1282
|
+
decoderId: "iso-8859-10"
|
|
1283
|
+
},
|
|
1284
|
+
"iso8859-14": {
|
|
1285
|
+
id: "iso8859-14",
|
|
1286
|
+
groupId: "celtic",
|
|
1287
|
+
decoderId: "iso-8859-14"
|
|
1288
|
+
},
|
|
1289
|
+
"iso8859-15": {
|
|
1290
|
+
id: "iso8859-15",
|
|
1291
|
+
groupId: "western",
|
|
1292
|
+
decoderId: "iso-8859-15"
|
|
1293
|
+
},
|
|
1294
|
+
"iso8859-16": {
|
|
1295
|
+
id: "iso8859-16",
|
|
1194
1296
|
groupId: "romanian",
|
|
1195
|
-
|
|
1196
|
-
|
|
1297
|
+
decoderId: "iso-8859-16"
|
|
1298
|
+
},
|
|
1299
|
+
Johab: {
|
|
1300
|
+
id: "Johab",
|
|
1301
|
+
groupId: "korean",
|
|
1197
1302
|
decoderId: null
|
|
1198
1303
|
},
|
|
1199
|
-
"
|
|
1200
|
-
id: "
|
|
1304
|
+
"KOI8-R": {
|
|
1305
|
+
id: "KOI8-R",
|
|
1306
|
+
groupId: "cyrillic",
|
|
1307
|
+
decoderId: "koi8-r"
|
|
1308
|
+
},
|
|
1309
|
+
"koi8-t": {
|
|
1310
|
+
id: "koi8-t",
|
|
1201
1311
|
groupId: "cyrillic",
|
|
1202
|
-
isDetectable: !0,
|
|
1203
|
-
isDecodable: !0,
|
|
1204
1312
|
decoderId: null
|
|
1205
1313
|
},
|
|
1206
1314
|
"koi8-u": {
|
|
1207
1315
|
id: "koi8-u",
|
|
1208
1316
|
groupId: "cyrillic",
|
|
1209
|
-
|
|
1210
|
-
|
|
1317
|
+
decoderId: "koi8-u"
|
|
1318
|
+
},
|
|
1319
|
+
KZ1048: {
|
|
1320
|
+
id: "KZ1048",
|
|
1321
|
+
groupId: "cyrillic",
|
|
1211
1322
|
decoderId: null
|
|
1212
1323
|
},
|
|
1213
|
-
|
|
1214
|
-
id: "
|
|
1215
|
-
groupId: "
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1324
|
+
MacCyrillic: {
|
|
1325
|
+
id: "MacCyrillic",
|
|
1326
|
+
groupId: "cyrillic",
|
|
1327
|
+
decoderId: "x-mac-cyrillic"
|
|
1328
|
+
},
|
|
1329
|
+
MacGreek: {
|
|
1330
|
+
id: "MacGreek",
|
|
1331
|
+
groupId: "greek",
|
|
1332
|
+
decoderId: null
|
|
1219
1333
|
},
|
|
1220
|
-
|
|
1221
|
-
id: "
|
|
1334
|
+
MacIceland: {
|
|
1335
|
+
id: "MacIceland",
|
|
1336
|
+
groupId: "nordic",
|
|
1337
|
+
decoderId: null
|
|
1338
|
+
},
|
|
1339
|
+
MacLatin2: {
|
|
1340
|
+
id: "MacLatin2",
|
|
1341
|
+
groupId: "centralEuropean",
|
|
1342
|
+
decoderId: null
|
|
1343
|
+
},
|
|
1344
|
+
MacRoman: {
|
|
1345
|
+
id: "MacRoman",
|
|
1222
1346
|
groupId: "western",
|
|
1223
|
-
|
|
1224
|
-
|
|
1347
|
+
decoderId: "macintosh"
|
|
1348
|
+
},
|
|
1349
|
+
MacTurkish: {
|
|
1350
|
+
id: "MacTurkish",
|
|
1351
|
+
groupId: "turkish",
|
|
1225
1352
|
decoderId: null
|
|
1226
1353
|
},
|
|
1227
|
-
|
|
1228
|
-
id: "
|
|
1229
|
-
groupId: "
|
|
1230
|
-
isDetectable: !0,
|
|
1231
|
-
isDecodable: !0,
|
|
1354
|
+
ptcp154: {
|
|
1355
|
+
id: "ptcp154",
|
|
1356
|
+
groupId: "cyrillic",
|
|
1232
1357
|
decoderId: null
|
|
1233
1358
|
},
|
|
1234
|
-
|
|
1235
|
-
id: "
|
|
1359
|
+
SHIFT_JIS: {
|
|
1360
|
+
id: "SHIFT_JIS",
|
|
1361
|
+
groupId: "japanese",
|
|
1362
|
+
decoderId: "shift_jis"
|
|
1363
|
+
},
|
|
1364
|
+
"TIS-620": {
|
|
1365
|
+
id: "TIS-620",
|
|
1236
1366
|
groupId: "thai",
|
|
1237
|
-
isDetectable: !1,
|
|
1238
|
-
isDecodable: !0,
|
|
1239
1367
|
decoderId: "windows-874"
|
|
1240
1368
|
},
|
|
1241
|
-
"utf-
|
|
1242
|
-
id: "utf-
|
|
1243
|
-
groupId: "
|
|
1244
|
-
|
|
1245
|
-
isDecodable: !0,
|
|
1246
|
-
decoderId: "utf-16le"
|
|
1369
|
+
"utf-7": {
|
|
1370
|
+
id: "utf-7",
|
|
1371
|
+
groupId: "other",
|
|
1372
|
+
decoderId: null
|
|
1247
1373
|
},
|
|
1248
|
-
"utf-
|
|
1249
|
-
id: "utf-
|
|
1374
|
+
"utf-8": {
|
|
1375
|
+
id: "utf-8",
|
|
1376
|
+
groupId: null,
|
|
1377
|
+
decoderId: "utf-8"
|
|
1378
|
+
},
|
|
1379
|
+
"UTF-8-SIG": {
|
|
1380
|
+
id: "UTF-8-SIG",
|
|
1381
|
+
groupId: null,
|
|
1382
|
+
decoderId: "utf-8"
|
|
1383
|
+
},
|
|
1384
|
+
"UTF-16": {
|
|
1385
|
+
id: "UTF-16",
|
|
1250
1386
|
groupId: "unicode16",
|
|
1251
|
-
isDetectable: !0,
|
|
1252
|
-
isDecodable: !0,
|
|
1253
1387
|
decoderId: null
|
|
1254
1388
|
},
|
|
1255
|
-
"utf-
|
|
1256
|
-
id: "utf-
|
|
1389
|
+
"utf-16-be": {
|
|
1390
|
+
id: "utf-16-be",
|
|
1257
1391
|
groupId: "unicode16",
|
|
1258
|
-
|
|
1259
|
-
isDecodable: !0,
|
|
1260
|
-
decoderId: null
|
|
1392
|
+
decoderId: "utf-16be"
|
|
1261
1393
|
},
|
|
1262
|
-
"utf-
|
|
1263
|
-
id: "utf-
|
|
1394
|
+
"utf-16-le": {
|
|
1395
|
+
id: "utf-16-le",
|
|
1396
|
+
groupId: "unicode16",
|
|
1397
|
+
decoderId: "utf-16le"
|
|
1398
|
+
},
|
|
1399
|
+
"UTF-32": {
|
|
1400
|
+
id: "UTF-32",
|
|
1264
1401
|
groupId: "unicode32",
|
|
1265
|
-
isDetectable: !0,
|
|
1266
|
-
isDecodable: !1,
|
|
1267
1402
|
decoderId: null
|
|
1268
1403
|
},
|
|
1269
|
-
"utf-
|
|
1270
|
-
id: "utf-
|
|
1404
|
+
"utf-32-be": {
|
|
1405
|
+
id: "utf-32-be",
|
|
1271
1406
|
groupId: "unicode32",
|
|
1272
|
-
isDetectable: !0,
|
|
1273
|
-
isDecodable: !1,
|
|
1274
1407
|
decoderId: null
|
|
1275
1408
|
},
|
|
1276
|
-
"utf-
|
|
1277
|
-
id: "utf-
|
|
1278
|
-
groupId:
|
|
1279
|
-
isDetectable: !0,
|
|
1280
|
-
isDecodable: !0,
|
|
1409
|
+
"utf-32-le": {
|
|
1410
|
+
id: "utf-32-le",
|
|
1411
|
+
groupId: "unicode32",
|
|
1281
1412
|
decoderId: null
|
|
1282
1413
|
},
|
|
1283
|
-
"
|
|
1284
|
-
id: "
|
|
1414
|
+
"Windows-1250": {
|
|
1415
|
+
id: "Windows-1250",
|
|
1285
1416
|
groupId: "centralEuropean",
|
|
1286
|
-
|
|
1287
|
-
isDecodable: !0,
|
|
1288
|
-
decoderId: null
|
|
1417
|
+
decoderId: "windows-1250"
|
|
1289
1418
|
},
|
|
1290
|
-
"
|
|
1291
|
-
id: "
|
|
1419
|
+
"Windows-1251": {
|
|
1420
|
+
id: "Windows-1251",
|
|
1292
1421
|
groupId: "cyrillic",
|
|
1293
|
-
|
|
1294
|
-
isDecodable: !0,
|
|
1295
|
-
decoderId: null
|
|
1422
|
+
decoderId: "windows-1251"
|
|
1296
1423
|
},
|
|
1297
|
-
"
|
|
1298
|
-
id: "
|
|
1424
|
+
"Windows-1252": {
|
|
1425
|
+
id: "Windows-1252",
|
|
1299
1426
|
groupId: "western",
|
|
1300
|
-
|
|
1301
|
-
isDecodable: !0,
|
|
1302
|
-
decoderId: null
|
|
1427
|
+
decoderId: "windows-1252"
|
|
1303
1428
|
},
|
|
1304
|
-
"
|
|
1305
|
-
id: "
|
|
1429
|
+
"Windows-1253": {
|
|
1430
|
+
id: "Windows-1253",
|
|
1306
1431
|
groupId: "greek",
|
|
1307
|
-
|
|
1308
|
-
isDecodable: !0,
|
|
1309
|
-
decoderId: null
|
|
1432
|
+
decoderId: "windows-1253"
|
|
1310
1433
|
},
|
|
1311
|
-
"
|
|
1312
|
-
id: "
|
|
1434
|
+
"Windows-1254": {
|
|
1435
|
+
id: "Windows-1254",
|
|
1313
1436
|
groupId: "turkish",
|
|
1314
|
-
|
|
1315
|
-
isDecodable: !0,
|
|
1316
|
-
decoderId: null
|
|
1437
|
+
decoderId: "windows-1254"
|
|
1317
1438
|
},
|
|
1318
|
-
"
|
|
1319
|
-
id: "
|
|
1439
|
+
"Windows-1255": {
|
|
1440
|
+
id: "Windows-1255",
|
|
1320
1441
|
groupId: "hebrew",
|
|
1321
|
-
|
|
1322
|
-
isDecodable: !0,
|
|
1323
|
-
decoderId: null
|
|
1442
|
+
decoderId: "windows-1255"
|
|
1324
1443
|
},
|
|
1325
|
-
"
|
|
1326
|
-
id: "
|
|
1444
|
+
"Windows-1256": {
|
|
1445
|
+
id: "Windows-1256",
|
|
1327
1446
|
groupId: "arabic",
|
|
1328
|
-
|
|
1329
|
-
isDecodable: !0,
|
|
1330
|
-
decoderId: null
|
|
1447
|
+
decoderId: "windows-1256"
|
|
1331
1448
|
},
|
|
1332
|
-
"
|
|
1333
|
-
id: "
|
|
1449
|
+
"Windows-1257": {
|
|
1450
|
+
id: "Windows-1257",
|
|
1334
1451
|
groupId: "baltic",
|
|
1335
|
-
|
|
1336
|
-
isDecodable: !0,
|
|
1337
|
-
decoderId: null
|
|
1338
|
-
},
|
|
1339
|
-
"windows-1258": {
|
|
1340
|
-
id: "windows-1258",
|
|
1341
|
-
groupId: "vietnamese",
|
|
1342
|
-
isDetectable: !0,
|
|
1343
|
-
isDecodable: !0,
|
|
1344
|
-
decoderId: null
|
|
1345
|
-
},
|
|
1346
|
-
"windows-874": {
|
|
1347
|
-
id: "windows-874",
|
|
1348
|
-
groupId: "thai",
|
|
1349
|
-
isDetectable: !0,
|
|
1350
|
-
isDecodable: !0,
|
|
1351
|
-
decoderId: null
|
|
1352
|
-
},
|
|
1353
|
-
"x-mac-cyrillic": {
|
|
1354
|
-
id: "x-mac-cyrillic",
|
|
1355
|
-
groupId: "cyrillic",
|
|
1356
|
-
isDetectable: !1,
|
|
1357
|
-
isDecodable: !0,
|
|
1358
|
-
decoderId: null
|
|
1359
|
-
},
|
|
1360
|
-
"x-user-defined": {
|
|
1361
|
-
id: "x-user-defined",
|
|
1362
|
-
groupId: "other",
|
|
1363
|
-
isDetectable: !1,
|
|
1364
|
-
isDecodable: !0,
|
|
1365
|
-
decoderId: null
|
|
1452
|
+
decoderId: "windows-1257"
|
|
1366
1453
|
}
|
|
1367
|
-
},
|
|
1368
|
-
function
|
|
1369
|
-
return Object.hasOwn(
|
|
1454
|
+
}, G = Ve, K = He;
|
|
1455
|
+
function q(e) {
|
|
1456
|
+
return Object.hasOwn(K, e);
|
|
1370
1457
|
}
|
|
1371
|
-
function Ue(e
|
|
1372
|
-
return
|
|
1373
|
-
|
|
1458
|
+
function Ue(e) {
|
|
1459
|
+
return q(e) ? K[e].decoderId ?? e : e;
|
|
1460
|
+
}
|
|
1461
|
+
function We(e = "en") {
|
|
1462
|
+
return Array.from(Object.values(K), ({ decoderId: t, groupId: n, id: r }) => {
|
|
1463
|
+
let i = n == null ? "" : Ge(n, e);
|
|
1374
1464
|
return {
|
|
1375
1465
|
id: r,
|
|
1376
|
-
groupLabel:
|
|
1377
|
-
label:
|
|
1378
|
-
|
|
1379
|
-
isDecodable: i,
|
|
1466
|
+
groupLabel: i,
|
|
1467
|
+
label: i ? `${i} (${r})` : r,
|
|
1468
|
+
isDecodable: t != null,
|
|
1380
1469
|
decoderId: t
|
|
1381
1470
|
};
|
|
1382
1471
|
}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.label.localeCompare(n.label, e));
|
|
1383
1472
|
}
|
|
1384
|
-
function
|
|
1385
|
-
let n =
|
|
1473
|
+
function Ge(e, t) {
|
|
1474
|
+
let n = G[e].label;
|
|
1386
1475
|
return n[t] ?? n.en ?? e;
|
|
1387
1476
|
}
|
|
1388
1477
|
//#endregion
|
|
1389
1478
|
//#region src/locale/index.ts
|
|
1390
|
-
function
|
|
1479
|
+
function Ke(e, t) {
|
|
1391
1480
|
return {
|
|
1392
1481
|
...e,
|
|
1393
1482
|
label: e.label[t] ?? e.id,
|
|
@@ -1395,7 +1484,7 @@ function Ge(e, t) {
|
|
|
1395
1484
|
verb: e.verb?.[t] ?? void 0
|
|
1396
1485
|
};
|
|
1397
1486
|
}
|
|
1398
|
-
function
|
|
1487
|
+
function J(e, t, n = !1) {
|
|
1399
1488
|
let r = e.map((e) => ({
|
|
1400
1489
|
...e,
|
|
1401
1490
|
label: e.label[t] ?? e.id,
|
|
@@ -1404,7 +1493,7 @@ function Ke(e, t, n = !1) {
|
|
|
1404
1493
|
}));
|
|
1405
1494
|
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
1406
1495
|
}
|
|
1407
|
-
function
|
|
1496
|
+
function qe(e, t) {
|
|
1408
1497
|
return {
|
|
1409
1498
|
...e,
|
|
1410
1499
|
label: e.label[t] ?? e.id,
|
|
@@ -1440,7 +1529,7 @@ var Y = [
|
|
|
1440
1529
|
(e) => `${$(e)} ms`
|
|
1441
1530
|
]
|
|
1442
1531
|
], X = "en", Z = /* @__PURE__ */ new Map();
|
|
1443
|
-
function
|
|
1532
|
+
function Je(e) {
|
|
1444
1533
|
switch (e) {
|
|
1445
1534
|
case "Edm.Binary": return "unknown";
|
|
1446
1535
|
case "Edm.Boolean": return "boolean";
|
|
@@ -1460,13 +1549,13 @@ function qe(e) {
|
|
|
1460
1549
|
default: return "unknown";
|
|
1461
1550
|
}
|
|
1462
1551
|
}
|
|
1463
|
-
function
|
|
1552
|
+
function Ye(e) {
|
|
1464
1553
|
if (e) {
|
|
1465
1554
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
1466
1555
|
return n <= t || n === -1 ? e : e.slice(0, Math.max(0, n));
|
|
1467
1556
|
}
|
|
1468
1557
|
}
|
|
1469
|
-
function
|
|
1558
|
+
function Xe(e) {
|
|
1470
1559
|
if (e) {
|
|
1471
1560
|
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
1472
1561
|
if (n <= t) return;
|
|
@@ -1485,13 +1574,13 @@ function Q(e, t = 2, n = t, r = X) {
|
|
|
1485
1574
|
useGrouping: !0
|
|
1486
1575
|
}), Z.set(i, a)), a.format(e);
|
|
1487
1576
|
}
|
|
1488
|
-
function
|
|
1577
|
+
function Ze(e, t = 1) {
|
|
1489
1578
|
return e == null ? "" : e < 1e3 ? $(e) : e < 1e6 ? `${Q(e / 1e3, t, 0)}K` : e < 1e9 ? `${Q(e / 1e6, t, 0)}M` : e < 0xe8d4a51000 ? `${Q(e / 1e9, t, 0)}B` : `${Q(e / 0xe8d4a51000, t, 0)}T`;
|
|
1490
1579
|
}
|
|
1491
|
-
function
|
|
1580
|
+
function Qe(e, t = 1) {
|
|
1492
1581
|
return e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${$(e)} bytes` : e < 1048576 ? `${Q(e / 1024, t, 0)} KB` : e < 1073741824 ? `${Q(e / 1048576, t, 0)} MB` : e < 1099511627776 ? `${Q(e / 1073741824, t, 0)} GB` : `${Q(e / 1099511627776, t, 0)} TB`;
|
|
1493
1582
|
}
|
|
1494
|
-
function
|
|
1583
|
+
function $e(e, t = "ms") {
|
|
1495
1584
|
if (e == null) return "";
|
|
1496
1585
|
let n = Y.findIndex(([, t]) => e >= t), r = n === -1 ? Y.length - 1 : n, i = Y.findIndex(([e]) => e === t), a = Y.slice(r, Math.max(i, r) + 1), o = [], s = e;
|
|
1497
1586
|
for (let [, e, t] of a) s < e || s === 0 && o.length > 0 || (o.push(t(e > 0 ? Math.floor(s / e) : s)), s %= e > 0 ? e : 1);
|
|
@@ -1509,7 +1598,7 @@ function $(e, t = X) {
|
|
|
1509
1598
|
useGrouping: !0
|
|
1510
1599
|
}), Z.set(n, r)), r.format(e);
|
|
1511
1600
|
}
|
|
1512
|
-
function
|
|
1601
|
+
function et(e) {
|
|
1513
1602
|
switch (e?.toLowerCase()) {
|
|
1514
1603
|
case "csv": return "text/csv";
|
|
1515
1604
|
case "tab":
|
|
@@ -1520,4 +1609,4 @@ function $e(e) {
|
|
|
1520
1609
|
}
|
|
1521
1610
|
}
|
|
1522
1611
|
//#endregion
|
|
1523
|
-
export {
|
|
1612
|
+
export { R as APIError, L as AppError, B as ConnectorError, e as DEFAULT_LOCALE_ID, G as ENCODING_GROUP_CONFIG_MAP, K as ENCODING_TYPE_CONFIG_MAP, z as EngineError, V as FetchError, le as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, ke as buildFetchError, oe as componentInstanceConfigSchema, Ae as concatenateSerialisedErrorMessages, ge as connectorConfigSchema, j as constructConnectorCategoryConfig, M as constructConnectorUsageConfig, Je as convertODataTypeIdToUsageTypeId, we as cookbookConfigSchema, n as createLabelMap, xe as determineConnectorUsageId, Xe as extractExtensionFromPath, Ye as extractNameFromPath, Q as formatNumberAsDecimalNumber, $e as formatNumberAsDuration, Ze as formatNumberAsSize, Qe as formatNumberAsStorageSize, $ as formatNumberAsWholeNumber, ce as getComponentStatus, Se as getConnectorActionsTable, We as getEncodingTypeConfigs, je as ignoreErrors, q as isEncodingTypeId, Be as loadTool, Ke as localiseConfig, J as localiseConfigs, qe as localiseReference, et as lookupMimeTypeForExtension, H as normalizeToError, Ee as presenterConfigSchema, Ue as resolveDecoderId, r as resolveLabel, Me as serialiseError, Ne as unserialiseError };
|