@genome-spy/app 0.86.0 → 0.88.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agentApi-DgopQbMV.js → agentApi-BYFBKiRQ.js} +8170 -7390
- package/dist/agentApi.es.js +3945 -3862
- package/dist/agentShared.es.js +7 -7
- package/dist/{canvas2d-BtQC7Xr8.js → canvas2d-BVQ7-2eJ.js} +141 -140
- package/dist/{canvas2d-8uxuN_vx.js → canvas2d-D7SZK3xv.js} +117 -116
- package/dist/clipOptions-BWHr3aTa.js +2675 -0
- package/dist/{clipOptions-BQfNhxgP.js → clipOptions-DTMcB_9z.js} +1147 -731
- package/dist/{debug-D_VtWQ6l.js → debug-CVpoEOWx.js} +2 -2
- package/dist/{debug-Bzc3SoRg.js → debug-DYAMZZKl.js} +2 -2
- package/dist/index.es.js +3398 -3428
- package/dist/index.js +441 -411
- package/dist/{indexer-qy_dq5l5.js → indexer-CXjZDo2Q.js} +1 -1
- package/dist/{indexer-qiFctgR3.js → indexer-DAH_ruVn.js} +1 -1
- package/dist/{nativeText-vT3AWE14.js → order-C5CzA37O.js} +144 -86
- package/dist/{nativeText-DFV5XIx8.js → order-DvY7KNcu.js} +133 -75
- package/dist/{rasterExport-B8pVoOsj.js → rasterExport-BgZ98e6U.js} +1 -1
- package/dist/{rasterExport-C4r4xjQT.js → rasterExport-DEr8fOLm.js} +1 -1
- package/dist/{renderCanvas2D-CHVNfIUz.js → renderCanvas2D-DtcJjqpB.js} +109 -96
- package/dist/{renderCanvas2D-BQrRWp2Z.js → renderCanvas2D-DxturTEW.js} +108 -95
- package/dist/schema.json +10839 -2862
- package/dist/{svg-C-Sw6E6G.js → svg-CyrLfa9e.js} +389 -428
- package/dist/{svg-CKHwwKRt.js → svg-SDJMzL--.js} +389 -428
- package/dist/{svgRasterizer-BgD72AmG.js → svgRasterizer-f7DJ3UO0.js} +1 -1
- package/dist/{svgRasterizer-BgSNqI3L.js → svgRasterizer-mWK7HTkx.js} +1 -1
- package/dist/{vega-scale-D46-iCaL.js → vega-scale-CypF85iS.js} +894 -1191
- package/dist/{vega-scale-CK0_al6O.js → vega-scale-DLKCwWRs.js} +893 -1190
- package/dist/{viewIdentityRegistry-B-VGlez1.js → viewIdentityRegistry-DIDo44XQ.js} +1 -1
- package/dist/{viewIdentityRegistry-CDtVktJD.js → viewIdentityRegistry-Dl-vMN9I.js} +1 -1
- package/dist/{viewSelectors-CKfxF_LM.js → viewSelectors-CymbZyE6.js} +692 -459
- package/dist/{viewSelectors-D_imtq5Z.js → viewSelectors-DNiDip5e.js} +667 -434
- package/dist/{viewUtils-nCJ7AoaI.js → viewUtils-BrJLIj2o.js} +3032 -2332
- package/dist/{webgl-BaA3jSa2.js → webgl-CqTDifWM.js} +1087 -1056
- package/dist/{webgl-FP-4EsBL.js → webgl-jaC2m0Zr.js} +1113 -1082
- package/package.json +5 -5
- package/src/embedTypes.d.ts +1 -1
- package/dist/clipOptions-taFzEljc.js +0 -2259
|
@@ -52,115 +52,412 @@ function f(e) {
|
|
|
52
52
|
function p(e) {
|
|
53
53
|
return e == null || e === "" ? null : +e;
|
|
54
54
|
}
|
|
55
|
-
var m = (e) => (t) => e * Math.exp(t),
|
|
56
|
-
function
|
|
55
|
+
var m = (e) => (t) => e * Math.exp(t), ee = (e) => (t) => Math.log(e * t), te = (e) => (t) => Math.sign(t) * Math.log1p(Math.abs(t / e)), h = (e) => (t) => Math.sign(t) * Math.expm1(Math.abs(t)) * e, g = (e) => (t) => t < 0 ? -((-t) ** +e) : t ** +e;
|
|
56
|
+
function _(e, t, n, r) {
|
|
57
57
|
let i = n(e[0]), a = n(f(e)), o = (a - i) * t;
|
|
58
58
|
return [r(i - o), r(a - o)];
|
|
59
59
|
}
|
|
60
|
-
function te(e, t) {
|
|
61
|
-
return v(e, t, p, l);
|
|
62
|
-
}
|
|
63
60
|
function ne(e, t) {
|
|
61
|
+
return _(e, t, p, l);
|
|
62
|
+
}
|
|
63
|
+
function re(e, t) {
|
|
64
64
|
var n = Math.sign(e[0]);
|
|
65
|
-
return
|
|
65
|
+
return _(e, t, ee(n), m(n));
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
return
|
|
67
|
+
function ie(e, t, n) {
|
|
68
|
+
return _(e, t, g(n), g(1 / n));
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ae(e, t, n, r, i) {
|
|
71
71
|
let a = r(e[0]), o = r(f(e)), s = t == null ? (a + o) / 2 : r(t);
|
|
72
72
|
return [i(s + (a - s) * n), i(s + (o - s) * n)];
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
return
|
|
74
|
+
function v(e, t, n) {
|
|
75
|
+
return ae(e, t, n, p, l);
|
|
76
76
|
}
|
|
77
|
-
function
|
|
77
|
+
function y(e, t, n) {
|
|
78
78
|
let r = Math.sign(e[0]);
|
|
79
|
-
return
|
|
79
|
+
return ae(e, t, n, ee(r), m(r));
|
|
80
80
|
}
|
|
81
|
-
function
|
|
82
|
-
return
|
|
81
|
+
function b(e, t, n, r) {
|
|
82
|
+
return ae(e, t, n, g(r), g(1 / r));
|
|
83
83
|
}
|
|
84
|
-
function
|
|
85
|
-
return
|
|
84
|
+
function oe(e, t, n, r) {
|
|
85
|
+
return ae(e, t, n, te(r), h(r));
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function se(e) {
|
|
88
88
|
return e == null ? [] : u(e) ? e : [e];
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function ce(e, t, n) {
|
|
91
91
|
let r = e[0], i = e[1], a;
|
|
92
92
|
return i < r && (a = i, i = r, r = a), a = i - r, a >= n - t ? [t, n] : [r = Math.min(Math.max(r, t), n - a), r + a];
|
|
93
93
|
}
|
|
94
|
-
function
|
|
94
|
+
function le(e) {
|
|
95
95
|
return typeof e == "function";
|
|
96
96
|
}
|
|
97
|
-
var
|
|
98
|
-
function
|
|
99
|
-
i ||= {}, r =
|
|
100
|
-
let a = [], o = [], s = {}, l = i.comparator ||
|
|
101
|
-
return
|
|
102
|
-
e != null && (a.push(r[t] ===
|
|
97
|
+
var ue = "descending";
|
|
98
|
+
function de(t, r, i) {
|
|
99
|
+
i ||= {}, r = se(r) || [];
|
|
100
|
+
let a = [], o = [], s = {}, l = i.comparator || pe;
|
|
101
|
+
return se(t).forEach((e, t) => {
|
|
102
|
+
e != null && (a.push(r[t] === ue ? -1 : 1), o.push(e = le(e) ? e : c(e, null, i)), (n(e) || []).forEach((e) => s[e] = 1));
|
|
103
103
|
}), o.length === 0 ? null : e(l(o, a), Object.keys(s));
|
|
104
104
|
}
|
|
105
|
-
var
|
|
106
|
-
return
|
|
107
|
-
},
|
|
105
|
+
var fe = (e, t) => (e < t || e == null) && t != null ? -1 : (e > t || t == null) && e != null ? 1 : (t = t instanceof Date ? +t : t, e = e instanceof Date ? +e : e) !== e && t === t ? -1 : +(t !== t && e === e), pe = (e, t) => e.length === 1 ? me(e[0], t[0]) : he(e, t, e.length), me = (e, t) => function(n, r) {
|
|
106
|
+
return fe(e(n), e(r)) * t;
|
|
107
|
+
}, he = (e, t, n) => (t.push(0), function(r, i) {
|
|
108
108
|
let a, o = 0, s = -1;
|
|
109
|
-
for (; o === 0 && ++s < n;) a = e[s], o =
|
|
109
|
+
for (; o === 0 && ++s < n;) a = e[s], o = fe(a(r), a(i));
|
|
110
110
|
return o * t[s];
|
|
111
111
|
});
|
|
112
|
-
function
|
|
112
|
+
function ge(e) {
|
|
113
113
|
return typeof e == "boolean";
|
|
114
114
|
}
|
|
115
|
-
function
|
|
115
|
+
function _e(e) {
|
|
116
116
|
return typeof e == "number";
|
|
117
117
|
}
|
|
118
|
-
function
|
|
118
|
+
function ve(e) {
|
|
119
119
|
return Object.prototype.toString.call(e) === "[object RegExp]";
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function x(e) {
|
|
122
122
|
return typeof e == "string";
|
|
123
123
|
}
|
|
124
|
-
function
|
|
124
|
+
function ye(e, t) {
|
|
125
125
|
let n = e[0], r = f(e), i = +t;
|
|
126
126
|
return i ? i === 1 ? r : n + i * (r - n) : n;
|
|
127
127
|
}
|
|
128
|
-
function
|
|
128
|
+
function be(e) {
|
|
129
129
|
return e && f(e) - e[0] || 0;
|
|
130
130
|
}
|
|
131
|
-
function
|
|
132
|
-
return u(e) ? `[${e.map((e) => e === null ? "null" :
|
|
131
|
+
function xe(e) {
|
|
132
|
+
return u(e) ? `[${e.map((e) => e === null ? "null" : xe(e))}]` : d(e) || x(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
|
|
133
133
|
}
|
|
134
|
-
function
|
|
134
|
+
function Se(e) {
|
|
135
135
|
let t = {}, n = e.length;
|
|
136
136
|
for (let r = 0; r < n; ++r) t[e[r]] = !0;
|
|
137
137
|
return t;
|
|
138
138
|
}
|
|
139
139
|
//#endregion
|
|
140
140
|
//#region ../../node_modules/d3-array/src/range.js
|
|
141
|
-
function
|
|
141
|
+
function Ce(e, t, n) {
|
|
142
142
|
e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
|
|
143
143
|
for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
|
|
144
144
|
return a;
|
|
145
145
|
}
|
|
146
146
|
//#endregion
|
|
147
|
+
//#region ../../node_modules/d3-color/src/define.js
|
|
148
|
+
function we(e, t, n) {
|
|
149
|
+
e.prototype = t.prototype = n, n.constructor = e;
|
|
150
|
+
}
|
|
151
|
+
function Te(e, t) {
|
|
152
|
+
var n = Object.create(e.prototype);
|
|
153
|
+
for (var r in t) n[r] = t[r];
|
|
154
|
+
return n;
|
|
155
|
+
}
|
|
156
|
+
//#endregion
|
|
157
|
+
//#region ../../node_modules/d3-color/src/color.js
|
|
158
|
+
function S() {}
|
|
159
|
+
var C = .7, Ee = 1 / C, w = "\\s*([+-]?\\d+)\\s*", De = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", T = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Oe = /^#([0-9a-f]{3,8})$/, ke = RegExp(`^rgb\\(${w},${w},${w}\\)$`), Ae = RegExp(`^rgb\\(${T},${T},${T}\\)$`), je = RegExp(`^rgba\\(${w},${w},${w},${De}\\)$`), Me = RegExp(`^rgba\\(${T},${T},${T},${De}\\)$`), Ne = RegExp(`^hsl\\(${De},${T},${T}\\)$`), Pe = RegExp(`^hsla\\(${De},${T},${T},${De}\\)$`), Fe = {
|
|
160
|
+
aliceblue: 15792383,
|
|
161
|
+
antiquewhite: 16444375,
|
|
162
|
+
aqua: 65535,
|
|
163
|
+
aquamarine: 8388564,
|
|
164
|
+
azure: 15794175,
|
|
165
|
+
beige: 16119260,
|
|
166
|
+
bisque: 16770244,
|
|
167
|
+
black: 0,
|
|
168
|
+
blanchedalmond: 16772045,
|
|
169
|
+
blue: 255,
|
|
170
|
+
blueviolet: 9055202,
|
|
171
|
+
brown: 10824234,
|
|
172
|
+
burlywood: 14596231,
|
|
173
|
+
cadetblue: 6266528,
|
|
174
|
+
chartreuse: 8388352,
|
|
175
|
+
chocolate: 13789470,
|
|
176
|
+
coral: 16744272,
|
|
177
|
+
cornflowerblue: 6591981,
|
|
178
|
+
cornsilk: 16775388,
|
|
179
|
+
crimson: 14423100,
|
|
180
|
+
cyan: 65535,
|
|
181
|
+
darkblue: 139,
|
|
182
|
+
darkcyan: 35723,
|
|
183
|
+
darkgoldenrod: 12092939,
|
|
184
|
+
darkgray: 11119017,
|
|
185
|
+
darkgreen: 25600,
|
|
186
|
+
darkgrey: 11119017,
|
|
187
|
+
darkkhaki: 12433259,
|
|
188
|
+
darkmagenta: 9109643,
|
|
189
|
+
darkolivegreen: 5597999,
|
|
190
|
+
darkorange: 16747520,
|
|
191
|
+
darkorchid: 10040012,
|
|
192
|
+
darkred: 9109504,
|
|
193
|
+
darksalmon: 15308410,
|
|
194
|
+
darkseagreen: 9419919,
|
|
195
|
+
darkslateblue: 4734347,
|
|
196
|
+
darkslategray: 3100495,
|
|
197
|
+
darkslategrey: 3100495,
|
|
198
|
+
darkturquoise: 52945,
|
|
199
|
+
darkviolet: 9699539,
|
|
200
|
+
deeppink: 16716947,
|
|
201
|
+
deepskyblue: 49151,
|
|
202
|
+
dimgray: 6908265,
|
|
203
|
+
dimgrey: 6908265,
|
|
204
|
+
dodgerblue: 2003199,
|
|
205
|
+
firebrick: 11674146,
|
|
206
|
+
floralwhite: 16775920,
|
|
207
|
+
forestgreen: 2263842,
|
|
208
|
+
fuchsia: 16711935,
|
|
209
|
+
gainsboro: 14474460,
|
|
210
|
+
ghostwhite: 16316671,
|
|
211
|
+
gold: 16766720,
|
|
212
|
+
goldenrod: 14329120,
|
|
213
|
+
gray: 8421504,
|
|
214
|
+
green: 32768,
|
|
215
|
+
greenyellow: 11403055,
|
|
216
|
+
grey: 8421504,
|
|
217
|
+
honeydew: 15794160,
|
|
218
|
+
hotpink: 16738740,
|
|
219
|
+
indianred: 13458524,
|
|
220
|
+
indigo: 4915330,
|
|
221
|
+
ivory: 16777200,
|
|
222
|
+
khaki: 15787660,
|
|
223
|
+
lavender: 15132410,
|
|
224
|
+
lavenderblush: 16773365,
|
|
225
|
+
lawngreen: 8190976,
|
|
226
|
+
lemonchiffon: 16775885,
|
|
227
|
+
lightblue: 11393254,
|
|
228
|
+
lightcoral: 15761536,
|
|
229
|
+
lightcyan: 14745599,
|
|
230
|
+
lightgoldenrodyellow: 16448210,
|
|
231
|
+
lightgray: 13882323,
|
|
232
|
+
lightgreen: 9498256,
|
|
233
|
+
lightgrey: 13882323,
|
|
234
|
+
lightpink: 16758465,
|
|
235
|
+
lightsalmon: 16752762,
|
|
236
|
+
lightseagreen: 2142890,
|
|
237
|
+
lightskyblue: 8900346,
|
|
238
|
+
lightslategray: 7833753,
|
|
239
|
+
lightslategrey: 7833753,
|
|
240
|
+
lightsteelblue: 11584734,
|
|
241
|
+
lightyellow: 16777184,
|
|
242
|
+
lime: 65280,
|
|
243
|
+
limegreen: 3329330,
|
|
244
|
+
linen: 16445670,
|
|
245
|
+
magenta: 16711935,
|
|
246
|
+
maroon: 8388608,
|
|
247
|
+
mediumaquamarine: 6737322,
|
|
248
|
+
mediumblue: 205,
|
|
249
|
+
mediumorchid: 12211667,
|
|
250
|
+
mediumpurple: 9662683,
|
|
251
|
+
mediumseagreen: 3978097,
|
|
252
|
+
mediumslateblue: 8087790,
|
|
253
|
+
mediumspringgreen: 64154,
|
|
254
|
+
mediumturquoise: 4772300,
|
|
255
|
+
mediumvioletred: 13047173,
|
|
256
|
+
midnightblue: 1644912,
|
|
257
|
+
mintcream: 16121850,
|
|
258
|
+
mistyrose: 16770273,
|
|
259
|
+
moccasin: 16770229,
|
|
260
|
+
navajowhite: 16768685,
|
|
261
|
+
navy: 128,
|
|
262
|
+
oldlace: 16643558,
|
|
263
|
+
olive: 8421376,
|
|
264
|
+
olivedrab: 7048739,
|
|
265
|
+
orange: 16753920,
|
|
266
|
+
orangered: 16729344,
|
|
267
|
+
orchid: 14315734,
|
|
268
|
+
palegoldenrod: 15657130,
|
|
269
|
+
palegreen: 10025880,
|
|
270
|
+
paleturquoise: 11529966,
|
|
271
|
+
palevioletred: 14381203,
|
|
272
|
+
papayawhip: 16773077,
|
|
273
|
+
peachpuff: 16767673,
|
|
274
|
+
peru: 13468991,
|
|
275
|
+
pink: 16761035,
|
|
276
|
+
plum: 14524637,
|
|
277
|
+
powderblue: 11591910,
|
|
278
|
+
purple: 8388736,
|
|
279
|
+
rebeccapurple: 6697881,
|
|
280
|
+
red: 16711680,
|
|
281
|
+
rosybrown: 12357519,
|
|
282
|
+
royalblue: 4286945,
|
|
283
|
+
saddlebrown: 9127187,
|
|
284
|
+
salmon: 16416882,
|
|
285
|
+
sandybrown: 16032864,
|
|
286
|
+
seagreen: 3050327,
|
|
287
|
+
seashell: 16774638,
|
|
288
|
+
sienna: 10506797,
|
|
289
|
+
silver: 12632256,
|
|
290
|
+
skyblue: 8900331,
|
|
291
|
+
slateblue: 6970061,
|
|
292
|
+
slategray: 7372944,
|
|
293
|
+
slategrey: 7372944,
|
|
294
|
+
snow: 16775930,
|
|
295
|
+
springgreen: 65407,
|
|
296
|
+
steelblue: 4620980,
|
|
297
|
+
tan: 13808780,
|
|
298
|
+
teal: 32896,
|
|
299
|
+
thistle: 14204888,
|
|
300
|
+
tomato: 16737095,
|
|
301
|
+
turquoise: 4251856,
|
|
302
|
+
violet: 15631086,
|
|
303
|
+
wheat: 16113331,
|
|
304
|
+
white: 16777215,
|
|
305
|
+
whitesmoke: 16119285,
|
|
306
|
+
yellow: 16776960,
|
|
307
|
+
yellowgreen: 10145074
|
|
308
|
+
};
|
|
309
|
+
we(S, Be, {
|
|
310
|
+
copy(e) {
|
|
311
|
+
return Object.assign(new this.constructor(), this, e);
|
|
312
|
+
},
|
|
313
|
+
displayable() {
|
|
314
|
+
return this.rgb().displayable();
|
|
315
|
+
},
|
|
316
|
+
hex: Ie,
|
|
317
|
+
formatHex: Ie,
|
|
318
|
+
formatHex8: Le,
|
|
319
|
+
formatHsl: Re,
|
|
320
|
+
formatRgb: ze,
|
|
321
|
+
toString: ze
|
|
322
|
+
});
|
|
323
|
+
function Ie() {
|
|
324
|
+
return this.rgb().formatHex();
|
|
325
|
+
}
|
|
326
|
+
function Le() {
|
|
327
|
+
return this.rgb().formatHex8();
|
|
328
|
+
}
|
|
329
|
+
function Re() {
|
|
330
|
+
return Xe(this).formatHsl();
|
|
331
|
+
}
|
|
332
|
+
function ze() {
|
|
333
|
+
return this.rgb().formatRgb();
|
|
334
|
+
}
|
|
335
|
+
function Be(e) {
|
|
336
|
+
var t, n;
|
|
337
|
+
return e = (e + "").trim().toLowerCase(), (t = Oe.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Ve(t) : n === 3 ? new E(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? He(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? He(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = ke.exec(e)) ? new E(t[1], t[2], t[3], 1) : (t = Ae.exec(e)) ? new E(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = je.exec(e)) ? He(t[1], t[2], t[3], t[4]) : (t = Me.exec(e)) ? He(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Ne.exec(e)) ? Ye(t[1], t[2] / 100, t[3] / 100, 1) : (t = Pe.exec(e)) ? Ye(t[1], t[2] / 100, t[3] / 100, t[4]) : Fe.hasOwnProperty(e) ? Ve(Fe[e]) : e === "transparent" ? new E(NaN, NaN, NaN, 0) : null;
|
|
338
|
+
}
|
|
339
|
+
function Ve(e) {
|
|
340
|
+
return new E(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
|
|
341
|
+
}
|
|
342
|
+
function He(e, t, n, r) {
|
|
343
|
+
return r <= 0 && (e = t = n = NaN), new E(e, t, n, r);
|
|
344
|
+
}
|
|
345
|
+
function Ue(e) {
|
|
346
|
+
return e instanceof S || (e = Be(e)), e ? (e = e.rgb(), new E(e.r, e.g, e.b, e.opacity)) : new E();
|
|
347
|
+
}
|
|
348
|
+
function We(e, t, n, r) {
|
|
349
|
+
return arguments.length === 1 ? Ue(e) : new E(e, t, n, r ?? 1);
|
|
350
|
+
}
|
|
351
|
+
function E(e, t, n, r) {
|
|
352
|
+
this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
|
|
353
|
+
}
|
|
354
|
+
we(E, We, Te(S, {
|
|
355
|
+
brighter(e) {
|
|
356
|
+
return e = e == null ? Ee : Ee ** +e, new E(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
357
|
+
},
|
|
358
|
+
darker(e) {
|
|
359
|
+
return e = e == null ? C : C ** +e, new E(this.r * e, this.g * e, this.b * e, this.opacity);
|
|
360
|
+
},
|
|
361
|
+
rgb() {
|
|
362
|
+
return this;
|
|
363
|
+
},
|
|
364
|
+
clamp() {
|
|
365
|
+
return new E(D(this.r), D(this.g), D(this.b), Je(this.opacity));
|
|
366
|
+
},
|
|
367
|
+
displayable() {
|
|
368
|
+
return -.5 <= this.r && this.r < 255.5 && -.5 <= this.g && this.g < 255.5 && -.5 <= this.b && this.b < 255.5 && 0 <= this.opacity && this.opacity <= 1;
|
|
369
|
+
},
|
|
370
|
+
hex: Ge,
|
|
371
|
+
formatHex: Ge,
|
|
372
|
+
formatHex8: Ke,
|
|
373
|
+
formatRgb: qe,
|
|
374
|
+
toString: qe
|
|
375
|
+
}));
|
|
376
|
+
function Ge() {
|
|
377
|
+
return `#${O(this.r)}${O(this.g)}${O(this.b)}`;
|
|
378
|
+
}
|
|
379
|
+
function Ke() {
|
|
380
|
+
return `#${O(this.r)}${O(this.g)}${O(this.b)}${O((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
|
|
381
|
+
}
|
|
382
|
+
function qe() {
|
|
383
|
+
let e = Je(this.opacity);
|
|
384
|
+
return `${e === 1 ? "rgb(" : "rgba("}${D(this.r)}, ${D(this.g)}, ${D(this.b)}${e === 1 ? ")" : `, ${e})`}`;
|
|
385
|
+
}
|
|
386
|
+
function Je(e) {
|
|
387
|
+
return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
|
|
388
|
+
}
|
|
389
|
+
function D(e) {
|
|
390
|
+
return Math.max(0, Math.min(255, Math.round(e) || 0));
|
|
391
|
+
}
|
|
392
|
+
function O(e) {
|
|
393
|
+
return e = D(e), (e < 16 ? "0" : "") + e.toString(16);
|
|
394
|
+
}
|
|
395
|
+
function Ye(e, t, n, r) {
|
|
396
|
+
return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new k(e, t, n, r);
|
|
397
|
+
}
|
|
398
|
+
function Xe(e) {
|
|
399
|
+
if (e instanceof k) return new k(e.h, e.s, e.l, e.opacity);
|
|
400
|
+
if (e instanceof S || (e = Be(e)), !e) return new k();
|
|
401
|
+
if (e instanceof k) return e;
|
|
402
|
+
e = e.rgb();
|
|
403
|
+
var t = e.r / 255, n = e.g / 255, r = e.b / 255, i = Math.min(t, n, r), a = Math.max(t, n, r), o = NaN, s = a - i, c = (a + i) / 2;
|
|
404
|
+
return s ? (o = t === a ? (n - r) / s + (n < r) * 6 : n === a ? (r - t) / s + 2 : (t - n) / s + 4, s /= c < .5 ? a + i : 2 - a - i, o *= 60) : s = c > 0 && c < 1 ? 0 : o, new k(o, s, c, e.opacity);
|
|
405
|
+
}
|
|
406
|
+
function Ze(e, t, n, r) {
|
|
407
|
+
return arguments.length === 1 ? Xe(e) : new k(e, t, n, r ?? 1);
|
|
408
|
+
}
|
|
409
|
+
function k(e, t, n, r) {
|
|
410
|
+
this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
|
|
411
|
+
}
|
|
412
|
+
we(k, Ze, Te(S, {
|
|
413
|
+
brighter(e) {
|
|
414
|
+
return e = e == null ? Ee : Ee ** +e, new k(this.h, this.s, this.l * e, this.opacity);
|
|
415
|
+
},
|
|
416
|
+
darker(e) {
|
|
417
|
+
return e = e == null ? C : C ** +e, new k(this.h, this.s, this.l * e, this.opacity);
|
|
418
|
+
},
|
|
419
|
+
rgb() {
|
|
420
|
+
var e = this.h % 360 + (this.h < 0) * 360, t = isNaN(e) || isNaN(this.s) ? 0 : this.s, n = this.l, r = n + (n < .5 ? n : 1 - n) * t, i = 2 * n - r;
|
|
421
|
+
return new E(et(e >= 240 ? e - 240 : e + 120, i, r), et(e, i, r), et(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
|
|
422
|
+
},
|
|
423
|
+
clamp() {
|
|
424
|
+
return new k(Qe(this.h), $e(this.s), $e(this.l), Je(this.opacity));
|
|
425
|
+
},
|
|
426
|
+
displayable() {
|
|
427
|
+
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
428
|
+
},
|
|
429
|
+
formatHsl() {
|
|
430
|
+
let e = Je(this.opacity);
|
|
431
|
+
return `${e === 1 ? "hsl(" : "hsla("}${Qe(this.h)}, ${$e(this.s) * 100}%, ${$e(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
432
|
+
}
|
|
433
|
+
}));
|
|
434
|
+
function Qe(e) {
|
|
435
|
+
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
436
|
+
}
|
|
437
|
+
function $e(e) {
|
|
438
|
+
return Math.max(0, Math.min(1, e || 0));
|
|
439
|
+
}
|
|
440
|
+
function et(e, t, n) {
|
|
441
|
+
return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
|
|
442
|
+
}
|
|
443
|
+
//#endregion
|
|
147
444
|
//#region ../../node_modules/d3-format/src/formatDecimal.js
|
|
148
|
-
function
|
|
445
|
+
function tt(e) {
|
|
149
446
|
return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
|
|
150
447
|
}
|
|
151
|
-
function
|
|
448
|
+
function nt(e, t) {
|
|
152
449
|
if (!isFinite(e) || e === 0) return null;
|
|
153
450
|
var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
|
|
154
451
|
return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
|
|
155
452
|
}
|
|
156
453
|
//#endregion
|
|
157
454
|
//#region ../../node_modules/d3-format/src/exponent.js
|
|
158
|
-
function
|
|
159
|
-
return e =
|
|
455
|
+
function rt(e) {
|
|
456
|
+
return e = nt(Math.abs(e)), e ? e[1] : NaN;
|
|
160
457
|
}
|
|
161
458
|
//#endregion
|
|
162
459
|
//#region ../../node_modules/d3-format/src/formatGroup.js
|
|
163
|
-
function
|
|
460
|
+
function it(e, t) {
|
|
164
461
|
return function(n, r) {
|
|
165
462
|
for (var i = n.length, a = [], o = 0, s = e[0], c = 0; i > 0 && s > 0 && (c + s + 1 > r && (s = Math.max(1, r - c)), a.push(n.substring(i -= s, i + s)), !((c += s + 1) > r));) s = e[o = (o + 1) % e.length];
|
|
166
463
|
return a.reverse().join(t);
|
|
@@ -168,7 +465,7 @@ function Te(e, t) {
|
|
|
168
465
|
}
|
|
169
466
|
//#endregion
|
|
170
467
|
//#region ../../node_modules/d3-format/src/formatNumerals.js
|
|
171
|
-
function
|
|
468
|
+
function at(e) {
|
|
172
469
|
return function(t) {
|
|
173
470
|
return t.replace(/[0-9]/g, function(t) {
|
|
174
471
|
return e[+t];
|
|
@@ -177,11 +474,11 @@ function Ee(e) {
|
|
|
177
474
|
}
|
|
178
475
|
//#endregion
|
|
179
476
|
//#region ../../node_modules/d3-format/src/formatSpecifier.js
|
|
180
|
-
var
|
|
181
|
-
function
|
|
182
|
-
if (!(t =
|
|
477
|
+
var ot = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
|
|
478
|
+
function st(e) {
|
|
479
|
+
if (!(t = ot.exec(e))) throw Error("invalid format: " + e);
|
|
183
480
|
var t;
|
|
184
|
-
return new
|
|
481
|
+
return new ct({
|
|
185
482
|
fill: t[1],
|
|
186
483
|
align: t[2],
|
|
187
484
|
sign: t[3],
|
|
@@ -194,16 +491,16 @@ function Oe(e) {
|
|
|
194
491
|
type: t[10]
|
|
195
492
|
});
|
|
196
493
|
}
|
|
197
|
-
|
|
198
|
-
function
|
|
494
|
+
st.prototype = ct.prototype;
|
|
495
|
+
function ct(e) {
|
|
199
496
|
this.fill = e.fill === void 0 ? " " : e.fill + "", this.align = e.align === void 0 ? ">" : e.align + "", this.sign = e.sign === void 0 ? "-" : e.sign + "", this.symbol = e.symbol === void 0 ? "" : e.symbol + "", this.zero = !!e.zero, this.width = e.width === void 0 ? void 0 : +e.width, this.comma = !!e.comma, this.precision = e.precision === void 0 ? void 0 : +e.precision, this.trim = !!e.trim, this.type = e.type === void 0 ? "" : e.type + "";
|
|
200
497
|
}
|
|
201
|
-
|
|
498
|
+
ct.prototype.toString = function() {
|
|
202
499
|
return this.fill + this.align + this.sign + this.symbol + (this.zero ? "0" : "") + (this.width === void 0 ? "" : Math.max(1, this.width | 0)) + (this.comma ? "," : "") + (this.precision === void 0 ? "" : "." + Math.max(0, this.precision | 0)) + (this.trim ? "~" : "") + this.type;
|
|
203
500
|
};
|
|
204
501
|
//#endregion
|
|
205
502
|
//#region ../../node_modules/d3-format/src/formatTrim.js
|
|
206
|
-
function
|
|
503
|
+
function lt(e) {
|
|
207
504
|
out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
|
|
208
505
|
case ".":
|
|
209
506
|
r = i = n;
|
|
@@ -220,46 +517,46 @@ function Ae(e) {
|
|
|
220
517
|
}
|
|
221
518
|
//#endregion
|
|
222
519
|
//#region ../../node_modules/d3-format/src/formatPrefixAuto.js
|
|
223
|
-
var
|
|
224
|
-
function
|
|
225
|
-
var n =
|
|
226
|
-
if (!n) return
|
|
227
|
-
var r = n[0], i = n[1], a = i - (
|
|
228
|
-
return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") +
|
|
520
|
+
var ut;
|
|
521
|
+
function dt(e, t) {
|
|
522
|
+
var n = nt(e, t);
|
|
523
|
+
if (!n) return ut = void 0, e.toPrecision(t);
|
|
524
|
+
var r = n[0], i = n[1], a = i - (ut = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
|
|
525
|
+
return a === o ? r : a > o ? r + Array(a - o + 1).join("0") : a > 0 ? r.slice(0, a) + "." + r.slice(a) : "0." + Array(1 - a).join("0") + nt(e, Math.max(0, t + a - 1))[0];
|
|
229
526
|
}
|
|
230
527
|
//#endregion
|
|
231
528
|
//#region ../../node_modules/d3-format/src/formatRounded.js
|
|
232
|
-
function
|
|
233
|
-
var n =
|
|
529
|
+
function ft(e, t) {
|
|
530
|
+
var n = nt(e, t);
|
|
234
531
|
if (!n) return e + "";
|
|
235
532
|
var r = n[0], i = n[1];
|
|
236
533
|
return i < 0 ? "0." + Array(-i).join("0") + r : r.length > i + 1 ? r.slice(0, i + 1) + "." + r.slice(i + 1) : r + Array(i - r.length + 2).join("0");
|
|
237
534
|
}
|
|
238
535
|
//#endregion
|
|
239
536
|
//#region ../../node_modules/d3-format/src/formatTypes.js
|
|
240
|
-
var
|
|
537
|
+
var pt = {
|
|
241
538
|
"%": (e, t) => (e * 100).toFixed(t),
|
|
242
539
|
b: (e) => Math.round(e).toString(2),
|
|
243
540
|
c: (e) => e + "",
|
|
244
|
-
d:
|
|
541
|
+
d: tt,
|
|
245
542
|
e: (e, t) => e.toExponential(t),
|
|
246
543
|
f: (e, t) => e.toFixed(t),
|
|
247
544
|
g: (e, t) => e.toPrecision(t),
|
|
248
545
|
o: (e) => Math.round(e).toString(8),
|
|
249
|
-
p: (e, t) =>
|
|
250
|
-
r:
|
|
251
|
-
s:
|
|
546
|
+
p: (e, t) => ft(e * 100, t),
|
|
547
|
+
r: ft,
|
|
548
|
+
s: dt,
|
|
252
549
|
X: (e) => Math.round(e).toString(16).toUpperCase(),
|
|
253
550
|
x: (e) => Math.round(e).toString(16)
|
|
254
551
|
};
|
|
255
552
|
//#endregion
|
|
256
553
|
//#region ../../node_modules/d3-format/src/identity.js
|
|
257
|
-
function
|
|
554
|
+
function mt(e) {
|
|
258
555
|
return e;
|
|
259
556
|
}
|
|
260
557
|
//#endregion
|
|
261
558
|
//#region ../../node_modules/d3-format/src/locale.js
|
|
262
|
-
var
|
|
559
|
+
var ht = Array.prototype.map, gt = [
|
|
263
560
|
"y",
|
|
264
561
|
"z",
|
|
265
562
|
"a",
|
|
@@ -278,51 +575,51 @@ var Ie = Array.prototype.map, Le = [
|
|
|
278
575
|
"Z",
|
|
279
576
|
"Y"
|
|
280
577
|
];
|
|
281
|
-
function
|
|
282
|
-
var t = e.grouping === void 0 || e.thousands === void 0 ?
|
|
578
|
+
function _t(e) {
|
|
579
|
+
var t = e.grouping === void 0 || e.thousands === void 0 ? mt : it(ht.call(e.grouping, Number), e.thousands + ""), n = e.currency === void 0 ? "" : e.currency[0] + "", r = e.currency === void 0 ? "" : e.currency[1] + "", i = e.decimal === void 0 ? "." : e.decimal + "", a = e.numerals === void 0 ? mt : at(ht.call(e.numerals, String)), o = e.percent === void 0 ? "%" : e.percent + "", s = e.minus === void 0 ? "−" : e.minus + "", c = e.nan === void 0 ? "NaN" : e.nan + "";
|
|
283
580
|
function l(e, l) {
|
|
284
|
-
e =
|
|
285
|
-
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero,
|
|
286
|
-
|
|
287
|
-
var
|
|
288
|
-
|
|
289
|
-
function
|
|
290
|
-
var n =
|
|
291
|
-
if (
|
|
581
|
+
e = st(e);
|
|
582
|
+
var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, ee = e.width, te = e.comma, h = e.precision, g = e.trim, _ = e.type;
|
|
583
|
+
_ === "n" ? (te = !0, _ = "g") : pt[_] || (h === void 0 && (h = 12), g = !0, _ = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
|
|
584
|
+
var ne = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(_) ? "0" + _.toLowerCase() : ""), re = (p === "$" ? r : /[%p]/.test(_) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), ie = pt[_], ae = /[defgprs%]/.test(_);
|
|
585
|
+
h = h === void 0 ? 6 : /[gprs]/.test(_) ? Math.max(1, Math.min(21, h)) : Math.max(0, Math.min(20, h));
|
|
586
|
+
function v(e) {
|
|
587
|
+
var n = ne, r = re, o, l, p;
|
|
588
|
+
if (_ === "c") r = ie(e) + r, e = "";
|
|
292
589
|
else {
|
|
293
590
|
e = +e;
|
|
294
|
-
var
|
|
295
|
-
if (e = isNaN(e) ? c :
|
|
591
|
+
var v = e < 0 || 1 / e < 0;
|
|
592
|
+
if (e = isNaN(e) ? c : ie(Math.abs(e), h), g && (e = lt(e)), v && +e == 0 && f !== "+" && (v = !1), n = (v ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (_ === "s" && !isNaN(e) && ut !== void 0 ? gt[8 + ut / 3] : "") + r + (v && f === "(" ? ")" : ""), ae) {
|
|
296
593
|
for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
|
|
297
594
|
r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
|
|
298
595
|
break;
|
|
299
596
|
}
|
|
300
597
|
}
|
|
301
598
|
}
|
|
302
|
-
|
|
303
|
-
var
|
|
304
|
-
switch (
|
|
599
|
+
te && !m && (e = t(e, Infinity));
|
|
600
|
+
var y = n.length + e.length + r.length, b = y < ee ? Array(ee - y + 1).join(u) : "";
|
|
601
|
+
switch (te && m && (e = t(b + e, b.length ? ee - r.length : Infinity), b = ""), d) {
|
|
305
602
|
case "<":
|
|
306
|
-
e = n + e + r +
|
|
603
|
+
e = n + e + r + b;
|
|
307
604
|
break;
|
|
308
605
|
case "=":
|
|
309
|
-
e = n +
|
|
606
|
+
e = n + b + e + r;
|
|
310
607
|
break;
|
|
311
608
|
case "^":
|
|
312
|
-
e =
|
|
609
|
+
e = b.slice(0, y = b.length >> 1) + n + e + r + b.slice(y);
|
|
313
610
|
break;
|
|
314
611
|
default:
|
|
315
|
-
e =
|
|
612
|
+
e = b + n + e + r;
|
|
316
613
|
break;
|
|
317
614
|
}
|
|
318
615
|
return a(e);
|
|
319
616
|
}
|
|
320
|
-
return
|
|
617
|
+
return v.toString = function() {
|
|
321
618
|
return e + "";
|
|
322
|
-
},
|
|
619
|
+
}, v;
|
|
323
620
|
}
|
|
324
621
|
function u(e, t) {
|
|
325
|
-
var n = Math.max(-8, Math.min(8, Math.floor(
|
|
622
|
+
var n = Math.max(-8, Math.min(8, Math.floor(rt(t) / 3))) * 3, r = 10 ** -n, i = l((e = st(e), e.type = "f", e), { suffix: gt[8 + n / 3] });
|
|
326
623
|
return function(e) {
|
|
327
624
|
return i(r * e);
|
|
328
625
|
};
|
|
@@ -334,18 +631,54 @@ function Re(e) {
|
|
|
334
631
|
}
|
|
335
632
|
//#endregion
|
|
336
633
|
//#region ../../node_modules/d3-format/src/defaultLocale.js
|
|
337
|
-
var
|
|
338
|
-
|
|
634
|
+
var vt, yt, bt;
|
|
635
|
+
xt({
|
|
339
636
|
thousands: ",",
|
|
340
637
|
grouping: [3],
|
|
341
638
|
currency: ["$", ""]
|
|
342
639
|
});
|
|
343
|
-
function
|
|
344
|
-
return
|
|
640
|
+
function xt(e) {
|
|
641
|
+
return vt = _t(e), yt = vt.format, bt = vt.formatPrefix, vt;
|
|
345
642
|
}
|
|
346
643
|
//#endregion
|
|
347
|
-
//#region ../core/src/data/
|
|
348
|
-
var
|
|
644
|
+
//#region ../core/src/data/sideInputBinding.js
|
|
645
|
+
var St = class {
|
|
646
|
+
#e;
|
|
647
|
+
#t;
|
|
648
|
+
#n = !1;
|
|
649
|
+
#r = !0;
|
|
650
|
+
#i = [];
|
|
651
|
+
constructor(e) {
|
|
652
|
+
this.#e = e, this.#t = Array.from(new Set(e.dataDependencies), (e) => ({
|
|
653
|
+
collector: e,
|
|
654
|
+
consumed: -1
|
|
655
|
+
}));
|
|
656
|
+
for (let t of this.#t) this.#i.push(t.collector.observe(() => {
|
|
657
|
+
e.parent && e.completed && !this.isReady() && e.areDataDependenciesAvailable() && e.requestRepropagate();
|
|
658
|
+
}));
|
|
659
|
+
}
|
|
660
|
+
dispose() {
|
|
661
|
+
for (let e of this.#i) e();
|
|
662
|
+
this.#i.length = 0;
|
|
663
|
+
}
|
|
664
|
+
reset() {
|
|
665
|
+
this.#n = !1, this.#r = !0;
|
|
666
|
+
for (let e of this.#t) e.consumed = -1;
|
|
667
|
+
}
|
|
668
|
+
consume() {
|
|
669
|
+
if (!this.#e.areDataDependenciesAvailable()) this.#r = !1;
|
|
670
|
+
else if (!this.#n) {
|
|
671
|
+
for (let e of this.#t) e.consumed = e.collector.dataRevision;
|
|
672
|
+
this.#n = !0;
|
|
673
|
+
}
|
|
674
|
+
}
|
|
675
|
+
complete() {
|
|
676
|
+
this.#n || this.consume();
|
|
677
|
+
}
|
|
678
|
+
isReady() {
|
|
679
|
+
return this.#r && this.#n && this.#e.areDataDependenciesAvailable() && this.#t.every(({ collector: e, consumed: t }) => e.dataRevision === t);
|
|
680
|
+
}
|
|
681
|
+
}, Ct = class {
|
|
349
682
|
stats = {
|
|
350
683
|
count: 0,
|
|
351
684
|
first: null
|
|
@@ -353,6 +686,8 @@ var Ue = class {
|
|
|
353
686
|
#e = !1;
|
|
354
687
|
#t = !1;
|
|
355
688
|
#n = [];
|
|
689
|
+
#r;
|
|
690
|
+
#i;
|
|
356
691
|
paramRuntimeProvider = null;
|
|
357
692
|
get behavior() {
|
|
358
693
|
return 0;
|
|
@@ -360,6 +695,18 @@ var Ue = class {
|
|
|
360
695
|
get domainSensitiveScaleChannels() {
|
|
361
696
|
return [];
|
|
362
697
|
}
|
|
698
|
+
get dataDependencies() {
|
|
699
|
+
return [];
|
|
700
|
+
}
|
|
701
|
+
isDataReady() {
|
|
702
|
+
return this.completed && !this.disposed && (!this.#i || this.#i.isReady());
|
|
703
|
+
}
|
|
704
|
+
areDataDependenciesAvailable() {
|
|
705
|
+
return this.dataDependencies.every((e) => e.completed && !e.disposed);
|
|
706
|
+
}
|
|
707
|
+
consumeDataDependencies() {
|
|
708
|
+
this.#i?.consume();
|
|
709
|
+
}
|
|
363
710
|
get label() {
|
|
364
711
|
return `(${this.constructor.name})`;
|
|
365
712
|
}
|
|
@@ -383,26 +730,26 @@ var Ue = class {
|
|
|
383
730
|
initialized: this.#e,
|
|
384
731
|
disposed: this.#t,
|
|
385
732
|
params: "params" in e ? structuredClone(e.params) : void 0,
|
|
386
|
-
view:
|
|
733
|
+
view: wt(e, this.paramRuntimeProvider),
|
|
387
734
|
domainSensitiveScaleChannels: this.domainSensitiveScaleChannels
|
|
388
735
|
};
|
|
389
736
|
}
|
|
390
737
|
reset() {
|
|
391
|
-
this.completed = !1;
|
|
738
|
+
this.#i?.reset(), this.completed = !1;
|
|
392
739
|
for (let e of this.children) e.reset();
|
|
393
740
|
this.stats.count = 0, this.stats.first = null;
|
|
394
741
|
}
|
|
395
742
|
initialize() {}
|
|
396
743
|
initializeOnce() {
|
|
397
|
-
this.#e ||= (this.initialize(), !0);
|
|
744
|
+
this.#e ||= (this.dataDependencies.length && (this.#i = new St(this)), this.initialize(), !0);
|
|
398
745
|
}
|
|
399
|
-
#
|
|
400
|
-
this._propagate = Function("children", "stats",
|
|
746
|
+
#a() {
|
|
747
|
+
this._propagate = Function("children", "stats", Ce(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
|
|
401
748
|
if (stats.count === 0) {
|
|
402
749
|
stats.first = structuredClone(datum);
|
|
403
750
|
}
|
|
404
751
|
stats.count++;
|
|
405
|
-
${
|
|
752
|
+
${Ce(this.children.length).map((e) => `child${e}.handle(datum);`).join("\n")}
|
|
406
753
|
};`)(this.children, this.stats);
|
|
407
754
|
}
|
|
408
755
|
setParent(e) {
|
|
@@ -410,7 +757,7 @@ var Ue = class {
|
|
|
410
757
|
}
|
|
411
758
|
addChild(e) {
|
|
412
759
|
if (e.parent) throw Error("Cannot add the child! It already has a parent.");
|
|
413
|
-
return this.children.push(e), e.setParent(this), this.#
|
|
760
|
+
return this.children.push(e), e.setParent(this), this.#a(), this;
|
|
414
761
|
}
|
|
415
762
|
adopt(e) {
|
|
416
763
|
e.parent && e.parent.removeChild(e), this.addChild(e);
|
|
@@ -420,11 +767,11 @@ var Ue = class {
|
|
|
420
767
|
}
|
|
421
768
|
insertAsParent(e) {
|
|
422
769
|
if (this.isRoot()) throw Error("Cannot insert a new parent for a root node!");
|
|
423
|
-
e.parent = this.parent, this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#
|
|
770
|
+
e.parent = this.parent, this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#a(), this.parent = void 0, e.addChild(this);
|
|
424
771
|
}
|
|
425
772
|
removeChild(e) {
|
|
426
773
|
let t = this.children.indexOf(e);
|
|
427
|
-
if (t > -1) this.children.splice(t, 1), e.parent = void 0, this.#
|
|
774
|
+
if (t > -1) this.children.splice(t, 1), e.parent = void 0, this.#a();
|
|
428
775
|
else throw Error("Trying to remove an unknown child node!");
|
|
429
776
|
}
|
|
430
777
|
excise() {
|
|
@@ -432,7 +779,7 @@ var Ue = class {
|
|
|
432
779
|
if (this.isTerminal()) this.parent.removeChild(this);
|
|
433
780
|
else if (this.children.length == 1) {
|
|
434
781
|
let e = this.children[0];
|
|
435
|
-
e.setParent(this.parent), this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#
|
|
782
|
+
e.setParent(this.parent), this.parent.children[this.parent.children.indexOf(this)] = e, this.parent.#a(), this.setParent(void 0), this.children.length = 0;
|
|
436
783
|
} else throw Error("Cannot excise a node that has multiple children!");
|
|
437
784
|
}
|
|
438
785
|
isRoot() {
|
|
@@ -457,7 +804,7 @@ var Ue = class {
|
|
|
457
804
|
this._propagate(e);
|
|
458
805
|
}
|
|
459
806
|
complete() {
|
|
460
|
-
this.completed = !0;
|
|
807
|
+
this.#i?.complete(), this.completed = !0;
|
|
461
808
|
for (let e of this.children) e.complete();
|
|
462
809
|
}
|
|
463
810
|
registerDisposer(e) {
|
|
@@ -465,7 +812,7 @@ var Ue = class {
|
|
|
465
812
|
}
|
|
466
813
|
dispose() {
|
|
467
814
|
if (!this.#t) {
|
|
468
|
-
this.#t = !0;
|
|
815
|
+
this.#t = !0, this.#i?.dispose();
|
|
469
816
|
for (let e of this.#n) e();
|
|
470
817
|
this.#n.length = 0;
|
|
471
818
|
}
|
|
@@ -484,17 +831,41 @@ var Ue = class {
|
|
|
484
831
|
if (!this.parent) throw Error("Cannot find paramRuntime!");
|
|
485
832
|
return this.parent.paramRuntime;
|
|
486
833
|
}
|
|
834
|
+
get replaySource() {
|
|
835
|
+
if (!this.parent) throw Error("Cannot replay data: no upstream replay source.");
|
|
836
|
+
return this.parent.replaySource;
|
|
837
|
+
}
|
|
838
|
+
get replaysSynchronously() {
|
|
839
|
+
return !1;
|
|
840
|
+
}
|
|
841
|
+
requestRepropagate() {
|
|
842
|
+
let e = this.replaySource, t = this.paramRuntime.updateScheduler;
|
|
843
|
+
e.#r ||= () => {
|
|
844
|
+
e.disposed || (e.replaysSynchronously && e.visit((e) => {
|
|
845
|
+
e.#r && t.cancelUpdate(e.#r);
|
|
846
|
+
}), e.repropagate());
|
|
847
|
+
};
|
|
848
|
+
let n = 0;
|
|
849
|
+
for (let t = e.parent; t; t = t.parent) n++;
|
|
850
|
+
t.requestUpdate(e.#r, n, void 0, () => e.#o());
|
|
851
|
+
}
|
|
852
|
+
#o() {
|
|
853
|
+
let e = /* @__PURE__ */ new Set();
|
|
854
|
+
return this.visit((t) => {
|
|
855
|
+
for (let n of t.dataDependencies) for (let t = n.parent; t; t = t.parent) t !== this && t.#r && e.add(t.#r);
|
|
856
|
+
}), e;
|
|
857
|
+
}
|
|
487
858
|
repropagate() {
|
|
488
859
|
if (this.parent) this.parent.repropagate();
|
|
489
860
|
else throw Error("Cannot repropagate data, no FlowNode with stored data found!");
|
|
490
861
|
}
|
|
491
862
|
_propagate(e) {}
|
|
492
863
|
};
|
|
493
|
-
function
|
|
864
|
+
function wt(e, t) {
|
|
494
865
|
if ("view" in e) return e.view;
|
|
495
866
|
if (t && "getPathString" in t) return t;
|
|
496
867
|
}
|
|
497
|
-
function
|
|
868
|
+
function Tt(e) {
|
|
498
869
|
let t = /* @__PURE__ */ new Set();
|
|
499
870
|
for (; e;) {
|
|
500
871
|
for (let n of e.domainSensitiveScaleChannels) t.add(n);
|
|
@@ -502,15 +873,15 @@ function Ge(e) {
|
|
|
502
873
|
}
|
|
503
874
|
return t;
|
|
504
875
|
}
|
|
505
|
-
function
|
|
876
|
+
function Et(e) {
|
|
506
877
|
return e.type == "file";
|
|
507
878
|
}
|
|
508
|
-
function
|
|
879
|
+
function Dt(e) {
|
|
509
880
|
return e.type == "facet";
|
|
510
881
|
}
|
|
511
882
|
//#endregion
|
|
512
883
|
//#region ../core/src/ruler/rulerValue.js
|
|
513
|
-
function
|
|
884
|
+
function Ot(e = ["x"], t = {}) {
|
|
514
885
|
let n = {};
|
|
515
886
|
for (let r of e) n[r] = t[r] ?? null;
|
|
516
887
|
return {
|
|
@@ -520,37 +891,37 @@ function Je(e = ["x"], t = {}) {
|
|
|
520
891
|
}
|
|
521
892
|
//#endregion
|
|
522
893
|
//#region ../core/src/paramRuntime/paramUtils.js
|
|
523
|
-
function
|
|
524
|
-
return typeof e == "object" && !!e && "expr" in e &&
|
|
894
|
+
function A(e) {
|
|
895
|
+
return typeof e == "object" && !!e && "expr" in e && x(e.expr);
|
|
525
896
|
}
|
|
526
|
-
function
|
|
527
|
-
if (
|
|
897
|
+
function kt(e) {
|
|
898
|
+
if (A(e)) throw Error("ExprRef " + JSON.stringify(e) + " not allowed here. Expected a scalar value.");
|
|
528
899
|
return e;
|
|
529
900
|
}
|
|
530
|
-
function
|
|
901
|
+
function At(e) {
|
|
531
902
|
return ("expr" in e || "bind" in e) && !("select" in e) && !("ruler" in e);
|
|
532
903
|
}
|
|
533
|
-
function
|
|
904
|
+
function jt(e) {
|
|
534
905
|
return !("expr" in e || "bind" in e) && "select" in e;
|
|
535
906
|
}
|
|
536
|
-
function
|
|
907
|
+
function Mt(e) {
|
|
537
908
|
return !("expr" in e || "bind" in e || "select" in e) && "ruler" in e;
|
|
538
909
|
}
|
|
539
|
-
function
|
|
910
|
+
function Nt(e) {
|
|
540
911
|
if (!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)) throw Error("Invalid parameter name: " + e + ". Must be a valid JavaScript identifier.");
|
|
541
912
|
return e;
|
|
542
913
|
}
|
|
543
|
-
function
|
|
914
|
+
function Pt(e, t, n) {
|
|
544
915
|
if ("select" in e) {
|
|
545
|
-
let t =
|
|
546
|
-
if (
|
|
547
|
-
if (
|
|
916
|
+
let t = Ni(e.select);
|
|
917
|
+
if (Pi(t)) return t.toggle ? xi() : bi(null);
|
|
918
|
+
if (Fi(t)) {
|
|
548
919
|
if (!t.encodings) throw Error("Interval selection \"" + e.name + "\" must have encodings defined!");
|
|
549
|
-
return
|
|
920
|
+
return Si(t.encodings);
|
|
550
921
|
}
|
|
551
922
|
throw Error("Unknown selection config for parameter \"" + e.name + "\".");
|
|
552
923
|
}
|
|
553
|
-
if ("ruler" in e) return
|
|
924
|
+
if ("ruler" in e) return Ot(e.ruler.encodings, e.value);
|
|
554
925
|
if ("expr" in e) {
|
|
555
926
|
let r = n ?? t?.createExpression(e.expr);
|
|
556
927
|
if (!r) throw Error("Cannot evaluate expression for parameter \"" + e.name + "\".");
|
|
@@ -558,55 +929,35 @@ function et(e, t, n) {
|
|
|
558
929
|
}
|
|
559
930
|
return "value" in e ? e.value : null;
|
|
560
931
|
}
|
|
561
|
-
function
|
|
562
|
-
let a = { ...t }, o =
|
|
563
|
-
r
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
s = !1;
|
|
570
|
-
return;
|
|
571
|
-
}
|
|
572
|
-
let e = new Set(o);
|
|
573
|
-
o.clear(), s = !1, n(e);
|
|
574
|
-
}, d = (t) => {
|
|
575
|
-
c || (o.add(t), s || (s = !0, queueMicrotask(() => {
|
|
576
|
-
c || (l == "whenPropagated" && e.whenPropagated ? e.whenPropagated().then(u).catch(() => {
|
|
577
|
-
u();
|
|
578
|
-
}) : u());
|
|
579
|
-
})));
|
|
580
|
-
};
|
|
581
|
-
for (let [i, o] of Object.entries(t)) if (w(o)) if (n) {
|
|
582
|
-
let t = () => d(i), n = e.watchExpression ? e.watchExpression(o.expr, t, {
|
|
583
|
-
scopeOwned: !r,
|
|
584
|
-
registerDisposer: r
|
|
585
|
-
}) : e.createExpression(o.expr);
|
|
586
|
-
if (!e.watchExpression) {
|
|
587
|
-
let e = n.subscribe(t);
|
|
588
|
-
r?.(e);
|
|
589
|
-
}
|
|
590
|
-
Object.defineProperty(a, i, {
|
|
932
|
+
function Ft(e, t, n, r, i = []) {
|
|
933
|
+
let a = { ...t }, o = [];
|
|
934
|
+
for (let [r, i] of Object.entries(t)) if (A(i)) {
|
|
935
|
+
let t = e.createExpression(i.expr), s = o.push({
|
|
936
|
+
key: r,
|
|
937
|
+
fn: t
|
|
938
|
+
}) - 1;
|
|
939
|
+
Object.defineProperty(a, r, {
|
|
591
940
|
enumerable: !0,
|
|
592
|
-
get()
|
|
593
|
-
return n();
|
|
594
|
-
}
|
|
941
|
+
get: n ? () => c.get()[s] : () => t(null)
|
|
595
942
|
});
|
|
596
|
-
} else
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
943
|
+
} else a[r] = i;
|
|
944
|
+
if (!n) return a;
|
|
945
|
+
for (let { key: t, expr: n } of i) o.push({
|
|
946
|
+
key: t,
|
|
947
|
+
fn: e.createExpression(n.expr)
|
|
948
|
+
});
|
|
949
|
+
if (!o.length) return a;
|
|
950
|
+
let s = Array.from(new Set(o.flatMap(({ fn: e }) => e.dependencies))), c = e.computed("expression properties", s, () => o.map(({ fn: e }) => e(null)), { equals: It }), l = c.get(), u = e.effect([c], () => {
|
|
951
|
+
let e = c.get(), t = new Set(o.filter((t, n) => l[n] !== e[n]).map(({ key: e }) => e));
|
|
952
|
+
l = e, n(t);
|
|
953
|
+
});
|
|
954
|
+
return r?.(c.dispose), r?.(u), a;
|
|
607
955
|
}
|
|
608
|
-
function
|
|
609
|
-
|
|
956
|
+
function It(e, t) {
|
|
957
|
+
return e.every((e, n) => e === t[n]);
|
|
958
|
+
}
|
|
959
|
+
function Lt(e, t, n, r) {
|
|
960
|
+
if (!A(t)) return t;
|
|
610
961
|
let i = () => {
|
|
611
962
|
throw Error(n);
|
|
612
963
|
}, a = e.watchExpression ? e.watchExpression(t.expr, i, {
|
|
@@ -619,8 +970,9 @@ function nt(e, t, n, r) {
|
|
|
619
970
|
}
|
|
620
971
|
return a();
|
|
621
972
|
}
|
|
622
|
-
function
|
|
973
|
+
function Rt(e) {
|
|
623
974
|
return Object.assign(() => e, {
|
|
975
|
+
dependencies: [],
|
|
624
976
|
subscribe: () => () => void 0,
|
|
625
977
|
invalidate: () => void 0,
|
|
626
978
|
identifier: () => "constant",
|
|
@@ -631,7 +983,7 @@ function rt(e) {
|
|
|
631
983
|
}
|
|
632
984
|
//#endregion
|
|
633
985
|
//#region ../core/src/data/transforms/transform.js
|
|
634
|
-
var
|
|
986
|
+
var zt = class extends Ct {
|
|
635
987
|
#e;
|
|
636
988
|
constructor(e, t) {
|
|
637
989
|
super(t), this.#e = e.type;
|
|
@@ -640,7 +992,7 @@ var it = class extends Ue {
|
|
|
640
992
|
return this.#e;
|
|
641
993
|
}
|
|
642
994
|
watchExprRef(e, t) {
|
|
643
|
-
if (
|
|
995
|
+
if (A(e)) {
|
|
644
996
|
let n = e;
|
|
645
997
|
return this.paramRuntime.watchExpression(n.expr, t, {
|
|
646
998
|
scopeOwned: !1,
|
|
@@ -649,7 +1001,7 @@ var it = class extends Ue {
|
|
|
649
1001
|
}
|
|
650
1002
|
return (() => e);
|
|
651
1003
|
}
|
|
652
|
-
},
|
|
1004
|
+
}, j = "__uniqueId", Bt = 1e4, Vt = [null], Ht = class extends zt {
|
|
653
1005
|
get behavior() {
|
|
654
1006
|
return 2;
|
|
655
1007
|
}
|
|
@@ -661,22 +1013,22 @@ var it = class extends Ue {
|
|
|
661
1013
|
super.reset(), this._usedBlocks = 0, this._id = -1;
|
|
662
1014
|
}
|
|
663
1015
|
handle(e) {
|
|
664
|
-
e[
|
|
1016
|
+
e[j] = this.#e(), this._propagate(e);
|
|
665
1017
|
}
|
|
666
1018
|
#e() {
|
|
667
|
-
return ++this._id % 1e4 == 0 && (this._id = this.#t() *
|
|
1019
|
+
return ++this._id % 1e4 == 0 && (this._id = this.#t() * Bt), this._id;
|
|
668
1020
|
}
|
|
669
1021
|
#t() {
|
|
670
1022
|
return this._usedBlocks < this._blocks.length ? this._blocks[this._usedBlocks++] : this.#n();
|
|
671
1023
|
}
|
|
672
1024
|
#n() {
|
|
673
|
-
let e =
|
|
674
|
-
return
|
|
1025
|
+
let e = Vt.length;
|
|
1026
|
+
return Vt[e] = this, this._blocks.push(e), this._usedBlocks++, e;
|
|
675
1027
|
}
|
|
676
1028
|
};
|
|
677
1029
|
//#endregion
|
|
678
1030
|
//#region ../core/src/utils/field.js
|
|
679
|
-
function
|
|
1031
|
+
function Ut(t, n = t) {
|
|
680
1032
|
return /^[A-Za-z0-9_]+$/.test(t) ? e(Function("validator", `
|
|
681
1033
|
let validated = !validator;
|
|
682
1034
|
return function accessField(datum) {
|
|
@@ -686,15 +1038,15 @@ function ct(t, n = t) {
|
|
|
686
1038
|
}
|
|
687
1039
|
return datum[${JSON.stringify(t)}];
|
|
688
1040
|
}`)(function(e) {
|
|
689
|
-
t in e ||
|
|
1041
|
+
t in e || Wt(e, t);
|
|
690
1042
|
}), [t], n) : c(t);
|
|
691
1043
|
}
|
|
692
|
-
function
|
|
1044
|
+
function Wt(e, t) {
|
|
693
1045
|
throw Error(`Invalid field "${t}". Available fields or properties: ${Object.keys(e).join(", ")}`);
|
|
694
1046
|
}
|
|
695
1047
|
//#endregion
|
|
696
1048
|
//#region ../../node_modules/vega-util/build/accessor.js
|
|
697
|
-
function
|
|
1049
|
+
function M(e, t, n) {
|
|
698
1050
|
return Object.assign(e, {
|
|
699
1051
|
fields: t || [],
|
|
700
1052
|
fname: n
|
|
@@ -702,12 +1054,12 @@ function E(e, t, n) {
|
|
|
702
1054
|
}
|
|
703
1055
|
//#endregion
|
|
704
1056
|
//#region ../../node_modules/vega-util/build/getter.js
|
|
705
|
-
function
|
|
706
|
-
return e.length === 1 ?
|
|
1057
|
+
function Gt(e) {
|
|
1058
|
+
return e.length === 1 ? Kt(e[0]) : qt(e);
|
|
707
1059
|
}
|
|
708
|
-
var
|
|
1060
|
+
var Kt = (e) => function(t) {
|
|
709
1061
|
return t[e];
|
|
710
|
-
},
|
|
1062
|
+
}, qt = (e) => {
|
|
711
1063
|
let t = e.length;
|
|
712
1064
|
return function(n) {
|
|
713
1065
|
for (let r = 0; r < t; ++r) n = n[e[r]];
|
|
@@ -716,12 +1068,12 @@ var dt = (e) => function(t) {
|
|
|
716
1068
|
};
|
|
717
1069
|
//#endregion
|
|
718
1070
|
//#region ../../node_modules/vega-util/build/error.js
|
|
719
|
-
function
|
|
1071
|
+
function N(e) {
|
|
720
1072
|
throw Error(e);
|
|
721
1073
|
}
|
|
722
1074
|
//#endregion
|
|
723
1075
|
//#region ../../node_modules/vega-util/build/splitAccessPath.js
|
|
724
|
-
function
|
|
1076
|
+
function Jt(e) {
|
|
725
1077
|
let t = [], n = e.length, r = null, i = 0, a = "", o, s, c;
|
|
726
1078
|
e += "";
|
|
727
1079
|
function l() {
|
|
@@ -730,107 +1082,107 @@ function pt(e) {
|
|
|
730
1082
|
for (o = s = 0; s < n; ++s) if (c = e[s], c === "\\") a += e.substring(o, s++), o = s;
|
|
731
1083
|
else if (c === r) l(), r = null, i = -1;
|
|
732
1084
|
else if (r) continue;
|
|
733
|
-
else o === i && c === "\"" || o === i && c === "'" ? (o = s + 1, r = c) : c === "." && !i ? s > o ? l() : o = s + 1 : c === "[" ? (s > o && l(), i = o = s + 1) : c === "]" && (i ||
|
|
734
|
-
return i &&
|
|
1085
|
+
else o === i && c === "\"" || o === i && c === "'" ? (o = s + 1, r = c) : c === "." && !i ? s > o ? l() : o = s + 1 : c === "[" ? (s > o && l(), i = o = s + 1) : c === "]" && (i || N("Access path missing open bracket: " + e), i > 0 && l(), i = 0, o = s + 1);
|
|
1086
|
+
return i && N("Access path missing closing bracket: " + e), r && N("Access path missing closing quote: " + e), s > o && (s++, l()), t;
|
|
735
1087
|
}
|
|
736
1088
|
//#endregion
|
|
737
1089
|
//#region ../../node_modules/vega-util/build/field.js
|
|
738
|
-
function
|
|
739
|
-
let r =
|
|
740
|
-
return
|
|
1090
|
+
function Yt(e, t, n) {
|
|
1091
|
+
let r = Jt(e), i = r.length === 1 ? r[0] : e;
|
|
1092
|
+
return M((n && n.get || Gt)(r), [i], t || i);
|
|
741
1093
|
}
|
|
742
|
-
|
|
743
|
-
var
|
|
744
|
-
|
|
1094
|
+
Yt("id");
|
|
1095
|
+
var Xt = M((e) => e, [], "identity");
|
|
1096
|
+
M(() => 0, [], "zero"), M(() => 1, [], "one"), M(() => !0, [], "true"), M(() => !1, [], "false");
|
|
745
1097
|
//#endregion
|
|
746
1098
|
//#region ../../node_modules/vega-util/build/interpreter.js
|
|
747
|
-
var
|
|
1099
|
+
var Zt = /* @__PURE__ */ new Set([...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function"), "__proto__"]), Qt = Array.isArray;
|
|
748
1100
|
//#endregion
|
|
749
1101
|
//#region ../../node_modules/vega-util/build/isObject.js
|
|
750
|
-
function
|
|
1102
|
+
function $t(e) {
|
|
751
1103
|
return e === Object(e);
|
|
752
1104
|
}
|
|
753
1105
|
//#endregion
|
|
754
1106
|
//#region ../../node_modules/vega-util/build/array.js
|
|
755
|
-
function
|
|
756
|
-
return e == null ? [] :
|
|
1107
|
+
function en(e) {
|
|
1108
|
+
return e == null ? [] : Qt(e) ? e : [e];
|
|
757
1109
|
}
|
|
758
1110
|
//#endregion
|
|
759
1111
|
//#region ../../node_modules/vega-util/build/isFunction.js
|
|
760
|
-
function
|
|
1112
|
+
function tn(e) {
|
|
761
1113
|
return typeof e == "function";
|
|
762
1114
|
}
|
|
763
1115
|
//#endregion
|
|
764
1116
|
//#region ../../node_modules/vega-util/build/hasOwnProperty.js
|
|
765
|
-
function
|
|
1117
|
+
function nn(e, t) {
|
|
766
1118
|
return Object.hasOwn(e, t);
|
|
767
1119
|
}
|
|
768
1120
|
//#endregion
|
|
769
1121
|
//#region ../../node_modules/vega-util/build/isString.js
|
|
770
|
-
function
|
|
1122
|
+
function rn(e) {
|
|
771
1123
|
return typeof e == "string";
|
|
772
1124
|
}
|
|
773
1125
|
//#endregion
|
|
774
1126
|
//#region ../../node_modules/vega-util/build/stringValue.js
|
|
775
|
-
function
|
|
776
|
-
return
|
|
1127
|
+
function an(e) {
|
|
1128
|
+
return Qt(e) ? `[${e.map((e) => e === null ? "null" : an(e))}]` : $t(e) || rn(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
|
|
777
1129
|
}
|
|
778
1130
|
//#endregion
|
|
779
1131
|
//#region ../../node_modules/vega-util/build/toSet.js
|
|
780
|
-
function
|
|
1132
|
+
function on(e) {
|
|
781
1133
|
let t = {}, n = e.length;
|
|
782
1134
|
for (let r = 0; r < n; ++r) t[e[r] + ""] = !0;
|
|
783
1135
|
return t;
|
|
784
1136
|
}
|
|
785
1137
|
//#endregion
|
|
786
1138
|
//#region ../../node_modules/vega-expression/build/vega-expression.js
|
|
787
|
-
var
|
|
788
|
-
function
|
|
1139
|
+
var sn = "RawCode", cn = "Literal", ln = "Property", un = "Identifier", dn = "ArrayExpression", fn = "BinaryExpression", pn = "CallExpression", mn = "ConditionalExpression", hn = "LogicalExpression", gn = "MemberExpression", _n = "ObjectExpression", vn = "UnaryExpression";
|
|
1140
|
+
function P(e) {
|
|
789
1141
|
this.type = e;
|
|
790
1142
|
}
|
|
791
|
-
|
|
1143
|
+
P.prototype.visit = function(e) {
|
|
792
1144
|
let t, n, r;
|
|
793
1145
|
if (e(this)) return 1;
|
|
794
|
-
for (t =
|
|
1146
|
+
for (t = yn(this), n = 0, r = t.length; n < r; ++n) if (t[n].visit(e)) return 1;
|
|
795
1147
|
};
|
|
796
|
-
function
|
|
1148
|
+
function yn(e) {
|
|
797
1149
|
switch (e.type) {
|
|
798
|
-
case
|
|
799
|
-
case
|
|
800
|
-
case
|
|
801
|
-
case
|
|
802
|
-
case
|
|
1150
|
+
case dn: return e.elements;
|
|
1151
|
+
case fn:
|
|
1152
|
+
case hn: return [e.left, e.right];
|
|
1153
|
+
case pn: return [e.callee].concat(e.arguments);
|
|
1154
|
+
case mn: return [
|
|
803
1155
|
e.test,
|
|
804
1156
|
e.consequent,
|
|
805
1157
|
e.alternate
|
|
806
1158
|
];
|
|
807
|
-
case
|
|
808
|
-
case
|
|
809
|
-
case
|
|
810
|
-
case
|
|
811
|
-
case
|
|
812
|
-
case
|
|
813
|
-
case
|
|
1159
|
+
case gn: return [e.object, e.property];
|
|
1160
|
+
case _n: return e.properties;
|
|
1161
|
+
case ln: return [e.key, e.value];
|
|
1162
|
+
case vn: return [e.argument];
|
|
1163
|
+
case un:
|
|
1164
|
+
case cn:
|
|
1165
|
+
case sn:
|
|
814
1166
|
default: return [];
|
|
815
1167
|
}
|
|
816
1168
|
}
|
|
817
|
-
var
|
|
818
|
-
|
|
819
|
-
var Vt = "ArrayExpression", Ht = "BinaryExpression", Ut = "CallExpression", Wt = "ConditionalExpression", Gt = "Identifier", Kt = "Literal", qt = "LogicalExpression", Jt = "MemberExpression", Yt = "ObjectExpression", Xt = "Property", Zt = "UnaryExpression", B = "Unexpected token %0", Qt = "Unexpected number", $t = "Unexpected string", en = "Unexpected identifier", tn = "Unexpected reserved word", nn = "Unexpected end of input", rn = "Invalid regular expression", an = "Invalid regular expression: missing /", on = "Octal literals are not allowed in strict mode.", sn = "Duplicate data property in object literal not allowed in strict mode", V = "ILLEGAL", cn = "Disabled.", ln = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), un = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");
|
|
820
|
-
function
|
|
1169
|
+
var F, I, L, R, z, bn = 1, xn = 2, B = 3, V = 4, Sn = 5, H = 6, U = 7, Cn = 8, wn = 9;
|
|
1170
|
+
F = {}, F[bn] = "Boolean", F[xn] = "<end>", F[B] = "Identifier", F[V] = "Keyword", F[Sn] = "Null", F[H] = "Numeric", F[U] = "Punctuator", F[Cn] = "String", F[wn] = "RegularExpression";
|
|
1171
|
+
var Tn = "ArrayExpression", En = "BinaryExpression", Dn = "CallExpression", On = "ConditionalExpression", kn = "Identifier", An = "Literal", jn = "LogicalExpression", Mn = "MemberExpression", Nn = "ObjectExpression", Pn = "Property", Fn = "UnaryExpression", W = "Unexpected token %0", In = "Unexpected number", Ln = "Unexpected string", Rn = "Unexpected identifier", zn = "Unexpected reserved word", Bn = "Unexpected end of input", Vn = "Invalid regular expression", Hn = "Invalid regular expression: missing /", Un = "Octal literals are not allowed in strict mode.", Wn = "Duplicate data property in object literal not allowed in strict mode", G = "ILLEGAL", Gn = "Disabled.", Kn = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"), qn = /* @__PURE__ */ RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");
|
|
1172
|
+
function Jn(e, t) {
|
|
821
1173
|
/* istanbul ignore next */
|
|
822
1174
|
if (!e) throw Error("ASSERT: " + t);
|
|
823
1175
|
}
|
|
824
|
-
function
|
|
1176
|
+
function K(e) {
|
|
825
1177
|
return e >= 48 && e <= 57;
|
|
826
1178
|
}
|
|
827
|
-
function
|
|
1179
|
+
function Yn(e) {
|
|
828
1180
|
return "0123456789abcdefABCDEF".includes(e);
|
|
829
1181
|
}
|
|
830
|
-
function
|
|
1182
|
+
function Xn(e) {
|
|
831
1183
|
return "01234567".includes(e);
|
|
832
1184
|
}
|
|
833
|
-
function
|
|
1185
|
+
function Zn(e) {
|
|
834
1186
|
return e === 32 || e === 9 || e === 11 || e === 12 || e === 160 || e >= 5760 && [
|
|
835
1187
|
5760,
|
|
836
1188
|
6158,
|
|
@@ -851,16 +1203,16 @@ function pn(e) {
|
|
|
851
1203
|
65279
|
|
852
1204
|
].includes(e);
|
|
853
1205
|
}
|
|
854
|
-
function
|
|
1206
|
+
function Qn(e) {
|
|
855
1207
|
return e === 10 || e === 13 || e === 8232 || e === 8233;
|
|
856
1208
|
}
|
|
857
|
-
function
|
|
858
|
-
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 &&
|
|
1209
|
+
function $n(e) {
|
|
1210
|
+
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && Kn.test(String.fromCharCode(e));
|
|
859
1211
|
}
|
|
860
|
-
function
|
|
861
|
-
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 &&
|
|
1212
|
+
function er(e) {
|
|
1213
|
+
return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && qn.test(String.fromCharCode(e));
|
|
862
1214
|
}
|
|
863
|
-
var
|
|
1215
|
+
var tr = {
|
|
864
1216
|
if: 1,
|
|
865
1217
|
in: 1,
|
|
866
1218
|
do: 1,
|
|
@@ -904,47 +1256,47 @@ var hn = {
|
|
|
904
1256
|
instanceof: 1,
|
|
905
1257
|
implements: 1
|
|
906
1258
|
};
|
|
907
|
-
function
|
|
908
|
-
for (;
|
|
909
|
-
let e =
|
|
910
|
-
if (
|
|
1259
|
+
function nr() {
|
|
1260
|
+
for (; L < R;) {
|
|
1261
|
+
let e = I.charCodeAt(L);
|
|
1262
|
+
if (Zn(e) || Qn(e)) ++L;
|
|
911
1263
|
else break;
|
|
912
1264
|
}
|
|
913
1265
|
}
|
|
914
|
-
function
|
|
1266
|
+
function rr(e) {
|
|
915
1267
|
var t, n, r, i = 0;
|
|
916
|
-
for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t)
|
|
1268
|
+
for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) L < R && Yn(I[L]) ? (r = I[L++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : J({}, W, G);
|
|
917
1269
|
return String.fromCharCode(i);
|
|
918
1270
|
}
|
|
919
|
-
function
|
|
920
|
-
var e =
|
|
921
|
-
for (e === "}" && J({},
|
|
922
|
-
return (t > 1114111 || e !== "}") && J({},
|
|
1271
|
+
function ir() {
|
|
1272
|
+
var e = I[L], t = 0, n, r;
|
|
1273
|
+
for (e === "}" && J({}, W, G); L < R && (e = I[L++], Yn(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
|
|
1274
|
+
return (t > 1114111 || e !== "}") && J({}, W, G), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
|
|
923
1275
|
}
|
|
924
|
-
function
|
|
925
|
-
var e =
|
|
926
|
-
for (e === 92 && (
|
|
1276
|
+
function ar() {
|
|
1277
|
+
var e = I.charCodeAt(L++), t = String.fromCharCode(e);
|
|
1278
|
+
for (e === 92 && (I.charCodeAt(L) !== 117 && J({}, W, G), ++L, e = rr("u"), (!e || e === "\\" || !$n(e.charCodeAt(0))) && J({}, W, G), t = e); L < R && (e = I.charCodeAt(L), er(e));) ++L, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), I.charCodeAt(L) !== 117 && J({}, W, G), ++L, e = rr("u"), (!e || e === "\\" || !er(e.charCodeAt(0))) && J({}, W, G), t += e);
|
|
927
1279
|
return t;
|
|
928
1280
|
}
|
|
929
|
-
function
|
|
930
|
-
for (var e =
|
|
931
|
-
if (t =
|
|
932
|
-
if (
|
|
1281
|
+
function or() {
|
|
1282
|
+
for (var e = L++, t; L < R;) {
|
|
1283
|
+
if (t = I.charCodeAt(L), t === 92) return L = e, ar();
|
|
1284
|
+
if (er(t)) ++L;
|
|
933
1285
|
else break;
|
|
934
1286
|
}
|
|
935
|
-
return
|
|
1287
|
+
return I.slice(e, L);
|
|
936
1288
|
}
|
|
937
|
-
function
|
|
938
|
-
var e =
|
|
1289
|
+
function sr() {
|
|
1290
|
+
var e = L, t = I.charCodeAt(L) === 92 ? ar() : or();
|
|
939
1291
|
return {
|
|
940
|
-
type: t.length === 1 ?
|
|
1292
|
+
type: t.length === 1 ? B : tr.hasOwnProperty(t) ? V : t === "null" ? Sn : t === "true" || t === "false" ? bn : B,
|
|
941
1293
|
value: t,
|
|
942
1294
|
start: e,
|
|
943
|
-
end:
|
|
1295
|
+
end: L
|
|
944
1296
|
};
|
|
945
1297
|
}
|
|
946
|
-
function
|
|
947
|
-
var e =
|
|
1298
|
+
function cr() {
|
|
1299
|
+
var e = L, t = I.charCodeAt(L), n, r = I[L], i, a, o;
|
|
948
1300
|
switch (t) {
|
|
949
1301
|
case 46:
|
|
950
1302
|
case 40:
|
|
@@ -957,13 +1309,13 @@ function Sn() {
|
|
|
957
1309
|
case 93:
|
|
958
1310
|
case 58:
|
|
959
1311
|
case 63:
|
|
960
|
-
case 126: return ++
|
|
961
|
-
type:
|
|
1312
|
+
case 126: return ++L, {
|
|
1313
|
+
type: U,
|
|
962
1314
|
value: String.fromCharCode(t),
|
|
963
1315
|
start: e,
|
|
964
|
-
end:
|
|
1316
|
+
end: L
|
|
965
1317
|
};
|
|
966
|
-
default: if (n =
|
|
1318
|
+
default: if (n = I.charCodeAt(L + 1), n === 61) switch (t) {
|
|
967
1319
|
case 43:
|
|
968
1320
|
case 45:
|
|
969
1321
|
case 47:
|
|
@@ -973,101 +1325,101 @@ function Sn() {
|
|
|
973
1325
|
case 124:
|
|
974
1326
|
case 37:
|
|
975
1327
|
case 38:
|
|
976
|
-
case 42: return
|
|
977
|
-
type:
|
|
1328
|
+
case 42: return L += 2, {
|
|
1329
|
+
type: U,
|
|
978
1330
|
value: String.fromCharCode(t) + String.fromCharCode(n),
|
|
979
1331
|
start: e,
|
|
980
|
-
end:
|
|
1332
|
+
end: L
|
|
981
1333
|
};
|
|
982
1334
|
case 33:
|
|
983
|
-
case 61: return
|
|
984
|
-
type:
|
|
985
|
-
value:
|
|
1335
|
+
case 61: return L += 2, I.charCodeAt(L) === 61 && ++L, {
|
|
1336
|
+
type: U,
|
|
1337
|
+
value: I.slice(e, L),
|
|
986
1338
|
start: e,
|
|
987
|
-
end:
|
|
1339
|
+
end: L
|
|
988
1340
|
};
|
|
989
1341
|
}
|
|
990
1342
|
}
|
|
991
|
-
if (o =
|
|
992
|
-
type:
|
|
1343
|
+
if (o = I.substr(L, 4), o === ">>>=") return L += 4, {
|
|
1344
|
+
type: U,
|
|
993
1345
|
value: o,
|
|
994
1346
|
start: e,
|
|
995
|
-
end:
|
|
1347
|
+
end: L
|
|
996
1348
|
};
|
|
997
|
-
if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return
|
|
998
|
-
type:
|
|
1349
|
+
if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return L += 3, {
|
|
1350
|
+
type: U,
|
|
999
1351
|
value: a,
|
|
1000
1352
|
start: e,
|
|
1001
|
-
end:
|
|
1353
|
+
end: L
|
|
1002
1354
|
};
|
|
1003
|
-
if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return
|
|
1004
|
-
type:
|
|
1355
|
+
if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return L += 2, {
|
|
1356
|
+
type: U,
|
|
1005
1357
|
value: i,
|
|
1006
1358
|
start: e,
|
|
1007
|
-
end:
|
|
1359
|
+
end: L
|
|
1008
1360
|
};
|
|
1009
|
-
if (i === "//" && J({},
|
|
1010
|
-
type:
|
|
1361
|
+
if (i === "//" && J({}, W, G), "<>=!+-*%&|^/".includes(r)) return ++L, {
|
|
1362
|
+
type: U,
|
|
1011
1363
|
value: r,
|
|
1012
1364
|
start: e,
|
|
1013
|
-
end:
|
|
1365
|
+
end: L
|
|
1014
1366
|
};
|
|
1015
|
-
J({},
|
|
1367
|
+
J({}, W, G);
|
|
1016
1368
|
}
|
|
1017
|
-
function
|
|
1369
|
+
function lr(e) {
|
|
1018
1370
|
let t = "";
|
|
1019
|
-
for (;
|
|
1020
|
-
return t.length === 0 && J({},
|
|
1021
|
-
type:
|
|
1371
|
+
for (; L < R && Yn(I[L]);) t += I[L++];
|
|
1372
|
+
return t.length === 0 && J({}, W, G), $n(I.charCodeAt(L)) && J({}, W, G), {
|
|
1373
|
+
type: H,
|
|
1022
1374
|
value: parseInt("0x" + t, 16),
|
|
1023
1375
|
start: e,
|
|
1024
|
-
end:
|
|
1376
|
+
end: L
|
|
1025
1377
|
};
|
|
1026
1378
|
}
|
|
1027
|
-
function
|
|
1028
|
-
let t = "0" +
|
|
1029
|
-
for (;
|
|
1030
|
-
return (
|
|
1031
|
-
type:
|
|
1379
|
+
function ur(e) {
|
|
1380
|
+
let t = "0" + I[L++];
|
|
1381
|
+
for (; L < R && Xn(I[L]);) t += I[L++];
|
|
1382
|
+
return ($n(I.charCodeAt(L)) || K(I.charCodeAt(L))) && J({}, W, G), {
|
|
1383
|
+
type: H,
|
|
1032
1384
|
value: parseInt(t, 8),
|
|
1033
1385
|
octal: !0,
|
|
1034
1386
|
start: e,
|
|
1035
|
-
end:
|
|
1387
|
+
end: L
|
|
1036
1388
|
};
|
|
1037
1389
|
}
|
|
1038
|
-
function
|
|
1039
|
-
var e, t, n =
|
|
1040
|
-
if (
|
|
1041
|
-
if (e =
|
|
1042
|
-
if (n === "x" || n === "X") return ++
|
|
1043
|
-
if (
|
|
1044
|
-
n &&
|
|
1390
|
+
function dr() {
|
|
1391
|
+
var e, t, n = I[L];
|
|
1392
|
+
if (Jn(K(n.charCodeAt(0)) || n === ".", "Numeric literal must start with a decimal digit or a decimal point"), t = L, e = "", n !== ".") {
|
|
1393
|
+
if (e = I[L++], n = I[L], e === "0") {
|
|
1394
|
+
if (n === "x" || n === "X") return ++L, lr(t);
|
|
1395
|
+
if (Xn(n)) return ur(t);
|
|
1396
|
+
n && K(n.charCodeAt(0)) && J({}, W, G);
|
|
1045
1397
|
}
|
|
1046
|
-
for (;
|
|
1047
|
-
n =
|
|
1398
|
+
for (; K(I.charCodeAt(L));) e += I[L++];
|
|
1399
|
+
n = I[L];
|
|
1048
1400
|
}
|
|
1049
1401
|
if (n === ".") {
|
|
1050
|
-
for (e +=
|
|
1051
|
-
n =
|
|
1402
|
+
for (e += I[L++]; K(I.charCodeAt(L));) e += I[L++];
|
|
1403
|
+
n = I[L];
|
|
1052
1404
|
}
|
|
1053
|
-
if (n === "e" || n === "E") if (e +=
|
|
1054
|
-
else J({},
|
|
1055
|
-
return
|
|
1056
|
-
type:
|
|
1405
|
+
if (n === "e" || n === "E") if (e += I[L++], n = I[L], (n === "+" || n === "-") && (e += I[L++]), K(I.charCodeAt(L))) for (; K(I.charCodeAt(L));) e += I[L++];
|
|
1406
|
+
else J({}, W, G);
|
|
1407
|
+
return $n(I.charCodeAt(L)) && J({}, W, G), {
|
|
1408
|
+
type: H,
|
|
1057
1409
|
value: parseFloat(e),
|
|
1058
1410
|
start: t,
|
|
1059
|
-
end:
|
|
1411
|
+
end: L
|
|
1060
1412
|
};
|
|
1061
1413
|
}
|
|
1062
|
-
function
|
|
1414
|
+
function fr() {
|
|
1063
1415
|
var e = "", t, n, r, i, a = !1;
|
|
1064
|
-
for (t =
|
|
1416
|
+
for (t = I[L], Jn(t === "'" || t === "\"", "String literal must starts with a quote"), n = L, ++L; L < R;) if (r = I[L++], r === t) {
|
|
1065
1417
|
t = "";
|
|
1066
1418
|
break;
|
|
1067
|
-
} else if (r === "\\") if (r =
|
|
1419
|
+
} else if (r === "\\") if (r = I[L++], !r || !Qn(r.charCodeAt(0))) switch (r) {
|
|
1068
1420
|
case "u":
|
|
1069
1421
|
case "x":
|
|
1070
|
-
|
|
1422
|
+
I[L] === "{" ? (++L, e += ir()) : e += rr(r);
|
|
1071
1423
|
break;
|
|
1072
1424
|
case "n":
|
|
1073
1425
|
e += "\n";
|
|
@@ -1088,30 +1440,30 @@ function En() {
|
|
|
1088
1440
|
e += "\v";
|
|
1089
1441
|
break;
|
|
1090
1442
|
default:
|
|
1091
|
-
|
|
1443
|
+
Xn(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), L < R && Xn(I[L]) && (a = !0, i = i * 8 + "01234567".indexOf(I[L++]), "0123".includes(r) && L < R && Xn(I[L]) && (i = i * 8 + "01234567".indexOf(I[L++]))), e += String.fromCharCode(i)) : e += r;
|
|
1092
1444
|
break;
|
|
1093
1445
|
}
|
|
1094
|
-
else r === "\r" &&
|
|
1095
|
-
else if (
|
|
1446
|
+
else r === "\r" && I[L] === "\n" && ++L;
|
|
1447
|
+
else if (Qn(r.charCodeAt(0))) break;
|
|
1096
1448
|
else e += r;
|
|
1097
|
-
return t !== "" && J({},
|
|
1098
|
-
type:
|
|
1449
|
+
return t !== "" && J({}, W, G), {
|
|
1450
|
+
type: Cn,
|
|
1099
1451
|
value: e,
|
|
1100
1452
|
octal: a,
|
|
1101
1453
|
start: n,
|
|
1102
|
-
end:
|
|
1454
|
+
end: L
|
|
1103
1455
|
};
|
|
1104
1456
|
}
|
|
1105
|
-
function
|
|
1457
|
+
function pr(e, t) {
|
|
1106
1458
|
let n = e;
|
|
1107
1459
|
t.includes("u") && (n = n.replace(/\\u\{([0-9a-fA-F]+)\}/g, (e, t) => {
|
|
1108
1460
|
if (parseInt(t, 16) <= 1114111) return "x";
|
|
1109
|
-
J({},
|
|
1461
|
+
J({}, Vn);
|
|
1110
1462
|
}).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "x"));
|
|
1111
1463
|
try {
|
|
1112
1464
|
new RegExp(n);
|
|
1113
1465
|
} catch {
|
|
1114
|
-
J({},
|
|
1466
|
+
J({}, Vn);
|
|
1115
1467
|
}
|
|
1116
1468
|
try {
|
|
1117
1469
|
return new RegExp(e, t);
|
|
@@ -1119,30 +1471,30 @@ function Dn(e, t) {
|
|
|
1119
1471
|
return null;
|
|
1120
1472
|
}
|
|
1121
1473
|
}
|
|
1122
|
-
function
|
|
1123
|
-
var e =
|
|
1124
|
-
for (
|
|
1125
|
-
else if (
|
|
1474
|
+
function mr() {
|
|
1475
|
+
var e = I[L], t, n, r, i;
|
|
1476
|
+
for (Jn(e === "/", "Regular expression literal must start with a slash"), t = I[L++], n = !1, r = !1; L < R;) if (e = I[L++], t += e, e === "\\") e = I[L++], Qn(e.charCodeAt(0)) && J({}, Hn), t += e;
|
|
1477
|
+
else if (Qn(e.charCodeAt(0))) J({}, Hn);
|
|
1126
1478
|
else if (n) e === "]" && (n = !1);
|
|
1127
1479
|
else if (e === "/") {
|
|
1128
1480
|
r = !0;
|
|
1129
1481
|
break;
|
|
1130
1482
|
} else e === "[" && (n = !0);
|
|
1131
|
-
return r || J({},
|
|
1483
|
+
return r || J({}, Hn), i = t.substr(1, t.length - 2), {
|
|
1132
1484
|
value: i,
|
|
1133
1485
|
literal: t
|
|
1134
1486
|
};
|
|
1135
1487
|
}
|
|
1136
|
-
function
|
|
1137
|
-
for (var e, t = "", n = "";
|
|
1138
|
-
return n.search(/[^gimuy]/g) >= 0 && J({},
|
|
1488
|
+
function hr() {
|
|
1489
|
+
for (var e, t = "", n = ""; L < R && (e = I[L], er(e.charCodeAt(0)));) ++L, e === "\\" && L < R ? J({}, W, G) : (n += e, t += e);
|
|
1490
|
+
return n.search(/[^gimuy]/g) >= 0 && J({}, Vn, n), {
|
|
1139
1491
|
value: n,
|
|
1140
1492
|
literal: t
|
|
1141
1493
|
};
|
|
1142
1494
|
}
|
|
1143
|
-
function
|
|
1495
|
+
function gr() {
|
|
1144
1496
|
var e, t, n, r;
|
|
1145
|
-
return
|
|
1497
|
+
return z = null, nr(), e = L, t = mr(), n = hr(), r = pr(t.value, n.value), {
|
|
1146
1498
|
literal: t.literal + n.literal,
|
|
1147
1499
|
value: r,
|
|
1148
1500
|
regex: {
|
|
@@ -1150,166 +1502,166 @@ function An() {
|
|
|
1150
1502
|
flags: n.value
|
|
1151
1503
|
},
|
|
1152
1504
|
start: e,
|
|
1153
|
-
end:
|
|
1505
|
+
end: L
|
|
1154
1506
|
};
|
|
1155
1507
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return e.type ===
|
|
1508
|
+
function _r(e) {
|
|
1509
|
+
return e.type === B || e.type === V || e.type === bn || e.type === Sn;
|
|
1158
1510
|
}
|
|
1159
|
-
function
|
|
1160
|
-
if (
|
|
1161
|
-
type:
|
|
1162
|
-
start:
|
|
1163
|
-
end:
|
|
1511
|
+
function vr() {
|
|
1512
|
+
if (nr(), L >= R) return {
|
|
1513
|
+
type: xn,
|
|
1514
|
+
start: L,
|
|
1515
|
+
end: L
|
|
1164
1516
|
};
|
|
1165
|
-
let e =
|
|
1166
|
-
return
|
|
1517
|
+
let e = I.charCodeAt(L);
|
|
1518
|
+
return $n(e) ? sr() : e === 40 || e === 41 || e === 59 ? cr() : e === 39 || e === 34 ? fr() : e === 46 ? K(I.charCodeAt(L + 1)) ? dr() : cr() : K(e) ? dr() : cr();
|
|
1167
1519
|
}
|
|
1168
|
-
function
|
|
1169
|
-
let e =
|
|
1170
|
-
return
|
|
1520
|
+
function q() {
|
|
1521
|
+
let e = z;
|
|
1522
|
+
return L = e.end, z = vr(), L = e.end, e;
|
|
1171
1523
|
}
|
|
1172
|
-
function
|
|
1173
|
-
let e =
|
|
1174
|
-
|
|
1524
|
+
function yr() {
|
|
1525
|
+
let e = L;
|
|
1526
|
+
z = vr(), L = e;
|
|
1175
1527
|
}
|
|
1176
|
-
function
|
|
1177
|
-
let t = new
|
|
1528
|
+
function br(e) {
|
|
1529
|
+
let t = new P(Tn);
|
|
1178
1530
|
return t.elements = e, t;
|
|
1179
1531
|
}
|
|
1180
|
-
function
|
|
1181
|
-
let r = new
|
|
1532
|
+
function xr(e, t, n) {
|
|
1533
|
+
let r = new P(e === "||" || e === "&&" ? jn : En);
|
|
1182
1534
|
return r.operator = e, r.left = t, r.right = n, r;
|
|
1183
1535
|
}
|
|
1184
|
-
function
|
|
1185
|
-
let n = new
|
|
1536
|
+
function Sr(e, t) {
|
|
1537
|
+
let n = new P(Dn);
|
|
1186
1538
|
return n.callee = e, n.arguments = t, n;
|
|
1187
1539
|
}
|
|
1188
|
-
function
|
|
1189
|
-
let r = new
|
|
1540
|
+
function Cr(e, t, n) {
|
|
1541
|
+
let r = new P(On);
|
|
1190
1542
|
return r.test = e, r.consequent = t, r.alternate = n, r;
|
|
1191
1543
|
}
|
|
1192
|
-
function
|
|
1193
|
-
let t = new
|
|
1544
|
+
function wr(e) {
|
|
1545
|
+
let t = new P(kn);
|
|
1194
1546
|
return t.name = e, t;
|
|
1195
1547
|
}
|
|
1196
|
-
function
|
|
1197
|
-
let t = new
|
|
1198
|
-
return t.value = e.value, t.raw =
|
|
1548
|
+
function Tr(e) {
|
|
1549
|
+
let t = new P(An);
|
|
1550
|
+
return t.value = e.value, t.raw = I.slice(e.start, e.end), e.regex && (t.raw === "//" && (t.raw = "/(?:)/"), t.regex = e.regex), t;
|
|
1199
1551
|
}
|
|
1200
|
-
function
|
|
1201
|
-
let r = new
|
|
1552
|
+
function Er(e, t, n) {
|
|
1553
|
+
let r = new P(Mn);
|
|
1202
1554
|
return r.computed = e === "[", r.object = t, r.property = n, r.computed || (n.member = !0), r;
|
|
1203
1555
|
}
|
|
1204
|
-
function
|
|
1205
|
-
let t = new
|
|
1556
|
+
function Dr(e) {
|
|
1557
|
+
let t = new P(Nn);
|
|
1206
1558
|
return t.properties = e, t;
|
|
1207
1559
|
}
|
|
1208
|
-
function
|
|
1209
|
-
let r = new
|
|
1560
|
+
function Or(e, t, n) {
|
|
1561
|
+
let r = new P(Pn);
|
|
1210
1562
|
return r.key = t, r.value = n, r.kind = e, r;
|
|
1211
1563
|
}
|
|
1212
|
-
function
|
|
1213
|
-
let n = new
|
|
1564
|
+
function kr(e, t) {
|
|
1565
|
+
let n = new P(Fn);
|
|
1214
1566
|
return n.operator = e, n.argument = t, n.prefix = !0, n;
|
|
1215
1567
|
}
|
|
1216
1568
|
function J(e, t) {
|
|
1217
|
-
var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (
|
|
1218
|
-
throw n = Error(i), n.index =
|
|
1569
|
+
var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (Jn(t < r.length, "Message reference must be in range"), r[t]));
|
|
1570
|
+
throw n = Error(i), n.index = L, n.description = i, n;
|
|
1219
1571
|
}
|
|
1220
|
-
function
|
|
1221
|
-
e.type ===
|
|
1572
|
+
function Ar(e) {
|
|
1573
|
+
e.type === xn && J(e, Bn), e.type === H && J(e, In), e.type === Cn && J(e, Ln), e.type === B && J(e, Rn), e.type === V && J(e, zn), J(e, W, e.value);
|
|
1222
1574
|
}
|
|
1223
1575
|
function Y(e) {
|
|
1224
|
-
let t =
|
|
1225
|
-
(t.type !==
|
|
1576
|
+
let t = q();
|
|
1577
|
+
(t.type !== U || t.value !== e) && Ar(t);
|
|
1226
1578
|
}
|
|
1227
1579
|
function X(e) {
|
|
1228
|
-
return
|
|
1580
|
+
return z.type === U && z.value === e;
|
|
1229
1581
|
}
|
|
1230
|
-
function
|
|
1231
|
-
return
|
|
1582
|
+
function jr(e) {
|
|
1583
|
+
return z.type === V && z.value === e;
|
|
1232
1584
|
}
|
|
1233
|
-
function
|
|
1585
|
+
function Mr() {
|
|
1234
1586
|
let e = [];
|
|
1235
|
-
for (
|
|
1236
|
-
return
|
|
1587
|
+
for (L = z.start, Y("["); !X("]");) X(",") ? (q(), e.push(null)) : (e.push(Z()), X("]") || Y(","));
|
|
1588
|
+
return q(), br(e);
|
|
1237
1589
|
}
|
|
1238
|
-
function
|
|
1239
|
-
|
|
1240
|
-
let e =
|
|
1241
|
-
return e.type ===
|
|
1590
|
+
function Nr() {
|
|
1591
|
+
L = z.start;
|
|
1592
|
+
let e = q();
|
|
1593
|
+
return e.type === Cn || e.type === H ? (e.octal && J(e, Un), Tr(e)) : wr(e.value);
|
|
1242
1594
|
}
|
|
1243
|
-
function
|
|
1595
|
+
function Pr() {
|
|
1244
1596
|
var e, t, n, r;
|
|
1245
|
-
if (
|
|
1246
|
-
if (e.type ===
|
|
1247
|
-
else return t =
|
|
1597
|
+
if (L = z.start, e = z, e.type === B) return n = Nr(), Y(":"), r = Z(), Or("init", n, r);
|
|
1598
|
+
if (e.type === xn || e.type === U) Ar(e);
|
|
1599
|
+
else return t = Nr(), Y(":"), r = Z(), Or("init", t, r);
|
|
1248
1600
|
}
|
|
1249
|
-
function
|
|
1601
|
+
function Fr() {
|
|
1250
1602
|
var e = [], t, n, r, i = {}, a = String;
|
|
1251
|
-
for (
|
|
1252
|
-
return Y("}"),
|
|
1603
|
+
for (L = z.start, Y("{"); !X("}");) t = Pr(), n = t.key.type === kn ? t.key.name : a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? J({}, Wn) : i[r] = !0, e.push(t), X("}") || Y(",");
|
|
1604
|
+
return Y("}"), Dr(e);
|
|
1253
1605
|
}
|
|
1254
|
-
function
|
|
1606
|
+
function Ir() {
|
|
1255
1607
|
Y("(");
|
|
1256
|
-
let e =
|
|
1608
|
+
let e = Jr();
|
|
1257
1609
|
return Y(")"), e;
|
|
1258
1610
|
}
|
|
1259
|
-
var
|
|
1260
|
-
function
|
|
1611
|
+
var Lr = { if: 1 };
|
|
1612
|
+
function Rr() {
|
|
1261
1613
|
var e, t, n;
|
|
1262
|
-
if (X("(")) return
|
|
1263
|
-
if (X("[")) return
|
|
1264
|
-
if (X("{")) return
|
|
1265
|
-
if (e =
|
|
1266
|
-
else if (e ===
|
|
1267
|
-
else if (e ===
|
|
1268
|
-
else e ===
|
|
1614
|
+
if (X("(")) return Ir();
|
|
1615
|
+
if (X("[")) return Mr();
|
|
1616
|
+
if (X("{")) return Fr();
|
|
1617
|
+
if (e = z.type, L = z.start, e === B || Lr[z.value]) n = wr(q().value);
|
|
1618
|
+
else if (e === Cn || e === H) z.octal && J(z, Un), n = Tr(q());
|
|
1619
|
+
else if (e === V) throw Error(Gn);
|
|
1620
|
+
else e === bn ? (t = q(), t.value = t.value === "true", n = Tr(t)) : e === Sn ? (t = q(), t.value = null, n = Tr(t)) : X("/") || X("/=") ? (n = Tr(gr()), yr()) : Ar(q());
|
|
1269
1621
|
return n;
|
|
1270
1622
|
}
|
|
1271
|
-
function
|
|
1623
|
+
function zr() {
|
|
1272
1624
|
let e = [];
|
|
1273
|
-
if (Y("("), !X(")")) for (;
|
|
1625
|
+
if (Y("("), !X(")")) for (; L < R && (e.push(Z()), !X(")"));) Y(",");
|
|
1274
1626
|
return Y(")"), e;
|
|
1275
1627
|
}
|
|
1276
|
-
function
|
|
1277
|
-
|
|
1278
|
-
let e =
|
|
1279
|
-
return
|
|
1628
|
+
function Br() {
|
|
1629
|
+
L = z.start;
|
|
1630
|
+
let e = q();
|
|
1631
|
+
return _r(e) || Ar(e), wr(e.value);
|
|
1280
1632
|
}
|
|
1281
|
-
function
|
|
1282
|
-
return Y("."),
|
|
1633
|
+
function Vr() {
|
|
1634
|
+
return Y("."), Br();
|
|
1283
1635
|
}
|
|
1284
|
-
function
|
|
1636
|
+
function Hr() {
|
|
1285
1637
|
Y("[");
|
|
1286
|
-
let e =
|
|
1638
|
+
let e = Jr();
|
|
1287
1639
|
return Y("]"), e;
|
|
1288
1640
|
}
|
|
1289
|
-
function
|
|
1290
|
-
for (var e =
|
|
1291
|
-
else if (X("(")) t =
|
|
1292
|
-
else if (X("[")) n =
|
|
1641
|
+
function Ur() {
|
|
1642
|
+
for (var e = Rr(), t, n;;) if (X(".")) n = Vr(), e = Er(".", e, n);
|
|
1643
|
+
else if (X("(")) t = zr(), e = Sr(e, t);
|
|
1644
|
+
else if (X("[")) n = Hr(), e = Er("[", e, n);
|
|
1293
1645
|
else break;
|
|
1294
1646
|
return e;
|
|
1295
1647
|
}
|
|
1296
|
-
function
|
|
1297
|
-
let e =
|
|
1298
|
-
if (
|
|
1648
|
+
function Wr() {
|
|
1649
|
+
let e = Ur();
|
|
1650
|
+
if (z.type === U && (X("++") || X("--"))) throw Error(Gn);
|
|
1299
1651
|
return e;
|
|
1300
1652
|
}
|
|
1301
|
-
function
|
|
1653
|
+
function Gr() {
|
|
1302
1654
|
var e, t;
|
|
1303
|
-
if (
|
|
1304
|
-
else if (X("++") || X("--")) throw Error(
|
|
1305
|
-
else if (X("+") || X("-") || X("~") || X("!")) e =
|
|
1306
|
-
else if (
|
|
1307
|
-
else t =
|
|
1655
|
+
if (z.type !== U && z.type !== V) t = Wr();
|
|
1656
|
+
else if (X("++") || X("--")) throw Error(Gn);
|
|
1657
|
+
else if (X("+") || X("-") || X("~") || X("!")) e = q(), t = Gr(), t = kr(e.value, t);
|
|
1658
|
+
else if (jr("delete") || jr("void") || jr("typeof")) throw Error(Gn);
|
|
1659
|
+
else t = Wr();
|
|
1308
1660
|
return t;
|
|
1309
1661
|
}
|
|
1310
|
-
function
|
|
1662
|
+
function Kr(e) {
|
|
1311
1663
|
let t = 0;
|
|
1312
|
-
if (e.type !==
|
|
1664
|
+
if (e.type !== U && e.type !== V) return 0;
|
|
1313
1665
|
switch (e.value) {
|
|
1314
1666
|
case "||":
|
|
1315
1667
|
t = 1;
|
|
@@ -1357,36 +1709,36 @@ function ar(e) {
|
|
|
1357
1709
|
}
|
|
1358
1710
|
return t;
|
|
1359
1711
|
}
|
|
1360
|
-
function
|
|
1361
|
-
var e =
|
|
1362
|
-
if (r =
|
|
1363
|
-
for (r.prec = i,
|
|
1712
|
+
function qr() {
|
|
1713
|
+
var e = z, t, n, r, i, a, o, s, c = Gr(), l;
|
|
1714
|
+
if (r = z, i = Kr(r), i === 0) return c;
|
|
1715
|
+
for (r.prec = i, q(), t = [e, z], o = Gr(), a = [
|
|
1364
1716
|
c,
|
|
1365
1717
|
r,
|
|
1366
1718
|
o
|
|
1367
|
-
]; (i =
|
|
1368
|
-
for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n =
|
|
1369
|
-
r =
|
|
1719
|
+
]; (i = Kr(z)) > 0;) {
|
|
1720
|
+
for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n = xr(s, c, o), a.push(n);
|
|
1721
|
+
r = q(), r.prec = i, a.push(r), t.push(z), n = Gr(), a.push(n);
|
|
1370
1722
|
}
|
|
1371
|
-
for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n =
|
|
1723
|
+
for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n = xr(a[l - 1].value, a[l - 2], n), l -= 2;
|
|
1372
1724
|
return n;
|
|
1373
1725
|
}
|
|
1374
1726
|
function Z() {
|
|
1375
|
-
var e =
|
|
1376
|
-
return X("?") && (
|
|
1727
|
+
var e = qr(), t, n;
|
|
1728
|
+
return X("?") && (q(), t = Z(), Y(":"), n = Z(), e = Cr(e, t, n)), e;
|
|
1377
1729
|
}
|
|
1378
|
-
function
|
|
1730
|
+
function Jr() {
|
|
1379
1731
|
let e = Z();
|
|
1380
|
-
if (X(",")) throw Error(
|
|
1732
|
+
if (X(",")) throw Error(Gn);
|
|
1381
1733
|
return e;
|
|
1382
1734
|
}
|
|
1383
|
-
function
|
|
1384
|
-
|
|
1385
|
-
let t =
|
|
1386
|
-
if (
|
|
1735
|
+
function Yr(e) {
|
|
1736
|
+
I = e, L = 0, R = I.length, z = null, yr();
|
|
1737
|
+
let t = Jr();
|
|
1738
|
+
if (z.type !== xn) throw Error("Unexpect token after expression.");
|
|
1387
1739
|
return t;
|
|
1388
1740
|
}
|
|
1389
|
-
var
|
|
1741
|
+
var Xr = {
|
|
1390
1742
|
NaN: "NaN",
|
|
1391
1743
|
E: "Math.E",
|
|
1392
1744
|
LN2: "Math.LN2",
|
|
@@ -1399,7 +1751,7 @@ var lr = {
|
|
|
1399
1751
|
MIN_VALUE: "Number.MIN_VALUE",
|
|
1400
1752
|
MAX_VALUE: "Number.MAX_VALUE"
|
|
1401
1753
|
};
|
|
1402
|
-
function
|
|
1754
|
+
function Zr(e) {
|
|
1403
1755
|
function t(t, n, r, i) {
|
|
1404
1756
|
let a = e(n[0]);
|
|
1405
1757
|
return r && (a = r + "(" + a + ")", r.lastIndexOf("new ", 0) === 0 && (a = "(" + a + ")")), a + "." + t + (i < 0 ? "" : i === 0 ? "()" : "(" + n.slice(1).map(e).join(",") + ")");
|
|
@@ -1431,7 +1783,7 @@ function ur(e) {
|
|
|
1431
1783
|
sqrt: "Math.sqrt",
|
|
1432
1784
|
tan: "Math.tan",
|
|
1433
1785
|
clamp: function(t) {
|
|
1434
|
-
t.length < 3 &&
|
|
1786
|
+
t.length < 3 && N("Missing arguments to clamp function."), t.length > 3 && N("Too many arguments to clamp function.");
|
|
1435
1787
|
let n = t.map(e);
|
|
1436
1788
|
return "Math.max(" + n[1] + ", Math.min(" + n[2] + "," + n[0] + "))";
|
|
1437
1789
|
},
|
|
@@ -1469,42 +1821,42 @@ function ur(e) {
|
|
|
1469
1821
|
regexp: a,
|
|
1470
1822
|
test: n("test", a),
|
|
1471
1823
|
if: function(t) {
|
|
1472
|
-
t.length < 3 &&
|
|
1824
|
+
t.length < 3 && N("Missing arguments to if function."), t.length > 3 && N("Too many arguments to if function.");
|
|
1473
1825
|
let n = t.map(e);
|
|
1474
1826
|
return "(" + n[0] + "?" + n[1] + ":" + n[2] + ")";
|
|
1475
1827
|
}
|
|
1476
1828
|
};
|
|
1477
1829
|
}
|
|
1478
|
-
function
|
|
1830
|
+
function Qr(e) {
|
|
1479
1831
|
let t = e && e.length - 1;
|
|
1480
1832
|
return t && (e[0] === "\"" && e[t] === "\"" || e[0] === "'" && e[t] === "'") ? e.slice(1, -1) : e;
|
|
1481
1833
|
}
|
|
1482
|
-
function
|
|
1834
|
+
function $r(e) {
|
|
1483
1835
|
e ||= {};
|
|
1484
|
-
let t = e.allowed ?
|
|
1836
|
+
let t = e.allowed ? on(e.allowed) : {}, n = e.forbidden ? on(e.forbidden) : {}, r = e.constants || Xr, i = (e.functions || Zr)(d), a = e.globalvar, o = e.fieldvar, s = tn(a) ? a : (e) => `${a}["${e}"]`;
|
|
1485
1837
|
[...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
|
|
1486
1838
|
let c = {}, l = {}, u = 0;
|
|
1487
1839
|
function d(e) {
|
|
1488
|
-
if (
|
|
1840
|
+
if (rn(e)) return e;
|
|
1489
1841
|
let t = f[e.type];
|
|
1490
|
-
return t ??
|
|
1842
|
+
return t ?? N("Unsupported type: " + e.type), t(e);
|
|
1491
1843
|
}
|
|
1492
1844
|
let f = {
|
|
1493
1845
|
Literal: (e) => e.raw,
|
|
1494
1846
|
Identifier: (e) => {
|
|
1495
1847
|
let i = e.name;
|
|
1496
|
-
return u > 0 ? i :
|
|
1848
|
+
return u > 0 ? i : nn(n, i) ? N("Illegal identifier: " + i) : nn(r, i) ? r[i] : nn(t, i) ? i : (c[i] = 1, s(i));
|
|
1497
1849
|
},
|
|
1498
1850
|
MemberExpression: (e) => {
|
|
1499
1851
|
let t = !e.computed, n = d(e.object);
|
|
1500
1852
|
t && (u += 1);
|
|
1501
1853
|
let r = d(e.property);
|
|
1502
|
-
return n === o && (l[
|
|
1854
|
+
return n === o && (l[Qr(r)] = 1), t && --u, n + (t ? "." + r : "[" + r + "]");
|
|
1503
1855
|
},
|
|
1504
1856
|
CallExpression: (e) => {
|
|
1505
|
-
e.callee.type !== "Identifier" &&
|
|
1506
|
-
let t = e.callee.name, n = e.arguments, r =
|
|
1507
|
-
return r ||
|
|
1857
|
+
e.callee.type !== "Identifier" && N("Illegal callee type: " + e.callee.type);
|
|
1858
|
+
let t = e.callee.name, n = e.arguments, r = nn(i, t) && i[t];
|
|
1859
|
+
return r || N("Unrecognized function: " + t), tn(r) ? r(n) : r + "(" + n.map(d).join(",") + ")";
|
|
1508
1860
|
},
|
|
1509
1861
|
ArrayExpression: (e) => "[" + e.elements.map(d).join(",") + "]",
|
|
1510
1862
|
BinaryExpression: (e) => "(" + d(e.left) + " " + e.operator + " " + d(e.right) + ")",
|
|
@@ -1514,7 +1866,7 @@ function fr(e) {
|
|
|
1514
1866
|
ObjectExpression: (e) => {
|
|
1515
1867
|
for (let t of e.properties) {
|
|
1516
1868
|
let e = t.key.name;
|
|
1517
|
-
|
|
1869
|
+
Zt.has(e) && N("Illegal property: " + e);
|
|
1518
1870
|
}
|
|
1519
1871
|
return "{" + e.properties.map(d).join(",") + "}";
|
|
1520
1872
|
},
|
|
@@ -1536,114 +1888,133 @@ function fr(e) {
|
|
|
1536
1888
|
}
|
|
1537
1889
|
//#endregion
|
|
1538
1890
|
//#region ../core/src/utils/smoothstep.js
|
|
1539
|
-
function
|
|
1891
|
+
function ei(e, t, n) {
|
|
1540
1892
|
return n = (n - e) / (t - e), n = Math.max(0, Math.min(1, n)), n * n * (3 - 2 * n);
|
|
1541
1893
|
}
|
|
1542
1894
|
//#endregion
|
|
1543
1895
|
//#region ../core/src/utils/clamp.js
|
|
1544
|
-
function
|
|
1896
|
+
function ti(e, t = 0, n = 1) {
|
|
1545
1897
|
return Math.max(t, Math.min(n, e));
|
|
1546
1898
|
}
|
|
1547
1899
|
//#endregion
|
|
1548
1900
|
//#region ../core/src/utils/linearstep.js
|
|
1549
|
-
function
|
|
1550
|
-
return
|
|
1901
|
+
function ni(e, t, n) {
|
|
1902
|
+
return ti((n - e) / (t - e), 0, 1);
|
|
1551
1903
|
}
|
|
1552
1904
|
//#endregion
|
|
1553
1905
|
//#region ../core/src/utils/expression.js
|
|
1554
|
-
function
|
|
1906
|
+
function ri(e) {
|
|
1555
1907
|
return u(e) || ArrayBuffer.isView(e) ? e : null;
|
|
1556
1908
|
}
|
|
1557
|
-
function
|
|
1558
|
-
return
|
|
1909
|
+
function ii(e) {
|
|
1910
|
+
return ri(e) || (x(e) ? e : null);
|
|
1559
1911
|
}
|
|
1560
|
-
var
|
|
1561
|
-
clamp:
|
|
1912
|
+
var ai = {
|
|
1913
|
+
clamp: ti,
|
|
1562
1914
|
format(e, t) {
|
|
1563
|
-
return
|
|
1915
|
+
return yt(t)(e);
|
|
1564
1916
|
},
|
|
1565
1917
|
join(e, t) {
|
|
1566
|
-
return
|
|
1918
|
+
return ri(e).join(t);
|
|
1567
1919
|
},
|
|
1568
1920
|
indexof(e, t, n) {
|
|
1569
|
-
return
|
|
1921
|
+
return ii(e).indexOf(t, n);
|
|
1570
1922
|
},
|
|
1571
1923
|
lastindexof(e, t, n) {
|
|
1572
|
-
return
|
|
1924
|
+
return ii(e).lastIndexOf(t, n);
|
|
1573
1925
|
},
|
|
1574
1926
|
reverse(e) {
|
|
1575
|
-
return
|
|
1927
|
+
return x(e) ? Array.from(e).reverse().join("") : ri(e).slice().reverse();
|
|
1576
1928
|
},
|
|
1577
1929
|
slice(e, t, n) {
|
|
1578
|
-
return
|
|
1930
|
+
return ii(e).slice(t, n);
|
|
1579
1931
|
},
|
|
1580
1932
|
mapHasKey(e, t) {
|
|
1581
1933
|
return e.has(t);
|
|
1582
1934
|
},
|
|
1583
1935
|
isArray: u,
|
|
1584
|
-
isBoolean:
|
|
1936
|
+
isBoolean: ge,
|
|
1585
1937
|
isDefined(e) {
|
|
1586
1938
|
return e !== void 0;
|
|
1587
1939
|
},
|
|
1588
|
-
isNumber:
|
|
1940
|
+
isNumber: _e,
|
|
1589
1941
|
isObject: d,
|
|
1590
|
-
isRegExp:
|
|
1591
|
-
isString:
|
|
1942
|
+
isRegExp: ve,
|
|
1943
|
+
isString: x,
|
|
1592
1944
|
isValid(e) {
|
|
1593
1945
|
return e != null && e === e;
|
|
1594
1946
|
},
|
|
1595
|
-
lerp:
|
|
1596
|
-
linearstep:
|
|
1947
|
+
lerp: ye,
|
|
1948
|
+
linearstep: ni,
|
|
1597
1949
|
replace(e, t, n) {
|
|
1598
1950
|
return String(e).replace(t, n);
|
|
1599
1951
|
},
|
|
1600
1952
|
sort(e) {
|
|
1601
|
-
return
|
|
1953
|
+
return ri(e).slice().sort(fe);
|
|
1602
1954
|
},
|
|
1603
1955
|
center(e) {
|
|
1604
|
-
let t =
|
|
1956
|
+
let t = ri(e);
|
|
1605
1957
|
return (t[0] + t[t.length - 1]) / 2;
|
|
1606
1958
|
},
|
|
1607
1959
|
span(e) {
|
|
1608
|
-
return
|
|
1960
|
+
return be(e);
|
|
1609
1961
|
},
|
|
1610
|
-
smoothstep:
|
|
1962
|
+
smoothstep: ei
|
|
1611
1963
|
};
|
|
1612
|
-
function
|
|
1613
|
-
let t = !1, n =
|
|
1964
|
+
function oi(e) {
|
|
1965
|
+
let t = !1, n = mi(e, {}, { resolveScaleResolution: () => (t = !0, {
|
|
1966
|
+
channel: "analysis",
|
|
1967
|
+
getDomainRef: () => void 0,
|
|
1968
|
+
getMappingRef: () => void 0,
|
|
1969
|
+
getConfigurationRef: () => void 0,
|
|
1970
|
+
getZoomLevelRef: () => void 0
|
|
1971
|
+
}) });
|
|
1614
1972
|
return {
|
|
1615
1973
|
usesScaleHelper: t,
|
|
1616
1974
|
globals: n.globals
|
|
1617
1975
|
};
|
|
1618
1976
|
}
|
|
1619
|
-
function
|
|
1620
|
-
let n =
|
|
1621
|
-
for (let e in
|
|
1977
|
+
function si(e, t) {
|
|
1978
|
+
let n = Zr(e);
|
|
1979
|
+
for (let e in ai) n[e] = `this.${e}`;
|
|
1622
1980
|
for (let r of [
|
|
1623
1981
|
"scale",
|
|
1624
1982
|
"invert",
|
|
1625
1983
|
"domain",
|
|
1626
1984
|
"range",
|
|
1627
1985
|
"bandwidth",
|
|
1628
|
-
"linearize"
|
|
1629
|
-
|
|
1986
|
+
"linearize",
|
|
1987
|
+
"zoomLevel"
|
|
1988
|
+
]) n[r] = (n) => ci(e, t, r, n);
|
|
1630
1989
|
return n;
|
|
1631
1990
|
}
|
|
1632
|
-
function
|
|
1991
|
+
function ci(e, t, n, r) {
|
|
1992
|
+
if (n === "zoomLevel" && r.length === 0) {
|
|
1993
|
+
let e = [];
|
|
1994
|
+
for (let r of ["x", "y"]) {
|
|
1995
|
+
let i = t.resolveScaleResolution?.(r);
|
|
1996
|
+
if (i) {
|
|
1997
|
+
let a = t.getScaleHelper(n, r, i);
|
|
1998
|
+
e.push(`${t.globalvar}["${a.codeName}"]()`);
|
|
1999
|
+
}
|
|
2000
|
+
}
|
|
2001
|
+
return `Math.sqrt(${e.join("*") || "1"})`;
|
|
2002
|
+
}
|
|
1633
2003
|
if (r.length === 0) throw Error(`Scale helper "${n}" requires a literal channel name.`);
|
|
1634
2004
|
if ((n === "scale" || n === "invert" || n === "linearize") && r.length < 2) throw Error(`Scale helper "${n}" requires a channel name and a value.`);
|
|
1635
|
-
|
|
2005
|
+
if (n === "zoomLevel" && r.length > 1) throw Error("Scale helper \"zoomLevel\" accepts zero arguments or one literal channel name.");
|
|
2006
|
+
let i = li(r[0]);
|
|
1636
2007
|
if (!i) throw Error(`Scale helper "${n}" requires a literal channel name.`);
|
|
1637
2008
|
let a = t.resolveScaleResolution?.(i);
|
|
1638
2009
|
if (!a) throw Error(`Unknown scale channel "${i}" in expression helper "${n}".`);
|
|
1639
2010
|
let o = t.getScaleHelper(n, i, a), s = r.slice(1).map((t) => e(t)).join(",");
|
|
1640
2011
|
return `${t.globalvar}["${o.codeName}"](${s})`;
|
|
1641
2012
|
}
|
|
1642
|
-
function
|
|
2013
|
+
function li(e) {
|
|
1643
2014
|
return e?.type === "Literal" && typeof e.value == "string" ? e.value : void 0;
|
|
1644
2015
|
}
|
|
1645
|
-
function
|
|
1646
|
-
let n = (n) =>
|
|
2016
|
+
function ui(e, t) {
|
|
2017
|
+
let n = (n) => fi(t, e, n);
|
|
1647
2018
|
if (e === "domain") return () => n(() => t.getDomain());
|
|
1648
2019
|
if (e === "range") return () => n(() => t.getScale().range());
|
|
1649
2020
|
if (e === "bandwidth") return () => n(() => {
|
|
@@ -1654,85 +2025,64 @@ function Cr(e, t) {
|
|
|
1654
2025
|
if (e === "scale") return (e) => n(() => t.getScale()(e));
|
|
1655
2026
|
if (e === "invert") return (e) => n(() => t.getScale().invert(e));
|
|
1656
2027
|
if (e === "linearize") return (e) => n(() => e == null ? null : typeof t.fromComplex == "function" ? t.fromComplex(e) : e);
|
|
2028
|
+
if (e === "zoomLevel") return () => n(() => t.getZoomLevel());
|
|
1657
2029
|
throw Error("Unknown scale helper: " + e);
|
|
1658
2030
|
}
|
|
1659
|
-
var
|
|
1660
|
-
function
|
|
1661
|
-
if (
|
|
1662
|
-
|
|
2031
|
+
var di = /* @__PURE__ */ new WeakSet();
|
|
2032
|
+
function fi(e, t, n) {
|
|
2033
|
+
if (di.has(e)) throw Error(`Scale helper cycle detected while evaluating ${t}("${e.channel}").`);
|
|
2034
|
+
di.add(e);
|
|
1663
2035
|
try {
|
|
1664
2036
|
return n();
|
|
1665
2037
|
} finally {
|
|
1666
|
-
|
|
2038
|
+
di.delete(e);
|
|
1667
2039
|
}
|
|
1668
2040
|
}
|
|
1669
|
-
function
|
|
1670
|
-
|
|
1671
|
-
for (let e of i) e();
|
|
1672
|
-
}, o = () => {
|
|
1673
|
-
e === "domain" ? n.addEventListener("domain", a) : (e === "range" || n.addEventListener("domain", a), n.addEventListener("range", a));
|
|
1674
|
-
}, s = () => {
|
|
1675
|
-
e === "domain" ? n.removeEventListener("domain", a) : (e === "range" || n.removeEventListener("domain", a), n.removeEventListener("range", a));
|
|
1676
|
-
};
|
|
1677
|
-
return {
|
|
1678
|
-
id: `scale:${t}:${r}`,
|
|
1679
|
-
name: `scale(${t})`,
|
|
1680
|
-
kind: "derived",
|
|
1681
|
-
rank: 0,
|
|
1682
|
-
propagation: "sync",
|
|
1683
|
-
get() {
|
|
1684
|
-
return n.getScale();
|
|
1685
|
-
},
|
|
1686
|
-
subscribe(e) {
|
|
1687
|
-
let t = i.size === 0;
|
|
1688
|
-
return i.add(e), t && o(), () => {
|
|
1689
|
-
i.delete(e) && i.size === 0 && s();
|
|
1690
|
-
};
|
|
1691
|
-
}
|
|
1692
|
-
};
|
|
2041
|
+
function pi(e, t) {
|
|
2042
|
+
return e === "domain" ? t.getDomainRef() : e === "linearize" ? t.getConfigurationRef() : e === "zoomLevel" ? t.getZoomLevelRef() : t.getMappingRef();
|
|
1693
2043
|
}
|
|
1694
|
-
function
|
|
2044
|
+
function mi(e, t = {}, n = {}) {
|
|
1695
2045
|
try {
|
|
1696
|
-
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a =
|
|
2046
|
+
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = 1, s = {
|
|
1697
2047
|
...n,
|
|
1698
2048
|
globalvar: "globalObject",
|
|
1699
2049
|
globalObject: t,
|
|
1700
|
-
getScaleHelper(e, n,
|
|
1701
|
-
let
|
|
1702
|
-
if (
|
|
1703
|
-
let
|
|
1704
|
-
|
|
1705
|
-
let
|
|
1706
|
-
codeName:
|
|
1707
|
-
dependency:
|
|
2050
|
+
getScaleHelper(e, n, s) {
|
|
2051
|
+
let c = e + ":" + n, l = i.get(c);
|
|
2052
|
+
if (l) return l;
|
|
2053
|
+
let u = r.get(c);
|
|
2054
|
+
u || (u = pi(e, s), r.set(c, u));
|
|
2055
|
+
let d = "__scale_helper_" + o++, f = {
|
|
2056
|
+
codeName: d,
|
|
2057
|
+
dependency: u
|
|
1708
2058
|
};
|
|
1709
|
-
return i.set(
|
|
2059
|
+
return i.set(c, f), e === "zoomLevel" && a.add(s), t[d] = ui(e, s), f;
|
|
1710
2060
|
}
|
|
1711
|
-
},
|
|
2061
|
+
}, c = $r({
|
|
1712
2062
|
forbidden: [],
|
|
1713
2063
|
allowed: ["datum", "undefined"],
|
|
1714
2064
|
globalvar: "globalObject",
|
|
1715
2065
|
fieldvar: "datum",
|
|
1716
|
-
functions: (e) =>
|
|
1717
|
-
})(
|
|
2066
|
+
functions: (e) => si(e, s)
|
|
2067
|
+
})(Yr(e)), l = Function("datum", "globalObject", `"use strict";
|
|
1718
2068
|
try {
|
|
1719
|
-
return (${
|
|
2069
|
+
return (${c.code});
|
|
1720
2070
|
} catch (e) {
|
|
1721
2071
|
throw new Error("Error evaluating expression: " + ${JSON.stringify(e)} + ", " + e.message, e);
|
|
1722
|
-
}`).bind(
|
|
1723
|
-
return
|
|
2072
|
+
}`).bind(ai), u = (e) => l(e, t);
|
|
2073
|
+
return u.fields = c.fields, u.globals = c.globals, u.code = c.code, u.scaleDependencies = Array.from(new Set(r.values())), u.zoomLevelResolutions = Array.from(a), u;
|
|
1724
2074
|
} catch (t) {
|
|
1725
2075
|
throw Error(`Invalid expression: ${e}, ${t.message}`, { cause: t });
|
|
1726
2076
|
}
|
|
1727
2077
|
}
|
|
1728
|
-
var
|
|
2078
|
+
var hi = $r({
|
|
1729
2079
|
forbidden: [],
|
|
1730
2080
|
allowed: ["event"],
|
|
1731
2081
|
globalvar: "globalObject"
|
|
1732
2082
|
});
|
|
1733
|
-
function
|
|
2083
|
+
function gi(e) {
|
|
1734
2084
|
try {
|
|
1735
|
-
let t =
|
|
2085
|
+
let t = hi(Yr(e));
|
|
1736
2086
|
return Function("event", "globalObject", `"use strict";
|
|
1737
2087
|
try {
|
|
1738
2088
|
return !!(${t.code});
|
|
@@ -1745,7 +2095,7 @@ function kr(e) {
|
|
|
1745
2095
|
}
|
|
1746
2096
|
//#endregion
|
|
1747
2097
|
//#region ../core/src/utils/interactionConfig.js
|
|
1748
|
-
function
|
|
2098
|
+
function _i(e) {
|
|
1749
2099
|
if (typeof e == "string") {
|
|
1750
2100
|
let t = e.match(/^([a-zA-Z]+)(?:\[(.+)\])?$/);
|
|
1751
2101
|
if (!t) throw Error(`Invalid event type string: ${e}`);
|
|
@@ -1753,40 +2103,40 @@ function Ar(e) {
|
|
|
1753
2103
|
return r && (i.filter = r), i;
|
|
1754
2104
|
} else return e;
|
|
1755
2105
|
}
|
|
1756
|
-
function
|
|
1757
|
-
return e?.filter ?
|
|
2106
|
+
function vi(e) {
|
|
2107
|
+
return e?.filter ? gi(e.filter) : () => !0;
|
|
1758
2108
|
}
|
|
1759
|
-
function
|
|
2109
|
+
function yi(e, t, n) {
|
|
1760
2110
|
if (!t.includes(e.type)) throw Error(n);
|
|
1761
2111
|
return e;
|
|
1762
2112
|
}
|
|
1763
2113
|
//#endregion
|
|
1764
2114
|
//#region ../core/src/selection/selection.js
|
|
1765
|
-
function
|
|
2115
|
+
function bi(e) {
|
|
1766
2116
|
return {
|
|
1767
2117
|
type: "single",
|
|
1768
2118
|
datum: e,
|
|
1769
|
-
uniqueId: e?.[
|
|
2119
|
+
uniqueId: e?.[j]
|
|
1770
2120
|
};
|
|
1771
2121
|
}
|
|
1772
|
-
function
|
|
2122
|
+
function xi(e) {
|
|
1773
2123
|
return e ??= [], {
|
|
1774
2124
|
type: "multi",
|
|
1775
|
-
data: new Map(e.map((e) => [e[
|
|
2125
|
+
data: new Map(e.map((e) => [e[j], e]))
|
|
1776
2126
|
};
|
|
1777
2127
|
}
|
|
1778
|
-
function
|
|
2128
|
+
function Si(e) {
|
|
1779
2129
|
return {
|
|
1780
2130
|
type: "interval",
|
|
1781
2131
|
intervals: Object.fromEntries(e.map((e) => [e, null]))
|
|
1782
2132
|
};
|
|
1783
2133
|
}
|
|
1784
|
-
function
|
|
2134
|
+
function Ci(e, { add: t, remove: n, toggle: r }) {
|
|
1785
2135
|
let i = e.data;
|
|
1786
|
-
for (let e of t ?? []) i.set(e[
|
|
1787
|
-
for (let e of n ?? []) i.delete(e[
|
|
2136
|
+
for (let e of t ?? []) i.set(e[j], e);
|
|
2137
|
+
for (let e of n ?? []) i.delete(e[j]);
|
|
1788
2138
|
for (let e of r ?? []) {
|
|
1789
|
-
let t = e[
|
|
2139
|
+
let t = e[j];
|
|
1790
2140
|
i.has(t) ? i.delete(t) : i.set(t, e);
|
|
1791
2141
|
}
|
|
1792
2142
|
return {
|
|
@@ -1794,59 +2144,118 @@ function Ir(e, { add: t, remove: n, toggle: r }) {
|
|
|
1794
2144
|
data: i
|
|
1795
2145
|
};
|
|
1796
2146
|
}
|
|
1797
|
-
function
|
|
1798
|
-
let n = !!(e.empty ?? !0), r =
|
|
1799
|
-
if (
|
|
1800
|
-
if (
|
|
1801
|
-
if (
|
|
1802
|
-
let a = Object.keys(t.intervals), o = Object.keys(i).filter(
|
|
2147
|
+
function wi(e, t) {
|
|
2148
|
+
let n = !!(e.empty ?? !0), r = Nt(e.param), i = e.fields ?? {};
|
|
2149
|
+
if (ji(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(j)}]`;
|
|
2150
|
+
if (Mi(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(j)}])`;
|
|
2151
|
+
if (Q(t)) {
|
|
2152
|
+
let a = Object.keys(t.intervals), o = Object.keys(i).filter(ha);
|
|
1803
2153
|
if (o.length === 0) throw Error("Filtering using interval selections requires at least one primary positional channel in the config! " + JSON.stringify(e));
|
|
1804
2154
|
if (o.some((e) => !a.includes(e))) throw Error(`Selection channels (${a.join(", ")}) do not match the fields: ${JSON.stringify(e)}!`);
|
|
1805
2155
|
let s = (e) => `datum[${JSON.stringify(e)}]`;
|
|
1806
2156
|
return a.map((e) => {
|
|
1807
|
-
let t =
|
|
2157
|
+
let t = Ca(e), a = i[e], o = i[t] ?? i[e], c = `${r}.intervals.${e}[0] <= ${s(o)}`, l = `${s(a)} <= ${r}.intervals.${e}[1]`;
|
|
1808
2158
|
return `(${r}.intervals.${e} ? (${c} && ${l}) : ${n})`;
|
|
1809
2159
|
}).join(" && ");
|
|
1810
2160
|
} else throw Error(`Unrecognized selection type : ${JSON.stringify(t)}`);
|
|
1811
2161
|
}
|
|
1812
|
-
function
|
|
2162
|
+
function Ti(e) {
|
|
2163
|
+
if (!("param" in e) && !("test" in e)) return;
|
|
2164
|
+
let { param: t, empty: n = !0 } = "test" in e ? e.test : e;
|
|
2165
|
+
if (typeof t == "string") return {
|
|
2166
|
+
params: [Nt(t)],
|
|
2167
|
+
empty: n,
|
|
2168
|
+
singleParam: !0
|
|
2169
|
+
};
|
|
2170
|
+
if (t.or.length === 0) throw Error("Selection test \"or\" must be a nonempty array.");
|
|
2171
|
+
return {
|
|
2172
|
+
params: Array.from(new Set(t.or.map(Nt))),
|
|
2173
|
+
empty: n,
|
|
2174
|
+
singleParam: !1
|
|
2175
|
+
};
|
|
2176
|
+
}
|
|
2177
|
+
function Ei(e) {
|
|
2178
|
+
return e?.selection?.params ?? [];
|
|
2179
|
+
}
|
|
2180
|
+
function Di(e) {
|
|
2181
|
+
let t = /* @__PURE__ */ new Map();
|
|
2182
|
+
for (let n of Object.values(e)) for (let { predicate: e } of n.branches) {
|
|
2183
|
+
let n = e.selection;
|
|
2184
|
+
if (n) for (let e of n.params) t.set(e, t.get(e) || !n.singleParam);
|
|
2185
|
+
}
|
|
2186
|
+
return t;
|
|
2187
|
+
}
|
|
2188
|
+
function Oi(e, t) {
|
|
2189
|
+
if (ji(t)) return `${e}.uniqueId == null`;
|
|
2190
|
+
if (Mi(t)) return `${e}.data.size == 0`;
|
|
2191
|
+
if (Q(t)) {
|
|
2192
|
+
let n = Object.keys(t.intervals);
|
|
2193
|
+
return n.length == 0 ? "true" : `!(${n.map((t) => `${e}.intervals.${t}`).join(" || ")})`;
|
|
2194
|
+
}
|
|
2195
|
+
throw Error(`Unsupported selection type: ${t.type}`);
|
|
2196
|
+
}
|
|
2197
|
+
function ki(e, t, n, r) {
|
|
2198
|
+
if (ji(t)) return `${e}.uniqueId != null && ${e}.uniqueId === datum[${JSON.stringify(j)}]`;
|
|
2199
|
+
if (Mi(t)) return `${e}.data.size != 0 && mapHasKey(${e}.data, datum[${JSON.stringify(j)}])`;
|
|
2200
|
+
if (Q(t)) {
|
|
2201
|
+
let i = Object.keys(t.intervals);
|
|
2202
|
+
if (i.length == 0) return "false";
|
|
2203
|
+
let a = (e) => `datum[${JSON.stringify(e)}]`, o = i.map((t) => {
|
|
2204
|
+
let i = Ca(t), o = n[t], s = n[i] ?? n[t], c = `${e}.intervals.${t}`;
|
|
2205
|
+
return `(!${c} || ${r == "endpoints" ? `((${c}[0] <= ${a(o)} && ${a(o)} <= ${c}[1]) || (${c}[0] <= ${a(s)} && ${a(s)} <= ${c}[1]))` : r == "encloses" ? `(${c}[0] <= ${a(o)} && ${a(s)} <= ${c}[1])` : `(${c}[0] <= ${a(s)} && ${a(o)} <= ${c}[1])`})`;
|
|
2206
|
+
});
|
|
2207
|
+
return `!!(${i.map((t) => `${e}.intervals.${t}`).join(" || ")}) && (${o.join(" && ")})`;
|
|
2208
|
+
}
|
|
2209
|
+
throw Error(`Unsupported selection type: ${t.type}`);
|
|
2210
|
+
}
|
|
2211
|
+
function Ai(e, t, n = "intersects") {
|
|
2212
|
+
let r = `(${e.map(({ param: e, selection: t, fields: r }) => ki(e, t, r, n)).join(" || ")})`;
|
|
2213
|
+
return t ? `((${e.map(({ param: e, selection: t }) => Oi(e, t)).join(" && ")}) || ${r})` : r;
|
|
2214
|
+
}
|
|
2215
|
+
function Q(e) {
|
|
1813
2216
|
return e.type === "interval";
|
|
1814
2217
|
}
|
|
1815
|
-
function
|
|
2218
|
+
function ji(e) {
|
|
1816
2219
|
return e.type === "single";
|
|
1817
2220
|
}
|
|
1818
|
-
function
|
|
2221
|
+
function Mi(e) {
|
|
1819
2222
|
return e.type === "multi";
|
|
1820
2223
|
}
|
|
1821
|
-
function
|
|
2224
|
+
function Ni(e) {
|
|
1822
2225
|
let t = typeof e == "string" ? { type: e } : { ...e };
|
|
1823
|
-
return t.on = t.on ?
|
|
2226
|
+
return t.on = t.on ? _i(t.on) : Pi(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : _i(t.clear), Pi(t) && t.on.type === "click" && (t.toggle = !0), t;
|
|
1824
2227
|
}
|
|
1825
|
-
function
|
|
2228
|
+
function Pi(e) {
|
|
1826
2229
|
return e && e.type == "point";
|
|
1827
2230
|
}
|
|
1828
|
-
function
|
|
2231
|
+
function Fi(e) {
|
|
1829
2232
|
return e && e.type == "interval";
|
|
1830
2233
|
}
|
|
1831
|
-
function
|
|
2234
|
+
function Ii(e) {
|
|
2235
|
+
if (ji(e)) return e.uniqueId != null;
|
|
2236
|
+
if (Mi(e)) return e.data.size > 0;
|
|
2237
|
+
if (Q(e)) return Li(e);
|
|
2238
|
+
throw Error(`Unsupported selection type: ${e.type}`);
|
|
2239
|
+
}
|
|
2240
|
+
function Li(e) {
|
|
1832
2241
|
return Object.values(e.intervals).some((e) => e && e.length === 2);
|
|
1833
2242
|
}
|
|
1834
|
-
function
|
|
2243
|
+
function Ri(e, t) {
|
|
1835
2244
|
return Object.entries(e.intervals).every(([e, n]) => (e == "x" || e == "y") && n && n[0] <= t[e] && n[1] >= t[e]);
|
|
1836
2245
|
}
|
|
1837
2246
|
//#endregion
|
|
1838
2247
|
//#region ../core/src/encoder/accessor.js
|
|
1839
|
-
function
|
|
2248
|
+
function zi(e, t, n) {
|
|
1840
2249
|
if (!e) throw Error("Cannot create an accessor without a channel.");
|
|
1841
2250
|
function r(n) {
|
|
1842
2251
|
let r = n;
|
|
1843
|
-
return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey =
|
|
2252
|
+
return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = Hi(t), r.scaleChannel = ((ra(t) && t.resolutionChannel) ?? (Da(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = Ui({
|
|
1844
2253
|
scaleChannel: r.scaleChannel,
|
|
1845
|
-
source:
|
|
2254
|
+
source: Vi(t)
|
|
1846
2255
|
}).domainKeyBase), r.equals = (e) => e ? r === e || r.sourceKey !== void 0 && r.sourceKey === e.sourceKey : !1, r.asNumberAccessor = () => r, r;
|
|
1847
2256
|
}
|
|
1848
2257
|
function i(e) {
|
|
1849
|
-
if (
|
|
2258
|
+
if (A(e)) {
|
|
1850
2259
|
let t = r(n.createExpression(e.expr));
|
|
1851
2260
|
if (t.fields.length > 0) throw Error("Expression in DatumDef/ValueDef cannot access data fields: " + e.expr);
|
|
1852
2261
|
return t;
|
|
@@ -1855,251 +2264,258 @@ function Kr(e, t, n) {
|
|
|
1855
2264
|
return r(() => t);
|
|
1856
2265
|
}
|
|
1857
2266
|
}
|
|
1858
|
-
if (
|
|
1859
|
-
return r(
|
|
2267
|
+
if ($(t)) try {
|
|
2268
|
+
return r(Ut(t.field));
|
|
1860
2269
|
} catch (e) {
|
|
1861
2270
|
throw Error(`Invalid field definition: ${e.message}`, { cause: e });
|
|
1862
2271
|
}
|
|
1863
|
-
else if (
|
|
1864
|
-
else if (
|
|
1865
|
-
else if (
|
|
2272
|
+
else if (ca(t)) return r(n.createExpression(t.expr));
|
|
2273
|
+
else if (na(t)) return i(t.datum);
|
|
2274
|
+
else if (ta(t)) return i(t.value);
|
|
1866
2275
|
else throw Error(`Invalid channel definition: "${e}": ${JSON.stringify(t)}! The channel definition must contain one of the following properties: "field", "datum", "value" or "expr".`);
|
|
1867
2276
|
}
|
|
1868
|
-
function
|
|
2277
|
+
function Bi(e) {
|
|
1869
2278
|
return e.scaleChannel !== void 0;
|
|
1870
2279
|
}
|
|
1871
|
-
function
|
|
1872
|
-
if (
|
|
2280
|
+
function Vi(e) {
|
|
2281
|
+
if ($(e)) return {
|
|
1873
2282
|
kind: "field",
|
|
1874
2283
|
value: e.field
|
|
1875
2284
|
};
|
|
1876
|
-
if (
|
|
2285
|
+
if (ca(e)) return {
|
|
1877
2286
|
kind: "expr",
|
|
1878
2287
|
value: e.expr
|
|
1879
2288
|
};
|
|
1880
|
-
if (
|
|
2289
|
+
if (na(e)) return {
|
|
1881
2290
|
kind: "datum",
|
|
1882
2291
|
value: e.datum
|
|
1883
2292
|
};
|
|
1884
|
-
if (
|
|
2293
|
+
if (ta(e)) return {
|
|
1885
2294
|
kind: "value",
|
|
1886
2295
|
value: e.value
|
|
1887
2296
|
};
|
|
1888
2297
|
throw Error("Cannot derive a domain key from channel definition: " + JSON.stringify(e));
|
|
1889
2298
|
}
|
|
1890
|
-
function
|
|
1891
|
-
let t =
|
|
1892
|
-
return t.kind === "datum" || t.kind === "value" ? "constant|" +
|
|
2299
|
+
function Hi(e) {
|
|
2300
|
+
let t = Vi(e);
|
|
2301
|
+
return t.kind === "datum" || t.kind === "value" ? "constant|" + Ki(t.value) : t.kind + "|" + Gi(t);
|
|
1893
2302
|
}
|
|
1894
|
-
function
|
|
2303
|
+
function Ui({ scaleChannel: e, source: t, type: n }) {
|
|
1895
2304
|
if (!e) throw Error("Cannot build a domain key without a scale channel.");
|
|
1896
|
-
let r = e + "|" + t.kind + "|" +
|
|
2305
|
+
let r = e + "|" + t.kind + "|" + Gi(t);
|
|
1897
2306
|
return {
|
|
1898
2307
|
domainKeyBase: r,
|
|
1899
2308
|
domainKey: n ? n + "|" + r : void 0
|
|
1900
2309
|
};
|
|
1901
2310
|
}
|
|
1902
|
-
function
|
|
1903
|
-
let { domainKey: n, domainKeyBase: r } =
|
|
2311
|
+
function Wi(e, t) {
|
|
2312
|
+
let { domainKey: n, domainKeyBase: r } = Ui({
|
|
1904
2313
|
scaleChannel: e.scaleChannel,
|
|
1905
|
-
source:
|
|
2314
|
+
source: Vi(e.channelDef),
|
|
1906
2315
|
type: t
|
|
1907
2316
|
});
|
|
1908
2317
|
if (!n) throw Error("Cannot finalize a domain key without a resolved type.");
|
|
1909
2318
|
return e.domainKeyBase = r, e.domainKey = n, n;
|
|
1910
2319
|
}
|
|
1911
|
-
function
|
|
2320
|
+
function Gi(e) {
|
|
1912
2321
|
switch (e.kind) {
|
|
1913
2322
|
case "field":
|
|
1914
2323
|
case "expr": return e.value;
|
|
1915
2324
|
case "datum":
|
|
1916
|
-
case "value": return
|
|
2325
|
+
case "value": return Ki(e.value);
|
|
1917
2326
|
default: throw Error("Unknown domain key source.");
|
|
1918
2327
|
}
|
|
1919
2328
|
}
|
|
1920
|
-
function
|
|
1921
|
-
return
|
|
2329
|
+
function Ki(e) {
|
|
2330
|
+
return A(e) ? "expr:" + e.expr : e === void 0 ? "undefined" : JSON.stringify(e);
|
|
1922
2331
|
}
|
|
1923
2332
|
//#endregion
|
|
1924
2333
|
//#region ../core/src/encoder/encoder.js
|
|
1925
|
-
function
|
|
1926
|
-
let i, a =
|
|
2334
|
+
function qi(e, t, n, r = "intersects") {
|
|
2335
|
+
let i, a = Rt(!1), o = () => {
|
|
1927
2336
|
if (i) return i;
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
let
|
|
1933
|
-
for (let
|
|
1934
|
-
let
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
s[r] = e.field;
|
|
1942
|
-
continue;
|
|
2337
|
+
if (e.singleParam && !n.findValue(e.params[0])) return a;
|
|
2338
|
+
let o = e.params.map((r) => {
|
|
2339
|
+
let i = n.findValue(r);
|
|
2340
|
+
if (!i) throw Error(`Selection parameter "${r}" was not found.`);
|
|
2341
|
+
let a = {};
|
|
2342
|
+
if (Q(i)) for (let n of Object.keys(i.intervals)) {
|
|
2343
|
+
let i = e.singleParam ? [n] : [n, Ca(n)];
|
|
2344
|
+
for (let e of i) {
|
|
2345
|
+
let n = t[e];
|
|
2346
|
+
if ($(n)) a[e] = n.field;
|
|
2347
|
+
else if (n && "condition" in n) {
|
|
2348
|
+
let t = n.condition, r = (Array.isArray(t) ? t : [t]).find($);
|
|
2349
|
+
$(r) && (a[e] = r.field);
|
|
1943
2350
|
}
|
|
1944
2351
|
}
|
|
1945
|
-
throw Error(`Selection "${
|
|
2352
|
+
if (!a[n]) throw Error(`Selection "${r}" has an interval for "${n}" channel, but could not find a fieldDef: ${JSON.stringify(t[n])}`);
|
|
1946
2353
|
}
|
|
1947
|
-
|
|
1948
|
-
|
|
2354
|
+
return {
|
|
2355
|
+
param: r,
|
|
2356
|
+
selection: i,
|
|
2357
|
+
fields: a
|
|
2358
|
+
};
|
|
2359
|
+
}), s = e.singleParam ? wi({
|
|
1949
2360
|
type: "filter",
|
|
1950
|
-
param: e,
|
|
1951
|
-
fields:
|
|
1952
|
-
empty:
|
|
1953
|
-
}, o);
|
|
1954
|
-
return i = n.createExpression(
|
|
2361
|
+
param: e.params[0],
|
|
2362
|
+
fields: o[0].fields,
|
|
2363
|
+
empty: e.empty
|
|
2364
|
+
}, o[0].selection) : Ai(o, e.empty, r);
|
|
2365
|
+
return i = n.createExpression(s), i;
|
|
1955
2366
|
};
|
|
1956
|
-
return Object.assign((e) => o()(e), {
|
|
1957
|
-
param: e,
|
|
1958
|
-
empty: r ?? !0
|
|
1959
|
-
});
|
|
2367
|
+
return Object.assign((e) => o()(e), { selection: e });
|
|
1960
2368
|
}
|
|
1961
|
-
function
|
|
1962
|
-
let
|
|
1963
|
-
let
|
|
2369
|
+
function Ji(e, t, n, r, i = "intersects") {
|
|
2370
|
+
let a = la(t) || ua(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], o = [...a, t], s = o.map((t, s) => {
|
|
2371
|
+
let c = a[s], l = zi(e, t, r), u = c ? Ti(c) : void 0;
|
|
1964
2372
|
return {
|
|
1965
|
-
accessor:
|
|
1966
|
-
predicate:
|
|
2373
|
+
accessor: l,
|
|
2374
|
+
predicate: u ? qi(u, n, r, i) : Rt(s === o.length - 1)
|
|
1967
2375
|
};
|
|
1968
2376
|
});
|
|
1969
|
-
if (
|
|
1970
|
-
return
|
|
2377
|
+
if (s.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
|
|
2378
|
+
return s;
|
|
1971
2379
|
}
|
|
1972
|
-
function
|
|
1973
|
-
let n = {}, r = (t) => e.getScaleResolution(t)?.getScale()
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
2380
|
+
function Yi(e, t) {
|
|
2381
|
+
let n = {}, r = (t) => e.getScaleResolution(t)?.getScale(), i = (t, n) => {
|
|
2382
|
+
let r = e.getScaleResolution(t);
|
|
2383
|
+
e.paramRuntime.operation("encoder scale", [r.getMappingRef()], () => r.getScale(), n);
|
|
2384
|
+
};
|
|
2385
|
+
for (let [a, o] of Object.entries(t)) {
|
|
2386
|
+
if (!o) continue;
|
|
2387
|
+
let s = a;
|
|
2388
|
+
Xi(s) || (n[s] = $i(Ji(s, o, t, e.paramRuntime, e.mark.defaultHitTestMode), r, i));
|
|
1978
2389
|
}
|
|
1979
2390
|
return n;
|
|
1980
2391
|
}
|
|
1981
|
-
function
|
|
1982
|
-
return e === "key" || e === "search" || e === "tooltip";
|
|
2392
|
+
function Xi(e) {
|
|
2393
|
+
return e === "key" || e === "search" || e === "tooltip" || e === "order";
|
|
1983
2394
|
}
|
|
1984
|
-
function
|
|
2395
|
+
function Zi(e) {
|
|
1985
2396
|
return e.branches.map((e) => e.accessor);
|
|
1986
2397
|
}
|
|
1987
|
-
function
|
|
2398
|
+
function Qi(e) {
|
|
1988
2399
|
return e.branches.find((e) => !e.accessor.constant)?.accessor;
|
|
1989
2400
|
}
|
|
1990
|
-
function
|
|
2401
|
+
function $i(e, t, n) {
|
|
1991
2402
|
if (e.length === 1) {
|
|
1992
|
-
let
|
|
1993
|
-
return Object.assign(
|
|
2403
|
+
let r = ea(e[0].accessor, t, n);
|
|
2404
|
+
return Object.assign(r, { branches: e });
|
|
1994
2405
|
}
|
|
1995
|
-
let
|
|
1996
|
-
|
|
1997
|
-
for (let t = 0; t < r.length; t++) if (n[t](e)) return r[t](e);
|
|
2406
|
+
let r = e.map((e) => e.predicate), i = e.map((e) => ea(e.accessor, t, n)), a = Object.assign((e) => {
|
|
2407
|
+
for (let t = 0; t < i.length; t++) if (r[t](e)) return i[t](e);
|
|
1998
2408
|
}, {
|
|
1999
2409
|
constant: !1,
|
|
2000
2410
|
branches: e,
|
|
2001
|
-
scale: r.map((e) => e.scale).find((e) => e),
|
|
2002
2411
|
channelDef: e.at(-1).accessor.channelDef
|
|
2003
2412
|
});
|
|
2413
|
+
return Object.defineProperty(a, "scale", {
|
|
2414
|
+
enumerable: !0,
|
|
2415
|
+
get: () => i.find((e) => e.scale)?.scale
|
|
2416
|
+
});
|
|
2004
2417
|
}
|
|
2005
|
-
function
|
|
2006
|
-
let { channel:
|
|
2007
|
-
if (
|
|
2008
|
-
|
|
2009
|
-
scale:
|
|
2418
|
+
function ea(e, t, n) {
|
|
2419
|
+
let { channel: r, scaleChannel: i, channelDef: a } = e, o = e.scaleChannel ? t(i) : void 0;
|
|
2420
|
+
if (i && !o) throw Error(`Missing scale! "${r}": ${JSON.stringify(a)}`);
|
|
2421
|
+
let s = Object.assign(o ? (t) => o(e(t)) : (t) => e(t), {
|
|
2422
|
+
scale: o,
|
|
2010
2423
|
constant: e.constant,
|
|
2011
2424
|
branches: [{
|
|
2012
2425
|
accessor: e,
|
|
2013
|
-
predicate:
|
|
2426
|
+
predicate: Rt(!0)
|
|
2014
2427
|
}],
|
|
2015
|
-
channelDef:
|
|
2428
|
+
channelDef: a
|
|
2016
2429
|
});
|
|
2430
|
+
return o && n?.(i, (e) => {
|
|
2431
|
+
o = e, s.scale = e;
|
|
2432
|
+
}), s;
|
|
2017
2433
|
}
|
|
2018
|
-
function
|
|
2434
|
+
function ta(e) {
|
|
2019
2435
|
return e && "value" in e;
|
|
2020
2436
|
}
|
|
2021
|
-
function
|
|
2437
|
+
function $(e) {
|
|
2022
2438
|
return e && "field" in e;
|
|
2023
2439
|
}
|
|
2024
|
-
function
|
|
2440
|
+
function na(e) {
|
|
2025
2441
|
return e && "datum" in e;
|
|
2026
2442
|
}
|
|
2027
|
-
function
|
|
2028
|
-
return
|
|
2443
|
+
function ra(e) {
|
|
2444
|
+
return $(e) || na(e) || ca(e) || sa(e);
|
|
2029
2445
|
}
|
|
2030
|
-
function
|
|
2031
|
-
if (
|
|
2446
|
+
function ia(e) {
|
|
2447
|
+
if (ua(e)) {
|
|
2032
2448
|
let t = e.condition;
|
|
2033
|
-
return (Array.isArray(t) ? t : [t]).find((e) =>
|
|
2034
|
-
} else if (
|
|
2449
|
+
return (Array.isArray(t) ? t : [t]).find((e) => ra(e));
|
|
2450
|
+
} else if (ra(e)) return e;
|
|
2035
2451
|
}
|
|
2036
|
-
function
|
|
2037
|
-
let t = e &&
|
|
2452
|
+
function aa(e) {
|
|
2453
|
+
let t = e && ia(e);
|
|
2038
2454
|
return t != null && t.type != "quantitative" && t.scale !== null;
|
|
2039
2455
|
}
|
|
2040
|
-
function
|
|
2456
|
+
function oa(e, t) {
|
|
2041
2457
|
let n = e.mark.encoding[t];
|
|
2042
2458
|
if (Array.isArray(n)) throw Error("Not a channel def with scale!");
|
|
2043
2459
|
{
|
|
2044
|
-
let e =
|
|
2460
|
+
let e = ia(n);
|
|
2045
2461
|
if (e) return e;
|
|
2046
2462
|
}
|
|
2047
2463
|
throw Error("Not a channel def with scale!");
|
|
2048
2464
|
}
|
|
2049
|
-
function
|
|
2465
|
+
function sa(e) {
|
|
2050
2466
|
return e && "chrom" in e;
|
|
2051
2467
|
}
|
|
2052
|
-
function
|
|
2468
|
+
function ca(e) {
|
|
2053
2469
|
return e && "expr" in e;
|
|
2054
2470
|
}
|
|
2055
|
-
function
|
|
2056
|
-
return (
|
|
2471
|
+
function la(e) {
|
|
2472
|
+
return ($(e) || na(e)) && "condition" in e;
|
|
2057
2473
|
}
|
|
2058
|
-
function
|
|
2059
|
-
return
|
|
2474
|
+
function ua(e) {
|
|
2475
|
+
return ta(e) && "condition" in e;
|
|
2060
2476
|
}
|
|
2061
|
-
var
|
|
2062
|
-
function
|
|
2063
|
-
return
|
|
2477
|
+
var da = ["x", "y"], fa = ["x2", "y2"], pa = ["xOffset", "yOffset"], ma = [...da, ...fa];
|
|
2478
|
+
function ha(e) {
|
|
2479
|
+
return da.includes(e);
|
|
2064
2480
|
}
|
|
2065
|
-
function
|
|
2066
|
-
return
|
|
2481
|
+
function ga(e) {
|
|
2482
|
+
return ma.includes(e);
|
|
2067
2483
|
}
|
|
2068
|
-
function
|
|
2069
|
-
return
|
|
2484
|
+
function _a(e) {
|
|
2485
|
+
return pa.includes(e);
|
|
2070
2486
|
}
|
|
2071
|
-
function
|
|
2072
|
-
return
|
|
2487
|
+
function va(e) {
|
|
2488
|
+
return wa(e) == "x" ? "xOffset" : "yOffset";
|
|
2073
2489
|
}
|
|
2074
|
-
function
|
|
2490
|
+
function ya(e, t, n) {
|
|
2075
2491
|
return t ?? (n ? 0 : e);
|
|
2076
2492
|
}
|
|
2077
|
-
var
|
|
2493
|
+
var ba = {
|
|
2078
2494
|
x: "x2",
|
|
2079
2495
|
y: "y2"
|
|
2080
|
-
},
|
|
2081
|
-
function
|
|
2082
|
-
return e in
|
|
2496
|
+
}, xa = Object.fromEntries(Object.entries(ba).map((e) => [e[1], e[0]]));
|
|
2497
|
+
function Sa(e) {
|
|
2498
|
+
return e in xa;
|
|
2083
2499
|
}
|
|
2084
|
-
function
|
|
2085
|
-
let t =
|
|
2500
|
+
function Ca(e) {
|
|
2501
|
+
let t = ba[e];
|
|
2086
2502
|
if (t) return t;
|
|
2087
2503
|
throw Error(`${e} has no secondary channel!`);
|
|
2088
2504
|
}
|
|
2089
|
-
function
|
|
2090
|
-
return
|
|
2505
|
+
function wa(e) {
|
|
2506
|
+
return xa[e] ?? e;
|
|
2091
2507
|
}
|
|
2092
|
-
function
|
|
2508
|
+
function Ta(e) {
|
|
2093
2509
|
return [
|
|
2094
2510
|
"color",
|
|
2095
2511
|
"fill",
|
|
2096
2512
|
"stroke"
|
|
2097
|
-
].includes(
|
|
2513
|
+
].includes(wa(e));
|
|
2098
2514
|
}
|
|
2099
|
-
function
|
|
2515
|
+
function Ea(e) {
|
|
2100
2516
|
return ["shape", "direction"].includes(e);
|
|
2101
2517
|
}
|
|
2102
|
-
function
|
|
2518
|
+
function Da(e) {
|
|
2103
2519
|
return [
|
|
2104
2520
|
"x",
|
|
2105
2521
|
"y",
|
|
@@ -2123,7 +2539,7 @@ function Pi(e) {
|
|
|
2123
2539
|
"sample"
|
|
2124
2540
|
].includes(e);
|
|
2125
2541
|
}
|
|
2126
|
-
function
|
|
2542
|
+
function Oa(e) {
|
|
2127
2543
|
switch (e) {
|
|
2128
2544
|
case "shape": return [
|
|
2129
2545
|
"circle",
|
|
@@ -2145,9 +2561,9 @@ function Fi(e) {
|
|
|
2145
2561
|
default:
|
|
2146
2562
|
}
|
|
2147
2563
|
}
|
|
2148
|
-
function
|
|
2149
|
-
if (!
|
|
2150
|
-
let t = new Map(
|
|
2564
|
+
function ka(e) {
|
|
2565
|
+
if (!Ea(e)) throw Error("Not a discrete channel: " + e);
|
|
2566
|
+
let t = new Map(Oa(e).map((e, t) => [e, t]));
|
|
2151
2567
|
return (n) => {
|
|
2152
2568
|
let r = t.get(n);
|
|
2153
2569
|
if (r !== void 0) return r;
|
|
@@ -2156,16 +2572,16 @@ function Ii(e) {
|
|
|
2156
2572
|
}
|
|
2157
2573
|
//#endregion
|
|
2158
2574
|
//#region ../core/src/utils/arrayUtils.js
|
|
2159
|
-
function
|
|
2575
|
+
function Aa(e, t) {
|
|
2160
2576
|
return e.length == t.length && e.every((n, r) => e[r] === t[r]);
|
|
2161
2577
|
}
|
|
2162
|
-
function
|
|
2578
|
+
function ja(e) {
|
|
2163
2579
|
return Array.isArray(e) ? e : e === void 0 ? [] : [e];
|
|
2164
2580
|
}
|
|
2165
|
-
function
|
|
2581
|
+
function Ma(e) {
|
|
2166
2582
|
return e[e.length - 1];
|
|
2167
2583
|
}
|
|
2168
|
-
function
|
|
2584
|
+
function Na(e, t, n) {
|
|
2169
2585
|
if (t < 0 || t >= e.length) throw Error("Source index out of range.");
|
|
2170
2586
|
if (n < 0 || n > e.length - 1) throw Error("Destination index out of range.");
|
|
2171
2587
|
let [r] = e.splice(t, 1);
|
|
@@ -2173,7 +2589,7 @@ function Bi(e, t, n) {
|
|
|
2173
2589
|
}
|
|
2174
2590
|
//#endregion
|
|
2175
2591
|
//#region ../core/src/view/renderingContext/clipOptions.js
|
|
2176
|
-
function
|
|
2592
|
+
function Pa(e) {
|
|
2177
2593
|
if (e.clip) return e.clip;
|
|
2178
2594
|
if (e.clipRect) return {
|
|
2179
2595
|
rect: e.clipRect,
|
|
@@ -2181,36 +2597,36 @@ function Vi(e) {
|
|
|
2181
2597
|
clipY: !0
|
|
2182
2598
|
};
|
|
2183
2599
|
}
|
|
2184
|
-
function
|
|
2600
|
+
function Fa(e, t) {
|
|
2185
2601
|
return e === t ? !0 : !e || !t ? !1 : e.clipX === t.clipX && e.clipY === t.clipY && e.rect.equals(t.rect);
|
|
2186
2602
|
}
|
|
2187
|
-
function
|
|
2603
|
+
function Ia(e, t, n) {
|
|
2188
2604
|
return t || n ? {
|
|
2189
2605
|
rect: e,
|
|
2190
2606
|
clipX: t,
|
|
2191
2607
|
clipY: n
|
|
2192
2608
|
} : void 0;
|
|
2193
2609
|
}
|
|
2194
|
-
function
|
|
2610
|
+
function La(e, t) {
|
|
2195
2611
|
return t ? t.clipX && t.clipY ? e.intersect(t.rect) : t.clipX ? e.intersectX(t.rect) : t.clipY ? e.intersectY(t.rect) : e : e;
|
|
2196
2612
|
}
|
|
2197
|
-
function
|
|
2613
|
+
function Ra(e, t) {
|
|
2198
2614
|
if (!e) return t;
|
|
2199
2615
|
if (!t) return e;
|
|
2200
2616
|
let n = e.clipX || t.clipX, r = e.clipY || t.clipY, i = e.clipX && t.clipX ? e.rect.intersectX(t.rect) : t.clipX ? t.rect : e.rect, a = e.clipY && t.clipY ? e.rect.intersectY(t.rect) : t.clipY ? t.rect : e.rect;
|
|
2201
|
-
return
|
|
2617
|
+
return Ia(e.rect.modify({
|
|
2202
2618
|
x: () => i.x,
|
|
2203
2619
|
y: () => a.y,
|
|
2204
2620
|
width: () => i.width,
|
|
2205
2621
|
height: () => a.height
|
|
2206
2622
|
}), n, r);
|
|
2207
2623
|
}
|
|
2208
|
-
function
|
|
2209
|
-
if (e === !0) return
|
|
2210
|
-
if (e === "x") return
|
|
2211
|
-
if (e === "y") return
|
|
2624
|
+
function za(e, t) {
|
|
2625
|
+
if (e === !0) return Ia(t, !0, !0);
|
|
2626
|
+
if (e === "x") return Ia(t, !0, !1);
|
|
2627
|
+
if (e === "y") return Ia(t, !1, !0);
|
|
2212
2628
|
}
|
|
2213
|
-
function
|
|
2629
|
+
function Ba(e) {
|
|
2214
2630
|
let t = e.mark;
|
|
2215
2631
|
if (t) {
|
|
2216
2632
|
let e = t.properties.clip;
|
|
@@ -2232,8 +2648,8 @@ function Ki(e) {
|
|
|
2232
2648
|
clipY: n && i
|
|
2233
2649
|
};
|
|
2234
2650
|
}
|
|
2235
|
-
function
|
|
2236
|
-
if (t !== "never") return
|
|
2651
|
+
function Va(e, t, n) {
|
|
2652
|
+
if (t !== "never") return Ra(e, za(t, n));
|
|
2237
2653
|
}
|
|
2238
2654
|
//#endregion
|
|
2239
|
-
export {
|
|
2655
|
+
export { ji as $, we as $t, aa as A, jt as At, Bi as B, Et as Bt, Da as C, b as Cn, Ht as Ct, Ea as D, Pt as Dt, na as E, Ft as Et, ta as F, kt as Ft, bi as G, S as Gt, Di as H, bt as Ht, da as I, Ot as It, Q as J, Be as Jt, Ei as K, E as Kt, ya as L, Ct as Lt, ga as M, Rt as Mt, ha as N, Lt as Nt, ca as O, A as Ot, Sa as P, Nt as Pt, Ii as Q, Ue as Qt, zi as R, Tt as Rt, ra as S, y as Sn, Ut as St, Ta as T, zt as Tt, Si as U, st as Ut, Ni as V, yt as Vt, xi as W, rt as Wt, Mi as X, Ze as Xt, Fi as Y, C as Yt, Pi as Z, We as Zt, Zi as _, f as _n, $t as _t, Ba as a, de as an, vi as at, wa as b, Se as bn, Yt as bt, ja as c, ge as cn, mi as ct, Aa as d, d as dn, on as dt, Te as en, wi as et, Yi as f, x as fn, an as ft, ka as g, ie as gn, en as gt, oa as h, re as hn, tn as ht, Ia as i, ce as in, _i as it, _a as j, At as jt, $ as k, Mt as kt, Na as l, le as ln, ni as lt, ia as m, ne as mn, nn as mt, Fa as n, xe as nn, Ri as nt, Pa as o, o as on, yi as ot, qi as p, ye as pn, rn as pt, Li as q, Ee as qt, Ra as r, t as rn, Ci as rt, Va as s, u as sn, oi as st, La as t, Ce as tn, Ti as tt, Ma as u, _e as un, ti as ut, Qi as v, be as vn, Qt as vt, sa as w, oe as wn, j as wt, Ca as x, v as xn, N as xt, va as y, s as yn, Xt as yt, Wi as z, Dt as zt };
|