@hpcc-js/react 3.3.2 → 3.4.0
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/index.js +1512 -1811
- package/dist/index.js.map +1 -1
- package/dist/index.umd.cjs +2 -2
- package/dist/index.umd.cjs.map +1 -1
- package/package.json +4 -4
- package/src/__package__.ts +3 -3
- package/types/__package__.d.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -1,1892 +1,1593 @@
|
|
|
1
|
+
import { HTMLWidget, Palette, SVGWidget, Utility } from "@hpcc-js/common";
|
|
2
|
+
|
|
3
|
+
//#region rolldown:runtime
|
|
1
4
|
var __defProp = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
|
|
5
|
+
var __export = (all) => {
|
|
6
|
+
let target = {};
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
11
|
+
return target;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
//#region src/__package__.ts
|
|
4
16
|
const PKG_NAME = "@hpcc-js/react";
|
|
5
|
-
const PKG_VERSION = "3.
|
|
6
|
-
const BUILD_VERSION = "3.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
17
|
+
const PKG_VERSION = "3.4.0";
|
|
18
|
+
const BUILD_VERSION = "3.15.0";
|
|
19
|
+
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region ../../node_modules/preact/dist/preact.module.js
|
|
22
|
+
var n, l, u$2, t$1, i$2, r$1, o$2, e$1, f$2, c$1, s$1, a$1, h$1, p$1 = {}, v$1 = [], y$1 = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, w$1 = Array.isArray;
|
|
23
|
+
function d$1(n$1, l$2) {
|
|
24
|
+
for (var u$3 in l$2) n$1[u$3] = l$2[u$3];
|
|
25
|
+
return n$1;
|
|
11
26
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
n2 && n2.parentNode && n2.parentNode.removeChild(n2);
|
|
27
|
+
function g$1(n$1) {
|
|
28
|
+
n$1 && n$1.parentNode && n$1.parentNode.removeChild(n$1);
|
|
15
29
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
return m$1(l2, e2, i2, r2, null);
|
|
30
|
+
function _(l$2, u$3, t$2) {
|
|
31
|
+
var i$3, r$2, o$3, e$2 = {};
|
|
32
|
+
for (o$3 in u$3) "key" == o$3 ? i$3 = u$3[o$3] : "ref" == o$3 ? r$2 = u$3[o$3] : e$2[o$3] = u$3[o$3];
|
|
33
|
+
if (arguments.length > 2 && (e$2.children = arguments.length > 3 ? n.call(arguments, 2) : t$2), "function" == typeof l$2 && null != l$2.defaultProps) for (o$3 in l$2.defaultProps) void 0 === e$2[o$3] && (e$2[o$3] = l$2.defaultProps[o$3]);
|
|
34
|
+
return m$1(l$2, e$2, i$3, r$2, null);
|
|
22
35
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
36
|
+
function m$1(n$1, t$2, i$3, r$2, o$3) {
|
|
37
|
+
var e$2 = {
|
|
38
|
+
type: n$1,
|
|
39
|
+
props: t$2,
|
|
40
|
+
key: i$3,
|
|
41
|
+
ref: r$2,
|
|
42
|
+
__k: null,
|
|
43
|
+
__: null,
|
|
44
|
+
__b: 0,
|
|
45
|
+
__e: null,
|
|
46
|
+
__c: null,
|
|
47
|
+
constructor: void 0,
|
|
48
|
+
__v: null == o$3 ? ++u$2 : o$3,
|
|
49
|
+
__i: -1,
|
|
50
|
+
__u: 0
|
|
51
|
+
};
|
|
52
|
+
return null == o$3 && null != l.vnode && l.vnode(e$2), e$2;
|
|
27
53
|
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
return n2.children;
|
|
54
|
+
function k(n$1) {
|
|
55
|
+
return n$1.children;
|
|
31
56
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
this.props = n2, this.context = l2;
|
|
57
|
+
function x(n$1, l$2) {
|
|
58
|
+
this.props = n$1, this.context = l$2;
|
|
35
59
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
return "function" == typeof n2.type ? S(n2) : null;
|
|
60
|
+
function S(n$1, l$2) {
|
|
61
|
+
if (null == l$2) return n$1.__ ? S(n$1.__, n$1.__i + 1) : null;
|
|
62
|
+
for (var u$3; l$2 < n$1.__k.length; l$2++) if (null != (u$3 = n$1.__k[l$2]) && null != u$3.__e) return u$3.__e;
|
|
63
|
+
return "function" == typeof n$1.type ? S(n$1) : null;
|
|
41
64
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}
|
|
65
|
+
function C$1(n$1) {
|
|
66
|
+
var l$2, u$3;
|
|
67
|
+
if (null != (n$1 = n$1.__) && null != n$1.__c) {
|
|
68
|
+
for (n$1.__e = n$1.__c.base = null, l$2 = 0; l$2 < n$1.__k.length; l$2++) if (null != (u$3 = n$1.__k[l$2]) && null != u$3.__e) {
|
|
69
|
+
n$1.__e = n$1.__c.base = u$3.__e;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
return C$1(n$1);
|
|
73
|
+
}
|
|
52
74
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
(!n2.__d && (n2.__d = true) && i$1.push(n2) && !$.__r++ || r$1 != l$1.debounceRendering) && ((r$1 = l$1.debounceRendering) || o$1)($);
|
|
75
|
+
function M(n$1) {
|
|
76
|
+
(!n$1.__d && (n$1.__d = !0) && i$2.push(n$1) && !$.__r++ || r$1 != l.debounceRendering) && ((r$1 = l.debounceRendering) || o$2)($);
|
|
56
77
|
}
|
|
57
|
-
__name(M, "M");
|
|
58
78
|
function $() {
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
__name($, "$");
|
|
63
|
-
function I(n2, l2, u2, t2, i2, r2, o2, e2, f2, c2, s2) {
|
|
64
|
-
var a2, h2, y2, w2, d2, g2, _2, m2 = t2 && t2.__k || v$1, b = l2.length;
|
|
65
|
-
for (f2 = P$1(u2, l2, m2, f2, b), a2 = 0; a2 < b; a2++) null != (y2 = u2.__k[a2]) && (h2 = -1 == y2.__i ? p$1 : m2[y2.__i] || p$1, y2.__i = a2, g2 = O(n2, y2, h2, i2, r2, o2, e2, f2, c2, s2), w2 = y2.__e, y2.ref && h2.ref != y2.ref && (h2.ref && B$2(h2.ref, null, y2), s2.push(y2.ref, y2.__c || w2, y2)), null == d2 && null != w2 && (d2 = w2), (_2 = !!(4 & y2.__u)) || h2.__k === y2.__k ? f2 = A(y2, f2, n2, _2) : "function" == typeof y2.type && void 0 !== g2 ? f2 = g2 : w2 && (f2 = w2.nextSibling), y2.__u &= -7);
|
|
66
|
-
return u2.__e = d2, f2;
|
|
79
|
+
for (var n$1, u$3, t$2, r$2, o$3, f$3, c$2, s$2 = 1; i$2.length;) i$2.length > s$2 && i$2.sort(e$1), n$1 = i$2.shift(), s$2 = i$2.length, n$1.__d && (t$2 = void 0, r$2 = void 0, o$3 = (r$2 = (u$3 = n$1).__v).__e, f$3 = [], c$2 = [], u$3.__P && ((t$2 = d$1({}, r$2)).__v = r$2.__v + 1, l.vnode && l.vnode(t$2), O$1(u$3.__P, t$2, r$2, u$3.__n, u$3.__P.namespaceURI, 32 & r$2.__u ? [o$3] : null, f$3, null == o$3 ? S(r$2) : o$3, !!(32 & r$2.__u), c$2), t$2.__v = r$2.__v, t$2.__.__k[t$2.__i] = t$2, N$1(f$3, t$2, c$2), r$2.__e = r$2.__ = null, t$2.__e != o$3 && C$1(t$2)));
|
|
80
|
+
$.__r = 0;
|
|
67
81
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
if (a2) for (r2 = 0; r2 < s2; r2++) null != (e2 = u2[r2]) && 0 == (2 & e2.__u) && (e2.__e == t2 && (t2 = S(e2)), D$1(e2, e2));
|
|
73
|
-
return t2;
|
|
82
|
+
function I(n$1, l$2, u$3, t$2, i$3, r$2, o$3, e$2, f$3, c$2, s$2) {
|
|
83
|
+
var a$2, h$2, y$2, w$2, d$2, g$2, _$2, m$2 = t$2 && t$2.__k || v$1, b$1 = l$2.length;
|
|
84
|
+
for (f$3 = P$1(u$3, l$2, m$2, f$3, b$1), a$2 = 0; a$2 < b$1; a$2++) null != (y$2 = u$3.__k[a$2]) && (h$2 = -1 == y$2.__i ? p$1 : m$2[y$2.__i] || p$1, y$2.__i = a$2, g$2 = O$1(n$1, y$2, h$2, i$3, r$2, o$3, e$2, f$3, c$2, s$2), w$2 = y$2.__e, y$2.ref && h$2.ref != y$2.ref && (h$2.ref && B$2(h$2.ref, null, y$2), s$2.push(y$2.ref, y$2.__c || w$2, y$2)), null == d$2 && null != w$2 && (d$2 = w$2), (_$2 = !!(4 & y$2.__u)) || h$2.__k === y$2.__k ? f$3 = A$1(y$2, f$3, n$1, _$2) : "function" == typeof y$2.type && void 0 !== g$2 ? f$3 = g$2 : w$2 && (f$3 = w$2.nextSibling), y$2.__u &= -7);
|
|
85
|
+
return u$3.__e = d$2, f$3;
|
|
74
86
|
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
return l2;
|
|
81
|
-
}
|
|
82
|
-
n2.__e != l2 && (t2 && (l2 && n2.type && !l2.parentNode && (l2 = S(n2)), u2.insertBefore(n2.__e, l2 || null)), l2 = n2.__e);
|
|
83
|
-
do {
|
|
84
|
-
l2 = l2 && l2.nextSibling;
|
|
85
|
-
} while (null != l2 && 8 == l2.nodeType);
|
|
86
|
-
return l2;
|
|
87
|
+
function P$1(n$1, l$2, u$3, t$2, i$3) {
|
|
88
|
+
var r$2, o$3, e$2, f$3, c$2, s$2 = u$3.length, a$2 = s$2, h$2 = 0;
|
|
89
|
+
for (n$1.__k = new Array(i$3), r$2 = 0; r$2 < i$3; r$2++) null != (o$3 = l$2[r$2]) && "boolean" != typeof o$3 && "function" != typeof o$3 ? (f$3 = r$2 + h$2, (o$3 = n$1.__k[r$2] = "string" == typeof o$3 || "number" == typeof o$3 || "bigint" == typeof o$3 || o$3.constructor == String ? m$1(null, o$3, null, null, null) : w$1(o$3) ? m$1(k, { children: o$3 }, null, null, null) : null == o$3.constructor && o$3.__b > 0 ? m$1(o$3.type, o$3.props, o$3.key, o$3.ref ? o$3.ref : null, o$3.__v) : o$3).__ = n$1, o$3.__b = n$1.__b + 1, e$2 = null, -1 != (c$2 = o$3.__i = L$1(o$3, u$3, f$3, a$2)) && (a$2--, (e$2 = u$3[c$2]) && (e$2.__u |= 2)), null == e$2 || null == e$2.__v ? (-1 == c$2 && (i$3 > s$2 ? h$2-- : i$3 < s$2 && h$2++), "function" != typeof o$3.type && (o$3.__u |= 4)) : c$2 != f$3 && (c$2 == f$3 - 1 ? h$2-- : c$2 == f$3 + 1 ? h$2++ : (c$2 > f$3 ? h$2-- : h$2++, o$3.__u |= 4))) : n$1.__k[r$2] = null;
|
|
90
|
+
if (a$2) for (r$2 = 0; r$2 < s$2; r$2++) null != (e$2 = u$3[r$2]) && 0 == (2 & e$2.__u) && (e$2.__e == t$2 && (t$2 = S(e$2)), D$1(e$2, e$2));
|
|
91
|
+
return t$2;
|
|
87
92
|
}
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
+
function A$1(n$1, l$2, u$3, t$2) {
|
|
94
|
+
var i$3, r$2;
|
|
95
|
+
if ("function" == typeof n$1.type) {
|
|
96
|
+
for (i$3 = n$1.__k, r$2 = 0; i$3 && r$2 < i$3.length; r$2++) i$3[r$2] && (i$3[r$2].__ = n$1, l$2 = A$1(i$3[r$2], l$2, u$3, t$2));
|
|
97
|
+
return l$2;
|
|
98
|
+
}
|
|
99
|
+
n$1.__e != l$2 && (t$2 && (l$2 && n$1.type && !l$2.parentNode && (l$2 = S(n$1)), u$3.insertBefore(n$1.__e, l$2 || null)), l$2 = n$1.__e);
|
|
100
|
+
do
|
|
101
|
+
l$2 = l$2 && l$2.nextSibling;
|
|
102
|
+
while (null != l$2 && 8 == l$2.nodeType);
|
|
103
|
+
return l$2;
|
|
93
104
|
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
if (t2 > (s2 ? 1 : 0)) {
|
|
99
|
-
for (i2 = u2 - 1, r2 = u2 + 1; i2 >= 0 || r2 < l2.length; ) if (null != (c2 = l2[o2 = i2 >= 0 ? i2-- : r2++]) && 0 == (2 & c2.__u) && e2 == c2.key && f2 == c2.type) return o2;
|
|
100
|
-
}
|
|
101
|
-
return -1;
|
|
105
|
+
function H(n$1, l$2) {
|
|
106
|
+
return l$2 = l$2 || [], null == n$1 || "boolean" == typeof n$1 || (w$1(n$1) ? n$1.some(function(n$2) {
|
|
107
|
+
H(n$2, l$2);
|
|
108
|
+
}) : l$2.push(n$1)), l$2;
|
|
102
109
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
110
|
+
function L$1(n$1, l$2, u$3, t$2) {
|
|
111
|
+
var i$3, r$2, o$3, e$2 = n$1.key, f$3 = n$1.type, c$2 = l$2[u$3], s$2 = null != c$2 && 0 == (2 & c$2.__u);
|
|
112
|
+
if (null === c$2 && null == n$1.key || s$2 && e$2 == c$2.key && f$3 == c$2.type) return u$3;
|
|
113
|
+
if (t$2 > (s$2 ? 1 : 0)) {
|
|
114
|
+
for (i$3 = u$3 - 1, r$2 = u$3 + 1; i$3 >= 0 || r$2 < l$2.length;) if (null != (c$2 = l$2[o$3 = i$3 >= 0 ? i$3-- : r$2++]) && 0 == (2 & c$2.__u) && e$2 == c$2.key && f$3 == c$2.type) return o$3;
|
|
115
|
+
}
|
|
116
|
+
return -1;
|
|
106
117
|
}
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
var r2, o2;
|
|
110
|
-
n: if ("style" == l2) if ("string" == typeof u2) n2.style.cssText = u2;
|
|
111
|
-
else {
|
|
112
|
-
if ("string" == typeof t2 && (n2.style.cssText = t2 = ""), t2) for (l2 in t2) u2 && l2 in u2 || T$2(n2.style, l2, "");
|
|
113
|
-
if (u2) for (l2 in u2) t2 && u2[l2] == t2[l2] || T$2(n2.style, l2, u2[l2]);
|
|
114
|
-
}
|
|
115
|
-
else if ("o" == l2[0] && "n" == l2[1]) r2 = l2 != (l2 = l2.replace(f$2, "$1")), o2 = l2.toLowerCase(), l2 = o2 in n2 || "onFocusOut" == l2 || "onFocusIn" == l2 ? o2.slice(2) : l2.slice(2), n2.l || (n2.l = {}), n2.l[l2 + r2] = u2, u2 ? t2 ? u2.u = t2.u : (u2.u = c$1, n2.addEventListener(l2, r2 ? a$1 : s$1, r2)) : n2.removeEventListener(l2, r2 ? a$1 : s$1, r2);
|
|
116
|
-
else {
|
|
117
|
-
if ("http://www.w3.org/2000/svg" == i2) l2 = l2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
118
|
-
else if ("width" != l2 && "height" != l2 && "href" != l2 && "list" != l2 && "form" != l2 && "tabIndex" != l2 && "download" != l2 && "rowSpan" != l2 && "colSpan" != l2 && "role" != l2 && "popover" != l2 && l2 in n2) try {
|
|
119
|
-
n2[l2] = null == u2 ? "" : u2;
|
|
120
|
-
break n;
|
|
121
|
-
} catch (n3) {
|
|
122
|
-
}
|
|
123
|
-
"function" == typeof u2 || (null == u2 || false === u2 && "-" != l2[4] ? n2.removeAttribute(l2) : n2.setAttribute(l2, "popover" == l2 && 1 == u2 ? "" : u2));
|
|
124
|
-
}
|
|
118
|
+
function T$2(n$1, l$2, u$3) {
|
|
119
|
+
"-" == l$2[0] ? n$1.setProperty(l$2, null == u$3 ? "" : u$3) : n$1[l$2] = null == u$3 ? "" : "number" != typeof u$3 || y$1.test(l$2) ? u$3 : u$3 + "px";
|
|
125
120
|
}
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
121
|
+
function j$2(n$1, l$2, u$3, t$2, i$3) {
|
|
122
|
+
var r$2, o$3;
|
|
123
|
+
n: if ("style" == l$2) if ("string" == typeof u$3) n$1.style.cssText = u$3;
|
|
124
|
+
else {
|
|
125
|
+
if ("string" == typeof t$2 && (n$1.style.cssText = t$2 = ""), t$2) for (l$2 in t$2) u$3 && l$2 in u$3 || T$2(n$1.style, l$2, "");
|
|
126
|
+
if (u$3) for (l$2 in u$3) t$2 && u$3[l$2] == t$2[l$2] || T$2(n$1.style, l$2, u$3[l$2]);
|
|
127
|
+
}
|
|
128
|
+
else if ("o" == l$2[0] && "n" == l$2[1]) r$2 = l$2 != (l$2 = l$2.replace(f$2, "$1")), o$3 = l$2.toLowerCase(), l$2 = o$3 in n$1 || "onFocusOut" == l$2 || "onFocusIn" == l$2 ? o$3.slice(2) : l$2.slice(2), n$1.l || (n$1.l = {}), n$1.l[l$2 + r$2] = u$3, u$3 ? t$2 ? u$3.u = t$2.u : (u$3.u = c$1, n$1.addEventListener(l$2, r$2 ? a$1 : s$1, r$2)) : n$1.removeEventListener(l$2, r$2 ? a$1 : s$1, r$2);
|
|
129
|
+
else {
|
|
130
|
+
if ("http://www.w3.org/2000/svg" == i$3) l$2 = l$2.replace(/xlink(H|:h)/, "h").replace(/sName$/, "s");
|
|
131
|
+
else if ("width" != l$2 && "height" != l$2 && "href" != l$2 && "list" != l$2 && "form" != l$2 && "tabIndex" != l$2 && "download" != l$2 && "rowSpan" != l$2 && "colSpan" != l$2 && "role" != l$2 && "popover" != l$2 && l$2 in n$1) try {
|
|
132
|
+
n$1[l$2] = null == u$3 ? "" : u$3;
|
|
133
|
+
break n;
|
|
134
|
+
} catch (n$2) {}
|
|
135
|
+
"function" == typeof u$3 || (null == u$3 || !1 === u$3 && "-" != l$2[4] ? n$1.removeAttribute(l$2) : n$1.setAttribute(l$2, "popover" == l$2 && 1 == u$3 ? "" : u$3));
|
|
136
|
+
}
|
|
136
137
|
}
|
|
137
|
-
|
|
138
|
-
function
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
for (u2.__v != t2.__v && (h2.props = b, h2.state = h2.__s, h2.__d = false), u2.__e = t2.__e, u2.__k = t2.__k, u2.__k.some(function(n3) {
|
|
147
|
-
n3 && (n3.__ = u2);
|
|
148
|
-
}), $2 = 0; $2 < h2._sb.length; $2++) h2.__h.push(h2._sb[$2]);
|
|
149
|
-
h2._sb = [], h2.__h.length && e2.push(h2);
|
|
150
|
-
break n;
|
|
151
|
-
}
|
|
152
|
-
null != h2.componentWillUpdate && h2.componentWillUpdate(b, h2.__s, M2), S2 && null != h2.componentDidUpdate && h2.__h.push(function() {
|
|
153
|
-
h2.componentDidUpdate(v2, y2, _2);
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
if (h2.context = M2, h2.props = b, h2.__P = n2, h2.__e = false, P2 = l$1.__r, A2 = 0, S2) {
|
|
157
|
-
for (h2.state = h2.__s, h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), H2 = 0; H2 < h2._sb.length; H2++) h2.__h.push(h2._sb[H2]);
|
|
158
|
-
h2._sb = [];
|
|
159
|
-
} else do {
|
|
160
|
-
h2.__d = false, P2 && P2(u2), a2 = h2.render(h2.props, h2.state, h2.context), h2.state = h2.__s;
|
|
161
|
-
} while (h2.__d && ++A2 < 25);
|
|
162
|
-
h2.state = h2.__s, null != h2.getChildContext && (i2 = d$1(d$1({}, i2), h2.getChildContext())), S2 && !p2 && null != h2.getSnapshotBeforeUpdate && (_2 = h2.getSnapshotBeforeUpdate(v2, y2)), L2 = a2, null != a2 && a2.type === k$1 && null == a2.key && (L2 = V$1(a2.props.children)), f2 = I(n2, w$1(L2) ? L2 : [L2], u2, t2, i2, r2, o2, e2, f2, c2, s2), h2.base = u2.__e, u2.__u &= -161, h2.__h.length && e2.push(h2), m2 && (h2.__E = h2.__ = null);
|
|
163
|
-
} catch (n3) {
|
|
164
|
-
if (u2.__v = null, c2 || null != o2) if (n3.then) {
|
|
165
|
-
for (u2.__u |= c2 ? 160 : 128; f2 && 8 == f2.nodeType && f2.nextSibling; ) f2 = f2.nextSibling;
|
|
166
|
-
o2[o2.indexOf(f2)] = null, u2.__e = f2;
|
|
167
|
-
} else {
|
|
168
|
-
for (T2 = o2.length; T2--; ) g$1(o2[T2]);
|
|
169
|
-
z$1(u2);
|
|
170
|
-
}
|
|
171
|
-
else u2.__e = t2.__e, u2.__k = t2.__k, n3.then || z$1(u2);
|
|
172
|
-
l$1.__e(n3, u2, t2);
|
|
173
|
-
}
|
|
174
|
-
else null == o2 && u2.__v == t2.__v ? (u2.__k = t2.__k, u2.__e = t2.__e) : f2 = u2.__e = q$2(t2.__e, u2, t2, i2, r2, o2, e2, c2, s2);
|
|
175
|
-
return (a2 = l$1.diffed) && a2(u2), 128 & u2.__u ? void 0 : f2;
|
|
138
|
+
function F$1(n$1) {
|
|
139
|
+
return function(u$3) {
|
|
140
|
+
if (this.l) {
|
|
141
|
+
var t$2 = this.l[u$3.type + n$1];
|
|
142
|
+
if (null == u$3.t) u$3.t = c$1++;
|
|
143
|
+
else if (u$3.t < t$2.u) return;
|
|
144
|
+
return t$2(l.event ? l.event(u$3) : u$3);
|
|
145
|
+
}
|
|
146
|
+
};
|
|
176
147
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
148
|
+
function O$1(n$1, u$3, t$2, i$3, r$2, o$3, e$2, f$3, c$2, s$2) {
|
|
149
|
+
var a$2, h$2, p$2, v$2, y$2, _$2, m$2, b$1, S$1, C$2, M$1, $$1, P$2, A$2, H$2, L$2, T$3, j$3 = u$3.type;
|
|
150
|
+
if (null != u$3.constructor) return null;
|
|
151
|
+
128 & t$2.__u && (c$2 = !!(32 & t$2.__u), o$3 = [f$3 = u$3.__e = t$2.__e]), (a$2 = l.__b) && a$2(u$3);
|
|
152
|
+
n: if ("function" == typeof j$3) try {
|
|
153
|
+
if (b$1 = u$3.props, S$1 = "prototype" in j$3 && j$3.prototype.render, C$2 = (a$2 = j$3.contextType) && i$3[a$2.__c], M$1 = a$2 ? C$2 ? C$2.props.value : a$2.__ : i$3, t$2.__c ? m$2 = (h$2 = u$3.__c = t$2.__c).__ = h$2.__E : (S$1 ? u$3.__c = h$2 = new j$3(b$1, M$1) : (u$3.__c = h$2 = new x(b$1, M$1), h$2.constructor = j$3, h$2.render = E$1), C$2 && C$2.sub(h$2), h$2.props = b$1, h$2.state || (h$2.state = {}), h$2.context = M$1, h$2.__n = i$3, p$2 = h$2.__d = !0, h$2.__h = [], h$2._sb = []), S$1 && null == h$2.__s && (h$2.__s = h$2.state), S$1 && null != j$3.getDerivedStateFromProps && (h$2.__s == h$2.state && (h$2.__s = d$1({}, h$2.__s)), d$1(h$2.__s, j$3.getDerivedStateFromProps(b$1, h$2.__s))), v$2 = h$2.props, y$2 = h$2.state, h$2.__v = u$3, p$2) S$1 && null == j$3.getDerivedStateFromProps && null != h$2.componentWillMount && h$2.componentWillMount(), S$1 && null != h$2.componentDidMount && h$2.__h.push(h$2.componentDidMount);
|
|
154
|
+
else {
|
|
155
|
+
if (S$1 && null == j$3.getDerivedStateFromProps && b$1 !== v$2 && null != h$2.componentWillReceiveProps && h$2.componentWillReceiveProps(b$1, M$1), !h$2.__e && null != h$2.shouldComponentUpdate && !1 === h$2.shouldComponentUpdate(b$1, h$2.__s, M$1) || u$3.__v == t$2.__v) {
|
|
156
|
+
for (u$3.__v != t$2.__v && (h$2.props = b$1, h$2.state = h$2.__s, h$2.__d = !1), u$3.__e = t$2.__e, u$3.__k = t$2.__k, u$3.__k.some(function(n$2) {
|
|
157
|
+
n$2 && (n$2.__ = u$3);
|
|
158
|
+
}), $$1 = 0; $$1 < h$2._sb.length; $$1++) h$2.__h.push(h$2._sb[$$1]);
|
|
159
|
+
h$2._sb = [], h$2.__h.length && e$2.push(h$2);
|
|
160
|
+
break n;
|
|
161
|
+
}
|
|
162
|
+
null != h$2.componentWillUpdate && h$2.componentWillUpdate(b$1, h$2.__s, M$1), S$1 && null != h$2.componentDidUpdate && h$2.__h.push(function() {
|
|
163
|
+
h$2.componentDidUpdate(v$2, y$2, _$2);
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
if (h$2.context = M$1, h$2.props = b$1, h$2.__P = n$1, h$2.__e = !1, P$2 = l.__r, A$2 = 0, S$1) {
|
|
167
|
+
for (h$2.state = h$2.__s, h$2.__d = !1, P$2 && P$2(u$3), a$2 = h$2.render(h$2.props, h$2.state, h$2.context), H$2 = 0; H$2 < h$2._sb.length; H$2++) h$2.__h.push(h$2._sb[H$2]);
|
|
168
|
+
h$2._sb = [];
|
|
169
|
+
} else do
|
|
170
|
+
h$2.__d = !1, P$2 && P$2(u$3), a$2 = h$2.render(h$2.props, h$2.state, h$2.context), h$2.state = h$2.__s;
|
|
171
|
+
while (h$2.__d && ++A$2 < 25);
|
|
172
|
+
h$2.state = h$2.__s, null != h$2.getChildContext && (i$3 = d$1(d$1({}, i$3), h$2.getChildContext())), S$1 && !p$2 && null != h$2.getSnapshotBeforeUpdate && (_$2 = h$2.getSnapshotBeforeUpdate(v$2, y$2)), L$2 = a$2, null != a$2 && a$2.type === k && null == a$2.key && (L$2 = V$1(a$2.props.children)), f$3 = I(n$1, w$1(L$2) ? L$2 : [L$2], u$3, t$2, i$3, r$2, o$3, e$2, f$3, c$2, s$2), h$2.base = u$3.__e, u$3.__u &= -161, h$2.__h.length && e$2.push(h$2), m$2 && (h$2.__E = h$2.__ = null);
|
|
173
|
+
} catch (n$2) {
|
|
174
|
+
if (u$3.__v = null, c$2 || null != o$3) if (n$2.then) {
|
|
175
|
+
for (u$3.__u |= c$2 ? 160 : 128; f$3 && 8 == f$3.nodeType && f$3.nextSibling;) f$3 = f$3.nextSibling;
|
|
176
|
+
o$3[o$3.indexOf(f$3)] = null, u$3.__e = f$3;
|
|
177
|
+
} else {
|
|
178
|
+
for (T$3 = o$3.length; T$3--;) g$1(o$3[T$3]);
|
|
179
|
+
z$1(u$3);
|
|
180
|
+
}
|
|
181
|
+
else u$3.__e = t$2.__e, u$3.__k = t$2.__k, n$2.then || z$1(u$3);
|
|
182
|
+
l.__e(n$2, u$3, t$2);
|
|
183
|
+
}
|
|
184
|
+
else null == o$3 && u$3.__v == t$2.__v ? (u$3.__k = t$2.__k, u$3.__e = t$2.__e) : f$3 = u$3.__e = q$2(t$2.__e, u$3, t$2, i$3, r$2, o$3, e$2, c$2, s$2);
|
|
185
|
+
return (a$2 = l.diffed) && a$2(u$3), 128 & u$3.__u ? void 0 : f$3;
|
|
180
186
|
}
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
for (var i2 = 0; i2 < t2.length; i2++) B$2(t2[i2], t2[++i2], t2[++i2]);
|
|
184
|
-
l$1.__c && l$1.__c(u2, n2), n2.some(function(u3) {
|
|
185
|
-
try {
|
|
186
|
-
n2 = u3.__h, u3.__h = [], n2.some(function(n3) {
|
|
187
|
-
n3.call(u3);
|
|
188
|
-
});
|
|
189
|
-
} catch (n3) {
|
|
190
|
-
l$1.__e(n3, u3.__v);
|
|
191
|
-
}
|
|
192
|
-
});
|
|
187
|
+
function z$1(n$1) {
|
|
188
|
+
n$1 && n$1.__c && (n$1.__c.__e = !0), n$1 && n$1.__k && n$1.__k.forEach(z$1);
|
|
193
189
|
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
190
|
+
function N$1(n$1, u$3, t$2) {
|
|
191
|
+
for (var i$3 = 0; i$3 < t$2.length; i$3++) B$2(t$2[i$3], t$2[++i$3], t$2[++i$3]);
|
|
192
|
+
l.__c && l.__c(u$3, n$1), n$1.some(function(u$4) {
|
|
193
|
+
try {
|
|
194
|
+
n$1 = u$4.__h, u$4.__h = [], n$1.some(function(n$2) {
|
|
195
|
+
n$2.call(u$4);
|
|
196
|
+
});
|
|
197
|
+
} catch (n$2) {
|
|
198
|
+
l.__e(n$2, u$4.__v);
|
|
199
|
+
}
|
|
200
|
+
});
|
|
197
201
|
}
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
var a2, h2, v2, y2, d2, _2, m2, b = i2.props, k2 = t2.props, x2 = t2.type;
|
|
201
|
-
if ("svg" == x2 ? o2 = "http://www.w3.org/2000/svg" : "math" == x2 ? o2 = "http://www.w3.org/1998/Math/MathML" : o2 || (o2 = "http://www.w3.org/1999/xhtml"), null != e2) {
|
|
202
|
-
for (a2 = 0; a2 < e2.length; a2++) if ((d2 = e2[a2]) && "setAttribute" in d2 == !!x2 && (x2 ? d2.localName == x2 : 3 == d2.nodeType)) {
|
|
203
|
-
u2 = d2, e2[a2] = null;
|
|
204
|
-
break;
|
|
205
|
-
}
|
|
206
|
-
}
|
|
207
|
-
if (null == u2) {
|
|
208
|
-
if (null == x2) return document.createTextNode(k2);
|
|
209
|
-
u2 = document.createElementNS(o2, x2, k2.is && k2), c2 && (l$1.__m && l$1.__m(t2, e2), c2 = false), e2 = null;
|
|
210
|
-
}
|
|
211
|
-
if (null == x2) b === k2 || c2 && u2.data == k2 || (u2.data = k2);
|
|
212
|
-
else {
|
|
213
|
-
if (e2 = e2 && n.call(u2.childNodes), b = i2.props || p$1, !c2 && null != e2) for (b = {}, a2 = 0; a2 < u2.attributes.length; a2++) b[(d2 = u2.attributes[a2]).name] = d2.value;
|
|
214
|
-
for (a2 in b) if (d2 = b[a2], "children" == a2) ;
|
|
215
|
-
else if ("dangerouslySetInnerHTML" == a2) v2 = d2;
|
|
216
|
-
else if (!(a2 in k2)) {
|
|
217
|
-
if ("value" == a2 && "defaultValue" in k2 || "checked" == a2 && "defaultChecked" in k2) continue;
|
|
218
|
-
j$2(u2, a2, null, d2, o2);
|
|
219
|
-
}
|
|
220
|
-
for (a2 in k2) d2 = k2[a2], "children" == a2 ? y2 = d2 : "dangerouslySetInnerHTML" == a2 ? h2 = d2 : "value" == a2 ? _2 = d2 : "checked" == a2 ? m2 = d2 : c2 && "function" != typeof d2 || b[a2] === d2 || j$2(u2, a2, d2, b[a2], o2);
|
|
221
|
-
if (h2) c2 || v2 && (h2.__html == v2.__html || h2.__html == u2.innerHTML) || (u2.innerHTML = h2.__html), t2.__k = [];
|
|
222
|
-
else if (v2 && (u2.innerHTML = ""), I("template" == t2.type ? u2.content : u2, w$1(y2) ? y2 : [y2], t2, i2, r2, "foreignObject" == x2 ? "http://www.w3.org/1999/xhtml" : o2, e2, f2, e2 ? e2[0] : i2.__k && S(i2, 0), c2, s2), null != e2) for (a2 = e2.length; a2--; ) g$1(e2[a2]);
|
|
223
|
-
c2 || (a2 = "value", "progress" == x2 && null == _2 ? u2.removeAttribute("value") : null != _2 && (_2 !== u2[a2] || "progress" == x2 && !_2 || "option" == x2 && _2 != b[a2]) && j$2(u2, a2, _2, b[a2], o2), a2 = "checked", null != m2 && m2 != u2[a2] && j$2(u2, a2, m2, b[a2], o2));
|
|
224
|
-
}
|
|
225
|
-
return u2;
|
|
202
|
+
function V$1(n$1) {
|
|
203
|
+
return "object" != typeof n$1 || null == n$1 || n$1.__b && n$1.__b > 0 ? n$1 : w$1(n$1) ? n$1.map(V$1) : d$1({}, n$1);
|
|
226
204
|
}
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
205
|
+
function q$2(u$3, t$2, i$3, r$2, o$3, e$2, f$3, c$2, s$2) {
|
|
206
|
+
var a$2, h$2, v$2, y$2, d$2, _$2, m$2, b$1 = i$3.props, k$2 = t$2.props, x$1 = t$2.type;
|
|
207
|
+
if ("svg" == x$1 ? o$3 = "http://www.w3.org/2000/svg" : "math" == x$1 ? o$3 = "http://www.w3.org/1998/Math/MathML" : o$3 || (o$3 = "http://www.w3.org/1999/xhtml"), null != e$2) {
|
|
208
|
+
for (a$2 = 0; a$2 < e$2.length; a$2++) if ((d$2 = e$2[a$2]) && "setAttribute" in d$2 == !!x$1 && (x$1 ? d$2.localName == x$1 : 3 == d$2.nodeType)) {
|
|
209
|
+
u$3 = d$2, e$2[a$2] = null;
|
|
210
|
+
break;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
if (null == u$3) {
|
|
214
|
+
if (null == x$1) return document.createTextNode(k$2);
|
|
215
|
+
u$3 = document.createElementNS(o$3, x$1, k$2.is && k$2), c$2 && (l.__m && l.__m(t$2, e$2), c$2 = !1), e$2 = null;
|
|
216
|
+
}
|
|
217
|
+
if (null == x$1) b$1 === k$2 || c$2 && u$3.data == k$2 || (u$3.data = k$2);
|
|
218
|
+
else {
|
|
219
|
+
if (e$2 = e$2 && n.call(u$3.childNodes), b$1 = i$3.props || p$1, !c$2 && null != e$2) for (b$1 = {}, a$2 = 0; a$2 < u$3.attributes.length; a$2++) b$1[(d$2 = u$3.attributes[a$2]).name] = d$2.value;
|
|
220
|
+
for (a$2 in b$1) if (d$2 = b$1[a$2], "children" == a$2);
|
|
221
|
+
else if ("dangerouslySetInnerHTML" == a$2) v$2 = d$2;
|
|
222
|
+
else if (!(a$2 in k$2)) {
|
|
223
|
+
if ("value" == a$2 && "defaultValue" in k$2 || "checked" == a$2 && "defaultChecked" in k$2) continue;
|
|
224
|
+
j$2(u$3, a$2, null, d$2, o$3);
|
|
225
|
+
}
|
|
226
|
+
for (a$2 in k$2) d$2 = k$2[a$2], "children" == a$2 ? y$2 = d$2 : "dangerouslySetInnerHTML" == a$2 ? h$2 = d$2 : "value" == a$2 ? _$2 = d$2 : "checked" == a$2 ? m$2 = d$2 : c$2 && "function" != typeof d$2 || b$1[a$2] === d$2 || j$2(u$3, a$2, d$2, b$1[a$2], o$3);
|
|
227
|
+
if (h$2) c$2 || v$2 && (h$2.__html == v$2.__html || h$2.__html == u$3.innerHTML) || (u$3.innerHTML = h$2.__html), t$2.__k = [];
|
|
228
|
+
else if (v$2 && (u$3.innerHTML = ""), I("template" == t$2.type ? u$3.content : u$3, w$1(y$2) ? y$2 : [y$2], t$2, i$3, r$2, "foreignObject" == x$1 ? "http://www.w3.org/1999/xhtml" : o$3, e$2, f$3, e$2 ? e$2[0] : i$3.__k && S(i$3, 0), c$2, s$2), null != e$2) for (a$2 = e$2.length; a$2--;) g$1(e$2[a$2]);
|
|
229
|
+
c$2 || (a$2 = "value", "progress" == x$1 && null == _$2 ? u$3.removeAttribute("value") : null != _$2 && (_$2 !== u$3[a$2] || "progress" == x$1 && !_$2 || "option" == x$1 && _$2 != b$1[a$2]) && j$2(u$3, a$2, _$2, b$1[a$2], o$3), a$2 = "checked", null != m$2 && m$2 != u$3[a$2] && j$2(u$3, a$2, m$2, b$1[a$2], o$3));
|
|
230
|
+
}
|
|
231
|
+
return u$3;
|
|
237
232
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
i2.base = i2.__P = null;
|
|
248
|
-
}
|
|
249
|
-
if (i2 = n2.__k) for (r2 = 0; r2 < i2.length; r2++) i2[r2] && D$1(i2[r2], u2, t2 || "function" != typeof n2.type);
|
|
250
|
-
t2 || g$1(n2.__e), n2.__c = n2.__ = n2.__e = void 0;
|
|
233
|
+
function B$2(n$1, u$3, t$2) {
|
|
234
|
+
try {
|
|
235
|
+
if ("function" == typeof n$1) {
|
|
236
|
+
var i$3 = "function" == typeof n$1.__u;
|
|
237
|
+
i$3 && n$1.__u(), i$3 && null == u$3 || (n$1.__u = n$1(u$3));
|
|
238
|
+
} else n$1.current = u$3;
|
|
239
|
+
} catch (n$2) {
|
|
240
|
+
l.__e(n$2, t$2);
|
|
241
|
+
}
|
|
251
242
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
243
|
+
function D$1(n$1, u$3, t$2) {
|
|
244
|
+
var i$3, r$2;
|
|
245
|
+
if (l.unmount && l.unmount(n$1), (i$3 = n$1.ref) && (i$3.current && i$3.current != n$1.__e || B$2(i$3, null, u$3)), null != (i$3 = n$1.__c)) {
|
|
246
|
+
if (i$3.componentWillUnmount) try {
|
|
247
|
+
i$3.componentWillUnmount();
|
|
248
|
+
} catch (n$2) {
|
|
249
|
+
l.__e(n$2, u$3);
|
|
250
|
+
}
|
|
251
|
+
i$3.base = i$3.__P = null;
|
|
252
|
+
}
|
|
253
|
+
if (i$3 = n$1.__k) for (r$2 = 0; r$2 < i$3.length; r$2++) i$3[r$2] && D$1(i$3[r$2], u$3, t$2 || "function" != typeof n$1.type);
|
|
254
|
+
t$2 || g$1(n$1.__e), n$1.__c = n$1.__ = n$1.__e = void 0;
|
|
255
255
|
}
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
var r2, o2, e2, f2;
|
|
259
|
-
t2 == document && (t2 = document.documentElement), l$1.__ && l$1.__(u2, t2), o2 = (r2 = "function" == typeof i2) ? null : i2 && i2.__k || t2.__k, e2 = [], f2 = [], O(t2, u2 = (!r2 && i2 || t2).__k = _$1(k$1, null, [u2]), o2 || p$1, p$1, t2.namespaceURI, !r2 && i2 ? [i2] : o2 ? null : t2.firstChild ? n.call(t2.childNodes) : null, e2, !r2 && i2 ? i2 : o2 ? o2.__e : t2.firstChild, r2, f2), N$1(e2, u2, f2);
|
|
256
|
+
function E$1(n$1, l$2, u$3) {
|
|
257
|
+
return this.constructor(n$1, u$3);
|
|
260
258
|
}
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
if ((r2 = i2.constructor) && null != r2.getDerivedStateFromError && (i2.setState(r2.getDerivedStateFromError(n2)), o2 = i2.__d), null != i2.componentDidCatch && (i2.componentDidCatch(n2, t2 || {}), o2 = i2.__d), o2) return i2.__E = i2;
|
|
265
|
-
} catch (l3) {
|
|
266
|
-
n2 = l3;
|
|
267
|
-
}
|
|
268
|
-
throw n2;
|
|
269
|
-
}, "__e") }, u$2 = 0, x.prototype.setState = function(n2, l2) {
|
|
270
|
-
var u2;
|
|
271
|
-
u2 = null != this.__s && this.__s != this.state ? this.__s : this.__s = d$1({}, this.state), "function" == typeof n2 && (n2 = n2(d$1({}, u2), this.props)), n2 && d$1(u2, n2), null != n2 && this.__v && (l2 && this._sb.push(l2), M(this));
|
|
272
|
-
}, x.prototype.forceUpdate = function(n2) {
|
|
273
|
-
this.__v && (this.__e = true, n2 && this.__h.push(n2), M(this));
|
|
274
|
-
}, x.prototype.render = k$1, i$1 = [], o$1 = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e$1 = /* @__PURE__ */ __name(function(n2, l2) {
|
|
275
|
-
return n2.__v.__b - l2.__v.__b;
|
|
276
|
-
}, "e$1"), $.__r = 0, f$2 = /(PointerCapture)$|Capture$/i, c$1 = 0, s$1 = F$1(false), a$1 = F$1(true);
|
|
277
|
-
var f$1 = 0;
|
|
278
|
-
function u$1(e2, t2, n2, o2, i2, u2) {
|
|
279
|
-
t2 || (t2 = {});
|
|
280
|
-
var a2, c2, p2 = t2;
|
|
281
|
-
if ("ref" in p2) for (c2 in p2 = {}, t2) "ref" == c2 ? a2 = t2[c2] : p2[c2] = t2[c2];
|
|
282
|
-
var l2 = { type: e2, props: p2, key: n2, ref: a2, __k: null, __: null, __b: 0, __e: null, __c: null, constructor: void 0, __v: --f$1, __i: -1, __u: 0, __source: i2, __self: u2 };
|
|
283
|
-
if ("function" == typeof e2 && (a2 = e2.defaultProps)) for (c2 in a2) void 0 === p2[c2] && (p2[c2] = a2[c2]);
|
|
284
|
-
return l$1.vnode && l$1.vnode(l2), l2;
|
|
259
|
+
function G(u$3, t$2, i$3) {
|
|
260
|
+
var r$2, o$3, e$2, f$3;
|
|
261
|
+
t$2 == document && (t$2 = document.documentElement), l.__ && l.__(u$3, t$2), o$3 = (r$2 = "function" == typeof i$3) ? null : i$3 && i$3.__k || t$2.__k, e$2 = [], f$3 = [], O$1(t$2, u$3 = (!r$2 && i$3 || t$2).__k = _(k, null, [u$3]), o$3 || p$1, p$1, t$2.namespaceURI, !r$2 && i$3 ? [i$3] : o$3 ? null : t$2.firstChild ? n.call(t$2.childNodes) : null, e$2, !r$2 && i$3 ? i$3 : o$3 ? o$3.__e : t$2.firstChild, r$2, f$3), N$1(e$2, u$3, f$3);
|
|
285
262
|
}
|
|
286
|
-
|
|
287
|
-
var
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
263
|
+
n = v$1.slice, l = { __e: function(n$1, l$2, u$3, t$2) {
|
|
264
|
+
for (var i$3, r$2, o$3; l$2 = l$2.__;) if ((i$3 = l$2.__c) && !i$3.__) try {
|
|
265
|
+
if ((r$2 = i$3.constructor) && null != r$2.getDerivedStateFromError && (i$3.setState(r$2.getDerivedStateFromError(n$1)), o$3 = i$3.__d), null != i$3.componentDidCatch && (i$3.componentDidCatch(n$1, t$2 || {}), o$3 = i$3.__d), o$3) return i$3.__E = i$3;
|
|
266
|
+
} catch (l$3) {
|
|
267
|
+
n$1 = l$3;
|
|
268
|
+
}
|
|
269
|
+
throw n$1;
|
|
270
|
+
} }, u$2 = 0, t$1 = function(n$1) {
|
|
271
|
+
return null != n$1 && null == n$1.constructor;
|
|
272
|
+
}, x.prototype.setState = function(n$1, l$2) {
|
|
273
|
+
var u$3 = null != this.__s && this.__s != this.state ? this.__s : this.__s = d$1({}, this.state);
|
|
274
|
+
"function" == typeof n$1 && (n$1 = n$1(d$1({}, u$3), this.props)), n$1 && d$1(u$3, n$1), null != n$1 && this.__v && (l$2 && this._sb.push(l$2), M(this));
|
|
275
|
+
}, x.prototype.forceUpdate = function(n$1) {
|
|
276
|
+
this.__v && (this.__e = !0, n$1 && this.__h.push(n$1), M(this));
|
|
277
|
+
}, x.prototype.render = k, i$2 = [], o$2 = "function" == typeof Promise ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, e$1 = function(n$1, l$2) {
|
|
278
|
+
return n$1.__v.__b - l$2.__v.__b;
|
|
279
|
+
}, $.__r = 0, f$2 = /(PointerCapture)$|Capture$/i, c$1 = 0, s$1 = F$1(!1), a$1 = F$1(!0), h$1 = 0;
|
|
280
|
+
|
|
281
|
+
//#endregion
|
|
282
|
+
//#region ../../node_modules/preact/hooks/dist/hooks.module.js
|
|
283
|
+
var t, r, u$1, i$1, o$1 = 0, f$1 = [], c = l, e = c.__b, a = c.__r, v = c.diffed, l$1 = c.__c, m = c.unmount, s = c.__;
|
|
284
|
+
function p(n$1, t$2) {
|
|
285
|
+
c.__h && c.__h(r, n$1, o$1 || t$2), o$1 = 0;
|
|
286
|
+
var u$3 = r.__H || (r.__H = {
|
|
287
|
+
__: [],
|
|
288
|
+
__h: []
|
|
289
|
+
});
|
|
290
|
+
return n$1 >= u$3.__.length && u$3.__.push({}), u$3.__[n$1];
|
|
292
291
|
}
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
return o = 1, h(D, n2);
|
|
292
|
+
function d(n$1) {
|
|
293
|
+
return o$1 = 1, h(D, n$1);
|
|
296
294
|
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
return o2.__N || o2.__;
|
|
295
|
+
function h(n$1, u$3, i$3) {
|
|
296
|
+
var o$3 = p(t++, 2);
|
|
297
|
+
if (o$3.t = n$1, !o$3.__c && (o$3.__ = [i$3 ? i$3(u$3) : D(void 0, u$3), function(n$2) {
|
|
298
|
+
var t$2 = o$3.__N ? o$3.__N[0] : o$3.__[0], r$2 = o$3.t(t$2, n$2);
|
|
299
|
+
t$2 !== r$2 && (o$3.__N = [r$2, o$3.__[1]], o$3.__c.setState({}));
|
|
300
|
+
}], o$3.__c = r, !r.__f)) {
|
|
301
|
+
var f$3 = function(n$2, t$2, r$2) {
|
|
302
|
+
if (!o$3.__c.__H) return !0;
|
|
303
|
+
var u$4 = o$3.__c.__H.__.filter(function(n$3) {
|
|
304
|
+
return !!n$3.__c;
|
|
305
|
+
});
|
|
306
|
+
if (u$4.every(function(n$3) {
|
|
307
|
+
return !n$3.__N;
|
|
308
|
+
})) return !c$2 || c$2.call(this, n$2, t$2, r$2);
|
|
309
|
+
var i$4 = o$3.__c.props !== n$2;
|
|
310
|
+
return u$4.forEach(function(n$3) {
|
|
311
|
+
if (n$3.__N) {
|
|
312
|
+
var t$3 = n$3.__[0];
|
|
313
|
+
n$3.__ = n$3.__N, n$3.__N = void 0, t$3 !== n$3.__[0] && (i$4 = !0);
|
|
314
|
+
}
|
|
315
|
+
}), c$2 && c$2.call(this, n$2, t$2, r$2) || i$4;
|
|
316
|
+
};
|
|
317
|
+
r.__f = !0;
|
|
318
|
+
var c$2 = r.shouldComponentUpdate, e$2 = r.componentWillUpdate;
|
|
319
|
+
r.componentWillUpdate = function(n$2, t$2, r$2) {
|
|
320
|
+
if (this.__e) {
|
|
321
|
+
var u$4 = c$2;
|
|
322
|
+
c$2 = void 0, f$3(n$2, t$2, r$2), c$2 = u$4;
|
|
323
|
+
}
|
|
324
|
+
e$2 && e$2.call(this, n$2, t$2, r$2);
|
|
325
|
+
}, r.shouldComponentUpdate = f$3;
|
|
326
|
+
}
|
|
327
|
+
return o$3.__N || o$3.__;
|
|
331
328
|
}
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
!c.__s && C(i2.__H, u2) && (i2.__ = n2, i2.u = u2, r.__H.__h.push(i2));
|
|
329
|
+
function y(n$1, u$3) {
|
|
330
|
+
var i$3 = p(t++, 3);
|
|
331
|
+
!c.__s && C(i$3.__H, u$3) && (i$3.__ = n$1, i$3.u = u$3, r.__H.__h.push(i$3));
|
|
336
332
|
}
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
!c.__s && C(i2.__H, u2) && (i2.__ = n2, i2.u = u2, r.__h.push(i2));
|
|
333
|
+
function _$1(n$1, u$3) {
|
|
334
|
+
var i$3 = p(t++, 4);
|
|
335
|
+
!c.__s && C(i$3.__H, u$3) && (i$3.__ = n$1, i$3.u = u$3, r.__h.push(i$3));
|
|
341
336
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
return C(u2.__H, r2) && (u2.__ = n2(), u2.__H = r2, u2.__h = n2), u2.__;
|
|
337
|
+
function T(n$1, r$2) {
|
|
338
|
+
var u$3 = p(t++, 7);
|
|
339
|
+
return C(u$3.__H, r$2) && (u$3.__ = n$1(), u$3.__H = r$2, u$3.__h = n$1), u$3.__;
|
|
346
340
|
}
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
}, t2);
|
|
341
|
+
function q(n$1, t$2) {
|
|
342
|
+
return o$1 = 8, T(function() {
|
|
343
|
+
return n$1;
|
|
344
|
+
}, t$2);
|
|
352
345
|
}
|
|
353
|
-
__name(q$1, "q$1");
|
|
354
346
|
function j$1() {
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
347
|
+
for (var n$1; n$1 = f$1.shift();) if (n$1.__P && n$1.__H) try {
|
|
348
|
+
n$1.__H.__h.forEach(z), n$1.__H.__h.forEach(B$1), n$1.__H.__h = [];
|
|
349
|
+
} catch (t$2) {
|
|
350
|
+
n$1.__H.__h = [], c.__e(t$2, n$1.__v);
|
|
351
|
+
}
|
|
360
352
|
}
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
}), r2.__H = void 0, t2 && c.__e(t2, r2.__v));
|
|
353
|
+
c.__b = function(n$1) {
|
|
354
|
+
r = null, e && e(n$1);
|
|
355
|
+
}, c.__ = function(n$1, t$2) {
|
|
356
|
+
n$1 && t$2.__k && t$2.__k.__m && (n$1.__m = t$2.__k.__m), s && s(n$1, t$2);
|
|
357
|
+
}, c.__r = function(n$1) {
|
|
358
|
+
a && a(n$1), t = 0;
|
|
359
|
+
var i$3 = (r = n$1.__c).__H;
|
|
360
|
+
i$3 && (u$1 === r ? (i$3.__h = [], r.__h = [], i$3.__.forEach(function(n$2) {
|
|
361
|
+
n$2.__N && (n$2.__ = n$2.__N), n$2.u = n$2.__N = void 0;
|
|
362
|
+
})) : (i$3.__h.forEach(z), i$3.__h.forEach(B$1), i$3.__h = [], t = 0)), u$1 = r;
|
|
363
|
+
}, c.diffed = function(n$1) {
|
|
364
|
+
v && v(n$1);
|
|
365
|
+
var t$2 = n$1.__c;
|
|
366
|
+
t$2 && t$2.__H && (t$2.__H.__h.length && (1 !== f$1.push(t$2) && i$1 === c.requestAnimationFrame || ((i$1 = c.requestAnimationFrame) || w)(j$1)), t$2.__H.__.forEach(function(n$2) {
|
|
367
|
+
n$2.u && (n$2.__H = n$2.u), n$2.u = void 0;
|
|
368
|
+
})), u$1 = r = null;
|
|
369
|
+
}, c.__c = function(n$1, t$2) {
|
|
370
|
+
t$2.some(function(n$2) {
|
|
371
|
+
try {
|
|
372
|
+
n$2.__h.forEach(z), n$2.__h = n$2.__h.filter(function(n$3) {
|
|
373
|
+
return !n$3.__ || B$1(n$3);
|
|
374
|
+
});
|
|
375
|
+
} catch (r$2) {
|
|
376
|
+
t$2.some(function(n$3) {
|
|
377
|
+
n$3.__h && (n$3.__h = []);
|
|
378
|
+
}), t$2 = [], c.__e(r$2, n$2.__v);
|
|
379
|
+
}
|
|
380
|
+
}), l$1 && l$1(n$1, t$2);
|
|
381
|
+
}, c.unmount = function(n$1) {
|
|
382
|
+
m && m(n$1);
|
|
383
|
+
var t$2, r$2 = n$1.__c;
|
|
384
|
+
r$2 && r$2.__H && (r$2.__H.__.forEach(function(n$2) {
|
|
385
|
+
try {
|
|
386
|
+
z(n$2);
|
|
387
|
+
} catch (n$3) {
|
|
388
|
+
t$2 = n$3;
|
|
389
|
+
}
|
|
390
|
+
}), r$2.__H = void 0, t$2 && c.__e(t$2, r$2.__v));
|
|
400
391
|
};
|
|
401
|
-
var k = "function" == typeof requestAnimationFrame;
|
|
402
|
-
function w(
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
392
|
+
var k$1 = "function" == typeof requestAnimationFrame;
|
|
393
|
+
function w(n$1) {
|
|
394
|
+
var t$2, r$2 = function() {
|
|
395
|
+
clearTimeout(u$3), k$1 && cancelAnimationFrame(t$2), setTimeout(n$1);
|
|
396
|
+
}, u$3 = setTimeout(r$2, 35);
|
|
397
|
+
k$1 && (t$2 = requestAnimationFrame(r$2));
|
|
407
398
|
}
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
"function" == typeof u2 && (n2.__c = void 0, u2()), r = t2;
|
|
399
|
+
function z(n$1) {
|
|
400
|
+
var t$2 = r, u$3 = n$1.__c;
|
|
401
|
+
"function" == typeof u$3 && (n$1.__c = void 0, u$3()), r = t$2;
|
|
412
402
|
}
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
n2.__c = n2.__(), r = t2;
|
|
403
|
+
function B$1(n$1) {
|
|
404
|
+
var t$2 = r;
|
|
405
|
+
n$1.__c = n$1.__(), r = t$2;
|
|
417
406
|
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
});
|
|
407
|
+
function C(n$1, t$2) {
|
|
408
|
+
return !n$1 || n$1.length !== t$2.length || t$2.some(function(t$3, r$2) {
|
|
409
|
+
return t$3 !== n$1[r$2];
|
|
410
|
+
});
|
|
423
411
|
}
|
|
424
|
-
|
|
425
|
-
function
|
|
426
|
-
return "function" == typeof t2 ? t2(n2) : t2;
|
|
412
|
+
function D(n$1, t$2) {
|
|
413
|
+
return "function" == typeof t$2 ? t$2(n$1) : t$2;
|
|
427
414
|
}
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
415
|
+
|
|
416
|
+
//#endregion
|
|
417
|
+
//#region ../../node_modules/preact/compat/dist/compat.module.js
|
|
418
|
+
function g(n$1, t$2) {
|
|
419
|
+
for (var e$2 in t$2) n$1[e$2] = t$2[e$2];
|
|
420
|
+
return n$1;
|
|
432
421
|
}
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
return false;
|
|
422
|
+
function E(n$1, t$2) {
|
|
423
|
+
for (var e$2 in n$1) if ("__source" !== e$2 && !(e$2 in t$2)) return !0;
|
|
424
|
+
for (var r$2 in t$2) if ("__source" !== r$2 && n$1[r$2] !== t$2[r$2]) return !0;
|
|
425
|
+
return !1;
|
|
438
426
|
}
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
this.props = n2, this.context = t2;
|
|
427
|
+
function N(n$1, t$2) {
|
|
428
|
+
this.props = n$1, this.context = t$2;
|
|
442
429
|
}
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
return E(this.props, n2) || E(this.state, t2);
|
|
430
|
+
(N.prototype = new x()).isPureReactComponent = !0, N.prototype.shouldComponentUpdate = function(n$1, t$2) {
|
|
431
|
+
return E(this.props, n$1) || E(this.state, t$2);
|
|
446
432
|
};
|
|
447
|
-
var T = l
|
|
448
|
-
l
|
|
449
|
-
|
|
433
|
+
var T$1 = l.__b;
|
|
434
|
+
l.__b = function(n$1) {
|
|
435
|
+
n$1.type && n$1.type.__f && n$1.ref && (n$1.props.ref = n$1.ref, n$1.ref = null), T$1 && T$1(n$1);
|
|
450
436
|
};
|
|
451
|
-
var
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
437
|
+
var A = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.forward_ref") || 3911;
|
|
438
|
+
var L = function(n$1, t$2) {
|
|
439
|
+
return null == n$1 ? null : H(H(n$1).map(t$2));
|
|
440
|
+
}, O = {
|
|
441
|
+
map: L,
|
|
442
|
+
forEach: L,
|
|
443
|
+
count: function(n$1) {
|
|
444
|
+
return n$1 ? H(n$1).length : 0;
|
|
445
|
+
},
|
|
446
|
+
only: function(n$1) {
|
|
447
|
+
var t$2 = H(n$1);
|
|
448
|
+
if (1 !== t$2.length) throw "Children.only";
|
|
449
|
+
return t$2[0];
|
|
450
|
+
},
|
|
451
|
+
toArray: H
|
|
452
|
+
}, F = l.__e;
|
|
453
|
+
l.__e = function(n$1, t$2, e$2, r$2) {
|
|
454
|
+
if (n$1.then) {
|
|
455
|
+
for (var u$3, o$3 = t$2; o$3 = o$3.__;) if ((u$3 = o$3.__c) && u$3.__c) return t$2.__e ?? (t$2.__e = e$2.__e, t$2.__k = e$2.__k), u$3.__c(n$1, t$2);
|
|
456
|
+
}
|
|
457
|
+
F(n$1, t$2, e$2, r$2);
|
|
457
458
|
};
|
|
458
|
-
var U = l
|
|
459
|
-
function V(
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
459
|
+
var U = l.unmount;
|
|
460
|
+
function V(n$1, t$2, e$2) {
|
|
461
|
+
return n$1 && (n$1.__c && n$1.__c.__H && (n$1.__c.__H.__.forEach(function(n$2) {
|
|
462
|
+
"function" == typeof n$2.__c && n$2.__c();
|
|
463
|
+
}), n$1.__c.__H = null), null != (n$1 = g({}, n$1)).__c && (n$1.__c.__P === e$2 && (n$1.__c.__P = t$2), n$1.__c.__e = !0, n$1.__c = null), n$1.__k = n$1.__k && n$1.__k.map(function(n$2) {
|
|
464
|
+
return V(n$2, t$2, e$2);
|
|
465
|
+
})), n$1;
|
|
465
466
|
}
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
}), n2.__c && n2.__c.__P === t2 && (n2.__e && e2.appendChild(n2.__e), n2.__c.__e = true, n2.__c.__P = e2)), n2;
|
|
467
|
+
function W(n$1, t$2, e$2) {
|
|
468
|
+
return n$1 && e$2 && (n$1.__v = null, n$1.__k = n$1.__k && n$1.__k.map(function(n$2) {
|
|
469
|
+
return W(n$2, t$2, e$2);
|
|
470
|
+
}), n$1.__c && n$1.__c.__P === t$2 && (n$1.__e && e$2.appendChild(n$1.__e), n$1.__c.__e = !0, n$1.__c.__P = e$2)), n$1;
|
|
471
471
|
}
|
|
472
|
-
__name(W, "W");
|
|
473
472
|
function P() {
|
|
474
|
-
|
|
473
|
+
this.__u = 0, this.o = null, this.__b = null;
|
|
475
474
|
}
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
return t2 && t2.__a && t2.__a(n2);
|
|
475
|
+
function j(n$1) {
|
|
476
|
+
var t$2 = n$1.__.__c;
|
|
477
|
+
return t$2 && t$2.__a && t$2.__a(n$1);
|
|
480
478
|
}
|
|
481
|
-
__name(j, "j");
|
|
482
479
|
function B() {
|
|
483
|
-
|
|
480
|
+
this.i = null, this.l = null;
|
|
484
481
|
}
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
r2.__u++ || 32 & t2.__u || r2.setState({ __a: r2.__b = r2.__v.__k[0] }), n2.then(i2, i2);
|
|
482
|
+
l.unmount = function(n$1) {
|
|
483
|
+
var t$2 = n$1.__c;
|
|
484
|
+
t$2 && t$2.__R && t$2.__R(), t$2 && 32 & n$1.__u && (n$1.type = null), U && U(n$1);
|
|
485
|
+
}, (P.prototype = new x()).__c = function(n$1, t$2) {
|
|
486
|
+
var e$2 = t$2.__c, r$2 = this;
|
|
487
|
+
r$2.o ??= [], r$2.o.push(e$2);
|
|
488
|
+
var u$3 = j(r$2.__v), o$3 = !1, i$3 = function() {
|
|
489
|
+
o$3 || (o$3 = !0, e$2.__R = null, u$3 ? u$3(l$2) : l$2());
|
|
490
|
+
};
|
|
491
|
+
e$2.__R = i$3;
|
|
492
|
+
var l$2 = function() {
|
|
493
|
+
if (!--r$2.__u) {
|
|
494
|
+
if (r$2.state.__a) {
|
|
495
|
+
var n$2 = r$2.state.__a;
|
|
496
|
+
r$2.__v.__k[0] = W(n$2, n$2.__c.__P, n$2.__c.__O);
|
|
497
|
+
}
|
|
498
|
+
var t$3;
|
|
499
|
+
for (r$2.setState({ __a: r$2.__b = null }); t$3 = r$2.o.pop();) t$3.forceUpdate();
|
|
500
|
+
}
|
|
501
|
+
};
|
|
502
|
+
r$2.__u++ || 32 & t$2.__u || r$2.setState({ __a: r$2.__b = r$2.__v.__k[0] }), n$1.then(i$3, i$3);
|
|
507
503
|
}, P.prototype.componentWillUnmount = function() {
|
|
508
|
-
|
|
509
|
-
}, P.prototype.render = function(
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
504
|
+
this.o = [];
|
|
505
|
+
}, P.prototype.render = function(n$1, e$2) {
|
|
506
|
+
if (this.__b) {
|
|
507
|
+
if (this.__v.__k) {
|
|
508
|
+
var r$2 = document.createElement("div"), o$3 = this.__v.__k[0].__c;
|
|
509
|
+
this.__v.__k[0] = V(this.__b, r$2, o$3.__O = o$3.__P);
|
|
510
|
+
}
|
|
511
|
+
this.__b = null;
|
|
512
|
+
}
|
|
513
|
+
var i$3 = e$2.__a && _(k, null, n$1.fallback);
|
|
514
|
+
return i$3 && (i$3.__u &= -33), [_(k, null, e$2.__a ? null : n$1.children), i$3];
|
|
519
515
|
};
|
|
520
|
-
var H =
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
}
|
|
527
|
-
(B.prototype = new x()).__a = function(
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
}, B.prototype.render = function(
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
516
|
+
var H$1 = function(n$1, t$2, e$2) {
|
|
517
|
+
if (++e$2[1] === e$2[0] && n$1.l.delete(t$2), n$1.props.revealOrder && ("t" !== n$1.props.revealOrder[0] || !n$1.l.size)) for (e$2 = n$1.i; e$2;) {
|
|
518
|
+
for (; e$2.length > 3;) e$2.pop()();
|
|
519
|
+
if (e$2[1] < e$2[0]) break;
|
|
520
|
+
n$1.i = e$2 = e$2[2];
|
|
521
|
+
}
|
|
522
|
+
};
|
|
523
|
+
(B.prototype = new x()).__a = function(n$1) {
|
|
524
|
+
var t$2 = this, e$2 = j(t$2.__v), r$2 = t$2.l.get(n$1);
|
|
525
|
+
return r$2[0]++, function(u$3) {
|
|
526
|
+
var o$3 = function() {
|
|
527
|
+
t$2.props.revealOrder ? (r$2.push(u$3), H$1(t$2, n$1, r$2)) : u$3();
|
|
528
|
+
};
|
|
529
|
+
e$2 ? e$2(o$3) : o$3();
|
|
530
|
+
};
|
|
531
|
+
}, B.prototype.render = function(n$1) {
|
|
532
|
+
this.i = null, this.l = /* @__PURE__ */ new Map();
|
|
533
|
+
var t$2 = H(n$1.children);
|
|
534
|
+
n$1.revealOrder && "b" === n$1.revealOrder[0] && t$2.reverse();
|
|
535
|
+
for (var e$2 = t$2.length; e$2--;) this.l.set(t$2[e$2], this.i = [
|
|
536
|
+
1,
|
|
537
|
+
0,
|
|
538
|
+
this.i
|
|
539
|
+
]);
|
|
540
|
+
return n$1.children;
|
|
541
541
|
}, B.prototype.componentDidUpdate = B.prototype.componentDidMount = function() {
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
542
|
+
var n$1 = this;
|
|
543
|
+
this.l.forEach(function(t$2, e$2) {
|
|
544
|
+
H$1(n$1, e$2, t$2);
|
|
545
|
+
});
|
|
546
|
+
};
|
|
547
|
+
var q$1 = "undefined" != typeof Symbol && Symbol.for && Symbol.for("react.element") || 60103, G$1 = /^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/, J$1 = /^on(Ani|Tra|Tou|BeforeInp|Compo)/, K$1 = /[A-Z0-9]/g, Q$1 = "undefined" != typeof document, X = function(n$1) {
|
|
548
|
+
return ("undefined" != typeof Symbol && "symbol" == typeof Symbol() ? /fil|che|rad/ : /fil|che|ra/).test(n$1);
|
|
546
549
|
};
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
550
|
+
x.prototype.isReactComponent = {}, [
|
|
551
|
+
"componentWillMount",
|
|
552
|
+
"componentWillReceiveProps",
|
|
553
|
+
"componentWillUpdate"
|
|
554
|
+
].forEach(function(t$2) {
|
|
555
|
+
Object.defineProperty(x.prototype, t$2, {
|
|
556
|
+
configurable: !0,
|
|
557
|
+
get: function() {
|
|
558
|
+
return this["UNSAFE_" + t$2];
|
|
559
|
+
},
|
|
560
|
+
set: function(n$1) {
|
|
561
|
+
Object.defineProperty(this, t$2, {
|
|
562
|
+
configurable: !0,
|
|
563
|
+
writable: !0,
|
|
564
|
+
value: n$1
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
});
|
|
556
568
|
});
|
|
557
|
-
var en = l
|
|
558
|
-
function rn() {
|
|
559
|
-
}
|
|
560
|
-
__name(rn, "rn");
|
|
569
|
+
var en = l.event;
|
|
570
|
+
function rn() {}
|
|
561
571
|
function un() {
|
|
562
|
-
|
|
572
|
+
return this.cancelBubble;
|
|
563
573
|
}
|
|
564
|
-
__name(un, "un");
|
|
565
574
|
function on() {
|
|
566
|
-
|
|
575
|
+
return this.defaultPrevented;
|
|
567
576
|
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
return en && (n2 = en(n2)), n2.persist = rn, n2.isPropagationStopped = un, n2.isDefaultPrevented = on, n2.nativeEvent = n2;
|
|
577
|
+
l.event = function(n$1) {
|
|
578
|
+
return en && (n$1 = en(n$1)), n$1.persist = rn, n$1.isPropagationStopped = un, n$1.isDefaultPrevented = on, n$1.nativeEvent = n$1;
|
|
571
579
|
};
|
|
572
|
-
var cn = {
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
580
|
+
var ln, cn = {
|
|
581
|
+
enumerable: !1,
|
|
582
|
+
configurable: !0,
|
|
583
|
+
get: function() {
|
|
584
|
+
return this.class;
|
|
585
|
+
}
|
|
586
|
+
}, fn = l.vnode;
|
|
587
|
+
l.vnode = function(n$1) {
|
|
588
|
+
"string" == typeof n$1.type && function(n$2) {
|
|
589
|
+
var t$2 = n$2.props, e$2 = n$2.type, u$3 = {}, o$3 = -1 === e$2.indexOf("-");
|
|
590
|
+
for (var i$3 in t$2) {
|
|
591
|
+
var l$2 = t$2[i$3];
|
|
592
|
+
if (!("value" === i$3 && "defaultValue" in t$2 && null == l$2 || Q$1 && "children" === i$3 && "noscript" === e$2 || "class" === i$3 || "className" === i$3)) {
|
|
593
|
+
var c$2 = i$3.toLowerCase();
|
|
594
|
+
"defaultValue" === i$3 && "value" in t$2 && null == t$2.value ? i$3 = "value" : "download" === i$3 && !0 === l$2 ? l$2 = "" : "translate" === c$2 && "no" === l$2 ? l$2 = !1 : "o" === c$2[0] && "n" === c$2[1] ? "ondoubleclick" === c$2 ? i$3 = "ondblclick" : "onchange" !== c$2 || "input" !== e$2 && "textarea" !== e$2 || X(t$2.type) ? "onfocus" === c$2 ? i$3 = "onfocusin" : "onblur" === c$2 ? i$3 = "onfocusout" : J$1.test(i$3) && (i$3 = c$2) : c$2 = i$3 = "oninput" : o$3 && G$1.test(i$3) ? i$3 = i$3.replace(K$1, "-$&").toLowerCase() : null === l$2 && (l$2 = void 0), "oninput" === c$2 && u$3[i$3 = c$2] && (i$3 = "oninputCapture"), u$3[i$3] = l$2;
|
|
595
|
+
}
|
|
596
|
+
}
|
|
597
|
+
"select" == e$2 && u$3.multiple && Array.isArray(u$3.value) && (u$3.value = H(t$2.children).forEach(function(n$3) {
|
|
598
|
+
n$3.props.selected = -1 != u$3.value.indexOf(n$3.props.value);
|
|
599
|
+
})), "select" == e$2 && null != u$3.defaultValue && (u$3.value = H(t$2.children).forEach(function(n$3) {
|
|
600
|
+
n$3.props.selected = u$3.multiple ? -1 != u$3.defaultValue.indexOf(n$3.props.value) : u$3.defaultValue == n$3.props.value;
|
|
601
|
+
})), t$2.class && !t$2.className ? (u$3.class = t$2.class, Object.defineProperty(u$3, "className", cn)) : (t$2.className && !t$2.class || t$2.class && t$2.className) && (u$3.class = u$3.className = t$2.className), n$2.props = u$3;
|
|
602
|
+
}(n$1), n$1.$$typeof = q$1, fn && fn(n$1);
|
|
591
603
|
};
|
|
592
|
-
var an = l
|
|
593
|
-
l
|
|
594
|
-
|
|
604
|
+
var an = l.__r;
|
|
605
|
+
l.__r = function(n$1) {
|
|
606
|
+
an && an(n$1), ln = n$1.__c;
|
|
595
607
|
};
|
|
596
|
-
var sn = l
|
|
597
|
-
l
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
608
|
+
var sn = l.diffed;
|
|
609
|
+
l.diffed = function(n$1) {
|
|
610
|
+
sn && sn(n$1);
|
|
611
|
+
var t$2 = n$1.props, e$2 = n$1.__e;
|
|
612
|
+
null != e$2 && "textarea" === n$1.type && "value" in t$2 && t$2.value !== e$2.value && (e$2.value = null == t$2.value ? "" : t$2.value), ln = null;
|
|
601
613
|
};
|
|
602
|
-
function bn(
|
|
603
|
-
|
|
614
|
+
function bn(n$1) {
|
|
615
|
+
return !!n$1.__k && (G(null, n$1), !0);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
//#endregion
|
|
619
|
+
//#region src/preact-shim.ts
|
|
620
|
+
var preact_shim_exports = /* @__PURE__ */ __export({
|
|
621
|
+
Component: () => x,
|
|
622
|
+
Fragment: () => k,
|
|
623
|
+
createElement: () => _,
|
|
624
|
+
h: () => _,
|
|
625
|
+
render: () => G,
|
|
626
|
+
unmountComponentAtNode: () => bn,
|
|
627
|
+
useCallback: () => q,
|
|
628
|
+
useEffect: () => y,
|
|
629
|
+
useLayoutEffect: () => _$1,
|
|
630
|
+
useMemo: () => T,
|
|
631
|
+
useReducer: () => h,
|
|
632
|
+
useState: () => d
|
|
633
|
+
});
|
|
634
|
+
|
|
635
|
+
//#endregion
|
|
636
|
+
//#region ../../node_modules/preact/jsx-runtime/dist/jsxRuntime.module.js
|
|
637
|
+
var o = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, f = 0, i = Array.isArray;
|
|
638
|
+
function u(e$2, t$2, n$1, o$3, i$3, u$3) {
|
|
639
|
+
t$2 || (t$2 = {});
|
|
640
|
+
var a$2, c$2, p$2 = t$2;
|
|
641
|
+
if ("ref" in p$2) for (c$2 in p$2 = {}, t$2) "ref" == c$2 ? a$2 = t$2[c$2] : p$2[c$2] = t$2[c$2];
|
|
642
|
+
var l$2 = {
|
|
643
|
+
type: e$2,
|
|
644
|
+
props: p$2,
|
|
645
|
+
key: n$1,
|
|
646
|
+
ref: a$2,
|
|
647
|
+
__k: null,
|
|
648
|
+
__: null,
|
|
649
|
+
__b: 0,
|
|
650
|
+
__e: null,
|
|
651
|
+
__c: null,
|
|
652
|
+
constructor: void 0,
|
|
653
|
+
__v: --f,
|
|
654
|
+
__i: -1,
|
|
655
|
+
__u: 0,
|
|
656
|
+
__source: i$3,
|
|
657
|
+
__self: u$3
|
|
658
|
+
};
|
|
659
|
+
if ("function" == typeof e$2 && (a$2 = e$2.defaultProps)) for (c$2 in a$2) void 0 === p$2[c$2] && (p$2[c$2] = a$2[c$2]);
|
|
660
|
+
return l.vnode && l.vnode(l$2), l$2;
|
|
604
661
|
}
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
const
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
})
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
const
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
})
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
})
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
{
|
|
941
|
-
width: w2,
|
|
942
|
-
height: h2,
|
|
943
|
-
fill,
|
|
944
|
-
stroke,
|
|
945
|
-
strokeWidth,
|
|
946
|
-
cornerRadius
|
|
947
|
-
}
|
|
948
|
-
),
|
|
949
|
-
/* @__PURE__ */ u$1("g", { transform: `translate(0 ${textOffsetY})`, children: /* @__PURE__ */ u$1(
|
|
950
|
-
Text,
|
|
951
|
-
{
|
|
952
|
-
text,
|
|
953
|
-
fontFamily,
|
|
954
|
-
height,
|
|
955
|
-
fill: textFill,
|
|
956
|
-
onSizeUpdate: onTextSizeUpdate
|
|
957
|
-
}
|
|
958
|
-
) })
|
|
959
|
-
] });
|
|
960
|
-
}, "TextBox");
|
|
961
|
-
const LabelledRect = /* @__PURE__ */ __name(({
|
|
962
|
-
text,
|
|
963
|
-
height = 12,
|
|
964
|
-
width = 12,
|
|
965
|
-
fontFamily = "Verdana",
|
|
966
|
-
fontSize = 10,
|
|
967
|
-
padding = 3,
|
|
968
|
-
fill = "whitesmoke",
|
|
969
|
-
stroke = "lightgray",
|
|
970
|
-
textFill = "black",
|
|
971
|
-
strokeWidth = 1,
|
|
972
|
-
cornerRadius = 0,
|
|
973
|
-
onSizeUpdate
|
|
974
|
-
}) => {
|
|
975
|
-
const [actualWidth, setActualWidthUpdate] = d(width);
|
|
976
|
-
const [actualHeight, setActualHeightUpdate] = d(height);
|
|
977
|
-
_(() => {
|
|
978
|
-
const size = Utility.textSize(text, fontFamily, fontSize);
|
|
979
|
-
setActualWidthUpdate(size.width + padding * 2);
|
|
980
|
-
setActualHeightUpdate(size.height + padding * 2);
|
|
981
|
-
}, [text, fontFamily, fontSize, padding]);
|
|
982
|
-
_(() => {
|
|
983
|
-
if (onSizeUpdate) {
|
|
984
|
-
onSizeUpdate({ width: actualWidth, height: actualHeight });
|
|
985
|
-
}
|
|
986
|
-
}, [actualWidth, actualHeight, padding, onSizeUpdate]);
|
|
987
|
-
return /* @__PURE__ */ u$1(k$1, { children: [
|
|
988
|
-
/* @__PURE__ */ u$1(
|
|
989
|
-
Rectangle,
|
|
990
|
-
{
|
|
991
|
-
width,
|
|
992
|
-
height,
|
|
993
|
-
fill,
|
|
994
|
-
stroke,
|
|
995
|
-
strokeWidth,
|
|
996
|
-
cornerRadius
|
|
997
|
-
}
|
|
998
|
-
),
|
|
999
|
-
/* @__PURE__ */ u$1("g", { transform: `translate(${-(width / 2) + padding} ${-(height / 2) + padding})`, children: /* @__PURE__ */ u$1(
|
|
1000
|
-
TextLine,
|
|
1001
|
-
{
|
|
1002
|
-
text,
|
|
1003
|
-
fontFamily,
|
|
1004
|
-
height: fontSize,
|
|
1005
|
-
fill: textFill,
|
|
1006
|
-
anchor: "start",
|
|
1007
|
-
baseline: "hanging"
|
|
1008
|
-
}
|
|
1009
|
-
) })
|
|
1010
|
-
] });
|
|
1011
|
-
}, "LabelledRect");
|
|
1012
|
-
const IconLabelledRect = /* @__PURE__ */ __name(({
|
|
1013
|
-
icon,
|
|
1014
|
-
iconFontFamily,
|
|
1015
|
-
text,
|
|
1016
|
-
height = 12,
|
|
1017
|
-
width = 12,
|
|
1018
|
-
fontFamily = "Verdana",
|
|
1019
|
-
fontSize = 10,
|
|
1020
|
-
padding = 3,
|
|
1021
|
-
fill = "whitesmoke",
|
|
1022
|
-
stroke = "lightgray",
|
|
1023
|
-
textFill = "black",
|
|
1024
|
-
strokeWidth = 1,
|
|
1025
|
-
cornerRadius = 0
|
|
1026
|
-
}) => {
|
|
1027
|
-
return /* @__PURE__ */ u$1(k$1, { children: [
|
|
1028
|
-
/* @__PURE__ */ u$1(
|
|
1029
|
-
Rectangle,
|
|
1030
|
-
{
|
|
1031
|
-
width,
|
|
1032
|
-
height,
|
|
1033
|
-
fill,
|
|
1034
|
-
stroke,
|
|
1035
|
-
strokeWidth,
|
|
1036
|
-
cornerRadius
|
|
1037
|
-
}
|
|
1038
|
-
),
|
|
1039
|
-
/* @__PURE__ */ u$1("g", { transform: `translate(${-(width / 2) + padding} ${-(height / 2) + padding})`, children: /* @__PURE__ */ u$1(
|
|
1040
|
-
Icon,
|
|
1041
|
-
{
|
|
1042
|
-
shape: "square",
|
|
1043
|
-
imageFontFamily: iconFontFamily,
|
|
1044
|
-
imageChar: icon,
|
|
1045
|
-
height,
|
|
1046
|
-
fill,
|
|
1047
|
-
imageCharFill: textFill
|
|
1048
|
-
}
|
|
1049
|
-
) }),
|
|
1050
|
-
/* @__PURE__ */ u$1("g", { transform: `translate(${-(width / 2) + padding * 2 + height} ${-(height / 2) + padding})`, children: /* @__PURE__ */ u$1(
|
|
1051
|
-
TextLine,
|
|
1052
|
-
{
|
|
1053
|
-
text,
|
|
1054
|
-
fontFamily,
|
|
1055
|
-
height: fontSize,
|
|
1056
|
-
fill: textFill,
|
|
1057
|
-
anchor: "start",
|
|
1058
|
-
baseline: "hanging"
|
|
1059
|
-
}
|
|
1060
|
-
) })
|
|
1061
|
-
] });
|
|
1062
|
-
}, "IconLabelledRect");
|
|
1063
|
-
const Edge = /* @__PURE__ */ __name(({
|
|
1064
|
-
label,
|
|
1065
|
-
labelPos,
|
|
1066
|
-
labelFill = "black",
|
|
1067
|
-
labelHeight = 12,
|
|
1068
|
-
path,
|
|
1069
|
-
stroke,
|
|
1070
|
-
strokeWidth,
|
|
1071
|
-
strokeDasharray
|
|
1072
|
-
}) => {
|
|
1073
|
-
return /* @__PURE__ */ u$1(k$1, { children: [
|
|
1074
|
-
/* @__PURE__ */ u$1("path", { d: path, stroke, style: { strokeWidth, strokeDasharray } }),
|
|
1075
|
-
label && labelPos && labelPos.length === 2 ? /* @__PURE__ */ u$1("g", { transform: `translate(${labelPos[0]} ${labelPos[1]})`, children: /* @__PURE__ */ u$1(Text, { text: label, fill: labelFill, height: labelHeight }) }) : void 0
|
|
1076
|
-
] });
|
|
1077
|
-
}, "Edge");
|
|
1078
|
-
function render(C2, props, parent, replaceNode) {
|
|
1079
|
-
G$1(_$1(C2, props), parent, replaceNode);
|
|
662
|
+
|
|
663
|
+
//#endregion
|
|
664
|
+
//#region src/image.tsx
|
|
665
|
+
const Image = ({ href, x: x$1, y: y$2 = 0, height = 12 }) => {
|
|
666
|
+
return /* @__PURE__ */ u("image", {
|
|
667
|
+
xlinkHref: href,
|
|
668
|
+
x: x$1 - height / 2,
|
|
669
|
+
y: y$2 - height / 2,
|
|
670
|
+
width: height,
|
|
671
|
+
height
|
|
672
|
+
});
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
//#endregion
|
|
676
|
+
//#region src/ImageChar.tsx
|
|
677
|
+
const ImageChar = ({ x: x$1, y: y$2 = 0, height = 12, fill, stroke, fontFamily = "FontAwesome", char = "", fontWeight }) => {
|
|
678
|
+
const renderChar = T(() => {
|
|
679
|
+
return fontFamily === "FontAwesome" ? Utility.faChar(char) : char;
|
|
680
|
+
}, [char, fontFamily]);
|
|
681
|
+
return /* @__PURE__ */ u("text", {
|
|
682
|
+
x: x$1,
|
|
683
|
+
y: y$2,
|
|
684
|
+
fill,
|
|
685
|
+
stroke,
|
|
686
|
+
fontFamily,
|
|
687
|
+
fontSize: `${height}px`,
|
|
688
|
+
fontWeight,
|
|
689
|
+
dominantBaseline: "middle",
|
|
690
|
+
style: {
|
|
691
|
+
textAnchor: "middle",
|
|
692
|
+
alignmentBaseline: "middle"
|
|
693
|
+
},
|
|
694
|
+
children: renderChar
|
|
695
|
+
});
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
//#endregion
|
|
699
|
+
//#region src/shape.tsx
|
|
700
|
+
const Circle = ({ radius = 32, fill = "navy", stroke = fill, strokeWidth = 1, shapeRendering }) => /* @__PURE__ */ u("circle", {
|
|
701
|
+
r: radius,
|
|
702
|
+
fill,
|
|
703
|
+
stroke,
|
|
704
|
+
strokeWidth,
|
|
705
|
+
shapeRendering
|
|
706
|
+
});
|
|
707
|
+
const Square = ({ radius = 30, cornerRadius = 0, fill = "white", stroke, strokeWidth = 1, shapeRendering }) => /* @__PURE__ */ u("rect", {
|
|
708
|
+
x: -radius,
|
|
709
|
+
y: -radius,
|
|
710
|
+
rx: cornerRadius,
|
|
711
|
+
ry: cornerRadius,
|
|
712
|
+
width: radius * 2,
|
|
713
|
+
height: radius * 2,
|
|
714
|
+
fill,
|
|
715
|
+
stroke: stroke || fill,
|
|
716
|
+
strokeWidth,
|
|
717
|
+
shapeRendering
|
|
718
|
+
});
|
|
719
|
+
const Rectangle = ({ width = 30, height = 30, cornerRadius = 0, fill = "white", stroke = "black", strokeWidth = 1, shapeRendering }) => {
|
|
720
|
+
return /* @__PURE__ */ u("rect", {
|
|
721
|
+
x: -width / 2,
|
|
722
|
+
y: -height / 2,
|
|
723
|
+
rx: cornerRadius,
|
|
724
|
+
ry: cornerRadius,
|
|
725
|
+
width,
|
|
726
|
+
height,
|
|
727
|
+
fill,
|
|
728
|
+
stroke: stroke || fill,
|
|
729
|
+
strokeWidth,
|
|
730
|
+
shapeRendering
|
|
731
|
+
});
|
|
732
|
+
};
|
|
733
|
+
const Shape = ({ shape = "circle", height = 128, width, fill, stroke, strokeWidth = 1, shapeRendering, cornerRadius }) => {
|
|
734
|
+
switch (shape) {
|
|
735
|
+
case "square": return /* @__PURE__ */ u(Square, {
|
|
736
|
+
radius: height / 2,
|
|
737
|
+
fill,
|
|
738
|
+
stroke,
|
|
739
|
+
strokeWidth,
|
|
740
|
+
shapeRendering,
|
|
741
|
+
cornerRadius
|
|
742
|
+
});
|
|
743
|
+
case "rectangle": return /* @__PURE__ */ u(Rectangle, {
|
|
744
|
+
width: width ?? height,
|
|
745
|
+
height,
|
|
746
|
+
fill,
|
|
747
|
+
stroke,
|
|
748
|
+
strokeWidth,
|
|
749
|
+
shapeRendering,
|
|
750
|
+
cornerRadius
|
|
751
|
+
});
|
|
752
|
+
case "circle":
|
|
753
|
+
default: return /* @__PURE__ */ u(Circle, {
|
|
754
|
+
radius: height / 2,
|
|
755
|
+
fill,
|
|
756
|
+
stroke,
|
|
757
|
+
strokeWidth,
|
|
758
|
+
shapeRendering
|
|
759
|
+
});
|
|
760
|
+
}
|
|
761
|
+
};
|
|
762
|
+
|
|
763
|
+
//#endregion
|
|
764
|
+
//#region src/icon.tsx
|
|
765
|
+
const Icon = ({ shape = "circle", width, height = 32, fill, stroke, strokeWidth = 0, imageUrl = "", imageFontFamily = "FontAwesome", imageChar = "", imageCharFill = Palette.textColor(fill), padding = height / 5, xOffset = 0, yOffset = 0, cornerRadius, shapeRendering }) => {
|
|
766
|
+
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Shape, {
|
|
767
|
+
shape,
|
|
768
|
+
width,
|
|
769
|
+
height,
|
|
770
|
+
fill,
|
|
771
|
+
stroke,
|
|
772
|
+
strokeWidth,
|
|
773
|
+
shapeRendering,
|
|
774
|
+
cornerRadius
|
|
775
|
+
}), imageUrl ? /* @__PURE__ */ u(Image, {
|
|
776
|
+
href: imageUrl,
|
|
777
|
+
x: xOffset,
|
|
778
|
+
y: yOffset,
|
|
779
|
+
height: height - padding
|
|
780
|
+
}) : /* @__PURE__ */ u(ImageChar, {
|
|
781
|
+
x: xOffset,
|
|
782
|
+
y: yOffset,
|
|
783
|
+
height: height - padding,
|
|
784
|
+
fontFamily: imageFontFamily,
|
|
785
|
+
char: imageChar,
|
|
786
|
+
fill: imageCharFill,
|
|
787
|
+
fontWeight: 400
|
|
788
|
+
})] });
|
|
789
|
+
};
|
|
790
|
+
const Icons = ({ icons = [] }) => {
|
|
791
|
+
return /* @__PURE__ */ u(k, { children: icons.map((cat) => {
|
|
792
|
+
return /* @__PURE__ */ u("g", {
|
|
793
|
+
id: cat.id,
|
|
794
|
+
children: /* @__PURE__ */ u(Icon, { ...cat })
|
|
795
|
+
}, cat.id);
|
|
796
|
+
}) });
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
//#endregion
|
|
800
|
+
//#region src/text.tsx
|
|
801
|
+
const TextLine = ({ text, height = 12, anchor = "middle", baseline = "middle", fontFamily = "Verdana", fill = "black" }) => {
|
|
802
|
+
return /* @__PURE__ */ u("text", {
|
|
803
|
+
"font-family": fontFamily,
|
|
804
|
+
"font-size": `${height}px`,
|
|
805
|
+
"text-anchor": anchor,
|
|
806
|
+
"dominant-baseline": baseline,
|
|
807
|
+
fill,
|
|
808
|
+
children: text
|
|
809
|
+
});
|
|
810
|
+
};
|
|
811
|
+
const Text = ({ text, height = 12, fontFamily = "Verdana", fill = "black", onSizeUpdate }) => {
|
|
812
|
+
const [totalWidth, setTotalWidth] = d(0);
|
|
813
|
+
const [totalHeight, setTotalHeight] = d(0);
|
|
814
|
+
y(() => {
|
|
815
|
+
if (onSizeUpdate) onSizeUpdate({
|
|
816
|
+
width: totalWidth,
|
|
817
|
+
height: totalHeight
|
|
818
|
+
});
|
|
819
|
+
}, [
|
|
820
|
+
totalWidth,
|
|
821
|
+
totalHeight,
|
|
822
|
+
onSizeUpdate
|
|
823
|
+
]);
|
|
824
|
+
const parts = T(() => {
|
|
825
|
+
return text.split("\n");
|
|
826
|
+
}, [text]);
|
|
827
|
+
_$1(() => {
|
|
828
|
+
const size = Utility.textSize(parts, fontFamily, height);
|
|
829
|
+
setTotalWidth(size.width);
|
|
830
|
+
setTotalHeight(size.height);
|
|
831
|
+
}, [
|
|
832
|
+
fontFamily,
|
|
833
|
+
height,
|
|
834
|
+
parts
|
|
835
|
+
]);
|
|
836
|
+
return /* @__PURE__ */ u("g", { children: T(() => {
|
|
837
|
+
const yOffset = -(totalHeight / 2) + height / 2;
|
|
838
|
+
return parts.map((p$2, i$3) => {
|
|
839
|
+
return /* @__PURE__ */ u("g", {
|
|
840
|
+
transform: `translate(0 ${yOffset + i$3 * (height + 2)})`,
|
|
841
|
+
children: /* @__PURE__ */ u(TextLine, {
|
|
842
|
+
text: p$2,
|
|
843
|
+
height,
|
|
844
|
+
fontFamily,
|
|
845
|
+
fill
|
|
846
|
+
})
|
|
847
|
+
}, `key-${i$3}`);
|
|
848
|
+
});
|
|
849
|
+
}, [
|
|
850
|
+
parts,
|
|
851
|
+
totalHeight,
|
|
852
|
+
height,
|
|
853
|
+
fontFamily,
|
|
854
|
+
fill
|
|
855
|
+
]) });
|
|
856
|
+
};
|
|
857
|
+
const TextBox = ({ text, height = 12, fontFamily = "Verdana", padding = 4, fill = "whitesmoke", stroke = "lightgray", textFill = "black", strokeWidth = 1, cornerRadius = 0, onSizeUpdate }) => {
|
|
858
|
+
const [textWidth, setTextWidthUpdate] = d(0);
|
|
859
|
+
const [textHeight, setTextHeightUpdate] = d(0);
|
|
860
|
+
y(() => {
|
|
861
|
+
if (onSizeUpdate) onSizeUpdate({
|
|
862
|
+
width: textWidth,
|
|
863
|
+
height: textHeight
|
|
864
|
+
});
|
|
865
|
+
}, [
|
|
866
|
+
textWidth,
|
|
867
|
+
textHeight,
|
|
868
|
+
onSizeUpdate
|
|
869
|
+
]);
|
|
870
|
+
const onTextSizeUpdate = q((size) => {
|
|
871
|
+
setTextWidthUpdate(size.width);
|
|
872
|
+
setTextHeightUpdate(size.height);
|
|
873
|
+
}, []);
|
|
874
|
+
const w$2 = textWidth + padding * 2 + strokeWidth;
|
|
875
|
+
const h$2 = textHeight + padding * 2 + strokeWidth;
|
|
876
|
+
const textOffsetY = Math.floor(height / 10);
|
|
877
|
+
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Rectangle, {
|
|
878
|
+
width: w$2,
|
|
879
|
+
height: h$2,
|
|
880
|
+
fill,
|
|
881
|
+
stroke,
|
|
882
|
+
strokeWidth,
|
|
883
|
+
cornerRadius
|
|
884
|
+
}), /* @__PURE__ */ u("g", {
|
|
885
|
+
transform: `translate(0 ${textOffsetY})`,
|
|
886
|
+
children: /* @__PURE__ */ u(Text, {
|
|
887
|
+
text,
|
|
888
|
+
fontFamily,
|
|
889
|
+
height,
|
|
890
|
+
fill: textFill,
|
|
891
|
+
onSizeUpdate: onTextSizeUpdate
|
|
892
|
+
})
|
|
893
|
+
})] });
|
|
894
|
+
};
|
|
895
|
+
const LabelledRect = ({ text, height = 12, width = 12, fontFamily = "Verdana", fontSize = 10, padding = 3, fill = "whitesmoke", stroke = "lightgray", textFill = "black", strokeWidth = 1, cornerRadius = 0, onSizeUpdate }) => {
|
|
896
|
+
const [actualWidth, setActualWidthUpdate] = d(width);
|
|
897
|
+
const [actualHeight, setActualHeightUpdate] = d(height);
|
|
898
|
+
_$1(() => {
|
|
899
|
+
const size = Utility.textSize(text, fontFamily, fontSize);
|
|
900
|
+
setActualWidthUpdate(size.width + padding * 2);
|
|
901
|
+
setActualHeightUpdate(size.height + padding * 2);
|
|
902
|
+
}, [
|
|
903
|
+
text,
|
|
904
|
+
fontFamily,
|
|
905
|
+
fontSize,
|
|
906
|
+
padding
|
|
907
|
+
]);
|
|
908
|
+
_$1(() => {
|
|
909
|
+
if (onSizeUpdate) onSizeUpdate({
|
|
910
|
+
width: actualWidth,
|
|
911
|
+
height: actualHeight
|
|
912
|
+
});
|
|
913
|
+
}, [
|
|
914
|
+
actualWidth,
|
|
915
|
+
actualHeight,
|
|
916
|
+
padding,
|
|
917
|
+
onSizeUpdate
|
|
918
|
+
]);
|
|
919
|
+
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Rectangle, {
|
|
920
|
+
width,
|
|
921
|
+
height,
|
|
922
|
+
fill,
|
|
923
|
+
stroke,
|
|
924
|
+
strokeWidth,
|
|
925
|
+
cornerRadius
|
|
926
|
+
}), /* @__PURE__ */ u("g", {
|
|
927
|
+
transform: `translate(${-(width / 2) + padding} ${-(height / 2) + padding})`,
|
|
928
|
+
children: /* @__PURE__ */ u(TextLine, {
|
|
929
|
+
text,
|
|
930
|
+
fontFamily,
|
|
931
|
+
height: fontSize,
|
|
932
|
+
fill: textFill,
|
|
933
|
+
anchor: "start",
|
|
934
|
+
baseline: "hanging"
|
|
935
|
+
})
|
|
936
|
+
})] });
|
|
937
|
+
};
|
|
938
|
+
const IconLabelledRect = ({ icon, iconFontFamily, text, height = 12, width = 12, fontFamily = "Verdana", fontSize = 10, padding = 3, fill = "whitesmoke", stroke = "lightgray", textFill = "black", strokeWidth = 1, cornerRadius = 0 }) => {
|
|
939
|
+
return /* @__PURE__ */ u(k, { children: [
|
|
940
|
+
/* @__PURE__ */ u(Rectangle, {
|
|
941
|
+
width,
|
|
942
|
+
height,
|
|
943
|
+
fill,
|
|
944
|
+
stroke,
|
|
945
|
+
strokeWidth,
|
|
946
|
+
cornerRadius
|
|
947
|
+
}),
|
|
948
|
+
/* @__PURE__ */ u("g", {
|
|
949
|
+
transform: `translate(${-(width / 2) + padding} ${-(height / 2) + padding})`,
|
|
950
|
+
children: /* @__PURE__ */ u(Icon, {
|
|
951
|
+
shape: "square",
|
|
952
|
+
imageFontFamily: iconFontFamily,
|
|
953
|
+
imageChar: icon,
|
|
954
|
+
height,
|
|
955
|
+
fill,
|
|
956
|
+
imageCharFill: textFill
|
|
957
|
+
})
|
|
958
|
+
}),
|
|
959
|
+
/* @__PURE__ */ u("g", {
|
|
960
|
+
transform: `translate(${-(width / 2) + padding * 2 + height} ${-(height / 2) + padding})`,
|
|
961
|
+
children: /* @__PURE__ */ u(TextLine, {
|
|
962
|
+
text,
|
|
963
|
+
fontFamily,
|
|
964
|
+
height: fontSize,
|
|
965
|
+
fill: textFill,
|
|
966
|
+
anchor: "start",
|
|
967
|
+
baseline: "hanging"
|
|
968
|
+
})
|
|
969
|
+
})
|
|
970
|
+
] });
|
|
971
|
+
};
|
|
972
|
+
|
|
973
|
+
//#endregion
|
|
974
|
+
//#region src/edge.tsx
|
|
975
|
+
const Edge = ({ label, labelPos, labelFill = "black", labelHeight = 12, path, stroke, strokeWidth, strokeDasharray }) => {
|
|
976
|
+
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("path", {
|
|
977
|
+
d: path,
|
|
978
|
+
stroke,
|
|
979
|
+
style: {
|
|
980
|
+
strokeWidth,
|
|
981
|
+
strokeDasharray
|
|
982
|
+
}
|
|
983
|
+
}), label && labelPos && labelPos.length === 2 ? /* @__PURE__ */ u("g", {
|
|
984
|
+
transform: `translate(${labelPos[0]} ${labelPos[1]})`,
|
|
985
|
+
children: /* @__PURE__ */ u(Text, {
|
|
986
|
+
text: label,
|
|
987
|
+
fill: labelFill,
|
|
988
|
+
height: labelHeight
|
|
989
|
+
})
|
|
990
|
+
}) : void 0] });
|
|
991
|
+
};
|
|
992
|
+
|
|
993
|
+
//#endregion
|
|
994
|
+
//#region src/render.ts
|
|
995
|
+
function render(C$2, props, parent, replaceNode) {
|
|
996
|
+
G(_(C$2, props), parent, replaceNode);
|
|
1080
997
|
}
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
G$1(_$1("svg", null, _$1(C2, props)), parent, replaceNode);
|
|
998
|
+
function svgRender(C$2, props, parent, replaceNode) {
|
|
999
|
+
G(_("svg", null, _(C$2, props)), parent, replaceNode);
|
|
1084
1000
|
}
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1001
|
+
var HTMLAdapter = class extends HTMLWidget {
|
|
1002
|
+
props(_$2) {
|
|
1003
|
+
if (!arguments.length) return this._props;
|
|
1004
|
+
this._props = {
|
|
1005
|
+
...this._props,
|
|
1006
|
+
..._$2
|
|
1007
|
+
};
|
|
1008
|
+
return this;
|
|
1009
|
+
}
|
|
1010
|
+
prop(_$2, value) {
|
|
1011
|
+
if (arguments.length === 1) return this._props[_$2];
|
|
1012
|
+
this._props[_$2] = value;
|
|
1013
|
+
return this;
|
|
1014
|
+
}
|
|
1015
|
+
constructor(_component) {
|
|
1016
|
+
super();
|
|
1017
|
+
this._component = _component;
|
|
1018
|
+
}
|
|
1019
|
+
update(domNode, element) {
|
|
1020
|
+
super.update(domNode, element);
|
|
1021
|
+
render(this._component, this._props, domNode);
|
|
1022
|
+
}
|
|
1105
1023
|
};
|
|
1106
|
-
__name(_HTMLAdapter, "HTMLAdapter");
|
|
1107
|
-
let HTMLAdapter = _HTMLAdapter;
|
|
1108
1024
|
HTMLAdapter.prototype._class += " react_HTMLAdapter";
|
|
1109
1025
|
HTMLAdapter.prototype.publish("props", {}, "object", "Properties");
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1026
|
+
var SVGAdapter = class extends SVGWidget {
|
|
1027
|
+
props(_$2) {
|
|
1028
|
+
if (!arguments.length) return this._props;
|
|
1029
|
+
this._props = {
|
|
1030
|
+
...this._props,
|
|
1031
|
+
..._$2
|
|
1032
|
+
};
|
|
1033
|
+
return this;
|
|
1034
|
+
}
|
|
1035
|
+
prop(_$2, value) {
|
|
1036
|
+
if (arguments.length === 1) return this._props[_$2];
|
|
1037
|
+
this._props[_$2] = value;
|
|
1038
|
+
return this;
|
|
1039
|
+
}
|
|
1040
|
+
constructor(_component) {
|
|
1041
|
+
super();
|
|
1042
|
+
this._component = _component;
|
|
1043
|
+
}
|
|
1044
|
+
update(domNode, element) {
|
|
1045
|
+
super.update(domNode, element);
|
|
1046
|
+
render(this._component, this._props, domNode);
|
|
1047
|
+
}
|
|
1129
1048
|
};
|
|
1130
|
-
__name(_SVGAdapter, "SVGAdapter");
|
|
1131
|
-
let SVGAdapter = _SVGAdapter;
|
|
1132
1049
|
SVGAdapter.prototype._class += " react_SVGAdapter";
|
|
1133
1050
|
SVGAdapter.prototype.publish("props", {}, "object", "Properties");
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
const
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
},
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
TextBox,
|
|
1673
|
-
{
|
|
1674
|
-
fill: subText.fill || "#FFFFFF",
|
|
1675
|
-
textFill: subText.textFill || textFill,
|
|
1676
|
-
...subText,
|
|
1677
|
-
height: textHeight,
|
|
1678
|
-
padding: textPadding,
|
|
1679
|
-
strokeWidth: 0,
|
|
1680
|
-
stroke: textboxStroke,
|
|
1681
|
-
fontFamily: textFontFamily,
|
|
1682
|
-
cornerRadius
|
|
1683
|
-
}
|
|
1684
|
-
)
|
|
1685
|
-
}
|
|
1686
|
-
);
|
|
1687
|
-
return /* @__PURE__ */ u$1("g", { children: [
|
|
1688
|
-
/* @__PURE__ */ u$1(
|
|
1689
|
-
"g",
|
|
1690
|
-
{
|
|
1691
|
-
"data-click": "icon",
|
|
1692
|
-
transform: `translate(${shapeOffsetX} ${shapeOffsetY})`,
|
|
1693
|
-
children: [
|
|
1694
|
-
/* @__PURE__ */ u$1(
|
|
1695
|
-
Icon,
|
|
1696
|
-
{
|
|
1697
|
-
...icon,
|
|
1698
|
-
strokeWidth: iconBorderWidth,
|
|
1699
|
-
shape: "circle",
|
|
1700
|
-
height: iconFontSize,
|
|
1701
|
-
fill: iconBackgroundColor,
|
|
1702
|
-
stroke: iconBorderColor,
|
|
1703
|
-
imageFontFamily: iconFontFamily,
|
|
1704
|
-
imageChar: iconText,
|
|
1705
|
-
imageCharFill: iconFontColor,
|
|
1706
|
-
padding: iconPadding,
|
|
1707
|
-
xOffset: iconOffsetX,
|
|
1708
|
-
yOffset: iconOffsetY,
|
|
1709
|
-
cornerRadius,
|
|
1710
|
-
shapeRendering
|
|
1711
|
-
}
|
|
1712
|
-
),
|
|
1713
|
-
iconAnnotationArr
|
|
1714
|
-
]
|
|
1715
|
-
}
|
|
1716
|
-
),
|
|
1717
|
-
/* @__PURE__ */ u$1(
|
|
1718
|
-
"g",
|
|
1719
|
-
{
|
|
1720
|
-
transform: `translate(${-fullAnnotationWidth / 2} ${annoOffsetY})`,
|
|
1721
|
-
children: [
|
|
1722
|
-
textElement,
|
|
1723
|
-
annotationArr
|
|
1724
|
-
]
|
|
1725
|
-
}
|
|
1726
|
-
),
|
|
1727
|
-
subtextElement
|
|
1728
|
-
] });
|
|
1729
|
-
}, "Vertex4");
|
|
1730
|
-
const CentroidVertex4 = /* @__PURE__ */ __name(function({
|
|
1731
|
-
id,
|
|
1732
|
-
categoryID = "",
|
|
1733
|
-
text = "",
|
|
1734
|
-
textHeight = 12,
|
|
1735
|
-
textPadding = 10,
|
|
1736
|
-
textFill = "#287EC4",
|
|
1737
|
-
textboxFill = "white",
|
|
1738
|
-
textboxStroke = "#CCCCCC",
|
|
1739
|
-
textboxStrokeWidth = 1,
|
|
1740
|
-
textFontFamily = "Verdana",
|
|
1741
|
-
annotationGutter = 2,
|
|
1742
|
-
annotations = [],
|
|
1743
|
-
iconAnnotations = [],
|
|
1744
|
-
cornerRadius,
|
|
1745
|
-
icon = {},
|
|
1746
|
-
subText = {},
|
|
1747
|
-
showLabel = true,
|
|
1748
|
-
noLabelRadius = 5,
|
|
1749
|
-
iconBorderWidth = 1,
|
|
1750
|
-
iconBorderColor = "#333",
|
|
1751
|
-
iconBackgroundColor = "#fff",
|
|
1752
|
-
iconFontColor = "#000",
|
|
1753
|
-
iconFontSize = 20,
|
|
1754
|
-
iconFontFamily = "FontAwesome",
|
|
1755
|
-
shapeOffsetX = 0,
|
|
1756
|
-
shapeOffsetY = 0,
|
|
1757
|
-
iconOffsetX = 0,
|
|
1758
|
-
iconOffsetY = 0,
|
|
1759
|
-
iconPadding = 4,
|
|
1760
|
-
iconText = "?",
|
|
1761
|
-
shapeRendering = "auto"
|
|
1762
|
-
}) {
|
|
1763
|
-
icon = {
|
|
1764
|
-
height: 91,
|
|
1765
|
-
padding: 40,
|
|
1766
|
-
imageCharFill: "#555555",
|
|
1767
|
-
imageFontFamily: "FontAwesome",
|
|
1768
|
-
fill: "#FFCC33",
|
|
1769
|
-
stroke: "#DFDFDF",
|
|
1770
|
-
imageChar: "?",
|
|
1771
|
-
strokeWidth: 4,
|
|
1772
|
-
yOffset: -15,
|
|
1773
|
-
...icon
|
|
1774
|
-
};
|
|
1775
|
-
subText = {
|
|
1776
|
-
text: "",
|
|
1777
|
-
fill: "transparent",
|
|
1778
|
-
textFill: "#555555",
|
|
1779
|
-
...subText
|
|
1780
|
-
};
|
|
1781
|
-
const props = {
|
|
1782
|
-
id,
|
|
1783
|
-
categoryID,
|
|
1784
|
-
text,
|
|
1785
|
-
textHeight,
|
|
1786
|
-
textPadding,
|
|
1787
|
-
textFill,
|
|
1788
|
-
textboxFill,
|
|
1789
|
-
textboxStroke,
|
|
1790
|
-
textboxStrokeWidth,
|
|
1791
|
-
textFontFamily,
|
|
1792
|
-
annotationGutter,
|
|
1793
|
-
annotations,
|
|
1794
|
-
iconAnnotations,
|
|
1795
|
-
cornerRadius,
|
|
1796
|
-
icon,
|
|
1797
|
-
subText,
|
|
1798
|
-
showLabel,
|
|
1799
|
-
noLabelRadius,
|
|
1800
|
-
iconBorderWidth,
|
|
1801
|
-
iconBorderColor,
|
|
1802
|
-
iconBackgroundColor,
|
|
1803
|
-
iconFontColor,
|
|
1804
|
-
iconFontSize,
|
|
1805
|
-
iconFontFamily,
|
|
1806
|
-
shapeOffsetX,
|
|
1807
|
-
shapeOffsetY,
|
|
1808
|
-
iconOffsetX,
|
|
1809
|
-
iconOffsetY,
|
|
1810
|
-
iconPadding,
|
|
1811
|
-
iconText,
|
|
1812
|
-
shapeRendering
|
|
1813
|
-
};
|
|
1814
|
-
return /* @__PURE__ */ u$1(
|
|
1815
|
-
Vertex4,
|
|
1816
|
-
{
|
|
1817
|
-
...props,
|
|
1818
|
-
icon,
|
|
1819
|
-
subText
|
|
1820
|
-
}
|
|
1821
|
-
);
|
|
1822
|
-
}, "CentroidVertex4");
|
|
1823
|
-
const Subgraph = /* @__PURE__ */ __name(({
|
|
1824
|
-
text,
|
|
1825
|
-
width = 100,
|
|
1826
|
-
height = 100,
|
|
1827
|
-
fill = "transparent",
|
|
1828
|
-
stroke = "black",
|
|
1829
|
-
fontHeight = 12,
|
|
1830
|
-
fontFamily
|
|
1831
|
-
}) => {
|
|
1832
|
-
const tSize = Utility.textSize(text, fontFamily, fontHeight, false);
|
|
1833
|
-
return /* @__PURE__ */ u$1(k$1, { children: [
|
|
1834
|
-
/* @__PURE__ */ u$1(
|
|
1835
|
-
Rectangle,
|
|
1836
|
-
{
|
|
1837
|
-
width,
|
|
1838
|
-
height,
|
|
1839
|
-
fill,
|
|
1840
|
-
stroke
|
|
1841
|
-
}
|
|
1842
|
-
),
|
|
1843
|
-
/* @__PURE__ */ u$1(
|
|
1844
|
-
"g",
|
|
1845
|
-
{
|
|
1846
|
-
transform: `translate(${(-width + tSize.width) / 2 + 4} ${(-height + tSize.height) / 2 + 4})`,
|
|
1847
|
-
children: /* @__PURE__ */ u$1(
|
|
1848
|
-
Text,
|
|
1849
|
-
{
|
|
1850
|
-
height: fontHeight,
|
|
1851
|
-
text,
|
|
1852
|
-
fontFamily
|
|
1853
|
-
}
|
|
1854
|
-
)
|
|
1855
|
-
}
|
|
1856
|
-
)
|
|
1857
|
-
] });
|
|
1858
|
-
}, "Subgraph");
|
|
1859
|
-
export {
|
|
1860
|
-
Annotations,
|
|
1861
|
-
BUILD_VERSION,
|
|
1862
|
-
CentroidVertex3,
|
|
1863
|
-
CentroidVertex4,
|
|
1864
|
-
Circle,
|
|
1865
|
-
Edge,
|
|
1866
|
-
HTMLAdapter,
|
|
1867
|
-
Icon,
|
|
1868
|
-
IconLabelledRect,
|
|
1869
|
-
Icons,
|
|
1870
|
-
Image,
|
|
1871
|
-
ImageChar,
|
|
1872
|
-
LabelledRect,
|
|
1873
|
-
PKG_NAME,
|
|
1874
|
-
PKG_VERSION,
|
|
1875
|
-
preactShim as React,
|
|
1876
|
-
Rectangle,
|
|
1877
|
-
SVGAdapter,
|
|
1878
|
-
Shape,
|
|
1879
|
-
Span,
|
|
1880
|
-
Square,
|
|
1881
|
-
Subgraph,
|
|
1882
|
-
Text,
|
|
1883
|
-
TextBox,
|
|
1884
|
-
TextLine,
|
|
1885
|
-
Vertex,
|
|
1886
|
-
Vertex2,
|
|
1887
|
-
Vertex3,
|
|
1888
|
-
Vertex4,
|
|
1889
|
-
render,
|
|
1890
|
-
svgRender
|
|
1051
|
+
|
|
1052
|
+
//#endregion
|
|
1053
|
+
//#region src/span.tsx
|
|
1054
|
+
const Span = ({ text }) => /* @__PURE__ */ u("span", { children: text });
|
|
1055
|
+
|
|
1056
|
+
//#endregion
|
|
1057
|
+
//#region src/vertex.tsx
|
|
1058
|
+
const Annotations = ({ x: x$1, y: y$2, annotationIDs = [], stepSize = -16 }) => {
|
|
1059
|
+
return /* @__PURE__ */ u(k, { children: annotationIDs.map((id, i$3) => /* @__PURE__ */ u("g", {
|
|
1060
|
+
transform: `translate(${x$1 + i$3 * stepSize} ${y$2})`,
|
|
1061
|
+
children: /* @__PURE__ */ u("use", { xlinkHref: "#" + id })
|
|
1062
|
+
}, id)) });
|
|
1063
|
+
};
|
|
1064
|
+
const Vertex = ({ categoryID = "", text = "", textHeight = 12, textPadding = 4, icon = {}, annotationsHeight = 12, annotationIDs = [], textFill, textboxFill, textboxStroke, textFontFamily, onSizeUpdate, showLabel = true, scale = 1 }) => {
|
|
1065
|
+
icon = {
|
|
1066
|
+
imageChar: "fa-question",
|
|
1067
|
+
height: 32,
|
|
1068
|
+
fill: "transparent",
|
|
1069
|
+
...icon
|
|
1070
|
+
};
|
|
1071
|
+
const [textBoxWidth, setTextBoxWidthUpdate] = d(0);
|
|
1072
|
+
const [textBoxHeight, setTextBoxHeightUpdate] = d(0);
|
|
1073
|
+
y(() => {
|
|
1074
|
+
if (onSizeUpdate) onSizeUpdate({
|
|
1075
|
+
width: 0,
|
|
1076
|
+
height: 0
|
|
1077
|
+
});
|
|
1078
|
+
}, [
|
|
1079
|
+
textBoxWidth,
|
|
1080
|
+
textBoxHeight,
|
|
1081
|
+
onSizeUpdate
|
|
1082
|
+
]);
|
|
1083
|
+
let width = textBoxWidth;
|
|
1084
|
+
width += 4;
|
|
1085
|
+
let offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
|
|
1086
|
+
const textboxOffsetY = icon.height / 3 + textBoxHeight / 2 + textPadding;
|
|
1087
|
+
let annotationOffsetY = icon.height / 3 + textBoxHeight + textPadding + annotationsHeight / 3;
|
|
1088
|
+
if (!showLabel) {
|
|
1089
|
+
offsetY += (textHeight + 8) / 2;
|
|
1090
|
+
annotationOffsetY -= textBoxHeight + textPadding;
|
|
1091
|
+
}
|
|
1092
|
+
const onTextBoxSizeUpdate = q((size) => {
|
|
1093
|
+
setTextBoxWidthUpdate(size.width);
|
|
1094
|
+
setTextBoxHeightUpdate(size.height);
|
|
1095
|
+
}, []);
|
|
1096
|
+
const label = showLabel ? /* @__PURE__ */ u("g", {
|
|
1097
|
+
transform: `translate(0 ${textboxOffsetY})`,
|
|
1098
|
+
children: /* @__PURE__ */ u(TextBox, {
|
|
1099
|
+
text,
|
|
1100
|
+
height: textHeight,
|
|
1101
|
+
padding: textPadding,
|
|
1102
|
+
onSizeUpdate: onTextBoxSizeUpdate,
|
|
1103
|
+
textFill,
|
|
1104
|
+
fill: textboxFill,
|
|
1105
|
+
stroke: textboxStroke,
|
|
1106
|
+
fontFamily: textFontFamily
|
|
1107
|
+
})
|
|
1108
|
+
}) : void 0;
|
|
1109
|
+
return categoryID ? /* @__PURE__ */ u("g", {
|
|
1110
|
+
transform: `translate(0 ${offsetY}) scale(${scale})`,
|
|
1111
|
+
children: [
|
|
1112
|
+
/* @__PURE__ */ u("use", { xlinkHref: "#" + categoryID }),
|
|
1113
|
+
label,
|
|
1114
|
+
/* @__PURE__ */ u(Annotations, {
|
|
1115
|
+
x: width / 2,
|
|
1116
|
+
y: annotationOffsetY,
|
|
1117
|
+
annotationIDs
|
|
1118
|
+
})
|
|
1119
|
+
]
|
|
1120
|
+
}) : /* @__PURE__ */ u("g", {
|
|
1121
|
+
transform: `translate(0 ${offsetY}) scale(${scale})`,
|
|
1122
|
+
children: [/* @__PURE__ */ u(Icon, { ...icon }), label]
|
|
1123
|
+
});
|
|
1124
|
+
};
|
|
1125
|
+
|
|
1126
|
+
//#endregion
|
|
1127
|
+
//#region src/vertex2.tsx
|
|
1128
|
+
const Vertex2 = ({ categoryID = "", text = "", textHeight = 12, textPadding = 4, icon = {}, textFill = "black", textboxFill = "white", textboxStroke = "black", textFontFamily, annotationsHeight = 12, annotationIDs = [] }) => {
|
|
1129
|
+
icon = {
|
|
1130
|
+
imageChar: "fa-question",
|
|
1131
|
+
imageCharFill: "white",
|
|
1132
|
+
height: 32,
|
|
1133
|
+
fill: "black",
|
|
1134
|
+
shape: "square",
|
|
1135
|
+
...icon
|
|
1136
|
+
};
|
|
1137
|
+
const textBoxHeight = textHeight + textPadding * 2;
|
|
1138
|
+
const { width } = T(() => {
|
|
1139
|
+
return Utility.textSize(text, textFontFamily, textHeight, false);
|
|
1140
|
+
}, [
|
|
1141
|
+
text,
|
|
1142
|
+
textFontFamily,
|
|
1143
|
+
textHeight
|
|
1144
|
+
]);
|
|
1145
|
+
const stepSize = annotationsHeight;
|
|
1146
|
+
const textboxStrokeWidth = 1;
|
|
1147
|
+
const halfTextboxHeight = textBoxHeight / 2;
|
|
1148
|
+
const offsetX = 0;
|
|
1149
|
+
const offsetY = -(icon.height * 2 / 6 + textHeight + 8) / 2;
|
|
1150
|
+
const iconOffsetX = -icon.height / 2;
|
|
1151
|
+
const iconOffsetY = 0;
|
|
1152
|
+
const textboxOffsetX = Math.ceil(width / 2 + textPadding);
|
|
1153
|
+
const textboxOffsetY = halfTextboxHeight - icon.height / 2;
|
|
1154
|
+
const annotationOffsetX = stepSize / 2;
|
|
1155
|
+
const annotationOffsetY = halfTextboxHeight;
|
|
1156
|
+
return categoryID ? /* @__PURE__ */ u("g", {
|
|
1157
|
+
transform: `translate(${offsetX} ${offsetY})`,
|
|
1158
|
+
children: [
|
|
1159
|
+
/* @__PURE__ */ u("g", {
|
|
1160
|
+
transform: `translate(${iconOffsetX} ${iconOffsetY})`,
|
|
1161
|
+
children: /* @__PURE__ */ u("use", { xlinkHref: "#" + categoryID })
|
|
1162
|
+
}),
|
|
1163
|
+
/* @__PURE__ */ u("g", {
|
|
1164
|
+
transform: `translate(${textboxOffsetX} ${textboxOffsetY})`,
|
|
1165
|
+
children: /* @__PURE__ */ u(TextBox, {
|
|
1166
|
+
text,
|
|
1167
|
+
height: textHeight,
|
|
1168
|
+
padding: textPadding,
|
|
1169
|
+
strokeWidth: textboxStrokeWidth,
|
|
1170
|
+
stroke: textboxStroke,
|
|
1171
|
+
fill: textboxFill,
|
|
1172
|
+
textFill,
|
|
1173
|
+
fontFamily: textFontFamily
|
|
1174
|
+
})
|
|
1175
|
+
}),
|
|
1176
|
+
/* @__PURE__ */ u(Annotations, {
|
|
1177
|
+
x: annotationOffsetX,
|
|
1178
|
+
y: annotationOffsetY,
|
|
1179
|
+
annotationIDs,
|
|
1180
|
+
stepSize
|
|
1181
|
+
})
|
|
1182
|
+
]
|
|
1183
|
+
}) : /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("g", {
|
|
1184
|
+
transform: `translate(${iconOffsetX} ${iconOffsetY})scale(1.0002)`,
|
|
1185
|
+
children: /* @__PURE__ */ u(Icon, {
|
|
1186
|
+
...icon,
|
|
1187
|
+
shape: "square"
|
|
1188
|
+
})
|
|
1189
|
+
}), /* @__PURE__ */ u("g", {
|
|
1190
|
+
transform: `translate(${textboxOffsetX} ${textboxOffsetY})scale(1.0002)`,
|
|
1191
|
+
children: /* @__PURE__ */ u(TextBox, {
|
|
1192
|
+
text,
|
|
1193
|
+
height: textHeight,
|
|
1194
|
+
padding: textPadding,
|
|
1195
|
+
stroke: textboxStroke,
|
|
1196
|
+
fill: textboxFill
|
|
1197
|
+
})
|
|
1198
|
+
})] });
|
|
1199
|
+
};
|
|
1200
|
+
|
|
1201
|
+
//#endregion
|
|
1202
|
+
//#region src/vertex3.tsx
|
|
1203
|
+
const Vertex3 = ({ text = "", textHeight = 10, textPadding = 4, textFill = "#287EC4", textboxFill = "white", textboxStroke = "#CCCCCC", textboxStrokeWidth = 1, textFontFamily = "Verdana", annotationGutter = 2, annotations = [], cornerRadius = 3, icon = {}, subText = { text: "" }, showLabel = true, noLabelRadius = 5, expansionIcon, scale = 1 }) => {
|
|
1204
|
+
icon = {
|
|
1205
|
+
height: 50,
|
|
1206
|
+
imageChar: "?",
|
|
1207
|
+
imageFontFamily: "FontAwesome",
|
|
1208
|
+
imageCharFill: "#555555",
|
|
1209
|
+
fill: "transparent",
|
|
1210
|
+
strokeWidth: 0,
|
|
1211
|
+
...icon
|
|
1212
|
+
};
|
|
1213
|
+
subText = {
|
|
1214
|
+
text: "",
|
|
1215
|
+
fill: "white",
|
|
1216
|
+
textFill: "#555555",
|
|
1217
|
+
...subText
|
|
1218
|
+
};
|
|
1219
|
+
expansionIcon = expansionIcon ? {
|
|
1220
|
+
height: 16,
|
|
1221
|
+
shape: "circle",
|
|
1222
|
+
padding: 6,
|
|
1223
|
+
imageChar: "?",
|
|
1224
|
+
imageFontFamily: "FontAwesome",
|
|
1225
|
+
imageCharFill: "black",
|
|
1226
|
+
fill: "whitesmoke",
|
|
1227
|
+
stroke: "whitesmoke",
|
|
1228
|
+
strokeWidth: 0,
|
|
1229
|
+
...expansionIcon
|
|
1230
|
+
} : void 0;
|
|
1231
|
+
let fullAnnotationWidth = 0;
|
|
1232
|
+
const annoOffsetY = 0;
|
|
1233
|
+
const labelWidth = T(() => {
|
|
1234
|
+
return Utility.textSize(text, textFontFamily, textHeight, false).width;
|
|
1235
|
+
}, [
|
|
1236
|
+
text,
|
|
1237
|
+
textFontFamily,
|
|
1238
|
+
textHeight
|
|
1239
|
+
]);
|
|
1240
|
+
let labelShapeWidth = 0;
|
|
1241
|
+
if (text !== "") labelShapeWidth = labelWidth + textPadding * 2 + textboxStrokeWidth * 2;
|
|
1242
|
+
fullAnnotationWidth += labelShapeWidth + annotationGutter;
|
|
1243
|
+
const textOffsetX = fullAnnotationWidth - labelShapeWidth / 2;
|
|
1244
|
+
const textShapeHeight = textHeight + textPadding * 2 + textboxStrokeWidth * 2;
|
|
1245
|
+
const annotationArr = [];
|
|
1246
|
+
annotations.forEach((anno, idx) => {
|
|
1247
|
+
const annoText = anno.imageChar;
|
|
1248
|
+
const annoShapeWidth = textShapeHeight;
|
|
1249
|
+
fullAnnotationWidth += annoShapeWidth + annotationGutter;
|
|
1250
|
+
const annoOffsetX = fullAnnotationWidth - annoShapeWidth / 2;
|
|
1251
|
+
annotationArr.push(/* @__PURE__ */ u("g", {
|
|
1252
|
+
className: "vertex3-anno",
|
|
1253
|
+
"data-click": "annotation",
|
|
1254
|
+
"data-click-data": JSON.stringify(anno),
|
|
1255
|
+
transform: `translate(${annoOffsetX} ${annoOffsetY})`,
|
|
1256
|
+
children: /* @__PURE__ */ u(Icon, {
|
|
1257
|
+
...anno,
|
|
1258
|
+
shape: "square",
|
|
1259
|
+
height: textShapeHeight,
|
|
1260
|
+
imageChar: annoText,
|
|
1261
|
+
imageFontFamily: anno.imageFontFamily,
|
|
1262
|
+
cornerRadius,
|
|
1263
|
+
strokeWidth: 0
|
|
1264
|
+
})
|
|
1265
|
+
}, idx));
|
|
1266
|
+
});
|
|
1267
|
+
if (annotations.length > 0) fullAnnotationWidth += annotationGutter * (annotations.length - 1);
|
|
1268
|
+
const textElement = /* @__PURE__ */ u("g", {
|
|
1269
|
+
"data-click": "text",
|
|
1270
|
+
transform: `translate(${textOffsetX} ${annoOffsetY})`,
|
|
1271
|
+
children: !showLabel || text === "" ? /* @__PURE__ */ u("circle", {
|
|
1272
|
+
r: noLabelRadius,
|
|
1273
|
+
stroke: textboxStroke,
|
|
1274
|
+
fill: textFill
|
|
1275
|
+
}) : /* @__PURE__ */ u(TextBox, {
|
|
1276
|
+
text,
|
|
1277
|
+
height: textHeight,
|
|
1278
|
+
padding: textPadding,
|
|
1279
|
+
strokeWidth: textboxStrokeWidth,
|
|
1280
|
+
stroke: textboxStroke,
|
|
1281
|
+
fill: textboxFill,
|
|
1282
|
+
textFill,
|
|
1283
|
+
fontFamily: textFontFamily,
|
|
1284
|
+
cornerRadius
|
|
1285
|
+
})
|
|
1286
|
+
});
|
|
1287
|
+
const iconHeight = icon.height || 20;
|
|
1288
|
+
const iconStrokeWidth = icon.strokeWidth || 0;
|
|
1289
|
+
const iconOffsetX = 0;
|
|
1290
|
+
let iconOffsetY = 0;
|
|
1291
|
+
const subTextOffsetX = 0;
|
|
1292
|
+
let subTextOffsetY = textShapeHeight + annotationGutter * 2;
|
|
1293
|
+
if (text !== "" || annotationArr.length > 0) iconOffsetY = -(iconHeight / 2) - iconStrokeWidth - textShapeHeight / 2 - annotationGutter * 2;
|
|
1294
|
+
else if (subText.text !== "") subTextOffsetY = iconHeight / 2 + iconStrokeWidth + annotationGutter * 2;
|
|
1295
|
+
const subtextElement = subText.text === "" ? null : /* @__PURE__ */ u("g", {
|
|
1296
|
+
"data-click": "subtext",
|
|
1297
|
+
transform: `translate(${subTextOffsetX} ${subTextOffsetY})`,
|
|
1298
|
+
children: /* @__PURE__ */ u(TextBox, {
|
|
1299
|
+
fill: subText.fill || "#FFFFFF",
|
|
1300
|
+
textFill: subText.textFill || textFill,
|
|
1301
|
+
...subText,
|
|
1302
|
+
height: textHeight,
|
|
1303
|
+
padding: textPadding,
|
|
1304
|
+
strokeWidth: 0,
|
|
1305
|
+
stroke: textboxStroke,
|
|
1306
|
+
fontFamily: textFontFamily,
|
|
1307
|
+
cornerRadius
|
|
1308
|
+
})
|
|
1309
|
+
});
|
|
1310
|
+
return /* @__PURE__ */ u("g", {
|
|
1311
|
+
transform: `scale(${scale})`,
|
|
1312
|
+
children: [
|
|
1313
|
+
/* @__PURE__ */ u("g", {
|
|
1314
|
+
"data-click": "icon",
|
|
1315
|
+
transform: `translate(${iconOffsetX} ${iconOffsetY})`,
|
|
1316
|
+
children: [/* @__PURE__ */ u(Icon, { ...icon }), expansionIcon && /* @__PURE__ */ u("g", {
|
|
1317
|
+
"data-click": "expanded-icon",
|
|
1318
|
+
"data-click-data": JSON.stringify(expansionIcon),
|
|
1319
|
+
transform: `translate(${(icon.height + iconStrokeWidth) / 2 - expansionIcon.height / 2} ${-(icon.height + iconStrokeWidth) / 2 + expansionIcon.height / 2})`,
|
|
1320
|
+
children: /* @__PURE__ */ u(Icon, { ...expansionIcon })
|
|
1321
|
+
})]
|
|
1322
|
+
}),
|
|
1323
|
+
/* @__PURE__ */ u("g", {
|
|
1324
|
+
transform: `translate(${-fullAnnotationWidth / 2} ${annoOffsetY})`,
|
|
1325
|
+
children: [textElement, annotationArr]
|
|
1326
|
+
}),
|
|
1327
|
+
subtextElement
|
|
1328
|
+
]
|
|
1329
|
+
});
|
|
1330
|
+
};
|
|
1331
|
+
const CentroidVertex3 = function({ id, categoryID = "", text = "", textHeight = 12, textPadding = 10, textFill = "#287EC4", textboxFill = "white", textboxStroke = "#CCCCCC", textboxStrokeWidth = 1, textFontFamily = "Verdana", annotationGutter = 2, annotations = [], cornerRadius, icon = {}, subText = {}, expansionIcon, scale = 1 }) {
|
|
1332
|
+
icon = {
|
|
1333
|
+
height: 91,
|
|
1334
|
+
padding: 40,
|
|
1335
|
+
imageCharFill: "#555555",
|
|
1336
|
+
imageFontFamily: "FontAwesome",
|
|
1337
|
+
fill: "#FFCC33",
|
|
1338
|
+
stroke: "#DFDFDF",
|
|
1339
|
+
imageChar: "?",
|
|
1340
|
+
strokeWidth: 4,
|
|
1341
|
+
yOffset: -15,
|
|
1342
|
+
...icon
|
|
1343
|
+
};
|
|
1344
|
+
subText = {
|
|
1345
|
+
text: "",
|
|
1346
|
+
fill: "transparent",
|
|
1347
|
+
textFill: "#555555",
|
|
1348
|
+
...subText
|
|
1349
|
+
};
|
|
1350
|
+
return /* @__PURE__ */ u(Vertex3, {
|
|
1351
|
+
id,
|
|
1352
|
+
categoryID,
|
|
1353
|
+
text,
|
|
1354
|
+
textHeight,
|
|
1355
|
+
textPadding,
|
|
1356
|
+
textFill,
|
|
1357
|
+
textboxFill,
|
|
1358
|
+
textboxStroke,
|
|
1359
|
+
textboxStrokeWidth,
|
|
1360
|
+
textFontFamily,
|
|
1361
|
+
annotationGutter,
|
|
1362
|
+
annotations,
|
|
1363
|
+
cornerRadius,
|
|
1364
|
+
icon,
|
|
1365
|
+
subText,
|
|
1366
|
+
expansionIcon,
|
|
1367
|
+
scale,
|
|
1368
|
+
icon,
|
|
1369
|
+
subText
|
|
1370
|
+
});
|
|
1371
|
+
};
|
|
1372
|
+
|
|
1373
|
+
//#endregion
|
|
1374
|
+
//#region src/vertex4.tsx
|
|
1375
|
+
const Vertex4 = ({ categoryID = "", text = "", textHeight = 10, textPadding = 4, textFill = "#287EC4", textboxFill = "white", textboxStroke = "#CCCCCC", textboxStrokeWidth = 1, textFontFamily = "Verdana", annotationGutter = 2, annotations = [], iconAnnotations = [], cornerRadius = 3, icon = {}, subText = {}, showLabel = true, noLabelRadius = 5, iconBorderWidth = 1, iconBorderColor = "#333", iconBackgroundColor = "#fff", iconFontColor = "#000", iconFontSize = 20, iconFontFamily = "FontAwesome", shapeOffsetX = 0, shapeOffsetY = 0, iconOffsetX = 0, iconOffsetY = 0, iconPadding = 4, iconText = "?", shapeRendering = "auto" }) => {
|
|
1376
|
+
icon = {
|
|
1377
|
+
height: 50,
|
|
1378
|
+
imageChar: "?",
|
|
1379
|
+
imageFontFamily: "FontAwesome",
|
|
1380
|
+
imageCharFill: "#555555",
|
|
1381
|
+
fill: "transparent",
|
|
1382
|
+
strokeWidth: 0,
|
|
1383
|
+
...icon
|
|
1384
|
+
};
|
|
1385
|
+
subText = {
|
|
1386
|
+
text: "",
|
|
1387
|
+
fill: "white",
|
|
1388
|
+
textFill: "#555555",
|
|
1389
|
+
...subText
|
|
1390
|
+
};
|
|
1391
|
+
const annoOffsetY = 0;
|
|
1392
|
+
const labelWidth = T(() => {
|
|
1393
|
+
return Utility.textSize(text, textFontFamily, textHeight, false).width;
|
|
1394
|
+
}, [
|
|
1395
|
+
text,
|
|
1396
|
+
textFontFamily,
|
|
1397
|
+
textHeight
|
|
1398
|
+
]);
|
|
1399
|
+
let labelShapeWidth = 0;
|
|
1400
|
+
if (text !== "") labelShapeWidth = labelWidth + textPadding * 2 + textboxStrokeWidth * 2;
|
|
1401
|
+
let fullAnnotationWidth = labelShapeWidth + annotationGutter;
|
|
1402
|
+
const textOffsetX = fullAnnotationWidth - labelShapeWidth / 2;
|
|
1403
|
+
const textShapeHeight = textHeight + annotationGutter * 2 + textboxStrokeWidth * 2;
|
|
1404
|
+
const annoWidthArr = annotations.map((anno) => {
|
|
1405
|
+
return Utility.textSize(anno.imageChar, anno.imageFontFamily, anno.height, false).width;
|
|
1406
|
+
});
|
|
1407
|
+
const annotationArr = [];
|
|
1408
|
+
let _labelAnnoOffsetX = fullAnnotationWidth;
|
|
1409
|
+
annotations.forEach((anno, i$3) => {
|
|
1410
|
+
const annoText = anno.imageChar;
|
|
1411
|
+
const annoTextHeight = anno.height ?? textShapeHeight;
|
|
1412
|
+
_labelAnnoOffsetX += annoWidthArr[i$3] + annotationGutter;
|
|
1413
|
+
const annoOffsetX = _labelAnnoOffsetX - annoWidthArr[i$3] / 2;
|
|
1414
|
+
annotationArr.push(/* @__PURE__ */ u("g", {
|
|
1415
|
+
className: "vertex3-anno",
|
|
1416
|
+
"data-click": "annotation",
|
|
1417
|
+
"data-click-data": JSON.stringify(anno),
|
|
1418
|
+
transform: `translate(${annoOffsetX} ${annoOffsetY})`,
|
|
1419
|
+
children: /* @__PURE__ */ u(Icon, {
|
|
1420
|
+
...anno,
|
|
1421
|
+
shape: "rectangle",
|
|
1422
|
+
width: annoWidthArr[i$3],
|
|
1423
|
+
height: annoTextHeight,
|
|
1424
|
+
imageChar: annoText,
|
|
1425
|
+
imageFontFamily: anno.imageFontFamily,
|
|
1426
|
+
cornerRadius,
|
|
1427
|
+
strokeWidth: 0
|
|
1428
|
+
})
|
|
1429
|
+
}, i$3));
|
|
1430
|
+
});
|
|
1431
|
+
if (annotations.length > 0) fullAnnotationWidth += annotationGutter * (annotations.length - 1);
|
|
1432
|
+
const iconAnnotationArr = [];
|
|
1433
|
+
iconAnnotations.forEach((anno, i$3) => {
|
|
1434
|
+
const x$1 = anno.shapeOffsetX;
|
|
1435
|
+
const y$2 = anno.shapeOffsetY;
|
|
1436
|
+
iconAnnotationArr.push(/* @__PURE__ */ u("g", {
|
|
1437
|
+
className: "vertex3-iconAnno",
|
|
1438
|
+
"data-click": "icon-annotation",
|
|
1439
|
+
"data-click-data": JSON.stringify(anno),
|
|
1440
|
+
transform: `translate(${x$1} ${y$2})`,
|
|
1441
|
+
children: /* @__PURE__ */ u(Icon, {
|
|
1442
|
+
...anno,
|
|
1443
|
+
shape: anno.shape ?? "square",
|
|
1444
|
+
imageChar: anno.imageChar,
|
|
1445
|
+
imageFontFamily: anno.imageFontFamily,
|
|
1446
|
+
cornerRadius,
|
|
1447
|
+
stroke: anno.stroke,
|
|
1448
|
+
strokeWidth: anno.strokeWidth
|
|
1449
|
+
})
|
|
1450
|
+
}, i$3));
|
|
1451
|
+
});
|
|
1452
|
+
const textElement = /* @__PURE__ */ u("g", {
|
|
1453
|
+
"data-click": "text",
|
|
1454
|
+
transform: `translate(${textOffsetX} ${annoOffsetY})`,
|
|
1455
|
+
children: !showLabel || text === "" ? /* @__PURE__ */ u("circle", {
|
|
1456
|
+
r: noLabelRadius,
|
|
1457
|
+
stroke: textboxStroke,
|
|
1458
|
+
fill: textFill
|
|
1459
|
+
}) : /* @__PURE__ */ u(TextBox, {
|
|
1460
|
+
text,
|
|
1461
|
+
height: textHeight,
|
|
1462
|
+
padding: textPadding,
|
|
1463
|
+
strokeWidth: textboxStrokeWidth,
|
|
1464
|
+
stroke: textboxStroke,
|
|
1465
|
+
fill: textboxFill,
|
|
1466
|
+
textFill,
|
|
1467
|
+
fontFamily: textFontFamily,
|
|
1468
|
+
cornerRadius
|
|
1469
|
+
})
|
|
1470
|
+
});
|
|
1471
|
+
const subTextOffsetX = 0;
|
|
1472
|
+
const subTextOffsetY = textShapeHeight + annotationGutter * 2;
|
|
1473
|
+
const subtextElement = subText.text === "" ? null : /* @__PURE__ */ u("g", {
|
|
1474
|
+
"data-click": "subtext",
|
|
1475
|
+
transform: `translate(${subTextOffsetX} ${subTextOffsetY})`,
|
|
1476
|
+
children: /* @__PURE__ */ u(TextBox, {
|
|
1477
|
+
fill: subText.fill || "#FFFFFF",
|
|
1478
|
+
textFill: subText.textFill || textFill,
|
|
1479
|
+
...subText,
|
|
1480
|
+
height: textHeight,
|
|
1481
|
+
padding: textPadding,
|
|
1482
|
+
strokeWidth: 0,
|
|
1483
|
+
stroke: textboxStroke,
|
|
1484
|
+
fontFamily: textFontFamily,
|
|
1485
|
+
cornerRadius
|
|
1486
|
+
})
|
|
1487
|
+
});
|
|
1488
|
+
return /* @__PURE__ */ u("g", { children: [
|
|
1489
|
+
/* @__PURE__ */ u("g", {
|
|
1490
|
+
"data-click": "icon",
|
|
1491
|
+
transform: `translate(${shapeOffsetX} ${shapeOffsetY})`,
|
|
1492
|
+
children: [/* @__PURE__ */ u(Icon, {
|
|
1493
|
+
...icon,
|
|
1494
|
+
strokeWidth: iconBorderWidth,
|
|
1495
|
+
shape: "circle",
|
|
1496
|
+
height: iconFontSize,
|
|
1497
|
+
fill: iconBackgroundColor,
|
|
1498
|
+
stroke: iconBorderColor,
|
|
1499
|
+
imageFontFamily: iconFontFamily,
|
|
1500
|
+
imageChar: iconText,
|
|
1501
|
+
imageCharFill: iconFontColor,
|
|
1502
|
+
padding: iconPadding,
|
|
1503
|
+
xOffset: iconOffsetX,
|
|
1504
|
+
yOffset: iconOffsetY,
|
|
1505
|
+
cornerRadius,
|
|
1506
|
+
shapeRendering
|
|
1507
|
+
}), iconAnnotationArr]
|
|
1508
|
+
}),
|
|
1509
|
+
/* @__PURE__ */ u("g", {
|
|
1510
|
+
transform: `translate(${-fullAnnotationWidth / 2} ${annoOffsetY})`,
|
|
1511
|
+
children: [textElement, annotationArr]
|
|
1512
|
+
}),
|
|
1513
|
+
subtextElement
|
|
1514
|
+
] });
|
|
1515
|
+
};
|
|
1516
|
+
const CentroidVertex4 = function({ id, categoryID = "", text = "", textHeight = 12, textPadding = 10, textFill = "#287EC4", textboxFill = "white", textboxStroke = "#CCCCCC", textboxStrokeWidth = 1, textFontFamily = "Verdana", annotationGutter = 2, annotations = [], iconAnnotations = [], cornerRadius, icon = {}, subText = {}, showLabel = true, noLabelRadius = 5, iconBorderWidth = 1, iconBorderColor = "#333", iconBackgroundColor = "#fff", iconFontColor = "#000", iconFontSize = 20, iconFontFamily = "FontAwesome", shapeOffsetX = 0, shapeOffsetY = 0, iconOffsetX = 0, iconOffsetY = 0, iconPadding = 4, iconText = "?", shapeRendering = "auto" }) {
|
|
1517
|
+
icon = {
|
|
1518
|
+
height: 91,
|
|
1519
|
+
padding: 40,
|
|
1520
|
+
imageCharFill: "#555555",
|
|
1521
|
+
imageFontFamily: "FontAwesome",
|
|
1522
|
+
fill: "#FFCC33",
|
|
1523
|
+
stroke: "#DFDFDF",
|
|
1524
|
+
imageChar: "?",
|
|
1525
|
+
strokeWidth: 4,
|
|
1526
|
+
yOffset: -15,
|
|
1527
|
+
...icon
|
|
1528
|
+
};
|
|
1529
|
+
subText = {
|
|
1530
|
+
text: "",
|
|
1531
|
+
fill: "transparent",
|
|
1532
|
+
textFill: "#555555",
|
|
1533
|
+
...subText
|
|
1534
|
+
};
|
|
1535
|
+
return /* @__PURE__ */ u(Vertex4, {
|
|
1536
|
+
id,
|
|
1537
|
+
categoryID,
|
|
1538
|
+
text,
|
|
1539
|
+
textHeight,
|
|
1540
|
+
textPadding,
|
|
1541
|
+
textFill,
|
|
1542
|
+
textboxFill,
|
|
1543
|
+
textboxStroke,
|
|
1544
|
+
textboxStrokeWidth,
|
|
1545
|
+
textFontFamily,
|
|
1546
|
+
annotationGutter,
|
|
1547
|
+
annotations,
|
|
1548
|
+
iconAnnotations,
|
|
1549
|
+
cornerRadius,
|
|
1550
|
+
icon,
|
|
1551
|
+
subText,
|
|
1552
|
+
showLabel,
|
|
1553
|
+
noLabelRadius,
|
|
1554
|
+
iconBorderWidth,
|
|
1555
|
+
iconBorderColor,
|
|
1556
|
+
iconBackgroundColor,
|
|
1557
|
+
iconFontColor,
|
|
1558
|
+
iconFontSize,
|
|
1559
|
+
iconFontFamily,
|
|
1560
|
+
shapeOffsetX,
|
|
1561
|
+
shapeOffsetY,
|
|
1562
|
+
iconOffsetX,
|
|
1563
|
+
iconOffsetY,
|
|
1564
|
+
iconPadding,
|
|
1565
|
+
iconText,
|
|
1566
|
+
shapeRendering,
|
|
1567
|
+
icon,
|
|
1568
|
+
subText
|
|
1569
|
+
});
|
|
1570
|
+
};
|
|
1571
|
+
|
|
1572
|
+
//#endregion
|
|
1573
|
+
//#region src/subgraph.tsx
|
|
1574
|
+
const Subgraph = ({ text, width = 100, height = 100, fill = "transparent", stroke = "black", fontHeight = 12, fontFamily }) => {
|
|
1575
|
+
const tSize = Utility.textSize(text, fontFamily, fontHeight, false);
|
|
1576
|
+
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Rectangle, {
|
|
1577
|
+
width,
|
|
1578
|
+
height,
|
|
1579
|
+
fill,
|
|
1580
|
+
stroke
|
|
1581
|
+
}), /* @__PURE__ */ u("g", {
|
|
1582
|
+
transform: `translate(${(-width + tSize.width) / 2 + 4} ${(-height + tSize.height) / 2 + 4})`,
|
|
1583
|
+
children: /* @__PURE__ */ u(Text, {
|
|
1584
|
+
height: fontHeight,
|
|
1585
|
+
text,
|
|
1586
|
+
fontFamily
|
|
1587
|
+
})
|
|
1588
|
+
})] });
|
|
1891
1589
|
};
|
|
1892
|
-
|
|
1590
|
+
|
|
1591
|
+
//#endregion
|
|
1592
|
+
export { Annotations, BUILD_VERSION, CentroidVertex3, CentroidVertex4, Circle, Edge, HTMLAdapter, Icon, IconLabelledRect, Icons, Image, ImageChar, LabelledRect, PKG_NAME, PKG_VERSION, preact_shim_exports as React, Rectangle, SVGAdapter, Shape, Span, Square, Subgraph, Text, TextBox, TextLine, Vertex, Vertex2, Vertex3, Vertex4, render, svgRender };
|
|
1593
|
+
//# sourceMappingURL=index.js.map
|