@datapos/datapos-shared 0.3.334 → 0.3.336
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/dist/datapos-shared.es.js +359 -462
- package/dist/datapos-shared.es2.js +114 -0
- package/dist/types/src/component/connector/connection.d.ts +1 -1
- package/dist/types/src/component/connector/index.d.ts +170 -4
- package/dist/types/src/component/context/index.d.ts +1 -1
- package/dist/types/src/component/dataView/index.d.ts +6 -6
- package/dist/types/src/component/index.d.ts +1 -1
- package/dist/types/src/engine/index.d.ts +3 -3
- package/dist/types/src/index.d.ts +4 -3
- package/package.json +5 -1
- package/dist/types/src/component/connector/types.d.ts +0 -174
- package/dist/types/src/locales.d.ts +0 -7
|
@@ -1,97 +1,97 @@
|
|
|
1
|
-
|
|
1
|
+
import { convertODataTypeIdToUsageTypeId as Ge, extractExtensionFromPath as Ve, extractNameFromPath as He, formatNumberAsDecimalNumber as We, formatNumberAsDuration as $e, formatNumberAsSize as Xe, formatNumberAsStorageSize as Be, formatNumberAsWholeNumber as Je, lookupMimeTypeForExtension as Ke } from "./datapos-shared.es2.js";
|
|
2
2
|
let j;
|
|
3
3
|
// @__NO_SIDE_EFFECTS__
|
|
4
|
-
function
|
|
4
|
+
function G(t) {
|
|
5
5
|
return {
|
|
6
|
-
lang:
|
|
7
|
-
message:
|
|
8
|
-
abortEarly:
|
|
9
|
-
abortPipeEarly:
|
|
6
|
+
lang: t?.lang ?? j?.lang,
|
|
7
|
+
message: t?.message,
|
|
8
|
+
abortEarly: t?.abortEarly ?? j?.abortEarly,
|
|
9
|
+
abortPipeEarly: t?.abortPipeEarly ?? j?.abortPipeEarly
|
|
10
10
|
};
|
|
11
11
|
}
|
|
12
|
-
let
|
|
12
|
+
let V;
|
|
13
13
|
// @__NO_SIDE_EFFECTS__
|
|
14
|
-
function
|
|
15
|
-
return
|
|
14
|
+
function H(t) {
|
|
15
|
+
return V?.get(t);
|
|
16
16
|
}
|
|
17
|
-
let
|
|
17
|
+
let W;
|
|
18
18
|
// @__NO_SIDE_EFFECTS__
|
|
19
|
-
function
|
|
20
|
-
return
|
|
19
|
+
function $(t) {
|
|
20
|
+
return W?.get(t);
|
|
21
21
|
}
|
|
22
|
-
let
|
|
22
|
+
let X;
|
|
23
23
|
// @__NO_SIDE_EFFECTS__
|
|
24
|
-
function
|
|
25
|
-
return
|
|
24
|
+
function B(t, n) {
|
|
25
|
+
return X?.get(t)?.get(n);
|
|
26
26
|
}
|
|
27
27
|
// @__NO_SIDE_EFFECTS__
|
|
28
|
-
function
|
|
29
|
-
const
|
|
30
|
-
return
|
|
31
|
-
}
|
|
32
|
-
function
|
|
33
|
-
const o = s && "input" in s ? s.input :
|
|
34
|
-
kind:
|
|
35
|
-
type:
|
|
28
|
+
function T(t) {
|
|
29
|
+
const n = typeof t;
|
|
30
|
+
return n === "string" ? `"${t}"` : n === "number" || n === "bigint" || n === "boolean" ? `${t}` : n === "object" || n === "function" ? (t && Object.getPrototypeOf(t)?.constructor?.name) ?? "null" : n;
|
|
31
|
+
}
|
|
32
|
+
function y(t, n, e, r, s) {
|
|
33
|
+
const o = s && "input" in s ? s.input : e.value, i = s?.expected ?? t.expects ?? null, u = s?.received ?? /* @__PURE__ */ T(o), a = {
|
|
34
|
+
kind: t.kind,
|
|
35
|
+
type: t.type,
|
|
36
36
|
input: o,
|
|
37
37
|
expected: i,
|
|
38
38
|
received: u,
|
|
39
|
-
message: `Invalid ${
|
|
40
|
-
requirement:
|
|
39
|
+
message: `Invalid ${n}: ${i ? `Expected ${i} but r` : "R"}eceived ${u}`,
|
|
40
|
+
requirement: t.requirement,
|
|
41
41
|
path: s?.path,
|
|
42
42
|
issues: s?.issues,
|
|
43
|
-
lang:
|
|
44
|
-
abortEarly:
|
|
45
|
-
abortPipeEarly:
|
|
46
|
-
}, p =
|
|
47
|
-
d !== void 0 && (a.message = typeof d == "function" ? d(a) : d), p && (
|
|
43
|
+
lang: r.lang,
|
|
44
|
+
abortEarly: r.abortEarly,
|
|
45
|
+
abortPipeEarly: r.abortPipeEarly
|
|
46
|
+
}, p = t.kind === "schema", d = s?.message ?? t.message ?? /* @__PURE__ */ B(t.reference, a.lang) ?? (p ? /* @__PURE__ */ $(a.lang) : null) ?? r.message ?? /* @__PURE__ */ H(a.lang);
|
|
47
|
+
d !== void 0 && (a.message = typeof d == "function" ? d(a) : d), p && (e.typed = !1), e.issues ? e.issues.push(a) : e.issues = [a];
|
|
48
48
|
}
|
|
49
49
|
// @__NO_SIDE_EFFECTS__
|
|
50
|
-
function
|
|
50
|
+
function g(t) {
|
|
51
51
|
return {
|
|
52
52
|
version: 1,
|
|
53
53
|
vendor: "valibot",
|
|
54
|
-
validate(
|
|
55
|
-
return
|
|
54
|
+
validate(n) {
|
|
55
|
+
return t["~run"]({ value: n }, /* @__PURE__ */ G());
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
59
|
// @__NO_SIDE_EFFECTS__
|
|
60
|
-
function
|
|
61
|
-
return Object.hasOwn(
|
|
60
|
+
function J(t, n) {
|
|
61
|
+
return Object.hasOwn(t, n) && n !== "__proto__" && n !== "prototype" && n !== "constructor";
|
|
62
62
|
}
|
|
63
63
|
// @__NO_SIDE_EFFECTS__
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
return
|
|
64
|
+
function K(t, n) {
|
|
65
|
+
const e = [...new Set(t)];
|
|
66
|
+
return e.length > 1 ? `(${e.join(` ${n} `)})` : e[0] ?? "never";
|
|
67
67
|
}
|
|
68
68
|
// @__NO_SIDE_EFFECTS__
|
|
69
|
-
function
|
|
70
|
-
return typeof
|
|
69
|
+
function q(t, n, e) {
|
|
70
|
+
return typeof t.fallback == "function" ? t.fallback(n, e) : t.fallback;
|
|
71
71
|
}
|
|
72
72
|
// @__NO_SIDE_EFFECTS__
|
|
73
|
-
function
|
|
74
|
-
return typeof
|
|
73
|
+
function w(t, n, e) {
|
|
74
|
+
return typeof t.default == "function" ? t.default(n, e) : t.default;
|
|
75
75
|
}
|
|
76
76
|
// @__NO_SIDE_EFFECTS__
|
|
77
|
-
function
|
|
77
|
+
function E(t, n) {
|
|
78
78
|
return {
|
|
79
79
|
kind: "schema",
|
|
80
80
|
type: "array",
|
|
81
|
-
reference:
|
|
81
|
+
reference: E,
|
|
82
82
|
expects: "Array",
|
|
83
83
|
async: !1,
|
|
84
|
-
item:
|
|
85
|
-
message:
|
|
84
|
+
item: t,
|
|
85
|
+
message: n,
|
|
86
86
|
get "~standard"() {
|
|
87
|
-
return /* @__PURE__ */
|
|
87
|
+
return /* @__PURE__ */ g(this);
|
|
88
88
|
},
|
|
89
|
-
"~run"(
|
|
90
|
-
const s =
|
|
89
|
+
"~run"(e, r) {
|
|
90
|
+
const s = e.value;
|
|
91
91
|
if (Array.isArray(s)) {
|
|
92
|
-
|
|
92
|
+
e.typed = !0, e.value = [];
|
|
93
93
|
for (let o = 0; o < s.length; o++) {
|
|
94
|
-
const i = s[o], u = this.item["~run"]({ value: i },
|
|
94
|
+
const i = s[o], u = this.item["~run"]({ value: i }, r);
|
|
95
95
|
if (u.issues) {
|
|
96
96
|
const a = {
|
|
97
97
|
type: "array",
|
|
@@ -101,110 +101,110 @@ function x(e, r) {
|
|
|
101
101
|
value: i
|
|
102
102
|
};
|
|
103
103
|
for (const p of u.issues)
|
|
104
|
-
p.path ? p.path.unshift(a) : p.path = [a],
|
|
105
|
-
if (
|
|
106
|
-
|
|
104
|
+
p.path ? p.path.unshift(a) : p.path = [a], e.issues?.push(p);
|
|
105
|
+
if (e.issues || (e.issues = u.issues), r.abortEarly) {
|
|
106
|
+
e.typed = !1;
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
u.typed || (
|
|
110
|
+
u.typed || (e.typed = !1), e.value.push(u.value);
|
|
111
111
|
}
|
|
112
|
-
} else
|
|
113
|
-
return
|
|
112
|
+
} else y(this, "type", e, r);
|
|
113
|
+
return e;
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
// @__NO_SIDE_EFFECTS__
|
|
118
|
-
function
|
|
118
|
+
function _(t) {
|
|
119
119
|
return {
|
|
120
120
|
kind: "schema",
|
|
121
121
|
type: "boolean",
|
|
122
|
-
reference:
|
|
122
|
+
reference: _,
|
|
123
123
|
expects: "boolean",
|
|
124
124
|
async: !1,
|
|
125
|
-
message:
|
|
125
|
+
message: t,
|
|
126
126
|
get "~standard"() {
|
|
127
|
-
return /* @__PURE__ */
|
|
127
|
+
return /* @__PURE__ */ g(this);
|
|
128
128
|
},
|
|
129
|
-
"~run"(
|
|
130
|
-
return typeof
|
|
129
|
+
"~run"(n, e) {
|
|
130
|
+
return typeof n.value == "boolean" ? n.typed = !0 : y(this, "type", n, e), n;
|
|
131
131
|
}
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
// @__NO_SIDE_EFFECTS__
|
|
135
|
-
function
|
|
135
|
+
function k(t, n) {
|
|
136
136
|
return {
|
|
137
137
|
kind: "schema",
|
|
138
138
|
type: "literal",
|
|
139
|
-
reference:
|
|
140
|
-
expects: /* @__PURE__ */
|
|
139
|
+
reference: k,
|
|
140
|
+
expects: /* @__PURE__ */ T(t),
|
|
141
141
|
async: !1,
|
|
142
|
-
literal:
|
|
143
|
-
message:
|
|
142
|
+
literal: t,
|
|
143
|
+
message: n,
|
|
144
144
|
get "~standard"() {
|
|
145
|
-
return /* @__PURE__ */
|
|
145
|
+
return /* @__PURE__ */ g(this);
|
|
146
146
|
},
|
|
147
|
-
"~run"(
|
|
148
|
-
return
|
|
147
|
+
"~run"(e, r) {
|
|
148
|
+
return e.value === this.literal ? e.typed = !0 : y(this, "type", e, r), e;
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
152
|
// @__NO_SIDE_EFFECTS__
|
|
153
|
-
function
|
|
153
|
+
function m(t, n) {
|
|
154
154
|
return {
|
|
155
155
|
kind: "schema",
|
|
156
156
|
type: "nullable",
|
|
157
|
-
reference:
|
|
158
|
-
expects: `(${
|
|
157
|
+
reference: m,
|
|
158
|
+
expects: `(${t.expects} | null)`,
|
|
159
159
|
async: !1,
|
|
160
|
-
wrapped:
|
|
161
|
-
default:
|
|
160
|
+
wrapped: t,
|
|
161
|
+
default: n,
|
|
162
162
|
get "~standard"() {
|
|
163
|
-
return /* @__PURE__ */
|
|
163
|
+
return /* @__PURE__ */ g(this);
|
|
164
164
|
},
|
|
165
|
-
"~run"(
|
|
166
|
-
return
|
|
165
|
+
"~run"(e, r) {
|
|
166
|
+
return e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ w(this, e, r)), e.value === null) ? (e.typed = !0, e) : this.wrapped["~run"](e, r);
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
169
|
}
|
|
170
170
|
// @__NO_SIDE_EFFECTS__
|
|
171
|
-
function
|
|
171
|
+
function x(t) {
|
|
172
172
|
return {
|
|
173
173
|
kind: "schema",
|
|
174
174
|
type: "number",
|
|
175
|
-
reference:
|
|
175
|
+
reference: x,
|
|
176
176
|
expects: "number",
|
|
177
177
|
async: !1,
|
|
178
|
-
message:
|
|
178
|
+
message: t,
|
|
179
179
|
get "~standard"() {
|
|
180
|
-
return /* @__PURE__ */
|
|
180
|
+
return /* @__PURE__ */ g(this);
|
|
181
181
|
},
|
|
182
|
-
"~run"(
|
|
183
|
-
return typeof
|
|
182
|
+
"~run"(n, e) {
|
|
183
|
+
return typeof n.value == "number" && !isNaN(n.value) ? n.typed = !0 : y(this, "type", n, e), n;
|
|
184
184
|
}
|
|
185
185
|
};
|
|
186
186
|
}
|
|
187
187
|
// @__NO_SIDE_EFFECTS__
|
|
188
|
-
function b(
|
|
188
|
+
function b(t, n) {
|
|
189
189
|
return {
|
|
190
190
|
kind: "schema",
|
|
191
191
|
type: "object",
|
|
192
192
|
reference: b,
|
|
193
193
|
expects: "Object",
|
|
194
194
|
async: !1,
|
|
195
|
-
entries:
|
|
196
|
-
message:
|
|
195
|
+
entries: t,
|
|
196
|
+
message: n,
|
|
197
197
|
get "~standard"() {
|
|
198
|
-
return /* @__PURE__ */
|
|
198
|
+
return /* @__PURE__ */ g(this);
|
|
199
199
|
},
|
|
200
|
-
"~run"(
|
|
201
|
-
const s =
|
|
200
|
+
"~run"(e, r) {
|
|
201
|
+
const s = e.value;
|
|
202
202
|
if (s && typeof s == "object") {
|
|
203
|
-
|
|
203
|
+
e.typed = !0, e.value = {};
|
|
204
204
|
for (const o in this.entries) {
|
|
205
205
|
const i = this.entries[o];
|
|
206
206
|
if (o in s || (i.type === "exact_optional" || i.type === "optional" || i.type === "nullish") && i.default !== void 0) {
|
|
207
|
-
const u = o in s ? s[o] : /* @__PURE__ */
|
|
207
|
+
const u = o in s ? s[o] : /* @__PURE__ */ w(i), a = i["~run"]({ value: u }, r);
|
|
208
208
|
if (a.issues) {
|
|
209
209
|
const p = {
|
|
210
210
|
type: "object",
|
|
@@ -214,15 +214,15 @@ function b(e, r) {
|
|
|
214
214
|
value: u
|
|
215
215
|
};
|
|
216
216
|
for (const d of a.issues)
|
|
217
|
-
d.path ? d.path.unshift(p) : d.path = [p],
|
|
218
|
-
if (
|
|
219
|
-
|
|
217
|
+
d.path ? d.path.unshift(p) : d.path = [p], e.issues?.push(d);
|
|
218
|
+
if (e.issues || (e.issues = a.issues), r.abortEarly) {
|
|
219
|
+
e.typed = !1;
|
|
220
220
|
break;
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
a.typed || (
|
|
224
|
-
} else if (i.fallback !== void 0)
|
|
225
|
-
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (
|
|
223
|
+
a.typed || (e.typed = !1), e.value[o] = a.value;
|
|
224
|
+
} else if (i.fallback !== void 0) e.value[o] = /* @__PURE__ */ q(i);
|
|
225
|
+
else if (i.type !== "exact_optional" && i.type !== "optional" && i.type !== "nullish" && (y(this, "key", e, r, {
|
|
226
226
|
input: void 0,
|
|
227
227
|
expected: `"${o}"`,
|
|
228
228
|
path: [{
|
|
@@ -232,51 +232,51 @@ function b(e, r) {
|
|
|
232
232
|
key: o,
|
|
233
233
|
value: s[o]
|
|
234
234
|
}]
|
|
235
|
-
}),
|
|
235
|
+
}), r.abortEarly))
|
|
236
236
|
break;
|
|
237
237
|
}
|
|
238
|
-
} else
|
|
239
|
-
return
|
|
238
|
+
} else y(this, "type", e, r);
|
|
239
|
+
return e;
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
242
|
}
|
|
243
243
|
// @__NO_SIDE_EFFECTS__
|
|
244
|
-
function f(
|
|
244
|
+
function f(t, n) {
|
|
245
245
|
return {
|
|
246
246
|
kind: "schema",
|
|
247
247
|
type: "optional",
|
|
248
248
|
reference: f,
|
|
249
|
-
expects: `(${
|
|
249
|
+
expects: `(${t.expects} | undefined)`,
|
|
250
250
|
async: !1,
|
|
251
|
-
wrapped:
|
|
252
|
-
default:
|
|
251
|
+
wrapped: t,
|
|
252
|
+
default: n,
|
|
253
253
|
get "~standard"() {
|
|
254
|
-
return /* @__PURE__ */
|
|
254
|
+
return /* @__PURE__ */ g(this);
|
|
255
255
|
},
|
|
256
|
-
"~run"(
|
|
257
|
-
return
|
|
256
|
+
"~run"(e, r) {
|
|
257
|
+
return e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ w(this, e, r)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped["~run"](e, r);
|
|
258
258
|
}
|
|
259
259
|
};
|
|
260
260
|
}
|
|
261
261
|
// @__NO_SIDE_EFFECTS__
|
|
262
|
-
function
|
|
262
|
+
function A(t, n, e) {
|
|
263
263
|
return {
|
|
264
264
|
kind: "schema",
|
|
265
265
|
type: "record",
|
|
266
|
-
reference:
|
|
266
|
+
reference: A,
|
|
267
267
|
expects: "Object",
|
|
268
268
|
async: !1,
|
|
269
|
-
key:
|
|
270
|
-
value:
|
|
271
|
-
message:
|
|
269
|
+
key: t,
|
|
270
|
+
value: n,
|
|
271
|
+
message: e,
|
|
272
272
|
get "~standard"() {
|
|
273
|
-
return /* @__PURE__ */
|
|
273
|
+
return /* @__PURE__ */ g(this);
|
|
274
274
|
},
|
|
275
|
-
"~run"(
|
|
276
|
-
const o =
|
|
275
|
+
"~run"(r, s) {
|
|
276
|
+
const o = r.value;
|
|
277
277
|
if (o && typeof o == "object") {
|
|
278
|
-
|
|
279
|
-
for (const i in o) if (/* @__PURE__ */
|
|
278
|
+
r.typed = !0, r.value = {};
|
|
279
|
+
for (const i in o) if (/* @__PURE__ */ J(o, i)) {
|
|
280
280
|
const u = o[i], a = this.key["~run"]({ value: i }, s);
|
|
281
281
|
if (a.issues) {
|
|
282
282
|
const d = {
|
|
@@ -287,9 +287,9 @@ function R(e, r, t) {
|
|
|
287
287
|
value: u
|
|
288
288
|
};
|
|
289
289
|
for (const S of a.issues)
|
|
290
|
-
S.path = [d],
|
|
291
|
-
if (
|
|
292
|
-
|
|
290
|
+
S.path = [d], r.issues?.push(S);
|
|
291
|
+
if (r.issues || (r.issues = a.issues), s.abortEarly) {
|
|
292
|
+
r.typed = !1;
|
|
293
293
|
break;
|
|
294
294
|
}
|
|
295
295
|
}
|
|
@@ -303,59 +303,59 @@ function R(e, r, t) {
|
|
|
303
303
|
value: u
|
|
304
304
|
};
|
|
305
305
|
for (const S of p.issues)
|
|
306
|
-
S.path ? S.path.unshift(d) : S.path = [d],
|
|
307
|
-
if (
|
|
308
|
-
|
|
306
|
+
S.path ? S.path.unshift(d) : S.path = [d], r.issues?.push(S);
|
|
307
|
+
if (r.issues || (r.issues = p.issues), s.abortEarly) {
|
|
308
|
+
r.typed = !1;
|
|
309
309
|
break;
|
|
310
310
|
}
|
|
311
311
|
}
|
|
312
|
-
(!a.typed || !p.typed) && (
|
|
312
|
+
(!a.typed || !p.typed) && (r.typed = !1), a.typed && (r.value[a.value] = p.value);
|
|
313
313
|
}
|
|
314
|
-
} else
|
|
315
|
-
return
|
|
314
|
+
} else y(this, "type", r, s);
|
|
315
|
+
return r;
|
|
316
316
|
}
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
319
|
// @__NO_SIDE_EFFECTS__
|
|
320
|
-
function l(
|
|
320
|
+
function l(t) {
|
|
321
321
|
return {
|
|
322
322
|
kind: "schema",
|
|
323
323
|
type: "string",
|
|
324
324
|
reference: l,
|
|
325
325
|
expects: "string",
|
|
326
326
|
async: !1,
|
|
327
|
-
message:
|
|
327
|
+
message: t,
|
|
328
328
|
get "~standard"() {
|
|
329
|
-
return /* @__PURE__ */
|
|
329
|
+
return /* @__PURE__ */ g(this);
|
|
330
330
|
},
|
|
331
|
-
"~run"(
|
|
332
|
-
return typeof
|
|
331
|
+
"~run"(n, e) {
|
|
332
|
+
return typeof n.value == "string" ? n.typed = !0 : y(this, "type", n, e), n;
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
}
|
|
336
336
|
// @__NO_SIDE_EFFECTS__
|
|
337
|
-
function
|
|
338
|
-
let
|
|
339
|
-
if (
|
|
340
|
-
return
|
|
337
|
+
function P(t) {
|
|
338
|
+
let n;
|
|
339
|
+
if (t) for (const e of t) n ? n.push(...e.issues) : n = e.issues;
|
|
340
|
+
return n;
|
|
341
341
|
}
|
|
342
342
|
// @__NO_SIDE_EFFECTS__
|
|
343
|
-
function
|
|
343
|
+
function F(t, n) {
|
|
344
344
|
return {
|
|
345
345
|
kind: "schema",
|
|
346
346
|
type: "union",
|
|
347
|
-
reference:
|
|
348
|
-
expects: /* @__PURE__ */
|
|
347
|
+
reference: F,
|
|
348
|
+
expects: /* @__PURE__ */ K(t.map((e) => e.expects), "|"),
|
|
349
349
|
async: !1,
|
|
350
|
-
options:
|
|
351
|
-
message:
|
|
350
|
+
options: t,
|
|
351
|
+
message: n,
|
|
352
352
|
get "~standard"() {
|
|
353
|
-
return /* @__PURE__ */
|
|
353
|
+
return /* @__PURE__ */ g(this);
|
|
354
354
|
},
|
|
355
|
-
"~run"(
|
|
355
|
+
"~run"(e, r) {
|
|
356
356
|
let s, o, i;
|
|
357
357
|
for (const u of this.options) {
|
|
358
|
-
const a = u["~run"]({ value:
|
|
358
|
+
const a = u["~run"]({ value: e.value }, r);
|
|
359
359
|
if (a.typed) if (a.issues) o ? o.push(a) : o = [a];
|
|
360
360
|
else {
|
|
361
361
|
s = a;
|
|
@@ -366,26 +366,26 @@ function G(e, r) {
|
|
|
366
366
|
if (s) return s;
|
|
367
367
|
if (o) {
|
|
368
368
|
if (o.length === 1) return o[0];
|
|
369
|
-
|
|
369
|
+
y(this, "type", e, r, { issues: /* @__PURE__ */ P(o) }), e.typed = !0;
|
|
370
370
|
} else {
|
|
371
371
|
if (i?.length === 1) return i[0];
|
|
372
|
-
|
|
372
|
+
y(this, "type", e, r, { issues: /* @__PURE__ */ P(i) });
|
|
373
373
|
}
|
|
374
|
-
return
|
|
374
|
+
return e;
|
|
375
375
|
}
|
|
376
376
|
};
|
|
377
377
|
}
|
|
378
|
-
const
|
|
378
|
+
const h = (t) => /* @__PURE__ */ F(t.map((n) => /* @__PURE__ */ k(n))), Q = /* @__PURE__ */ b({
|
|
379
379
|
"en-au": /* @__PURE__ */ l(),
|
|
380
380
|
"en-gb": /* @__PURE__ */ l(),
|
|
381
381
|
"en-us": /* @__PURE__ */ l(),
|
|
382
382
|
"es-es": /* @__PURE__ */ l()
|
|
383
|
-
}),
|
|
383
|
+
}), M = /* @__PURE__ */ b({
|
|
384
384
|
"en-au": /* @__PURE__ */ f(/* @__PURE__ */ l()),
|
|
385
385
|
"en-gb": /* @__PURE__ */ f(/* @__PURE__ */ l()),
|
|
386
386
|
"en-us": /* @__PURE__ */ f(/* @__PURE__ */ l()),
|
|
387
387
|
"es-es": /* @__PURE__ */ f(/* @__PURE__ */ l())
|
|
388
|
-
}),
|
|
388
|
+
}), Y = h(["amber", "green", "red", "other"]), Z = h([
|
|
389
389
|
"alpha",
|
|
390
390
|
"beta",
|
|
391
391
|
"generalAvailability",
|
|
@@ -395,7 +395,7 @@ const v = (e) => /* @__PURE__ */ G(e.map((r) => /* @__PURE__ */ w(r))), te = /*
|
|
|
395
395
|
"releaseCandidate",
|
|
396
396
|
"unavailable",
|
|
397
397
|
"underReview"
|
|
398
|
-
]),
|
|
398
|
+
]), ee = h([
|
|
399
399
|
"app",
|
|
400
400
|
"connector",
|
|
401
401
|
"connectorConnection",
|
|
@@ -420,61 +420,61 @@ const v = (e) => /* @__PURE__ */ G(e.map((r) => /* @__PURE__ */ w(r))), te = /*
|
|
|
420
420
|
"presenterPresentation",
|
|
421
421
|
"tool"
|
|
422
422
|
]);
|
|
423
|
-
|
|
424
|
-
const
|
|
423
|
+
h(["app", "engine", "connector", "context", "presenter", "tool"]);
|
|
424
|
+
const te = /* @__PURE__ */ b({
|
|
425
425
|
id: /* @__PURE__ */ l(),
|
|
426
|
-
color:
|
|
426
|
+
color: Y,
|
|
427
427
|
label: /* @__PURE__ */ l()
|
|
428
|
-
}),
|
|
428
|
+
}), R = {
|
|
429
429
|
id: /* @__PURE__ */ l(),
|
|
430
|
-
label:
|
|
431
|
-
description:
|
|
432
|
-
firstCreatedAt: /* @__PURE__ */ f(/* @__PURE__ */
|
|
433
|
-
icon: /* @__PURE__ */
|
|
434
|
-
iconDark: /* @__PURE__ */
|
|
435
|
-
lastUpdatedAt: /* @__PURE__ */
|
|
436
|
-
status: /* @__PURE__ */
|
|
437
|
-
statusId:
|
|
438
|
-
},
|
|
439
|
-
...
|
|
440
|
-
typeId:
|
|
441
|
-
}),
|
|
442
|
-
...
|
|
430
|
+
label: M,
|
|
431
|
+
description: M,
|
|
432
|
+
firstCreatedAt: /* @__PURE__ */ f(/* @__PURE__ */ x()),
|
|
433
|
+
icon: /* @__PURE__ */ m(/* @__PURE__ */ l()),
|
|
434
|
+
iconDark: /* @__PURE__ */ m(/* @__PURE__ */ l()),
|
|
435
|
+
lastUpdatedAt: /* @__PURE__ */ m(/* @__PURE__ */ x()),
|
|
436
|
+
status: /* @__PURE__ */ m(te),
|
|
437
|
+
statusId: Z
|
|
438
|
+
}, he = /* @__PURE__ */ b({
|
|
439
|
+
...R,
|
|
440
|
+
typeId: ee
|
|
441
|
+
}), N = {
|
|
442
|
+
...R,
|
|
443
443
|
version: /* @__PURE__ */ l()
|
|
444
|
-
},
|
|
444
|
+
}, U = /* @__PURE__ */ b({
|
|
445
445
|
id: /* @__PURE__ */ l(),
|
|
446
|
-
label:
|
|
447
|
-
description:
|
|
448
|
-
icon: /* @__PURE__ */
|
|
449
|
-
iconDark: /* @__PURE__ */
|
|
450
|
-
order: /* @__PURE__ */
|
|
446
|
+
label: M,
|
|
447
|
+
description: M,
|
|
448
|
+
icon: /* @__PURE__ */ m(/* @__PURE__ */ l()),
|
|
449
|
+
iconDark: /* @__PURE__ */ m(/* @__PURE__ */ l()),
|
|
450
|
+
order: /* @__PURE__ */ x(),
|
|
451
451
|
path: /* @__PURE__ */ l()
|
|
452
|
-
}),
|
|
453
|
-
const
|
|
454
|
-
return new Map(
|
|
455
|
-
},
|
|
456
|
-
const
|
|
457
|
-
if (
|
|
458
|
-
if (
|
|
459
|
-
return
|
|
460
|
-
},
|
|
461
|
-
{ id: "alpha", color: "red", labels:
|
|
462
|
-
{ id: "beta", color: "amber", labels:
|
|
463
|
-
{ id: "generalAvailability", color: "green", labels:
|
|
464
|
-
{ id: "notApplicable", color: "green", labels:
|
|
465
|
-
{ id: "preAlpha", color: "red", labels:
|
|
466
|
-
{ id: "proposed", color: "other", labels:
|
|
467
|
-
{ id: "releaseCandidate", color: "green", labels:
|
|
468
|
-
{ id: "unavailable", color: "other", labels:
|
|
469
|
-
{ id: "underReview", color: "other", labels:
|
|
470
|
-
],
|
|
471
|
-
const
|
|
472
|
-
if (
|
|
473
|
-
const
|
|
474
|
-
return { id:
|
|
452
|
+
}), v = (t) => {
|
|
453
|
+
const n = Object.entries(t).filter((e) => typeof e[1] == "string");
|
|
454
|
+
return new Map(n);
|
|
455
|
+
}, ne = (t, n, e = O) => {
|
|
456
|
+
const r = t.get(n);
|
|
457
|
+
if (r !== void 0) return r;
|
|
458
|
+
if (e !== n)
|
|
459
|
+
return t.get(e);
|
|
460
|
+
}, re = [
|
|
461
|
+
{ id: "alpha", color: "red", labels: v({ "en-gb": "alpha" }) },
|
|
462
|
+
{ id: "beta", color: "amber", labels: v({ "en-gb": "beta" }) },
|
|
463
|
+
{ id: "generalAvailability", color: "green", labels: v({ "en-gb": "" }) },
|
|
464
|
+
{ id: "notApplicable", color: "green", labels: v({ "en-gb": "not-applicable" }) },
|
|
465
|
+
{ id: "preAlpha", color: "red", labels: v({ "en-gb": "pre-alpha" }) },
|
|
466
|
+
{ id: "proposed", color: "other", labels: v({ "en-gb": "proposed" }) },
|
|
467
|
+
{ id: "releaseCandidate", color: "green", labels: v({ "en-gb": "release-candidate" }) },
|
|
468
|
+
{ id: "unavailable", color: "other", labels: v({ "en-gb": "unavailable" }) },
|
|
469
|
+
{ id: "underReview", color: "other", labels: v({ "en-gb": "under-review" }) }
|
|
470
|
+
], ve = (t, n = O) => {
|
|
471
|
+
const e = re.find((r) => r.id === t);
|
|
472
|
+
if (e) {
|
|
473
|
+
const r = ne(e.labels, n);
|
|
474
|
+
return { id: e.id, color: e.color, label: r ?? e.id };
|
|
475
475
|
}
|
|
476
|
-
return { id:
|
|
477
|
-
},
|
|
476
|
+
return { id: t, color: "other", label: t };
|
|
477
|
+
}, se = h(["apiKey", "disabled", "oAuth2", "none"]), oe = h(["application", "curatedDataset", "database", "fileStore"]), ie = h([
|
|
478
478
|
"abortOperation",
|
|
479
479
|
"authenticateConnection",
|
|
480
480
|
"createObject",
|
|
@@ -489,258 +489,155 @@ const oe = /* @__PURE__ */ b({
|
|
|
489
489
|
"retrieveChunks",
|
|
490
490
|
"retrieveRecords",
|
|
491
491
|
"upsertRecords"
|
|
492
|
-
]),
|
|
493
|
-
authMethodId:
|
|
494
|
-
activeConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */
|
|
495
|
-
canDescribe: /* @__PURE__ */ f(/* @__PURE__ */
|
|
492
|
+
]), ae = h(["bidirectional", "destination", "source", "unknown"]), le = /* @__PURE__ */ b({
|
|
493
|
+
authMethodId: se,
|
|
494
|
+
activeConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */ x()),
|
|
495
|
+
canDescribe: /* @__PURE__ */ f(/* @__PURE__ */ _()),
|
|
496
496
|
id: /* @__PURE__ */ f(/* @__PURE__ */ l()),
|
|
497
|
-
label: /* @__PURE__ */ f(
|
|
498
|
-
maxConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */
|
|
499
|
-
params: /* @__PURE__ */ f(/* @__PURE__ */
|
|
500
|
-
}),
|
|
501
|
-
|
|
502
|
-
typeId: /* @__PURE__ */
|
|
503
|
-
category: /* @__PURE__ */
|
|
504
|
-
categoryId:
|
|
505
|
-
implementations: /* @__PURE__ */
|
|
506
|
-
operations: /* @__PURE__ */
|
|
507
|
-
usageId:
|
|
508
|
-
vendorAccountURL: /* @__PURE__ */
|
|
509
|
-
vendorDocumentationURL: /* @__PURE__ */
|
|
510
|
-
vendorHomeURL: /* @__PURE__ */
|
|
511
|
-
}),
|
|
512
|
-
const
|
|
513
|
-
return new Map(
|
|
497
|
+
label: /* @__PURE__ */ f(Q),
|
|
498
|
+
maxConnectionCount: /* @__PURE__ */ f(/* @__PURE__ */ x()),
|
|
499
|
+
params: /* @__PURE__ */ f(/* @__PURE__ */ E(/* @__PURE__ */ A(/* @__PURE__ */ l(), /* @__PURE__ */ l())))
|
|
500
|
+
}), Ee = /* @__PURE__ */ b({
|
|
501
|
+
...N,
|
|
502
|
+
typeId: /* @__PURE__ */ k("connector"),
|
|
503
|
+
category: /* @__PURE__ */ m(/* @__PURE__ */ b({ id: /* @__PURE__ */ l(), label: /* @__PURE__ */ l() })),
|
|
504
|
+
categoryId: oe,
|
|
505
|
+
implementations: /* @__PURE__ */ A(/* @__PURE__ */ l(), le),
|
|
506
|
+
operations: /* @__PURE__ */ E(ie),
|
|
507
|
+
usageId: ae,
|
|
508
|
+
vendorAccountURL: /* @__PURE__ */ m(/* @__PURE__ */ l()),
|
|
509
|
+
vendorDocumentationURL: /* @__PURE__ */ m(/* @__PURE__ */ l()),
|
|
510
|
+
vendorHomeURL: /* @__PURE__ */ m(/* @__PURE__ */ l())
|
|
511
|
+
}), Se = ["createObject", "dropObject", "removeRecords", "upsertRecords"], xe = ["findObject", "getRecord", "listNodes", "previewObject", "retrieveRecords"], D = (t) => {
|
|
512
|
+
const n = Object.entries(t).filter((e) => typeof e[1] == "string");
|
|
513
|
+
return new Map(n);
|
|
514
514
|
};
|
|
515
|
-
|
|
516
|
-
const
|
|
517
|
-
...
|
|
518
|
-
typeId: /* @__PURE__ */
|
|
519
|
-
modelRefs: /* @__PURE__ */
|
|
520
|
-
order: /* @__PURE__ */
|
|
521
|
-
}),
|
|
522
|
-
|
|
523
|
-
typeId: /* @__PURE__ */
|
|
524
|
-
models: /* @__PURE__ */
|
|
525
|
-
operations: /* @__PURE__ */
|
|
515
|
+
D({ "en-gb": "Application" }), D({ "en-gb": "Curated Dataset" }), D({ "en-gb": "Database" }), D({ "en-gb": "File Store" });
|
|
516
|
+
const ce = h(["list"]), ue = /* @__PURE__ */ b({
|
|
517
|
+
...R,
|
|
518
|
+
typeId: /* @__PURE__ */ k("contextModelGroup"),
|
|
519
|
+
modelRefs: /* @__PURE__ */ E(U),
|
|
520
|
+
order: /* @__PURE__ */ x()
|
|
521
|
+
}), ke = /* @__PURE__ */ b({
|
|
522
|
+
...N,
|
|
523
|
+
typeId: /* @__PURE__ */ k("context"),
|
|
524
|
+
models: /* @__PURE__ */ E(ue),
|
|
525
|
+
operations: /* @__PURE__ */ E(ce)
|
|
526
526
|
});
|
|
527
|
-
class
|
|
527
|
+
class I extends Error {
|
|
528
528
|
locator;
|
|
529
|
-
constructor(
|
|
530
|
-
super(
|
|
529
|
+
constructor(n, e, r) {
|
|
530
|
+
super(n, r), this.name = "DataPosError", this.locator = e;
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
class
|
|
534
|
-
constructor(
|
|
535
|
-
super(
|
|
533
|
+
class C extends I {
|
|
534
|
+
constructor(n, e, r) {
|
|
535
|
+
super(n, e, r), this.name = "ApplicationError";
|
|
536
536
|
}
|
|
537
537
|
}
|
|
538
|
-
class Ce extends
|
|
539
|
-
constructor(
|
|
540
|
-
super(
|
|
538
|
+
class Ce extends C {
|
|
539
|
+
constructor(n, e, r) {
|
|
540
|
+
super(n, e, r), this.name = "APIError";
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
class
|
|
544
|
-
constructor(
|
|
545
|
-
super(
|
|
543
|
+
class Oe extends C {
|
|
544
|
+
constructor(n, e, r) {
|
|
545
|
+
super(n, e, r), this.name = "EngineError";
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
|
-
class z extends
|
|
548
|
+
class z extends C {
|
|
549
549
|
body;
|
|
550
|
-
constructor(
|
|
551
|
-
super(
|
|
550
|
+
constructor(n, e, r, s) {
|
|
551
|
+
super(n, e, s), this.name = "FetchError", this.body = r;
|
|
552
552
|
}
|
|
553
553
|
}
|
|
554
|
-
class
|
|
554
|
+
class pe extends C {
|
|
555
555
|
componentName;
|
|
556
556
|
info;
|
|
557
|
-
constructor(
|
|
558
|
-
super(
|
|
557
|
+
constructor(n, e, r, s, o) {
|
|
558
|
+
super(n, e, o), this.name = "VueHandledError", this.info = r, this.componentName = s;
|
|
559
559
|
}
|
|
560
560
|
}
|
|
561
|
-
class
|
|
562
|
-
constructor(
|
|
563
|
-
super(
|
|
561
|
+
class De extends C {
|
|
562
|
+
constructor(n, e, r) {
|
|
563
|
+
super(n, e, r), this.name = "WindowHandledRuntimeError";
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
class
|
|
567
|
-
constructor(
|
|
568
|
-
super(
|
|
566
|
+
class Me extends C {
|
|
567
|
+
constructor(n, e, r) {
|
|
568
|
+
super(n, e, r), this.name = "WindowHandledPromiseRejectionError";
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
class
|
|
572
|
-
constructor(
|
|
573
|
-
super(
|
|
571
|
+
class je extends I {
|
|
572
|
+
constructor(n, e, r) {
|
|
573
|
+
super(n, e, r), this.name = "OperationalError";
|
|
574
574
|
}
|
|
575
575
|
}
|
|
576
|
-
async function
|
|
577
|
-
const
|
|
578
|
-
return new z(s,
|
|
576
|
+
async function we(t, n, e) {
|
|
577
|
+
const r = ` - ${t.statusText}`, s = `${n} Response status '${t.status}${t.statusText ? r : ""}' received.`, o = await t.text();
|
|
578
|
+
return new z(s, e, o);
|
|
579
579
|
}
|
|
580
|
-
function
|
|
581
|
-
return
|
|
580
|
+
function Ae(t) {
|
|
581
|
+
return t.map((n) => n.message).join(" ");
|
|
582
582
|
}
|
|
583
|
-
function
|
|
584
|
-
if (
|
|
585
|
-
if (typeof
|
|
586
|
-
if (typeof
|
|
587
|
-
if (typeof
|
|
588
|
-
if (
|
|
583
|
+
function Re(t) {
|
|
584
|
+
if (t instanceof Error) return t;
|
|
585
|
+
if (typeof t == "string") return new Error(t);
|
|
586
|
+
if (typeof t == "number" || typeof t == "boolean" || typeof t == "bigint") return new Error(String(t));
|
|
587
|
+
if (typeof t == "symbol") return new Error(t.description ?? "Unknown error");
|
|
588
|
+
if (t && typeof t == "object")
|
|
589
589
|
try {
|
|
590
|
-
return new Error(JSON.stringify(
|
|
590
|
+
return new Error(JSON.stringify(t));
|
|
591
591
|
} catch {
|
|
592
592
|
return new Error("Unknown error");
|
|
593
593
|
}
|
|
594
594
|
return new Error("Unknown error");
|
|
595
595
|
}
|
|
596
|
-
function
|
|
597
|
-
const
|
|
598
|
-
let
|
|
599
|
-
for (;
|
|
600
|
-
|
|
596
|
+
function Ne(t) {
|
|
597
|
+
const n = /* @__PURE__ */ new Set(), e = [];
|
|
598
|
+
let r = t;
|
|
599
|
+
for (; r && !n.has(r); ) {
|
|
600
|
+
n.add(r);
|
|
601
601
|
let s;
|
|
602
|
-
if (
|
|
603
|
-
s = { body:
|
|
604
|
-
else if (
|
|
605
|
-
s = { componentName:
|
|
606
|
-
else if (
|
|
607
|
-
s = { locator:
|
|
608
|
-
else if (
|
|
609
|
-
const o =
|
|
610
|
-
s = { locator: "", message: o.message, name: o.name, stack: o.stack },
|
|
602
|
+
if (r instanceof z)
|
|
603
|
+
s = { body: r.body, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
|
|
604
|
+
else if (r instanceof pe)
|
|
605
|
+
s = { componentName: r.componentName, info: r.info, locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
|
|
606
|
+
else if (r instanceof I)
|
|
607
|
+
s = { locator: r.locator, message: r.message, name: r.name, stack: r.stack }, r = r.cause;
|
|
608
|
+
else if (r instanceof Error) {
|
|
609
|
+
const o = r;
|
|
610
|
+
s = { locator: "", message: o.message, name: o.name, stack: o.stack }, r = o.cause;
|
|
611
611
|
} else
|
|
612
|
-
s = { locator: "", message: String(
|
|
613
|
-
/(?:\.{3}|[.!?])$/.test(s.message) || (s.message += "."),
|
|
612
|
+
s = { locator: "", message: String(r), name: "Error" }, r = void 0;
|
|
613
|
+
/(?:\.{3}|[.!?])$/.test(s.message) || (s.message += "."), e.push(s);
|
|
614
614
|
}
|
|
615
|
-
return
|
|
615
|
+
return e;
|
|
616
616
|
}
|
|
617
|
-
const
|
|
618
|
-
|
|
619
|
-
typeId: /* @__PURE__ */
|
|
620
|
-
presentations: /* @__PURE__ */
|
|
621
|
-
operations: /* @__PURE__ */
|
|
617
|
+
const de = h(["list", "render", "setColorMode"]), Ie = /* @__PURE__ */ b({
|
|
618
|
+
...N,
|
|
619
|
+
typeId: /* @__PURE__ */ k("presenter"),
|
|
620
|
+
presentations: /* @__PURE__ */ E(U),
|
|
621
|
+
operations: /* @__PURE__ */ E(de)
|
|
622
622
|
});
|
|
623
|
-
function
|
|
624
|
-
return { render:
|
|
625
|
-
}
|
|
626
|
-
function ge(e, r, t) {
|
|
627
|
-
t.textContent = "Cytoscape.js diagram goes here...";
|
|
628
|
-
}
|
|
629
|
-
function Ue() {
|
|
630
|
-
return { render: he };
|
|
631
|
-
}
|
|
632
|
-
function he(e, r) {
|
|
633
|
-
console.log(1111, e), console.log(2222, r), console.log(3333, r.childNodes), console.log(4444, r.children);
|
|
634
|
-
}
|
|
635
|
-
const V = "en-US", M = /* @__PURE__ */ new Map();
|
|
636
|
-
function Be(e) {
|
|
637
|
-
switch (e) {
|
|
638
|
-
case "Edm.Binary":
|
|
639
|
-
return "unknown";
|
|
640
|
-
// Binary...
|
|
641
|
-
case "Edm.Boolean":
|
|
642
|
-
return "boolean";
|
|
643
|
-
case "Edm.Byte":
|
|
644
|
-
return "wholeNumber";
|
|
645
|
-
case "Edm.DateTime":
|
|
646
|
-
return "moment";
|
|
647
|
-
// DateTime...
|
|
648
|
-
case "Edm.DateTimeOffset":
|
|
649
|
-
return "moment";
|
|
650
|
-
// DateTimeOffset...
|
|
651
|
-
case "Edm.Decimal":
|
|
652
|
-
return "decimalNumber";
|
|
653
|
-
case "Edm.Double":
|
|
654
|
-
return "decimalNumber";
|
|
655
|
-
case "Edm.Guid":
|
|
656
|
-
return "string";
|
|
657
|
-
case "Edm.Int16":
|
|
658
|
-
return "wholeNumber";
|
|
659
|
-
case "Edm.Int32":
|
|
660
|
-
return "wholeNumber";
|
|
661
|
-
case "Edm.Int64":
|
|
662
|
-
return "wholeNumber";
|
|
663
|
-
case "Edm.SByte":
|
|
664
|
-
return "wholeNumber";
|
|
665
|
-
case "Edm.Single":
|
|
666
|
-
return "decimalNumber";
|
|
667
|
-
case "Edm.String":
|
|
668
|
-
return "string";
|
|
669
|
-
case "Edm.Time":
|
|
670
|
-
return "momentTime";
|
|
671
|
-
// Time...
|
|
672
|
-
default:
|
|
673
|
-
return "unknown";
|
|
674
|
-
}
|
|
623
|
+
function Le() {
|
|
624
|
+
return { render: fe };
|
|
675
625
|
}
|
|
676
|
-
function
|
|
677
|
-
|
|
678
|
-
const r = e.lastIndexOf("/"), t = e.lastIndexOf(".", r === -1 ? e.length : r);
|
|
679
|
-
return t === -1 ? e : e.slice(0, Math.max(0, t));
|
|
680
|
-
}
|
|
626
|
+
function fe(t, n, e) {
|
|
627
|
+
e.textContent = "Cytoscape.js diagram goes here...";
|
|
681
628
|
}
|
|
682
|
-
function Pe(
|
|
683
|
-
|
|
684
|
-
const r = e.lastIndexOf(".");
|
|
685
|
-
if (r !== -1) return e.slice(Math.max(0, r + 1));
|
|
686
|
-
}
|
|
629
|
+
function Pe() {
|
|
630
|
+
return { render: be };
|
|
687
631
|
}
|
|
688
|
-
function
|
|
689
|
-
|
|
690
|
-
const s = `${n}decimal${r}.${t}`;
|
|
691
|
-
let o = M.get(s);
|
|
692
|
-
return o || (o = new Intl.NumberFormat(n, {
|
|
693
|
-
localeMatcher: "best fit",
|
|
694
|
-
maximumFractionDigits: r,
|
|
695
|
-
minimumFractionDigits: t,
|
|
696
|
-
minimumIntegerDigits: 1,
|
|
697
|
-
style: "decimal",
|
|
698
|
-
useGrouping: !0
|
|
699
|
-
}), M.set(s, o)), o.format(e);
|
|
700
|
-
}
|
|
701
|
-
function ze(e) {
|
|
702
|
-
return e == null ? "" : e < 1e3 ? N(e) : e < 1e6 ? `${m(e / 1e3, 2, 0)}K` : e < 1e9 ? `${m(e / 1e6, 2, 0)}M` : e < 1e12 ? `${m(e / 1e9, 2, 0)}B` : `${m(e / 1e12, 2, 0)}T`;
|
|
703
|
-
}
|
|
704
|
-
function Ve(e) {
|
|
705
|
-
return e == null ? "" : e === 1 ? "1 byte" : e < 1024 ? `${N(e)} bytes` : e < 1048576 ? `${m(e / 1024, 2, 0)} KB` : e < 1073741824 ? `${m(e / 1048576, 2, 0)} MB` : e < 1099511627776 ? `${m(e / 1073741824, 2, 0)} GB` : `${m(e / 1099511627776, 2, 0)} TB`;
|
|
706
|
-
}
|
|
707
|
-
function He(e) {
|
|
708
|
-
return e == null ? "" : e < 1e3 ? `${N(e)} ms` : e === 1e3 ? `${N(e)} sec` : e < 6e4 ? `${m(e / 1e3, 2, 0)} secs` : e === 6e4 ? "1 min" : e < 36e5 ? `${m(e / 6e4, 2, 0)} mins` : e === 36e5 ? "1 hr" : e < 864e5 ? `${m(e / 36e5, 2, 0)} hrs` : e === 864e5 ? "1 day" : `${m(e / 864e5, 2, 0)} days`;
|
|
709
|
-
}
|
|
710
|
-
function N(e, r = V) {
|
|
711
|
-
if (e == null) return "";
|
|
712
|
-
const t = `${r}decimal0.0`;
|
|
713
|
-
let n = M.get(t);
|
|
714
|
-
return n || (n = new Intl.NumberFormat(r, {
|
|
715
|
-
localeMatcher: "best fit",
|
|
716
|
-
maximumFractionDigits: 0,
|
|
717
|
-
minimumFractionDigits: 0,
|
|
718
|
-
minimumIntegerDigits: 1,
|
|
719
|
-
style: "decimal",
|
|
720
|
-
useGrouping: !0
|
|
721
|
-
}), M.set(t, n)), n.format(e);
|
|
722
|
-
}
|
|
723
|
-
function Ke(e) {
|
|
724
|
-
switch (e) {
|
|
725
|
-
case "csv":
|
|
726
|
-
return "text/csv";
|
|
727
|
-
case "tab":
|
|
728
|
-
case "tsv":
|
|
729
|
-
return "text/tab-separated-values";
|
|
730
|
-
case "xls":
|
|
731
|
-
return "application/vnd.ms-excel";
|
|
732
|
-
case "xlsx":
|
|
733
|
-
return "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";
|
|
734
|
-
default:
|
|
735
|
-
return "application/octet-stream";
|
|
736
|
-
}
|
|
632
|
+
function be(t, n) {
|
|
633
|
+
console.log(1111, t), console.log(2222, n), console.log(3333, n.childNodes), console.log(4444, n.children);
|
|
737
634
|
}
|
|
738
|
-
const c = (
|
|
739
|
-
const
|
|
740
|
-
if (
|
|
741
|
-
if (
|
|
742
|
-
return
|
|
743
|
-
},
|
|
635
|
+
const c = (t) => new Map(Object.entries(t)), L = (t, n, e = O) => {
|
|
636
|
+
const r = t.get(n);
|
|
637
|
+
if (r !== void 0) return r;
|
|
638
|
+
if (e !== n)
|
|
639
|
+
return t.get(e);
|
|
640
|
+
}, me = [
|
|
744
641
|
{ id: "dtv", labels: c({ "en-gb": "Delimited Text" }) },
|
|
745
642
|
{ id: "e/e", labels: c({ "en-gb": "Entity/Event" }) },
|
|
746
643
|
{ id: "jsonArray", labels: c({ "en-gb": "JSON Array" }) },
|
|
@@ -748,27 +645,27 @@ const c = (e) => new Map(Object.entries(e)), L = (e, r, t = D) => {
|
|
|
748
645
|
{ id: "xls", labels: c({ "en-gb": "XLS" }) },
|
|
749
646
|
{ id: "xlsx", labels: c({ "en-gb": "XLSX" }) },
|
|
750
647
|
{ id: "xml", labels: c({ "en-gb": "XML" }) }
|
|
751
|
-
],
|
|
752
|
-
const
|
|
753
|
-
for (const
|
|
754
|
-
const
|
|
755
|
-
|
|
648
|
+
], Te = (t = O) => {
|
|
649
|
+
const n = [];
|
|
650
|
+
for (const e of me) {
|
|
651
|
+
const r = L(e.labels, t);
|
|
652
|
+
n.push({ id: e.id, label: r ?? e.id });
|
|
756
653
|
}
|
|
757
|
-
return
|
|
758
|
-
},
|
|
654
|
+
return n;
|
|
655
|
+
}, ye = [
|
|
759
656
|
{ id: `
|
|
760
657
|
`, labels: c({ "en-gb": "Newline" }) },
|
|
761
658
|
{ id: "\r", labels: c({ "en-gb": "Carriage Return" }) },
|
|
762
659
|
{ id: `\r
|
|
763
660
|
`, labels: c({ "en-gb": "Carriage Return/Newline" }) }
|
|
764
|
-
],
|
|
765
|
-
const
|
|
766
|
-
for (const
|
|
767
|
-
const
|
|
768
|
-
|
|
661
|
+
], _e = (t = O) => {
|
|
662
|
+
const n = [];
|
|
663
|
+
for (const e of ye) {
|
|
664
|
+
const r = L(e.labels, t);
|
|
665
|
+
n.push({ id: e.id, label: r ?? e.id });
|
|
769
666
|
}
|
|
770
|
-
return
|
|
771
|
-
},
|
|
667
|
+
return n;
|
|
668
|
+
}, ge = [
|
|
772
669
|
{ id: ":", labels: c({ "en-gb": "Colon" }) },
|
|
773
670
|
{ id: ",", labels: c({ "en-gb": "Comma" }) },
|
|
774
671
|
{ id: "!", labels: c({ "en-gb": "Exclamation Mark" }) },
|
|
@@ -780,47 +677,47 @@ const c = (e) => new Map(Object.entries(e)), L = (e, r, t = D) => {
|
|
|
780
677
|
{ id: "_", labels: c({ "en-gb": "Underscore" }) },
|
|
781
678
|
{ id: "0x1F", labels: c({ "en-gb": "Unit Separator" }) },
|
|
782
679
|
{ id: "|", labels: c({ "en-gb": "Vertical Bar" }) }
|
|
783
|
-
],
|
|
784
|
-
const
|
|
785
|
-
for (const
|
|
786
|
-
const
|
|
787
|
-
|
|
680
|
+
], Fe = (t = O) => {
|
|
681
|
+
const n = [];
|
|
682
|
+
for (const e of ge) {
|
|
683
|
+
const r = L(e.labels, t);
|
|
684
|
+
n.push({ id: e.id, label: r ?? e.id });
|
|
788
685
|
}
|
|
789
|
-
return
|
|
790
|
-
};
|
|
686
|
+
return n;
|
|
687
|
+
}, O = "en-gb";
|
|
791
688
|
export {
|
|
792
689
|
Ce as APIError,
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
690
|
+
C as ApplicationError,
|
|
691
|
+
Se as CONNECTOR_DESTINATION_OPERATIONS,
|
|
692
|
+
xe as CONNECTOR_SOURCE_OPERATIONS,
|
|
693
|
+
O as DEFAULT_LOCALE_CODE,
|
|
694
|
+
Oe as EngineError,
|
|
798
695
|
z as FetchError,
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
696
|
+
je as OperationalError,
|
|
697
|
+
pe as VueError,
|
|
698
|
+
Me as WindowPromiseRejectionError,
|
|
699
|
+
De as WindowRuntimeError,
|
|
700
|
+
we as buildFetchError,
|
|
701
|
+
he as componentConfigSchema,
|
|
702
|
+
Ae as concatenateSerialisedErrorMessages,
|
|
703
|
+
Ee as connectorConfigSchema,
|
|
704
|
+
ke as contextConfigSchema,
|
|
705
|
+
Ge as convertODataTypeIdToUsageTypeId,
|
|
706
|
+
Ve as extractExtensionFromPath,
|
|
707
|
+
He as extractNameFromPath,
|
|
708
|
+
We as formatNumberAsDecimalNumber,
|
|
709
|
+
$e as formatNumberAsDuration,
|
|
710
|
+
Xe as formatNumberAsSize,
|
|
711
|
+
Be as formatNumberAsStorageSize,
|
|
712
|
+
Je as formatNumberAsWholeNumber,
|
|
713
|
+
ve as getComponentStatus,
|
|
714
|
+
Te as getDataFormats,
|
|
715
|
+
_e as getRecordDelimiters,
|
|
716
|
+
Fe as getValueDelimiters,
|
|
820
717
|
Ke as lookupMimeTypeForExtension,
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
718
|
+
Re as normalizeToError,
|
|
719
|
+
Ie as presenterConfigSchema,
|
|
720
|
+
Ne as serialiseError,
|
|
721
|
+
Le as useCytoscapeJS,
|
|
722
|
+
Pe as useDataTable
|
|
826
723
|
};
|