@linkurious/ogma-linkurious-parser 4.1.14 → 4.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +995 -825
- package/dist/index.mjs.map +1 -1
- package/dist/ogma/features/nodeGrouping.d.ts +37 -12
- package/dist/ogma/features/reactive.d.ts +2 -6
- package/dist/ogma/features/selectors.d.ts +1 -1
- package/dist/ogma/features/styles.d.ts +5 -1
- package/dist/ogma/features/transformations.d.ts +1 -1
- package/dist/ogma/index.d.ts +14 -8
- package/dist/styles/edgeAttributes.d.ts +1 -1
- package/dist/styles/itemAttributes.d.ts +1 -1
- package/dist/styles/nodeAttributes.d.ts +1 -1
- package/dist/tools/ogmaTool.d.ts +22 -2
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
import { CurrencyFormat as
|
|
2
|
-
import
|
|
3
|
-
import { BehaviorSubject as
|
|
4
|
-
var
|
|
5
|
-
function
|
|
1
|
+
import { CurrencyFormat as G, PropertyTypeName as yr, AutoRangeScale as Vt, OgmaEdgeShape as vr, SelectorType as S, ForceLayoutMode as _r, EntityType as I, NodeGroupingType as Y } from "@linkurious/rest-client";
|
|
2
|
+
import mr from "@linkurious/ogma";
|
|
3
|
+
import { BehaviorSubject as Cr } from "rxjs";
|
|
4
|
+
var re = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
5
|
+
function Ie(r) {
|
|
6
6
|
return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
|
|
7
7
|
}
|
|
8
|
-
function
|
|
8
|
+
function Sr() {
|
|
9
9
|
this.__data__ = [], this.size = 0;
|
|
10
10
|
}
|
|
11
|
-
var
|
|
12
|
-
function
|
|
11
|
+
var Ar = Sr;
|
|
12
|
+
function xr(r, e) {
|
|
13
13
|
return r === e || r !== r && e !== e;
|
|
14
14
|
}
|
|
15
|
-
var
|
|
16
|
-
function
|
|
15
|
+
var Me = xr, Er = Me;
|
|
16
|
+
function Fr(r, e) {
|
|
17
17
|
for (var t = r.length; t--; )
|
|
18
|
-
if (
|
|
18
|
+
if (Er(r[t][0], e))
|
|
19
19
|
return t;
|
|
20
20
|
return -1;
|
|
21
21
|
}
|
|
22
|
-
var
|
|
23
|
-
function
|
|
22
|
+
var le = Fr, $r = le, Tr = Array.prototype, Nr = Tr.splice;
|
|
23
|
+
function Dr(r) {
|
|
24
24
|
var e = this.__data__, t = $r(e, r);
|
|
25
25
|
if (t < 0)
|
|
26
26
|
return !1;
|
|
27
27
|
var i = e.length - 1;
|
|
28
|
-
return t == i ? e.pop() :
|
|
28
|
+
return t == i ? e.pop() : Nr.call(e, t, 1), --this.size, !0;
|
|
29
29
|
}
|
|
30
|
-
var wr =
|
|
31
|
-
function
|
|
32
|
-
var e = this.__data__, t =
|
|
30
|
+
var wr = Dr, Or = le;
|
|
31
|
+
function Lr(r) {
|
|
32
|
+
var e = this.__data__, t = Or(e, r);
|
|
33
33
|
return t < 0 ? void 0 : e[t][1];
|
|
34
34
|
}
|
|
35
|
-
var
|
|
36
|
-
function
|
|
37
|
-
return
|
|
35
|
+
var Pr = Lr, Ir = le;
|
|
36
|
+
function Mr(r) {
|
|
37
|
+
return Ir(this.__data__, r) > -1;
|
|
38
38
|
}
|
|
39
|
-
var
|
|
40
|
-
function
|
|
41
|
-
var t = this.__data__, i =
|
|
39
|
+
var Rr = Mr, Br = le;
|
|
40
|
+
function Gr(r, e) {
|
|
41
|
+
var t = this.__data__, i = Br(t, r);
|
|
42
42
|
return i < 0 ? (++this.size, t.push([r, e])) : t[i][1] = e, this;
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
function
|
|
44
|
+
var zr = Gr, jr = Ar, Ur = wr, Vr = Pr, kr = Rr, Hr = zr;
|
|
45
|
+
function V(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
|
|
58
|
-
function
|
|
59
|
-
this.__data__ = new
|
|
52
|
+
V.prototype.clear = jr;
|
|
53
|
+
V.prototype.delete = Ur;
|
|
54
|
+
V.prototype.get = Vr;
|
|
55
|
+
V.prototype.has = kr;
|
|
56
|
+
V.prototype.set = Hr;
|
|
57
|
+
var ce = V, Kr = ce;
|
|
58
|
+
function qr() {
|
|
59
|
+
this.__data__ = new Kr(), this.size = 0;
|
|
60
60
|
}
|
|
61
|
-
var
|
|
62
|
-
function
|
|
61
|
+
var Yr = qr;
|
|
62
|
+
function Wr(r) {
|
|
63
63
|
var e = this.__data__, t = e.delete(r);
|
|
64
64
|
return this.size = e.size, t;
|
|
65
65
|
}
|
|
66
|
-
var
|
|
67
|
-
function
|
|
66
|
+
var Jr = Wr;
|
|
67
|
+
function Zr(r) {
|
|
68
68
|
return this.__data__.get(r);
|
|
69
69
|
}
|
|
70
|
-
var
|
|
71
|
-
function
|
|
70
|
+
var Xr = Zr;
|
|
71
|
+
function Qr(r) {
|
|
72
72
|
return this.__data__.has(r);
|
|
73
73
|
}
|
|
74
|
-
var
|
|
75
|
-
function
|
|
76
|
-
var e =
|
|
74
|
+
var ei = Qr, ti = typeof re == "object" && re && re.Object === Object && re, kt = ti, ri = kt, ii = typeof self == "object" && self && self.Object === Object && self, ni = ri || ii || Function("return this")(), w = ni, si = w, ai = si.Symbol, Q = ai, Je = Q, Ht = Object.prototype, oi = Ht.hasOwnProperty, ui = Ht.toString, W = Je ? Je.toStringTag : void 0;
|
|
75
|
+
function li(r) {
|
|
76
|
+
var e = oi.call(r, W), t = r[W];
|
|
77
77
|
try {
|
|
78
|
-
r[
|
|
78
|
+
r[W] = void 0;
|
|
79
79
|
var i = !0;
|
|
80
80
|
} catch {
|
|
81
81
|
}
|
|
82
|
-
var n =
|
|
83
|
-
return i && (e ? r[
|
|
82
|
+
var n = ui.call(r);
|
|
83
|
+
return i && (e ? r[W] = t : delete r[W]), n;
|
|
84
84
|
}
|
|
85
|
-
var
|
|
86
|
-
function
|
|
87
|
-
return
|
|
85
|
+
var ci = li, di = Object.prototype, gi = di.toString;
|
|
86
|
+
function hi(r) {
|
|
87
|
+
return gi.call(r);
|
|
88
88
|
}
|
|
89
|
-
var
|
|
90
|
-
function
|
|
91
|
-
return r == null ? r === void 0 ?
|
|
89
|
+
var fi = hi, Ze = Q, pi = ci, bi = fi, yi = "[object Null]", vi = "[object Undefined]", Xe = Ze ? Ze.toStringTag : void 0;
|
|
90
|
+
function _i(r) {
|
|
91
|
+
return r == null ? r === void 0 ? vi : yi : Xe && Xe in Object(r) ? pi(r) : bi(r);
|
|
92
92
|
}
|
|
93
|
-
var
|
|
94
|
-
function
|
|
93
|
+
var ee = _i;
|
|
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 de = mi, Ci = ee, Si = de, Ai = "[object AsyncFunction]", xi = "[object Function]", Ei = "[object GeneratorFunction]", Fi = "[object Proxy]";
|
|
99
99
|
function $i(r) {
|
|
100
|
-
if (!
|
|
100
|
+
if (!Si(r))
|
|
101
101
|
return !1;
|
|
102
|
-
var e =
|
|
103
|
-
return e ==
|
|
102
|
+
var e = Ci(r);
|
|
103
|
+
return e == xi || e == Ei || e == Ai || e == Fi;
|
|
104
104
|
}
|
|
105
|
-
var
|
|
106
|
-
var r = /[^.]+$/.exec(
|
|
105
|
+
var Kt = $i, Ti = w, Ni = Ti["__core-js_shared__"], Di = Ni, ve = Di, Qe = function() {
|
|
106
|
+
var r = /[^.]+$/.exec(ve && ve.keys && ve.keys.IE_PROTO || "");
|
|
107
107
|
return r ? "Symbol(src)_1." + r : "";
|
|
108
108
|
}();
|
|
109
109
|
function wi(r) {
|
|
110
|
-
return !!
|
|
110
|
+
return !!Qe && Qe in r;
|
|
111
111
|
}
|
|
112
|
-
var
|
|
113
|
-
function
|
|
112
|
+
var Oi = wi, Li = Function.prototype, Pi = Li.toString;
|
|
113
|
+
function Ii(r) {
|
|
114
114
|
if (r != null) {
|
|
115
115
|
try {
|
|
116
|
-
return
|
|
116
|
+
return Pi.call(r);
|
|
117
117
|
} catch {
|
|
118
118
|
}
|
|
119
119
|
try {
|
|
@@ -123,53 +123,53 @@ function Li(r) {
|
|
|
123
123
|
}
|
|
124
124
|
return "";
|
|
125
125
|
}
|
|
126
|
-
var
|
|
127
|
-
"^" +
|
|
126
|
+
var qt = Ii, Mi = Kt, Ri = Oi, Bi = de, Gi = qt, zi = /[\\^$.*+?()[\]{}|]/g, ji = /^\[object .+?Constructor\]$/, Ui = Function.prototype, Vi = Object.prototype, ki = Ui.toString, Hi = Vi.hasOwnProperty, Ki = RegExp(
|
|
127
|
+
"^" + ki.call(Hi).replace(zi, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
128
128
|
);
|
|
129
|
-
function
|
|
130
|
-
if (!
|
|
129
|
+
function qi(r) {
|
|
130
|
+
if (!Bi(r) || Ri(r))
|
|
131
131
|
return !1;
|
|
132
|
-
var e =
|
|
133
|
-
return e.test(
|
|
132
|
+
var e = Mi(r) ? Ki : ji;
|
|
133
|
+
return e.test(Gi(r));
|
|
134
134
|
}
|
|
135
|
-
var
|
|
136
|
-
function
|
|
135
|
+
var Yi = qi;
|
|
136
|
+
function Wi(r, e) {
|
|
137
137
|
return r == null ? void 0 : r[e];
|
|
138
138
|
}
|
|
139
|
-
var
|
|
140
|
-
function
|
|
141
|
-
var t =
|
|
142
|
-
return
|
|
139
|
+
var Ji = Wi, Zi = Yi, Xi = Ji;
|
|
140
|
+
function Qi(r, e) {
|
|
141
|
+
var t = Xi(r, e);
|
|
142
|
+
return Zi(t) ? t : void 0;
|
|
143
143
|
}
|
|
144
|
-
var
|
|
145
|
-
function
|
|
146
|
-
this.__data__ =
|
|
144
|
+
var R = Qi, en = R, tn = w, rn = en(tn, "Map"), Re = rn, nn = R, sn = nn(Object, "create"), ge = sn, et = ge;
|
|
145
|
+
function an() {
|
|
146
|
+
this.__data__ = et ? et(null) : {}, this.size = 0;
|
|
147
147
|
}
|
|
148
|
-
var
|
|
149
|
-
function
|
|
148
|
+
var on = an;
|
|
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
|
|
154
|
-
function
|
|
153
|
+
var ln = un, cn = ge, dn = "__lodash_hash_undefined__", gn = Object.prototype, hn = gn.hasOwnProperty;
|
|
154
|
+
function fn(r) {
|
|
155
155
|
var e = this.__data__;
|
|
156
|
-
if (
|
|
156
|
+
if (cn) {
|
|
157
157
|
var t = e[r];
|
|
158
|
-
return t ===
|
|
158
|
+
return t === dn ? void 0 : t;
|
|
159
159
|
}
|
|
160
|
-
return
|
|
160
|
+
return hn.call(e, r) ? e[r] : void 0;
|
|
161
161
|
}
|
|
162
|
-
var
|
|
163
|
-
function
|
|
162
|
+
var pn = fn, bn = ge, yn = Object.prototype, vn = yn.hasOwnProperty;
|
|
163
|
+
function _n(r) {
|
|
164
164
|
var e = this.__data__;
|
|
165
|
-
return
|
|
165
|
+
return bn ? e[r] !== void 0 : vn.call(e, r);
|
|
166
166
|
}
|
|
167
|
-
var
|
|
168
|
-
function
|
|
167
|
+
var mn = _n, Cn = ge, Sn = "__lodash_hash_undefined__";
|
|
168
|
+
function An(r, e) {
|
|
169
169
|
var t = this.__data__;
|
|
170
|
-
return this.size += this.has(r) ? 0 : 1, t[r] =
|
|
170
|
+
return this.size += this.has(r) ? 0 : 1, t[r] = Cn && e === void 0 ? Sn : e, this;
|
|
171
171
|
}
|
|
172
|
-
var
|
|
172
|
+
var xn = An, En = on, Fn = ln, $n = pn, Tn = mn, Nn = xn;
|
|
173
173
|
function k(r) {
|
|
174
174
|
var e = -1, t = r == null ? 0 : r.length;
|
|
175
175
|
for (this.clear(); ++e < t; ) {
|
|
@@ -177,48 +177,48 @@ function k(r) {
|
|
|
177
177
|
this.set(i[0], i[1]);
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
k.prototype.clear =
|
|
181
|
-
k.prototype.delete =
|
|
180
|
+
k.prototype.clear = En;
|
|
181
|
+
k.prototype.delete = Fn;
|
|
182
182
|
k.prototype.get = $n;
|
|
183
|
-
k.prototype.has =
|
|
184
|
-
k.prototype.set =
|
|
185
|
-
var
|
|
186
|
-
function
|
|
183
|
+
k.prototype.has = Tn;
|
|
184
|
+
k.prototype.set = Nn;
|
|
185
|
+
var Dn = k, tt = Dn, wn = ce, On = Re;
|
|
186
|
+
function Ln() {
|
|
187
187
|
this.size = 0, this.__data__ = {
|
|
188
|
-
hash: new
|
|
189
|
-
map: new (
|
|
190
|
-
string: new
|
|
188
|
+
hash: new tt(),
|
|
189
|
+
map: new (On || wn)(),
|
|
190
|
+
string: new tt()
|
|
191
191
|
};
|
|
192
192
|
}
|
|
193
|
-
var
|
|
194
|
-
function
|
|
193
|
+
var Pn = Ln;
|
|
194
|
+
function In(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
|
|
199
|
-
function
|
|
198
|
+
var Mn = In, Rn = Mn;
|
|
199
|
+
function Bn(r, e) {
|
|
200
200
|
var t = r.__data__;
|
|
201
|
-
return
|
|
201
|
+
return Rn(e) ? t[typeof e == "string" ? "string" : "hash"] : t.map;
|
|
202
202
|
}
|
|
203
|
-
var
|
|
204
|
-
function
|
|
205
|
-
var e =
|
|
203
|
+
var he = Bn, Gn = he;
|
|
204
|
+
function zn(r) {
|
|
205
|
+
var e = Gn(this, r).delete(r);
|
|
206
206
|
return this.size -= e ? 1 : 0, e;
|
|
207
207
|
}
|
|
208
|
-
var
|
|
209
|
-
function
|
|
210
|
-
return
|
|
208
|
+
var jn = zn, Un = he;
|
|
209
|
+
function Vn(r) {
|
|
210
|
+
return Un(this, r).get(r);
|
|
211
211
|
}
|
|
212
|
-
var
|
|
213
|
-
function
|
|
214
|
-
return
|
|
212
|
+
var kn = Vn, Hn = he;
|
|
213
|
+
function Kn(r) {
|
|
214
|
+
return Hn(this, r).has(r);
|
|
215
215
|
}
|
|
216
|
-
var
|
|
217
|
-
function
|
|
218
|
-
var t =
|
|
216
|
+
var qn = Kn, Yn = he;
|
|
217
|
+
function Wn(r, e) {
|
|
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
|
|
221
|
+
var Jn = Wn, Zn = Pn, Xn = jn, Qn = kn, es = qn, ts = Jn;
|
|
222
222
|
function H(r) {
|
|
223
223
|
var e = -1, t = r == null ? 0 : r.length;
|
|
224
224
|
for (this.clear(); ++e < t; ) {
|
|
@@ -226,62 +226,62 @@ function H(r) {
|
|
|
226
226
|
this.set(i[0], i[1]);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
H.prototype.clear =
|
|
230
|
-
H.prototype.delete =
|
|
231
|
-
H.prototype.get =
|
|
232
|
-
H.prototype.has =
|
|
233
|
-
H.prototype.set =
|
|
234
|
-
var
|
|
235
|
-
function
|
|
229
|
+
H.prototype.clear = Zn;
|
|
230
|
+
H.prototype.delete = Xn;
|
|
231
|
+
H.prototype.get = Qn;
|
|
232
|
+
H.prototype.has = es;
|
|
233
|
+
H.prototype.set = ts;
|
|
234
|
+
var Be = H, rs = ce, is = Re, ns = Be, ss = 200;
|
|
235
|
+
function as(r, e) {
|
|
236
236
|
var t = this.__data__;
|
|
237
|
-
if (t instanceof
|
|
237
|
+
if (t instanceof rs) {
|
|
238
238
|
var i = t.__data__;
|
|
239
|
-
if (!
|
|
239
|
+
if (!is || i.length < ss - 1)
|
|
240
240
|
return i.push([r, e]), this.size = ++t.size, this;
|
|
241
|
-
t = this.__data__ = new
|
|
241
|
+
t = this.__data__ = new ns(i);
|
|
242
242
|
}
|
|
243
243
|
return t.set(r, e), this.size = t.size, this;
|
|
244
244
|
}
|
|
245
|
-
var
|
|
246
|
-
function
|
|
247
|
-
var e = this.__data__ = new
|
|
245
|
+
var os = as, us = ce, ls = Yr, cs = Jr, ds = Xr, gs = ei, hs = os;
|
|
246
|
+
function K(r) {
|
|
247
|
+
var e = this.__data__ = new us(r);
|
|
248
248
|
this.size = e.size;
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
var
|
|
256
|
-
function hs(r) {
|
|
257
|
-
return this.__data__.set(r, gs), this;
|
|
258
|
-
}
|
|
259
|
-
var fs = hs;
|
|
250
|
+
K.prototype.clear = ls;
|
|
251
|
+
K.prototype.delete = cs;
|
|
252
|
+
K.prototype.get = ds;
|
|
253
|
+
K.prototype.has = gs;
|
|
254
|
+
K.prototype.set = hs;
|
|
255
|
+
var Yt = K, fs = "__lodash_hash_undefined__";
|
|
260
256
|
function ps(r) {
|
|
257
|
+
return this.__data__.set(r, fs), this;
|
|
258
|
+
}
|
|
259
|
+
var bs = ps;
|
|
260
|
+
function ys(r) {
|
|
261
261
|
return this.__data__.has(r);
|
|
262
262
|
}
|
|
263
|
-
var
|
|
264
|
-
function
|
|
263
|
+
var vs = ys, _s = Be, ms = bs, Cs = vs;
|
|
264
|
+
function se(r) {
|
|
265
265
|
var e = -1, t = r == null ? 0 : r.length;
|
|
266
|
-
for (this.__data__ = new
|
|
266
|
+
for (this.__data__ = new _s(); ++e < t; )
|
|
267
267
|
this.add(r[e]);
|
|
268
268
|
}
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
var
|
|
272
|
-
function
|
|
269
|
+
se.prototype.add = se.prototype.push = ms;
|
|
270
|
+
se.prototype.has = Cs;
|
|
271
|
+
var Ss = se;
|
|
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))
|
|
275
275
|
return !0;
|
|
276
276
|
return !1;
|
|
277
277
|
}
|
|
278
|
-
var
|
|
279
|
-
function
|
|
278
|
+
var xs = As;
|
|
279
|
+
function Es(r, e) {
|
|
280
280
|
return r.has(e);
|
|
281
281
|
}
|
|
282
|
-
var
|
|
283
|
-
function
|
|
284
|
-
var a = t &
|
|
282
|
+
var Fs = Es, $s = Ss, Ts = xs, Ns = Fs, Ds = 1, ws = 2;
|
|
283
|
+
function Os(r, e, t, i, n, s) {
|
|
284
|
+
var a = t & Ds, o = r.length, l = e.length;
|
|
285
285
|
if (o != l && !(a && l > o))
|
|
286
286
|
return !1;
|
|
287
287
|
var c = s.get(r), d = s.get(e);
|
|
@@ -289,9 +289,9 @@ function Ns(r, e, t, i, n, s) {
|
|
|
289
289
|
return c == e && d == 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
|
|
292
|
+
var m = r[g], f = e[g];
|
|
293
293
|
if (i)
|
|
294
|
-
var A = a ? i(f,
|
|
294
|
+
var A = a ? i(f, m, g, e, r, s) : i(m, f, g, r, e, s);
|
|
295
295
|
if (A !== void 0) {
|
|
296
296
|
if (A)
|
|
297
297
|
continue;
|
|
@@ -299,150 +299,150 @@ function Ns(r, e, t, i, n, s) {
|
|
|
299
299
|
break;
|
|
300
300
|
}
|
|
301
301
|
if (y) {
|
|
302
|
-
if (!
|
|
303
|
-
if (!
|
|
304
|
-
return y.push(
|
|
302
|
+
if (!Ts(e, function(x, E) {
|
|
303
|
+
if (!Ns(y, E) && (m === x || n(m, x, t, i, s)))
|
|
304
|
+
return y.push(E);
|
|
305
305
|
})) {
|
|
306
306
|
h = !1;
|
|
307
307
|
break;
|
|
308
308
|
}
|
|
309
|
-
} else if (!(
|
|
309
|
+
} else if (!(m === f || n(m, f, 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
|
|
317
|
-
function
|
|
316
|
+
var Wt = Os, Ls = w, Ps = Ls.Uint8Array, Is = Ps;
|
|
317
|
+
function Ms(r) {
|
|
318
318
|
var e = -1, t = Array(r.size);
|
|
319
319
|
return r.forEach(function(i, n) {
|
|
320
320
|
t[++e] = [n, i];
|
|
321
321
|
}), t;
|
|
322
322
|
}
|
|
323
|
-
var
|
|
324
|
-
function
|
|
323
|
+
var Rs = Ms;
|
|
324
|
+
function Bs(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
|
|
331
|
-
function
|
|
330
|
+
var Gs = Bs, rt = Q, it = Is, zs = Me, js = Wt, Us = Rs, Vs = Gs, 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]", nt = rt ? rt.prototype : void 0, _e = nt ? nt.valueOf : void 0;
|
|
331
|
+
function ia(r, e, t, i, n, s, a) {
|
|
332
332
|
switch (t) {
|
|
333
|
-
case
|
|
333
|
+
case ra:
|
|
334
334
|
if (r.byteLength != e.byteLength || r.byteOffset != e.byteOffset)
|
|
335
335
|
return !1;
|
|
336
336
|
r = r.buffer, e = e.buffer;
|
|
337
|
-
case
|
|
338
|
-
return !(r.byteLength != e.byteLength || !s(new
|
|
339
|
-
case Hs:
|
|
340
|
-
case Vs:
|
|
341
|
-
case Ws:
|
|
342
|
-
return Bs(+r, +e);
|
|
337
|
+
case ta:
|
|
338
|
+
return !(r.byteLength != e.byteLength || !s(new it(r), new it(e)));
|
|
343
339
|
case Ks:
|
|
344
|
-
|
|
340
|
+
case qs:
|
|
341
|
+
case Js:
|
|
342
|
+
return zs(+r, +e);
|
|
345
343
|
case Ys:
|
|
344
|
+
return r.name == e.name && r.message == e.message;
|
|
346
345
|
case Zs:
|
|
346
|
+
case Qs:
|
|
347
347
|
return r == e + "";
|
|
348
|
-
case
|
|
349
|
-
var o =
|
|
350
|
-
case
|
|
351
|
-
var l = i &
|
|
352
|
-
if (o || (o =
|
|
348
|
+
case Ws:
|
|
349
|
+
var o = Us;
|
|
350
|
+
case Xs:
|
|
351
|
+
var l = i & ks;
|
|
352
|
+
if (o || (o = Vs), r.size != e.size && !l)
|
|
353
353
|
return !1;
|
|
354
354
|
var c = a.get(r);
|
|
355
355
|
if (c)
|
|
356
356
|
return c == e;
|
|
357
|
-
i |=
|
|
358
|
-
var d =
|
|
357
|
+
i |= Hs, a.set(r, e);
|
|
358
|
+
var d = js(o(r), o(e), i, n, s, a);
|
|
359
359
|
return a.delete(r), d;
|
|
360
|
-
case
|
|
361
|
-
if (
|
|
362
|
-
return
|
|
360
|
+
case ea:
|
|
361
|
+
if (_e)
|
|
362
|
+
return _e.call(r) == _e.call(e);
|
|
363
363
|
}
|
|
364
364
|
return !1;
|
|
365
365
|
}
|
|
366
|
-
var
|
|
367
|
-
function
|
|
366
|
+
var na = ia;
|
|
367
|
+
function sa(r, e) {
|
|
368
368
|
for (var t = -1, i = e.length, n = r.length; ++t < i; )
|
|
369
369
|
r[n + t] = e[t];
|
|
370
370
|
return r;
|
|
371
371
|
}
|
|
372
|
-
var
|
|
373
|
-
function
|
|
372
|
+
var Jt = sa, aa = Array.isArray, T = aa, oa = Jt, ua = T;
|
|
373
|
+
function la(r, e, t) {
|
|
374
374
|
var i = e(r);
|
|
375
|
-
return
|
|
375
|
+
return ua(r) ? i : oa(i, t(r));
|
|
376
376
|
}
|
|
377
|
-
var
|
|
378
|
-
function
|
|
377
|
+
var ca = la;
|
|
378
|
+
function da(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
|
|
386
|
-
function
|
|
385
|
+
var ga = da;
|
|
386
|
+
function ha() {
|
|
387
387
|
return [];
|
|
388
388
|
}
|
|
389
|
-
var
|
|
390
|
-
return r == null ? [] : (r = Object(r),
|
|
391
|
-
return
|
|
389
|
+
var fa = ha, pa = ga, ba = fa, ya = Object.prototype, va = ya.propertyIsEnumerable, st = Object.getOwnPropertySymbols, _a = st ? function(r) {
|
|
390
|
+
return r == null ? [] : (r = Object(r), pa(st(r), function(e) {
|
|
391
|
+
return va.call(r, e);
|
|
392
392
|
}));
|
|
393
|
-
} :
|
|
394
|
-
function
|
|
393
|
+
} : ba, ma = _a;
|
|
394
|
+
function Ca(r, e) {
|
|
395
395
|
for (var t = -1, i = Array(r); ++t < r; )
|
|
396
396
|
i[t] = e(t);
|
|
397
397
|
return i;
|
|
398
398
|
}
|
|
399
|
-
var
|
|
400
|
-
function
|
|
399
|
+
var Sa = Ca;
|
|
400
|
+
function Aa(r) {
|
|
401
401
|
return r != null && typeof r == "object";
|
|
402
402
|
}
|
|
403
|
-
var
|
|
403
|
+
var te = Aa, xa = ee, Ea = te, Fa = "[object Arguments]";
|
|
404
404
|
function $a(r) {
|
|
405
|
-
return
|
|
405
|
+
return Ea(r) && xa(r) == Fa;
|
|
406
406
|
}
|
|
407
|
-
var
|
|
407
|
+
var Ta = $a, at = Ta, Na = te, Zt = Object.prototype, Da = Zt.hasOwnProperty, wa = Zt.propertyIsEnumerable, Oa = at(/* @__PURE__ */ function() {
|
|
408
408
|
return arguments;
|
|
409
|
-
}()) ?
|
|
410
|
-
return
|
|
411
|
-
},
|
|
412
|
-
function
|
|
409
|
+
}()) ? at : function(r) {
|
|
410
|
+
return Na(r) && Da.call(r, "callee") && !wa.call(r, "callee");
|
|
411
|
+
}, Ge = Oa, ae = { exports: {} };
|
|
412
|
+
function La() {
|
|
413
413
|
return !1;
|
|
414
414
|
}
|
|
415
|
-
var
|
|
416
|
-
|
|
415
|
+
var Pa = La;
|
|
416
|
+
ae.exports;
|
|
417
417
|
(function(r, e) {
|
|
418
|
-
var t =
|
|
418
|
+
var t = w, i = Pa, 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, c = l || i;
|
|
419
419
|
r.exports = c;
|
|
420
|
-
})(
|
|
421
|
-
var
|
|
422
|
-
function
|
|
420
|
+
})(ae, ae.exports);
|
|
421
|
+
var Xt = ae.exports, Ia = 9007199254740991, Ma = /^(?:0|[1-9]\d*)$/;
|
|
422
|
+
function Ra(r, e) {
|
|
423
423
|
var t = typeof r;
|
|
424
|
-
return e = e ??
|
|
425
|
-
}
|
|
426
|
-
var Re = Pa, Ma = 9007199254740991;
|
|
427
|
-
function Ra(r) {
|
|
428
|
-
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Ma;
|
|
424
|
+
return e = e ?? Ia, !!e && (t == "number" || t != "symbol" && Ma.test(r)) && r > -1 && r % 1 == 0 && r < e;
|
|
429
425
|
}
|
|
430
|
-
var
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
function go(r) {
|
|
434
|
-
return Ga(r) && za(r.length) && !!b[Ba(r)];
|
|
426
|
+
var ze = Ra, Ba = 9007199254740991;
|
|
427
|
+
function Ga(r) {
|
|
428
|
+
return typeof r == "number" && r > -1 && r % 1 == 0 && r <= Ba;
|
|
435
429
|
}
|
|
436
|
-
var ho =
|
|
430
|
+
var je = Ga, za = ee, ja = je, Ua = te, 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
|
+
b[no] = b[so] = b[ao] = b[oo] = b[uo] = b[lo] = b[co] = b[go] = b[ho] = !0;
|
|
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;
|
|
437
433
|
function fo(r) {
|
|
434
|
+
return Ua(r) && ja(r.length) && !!b[za(r)];
|
|
435
|
+
}
|
|
436
|
+
var po = fo;
|
|
437
|
+
function bo(r) {
|
|
438
438
|
return function(e) {
|
|
439
439
|
return r(e);
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
var
|
|
443
|
-
|
|
442
|
+
var Qt = bo, oe = { exports: {} };
|
|
443
|
+
oe.exports;
|
|
444
444
|
(function(r, e) {
|
|
445
|
-
var t =
|
|
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 {
|
|
447
447
|
var l = n && n.require && n.require("util").types;
|
|
448
448
|
return l || a && a.binding && a.binding("util");
|
|
@@ -450,165 +450,165 @@ ie.exports;
|
|
|
450
450
|
}
|
|
451
451
|
}();
|
|
452
452
|
r.exports = o;
|
|
453
|
-
})(
|
|
454
|
-
var
|
|
455
|
-
function
|
|
456
|
-
var t =
|
|
453
|
+
})(oe, oe.exports);
|
|
454
|
+
var yo = oe.exports, vo = po, _o = Qt, ot = yo, ut = ot && ot.isTypedArray, mo = ut ? _o(ut) : vo, er = mo, Co = Sa, So = Ge, Ao = T, xo = Xt, Eo = ze, Fo = er, $o = Object.prototype, To = $o.hasOwnProperty;
|
|
455
|
+
function No(r, e) {
|
|
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
457
|
for (var c in r)
|
|
458
|
-
(e ||
|
|
458
|
+
(e || To.call(r, c)) && !(a && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
459
459
|
(c == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
460
460
|
n && (c == "offset" || c == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
461
461
|
s && (c == "buffer" || c == "byteLength" || c == "byteOffset") || // Skip index properties.
|
|
462
|
-
|
|
462
|
+
Eo(c, l))) && o.push(c);
|
|
463
463
|
return o;
|
|
464
464
|
}
|
|
465
|
-
var
|
|
466
|
-
function
|
|
465
|
+
var Do = No, wo = Object.prototype;
|
|
466
|
+
function Oo(r) {
|
|
467
467
|
var e = r && r.constructor, t = typeof e == "function" && e.prototype || wo;
|
|
468
468
|
return r === t;
|
|
469
469
|
}
|
|
470
|
-
var
|
|
471
|
-
function
|
|
470
|
+
var Lo = Oo;
|
|
471
|
+
function Po(r, e) {
|
|
472
472
|
return function(t) {
|
|
473
473
|
return r(e(t));
|
|
474
474
|
};
|
|
475
475
|
}
|
|
476
|
-
var
|
|
477
|
-
function
|
|
478
|
-
if (!
|
|
479
|
-
return
|
|
476
|
+
var Io = Po, Mo = Io, Ro = Mo(Object.keys, Object), Bo = Ro, Go = Lo, zo = Bo, jo = Object.prototype, Uo = jo.hasOwnProperty;
|
|
477
|
+
function Vo(r) {
|
|
478
|
+
if (!Go(r))
|
|
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
|
|
486
|
-
function
|
|
487
|
-
return r != null &&
|
|
485
|
+
var ko = Vo, Ho = Kt, Ko = je;
|
|
486
|
+
function qo(r) {
|
|
487
|
+
return r != null && Ko(r.length) && !Ho(r);
|
|
488
488
|
}
|
|
489
|
-
var
|
|
490
|
-
function
|
|
491
|
-
return
|
|
489
|
+
var fe = qo, Yo = Do, Wo = ko, Jo = fe;
|
|
490
|
+
function Zo(r) {
|
|
491
|
+
return Jo(r) ? Yo(r) : Wo(r);
|
|
492
492
|
}
|
|
493
|
-
var
|
|
494
|
-
function
|
|
495
|
-
return
|
|
493
|
+
var Ue = Zo, Xo = ca, Qo = ma, eu = Ue;
|
|
494
|
+
function tu(r) {
|
|
495
|
+
return Xo(r, eu, Qo);
|
|
496
496
|
}
|
|
497
|
-
var
|
|
498
|
-
function
|
|
499
|
-
var a = t &
|
|
497
|
+
var ru = tu, lt = ru, iu = 1, nu = Object.prototype, su = nu.hasOwnProperty;
|
|
498
|
+
function au(r, e, t, i, n, s) {
|
|
499
|
+
var a = t & iu, o = lt(r), l = o.length, c = lt(e), d = c.length;
|
|
500
500
|
if (l != d && !a)
|
|
501
501
|
return !1;
|
|
502
502
|
for (var g = l; g--; ) {
|
|
503
503
|
var h = o[g];
|
|
504
|
-
if (!(a ? h in e :
|
|
504
|
+
if (!(a ? h in e : su.call(e, h)))
|
|
505
505
|
return !1;
|
|
506
506
|
}
|
|
507
|
-
var y = s.get(r),
|
|
508
|
-
if (y &&
|
|
509
|
-
return y == e &&
|
|
507
|
+
var y = s.get(r), m = s.get(e);
|
|
508
|
+
if (y && m)
|
|
509
|
+
return y == e && m == r;
|
|
510
510
|
var f = !0;
|
|
511
511
|
s.set(r, e), s.set(e, r);
|
|
512
512
|
for (var A = a; ++g < l; ) {
|
|
513
513
|
h = o[g];
|
|
514
|
-
var x = r[h],
|
|
514
|
+
var x = r[h], E = e[h];
|
|
515
515
|
if (i)
|
|
516
|
-
var
|
|
517
|
-
if (!(
|
|
516
|
+
var B = a ? i(E, x, h, e, r, s) : i(x, E, h, r, e, s);
|
|
517
|
+
if (!(B === void 0 ? x === E || n(x, E, t, i, s) : B)) {
|
|
518
518
|
f = !1;
|
|
519
519
|
break;
|
|
520
520
|
}
|
|
521
521
|
A || (A = h == "constructor");
|
|
522
522
|
}
|
|
523
523
|
if (f && !A) {
|
|
524
|
-
var v = r.constructor,
|
|
525
|
-
v !=
|
|
524
|
+
var v = r.constructor, L = e.constructor;
|
|
525
|
+
v != L && "constructor" in r && "constructor" in e && !(typeof v == "function" && v instanceof v && typeof L == "function" && L instanceof L) && (f = !1);
|
|
526
526
|
}
|
|
527
527
|
return s.delete(r), s.delete(e), f;
|
|
528
528
|
}
|
|
529
|
-
var
|
|
530
|
-
(
|
|
531
|
-
var e =
|
|
529
|
+
var ou = au, uu = R, lu = w, cu = uu(lu, "DataView"), du = cu, gu = R, hu = w, fu = gu(hu, "Promise"), pu = fu, bu = R, yu = w, vu = bu(yu, "Set"), _u = vu, mu = R, Cu = w, Su = mu(Cu, "WeakMap"), Au = Su, Ee = du, Fe = Re, $e = pu, Te = _u, Ne = Au, tr = ee, q = qt, ct = "[object Map]", xu = "[object Object]", dt = "[object Promise]", gt = "[object Set]", ht = "[object WeakMap]", ft = "[object DataView]", Eu = q(Ee), Fu = q(Fe), $u = q($e), Tu = q(Te), Nu = q(Ne), P = tr;
|
|
530
|
+
(Ee && P(new Ee(new ArrayBuffer(1))) != ft || Fe && P(new Fe()) != ct || $e && P($e.resolve()) != dt || Te && P(new Te()) != gt || Ne && P(new Ne()) != ht) && (P = function(r) {
|
|
531
|
+
var e = tr(r), t = e == xu ? r.constructor : void 0, i = t ? q(t) : "";
|
|
532
532
|
if (i)
|
|
533
533
|
switch (i) {
|
|
534
|
-
case Au:
|
|
535
|
-
return gt;
|
|
536
|
-
case xu:
|
|
537
|
-
return ut;
|
|
538
|
-
case $u:
|
|
539
|
-
return lt;
|
|
540
534
|
case Eu:
|
|
541
|
-
return
|
|
535
|
+
return ft;
|
|
542
536
|
case Fu:
|
|
537
|
+
return ct;
|
|
538
|
+
case $u:
|
|
543
539
|
return dt;
|
|
540
|
+
case Tu:
|
|
541
|
+
return gt;
|
|
542
|
+
case Nu:
|
|
543
|
+
return ht;
|
|
544
544
|
}
|
|
545
545
|
return e;
|
|
546
546
|
});
|
|
547
|
-
var
|
|
548
|
-
function
|
|
549
|
-
var a =
|
|
550
|
-
l = l ==
|
|
551
|
-
var d = l ==
|
|
552
|
-
if (h &&
|
|
553
|
-
if (!
|
|
547
|
+
var Du = P, me = Yt, wu = Wt, Ou = na, Lu = ou, pt = Du, bt = T, yt = Xt, Pu = er, Iu = 1, vt = "[object Arguments]", _t = "[object Array]", ie = "[object Object]", Mu = Object.prototype, mt = Mu.hasOwnProperty;
|
|
548
|
+
function Ru(r, e, t, i, n, s) {
|
|
549
|
+
var a = bt(r), o = bt(e), l = a ? _t : pt(r), c = o ? _t : pt(e);
|
|
550
|
+
l = l == vt ? ie : l, c = c == vt ? ie : c;
|
|
551
|
+
var d = l == ie, g = c == ie, h = l == c;
|
|
552
|
+
if (h && yt(r)) {
|
|
553
|
+
if (!yt(e))
|
|
554
554
|
return !1;
|
|
555
555
|
a = !0, d = !1;
|
|
556
556
|
}
|
|
557
557
|
if (h && !d)
|
|
558
|
-
return s || (s = new
|
|
559
|
-
if (!(t &
|
|
560
|
-
var y = d &&
|
|
561
|
-
if (y ||
|
|
562
|
-
var f = y ? r.value() : r, A =
|
|
563
|
-
return s || (s = new
|
|
558
|
+
return s || (s = new me()), a || Pu(r) ? wu(r, e, t, i, n, s) : Ou(r, e, l, t, i, n, s);
|
|
559
|
+
if (!(t & Iu)) {
|
|
560
|
+
var y = d && mt.call(r, "__wrapped__"), m = g && mt.call(e, "__wrapped__");
|
|
561
|
+
if (y || m) {
|
|
562
|
+
var f = y ? r.value() : r, A = m ? e.value() : e;
|
|
563
|
+
return s || (s = new me()), n(f, A, t, i, s);
|
|
564
564
|
}
|
|
565
565
|
}
|
|
566
|
-
return h ? (s || (s = new
|
|
566
|
+
return h ? (s || (s = new me()), Lu(r, e, t, i, n, s)) : !1;
|
|
567
567
|
}
|
|
568
|
-
var
|
|
569
|
-
function
|
|
570
|
-
return r === e ? !0 : r == null || e == null || !
|
|
568
|
+
var Bu = Ru, Gu = Bu, Ct = te;
|
|
569
|
+
function rr(r, e, t, i, n) {
|
|
570
|
+
return r === e ? !0 : r == null || e == null || !Ct(r) && !Ct(e) ? r !== r && e !== e : Gu(r, e, t, i, rr, n);
|
|
571
571
|
}
|
|
572
|
-
var
|
|
573
|
-
function
|
|
574
|
-
return
|
|
572
|
+
var Ve = rr, zu = Ve;
|
|
573
|
+
function ju(r, e) {
|
|
574
|
+
return zu(r, e);
|
|
575
575
|
}
|
|
576
|
-
var
|
|
577
|
-
const
|
|
578
|
-
var
|
|
579
|
-
function
|
|
580
|
-
return
|
|
576
|
+
var Uu = ju;
|
|
577
|
+
const Vu = /* @__PURE__ */ Ie(Uu);
|
|
578
|
+
var St = Q, ku = Ge, Hu = T, At = St ? St.isConcatSpreadable : void 0;
|
|
579
|
+
function Ku(r) {
|
|
580
|
+
return Hu(r) || ku(r) || !!(At && r && r[At]);
|
|
581
581
|
}
|
|
582
|
-
var
|
|
583
|
-
function
|
|
582
|
+
var qu = Ku, Yu = Jt, Wu = qu;
|
|
583
|
+
function ir(r, e, t, i, n) {
|
|
584
584
|
var s = -1, a = r.length;
|
|
585
|
-
for (t || (t =
|
|
585
|
+
for (t || (t = Wu), n || (n = []); ++s < a; ) {
|
|
586
586
|
var o = r[s];
|
|
587
|
-
e > 0 && t(o) ? e > 1 ?
|
|
587
|
+
e > 0 && t(o) ? e > 1 ? ir(o, e - 1, t, i, n) : Yu(n, o) : i || (n[n.length] = o);
|
|
588
588
|
}
|
|
589
589
|
return n;
|
|
590
590
|
}
|
|
591
|
-
var
|
|
592
|
-
function
|
|
591
|
+
var Ju = ir;
|
|
592
|
+
function Zu(r, e) {
|
|
593
593
|
for (var t = -1, i = r == null ? 0 : r.length, n = Array(i); ++t < i; )
|
|
594
594
|
n[t] = e(r[t], t, r);
|
|
595
595
|
return n;
|
|
596
596
|
}
|
|
597
|
-
var
|
|
598
|
-
function
|
|
599
|
-
return typeof r == "symbol" ||
|
|
597
|
+
var nr = Zu, Xu = ee, Qu = te, el = "[object Symbol]";
|
|
598
|
+
function tl(r) {
|
|
599
|
+
return typeof r == "symbol" || Qu(r) && Xu(r) == el;
|
|
600
600
|
}
|
|
601
|
-
var
|
|
602
|
-
function
|
|
603
|
-
if (
|
|
601
|
+
var pe = tl, rl = T, il = pe, nl = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, sl = /^\w*$/;
|
|
602
|
+
function al(r, e) {
|
|
603
|
+
if (rl(r))
|
|
604
604
|
return !1;
|
|
605
605
|
var t = typeof r;
|
|
606
|
-
return t == "number" || t == "symbol" || t == "boolean" || r == null ||
|
|
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 ke = al, sr = Be, ol = "Expected a function";
|
|
609
|
+
function He(r, e) {
|
|
610
610
|
if (typeof r != "function" || e != null && typeof e != "function")
|
|
611
|
-
throw new TypeError(
|
|
611
|
+
throw new TypeError(ol);
|
|
612
612
|
var t = function() {
|
|
613
613
|
var i = arguments, n = e ? e.apply(this, i) : i[0], s = t.cache;
|
|
614
614
|
if (s.has(n))
|
|
@@ -616,56 +616,56 @@ function je(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 (He.Cache || sr)(), t;
|
|
620
620
|
}
|
|
621
|
-
|
|
622
|
-
var
|
|
623
|
-
function
|
|
624
|
-
var e =
|
|
625
|
-
return t.size ===
|
|
621
|
+
He.Cache = sr;
|
|
622
|
+
var ul = He, ll = ul, cl = 500;
|
|
623
|
+
function dl(r) {
|
|
624
|
+
var e = ll(r, function(i) {
|
|
625
|
+
return t.size === cl && t.clear(), i;
|
|
626
626
|
}), t = e.cache;
|
|
627
627
|
return e;
|
|
628
628
|
}
|
|
629
|
-
var
|
|
629
|
+
var gl = dl, hl = gl, fl = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, pl = /\\(\\)?/g, bl = hl(function(r) {
|
|
630
630
|
var e = [];
|
|
631
|
-
return r.charCodeAt(0) === 46 && e.push(""), r.replace(
|
|
632
|
-
e.push(n ? s.replace(
|
|
631
|
+
return r.charCodeAt(0) === 46 && e.push(""), r.replace(fl, function(t, i, n, s) {
|
|
632
|
+
e.push(n ? s.replace(pl, "$1") : i || t);
|
|
633
633
|
}), e;
|
|
634
|
-
}),
|
|
635
|
-
function
|
|
634
|
+
}), yl = bl, xt = Q, vl = nr, _l = T, ml = pe, Cl = 1 / 0, Et = xt ? xt.prototype : void 0, Ft = Et ? Et.toString : void 0;
|
|
635
|
+
function ar(r) {
|
|
636
636
|
if (typeof r == "string")
|
|
637
637
|
return r;
|
|
638
|
-
if (
|
|
639
|
-
return
|
|
640
|
-
if (
|
|
641
|
-
return
|
|
638
|
+
if (_l(r))
|
|
639
|
+
return vl(r, ar) + "";
|
|
640
|
+
if (ml(r))
|
|
641
|
+
return Ft ? Ft.call(r) : "";
|
|
642
642
|
var e = r + "";
|
|
643
|
-
return e == "0" && 1 / r == -
|
|
643
|
+
return e == "0" && 1 / r == -Cl ? "-0" : e;
|
|
644
644
|
}
|
|
645
|
-
var
|
|
646
|
-
function
|
|
647
|
-
return r == null ? "" :
|
|
645
|
+
var Sl = ar, Al = Sl;
|
|
646
|
+
function xl(r) {
|
|
647
|
+
return r == null ? "" : Al(r);
|
|
648
648
|
}
|
|
649
|
-
var
|
|
650
|
-
function
|
|
651
|
-
return
|
|
649
|
+
var El = xl, Fl = T, $l = ke, Tl = yl, Nl = El;
|
|
650
|
+
function Dl(r, e) {
|
|
651
|
+
return Fl(r) ? r : $l(r, e) ? [r] : Tl(Nl(r));
|
|
652
652
|
}
|
|
653
|
-
var
|
|
654
|
-
function
|
|
653
|
+
var or = Dl, wl = pe, Ol = 1 / 0;
|
|
654
|
+
function Ll(r) {
|
|
655
655
|
if (typeof r == "string" || wl(r))
|
|
656
656
|
return r;
|
|
657
657
|
var e = r + "";
|
|
658
|
-
return e == "0" && 1 / r == -
|
|
658
|
+
return e == "0" && 1 / r == -Ol ? "-0" : e;
|
|
659
659
|
}
|
|
660
|
-
var
|
|
661
|
-
function
|
|
662
|
-
e =
|
|
660
|
+
var be = Ll, Pl = or, Il = be;
|
|
661
|
+
function Ml(r, e) {
|
|
662
|
+
e = Pl(e, r);
|
|
663
663
|
for (var t = 0, i = e.length; r != null && t < i; )
|
|
664
|
-
r = r[
|
|
664
|
+
r = r[Il(e[t++])];
|
|
665
665
|
return t && t == i ? r : void 0;
|
|
666
666
|
}
|
|
667
|
-
var
|
|
668
|
-
function
|
|
667
|
+
var Ke = Ml, Rl = Yt, Bl = Ve, Gl = 1, zl = 2;
|
|
668
|
+
function jl(r, e, t, i) {
|
|
669
669
|
var n = t.length, s = n, a = !i;
|
|
670
670
|
if (r == null)
|
|
671
671
|
return !s;
|
|
@@ -681,97 +681,97 @@ function zl(r, e, t, i) {
|
|
|
681
681
|
if (c === void 0 && !(l in r))
|
|
682
682
|
return !1;
|
|
683
683
|
} else {
|
|
684
|
-
var g = new
|
|
684
|
+
var g = new Rl();
|
|
685
685
|
if (i)
|
|
686
686
|
var h = i(c, d, l, r, e, g);
|
|
687
|
-
if (!(h === void 0 ?
|
|
687
|
+
if (!(h === void 0 ? Bl(d, c, Gl | zl, i, g) : h))
|
|
688
688
|
return !1;
|
|
689
689
|
}
|
|
690
690
|
}
|
|
691
691
|
return !0;
|
|
692
692
|
}
|
|
693
|
-
var
|
|
694
|
-
function
|
|
695
|
-
return r === r && !
|
|
693
|
+
var Ul = jl, Vl = de;
|
|
694
|
+
function kl(r) {
|
|
695
|
+
return r === r && !Vl(r);
|
|
696
696
|
}
|
|
697
|
-
var
|
|
698
|
-
function
|
|
699
|
-
for (var e =
|
|
697
|
+
var ur = kl, Hl = ur, Kl = Ue;
|
|
698
|
+
function ql(r) {
|
|
699
|
+
for (var e = Kl(r), t = e.length; t--; ) {
|
|
700
700
|
var i = e[t], n = r[i];
|
|
701
|
-
e[t] = [i, n,
|
|
701
|
+
e[t] = [i, n, Hl(n)];
|
|
702
702
|
}
|
|
703
703
|
return e;
|
|
704
704
|
}
|
|
705
|
-
var
|
|
706
|
-
function
|
|
705
|
+
var Yl = ql;
|
|
706
|
+
function Wl(r, e) {
|
|
707
707
|
return function(t) {
|
|
708
708
|
return t == null ? !1 : t[r] === e && (e !== void 0 || r in Object(t));
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
|
-
var
|
|
712
|
-
function
|
|
713
|
-
var e =
|
|
714
|
-
return e.length == 1 && e[0][2] ?
|
|
715
|
-
return t === r ||
|
|
711
|
+
var lr = Wl, Jl = Ul, Zl = Yl, Xl = lr;
|
|
712
|
+
function Ql(r) {
|
|
713
|
+
var e = Zl(r);
|
|
714
|
+
return e.length == 1 && e[0][2] ? Xl(e[0][0], e[0][1]) : function(t) {
|
|
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 ec = Ql, tc = Ke;
|
|
719
|
+
function rc(r, e, t) {
|
|
720
|
+
var i = r == null ? void 0 : tc(r, e);
|
|
721
721
|
return i === void 0 ? t : i;
|
|
722
722
|
}
|
|
723
|
-
var
|
|
724
|
-
function
|
|
723
|
+
var ic = rc;
|
|
724
|
+
function nc(r, e) {
|
|
725
725
|
return r != null && e in Object(r);
|
|
726
726
|
}
|
|
727
|
-
var
|
|
728
|
-
function
|
|
729
|
-
e =
|
|
727
|
+
var sc = nc, ac = or, oc = Ge, uc = T, lc = ze, cc = je, dc = be;
|
|
728
|
+
function gc(r, e, t) {
|
|
729
|
+
e = ac(e, r);
|
|
730
730
|
for (var i = -1, n = e.length, s = !1; ++i < n; ) {
|
|
731
|
-
var a =
|
|
731
|
+
var a = dc(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 && cc(n) && lc(a, n) && (uc(r) || oc(r)));
|
|
737
737
|
}
|
|
738
|
-
var
|
|
739
|
-
function
|
|
740
|
-
return r != null &&
|
|
738
|
+
var hc = gc, fc = sc, pc = hc;
|
|
739
|
+
function bc(r, e) {
|
|
740
|
+
return r != null && pc(r, e, fc);
|
|
741
741
|
}
|
|
742
|
-
var
|
|
742
|
+
var yc = bc, vc = Ve, _c = ic, mc = yc, Cc = ke, Sc = ur, Ac = lr, xc = be, Ec = 1, Fc = 2;
|
|
743
743
|
function $c(r, e) {
|
|
744
|
-
return
|
|
745
|
-
var i =
|
|
746
|
-
return i === void 0 && i === e ?
|
|
744
|
+
return Cc(r) && Sc(e) ? Ac(xc(r), e) : function(t) {
|
|
745
|
+
var i = _c(t, r);
|
|
746
|
+
return i === void 0 && i === e ? mc(t, r) : vc(e, i, Ec | Fc);
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
|
-
var
|
|
750
|
-
function
|
|
749
|
+
var Tc = $c;
|
|
750
|
+
function Nc(r) {
|
|
751
751
|
return r;
|
|
752
752
|
}
|
|
753
|
-
var
|
|
754
|
-
function
|
|
753
|
+
var ye = Nc;
|
|
754
|
+
function Dc(r) {
|
|
755
755
|
return function(e) {
|
|
756
756
|
return e == null ? void 0 : e[r];
|
|
757
757
|
};
|
|
758
758
|
}
|
|
759
|
-
var wc =
|
|
760
|
-
function
|
|
759
|
+
var wc = Dc, Oc = Ke;
|
|
760
|
+
function Lc(r) {
|
|
761
761
|
return function(e) {
|
|
762
|
-
return
|
|
762
|
+
return Oc(e, r);
|
|
763
763
|
};
|
|
764
764
|
}
|
|
765
|
-
var
|
|
766
|
-
function
|
|
767
|
-
return
|
|
765
|
+
var Pc = Lc, Ic = wc, Mc = Pc, Rc = ke, Bc = be;
|
|
766
|
+
function Gc(r) {
|
|
767
|
+
return Rc(r) ? Ic(Bc(r)) : Mc(r);
|
|
768
768
|
}
|
|
769
|
-
var
|
|
770
|
-
function Hc(r) {
|
|
771
|
-
return typeof r == "function" ? r : r == null ? Uc : typeof r == "object" ? jc(r) ? Gc(r[0], r[1]) : zc(r) : kc(r);
|
|
772
|
-
}
|
|
773
|
-
var Vc = Hc;
|
|
769
|
+
var zc = Gc, jc = ec, Uc = Tc, Vc = ye, kc = T, Hc = zc;
|
|
774
770
|
function Kc(r) {
|
|
771
|
+
return typeof r == "function" ? r : r == null ? Vc : typeof r == "object" ? kc(r) ? Uc(r[0], r[1]) : jc(r) : Hc(r);
|
|
772
|
+
}
|
|
773
|
+
var qc = Kc;
|
|
774
|
+
function Yc(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,38 +781,38 @@ function Kc(r) {
|
|
|
781
781
|
return e;
|
|
782
782
|
};
|
|
783
783
|
}
|
|
784
|
-
var
|
|
785
|
-
function
|
|
786
|
-
return r &&
|
|
784
|
+
var Wc = Yc, Jc = Wc, Zc = Jc(), Xc = Zc, Qc = Xc, ed = Ue;
|
|
785
|
+
function td(r, e) {
|
|
786
|
+
return r && Qc(r, e, ed);
|
|
787
787
|
}
|
|
788
|
-
var
|
|
789
|
-
function
|
|
788
|
+
var rd = td, id = fe;
|
|
789
|
+
function nd(r, e) {
|
|
790
790
|
return function(t, i) {
|
|
791
791
|
if (t == null)
|
|
792
792
|
return t;
|
|
793
|
-
if (!
|
|
793
|
+
if (!id(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 sd = nd, ad = rd, od = sd, ud = od(ad), ld = ud, cd = ld, dd = fe;
|
|
801
|
+
function gd(r, e) {
|
|
802
|
+
var t = -1, i = dd(r) ? Array(r.length) : [];
|
|
803
|
+
return cd(r, function(n, s, a) {
|
|
804
804
|
i[++t] = e(n, s, a);
|
|
805
805
|
}), i;
|
|
806
806
|
}
|
|
807
|
-
var
|
|
808
|
-
function
|
|
807
|
+
var hd = gd;
|
|
808
|
+
function fd(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 pd = fd, $t = pe;
|
|
815
|
+
function bd(r, e) {
|
|
816
816
|
if (r !== e) {
|
|
817
817
|
var t = r !== void 0, i = r === null, n = r === r, s = $t(r), a = e !== void 0, o = e === null, l = e === e, c = $t(e);
|
|
818
818
|
if (!o && !c && !s && r > e || s && a && l && !o && !c || i && a && l || !t && l || !n)
|
|
@@ -822,10 +822,10 @@ function fd(r, e) {
|
|
|
822
822
|
}
|
|
823
823
|
return 0;
|
|
824
824
|
}
|
|
825
|
-
var
|
|
826
|
-
function
|
|
825
|
+
var yd = bd, vd = yd;
|
|
826
|
+
function _d(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 = vd(n[i], s[i]);
|
|
829
829
|
if (l) {
|
|
830
830
|
if (i >= o)
|
|
831
831
|
return l;
|
|
@@ -835,26 +835,26 @@ function yd(r, e, t) {
|
|
|
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 md = _d, Ce = nr, Cd = Ke, Sd = qc, Ad = hd, xd = pd, Ed = Qt, Fd = md, $d = ye, Td = T;
|
|
839
|
+
function Nd(r, e, t) {
|
|
840
|
+
e.length ? e = Ce(e, function(s) {
|
|
841
|
+
return Td(s) ? function(a) {
|
|
842
|
+
return Cd(a, s.length === 1 ? s[0] : s);
|
|
843
843
|
} : s;
|
|
844
844
|
}) : e = [$d];
|
|
845
845
|
var i = -1;
|
|
846
|
-
e =
|
|
847
|
-
var n =
|
|
848
|
-
var l =
|
|
846
|
+
e = Ce(e, Ed(Sd));
|
|
847
|
+
var n = Ad(r, function(s, a, o) {
|
|
848
|
+
var l = Ce(e, function(c) {
|
|
849
849
|
return c(s);
|
|
850
850
|
});
|
|
851
851
|
return { criteria: l, index: ++i, value: s };
|
|
852
852
|
});
|
|
853
|
-
return
|
|
854
|
-
return
|
|
853
|
+
return xd(n, function(s, a) {
|
|
854
|
+
return Fd(s, a, t);
|
|
855
855
|
});
|
|
856
856
|
}
|
|
857
|
-
var
|
|
857
|
+
var Dd = Nd;
|
|
858
858
|
function wd(r, e, t) {
|
|
859
859
|
switch (t.length) {
|
|
860
860
|
case 0:
|
|
@@ -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 Od = wd, Ld = Od, Tt = Math.max;
|
|
872
|
+
function Pd(r, e, t) {
|
|
873
|
+
return e = Tt(e === void 0 ? r.length - 1 : e, 0), function() {
|
|
874
|
+
for (var i = arguments, n = -1, s = Tt(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), Ld(r, this, o);
|
|
880
880
|
};
|
|
881
881
|
}
|
|
882
|
-
var
|
|
883
|
-
function
|
|
882
|
+
var Id = Pd;
|
|
883
|
+
function Md(r) {
|
|
884
884
|
return function() {
|
|
885
885
|
return r;
|
|
886
886
|
};
|
|
887
887
|
}
|
|
888
|
-
var
|
|
888
|
+
var Rd = Md, Bd = R, Gd = function() {
|
|
889
889
|
try {
|
|
890
|
-
var r =
|
|
890
|
+
var r = Bd(Object, "defineProperty");
|
|
891
891
|
return r({}, "", {}), r;
|
|
892
892
|
} catch {
|
|
893
893
|
}
|
|
894
|
-
}(),
|
|
895
|
-
return
|
|
894
|
+
}(), zd = Gd, jd = Rd, Nt = zd, Ud = ye, Vd = Nt ? function(r, e) {
|
|
895
|
+
return Nt(r, "toString", {
|
|
896
896
|
configurable: !0,
|
|
897
897
|
enumerable: !1,
|
|
898
|
-
value:
|
|
898
|
+
value: jd(e),
|
|
899
899
|
writable: !0
|
|
900
900
|
});
|
|
901
|
-
} :
|
|
902
|
-
function
|
|
901
|
+
} : Ud, kd = Vd, Hd = 800, Kd = 16, qd = Date.now;
|
|
902
|
+
function Yd(r) {
|
|
903
903
|
var e = 0, t = 0;
|
|
904
904
|
return function() {
|
|
905
|
-
var i =
|
|
905
|
+
var i = qd(), n = Kd - (i - t);
|
|
906
906
|
if (t = i, n > 0) {
|
|
907
|
-
if (++e >=
|
|
907
|
+
if (++e >= Hd)
|
|
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
|
|
915
|
-
function
|
|
916
|
-
return
|
|
914
|
+
var Wd = Yd, Jd = kd, Zd = Wd, Xd = Zd(Jd), Qd = Xd, eg = ye, tg = Id, rg = Qd;
|
|
915
|
+
function ig(r, e) {
|
|
916
|
+
return rg(tg(r, e, eg), r + "");
|
|
917
917
|
}
|
|
918
|
-
var
|
|
919
|
-
function
|
|
920
|
-
if (!
|
|
918
|
+
var ng = ig, sg = Me, ag = fe, og = ze, ug = de;
|
|
919
|
+
function lg(r, e, t) {
|
|
920
|
+
if (!ug(t))
|
|
921
921
|
return !1;
|
|
922
922
|
var i = typeof e;
|
|
923
|
-
return (i == "number" ?
|
|
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 cg = lg, dg = Ju, gg = Dd, hg = ng, Dt = cg, fg = hg(function(r, e) {
|
|
926
926
|
if (r == null)
|
|
927
927
|
return [];
|
|
928
928
|
var t = e.length;
|
|
929
|
-
return t > 1 &&
|
|
930
|
-
}),
|
|
931
|
-
const z = /* @__PURE__ */
|
|
929
|
+
return t > 1 && Dt(r, e[0], e[1]) ? e = [] : t > 2 && Dt(e[0], e[1], e[2]) && (e = [e[0]]), gg(r, dg(e, 1), []);
|
|
930
|
+
}), pg = fg;
|
|
931
|
+
const z = /* @__PURE__ */ Ie(pg), bg = /\S+\.(gif|jpe?g|tiff|png|bmp|svg)$/i, yg = [
|
|
932
932
|
"label",
|
|
933
933
|
"Label",
|
|
934
934
|
"name",
|
|
@@ -939,7 +939,7 @@ const z = /* @__PURE__ */ Oe(hg), fg = /\S+\.(gif|jpe?g|tiff|png|bmp|svg)$/i, pg
|
|
|
939
939
|
];
|
|
940
940
|
class u {
|
|
941
941
|
static isEqual(e, t) {
|
|
942
|
-
return
|
|
942
|
+
return Vu(e, t);
|
|
943
943
|
}
|
|
944
944
|
/**
|
|
945
945
|
* Check that a value is defined : not null and not undefined
|
|
@@ -1131,7 +1131,7 @@ class u {
|
|
|
1131
1131
|
* @return {boolean}
|
|
1132
1132
|
*/
|
|
1133
1133
|
static isImage(e) {
|
|
1134
|
-
return
|
|
1134
|
+
return bg.test(e);
|
|
1135
1135
|
}
|
|
1136
1136
|
/**
|
|
1137
1137
|
* Return true if the given string is an url with an image extension
|
|
@@ -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 G.SYMBOL_COMMAS_DOT:
|
|
1193
1193
|
return `${i}${t.symbol !== void 0 ? t.symbol + " " : ""}${u.formatNumberToCurrency(e, ",", ".")}`;
|
|
1194
|
-
case
|
|
1194
|
+
case G.SYMBOL_COMMAS:
|
|
1195
1195
|
return `${i}${t.symbol !== void 0 ? t.symbol + " " : ""}${u.formatNumberToCurrency(e, ",")}`;
|
|
1196
|
-
case
|
|
1196
|
+
case G.DOTS_COMMA_SYMBOL:
|
|
1197
1197
|
return `${i}${u.formatNumberToCurrency(e, ".", ",")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1198
|
-
case
|
|
1198
|
+
case G.DOTS_SYMBOL:
|
|
1199
1199
|
return `${i}${u.formatNumberToCurrency(e, ".")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1200
|
-
case
|
|
1200
|
+
case G.SPACES_COMMA_SYMBOL:
|
|
1201
1201
|
return `${i}${u.formatNumberToCurrency(e, " ", ",")}${t.symbol !== void 0 ? " " + t.symbol : ""}`;
|
|
1202
|
-
case
|
|
1202
|
+
case G.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}.`);
|
|
@@ -1214,16 +1214,16 @@ class u {
|
|
|
1214
1214
|
return i ? o + i + s : o;
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
|
-
class
|
|
1217
|
+
class N {
|
|
1218
1218
|
/**
|
|
1219
1219
|
* Return label for each node
|
|
1220
1220
|
*/
|
|
1221
1221
|
static getText(e, t, i) {
|
|
1222
1222
|
const n = "categories" in e ? e.categories : [e.type];
|
|
1223
|
-
if (
|
|
1224
|
-
return "categories" in e ?
|
|
1223
|
+
if (N.captionExist(n, t))
|
|
1224
|
+
return "categories" in e ? N.generateNodeCaption(e, t, i) || null : N.generateEdgeCaption(e, t, i) || null;
|
|
1225
1225
|
if (e.properties !== void 0) {
|
|
1226
|
-
const s =
|
|
1226
|
+
const s = yg.find((a) => e.properties[a] !== void 0);
|
|
1227
1227
|
if (s !== void 0 && u.isDefined(e.properties[s]))
|
|
1228
1228
|
return `${u.getValueFromLkProperty(
|
|
1229
1229
|
e.properties[s]
|
|
@@ -1246,7 +1246,7 @@ class w {
|
|
|
1246
1246
|
new Date(e.value).getTime() + u.timezoneToMilliseconds(e.timezone)
|
|
1247
1247
|
).toISOString()
|
|
1248
1248
|
);
|
|
1249
|
-
} else if ((t == null ? void 0 : t.name) ===
|
|
1249
|
+
} else if ((t == null ? void 0 : t.name) === yr.NUMBER && t.options !== void 0)
|
|
1250
1250
|
return u.formatCurrencyValue(e, t.options);
|
|
1251
1251
|
return `${e}`.trim();
|
|
1252
1252
|
}
|
|
@@ -1266,7 +1266,7 @@ class w {
|
|
|
1266
1266
|
t[o] && t[o].active && (t[o].displayName && s.push(o), a = [...a, ...t[o].properties]);
|
|
1267
1267
|
}), u.uniqBy(a).forEach((o) => {
|
|
1268
1268
|
if (e.properties[o] !== void 0) {
|
|
1269
|
-
const l = i ?
|
|
1269
|
+
const l = i ? N.getPropertyType(i, o, n[0]) : void 0;
|
|
1270
1270
|
s.push(this.getLabel(e.properties[o], l));
|
|
1271
1271
|
}
|
|
1272
1272
|
}), s.filter((o) => o !== null).join(" - ").trim();
|
|
@@ -1285,13 +1285,13 @@ class w {
|
|
|
1285
1285
|
let a = [];
|
|
1286
1286
|
return t[n] && t[n].active ? (t[n].displayName && s.push(n), a = [...a, ...t[n].properties], u.uniqBy(a).forEach((o) => {
|
|
1287
1287
|
if (u.isDefined(e.properties[o])) {
|
|
1288
|
-
const l = i ?
|
|
1289
|
-
s.push(
|
|
1288
|
+
const l = i ? N.getPropertyType(i, o, n) : void 0;
|
|
1289
|
+
s.push(N.getLabel(e.properties[o], l));
|
|
1290
1290
|
}
|
|
1291
1291
|
}), s.join(" - ").trim()) : "";
|
|
1292
1292
|
}
|
|
1293
1293
|
}
|
|
1294
|
-
var
|
|
1294
|
+
var cr = { exports: {} }, dr = { exports: {} };
|
|
1295
1295
|
(function() {
|
|
1296
1296
|
var r = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", e = {
|
|
1297
1297
|
// Bit-wise rotation left
|
|
@@ -1355,18 +1355,18 @@ var ur = { exports: {} }, lr = { exports: {} };
|
|
|
1355
1355
|
return i;
|
|
1356
1356
|
}
|
|
1357
1357
|
};
|
|
1358
|
-
|
|
1358
|
+
dr.exports = e;
|
|
1359
1359
|
})();
|
|
1360
|
-
var
|
|
1360
|
+
var vg = dr.exports, De = {
|
|
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 De.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(De.bin.bytesToString(r)));
|
|
1370
1370
|
}
|
|
1371
1371
|
},
|
|
1372
1372
|
// Binary encoding
|
|
@@ -1384,34 +1384,34 @@ var bg = lr.exports, Fe = {
|
|
|
1384
1384
|
return e.join("");
|
|
1385
1385
|
}
|
|
1386
1386
|
}
|
|
1387
|
-
}, wt =
|
|
1387
|
+
}, wt = De;
|
|
1388
1388
|
(function() {
|
|
1389
|
-
var r =
|
|
1389
|
+
var r = vg, e = wt.utf8, t = wt.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
1391
|
var a = r.bytesToWords(s), o = s.length * 8, l = [], c = 1732584193, d = -271733879, g = -1732584194, h = 271733878, y = -1009589776;
|
|
1392
1392
|
a[o >> 5] |= 128 << 24 - o % 32, a[(o + 64 >>> 9 << 4) + 15] = o;
|
|
1393
|
-
for (var
|
|
1394
|
-
for (var f = c, A = d, x = g,
|
|
1393
|
+
for (var m = 0; m < a.length; m += 16) {
|
|
1394
|
+
for (var f = c, A = d, x = g, E = h, B = y, v = 0; v < 80; v++) {
|
|
1395
1395
|
if (v < 16)
|
|
1396
|
-
l[v] = a[
|
|
1396
|
+
l[v] = a[m + v];
|
|
1397
1397
|
else {
|
|
1398
|
-
var
|
|
1399
|
-
l[v] =
|
|
1398
|
+
var L = l[v - 3] ^ l[v - 8] ^ l[v - 14] ^ l[v - 16];
|
|
1399
|
+
l[v] = L << 1 | L >>> 31;
|
|
1400
1400
|
}
|
|
1401
|
-
var
|
|
1402
|
-
y = h, h = g, g = d << 30 | d >>> 2, d = c, c =
|
|
1401
|
+
var br = (c << 5 | c >>> 27) + y + (l[v] >>> 0) + (v < 20 ? (d & g | ~d & h) + 1518500249 : v < 40 ? (d ^ g ^ h) + 1859775393 : v < 60 ? (d & g | d & h | g & h) - 1894007588 : (d ^ g ^ h) - 899497514);
|
|
1402
|
+
y = h, h = g, g = d << 30 | d >>> 2, d = c, c = br;
|
|
1403
1403
|
}
|
|
1404
|
-
c += f, d += A, g += x, h +=
|
|
1404
|
+
c += f, d += A, g += x, h += E, y += B;
|
|
1405
1405
|
}
|
|
1406
1406
|
return [c, d, 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, cr.exports = n;
|
|
1412
1412
|
})();
|
|
1413
|
-
var
|
|
1414
|
-
const
|
|
1413
|
+
var _g = cr.exports;
|
|
1414
|
+
const ue = /* @__PURE__ */ Ie(_g), F = "#7f7f7f", Ot = [
|
|
1415
1415
|
"#9467bd",
|
|
1416
1416
|
"#e377c2",
|
|
1417
1417
|
"#1f77b4",
|
|
@@ -1431,7 +1431,7 @@ const He = /* @__PURE__ */ Oe(yg), E = "#7f7f7f", Nt = [
|
|
|
1431
1431
|
"#ffbb78",
|
|
1432
1432
|
"#c49c94"
|
|
1433
1433
|
];
|
|
1434
|
-
class
|
|
1434
|
+
class $ {
|
|
1435
1435
|
constructor(e) {
|
|
1436
1436
|
this.colorsCache = /* @__PURE__ */ new Map(), this._rulesMap = {}, this.refresh(e);
|
|
1437
1437
|
}
|
|
@@ -1452,19 +1452,19 @@ class F {
|
|
|
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) ? Ot[$.getRandomUniqueColorPaletteIndex(e, Ot.length, t)] : F;
|
|
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" + ue(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" ? $.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 F {
|
|
|
1501
1501
|
return typeof e == "object" && (e == null ? void 0 : e.type) === "autoRange";
|
|
1502
1502
|
}
|
|
1503
1503
|
}
|
|
1504
|
-
class
|
|
1504
|
+
class J extends $ {
|
|
1505
1505
|
constructor(e) {
|
|
1506
1506
|
super(e);
|
|
1507
1507
|
}
|
|
@@ -1520,7 +1520,7 @@ class W extends F {
|
|
|
1520
1520
|
*/
|
|
1521
1521
|
color(e) {
|
|
1522
1522
|
if (!u.isDefined(e))
|
|
1523
|
-
return
|
|
1523
|
+
return F;
|
|
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 W extends F {
|
|
|
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 = $.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 : F;
|
|
1538
1538
|
}
|
|
1539
1539
|
/**
|
|
1540
1540
|
* Generate shape for a given node
|
|
@@ -1542,20 +1542,20 @@ class W extends F {
|
|
|
1542
1542
|
shape(e) {
|
|
1543
1543
|
var t;
|
|
1544
1544
|
if (this._rulesMap.shape !== void 0)
|
|
1545
|
-
return (t =
|
|
1545
|
+
return (t = J.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 = J.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
|
-
const n = i.input[1], s = u.parseNumber(e.properties[n]), a = i.scale && i.scale ===
|
|
1558
|
-
return
|
|
1557
|
+
const n = i.input[1], s = u.parseNumber(e.properties[n]), a = i.scale && i.scale === Vt.LOGARITHMIC;
|
|
1558
|
+
return J.getAutomaticRangeWidth(s, t, a);
|
|
1559
1559
|
}
|
|
1560
1560
|
} else
|
|
1561
1561
|
return i;
|
|
@@ -1592,13 +1592,13 @@ class W extends F {
|
|
|
1592
1592
|
shape: this.shape(e),
|
|
1593
1593
|
width: this.width(e)
|
|
1594
1594
|
} : {
|
|
1595
|
-
color:
|
|
1596
|
-
shape:
|
|
1595
|
+
color: F,
|
|
1596
|
+
shape: vr.ARROW,
|
|
1597
1597
|
width: "100%"
|
|
1598
1598
|
};
|
|
1599
1599
|
}
|
|
1600
1600
|
}
|
|
1601
|
-
class U extends
|
|
1601
|
+
class U extends $ {
|
|
1602
1602
|
constructor(e) {
|
|
1603
1603
|
super(e);
|
|
1604
1604
|
}
|
|
@@ -1619,8 +1619,8 @@ class U extends F {
|
|
|
1619
1619
|
*/
|
|
1620
1620
|
color(e) {
|
|
1621
1621
|
if (!u.isDefined(e))
|
|
1622
|
-
return [
|
|
1623
|
-
const t =
|
|
1622
|
+
return [F];
|
|
1623
|
+
const t = ue(JSON.stringify(e)), i = this.colorsCache.get(t);
|
|
1624
1624
|
if (i !== void 0)
|
|
1625
1625
|
return i;
|
|
1626
1626
|
let n = [];
|
|
@@ -1631,7 +1631,7 @@ class U extends F {
|
|
|
1631
1631
|
if (!(c.itemType !== void 0 && c.itemType !== null && c.itemType !== e.categories[a]) && c.canApplyTo(e)) {
|
|
1632
1632
|
if (typeof c.style.color == "object") {
|
|
1633
1633
|
const d = u.getIn(e, c.style.color.input);
|
|
1634
|
-
Array.isArray(d) ? o =
|
|
1634
|
+
Array.isArray(d) ? o = $.autoColor(e.categories[a], c.style.color.ignoreCase) : o = $.autoColor(`${d}`, c.style.color.ignoreCase);
|
|
1635
1635
|
} else
|
|
1636
1636
|
o = c.style.color;
|
|
1637
1637
|
break;
|
|
@@ -1639,7 +1639,7 @@ class U extends F {
|
|
|
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 = [F]);
|
|
1643
1643
|
const s = n.length === 1 ? n[0] : n;
|
|
1644
1644
|
return this.colorsCache.set(t, s), s;
|
|
1645
1645
|
}
|
|
@@ -1665,7 +1665,7 @@ class U extends F {
|
|
|
1665
1665
|
content: (a = c.icon) == null ? void 0 : a.content,
|
|
1666
1666
|
font: (o = c.icon) == null ? void 0 : o.font,
|
|
1667
1667
|
scale: 0.5,
|
|
1668
|
-
color:
|
|
1668
|
+
color: D.isBright(i) ? "#000000" : "#FFFFFF"
|
|
1669
1669
|
}
|
|
1670
1670
|
};
|
|
1671
1671
|
else if ("image" in c && typeof c.image == "object") {
|
|
@@ -1709,7 +1709,7 @@ class U extends F {
|
|
|
1709
1709
|
const n = i.style.size;
|
|
1710
1710
|
if (this.isAutoRange(n)) {
|
|
1711
1711
|
if (n.input !== void 0 && n.max !== void 0 && n.min !== void 0) {
|
|
1712
|
-
const s = n.input[1], a = u.parseNumber(e.properties[s]), o = n.scale && n.scale ===
|
|
1712
|
+
const s = n.input[1], a = u.parseNumber(e.properties[s]), o = n.scale && n.scale === Vt.LOGARITHMIC;
|
|
1713
1713
|
t = U.getAutomaticRangeSize(a, i, o);
|
|
1714
1714
|
}
|
|
1715
1715
|
} else
|
|
@@ -1744,7 +1744,7 @@ class U extends F {
|
|
|
1744
1744
|
all(e) {
|
|
1745
1745
|
if (!u.isDefined(e))
|
|
1746
1746
|
return {
|
|
1747
|
-
color:
|
|
1747
|
+
color: F
|
|
1748
1748
|
};
|
|
1749
1749
|
const t = this.icon(e);
|
|
1750
1750
|
return {
|
|
@@ -1773,7 +1773,7 @@ class U extends F {
|
|
|
1773
1773
|
this._baseUrl = e;
|
|
1774
1774
|
}
|
|
1775
1775
|
}
|
|
1776
|
-
var
|
|
1776
|
+
var mg = /* @__PURE__ */ ((r) => (r.AUTO_RANGE = "autoRange", r))(mg || {});
|
|
1777
1777
|
class C {
|
|
1778
1778
|
constructor(e) {
|
|
1779
1779
|
this.type = e.type, this.input = e.input, this.index = e.index, this.itemType = e.itemType, this.style = e.style, this.value = e.value;
|
|
@@ -1902,11 +1902,11 @@ 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 = $.getTypeColor(this, e)), t;
|
|
1906
1906
|
}
|
|
1907
1907
|
}
|
|
1908
|
-
var
|
|
1909
|
-
const
|
|
1908
|
+
var O = /* @__PURE__ */ ((r) => (r.COLOR = "color", r.ICON = "icon", r.SIZE = "size", r.IMAGE = "image", r.SHAPE = "shape", r.WIDTH = "width", r))(O || {});
|
|
1909
|
+
const j = ["specificity", "itemType", "index"];
|
|
1910
1910
|
class p {
|
|
1911
1911
|
constructor(e) {
|
|
1912
1912
|
this._rules = e;
|
|
@@ -1917,7 +1917,7 @@ class p {
|
|
|
1917
1917
|
* @return {Array<StyleRule>}
|
|
1918
1918
|
*/
|
|
1919
1919
|
get color() {
|
|
1920
|
-
return z(p.getBy("color", this._rules),
|
|
1920
|
+
return z(p.getBy("color", this._rules), j);
|
|
1921
1921
|
}
|
|
1922
1922
|
/**
|
|
1923
1923
|
* Return an array of StyleRule with only 'icon' rules and sorted by specificity, itemType and index
|
|
@@ -1930,7 +1930,7 @@ class p {
|
|
|
1930
1930
|
...p.getBy("icon", this._rules) || [],
|
|
1931
1931
|
...p.getBy("image", this._rules) || []
|
|
1932
1932
|
],
|
|
1933
|
-
|
|
1933
|
+
j
|
|
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 z(p.getBy("image", this._rules),
|
|
1942
|
+
return z(p.getBy("image", this._rules), j);
|
|
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 z(p.getBy("shape", this._rules),
|
|
1950
|
+
return z(p.getBy("shape", this._rules), j);
|
|
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 z(p.getBy("size", this._rules),
|
|
1958
|
+
return z(p.getBy("size", this._rules), j);
|
|
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 z(p.getBy("width", this._rules),
|
|
1966
|
+
return z(p.getBy("width", this._rules), j);
|
|
1967
1967
|
}
|
|
1968
1968
|
/**
|
|
1969
1969
|
* Return an object containing for each node style a sorted array of StyleRule
|
|
@@ -2059,11 +2059,11 @@ class p {
|
|
|
2059
2059
|
const o = u.getIn(a, n.input);
|
|
2060
2060
|
if (Array.isArray(o))
|
|
2061
2061
|
o.forEach((l) => {
|
|
2062
|
-
const c = n.input.includes("properties") ? `${p.getTypeLabel(t.itemType)}.${s} = ${l}` : `${p.getTypeLabel(l)}`, d =
|
|
2062
|
+
const c = n.input.includes("properties") ? `${p.getTypeLabel(t.itemType)}.${s} = ${l}` : `${p.getTypeLabel(l)}`, d = $.autoColor(l, n.ignoreCase);
|
|
2063
2063
|
p.updateLegend(i, { label: c, value: d });
|
|
2064
2064
|
});
|
|
2065
2065
|
else {
|
|
2066
|
-
const l = n.input.includes("properties") ? `${p.getTypeLabel(t.itemType)}.${s} = ${o}` : `${p.getTypeLabel(o)}`, c =
|
|
2066
|
+
const l = n.input.includes("properties") ? `${p.getTypeLabel(t.itemType)}.${s} = ${o}` : `${p.getTypeLabel(o)}`, c = $.autoColor(o, n.ignoreCase);
|
|
2067
2067
|
p.updateLegend(i, { label: l, value: c });
|
|
2068
2068
|
}
|
|
2069
2069
|
});
|
|
@@ -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] : F;
|
|
2083
2083
|
}
|
|
2084
2084
|
/**
|
|
2085
2085
|
* Return the icon of item type from the list of styles
|
|
@@ -2135,7 +2135,7 @@ 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 gr = "'roboto', sans-serif", Z = "#FFF", Lt = 0.2, Pt = {
|
|
2139
2139
|
text: {
|
|
2140
2140
|
style: "bold",
|
|
2141
2141
|
backgroundColor: "#fff",
|
|
@@ -2143,33 +2143,40 @@ const Dt = {
|
|
|
2143
2143
|
},
|
|
2144
2144
|
outerStroke: { width: 2 },
|
|
2145
2145
|
outline: !1
|
|
2146
|
-
},
|
|
2146
|
+
}, It = {
|
|
2147
2147
|
text: {
|
|
2148
2148
|
style: "bold",
|
|
2149
2149
|
backgroundColor: "#fff",
|
|
2150
2150
|
minVisibleSize: 0
|
|
2151
2151
|
},
|
|
2152
2152
|
outline: !1
|
|
2153
|
-
},
|
|
2153
|
+
}, Cg = {
|
|
2154
2154
|
color: "#FFF",
|
|
2155
2155
|
width: 7,
|
|
2156
2156
|
scalingMethod: "scaled",
|
|
2157
2157
|
strokeWidth: 0,
|
|
2158
2158
|
hideNonAdjacentEdges: !1
|
|
2159
|
-
},
|
|
2159
|
+
}, Sg = {
|
|
2160
2160
|
color: "#FFF",
|
|
2161
2161
|
scalingMethod: "scaled",
|
|
2162
2162
|
width: 4
|
|
2163
|
-
},
|
|
2164
|
-
class
|
|
2163
|
+
}, Mt = "#000", Rt = "#7f7f7f";
|
|
2164
|
+
class Ag {
|
|
2165
2165
|
constructor(e, t) {
|
|
2166
|
-
this._nodeAttributes = new U({}), this._edgeAttributes = new
|
|
2166
|
+
this._nodeAttributes = new U({}), this._edgeAttributes = new J({}), this._ogma = e, this._defaultConfiguration = t, this._nodeAttributes.setBaseUrl(t.baseUrl);
|
|
2167
|
+
}
|
|
2168
|
+
get nodeAttributes() {
|
|
2169
|
+
return this._nodeAttributes;
|
|
2170
|
+
}
|
|
2171
|
+
get nodeFont() {
|
|
2172
|
+
var e, t;
|
|
2173
|
+
return (t = (e = this._defaultConfiguration.node) == null ? void 0 : e.text) == null ? void 0 : t.font;
|
|
2167
2174
|
}
|
|
2168
2175
|
/**
|
|
2169
2176
|
* Set nodes default styles based on the configuration
|
|
2170
2177
|
*/
|
|
2171
2178
|
setNodesDefaultStyles() {
|
|
2172
|
-
this._ogma.styles.setHoveredNodeAttributes(
|
|
2179
|
+
this._ogma.styles.setHoveredNodeAttributes(Pt), this._ogma.styles.setSelectedNodeAttributes(Pt), this._nodeDefaultStylesRules = this._ogma.styles.addRule({
|
|
2173
2180
|
nodeAttributes: {
|
|
2174
2181
|
text: {
|
|
2175
2182
|
padding: 5,
|
|
@@ -2186,13 +2193,14 @@ class Sg {
|
|
|
2186
2193
|
icon: {
|
|
2187
2194
|
minVisibleSize: 15
|
|
2188
2195
|
},
|
|
2189
|
-
color:
|
|
2196
|
+
color: Rt,
|
|
2190
2197
|
shape: this._defaultConfiguration.node.shape !== void 0 ? this._defaultConfiguration.node.shape : "circle",
|
|
2191
2198
|
innerStroke: {
|
|
2192
2199
|
width: 3
|
|
2193
2200
|
},
|
|
2194
2201
|
outline: !1
|
|
2195
|
-
}
|
|
2202
|
+
},
|
|
2203
|
+
nodeSelector: (e) => !e.isVirtual()
|
|
2196
2204
|
});
|
|
2197
2205
|
}
|
|
2198
2206
|
/**
|
|
@@ -2200,7 +2208,7 @@ class Sg {
|
|
|
2200
2208
|
*/
|
|
2201
2209
|
setEdgesDefaultStyles() {
|
|
2202
2210
|
var e;
|
|
2203
|
-
this._ogma.styles.setHoveredEdgeAttributes(
|
|
2211
|
+
this._ogma.styles.setHoveredEdgeAttributes(It), this._ogma.styles.setSelectedEdgeAttributes(It), this._edgeDefaultStylesRules = this._ogma.styles.addRule({
|
|
2204
2212
|
edgeAttributes: {
|
|
2205
2213
|
text: {
|
|
2206
2214
|
minVisibleSize: this._defaultConfiguration.edge.text !== void 0 && this._defaultConfiguration.edge.text.minVisibleSize ? this._defaultConfiguration.edge.text.minVisibleSize : 3,
|
|
@@ -2212,7 +2220,7 @@ class Sg {
|
|
|
2212
2220
|
},
|
|
2213
2221
|
width: this.defaultEdgeWidth(this._defaultConfiguration.edge),
|
|
2214
2222
|
shape: this._defaultConfiguration.edge.shape !== void 0 ? this._defaultConfiguration.edge.shape : "arrow",
|
|
2215
|
-
color:
|
|
2223
|
+
color: Rt
|
|
2216
2224
|
}
|
|
2217
2225
|
});
|
|
2218
2226
|
}
|
|
@@ -2221,10 +2229,10 @@ class Sg {
|
|
|
2221
2229
|
*/
|
|
2222
2230
|
setNodesDefaultHalo() {
|
|
2223
2231
|
this._nodeDefaultHaloRules = this._ogma.styles.addRule({
|
|
2224
|
-
nodeSelector: (e) => e && !e.hasClass("filtered"),
|
|
2232
|
+
nodeSelector: (e) => e && !e.hasClass("filtered") && !e.isVirtual(),
|
|
2225
2233
|
nodeAttributes: {
|
|
2226
2234
|
halo: (e) => e !== void 0 && !e.hasClass("filtered") && (e.isSelected() || e.getAdjacentNodes({}).isSelected().includes(!0) || e.getAdjacentEdges().isSelected().includes(!0)) ? {
|
|
2227
|
-
...
|
|
2235
|
+
...Cg,
|
|
2228
2236
|
scalingMethod: this._ogma.geo.enabled() ? "fixed" : "scaled"
|
|
2229
2237
|
} : null
|
|
2230
2238
|
},
|
|
@@ -2251,7 +2259,7 @@ class Sg {
|
|
|
2251
2259
|
edgeSelector: (e) => e && e.getSource() && e.getTarget() && !e.hasClass("filtered"),
|
|
2252
2260
|
edgeAttributes: {
|
|
2253
2261
|
halo: (e) => e && !e.hasClass("filtered") && (e.isSelected() || e.getSource().isSelected() || e.getTarget().isSelected()) ? {
|
|
2254
|
-
...
|
|
2262
|
+
...Sg,
|
|
2255
2263
|
scalingMethod: this._ogma.geo.enabled() ? "fixed" : "scaled"
|
|
2256
2264
|
} : null
|
|
2257
2265
|
},
|
|
@@ -2296,7 +2304,7 @@ class Sg {
|
|
|
2296
2304
|
this._ogma.styles.createClass({
|
|
2297
2305
|
name: "filtered",
|
|
2298
2306
|
nodeAttributes: {
|
|
2299
|
-
opacity:
|
|
2307
|
+
opacity: Lt,
|
|
2300
2308
|
layer: (e) => e.getMetaNode() !== null ? 1 : -1,
|
|
2301
2309
|
detectable: !1,
|
|
2302
2310
|
badges: {
|
|
@@ -2311,7 +2319,7 @@ class Sg {
|
|
|
2311
2319
|
color: "rgb(240, 240, 240)",
|
|
2312
2320
|
innerStroke: {
|
|
2313
2321
|
width: 1,
|
|
2314
|
-
color:
|
|
2322
|
+
color: F,
|
|
2315
2323
|
minVisibleSize: 1
|
|
2316
2324
|
},
|
|
2317
2325
|
shape: "circle",
|
|
@@ -2320,14 +2328,14 @@ class Sg {
|
|
|
2320
2328
|
radius: "50%"
|
|
2321
2329
|
},
|
|
2322
2330
|
edgeAttributes: {
|
|
2323
|
-
opacity:
|
|
2331
|
+
opacity: Lt,
|
|
2324
2332
|
layer: (e) => {
|
|
2325
2333
|
const t = e.getExtremities().getMetaNode().some((i) => i !== null);
|
|
2326
2334
|
return !e.isVirtual() && t ? 1 : -1;
|
|
2327
2335
|
},
|
|
2328
2336
|
detectable: !1,
|
|
2329
2337
|
text: null,
|
|
2330
|
-
color:
|
|
2338
|
+
color: F,
|
|
2331
2339
|
shape: "line",
|
|
2332
2340
|
width: 0.2
|
|
2333
2341
|
}
|
|
@@ -2375,7 +2383,7 @@ class Sg {
|
|
|
2375
2383
|
if (e !== void 0) {
|
|
2376
2384
|
const t = u.getHiddenNeighbors(e.toList()), i = u.formatNumber(t);
|
|
2377
2385
|
if (t > 0) {
|
|
2378
|
-
const n = Array.isArray(e.getAttribute("color")) ? e.getAttribute("color")[0] : e.getAttribute("color"), s =
|
|
2386
|
+
const n = Array.isArray(e.getAttribute("color")) ? e.getAttribute("color")[0] : e.getAttribute("color"), s = D.isBright(n) ? Mt : Z, a = e.getData(["statistics", "supernode"]);
|
|
2379
2387
|
let o = null;
|
|
2380
2388
|
return +i != 0 && (o = a ? i + "+" : i), {
|
|
2381
2389
|
color: "inherit",
|
|
@@ -2385,7 +2393,7 @@ class Sg {
|
|
|
2385
2393
|
color: null
|
|
2386
2394
|
},
|
|
2387
2395
|
text: {
|
|
2388
|
-
font: this._defaultConfiguration.node.text !== void 0 && this._defaultConfiguration.node.text.font !== void 0 ? this._defaultConfiguration.node.text.font :
|
|
2396
|
+
font: this._defaultConfiguration.node.text !== void 0 && this._defaultConfiguration.node.text.font !== void 0 ? this._defaultConfiguration.node.text.font : gr,
|
|
2389
2397
|
scale: 0.4,
|
|
2390
2398
|
color: s,
|
|
2391
2399
|
content: o
|
|
@@ -2457,7 +2465,8 @@ class Sg {
|
|
|
2457
2465
|
return this._nodeAttributes.color(t.getData());
|
|
2458
2466
|
}
|
|
2459
2467
|
},
|
|
2460
|
-
nodeDependencies: { self: { data: !0 } }
|
|
2468
|
+
nodeDependencies: { self: { data: !0 } },
|
|
2469
|
+
nodeSelector: (t) => !t.isVirtual()
|
|
2461
2470
|
}));
|
|
2462
2471
|
}
|
|
2463
2472
|
/**
|
|
@@ -2469,46 +2478,46 @@ class Sg {
|
|
|
2469
2478
|
initNodeColors(e) {
|
|
2470
2479
|
const t = this.getStyleRule(
|
|
2471
2480
|
e,
|
|
2472
|
-
|
|
2481
|
+
O.COLOR
|
|
2473
2482
|
);
|
|
2474
2483
|
this.refreshNodeColors(t);
|
|
2475
2484
|
}
|
|
2476
2485
|
initNodesIcons(e) {
|
|
2477
2486
|
const t = this.getStyleRule(
|
|
2478
2487
|
e,
|
|
2479
|
-
|
|
2488
|
+
O.ICON
|
|
2480
2489
|
);
|
|
2481
2490
|
this.refreshNodeIcons(t);
|
|
2482
2491
|
}
|
|
2483
2492
|
initNodesSizes(e) {
|
|
2484
|
-
const t = this.getStyleRule(e,
|
|
2493
|
+
const t = this.getStyleRule(e, O.SIZE);
|
|
2485
2494
|
this.refreshNodeSize(t);
|
|
2486
2495
|
}
|
|
2487
2496
|
initNodesShapes(e) {
|
|
2488
2497
|
const t = this.getStyleRule(
|
|
2489
2498
|
e,
|
|
2490
|
-
|
|
2499
|
+
O.SHAPE
|
|
2491
2500
|
);
|
|
2492
2501
|
this.refreshNodeShape(t);
|
|
2493
2502
|
}
|
|
2494
2503
|
initEdgesWidth(e) {
|
|
2495
2504
|
const t = this.getStyleRule(
|
|
2496
2505
|
e,
|
|
2497
|
-
|
|
2506
|
+
O.WIDTH
|
|
2498
2507
|
);
|
|
2499
2508
|
this.refreshEdgeWidth(t);
|
|
2500
2509
|
}
|
|
2501
2510
|
initEdgesShape(e) {
|
|
2502
2511
|
const t = this.getStyleRule(
|
|
2503
2512
|
e,
|
|
2504
|
-
|
|
2513
|
+
O.SHAPE
|
|
2505
2514
|
);
|
|
2506
2515
|
this.refreshEdgeShape(t);
|
|
2507
2516
|
}
|
|
2508
2517
|
initEdgesColor(e) {
|
|
2509
2518
|
const t = this.getStyleRule(
|
|
2510
2519
|
e,
|
|
2511
|
-
|
|
2520
|
+
O.COLOR
|
|
2512
2521
|
);
|
|
2513
2522
|
this.refreshEdgeColors(t);
|
|
2514
2523
|
}
|
|
@@ -2529,7 +2538,8 @@ class Sg {
|
|
|
2529
2538
|
return this._nodeAttributes.icon(t.getData()).image;
|
|
2530
2539
|
}
|
|
2531
2540
|
},
|
|
2532
|
-
nodeDependencies: { self: { data: !0 } }
|
|
2541
|
+
nodeDependencies: { self: { data: !0 } },
|
|
2542
|
+
nodeSelector: (t) => !t.isVirtual()
|
|
2533
2543
|
}));
|
|
2534
2544
|
}
|
|
2535
2545
|
/**
|
|
@@ -2545,7 +2555,8 @@ class Sg {
|
|
|
2545
2555
|
return this._nodeAttributes.size(t.getData());
|
|
2546
2556
|
}
|
|
2547
2557
|
},
|
|
2548
|
-
nodeDependencies: { self: { data: !0 } }
|
|
2558
|
+
nodeDependencies: { self: { data: !0 } },
|
|
2559
|
+
nodeSelector: (t) => !t.isVirtual()
|
|
2549
2560
|
}));
|
|
2550
2561
|
}
|
|
2551
2562
|
/**
|
|
@@ -2640,18 +2651,18 @@ class Sg {
|
|
|
2640
2651
|
*/
|
|
2641
2652
|
_findPinBadgeTextColor(e) {
|
|
2642
2653
|
if (e.isVirtual())
|
|
2643
|
-
return
|
|
2654
|
+
return Z;
|
|
2644
2655
|
const t = Array.isArray(e.getAttribute("color")) ? e.getAttribute("color")[0] : e.getAttribute("color");
|
|
2645
|
-
return
|
|
2656
|
+
return D.isBright(t) ? Mt : Z;
|
|
2646
2657
|
}
|
|
2647
2658
|
/**
|
|
2648
2659
|
* Find the color of the pin badge background
|
|
2649
2660
|
*/
|
|
2650
2661
|
_findPinBadgeBackgroundColor(e) {
|
|
2651
|
-
return e.isVirtual() ?
|
|
2662
|
+
return e.isVirtual() ? F : "inherit";
|
|
2652
2663
|
}
|
|
2653
2664
|
}
|
|
2654
|
-
class
|
|
2665
|
+
class xg {
|
|
2655
2666
|
constructor(e, t, i) {
|
|
2656
2667
|
this._nodeMaxTextLength = t, this._edgeMaxTextLength = i, this._captionSchema = { node: {}, edge: {} }, this._graphSchema = { node: [], edge: [] }, this._ogma = e;
|
|
2657
2668
|
}
|
|
@@ -2681,7 +2692,7 @@ class Ag {
|
|
|
2681
2692
|
content: (t) => {
|
|
2682
2693
|
if (t === void 0)
|
|
2683
2694
|
return "";
|
|
2684
|
-
const i =
|
|
2695
|
+
const i = N.getText(
|
|
2685
2696
|
t.getData(),
|
|
2686
2697
|
this._captionSchema.node,
|
|
2687
2698
|
this._graphSchema.node
|
|
@@ -2708,7 +2719,7 @@ class Ag {
|
|
|
2708
2719
|
content: (t) => {
|
|
2709
2720
|
if (t === void 0 || t.getData() === void 0)
|
|
2710
2721
|
return "";
|
|
2711
|
-
const i =
|
|
2722
|
+
const i = N.getText(
|
|
2712
2723
|
t.getData(),
|
|
2713
2724
|
this._captionSchema.edge,
|
|
2714
2725
|
this._graphSchema.edge
|
|
@@ -2725,15 +2736,15 @@ class Ag {
|
|
|
2725
2736
|
return this.edgesCaptionsRule.refresh();
|
|
2726
2737
|
}
|
|
2727
2738
|
}
|
|
2728
|
-
function
|
|
2739
|
+
function M(r) {
|
|
2729
2740
|
return typeof r == "function";
|
|
2730
2741
|
}
|
|
2731
|
-
function
|
|
2732
|
-
return
|
|
2742
|
+
function Eg(r) {
|
|
2743
|
+
return M(r == null ? void 0 : r.lift);
|
|
2733
2744
|
}
|
|
2734
|
-
function
|
|
2745
|
+
function hr(r) {
|
|
2735
2746
|
return function(e) {
|
|
2736
|
-
if (
|
|
2747
|
+
if (Eg(e))
|
|
2737
2748
|
return e.lift(function(t) {
|
|
2738
2749
|
try {
|
|
2739
2750
|
return r(t, this);
|
|
@@ -2744,23 +2755,23 @@ function cr(r) {
|
|
|
2744
2755
|
throw new TypeError("Unable to lift unknown Observable type");
|
|
2745
2756
|
};
|
|
2746
2757
|
}
|
|
2747
|
-
var
|
|
2748
|
-
return
|
|
2758
|
+
var we = function(r, e) {
|
|
2759
|
+
return we = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(t, i) {
|
|
2749
2760
|
t.__proto__ = i;
|
|
2750
2761
|
} || function(t, i) {
|
|
2751
2762
|
for (var n in i) Object.prototype.hasOwnProperty.call(i, n) && (t[n] = i[n]);
|
|
2752
|
-
},
|
|
2763
|
+
}, we(r, e);
|
|
2753
2764
|
};
|
|
2754
|
-
function
|
|
2765
|
+
function qe(r, e) {
|
|
2755
2766
|
if (typeof e != "function" && e !== null)
|
|
2756
2767
|
throw new TypeError("Class extends value " + String(e) + " is not a constructor or null");
|
|
2757
|
-
|
|
2768
|
+
we(r, e);
|
|
2758
2769
|
function t() {
|
|
2759
2770
|
this.constructor = r;
|
|
2760
2771
|
}
|
|
2761
2772
|
r.prototype = e === null ? Object.create(e) : (t.prototype = e.prototype, new t());
|
|
2762
2773
|
}
|
|
2763
|
-
function
|
|
2774
|
+
function Bt(r) {
|
|
2764
2775
|
var e = typeof Symbol == "function" && Symbol.iterator, t = e && r[e], i = 0;
|
|
2765
2776
|
if (t) return t.call(r);
|
|
2766
2777
|
if (r && typeof r.length == "number") return {
|
|
@@ -2770,7 +2781,7 @@ function Mt(r) {
|
|
|
2770
2781
|
};
|
|
2771
2782
|
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
2772
2783
|
}
|
|
2773
|
-
function
|
|
2784
|
+
function Oe(r, e) {
|
|
2774
2785
|
var t = typeof Symbol == "function" && r[Symbol.iterator];
|
|
2775
2786
|
if (!t) return r;
|
|
2776
2787
|
var i = t.call(r), n, s = [], a;
|
|
@@ -2787,18 +2798,18 @@ function we(r, e) {
|
|
|
2787
2798
|
}
|
|
2788
2799
|
return s;
|
|
2789
2800
|
}
|
|
2790
|
-
function
|
|
2801
|
+
function Le(r, e, t) {
|
|
2791
2802
|
if (t || arguments.length === 2) for (var i = 0, n = e.length, s; i < n; i++)
|
|
2792
2803
|
(s || !(i in e)) && (s || (s = Array.prototype.slice.call(e, 0, i)), s[i] = e[i]);
|
|
2793
2804
|
return r.concat(s || Array.prototype.slice.call(e));
|
|
2794
2805
|
}
|
|
2795
|
-
function
|
|
2806
|
+
function Fg(r) {
|
|
2796
2807
|
var e = function(i) {
|
|
2797
2808
|
Error.call(i), i.stack = new Error().stack;
|
|
2798
2809
|
}, t = r(e);
|
|
2799
2810
|
return t.prototype = Object.create(Error.prototype), t.prototype.constructor = t, t;
|
|
2800
2811
|
}
|
|
2801
|
-
var
|
|
2812
|
+
var Se = Fg(function(r) {
|
|
2802
2813
|
return function(t) {
|
|
2803
2814
|
r(this), this.message = t ? t.length + ` errors occurred during unsubscription:
|
|
2804
2815
|
` + t.map(function(i, n) {
|
|
@@ -2807,13 +2818,13 @@ var me = $g(function(r) {
|
|
|
2807
2818
|
`) : "", this.name = "UnsubscriptionError", this.errors = t;
|
|
2808
2819
|
};
|
|
2809
2820
|
});
|
|
2810
|
-
function
|
|
2821
|
+
function Gt(r, e) {
|
|
2811
2822
|
if (r) {
|
|
2812
2823
|
var t = r.indexOf(e);
|
|
2813
2824
|
0 <= t && r.splice(t, 1);
|
|
2814
2825
|
}
|
|
2815
2826
|
}
|
|
2816
|
-
var
|
|
2827
|
+
var Ye = function() {
|
|
2817
2828
|
function r(e) {
|
|
2818
2829
|
this.initialTeardown = e, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
2819
2830
|
}
|
|
@@ -2825,7 +2836,7 @@ var Ke = function() {
|
|
|
2825
2836
|
if (a)
|
|
2826
2837
|
if (this._parentage = null, Array.isArray(a))
|
|
2827
2838
|
try {
|
|
2828
|
-
for (var o =
|
|
2839
|
+
for (var o = Bt(a), l = o.next(); !l.done; l = o.next()) {
|
|
2829
2840
|
var c = l.value;
|
|
2830
2841
|
c.remove(this);
|
|
2831
2842
|
}
|
|
@@ -2841,22 +2852,22 @@ var Ke = function() {
|
|
|
2841
2852
|
else
|
|
2842
2853
|
a.remove(this);
|
|
2843
2854
|
var d = this.initialTeardown;
|
|
2844
|
-
if (
|
|
2855
|
+
if (M(d))
|
|
2845
2856
|
try {
|
|
2846
2857
|
d();
|
|
2847
2858
|
} catch (f) {
|
|
2848
|
-
s = f instanceof
|
|
2859
|
+
s = f instanceof Se ? f.errors : [f];
|
|
2849
2860
|
}
|
|
2850
2861
|
var g = this._finalizers;
|
|
2851
2862
|
if (g) {
|
|
2852
2863
|
this._finalizers = null;
|
|
2853
2864
|
try {
|
|
2854
|
-
for (var h =
|
|
2855
|
-
var
|
|
2865
|
+
for (var h = Bt(g), y = h.next(); !y.done; y = h.next()) {
|
|
2866
|
+
var m = y.value;
|
|
2856
2867
|
try {
|
|
2857
|
-
|
|
2868
|
+
zt(m);
|
|
2858
2869
|
} catch (f) {
|
|
2859
|
-
s = s ?? [], f instanceof
|
|
2870
|
+
s = s ?? [], f instanceof Se ? s = Le(Le([], Oe(s)), Oe(f.errors)) : s.push(f);
|
|
2860
2871
|
}
|
|
2861
2872
|
}
|
|
2862
2873
|
} catch (f) {
|
|
@@ -2870,13 +2881,13 @@ var Ke = function() {
|
|
|
2870
2881
|
}
|
|
2871
2882
|
}
|
|
2872
2883
|
if (s)
|
|
2873
|
-
throw new
|
|
2884
|
+
throw new Se(s);
|
|
2874
2885
|
}
|
|
2875
2886
|
}, r.prototype.add = function(e) {
|
|
2876
2887
|
var t;
|
|
2877
2888
|
if (e && e !== this)
|
|
2878
2889
|
if (this.closed)
|
|
2879
|
-
|
|
2890
|
+
zt(e);
|
|
2880
2891
|
else {
|
|
2881
2892
|
if (e instanceof r) {
|
|
2882
2893
|
if (e.closed || e._hasParent(this))
|
|
@@ -2893,50 +2904,50 @@ var Ke = function() {
|
|
|
2893
2904
|
this._parentage = Array.isArray(t) ? (t.push(e), t) : t ? [t, e] : e;
|
|
2894
2905
|
}, r.prototype._removeParent = function(e) {
|
|
2895
2906
|
var t = this._parentage;
|
|
2896
|
-
t === e ? this._parentage = null : Array.isArray(t) &&
|
|
2907
|
+
t === e ? this._parentage = null : Array.isArray(t) && Gt(t, e);
|
|
2897
2908
|
}, r.prototype.remove = function(e) {
|
|
2898
2909
|
var t = this._finalizers;
|
|
2899
|
-
t &&
|
|
2910
|
+
t && Gt(t, e), e instanceof r && e._removeParent(this);
|
|
2900
2911
|
}, r.EMPTY = function() {
|
|
2901
2912
|
var e = new r();
|
|
2902
2913
|
return e.closed = !0, e;
|
|
2903
2914
|
}(), r;
|
|
2904
2915
|
}();
|
|
2905
|
-
|
|
2906
|
-
function
|
|
2907
|
-
return r instanceof
|
|
2916
|
+
Ye.EMPTY;
|
|
2917
|
+
function $g(r) {
|
|
2918
|
+
return r instanceof Ye || r && "closed" in r && M(r.remove) && M(r.add) && M(r.unsubscribe);
|
|
2908
2919
|
}
|
|
2909
|
-
function
|
|
2910
|
-
|
|
2920
|
+
function zt(r) {
|
|
2921
|
+
M(r) ? r() : r.unsubscribe();
|
|
2911
2922
|
}
|
|
2912
|
-
var
|
|
2923
|
+
var Tg = {
|
|
2913
2924
|
useDeprecatedNextContext: !1
|
|
2914
|
-
},
|
|
2925
|
+
}, Ng = {
|
|
2915
2926
|
setTimeout: function(r, e) {
|
|
2916
2927
|
for (var t = [], i = 2; i < arguments.length; i++)
|
|
2917
2928
|
t[i - 2] = arguments[i];
|
|
2918
|
-
return setTimeout.apply(void 0,
|
|
2929
|
+
return setTimeout.apply(void 0, Le([r, e], Oe(t)));
|
|
2919
2930
|
},
|
|
2920
2931
|
clearTimeout: function(r) {
|
|
2921
2932
|
return clearTimeout(r);
|
|
2922
2933
|
},
|
|
2923
2934
|
delegate: void 0
|
|
2924
2935
|
};
|
|
2925
|
-
function
|
|
2926
|
-
|
|
2936
|
+
function Dg(r) {
|
|
2937
|
+
Ng.setTimeout(function() {
|
|
2927
2938
|
throw r;
|
|
2928
2939
|
});
|
|
2929
2940
|
}
|
|
2930
|
-
function
|
|
2941
|
+
function jt() {
|
|
2931
2942
|
}
|
|
2932
|
-
var
|
|
2933
|
-
|
|
2943
|
+
var fr = function(r) {
|
|
2944
|
+
qe(e, r);
|
|
2934
2945
|
function e(t) {
|
|
2935
2946
|
var i = r.call(this) || this;
|
|
2936
|
-
return i.isStopped = !1, t ? (i.destination = t,
|
|
2947
|
+
return i.isStopped = !1, t ? (i.destination = t, $g(t) && t.add(i)) : i.destination = Ig, i;
|
|
2937
2948
|
}
|
|
2938
2949
|
return e.create = function(t, i, n) {
|
|
2939
|
-
return new
|
|
2950
|
+
return new Lg(t, i, n);
|
|
2940
2951
|
}, e.prototype.next = function(t) {
|
|
2941
2952
|
this.isStopped || this._next(t);
|
|
2942
2953
|
}, e.prototype.error = function(t) {
|
|
@@ -2960,11 +2971,11 @@ var dr = function(r) {
|
|
|
2960
2971
|
this.unsubscribe();
|
|
2961
2972
|
}
|
|
2962
2973
|
}, e;
|
|
2963
|
-
}(
|
|
2964
|
-
function
|
|
2965
|
-
return
|
|
2974
|
+
}(Ye), wg = Function.prototype.bind;
|
|
2975
|
+
function Ae(r, e) {
|
|
2976
|
+
return wg.call(r, e);
|
|
2966
2977
|
}
|
|
2967
|
-
var
|
|
2978
|
+
var Og = function() {
|
|
2968
2979
|
function r(e) {
|
|
2969
2980
|
this.partialObserver = e;
|
|
2970
2981
|
}
|
|
@@ -2974,7 +2985,7 @@ var Dg = function() {
|
|
|
2974
2985
|
try {
|
|
2975
2986
|
t.next(e);
|
|
2976
2987
|
} catch (i) {
|
|
2977
|
-
|
|
2988
|
+
ne(i);
|
|
2978
2989
|
}
|
|
2979
2990
|
}, r.prototype.error = function(e) {
|
|
2980
2991
|
var t = this.partialObserver;
|
|
@@ -2982,24 +2993,24 @@ var Dg = function() {
|
|
|
2982
2993
|
try {
|
|
2983
2994
|
t.error(e);
|
|
2984
2995
|
} catch (i) {
|
|
2985
|
-
|
|
2996
|
+
ne(i);
|
|
2986
2997
|
}
|
|
2987
2998
|
else
|
|
2988
|
-
|
|
2999
|
+
ne(e);
|
|
2989
3000
|
}, r.prototype.complete = function() {
|
|
2990
3001
|
var e = this.partialObserver;
|
|
2991
3002
|
if (e.complete)
|
|
2992
3003
|
try {
|
|
2993
3004
|
e.complete();
|
|
2994
3005
|
} catch (t) {
|
|
2995
|
-
|
|
3006
|
+
ne(t);
|
|
2996
3007
|
}
|
|
2997
3008
|
}, r;
|
|
2998
|
-
}(),
|
|
2999
|
-
|
|
3009
|
+
}(), Lg = function(r) {
|
|
3010
|
+
qe(e, r);
|
|
3000
3011
|
function e(t, i, n) {
|
|
3001
3012
|
var s = r.call(this) || this, a;
|
|
3002
|
-
if (
|
|
3013
|
+
if (M(t) || !t)
|
|
3003
3014
|
a = {
|
|
3004
3015
|
next: t ?? void 0,
|
|
3005
3016
|
error: i ?? void 0,
|
|
@@ -3007,38 +3018,38 @@ var Dg = function() {
|
|
|
3007
3018
|
};
|
|
3008
3019
|
else {
|
|
3009
3020
|
var o;
|
|
3010
|
-
s &&
|
|
3021
|
+
s && Tg.useDeprecatedNextContext ? (o = Object.create(t), o.unsubscribe = function() {
|
|
3011
3022
|
return s.unsubscribe();
|
|
3012
3023
|
}, a = {
|
|
3013
|
-
next: t.next &&
|
|
3014
|
-
error: t.error &&
|
|
3015
|
-
complete: t.complete &&
|
|
3024
|
+
next: t.next && Ae(t.next, o),
|
|
3025
|
+
error: t.error && Ae(t.error, o),
|
|
3026
|
+
complete: t.complete && Ae(t.complete, o)
|
|
3016
3027
|
}) : a = t;
|
|
3017
3028
|
}
|
|
3018
|
-
return s.destination = new
|
|
3029
|
+
return s.destination = new Og(a), s;
|
|
3019
3030
|
}
|
|
3020
3031
|
return e;
|
|
3021
|
-
}(
|
|
3022
|
-
function
|
|
3023
|
-
|
|
3032
|
+
}(fr);
|
|
3033
|
+
function ne(r) {
|
|
3034
|
+
Dg(r);
|
|
3024
3035
|
}
|
|
3025
|
-
function
|
|
3036
|
+
function Pg(r) {
|
|
3026
3037
|
throw r;
|
|
3027
3038
|
}
|
|
3028
3039
|
var Ig = {
|
|
3029
3040
|
closed: !0,
|
|
3030
|
-
next:
|
|
3031
|
-
error:
|
|
3032
|
-
complete:
|
|
3041
|
+
next: jt,
|
|
3042
|
+
error: Pg,
|
|
3043
|
+
complete: jt
|
|
3033
3044
|
};
|
|
3034
|
-
function
|
|
3045
|
+
function Mg(r) {
|
|
3035
3046
|
return r;
|
|
3036
3047
|
}
|
|
3037
|
-
function
|
|
3038
|
-
return new
|
|
3048
|
+
function pr(r, e, t, i, n) {
|
|
3049
|
+
return new Rg(r, e, t, i, n);
|
|
3039
3050
|
}
|
|
3040
|
-
var
|
|
3041
|
-
|
|
3051
|
+
var Rg = function(r) {
|
|
3052
|
+
qe(e, r);
|
|
3042
3053
|
function e(t, i, n, s, a, o) {
|
|
3043
3054
|
var l = r.call(this, t) || this;
|
|
3044
3055
|
return l.onFinalize = a, l.shouldUnsubscribe = o, l._next = i ? function(c) {
|
|
@@ -3072,19 +3083,19 @@ var Mg = function(r) {
|
|
|
3072
3083
|
r.prototype.unsubscribe.call(this), !i && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
|
3073
3084
|
}
|
|
3074
3085
|
}, e;
|
|
3075
|
-
}(
|
|
3076
|
-
function
|
|
3077
|
-
return
|
|
3086
|
+
}(fr);
|
|
3087
|
+
function Bg(r, e) {
|
|
3088
|
+
return hr(function(t, i) {
|
|
3078
3089
|
var n = 0;
|
|
3079
|
-
t.subscribe(
|
|
3090
|
+
t.subscribe(pr(i, function(s) {
|
|
3080
3091
|
i.next(r.call(e, s, n++));
|
|
3081
3092
|
}));
|
|
3082
3093
|
});
|
|
3083
3094
|
}
|
|
3084
|
-
function
|
|
3085
|
-
return e === void 0 && (e =
|
|
3095
|
+
function Gg(r, e) {
|
|
3096
|
+
return e === void 0 && (e = Mg), r = r ?? zg, hr(function(t, i) {
|
|
3086
3097
|
var n, s = !0;
|
|
3087
|
-
t.subscribe(
|
|
3098
|
+
t.subscribe(pr(i, function(a) {
|
|
3088
3099
|
var o = e(a);
|
|
3089
3100
|
(s || !r(n, o)) && (s = !1, n = o, i.next(a));
|
|
3090
3101
|
}));
|
|
@@ -3093,7 +3104,7 @@ function Bg(r, e) {
|
|
|
3093
3104
|
function zg(r, e) {
|
|
3094
3105
|
return r === e;
|
|
3095
3106
|
}
|
|
3096
|
-
class
|
|
3107
|
+
class jg extends Cr {
|
|
3097
3108
|
constructor(e) {
|
|
3098
3109
|
super(e);
|
|
3099
3110
|
}
|
|
@@ -3108,8 +3119,8 @@ class Gg extends mr {
|
|
|
3108
3119
|
*/
|
|
3109
3120
|
selectStore(e) {
|
|
3110
3121
|
return this.pipe(
|
|
3111
|
-
|
|
3112
|
-
|
|
3122
|
+
Bg(e),
|
|
3123
|
+
Gg((t, i) => u.isEqual(t, i))
|
|
3113
3124
|
);
|
|
3114
3125
|
}
|
|
3115
3126
|
/**
|
|
@@ -3117,7 +3128,7 @@ class Gg extends mr {
|
|
|
3117
3128
|
*/
|
|
3118
3129
|
clear() {
|
|
3119
3130
|
this.next({
|
|
3120
|
-
selection:
|
|
3131
|
+
selection: void 0,
|
|
3121
3132
|
items: { node: [], edge: [] },
|
|
3122
3133
|
changes: void 0,
|
|
3123
3134
|
animation: !1
|
|
@@ -3126,8 +3137,8 @@ class Gg extends mr {
|
|
|
3126
3137
|
}
|
|
3127
3138
|
class Ug {
|
|
3128
3139
|
constructor(e) {
|
|
3129
|
-
this._store = new
|
|
3130
|
-
selection:
|
|
3140
|
+
this._store = new jg({
|
|
3141
|
+
selection: void 0,
|
|
3131
3142
|
items: { node: [], edge: [] },
|
|
3132
3143
|
changes: void 0,
|
|
3133
3144
|
animation: !1
|
|
@@ -3165,6 +3176,10 @@ class Ug {
|
|
|
3165
3176
|
this._store.dispatch(this.storeItems.bind(this));
|
|
3166
3177
|
}), this._ogma.events.on("removeEdges", () => {
|
|
3167
3178
|
this._store.dispatch(this.storeItems.bind(this));
|
|
3179
|
+
}), this._ogma.events.on("geoDisabled", () => {
|
|
3180
|
+
this._store.dispatch(this.storeItems.bind(this));
|
|
3181
|
+
}), this._ogma.events.on("geoEnabled", () => {
|
|
3182
|
+
this._store.dispatch(this.storeItems.bind(this));
|
|
3168
3183
|
}), this._ogma.events.on("nodesSelected", () => {
|
|
3169
3184
|
this._store.dispatch(this.storeNodeSelection.bind(this));
|
|
3170
3185
|
}), this._ogma.events.on("edgesSelected", () => {
|
|
@@ -3228,19 +3243,8 @@ class Ug {
|
|
|
3228
3243
|
};
|
|
3229
3244
|
}
|
|
3230
3245
|
}
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
this.size = 0, this.isNode = !0;
|
|
3234
|
-
}
|
|
3235
|
-
}
|
|
3236
|
-
const jg = 750, kg = {
|
|
3237
|
-
steps: 40,
|
|
3238
|
-
alignSiblings: !0,
|
|
3239
|
-
charge: 5,
|
|
3240
|
-
theta: 0.34,
|
|
3241
|
-
duration: jg
|
|
3242
|
-
};
|
|
3243
|
-
class Xg extends vr {
|
|
3246
|
+
const Vg = 750;
|
|
3247
|
+
class Zg extends mr {
|
|
3244
3248
|
constructor(e, t) {
|
|
3245
3249
|
super(e), this._configuration = e, Object.setPrototypeOf(this, new.target.prototype), this.initOgmaLinkuriousParser(!0, t);
|
|
3246
3250
|
}
|
|
@@ -3267,7 +3271,7 @@ class Xg extends vr {
|
|
|
3267
3271
|
enabled: !1
|
|
3268
3272
|
}
|
|
3269
3273
|
}
|
|
3270
|
-
}), 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
|
|
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 X(this), this.LKStyles.setNodesDefaultHalo(), this.LKStyles.setEdgesDefaultHalo(), this.LKStyles.setBadgeRule(), this.LKStyles.setFilterClass();
|
|
3271
3275
|
}
|
|
3272
3276
|
/**
|
|
3273
3277
|
* Initialize selection behavior
|
|
@@ -3284,7 +3288,7 @@ class Xg extends vr {
|
|
|
3284
3288
|
}
|
|
3285
3289
|
setStyles(e, t) {
|
|
3286
3290
|
var i, n, s, a;
|
|
3287
|
-
this.LKStyles = new
|
|
3291
|
+
this.LKStyles = new Ag(this, {
|
|
3288
3292
|
node: ((n = (i = e == null ? void 0 : e.options) == null ? void 0 : i.styles) == null ? void 0 : n.node) || {},
|
|
3289
3293
|
edge: ((a = (s = e == null ? void 0 : e.options) == null ? void 0 : s.styles) == null ? void 0 : a.edge) || {},
|
|
3290
3294
|
baseUrl: t
|
|
@@ -3293,7 +3297,7 @@ class Xg extends vr {
|
|
|
3293
3297
|
setCaptions(e) {
|
|
3294
3298
|
var n, s, a, o, l, c, d, g;
|
|
3295
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 = (d = (c = (l = e == null ? void 0 : e.options) == null ? void 0 : l.styles) == null ? void 0 : c.edge) == null ? void 0 : d.text) == null ? void 0 : g.maxTextLength;
|
|
3296
|
-
this.LKCaptions = new
|
|
3300
|
+
this.LKCaptions = new xg(this, t, i);
|
|
3297
3301
|
}
|
|
3298
3302
|
/**
|
|
3299
3303
|
* Returns Ogma Layout parameters according to visualization layout settings
|
|
@@ -3301,7 +3305,7 @@ class Xg extends vr {
|
|
|
3301
3305
|
getForceLayoutParams(e, t = 0) {
|
|
3302
3306
|
let i = 300 - 0.052 * this.getNodes().size;
|
|
3303
3307
|
return i < 40 && (i = 40), {
|
|
3304
|
-
steps: e ===
|
|
3308
|
+
steps: e === _r.FAST ? i : 300,
|
|
3305
3309
|
alignSiblings: this.getNodes().size > 3,
|
|
3306
3310
|
duration: t,
|
|
3307
3311
|
charge: 20,
|
|
@@ -3412,8 +3416,24 @@ class Xg extends vr {
|
|
|
3412
3416
|
renderer: this._configuration.renderer
|
|
3413
3417
|
}), this.setStyles(this._configuration, i), this.setCaptions(this._configuration);
|
|
3414
3418
|
}
|
|
3419
|
+
/**
|
|
3420
|
+
* An override of the Ogma method getSelectedNodes
|
|
3421
|
+
* originally it was returning only the visible selected nodes
|
|
3422
|
+
* but we need to return all selected nodes, including the one that are part of collapsed groups
|
|
3423
|
+
*/
|
|
3424
|
+
getSelectedNodes() {
|
|
3425
|
+
return this.getNodes("all").filter((e) => e.isSelected());
|
|
3426
|
+
}
|
|
3427
|
+
/**
|
|
3428
|
+
* An override of the Ogma method clearSelection
|
|
3429
|
+
* originally it was unselecting only the visible selected nodes
|
|
3430
|
+
* but we need also to unselect invisible nodes, including the one that are part of collapsed groups
|
|
3431
|
+
*/
|
|
3432
|
+
clearSelection() {
|
|
3433
|
+
this.getSelectedNodes().setSelected(!1), this.getSelectedEdges().setSelected(!1);
|
|
3434
|
+
}
|
|
3415
3435
|
}
|
|
3416
|
-
const
|
|
3436
|
+
const xe = {
|
|
3417
3437
|
lightsalmon: { hex: "#FFA07A", rgb: "rbg(255,160,122)" },
|
|
3418
3438
|
salmon: { hex: "#FA8072", rgb: "rgb(250,128,114)" },
|
|
3419
3439
|
darksalmon: { hex: "#E9967A", rgb: "rgb(233,150,122)" },
|
|
@@ -3553,8 +3573,15 @@ const Ce = {
|
|
|
3553
3573
|
sienna: { hex: "#A0522D", rgb: "rgb(160,82,45)" },
|
|
3554
3574
|
brown: { hex: "#A52A2A", rgb: "rgb(165,42,42)" },
|
|
3555
3575
|
maroon: { hex: "#800000", rgb: "rgb(128,0,0)" }
|
|
3576
|
+
}, kg = {
|
|
3577
|
+
steps: 250,
|
|
3578
|
+
alignSiblings: !0,
|
|
3579
|
+
charge: 20,
|
|
3580
|
+
theta: 0.34,
|
|
3581
|
+
duration: Vg,
|
|
3582
|
+
gravity: 0.0475
|
|
3556
3583
|
};
|
|
3557
|
-
class
|
|
3584
|
+
class D {
|
|
3558
3585
|
/**
|
|
3559
3586
|
* Get the amount of hidden neighbors from a list of nodes
|
|
3560
3587
|
*
|
|
@@ -3595,8 +3622,8 @@ class ne {
|
|
|
3595
3622
|
e.length < 5 && (e += e.slice(1)), e = e.replace("#", "");
|
|
3596
3623
|
const c = parseInt(e[0].toString() + e[1].toString(), 16), d = parseInt(e[2].toString() + e[3].toString(), 16), g = parseInt(e[4].toString() + e[5].toString(), 16);
|
|
3597
3624
|
s = `rgb(${c}, ${d}, ${g})`;
|
|
3598
|
-
} else if (i.test(e) || n.test(e) ||
|
|
3599
|
-
s = u.isDefined(
|
|
3625
|
+
} else if (i.test(e) || n.test(e) || xe[e.toLowerCase()] !== void 0)
|
|
3626
|
+
s = u.isDefined(xe[e.toLowerCase()]) ? xe[e.toLowerCase()].rgb : e;
|
|
3600
3627
|
else
|
|
3601
3628
|
return !0;
|
|
3602
3629
|
const [a, o, l] = /rgba?\((\d{1,3}),(\d{1,3}),(\d{1,3})(,\d{1,3})?\)/.exec(s.replace(/\s/g, "")).slice(1, 4);
|
|
@@ -3608,15 +3635,24 @@ class ne {
|
|
|
3608
3635
|
static isNodeList(e) {
|
|
3609
3636
|
return e.isNode;
|
|
3610
3637
|
}
|
|
3638
|
+
/**
|
|
3639
|
+
* Transform a nodelist to an array of node ids sorted by position in a chain and the length of the chain
|
|
3640
|
+
* A chain is: (a)-(b)-(c)-(d)
|
|
3641
|
+
*/
|
|
3611
3642
|
static topologicalSort(e) {
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3643
|
+
const i = e.toArray().filter((a) => a.getDegree() === 1), n = /* @__PURE__ */ new Set(), s = [];
|
|
3644
|
+
return i.forEach((a) => {
|
|
3645
|
+
let o = a;
|
|
3646
|
+
if (n.has(o))
|
|
3647
|
+
return;
|
|
3648
|
+
const l = [];
|
|
3649
|
+
for (; o; ) {
|
|
3650
|
+
l.push(o), n.add(o);
|
|
3651
|
+
const c = o.getAdjacentNodes().filter((d) => !n.has(d)).get(0);
|
|
3652
|
+
o = c === void 0 ? null : c;
|
|
3653
|
+
}
|
|
3654
|
+
s.push(l);
|
|
3655
|
+
}), s.sort((a, o) => o.length - a.length), { chain: s.flat().map((a) => a.getId()), numberOfChain: i.length / 2 };
|
|
3620
3656
|
}
|
|
3621
3657
|
static isStar(e) {
|
|
3622
3658
|
for (const t of e.toArray()) {
|
|
@@ -3625,11 +3661,20 @@ class ne {
|
|
|
3625
3661
|
}
|
|
3626
3662
|
return !1;
|
|
3627
3663
|
}
|
|
3664
|
+
/**
|
|
3665
|
+
* Return true if the group is collapsed
|
|
3666
|
+
*/
|
|
3667
|
+
static isGroupCollapsed(e) {
|
|
3668
|
+
return e.getData("collapsed");
|
|
3669
|
+
}
|
|
3670
|
+
static setCollapsedGroupProperty(e, t) {
|
|
3671
|
+
e.setData("collapsed", t);
|
|
3672
|
+
}
|
|
3628
3673
|
}
|
|
3629
|
-
const
|
|
3630
|
-
class
|
|
3674
|
+
const Pe = "LKE_NODE_GROUPING_EDGE";
|
|
3675
|
+
class X {
|
|
3631
3676
|
constructor(e) {
|
|
3632
|
-
this._ogma = e;
|
|
3677
|
+
this._collapsedDefaultValue = !1, this._nodeGroupingAttributes = [], this._ogma = e;
|
|
3633
3678
|
}
|
|
3634
3679
|
/**
|
|
3635
3680
|
* Set the grouping rule
|
|
@@ -3645,26 +3690,35 @@ class Vg {
|
|
|
3645
3690
|
*/
|
|
3646
3691
|
async initTransformation() {
|
|
3647
3692
|
this.transformation === void 0 ? this.transformation = this._ogma.transformations.addNodeGrouping({
|
|
3693
|
+
// node with same value will be part of the same group
|
|
3648
3694
|
groupIdFunction: (e) => {
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
}
|
|
3695
|
+
if (this._isRuleNotApplicableToNode(e))
|
|
3696
|
+
return;
|
|
3697
|
+
const t = this.groupRule;
|
|
3698
|
+
return t.groupingType === Y.BY_ADJACENT_EDGE_TYPE ? this._getAdjacentEdgeGroupId(e, t) : this._getPropertyValueGroupId(e, t);
|
|
3654
3699
|
},
|
|
3655
|
-
nodeGenerator: (e) =>
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
|
|
3661
|
-
|
|
3700
|
+
nodeGenerator: (e) => {
|
|
3701
|
+
const t = new Set(e.getData("categories").flat()), i = this._findNodeGroupId(e);
|
|
3702
|
+
return {
|
|
3703
|
+
data: {
|
|
3704
|
+
categories: [],
|
|
3705
|
+
subCategories: Array.from(t),
|
|
3706
|
+
collapsed: this._getDefaultCollapsedState(i),
|
|
3707
|
+
nodeGroupId: i
|
|
3708
|
+
},
|
|
3709
|
+
attributes: {
|
|
3710
|
+
layoutable: this._getDefaultLayoutableValue(i)
|
|
3711
|
+
}
|
|
3712
|
+
};
|
|
3713
|
+
},
|
|
3714
|
+
onGroupUpdate: async (e, t) => await this.runSubNodesLayout(t),
|
|
3662
3715
|
edgeGenerator: () => ({
|
|
3663
3716
|
data: {
|
|
3664
|
-
type:
|
|
3717
|
+
type: Pe
|
|
3665
3718
|
}
|
|
3666
3719
|
}),
|
|
3667
|
-
showContents: !
|
|
3720
|
+
showContents: (e) => !D.isGroupCollapsed(e),
|
|
3721
|
+
duration: 300,
|
|
3668
3722
|
padding: 10
|
|
3669
3723
|
}) : await this.refreshTransformation();
|
|
3670
3724
|
}
|
|
@@ -3679,7 +3733,7 @@ class Vg {
|
|
|
3679
3733
|
* init node grouping style
|
|
3680
3734
|
*/
|
|
3681
3735
|
initNodeGroupingStyle() {
|
|
3682
|
-
this.
|
|
3736
|
+
this._nodeGroupingStyleRule = this._ogma.styles.addRule({
|
|
3683
3737
|
nodeAttributes: {
|
|
3684
3738
|
// Any default style will go here
|
|
3685
3739
|
text: {
|
|
@@ -3693,26 +3747,83 @@ class Vg {
|
|
|
3693
3747
|
width: 2
|
|
3694
3748
|
}
|
|
3695
3749
|
},
|
|
3696
|
-
nodeSelector: (e) => e.isVirtual() &&
|
|
3750
|
+
nodeSelector: (e) => e.isVirtual() && !D.isGroupCollapsed(e),
|
|
3697
3751
|
// the style will be updated when data object is updated
|
|
3698
3752
|
nodeDependencies: { self: { data: !0 } }
|
|
3699
|
-
})
|
|
3753
|
+
}), this._initIntermediateGroupStyle(), this._nodeGroupingCollapsedStyleRule = this._ogma.styles.addRule({
|
|
3754
|
+
nodeAttributes: {
|
|
3755
|
+
text: {
|
|
3756
|
+
content: (e) => this._getNodeGroupingCaption(e),
|
|
3757
|
+
style: "bold"
|
|
3758
|
+
},
|
|
3759
|
+
halo: {
|
|
3760
|
+
width: 4,
|
|
3761
|
+
color: "#e4ebea",
|
|
3762
|
+
strokeColor: "#ccc"
|
|
3763
|
+
},
|
|
3764
|
+
badges: {
|
|
3765
|
+
bottomLeft: (e) => {
|
|
3766
|
+
var i;
|
|
3767
|
+
const t = (i = e.getSubNodes().filter((n) => !n.hasClass("filtered"))) == null ? void 0 : i.size;
|
|
3768
|
+
return {
|
|
3769
|
+
color: "#3F3D5F",
|
|
3770
|
+
minVisibleSize: 20,
|
|
3771
|
+
stroke: {
|
|
3772
|
+
width: 2,
|
|
3773
|
+
color: "#FFFFFF"
|
|
3774
|
+
},
|
|
3775
|
+
text: {
|
|
3776
|
+
font: u.isDefined(this._ogma.LKStyles.nodeFont) ? this._ogma.LKStyles.nodeFont : gr,
|
|
3777
|
+
scale: 0.4,
|
|
3778
|
+
color: Z,
|
|
3779
|
+
content: `x${t}`
|
|
3780
|
+
}
|
|
3781
|
+
};
|
|
3782
|
+
},
|
|
3783
|
+
topLeft: () => ({
|
|
3784
|
+
color: "#3F3D5F",
|
|
3785
|
+
minVisibleSize: 20,
|
|
3786
|
+
stroke: {
|
|
3787
|
+
width: 2,
|
|
3788
|
+
color: "#FFFFFF"
|
|
3789
|
+
},
|
|
3790
|
+
text: {
|
|
3791
|
+
font: "FontAwesome",
|
|
3792
|
+
scale: 0.4,
|
|
3793
|
+
color: Z,
|
|
3794
|
+
content: ""
|
|
3795
|
+
}
|
|
3796
|
+
})
|
|
3797
|
+
},
|
|
3798
|
+
color: (e) => {
|
|
3799
|
+
if (e !== void 0)
|
|
3800
|
+
return this._ogma.LKStyles.nodeAttributes.color({
|
|
3801
|
+
geo: {},
|
|
3802
|
+
isVirtual: !1,
|
|
3803
|
+
properties: {},
|
|
3804
|
+
readAt: 0,
|
|
3805
|
+
categories: e.getData("subCategories")
|
|
3806
|
+
});
|
|
3807
|
+
},
|
|
3808
|
+
icon: (e) => {
|
|
3809
|
+
const t = e == null ? void 0 : e.getData("subCategories");
|
|
3810
|
+
if (!(!u.isDefined(e) || t.length > 1))
|
|
3811
|
+
return this._ogma.LKStyles.nodeAttributes.icon({
|
|
3812
|
+
geo: {},
|
|
3813
|
+
isVirtual: !1,
|
|
3814
|
+
properties: {},
|
|
3815
|
+
readAt: 0,
|
|
3816
|
+
categories: t
|
|
3817
|
+
}).icon;
|
|
3818
|
+
}
|
|
3819
|
+
},
|
|
3820
|
+
nodeSelector: (e) => e.isVirtual() && D.isGroupCollapsed(e) && !e.hasClass("filtered"),
|
|
3821
|
+
nodeDependencies: { self: { attributes: ["styleRefreshIndex"] } }
|
|
3822
|
+
}), this._setSubSelectedClass();
|
|
3700
3823
|
}
|
|
3701
3824
|
async refreshNodeGroupingStyle() {
|
|
3702
|
-
var e;
|
|
3703
|
-
await ((e = this.
|
|
3704
|
-
}
|
|
3705
|
-
/**
|
|
3706
|
-
* run layout on all subnodes of virtual nodes
|
|
3707
|
-
*/
|
|
3708
|
-
async runLayoutOnAllSubNodes() {
|
|
3709
|
-
await this._ogma.transformations.afterNextUpdate();
|
|
3710
|
-
const e = this._getAllTransformationRawNodes(), t = [];
|
|
3711
|
-
for (let i = 0; i < e.length; i++) {
|
|
3712
|
-
const n = e[i];
|
|
3713
|
-
t.push(this.runSubNodesLayout(n));
|
|
3714
|
-
}
|
|
3715
|
-
await Promise.all(t);
|
|
3825
|
+
var e, t;
|
|
3826
|
+
await ((e = this._nodeGroupingStyleRule) == null ? void 0 : e.refresh()), await ((t = this._nodeGroupingCollapsedStyleRule) == null ? void 0 : t.refresh());
|
|
3716
3827
|
}
|
|
3717
3828
|
/**
|
|
3718
3829
|
* Run the layout on the subnodes of the virtual node
|
|
@@ -3721,24 +3832,22 @@ class Vg {
|
|
|
3721
3832
|
async runSubNodesLayout(e) {
|
|
3722
3833
|
if (e.size === 0 || e.size === 1)
|
|
3723
3834
|
return;
|
|
3724
|
-
if (e.size === 2)
|
|
3725
|
-
|
|
3726
|
-
return;
|
|
3727
|
-
}
|
|
3835
|
+
if (e.size === 2)
|
|
3836
|
+
return this._runTwoNodesLayout(e);
|
|
3728
3837
|
if (e.getAdjacentEdges({ bothExtremities: !0 }).size === 0) return this._runCirclePack(e);
|
|
3729
|
-
const i =
|
|
3838
|
+
const i = D.isStar(e);
|
|
3730
3839
|
if (i) {
|
|
3731
|
-
const
|
|
3732
|
-
radii:
|
|
3840
|
+
const o = e.filter((c) => c !== i), l = this._runCircularLayout({
|
|
3841
|
+
radii: o.getAttribute("radius"),
|
|
3733
3842
|
cx: i.getAttribute("x"),
|
|
3734
3843
|
cy: i.getAttribute("y"),
|
|
3735
3844
|
clockwise: !1,
|
|
3736
3845
|
distanceRatio: 5
|
|
3737
3846
|
});
|
|
3738
|
-
|
|
3739
|
-
return;
|
|
3847
|
+
return [i.getPosition(), ...l];
|
|
3740
3848
|
}
|
|
3741
|
-
|
|
3849
|
+
const n = e.getDegree(), s = n.every((o) => o === 1 || o === 2), a = n.some((o) => o === 1);
|
|
3850
|
+
if (s && a) {
|
|
3742
3851
|
await this._runChainLayout(e);
|
|
3743
3852
|
return;
|
|
3744
3853
|
}
|
|
@@ -3752,46 +3861,61 @@ class Vg {
|
|
|
3752
3861
|
return this.transformation.getContext().metaNodes;
|
|
3753
3862
|
}
|
|
3754
3863
|
/**
|
|
3755
|
-
* Set
|
|
3864
|
+
* Set node initial attributes
|
|
3756
3865
|
* @param nodeGroups object containing the node group id and the layoutable attribute
|
|
3757
3866
|
*/
|
|
3758
|
-
|
|
3759
|
-
this.
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3867
|
+
setNodeGroupingAttributes(e) {
|
|
3868
|
+
this._nodeGroupingAttributes = e;
|
|
3869
|
+
}
|
|
3870
|
+
/**
|
|
3871
|
+
* set collapse default value, this will be the state of newly created groups
|
|
3872
|
+
*/
|
|
3873
|
+
setCollapseDefaultValue(e) {
|
|
3874
|
+
this._collapsedDefaultValue = e;
|
|
3765
3875
|
}
|
|
3766
3876
|
/**
|
|
3767
3877
|
* Return the caption of a virtual node
|
|
3768
3878
|
* @param node reference to the virtual node
|
|
3769
3879
|
*/
|
|
3770
3880
|
_getNodeGroupingCaption(e) {
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3881
|
+
if (!(!u.isDefined(e) || !u.isDefined(this.groupRule)))
|
|
3882
|
+
return this.groupRule.groupingType === Y.BY_ADJACENT_EDGE_TYPE ? this._getAdjacentEdgeNodeGroupingCaption(e, this.groupRule) : this._getPropertyValueNodeGroupingCaption(e, this.groupRule);
|
|
3883
|
+
}
|
|
3884
|
+
_getAdjacentEdgeNodeGroupingCaption(e, t) {
|
|
3885
|
+
const i = e.getSubNodes();
|
|
3886
|
+
return !u.isDefined(i) || !u.isDefined(i.get(0)) ? void 0 : X._getGroupCentralNode(i.get(0), t).getData(["properties", "name"]);
|
|
3887
|
+
}
|
|
3888
|
+
_getPropertyValueNodeGroupingCaption(e, t) {
|
|
3889
|
+
var i;
|
|
3890
|
+
if (e.isVirtual() && ((i = e.getSubNodes()) == null ? void 0 : i.get(0)) !== void 0) {
|
|
3891
|
+
const n = e.getSubNodes().get(0).getData(["properties", t.groupingOptions.propertyKey]), s = u.getValueFromLkProperty(n), a = e.getSubNodes().filter((o) => !o.hasClass("filtered")).size;
|
|
3892
|
+
return `${s} (${a})`;
|
|
3775
3893
|
}
|
|
3776
3894
|
}
|
|
3777
3895
|
/**
|
|
3778
3896
|
* Run the circle pack layout on the subnodes
|
|
3779
3897
|
* @param subNodes
|
|
3780
3898
|
*/
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
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
|
+
);
|
|
3787
3908
|
}
|
|
3909
|
+
/**
|
|
3910
|
+
* return a grid layout when nodes are represented by multiple chains (a)-(b)-(c)-(d)
|
|
3911
|
+
*/
|
|
3788
3912
|
async _runChainLayout(e) {
|
|
3789
|
-
const t = this._ogma.getNodes(
|
|
3913
|
+
const t = D.topologicalSort(e), i = this._ogma.getNodes(t.chain);
|
|
3790
3914
|
await this._ogma.layouts.grid({
|
|
3791
|
-
nodes:
|
|
3915
|
+
nodes: i,
|
|
3792
3916
|
// TODO: test that visually
|
|
3793
3917
|
colDistance: Math.max(...e.getAttribute("radius").map(Number)) * 4,
|
|
3794
|
-
rows: 1
|
|
3918
|
+
rows: t.numberOfChain ?? 1
|
|
3795
3919
|
});
|
|
3796
3920
|
}
|
|
3797
3921
|
async _runForceLayout(e) {
|
|
@@ -3801,19 +3925,27 @@ class Vg {
|
|
|
3801
3925
|
});
|
|
3802
3926
|
}
|
|
3803
3927
|
_isRuleNotApplicableToNode(e) {
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3928
|
+
const t = this.groupRule;
|
|
3929
|
+
return t === void 0 ? !0 : t.groupingType === Y.BY_PROPERTY_VALUE ? this._isPropertyRuleNotApplicableToNode(e, t) : t.groupingType === Y.BY_ADJACENT_EDGE_TYPE ? this._isRelationshipRuleNotApplicableToNode(e, t) : !0;
|
|
3930
|
+
}
|
|
3931
|
+
_isRelationshipRuleNotApplicableToNode(e, t) {
|
|
3932
|
+
return !this.hasEdgeOfType(e, t.groupingOptions.edgeType);
|
|
3933
|
+
}
|
|
3934
|
+
hasEdgeOfType(e, t) {
|
|
3935
|
+
let i = !1;
|
|
3936
|
+
return e.getAdjacentEdges().forEach((n) => {
|
|
3937
|
+
n.getData("type") === t && (i = !0);
|
|
3938
|
+
}), i;
|
|
3939
|
+
}
|
|
3940
|
+
_isPropertyRuleNotApplicableToNode(e, t) {
|
|
3941
|
+
const i = e.getData(["properties", t.groupingOptions.propertyKey ?? ""]);
|
|
3809
3942
|
return (
|
|
3810
|
-
// if
|
|
3811
|
-
|
|
3812
|
-
this.groupRule.groupingOptions.itemTypes.every(
|
|
3943
|
+
// if rule is applied to a different category
|
|
3944
|
+
t.groupingOptions.itemTypes.every(
|
|
3813
3945
|
(n) => !e.getData("categories").includes(n)
|
|
3814
3946
|
) || // if the property value is not defined
|
|
3815
|
-
!u.isDefined(
|
|
3816
|
-
typeof
|
|
3947
|
+
!u.isDefined(i) || // if the property value is missing
|
|
3948
|
+
typeof i == "object" && i.status === "missing"
|
|
3817
3949
|
);
|
|
3818
3950
|
}
|
|
3819
3951
|
/**
|
|
@@ -3837,24 +3969,29 @@ class Vg {
|
|
|
3837
3969
|
return this.getVirtualNodesOfTransformation().getSubNodes();
|
|
3838
3970
|
}
|
|
3839
3971
|
_findGroupingPropertyValue(e) {
|
|
3840
|
-
|
|
3841
|
-
|
|
3842
|
-
"properties",
|
|
3843
|
-
((i = this.groupRule) == null ? void 0 : i.groupingOptions.propertyKey) ?? ""
|
|
3844
|
-
]);
|
|
3845
|
-
return `${u.getValueFromLkProperty(t)}`;
|
|
3972
|
+
const t = this.groupRule, i = e.getData(["properties", t.groupingOptions.propertyKey ?? ""]);
|
|
3973
|
+
return `${u.getValueFromLkProperty(i)}`;
|
|
3846
3974
|
}
|
|
3847
3975
|
/**
|
|
3848
3976
|
* Return a hashed string that represents the group id
|
|
3849
3977
|
*/
|
|
3850
3978
|
_findNodeGroupId(e) {
|
|
3851
|
-
var i
|
|
3852
|
-
const t = this.
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3979
|
+
var i;
|
|
3980
|
+
const t = this.groupRule;
|
|
3981
|
+
if (t.groupingType === Y.BY_ADJACENT_EDGE_TYPE) {
|
|
3982
|
+
const n = X._getGroupCentralNode(e.get(0), t);
|
|
3983
|
+
return ue(`${(i = this.groupRule) == null ? void 0 : i.name}-${n.getId()}`);
|
|
3984
|
+
} else {
|
|
3985
|
+
const n = this._findGroupingPropertyValue(e.get(0));
|
|
3986
|
+
return ue(`${t.name}-${t.groupingOptions.itemTypes.join("-")}-${n}`);
|
|
3987
|
+
}
|
|
3988
|
+
}
|
|
3989
|
+
/**
|
|
3990
|
+
* For a relation type grouping rule, return the central node from one of the nodes in the group
|
|
3991
|
+
*/
|
|
3992
|
+
static _getGroupCentralNode(e, t) {
|
|
3993
|
+
const i = e.getAdjacentEdges({ filter: "raw" }).filter((s) => s.getData("type") === t.groupingOptions.edgeType).get(0);
|
|
3994
|
+
return t.groupingOptions.centralNodeIs === "source" ? i.getSource() : i.getTarget();
|
|
3858
3995
|
}
|
|
3859
3996
|
_runCircularLayout({
|
|
3860
3997
|
radii: e,
|
|
@@ -3868,31 +4005,64 @@ class Vg {
|
|
|
3868
4005
|
const l = e.length;
|
|
3869
4006
|
if (l === 0) return [];
|
|
3870
4007
|
if (l === 1) return [{ x: i, y: n }];
|
|
3871
|
-
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),
|
|
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);
|
|
3872
4009
|
return e.map((A, x) => {
|
|
3873
|
-
const
|
|
4010
|
+
const E = s + x * g * (t ? 1 : -1), B = f * Math.cos(E), v = f * Math.sin(E);
|
|
3874
4011
|
return {
|
|
3875
|
-
x: i +
|
|
4012
|
+
x: i + B,
|
|
3876
4013
|
y: n + v
|
|
3877
4014
|
};
|
|
3878
4015
|
});
|
|
3879
4016
|
}
|
|
3880
4017
|
async _runTwoNodesLayout(e) {
|
|
3881
4018
|
const t = e.getAttribute("radius").map(Number), i = e.getPosition(), n = Math.min(...t);
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
4019
|
+
return [i[0], { x: i[0].x + n + t[0] + t[1], y: i[0].y }];
|
|
4020
|
+
}
|
|
4021
|
+
_getPropertyValueGroupId(e, t) {
|
|
4022
|
+
const i = this._findGroupingPropertyValue(e);
|
|
4023
|
+
return `${t.groupingOptions.itemTypes.join("-")}-${i}`.toLowerCase().trim();
|
|
4024
|
+
}
|
|
4025
|
+
_getAdjacentEdgeGroupId(e, t) {
|
|
4026
|
+
return X._getGroupCentralNode(e, t).getId().toString();
|
|
4027
|
+
}
|
|
4028
|
+
/**
|
|
4029
|
+
* Initialize the style for the intermediate group state, when transitioning from expanded to collapsed
|
|
4030
|
+
*/
|
|
4031
|
+
_initIntermediateGroupStyle() {
|
|
4032
|
+
this._ogma.styles.addRule({
|
|
4033
|
+
nodeAttributes: {
|
|
4034
|
+
color: "rgba(240, 240, 240)"
|
|
4035
|
+
},
|
|
4036
|
+
nodeSelector: (e) => e.isVirtual() && D.isGroupCollapsed(e),
|
|
4037
|
+
// the style will be updated when data object is updated
|
|
4038
|
+
nodeDependencies: { self: { data: !0 } }
|
|
4039
|
+
});
|
|
4040
|
+
}
|
|
4041
|
+
_getDefaultCollapsedState(e) {
|
|
4042
|
+
const t = this._nodeGroupingAttributes.find((i) => i.id === e);
|
|
4043
|
+
return u.isDefined(t) && u.isDefined(t.attributes.collapsed) ? t.attributes.collapsed : this._collapsedDefaultValue;
|
|
4044
|
+
}
|
|
4045
|
+
_getDefaultLayoutableValue(e) {
|
|
4046
|
+
const t = this._nodeGroupingAttributes.find((i) => i.id === e);
|
|
4047
|
+
return u.isDefined(t) && u.isDefined(t.attributes.layoutable) ? t.attributes.layoutable : !0;
|
|
4048
|
+
}
|
|
4049
|
+
/**
|
|
4050
|
+
* Set styles for the class "filtered"
|
|
4051
|
+
*/
|
|
4052
|
+
_setSubSelectedClass() {
|
|
4053
|
+
this._ogma.styles.createClass({
|
|
4054
|
+
name: "subSelection",
|
|
4055
|
+
nodeAttributes: {
|
|
4056
|
+
halo: {
|
|
4057
|
+
width: 4,
|
|
4058
|
+
color: "#e67a8f",
|
|
4059
|
+
strokeColor: "#ccc"
|
|
4060
|
+
}
|
|
4061
|
+
}
|
|
4062
|
+
});
|
|
3893
4063
|
}
|
|
3894
4064
|
}
|
|
3895
|
-
const
|
|
4065
|
+
const Hg = {
|
|
3896
4066
|
color: "#000000",
|
|
3897
4067
|
shape: {
|
|
3898
4068
|
style: "dashed",
|
|
@@ -3900,7 +4070,7 @@ const Kg = {
|
|
|
3900
4070
|
},
|
|
3901
4071
|
width: 1.5
|
|
3902
4072
|
};
|
|
3903
|
-
class
|
|
4073
|
+
class Kg {
|
|
3904
4074
|
constructor(e) {
|
|
3905
4075
|
this._ogma = e, this.groupedEdges = {};
|
|
3906
4076
|
}
|
|
@@ -3927,11 +4097,11 @@ class qg {
|
|
|
3927
4097
|
initEdgeGroupingStyle() {
|
|
3928
4098
|
this.edgeGroupingStyleRule = this._ogma.styles.addRule({
|
|
3929
4099
|
edgeAttributes: {
|
|
3930
|
-
...
|
|
4100
|
+
...Hg,
|
|
3931
4101
|
...this.edgeGroupStyle,
|
|
3932
4102
|
text: {
|
|
3933
4103
|
content: (e) => {
|
|
3934
|
-
if (e !== void 0 && e.getSubEdges() !== null && e.getData("type") !==
|
|
4104
|
+
if (e !== void 0 && e.getSubEdges() !== null && e.getData("type") !== Pe) {
|
|
3935
4105
|
const t = e.getSubEdges().filter((i) => !i.hasClass("filtered")).size;
|
|
3936
4106
|
return `${e.getData(["properties", "originalType"])} (${t})`;
|
|
3937
4107
|
}
|
|
@@ -3939,7 +4109,7 @@ class qg {
|
|
|
3939
4109
|
style: "bold"
|
|
3940
4110
|
}
|
|
3941
4111
|
},
|
|
3942
|
-
edgeSelector: (e) => e.isVirtual() && e.getSubEdges() && e.getSubEdges().filter((t) => !t.hasClass("filtered")).size > 0 && e.getData("type") !==
|
|
4112
|
+
edgeSelector: (e) => e.isVirtual() && e.getSubEdges() && e.getSubEdges().filter((t) => !t.hasClass("filtered")).size > 0 && e.getData("type") !== Pe,
|
|
3943
4113
|
edgeDependencies: { self: { data: !0 } }
|
|
3944
4114
|
});
|
|
3945
4115
|
}
|
|
@@ -3947,7 +4117,7 @@ class qg {
|
|
|
3947
4117
|
this.edgeGroupingStyleRule !== void 0 && this.edgeGroupingStyleRule.refresh();
|
|
3948
4118
|
}
|
|
3949
4119
|
}
|
|
3950
|
-
const
|
|
4120
|
+
const _ = class _ {
|
|
3951
4121
|
/**
|
|
3952
4122
|
* Returns whether the node/edge should be *filtered* (a.k.a. *hidden*).
|
|
3953
4123
|
*
|
|
@@ -3960,16 +4130,16 @@ const m = class m {
|
|
|
3960
4130
|
* @param itemData
|
|
3961
4131
|
*/
|
|
3962
4132
|
static isFiltered(e, t) {
|
|
3963
|
-
return u.isDefined(t) ? "categories" in t ?
|
|
4133
|
+
return u.isDefined(t) ? "categories" in t ? _.getFilterFunction(e, !0)(t) : _.getFilterFunction(e, !1)(t) : !1;
|
|
3964
4134
|
}
|
|
3965
4135
|
static getFilterFunction(e, t) {
|
|
3966
|
-
const i = JSON.stringify(e, null, ""), n = t ?
|
|
4136
|
+
const i = JSON.stringify(e, null, ""), n = t ? _.nodeCache : _.edgeCache;
|
|
3967
4137
|
let s = n.get(i);
|
|
3968
|
-
return s || (s =
|
|
4138
|
+
return s || (s = _.createFilterFunction(e, t), n.size > _.FILTER_CACHE_SIZE && n.clear(), n.set(i, s)), s;
|
|
3969
4139
|
}
|
|
3970
4140
|
static createFilterFunction(e, t) {
|
|
3971
4141
|
const i = e.map(
|
|
3972
|
-
(n) =>
|
|
4142
|
+
(n) => _.filterToFilterFunction(n, t)
|
|
3973
4143
|
);
|
|
3974
4144
|
return (n) => {
|
|
3975
4145
|
for (const s of i)
|
|
@@ -3981,15 +4151,15 @@ const m = class m {
|
|
|
3981
4151
|
static filterToFilterFunction(e, t) {
|
|
3982
4152
|
switch (e.type) {
|
|
3983
4153
|
case S.ANY:
|
|
3984
|
-
return
|
|
4154
|
+
return _.createAnyFilterFunction(e, t);
|
|
3985
4155
|
case S.IS:
|
|
3986
|
-
return
|
|
4156
|
+
return _.createIsFilterFunction(e, t);
|
|
3987
4157
|
case S.NO_VALUE:
|
|
3988
|
-
return
|
|
4158
|
+
return _.createNoValueFilterFunction(e, t);
|
|
3989
4159
|
case S.RANGE:
|
|
3990
|
-
return
|
|
4160
|
+
return _.createRangeFilterFunction(e, t);
|
|
3991
4161
|
case S.NAN:
|
|
3992
|
-
return
|
|
4162
|
+
return _.createNaNFilterFunction(e, t);
|
|
3993
4163
|
}
|
|
3994
4164
|
}
|
|
3995
4165
|
static createAnyFilterFunction(e, t) {
|
|
@@ -4002,16 +4172,16 @@ const m = class m {
|
|
|
4002
4172
|
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));
|
|
4003
4173
|
}
|
|
4004
4174
|
static createNaNFilterFunction(e, t) {
|
|
4005
|
-
return t ? (i) => i.categories.includes(e.itemType) &&
|
|
4175
|
+
return t ? (i) => i.categories.includes(e.itemType) && _.isNotANumber(u.getPropertyValue(u.getIn(i, e.input), !0)) : (i) => i.type === e.itemType && _.isNotANumber(u.getPropertyValue(u.getIn(i, e.input), !0));
|
|
4006
4176
|
}
|
|
4007
4177
|
static isNotANumber(e) {
|
|
4008
4178
|
return u.isDefined(e) && !u.isNumber(e);
|
|
4009
4179
|
}
|
|
4010
4180
|
static createRangeFilterFunction(e, t) {
|
|
4011
|
-
return t ? (i) => i.categories.includes(e.itemType) &&
|
|
4181
|
+
return t ? (i) => i.categories.includes(e.itemType) && _.valueShouldBeHidden(
|
|
4012
4182
|
u.getPropertyValue(u.getIn(i, e.input), !1),
|
|
4013
4183
|
e.value
|
|
4014
|
-
) : (i) => i.type === e.itemType &&
|
|
4184
|
+
) : (i) => i.type === e.itemType && _.valueShouldBeHidden(
|
|
4015
4185
|
u.getPropertyValue(u.getIn(i, e.input), !1),
|
|
4016
4186
|
e.value
|
|
4017
4187
|
);
|
|
@@ -4031,9 +4201,9 @@ const m = class m {
|
|
|
4031
4201
|
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[">="];
|
|
4032
4202
|
}
|
|
4033
4203
|
};
|
|
4034
|
-
|
|
4035
|
-
let
|
|
4036
|
-
const
|
|
4204
|
+
_.nodeCache = /* @__PURE__ */ new Map(), _.edgeCache = /* @__PURE__ */ new Map(), _.FILTER_CACHE_SIZE = 5;
|
|
4205
|
+
let Ut = _;
|
|
4206
|
+
const Xg = (r) => r.selection.size, Qg = (r) => {
|
|
4037
4207
|
switch (r.selection.size) {
|
|
4038
4208
|
case 1:
|
|
4039
4209
|
return "selection";
|
|
@@ -4042,19 +4212,19 @@ const Qg = (r) => r.selection.size, eh = (r) => {
|
|
|
4042
4212
|
default:
|
|
4043
4213
|
return "multiSelection";
|
|
4044
4214
|
}
|
|
4045
|
-
},
|
|
4046
|
-
if (r.selection.size
|
|
4215
|
+
}, eh = (r) => {
|
|
4216
|
+
if (!(!u.isDefined(r.selection) || r.selection.size === 0))
|
|
4047
4217
|
return r.selection.isNode ? I.NODE : I.EDGE;
|
|
4048
|
-
},
|
|
4049
|
-
const e =
|
|
4218
|
+
}, We = (r) => u.isDefined(r.selection) && r.selection.size === 1 ? r.selection.get(0) : void 0, th = (r) => {
|
|
4219
|
+
const e = We(r);
|
|
4050
4220
|
if (e !== void 0)
|
|
4051
4221
|
return e.isNode ? e.getData("categories") : [e.getData("type")];
|
|
4052
|
-
},
|
|
4053
|
-
const e =
|
|
4222
|
+
}, rh = (r) => {
|
|
4223
|
+
const e = We(r);
|
|
4054
4224
|
if (e !== void 0)
|
|
4055
4225
|
return e.isNode ? "node" : "edge";
|
|
4056
|
-
},
|
|
4057
|
-
const e =
|
|
4226
|
+
}, qg = (r) => {
|
|
4227
|
+
const e = We(r);
|
|
4058
4228
|
if (e !== void 0) {
|
|
4059
4229
|
const t = e.getData().properties;
|
|
4060
4230
|
return Object.keys(t).map((i) => ({
|
|
@@ -4063,37 +4233,37 @@ const Qg = (r) => r.selection.size, eh = (r) => {
|
|
|
4063
4233
|
}));
|
|
4064
4234
|
}
|
|
4065
4235
|
return [];
|
|
4066
|
-
},
|
|
4236
|
+
}, ih = (r) => qg(r).length > 0;
|
|
4067
4237
|
export {
|
|
4068
|
-
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4238
|
+
Vg as ANIMATION_DURATION,
|
|
4239
|
+
F as BASE_GREY,
|
|
4240
|
+
N as Captions,
|
|
4241
|
+
xg as CaptionsViz,
|
|
4242
|
+
J as EdgeAttributes,
|
|
4243
|
+
Lt as FILTER_OPACITY,
|
|
4244
|
+
Ut as Filters,
|
|
4245
|
+
xe as HTML_COLORS,
|
|
4246
|
+
$ as ItemAttributes,
|
|
4247
|
+
Pe as LKE_NODE_GROUPING_EDGE,
|
|
4248
|
+
Zg as LKOgma,
|
|
4079
4249
|
U as NodeAttributes,
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4250
|
+
jg as OgmaStore,
|
|
4251
|
+
D as OgmaTools,
|
|
4252
|
+
Ot as PALETTE,
|
|
4083
4253
|
C as StyleRule,
|
|
4084
|
-
|
|
4254
|
+
mg as StyleRuleType,
|
|
4085
4255
|
p as StyleRules,
|
|
4086
|
-
|
|
4087
|
-
|
|
4256
|
+
O as StyleType,
|
|
4257
|
+
Ag as StylesViz,
|
|
4088
4258
|
u as Tools,
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4259
|
+
Kg as TransformationsViz,
|
|
4260
|
+
eh as getSelectionEntity,
|
|
4261
|
+
qg as getSelectionProperties,
|
|
4262
|
+
Xg as getSelectionSize,
|
|
4263
|
+
Qg as getSelectionState,
|
|
4264
|
+
We as getUniqSelection,
|
|
4265
|
+
rh as getUniqSelectionEntity,
|
|
4266
|
+
th as getUniqSelectionTypes,
|
|
4267
|
+
ih as hasSelectionProperties
|
|
4098
4268
|
};
|
|
4099
4269
|
//# sourceMappingURL=index.mjs.map
|