@linkurious/ogma-linkurious-parser 4.2.1 → 4.2.3
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +716 -812
- package/dist/index.mjs.map +1 -1
- package/dist/ogma/features/nodeGrouping.d.ts +2 -29
- package/dist/ogma/features/styles.d.ts +4 -12
- package/dist/tools/colorPalette.d.ts +1 -0
- package/dist/tools/ogmaTool.d.ts +1 -0
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { CurrencyFormat as
|
|
1
|
+
import { CurrencyFormat as R, PropertyTypeName as yr, AutoRangeScale as Vt, OgmaEdgeShape as vr, SelectorType as S, ForceLayoutMode as _r, EntityType as I, NodeGroupingType as q } from "@linkurious/rest-client";
|
|
2
2
|
import mr from "@linkurious/ogma";
|
|
3
3
|
import { BehaviorSubject as Cr } from "rxjs";
|
|
4
|
-
var
|
|
5
|
-
function
|
|
4
|
+
var te = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
|
+
function Me(r) {
|
|
6
6
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
7
7
|
}
|
|
8
8
|
function Sr() {
|
|
@@ -12,14 +12,14 @@ var Ar = Sr;
|
|
|
12
12
|
function xr(r, e) {
|
|
13
13
|
return r === e || r !== r && e !== e;
|
|
14
14
|
}
|
|
15
|
-
var
|
|
15
|
+
var Re = xr, Er = Re;
|
|
16
16
|
function Fr(r, e) {
|
|
17
17
|
for (var t = r.length; t--; )
|
|
18
18
|
if (Er(r[t][0], e))
|
|
19
19
|
return t;
|
|
20
20
|
return -1;
|
|
21
21
|
}
|
|
22
|
-
var
|
|
22
|
+
var de = Fr, $r = de, Tr = Array.prototype, Nr = Tr.splice;
|
|
23
23
|
function Dr(r) {
|
|
24
24
|
var e = this.__data__, t = $r(e, r);
|
|
25
25
|
if (t < 0)
|
|
@@ -27,34 +27,34 @@ function Dr(r) {
|
|
|
27
27
|
var i = e.length - 1;
|
|
28
28
|
return t == i ? e.pop() : Nr.call(e, t, 1), --this.size, !0;
|
|
29
29
|
}
|
|
30
|
-
var wr = Dr, Or =
|
|
30
|
+
var wr = Dr, Or = de;
|
|
31
31
|
function Lr(r) {
|
|
32
32
|
var e = this.__data__, t = Or(e, r);
|
|
33
33
|
return t < 0 ? void 0 : e[t][1];
|
|
34
34
|
}
|
|
35
|
-
var
|
|
35
|
+
var Ir = Lr, Pr = de;
|
|
36
36
|
function Mr(r) {
|
|
37
|
-
return
|
|
37
|
+
return Pr(this.__data__, r) > -1;
|
|
38
38
|
}
|
|
39
|
-
var Rr = Mr,
|
|
40
|
-
function
|
|
41
|
-
var t = this.__data__, i =
|
|
39
|
+
var Rr = Mr, Gr = de;
|
|
40
|
+
function Br(r, e) {
|
|
41
|
+
var t = this.__data__, i = Gr(t, r);
|
|
42
42
|
return i < 0 ? (++this.size, t.push([r, e])) : t[i][1] = e, this;
|
|
43
43
|
}
|
|
44
|
-
var zr =
|
|
45
|
-
function
|
|
44
|
+
var zr = Br, jr = Ar, Ur = wr, Vr = Ir, kr = Rr, Hr = zr;
|
|
45
|
+
function U(r) {
|
|
46
46
|
var e = -1, t = r == null ? 0 : r.length;
|
|
47
47
|
for (this.clear(); ++e < t; ) {
|
|
48
48
|
var i = r[e];
|
|
49
49
|
this.set(i[0], i[1]);
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
var ce =
|
|
52
|
+
U.prototype.clear = jr;
|
|
53
|
+
U.prototype.delete = Ur;
|
|
54
|
+
U.prototype.get = Vr;
|
|
55
|
+
U.prototype.has = kr;
|
|
56
|
+
U.prototype.set = Hr;
|
|
57
|
+
var ce = U, Kr = ce;
|
|
58
58
|
function qr() {
|
|
59
59
|
this.__data__ = new Kr(), this.size = 0;
|
|
60
60
|
}
|
|
@@ -71,49 +71,49 @@ var Xr = Zr;
|
|
|
71
71
|
function Qr(r) {
|
|
72
72
|
return this.__data__.has(r);
|
|
73
73
|
}
|
|
74
|
-
var ei = Qr, ti = typeof
|
|
74
|
+
var ei = Qr, ti = typeof te == "object" && te && te.Object === Object && te, kt = ti, ri = kt, ii = typeof self == "object" && self && self.Object === Object && self, ni = ri || ii || Function("return this")(), D = ni, si = D, ai = si.Symbol, Z = ai, Ze = Z, Ht = Object.prototype, oi = Ht.hasOwnProperty, ui = Ht.toString, Y = Ze ? Ze.toStringTag : void 0;
|
|
75
75
|
function li(r) {
|
|
76
|
-
var e = oi.call(r,
|
|
76
|
+
var e = oi.call(r, Y), t = r[Y];
|
|
77
77
|
try {
|
|
78
|
-
r[
|
|
78
|
+
r[Y] = void 0;
|
|
79
79
|
var i = !0;
|
|
80
80
|
} catch {
|
|
81
81
|
}
|
|
82
82
|
var n = ui.call(r);
|
|
83
|
-
return i && (e ? r[
|
|
83
|
+
return i && (e ? r[Y] = t : delete r[Y]), n;
|
|
84
84
|
}
|
|
85
|
-
var
|
|
85
|
+
var di = li, ci = Object.prototype, gi = ci.toString;
|
|
86
86
|
function hi(r) {
|
|
87
87
|
return gi.call(r);
|
|
88
88
|
}
|
|
89
|
-
var fi = hi,
|
|
89
|
+
var fi = hi, Xe = Z, pi = di, bi = fi, yi = "[object Null]", vi = "[object Undefined]", Qe = Xe ? Xe.toStringTag : void 0;
|
|
90
90
|
function _i(r) {
|
|
91
|
-
return r == null ? r === void 0 ? vi : yi :
|
|
91
|
+
return r == null ? r === void 0 ? vi : yi : Qe && Qe in Object(r) ? pi(r) : bi(r);
|
|
92
92
|
}
|
|
93
|
-
var
|
|
93
|
+
var X = _i;
|
|
94
94
|
function mi(r) {
|
|
95
95
|
var e = typeof r;
|
|
96
96
|
return r != null && (e == "object" || e == "function");
|
|
97
97
|
}
|
|
98
|
-
var
|
|
98
|
+
var ge = mi, Ci = X, Si = ge, Ai = "[object AsyncFunction]", xi = "[object Function]", Ei = "[object GeneratorFunction]", Fi = "[object Proxy]";
|
|
99
99
|
function $i(r) {
|
|
100
100
|
if (!Si(r))
|
|
101
101
|
return !1;
|
|
102
102
|
var e = Ci(r);
|
|
103
103
|
return e == xi || e == Ei || e == Ai || e == Fi;
|
|
104
104
|
}
|
|
105
|
-
var Kt = $i, Ti =
|
|
106
|
-
var r = /[^.]+$/.exec(
|
|
105
|
+
var Kt = $i, Ti = D, Ni = Ti["__core-js_shared__"], Di = Ni, _e = Di, et = function() {
|
|
106
|
+
var r = /[^.]+$/.exec(_e && _e.keys && _e.keys.IE_PROTO || "");
|
|
107
107
|
return r ? "Symbol(src)_1." + r : "";
|
|
108
108
|
}();
|
|
109
109
|
function wi(r) {
|
|
110
|
-
return !!
|
|
110
|
+
return !!et && et in r;
|
|
111
111
|
}
|
|
112
|
-
var Oi = wi, Li = Function.prototype,
|
|
113
|
-
function
|
|
112
|
+
var Oi = wi, Li = Function.prototype, Ii = Li.toString;
|
|
113
|
+
function Pi(r) {
|
|
114
114
|
if (r != null) {
|
|
115
115
|
try {
|
|
116
|
-
return
|
|
116
|
+
return Ii.call(r);
|
|
117
117
|
} catch {
|
|
118
118
|
}
|
|
119
119
|
try {
|
|
@@ -123,14 +123,14 @@ function Ii(r) {
|
|
|
123
123
|
}
|
|
124
124
|
return "";
|
|
125
125
|
}
|
|
126
|
-
var qt =
|
|
126
|
+
var qt = Pi, Mi = Kt, Ri = Oi, Gi = ge, Bi = qt, zi = /[\\^$.*+?()[\]{}|]/g, ji = /^\[object .+?Constructor\]$/, Ui = Function.prototype, Vi = Object.prototype, ki = Ui.toString, Hi = Vi.hasOwnProperty, Ki = RegExp(
|
|
127
127
|
"^" + ki.call(Hi).replace(zi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
128
128
|
);
|
|
129
129
|
function qi(r) {
|
|
130
|
-
if (!
|
|
130
|
+
if (!Gi(r) || Ri(r))
|
|
131
131
|
return !1;
|
|
132
132
|
var e = Mi(r) ? Ki : ji;
|
|
133
|
-
return e.test(
|
|
133
|
+
return e.test(Bi(r));
|
|
134
134
|
}
|
|
135
135
|
var Yi = qi;
|
|
136
136
|
function Wi(r, e) {
|
|
@@ -141,97 +141,97 @@ function Qi(r, e) {
|
|
|
141
141
|
var t = Xi(r, e);
|
|
142
142
|
return Zi(t) ? t : void 0;
|
|
143
143
|
}
|
|
144
|
-
var
|
|
144
|
+
var M = Qi, en = M, tn = D, rn = en(tn, "Map"), Ge = rn, nn = M, sn = nn(Object, "create"), he = sn, tt = he;
|
|
145
145
|
function an() {
|
|
146
|
-
this.__data__ =
|
|
146
|
+
this.__data__ = tt ? tt(null) : {}, this.size = 0;
|
|
147
147
|
}
|
|
148
148
|
var on = an;
|
|
149
149
|
function un(r) {
|
|
150
150
|
var e = this.has(r) && delete this.__data__[r];
|
|
151
151
|
return this.size -= e ? 1 : 0, e;
|
|
152
152
|
}
|
|
153
|
-
var ln = un,
|
|
153
|
+
var ln = un, dn = he, cn = "__lodash_hash_undefined__", gn = Object.prototype, hn = gn.hasOwnProperty;
|
|
154
154
|
function fn(r) {
|
|
155
155
|
var e = this.__data__;
|
|
156
|
-
if (
|
|
156
|
+
if (dn) {
|
|
157
157
|
var t = e[r];
|
|
158
|
-
return t ===
|
|
158
|
+
return t === cn ? void 0 : t;
|
|
159
159
|
}
|
|
160
160
|
return hn.call(e, r) ? e[r] : void 0;
|
|
161
161
|
}
|
|
162
|
-
var pn = fn, bn =
|
|
162
|
+
var pn = fn, bn = he, yn = Object.prototype, vn = yn.hasOwnProperty;
|
|
163
163
|
function _n(r) {
|
|
164
164
|
var e = this.__data__;
|
|
165
165
|
return bn ? e[r] !== void 0 : vn.call(e, r);
|
|
166
166
|
}
|
|
167
|
-
var mn = _n, Cn =
|
|
167
|
+
var mn = _n, Cn = he, Sn = "__lodash_hash_undefined__";
|
|
168
168
|
function An(r, e) {
|
|
169
169
|
var t = this.__data__;
|
|
170
170
|
return this.size += this.has(r) ? 0 : 1, t[r] = Cn && e === void 0 ? Sn : e, this;
|
|
171
171
|
}
|
|
172
172
|
var xn = An, En = on, Fn = ln, $n = pn, Tn = mn, Nn = xn;
|
|
173
|
-
function
|
|
173
|
+
function V(r) {
|
|
174
174
|
var e = -1, t = r == null ? 0 : r.length;
|
|
175
175
|
for (this.clear(); ++e < t; ) {
|
|
176
176
|
var i = r[e];
|
|
177
177
|
this.set(i[0], i[1]);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
var Dn =
|
|
180
|
+
V.prototype.clear = En;
|
|
181
|
+
V.prototype.delete = Fn;
|
|
182
|
+
V.prototype.get = $n;
|
|
183
|
+
V.prototype.has = Tn;
|
|
184
|
+
V.prototype.set = Nn;
|
|
185
|
+
var Dn = V, rt = Dn, wn = ce, On = Ge;
|
|
186
186
|
function Ln() {
|
|
187
187
|
this.size = 0, this.__data__ = {
|
|
188
|
-
hash: new
|
|
188
|
+
hash: new rt(),
|
|
189
189
|
map: new (On || wn)(),
|
|
190
|
-
string: new
|
|
190
|
+
string: new rt()
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
var
|
|
194
|
-
function
|
|
193
|
+
var In = Ln;
|
|
194
|
+
function Pn(r) {
|
|
195
195
|
var e = typeof r;
|
|
196
196
|
return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? r !== "__proto__" : r === null;
|
|
197
197
|
}
|
|
198
|
-
var Mn =
|
|
199
|
-
function
|
|
198
|
+
var Mn = Pn, Rn = Mn;
|
|
199
|
+
function Gn(r, e) {
|
|
200
200
|
var t = r.__data__;
|
|
201
201
|
return Rn(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
|
|
202
202
|
}
|
|
203
|
-
var
|
|
203
|
+
var fe = Gn, Bn = fe;
|
|
204
204
|
function zn(r) {
|
|
205
|
-
var e =
|
|
205
|
+
var e = Bn(this, r).delete(r);
|
|
206
206
|
return this.size -= e ? 1 : 0, e;
|
|
207
207
|
}
|
|
208
|
-
var jn = zn, Un =
|
|
208
|
+
var jn = zn, Un = fe;
|
|
209
209
|
function Vn(r) {
|
|
210
210
|
return Un(this, r).get(r);
|
|
211
211
|
}
|
|
212
|
-
var kn = Vn, Hn =
|
|
212
|
+
var kn = Vn, Hn = fe;
|
|
213
213
|
function Kn(r) {
|
|
214
214
|
return Hn(this, r).has(r);
|
|
215
215
|
}
|
|
216
|
-
var qn = Kn, Yn =
|
|
216
|
+
var qn = Kn, Yn = fe;
|
|
217
217
|
function Wn(r, e) {
|
|
218
218
|
var t = Yn(this, r), i = t.size;
|
|
219
219
|
return t.set(r, e), this.size += t.size == i ? 0 : 1, this;
|
|
220
220
|
}
|
|
221
|
-
var Jn = Wn, Zn =
|
|
222
|
-
function
|
|
221
|
+
var Jn = Wn, Zn = In, Xn = jn, Qn = kn, es = qn, ts = Jn;
|
|
222
|
+
function k(r) {
|
|
223
223
|
var e = -1, t = r == null ? 0 : r.length;
|
|
224
224
|
for (this.clear(); ++e < t; ) {
|
|
225
225
|
var i = r[e];
|
|
226
226
|
this.set(i[0], i[1]);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
var Be =
|
|
229
|
+
k.prototype.clear = Zn;
|
|
230
|
+
k.prototype.delete = Xn;
|
|
231
|
+
k.prototype.get = Qn;
|
|
232
|
+
k.prototype.has = es;
|
|
233
|
+
k.prototype.set = ts;
|
|
234
|
+
var Be = k, rs = ce, is = Ge, ns = Be, ss = 200;
|
|
235
235
|
function as(r, e) {
|
|
236
236
|
var t = this.__data__;
|
|
237
237
|
if (t instanceof rs) {
|
|
@@ -242,17 +242,17 @@ function as(r, e) {
|
|
|
242
242
|
}
|
|
243
243
|
return t.set(r, e), this.size = t.size, this;
|
|
244
244
|
}
|
|
245
|
-
var os = as, us = ce, ls = Yr,
|
|
246
|
-
function
|
|
245
|
+
var os = as, us = ce, ls = Yr, ds = Jr, cs = Xr, gs = ei, hs = os;
|
|
246
|
+
function H(r) {
|
|
247
247
|
var e = this.__data__ = new us(r);
|
|
248
248
|
this.size = e.size;
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
var Yt =
|
|
250
|
+
H.prototype.clear = ls;
|
|
251
|
+
H.prototype.delete = ds;
|
|
252
|
+
H.prototype.get = cs;
|
|
253
|
+
H.prototype.has = gs;
|
|
254
|
+
H.prototype.set = hs;
|
|
255
|
+
var Yt = H, fs = "__lodash_hash_undefined__";
|
|
256
256
|
function ps(r) {
|
|
257
257
|
return this.__data__.set(r, fs), this;
|
|
258
258
|
}
|
|
@@ -261,14 +261,14 @@ function ys(r) {
|
|
|
261
261
|
return this.__data__.has(r);
|
|
262
262
|
}
|
|
263
263
|
var vs = ys, _s = Be, ms = bs, Cs = vs;
|
|
264
|
-
function
|
|
264
|
+
function ne(r) {
|
|
265
265
|
var e = -1, t = r == null ? 0 : r.length;
|
|
266
266
|
for (this.__data__ = new _s(); ++e < t; )
|
|
267
267
|
this.add(r[e]);
|
|
268
268
|
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
var Ss =
|
|
269
|
+
ne.prototype.add = ne.prototype.push = ms;
|
|
270
|
+
ne.prototype.has = Cs;
|
|
271
|
+
var Ss = ne;
|
|
272
272
|
function As(r, e) {
|
|
273
273
|
for (var t = -1, i = r == null ? 0 : r.length; ++t < i; )
|
|
274
274
|
if (e(r[t], t, r))
|
|
@@ -284,36 +284,36 @@ function Os(r, e, t, i, n, s) {
|
|
|
284
284
|
var a = t & Ds, o = r.length, l = e.length;
|
|
285
285
|
if (o != l && !(a && l > o))
|
|
286
286
|
return !1;
|
|
287
|
-
var
|
|
288
|
-
if (
|
|
289
|
-
return
|
|
287
|
+
var d = s.get(r), c = s.get(e);
|
|
288
|
+
if (d && c)
|
|
289
|
+
return d == e && c == r;
|
|
290
290
|
var g = -1, h = !0, y = t & ws ? new $s() : void 0;
|
|
291
291
|
for (s.set(r, e), s.set(e, r); ++g < o; ) {
|
|
292
|
-
var m = r[g],
|
|
292
|
+
var m = r[g], p = e[g];
|
|
293
293
|
if (i)
|
|
294
|
-
var
|
|
295
|
-
if (
|
|
296
|
-
if (
|
|
294
|
+
var x = a ? i(p, m, g, e, r, s) : i(m, p, g, r, e, s);
|
|
295
|
+
if (x !== void 0) {
|
|
296
|
+
if (x)
|
|
297
297
|
continue;
|
|
298
298
|
h = !1;
|
|
299
299
|
break;
|
|
300
300
|
}
|
|
301
301
|
if (y) {
|
|
302
|
-
if (!Ts(e, function(
|
|
303
|
-
if (!Ns(y,
|
|
304
|
-
return y.push(
|
|
302
|
+
if (!Ts(e, function($, T) {
|
|
303
|
+
if (!Ns(y, T) && (m === $ || n(m, $, t, i, s)))
|
|
304
|
+
return y.push(T);
|
|
305
305
|
})) {
|
|
306
306
|
h = !1;
|
|
307
307
|
break;
|
|
308
308
|
}
|
|
309
|
-
} else if (!(m ===
|
|
309
|
+
} else if (!(m === p || n(m, p, t, i, s))) {
|
|
310
310
|
h = !1;
|
|
311
311
|
break;
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return s.delete(r), s.delete(e), h;
|
|
315
315
|
}
|
|
316
|
-
var Wt = Os, Ls =
|
|
316
|
+
var Wt = Os, Ls = D, Is = Ls.Uint8Array, Ps = Is;
|
|
317
317
|
function Ms(r) {
|
|
318
318
|
var e = -1, t = Array(r.size);
|
|
319
319
|
return r.forEach(function(i, n) {
|
|
@@ -321,13 +321,13 @@ function Ms(r) {
|
|
|
321
321
|
}), t;
|
|
322
322
|
}
|
|
323
323
|
var Rs = Ms;
|
|
324
|
-
function
|
|
324
|
+
function Gs(r) {
|
|
325
325
|
var e = -1, t = Array(r.size);
|
|
326
326
|
return r.forEach(function(i) {
|
|
327
327
|
t[++e] = i;
|
|
328
328
|
}), t;
|
|
329
329
|
}
|
|
330
|
-
var
|
|
330
|
+
var Bs = Gs, it = Z, nt = Ps, zs = Re, js = Wt, Us = Rs, Vs = Bs, ks = 1, Hs = 2, Ks = "[object Boolean]", qs = "[object Date]", Ys = "[object Error]", Ws = "[object Map]", Js = "[object Number]", Zs = "[object RegExp]", Xs = "[object Set]", Qs = "[object String]", ea = "[object Symbol]", ta = "[object ArrayBuffer]", ra = "[object DataView]", st = it ? it.prototype : void 0, me = st ? st.valueOf : void 0;
|
|
331
331
|
function ia(r, e, t, i, n, s, a) {
|
|
332
332
|
switch (t) {
|
|
333
333
|
case ra:
|
|
@@ -335,7 +335,7 @@ function ia(r, e, t, i, n, s, a) {
|
|
|
335
335
|
return !1;
|
|
336
336
|
r = r.buffer, e = e.buffer;
|
|
337
337
|
case ta:
|
|
338
|
-
return !(r.byteLength != e.byteLength || !s(new
|
|
338
|
+
return !(r.byteLength != e.byteLength || !s(new nt(r), new nt(e)));
|
|
339
339
|
case Ks:
|
|
340
340
|
case qs:
|
|
341
341
|
case Js:
|
|
@@ -351,15 +351,15 @@ function ia(r, e, t, i, n, s, a) {
|
|
|
351
351
|
var l = i & ks;
|
|
352
352
|
if (o || (o = Vs), r.size != e.size && !l)
|
|
353
353
|
return !1;
|
|
354
|
-
var
|
|
355
|
-
if (
|
|
356
|
-
return
|
|
354
|
+
var d = a.get(r);
|
|
355
|
+
if (d)
|
|
356
|
+
return d == e;
|
|
357
357
|
i |= Hs, a.set(r, e);
|
|
358
|
-
var
|
|
359
|
-
return a.delete(r),
|
|
358
|
+
var c = js(o(r), o(e), i, n, s, a);
|
|
359
|
+
return a.delete(r), c;
|
|
360
360
|
case ea:
|
|
361
|
-
if (
|
|
362
|
-
return
|
|
361
|
+
if (me)
|
|
362
|
+
return me.call(r) == me.call(e);
|
|
363
363
|
}
|
|
364
364
|
return !1;
|
|
365
365
|
}
|
|
@@ -369,25 +369,25 @@ function sa(r, e) {
|
|
|
369
369
|
r[n + t] = e[t];
|
|
370
370
|
return r;
|
|
371
371
|
}
|
|
372
|
-
var Jt = sa, aa = Array.isArray,
|
|
372
|
+
var Jt = sa, aa = Array.isArray, F = aa, oa = Jt, ua = F;
|
|
373
373
|
function la(r, e, t) {
|
|
374
374
|
var i = e(r);
|
|
375
375
|
return ua(r) ? i : oa(i, t(r));
|
|
376
376
|
}
|
|
377
|
-
var
|
|
378
|
-
function
|
|
377
|
+
var da = la;
|
|
378
|
+
function ca(r, e) {
|
|
379
379
|
for (var t = -1, i = r == null ? 0 : r.length, n = 0, s = []; ++t < i; ) {
|
|
380
380
|
var a = r[t];
|
|
381
381
|
e(a, t, r) && (s[n++] = a);
|
|
382
382
|
}
|
|
383
383
|
return s;
|
|
384
384
|
}
|
|
385
|
-
var ga =
|
|
385
|
+
var ga = ca;
|
|
386
386
|
function ha() {
|
|
387
387
|
return [];
|
|
388
388
|
}
|
|
389
|
-
var fa = ha, pa = ga, ba = fa, ya = Object.prototype, va = ya.propertyIsEnumerable,
|
|
390
|
-
return r == null ? [] : (r = Object(r), pa(
|
|
389
|
+
var fa = ha, pa = ga, ba = fa, ya = Object.prototype, va = ya.propertyIsEnumerable, at = Object.getOwnPropertySymbols, _a = at ? function(r) {
|
|
390
|
+
return r == null ? [] : (r = Object(r), pa(at(r), function(e) {
|
|
391
391
|
return va.call(r, e);
|
|
392
392
|
}));
|
|
393
393
|
} : ba, ma = _a;
|
|
@@ -400,34 +400,34 @@ var Sa = Ca;
|
|
|
400
400
|
function Aa(r) {
|
|
401
401
|
return r != null && typeof r == "object";
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var Q = Aa, xa = X, Ea = Q, Fa = "[object Arguments]";
|
|
404
404
|
function $a(r) {
|
|
405
405
|
return Ea(r) && xa(r) == Fa;
|
|
406
406
|
}
|
|
407
|
-
var Ta = $a,
|
|
407
|
+
var Ta = $a, ot = Ta, Na = Q, Zt = Object.prototype, Da = Zt.hasOwnProperty, wa = Zt.propertyIsEnumerable, Oa = ot(/* @__PURE__ */ function() {
|
|
408
408
|
return arguments;
|
|
409
|
-
}()) ?
|
|
409
|
+
}()) ? ot : function(r) {
|
|
410
410
|
return Na(r) && Da.call(r, "callee") && !wa.call(r, "callee");
|
|
411
|
-
},
|
|
411
|
+
}, ze = Oa, se = { exports: {} };
|
|
412
412
|
function La() {
|
|
413
413
|
return !1;
|
|
414
414
|
}
|
|
415
|
-
var
|
|
416
|
-
|
|
415
|
+
var Ia = La;
|
|
416
|
+
se.exports;
|
|
417
417
|
(function(r, e) {
|
|
418
|
-
var t =
|
|
419
|
-
r.exports =
|
|
420
|
-
})(
|
|
421
|
-
var Xt =
|
|
418
|
+
var t = D, i = Ia, n = e && !e.nodeType && e, s = n && !0 && r && !r.nodeType && r, a = s && s.exports === n, o = a ? t.Buffer : void 0, l = o ? o.isBuffer : void 0, d = l || i;
|
|
419
|
+
r.exports = d;
|
|
420
|
+
})(se, se.exports);
|
|
421
|
+
var Xt = se.exports, Pa = 9007199254740991, Ma = /^(?:0|[1-9]\d*)$/;
|
|
422
422
|
function Ra(r, e) {
|
|
423
423
|
var t = typeof r;
|
|
424
|
-
return e = e ??
|
|
424
|
+
return e = e ?? Pa, !!e && (t == "number" || t != "symbol" && Ma.test(r)) && r > -1 && r % 1 == 0 && r < e;
|
|
425
425
|
}
|
|
426
|
-
var
|
|
427
|
-
function
|
|
428
|
-
return typeof r == "number" && r > -1 && r % 1 == 0 && r <=
|
|
426
|
+
var je = Ra, Ga = 9007199254740991;
|
|
427
|
+
function Ba(r) {
|
|
428
|
+
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Ga;
|
|
429
429
|
}
|
|
430
|
-
var
|
|
430
|
+
var Ue = Ba, za = X, ja = Ue, Ua = Q, Va = "[object Arguments]", ka = "[object Array]", Ha = "[object Boolean]", Ka = "[object Date]", qa = "[object Error]", Ya = "[object Function]", Wa = "[object Map]", Ja = "[object Number]", Za = "[object Object]", Xa = "[object RegExp]", Qa = "[object Set]", eo = "[object String]", to = "[object WeakMap]", ro = "[object ArrayBuffer]", io = "[object DataView]", no = "[object Float32Array]", so = "[object Float64Array]", ao = "[object Int8Array]", oo = "[object Int16Array]", uo = "[object Int32Array]", lo = "[object Uint8Array]", co = "[object Uint8ClampedArray]", go = "[object Uint16Array]", ho = "[object Uint32Array]", b = {};
|
|
431
431
|
b[no] = b[so] = b[ao] = b[oo] = b[uo] = b[lo] = b[co] = b[go] = b[ho] = !0;
|
|
432
432
|
b[Va] = b[ka] = b[ro] = b[Ha] = b[io] = b[Ka] = b[qa] = b[Ya] = b[Wa] = b[Ja] = b[Za] = b[Xa] = b[Qa] = b[eo] = b[to] = !1;
|
|
433
433
|
function fo(r) {
|
|
@@ -439,8 +439,8 @@ function bo(r) {
|
|
|
439
439
|
return r(e);
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
var Qt = bo,
|
|
443
|
-
|
|
442
|
+
var Qt = bo, ae = { exports: {} };
|
|
443
|
+
ae.exports;
|
|
444
444
|
(function(r, e) {
|
|
445
445
|
var t = kt, i = e && !e.nodeType && e, n = i && !0 && r && !r.nodeType && r, s = n && n.exports === i, a = s && t.process, o = function() {
|
|
446
446
|
try {
|
|
@@ -450,16 +450,16 @@ oe.exports;
|
|
|
450
450
|
}
|
|
451
451
|
}();
|
|
452
452
|
r.exports = o;
|
|
453
|
-
})(
|
|
454
|
-
var yo =
|
|
453
|
+
})(ae, ae.exports);
|
|
454
|
+
var yo = ae.exports, vo = po, _o = Qt, ut = yo, lt = ut && ut.isTypedArray, mo = lt ? _o(lt) : vo, er = mo, Co = Sa, So = ze, Ao = F, xo = Xt, Eo = je, Fo = er, $o = Object.prototype, To = $o.hasOwnProperty;
|
|
455
455
|
function No(r, e) {
|
|
456
456
|
var t = Ao(r), i = !t && So(r), n = !t && !i && xo(r), s = !t && !i && !n && Fo(r), a = t || i || n || s, o = a ? Co(r.length, String) : [], l = o.length;
|
|
457
|
-
for (var
|
|
458
|
-
(e || To.call(r,
|
|
459
|
-
(
|
|
460
|
-
n && (
|
|
461
|
-
s && (
|
|
462
|
-
Eo(
|
|
457
|
+
for (var d in r)
|
|
458
|
+
(e || To.call(r, d)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
459
|
+
(d == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
460
|
+
n && (d == "offset" || d == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
461
|
+
s && (d == "buffer" || d == "byteLength" || d == "byteOffset") || // Skip index properties.
|
|
462
|
+
Eo(d, l))) && o.push(d);
|
|
463
463
|
return o;
|
|
464
464
|
}
|
|
465
465
|
var Do = No, wo = Object.prototype;
|
|
@@ -468,36 +468,36 @@ function Oo(r) {
|
|
|
468
468
|
return r === t;
|
|
469
469
|
}
|
|
470
470
|
var Lo = Oo;
|
|
471
|
-
function
|
|
471
|
+
function Io(r, e) {
|
|
472
472
|
return function(t) {
|
|
473
473
|
return r(e(t));
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
var
|
|
476
|
+
var Po = Io, Mo = Po, Ro = Mo(Object.keys, Object), Go = Ro, Bo = Lo, zo = Go, jo = Object.prototype, Uo = jo.hasOwnProperty;
|
|
477
477
|
function Vo(r) {
|
|
478
|
-
if (!
|
|
478
|
+
if (!Bo(r))
|
|
479
479
|
return zo(r);
|
|
480
480
|
var e = [];
|
|
481
481
|
for (var t in Object(r))
|
|
482
482
|
Uo.call(r, t) && t != "constructor" && e.push(t);
|
|
483
483
|
return e;
|
|
484
484
|
}
|
|
485
|
-
var ko = Vo, Ho = Kt, Ko =
|
|
485
|
+
var ko = Vo, Ho = Kt, Ko = Ue;
|
|
486
486
|
function qo(r) {
|
|
487
487
|
return r != null && Ko(r.length) && !Ho(r);
|
|
488
488
|
}
|
|
489
|
-
var
|
|
489
|
+
var pe = qo, Yo = Do, Wo = ko, Jo = pe;
|
|
490
490
|
function Zo(r) {
|
|
491
491
|
return Jo(r) ? Yo(r) : Wo(r);
|
|
492
492
|
}
|
|
493
|
-
var
|
|
493
|
+
var Ve = Zo, Xo = da, Qo = ma, eu = Ve;
|
|
494
494
|
function tu(r) {
|
|
495
495
|
return Xo(r, eu, Qo);
|
|
496
496
|
}
|
|
497
|
-
var ru = tu,
|
|
497
|
+
var ru = tu, dt = ru, iu = 1, nu = Object.prototype, su = nu.hasOwnProperty;
|
|
498
498
|
function au(r, e, t, i, n, s) {
|
|
499
|
-
var a = t & iu, o =
|
|
500
|
-
if (l !=
|
|
499
|
+
var a = t & iu, o = dt(r), l = o.length, d = dt(e), c = d.length;
|
|
500
|
+
if (l != c && !a)
|
|
501
501
|
return !1;
|
|
502
502
|
for (var g = l; g--; ) {
|
|
503
503
|
var h = o[g];
|
|
@@ -507,77 +507,77 @@ function au(r, e, t, i, n, s) {
|
|
|
507
507
|
var y = s.get(r), m = s.get(e);
|
|
508
508
|
if (y && m)
|
|
509
509
|
return y == e && m == r;
|
|
510
|
-
var
|
|
510
|
+
var p = !0;
|
|
511
511
|
s.set(r, e), s.set(e, r);
|
|
512
|
-
for (var
|
|
512
|
+
for (var x = a; ++g < l; ) {
|
|
513
513
|
h = o[g];
|
|
514
|
-
var
|
|
514
|
+
var $ = r[h], T = e[h];
|
|
515
515
|
if (i)
|
|
516
|
-
var
|
|
517
|
-
if (!(
|
|
518
|
-
|
|
516
|
+
var ee = a ? i(T, $, h, e, r, s) : i($, T, h, r, e, s);
|
|
517
|
+
if (!(ee === void 0 ? $ === T || n($, T, t, i, s) : ee)) {
|
|
518
|
+
p = !1;
|
|
519
519
|
break;
|
|
520
520
|
}
|
|
521
|
-
|
|
521
|
+
x || (x = h == "constructor");
|
|
522
522
|
}
|
|
523
|
-
if (
|
|
524
|
-
var
|
|
525
|
-
|
|
523
|
+
if (p && !x) {
|
|
524
|
+
var _ = r.constructor, O = e.constructor;
|
|
525
|
+
_ != O && "constructor" in r && "constructor" in e && !(typeof _ == "function" && _ instanceof _ && typeof O == "function" && O instanceof O) && (p = !1);
|
|
526
526
|
}
|
|
527
|
-
return s.delete(r), s.delete(e),
|
|
527
|
+
return s.delete(r), s.delete(e), p;
|
|
528
528
|
}
|
|
529
|
-
var ou = au, uu =
|
|
530
|
-
(
|
|
531
|
-
var e = tr(r), t = e == xu ? r.constructor : void 0, i = t ?
|
|
529
|
+
var ou = au, uu = M, lu = D, du = uu(lu, "DataView"), cu = du, gu = M, hu = D, fu = gu(hu, "Promise"), pu = fu, bu = M, yu = D, vu = bu(yu, "Set"), _u = vu, mu = M, Cu = D, Su = mu(Cu, "WeakMap"), Au = Su, Fe = cu, $e = Ge, Te = pu, Ne = _u, De = Au, tr = X, K = qt, ct = "[object Map]", xu = "[object Object]", gt = "[object Promise]", ht = "[object Set]", ft = "[object WeakMap]", pt = "[object DataView]", Eu = K(Fe), Fu = K($e), $u = K(Te), Tu = K(Ne), Nu = K(De), L = tr;
|
|
530
|
+
(Fe && L(new Fe(new ArrayBuffer(1))) != pt || $e && L(new $e()) != ct || Te && L(Te.resolve()) != gt || Ne && L(new Ne()) != ht || De && L(new De()) != ft) && (L = function(r) {
|
|
531
|
+
var e = tr(r), t = e == xu ? r.constructor : void 0, i = t ? K(t) : "";
|
|
532
532
|
if (i)
|
|
533
533
|
switch (i) {
|
|
534
534
|
case Eu:
|
|
535
|
-
return
|
|
535
|
+
return pt;
|
|
536
536
|
case Fu:
|
|
537
537
|
return ct;
|
|
538
538
|
case $u:
|
|
539
|
-
return dt;
|
|
540
|
-
case Tu:
|
|
541
539
|
return gt;
|
|
542
|
-
case
|
|
540
|
+
case Tu:
|
|
543
541
|
return ht;
|
|
542
|
+
case Nu:
|
|
543
|
+
return ft;
|
|
544
544
|
}
|
|
545
545
|
return e;
|
|
546
546
|
});
|
|
547
|
-
var Du =
|
|
547
|
+
var Du = L, Ce = Yt, wu = Wt, Ou = na, Lu = ou, bt = Du, yt = F, vt = Xt, Iu = er, Pu = 1, _t = "[object Arguments]", mt = "[object Array]", re = "[object Object]", Mu = Object.prototype, Ct = Mu.hasOwnProperty;
|
|
548
548
|
function Ru(r, e, t, i, n, s) {
|
|
549
|
-
var a =
|
|
550
|
-
l = l ==
|
|
551
|
-
var
|
|
552
|
-
if (h &&
|
|
553
|
-
if (!
|
|
549
|
+
var a = yt(r), o = yt(e), l = a ? mt : bt(r), d = o ? mt : bt(e);
|
|
550
|
+
l = l == _t ? re : l, d = d == _t ? re : d;
|
|
551
|
+
var c = l == re, g = d == re, h = l == d;
|
|
552
|
+
if (h && vt(r)) {
|
|
553
|
+
if (!vt(e))
|
|
554
554
|
return !1;
|
|
555
|
-
a = !0,
|
|
555
|
+
a = !0, c = !1;
|
|
556
556
|
}
|
|
557
|
-
if (h && !
|
|
558
|
-
return s || (s = new
|
|
559
|
-
if (!(t &
|
|
560
|
-
var y =
|
|
557
|
+
if (h && !c)
|
|
558
|
+
return s || (s = new Ce()), a || Iu(r) ? wu(r, e, t, i, n, s) : Ou(r, e, l, t, i, n, s);
|
|
559
|
+
if (!(t & Pu)) {
|
|
560
|
+
var y = c && Ct.call(r, "__wrapped__"), m = g && Ct.call(e, "__wrapped__");
|
|
561
561
|
if (y || m) {
|
|
562
|
-
var
|
|
563
|
-
return s || (s = new
|
|
562
|
+
var p = y ? r.value() : r, x = m ? e.value() : e;
|
|
563
|
+
return s || (s = new Ce()), n(p, x, t, i, s);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
return h ? (s || (s = new
|
|
566
|
+
return h ? (s || (s = new Ce()), Lu(r, e, t, i, n, s)) : !1;
|
|
567
567
|
}
|
|
568
|
-
var
|
|
568
|
+
var Gu = Ru, Bu = Gu, St = Q;
|
|
569
569
|
function rr(r, e, t, i, n) {
|
|
570
|
-
return r === e ? !0 : r == null || e == null || !
|
|
570
|
+
return r === e ? !0 : r == null || e == null || !St(r) && !St(e) ? r !== r && e !== e : Bu(r, e, t, i, rr, n);
|
|
571
571
|
}
|
|
572
|
-
var
|
|
572
|
+
var ke = rr, zu = ke;
|
|
573
573
|
function ju(r, e) {
|
|
574
574
|
return zu(r, e);
|
|
575
575
|
}
|
|
576
576
|
var Uu = ju;
|
|
577
|
-
const Vu = /* @__PURE__ */
|
|
578
|
-
var
|
|
577
|
+
const Vu = /* @__PURE__ */ Me(Uu);
|
|
578
|
+
var At = Z, ku = ze, Hu = F, xt = At ? At.isConcatSpreadable : void 0;
|
|
579
579
|
function Ku(r) {
|
|
580
|
-
return Hu(r) || ku(r) || !!(
|
|
580
|
+
return Hu(r) || ku(r) || !!(xt && r && r[xt]);
|
|
581
581
|
}
|
|
582
582
|
var qu = Ku, Yu = Jt, Wu = qu;
|
|
583
583
|
function ir(r, e, t, i, n) {
|
|
@@ -594,19 +594,19 @@ function Zu(r, e) {
|
|
|
594
594
|
n[t] = e(r[t], t, r);
|
|
595
595
|
return n;
|
|
596
596
|
}
|
|
597
|
-
var nr = Zu, Xu =
|
|
597
|
+
var nr = Zu, Xu = X, Qu = Q, el = "[object Symbol]";
|
|
598
598
|
function tl(r) {
|
|
599
599
|
return typeof r == "symbol" || Qu(r) && Xu(r) == el;
|
|
600
600
|
}
|
|
601
|
-
var
|
|
601
|
+
var be = tl, rl = F, il = be, nl = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, sl = /^\w*$/;
|
|
602
602
|
function al(r, e) {
|
|
603
603
|
if (rl(r))
|
|
604
604
|
return !1;
|
|
605
605
|
var t = typeof r;
|
|
606
606
|
return t == "number" || t == "symbol" || t == "boolean" || r == null || il(r) ? !0 : sl.test(r) || !nl.test(r) || e != null && r in Object(e);
|
|
607
607
|
}
|
|
608
|
-
var
|
|
609
|
-
function
|
|
608
|
+
var He = al, sr = Be, ol = "Expected a function";
|
|
609
|
+
function Ke(r, e) {
|
|
610
610
|
if (typeof r != "function" || e != null && typeof e != "function")
|
|
611
611
|
throw new TypeError(ol);
|
|
612
612
|
var t = function() {
|
|
@@ -616,29 +616,29 @@ function He(r, e) {
|
|
|
616
616
|
var a = r.apply(this, i);
|
|
617
617
|
return t.cache = s.set(n, a) || s, a;
|
|
618
618
|
};
|
|
619
|
-
return t.cache = new (
|
|
619
|
+
return t.cache = new (Ke.Cache || sr)(), t;
|
|
620
620
|
}
|
|
621
|
-
|
|
622
|
-
var ul =
|
|
623
|
-
function
|
|
621
|
+
Ke.Cache = sr;
|
|
622
|
+
var ul = Ke, ll = ul, dl = 500;
|
|
623
|
+
function cl(r) {
|
|
624
624
|
var e = ll(r, function(i) {
|
|
625
|
-
return t.size ===
|
|
625
|
+
return t.size === dl && t.clear(), i;
|
|
626
626
|
}), t = e.cache;
|
|
627
627
|
return e;
|
|
628
628
|
}
|
|
629
|
-
var gl =
|
|
629
|
+
var gl = cl, hl = gl, fl = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, pl = /\\(\\)?/g, bl = hl(function(r) {
|
|
630
630
|
var e = [];
|
|
631
631
|
return r.charCodeAt(0) === 46 && e.push(""), r.replace(fl, function(t, i, n, s) {
|
|
632
632
|
e.push(n ? s.replace(pl, "$1") : i || t);
|
|
633
633
|
}), e;
|
|
634
|
-
}), yl = bl,
|
|
634
|
+
}), yl = bl, Et = Z, vl = nr, _l = F, ml = be, Cl = 1 / 0, Ft = Et ? Et.prototype : void 0, $t = Ft ? Ft.toString : void 0;
|
|
635
635
|
function ar(r) {
|
|
636
636
|
if (typeof r == "string")
|
|
637
637
|
return r;
|
|
638
638
|
if (_l(r))
|
|
639
639
|
return vl(r, ar) + "";
|
|
640
640
|
if (ml(r))
|
|
641
|
-
return
|
|
641
|
+
return $t ? $t.call(r) : "";
|
|
642
642
|
var e = r + "";
|
|
643
643
|
return e == "0" && 1 / r == -Cl ? "-0" : e;
|
|
644
644
|
}
|
|
@@ -646,25 +646,25 @@ var Sl = ar, Al = Sl;
|
|
|
646
646
|
function xl(r) {
|
|
647
647
|
return r == null ? "" : Al(r);
|
|
648
648
|
}
|
|
649
|
-
var El = xl, Fl =
|
|
649
|
+
var El = xl, Fl = F, $l = He, Tl = yl, Nl = El;
|
|
650
650
|
function Dl(r, e) {
|
|
651
651
|
return Fl(r) ? r : $l(r, e) ? [r] : Tl(Nl(r));
|
|
652
652
|
}
|
|
653
|
-
var or = Dl, wl =
|
|
653
|
+
var or = Dl, wl = be, Ol = 1 / 0;
|
|
654
654
|
function Ll(r) {
|
|
655
655
|
if (typeof r == "string" || wl(r))
|
|
656
656
|
return r;
|
|
657
657
|
var e = r + "";
|
|
658
658
|
return e == "0" && 1 / r == -Ol ? "-0" : e;
|
|
659
659
|
}
|
|
660
|
-
var
|
|
660
|
+
var ye = Ll, Il = or, Pl = ye;
|
|
661
661
|
function Ml(r, e) {
|
|
662
|
-
e =
|
|
662
|
+
e = Il(e, r);
|
|
663
663
|
for (var t = 0, i = e.length; r != null && t < i; )
|
|
664
|
-
r = r[
|
|
664
|
+
r = r[Pl(e[t++])];
|
|
665
665
|
return t && t == i ? r : void 0;
|
|
666
666
|
}
|
|
667
|
-
var
|
|
667
|
+
var qe = Ml, Rl = Yt, Gl = ke, Bl = 1, zl = 2;
|
|
668
668
|
function jl(r, e, t, i) {
|
|
669
669
|
var n = t.length, s = n, a = !i;
|
|
670
670
|
if (r == null)
|
|
@@ -676,25 +676,25 @@ function jl(r, e, t, i) {
|
|
|
676
676
|
}
|
|
677
677
|
for (; ++n < s; ) {
|
|
678
678
|
o = t[n];
|
|
679
|
-
var l = o[0],
|
|
679
|
+
var l = o[0], d = r[l], c = o[1];
|
|
680
680
|
if (a && o[2]) {
|
|
681
|
-
if (
|
|
681
|
+
if (d === void 0 && !(l in r))
|
|
682
682
|
return !1;
|
|
683
683
|
} else {
|
|
684
684
|
var g = new Rl();
|
|
685
685
|
if (i)
|
|
686
|
-
var h = i(
|
|
687
|
-
if (!(h === void 0 ?
|
|
686
|
+
var h = i(d, c, l, r, e, g);
|
|
687
|
+
if (!(h === void 0 ? Gl(c, d, Bl | zl, i, g) : h))
|
|
688
688
|
return !1;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
return !0;
|
|
692
692
|
}
|
|
693
|
-
var Ul = jl, Vl =
|
|
693
|
+
var Ul = jl, Vl = ge;
|
|
694
694
|
function kl(r) {
|
|
695
695
|
return r === r && !Vl(r);
|
|
696
696
|
}
|
|
697
|
-
var ur = kl, Hl = ur, Kl =
|
|
697
|
+
var ur = kl, Hl = ur, Kl = Ve;
|
|
698
698
|
function ql(r) {
|
|
699
699
|
for (var e = Kl(r), t = e.length; t--; ) {
|
|
700
700
|
var i = e[t], n = r[i];
|
|
@@ -715,63 +715,63 @@ function Ql(r) {
|
|
|
715
715
|
return t === r || Jl(t, r, e);
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
|
-
var
|
|
719
|
-
function
|
|
720
|
-
var i = r == null ? void 0 :
|
|
718
|
+
var ed = Ql, td = qe;
|
|
719
|
+
function rd(r, e, t) {
|
|
720
|
+
var i = r == null ? void 0 : td(r, e);
|
|
721
721
|
return i === void 0 ? t : i;
|
|
722
722
|
}
|
|
723
|
-
var
|
|
724
|
-
function
|
|
723
|
+
var id = rd;
|
|
724
|
+
function nd(r, e) {
|
|
725
725
|
return r != null && e in Object(r);
|
|
726
726
|
}
|
|
727
|
-
var
|
|
728
|
-
function
|
|
729
|
-
e =
|
|
727
|
+
var sd = nd, ad = or, od = ze, ud = F, ld = je, dd = Ue, cd = ye;
|
|
728
|
+
function gd(r, e, t) {
|
|
729
|
+
e = ad(e, r);
|
|
730
730
|
for (var i = -1, n = e.length, s = !1; ++i < n; ) {
|
|
731
|
-
var a =
|
|
731
|
+
var a = cd(e[i]);
|
|
732
732
|
if (!(s = r != null && t(r, a)))
|
|
733
733
|
break;
|
|
734
734
|
r = r[a];
|
|
735
735
|
}
|
|
736
|
-
return s || ++i != n ? s : (n = r == null ? 0 : r.length, !!n &&
|
|
736
|
+
return s || ++i != n ? s : (n = r == null ? 0 : r.length, !!n && dd(n) && ld(a, n) && (ud(r) || od(r)));
|
|
737
737
|
}
|
|
738
|
-
var
|
|
739
|
-
function
|
|
740
|
-
return r != null &&
|
|
738
|
+
var hd = gd, fd = sd, pd = hd;
|
|
739
|
+
function bd(r, e) {
|
|
740
|
+
return r != null && pd(r, e, fd);
|
|
741
741
|
}
|
|
742
|
-
var
|
|
743
|
-
function $
|
|
744
|
-
return
|
|
745
|
-
var i =
|
|
746
|
-
return i === void 0 && i === e ?
|
|
742
|
+
var yd = bd, vd = ke, _d = id, md = yd, Cd = He, Sd = ur, Ad = lr, xd = ye, Ed = 1, Fd = 2;
|
|
743
|
+
function $d(r, e) {
|
|
744
|
+
return Cd(r) && Sd(e) ? Ad(xd(r), e) : function(t) {
|
|
745
|
+
var i = _d(t, r);
|
|
746
|
+
return i === void 0 && i === e ? md(t, r) : vd(e, i, Ed | Fd);
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
|
-
var
|
|
750
|
-
function
|
|
749
|
+
var Td = $d;
|
|
750
|
+
function Nd(r) {
|
|
751
751
|
return r;
|
|
752
752
|
}
|
|
753
|
-
var
|
|
754
|
-
function
|
|
753
|
+
var ve = Nd;
|
|
754
|
+
function Dd(r) {
|
|
755
755
|
return function(e) {
|
|
756
756
|
return e == null ? void 0 : e[r];
|
|
757
757
|
};
|
|
758
758
|
}
|
|
759
|
-
var
|
|
760
|
-
function
|
|
759
|
+
var wd = Dd, Od = qe;
|
|
760
|
+
function Ld(r) {
|
|
761
761
|
return function(e) {
|
|
762
|
-
return
|
|
762
|
+
return Od(e, r);
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
|
-
var
|
|
766
|
-
function
|
|
767
|
-
return
|
|
765
|
+
var Id = Ld, Pd = wd, Md = Id, Rd = He, Gd = ye;
|
|
766
|
+
function Bd(r) {
|
|
767
|
+
return Rd(r) ? Pd(Gd(r)) : Md(r);
|
|
768
768
|
}
|
|
769
|
-
var
|
|
770
|
-
function
|
|
771
|
-
return typeof r == "function" ? r : r == null ?
|
|
769
|
+
var zd = Bd, jd = ed, Ud = Td, Vd = ve, kd = F, Hd = zd;
|
|
770
|
+
function Kd(r) {
|
|
771
|
+
return typeof r == "function" ? r : r == null ? Vd : typeof r == "object" ? kd(r) ? Ud(r[0], r[1]) : jd(r) : Hd(r);
|
|
772
772
|
}
|
|
773
|
-
var
|
|
774
|
-
function
|
|
773
|
+
var qd = Kd;
|
|
774
|
+
function Yd(r) {
|
|
775
775
|
return function(e, t, i) {
|
|
776
776
|
for (var n = -1, s = Object(e), a = i(e), o = a.length; o--; ) {
|
|
777
777
|
var l = a[r ? o : ++n];
|
|
@@ -781,81 +781,81 @@ function Yc(r) {
|
|
|
781
781
|
return e;
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
|
-
var
|
|
785
|
-
function
|
|
786
|
-
return r &&
|
|
784
|
+
var Wd = Yd, Jd = Wd, Zd = Jd(), Xd = Zd, Qd = Xd, ec = Ve;
|
|
785
|
+
function tc(r, e) {
|
|
786
|
+
return r && Qd(r, e, ec);
|
|
787
787
|
}
|
|
788
|
-
var
|
|
789
|
-
function
|
|
788
|
+
var rc = tc, ic = pe;
|
|
789
|
+
function nc(r, e) {
|
|
790
790
|
return function(t, i) {
|
|
791
791
|
if (t == null)
|
|
792
792
|
return t;
|
|
793
|
-
if (!
|
|
793
|
+
if (!ic(t))
|
|
794
794
|
return r(t, i);
|
|
795
795
|
for (var n = t.length, s = e ? n : -1, a = Object(t); (e ? s-- : ++s < n) && i(a[s], s, a) !== !1; )
|
|
796
796
|
;
|
|
797
797
|
return t;
|
|
798
798
|
};
|
|
799
799
|
}
|
|
800
|
-
var
|
|
801
|
-
function
|
|
802
|
-
var t = -1, i =
|
|
803
|
-
return
|
|
800
|
+
var sc = nc, ac = rc, oc = sc, uc = oc(ac), lc = uc, dc = lc, cc = pe;
|
|
801
|
+
function gc(r, e) {
|
|
802
|
+
var t = -1, i = cc(r) ? Array(r.length) : [];
|
|
803
|
+
return dc(r, function(n, s, a) {
|
|
804
804
|
i[++t] = e(n, s, a);
|
|
805
805
|
}), i;
|
|
806
806
|
}
|
|
807
|
-
var
|
|
808
|
-
function
|
|
807
|
+
var hc = gc;
|
|
808
|
+
function fc(r, e) {
|
|
809
809
|
var t = r.length;
|
|
810
810
|
for (r.sort(e); t--; )
|
|
811
811
|
r[t] = r[t].value;
|
|
812
812
|
return r;
|
|
813
813
|
}
|
|
814
|
-
var
|
|
815
|
-
function
|
|
814
|
+
var pc = fc, Tt = be;
|
|
815
|
+
function bc(r, e) {
|
|
816
816
|
if (r !== e) {
|
|
817
|
-
var t = r !== void 0, i = r === null, n = r === r, s =
|
|
818
|
-
if (!o && !
|
|
817
|
+
var t = r !== void 0, i = r === null, n = r === r, s = Tt(r), a = e !== void 0, o = e === null, l = e === e, d = Tt(e);
|
|
818
|
+
if (!o && !d && !s && r > e || s && a && l && !o && !d || i && a && l || !t && l || !n)
|
|
819
819
|
return 1;
|
|
820
|
-
if (!i && !s && !
|
|
820
|
+
if (!i && !s && !d && r < e || d && t && n && !i && !s || o && t && n || !a && n || !l)
|
|
821
821
|
return -1;
|
|
822
822
|
}
|
|
823
823
|
return 0;
|
|
824
824
|
}
|
|
825
|
-
var
|
|
826
|
-
function
|
|
825
|
+
var yc = bc, vc = yc;
|
|
826
|
+
function _c(r, e, t) {
|
|
827
827
|
for (var i = -1, n = r.criteria, s = e.criteria, a = n.length, o = t.length; ++i < a; ) {
|
|
828
|
-
var l =
|
|
828
|
+
var l = vc(n[i], s[i]);
|
|
829
829
|
if (l) {
|
|
830
830
|
if (i >= o)
|
|
831
831
|
return l;
|
|
832
|
-
var
|
|
833
|
-
return l * (
|
|
832
|
+
var d = t[i];
|
|
833
|
+
return l * (d == "desc" ? -1 : 1);
|
|
834
834
|
}
|
|
835
835
|
}
|
|
836
836
|
return r.index - e.index;
|
|
837
837
|
}
|
|
838
|
-
var
|
|
839
|
-
function
|
|
840
|
-
e.length ? e =
|
|
841
|
-
return
|
|
842
|
-
return
|
|
838
|
+
var mc = _c, Se = nr, Cc = qe, Sc = qd, Ac = hc, xc = pc, Ec = Qt, Fc = mc, $c = ve, Tc = F;
|
|
839
|
+
function Nc(r, e, t) {
|
|
840
|
+
e.length ? e = Se(e, function(s) {
|
|
841
|
+
return Tc(s) ? function(a) {
|
|
842
|
+
return Cc(a, s.length === 1 ? s[0] : s);
|
|
843
843
|
} : s;
|
|
844
|
-
}) : e = [$
|
|
844
|
+
}) : e = [$c];
|
|
845
845
|
var i = -1;
|
|
846
|
-
e =
|
|
847
|
-
var n =
|
|
848
|
-
var l =
|
|
849
|
-
return
|
|
846
|
+
e = Se(e, Ec(Sc));
|
|
847
|
+
var n = Ac(r, function(s, a, o) {
|
|
848
|
+
var l = Se(e, function(d) {
|
|
849
|
+
return d(s);
|
|
850
850
|
});
|
|
851
851
|
return { criteria: l, index: ++i, value: s };
|
|
852
852
|
});
|
|
853
|
-
return
|
|
854
|
-
return
|
|
853
|
+
return xc(n, function(s, a) {
|
|
854
|
+
return Fc(s, a, t);
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
var
|
|
858
|
-
function
|
|
857
|
+
var Dc = Nc;
|
|
858
|
+
function wc(r, e, t) {
|
|
859
859
|
switch (t.length) {
|
|
860
860
|
case 0:
|
|
861
861
|
return r.call(e);
|
|
@@ -868,67 +868,67 @@ function wd(r, e, t) {
|
|
|
868
868
|
}
|
|
869
869
|
return r.apply(e, t);
|
|
870
870
|
}
|
|
871
|
-
var
|
|
872
|
-
function
|
|
873
|
-
return e =
|
|
874
|
-
for (var i = arguments, n = -1, s =
|
|
871
|
+
var Oc = wc, Lc = Oc, Nt = Math.max;
|
|
872
|
+
function Ic(r, e, t) {
|
|
873
|
+
return e = Nt(e === void 0 ? r.length - 1 : e, 0), function() {
|
|
874
|
+
for (var i = arguments, n = -1, s = Nt(i.length - e, 0), a = Array(s); ++n < s; )
|
|
875
875
|
a[n] = i[e + n];
|
|
876
876
|
n = -1;
|
|
877
877
|
for (var o = Array(e + 1); ++n < e; )
|
|
878
878
|
o[n] = i[n];
|
|
879
|
-
return o[e] = t(a),
|
|
879
|
+
return o[e] = t(a), Lc(r, this, o);
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
var
|
|
883
|
-
function
|
|
882
|
+
var Pc = Ic;
|
|
883
|
+
function Mc(r) {
|
|
884
884
|
return function() {
|
|
885
885
|
return r;
|
|
886
886
|
};
|
|
887
887
|
}
|
|
888
|
-
var
|
|
888
|
+
var Rc = Mc, Gc = M, Bc = function() {
|
|
889
889
|
try {
|
|
890
|
-
var r =
|
|
890
|
+
var r = Gc(Object, "defineProperty");
|
|
891
891
|
return r({}, "", {}), r;
|
|
892
892
|
} catch {
|
|
893
893
|
}
|
|
894
|
-
}(),
|
|
895
|
-
return
|
|
894
|
+
}(), zc = Bc, jc = Rc, Dt = zc, Uc = ve, Vc = Dt ? function(r, e) {
|
|
895
|
+
return Dt(r, "toString", {
|
|
896
896
|
configurable: !0,
|
|
897
897
|
enumerable: !1,
|
|
898
|
-
value:
|
|
898
|
+
value: jc(e),
|
|
899
899
|
writable: !0
|
|
900
900
|
});
|
|
901
|
-
} :
|
|
902
|
-
function
|
|
901
|
+
} : Uc, kc = Vc, Hc = 800, Kc = 16, qc = Date.now;
|
|
902
|
+
function Yc(r) {
|
|
903
903
|
var e = 0, t = 0;
|
|
904
904
|
return function() {
|
|
905
|
-
var i =
|
|
905
|
+
var i = qc(), n = Kc - (i - t);
|
|
906
906
|
if (t = i, n > 0) {
|
|
907
|
-
if (++e >=
|
|
907
|
+
if (++e >= Hc)
|
|
908
908
|
return arguments[0];
|
|
909
909
|
} else
|
|
910
910
|
e = 0;
|
|
911
911
|
return r.apply(void 0, arguments);
|
|
912
912
|
};
|
|
913
913
|
}
|
|
914
|
-
var
|
|
914
|
+
var Wc = Yc, Jc = kc, Zc = Wc, Xc = Zc(Jc), Qc = Xc, eg = ve, tg = Pc, rg = Qc;
|
|
915
915
|
function ig(r, e) {
|
|
916
916
|
return rg(tg(r, e, eg), r + "");
|
|
917
917
|
}
|
|
918
|
-
var ng = ig, sg =
|
|
918
|
+
var ng = ig, sg = Re, ag = pe, og = je, ug = ge;
|
|
919
919
|
function lg(r, e, t) {
|
|
920
920
|
if (!ug(t))
|
|
921
921
|
return !1;
|
|
922
922
|
var i = typeof e;
|
|
923
923
|
return (i == "number" ? ag(t) && og(e, t.length) : i == "string" && e in t) ? sg(t[e], r) : !1;
|
|
924
924
|
}
|
|
925
|
-
var
|
|
925
|
+
var dg = lg, cg = Ju, gg = Dc, hg = ng, wt = dg, fg = hg(function(r, e) {
|
|
926
926
|
if (r == null)
|
|
927
927
|
return [];
|
|
928
928
|
var t = e.length;
|
|
929
|
-
return t > 1 &&
|
|
929
|
+
return t > 1 && wt(r, e[0], e[1]) ? e = [] : t > 2 && wt(e[0], e[1], e[2]) && (e = [e[0]]), gg(r, cg(e, 1), []);
|
|
930
930
|
}), pg = fg;
|
|
931
|
-
const
|
|
931
|
+
const G = /* @__PURE__ */ Me(pg), bg = /\S+\.(gif|jpe?g|tiff|png|bmp|svg)$/i, yg = [
|
|
932
932
|
"label",
|
|
933
933
|
"Label",
|
|
934
934
|
"name",
|
|
@@ -1189,17 +1189,17 @@ class u {
|
|
|
1189
1189
|
static formatCurrencyValue(e, t) {
|
|
1190
1190
|
const i = e < 0 ? "- " : "";
|
|
1191
1191
|
switch (t.format) {
|
|
1192
|
-
case
|
|
1192
|
+
case R.SYMBOL_COMMAS_DOT:
|
|
1193
1193
|
return `${i}${t.symbol !== void 0 ? t.symbol + " " : ""}${u.formatNumberToCurrency(e, ",", ".")}`;
|
|
1194
|
-
case
|
|
1194
|
+
case R.SYMBOL_COMMAS:
|
|
1195
1195
|
return `${i}${t.symbol !== void 0 ? t.symbol + " " : ""}${u.formatNumberToCurrency(e, ",")}`;
|
|
1196
|
-
case
|
|
1196
|
+
case R.DOTS_COMMA_SYMBOL:
|
|
1197
1197
|
return `${i}${u.formatNumberToCurrency(e, ".", ",")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1198
|
-
case
|
|
1198
|
+
case R.DOTS_SYMBOL:
|
|
1199
1199
|
return `${i}${u.formatNumberToCurrency(e, ".")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1200
|
-
case
|
|
1200
|
+
case R.SPACES_COMMA_SYMBOL:
|
|
1201
1201
|
return `${i}${u.formatNumberToCurrency(e, " ", ",")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1202
|
-
case
|
|
1202
|
+
case R.SPACES_SYMBOL:
|
|
1203
1203
|
return `${i}${u.formatNumberToCurrency(e, " ")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1204
1204
|
default:
|
|
1205
1205
|
throw Error(`Cannot format property value ${e}, unknown format ${t.format}.`);
|
|
@@ -1291,7 +1291,7 @@ class N {
|
|
|
1291
1291
|
}), s.join(" - ").trim()) : "";
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
|
-
var
|
|
1294
|
+
var dr = { exports: {} }, cr = { exports: {} };
|
|
1295
1295
|
(function() {
|
|
1296
1296
|
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", e = {
|
|
1297
1297
|
// Bit-wise rotation left
|
|
@@ -1355,18 +1355,18 @@ var cr = { exports: {} }, dr = { exports: {} };
|
|
|
1355
1355
|
return i;
|
|
1356
1356
|
}
|
|
1357
1357
|
};
|
|
1358
|
-
|
|
1358
|
+
cr.exports = e;
|
|
1359
1359
|
})();
|
|
1360
|
-
var vg =
|
|
1360
|
+
var vg = cr.exports, we = {
|
|
1361
1361
|
// UTF-8 encoding
|
|
1362
1362
|
utf8: {
|
|
1363
1363
|
// Convert a string to a byte array
|
|
1364
1364
|
stringToBytes: function(r) {
|
|
1365
|
-
return
|
|
1365
|
+
return we.bin.stringToBytes(unescape(encodeURIComponent(r)));
|
|
1366
1366
|
},
|
|
1367
1367
|
// Convert a byte array to a string
|
|
1368
1368
|
bytesToString: function(r) {
|
|
1369
|
-
return decodeURIComponent(escape(
|
|
1369
|
+
return decodeURIComponent(escape(we.bin.bytesToString(r)));
|
|
1370
1370
|
}
|
|
1371
1371
|
},
|
|
1372
1372
|
// Binary encoding
|
|
@@ -1384,34 +1384,34 @@ var vg = dr.exports, De = {
|
|
|
1384
1384
|
return e.join("");
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
},
|
|
1387
|
+
}, Ot = we;
|
|
1388
1388
|
(function() {
|
|
1389
|
-
var r = vg, e =
|
|
1389
|
+
var r = vg, e = Ot.utf8, t = Ot.bin, i = function(s) {
|
|
1390
1390
|
s.constructor == String ? s = e.stringToBytes(s) : typeof Buffer < "u" && typeof Buffer.isBuffer == "function" && Buffer.isBuffer(s) ? s = Array.prototype.slice.call(s, 0) : Array.isArray(s) || (s = s.toString());
|
|
1391
|
-
var a = r.bytesToWords(s), o = s.length * 8, l = [],
|
|
1391
|
+
var a = r.bytesToWords(s), o = s.length * 8, l = [], d = 1732584193, c = -271733879, g = -1732584194, h = 271733878, y = -1009589776;
|
|
1392
1392
|
a[o >> 5] |= 128 << 24 - o % 32, a[(o + 64 >>> 9 << 4) + 15] = o;
|
|
1393
1393
|
for (var m = 0; m < a.length; m += 16) {
|
|
1394
|
-
for (var
|
|
1395
|
-
if (
|
|
1396
|
-
l[
|
|
1394
|
+
for (var p = d, x = c, $ = g, T = h, ee = y, _ = 0; _ < 80; _++) {
|
|
1395
|
+
if (_ < 16)
|
|
1396
|
+
l[_] = a[m + _];
|
|
1397
1397
|
else {
|
|
1398
|
-
var
|
|
1399
|
-
l[
|
|
1398
|
+
var O = l[_ - 3] ^ l[_ - 8] ^ l[_ - 14] ^ l[_ - 16];
|
|
1399
|
+
l[_] = O << 1 | O >>> 31;
|
|
1400
1400
|
}
|
|
1401
|
-
var br = (
|
|
1402
|
-
y = h, h = g, g =
|
|
1401
|
+
var br = (d << 5 | d >>> 27) + y + (l[_] >>> 0) + (_ < 20 ? (c & g | ~c & h) + 1518500249 : _ < 40 ? (c ^ g ^ h) + 1859775393 : _ < 60 ? (c & g | c & h | g & h) - 1894007588 : (c ^ g ^ h) - 899497514);
|
|
1402
|
+
y = h, h = g, g = c << 30 | c >>> 2, c = d, d = br;
|
|
1403
1403
|
}
|
|
1404
|
-
|
|
1404
|
+
d += p, c += x, g += $, h += T, y += ee;
|
|
1405
1405
|
}
|
|
1406
|
-
return [
|
|
1406
|
+
return [d, c, g, h, y];
|
|
1407
1407
|
}, n = function(s, a) {
|
|
1408
1408
|
var o = r.wordsToBytes(i(s));
|
|
1409
1409
|
return a && a.asBytes ? o : a && a.asString ? t.bytesToString(o) : r.bytesToHex(o);
|
|
1410
1410
|
};
|
|
1411
|
-
n._blocksize = 16, n._digestsize = 20,
|
|
1411
|
+
n._blocksize = 16, n._digestsize = 20, dr.exports = n;
|
|
1412
1412
|
})();
|
|
1413
|
-
var _g =
|
|
1414
|
-
const
|
|
1413
|
+
var _g = dr.exports;
|
|
1414
|
+
const oe = /* @__PURE__ */ Me(_g), E = "#7f7f7f", Lt = [
|
|
1415
1415
|
"#9467bd",
|
|
1416
1416
|
"#e377c2",
|
|
1417
1417
|
"#1f77b4",
|
|
@@ -1431,7 +1431,7 @@ const ue = /* @__PURE__ */ Ie(_g), F = "#7f7f7f", Ot = [
|
|
|
1431
1431
|
"#ffbb78",
|
|
1432
1432
|
"#c49c94"
|
|
1433
1433
|
];
|
|
1434
|
-
class
|
|
1434
|
+
class A {
|
|
1435
1435
|
constructor(e) {
|
|
1436
1436
|
this.colorsCache = /* @__PURE__ */ new Map(), this._rulesMap = {}, this.refresh(e);
|
|
1437
1437
|
}
|
|
@@ -1452,19 +1452,19 @@ class $ {
|
|
|
1452
1452
|
* Return the color for a node when style color is auto
|
|
1453
1453
|
*/
|
|
1454
1454
|
static autoColor(e, t) {
|
|
1455
|
-
return u.isDefined(e) ?
|
|
1455
|
+
return u.isDefined(e) ? Lt[A.getRandomUniqueColorPaletteIndex(e, Lt.length, t)] : E;
|
|
1456
1456
|
}
|
|
1457
1457
|
/**
|
|
1458
1458
|
* Return a number from 0 to number of occurrence in a palette based on a property
|
|
1459
1459
|
*/
|
|
1460
1460
|
static getRandomUniqueColorPaletteIndex(e, t, i) {
|
|
1461
|
-
return i && (e = e.toLowerCase()), +("0x" +
|
|
1461
|
+
return i && (e = e.toLowerCase()), +("0x" + oe(e).substr(-4)) % t;
|
|
1462
1462
|
}
|
|
1463
1463
|
/**
|
|
1464
1464
|
* Get color of a type
|
|
1465
1465
|
*/
|
|
1466
1466
|
static getTypeColor(e, t) {
|
|
1467
|
-
return typeof e.style.color == "object" && e.style.color.input[0] !== "properties" ?
|
|
1467
|
+
return typeof e.style.color == "object" && e.style.color.input[0] !== "properties" ? A.autoColor(t, e.style.color.ignoreCase) : !u.isDefined(e.input) && typeof e.style.color != "object" ? e.style.color : null;
|
|
1468
1468
|
}
|
|
1469
1469
|
/**
|
|
1470
1470
|
* return the corresponding size to the value with a linear function
|
|
@@ -1501,7 +1501,7 @@ class $ {
|
|
|
1501
1501
|
return typeof e == "object" && (e == null ? void 0 : e.type) === "autoRange";
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
|
-
class
|
|
1504
|
+
class W extends A {
|
|
1505
1505
|
constructor(e) {
|
|
1506
1506
|
super(e);
|
|
1507
1507
|
}
|
|
@@ -1520,7 +1520,7 @@ class J extends $ {
|
|
|
1520
1520
|
*/
|
|
1521
1521
|
color(e) {
|
|
1522
1522
|
if (!u.isDefined(e))
|
|
1523
|
-
return
|
|
1523
|
+
return E;
|
|
1524
1524
|
let t;
|
|
1525
1525
|
for (let i = 0; i < this._rulesMap.color.length; ++i) {
|
|
1526
1526
|
const n = this._rulesMap.color[i];
|
|
@@ -1529,12 +1529,12 @@ class J extends $ {
|
|
|
1529
1529
|
t = n.style.color;
|
|
1530
1530
|
else if (typeof n.style.color == "object") {
|
|
1531
1531
|
const s = u.getIn(e, n.style.color.input);
|
|
1532
|
-
t =
|
|
1532
|
+
t = A.autoColor(`${s}`, n.style.color.ignoreCase);
|
|
1533
1533
|
}
|
|
1534
1534
|
break;
|
|
1535
1535
|
}
|
|
1536
1536
|
}
|
|
1537
|
-
return u.isDefined(t) ? t :
|
|
1537
|
+
return u.isDefined(t) ? t : E;
|
|
1538
1538
|
}
|
|
1539
1539
|
/**
|
|
1540
1540
|
* Generate shape for a given node
|
|
@@ -1542,20 +1542,20 @@ class J extends $ {
|
|
|
1542
1542
|
shape(e) {
|
|
1543
1543
|
var t;
|
|
1544
1544
|
if (this._rulesMap.shape !== void 0)
|
|
1545
|
-
return (t =
|
|
1545
|
+
return (t = W.matchStyle(this._rulesMap.shape, e)) == null ? void 0 : t.style.shape;
|
|
1546
1546
|
}
|
|
1547
1547
|
/**
|
|
1548
1548
|
* Generate size for a given node
|
|
1549
1549
|
*/
|
|
1550
1550
|
width(e) {
|
|
1551
1551
|
if (this._rulesMap.width !== void 0) {
|
|
1552
|
-
const t =
|
|
1552
|
+
const t = W.matchStyle(this._rulesMap.width, e);
|
|
1553
1553
|
if (t !== void 0) {
|
|
1554
1554
|
const i = t == null ? void 0 : t.style.width;
|
|
1555
1555
|
if (i !== void 0 && this.isAutoRange(i)) {
|
|
1556
1556
|
if (i.input !== void 0 && i.max !== void 0 && i.min !== void 0) {
|
|
1557
1557
|
const n = i.input[1], s = u.parseNumber(e.properties[n]), a = i.scale && i.scale === Vt.LOGARITHMIC;
|
|
1558
|
-
return
|
|
1558
|
+
return W.getAutomaticRangeWidth(s, t, a);
|
|
1559
1559
|
}
|
|
1560
1560
|
} else
|
|
1561
1561
|
return i;
|
|
@@ -1592,13 +1592,13 @@ class J extends $ {
|
|
|
1592
1592
|
shape: this.shape(e),
|
|
1593
1593
|
width: this.width(e)
|
|
1594
1594
|
} : {
|
|
1595
|
-
color:
|
|
1595
|
+
color: E,
|
|
1596
1596
|
shape: vr.ARROW,
|
|
1597
1597
|
width: "100%"
|
|
1598
1598
|
};
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
|
-
class
|
|
1601
|
+
class z extends A {
|
|
1602
1602
|
constructor(e) {
|
|
1603
1603
|
super(e);
|
|
1604
1604
|
}
|
|
@@ -1619,27 +1619,27 @@ class U extends $ {
|
|
|
1619
1619
|
*/
|
|
1620
1620
|
color(e) {
|
|
1621
1621
|
if (!u.isDefined(e))
|
|
1622
|
-
return [
|
|
1623
|
-
const t =
|
|
1622
|
+
return [E];
|
|
1623
|
+
const t = oe(JSON.stringify(e)), i = this.colorsCache.get(t);
|
|
1624
1624
|
if (i !== void 0)
|
|
1625
1625
|
return i;
|
|
1626
1626
|
let n = [];
|
|
1627
1627
|
for (let a = 0; a < e.categories.length; ++a) {
|
|
1628
1628
|
let o = null;
|
|
1629
1629
|
for (let l = 0; l < this._rulesMap.color.length; ++l) {
|
|
1630
|
-
const
|
|
1631
|
-
if (!(
|
|
1632
|
-
if (typeof
|
|
1633
|
-
const
|
|
1634
|
-
Array.isArray(
|
|
1630
|
+
const d = this._rulesMap.color[l];
|
|
1631
|
+
if (!(d.itemType !== void 0 && d.itemType !== null && d.itemType !== e.categories[a]) && d.canApplyTo(e)) {
|
|
1632
|
+
if (typeof d.style.color == "object") {
|
|
1633
|
+
const c = u.getIn(e, d.style.color.input);
|
|
1634
|
+
Array.isArray(c) ? o = A.autoColor(e.categories[a], d.style.color.ignoreCase) : o = A.autoColor(`${c}`, d.style.color.ignoreCase);
|
|
1635
1635
|
} else
|
|
1636
|
-
o =
|
|
1636
|
+
o = d.style.color;
|
|
1637
1637
|
break;
|
|
1638
1638
|
}
|
|
1639
1639
|
}
|
|
1640
1640
|
n.push(o);
|
|
1641
1641
|
}
|
|
1642
|
-
n = n.filter((a) => u.isDefined(a)), n.length === 0 && (n = [
|
|
1642
|
+
n = n.filter((a) => u.isDefined(a)), n.length === 0 && (n = [E]);
|
|
1643
1643
|
const s = n.length === 1 ? n[0] : n;
|
|
1644
1644
|
return this.colorsCache.set(t, s), s;
|
|
1645
1645
|
}
|
|
@@ -1658,28 +1658,28 @@ class U extends $ {
|
|
|
1658
1658
|
};
|
|
1659
1659
|
for (let l = 0; l < s.length; ++l)
|
|
1660
1660
|
if (s[l].canApplyTo(e)) {
|
|
1661
|
-
const
|
|
1662
|
-
if ("icon" in
|
|
1661
|
+
const d = s[l].style;
|
|
1662
|
+
if ("icon" in d && typeof d.icon == "object")
|
|
1663
1663
|
n = {
|
|
1664
1664
|
icon: {
|
|
1665
|
-
content: (a =
|
|
1666
|
-
font: (o =
|
|
1665
|
+
content: (a = d.icon) == null ? void 0 : a.content,
|
|
1666
|
+
font: (o = d.icon) == null ? void 0 : o.font,
|
|
1667
1667
|
scale: 0.5,
|
|
1668
|
-
color:
|
|
1668
|
+
color: j.isBright(i) ? "#000000" : "#FFFFFF"
|
|
1669
1669
|
}
|
|
1670
1670
|
};
|
|
1671
|
-
else if ("image" in
|
|
1672
|
-
const
|
|
1673
|
-
|
|
1671
|
+
else if ("image" in d && typeof d.image == "object") {
|
|
1672
|
+
const c = z.getImageUrlFromStyleRule(
|
|
1673
|
+
d.image.url,
|
|
1674
1674
|
e,
|
|
1675
1675
|
this._baseUrl
|
|
1676
1676
|
);
|
|
1677
|
-
|
|
1677
|
+
c !== void 0 && (n = {
|
|
1678
1678
|
image: {
|
|
1679
|
-
url:
|
|
1680
|
-
scale:
|
|
1681
|
-
fit:
|
|
1682
|
-
tile:
|
|
1679
|
+
url: c,
|
|
1680
|
+
scale: d.image.scale,
|
|
1681
|
+
fit: d.image.fit,
|
|
1682
|
+
tile: d.image.tile,
|
|
1683
1683
|
minVisibleSize: 0
|
|
1684
1684
|
}
|
|
1685
1685
|
});
|
|
@@ -1693,7 +1693,7 @@ class U extends $ {
|
|
|
1693
1693
|
*/
|
|
1694
1694
|
shape(e) {
|
|
1695
1695
|
let t;
|
|
1696
|
-
return this._rulesMap.shape !== void 0 &&
|
|
1696
|
+
return this._rulesMap.shape !== void 0 && z.matchStyle(this._rulesMap.shape, e, (i) => {
|
|
1697
1697
|
t = i.style.shape;
|
|
1698
1698
|
}), t;
|
|
1699
1699
|
}
|
|
@@ -1702,7 +1702,7 @@ class U extends $ {
|
|
|
1702
1702
|
*/
|
|
1703
1703
|
size(e) {
|
|
1704
1704
|
let t;
|
|
1705
|
-
return this._rulesMap.size !== void 0 &&
|
|
1705
|
+
return this._rulesMap.size !== void 0 && z.matchStyle(
|
|
1706
1706
|
this._rulesMap.size,
|
|
1707
1707
|
e,
|
|
1708
1708
|
(i) => {
|
|
@@ -1710,7 +1710,7 @@ class U extends $ {
|
|
|
1710
1710
|
if (this.isAutoRange(n)) {
|
|
1711
1711
|
if (n.input !== void 0 && n.max !== void 0 && n.min !== void 0) {
|
|
1712
1712
|
const s = n.input[1], a = u.parseNumber(e.properties[s]), o = n.scale && n.scale === Vt.LOGARITHMIC;
|
|
1713
|
-
t =
|
|
1713
|
+
t = z.getAutomaticRangeSize(a, i, o);
|
|
1714
1714
|
}
|
|
1715
1715
|
} else
|
|
1716
1716
|
t = n;
|
|
@@ -1744,7 +1744,7 @@ class U extends $ {
|
|
|
1744
1744
|
all(e) {
|
|
1745
1745
|
if (!u.isDefined(e))
|
|
1746
1746
|
return {
|
|
1747
|
-
color:
|
|
1747
|
+
color: E
|
|
1748
1748
|
};
|
|
1749
1749
|
const t = this.icon(e);
|
|
1750
1750
|
return {
|
|
@@ -1902,12 +1902,12 @@ class C {
|
|
|
1902
1902
|
*/
|
|
1903
1903
|
getTypeColor(e) {
|
|
1904
1904
|
let t;
|
|
1905
|
-
return C.checkItemType([e], this.itemType) && this.type === S.ANY && !u.isDefined(this.input) && (t =
|
|
1905
|
+
return C.checkItemType([e], this.itemType) && this.type === S.ANY && !u.isDefined(this.input) && (t = A.getTypeColor(this, e)), t;
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
|
-
var
|
|
1909
|
-
const
|
|
1910
|
-
class
|
|
1908
|
+
var w = /* @__PURE__ */ ((r) => (r.COLOR = "color", r.ICON = "icon", r.SIZE = "size", r.IMAGE = "image", r.SHAPE = "shape", r.WIDTH = "width", r))(w || {});
|
|
1909
|
+
const B = ["specificity", "itemType", "index"];
|
|
1910
|
+
class f {
|
|
1911
1911
|
constructor(e) {
|
|
1912
1912
|
this._rules = e;
|
|
1913
1913
|
}
|
|
@@ -1917,7 +1917,7 @@ class p {
|
|
|
1917
1917
|
* @return {Array<StyleRule>}
|
|
1918
1918
|
*/
|
|
1919
1919
|
get color() {
|
|
1920
|
-
return
|
|
1920
|
+
return G(f.getBy("color", this._rules), B);
|
|
1921
1921
|
}
|
|
1922
1922
|
/**
|
|
1923
1923
|
* Return an array of StyleRule with only 'icon' rules and sorted by specificity, itemType and index
|
|
@@ -1925,12 +1925,12 @@ class p {
|
|
|
1925
1925
|
* @return {Array<StyleRule>}
|
|
1926
1926
|
*/
|
|
1927
1927
|
get icon() {
|
|
1928
|
-
return
|
|
1928
|
+
return G(
|
|
1929
1929
|
[
|
|
1930
|
-
...
|
|
1931
|
-
...
|
|
1930
|
+
...f.getBy("icon", this._rules) || [],
|
|
1931
|
+
...f.getBy("image", this._rules) || []
|
|
1932
1932
|
],
|
|
1933
|
-
|
|
1933
|
+
B
|
|
1934
1934
|
);
|
|
1935
1935
|
}
|
|
1936
1936
|
/**
|
|
@@ -1939,7 +1939,7 @@ class p {
|
|
|
1939
1939
|
* @return {Array<StyleRule>}
|
|
1940
1940
|
*/
|
|
1941
1941
|
get image() {
|
|
1942
|
-
return
|
|
1942
|
+
return G(f.getBy("image", this._rules), B);
|
|
1943
1943
|
}
|
|
1944
1944
|
/**
|
|
1945
1945
|
* Return an array of StyleRule with only 'shape' rules and sorted by specificity, itemType and index
|
|
@@ -1947,7 +1947,7 @@ class p {
|
|
|
1947
1947
|
* @return {Array<StyleRule>}
|
|
1948
1948
|
*/
|
|
1949
1949
|
get shape() {
|
|
1950
|
-
return
|
|
1950
|
+
return G(f.getBy("shape", this._rules), B);
|
|
1951
1951
|
}
|
|
1952
1952
|
/**
|
|
1953
1953
|
* Return an array of StyleRule with only 'size' rules and sorted by specificity, itemType and index
|
|
@@ -1955,7 +1955,7 @@ class p {
|
|
|
1955
1955
|
* @return {Array<StyleRule>}
|
|
1956
1956
|
*/
|
|
1957
1957
|
get size() {
|
|
1958
|
-
return
|
|
1958
|
+
return G(f.getBy("size", this._rules), B);
|
|
1959
1959
|
}
|
|
1960
1960
|
/**
|
|
1961
1961
|
* Return an array of StyleRule with only 'width' rules and sorted by specificity, itemType and index
|
|
@@ -1963,7 +1963,7 @@ class p {
|
|
|
1963
1963
|
* @return {Array<StyleRule>}
|
|
1964
1964
|
*/
|
|
1965
1965
|
get width() {
|
|
1966
|
-
return
|
|
1966
|
+
return G(f.getBy("width", this._rules), B);
|
|
1967
1967
|
}
|
|
1968
1968
|
/**
|
|
1969
1969
|
* Return an object containing for each node style a sorted array of StyleRule
|
|
@@ -1997,13 +1997,13 @@ class p {
|
|
|
1997
1997
|
generateLegend(e) {
|
|
1998
1998
|
const t = {};
|
|
1999
1999
|
return e.length === 0 || ("categories" in e[0] ? Object.keys(this.nodeRules).forEach((i) => {
|
|
2000
|
-
t[i] =
|
|
2000
|
+
t[i] = f.getLegendForStyle(
|
|
2001
2001
|
i,
|
|
2002
2002
|
this.nodeRules[i],
|
|
2003
2003
|
e
|
|
2004
2004
|
);
|
|
2005
2005
|
}) : Object.keys(this.edgeRules).forEach((i) => {
|
|
2006
|
-
t[i] =
|
|
2006
|
+
t[i] = f.getLegendForStyle(
|
|
2007
2007
|
i,
|
|
2008
2008
|
this.edgeRules[i],
|
|
2009
2009
|
e
|
|
@@ -2017,18 +2017,18 @@ class p {
|
|
|
2017
2017
|
const n = [], s = i.filter((a) => a);
|
|
2018
2018
|
for (let a = 0; a < t.length; a++) {
|
|
2019
2019
|
const o = new C(t[a]);
|
|
2020
|
-
if (s.some((
|
|
2020
|
+
if (s.some((d) => o.canApplyTo(d)))
|
|
2021
2021
|
if (e === "color" && typeof o.style.color == "object")
|
|
2022
|
-
|
|
2022
|
+
f.addLegendAutoColors(s, o, n);
|
|
2023
2023
|
else if (e === "icon" && "image" in o.style) {
|
|
2024
|
-
const
|
|
2025
|
-
if (!(
|
|
2024
|
+
const d = u.isDefined(o.input) ? `${f.getTypeLabel(o.itemType)}.${o.input[1]} ${f.sanitizeValue(o.type, o.value)}` : `${f.getTypeLabel(o.itemType)}`, c = o.style.image;
|
|
2025
|
+
if (!(c.url && typeof c.url == "object" && c.url.type === "data")) {
|
|
2026
2026
|
const g = o.style.image;
|
|
2027
|
-
|
|
2027
|
+
f.updateLegend(n, { label: d, value: g });
|
|
2028
2028
|
}
|
|
2029
2029
|
} else {
|
|
2030
|
-
const
|
|
2031
|
-
|
|
2030
|
+
const d = u.isDefined(o.input) ? `${f.getTypeLabel(o.itemType)}.${o.input[1]} ${f.sanitizeValue(o.type, o.value)}` : `${f.getTypeLabel(o.itemType)}`, c = o.style[e];
|
|
2031
|
+
f.updateLegend(n, { label: d, value: c });
|
|
2032
2032
|
}
|
|
2033
2033
|
}
|
|
2034
2034
|
return n;
|
|
@@ -2059,12 +2059,12 @@ class p {
|
|
|
2059
2059
|
const o = u.getIn(a, n.input);
|
|
2060
2060
|
if (Array.isArray(o))
|
|
2061
2061
|
o.forEach((l) => {
|
|
2062
|
-
const
|
|
2063
|
-
|
|
2062
|
+
const d = n.input.includes("properties") ? `${f.getTypeLabel(t.itemType)}.${s} = ${l}` : `${f.getTypeLabel(l)}`, c = A.autoColor(l, n.ignoreCase);
|
|
2063
|
+
f.updateLegend(i, { label: d, value: c });
|
|
2064
2064
|
});
|
|
2065
2065
|
else {
|
|
2066
|
-
const l = n.input.includes("properties") ? `${
|
|
2067
|
-
|
|
2066
|
+
const l = n.input.includes("properties") ? `${f.getTypeLabel(t.itemType)}.${s} = ${o}` : `${f.getTypeLabel(o)}`, d = A.autoColor(o, n.ignoreCase);
|
|
2067
|
+
f.updateLegend(i, { label: l, value: d });
|
|
2068
2068
|
}
|
|
2069
2069
|
});
|
|
2070
2070
|
}
|
|
@@ -2079,7 +2079,7 @@ class p {
|
|
|
2079
2079
|
*/
|
|
2080
2080
|
getColorForType(e) {
|
|
2081
2081
|
const t = this.color.map((i) => i.getTypeColor(e)).filter((i) => u.isDefined(i));
|
|
2082
|
-
return t.length > 0 ? t[t.length - 1] :
|
|
2082
|
+
return t.length > 0 ? t[t.length - 1] : E;
|
|
2083
2083
|
}
|
|
2084
2084
|
/**
|
|
2085
2085
|
* Return the icon of item type from the list of styles
|
|
@@ -2117,7 +2117,7 @@ class p {
|
|
|
2117
2117
|
case "width":
|
|
2118
2118
|
return "width" in i.style && i.style.width !== void 0;
|
|
2119
2119
|
}
|
|
2120
|
-
}).map((i) =>
|
|
2120
|
+
}).map((i) => f.getRule(i, e));
|
|
2121
2121
|
}
|
|
2122
2122
|
/**
|
|
2123
2123
|
* From a RawStyle, generate a StyleRule of a specific style
|
|
@@ -2135,7 +2135,147 @@ class p {
|
|
|
2135
2135
|
return i.node = i.node.map((s) => (t.includes(s.index) ? (s.index = n, n++) : t.push(s.index), s)), i.edge = i.edge.map((s) => (t.includes(s.index) ? (s.index = n, n++) : t.push(s.index), s)), i;
|
|
2136
2136
|
}
|
|
2137
2137
|
}
|
|
2138
|
-
const
|
|
2138
|
+
const Ae = {
|
|
2139
|
+
lightsalmon: { hex: "#FFA07A", rgb: "rbg(255,160,122)" },
|
|
2140
|
+
salmon: { hex: "#FA8072", rgb: "rgb(250,128,114)" },
|
|
2141
|
+
darksalmon: { hex: "#E9967A", rgb: "rgb(233,150,122)" },
|
|
2142
|
+
lightcoral: { hex: "#F08080", rgb: "rgb(240,128,128)" },
|
|
2143
|
+
indianred: { hex: "#CD5C5C", rgb: "rgb(205,92,92)" },
|
|
2144
|
+
crimson: { hex: "#DC143C", rgb: "rgb(220,20,60)" },
|
|
2145
|
+
firebrick: { hex: "#B22222", rgb: "rgb(178,34,34)" },
|
|
2146
|
+
red: { hex: "#FF0000", rgb: "rgb(255,0,0)" },
|
|
2147
|
+
darkred: { hex: "#8B0000", rgb: "rgb(139,0,0)" },
|
|
2148
|
+
coral: { hex: "#FF7F50", rgb: "rgb(255,127,80)" },
|
|
2149
|
+
tomato: { hex: "#FF6347", rgb: "rgb(255,99,71)" },
|
|
2150
|
+
orangered: { hex: "#FF4500", rgb: "rgb(255,69,0)" },
|
|
2151
|
+
gold: { hex: "#FFD700", rgb: "rgb(255,215,0)" },
|
|
2152
|
+
orange: { hex: "#FFA500", rgb: "rgb(255,165,0)" },
|
|
2153
|
+
darkorange: { hex: "#FF8C00", rgb: "rgb(255,140,0)" },
|
|
2154
|
+
lightyellow: { hex: "#FFFFE0", rgb: "rgb(255,255,224)" },
|
|
2155
|
+
lemonchiffon: { hex: "#FFFACD", rgb: "rgb(255,250,205)" },
|
|
2156
|
+
lightgoldenrodyellow: { hex: "#FAFAD2", rgb: "rgb(250,250,210)" },
|
|
2157
|
+
papayawhip: { hex: "#FFEFD5", rgb: "rgb(255,239,213)" },
|
|
2158
|
+
moccasin: { hex: "#FFE4B5", rgb: "rgb(255,228,181)" },
|
|
2159
|
+
peachpuff: { hex: "#FFDAB9", rgb: "rgb(255,218,185)" },
|
|
2160
|
+
palegoldenrod: { hex: "#EEE8AA", rgb: "rgb(238,232,170)" },
|
|
2161
|
+
khaki: { hex: "#F0E68C", rgb: "rgb(240,230,140)" },
|
|
2162
|
+
darkkhaki: { hex: "#BDB76B", rgb: "rgb(189,183,107)" },
|
|
2163
|
+
yellow: { hex: "#FFFF00", rgb: "rgb(255,255,0)" },
|
|
2164
|
+
lawngreen: { hex: "#7CFC00", rgb: "rgb(124,252,0)" },
|
|
2165
|
+
chartreuse: { hex: "#7FFF00", rgb: "rgb(127,255,0)" },
|
|
2166
|
+
limegreen: { hex: "#32CD32", rgb: "rgb(50,205,50)" },
|
|
2167
|
+
lime: { hex: "#00FF00", rgb: "rgb(0.255.0)" },
|
|
2168
|
+
forestgreen: { hex: "#228B22", rgb: "rgb(34,139,34)" },
|
|
2169
|
+
green: { hex: "#008000", rgb: "rgb(0,128,0)" },
|
|
2170
|
+
darkgreen: { hex: "#006400", rgb: "rgb(0,100,0)" },
|
|
2171
|
+
greenyellow: { hex: "#ADFF2F", rgb: "rgb(173,255,47)" },
|
|
2172
|
+
yellowgreen: { hex: "#9ACD32", rgb: "rgb(154,205,50)" },
|
|
2173
|
+
springgreen: { hex: "#00FF7F", rgb: "rgb(0,255,127)" },
|
|
2174
|
+
mediumspringgreen: { hex: "#00FA9A", rgb: "rgb(0,250,154)" },
|
|
2175
|
+
lightgreen: { hex: "#90EE90", rgb: "rgb(144,238,144)" },
|
|
2176
|
+
palegreen: { hex: "#98FB98", rgb: "rgb(152,251,152)" },
|
|
2177
|
+
darkseagreen: { hex: "#8FBC8F", rgb: "rgb(143,188,143)" },
|
|
2178
|
+
mediumseagreen: { hex: "#3CB371", rgb: "rgb(60,179,113)" },
|
|
2179
|
+
seagreen: { hex: "#2E8B57", rgb: "rgb(46,139,87)" },
|
|
2180
|
+
olive: { hex: "#808000", rgb: "rgb(128,128,0)" },
|
|
2181
|
+
darkolivegreen: { hex: "#556B2F", rgb: "rgb(85,107,47)" },
|
|
2182
|
+
olivedrab: { hex: "#6B8E23", rgb: "rgb(107,142,35)" },
|
|
2183
|
+
lightcyan: { hex: "#E0FFFF", rgb: "rgb(224,255,255)" },
|
|
2184
|
+
cyan: { hex: "#00FFFF", rgb: "rgb(0,255,255)" },
|
|
2185
|
+
aqua: { hex: "#00FFFF", rgb: "rgb(0,255,255)" },
|
|
2186
|
+
aquamarine: { hex: "#7FFFD4", rgb: "rgb(127,255,212)" },
|
|
2187
|
+
mediumaquamarine: { hex: "#66CDAA", rgb: "rgb(102,205,170)" },
|
|
2188
|
+
paleturquoise: { hex: "#AFEEEE", rgb: "rgb(175,238,238)" },
|
|
2189
|
+
turquoise: { hex: "#40E0D0", rgb: "rgb(64,224,208)" },
|
|
2190
|
+
mediumturquoise: { hex: "#48D1CC", rgb: "rgb(72,209,204)" },
|
|
2191
|
+
darkturquoise: { hex: "#00CED1", rgb: "rgb(0,206,209)" },
|
|
2192
|
+
lightseagreen: { hex: "#20B2AA", rgb: "rgb(32,178,170)" },
|
|
2193
|
+
cadetblue: { hex: "#5F9EA0", rgb: "rgb(95,158,160)" },
|
|
2194
|
+
darkcyan: { hex: "#008B8B", rgb: "rgb(0,139,139)" },
|
|
2195
|
+
teal: { hex: "#008080", rgb: "rgb(0,128,128)" },
|
|
2196
|
+
powderblue: { hex: "#B0E0E6", rgb: "rgb(176,224,230)" },
|
|
2197
|
+
lightblue: { hex: "#ADD8E6", rgb: "rgb(173,216,230)" },
|
|
2198
|
+
lightskyblue: { hex: "#87CEFA", rgb: "rgb(135,206,250)" },
|
|
2199
|
+
skyblue: { hex: "#87CEEB", rgb: "rgb(135,206,235)" },
|
|
2200
|
+
deepskyblue: { hex: "#00BFFF", rgb: "rgb(0,191,255)" },
|
|
2201
|
+
lightsteelblue: { hex: "#B0C4DE", rgb: "rgb(176,196,222)" },
|
|
2202
|
+
dodgerblue: { hex: "#1E90FF", rgb: "rgb(30,144,255)" },
|
|
2203
|
+
cornflowerblue: { hex: "#6495ED", rgb: "rgb(100,149,237)" },
|
|
2204
|
+
steelblue: { hex: "#4682B4", rgb: "rgb(70,130,180)" },
|
|
2205
|
+
royalblue: { hex: "#4169E1", rgb: "rgb(65,105,225)" },
|
|
2206
|
+
blue: { hex: "#0000FF", rgb: "rgb(0,0,255)" },
|
|
2207
|
+
mediumblue: { hex: "#0000CD", rgb: "rgb(0,0,205)" },
|
|
2208
|
+
darkblue: { hex: "#00008B", rgb: "rgb(0,0,139)" },
|
|
2209
|
+
navy: { hex: "#000080", rgb: "rgb(0,0,128)" },
|
|
2210
|
+
midnightblue: { hex: "#191970", rgb: "rgb(25,25,112)" },
|
|
2211
|
+
mediumslateblue: { hex: "#7B68EE", rgb: "rgb(123,104,238)" },
|
|
2212
|
+
slateblue: { hex: "#6A5ACD", rgb: "rgb(106,90,205)" },
|
|
2213
|
+
darkslateblue: { hex: "#483D8B", rgb: "rgb(72,61,139)" },
|
|
2214
|
+
lavender: { hex: "#E6E6FA", rgb: "rgb(230,230,250)" },
|
|
2215
|
+
thistle: { hex: "#D8BFD8", rgb: "rgb(216,191,216)" },
|
|
2216
|
+
plum: { hex: "#DDA0DD", rgb: "rgb(221,160,221)" },
|
|
2217
|
+
violet: { hex: "#EE82EE", rgb: "rgb(238,130,238)" },
|
|
2218
|
+
orchid: { hex: "#DA70D6", rgb: "rgb(218,112,214)" },
|
|
2219
|
+
fuchsia: { hex: "#FF00FF", rgb: "rgb(255,0,255)" },
|
|
2220
|
+
magenta: { hex: "#FF00FF", rgb: "rgb(255,0,255)" },
|
|
2221
|
+
mediumorchid: { hex: "#BA55D3", rgb: "rgb(186,85,211)" },
|
|
2222
|
+
mediumpurple: { hex: "#9370DB", rgb: "rgb(147,112,219)" },
|
|
2223
|
+
blueviolet: { hex: "#8A2BE2", rgb: "rgb(138,43,226)" },
|
|
2224
|
+
darkviolet: { hex: "#9400D3", rgb: "rgb(148,0,211)" },
|
|
2225
|
+
darkorchid: { hex: "#9932CC", rgb: "rgb(153,50,204)" },
|
|
2226
|
+
darkmagenta: { hex: "#8B008B", rgb: "rgb(139,0,139)" },
|
|
2227
|
+
purple: { hex: "#800080", rgb: "rgb(128,0,128)" },
|
|
2228
|
+
indigo: { hex: "#4B0082", rgb: "rgb(75,0,130)" },
|
|
2229
|
+
pink: { hex: "#FFC0CB", rgb: "rgb(255,192,203)" },
|
|
2230
|
+
lightpink: { hex: "#FFB6C1", rgb: "rgb(255,182,193)" },
|
|
2231
|
+
hotpink: { hex: "#FF69B4", rgb: "rgb(255,105,180)" },
|
|
2232
|
+
deeppink: { hex: "#FF1493", rgb: "rgb(255,20,147)" },
|
|
2233
|
+
palevioletred: { hex: "#DB7093", rgb: "rgb(219,112,147)" },
|
|
2234
|
+
mediumvioletred: { hex: "#C71585", rgb: "rgb(199,21,133)" },
|
|
2235
|
+
white: { hex: "#FFFFFF", rgb: "rgb(255,255,255)" },
|
|
2236
|
+
snow: { hex: "#FFFAFA", rgb: "rgb(255,250,250)" },
|
|
2237
|
+
honeydew: { hex: "#F0FFF0", rgb: "rgb(240,255,240)" },
|
|
2238
|
+
mintcream: { hex: "#F5FFFA", rgb: "rgb(245,255,250)" },
|
|
2239
|
+
azure: { hex: "#F0FFFF", rgb: "rgb(240,255,255)" },
|
|
2240
|
+
aliceblue: { hex: "#F0F8FF", rgb: "rgb(240,248,255)" },
|
|
2241
|
+
ghostwhite: { hex: "#F8F8FF", rgb: "rgb(248,248,255)" },
|
|
2242
|
+
whitesmoke: { hex: "#F5F5F5", rgb: "rgb(245,245,245)" },
|
|
2243
|
+
seashell: { hex: "#FFF5EE", rgb: "rgb(255,245,238)" },
|
|
2244
|
+
beige: { hex: "#F5F5DC", rgb: "rgb(245,245,220)" },
|
|
2245
|
+
oldlace: { hex: "#FDF5E6", rgb: "rgb(253,245,230)" },
|
|
2246
|
+
floralwhite: { hex: "#FFFAF0", rgb: "rgb(255,250,240)" },
|
|
2247
|
+
ivory: { hex: "#FFFFF0", rgb: "rgb(255,255,240)" },
|
|
2248
|
+
antiquewhite: { hex: "#FAEBD7", rgb: "rgb(250,235,215)" },
|
|
2249
|
+
linen: { hex: "#FAF0E6", rgb: "rgb(250,240,230)" },
|
|
2250
|
+
lavenderblush: { hex: "#FFF0F5", rgb: "rgb(255,240,245)" },
|
|
2251
|
+
mistyrose: { hex: "#FFE4E1", rgb: "rgb(255,228,225)" },
|
|
2252
|
+
gainsboro: { hex: "#DCDCDC", rgb: "rgb(220,220,220)" },
|
|
2253
|
+
lightgray: { hex: "#D3D3D3", rgb: "rgb(211,211,211)" },
|
|
2254
|
+
silver: { hex: "#C0C0C0", rgb: "rgb(192,192,192)" },
|
|
2255
|
+
darkgray: { hex: "#A9A9A9", rgb: "rgb(169,169,169)" },
|
|
2256
|
+
gray: { hex: "#808080", rgb: "rgb(128,128,128)" },
|
|
2257
|
+
dimgray: { hex: "#696969", rgb: "rgb(105,105,105)" },
|
|
2258
|
+
lightslategray: { hex: "#778899", rgb: "rgb(119,136,153)" },
|
|
2259
|
+
slategray: { hex: "#708090", rgb: "rgb(112,128,144)" },
|
|
2260
|
+
darkslategray: { hex: "#2F4F4F", rgb: "rgb(47,79,79)" },
|
|
2261
|
+
black: { hex: "#000000", rgb: "rgb(0,0,0)" },
|
|
2262
|
+
cornsilk: { hex: "#FFF8DC", rgb: "rgb(255,248,220)" },
|
|
2263
|
+
blanchedalmond: { hex: "#FFEBCD", rgb: "rgb(255,235,205)" },
|
|
2264
|
+
bisque: { hex: "#FFE4C4", rgb: "rgb(255,228,196)" },
|
|
2265
|
+
navajowhite: { hex: "#FFDEAD", rgb: "rgb(255,222,173)" },
|
|
2266
|
+
wheat: { hex: "#F5DEB3", rgb: "rgb(245,222,179)" },
|
|
2267
|
+
burlywood: { hex: "#DEB887", rgb: "rgb(222,184,135)" },
|
|
2268
|
+
tan: { hex: "#D2B48C", rgb: "rgb(210,180,140)" },
|
|
2269
|
+
rosybrown: { hex: "#BC8F8F", rgb: "rgb(188,143,143)" },
|
|
2270
|
+
sandybrown: { hex: "#F4A460", rgb: "rgb(244,164,96)" },
|
|
2271
|
+
goldenrod: { hex: "#DAA520", rgb: "rgb(218,165,32)" },
|
|
2272
|
+
peru: { hex: "#CD853F", rgb: "rgb(205,133,63)" },
|
|
2273
|
+
chocolate: { hex: "#D2691E", rgb: "rgb(210,105,30)" },
|
|
2274
|
+
saddlebrown: { hex: "#8B4513", rgb: "rgb(139,69,19)" },
|
|
2275
|
+
sienna: { hex: "#A0522D", rgb: "rgb(160,82,45)" },
|
|
2276
|
+
brown: { hex: "#A52A2A", rgb: "rgb(165,42,42)" },
|
|
2277
|
+
maroon: { hex: "#800000", rgb: "rgb(128,0,0)" }
|
|
2278
|
+
}, ue = "#3F3D5F", gr = "'roboto', sans-serif", le = "#FFF", It = 0.2, Pt = {
|
|
2139
2279
|
text: {
|
|
2140
2280
|
style: "bold",
|
|
2141
2281
|
backgroundColor: "#fff",
|
|
@@ -2143,7 +2283,7 @@ const gr = "'roboto', sans-serif", Z = "#FFF", Lt = 0.2, Pt = {
|
|
|
2143
2283
|
},
|
|
2144
2284
|
outerStroke: { width: 2 },
|
|
2145
2285
|
outline: !1
|
|
2146
|
-
},
|
|
2286
|
+
}, Mt = {
|
|
2147
2287
|
text: {
|
|
2148
2288
|
style: "bold",
|
|
2149
2289
|
backgroundColor: "#fff",
|
|
@@ -2160,10 +2300,10 @@ const gr = "'roboto', sans-serif", Z = "#FFF", Lt = 0.2, Pt = {
|
|
|
2160
2300
|
color: "#FFF",
|
|
2161
2301
|
scalingMethod: "scaled",
|
|
2162
2302
|
width: 4
|
|
2163
|
-
},
|
|
2303
|
+
}, Rt = "#7f7f7f";
|
|
2164
2304
|
class Ag {
|
|
2165
2305
|
constructor(e, t) {
|
|
2166
|
-
this._nodeAttributes = new
|
|
2306
|
+
this._nodeAttributes = new z({}), this._edgeAttributes = new W({}), this._ogma = e, this._defaultConfiguration = t, this._nodeAttributes.setBaseUrl(t.baseUrl);
|
|
2167
2307
|
}
|
|
2168
2308
|
get nodeAttributes() {
|
|
2169
2309
|
return this._nodeAttributes;
|
|
@@ -2208,7 +2348,7 @@ class Ag {
|
|
|
2208
2348
|
*/
|
|
2209
2349
|
setEdgesDefaultStyles() {
|
|
2210
2350
|
var e;
|
|
2211
|
-
this._ogma.styles.setHoveredEdgeAttributes(
|
|
2351
|
+
this._ogma.styles.setHoveredEdgeAttributes(Mt), this._ogma.styles.setSelectedEdgeAttributes(Mt), this._edgeDefaultStylesRules = this._ogma.styles.addRule({
|
|
2212
2352
|
edgeAttributes: {
|
|
2213
2353
|
text: {
|
|
2214
2354
|
minVisibleSize: this._defaultConfiguration.edge.text !== void 0 && this._defaultConfiguration.edge.text.minVisibleSize ? this._defaultConfiguration.edge.text.minVisibleSize : 3,
|
|
@@ -2304,7 +2444,7 @@ class Ag {
|
|
|
2304
2444
|
this._ogma.styles.createClass({
|
|
2305
2445
|
name: "filtered",
|
|
2306
2446
|
nodeAttributes: {
|
|
2307
|
-
opacity:
|
|
2447
|
+
opacity: It,
|
|
2308
2448
|
layer: (e) => e.getMetaNode() !== null ? 1 : -1,
|
|
2309
2449
|
detectable: !1,
|
|
2310
2450
|
badges: {
|
|
@@ -2319,7 +2459,7 @@ class Ag {
|
|
|
2319
2459
|
color: "rgb(240, 240, 240)",
|
|
2320
2460
|
innerStroke: {
|
|
2321
2461
|
width: 1,
|
|
2322
|
-
color:
|
|
2462
|
+
color: E,
|
|
2323
2463
|
minVisibleSize: 1
|
|
2324
2464
|
},
|
|
2325
2465
|
shape: "circle",
|
|
@@ -2328,14 +2468,14 @@ class Ag {
|
|
|
2328
2468
|
radius: "50%"
|
|
2329
2469
|
},
|
|
2330
2470
|
edgeAttributes: {
|
|
2331
|
-
opacity:
|
|
2471
|
+
opacity: It,
|
|
2332
2472
|
layer: (e) => {
|
|
2333
2473
|
const t = e.getExtremities().getMetaNode().some((i) => i !== null);
|
|
2334
2474
|
return !e.isVirtual() && t ? 1 : -1;
|
|
2335
2475
|
},
|
|
2336
2476
|
detectable: !1,
|
|
2337
2477
|
text: null,
|
|
2338
|
-
color:
|
|
2478
|
+
color: E,
|
|
2339
2479
|
shape: "line",
|
|
2340
2480
|
width: 0.2
|
|
2341
2481
|
}
|
|
@@ -2379,24 +2519,24 @@ class Ag {
|
|
|
2379
2519
|
name: "degreeIndicator",
|
|
2380
2520
|
nodeAttributes: {
|
|
2381
2521
|
badges: {
|
|
2382
|
-
|
|
2522
|
+
bottomLeft: (e) => {
|
|
2383
2523
|
if (e !== void 0) {
|
|
2384
2524
|
const t = u.getHiddenNeighbors(e.toList()), i = u.formatNumber(t);
|
|
2385
2525
|
if (t > 0) {
|
|
2386
|
-
const n =
|
|
2387
|
-
let
|
|
2388
|
-
return +i != 0 && (
|
|
2389
|
-
color:
|
|
2526
|
+
const n = e.getData(["statistics", "supernode"]);
|
|
2527
|
+
let s = null;
|
|
2528
|
+
return +i != 0 && (s = n ? i + "+" : i), {
|
|
2529
|
+
color: ue,
|
|
2390
2530
|
minVisibleSize: 20,
|
|
2391
2531
|
stroke: {
|
|
2392
|
-
width:
|
|
2393
|
-
color:
|
|
2532
|
+
width: 2,
|
|
2533
|
+
color: "#FFFFFF"
|
|
2394
2534
|
},
|
|
2395
2535
|
text: {
|
|
2396
2536
|
font: this._defaultConfiguration.node.text !== void 0 && this._defaultConfiguration.node.text.font !== void 0 ? this._defaultConfiguration.node.text.font : gr,
|
|
2397
2537
|
scale: 0.4,
|
|
2398
|
-
color:
|
|
2399
|
-
content:
|
|
2538
|
+
color: le,
|
|
2539
|
+
content: s
|
|
2400
2540
|
}
|
|
2401
2541
|
};
|
|
2402
2542
|
}
|
|
@@ -2408,20 +2548,20 @@ class Ag {
|
|
|
2408
2548
|
name: "pinnedIndicator",
|
|
2409
2549
|
nodeAttributes: {
|
|
2410
2550
|
badges: {
|
|
2411
|
-
|
|
2551
|
+
topRight: (e) => {
|
|
2412
2552
|
if (e !== void 0 && !e.getAttribute("layoutable"))
|
|
2413
2553
|
return {
|
|
2414
|
-
color:
|
|
2554
|
+
color: ue,
|
|
2415
2555
|
minVisibleSize: 20,
|
|
2416
2556
|
scale: this._findPinBadgeScale(e),
|
|
2417
2557
|
stroke: {
|
|
2418
|
-
width:
|
|
2419
|
-
color:
|
|
2558
|
+
width: 2,
|
|
2559
|
+
color: "#FFFFFF"
|
|
2420
2560
|
},
|
|
2421
2561
|
text: {
|
|
2422
2562
|
font: "FontAwesome",
|
|
2423
2563
|
scale: 0.4,
|
|
2424
|
-
color:
|
|
2564
|
+
color: le,
|
|
2425
2565
|
content: e.getAttribute("layoutable") ? null : ""
|
|
2426
2566
|
}
|
|
2427
2567
|
};
|
|
@@ -2473,51 +2613,51 @@ class Ag {
|
|
|
2473
2613
|
* Return an array of StyleRules with only the style that need to be applied
|
|
2474
2614
|
*/
|
|
2475
2615
|
getStyleRule(e, t) {
|
|
2476
|
-
return new
|
|
2616
|
+
return new f(e)[t];
|
|
2477
2617
|
}
|
|
2478
2618
|
initNodeColors(e) {
|
|
2479
2619
|
const t = this.getStyleRule(
|
|
2480
2620
|
e,
|
|
2481
|
-
|
|
2621
|
+
w.COLOR
|
|
2482
2622
|
);
|
|
2483
2623
|
this.refreshNodeColors(t);
|
|
2484
2624
|
}
|
|
2485
2625
|
initNodesIcons(e) {
|
|
2486
2626
|
const t = this.getStyleRule(
|
|
2487
2627
|
e,
|
|
2488
|
-
|
|
2628
|
+
w.ICON
|
|
2489
2629
|
);
|
|
2490
2630
|
this.refreshNodeIcons(t);
|
|
2491
2631
|
}
|
|
2492
2632
|
initNodesSizes(e) {
|
|
2493
|
-
const t = this.getStyleRule(e,
|
|
2633
|
+
const t = this.getStyleRule(e, w.SIZE);
|
|
2494
2634
|
this.refreshNodeSize(t);
|
|
2495
2635
|
}
|
|
2496
2636
|
initNodesShapes(e) {
|
|
2497
2637
|
const t = this.getStyleRule(
|
|
2498
2638
|
e,
|
|
2499
|
-
|
|
2639
|
+
w.SHAPE
|
|
2500
2640
|
);
|
|
2501
2641
|
this.refreshNodeShape(t);
|
|
2502
2642
|
}
|
|
2503
2643
|
initEdgesWidth(e) {
|
|
2504
2644
|
const t = this.getStyleRule(
|
|
2505
2645
|
e,
|
|
2506
|
-
|
|
2646
|
+
w.WIDTH
|
|
2507
2647
|
);
|
|
2508
2648
|
this.refreshEdgeWidth(t);
|
|
2509
2649
|
}
|
|
2510
2650
|
initEdgesShape(e) {
|
|
2511
2651
|
const t = this.getStyleRule(
|
|
2512
2652
|
e,
|
|
2513
|
-
|
|
2653
|
+
w.SHAPE
|
|
2514
2654
|
);
|
|
2515
2655
|
this.refreshEdgeShape(t);
|
|
2516
2656
|
}
|
|
2517
2657
|
initEdgesColor(e) {
|
|
2518
2658
|
const t = this.getStyleRule(
|
|
2519
2659
|
e,
|
|
2520
|
-
|
|
2660
|
+
w.COLOR
|
|
2521
2661
|
);
|
|
2522
2662
|
this.refreshEdgeColors(t);
|
|
2523
2663
|
}
|
|
@@ -2624,19 +2764,6 @@ class Ag {
|
|
|
2624
2764
|
edgeDependencies: { self: { data: !0 } }
|
|
2625
2765
|
}));
|
|
2626
2766
|
}
|
|
2627
|
-
/**
|
|
2628
|
-
* Get node radius
|
|
2629
|
-
* This is a workaround for an ogma issue where the radius of virtual nodes is always set to 5
|
|
2630
|
-
* TODO: check if this is still needed after ogma release the new improvement for transformation v5.X
|
|
2631
|
-
*/
|
|
2632
|
-
_getNodeRadius(e) {
|
|
2633
|
-
var t;
|
|
2634
|
-
if (e.isVirtual()) {
|
|
2635
|
-
const { width: i, height: n } = (t = e.getSubNodes()) == null ? void 0 : t.getBoundingBox();
|
|
2636
|
-
return Math.max(i, n);
|
|
2637
|
-
} else
|
|
2638
|
-
return e.getAttribute("radius");
|
|
2639
|
-
}
|
|
2640
2767
|
/**
|
|
2641
2768
|
* Calculate the scale of the pin badge related to the node radius
|
|
2642
2769
|
* This is useful when dealing wih huge nodes, and we don't want the badge to be big
|
|
@@ -2647,19 +2774,12 @@ class Ag {
|
|
|
2647
2774
|
return this._getNodeRadius(e) * 0.46 > 5 ? 0.17 : 0.46;
|
|
2648
2775
|
}
|
|
2649
2776
|
/**
|
|
2650
|
-
*
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
if (e.isVirtual())
|
|
2654
|
-
return Z;
|
|
2655
|
-
const t = Array.isArray(e.getAttribute("color")) ? e.getAttribute("color")[0] : e.getAttribute("color");
|
|
2656
|
-
return D.isBright(t) ? Mt : Z;
|
|
2657
|
-
}
|
|
2658
|
-
/**
|
|
2659
|
-
* Find the color of the pin badge background
|
|
2777
|
+
* Get node radius
|
|
2778
|
+
* This is a workaround for an ogma issue where the radius of virtual nodes is always set to 5.x
|
|
2779
|
+
* The issue is still present in Ogma 5.2
|
|
2660
2780
|
*/
|
|
2661
|
-
|
|
2662
|
-
return e.isVirtual() ?
|
|
2781
|
+
_getNodeRadius(e) {
|
|
2782
|
+
return !e.isVirtual() || j.isGroupCollapsed(e) ? e.getAttribute("radius") : this._ogma.transformations.getXYR(e.toList())[0].radius;
|
|
2663
2783
|
}
|
|
2664
2784
|
}
|
|
2665
2785
|
class xg {
|
|
@@ -2736,11 +2856,11 @@ class xg {
|
|
|
2736
2856
|
return this.edgesCaptionsRule.refresh();
|
|
2737
2857
|
}
|
|
2738
2858
|
}
|
|
2739
|
-
function
|
|
2859
|
+
function P(r) {
|
|
2740
2860
|
return typeof r == "function";
|
|
2741
2861
|
}
|
|
2742
2862
|
function Eg(r) {
|
|
2743
|
-
return
|
|
2863
|
+
return P(r == null ? void 0 : r.lift);
|
|
2744
2864
|
}
|
|
2745
2865
|
function hr(r) {
|
|
2746
2866
|
return function(e) {
|
|
@@ -2755,23 +2875,23 @@ function hr(r) {
|
|
|
2755
2875
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
2756
2876
|
};
|
|
2757
2877
|
}
|
|
2758
|
-
var
|
|
2759
|
-
return
|
|
2878
|
+
var Oe = function(r, e) {
|
|
2879
|
+
return Oe = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
|
|
2760
2880
|
t.__proto__ = i;
|
|
2761
2881
|
} || function(t, i) {
|
|
2762
2882
|
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]);
|
|
2763
|
-
},
|
|
2883
|
+
}, Oe(r, e);
|
|
2764
2884
|
};
|
|
2765
|
-
function
|
|
2885
|
+
function Ye(r, e) {
|
|
2766
2886
|
if (typeof e != "function" && e !== null)
|
|
2767
2887
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
2768
|
-
|
|
2888
|
+
Oe(r, e);
|
|
2769
2889
|
function t() {
|
|
2770
2890
|
this.constructor = r;
|
|
2771
2891
|
}
|
|
2772
2892
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
2773
2893
|
}
|
|
2774
|
-
function
|
|
2894
|
+
function Gt(r) {
|
|
2775
2895
|
var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], i = 0;
|
|
2776
2896
|
if (t) return t.call(r);
|
|
2777
2897
|
if (r && typeof r.length == "number") return {
|
|
@@ -2781,7 +2901,7 @@ function Bt(r) {
|
|
|
2781
2901
|
};
|
|
2782
2902
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2783
2903
|
}
|
|
2784
|
-
function
|
|
2904
|
+
function Le(r, e) {
|
|
2785
2905
|
var t = typeof Symbol == "function" && r[Symbol.iterator];
|
|
2786
2906
|
if (!t) return r;
|
|
2787
2907
|
var i = t.call(r), n, s = [], a;
|
|
@@ -2798,7 +2918,7 @@ function Oe(r, e) {
|
|
|
2798
2918
|
}
|
|
2799
2919
|
return s;
|
|
2800
2920
|
}
|
|
2801
|
-
function
|
|
2921
|
+
function Ie(r, e, t) {
|
|
2802
2922
|
if (t || arguments.length === 2) for (var i = 0, n = e.length, s; i < n; i++)
|
|
2803
2923
|
(s || !(i in e)) && (s || (s = Array.prototype.slice.call(e, 0, i)), s[i] = e[i]);
|
|
2804
2924
|
return r.concat(s || Array.prototype.slice.call(e));
|
|
@@ -2809,7 +2929,7 @@ function Fg(r) {
|
|
|
2809
2929
|
}, t = r(e);
|
|
2810
2930
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
2811
2931
|
}
|
|
2812
|
-
var
|
|
2932
|
+
var xe = Fg(function(r) {
|
|
2813
2933
|
return function(t) {
|
|
2814
2934
|
r(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
2815
2935
|
` + t.map(function(i, n) {
|
|
@@ -2818,13 +2938,13 @@ var Se = Fg(function(r) {
|
|
|
2818
2938
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
2819
2939
|
};
|
|
2820
2940
|
});
|
|
2821
|
-
function
|
|
2941
|
+
function Bt(r, e) {
|
|
2822
2942
|
if (r) {
|
|
2823
2943
|
var t = r.indexOf(e);
|
|
2824
2944
|
0 <= t && r.splice(t, 1);
|
|
2825
2945
|
}
|
|
2826
2946
|
}
|
|
2827
|
-
var
|
|
2947
|
+
var We = function() {
|
|
2828
2948
|
function r(e) {
|
|
2829
2949
|
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
2830
2950
|
}
|
|
@@ -2836,12 +2956,12 @@ var Ye = function() {
|
|
|
2836
2956
|
if (a)
|
|
2837
2957
|
if (this._parentage = null, Array.isArray(a))
|
|
2838
2958
|
try {
|
|
2839
|
-
for (var o =
|
|
2840
|
-
var
|
|
2841
|
-
|
|
2959
|
+
for (var o = Gt(a), l = o.next(); !l.done; l = o.next()) {
|
|
2960
|
+
var d = l.value;
|
|
2961
|
+
d.remove(this);
|
|
2842
2962
|
}
|
|
2843
|
-
} catch (
|
|
2844
|
-
e = { error:
|
|
2963
|
+
} catch (p) {
|
|
2964
|
+
e = { error: p };
|
|
2845
2965
|
} finally {
|
|
2846
2966
|
try {
|
|
2847
2967
|
l && !l.done && (t = o.return) && t.call(o);
|
|
@@ -2851,27 +2971,27 @@ var Ye = function() {
|
|
|
2851
2971
|
}
|
|
2852
2972
|
else
|
|
2853
2973
|
a.remove(this);
|
|
2854
|
-
var
|
|
2855
|
-
if (
|
|
2974
|
+
var c = this.initialTeardown;
|
|
2975
|
+
if (P(c))
|
|
2856
2976
|
try {
|
|
2857
|
-
|
|
2858
|
-
} catch (
|
|
2859
|
-
s =
|
|
2977
|
+
c();
|
|
2978
|
+
} catch (p) {
|
|
2979
|
+
s = p instanceof xe ? p.errors : [p];
|
|
2860
2980
|
}
|
|
2861
2981
|
var g = this._finalizers;
|
|
2862
2982
|
if (g) {
|
|
2863
2983
|
this._finalizers = null;
|
|
2864
2984
|
try {
|
|
2865
|
-
for (var h =
|
|
2985
|
+
for (var h = Gt(g), y = h.next(); !y.done; y = h.next()) {
|
|
2866
2986
|
var m = y.value;
|
|
2867
2987
|
try {
|
|
2868
2988
|
zt(m);
|
|
2869
|
-
} catch (
|
|
2870
|
-
s = s ?? [],
|
|
2989
|
+
} catch (p) {
|
|
2990
|
+
s = s ?? [], p instanceof xe ? s = Ie(Ie([], Le(s)), Le(p.errors)) : s.push(p);
|
|
2871
2991
|
}
|
|
2872
2992
|
}
|
|
2873
|
-
} catch (
|
|
2874
|
-
i = { error:
|
|
2993
|
+
} catch (p) {
|
|
2994
|
+
i = { error: p };
|
|
2875
2995
|
} finally {
|
|
2876
2996
|
try {
|
|
2877
2997
|
y && !y.done && (n = h.return) && n.call(h);
|
|
@@ -2881,7 +3001,7 @@ var Ye = function() {
|
|
|
2881
3001
|
}
|
|
2882
3002
|
}
|
|
2883
3003
|
if (s)
|
|
2884
|
-
throw new
|
|
3004
|
+
throw new xe(s);
|
|
2885
3005
|
}
|
|
2886
3006
|
}, r.prototype.add = function(e) {
|
|
2887
3007
|
var t;
|
|
@@ -2904,21 +3024,21 @@ var Ye = function() {
|
|
|
2904
3024
|
this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
|
|
2905
3025
|
}, r.prototype._removeParent = function(e) {
|
|
2906
3026
|
var t = this._parentage;
|
|
2907
|
-
t === e ? this._parentage = null : Array.isArray(t) &&
|
|
3027
|
+
t === e ? this._parentage = null : Array.isArray(t) && Bt(t, e);
|
|
2908
3028
|
}, r.prototype.remove = function(e) {
|
|
2909
3029
|
var t = this._finalizers;
|
|
2910
|
-
t &&
|
|
3030
|
+
t && Bt(t, e), e instanceof r && e._removeParent(this);
|
|
2911
3031
|
}, r.EMPTY = function() {
|
|
2912
3032
|
var e = new r();
|
|
2913
3033
|
return e.closed = !0, e;
|
|
2914
3034
|
}(), r;
|
|
2915
3035
|
}();
|
|
2916
|
-
|
|
3036
|
+
We.EMPTY;
|
|
2917
3037
|
function $g(r) {
|
|
2918
|
-
return r instanceof
|
|
3038
|
+
return r instanceof We || r && "closed" in r && P(r.remove) && P(r.add) && P(r.unsubscribe);
|
|
2919
3039
|
}
|
|
2920
3040
|
function zt(r) {
|
|
2921
|
-
|
|
3041
|
+
P(r) ? r() : r.unsubscribe();
|
|
2922
3042
|
}
|
|
2923
3043
|
var Tg = {
|
|
2924
3044
|
useDeprecatedNextContext: !1
|
|
@@ -2926,7 +3046,7 @@ var Tg = {
|
|
|
2926
3046
|
setTimeout: function(r, e) {
|
|
2927
3047
|
for (var t = [], i = 2; i < arguments.length; i++)
|
|
2928
3048
|
t[i - 2] = arguments[i];
|
|
2929
|
-
return setTimeout.apply(void 0,
|
|
3049
|
+
return setTimeout.apply(void 0, Ie([r, e], Le(t)));
|
|
2930
3050
|
},
|
|
2931
3051
|
clearTimeout: function(r) {
|
|
2932
3052
|
return clearTimeout(r);
|
|
@@ -2941,10 +3061,10 @@ function Dg(r) {
|
|
|
2941
3061
|
function jt() {
|
|
2942
3062
|
}
|
|
2943
3063
|
var fr = function(r) {
|
|
2944
|
-
|
|
3064
|
+
Ye(e, r);
|
|
2945
3065
|
function e(t) {
|
|
2946
3066
|
var i = r.call(this) || this;
|
|
2947
|
-
return i.isStopped = !1, t ? (i.destination = t, $g(t) && t.add(i)) : i.destination =
|
|
3067
|
+
return i.isStopped = !1, t ? (i.destination = t, $g(t) && t.add(i)) : i.destination = Pg, i;
|
|
2948
3068
|
}
|
|
2949
3069
|
return e.create = function(t, i, n) {
|
|
2950
3070
|
return new Lg(t, i, n);
|
|
@@ -2971,8 +3091,8 @@ var fr = function(r) {
|
|
|
2971
3091
|
this.unsubscribe();
|
|
2972
3092
|
}
|
|
2973
3093
|
}, e;
|
|
2974
|
-
}(
|
|
2975
|
-
function
|
|
3094
|
+
}(We), wg = Function.prototype.bind;
|
|
3095
|
+
function Ee(r, e) {
|
|
2976
3096
|
return wg.call(r, e);
|
|
2977
3097
|
}
|
|
2978
3098
|
var Og = function() {
|
|
@@ -2985,7 +3105,7 @@ var Og = function() {
|
|
|
2985
3105
|
try {
|
|
2986
3106
|
t.next(e);
|
|
2987
3107
|
} catch (i) {
|
|
2988
|
-
|
|
3108
|
+
ie(i);
|
|
2989
3109
|
}
|
|
2990
3110
|
}, r.prototype.error = function(e) {
|
|
2991
3111
|
var t = this.partialObserver;
|
|
@@ -2993,24 +3113,24 @@ var Og = function() {
|
|
|
2993
3113
|
try {
|
|
2994
3114
|
t.error(e);
|
|
2995
3115
|
} catch (i) {
|
|
2996
|
-
|
|
3116
|
+
ie(i);
|
|
2997
3117
|
}
|
|
2998
3118
|
else
|
|
2999
|
-
|
|
3119
|
+
ie(e);
|
|
3000
3120
|
}, r.prototype.complete = function() {
|
|
3001
3121
|
var e = this.partialObserver;
|
|
3002
3122
|
if (e.complete)
|
|
3003
3123
|
try {
|
|
3004
3124
|
e.complete();
|
|
3005
3125
|
} catch (t) {
|
|
3006
|
-
|
|
3126
|
+
ie(t);
|
|
3007
3127
|
}
|
|
3008
3128
|
}, r;
|
|
3009
3129
|
}(), Lg = function(r) {
|
|
3010
|
-
|
|
3130
|
+
Ye(e, r);
|
|
3011
3131
|
function e(t, i, n) {
|
|
3012
3132
|
var s = r.call(this) || this, a;
|
|
3013
|
-
if (
|
|
3133
|
+
if (P(t) || !t)
|
|
3014
3134
|
a = {
|
|
3015
3135
|
next: t ?? void 0,
|
|
3016
3136
|
error: i ?? void 0,
|
|
@@ -3021,25 +3141,25 @@ var Og = function() {
|
|
|
3021
3141
|
s && Tg.useDeprecatedNextContext ? (o = Object.create(t), o.unsubscribe = function() {
|
|
3022
3142
|
return s.unsubscribe();
|
|
3023
3143
|
}, a = {
|
|
3024
|
-
next: t.next &&
|
|
3025
|
-
error: t.error &&
|
|
3026
|
-
complete: t.complete &&
|
|
3144
|
+
next: t.next && Ee(t.next, o),
|
|
3145
|
+
error: t.error && Ee(t.error, o),
|
|
3146
|
+
complete: t.complete && Ee(t.complete, o)
|
|
3027
3147
|
}) : a = t;
|
|
3028
3148
|
}
|
|
3029
3149
|
return s.destination = new Og(a), s;
|
|
3030
3150
|
}
|
|
3031
3151
|
return e;
|
|
3032
3152
|
}(fr);
|
|
3033
|
-
function
|
|
3153
|
+
function ie(r) {
|
|
3034
3154
|
Dg(r);
|
|
3035
3155
|
}
|
|
3036
|
-
function
|
|
3156
|
+
function Ig(r) {
|
|
3037
3157
|
throw r;
|
|
3038
3158
|
}
|
|
3039
|
-
var
|
|
3159
|
+
var Pg = {
|
|
3040
3160
|
closed: !0,
|
|
3041
3161
|
next: jt,
|
|
3042
|
-
error:
|
|
3162
|
+
error: Ig,
|
|
3043
3163
|
complete: jt
|
|
3044
3164
|
};
|
|
3045
3165
|
function Mg(r) {
|
|
@@ -3049,28 +3169,28 @@ function pr(r, e, t, i, n) {
|
|
|
3049
3169
|
return new Rg(r, e, t, i, n);
|
|
3050
3170
|
}
|
|
3051
3171
|
var Rg = function(r) {
|
|
3052
|
-
|
|
3172
|
+
Ye(e, r);
|
|
3053
3173
|
function e(t, i, n, s, a, o) {
|
|
3054
3174
|
var l = r.call(this, t) || this;
|
|
3055
|
-
return l.onFinalize = a, l.shouldUnsubscribe = o, l._next = i ? function(
|
|
3175
|
+
return l.onFinalize = a, l.shouldUnsubscribe = o, l._next = i ? function(d) {
|
|
3056
3176
|
try {
|
|
3057
|
-
i(
|
|
3058
|
-
} catch (
|
|
3059
|
-
t.error(
|
|
3177
|
+
i(d);
|
|
3178
|
+
} catch (c) {
|
|
3179
|
+
t.error(c);
|
|
3060
3180
|
}
|
|
3061
|
-
} : r.prototype._next, l._error = s ? function(
|
|
3181
|
+
} : r.prototype._next, l._error = s ? function(d) {
|
|
3062
3182
|
try {
|
|
3063
|
-
s(
|
|
3064
|
-
} catch (
|
|
3065
|
-
t.error(
|
|
3183
|
+
s(d);
|
|
3184
|
+
} catch (c) {
|
|
3185
|
+
t.error(c);
|
|
3066
3186
|
} finally {
|
|
3067
3187
|
this.unsubscribe();
|
|
3068
3188
|
}
|
|
3069
3189
|
} : r.prototype._error, l._complete = n ? function() {
|
|
3070
3190
|
try {
|
|
3071
3191
|
n();
|
|
3072
|
-
} catch (
|
|
3073
|
-
t.error(
|
|
3192
|
+
} catch (d) {
|
|
3193
|
+
t.error(d);
|
|
3074
3194
|
} finally {
|
|
3075
3195
|
this.unsubscribe();
|
|
3076
3196
|
}
|
|
@@ -3084,7 +3204,7 @@ var Rg = function(r) {
|
|
|
3084
3204
|
}
|
|
3085
3205
|
}, e;
|
|
3086
3206
|
}(fr);
|
|
3087
|
-
function
|
|
3207
|
+
function Gg(r, e) {
|
|
3088
3208
|
return hr(function(t, i) {
|
|
3089
3209
|
var n = 0;
|
|
3090
3210
|
t.subscribe(pr(i, function(s) {
|
|
@@ -3092,7 +3212,7 @@ function Bg(r, e) {
|
|
|
3092
3212
|
}));
|
|
3093
3213
|
});
|
|
3094
3214
|
}
|
|
3095
|
-
function
|
|
3215
|
+
function Bg(r, e) {
|
|
3096
3216
|
return e === void 0 && (e = Mg), r = r ?? zg, hr(function(t, i) {
|
|
3097
3217
|
var n, s = !0;
|
|
3098
3218
|
t.subscribe(pr(i, function(a) {
|
|
@@ -3119,8 +3239,8 @@ class jg extends Cr {
|
|
|
3119
3239
|
*/
|
|
3120
3240
|
selectStore(e) {
|
|
3121
3241
|
return this.pipe(
|
|
3122
|
-
|
|
3123
|
-
|
|
3242
|
+
Gg(e),
|
|
3243
|
+
Bg((t, i) => u.isEqual(t, i))
|
|
3124
3244
|
);
|
|
3125
3245
|
}
|
|
3126
3246
|
/**
|
|
@@ -3271,7 +3391,7 @@ class Zg extends mr {
|
|
|
3271
3391
|
enabled: !1
|
|
3272
3392
|
}
|
|
3273
3393
|
}
|
|
3274
|
-
}), this._reactive === void 0 ? (this._reactive = new Ug(this), this.store = this._reactive.store) : this._reactive.listenToSelectionEvents(), this.initSelection(), this.setConfigOgma(this._configuration, e, t), this.LKTransformation = new Kg(this), this.LkNodeGroupingTransformation = new
|
|
3394
|
+
}), this._reactive === void 0 ? (this._reactive = new Ug(this), this.store = this._reactive.store) : this._reactive.listenToSelectionEvents(), this.initSelection(), this.setConfigOgma(this._configuration, e, t), this.LKTransformation = new Kg(this), this.LkNodeGroupingTransformation = new J(this), this.LKStyles.setNodesDefaultHalo(), this.LKStyles.setEdgesDefaultHalo(), this.LKStyles.setBadgeRule(), this.LKStyles.setFilterClass();
|
|
3275
3395
|
}
|
|
3276
3396
|
/**
|
|
3277
3397
|
* Initialize selection behavior
|
|
@@ -3295,8 +3415,8 @@ class Zg extends mr {
|
|
|
3295
3415
|
}), this.LKStyles.setNodesDefaultStyles(), this.LKStyles.setEdgesDefaultStyles();
|
|
3296
3416
|
}
|
|
3297
3417
|
setCaptions(e) {
|
|
3298
|
-
var n, s, a, o, l,
|
|
3299
|
-
const t = (o = (a = (s = (n = e == null ? void 0 : e.options) == null ? void 0 : n.styles) == null ? void 0 : s.node) == null ? void 0 : a.text) == null ? void 0 : o.maxTextLength, i = (g = (
|
|
3418
|
+
var n, s, a, o, l, d, c, g;
|
|
3419
|
+
const t = (o = (a = (s = (n = e == null ? void 0 : e.options) == null ? void 0 : n.styles) == null ? void 0 : s.node) == null ? void 0 : a.text) == null ? void 0 : o.maxTextLength, i = (g = (c = (d = (l = e == null ? void 0 : e.options) == null ? void 0 : l.styles) == null ? void 0 : d.edge) == null ? void 0 : c.text) == null ? void 0 : g.maxTextLength;
|
|
3300
3420
|
this.LKCaptions = new xg(this, t, i);
|
|
3301
3421
|
}
|
|
3302
3422
|
/**
|
|
@@ -3344,7 +3464,7 @@ class Zg extends mr {
|
|
|
3344
3464
|
}
|
|
3345
3465
|
async initVisualization(e) {
|
|
3346
3466
|
await this.init(e);
|
|
3347
|
-
const t =
|
|
3467
|
+
const t = f.sanitizeStylesIndex(e.design.styles);
|
|
3348
3468
|
this.LKStyles.initNodeColors(t.node), this.LKStyles.initNodesIcons(t.node), this.LKStyles.initNodesSizes(t.node), this.LKStyles.initNodesShapes(t.node), this.LKStyles.initEdgesWidth(t.edge), this.LKStyles.initEdgesShape(t.edge), this.LKStyles.initEdgesColor(t.edge), await this.LKCaptions.initVizCaptions({
|
|
3349
3469
|
node: e.nodeFields.captions || {},
|
|
3350
3470
|
edge: e.edgeFields.captions || {}
|
|
@@ -3433,155 +3553,16 @@ class Zg extends mr {
|
|
|
3433
3553
|
this.getSelectedNodes().setSelected(!1), this.getSelectedEdges().setSelected(!1);
|
|
3434
3554
|
}
|
|
3435
3555
|
}
|
|
3436
|
-
const
|
|
3437
|
-
lightsalmon: { hex: "#FFA07A", rgb: "rbg(255,160,122)" },
|
|
3438
|
-
salmon: { hex: "#FA8072", rgb: "rgb(250,128,114)" },
|
|
3439
|
-
darksalmon: { hex: "#E9967A", rgb: "rgb(233,150,122)" },
|
|
3440
|
-
lightcoral: { hex: "#F08080", rgb: "rgb(240,128,128)" },
|
|
3441
|
-
indianred: { hex: "#CD5C5C", rgb: "rgb(205,92,92)" },
|
|
3442
|
-
crimson: { hex: "#DC143C", rgb: "rgb(220,20,60)" },
|
|
3443
|
-
firebrick: { hex: "#B22222", rgb: "rgb(178,34,34)" },
|
|
3444
|
-
red: { hex: "#FF0000", rgb: "rgb(255,0,0)" },
|
|
3445
|
-
darkred: { hex: "#8B0000", rgb: "rgb(139,0,0)" },
|
|
3446
|
-
coral: { hex: "#FF7F50", rgb: "rgb(255,127,80)" },
|
|
3447
|
-
tomato: { hex: "#FF6347", rgb: "rgb(255,99,71)" },
|
|
3448
|
-
orangered: { hex: "#FF4500", rgb: "rgb(255,69,0)" },
|
|
3449
|
-
gold: { hex: "#FFD700", rgb: "rgb(255,215,0)" },
|
|
3450
|
-
orange: { hex: "#FFA500", rgb: "rgb(255,165,0)" },
|
|
3451
|
-
darkorange: { hex: "#FF8C00", rgb: "rgb(255,140,0)" },
|
|
3452
|
-
lightyellow: { hex: "#FFFFE0", rgb: "rgb(255,255,224)" },
|
|
3453
|
-
lemonchiffon: { hex: "#FFFACD", rgb: "rgb(255,250,205)" },
|
|
3454
|
-
lightgoldenrodyellow: { hex: "#FAFAD2", rgb: "rgb(250,250,210)" },
|
|
3455
|
-
papayawhip: { hex: "#FFEFD5", rgb: "rgb(255,239,213)" },
|
|
3456
|
-
moccasin: { hex: "#FFE4B5", rgb: "rgb(255,228,181)" },
|
|
3457
|
-
peachpuff: { hex: "#FFDAB9", rgb: "rgb(255,218,185)" },
|
|
3458
|
-
palegoldenrod: { hex: "#EEE8AA", rgb: "rgb(238,232,170)" },
|
|
3459
|
-
khaki: { hex: "#F0E68C", rgb: "rgb(240,230,140)" },
|
|
3460
|
-
darkkhaki: { hex: "#BDB76B", rgb: "rgb(189,183,107)" },
|
|
3461
|
-
yellow: { hex: "#FFFF00", rgb: "rgb(255,255,0)" },
|
|
3462
|
-
lawngreen: { hex: "#7CFC00", rgb: "rgb(124,252,0)" },
|
|
3463
|
-
chartreuse: { hex: "#7FFF00", rgb: "rgb(127,255,0)" },
|
|
3464
|
-
limegreen: { hex: "#32CD32", rgb: "rgb(50,205,50)" },
|
|
3465
|
-
lime: { hex: "#00FF00", rgb: "rgb(0.255.0)" },
|
|
3466
|
-
forestgreen: { hex: "#228B22", rgb: "rgb(34,139,34)" },
|
|
3467
|
-
green: { hex: "#008000", rgb: "rgb(0,128,0)" },
|
|
3468
|
-
darkgreen: { hex: "#006400", rgb: "rgb(0,100,0)" },
|
|
3469
|
-
greenyellow: { hex: "#ADFF2F", rgb: "rgb(173,255,47)" },
|
|
3470
|
-
yellowgreen: { hex: "#9ACD32", rgb: "rgb(154,205,50)" },
|
|
3471
|
-
springgreen: { hex: "#00FF7F", rgb: "rgb(0,255,127)" },
|
|
3472
|
-
mediumspringgreen: { hex: "#00FA9A", rgb: "rgb(0,250,154)" },
|
|
3473
|
-
lightgreen: { hex: "#90EE90", rgb: "rgb(144,238,144)" },
|
|
3474
|
-
palegreen: { hex: "#98FB98", rgb: "rgb(152,251,152)" },
|
|
3475
|
-
darkseagreen: { hex: "#8FBC8F", rgb: "rgb(143,188,143)" },
|
|
3476
|
-
mediumseagreen: { hex: "#3CB371", rgb: "rgb(60,179,113)" },
|
|
3477
|
-
seagreen: { hex: "#2E8B57", rgb: "rgb(46,139,87)" },
|
|
3478
|
-
olive: { hex: "#808000", rgb: "rgb(128,128,0)" },
|
|
3479
|
-
darkolivegreen: { hex: "#556B2F", rgb: "rgb(85,107,47)" },
|
|
3480
|
-
olivedrab: { hex: "#6B8E23", rgb: "rgb(107,142,35)" },
|
|
3481
|
-
lightcyan: { hex: "#E0FFFF", rgb: "rgb(224,255,255)" },
|
|
3482
|
-
cyan: { hex: "#00FFFF", rgb: "rgb(0,255,255)" },
|
|
3483
|
-
aqua: { hex: "#00FFFF", rgb: "rgb(0,255,255)" },
|
|
3484
|
-
aquamarine: { hex: "#7FFFD4", rgb: "rgb(127,255,212)" },
|
|
3485
|
-
mediumaquamarine: { hex: "#66CDAA", rgb: "rgb(102,205,170)" },
|
|
3486
|
-
paleturquoise: { hex: "#AFEEEE", rgb: "rgb(175,238,238)" },
|
|
3487
|
-
turquoise: { hex: "#40E0D0", rgb: "rgb(64,224,208)" },
|
|
3488
|
-
mediumturquoise: { hex: "#48D1CC", rgb: "rgb(72,209,204)" },
|
|
3489
|
-
darkturquoise: { hex: "#00CED1", rgb: "rgb(0,206,209)" },
|
|
3490
|
-
lightseagreen: { hex: "#20B2AA", rgb: "rgb(32,178,170)" },
|
|
3491
|
-
cadetblue: { hex: "#5F9EA0", rgb: "rgb(95,158,160)" },
|
|
3492
|
-
darkcyan: { hex: "#008B8B", rgb: "rgb(0,139,139)" },
|
|
3493
|
-
teal: { hex: "#008080", rgb: "rgb(0,128,128)" },
|
|
3494
|
-
powderblue: { hex: "#B0E0E6", rgb: "rgb(176,224,230)" },
|
|
3495
|
-
lightblue: { hex: "#ADD8E6", rgb: "rgb(173,216,230)" },
|
|
3496
|
-
lightskyblue: { hex: "#87CEFA", rgb: "rgb(135,206,250)" },
|
|
3497
|
-
skyblue: { hex: "#87CEEB", rgb: "rgb(135,206,235)" },
|
|
3498
|
-
deepskyblue: { hex: "#00BFFF", rgb: "rgb(0,191,255)" },
|
|
3499
|
-
lightsteelblue: { hex: "#B0C4DE", rgb: "rgb(176,196,222)" },
|
|
3500
|
-
dodgerblue: { hex: "#1E90FF", rgb: "rgb(30,144,255)" },
|
|
3501
|
-
cornflowerblue: { hex: "#6495ED", rgb: "rgb(100,149,237)" },
|
|
3502
|
-
steelblue: { hex: "#4682B4", rgb: "rgb(70,130,180)" },
|
|
3503
|
-
royalblue: { hex: "#4169E1", rgb: "rgb(65,105,225)" },
|
|
3504
|
-
blue: { hex: "#0000FF", rgb: "rgb(0,0,255)" },
|
|
3505
|
-
mediumblue: { hex: "#0000CD", rgb: "rgb(0,0,205)" },
|
|
3506
|
-
darkblue: { hex: "#00008B", rgb: "rgb(0,0,139)" },
|
|
3507
|
-
navy: { hex: "#000080", rgb: "rgb(0,0,128)" },
|
|
3508
|
-
midnightblue: { hex: "#191970", rgb: "rgb(25,25,112)" },
|
|
3509
|
-
mediumslateblue: { hex: "#7B68EE", rgb: "rgb(123,104,238)" },
|
|
3510
|
-
slateblue: { hex: "#6A5ACD", rgb: "rgb(106,90,205)" },
|
|
3511
|
-
darkslateblue: { hex: "#483D8B", rgb: "rgb(72,61,139)" },
|
|
3512
|
-
lavender: { hex: "#E6E6FA", rgb: "rgb(230,230,250)" },
|
|
3513
|
-
thistle: { hex: "#D8BFD8", rgb: "rgb(216,191,216)" },
|
|
3514
|
-
plum: { hex: "#DDA0DD", rgb: "rgb(221,160,221)" },
|
|
3515
|
-
violet: { hex: "#EE82EE", rgb: "rgb(238,130,238)" },
|
|
3516
|
-
orchid: { hex: "#DA70D6", rgb: "rgb(218,112,214)" },
|
|
3517
|
-
fuchsia: { hex: "#FF00FF", rgb: "rgb(255,0,255)" },
|
|
3518
|
-
magenta: { hex: "#FF00FF", rgb: "rgb(255,0,255)" },
|
|
3519
|
-
mediumorchid: { hex: "#BA55D3", rgb: "rgb(186,85,211)" },
|
|
3520
|
-
mediumpurple: { hex: "#9370DB", rgb: "rgb(147,112,219)" },
|
|
3521
|
-
blueviolet: { hex: "#8A2BE2", rgb: "rgb(138,43,226)" },
|
|
3522
|
-
darkviolet: { hex: "#9400D3", rgb: "rgb(148,0,211)" },
|
|
3523
|
-
darkorchid: { hex: "#9932CC", rgb: "rgb(153,50,204)" },
|
|
3524
|
-
darkmagenta: { hex: "#8B008B", rgb: "rgb(139,0,139)" },
|
|
3525
|
-
purple: { hex: "#800080", rgb: "rgb(128,0,128)" },
|
|
3526
|
-
indigo: { hex: "#4B0082", rgb: "rgb(75,0,130)" },
|
|
3527
|
-
pink: { hex: "#FFC0CB", rgb: "rgb(255,192,203)" },
|
|
3528
|
-
lightpink: { hex: "#FFB6C1", rgb: "rgb(255,182,193)" },
|
|
3529
|
-
hotpink: { hex: "#FF69B4", rgb: "rgb(255,105,180)" },
|
|
3530
|
-
deeppink: { hex: "#FF1493", rgb: "rgb(255,20,147)" },
|
|
3531
|
-
palevioletred: { hex: "#DB7093", rgb: "rgb(219,112,147)" },
|
|
3532
|
-
mediumvioletred: { hex: "#C71585", rgb: "rgb(199,21,133)" },
|
|
3533
|
-
white: { hex: "#FFFFFF", rgb: "rgb(255,255,255)" },
|
|
3534
|
-
snow: { hex: "#FFFAFA", rgb: "rgb(255,250,250)" },
|
|
3535
|
-
honeydew: { hex: "#F0FFF0", rgb: "rgb(240,255,240)" },
|
|
3536
|
-
mintcream: { hex: "#F5FFFA", rgb: "rgb(245,255,250)" },
|
|
3537
|
-
azure: { hex: "#F0FFFF", rgb: "rgb(240,255,255)" },
|
|
3538
|
-
aliceblue: { hex: "#F0F8FF", rgb: "rgb(240,248,255)" },
|
|
3539
|
-
ghostwhite: { hex: "#F8F8FF", rgb: "rgb(248,248,255)" },
|
|
3540
|
-
whitesmoke: { hex: "#F5F5F5", rgb: "rgb(245,245,245)" },
|
|
3541
|
-
seashell: { hex: "#FFF5EE", rgb: "rgb(255,245,238)" },
|
|
3542
|
-
beige: { hex: "#F5F5DC", rgb: "rgb(245,245,220)" },
|
|
3543
|
-
oldlace: { hex: "#FDF5E6", rgb: "rgb(253,245,230)" },
|
|
3544
|
-
floralwhite: { hex: "#FFFAF0", rgb: "rgb(255,250,240)" },
|
|
3545
|
-
ivory: { hex: "#FFFFF0", rgb: "rgb(255,255,240)" },
|
|
3546
|
-
antiquewhite: { hex: "#FAEBD7", rgb: "rgb(250,235,215)" },
|
|
3547
|
-
linen: { hex: "#FAF0E6", rgb: "rgb(250,240,230)" },
|
|
3548
|
-
lavenderblush: { hex: "#FFF0F5", rgb: "rgb(255,240,245)" },
|
|
3549
|
-
mistyrose: { hex: "#FFE4E1", rgb: "rgb(255,228,225)" },
|
|
3550
|
-
gainsboro: { hex: "#DCDCDC", rgb: "rgb(220,220,220)" },
|
|
3551
|
-
lightgray: { hex: "#D3D3D3", rgb: "rgb(211,211,211)" },
|
|
3552
|
-
silver: { hex: "#C0C0C0", rgb: "rgb(192,192,192)" },
|
|
3553
|
-
darkgray: { hex: "#A9A9A9", rgb: "rgb(169,169,169)" },
|
|
3554
|
-
gray: { hex: "#808080", rgb: "rgb(128,128,128)" },
|
|
3555
|
-
dimgray: { hex: "#696969", rgb: "rgb(105,105,105)" },
|
|
3556
|
-
lightslategray: { hex: "#778899", rgb: "rgb(119,136,153)" },
|
|
3557
|
-
slategray: { hex: "#708090", rgb: "rgb(112,128,144)" },
|
|
3558
|
-
darkslategray: { hex: "#2F4F4F", rgb: "rgb(47,79,79)" },
|
|
3559
|
-
black: { hex: "#000000", rgb: "rgb(0,0,0)" },
|
|
3560
|
-
cornsilk: { hex: "#FFF8DC", rgb: "rgb(255,248,220)" },
|
|
3561
|
-
blanchedalmond: { hex: "#FFEBCD", rgb: "rgb(255,235,205)" },
|
|
3562
|
-
bisque: { hex: "#FFE4C4", rgb: "rgb(255,228,196)" },
|
|
3563
|
-
navajowhite: { hex: "#FFDEAD", rgb: "rgb(255,222,173)" },
|
|
3564
|
-
wheat: { hex: "#F5DEB3", rgb: "rgb(245,222,179)" },
|
|
3565
|
-
burlywood: { hex: "#DEB887", rgb: "rgb(222,184,135)" },
|
|
3566
|
-
tan: { hex: "#D2B48C", rgb: "rgb(210,180,140)" },
|
|
3567
|
-
rosybrown: { hex: "#BC8F8F", rgb: "rgb(188,143,143)" },
|
|
3568
|
-
sandybrown: { hex: "#F4A460", rgb: "rgb(244,164,96)" },
|
|
3569
|
-
goldenrod: { hex: "#DAA520", rgb: "rgb(218,165,32)" },
|
|
3570
|
-
peru: { hex: "#CD853F", rgb: "rgb(205,133,63)" },
|
|
3571
|
-
chocolate: { hex: "#D2691E", rgb: "rgb(210,105,30)" },
|
|
3572
|
-
saddlebrown: { hex: "#8B4513", rgb: "rgb(139,69,19)" },
|
|
3573
|
-
sienna: { hex: "#A0522D", rgb: "rgb(160,82,45)" },
|
|
3574
|
-
brown: { hex: "#A52A2A", rgb: "rgb(165,42,42)" },
|
|
3575
|
-
maroon: { hex: "#800000", rgb: "rgb(128,0,0)" }
|
|
3576
|
-
}, kg = {
|
|
3556
|
+
const kg = {
|
|
3577
3557
|
steps: 250,
|
|
3578
3558
|
alignSiblings: !0,
|
|
3579
3559
|
charge: 20,
|
|
3580
3560
|
theta: 0.34,
|
|
3581
3561
|
duration: Vg,
|
|
3582
|
-
gravity: 0.0475
|
|
3562
|
+
gravity: 0.0475,
|
|
3563
|
+
gpu: !0
|
|
3583
3564
|
};
|
|
3584
|
-
class
|
|
3565
|
+
class j {
|
|
3585
3566
|
/**
|
|
3586
3567
|
* Get the amount of hidden neighbors from a list of nodes
|
|
3587
3568
|
*
|
|
@@ -3620,13 +3601,13 @@ class D {
|
|
|
3620
3601
|
let s;
|
|
3621
3602
|
if (t.test(e)) {
|
|
3622
3603
|
e.length < 5 && (e += e.slice(1)), e = e.replace("#", "");
|
|
3623
|
-
const
|
|
3624
|
-
s = `rgb(${
|
|
3625
|
-
} else if (i.test(e) || n.test(e) ||
|
|
3626
|
-
s = u.isDefined(
|
|
3604
|
+
const d = parseInt(e[0].toString() + e[1].toString(), 16), c = parseInt(e[2].toString() + e[3].toString(), 16), g = parseInt(e[4].toString() + e[5].toString(), 16);
|
|
3605
|
+
s = `rgb(${d}, ${c}, ${g})`;
|
|
3606
|
+
} else if (i.test(e) || n.test(e) || Ae[e.toLowerCase()] !== void 0)
|
|
3607
|
+
s = u.isDefined(Ae[e.toLowerCase()]) ? Ae[e.toLowerCase()].rgb : e;
|
|
3627
3608
|
else
|
|
3628
3609
|
return !0;
|
|
3629
|
-
const [a, o, l] = /rgba?\((\d{1,3}),(\d{1,3}),(\d{1,3})(
|
|
3610
|
+
const [a, o, l] = /rgba?\((\d{1,3}),(\d{1,3}),(\d{1,3})(,(?:0|1|0?\.\d+))?\)/.exec(s.replace(/\s/g, "")).slice(1, 4);
|
|
3630
3611
|
return !u.isDefined(a) || !u.isDefined(o) || !u.isDefined(l) ? (console.warn("The given color is not a valid rgb formatted color"), !0) : (+a * 299 + +o * 587 + +l * 114) / 1e3 > 255 * 0.7;
|
|
3631
3612
|
}
|
|
3632
3613
|
static isNode(e) {
|
|
@@ -3648,8 +3629,8 @@ class D {
|
|
|
3648
3629
|
const l = [];
|
|
3649
3630
|
for (; o; ) {
|
|
3650
3631
|
l.push(o), n.add(o);
|
|
3651
|
-
const
|
|
3652
|
-
o =
|
|
3632
|
+
const d = o.getAdjacentNodes().filter((c) => !n.has(c)).get(0);
|
|
3633
|
+
o = d === void 0 ? null : d;
|
|
3653
3634
|
}
|
|
3654
3635
|
s.push(l);
|
|
3655
3636
|
}), s.sort((a, o) => o.length - a.length), { chain: s.flat().map((a) => a.getId()), numberOfChain: i.length / 2 };
|
|
@@ -3672,7 +3653,7 @@ class D {
|
|
|
3672
3653
|
}
|
|
3673
3654
|
}
|
|
3674
3655
|
const Pe = "LKE_NODE_GROUPING_EDGE";
|
|
3675
|
-
class
|
|
3656
|
+
class J {
|
|
3676
3657
|
constructor(e) {
|
|
3677
3658
|
this._collapsedDefaultValue = !1, this._nodeGroupingAttributes = [], this._ogma = e;
|
|
3678
3659
|
}
|
|
@@ -3689,38 +3670,45 @@ class X {
|
|
|
3689
3670
|
* Group the nodes based on a category type and a property value
|
|
3690
3671
|
*/
|
|
3691
3672
|
async initTransformation() {
|
|
3673
|
+
let e = !0;
|
|
3692
3674
|
this.transformation === void 0 ? this.transformation = this._ogma.transformations.addNodeGrouping({
|
|
3693
3675
|
// node with same value will be part of the same group
|
|
3694
|
-
groupIdFunction: (
|
|
3695
|
-
if (this._isRuleNotApplicableToNode(
|
|
3676
|
+
groupIdFunction: (t) => {
|
|
3677
|
+
if (this._isRuleNotApplicableToNode(t))
|
|
3696
3678
|
return;
|
|
3697
|
-
const
|
|
3698
|
-
return
|
|
3679
|
+
const i = this.groupRule;
|
|
3680
|
+
return i.groupingType === q.BY_ADJACENT_EDGE_TYPE ? this._getAdjacentEdgeGroupId(t, i) : this._getPropertyValueGroupId(t, i);
|
|
3699
3681
|
},
|
|
3700
|
-
nodeGenerator: (
|
|
3701
|
-
const
|
|
3682
|
+
nodeGenerator: (t) => {
|
|
3683
|
+
const i = new Set(t.getData("categories").flat()), n = this._findNodeGroupId(t);
|
|
3702
3684
|
return {
|
|
3703
3685
|
data: {
|
|
3704
3686
|
categories: [],
|
|
3705
|
-
subCategories: Array.from(
|
|
3706
|
-
collapsed: this._getDefaultCollapsedState(
|
|
3707
|
-
nodeGroupId:
|
|
3687
|
+
subCategories: Array.from(i),
|
|
3688
|
+
collapsed: this._getDefaultCollapsedState(n),
|
|
3689
|
+
nodeGroupId: n
|
|
3708
3690
|
},
|
|
3709
3691
|
attributes: {
|
|
3710
|
-
layoutable: this._getDefaultLayoutableValue(
|
|
3692
|
+
layoutable: this._getDefaultLayoutableValue(n)
|
|
3711
3693
|
}
|
|
3712
3694
|
};
|
|
3713
3695
|
},
|
|
3714
|
-
onGroupUpdate:
|
|
3696
|
+
onGroupUpdate: (t, i) => {
|
|
3697
|
+
if (!(i.size === 1 || e))
|
|
3698
|
+
return {
|
|
3699
|
+
layout: "force",
|
|
3700
|
+
params: { ...kg }
|
|
3701
|
+
};
|
|
3702
|
+
},
|
|
3715
3703
|
edgeGenerator: () => ({
|
|
3716
3704
|
data: {
|
|
3717
3705
|
type: Pe
|
|
3718
3706
|
}
|
|
3719
3707
|
}),
|
|
3720
|
-
showContents: (
|
|
3708
|
+
showContents: (t) => !j.isGroupCollapsed(t),
|
|
3721
3709
|
duration: 300,
|
|
3722
3710
|
padding: 10
|
|
3723
|
-
}) : await this.refreshTransformation();
|
|
3711
|
+
}) : await this.refreshTransformation(), await this._ogma.transformations.afterNextUpdate(), e = !1;
|
|
3724
3712
|
}
|
|
3725
3713
|
/**
|
|
3726
3714
|
* refresh the transformation
|
|
@@ -3747,7 +3735,7 @@ class X {
|
|
|
3747
3735
|
width: 2
|
|
3748
3736
|
}
|
|
3749
3737
|
},
|
|
3750
|
-
nodeSelector: (e) => e.isVirtual() && !
|
|
3738
|
+
nodeSelector: (e) => e.isVirtual() && !j.isGroupCollapsed(e),
|
|
3751
3739
|
// the style will be updated when data object is updated
|
|
3752
3740
|
nodeDependencies: { self: { data: !0 } }
|
|
3753
3741
|
}), this._initIntermediateGroupStyle(), this._nodeGroupingCollapsedStyleRule = this._ogma.styles.addRule({
|
|
@@ -3766,7 +3754,7 @@ class X {
|
|
|
3766
3754
|
var i;
|
|
3767
3755
|
const t = (i = e.getSubNodes().filter((n) => !n.hasClass("filtered"))) == null ? void 0 : i.size;
|
|
3768
3756
|
return {
|
|
3769
|
-
color:
|
|
3757
|
+
color: ue,
|
|
3770
3758
|
minVisibleSize: 20,
|
|
3771
3759
|
stroke: {
|
|
3772
3760
|
width: 2,
|
|
@@ -3775,13 +3763,13 @@ class X {
|
|
|
3775
3763
|
text: {
|
|
3776
3764
|
font: u.isDefined(this._ogma.LKStyles.nodeFont) ? this._ogma.LKStyles.nodeFont : gr,
|
|
3777
3765
|
scale: 0.4,
|
|
3778
|
-
color:
|
|
3766
|
+
color: le,
|
|
3779
3767
|
content: `x${t}`
|
|
3780
3768
|
}
|
|
3781
3769
|
};
|
|
3782
3770
|
},
|
|
3783
3771
|
topLeft: () => ({
|
|
3784
|
-
color:
|
|
3772
|
+
color: ue,
|
|
3785
3773
|
minVisibleSize: 20,
|
|
3786
3774
|
stroke: {
|
|
3787
3775
|
width: 2,
|
|
@@ -3790,7 +3778,7 @@ class X {
|
|
|
3790
3778
|
text: {
|
|
3791
3779
|
font: "FontAwesome",
|
|
3792
3780
|
scale: 0.4,
|
|
3793
|
-
color:
|
|
3781
|
+
color: le,
|
|
3794
3782
|
content: ""
|
|
3795
3783
|
}
|
|
3796
3784
|
})
|
|
@@ -3817,7 +3805,7 @@ class X {
|
|
|
3817
3805
|
}).icon;
|
|
3818
3806
|
}
|
|
3819
3807
|
},
|
|
3820
|
-
nodeSelector: (e) => e.isVirtual() &&
|
|
3808
|
+
nodeSelector: (e) => e.isVirtual() && j.isGroupCollapsed(e) && !e.hasClass("filtered"),
|
|
3821
3809
|
nodeDependencies: { self: { attributes: ["styleRefreshIndex"] } }
|
|
3822
3810
|
}), this._setSubSelectedClass();
|
|
3823
3811
|
}
|
|
@@ -3825,34 +3813,6 @@ class X {
|
|
|
3825
3813
|
var e, t;
|
|
3826
3814
|
await ((e = this._nodeGroupingStyleRule) == null ? void 0 : e.refresh()), await ((t = this._nodeGroupingCollapsedStyleRule) == null ? void 0 : t.refresh());
|
|
3827
3815
|
}
|
|
3828
|
-
/**
|
|
3829
|
-
* Run the layout on the subnodes of the virtual node
|
|
3830
|
-
* @param subNodes nodes part of a virtual node
|
|
3831
|
-
*/
|
|
3832
|
-
async runSubNodesLayout(e) {
|
|
3833
|
-
if (e.size === 0 || e.size === 1)
|
|
3834
|
-
return;
|
|
3835
|
-
if (e.size === 2)
|
|
3836
|
-
return this._runTwoNodesLayout(e);
|
|
3837
|
-
if (e.getAdjacentEdges({ bothExtremities: !0 }).size === 0) return this._runCirclePack(e);
|
|
3838
|
-
const i = D.isStar(e);
|
|
3839
|
-
if (i) {
|
|
3840
|
-
const o = e.filter((c) => c !== i), l = this._runCircularLayout({
|
|
3841
|
-
radii: o.getAttribute("radius"),
|
|
3842
|
-
cx: i.getAttribute("x"),
|
|
3843
|
-
cy: i.getAttribute("y"),
|
|
3844
|
-
clockwise: !1,
|
|
3845
|
-
distanceRatio: 5
|
|
3846
|
-
});
|
|
3847
|
-
return [i.getPosition(), ...l];
|
|
3848
|
-
}
|
|
3849
|
-
const n = e.getDegree(), s = n.every((o) => o === 1 || o === 2), a = n.some((o) => o === 1);
|
|
3850
|
-
if (s && a) {
|
|
3851
|
-
await this._runChainLayout(e);
|
|
3852
|
-
return;
|
|
3853
|
-
}
|
|
3854
|
-
return await this._runForceLayout(e);
|
|
3855
|
-
}
|
|
3856
3816
|
/**
|
|
3857
3817
|
* Get the virtual nodes of the transformation
|
|
3858
3818
|
* @private
|
|
@@ -3879,11 +3839,11 @@ class X {
|
|
|
3879
3839
|
*/
|
|
3880
3840
|
_getNodeGroupingCaption(e) {
|
|
3881
3841
|
if (!(!u.isDefined(e) || !u.isDefined(this.groupRule)))
|
|
3882
|
-
return this.groupRule.groupingType ===
|
|
3842
|
+
return this.groupRule.groupingType === q.BY_ADJACENT_EDGE_TYPE ? this._getAdjacentEdgeNodeGroupingCaption(e, this.groupRule) : this._getPropertyValueNodeGroupingCaption(e, this.groupRule);
|
|
3883
3843
|
}
|
|
3884
3844
|
_getAdjacentEdgeNodeGroupingCaption(e, t) {
|
|
3885
3845
|
const i = e.getSubNodes();
|
|
3886
|
-
return !u.isDefined(i) || !u.isDefined(i.get(0)) ? void 0 :
|
|
3846
|
+
return !u.isDefined(i) || !u.isDefined(i.get(0)) ? void 0 : J._getGroupCentralNode(i.get(0), t).getData(["properties", "name"]);
|
|
3887
3847
|
}
|
|
3888
3848
|
_getPropertyValueNodeGroupingCaption(e, t) {
|
|
3889
3849
|
var i;
|
|
@@ -3892,46 +3852,14 @@ class X {
|
|
|
3892
3852
|
return `${s} (${a})`;
|
|
3893
3853
|
}
|
|
3894
3854
|
}
|
|
3895
|
-
/**
|
|
3896
|
-
* Run the circle pack layout on the subnodes
|
|
3897
|
-
* @param subNodes
|
|
3898
|
-
*/
|
|
3899
|
-
_runCirclePack(e) {
|
|
3900
|
-
return Promise.resolve(
|
|
3901
|
-
this._ogma.algorithms.circlePack({
|
|
3902
|
-
nodes: e,
|
|
3903
|
-
margin: 10,
|
|
3904
|
-
sort: "asc",
|
|
3905
|
-
dryRun: !0
|
|
3906
|
-
})
|
|
3907
|
-
);
|
|
3908
|
-
}
|
|
3909
|
-
/**
|
|
3910
|
-
* return a grid layout when nodes are represented by multiple chains (a)-(b)-(c)-(d)
|
|
3911
|
-
*/
|
|
3912
|
-
async _runChainLayout(e) {
|
|
3913
|
-
const t = D.topologicalSort(e), i = this._ogma.getNodes(t.chain);
|
|
3914
|
-
await this._ogma.layouts.grid({
|
|
3915
|
-
nodes: i,
|
|
3916
|
-
// TODO: test that visually
|
|
3917
|
-
colDistance: Math.max(...e.getAttribute("radius").map(Number)) * 4,
|
|
3918
|
-
rows: t.numberOfChain ?? 1
|
|
3919
|
-
});
|
|
3920
|
-
}
|
|
3921
|
-
async _runForceLayout(e) {
|
|
3922
|
-
await this._ogma.layouts.force({
|
|
3923
|
-
nodes: e,
|
|
3924
|
-
...kg
|
|
3925
|
-
});
|
|
3926
|
-
}
|
|
3927
3855
|
_isRuleNotApplicableToNode(e) {
|
|
3928
3856
|
const t = this.groupRule;
|
|
3929
|
-
return t === void 0 ? !0 : t.groupingType ===
|
|
3857
|
+
return t === void 0 ? !0 : t.groupingType === q.BY_PROPERTY_VALUE ? this._isPropertyRuleNotApplicableToNode(e, t) : t.groupingType === q.BY_ADJACENT_EDGE_TYPE ? this._isRelationshipRuleNotApplicableToNode(e, t) : !0;
|
|
3930
3858
|
}
|
|
3931
3859
|
_isRelationshipRuleNotApplicableToNode(e, t) {
|
|
3932
|
-
return !this.
|
|
3860
|
+
return !this._hasEdgeOfType(e, t.groupingOptions.edgeType);
|
|
3933
3861
|
}
|
|
3934
|
-
|
|
3862
|
+
_hasEdgeOfType(e, t) {
|
|
3935
3863
|
let i = !1;
|
|
3936
3864
|
return e.getAdjacentEdges().forEach((n) => {
|
|
3937
3865
|
n.getData("type") === t && (i = !0);
|
|
@@ -3978,12 +3906,12 @@ class X {
|
|
|
3978
3906
|
_findNodeGroupId(e) {
|
|
3979
3907
|
var i;
|
|
3980
3908
|
const t = this.groupRule;
|
|
3981
|
-
if (t.groupingType ===
|
|
3982
|
-
const n =
|
|
3983
|
-
return
|
|
3909
|
+
if (t.groupingType === q.BY_ADJACENT_EDGE_TYPE) {
|
|
3910
|
+
const n = J._getGroupCentralNode(e.get(0), t);
|
|
3911
|
+
return oe(`${(i = this.groupRule) == null ? void 0 : i.name}-${n.getId()}`);
|
|
3984
3912
|
} else {
|
|
3985
3913
|
const n = this._findGroupingPropertyValue(e.get(0));
|
|
3986
|
-
return
|
|
3914
|
+
return oe(`${t.name}-${t.groupingOptions.itemTypes.join("-")}-${n}`);
|
|
3987
3915
|
}
|
|
3988
3916
|
}
|
|
3989
3917
|
/**
|
|
@@ -3993,37 +3921,12 @@ class X {
|
|
|
3993
3921
|
const i = e.getAdjacentEdges({ filter: "raw" }).filter((s) => s.getData("type") === t.groupingOptions.edgeType).get(0);
|
|
3994
3922
|
return t.groupingOptions.centralNodeIs === "source" ? i.getSource() : i.getTarget();
|
|
3995
3923
|
}
|
|
3996
|
-
_runCircularLayout({
|
|
3997
|
-
radii: e,
|
|
3998
|
-
clockwise: t = !0,
|
|
3999
|
-
cx: i = 0,
|
|
4000
|
-
cy: n = 0,
|
|
4001
|
-
startAngle: s = 3 / 2 * Math.PI,
|
|
4002
|
-
getRadius: a = (l) => Number(l),
|
|
4003
|
-
distanceRatio: o = 0
|
|
4004
|
-
}) {
|
|
4005
|
-
const l = e.length;
|
|
4006
|
-
if (l === 0) return [];
|
|
4007
|
-
if (l === 1) return [{ x: i, y: n }];
|
|
4008
|
-
const c = e.map(a).reduce((A, x) => Math.max(A, x), 0) * (2 + o), g = (2 * Math.PI - 2 * Math.PI / l) / Math.max(1, l - 1), h = Math.cos(g) - Math.cos(0), y = Math.sin(g) - Math.sin(0), m = Math.sqrt(c * c / (h * h + y * y)), f = Math.max(m, 0);
|
|
4009
|
-
return e.map((A, x) => {
|
|
4010
|
-
const E = s + x * g * (t ? 1 : -1), B = f * Math.cos(E), v = f * Math.sin(E);
|
|
4011
|
-
return {
|
|
4012
|
-
x: i + B,
|
|
4013
|
-
y: n + v
|
|
4014
|
-
};
|
|
4015
|
-
});
|
|
4016
|
-
}
|
|
4017
|
-
async _runTwoNodesLayout(e) {
|
|
4018
|
-
const t = e.getAttribute("radius").map(Number), i = e.getPosition(), n = Math.min(...t);
|
|
4019
|
-
return [i[0], { x: i[0].x + n + t[0] + t[1], y: i[0].y }];
|
|
4020
|
-
}
|
|
4021
3924
|
_getPropertyValueGroupId(e, t) {
|
|
4022
3925
|
const i = this._findGroupingPropertyValue(e);
|
|
4023
3926
|
return `${t.groupingOptions.itemTypes.join("-")}-${i}`.toLowerCase().trim();
|
|
4024
3927
|
}
|
|
4025
3928
|
_getAdjacentEdgeGroupId(e, t) {
|
|
4026
|
-
return
|
|
3929
|
+
return J._getGroupCentralNode(e, t).getId().toString();
|
|
4027
3930
|
}
|
|
4028
3931
|
/**
|
|
4029
3932
|
* Initialize the style for the intermediate group state, when transitioning from expanded to collapsed
|
|
@@ -4033,7 +3936,7 @@ class X {
|
|
|
4033
3936
|
nodeAttributes: {
|
|
4034
3937
|
color: "rgba(240, 240, 240)"
|
|
4035
3938
|
},
|
|
4036
|
-
nodeSelector: (e) => e.isVirtual() &&
|
|
3939
|
+
nodeSelector: (e) => e.isVirtual() && j.isGroupCollapsed(e),
|
|
4037
3940
|
// the style will be updated when data object is updated
|
|
4038
3941
|
nodeDependencies: { self: { data: !0 } }
|
|
4039
3942
|
});
|
|
@@ -4117,7 +4020,7 @@ class Kg {
|
|
|
4117
4020
|
this.edgeGroupingStyleRule !== void 0 && this.edgeGroupingStyleRule.refresh();
|
|
4118
4021
|
}
|
|
4119
4022
|
}
|
|
4120
|
-
const
|
|
4023
|
+
const v = class v {
|
|
4121
4024
|
/**
|
|
4122
4025
|
* Returns whether the node/edge should be *filtered* (a.k.a. *hidden*).
|
|
4123
4026
|
*
|
|
@@ -4130,16 +4033,16 @@ const _ = class _ {
|
|
|
4130
4033
|
* @param itemData
|
|
4131
4034
|
*/
|
|
4132
4035
|
static isFiltered(e, t) {
|
|
4133
|
-
return u.isDefined(t) ? "categories" in t ?
|
|
4036
|
+
return u.isDefined(t) ? "categories" in t ? v.getFilterFunction(e, !0)(t) : v.getFilterFunction(e, !1)(t) : !1;
|
|
4134
4037
|
}
|
|
4135
4038
|
static getFilterFunction(e, t) {
|
|
4136
|
-
const i = JSON.stringify(e, null, ""), n = t ?
|
|
4039
|
+
const i = JSON.stringify(e, null, ""), n = t ? v.nodeCache : v.edgeCache;
|
|
4137
4040
|
let s = n.get(i);
|
|
4138
|
-
return s || (s =
|
|
4041
|
+
return s || (s = v.createFilterFunction(e, t), n.size > v.FILTER_CACHE_SIZE && n.clear(), n.set(i, s)), s;
|
|
4139
4042
|
}
|
|
4140
4043
|
static createFilterFunction(e, t) {
|
|
4141
4044
|
const i = e.map(
|
|
4142
|
-
(n) =>
|
|
4045
|
+
(n) => v.filterToFilterFunction(n, t)
|
|
4143
4046
|
);
|
|
4144
4047
|
return (n) => {
|
|
4145
4048
|
for (const s of i)
|
|
@@ -4151,15 +4054,15 @@ const _ = class _ {
|
|
|
4151
4054
|
static filterToFilterFunction(e, t) {
|
|
4152
4055
|
switch (e.type) {
|
|
4153
4056
|
case S.ANY:
|
|
4154
|
-
return
|
|
4057
|
+
return v.createAnyFilterFunction(e, t);
|
|
4155
4058
|
case S.IS:
|
|
4156
|
-
return
|
|
4059
|
+
return v.createIsFilterFunction(e, t);
|
|
4157
4060
|
case S.NO_VALUE:
|
|
4158
|
-
return
|
|
4061
|
+
return v.createNoValueFilterFunction(e, t);
|
|
4159
4062
|
case S.RANGE:
|
|
4160
|
-
return
|
|
4063
|
+
return v.createRangeFilterFunction(e, t);
|
|
4161
4064
|
case S.NAN:
|
|
4162
|
-
return
|
|
4065
|
+
return v.createNaNFilterFunction(e, t);
|
|
4163
4066
|
}
|
|
4164
4067
|
}
|
|
4165
4068
|
static createAnyFilterFunction(e, t) {
|
|
@@ -4172,16 +4075,16 @@ const _ = class _ {
|
|
|
4172
4075
|
return t ? (i) => i.categories.includes(e.itemType) && !u.isDefined(u.getPropertyValue(u.getIn(i, e.input), !0)) : (i) => i.type === e.itemType && !u.isDefined(u.getPropertyValue(u.getIn(i, e.input), !0));
|
|
4173
4076
|
}
|
|
4174
4077
|
static createNaNFilterFunction(e, t) {
|
|
4175
|
-
return t ? (i) => i.categories.includes(e.itemType) &&
|
|
4078
|
+
return t ? (i) => i.categories.includes(e.itemType) && v.isNotANumber(u.getPropertyValue(u.getIn(i, e.input), !0)) : (i) => i.type === e.itemType && v.isNotANumber(u.getPropertyValue(u.getIn(i, e.input), !0));
|
|
4176
4079
|
}
|
|
4177
4080
|
static isNotANumber(e) {
|
|
4178
4081
|
return u.isDefined(e) && !u.isNumber(e);
|
|
4179
4082
|
}
|
|
4180
4083
|
static createRangeFilterFunction(e, t) {
|
|
4181
|
-
return t ? (i) => i.categories.includes(e.itemType) &&
|
|
4084
|
+
return t ? (i) => i.categories.includes(e.itemType) && v.valueShouldBeHidden(
|
|
4182
4085
|
u.getPropertyValue(u.getIn(i, e.input), !1),
|
|
4183
4086
|
e.value
|
|
4184
|
-
) : (i) => i.type === e.itemType &&
|
|
4087
|
+
) : (i) => i.type === e.itemType && v.valueShouldBeHidden(
|
|
4185
4088
|
u.getPropertyValue(u.getIn(i, e.input), !1),
|
|
4186
4089
|
e.value
|
|
4187
4090
|
);
|
|
@@ -4201,8 +4104,8 @@ const _ = class _ {
|
|
|
4201
4104
|
return Number.isNaN(i) ? !1 : t["<"] !== void 0 && i < t["<"] || t["<="] !== void 0 && i <= t["<="] || t[">"] !== void 0 && i > t[">"] || t[">="] !== void 0 && i >= t[">="];
|
|
4202
4105
|
}
|
|
4203
4106
|
};
|
|
4204
|
-
|
|
4205
|
-
let Ut =
|
|
4107
|
+
v.nodeCache = /* @__PURE__ */ new Map(), v.edgeCache = /* @__PURE__ */ new Map(), v.FILTER_CACHE_SIZE = 5;
|
|
4108
|
+
let Ut = v;
|
|
4206
4109
|
const Xg = (r) => r.selection.size, Qg = (r) => {
|
|
4207
4110
|
switch (r.selection.size) {
|
|
4208
4111
|
case 1:
|
|
@@ -4215,16 +4118,16 @@ const Xg = (r) => r.selection.size, Qg = (r) => {
|
|
|
4215
4118
|
}, eh = (r) => {
|
|
4216
4119
|
if (!(!u.isDefined(r.selection) || r.selection.size === 0))
|
|
4217
4120
|
return r.selection.isNode ? I.NODE : I.EDGE;
|
|
4218
|
-
},
|
|
4219
|
-
const e =
|
|
4121
|
+
}, Je = (r) => u.isDefined(r.selection) && r.selection.size === 1 ? r.selection.get(0) : void 0, th = (r) => {
|
|
4122
|
+
const e = Je(r);
|
|
4220
4123
|
if (e !== void 0)
|
|
4221
4124
|
return e.isNode ? e.getData("categories") : [e.getData("type")];
|
|
4222
4125
|
}, rh = (r) => {
|
|
4223
|
-
const e =
|
|
4126
|
+
const e = Je(r);
|
|
4224
4127
|
if (e !== void 0)
|
|
4225
4128
|
return e.isNode ? "node" : "edge";
|
|
4226
4129
|
}, qg = (r) => {
|
|
4227
|
-
const e =
|
|
4130
|
+
const e = Je(r);
|
|
4228
4131
|
if (e !== void 0) {
|
|
4229
4132
|
const t = e.getData().properties;
|
|
4230
4133
|
return Object.keys(t).map((i) => ({
|
|
@@ -4236,24 +4139,25 @@ const Xg = (r) => r.selection.size, Qg = (r) => {
|
|
|
4236
4139
|
}, ih = (r) => qg(r).length > 0;
|
|
4237
4140
|
export {
|
|
4238
4141
|
Vg as ANIMATION_DURATION,
|
|
4239
|
-
|
|
4142
|
+
E as BASE_GREY,
|
|
4240
4143
|
N as Captions,
|
|
4241
4144
|
xg as CaptionsViz,
|
|
4242
|
-
|
|
4243
|
-
|
|
4145
|
+
W as EdgeAttributes,
|
|
4146
|
+
It as FILTER_OPACITY,
|
|
4147
|
+
kg as FORCE_LAYOUT_CONFIG,
|
|
4244
4148
|
Ut as Filters,
|
|
4245
|
-
|
|
4246
|
-
|
|
4149
|
+
Ae as HTML_COLORS,
|
|
4150
|
+
A as ItemAttributes,
|
|
4247
4151
|
Pe as LKE_NODE_GROUPING_EDGE,
|
|
4248
4152
|
Zg as LKOgma,
|
|
4249
|
-
|
|
4153
|
+
z as NodeAttributes,
|
|
4250
4154
|
jg as OgmaStore,
|
|
4251
|
-
|
|
4252
|
-
|
|
4155
|
+
j as OgmaTools,
|
|
4156
|
+
Lt as PALETTE,
|
|
4253
4157
|
C as StyleRule,
|
|
4254
4158
|
mg as StyleRuleType,
|
|
4255
|
-
|
|
4256
|
-
|
|
4159
|
+
f as StyleRules,
|
|
4160
|
+
w as StyleType,
|
|
4257
4161
|
Ag as StylesViz,
|
|
4258
4162
|
u as Tools,
|
|
4259
4163
|
Kg as TransformationsViz,
|
|
@@ -4261,7 +4165,7 @@ export {
|
|
|
4261
4165
|
qg as getSelectionProperties,
|
|
4262
4166
|
Xg as getSelectionSize,
|
|
4263
4167
|
Qg as getSelectionState,
|
|
4264
|
-
|
|
4168
|
+
Je as getUniqSelection,
|
|
4265
4169
|
rh as getUniqSelectionEntity,
|
|
4266
4170
|
th as getUniqSelectionTypes,
|
|
4267
4171
|
ih as hasSelectionProperties
|