@dpuse/dpuse-shared 0.3.851 → 0.3.865
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 +98 -160
- package/dist/dpuse-shared.es.js +1473 -0
- package/dist/dpuse-shared.es.js.map +1 -0
- package/dist/types/src/component/connection/index.d.ts +5 -4
- package/dist/types/src/component/context/index.d.ts +2 -1
- package/dist/types/src/component/context/model/entity/event/index.d.ts +2 -1
- package/dist/types/src/component/context/model/entity/index.d.ts +2 -1
- package/dist/types/src/component/dataView/index.d.ts +8 -7
- package/dist/types/src/component/index.d.ts +2 -3
- package/dist/types/src/component/module/connector/index.d.ts +1 -11
- package/dist/types/src/component/module/cookbook/index.d.ts +1 -2
- package/dist/types/src/component/module/index.d.ts +1 -2
- package/dist/types/src/component/presentation/index.d.ts +0 -12
- package/dist/types/src/component/recipe/index.d.ts +1 -2
- package/dist/types/src/encoding/index.d.ts +4 -4
- package/dist/types/src/errors/index.d.ts +2 -1
- package/dist/types/src/index.d.ts +24 -0
- package/dist/types/src/locale/label.d.ts +2 -1
- package/package.json +9 -116
- package/dist/componentConfig.schema-DT3mO5rS.js +0 -416
- package/dist/componentConfig.schema-DT3mO5rS.js.map +0 -1
- package/dist/dpuse-shared-component.es.js +0 -53
- package/dist/dpuse-shared-component.es.js.map +0 -1
- package/dist/dpuse-shared-componentConnection.es.js +0 -0
- package/dist/dpuse-shared-componentContext.es.js +0 -0
- package/dist/dpuse-shared-componentContextModel.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelDimension.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelDimensionHierarchy.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelEntity.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelEntityDataItem.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelEntityEvent.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelEntityPrimaryMeasure.es.js +0 -0
- package/dist/dpuse-shared-componentContextModelSecondaryMeasure.es.js +0 -0
- package/dist/dpuse-shared-componentDataView.es.js +0 -18
- package/dist/dpuse-shared-componentDataView.es.js.map +0 -1
- package/dist/dpuse-shared-componentEventQuery.es.js +0 -0
- package/dist/dpuse-shared-componentModule.es.js +0 -0
- package/dist/dpuse-shared-componentModuleConnector.es.js +0 -182
- package/dist/dpuse-shared-componentModuleConnector.es.js.map +0 -1
- package/dist/dpuse-shared-componentModuleCookbook.es.js +0 -11
- package/dist/dpuse-shared-componentModuleCookbook.es.js.map +0 -1
- package/dist/dpuse-shared-componentModuleEngine.es.js +0 -0
- package/dist/dpuse-shared-componentModulePresenter.es.js +0 -15
- package/dist/dpuse-shared-componentModulePresenter.es.js.map +0 -1
- package/dist/dpuse-shared-componentModuleTool.es.js +0 -29
- package/dist/dpuse-shared-componentModuleTool.es.js.map +0 -1
- package/dist/dpuse-shared-componentPresentation.es.js +0 -0
- package/dist/dpuse-shared-componentRecipe.es.js +0 -4
- package/dist/dpuse-shared-componentRecipe.es.js.map +0 -1
- package/dist/dpuse-shared-encoding.es.js +0 -467
- package/dist/dpuse-shared-encoding.es.js.map +0 -1
- package/dist/dpuse-shared-errors.es.js +0 -150
- package/dist/dpuse-shared-errors.es.js.map +0 -1
- package/dist/dpuse-shared-locale.es.js +0 -28
- package/dist/dpuse-shared-locale.es.js.map +0 -1
- package/dist/dpuse-shared-utilities.es.js +0 -109
- package/dist/dpuse-shared-utilities.es.js.map +0 -1
- package/dist/label-DexpXrnC.js +0 -19
- package/dist/label-DexpXrnC.js.map +0 -1
- package/dist/moduleConfig.schema-aYmFWSrn.js +0 -22
- package/dist/moduleConfig.schema-aYmFWSrn.js.map +0 -1
package/dist/dpuse-shared.es.js
CHANGED
|
@@ -0,0 +1,1473 @@
|
|
|
1
|
+
//#region src/locale/label.ts
|
|
2
|
+
var e = "en", t = [{
|
|
3
|
+
id: "en",
|
|
4
|
+
flag: "gb",
|
|
5
|
+
label: "English"
|
|
6
|
+
}, {
|
|
7
|
+
id: "es",
|
|
8
|
+
flag: "es",
|
|
9
|
+
label: "Español"
|
|
10
|
+
}];
|
|
11
|
+
function n(e) {
|
|
12
|
+
return new Map(Object.entries(e));
|
|
13
|
+
}
|
|
14
|
+
function r(e, t, n = "en") {
|
|
15
|
+
let r = e.get(t);
|
|
16
|
+
return r === void 0 ? n === t ? void 0 : e.get(n) : r;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region node_modules/valibot/dist/index.mjs
|
|
20
|
+
var i = {
|
|
21
|
+
lang: void 0,
|
|
22
|
+
message: void 0,
|
|
23
|
+
abortEarly: void 0,
|
|
24
|
+
abortPipeEarly: void 0
|
|
25
|
+
};
|
|
26
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
27
|
+
function a(e) {
|
|
28
|
+
return e ? {
|
|
29
|
+
lang: e?.lang ?? void 0,
|
|
30
|
+
message: e?.message,
|
|
31
|
+
abortEarly: e?.abortEarly ?? void 0,
|
|
32
|
+
abortPipeEarly: e?.abortPipeEarly ?? void 0
|
|
33
|
+
} : i;
|
|
34
|
+
}
|
|
35
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
36
|
+
function o(e) {
|
|
37
|
+
let t = typeof e;
|
|
38
|
+
return t === "string" ? `"${e}"` : t === "number" || t === "bigint" || t === "boolean" ? `${e}` : t === "object" || t === "function" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? "null" : t;
|
|
39
|
+
}
|
|
40
|
+
function s(e, t, n, r, i) {
|
|
41
|
+
let a = i && "input" in i ? i.input : n.value, s = i?.expected ?? e.expects ?? null, c = i?.received ?? /* @__PURE__ */ o(a), l = {
|
|
42
|
+
kind: e.kind,
|
|
43
|
+
type: e.type,
|
|
44
|
+
input: a,
|
|
45
|
+
expected: s,
|
|
46
|
+
received: c,
|
|
47
|
+
message: `Invalid ${t}: ${s ? `Expected ${s} but r` : "R"}eceived ${c}`,
|
|
48
|
+
requirement: e.requirement,
|
|
49
|
+
path: i?.path,
|
|
50
|
+
issues: i?.issues,
|
|
51
|
+
lang: r.lang,
|
|
52
|
+
abortEarly: r.abortEarly,
|
|
53
|
+
abortPipeEarly: r.abortPipeEarly
|
|
54
|
+
}, u = e.kind === "schema", d = i?.message ?? e.message ?? (e.reference, l.lang, void 0) ?? (u ? (l.lang, void 0) : null) ?? r.message ?? (l.lang, void 0);
|
|
55
|
+
d !== void 0 && (l.message = typeof d == "function" ? d(l) : d), u && (n.typed = !1), n.issues ? n.issues.push(l) : n.issues = [l];
|
|
56
|
+
}
|
|
57
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
58
|
+
function c(e, t) {
|
|
59
|
+
return e === t || Number.isNaN(e) && Number.isNaN(t);
|
|
60
|
+
}
|
|
61
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
62
|
+
function l(e, t) {
|
|
63
|
+
return Object.prototype.hasOwnProperty.call(e, t) && t !== "__proto__" && t !== "prototype" && t !== "constructor";
|
|
64
|
+
}
|
|
65
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
66
|
+
function u(e, t) {
|
|
67
|
+
let n = [...new Set(e)];
|
|
68
|
+
return n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? "never";
|
|
69
|
+
}
|
|
70
|
+
function d(e) {
|
|
71
|
+
return e["~standard"] = {
|
|
72
|
+
version: 1,
|
|
73
|
+
vendor: "valibot",
|
|
74
|
+
validate: (t) => e["~run"]({ value: t }, /* @__PURE__ */ a())
|
|
75
|
+
}, e;
|
|
76
|
+
}
|
|
77
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
78
|
+
function ee(e, t, n) {
|
|
79
|
+
return typeof e.fallback == "function" ? e.fallback(t, n) : e.fallback;
|
|
80
|
+
}
|
|
81
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
82
|
+
function f(e, t, n) {
|
|
83
|
+
return typeof e.default == "function" ? e.default(t, n) : e.default;
|
|
84
|
+
}
|
|
85
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
86
|
+
function p(e, t) {
|
|
87
|
+
return d({
|
|
88
|
+
kind: "schema",
|
|
89
|
+
type: "array",
|
|
90
|
+
reference: p,
|
|
91
|
+
expects: "Array",
|
|
92
|
+
async: !1,
|
|
93
|
+
item: e,
|
|
94
|
+
message: t,
|
|
95
|
+
"~run"(e, t) {
|
|
96
|
+
let n = e.value;
|
|
97
|
+
if (Array.isArray(n)) {
|
|
98
|
+
e.typed = !0, e.value = [];
|
|
99
|
+
for (let r = 0; r < n.length; r++) {
|
|
100
|
+
let i = n[r], a = this.item["~run"]({ value: i }, t);
|
|
101
|
+
if (a.issues) {
|
|
102
|
+
let o = {
|
|
103
|
+
type: "array",
|
|
104
|
+
origin: "value",
|
|
105
|
+
input: n,
|
|
106
|
+
key: r,
|
|
107
|
+
value: i
|
|
108
|
+
};
|
|
109
|
+
for (let t of a.issues) t.path ? t.path.unshift(o) : t.path = [o], e.issues?.push(t);
|
|
110
|
+
if (e.issues ||= a.issues, t.abortEarly) {
|
|
111
|
+
e.typed = !1;
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
a.typed || (e.typed = !1), e.value.push(a.value);
|
|
116
|
+
}
|
|
117
|
+
} else s(this, "type", e, t);
|
|
118
|
+
return e;
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
123
|
+
function m(e) {
|
|
124
|
+
return d({
|
|
125
|
+
kind: "schema",
|
|
126
|
+
type: "boolean",
|
|
127
|
+
reference: m,
|
|
128
|
+
expects: "boolean",
|
|
129
|
+
async: !1,
|
|
130
|
+
message: e,
|
|
131
|
+
"~run"(e, t) {
|
|
132
|
+
return typeof e.value == "boolean" ? e.typed = !0 : s(this, "type", e, t), e;
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
137
|
+
function h(e, t) {
|
|
138
|
+
return d({
|
|
139
|
+
kind: "schema",
|
|
140
|
+
type: "literal",
|
|
141
|
+
reference: h,
|
|
142
|
+
expects: /* @__PURE__ */ o(e),
|
|
143
|
+
async: !1,
|
|
144
|
+
literal: e,
|
|
145
|
+
message: t,
|
|
146
|
+
"~run"(e, t) {
|
|
147
|
+
return /* @__PURE__ */ c(e.value, this.literal) ? e.typed = !0 : s(this, "type", e, t), e;
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
152
|
+
function g(e, t) {
|
|
153
|
+
return d({
|
|
154
|
+
kind: "schema",
|
|
155
|
+
type: "nullable",
|
|
156
|
+
reference: g,
|
|
157
|
+
expects: `(${e.expects} | null)`,
|
|
158
|
+
async: !1,
|
|
159
|
+
wrapped: e,
|
|
160
|
+
default: t,
|
|
161
|
+
"~run"(e, t) {
|
|
162
|
+
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ f(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
167
|
+
function _(e) {
|
|
168
|
+
return d({
|
|
169
|
+
kind: "schema",
|
|
170
|
+
type: "number",
|
|
171
|
+
reference: _,
|
|
172
|
+
expects: "number",
|
|
173
|
+
async: !1,
|
|
174
|
+
message: e,
|
|
175
|
+
"~run"(e, t) {
|
|
176
|
+
return typeof e.value == "number" && !isNaN(e.value) ? e.typed = !0 : s(this, "type", e, t), e;
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
181
|
+
function v(e, t) {
|
|
182
|
+
return d({
|
|
183
|
+
kind: "schema",
|
|
184
|
+
type: "optional",
|
|
185
|
+
reference: v,
|
|
186
|
+
expects: `(${e.expects} | undefined)`,
|
|
187
|
+
async: !1,
|
|
188
|
+
wrapped: e,
|
|
189
|
+
default: t,
|
|
190
|
+
"~run"(e, t) {
|
|
191
|
+
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ f(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, t);
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
196
|
+
function y(e, t, n) {
|
|
197
|
+
return d({
|
|
198
|
+
kind: "schema",
|
|
199
|
+
type: "record",
|
|
200
|
+
reference: y,
|
|
201
|
+
expects: "Object",
|
|
202
|
+
async: !1,
|
|
203
|
+
key: e,
|
|
204
|
+
value: t,
|
|
205
|
+
message: n,
|
|
206
|
+
"~run"(e, t) {
|
|
207
|
+
let n = e.value;
|
|
208
|
+
if (n && typeof n == "object") {
|
|
209
|
+
e.typed = !0, e.value = {};
|
|
210
|
+
for (let r in n) if (/* @__PURE__ */ l(n, r)) {
|
|
211
|
+
let i = n[r], a = this.key["~run"]({ value: r }, t);
|
|
212
|
+
if (a.issues) {
|
|
213
|
+
let o = {
|
|
214
|
+
type: "object",
|
|
215
|
+
origin: "key",
|
|
216
|
+
input: n,
|
|
217
|
+
key: r,
|
|
218
|
+
value: i
|
|
219
|
+
};
|
|
220
|
+
for (let t of a.issues) t.path = [o], e.issues?.push(t);
|
|
221
|
+
if (e.issues ||= a.issues, t.abortEarly) {
|
|
222
|
+
e.typed = !1;
|
|
223
|
+
break;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
let o = this.value["~run"]({ value: i }, t);
|
|
227
|
+
if (o.issues) {
|
|
228
|
+
let a = {
|
|
229
|
+
type: "object",
|
|
230
|
+
origin: "value",
|
|
231
|
+
input: n,
|
|
232
|
+
key: r,
|
|
233
|
+
value: i
|
|
234
|
+
};
|
|
235
|
+
for (let t of o.issues) t.path ? t.path.unshift(a) : t.path = [a], e.issues?.push(t);
|
|
236
|
+
if (e.issues ||= o.issues, t.abortEarly) {
|
|
237
|
+
e.typed = !1;
|
|
238
|
+
break;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
(!a.typed || !o.typed) && (e.typed = !1), a.typed && (e.value[a.value] = o.value);
|
|
242
|
+
}
|
|
243
|
+
} else s(this, "type", e, t);
|
|
244
|
+
return e;
|
|
245
|
+
}
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
249
|
+
function b(e, t) {
|
|
250
|
+
return d({
|
|
251
|
+
kind: "schema",
|
|
252
|
+
type: "strict_object",
|
|
253
|
+
reference: b,
|
|
254
|
+
expects: "Object",
|
|
255
|
+
async: !1,
|
|
256
|
+
entries: e,
|
|
257
|
+
message: t,
|
|
258
|
+
"~run"(e, t) {
|
|
259
|
+
let n = e.value;
|
|
260
|
+
if (n && typeof n == "object") {
|
|
261
|
+
e.typed = !0, e.value = {};
|
|
262
|
+
for (let r in this.entries) {
|
|
263
|
+
let i = this.entries[r];
|
|
264
|
+
if (r in n || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
|
|
265
|
+
let a = r in n ? n[r] : /* @__PURE__ */ f(i), o = i["~run"]({ value: a }, t);
|
|
266
|
+
if (o.issues) {
|
|
267
|
+
let i = {
|
|
268
|
+
type: "object",
|
|
269
|
+
origin: "value",
|
|
270
|
+
input: n,
|
|
271
|
+
key: r,
|
|
272
|
+
value: a
|
|
273
|
+
};
|
|
274
|
+
for (let t of o.issues) t.path ? t.path.unshift(i) : t.path = [i], e.issues?.push(t);
|
|
275
|
+
if (e.issues ||= o.issues, t.abortEarly) {
|
|
276
|
+
e.typed = !1;
|
|
277
|
+
break;
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
o.typed || (e.typed = !1), e.value[r] = o.value;
|
|
281
|
+
} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ ee(i);
|
|
282
|
+
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (s(this, "key", e, t, {
|
|
283
|
+
input: void 0,
|
|
284
|
+
expected: `"${r}"`,
|
|
285
|
+
path: [{
|
|
286
|
+
type: "object",
|
|
287
|
+
origin: "key",
|
|
288
|
+
input: n,
|
|
289
|
+
key: r,
|
|
290
|
+
value: n[r]
|
|
291
|
+
}]
|
|
292
|
+
}), t.abortEarly)) break;
|
|
293
|
+
}
|
|
294
|
+
if (!e.issues || !t.abortEarly) {
|
|
295
|
+
for (let r in n) if (!Object.prototype.hasOwnProperty.call(this.entries, r)) {
|
|
296
|
+
s(this, "key", e, t, {
|
|
297
|
+
input: r,
|
|
298
|
+
expected: "never",
|
|
299
|
+
path: [{
|
|
300
|
+
type: "object",
|
|
301
|
+
origin: "key",
|
|
302
|
+
input: n,
|
|
303
|
+
key: r,
|
|
304
|
+
value: n[r]
|
|
305
|
+
}]
|
|
306
|
+
});
|
|
307
|
+
break;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
} else s(this, "type", e, t);
|
|
311
|
+
return e;
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
316
|
+
function x(e) {
|
|
317
|
+
return d({
|
|
318
|
+
kind: "schema",
|
|
319
|
+
type: "string",
|
|
320
|
+
reference: x,
|
|
321
|
+
expects: "string",
|
|
322
|
+
async: !1,
|
|
323
|
+
message: e,
|
|
324
|
+
"~run"(e, t) {
|
|
325
|
+
return typeof e.value == "string" ? e.typed = !0 : s(this, "type", e, t), e;
|
|
326
|
+
}
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
330
|
+
function S(e) {
|
|
331
|
+
let t;
|
|
332
|
+
if (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);
|
|
333
|
+
else t = n.issues;
|
|
334
|
+
return t;
|
|
335
|
+
}
|
|
336
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
337
|
+
function C(e, t) {
|
|
338
|
+
return d({
|
|
339
|
+
kind: "schema",
|
|
340
|
+
type: "union",
|
|
341
|
+
reference: C,
|
|
342
|
+
expects: /* @__PURE__ */ u(e.map((e) => e.expects), "|"),
|
|
343
|
+
async: !1,
|
|
344
|
+
options: e,
|
|
345
|
+
message: t,
|
|
346
|
+
"~run"(e, t) {
|
|
347
|
+
let n, r, i;
|
|
348
|
+
for (let a of this.options) {
|
|
349
|
+
let o = a["~run"]({ value: e.value }, t);
|
|
350
|
+
if (o.typed) {
|
|
351
|
+
if (o.issues) r ? r.push(o) : r = [o];
|
|
352
|
+
else {
|
|
353
|
+
n = o;
|
|
354
|
+
break;
|
|
355
|
+
}
|
|
356
|
+
} else i ? i.push(o) : i = [o];
|
|
357
|
+
}
|
|
358
|
+
if (n) return n;
|
|
359
|
+
if (r) {
|
|
360
|
+
if (r.length === 1) return r[0];
|
|
361
|
+
s(this, "type", e, t, { issues: /* @__PURE__ */ S(r) }), e.typed = !0;
|
|
362
|
+
} else if (i?.length === 1) return i[0];
|
|
363
|
+
else s(this, "type", e, t, { issues: /* @__PURE__ */ S(i) });
|
|
364
|
+
return e;
|
|
365
|
+
}
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
//#endregion
|
|
369
|
+
//#region src/locale/locale.schema.ts
|
|
370
|
+
var w = /* @__PURE__ */ b({
|
|
371
|
+
en: /* @__PURE__ */ x(),
|
|
372
|
+
es: /* @__PURE__ */ x()
|
|
373
|
+
}), te = {
|
|
374
|
+
id: /* @__PURE__ */ x(),
|
|
375
|
+
label: /* @__PURE__ */ b({
|
|
376
|
+
en: /* @__PURE__ */ v(/* @__PURE__ */ x()),
|
|
377
|
+
es: /* @__PURE__ */ v(/* @__PURE__ */ x())
|
|
378
|
+
}),
|
|
379
|
+
description: /* @__PURE__ */ b({
|
|
380
|
+
en: /* @__PURE__ */ v(/* @__PURE__ */ x()),
|
|
381
|
+
es: /* @__PURE__ */ v(/* @__PURE__ */ x())
|
|
382
|
+
}),
|
|
383
|
+
icon: /* @__PURE__ */ g(/* @__PURE__ */ x()),
|
|
384
|
+
iconDark: /* @__PURE__ */ g(/* @__PURE__ */ x())
|
|
385
|
+
}, T = (e) => /* @__PURE__ */ C(e.map((e) => /* @__PURE__ */ h(e))), ne = T([
|
|
386
|
+
"app",
|
|
387
|
+
"connector",
|
|
388
|
+
"connectorConnection",
|
|
389
|
+
"context",
|
|
390
|
+
"contextArea",
|
|
391
|
+
"contextModel",
|
|
392
|
+
"contextModelDimension",
|
|
393
|
+
"contextModelDimensionHierarchy",
|
|
394
|
+
"contextModelEntity",
|
|
395
|
+
"contextModelEntityDataItem",
|
|
396
|
+
"contextModelEntityEvent",
|
|
397
|
+
"contextModelEntityPrimaryMeasure",
|
|
398
|
+
"contextModelSecondaryMeasure",
|
|
399
|
+
"cookbook",
|
|
400
|
+
"cookbookRecipe",
|
|
401
|
+
"dataView",
|
|
402
|
+
"engine",
|
|
403
|
+
"eventQuery",
|
|
404
|
+
"presenter",
|
|
405
|
+
"presenterPresentation",
|
|
406
|
+
"tool"
|
|
407
|
+
]), re = T([
|
|
408
|
+
"danger",
|
|
409
|
+
"success",
|
|
410
|
+
"warning"
|
|
411
|
+
]), ie = T([
|
|
412
|
+
"alpha",
|
|
413
|
+
"beta",
|
|
414
|
+
"releaseCandidate",
|
|
415
|
+
"generalAvailability"
|
|
416
|
+
]), ae = /* @__PURE__ */ b({
|
|
417
|
+
color: re,
|
|
418
|
+
label: /* @__PURE__ */ x()
|
|
419
|
+
}), E = {
|
|
420
|
+
...te,
|
|
421
|
+
typeId: ne
|
|
422
|
+
}, D = /* @__PURE__ */ b({
|
|
423
|
+
...E,
|
|
424
|
+
order: /* @__PURE__ */ _(),
|
|
425
|
+
path: /* @__PURE__ */ x()
|
|
426
|
+
}), O = {
|
|
427
|
+
...E,
|
|
428
|
+
firstCreatedAt: /* @__PURE__ */ g(/* @__PURE__ */ _()),
|
|
429
|
+
lastUpdatedAt: /* @__PURE__ */ g(/* @__PURE__ */ _()),
|
|
430
|
+
status: /* @__PURE__ */ g(ae),
|
|
431
|
+
statusId: /* @__PURE__ */ g(ie)
|
|
432
|
+
}, oe = /* @__PURE__ */ b({ ...O }), se = [
|
|
433
|
+
{
|
|
434
|
+
id: "alpha",
|
|
435
|
+
color: "danger",
|
|
436
|
+
labels: {
|
|
437
|
+
en: "alpha",
|
|
438
|
+
es: "alfa"
|
|
439
|
+
}
|
|
440
|
+
},
|
|
441
|
+
{
|
|
442
|
+
id: "beta",
|
|
443
|
+
color: "warning",
|
|
444
|
+
labels: {
|
|
445
|
+
en: "beta",
|
|
446
|
+
es: "beta"
|
|
447
|
+
}
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
id: "releaseCandidate",
|
|
451
|
+
color: "success",
|
|
452
|
+
labels: {
|
|
453
|
+
en: "release-candidate",
|
|
454
|
+
es: "candidato-de-lanzamiento"
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
id: "generalAvailability",
|
|
459
|
+
color: "success",
|
|
460
|
+
labels: {
|
|
461
|
+
en: "",
|
|
462
|
+
es: ""
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
];
|
|
466
|
+
function ce(e, t = "en") {
|
|
467
|
+
let n = se.find((t) => t.id === e);
|
|
468
|
+
if (n) {
|
|
469
|
+
let e = n.labels[t] ?? n.labels.en ?? n.id;
|
|
470
|
+
return {
|
|
471
|
+
color: n.color,
|
|
472
|
+
label: e
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
return {
|
|
476
|
+
color: "danger",
|
|
477
|
+
label: e
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
//#endregion
|
|
481
|
+
//#region src/component/dataView/index.ts
|
|
482
|
+
n({ en: "Data Positioning Events" }), n({ en: "Delimited Text" }), n({ en: "JSON" }), n({ en: "SPSS" }), n({ en: "XLSX" }), n({ en: "XML" });
|
|
483
|
+
var le = [
|
|
484
|
+
",",
|
|
485
|
+
";",
|
|
486
|
+
" ",
|
|
487
|
+
"|",
|
|
488
|
+
" ",
|
|
489
|
+
":",
|
|
490
|
+
"_",
|
|
491
|
+
"!",
|
|
492
|
+
"0x1F",
|
|
493
|
+
"0x1E"
|
|
494
|
+
];
|
|
495
|
+
n({ en: "Newline" }), n({ en: "Carriage Return" }), n({ en: "Carriage Return/Newline" }), n({ en: "Colon" }), n({ en: "Comma" }), n({ en: "Exclamation Mark" }), n({ en: "Record Separator" }), n({ en: "Semicolon" }), n({ en: "Space" }), n({ en: "Tab" }), n({ en: "Underscore" }), n({ en: "Unit Separator" }), n({ en: "Vertical Bar" }), T([
|
|
496
|
+
"app",
|
|
497
|
+
"engine",
|
|
498
|
+
"connector",
|
|
499
|
+
"cookbook",
|
|
500
|
+
"presenter",
|
|
501
|
+
"tool"
|
|
502
|
+
]);
|
|
503
|
+
//#endregion
|
|
504
|
+
//#region src/component/module/moduleConfig.schema.ts
|
|
505
|
+
var k = {
|
|
506
|
+
...O,
|
|
507
|
+
vendorAccountURL: /* @__PURE__ */ g(/* @__PURE__ */ x()),
|
|
508
|
+
vendorDocumentationURL: /* @__PURE__ */ g(/* @__PURE__ */ x()),
|
|
509
|
+
vendorHomeURL: /* @__PURE__ */ g(/* @__PURE__ */ x()),
|
|
510
|
+
version: /* @__PURE__ */ x()
|
|
511
|
+
};
|
|
512
|
+
({ ...k });
|
|
513
|
+
//#endregion
|
|
514
|
+
//#region src/component/module/connector/connectorConfig.schema.ts
|
|
515
|
+
var ue = T([
|
|
516
|
+
"abortOperation",
|
|
517
|
+
"auditObjectContent",
|
|
518
|
+
"createObject",
|
|
519
|
+
"describeConnection",
|
|
520
|
+
"dropObject",
|
|
521
|
+
"findObject",
|
|
522
|
+
"getInfo",
|
|
523
|
+
"getReadableStream",
|
|
524
|
+
"getRecord",
|
|
525
|
+
"listNodes",
|
|
526
|
+
"previewObject",
|
|
527
|
+
"removeRecords",
|
|
528
|
+
"retrieveChunks",
|
|
529
|
+
"retrieveRecords",
|
|
530
|
+
"upsertRecords"
|
|
531
|
+
]), de = T([
|
|
532
|
+
"application",
|
|
533
|
+
"curatedDataset",
|
|
534
|
+
"database",
|
|
535
|
+
"fileStore"
|
|
536
|
+
]), fe = /* @__PURE__ */ b({ label: w }), pe = T([
|
|
537
|
+
"bidirectional",
|
|
538
|
+
"destination",
|
|
539
|
+
"source",
|
|
540
|
+
"unknown"
|
|
541
|
+
]), me = /* @__PURE__ */ b({ label: w }), he = /* @__PURE__ */ b({
|
|
542
|
+
authMethodId: T([
|
|
543
|
+
"apiKey",
|
|
544
|
+
"disabled",
|
|
545
|
+
"oAuth2",
|
|
546
|
+
"none"
|
|
547
|
+
]),
|
|
548
|
+
activeConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ _()),
|
|
549
|
+
canDescribe: /* @__PURE__ */ v(/* @__PURE__ */ m()),
|
|
550
|
+
id: /* @__PURE__ */ v(/* @__PURE__ */ x()),
|
|
551
|
+
label: /* @__PURE__ */ v(w),
|
|
552
|
+
maxConnectionCount: /* @__PURE__ */ g(/* @__PURE__ */ _()),
|
|
553
|
+
params: /* @__PURE__ */ v(/* @__PURE__ */ p(/* @__PURE__ */ y(/* @__PURE__ */ x(), /* @__PURE__ */ x())))
|
|
554
|
+
}), ge = /* @__PURE__ */ b({
|
|
555
|
+
...k,
|
|
556
|
+
typeId: /* @__PURE__ */ h("connector"),
|
|
557
|
+
actionNames: /* @__PURE__ */ p(ue),
|
|
558
|
+
category: /* @__PURE__ */ g(fe),
|
|
559
|
+
categoryId: de,
|
|
560
|
+
implementations: /* @__PURE__ */ y(/* @__PURE__ */ x(), he),
|
|
561
|
+
usage: /* @__PURE__ */ g(me),
|
|
562
|
+
usageId: /* @__PURE__ */ g(pe)
|
|
563
|
+
}), _e = [
|
|
564
|
+
{
|
|
565
|
+
id: "application",
|
|
566
|
+
label: {
|
|
567
|
+
en: "Application",
|
|
568
|
+
es: "Aplicación"
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
{
|
|
572
|
+
id: "curatedDataset",
|
|
573
|
+
label: {
|
|
574
|
+
en: "Curated Dataset",
|
|
575
|
+
es: "Conjunto de Datos Curado"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
id: "database",
|
|
580
|
+
label: {
|
|
581
|
+
en: "Database",
|
|
582
|
+
es: "Base de Datos"
|
|
583
|
+
}
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
id: "fileStore",
|
|
587
|
+
label: {
|
|
588
|
+
en: "File Store",
|
|
589
|
+
es: "Almacén de Archivos"
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
], A = {
|
|
593
|
+
abortOperation: "Abort Operation",
|
|
594
|
+
auditObjectContent: "Audit Object Content",
|
|
595
|
+
createObject: "Create Object",
|
|
596
|
+
describeConnection: "Describe Connection",
|
|
597
|
+
dropObject: "Drop Object",
|
|
598
|
+
findObject: "Find Object",
|
|
599
|
+
getInfo: "Get Info",
|
|
600
|
+
getReadableStream: "Get Readable Stream",
|
|
601
|
+
getRecord: "Get Record",
|
|
602
|
+
listNodes: "List Nodes",
|
|
603
|
+
previewObject: "Preview Object",
|
|
604
|
+
removeRecords: "Remove Records",
|
|
605
|
+
retrieveChunks: "Retrieve Chunks",
|
|
606
|
+
retrieveRecords: "Retrieve Records",
|
|
607
|
+
upsertRecords: "Upsert Records"
|
|
608
|
+
}, ve = [
|
|
609
|
+
{
|
|
610
|
+
id: "bidirectional",
|
|
611
|
+
label: {
|
|
612
|
+
en: "Bidirectional",
|
|
613
|
+
es: "Bidireccional"
|
|
614
|
+
}
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
id: "destination",
|
|
618
|
+
label: {
|
|
619
|
+
en: "Destination",
|
|
620
|
+
es: "Destino"
|
|
621
|
+
}
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
id: "source",
|
|
625
|
+
label: {
|
|
626
|
+
en: "Source",
|
|
627
|
+
es: "Origen"
|
|
628
|
+
}
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
id: "unknown",
|
|
632
|
+
label: {
|
|
633
|
+
en: "Unknown",
|
|
634
|
+
es: "Desconocido"
|
|
635
|
+
}
|
|
636
|
+
}
|
|
637
|
+
], ye = /* @__PURE__ */ new Set([
|
|
638
|
+
"createObject",
|
|
639
|
+
"dropObject",
|
|
640
|
+
"removeRecords",
|
|
641
|
+
"upsertRecords"
|
|
642
|
+
]), be = /* @__PURE__ */ new Set([
|
|
643
|
+
"auditObjectContent",
|
|
644
|
+
"findObject",
|
|
645
|
+
"getInfo",
|
|
646
|
+
"getReadableStream",
|
|
647
|
+
"getRecord",
|
|
648
|
+
"listNodes",
|
|
649
|
+
"previewObject",
|
|
650
|
+
"retrieveChunks",
|
|
651
|
+
"retrieveRecords"
|
|
652
|
+
]);
|
|
653
|
+
function j(e) {
|
|
654
|
+
let t = !1, n = !1;
|
|
655
|
+
for (let r of e) be.has(r) && (t = !0), ye.has(r) && (n = !0);
|
|
656
|
+
return t && n ? "bidirectional" : t ? "source" : n ? "destination" : "unknown";
|
|
657
|
+
}
|
|
658
|
+
var M = (e, t = "en") => {
|
|
659
|
+
let i = _e.find((t) => t.id === e);
|
|
660
|
+
return i ? {
|
|
661
|
+
label: r(n(i.label), t) ?? i.id,
|
|
662
|
+
description: ""
|
|
663
|
+
} : {
|
|
664
|
+
label: e,
|
|
665
|
+
description: ""
|
|
666
|
+
};
|
|
667
|
+
}, N = (e, t = "en") => {
|
|
668
|
+
let i = ve.find((t) => t.id === e);
|
|
669
|
+
return i ? {
|
|
670
|
+
label: r(n(i.label), t) ?? i.id,
|
|
671
|
+
description: ""
|
|
672
|
+
} : {
|
|
673
|
+
label: e,
|
|
674
|
+
description: ""
|
|
675
|
+
};
|
|
676
|
+
};
|
|
677
|
+
function xe(e) {
|
|
678
|
+
let t = new Set(e), n = "|Action|Supported|\n";
|
|
679
|
+
n += "|:----|:-------:|\n";
|
|
680
|
+
for (let e of Object.keys(A)) n += `| ${A[e]} | ${t.has(e) ? "✓" : ""} |\n`;
|
|
681
|
+
return n;
|
|
682
|
+
}
|
|
683
|
+
//#endregion
|
|
684
|
+
//#region src/component/module/cookbook/cookbookConfig.schema.ts
|
|
685
|
+
var Se = T(["list"]), Ce = /* @__PURE__ */ b({
|
|
686
|
+
...k,
|
|
687
|
+
typeId: /* @__PURE__ */ h("cookbook"),
|
|
688
|
+
actionNames: /* @__PURE__ */ p(Se),
|
|
689
|
+
recipes: /* @__PURE__ */ p(D)
|
|
690
|
+
}), we = T([
|
|
691
|
+
"list",
|
|
692
|
+
"render",
|
|
693
|
+
"setColorMode"
|
|
694
|
+
]), Te = /* @__PURE__ */ b({
|
|
695
|
+
...k,
|
|
696
|
+
typeId: /* @__PURE__ */ h("presenter"),
|
|
697
|
+
actionNames: /* @__PURE__ */ p(we),
|
|
698
|
+
presentations: /* @__PURE__ */ p(D)
|
|
699
|
+
}), P = 2048, F = "[REDACTED]", Ee = 10, I = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, De = [
|
|
700
|
+
[/\b(Bearer|Basic) +[\w.~+/=-]+/gi, (e, t) => `${t} ${F}`],
|
|
701
|
+
[/(?<![\w-])([\w-]+)(["']?[ \t]*[:=][ \t]*["']?)([^\s"'&,;}?#]+)/g, (e, t, n, r) => I.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${F}` : e],
|
|
702
|
+
[/\beyJ[\w-]+\.[\w-]+\.[\w-]*/g, () => F],
|
|
703
|
+
[/\b(?:sk-|xaat-|xapt-|sl\.)[\w-]{16,}/g, () => F],
|
|
704
|
+
[/(?<![\w.+-])[\w.+-]+@[\w-]+\.[\w.-]+/g, () => F]
|
|
705
|
+
], L = class extends Error {
|
|
706
|
+
data;
|
|
707
|
+
locator;
|
|
708
|
+
constructor(e, t, n, r) {
|
|
709
|
+
super(e, r), this.name = "DPUseError", this.data = n, this.locator = t;
|
|
710
|
+
}
|
|
711
|
+
}, R = class extends L {
|
|
712
|
+
constructor(e, t, n, r) {
|
|
713
|
+
super(e, t, n, r), this.name = "AppError";
|
|
714
|
+
}
|
|
715
|
+
}, z = class extends L {
|
|
716
|
+
constructor(e, t, n, r) {
|
|
717
|
+
super(e, t, n, r), this.name = "APIError";
|
|
718
|
+
}
|
|
719
|
+
}, B = class extends L {
|
|
720
|
+
constructor(e, t, n, r) {
|
|
721
|
+
super(e, t, n, r), this.name = "EngineError";
|
|
722
|
+
}
|
|
723
|
+
}, V = class extends L {
|
|
724
|
+
constructor(e, t, n, r) {
|
|
725
|
+
super(e, t, n, r), this.name = "ConnectorError";
|
|
726
|
+
}
|
|
727
|
+
}, H = class extends L {
|
|
728
|
+
constructor(e, t, n, r) {
|
|
729
|
+
super(e, t, n, r), this.name = "FetchError";
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
async function Oe(e, t, n) {
|
|
733
|
+
let r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : ""}' received.`, a;
|
|
734
|
+
try {
|
|
735
|
+
a = await e.text();
|
|
736
|
+
} catch (e) {
|
|
737
|
+
a = `<body unavailable: ${U(e).message}>`;
|
|
738
|
+
}
|
|
739
|
+
return new H(i, n, { body: Ie(a) });
|
|
740
|
+
}
|
|
741
|
+
function ke(e) {
|
|
742
|
+
return e.map((e) => e.message).join(" ");
|
|
743
|
+
}
|
|
744
|
+
function Ae(e) {
|
|
745
|
+
try {
|
|
746
|
+
e();
|
|
747
|
+
} catch {}
|
|
748
|
+
}
|
|
749
|
+
function U(e) {
|
|
750
|
+
if (e instanceof Error) return e;
|
|
751
|
+
if (typeof e == "string") return Error(e);
|
|
752
|
+
if (typeof e == "number" || typeof e == "boolean" || typeof e == "bigint") return Error(String(e));
|
|
753
|
+
if (typeof e == "symbol") return Error(e.description ?? "Unknown error");
|
|
754
|
+
if (typeof e == "object") try {
|
|
755
|
+
return Error(JSON.stringify(e));
|
|
756
|
+
} catch {
|
|
757
|
+
return /* @__PURE__ */ Error("Unknown error");
|
|
758
|
+
}
|
|
759
|
+
return /* @__PURE__ */ Error("Unknown error");
|
|
760
|
+
}
|
|
761
|
+
function je(e) {
|
|
762
|
+
let t = /* @__PURE__ */ new Set(), n = [], r = U(e);
|
|
763
|
+
for (; r != null && !t.has(r);) {
|
|
764
|
+
t.add(r);
|
|
765
|
+
let [e, i] = Le(r);
|
|
766
|
+
/(?:\.{3}|[.!?])$/.test(e.message) || (e.message += "."), n.push(Fe(e)), r = i;
|
|
767
|
+
}
|
|
768
|
+
return n;
|
|
769
|
+
}
|
|
770
|
+
function Me(e) {
|
|
771
|
+
let t;
|
|
772
|
+
for (let n of e.toReversed()) {
|
|
773
|
+
let e = Pe(n, t);
|
|
774
|
+
n.stack !== void 0 && (e.stack = n.stack), t = e;
|
|
775
|
+
}
|
|
776
|
+
return t ?? /* @__PURE__ */ Error("No error to unserialise.");
|
|
777
|
+
}
|
|
778
|
+
function Ne(e) {
|
|
779
|
+
let t;
|
|
780
|
+
try {
|
|
781
|
+
t = JSON.stringify(e);
|
|
782
|
+
} catch {
|
|
783
|
+
t = typeof e == "symbol" ? e.description ?? "Unknown error" : typeof e == "bigint" ? e.toString() : "Unknown error";
|
|
784
|
+
}
|
|
785
|
+
return t === "" && (t = "Unknown error"), t;
|
|
786
|
+
}
|
|
787
|
+
function Pe(e, t) {
|
|
788
|
+
switch (e.name) {
|
|
789
|
+
case "APIError": return new z(e.message, e.locator, e.data, { cause: t });
|
|
790
|
+
case "AppError": return new R(e.message, e.locator, e.data, { cause: t });
|
|
791
|
+
case "ConnectorError": return new V(e.message, e.locator, e.data, { cause: t });
|
|
792
|
+
case "EngineError": return new B(e.message, e.locator, e.data, { cause: t });
|
|
793
|
+
case "FetchError": return new H(e.message, e.locator, e.data, { cause: t });
|
|
794
|
+
default: {
|
|
795
|
+
let n = e.name;
|
|
796
|
+
return new class extends Error {
|
|
797
|
+
name = n;
|
|
798
|
+
}(e.message, { cause: t });
|
|
799
|
+
}
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
function Fe(e) {
|
|
803
|
+
let { data: t, message: n, stack: r } = e;
|
|
804
|
+
return {
|
|
805
|
+
...e,
|
|
806
|
+
data: t === void 0 ? void 0 : G(t, /* @__PURE__ */ new WeakSet(), 0),
|
|
807
|
+
message: W(n),
|
|
808
|
+
stack: r === void 0 ? void 0 : W(r)
|
|
809
|
+
};
|
|
810
|
+
}
|
|
811
|
+
function W(e) {
|
|
812
|
+
let t = e;
|
|
813
|
+
for (let [e, n] of De) t = t.replaceAll(e, (e, ...t) => n(e, ...t));
|
|
814
|
+
return t;
|
|
815
|
+
}
|
|
816
|
+
function G(e, t, n) {
|
|
817
|
+
return typeof e == "string" ? W(e) : typeof e != "object" || !e ? e : n >= Ee ? F : t.has(e) ? "[Circular]" : (t.add(e), Array.isArray(e) ? e.map((e) => G(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && I.test(e) ? F : G(r, t, n + 1)])));
|
|
818
|
+
}
|
|
819
|
+
function Ie(e) {
|
|
820
|
+
if (e != null && e !== "") return e.length > P ? `${e.slice(0, P)}... [truncated]` : e;
|
|
821
|
+
}
|
|
822
|
+
function Le(e) {
|
|
823
|
+
let t = e.cause == null ? null : U(e.cause);
|
|
824
|
+
if (e instanceof L) return [{
|
|
825
|
+
data: e.data,
|
|
826
|
+
locator: e.locator,
|
|
827
|
+
message: e.message,
|
|
828
|
+
name: e.name,
|
|
829
|
+
stack: e.stack
|
|
830
|
+
}, t];
|
|
831
|
+
let n = Object.fromEntries(Object.entries(e).filter(([e]) => e !== "cause"));
|
|
832
|
+
return e.name ? [{
|
|
833
|
+
data: n,
|
|
834
|
+
locator: "",
|
|
835
|
+
message: e.message,
|
|
836
|
+
name: e.name,
|
|
837
|
+
stack: e.stack
|
|
838
|
+
}, t] : [{
|
|
839
|
+
data: n,
|
|
840
|
+
locator: "",
|
|
841
|
+
message: Ne(e),
|
|
842
|
+
name: "Error",
|
|
843
|
+
stack: void 0
|
|
844
|
+
}, null];
|
|
845
|
+
}
|
|
846
|
+
//#endregion
|
|
847
|
+
//#region src/component/module/tool/index.ts
|
|
848
|
+
var Re = "https://engine-eu.dpuse.app/tools";
|
|
849
|
+
async function ze(e, t) {
|
|
850
|
+
let n = `dpuse-tool-${t}`, r = e.find((e) => e.id === n);
|
|
851
|
+
if (!r) {
|
|
852
|
+
let r = {
|
|
853
|
+
availableToolIds: e.map((e) => e.id),
|
|
854
|
+
toolName: n
|
|
855
|
+
};
|
|
856
|
+
throw new R(`Tool '${t}' not found.`, "dpuse-shared.component.module.tool.loadTool", r);
|
|
857
|
+
}
|
|
858
|
+
let i = `${Re}/${t}_v${r.version}/${n}.es.js`;
|
|
859
|
+
try {
|
|
860
|
+
return new (await (import(
|
|
861
|
+
/* @vite-ignore */
|
|
862
|
+
i
|
|
863
|
+
))).Tool();
|
|
864
|
+
} catch (e) {
|
|
865
|
+
let t = {
|
|
866
|
+
toolName: n,
|
|
867
|
+
url: i,
|
|
868
|
+
version: r.version
|
|
869
|
+
};
|
|
870
|
+
throw new R(`Failed to load tool '${n}' v${r.version}.`, "dpuse-shared.component.module.tool.loadTool", t, { cause: e });
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
//#endregion
|
|
874
|
+
//#region src/encoding/index.ts
|
|
875
|
+
var Be = {
|
|
876
|
+
arabic: {
|
|
877
|
+
id: "arabic",
|
|
878
|
+
label: {
|
|
879
|
+
en: "Arabic",
|
|
880
|
+
es: "Árabe"
|
|
881
|
+
}
|
|
882
|
+
},
|
|
883
|
+
baltic: {
|
|
884
|
+
id: "baltic",
|
|
885
|
+
label: {
|
|
886
|
+
en: "Baltic",
|
|
887
|
+
es: "Báltico"
|
|
888
|
+
}
|
|
889
|
+
},
|
|
890
|
+
celtic: {
|
|
891
|
+
id: "celtic",
|
|
892
|
+
label: {
|
|
893
|
+
en: "Celtic",
|
|
894
|
+
es: "Celta"
|
|
895
|
+
}
|
|
896
|
+
},
|
|
897
|
+
centralEuropean: {
|
|
898
|
+
id: "centralEuropean",
|
|
899
|
+
label: {
|
|
900
|
+
en: "Central European",
|
|
901
|
+
es: "Centroeuropeo"
|
|
902
|
+
}
|
|
903
|
+
},
|
|
904
|
+
chineseSimplified: {
|
|
905
|
+
id: "chineseSimplified",
|
|
906
|
+
label: {
|
|
907
|
+
en: "Chinese Simplified",
|
|
908
|
+
es: "Chino simplificado"
|
|
909
|
+
}
|
|
910
|
+
},
|
|
911
|
+
chineseTraditional: {
|
|
912
|
+
id: "chineseTraditional",
|
|
913
|
+
label: {
|
|
914
|
+
en: "Chinese Traditional",
|
|
915
|
+
es: "Chino tradicional"
|
|
916
|
+
}
|
|
917
|
+
},
|
|
918
|
+
cyrillic: {
|
|
919
|
+
id: "cyrillic",
|
|
920
|
+
label: {
|
|
921
|
+
en: "Cyrillic",
|
|
922
|
+
es: "Cirílico"
|
|
923
|
+
}
|
|
924
|
+
},
|
|
925
|
+
greek: {
|
|
926
|
+
id: "greek",
|
|
927
|
+
label: {
|
|
928
|
+
en: "Greek",
|
|
929
|
+
es: "Griego"
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
hebrew: {
|
|
933
|
+
id: "hebrew",
|
|
934
|
+
label: {
|
|
935
|
+
en: "Hebrew",
|
|
936
|
+
es: "Hebreo"
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
japanese: {
|
|
940
|
+
id: "japanese",
|
|
941
|
+
label: {
|
|
942
|
+
en: "Japanese",
|
|
943
|
+
es: "Japonés"
|
|
944
|
+
}
|
|
945
|
+
},
|
|
946
|
+
korean: {
|
|
947
|
+
id: "korean",
|
|
948
|
+
label: {
|
|
949
|
+
en: "Korean",
|
|
950
|
+
es: "Coreano"
|
|
951
|
+
}
|
|
952
|
+
},
|
|
953
|
+
nordic: {
|
|
954
|
+
id: "nordic",
|
|
955
|
+
label: {
|
|
956
|
+
en: "Nordic",
|
|
957
|
+
es: "Nórdico"
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
other: {
|
|
961
|
+
id: "other",
|
|
962
|
+
label: {
|
|
963
|
+
en: "Other",
|
|
964
|
+
es: "Otro"
|
|
965
|
+
}
|
|
966
|
+
},
|
|
967
|
+
romanian: {
|
|
968
|
+
id: "romanian",
|
|
969
|
+
label: {
|
|
970
|
+
en: "Romanian",
|
|
971
|
+
es: "Rumano"
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
southernEuropean: {
|
|
975
|
+
id: "southernEuropean",
|
|
976
|
+
label: {
|
|
977
|
+
en: "Southern European",
|
|
978
|
+
es: "Europeo meridional"
|
|
979
|
+
}
|
|
980
|
+
},
|
|
981
|
+
thai: {
|
|
982
|
+
id: "thai",
|
|
983
|
+
label: {
|
|
984
|
+
en: "Thai",
|
|
985
|
+
es: "Tailandés"
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
turkish: {
|
|
989
|
+
id: "turkish",
|
|
990
|
+
label: {
|
|
991
|
+
en: "Turkish",
|
|
992
|
+
es: "Turco"
|
|
993
|
+
}
|
|
994
|
+
},
|
|
995
|
+
unicode16: {
|
|
996
|
+
id: "unicode16",
|
|
997
|
+
label: {
|
|
998
|
+
en: "Unicode 16",
|
|
999
|
+
es: "Unicode 16"
|
|
1000
|
+
}
|
|
1001
|
+
},
|
|
1002
|
+
unicode32: {
|
|
1003
|
+
id: "unicode32",
|
|
1004
|
+
label: {
|
|
1005
|
+
en: "Unicode 32",
|
|
1006
|
+
es: "Unicode 32"
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
vietnamese: {
|
|
1010
|
+
id: "vietnamese",
|
|
1011
|
+
label: {
|
|
1012
|
+
en: "Vietnamese",
|
|
1013
|
+
es: "Vietnamita"
|
|
1014
|
+
}
|
|
1015
|
+
},
|
|
1016
|
+
western: {
|
|
1017
|
+
id: "western",
|
|
1018
|
+
label: {
|
|
1019
|
+
en: "Western",
|
|
1020
|
+
es: "Occidental"
|
|
1021
|
+
}
|
|
1022
|
+
}
|
|
1023
|
+
}, Ve = {
|
|
1024
|
+
ascii: {
|
|
1025
|
+
id: "ascii",
|
|
1026
|
+
groupId: null,
|
|
1027
|
+
isDetectable: !1,
|
|
1028
|
+
isDecodable: !0
|
|
1029
|
+
},
|
|
1030
|
+
big5: {
|
|
1031
|
+
id: "big5",
|
|
1032
|
+
groupId: "chineseTraditional",
|
|
1033
|
+
isDetectable: !0,
|
|
1034
|
+
isDecodable: !0
|
|
1035
|
+
},
|
|
1036
|
+
"euc-jp": {
|
|
1037
|
+
id: "euc-jp",
|
|
1038
|
+
groupId: "japanese",
|
|
1039
|
+
isDetectable: !0,
|
|
1040
|
+
isDecodable: !0
|
|
1041
|
+
},
|
|
1042
|
+
"euc-kr": {
|
|
1043
|
+
id: "euc-kr",
|
|
1044
|
+
groupId: "korean",
|
|
1045
|
+
isDetectable: !0,
|
|
1046
|
+
isDecodable: !0
|
|
1047
|
+
},
|
|
1048
|
+
gb18030: {
|
|
1049
|
+
id: "gb18030",
|
|
1050
|
+
groupId: "chineseSimplified",
|
|
1051
|
+
isDetectable: !0,
|
|
1052
|
+
isDecodable: !0
|
|
1053
|
+
},
|
|
1054
|
+
gbk: {
|
|
1055
|
+
id: "gbk",
|
|
1056
|
+
groupId: "chineseSimplified",
|
|
1057
|
+
isDetectable: !1,
|
|
1058
|
+
isDecodable: !0
|
|
1059
|
+
},
|
|
1060
|
+
ibm866: {
|
|
1061
|
+
id: "ibm866",
|
|
1062
|
+
groupId: "cyrillic",
|
|
1063
|
+
isDetectable: !1,
|
|
1064
|
+
isDecodable: !0
|
|
1065
|
+
},
|
|
1066
|
+
"iso-2022-cn": {
|
|
1067
|
+
id: "iso-2022-cn",
|
|
1068
|
+
groupId: "chineseSimplified",
|
|
1069
|
+
isDetectable: !0,
|
|
1070
|
+
isDecodable: !1
|
|
1071
|
+
},
|
|
1072
|
+
"iso-2022-jp": {
|
|
1073
|
+
id: "iso-2022-jp",
|
|
1074
|
+
groupId: "japanese",
|
|
1075
|
+
isDetectable: !0,
|
|
1076
|
+
isDecodable: !0
|
|
1077
|
+
},
|
|
1078
|
+
"iso-2022-kr": {
|
|
1079
|
+
id: "iso-2022-kr",
|
|
1080
|
+
groupId: "korean",
|
|
1081
|
+
isDetectable: !0,
|
|
1082
|
+
isDecodable: !1
|
|
1083
|
+
},
|
|
1084
|
+
"iso-8859-1": {
|
|
1085
|
+
id: "iso-8859-1",
|
|
1086
|
+
groupId: "western",
|
|
1087
|
+
isDetectable: !0,
|
|
1088
|
+
isDecodable: !0
|
|
1089
|
+
},
|
|
1090
|
+
"iso-8859-2": {
|
|
1091
|
+
id: "iso-8859-2",
|
|
1092
|
+
groupId: "centralEuropean",
|
|
1093
|
+
isDetectable: !0,
|
|
1094
|
+
isDecodable: !0
|
|
1095
|
+
},
|
|
1096
|
+
"iso-8859-3": {
|
|
1097
|
+
id: "iso-8859-3",
|
|
1098
|
+
groupId: "southernEuropean",
|
|
1099
|
+
isDetectable: !1,
|
|
1100
|
+
isDecodable: !0
|
|
1101
|
+
},
|
|
1102
|
+
"iso-8859-4": {
|
|
1103
|
+
id: "iso-8859-4",
|
|
1104
|
+
groupId: "baltic",
|
|
1105
|
+
isDetectable: !1,
|
|
1106
|
+
isDecodable: !0
|
|
1107
|
+
},
|
|
1108
|
+
"iso-8859-5": {
|
|
1109
|
+
id: "iso-8859-5",
|
|
1110
|
+
groupId: "cyrillic",
|
|
1111
|
+
isDetectable: !0,
|
|
1112
|
+
isDecodable: !0
|
|
1113
|
+
},
|
|
1114
|
+
"iso-8859-6": {
|
|
1115
|
+
id: "iso-8859-6",
|
|
1116
|
+
groupId: "arabic",
|
|
1117
|
+
isDetectable: !0,
|
|
1118
|
+
isDecodable: !0
|
|
1119
|
+
},
|
|
1120
|
+
"iso-8859-7": {
|
|
1121
|
+
id: "iso-8859-7",
|
|
1122
|
+
groupId: "greek",
|
|
1123
|
+
isDetectable: !0,
|
|
1124
|
+
isDecodable: !0
|
|
1125
|
+
},
|
|
1126
|
+
"iso-8859-8": {
|
|
1127
|
+
id: "iso-8859-8",
|
|
1128
|
+
groupId: "hebrew",
|
|
1129
|
+
isDetectable: !0,
|
|
1130
|
+
isDecodable: !0
|
|
1131
|
+
},
|
|
1132
|
+
"iso-8859-9": {
|
|
1133
|
+
id: "iso-8859-9",
|
|
1134
|
+
groupId: "turkish",
|
|
1135
|
+
isDetectable: !0,
|
|
1136
|
+
isDecodable: !0
|
|
1137
|
+
},
|
|
1138
|
+
"iso-8859-10": {
|
|
1139
|
+
id: "iso-8859-10",
|
|
1140
|
+
groupId: "nordic",
|
|
1141
|
+
isDetectable: !1,
|
|
1142
|
+
isDecodable: !0
|
|
1143
|
+
},
|
|
1144
|
+
"iso-8859-11": {
|
|
1145
|
+
id: "iso-8859-11",
|
|
1146
|
+
groupId: "thai",
|
|
1147
|
+
isDetectable: !1,
|
|
1148
|
+
isDecodable: !0
|
|
1149
|
+
},
|
|
1150
|
+
"iso-8859-13": {
|
|
1151
|
+
id: "iso-8859-13",
|
|
1152
|
+
groupId: "baltic",
|
|
1153
|
+
isDetectable: !1,
|
|
1154
|
+
isDecodable: !0
|
|
1155
|
+
},
|
|
1156
|
+
"iso-8859-14": {
|
|
1157
|
+
id: "iso-8859-14",
|
|
1158
|
+
groupId: "celtic",
|
|
1159
|
+
isDetectable: !1,
|
|
1160
|
+
isDecodable: !0
|
|
1161
|
+
},
|
|
1162
|
+
"iso-8859-15": {
|
|
1163
|
+
id: "iso-8859-15",
|
|
1164
|
+
groupId: "western",
|
|
1165
|
+
isDetectable: !1,
|
|
1166
|
+
isDecodable: !0
|
|
1167
|
+
},
|
|
1168
|
+
"iso-8859-16": {
|
|
1169
|
+
id: "iso-8859-16",
|
|
1170
|
+
groupId: "romanian",
|
|
1171
|
+
isDetectable: !1,
|
|
1172
|
+
isDecodable: !0
|
|
1173
|
+
},
|
|
1174
|
+
"koi8-r": {
|
|
1175
|
+
id: "koi8-r",
|
|
1176
|
+
groupId: "cyrillic",
|
|
1177
|
+
isDetectable: !0,
|
|
1178
|
+
isDecodable: !0
|
|
1179
|
+
},
|
|
1180
|
+
"koi8-u": {
|
|
1181
|
+
id: "koi8-u",
|
|
1182
|
+
groupId: "cyrillic",
|
|
1183
|
+
isDetectable: !1,
|
|
1184
|
+
isDecodable: !0
|
|
1185
|
+
},
|
|
1186
|
+
latin1: {
|
|
1187
|
+
id: "latin1",
|
|
1188
|
+
groupId: "western",
|
|
1189
|
+
isDetectable: !1,
|
|
1190
|
+
isDecodable: !0
|
|
1191
|
+
},
|
|
1192
|
+
macintosh: {
|
|
1193
|
+
id: "macintosh",
|
|
1194
|
+
groupId: "western",
|
|
1195
|
+
isDetectable: !1,
|
|
1196
|
+
isDecodable: !0
|
|
1197
|
+
},
|
|
1198
|
+
shift_jis: {
|
|
1199
|
+
id: "shift_jis",
|
|
1200
|
+
groupId: "japanese",
|
|
1201
|
+
isDetectable: !0,
|
|
1202
|
+
isDecodable: !0
|
|
1203
|
+
},
|
|
1204
|
+
"tis-620": {
|
|
1205
|
+
id: "tis-620",
|
|
1206
|
+
groupId: "thai",
|
|
1207
|
+
isDetectable: !1,
|
|
1208
|
+
isDecodable: !0
|
|
1209
|
+
},
|
|
1210
|
+
"utf-16": {
|
|
1211
|
+
id: "utf-16",
|
|
1212
|
+
groupId: "unicode16",
|
|
1213
|
+
isDetectable: !1,
|
|
1214
|
+
isDecodable: !0
|
|
1215
|
+
},
|
|
1216
|
+
"utf-16be": {
|
|
1217
|
+
id: "utf-16be",
|
|
1218
|
+
groupId: "unicode16",
|
|
1219
|
+
isDetectable: !0,
|
|
1220
|
+
isDecodable: !0
|
|
1221
|
+
},
|
|
1222
|
+
"utf-16le": {
|
|
1223
|
+
id: "utf-16le",
|
|
1224
|
+
groupId: "unicode16",
|
|
1225
|
+
isDetectable: !0,
|
|
1226
|
+
isDecodable: !0
|
|
1227
|
+
},
|
|
1228
|
+
"utf-32be": {
|
|
1229
|
+
id: "utf-32be",
|
|
1230
|
+
groupId: "unicode32",
|
|
1231
|
+
isDetectable: !0,
|
|
1232
|
+
isDecodable: !1
|
|
1233
|
+
},
|
|
1234
|
+
"utf-32le": {
|
|
1235
|
+
id: "utf-32le",
|
|
1236
|
+
groupId: "unicode32",
|
|
1237
|
+
isDetectable: !0,
|
|
1238
|
+
isDecodable: !1
|
|
1239
|
+
},
|
|
1240
|
+
"utf-8": {
|
|
1241
|
+
id: "utf-8",
|
|
1242
|
+
groupId: null,
|
|
1243
|
+
isDetectable: !0,
|
|
1244
|
+
isDecodable: !0
|
|
1245
|
+
},
|
|
1246
|
+
"windows-1250": {
|
|
1247
|
+
id: "windows-1250",
|
|
1248
|
+
groupId: "centralEuropean",
|
|
1249
|
+
isDetectable: !0,
|
|
1250
|
+
isDecodable: !0
|
|
1251
|
+
},
|
|
1252
|
+
"windows-1251": {
|
|
1253
|
+
id: "windows-1251",
|
|
1254
|
+
groupId: "cyrillic",
|
|
1255
|
+
isDetectable: !0,
|
|
1256
|
+
isDecodable: !0
|
|
1257
|
+
},
|
|
1258
|
+
"windows-1252": {
|
|
1259
|
+
id: "windows-1252",
|
|
1260
|
+
groupId: "western",
|
|
1261
|
+
isDetectable: !0,
|
|
1262
|
+
isDecodable: !0
|
|
1263
|
+
},
|
|
1264
|
+
"windows-1253": {
|
|
1265
|
+
id: "windows-1253",
|
|
1266
|
+
groupId: "greek",
|
|
1267
|
+
isDetectable: !0,
|
|
1268
|
+
isDecodable: !0
|
|
1269
|
+
},
|
|
1270
|
+
"windows-1254": {
|
|
1271
|
+
id: "windows-1254",
|
|
1272
|
+
groupId: "turkish",
|
|
1273
|
+
isDetectable: !0,
|
|
1274
|
+
isDecodable: !0
|
|
1275
|
+
},
|
|
1276
|
+
"windows-1255": {
|
|
1277
|
+
id: "windows-1255",
|
|
1278
|
+
groupId: "hebrew",
|
|
1279
|
+
isDetectable: !0,
|
|
1280
|
+
isDecodable: !0
|
|
1281
|
+
},
|
|
1282
|
+
"windows-1256": {
|
|
1283
|
+
id: "windows-1256",
|
|
1284
|
+
groupId: "arabic",
|
|
1285
|
+
isDetectable: !0,
|
|
1286
|
+
isDecodable: !0
|
|
1287
|
+
},
|
|
1288
|
+
"windows-1257": {
|
|
1289
|
+
id: "windows-1257",
|
|
1290
|
+
groupId: "baltic",
|
|
1291
|
+
isDetectable: !1,
|
|
1292
|
+
isDecodable: !0
|
|
1293
|
+
},
|
|
1294
|
+
"windows-1258": {
|
|
1295
|
+
id: "windows-1258",
|
|
1296
|
+
groupId: "vietnamese",
|
|
1297
|
+
isDetectable: !1,
|
|
1298
|
+
isDecodable: !0
|
|
1299
|
+
},
|
|
1300
|
+
"windows-874": {
|
|
1301
|
+
id: "windows-874",
|
|
1302
|
+
groupId: "thai",
|
|
1303
|
+
isDetectable: !1,
|
|
1304
|
+
isDecodable: !0
|
|
1305
|
+
},
|
|
1306
|
+
"x-mac-cyrillic": {
|
|
1307
|
+
id: "x-mac-cyrillic",
|
|
1308
|
+
groupId: "cyrillic",
|
|
1309
|
+
isDetectable: !1,
|
|
1310
|
+
isDecodable: !0
|
|
1311
|
+
},
|
|
1312
|
+
"x-user-defined": {
|
|
1313
|
+
id: "x-user-defined",
|
|
1314
|
+
groupId: "other",
|
|
1315
|
+
isDetectable: !1,
|
|
1316
|
+
isDecodable: !0
|
|
1317
|
+
}
|
|
1318
|
+
}, K = Be, q = Ve;
|
|
1319
|
+
function He(e) {
|
|
1320
|
+
return Object.hasOwn(q, e);
|
|
1321
|
+
}
|
|
1322
|
+
function Ue(e = "en") {
|
|
1323
|
+
return Array.from(Object.values(q), ({ groupId: t, id: n, isDecodable: r, isDetectable: i }) => {
|
|
1324
|
+
let a = t == null ? "" : We(t, e);
|
|
1325
|
+
return {
|
|
1326
|
+
id: n,
|
|
1327
|
+
groupLabel: a,
|
|
1328
|
+
label: a ? `${a} (${n})` : n,
|
|
1329
|
+
isDetectable: i,
|
|
1330
|
+
isDecodable: r
|
|
1331
|
+
};
|
|
1332
|
+
}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.label.localeCompare(n.label, e));
|
|
1333
|
+
}
|
|
1334
|
+
function We(e, t) {
|
|
1335
|
+
let n = K[e].label;
|
|
1336
|
+
return n[t] ?? n.en ?? e;
|
|
1337
|
+
}
|
|
1338
|
+
//#endregion
|
|
1339
|
+
//#region src/locale/index.ts
|
|
1340
|
+
function Ge(e, t) {
|
|
1341
|
+
return {
|
|
1342
|
+
...e,
|
|
1343
|
+
label: e.label[t] ?? e.id,
|
|
1344
|
+
description: e.description[t] ?? e.description.en ?? "",
|
|
1345
|
+
verb: e.verb?.[t] ?? void 0
|
|
1346
|
+
};
|
|
1347
|
+
}
|
|
1348
|
+
function Ke(e, t, n = !1) {
|
|
1349
|
+
let r = e.map((e) => ({
|
|
1350
|
+
...e,
|
|
1351
|
+
label: e.label[t] ?? e.id,
|
|
1352
|
+
description: e.description[t] ?? e.description.en ?? "",
|
|
1353
|
+
verb: e.verb?.[t] ?? void 0
|
|
1354
|
+
}));
|
|
1355
|
+
return n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;
|
|
1356
|
+
}
|
|
1357
|
+
function J(e, t) {
|
|
1358
|
+
return {
|
|
1359
|
+
...e,
|
|
1360
|
+
label: e.label[t] ?? e.id,
|
|
1361
|
+
description: e.description[t] ?? e.description.en ?? ""
|
|
1362
|
+
};
|
|
1363
|
+
}
|
|
1364
|
+
//#endregion
|
|
1365
|
+
//#region src/utilities/index.ts
|
|
1366
|
+
var Y = [
|
|
1367
|
+
[
|
|
1368
|
+
"days",
|
|
1369
|
+
864e5,
|
|
1370
|
+
(e) => e === 1 ? "1 day" : `${$(e)} days`
|
|
1371
|
+
],
|
|
1372
|
+
[
|
|
1373
|
+
"hrs",
|
|
1374
|
+
36e5,
|
|
1375
|
+
(e) => e === 1 ? "1 hr" : `${$(e)} hrs`
|
|
1376
|
+
],
|
|
1377
|
+
[
|
|
1378
|
+
"mins",
|
|
1379
|
+
6e4,
|
|
1380
|
+
(e) => e === 1 ? "1 min" : `${$(e)} mins`
|
|
1381
|
+
],
|
|
1382
|
+
[
|
|
1383
|
+
"secs",
|
|
1384
|
+
1e3,
|
|
1385
|
+
(e) => e === 1 ? "1 sec" : `${$(e)} secs`
|
|
1386
|
+
],
|
|
1387
|
+
[
|
|
1388
|
+
"ms",
|
|
1389
|
+
0,
|
|
1390
|
+
(e) => `${$(e)} ms`
|
|
1391
|
+
]
|
|
1392
|
+
], X = "en", Z = /* @__PURE__ */ new Map();
|
|
1393
|
+
function qe(e) {
|
|
1394
|
+
switch (e) {
|
|
1395
|
+
case "Edm.Binary": return "unknown";
|
|
1396
|
+
case "Edm.Boolean": return "boolean";
|
|
1397
|
+
case "Edm.Byte": return "wholeNumber";
|
|
1398
|
+
case "Edm.DateTime": return "moment";
|
|
1399
|
+
case "Edm.DateTimeOffset": return "moment";
|
|
1400
|
+
case "Edm.Decimal": return "decimalNumber";
|
|
1401
|
+
case "Edm.Double": return "decimalNumber";
|
|
1402
|
+
case "Edm.Guid": return "string";
|
|
1403
|
+
case "Edm.Int16": return "wholeNumber";
|
|
1404
|
+
case "Edm.Int32": return "wholeNumber";
|
|
1405
|
+
case "Edm.Int64": return "wholeNumber";
|
|
1406
|
+
case "Edm.SByte": return "wholeNumber";
|
|
1407
|
+
case "Edm.Single": return "decimalNumber";
|
|
1408
|
+
case "Edm.String": return "string";
|
|
1409
|
+
case "Edm.Time": return "momentTime";
|
|
1410
|
+
default: return "unknown";
|
|
1411
|
+
}
|
|
1412
|
+
}
|
|
1413
|
+
function Je(e) {
|
|
1414
|
+
if (e) {
|
|
1415
|
+
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
1416
|
+
return n <= t || n === -1 ? e : e.slice(0, Math.max(0, n));
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
function Ye(e) {
|
|
1420
|
+
if (e) {
|
|
1421
|
+
let t = e.lastIndexOf("/") + 1, n = e.lastIndexOf(".");
|
|
1422
|
+
if (n <= t) return;
|
|
1423
|
+
if (n !== -1) return e.slice(Math.max(0, n + 1));
|
|
1424
|
+
}
|
|
1425
|
+
}
|
|
1426
|
+
function Q(e, t = 2, n = t, r = X) {
|
|
1427
|
+
if (e == null) return "";
|
|
1428
|
+
let i = `${r}decimal${String(t)}.${String(n)}`, a = Z.get(i);
|
|
1429
|
+
return a || (a = new Intl.NumberFormat(r, {
|
|
1430
|
+
localeMatcher: "best fit",
|
|
1431
|
+
maximumFractionDigits: t,
|
|
1432
|
+
minimumFractionDigits: n,
|
|
1433
|
+
minimumIntegerDigits: 1,
|
|
1434
|
+
style: "decimal",
|
|
1435
|
+
useGrouping: !0
|
|
1436
|
+
}), Z.set(i, a)), a.format(e);
|
|
1437
|
+
}
|
|
1438
|
+
function Xe(e, t = 1) {
|
|
1439
|
+
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`;
|
|
1440
|
+
}
|
|
1441
|
+
function Ze(e, t = 1) {
|
|
1442
|
+
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`;
|
|
1443
|
+
}
|
|
1444
|
+
function Qe(e, t = "ms") {
|
|
1445
|
+
if (e == null) return "";
|
|
1446
|
+
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;
|
|
1447
|
+
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);
|
|
1448
|
+
return o.join(" ");
|
|
1449
|
+
}
|
|
1450
|
+
function $(e, t = X) {
|
|
1451
|
+
if (e == null) return "";
|
|
1452
|
+
let n = `${t}decimal0.0`, r = Z.get(n);
|
|
1453
|
+
return r || (r = new Intl.NumberFormat(t, {
|
|
1454
|
+
localeMatcher: "best fit",
|
|
1455
|
+
maximumFractionDigits: 0,
|
|
1456
|
+
minimumFractionDigits: 0,
|
|
1457
|
+
minimumIntegerDigits: 1,
|
|
1458
|
+
style: "decimal",
|
|
1459
|
+
useGrouping: !0
|
|
1460
|
+
}), Z.set(n, r)), r.format(e);
|
|
1461
|
+
}
|
|
1462
|
+
function $e(e) {
|
|
1463
|
+
switch (e?.toLowerCase()) {
|
|
1464
|
+
case "csv": return "text/csv";
|
|
1465
|
+
case "tab":
|
|
1466
|
+
case "tsv": return "text/tab-separated-values";
|
|
1467
|
+
case "xls": return "application/vnd.ms-excel";
|
|
1468
|
+
case "xlsx": return "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
1469
|
+
default: return "application/octet-stream";
|
|
1470
|
+
}
|
|
1471
|
+
}
|
|
1472
|
+
//#endregion
|
|
1473
|
+
export { z as APIError, R as AppError, V as ConnectorError, e as DEFAULT_LOCALE_ID, K as ENCODING_GROUP_CONFIG_MAP, q as ENCODING_TYPE_CONFIG_MAP, B as EngineError, H as FetchError, le as ORDERED_VALUE_DELIMITER_IDS, t as SUPPORTED_LANGUAGES, Oe as buildFetchError, oe as componentInstanceConfigSchema, ke as concatenateSerialisedErrorMessages, ge as connectorConfigSchema, M as constructConnectorCategoryConfig, N as constructConnectorUsageConfig, qe as convertODataTypeIdToUsageTypeId, Ce as cookbookConfigSchema, n as createLabelMap, j as determineConnectorUsageId, Ye as extractExtensionFromPath, Je as extractNameFromPath, Q as formatNumberAsDecimalNumber, Qe as formatNumberAsDuration, Xe as formatNumberAsSize, Ze as formatNumberAsStorageSize, $ as formatNumberAsWholeNumber, ce as getComponentStatus, xe as getConnectorActionsTable, Ue as getEncodingTypeConfigs, Ae as ignoreErrors, He as isEncodingTypeId, ze as loadTool, Ge as localiseConfig, Ke as localiseConfigs, J as localiseReference, $e as lookupMimeTypeForExtension, U as normalizeToError, Te as presenterConfigSchema, r as resolveLabel, je as serialiseError, Me as unserialiseError };
|