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