@genome-spy/app 0.88.1 → 0.89.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.
Files changed (43) hide show
  1. package/dist/{agentApi-BIpg3JKh.js → agentApi-BUcXm-JC.js} +5544 -6449
  2. package/dist/agentApi.es.js +3328 -4255
  3. package/dist/agentShared.es.js +9 -9
  4. package/dist/{canvas2d-BVQ7-2eJ.js → canvas2d-CGuVGvQk.js} +117 -106
  5. package/dist/{canvas2d-D7SZK3xv.js → canvas2d-DgF0kstG.js} +99 -88
  6. package/dist/{canvasSizeHelper-7h_8rOcx.js → canvasSizeHelper-foL2YvGL.js} +15 -8
  7. package/dist/{clipOptions-DTMcB_9z.js → clipOptions-8BPf0WMZ.js} +1013 -755
  8. package/dist/{clipOptions-BWHr3aTa.js → clipOptions-DBJX_W31.js} +1033 -775
  9. package/dist/{debug-CVpoEOWx.js → debug-BEWbYuZD.js} +2 -2
  10. package/dist/{debug-DYAMZZKl.js → debug-DQj_7mFm.js} +2 -2
  11. package/dist/index.es.js +65 -65
  12. package/dist/index.js +406 -362
  13. package/dist/{indexer-DAH_ruVn.js → indexer-Cdt_U05k.js} +1 -1
  14. package/dist/{indexer-CXjZDo2Q.js → indexer-D8Bgkkb8.js} +1 -1
  15. package/dist/order-BPOzLe80.js +1056 -0
  16. package/dist/order-DIxlclRN.js +1056 -0
  17. package/dist/rasterExport-Bl6w9t3J.js +51 -0
  18. package/dist/rasterExport-DRvNAH-r.js +51 -0
  19. package/dist/rasterization-D0tOoKu_.js +62 -0
  20. package/dist/rectangle-DE98gIxF.js +108 -0
  21. package/dist/{renderCanvas2D-DxturTEW.js → renderCanvas2D-Ct95auF3.js} +60 -59
  22. package/dist/{renderCanvas2D-DtcJjqpB.js → renderCanvas2D-LdEYFnRo.js} +71 -70
  23. package/dist/schema.json +588 -116
  24. package/dist/{svg-CyrLfa9e.js → svg-Ag36-h_I.js} +394 -382
  25. package/dist/{svg-SDJMzL--.js → svg-pkTPD4bv.js} +368 -356
  26. package/dist/{svgRasterizer-f7DJ3UO0.js → svgRasterizer-CksK4QTB.js} +6 -5
  27. package/dist/{svgRasterizer-mWK7HTkx.js → svgRasterizer-DrtJ9nLk.js} +6 -5
  28. package/dist/{vega-scale-CypF85iS.js → vega-scale-BJaDSHBJ.js} +891 -959
  29. package/dist/{vega-scale-DLKCwWRs.js → vega-scale-BWBFykuI.js} +692 -760
  30. package/dist/{viewIdentityRegistry-DIDo44XQ.js → viewIdentityRegistry-B-snqI3y.js} +1 -1
  31. package/dist/{viewIdentityRegistry-Dl-vMN9I.js → viewIdentityRegistry-BvCJajXG.js} +1 -1
  32. package/dist/{viewSelectors-CymbZyE6.js → viewSelectors-BlvzvG-z.js} +445 -380
  33. package/dist/{viewSelectors-DNiDip5e.js → viewSelectors-C5q3qBiR.js} +364 -299
  34. package/dist/{viewUtils-BrJLIj2o.js → viewUtils-C3vBtSvE.js} +1714 -1689
  35. package/dist/{webgl-tZfZ8y3q.js → webgl-CZX2pe5v.js} +2319 -972
  36. package/dist/{webgl-CTJt7jQd.js → webgl-CexXSw_I.js} +2371 -1024
  37. package/package.json +5 -5
  38. package/dist/order-C5CzA37O.js +0 -918
  39. package/dist/order-DvY7KNcu.js +0 -918
  40. package/dist/rasterExport-BgZ98e6U.js +0 -44
  41. package/dist/rasterExport-DEr8fOLm.js +0 -44
  42. package/dist/rasterization-CFogVB3B.js +0 -50
  43. package/dist/rectangle-DKnrAmKs.js +0 -142
@@ -82,36 +82,104 @@ function h(e) {
82
82
  }
83
83
  //#endregion
84
84
  //#region ../../node_modules/vega-util/build/toSet.js
85
- function ee(e) {
85
+ function g(e) {
86
86
  let t = {}, n = e.length;
87
87
  for (let r = 0; r < n; ++r) t[e[r] + ""] = !0;
88
88
  return t;
89
89
  }
90
90
  //#endregion
91
+ //#region ../../node_modules/internmap/src/index.js
92
+ var _ = class extends Map {
93
+ constructor(e, t = ne) {
94
+ if (super(), Object.defineProperties(this, {
95
+ _intern: { value: /* @__PURE__ */ new Map() },
96
+ _key: { value: t }
97
+ }), e != null) for (let [t, n] of e) this.set(t, n);
98
+ }
99
+ get(e) {
100
+ return super.get(ee(this, e));
101
+ }
102
+ has(e) {
103
+ return super.has(ee(this, e));
104
+ }
105
+ set(e, t) {
106
+ return super.set(v(this, e), t);
107
+ }
108
+ delete(e) {
109
+ return super.delete(te(this, e));
110
+ }
111
+ };
112
+ function ee({ _intern: e, _key: t }, n) {
113
+ let r = t(n);
114
+ return e.has(r) ? e.get(r) : n;
115
+ }
116
+ function v({ _intern: e, _key: t }, n) {
117
+ let r = t(n);
118
+ return e.has(r) ? e.get(r) : (e.set(r, n), n);
119
+ }
120
+ function te({ _intern: e, _key: t }, n) {
121
+ let r = t(n);
122
+ return e.has(r) && (n = e.get(r), e.delete(r)), n;
123
+ }
124
+ function ne(e) {
125
+ return typeof e == "object" && e ? e.valueOf() : e;
126
+ }
127
+ //#endregion
128
+ //#region ../../node_modules/d3-array/src/ticks.js
129
+ var re = Math.sqrt(50), ie = Math.sqrt(10), y = Math.sqrt(2);
130
+ function b(e, t, n) {
131
+ let r = (t - e) / Math.max(0, n), i = Math.floor(Math.log10(r)), a = r / 10 ** i, o = a >= re ? 10 : a >= ie ? 5 : a >= y ? 2 : 1, s, c, l;
132
+ return i < 0 ? (l = 10 ** -i / o, s = Math.round(e * l), c = Math.round(t * l), s / l < e && ++s, c / l > t && --c, l = -l) : (l = 10 ** i * o, s = Math.round(e / l), c = Math.round(t / l), s * l < e && ++s, c * l > t && --c), c < s && .5 <= n && n < 2 ? b(e, t, n * 2) : [
133
+ s,
134
+ c,
135
+ l
136
+ ];
137
+ }
138
+ function x(e, t, n) {
139
+ if (t = +t, e = +e, n = +n, !(n > 0)) return [];
140
+ if (e === t) return [e];
141
+ let r = t < e, [i, a, o] = r ? b(t, e, n) : b(e, t, n);
142
+ if (!(a >= i)) return [];
143
+ let s = a - i + 1, c = Array(s);
144
+ if (r) if (o < 0) for (let e = 0; e < s; ++e) c[e] = (a - e) / -o;
145
+ else for (let e = 0; e < s; ++e) c[e] = (a - e) * o;
146
+ else if (o < 0) for (let e = 0; e < s; ++e) c[e] = (i + e) / -o;
147
+ else for (let e = 0; e < s; ++e) c[e] = (i + e) * o;
148
+ return c;
149
+ }
150
+ function ae(e, t, n) {
151
+ return t = +t, e = +e, n = +n, b(e, t, n)[2];
152
+ }
153
+ function oe(e, t, n) {
154
+ t = +t, e = +e, n = +n;
155
+ let r = t < e, i = r ? ae(t, e, n) : ae(e, t, n);
156
+ return (r ? -1 : 1) * (i < 0 ? 1 / -i : i);
157
+ }
158
+ //#endregion
91
159
  //#region ../../node_modules/d3-array/src/range.js
92
- function g(e, t, n) {
160
+ function se(e, t, n) {
93
161
  e = +e, t = +t, n = (i = arguments.length) < 2 ? (t = e, e = 0, 1) : i < 3 ? 1 : +n;
94
162
  for (var r = -1, i = Math.max(0, Math.ceil((t - e) / n)) | 0, a = Array(i); ++r < i;) a[r] = e + r * n;
95
163
  return a;
96
164
  }
97
165
  //#endregion
98
166
  //#region ../../node_modules/d3-format/src/formatDecimal.js
99
- function te(e) {
167
+ function ce(e) {
100
168
  return Math.abs(e = Math.round(e)) >= 1e21 ? e.toLocaleString("en").replace(/,/g, "") : e.toString(10);
101
169
  }
102
- function _(e, t) {
170
+ function le(e, t) {
103
171
  if (!isFinite(e) || e === 0) return null;
104
172
  var n = (e = t ? e.toExponential(t - 1) : e.toExponential()).indexOf("e"), r = e.slice(0, n);
105
173
  return [r.length > 1 ? r[0] + r.slice(2) : r, +e.slice(n + 1)];
106
174
  }
107
175
  //#endregion
108
176
  //#region ../../node_modules/d3-format/src/exponent.js
109
- function ne(e) {
110
- return e = _(Math.abs(e)), e ? e[1] : NaN;
177
+ function ue(e) {
178
+ return e = le(Math.abs(e)), e ? e[1] : NaN;
111
179
  }
112
180
  //#endregion
113
181
  //#region ../../node_modules/d3-format/src/formatGroup.js
114
- function re(e, t) {
182
+ function de(e, t) {
115
183
  return function(n, r) {
116
184
  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];
117
185
  return a.reverse().join(t);
@@ -119,7 +187,7 @@ function re(e, t) {
119
187
  }
120
188
  //#endregion
121
189
  //#region ../../node_modules/d3-format/src/formatNumerals.js
122
- function ie(e) {
190
+ function fe(e) {
123
191
  return function(t) {
124
192
  return t.replace(/[0-9]/g, function(t) {
125
193
  return e[+t];
@@ -128,11 +196,11 @@ function ie(e) {
128
196
  }
129
197
  //#endregion
130
198
  //#region ../../node_modules/d3-format/src/formatSpecifier.js
131
- var ae = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
132
- function v(e) {
133
- if (!(t = ae.exec(e))) throw Error("invalid format: " + e);
199
+ var pe = /^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;
200
+ function me(e) {
201
+ if (!(t = pe.exec(e))) throw Error("invalid format: " + e);
134
202
  var t;
135
- return new y({
203
+ return new he({
136
204
  fill: t[1],
137
205
  align: t[2],
138
206
  sign: t[3],
@@ -145,16 +213,16 @@ function v(e) {
145
213
  type: t[10]
146
214
  });
147
215
  }
148
- v.prototype = y.prototype;
149
- function y(e) {
216
+ me.prototype = he.prototype;
217
+ function he(e) {
150
218
  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 + "";
151
219
  }
152
- y.prototype.toString = function() {
220
+ he.prototype.toString = function() {
153
221
  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;
154
222
  };
155
223
  //#endregion
156
224
  //#region ../../node_modules/d3-format/src/formatTrim.js
157
- function oe(e) {
225
+ function ge(e) {
158
226
  out: for (var t = e.length, n = 1, r = -1, i; n < t; ++n) switch (e[n]) {
159
227
  case ".":
160
228
  r = i = n;
@@ -171,46 +239,46 @@ function oe(e) {
171
239
  }
172
240
  //#endregion
173
241
  //#region ../../node_modules/d3-format/src/formatPrefixAuto.js
174
- var se;
175
- function b(e, t) {
176
- var n = _(e, t);
177
- if (!n) return se = void 0, e.toPrecision(t);
178
- var r = n[0], i = n[1], a = i - (se = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
179
- 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") + _(e, Math.max(0, t + a - 1))[0];
242
+ var _e;
243
+ function ve(e, t) {
244
+ var n = le(e, t);
245
+ if (!n) return _e = void 0, e.toPrecision(t);
246
+ var r = n[0], i = n[1], a = i - (_e = Math.max(-8, Math.min(8, Math.floor(i / 3))) * 3) + 1, o = r.length;
247
+ 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") + le(e, Math.max(0, t + a - 1))[0];
180
248
  }
181
249
  //#endregion
182
250
  //#region ../../node_modules/d3-format/src/formatRounded.js
183
- function ce(e, t) {
184
- var n = _(e, t);
251
+ function ye(e, t) {
252
+ var n = le(e, t);
185
253
  if (!n) return e + "";
186
254
  var r = n[0], i = n[1];
187
255
  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");
188
256
  }
189
257
  //#endregion
190
258
  //#region ../../node_modules/d3-format/src/formatTypes.js
191
- var le = {
259
+ var be = {
192
260
  "%": (e, t) => (e * 100).toFixed(t),
193
261
  b: (e) => Math.round(e).toString(2),
194
262
  c: (e) => e + "",
195
- d: te,
263
+ d: ce,
196
264
  e: (e, t) => e.toExponential(t),
197
265
  f: (e, t) => e.toFixed(t),
198
266
  g: (e, t) => e.toPrecision(t),
199
267
  o: (e) => Math.round(e).toString(8),
200
- p: (e, t) => ce(e * 100, t),
201
- r: ce,
202
- s: b,
268
+ p: (e, t) => ye(e * 100, t),
269
+ r: ye,
270
+ s: ve,
203
271
  X: (e) => Math.round(e).toString(16).toUpperCase(),
204
272
  x: (e) => Math.round(e).toString(16)
205
273
  };
206
274
  //#endregion
207
275
  //#region ../../node_modules/d3-format/src/identity.js
208
- function ue(e) {
276
+ function xe(e) {
209
277
  return e;
210
278
  }
211
279
  //#endregion
212
280
  //#region ../../node_modules/d3-format/src/locale.js
213
- var de = Array.prototype.map, fe = [
281
+ var Se = Array.prototype.map, Ce = [
214
282
  "y",
215
283
  "z",
216
284
  "a",
@@ -229,41 +297,41 @@ var de = Array.prototype.map, fe = [
229
297
  "Z",
230
298
  "Y"
231
299
  ];
232
- function pe(e) {
233
- var t = e.grouping === void 0 || e.thousands === void 0 ? ue : re(de.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 ? ue : ie(de.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 + "";
300
+ function we(e) {
301
+ var t = e.grouping === void 0 || e.thousands === void 0 ? xe : de(Se.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 ? xe : fe(Se.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 + "";
234
302
  function l(e, l) {
235
- e = v(e);
236
- var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, ee = e.comma, g = e.precision, te = e.trim, _ = e.type;
237
- _ === "n" ? (ee = !0, _ = "g") : le[_] || (g === void 0 && (g = 12), te = !0, _ = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
238
- 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 = le[_], ae = /[defgprs%]/.test(_);
239
- g = g === void 0 ? 6 : /[gprs]/.test(_) ? Math.max(1, Math.min(21, g)) : Math.max(0, Math.min(20, g));
303
+ e = me(e);
304
+ var u = e.fill, d = e.align, f = e.sign, p = e.symbol, m = e.zero, h = e.width, g = e.comma, _ = e.precision, ee = e.trim, v = e.type;
305
+ v === "n" ? (g = !0, v = "g") : be[v] || (_ === void 0 && (_ = 12), ee = !0, v = "g"), (m || u === "0" && d === "=") && (m = !0, u = "0", d = "=");
306
+ var te = (l && l.prefix !== void 0 ? l.prefix : "") + (p === "$" ? n : p === "#" && /[boxX]/.test(v) ? "0" + v.toLowerCase() : ""), ne = (p === "$" ? r : /[%p]/.test(v) ? o : "") + (l && l.suffix !== void 0 ? l.suffix : ""), re = be[v], ie = /[defgprs%]/.test(v);
307
+ _ = _ === void 0 ? 6 : /[gprs]/.test(v) ? Math.max(1, Math.min(21, _)) : Math.max(0, Math.min(20, _));
240
308
  function y(e) {
241
- var n = ne, r = re, o, l, p;
242
- if (_ === "c") r = ie(e) + r, e = "";
309
+ var n = te, r = ne, o, l, p;
310
+ if (v === "c") r = re(e) + r, e = "";
243
311
  else {
244
312
  e = +e;
245
- var v = e < 0 || 1 / e < 0;
246
- if (e = isNaN(e) ? c : ie(Math.abs(e), g), te && (e = oe(e)), v && +e == 0 && f !== "+" && (v = !1), n = (v ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (_ === "s" && !isNaN(e) && se !== void 0 ? fe[8 + se / 3] : "") + r + (v && f === "(" ? ")" : ""), ae) {
313
+ var y = e < 0 || 1 / e < 0;
314
+ if (e = isNaN(e) ? c : re(Math.abs(e), _), ee && (e = ge(e)), y && +e == 0 && f !== "+" && (y = !1), n = (y ? f === "(" ? f : s : f === "-" || f === "(" ? "" : f) + n, r = (v === "s" && !isNaN(e) && _e !== void 0 ? Ce[8 + _e / 3] : "") + r + (y && f === "(" ? ")" : ""), ie) {
247
315
  for (o = -1, l = e.length; ++o < l;) if (p = e.charCodeAt(o), 48 > p || p > 57) {
248
316
  r = (p === 46 ? i + e.slice(o + 1) : e.slice(o)) + r, e = e.slice(0, o);
249
317
  break;
250
318
  }
251
319
  }
252
320
  }
253
- ee && !m && (e = t(e, Infinity));
254
- var y = n.length + e.length + r.length, b = y < h ? Array(h - y + 1).join(u) : "";
255
- switch (ee && m && (e = t(b + e, b.length ? h - r.length : Infinity), b = ""), d) {
321
+ g && !m && (e = t(e, Infinity));
322
+ var b = n.length + e.length + r.length, x = b < h ? Array(h - b + 1).join(u) : "";
323
+ switch (g && m && (e = t(x + e, x.length ? h - r.length : Infinity), x = ""), d) {
256
324
  case "<":
257
- e = n + e + r + b;
325
+ e = n + e + r + x;
258
326
  break;
259
327
  case "=":
260
- e = n + b + e + r;
328
+ e = n + x + e + r;
261
329
  break;
262
330
  case "^":
263
- e = b.slice(0, y = b.length >> 1) + n + e + r + b.slice(y);
331
+ e = x.slice(0, b = x.length >> 1) + n + e + r + x.slice(b);
264
332
  break;
265
333
  default:
266
- e = b + n + e + r;
334
+ e = x + n + e + r;
267
335
  break;
268
336
  }
269
337
  return a(e);
@@ -273,7 +341,7 @@ function pe(e) {
273
341
  }, y;
274
342
  }
275
343
  function u(e, t) {
276
- var n = Math.max(-8, Math.min(8, Math.floor(ne(t) / 3))) * 3, r = 10 ** -n, i = l((e = v(e), e.type = "f", e), { suffix: fe[8 + n / 3] });
344
+ var n = Math.max(-8, Math.min(8, Math.floor(ue(t) / 3))) * 3, r = 10 ** -n, i = l((e = me(e), e.type = "f", e), { suffix: Ce[8 + n / 3] });
277
345
  return function(e) {
278
346
  return i(r * e);
279
347
  };
@@ -285,27 +353,27 @@ function pe(e) {
285
353
  }
286
354
  //#endregion
287
355
  //#region ../../node_modules/d3-format/src/defaultLocale.js
288
- var me, he, ge;
289
- _e({
356
+ var Te, Ee, De;
357
+ Oe({
290
358
  thousands: ",",
291
359
  grouping: [3],
292
360
  currency: ["$", ""]
293
361
  });
294
- function _e(e) {
295
- return me = pe(e), he = me.format, ge = me.formatPrefix, me;
362
+ function Oe(e) {
363
+ return Te = we(e), Ee = Te.format, De = Te.formatPrefix, Te;
296
364
  }
297
365
  //#endregion
298
366
  //#region ../core/src/utils/arrayUtils.js
299
- function ve(e, t) {
367
+ function ke(e, t) {
300
368
  return e.length == t.length && e.every((n, r) => e[r] === t[r]);
301
369
  }
302
- function ye(e) {
370
+ function Ae(e) {
303
371
  return Array.isArray(e) ? e : e === void 0 ? [] : [e];
304
372
  }
305
- function be(e) {
373
+ function je(e) {
306
374
  return e[e.length - 1];
307
375
  }
308
- function xe(e, t, n) {
376
+ function Me(e, t, n) {
309
377
  if (t < 0 || t >= e.length) throw Error("Source index out of range.");
310
378
  if (n < 0 || n > e.length - 1) throw Error("Destination index out of range.");
311
379
  let [r] = e.splice(t, 1);
@@ -313,31 +381,31 @@ function xe(e, t, n) {
313
381
  }
314
382
  //#endregion
315
383
  //#region ../core/node_modules/vega-util/build/vega-util.js
316
- function x(e, t, n) {
384
+ function S(e, t, n) {
317
385
  return e.fields = t || [], e.fname = n, e;
318
386
  }
319
- function Se(e) {
387
+ function Ne(e) {
320
388
  return e == null ? null : e.fname;
321
389
  }
322
- function Ce(e) {
390
+ function Pe(e) {
323
391
  return e == null ? null : e.fields;
324
392
  }
325
- function we(e) {
326
- return e.length === 1 ? Te(e[0]) : Ee(e);
393
+ function Fe(e) {
394
+ return e.length === 1 ? Ie(e[0]) : Le(e);
327
395
  }
328
- var Te = (e) => function(t) {
396
+ var Ie = (e) => function(t) {
329
397
  return t[e];
330
- }, Ee = (e) => {
398
+ }, Le = (e) => {
331
399
  let t = e.length;
332
400
  return function(n) {
333
401
  for (let r = 0; r < t; ++r) n = n[e[r]];
334
402
  return n;
335
403
  };
336
404
  };
337
- function De(e) {
405
+ function Re(e) {
338
406
  throw Error(e);
339
407
  }
340
- function Oe(e) {
408
+ function ze(e) {
341
409
  let t = [], n = e.length, r = null, i = 0, a = "", o, s, c;
342
410
  e += "";
343
411
  function l() {
@@ -346,113 +414,117 @@ function Oe(e) {
346
414
  for (o = s = 0; s < n; ++s) if (c = e[s], c === "\\") a += e.substring(o, s++), o = s;
347
415
  else if (c === r) l(), r = null, i = -1;
348
416
  else if (r) continue;
349
- 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 || De("Access path missing open bracket: " + e), i > 0 && l(), i = 0, o = s + 1);
350
- return i && De("Access path missing closing bracket: " + e), r && De("Access path missing closing quote: " + e), s > o && (s++, l()), t;
351
- }
352
- function ke(e, t, n) {
353
- let r = Oe(e);
354
- return e = r.length === 1 ? r[0] : e, x((n && n.get || we)(r), [e], t || e);
355
- }
356
- ke("id");
357
- var Ae = x((e) => e, [], "identity");
358
- x(() => 0, [], "zero"), x(() => 1, [], "one"), x(() => !0, [], "true"), x(() => !1, [], "false"), [...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
359
- var je = Array.isArray;
360
- function Me(e) {
417
+ 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 || Re("Access path missing open bracket: " + e), i > 0 && l(), i = 0, o = s + 1);
418
+ return i && Re("Access path missing closing bracket: " + e), r && Re("Access path missing closing quote: " + e), s > o && (s++, l()), t;
419
+ }
420
+ function Be(e, t, n) {
421
+ let r = ze(e);
422
+ return e = r.length === 1 ? r[0] : e, S((n && n.get || Fe)(r), [e], t || e);
423
+ }
424
+ Be("id");
425
+ var Ve = S((e) => e, [], "identity");
426
+ S(() => 0, [], "zero"), S(() => 1, [], "one"), S(() => !0, [], "true"), S(() => !1, [], "false"), [...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
427
+ var He = Array.isArray;
428
+ function Ue(e) {
361
429
  return e === Object(e);
362
430
  }
363
- function Ne(e) {
431
+ function We(e) {
364
432
  return e[e.length - 1];
365
433
  }
366
- function Pe(e) {
434
+ function Ge(e) {
367
435
  return e == null || e === "" ? null : +e;
368
436
  }
369
- var Fe = (e) => (t) => e * Math.exp(t), Ie = (e) => (t) => Math.log(e * t), Le = (e) => (t) => Math.sign(t) * Math.log1p(Math.abs(t / e)), Re = (e) => (t) => Math.sign(t) * Math.expm1(Math.abs(t)) * e, ze = (e) => (t) => t < 0 ? -((-t) ** +e) : t ** +e;
370
- function Be(e, t, n, r) {
371
- let i = n(e[0]), a = n(Ne(e)), o = (a - i) * t;
437
+ var Ke = (e) => (t) => e * Math.exp(t), qe = (e) => (t) => Math.log(e * t), Je = (e) => (t) => Math.sign(t) * Math.log1p(Math.abs(t / e)), Ye = (e) => (t) => Math.sign(t) * Math.expm1(Math.abs(t)) * e, Xe = (e) => (t) => t < 0 ? -((-t) ** +e) : t ** +e;
438
+ function Ze(e, t, n, r) {
439
+ let i = n(e[0]), a = n(We(e)), o = (a - i) * t;
372
440
  return [r(i - o), r(a - o)];
373
441
  }
374
- function Ve(e, t) {
375
- return Be(e, t, Pe, Ae);
442
+ function Qe(e, t) {
443
+ return Ze(e, t, Ge, Ve);
376
444
  }
377
- function He(e, t) {
445
+ function $e(e, t) {
378
446
  var n = Math.sign(e[0]);
379
- return Be(e, t, Ie(n), Fe(n));
447
+ return Ze(e, t, qe(n), Ke(n));
380
448
  }
381
- function Ue(e, t, n) {
382
- return Be(e, t, ze(n), ze(1 / n));
449
+ function et(e, t, n) {
450
+ return Ze(e, t, Xe(n), Xe(1 / n));
383
451
  }
384
- function We(e, t, n, r, i) {
385
- let a = r(e[0]), o = r(Ne(e)), s = t == null ? (a + o) / 2 : r(t);
452
+ function tt(e, t, n, r, i) {
453
+ let a = r(e[0]), o = r(We(e)), s = t == null ? (a + o) / 2 : r(t);
386
454
  return [i(s + (a - s) * n), i(s + (o - s) * n)];
387
455
  }
388
- function Ge(e, t, n) {
389
- return We(e, t, n, Pe, Ae);
456
+ function nt(e, t, n) {
457
+ return tt(e, t, n, Ge, Ve);
390
458
  }
391
- function Ke(e, t, n) {
459
+ function rt(e, t, n) {
392
460
  let r = Math.sign(e[0]);
393
- return We(e, t, n, Ie(r), Fe(r));
461
+ return tt(e, t, n, qe(r), Ke(r));
394
462
  }
395
- function qe(e, t, n, r) {
396
- return We(e, t, n, ze(r), ze(1 / r));
463
+ function it(e, t, n, r) {
464
+ return tt(e, t, n, Xe(r), Xe(1 / r));
397
465
  }
398
- function Je(e, t, n, r) {
399
- return We(e, t, n, Le(r), Re(r));
466
+ function at(e, t, n, r) {
467
+ return tt(e, t, n, Je(r), Ye(r));
400
468
  }
401
- function Ye(e) {
402
- return e == null ? [] : je(e) ? e : [e];
469
+ function ot(e) {
470
+ return e == null ? [] : He(e) ? e : [e];
403
471
  }
404
- function Xe(e, t, n) {
472
+ function st(e, t, n) {
405
473
  let r = e[0], i = e[1], a;
406
474
  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];
407
475
  }
408
- function Ze(e) {
476
+ function ct(e) {
409
477
  return typeof e == "function";
410
478
  }
411
- var Qe = "descending";
412
- function $e(e, t, n) {
413
- n ||= {}, t = Ye(t) || [];
414
- let r = [], i = [], a = {}, o = n.comparator || tt;
415
- return Ye(e).forEach((e, o) => {
416
- e != null && (r.push(t[o] === Qe ? -1 : 1), i.push(e = Ze(e) ? e : ke(e, null, n)), (Ce(e) || []).forEach((e) => a[e] = 1));
417
- }), i.length === 0 ? null : x(o(i, r), Object.keys(a));
418
- }
419
- var et = (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), tt = (e, t) => e.length === 1 ? nt(e[0], t[0]) : rt(e, t, e.length), nt = (e, t) => function(n, r) {
420
- return et(e(n), e(r)) * t;
421
- }, rt = (e, t, n) => (t.push(0), function(r, i) {
479
+ var lt = "descending";
480
+ function ut(e, t, n) {
481
+ n ||= {}, t = ot(t) || [];
482
+ let r = [], i = [], a = {}, o = n.comparator || ft;
483
+ return ot(e).forEach((e, o) => {
484
+ e != null && (r.push(t[o] === lt ? -1 : 1), i.push(e = ct(e) ? e : Be(e, null, n)), (Pe(e) || []).forEach((e) => a[e] = 1));
485
+ }), i.length === 0 ? null : S(o(i, r), Object.keys(a));
486
+ }
487
+ var dt = (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), ft = (e, t) => e.length === 1 ? pt(e[0], t[0]) : mt(e, t, e.length), pt = (e, t) => function(n, r) {
488
+ return dt(e(n), e(r)) * t;
489
+ }, mt = (e, t, n) => (t.push(0), function(r, i) {
422
490
  let a, o = 0, s = -1;
423
- for (; o === 0 && ++s < n;) a = e[s], o = et(a(r), a(i));
491
+ for (; o === 0 && ++s < n;) a = e[s], o = dt(a(r), a(i));
424
492
  return o * t[s];
425
493
  });
426
- function it(e) {
494
+ function ht(e, t, n, r) {
495
+ let i = t[0], a = t[t.length - 1], o;
496
+ return i > a && (o = i, i = a, a = o), n = n === void 0 || n, r = r === void 0 || r, (n ? i <= e : i < e) && (r ? e <= a : e < a);
497
+ }
498
+ function gt(e) {
427
499
  return typeof e == "boolean";
428
500
  }
429
- function at(e) {
501
+ function _t(e) {
430
502
  return typeof e == "number";
431
503
  }
432
- function ot(e) {
504
+ function vt(e) {
433
505
  return Object.prototype.toString.call(e) === "[object RegExp]";
434
506
  }
435
- function st(e) {
507
+ function C(e) {
436
508
  return typeof e == "string";
437
509
  }
438
- function ct(e, t) {
439
- let n = e[0], r = Ne(e), i = +t;
510
+ function yt(e, t) {
511
+ let n = e[0], r = We(e), i = +t;
440
512
  return i ? i === 1 ? r : n + i * (r - n) : n;
441
513
  }
442
- function lt(e) {
443
- return e && Ne(e) - e[0] || 0;
514
+ function bt(e) {
515
+ return e && We(e) - e[0] || 0;
444
516
  }
445
- function ut(e) {
446
- return je(e) ? `[${e.map((e) => e === null ? "null" : ut(e))}]` : Me(e) || st(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
517
+ function xt(e) {
518
+ return He(e) ? `[${e.map((e) => e === null ? "null" : xt(e))}]` : Ue(e) || C(e) ? JSON.stringify(e).replaceAll("\u2028", "\\u2028").replaceAll("\u2029", "\\u2029") : e;
447
519
  }
448
- function dt(e) {
520
+ function St(e) {
449
521
  let t = {}, n = e.length;
450
522
  for (let r = 0; r < n; ++r) t[e[r]] = !0;
451
523
  return t;
452
524
  }
453
525
  //#endregion
454
526
  //#region ../core/src/data/sideInputBinding.js
455
- var ft = class {
527
+ var Ct = class {
456
528
  #e;
457
529
  #t;
458
530
  #n = !1;
@@ -488,7 +560,7 @@ var ft = class {
488
560
  isReady() {
489
561
  return this.#r && this.#n && this.#e.areDataDependenciesAvailable() && this.#t.every(({ collector: e, consumed: t }) => e.dataRevision === t);
490
562
  }
491
- }, pt = class {
563
+ }, wt = class {
492
564
  stats = {
493
565
  count: 0,
494
566
  first: null
@@ -540,7 +612,7 @@ var ft = class {
540
612
  initialized: this.#e,
541
613
  disposed: this.#t,
542
614
  params: "params" in e ? structuredClone(e.params) : void 0,
543
- view: mt(e, this.paramRuntimeProvider),
615
+ view: Tt(e, this.paramRuntimeProvider),
544
616
  domainSensitiveScaleChannels: this.domainSensitiveScaleChannels
545
617
  };
546
618
  }
@@ -551,15 +623,15 @@ var ft = class {
551
623
  }
552
624
  initialize() {}
553
625
  initializeOnce() {
554
- this.#e ||= (this.dataDependencies.length && (this.#i = new ft(this)), this.initialize(), !0);
626
+ this.#e ||= (this.dataDependencies.length && (this.#i = new Ct(this)), this.initialize(), !0);
555
627
  }
556
628
  #a() {
557
- this._propagate = Function("children", "stats", g(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
629
+ this._propagate = Function("children", "stats", se(this.children.length).map((e) => `const child${e} = children[${e}];`).join("\n") + `return function propagate(datum) {
558
630
  if (stats.count === 0) {
559
631
  stats.first = structuredClone(datum);
560
632
  }
561
633
  stats.count++;
562
- ${g(this.children.length).map((e) => `child${e}.handle(datum);`).join("\n")}
634
+ ${se(this.children.length).map((e) => `child${e}.handle(datum);`).join("\n")}
563
635
  };`)(this.children, this.stats);
564
636
  }
565
637
  setParent(e) {
@@ -671,11 +743,11 @@ var ft = class {
671
743
  }
672
744
  _propagate(e) {}
673
745
  };
674
- function mt(e, t) {
746
+ function Tt(e, t) {
675
747
  if ("view" in e) return e.view;
676
748
  if (t && "getPathString" in t) return t;
677
749
  }
678
- function ht(e) {
750
+ function Et(e) {
679
751
  let t = /* @__PURE__ */ new Set();
680
752
  for (; e;) {
681
753
  for (let n of e.domainSensitiveScaleChannels) t.add(n);
@@ -683,19 +755,49 @@ function ht(e) {
683
755
  }
684
756
  return t;
685
757
  }
686
- function gt(e) {
758
+ function Dt(e) {
687
759
  return e.type == "file";
688
760
  }
689
- function _t(e) {
761
+ function Ot(e) {
690
762
  return e.type == "facet";
691
763
  }
692
764
  //#endregion
693
765
  //#region ../core/src/data/transforms/transform.js
694
- var vt = class extends pt {
766
+ var kt = class extends wt {
695
767
  #e;
768
+ #t;
769
+ #n = 0;
770
+ #r = 0;
771
+ #i;
772
+ #a = [];
696
773
  constructor(e, t) {
697
774
  super(t), this.#e = e.type;
775
+ let n = e.debounce;
776
+ if (n !== void 0) {
777
+ if (!Number.isFinite(n) || n < 0) throw Error(`The debounce for the ${e.type} transform must be a non-negative finite number.`);
778
+ this.#t = n, this.registerDisposer(() => clearTimeout(this.#i));
779
+ }
780
+ }
781
+ complete() {
782
+ let e = this.#n;
783
+ super.complete(), this.#r = e, e == this.#n && (clearTimeout(this.#i), this.#i = void 0);
784
+ }
785
+ reset() {
786
+ this.#s(), super.reset();
787
+ }
788
+ beginBatch(e) {
789
+ this.#s(), super.beginBatch(e);
790
+ }
791
+ requestReactiveRepropagate() {
792
+ if (this.#n++, this.#t === void 0) {
793
+ this.requestRepropagate();
794
+ return;
795
+ }
796
+ clearTimeout(this.#i), this.#i = void 0, this.completed && (this.#i = setTimeout(this.#o, this.#t));
698
797
  }
798
+ #o = () => {
799
+ this.#i = void 0, !this.disposed && this.completed && this.#r != this.#n && (this.requestRepropagate(), this.paramRuntime.flushNow());
800
+ };
699
801
  get label() {
700
802
  return this.#e;
701
803
  }
@@ -709,7 +811,19 @@ var vt = class extends pt {
709
811
  }
710
812
  return (() => e);
711
813
  }
712
- }, S = "__uniqueId", yt = 1e4, bt = [null], xt = class extends vt {
814
+ watchSnapshottedExpression(e) {
815
+ let t, n;
816
+ return t = this.paramRuntime.watchExpression(e, () => {
817
+ n.refresh(), this.requestReactiveRepropagate();
818
+ }, {
819
+ scopeOwned: !1,
820
+ registerDisposer: (e) => this.registerDisposer(e)
821
+ }), n = t.createSnapshotEvaluator(), this.#a.push(n.refresh), n;
822
+ }
823
+ #s() {
824
+ for (let e of this.#a) e();
825
+ }
826
+ }, w = "__uniqueId", At = 1e4, jt = [null], Mt = class extends kt {
713
827
  get behavior() {
714
828
  return 2;
715
829
  }
@@ -721,23 +835,23 @@ var vt = class extends pt {
721
835
  super.reset(), this._usedBlocks = 0, this._id = -1;
722
836
  }
723
837
  handle(e) {
724
- e[S] = this.#e(), this._propagate(e);
838
+ e[w] = this.#e(), this._propagate(e);
725
839
  }
726
840
  #e() {
727
- return ++this._id % 1e4 == 0 && (this._id = this.#t() * yt), this._id;
841
+ return ++this._id % 1e4 == 0 && (this._id = this.#t() * At), this._id;
728
842
  }
729
843
  #t() {
730
844
  return this._usedBlocks < this._blocks.length ? this._blocks[this._usedBlocks++] : this.#n();
731
845
  }
732
846
  #n() {
733
- let e = bt.length;
734
- return bt[e] = this, this._blocks.push(e), this._usedBlocks++, e;
847
+ let e = jt.length;
848
+ return jt[e] = this, this._blocks.push(e), this._usedBlocks++, e;
735
849
  }
736
850
  };
737
851
  //#endregion
738
852
  //#region ../core/src/utils/field.js
739
- function St(e, t = e) {
740
- return /^[A-Za-z0-9_]+$/.test(e) ? x(Function("validator", `
853
+ function Nt(e, t = e) {
854
+ return /^[A-Za-z0-9_]+$/.test(e) ? S(Function("validator", `
741
855
  let validated = !validator;
742
856
  return function accessField(datum) {
743
857
  if (!validated) {
@@ -746,21 +860,230 @@ function St(e, t = e) {
746
860
  }
747
861
  return datum[${JSON.stringify(e)}];
748
862
  }`)(function(t) {
749
- e in t || Ct(t, e);
750
- }), [e], t) : ke(e);
863
+ e in t || Pt(t, e);
864
+ }), [e], t) : Be(e);
751
865
  }
752
- function Ct(e, t) {
866
+ function Pt(e, t) {
753
867
  throw Error(`Invalid field "${t}". Available fields or properties: ${Object.keys(e).join(", ")}`);
754
868
  }
755
869
  //#endregion
870
+ //#region ../core/src/selection/selectionPredicateTree.js
871
+ function Ft(e, t) {
872
+ if (!("test" in e) || !("ref" in e.test)) return e;
873
+ let n = e.test.ref;
874
+ if (!Object.hasOwn(t, n)) throw Error(`Unknown predicate "${n}" in unit view.`);
875
+ return {
876
+ ...e,
877
+ test: t[n]
878
+ };
879
+ }
880
+ function It(e) {
881
+ let t = "test" in e ? e.test : {
882
+ param: e.param,
883
+ ...e.empty === void 0 ? {} : { empty: e.empty },
884
+ ...e.project === void 0 ? {} : { project: e.project }
885
+ }, n = (e) => {
886
+ if (!e || typeof e != "object" || Array.isArray(e)) throw Error("Selection predicate must be an object.");
887
+ let t = e, r = [
888
+ "param",
889
+ "and",
890
+ "or",
891
+ "not"
892
+ ].filter((e) => e in t);
893
+ if (r.length !== 1) throw Error("Selection predicate must have exactly one operator.");
894
+ let i = r[0];
895
+ if (i === "param") {
896
+ if (typeof t.param == "string") {
897
+ if (Object.keys(t).some((e) => ![
898
+ "param",
899
+ "empty",
900
+ "project"
901
+ ].includes(e)) || typeof (t.empty ?? !0) != "boolean") throw Error("Invalid selection parameter predicate.");
902
+ if (t.project !== void 0) {
903
+ let e = t.project;
904
+ if (!e || typeof e != "object" || Array.isArray(e) || Object.keys(e).length === 0 || Object.entries(e).some(([e, t]) => !["x", "y"].includes(e) || t !== e && t !== e + "2")) throw Error("Invalid interval selection projection.");
905
+ }
906
+ return {
907
+ param: _a(t.param),
908
+ empty: t.empty ?? !0,
909
+ ...t.project ? { project: { ...t.project } } : {}
910
+ };
911
+ }
912
+ if (!t.param || typeof t.param != "object" || Object.keys(t.param).length !== 1 || !Array.isArray(t.param.or) || Object.keys(t).some((e) => !["param", "empty"].includes(e)) || typeof (t.empty ?? !0) != "boolean") throw Error("Invalid flat selection union.");
913
+ if (t.param.or.length === 0) throw Error("Selection test \"or\" must be a nonempty array.");
914
+ let e = Array.from(new Set(t.param.or.map(_a))), n = e.map((e) => ({ selectionActive: e })), r = e.map((e, t) => ({ all: [{
915
+ param: e,
916
+ empty: !0
917
+ }, n[t]] }));
918
+ return { any: t.empty === !1 ? r : [...r, { not: { any: n } }] };
919
+ }
920
+ if (Object.keys(t).length !== 1) throw Error("Selection predicate operators cannot be mixed.");
921
+ if (i === "not") return { not: n(t.not) };
922
+ let a = t[i];
923
+ if (!Array.isArray(a) || a.length === 0) throw Error(`Selection test "${i}" must be a nonempty array.`);
924
+ let o = a.map(n);
925
+ return i === "and" ? { all: o } : { any: o };
926
+ };
927
+ return n(t);
928
+ }
929
+ function Lt(e) {
930
+ let t = /* @__PURE__ */ new Set(), n = (e) => {
931
+ if ("param" in e) t.add(e.param);
932
+ else if ("selectionActive" in e) t.add(typeof e.selectionActive == "string" ? e.selectionActive : e.selectionActive.param);
933
+ else if ("not" in e) n(e.not);
934
+ else for (let t of "all" in e ? e.all : e.any) n(t);
935
+ };
936
+ return n(e), Array.from(t);
937
+ }
938
+ function Rt(e) {
939
+ let t = /* @__PURE__ */ new Map(), n = (e) => {
940
+ if ("param" in e) t.set(e.param, { selectionActive: {
941
+ param: e.param,
942
+ type: e.type,
943
+ components: e.projections?.map(({ component: e }) => e) ?? []
944
+ } });
945
+ else if ("selectionActive" in e) t.set(e.selectionActive.param, e);
946
+ else if ("not" in e) n(e.not);
947
+ else for (let t of "all" in e ? e.all : e.any) n(t);
948
+ };
949
+ return n(e), { all: [e, { any: Array.from(t.values()) }] };
950
+ }
951
+ function zt(e) {
952
+ if ("param" in e) return e.empty;
953
+ if ("selectionActive" in e) return !1;
954
+ if ("not" in e) return !zt(e.not);
955
+ let t = "all" in e ? e.all : e.any;
956
+ return "all" in e ? t.every(zt) : t.some(zt);
957
+ }
958
+ function Bt(e, t, n, r, i) {
959
+ let a = (e) => {
960
+ let t = n.findSelectionCapability?.(e);
961
+ if (t) return t;
962
+ let r = n.findValue(e);
963
+ if (!r || ![
964
+ "single",
965
+ "multi",
966
+ "interval"
967
+ ].includes(r.type)) throw Error(`Selection parameter "${e}" was not found.`);
968
+ return {
969
+ type: r.type,
970
+ components: r.type === "interval" ? Object.keys(r.intervals).map((e) => ({ component: e })) : []
971
+ };
972
+ }, o = t, s = (e) => {
973
+ let t = o[e];
974
+ if (t && "field" in t) return t.field;
975
+ if (t && "condition" in t) return (Array.isArray(t.condition) ? t.condition : [t.condition]).find((e) => "field" in e)?.field;
976
+ }, c = (e) => {
977
+ if ("all" in e) return { all: e.all.map(c) };
978
+ if ("any" in e) return { any: e.any.map(c) };
979
+ if ("not" in e) return { not: c(e.not) };
980
+ let t = "param" in e ? e.param : e.selectionActive, n = a(t);
981
+ if ("selectionActive" in e) return { selectionActive: {
982
+ param: t,
983
+ type: n.type,
984
+ components: n.components.map(({ component: e }) => e)
985
+ } };
986
+ if (e.project && n.type !== "interval") throw Error(`Selection "${t}" is not an interval selection; project is invalid.`);
987
+ if (n.type !== "interval") return {
988
+ param: t,
989
+ type: n.type,
990
+ empty: e.empty
991
+ };
992
+ let l = n.components.map(({ component: e }) => e);
993
+ if (e.project && (Object.keys(e.project).length !== l.length || l.some((t) => !(t in e.project)))) throw Error(`Selection "${t}" project must cover its declared components: ${l.join(", ")}.`);
994
+ let u = n.components.map(({ component: n, type: a }) => {
995
+ let c = e.project?.[n] ?? n;
996
+ if (![
997
+ "x",
998
+ "x2",
999
+ "y",
1000
+ "y2"
1001
+ ].includes(c)) throw Error(`Selection "${t}" has unsupported component "${n}".`);
1002
+ let l = o[c];
1003
+ if (e.project && (!l || !("field" in l))) throw Error(`Selection "${t}" project target "${c}" must be an unconditional field encoding.`);
1004
+ let u = s(c);
1005
+ if (!u) throw Error(`Selection "${t}" has no field for "${c}".`);
1006
+ if (e.project) {
1007
+ let e = i?.(c) ?? ("type" in l ? l.type : void 0) ?? ("type" in o[n] ? o[n].type : void 0);
1008
+ if (![
1009
+ "quantitative",
1010
+ "index",
1011
+ "locus"
1012
+ ].includes(a) || e !== a) throw Error(`Selection "${t}" project target "${c}" must have matching quantitative, index, or locus type (${a} vs ${e}).`);
1013
+ }
1014
+ let d = n + "2", f = e.project ? void 0 : s(d);
1015
+ return {
1016
+ component: n,
1017
+ input: c,
1018
+ field: u,
1019
+ ...f && f !== u ? {
1020
+ secondaryInput: d,
1021
+ secondaryField: f,
1022
+ hitTest: r
1023
+ } : {}
1024
+ };
1025
+ });
1026
+ return {
1027
+ param: t,
1028
+ type: "interval",
1029
+ empty: e.empty,
1030
+ projections: u
1031
+ };
1032
+ };
1033
+ return c(e);
1034
+ }
1035
+ function Vt(e, t) {
1036
+ if ("all" in e || "any" in e) {
1037
+ let n = ("all" in e ? e.all : e.any).map((e) => Vt(e, t));
1038
+ return "all" in e ? (e) => n.every((t) => t(e)) : (e) => n.some((t) => t(e));
1039
+ }
1040
+ if ("not" in e) {
1041
+ let n = Vt(e.not, t);
1042
+ return (e) => !n(e);
1043
+ }
1044
+ if ("selectionActive" in e) {
1045
+ let { param: n } = e.selectionActive;
1046
+ return () => Ht(t(n));
1047
+ }
1048
+ let { param: n, type: r, empty: i } = e;
1049
+ if (r === "single") return (e) => {
1050
+ let r = t(n);
1051
+ return r.uniqueId == null ? i : r.uniqueId === e[w];
1052
+ };
1053
+ if (r === "multi") return (e) => {
1054
+ let r = t(n);
1055
+ return r.data.size === 0 ? i : r.data.has(e[w]);
1056
+ };
1057
+ let a = e.projections.map((e) => ({
1058
+ ...e,
1059
+ read: Nt(e.field),
1060
+ readSecondary: e.secondaryField ? Nt(e.secondaryField) : void 0
1061
+ }));
1062
+ return (e) => {
1063
+ let r = t(n);
1064
+ if (!Ht(r)) return i;
1065
+ for (let t of a) {
1066
+ let n = r.intervals[t.component], i = t.read(e), a = t.readSecondary?.(e), [o, s] = n;
1067
+ if (!(a === void 0 ? o <= i && i < s : t.hitTest === "endpoints" ? o <= i && i < s || o <= a && a < s : t.hitTest === "encloses" ? o <= Math.min(i, a) && Math.max(i, a) <= s : o < Math.max(i, a) && Math.min(i, a) < s)) return !1;
1068
+ }
1069
+ return !0;
1070
+ };
1071
+ }
1072
+ function Ht(e) {
1073
+ if (e.type === "single") return e.uniqueId != null;
1074
+ if (e.type === "multi") return e.data.size !== 0;
1075
+ if (e.type === "interval") return Object.values(e.intervals).every((e) => !!e);
1076
+ throw Error(`Unsupported selection type: ${e.type}`);
1077
+ }
1078
+ //#endregion
756
1079
  //#region ../core/src/encoder/accessor.js
757
- function wt(e, t, n) {
1080
+ function Ut(e, t, n) {
758
1081
  if (!e) throw Error("Cannot create an accessor without a channel.");
759
1082
  function r(n) {
760
1083
  let r = n;
761
- return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = Dt(t), r.scaleChannel = ((Ht(t) && t.resolutionChannel) ?? (pn(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = Ot({
1084
+ return r.fields ??= [], r.constant = r.fields.length === 0, r.channelDef = t, r.channel = e, r.sourceKey = Kt(t), r.scaleChannel = ((cn(t) && t.resolutionChannel) ?? (Mn(e) && e)) || void 0, r.scaleChannel !== void 0 && (r.domainKeyBase = qt({
762
1085
  scaleChannel: r.scaleChannel,
763
- source: Et(t)
1086
+ source: Gt(t)
764
1087
  }).domainKeyBase), r.equals = (e) => e ? r === e || r.sourceKey !== void 0 && r.sourceKey === e.sourceKey : !1, r.asNumberAccessor = () => r, r;
765
1088
  }
766
1089
  function i(e) {
@@ -773,120 +1096,89 @@ function wt(e, t, n) {
773
1096
  return r(() => t);
774
1097
  }
775
1098
  }
776
- if (C(t)) try {
777
- return r(St(t.field));
1099
+ if (T(t)) try {
1100
+ return r(Nt(t.field));
778
1101
  } catch (e) {
779
1102
  throw Error(`Invalid field definition: ${e.message}`, { cause: e });
780
1103
  }
781
- else if (qt(t)) return r(n.createExpression(t.expr));
782
- else if (Vt(t)) return i(t.datum);
783
- else if (Bt(t)) return i(t.value);
1104
+ else if (pn(t)) return r(n.createExpression(t.expr));
1105
+ else if (sn(t)) return i(t.datum);
1106
+ else if (on(t)) return i(t.value);
784
1107
  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".`);
785
1108
  }
786
- function Tt(e) {
1109
+ function Wt(e) {
787
1110
  return e.scaleChannel !== void 0;
788
1111
  }
789
- function Et(e) {
790
- if (C(e)) return {
1112
+ function Gt(e) {
1113
+ if (T(e)) return {
791
1114
  kind: "field",
792
1115
  value: e.field
793
1116
  };
794
- if (qt(e)) return {
1117
+ if (pn(e)) return {
795
1118
  kind: "expr",
796
1119
  value: e.expr
797
1120
  };
798
- if (Vt(e)) return {
1121
+ if (sn(e)) return {
799
1122
  kind: "datum",
800
1123
  value: e.datum
801
1124
  };
802
- if (Bt(e)) return {
1125
+ if (on(e)) return {
803
1126
  kind: "value",
804
1127
  value: e.value
805
1128
  };
806
1129
  throw Error("Cannot derive a domain key from channel definition: " + JSON.stringify(e));
807
1130
  }
808
- function Dt(e) {
809
- let t = Et(e);
810
- return t.kind === "datum" || t.kind === "value" ? "constant|" + jt(t.value) : t.kind + "|" + At(t);
1131
+ function Kt(e) {
1132
+ let t = Gt(e);
1133
+ return t.kind === "datum" || t.kind === "value" ? "constant|" + Xt(t.value) : t.kind + "|" + Yt(t);
811
1134
  }
812
- function Ot({ scaleChannel: e, source: t, type: n }) {
1135
+ function qt({ scaleChannel: e, source: t, type: n }) {
813
1136
  if (!e) throw Error("Cannot build a domain key without a scale channel.");
814
- let r = e + "|" + t.kind + "|" + At(t);
1137
+ let r = e + "|" + t.kind + "|" + Yt(t);
815
1138
  return {
816
1139
  domainKeyBase: r,
817
1140
  domainKey: n ? n + "|" + r : void 0
818
1141
  };
819
1142
  }
820
- function kt(e, t) {
821
- let { domainKey: n, domainKeyBase: r } = Ot({
1143
+ function Jt(e, t) {
1144
+ let { domainKey: n, domainKeyBase: r } = qt({
822
1145
  scaleChannel: e.scaleChannel,
823
- source: Et(e.channelDef),
1146
+ source: Gt(e.channelDef),
824
1147
  type: t
825
1148
  });
826
1149
  if (!n) throw Error("Cannot finalize a domain key without a resolved type.");
827
1150
  return e.domainKeyBase = r, e.domainKey = n, n;
828
1151
  }
829
- function At(e) {
1152
+ function Yt(e) {
830
1153
  switch (e.kind) {
831
1154
  case "field":
832
1155
  case "expr": return e.value;
833
1156
  case "datum":
834
- case "value": return jt(e.value);
1157
+ case "value": return Xt(e.value);
835
1158
  default: throw Error("Unknown domain key source.");
836
1159
  }
837
1160
  }
838
- function jt(e) {
1161
+ function Xt(e) {
839
1162
  return G(e) ? "expr:" + e.expr : e === void 0 ? "undefined" : JSON.stringify(e);
840
1163
  }
841
1164
  //#endregion
842
1165
  //#region ../core/src/encoder/encoder.js
843
- function Mt(e, t, n, r = "intersects") {
844
- let i, a = ia(!1), o = () => {
845
- if (i) return i;
846
- if (e.singleParam && !n.findValue(e.params[0])) return a;
847
- let o = e.params.map((r) => {
848
- let i = n.findValue(r);
849
- if (!i) throw Error(`Selection parameter "${r}" was not found.`);
850
- let a = {};
851
- if (H(i)) for (let n of Object.keys(i.intervals)) {
852
- let i = e.singleParam ? [n] : [n, ln(n)];
853
- for (let e of i) {
854
- let n = t[e];
855
- if (C(n)) a[e] = n.field;
856
- else if (n && "condition" in n) {
857
- let t = n.condition, r = (Array.isArray(t) ? t : [t]).find(C);
858
- C(r) && (a[e] = r.field);
859
- }
860
- }
861
- if (!a[n]) throw Error(`Selection "${r}" has an interval for "${n}" channel, but could not find a fieldDef: ${JSON.stringify(t[n])}`);
862
- }
863
- return {
864
- param: r,
865
- selection: i,
866
- fields: a
867
- };
868
- }), s = e.singleParam ? Fi({
869
- type: "filter",
870
- param: e.params[0],
871
- fields: o[0].fields,
872
- empty: e.empty
873
- }, o[0].selection) : Vi(o, e.empty, r);
874
- return i = n.createExpression(s), i;
875
- };
876
- return Object.assign((e) => o()(e), { selection: e });
1166
+ function Zt(e, t, n, r = "intersects", i) {
1167
+ let a, o, s = Lt(e), c = () => (a ??= Bt(e, t, n, r, i), a);
1168
+ return s.every((e) => n.findValue(e)) && c(), Object.defineProperty((e) => s.some((e) => !n.findValue(e)) ? !1 : (o ??= Vt(c(), (e) => n.findValue(e)), o(e)), "selection", { get: c });
877
1169
  }
878
- function Nt(e, t, n, r, i = "intersects") {
879
- let a = Jt(t) || Yt(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], o = [...a, t], s = o.map((t, s) => {
880
- let c = a[s], l = wt(e, t, r), u = c ? Ii(c) : void 0;
1170
+ function Qt(e, t, n, r, i = "intersects", a) {
1171
+ let o = mn(t) || hn(t) ? Array.isArray(t.condition) ? t.condition : [t.condition] : [], s = [...o, t], c = s.map((t, c) => {
1172
+ let l = o[c], u = Ut(e, t, r), d = l ? ea(l) : void 0;
881
1173
  return {
882
- accessor: l,
883
- predicate: u ? Mt(u, n, r, i) : ia(s === o.length - 1)
1174
+ accessor: u,
1175
+ predicate: d ? Zt(d, n, r, i, a) : Sa(c === s.length - 1)
884
1176
  };
885
1177
  });
886
- if (s.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
887
- return s;
1178
+ if (c.filter((e) => !e.accessor.constant).length > 1) throw Error("Only one accessor can be non-constant. Channel: " + e);
1179
+ return c;
888
1180
  }
889
- function Pt(e, t) {
1181
+ function $t(e, t) {
890
1182
  let n = {}, r = (t) => e.getScaleResolution(t)?.getScale(), i = (t, n) => {
891
1183
  let r = e.getScaleResolution(t);
892
1184
  e.paramRuntime.operation("encoder scale", [r.getMappingRef()], () => r.getScale(), n);
@@ -894,25 +1186,25 @@ function Pt(e, t) {
894
1186
  for (let [a, o] of Object.entries(t)) {
895
1187
  if (!o) continue;
896
1188
  let s = a;
897
- Ft(s) || (n[s] = Rt(Nt(s, o, t, e.paramRuntime, e.mark.defaultHitTestMode), r, i));
1189
+ en(s) || (n[s] = rn(Qt(s, o, t, e.paramRuntime, e.mark.defaultHitTestMode, (t) => e.getScaleResolution(t)?.type), r, i));
898
1190
  }
899
1191
  return n;
900
1192
  }
901
- function Ft(e) {
1193
+ function en(e) {
902
1194
  return e === "key" || e === "search" || e === "tooltip" || e === "order";
903
1195
  }
904
- function It(e) {
1196
+ function tn(e) {
905
1197
  return e.branches.map((e) => e.accessor);
906
1198
  }
907
- function Lt(e) {
1199
+ function nn(e) {
908
1200
  return e.branches.find((e) => !e.accessor.constant)?.accessor;
909
1201
  }
910
- function Rt(e, t, n) {
1202
+ function rn(e, t, n) {
911
1203
  if (e.length === 1) {
912
- let r = zt(e[0].accessor, t, n);
1204
+ let r = an(e[0].accessor, t, n);
913
1205
  return Object.assign(r, { branches: e });
914
1206
  }
915
- let r = e.map((e) => e.predicate), i = e.map((e) => zt(e.accessor, t, n)), a = Object.assign((e) => {
1207
+ let r = e.map((e) => e.predicate), i = e.map((e) => an(e.accessor, t, n)), a = Object.assign((e) => {
916
1208
  for (let t = 0; t < i.length; t++) if (r[t](e)) return i[t](e);
917
1209
  }, {
918
1210
  constant: !1,
@@ -924,7 +1216,7 @@ function Rt(e, t, n) {
924
1216
  get: () => i.find((e) => e.scale)?.scale
925
1217
  });
926
1218
  }
927
- function zt(e, t, n) {
1219
+ function an(e, t, n) {
928
1220
  let { channel: r, scaleChannel: i, channelDef: a } = e, o = e.scaleChannel ? t(i) : void 0;
929
1221
  if (i && !o) throw Error(`Missing scale! "${r}": ${JSON.stringify(a)}`);
930
1222
  let s = Object.assign(o ? (t) => o(e(t)) : (t) => e(t), {
@@ -932,7 +1224,7 @@ function zt(e, t, n) {
932
1224
  constant: e.constant,
933
1225
  branches: [{
934
1226
  accessor: e,
935
- predicate: ia(!0)
1227
+ predicate: Sa(!0)
936
1228
  }],
937
1229
  channelDef: a
938
1230
  });
@@ -940,91 +1232,91 @@ function zt(e, t, n) {
940
1232
  o = e, s.scale = e;
941
1233
  }), s;
942
1234
  }
943
- function Bt(e) {
1235
+ function on(e) {
944
1236
  return e && "value" in e;
945
1237
  }
946
- function C(e) {
1238
+ function T(e) {
947
1239
  return e && "field" in e;
948
1240
  }
949
- function Vt(e) {
1241
+ function sn(e) {
950
1242
  return e && "datum" in e;
951
1243
  }
952
- function Ht(e) {
953
- return C(e) || Vt(e) || qt(e) || Kt(e);
1244
+ function cn(e) {
1245
+ return T(e) || sn(e) || pn(e) || fn(e);
954
1246
  }
955
- function Ut(e) {
956
- if (Yt(e)) {
1247
+ function ln(e) {
1248
+ if (hn(e)) {
957
1249
  let t = e.condition;
958
- return (Array.isArray(t) ? t : [t]).find((e) => Ht(e));
959
- } else if (Ht(e)) return e;
1250
+ return (Array.isArray(t) ? t : [t]).find((e) => cn(e));
1251
+ } else if (cn(e)) return e;
960
1252
  }
961
- function Wt(e) {
962
- let t = e && Ut(e);
1253
+ function un(e) {
1254
+ let t = e && ln(e);
963
1255
  return t != null && t.type != "quantitative" && t.scale !== null;
964
1256
  }
965
- function Gt(e, t) {
1257
+ function dn(e, t) {
966
1258
  let n = e.mark.encoding[t];
967
1259
  if (Array.isArray(n)) throw Error("Not a channel def with scale!");
968
1260
  {
969
- let e = Ut(n);
1261
+ let e = ln(n);
970
1262
  if (e) return e;
971
1263
  }
972
1264
  throw Error("Not a channel def with scale!");
973
1265
  }
974
- function Kt(e) {
1266
+ function fn(e) {
975
1267
  return e && "chrom" in e;
976
1268
  }
977
- function qt(e) {
1269
+ function pn(e) {
978
1270
  return e && "expr" in e;
979
1271
  }
980
- function Jt(e) {
981
- return (C(e) || Vt(e)) && "condition" in e;
1272
+ function mn(e) {
1273
+ return (T(e) || sn(e)) && "condition" in e;
982
1274
  }
983
- function Yt(e) {
984
- return Bt(e) && "condition" in e;
1275
+ function hn(e) {
1276
+ return on(e) && "condition" in e;
985
1277
  }
986
- var Xt = ["x", "y"], Zt = ["x2", "y2"], Qt = ["xOffset", "yOffset"], $t = [...Xt, ...Zt];
987
- function en(e) {
988
- return Xt.includes(e);
1278
+ var gn = ["x", "y"], _n = ["x2", "y2"], vn = ["xOffset", "yOffset"], yn = [...gn, ..._n];
1279
+ function bn(e) {
1280
+ return gn.includes(e);
989
1281
  }
990
- function tn(e) {
991
- return $t.includes(e);
1282
+ function xn(e) {
1283
+ return yn.includes(e);
992
1284
  }
993
- function nn(e) {
994
- return Qt.includes(e);
1285
+ function Sn(e) {
1286
+ return vn.includes(e);
995
1287
  }
996
- function rn(e) {
997
- return un(e) == "x" ? "xOffset" : "yOffset";
1288
+ function Cn(e) {
1289
+ return kn(e) == "x" ? "xOffset" : "yOffset";
998
1290
  }
999
- function an(e, t, n) {
1291
+ function wn(e, t, n) {
1000
1292
  return t ?? (n ? 0 : e);
1001
1293
  }
1002
- var on = {
1294
+ var Tn = {
1003
1295
  x: "x2",
1004
1296
  y: "y2"
1005
- }, sn = Object.fromEntries(Object.entries(on).map((e) => [e[1], e[0]]));
1006
- function cn(e) {
1007
- return e in sn;
1297
+ }, En = Object.fromEntries(Object.entries(Tn).map((e) => [e[1], e[0]]));
1298
+ function Dn(e) {
1299
+ return e in En;
1008
1300
  }
1009
- function ln(e) {
1010
- let t = on[e];
1301
+ function On(e) {
1302
+ let t = Tn[e];
1011
1303
  if (t) return t;
1012
1304
  throw Error(`${e} has no secondary channel!`);
1013
1305
  }
1014
- function un(e) {
1015
- return sn[e] ?? e;
1306
+ function kn(e) {
1307
+ return En[e] ?? e;
1016
1308
  }
1017
- function dn(e) {
1309
+ function An(e) {
1018
1310
  return [
1019
1311
  "color",
1020
1312
  "fill",
1021
1313
  "stroke"
1022
- ].includes(un(e));
1314
+ ].includes(kn(e));
1023
1315
  }
1024
- function fn(e) {
1316
+ function jn(e) {
1025
1317
  return ["shape", "direction"].includes(e);
1026
1318
  }
1027
- function pn(e) {
1319
+ function Mn(e) {
1028
1320
  return [
1029
1321
  "x",
1030
1322
  "y",
@@ -1048,7 +1340,7 @@ function pn(e) {
1048
1340
  "sample"
1049
1341
  ].includes(e);
1050
1342
  }
1051
- function mn(e) {
1343
+ function Nn(e) {
1052
1344
  switch (e) {
1053
1345
  case "shape": return [
1054
1346
  "circle",
@@ -1066,13 +1358,17 @@ function mn(e) {
1066
1358
  "x",
1067
1359
  "+"
1068
1360
  ];
1069
- case "direction": return ["forward", "reverse"];
1361
+ case "direction": return [
1362
+ "forward",
1363
+ "reverse",
1364
+ "both"
1365
+ ];
1070
1366
  default:
1071
1367
  }
1072
1368
  }
1073
- function hn(e) {
1074
- if (!fn(e)) throw Error("Not a discrete channel: " + e);
1075
- let t = new Map(mn(e).map((e, t) => [e, t]));
1369
+ function Pn(e) {
1370
+ if (!jn(e)) throw Error("Not a discrete channel: " + e);
1371
+ let t = new Map(Nn(e).map((e, t) => [e, t]));
1076
1372
  return (n) => {
1077
1373
  let r = t.get(n);
1078
1374
  if (r !== void 0) return r;
@@ -1081,53 +1377,53 @@ function hn(e) {
1081
1377
  }
1082
1378
  //#endregion
1083
1379
  //#region ../../node_modules/vega-expression/build/vega-expression.js
1084
- var gn = "RawCode", _n = "Literal", vn = "Property", yn = "Identifier", bn = "ArrayExpression", xn = "BinaryExpression", Sn = "CallExpression", Cn = "ConditionalExpression", wn = "LogicalExpression", Tn = "MemberExpression", En = "ObjectExpression", Dn = "UnaryExpression";
1085
- function w(e) {
1380
+ var Fn = "RawCode", In = "Literal", Ln = "Property", Rn = "Identifier", zn = "ArrayExpression", Bn = "BinaryExpression", Vn = "CallExpression", Hn = "ConditionalExpression", Un = "LogicalExpression", Wn = "MemberExpression", Gn = "ObjectExpression", Kn = "UnaryExpression";
1381
+ function E(e) {
1086
1382
  this.type = e;
1087
1383
  }
1088
- w.prototype.visit = function(e) {
1384
+ E.prototype.visit = function(e) {
1089
1385
  let t, n, r;
1090
1386
  if (e(this)) return 1;
1091
- for (t = On(this), n = 0, r = t.length; n < r; ++n) if (t[n].visit(e)) return 1;
1387
+ for (t = qn(this), n = 0, r = t.length; n < r; ++n) if (t[n].visit(e)) return 1;
1092
1388
  };
1093
- function On(e) {
1389
+ function qn(e) {
1094
1390
  switch (e.type) {
1095
- case bn: return e.elements;
1096
- case xn:
1097
- case wn: return [e.left, e.right];
1098
- case Sn: return [e.callee].concat(e.arguments);
1099
- case Cn: return [
1391
+ case zn: return e.elements;
1392
+ case Bn:
1393
+ case Un: return [e.left, e.right];
1394
+ case Vn: return [e.callee].concat(e.arguments);
1395
+ case Hn: return [
1100
1396
  e.test,
1101
1397
  e.consequent,
1102
1398
  e.alternate
1103
1399
  ];
1104
- case Tn: return [e.object, e.property];
1105
- case En: return e.properties;
1106
- case vn: return [e.key, e.value];
1107
- case Dn: return [e.argument];
1108
- case yn:
1109
- case _n:
1110
- case gn:
1400
+ case Wn: return [e.object, e.property];
1401
+ case Gn: return e.properties;
1402
+ case Ln: return [e.key, e.value];
1403
+ case Kn: return [e.argument];
1404
+ case Rn:
1405
+ case In:
1406
+ case Fn:
1111
1407
  default: return [];
1112
1408
  }
1113
1409
  }
1114
- var T, E, D, O, k, kn = 1, An = 2, A = 3, j = 4, jn = 5, M = 6, N = 7, Mn = 8, Nn = 9;
1115
- T = {}, T[kn] = "Boolean", T[An] = "<end>", T[A] = "Identifier", T[j] = "Keyword", T[jn] = "Null", T[M] = "Numeric", T[N] = "Punctuator", T[Mn] = "String", T[Nn] = "RegularExpression";
1116
- var Pn = "ArrayExpression", Fn = "BinaryExpression", In = "CallExpression", Ln = "ConditionalExpression", Rn = "Identifier", zn = "Literal", Bn = "LogicalExpression", Vn = "MemberExpression", Hn = "ObjectExpression", Un = "Property", Wn = "UnaryExpression", P = "Unexpected token %0", Gn = "Unexpected number", Kn = "Unexpected string", qn = "Unexpected identifier", Jn = "Unexpected reserved word", Yn = "Unexpected end of input", Xn = "Invalid regular expression", Zn = "Invalid regular expression: missing /", Qn = "Octal literals are not allowed in strict mode.", $n = "Duplicate data property in object literal not allowed in strict mode", F = "ILLEGAL", er = "Disabled.", tr = /* @__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]"), nr = /* @__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]");
1117
- function rr(e, t) {
1410
+ var D, O, k, A, j, Jn = 1, Yn = 2, M = 3, N = 4, Xn = 5, P = 6, F = 7, I = 8, Zn = 9;
1411
+ D = {}, D[Jn] = "Boolean", D[Yn] = "<end>", D[M] = "Identifier", D[N] = "Keyword", D[Xn] = "Null", D[P] = "Numeric", D[F] = "Punctuator", D[I] = "String", D[Zn] = "RegularExpression";
1412
+ var Qn = "ArrayExpression", $n = "BinaryExpression", er = "CallExpression", tr = "ConditionalExpression", nr = "Identifier", rr = "Literal", ir = "LogicalExpression", ar = "MemberExpression", or = "ObjectExpression", sr = "Property", cr = "UnaryExpression", L = "Unexpected token %0", lr = "Unexpected number", ur = "Unexpected string", dr = "Unexpected identifier", fr = "Unexpected reserved word", pr = "Unexpected end of input", mr = "Invalid regular expression", hr = "Invalid regular expression: missing /", gr = "Octal literals are not allowed in strict mode.", _r = "Duplicate data property in object literal not allowed in strict mode", R = "ILLEGAL", vr = "Disabled.", yr = /* @__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]"), br = /* @__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]");
1413
+ function xr(e, t) {
1118
1414
  /* istanbul ignore next */
1119
1415
  if (!e) throw Error("ASSERT: " + t);
1120
1416
  }
1121
- function I(e) {
1417
+ function z(e) {
1122
1418
  return e >= 48 && e <= 57;
1123
1419
  }
1124
- function ir(e) {
1420
+ function Sr(e) {
1125
1421
  return "0123456789abcdefABCDEF".includes(e);
1126
1422
  }
1127
- function ar(e) {
1423
+ function Cr(e) {
1128
1424
  return "01234567".includes(e);
1129
1425
  }
1130
- function or(e) {
1426
+ function wr(e) {
1131
1427
  return e === 32 || e === 9 || e === 11 || e === 12 || e === 160 || e >= 5760 && [
1132
1428
  5760,
1133
1429
  6158,
@@ -1148,16 +1444,16 @@ function or(e) {
1148
1444
  65279
1149
1445
  ].includes(e);
1150
1446
  }
1151
- function sr(e) {
1447
+ function Tr(e) {
1152
1448
  return e === 10 || e === 13 || e === 8232 || e === 8233;
1153
1449
  }
1154
- function cr(e) {
1155
- return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && tr.test(String.fromCharCode(e));
1450
+ function Er(e) {
1451
+ return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 92 || e >= 128 && yr.test(String.fromCharCode(e));
1156
1452
  }
1157
- function lr(e) {
1158
- return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && nr.test(String.fromCharCode(e));
1453
+ function Dr(e) {
1454
+ return e === 36 || e === 95 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e >= 48 && e <= 57 || e === 92 || e >= 128 && br.test(String.fromCharCode(e));
1159
1455
  }
1160
- var ur = {
1456
+ var Or = {
1161
1457
  if: 1,
1162
1458
  in: 1,
1163
1459
  do: 1,
@@ -1201,47 +1497,47 @@ var ur = {
1201
1497
  instanceof: 1,
1202
1498
  implements: 1
1203
1499
  };
1204
- function dr() {
1205
- for (; D < O;) {
1206
- let e = E.charCodeAt(D);
1207
- if (or(e) || sr(e)) ++D;
1500
+ function kr() {
1501
+ for (; k < A;) {
1502
+ let e = O.charCodeAt(k);
1503
+ if (wr(e) || Tr(e)) ++k;
1208
1504
  else break;
1209
1505
  }
1210
1506
  }
1211
- function fr(e) {
1507
+ function Ar(e) {
1212
1508
  var t, n, r, i = 0;
1213
- for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) D < O && ir(E[D]) ? (r = E[D++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : R({}, P, F);
1509
+ for (n = e === "u" ? 4 : 2, t = 0; t < n; ++t) k < A && Sr(O[k]) ? (r = O[k++], i = i * 16 + "0123456789abcdef".indexOf(r.toLowerCase())) : V({}, L, R);
1214
1510
  return String.fromCharCode(i);
1215
1511
  }
1216
- function pr() {
1217
- var e = E[D], t = 0, n, r;
1218
- for (e === "}" && R({}, P, F); D < O && (e = E[D++], ir(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
1219
- return (t > 1114111 || e !== "}") && R({}, P, F), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
1512
+ function jr() {
1513
+ var e = O[k], t = 0, n, r;
1514
+ for (e === "}" && V({}, L, R); k < A && (e = O[k++], Sr(e));) t = t * 16 + "0123456789abcdef".indexOf(e.toLowerCase());
1515
+ return (t > 1114111 || e !== "}") && V({}, L, R), t <= 65535 ? String.fromCharCode(t) : (n = (t - 65536 >> 10) + 55296, r = (t - 65536 & 1023) + 56320, String.fromCharCode(n, r));
1220
1516
  }
1221
- function mr() {
1222
- var e = E.charCodeAt(D++), t = String.fromCharCode(e);
1223
- for (e === 92 && (E.charCodeAt(D) !== 117 && R({}, P, F), ++D, e = fr("u"), (!e || e === "\\" || !cr(e.charCodeAt(0))) && R({}, P, F), t = e); D < O && (e = E.charCodeAt(D), lr(e));) ++D, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), E.charCodeAt(D) !== 117 && R({}, P, F), ++D, e = fr("u"), (!e || e === "\\" || !lr(e.charCodeAt(0))) && R({}, P, F), t += e);
1517
+ function Mr() {
1518
+ var e = O.charCodeAt(k++), t = String.fromCharCode(e);
1519
+ for (e === 92 && (O.charCodeAt(k) !== 117 && V({}, L, R), ++k, e = Ar("u"), (!e || e === "\\" || !Er(e.charCodeAt(0))) && V({}, L, R), t = e); k < A && (e = O.charCodeAt(k), Dr(e));) ++k, t += String.fromCharCode(e), e === 92 && (t = t.substr(0, t.length - 1), O.charCodeAt(k) !== 117 && V({}, L, R), ++k, e = Ar("u"), (!e || e === "\\" || !Dr(e.charCodeAt(0))) && V({}, L, R), t += e);
1224
1520
  return t;
1225
1521
  }
1226
- function hr() {
1227
- for (var e = D++, t; D < O;) {
1228
- if (t = E.charCodeAt(D), t === 92) return D = e, mr();
1229
- if (lr(t)) ++D;
1522
+ function Nr() {
1523
+ for (var e = k++, t; k < A;) {
1524
+ if (t = O.charCodeAt(k), t === 92) return k = e, Mr();
1525
+ if (Dr(t)) ++k;
1230
1526
  else break;
1231
1527
  }
1232
- return E.slice(e, D);
1528
+ return O.slice(e, k);
1233
1529
  }
1234
- function gr() {
1235
- var e = D, t = E.charCodeAt(D) === 92 ? mr() : hr();
1530
+ function Pr() {
1531
+ var e = k, t = O.charCodeAt(k) === 92 ? Mr() : Nr();
1236
1532
  return {
1237
- type: t.length === 1 ? A : ur.hasOwnProperty(t) ? j : t === "null" ? jn : t === "true" || t === "false" ? kn : A,
1533
+ type: t.length === 1 ? M : Or.hasOwnProperty(t) ? N : t === "null" ? Xn : t === "true" || t === "false" ? Jn : M,
1238
1534
  value: t,
1239
1535
  start: e,
1240
- end: D
1536
+ end: k
1241
1537
  };
1242
1538
  }
1243
- function _r() {
1244
- var e = D, t = E.charCodeAt(D), n, r = E[D], i, a, o;
1539
+ function Fr() {
1540
+ var e = k, t = O.charCodeAt(k), n, r = O[k], i, a, o;
1245
1541
  switch (t) {
1246
1542
  case 46:
1247
1543
  case 40:
@@ -1254,13 +1550,13 @@ function _r() {
1254
1550
  case 93:
1255
1551
  case 58:
1256
1552
  case 63:
1257
- case 126: return ++D, {
1258
- type: N,
1553
+ case 126: return ++k, {
1554
+ type: F,
1259
1555
  value: String.fromCharCode(t),
1260
1556
  start: e,
1261
- end: D
1557
+ end: k
1262
1558
  };
1263
- default: if (n = E.charCodeAt(D + 1), n === 61) switch (t) {
1559
+ default: if (n = O.charCodeAt(k + 1), n === 61) switch (t) {
1264
1560
  case 43:
1265
1561
  case 45:
1266
1562
  case 47:
@@ -1270,101 +1566,101 @@ function _r() {
1270
1566
  case 124:
1271
1567
  case 37:
1272
1568
  case 38:
1273
- case 42: return D += 2, {
1274
- type: N,
1569
+ case 42: return k += 2, {
1570
+ type: F,
1275
1571
  value: String.fromCharCode(t) + String.fromCharCode(n),
1276
1572
  start: e,
1277
- end: D
1573
+ end: k
1278
1574
  };
1279
1575
  case 33:
1280
- case 61: return D += 2, E.charCodeAt(D) === 61 && ++D, {
1281
- type: N,
1282
- value: E.slice(e, D),
1576
+ case 61: return k += 2, O.charCodeAt(k) === 61 && ++k, {
1577
+ type: F,
1578
+ value: O.slice(e, k),
1283
1579
  start: e,
1284
- end: D
1580
+ end: k
1285
1581
  };
1286
1582
  }
1287
1583
  }
1288
- if (o = E.substr(D, 4), o === ">>>=") return D += 4, {
1289
- type: N,
1584
+ if (o = O.substr(k, 4), o === ">>>=") return k += 4, {
1585
+ type: F,
1290
1586
  value: o,
1291
1587
  start: e,
1292
- end: D
1588
+ end: k
1293
1589
  };
1294
- if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return D += 3, {
1295
- type: N,
1590
+ if (a = o.substr(0, 3), a === ">>>" || a === "<<=" || a === ">>=") return k += 3, {
1591
+ type: F,
1296
1592
  value: a,
1297
1593
  start: e,
1298
- end: D
1594
+ end: k
1299
1595
  };
1300
- if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return D += 2, {
1301
- type: N,
1596
+ if (i = a.substr(0, 2), r === i[1] && "+-<>&|".includes(r) || i === "=>") return k += 2, {
1597
+ type: F,
1302
1598
  value: i,
1303
1599
  start: e,
1304
- end: D
1600
+ end: k
1305
1601
  };
1306
- if (i === "//" && R({}, P, F), "<>=!+-*%&|^/".includes(r)) return ++D, {
1307
- type: N,
1602
+ if (i === "//" && V({}, L, R), "<>=!+-*%&|^/".includes(r)) return ++k, {
1603
+ type: F,
1308
1604
  value: r,
1309
1605
  start: e,
1310
- end: D
1606
+ end: k
1311
1607
  };
1312
- R({}, P, F);
1608
+ V({}, L, R);
1313
1609
  }
1314
- function vr(e) {
1610
+ function Ir(e) {
1315
1611
  let t = "";
1316
- for (; D < O && ir(E[D]);) t += E[D++];
1317
- return t.length === 0 && R({}, P, F), cr(E.charCodeAt(D)) && R({}, P, F), {
1318
- type: M,
1612
+ for (; k < A && Sr(O[k]);) t += O[k++];
1613
+ return t.length === 0 && V({}, L, R), Er(O.charCodeAt(k)) && V({}, L, R), {
1614
+ type: P,
1319
1615
  value: parseInt("0x" + t, 16),
1320
1616
  start: e,
1321
- end: D
1617
+ end: k
1322
1618
  };
1323
1619
  }
1324
- function yr(e) {
1325
- let t = "0" + E[D++];
1326
- for (; D < O && ar(E[D]);) t += E[D++];
1327
- return (cr(E.charCodeAt(D)) || I(E.charCodeAt(D))) && R({}, P, F), {
1328
- type: M,
1620
+ function Lr(e) {
1621
+ let t = "0" + O[k++];
1622
+ for (; k < A && Cr(O[k]);) t += O[k++];
1623
+ return (Er(O.charCodeAt(k)) || z(O.charCodeAt(k))) && V({}, L, R), {
1624
+ type: P,
1329
1625
  value: parseInt(t, 8),
1330
1626
  octal: !0,
1331
1627
  start: e,
1332
- end: D
1628
+ end: k
1333
1629
  };
1334
1630
  }
1335
- function br() {
1336
- var e, t, n = E[D];
1337
- if (rr(I(n.charCodeAt(0)) || n === ".", "Numeric literal must start with a decimal digit or a decimal point"), t = D, e = "", n !== ".") {
1338
- if (e = E[D++], n = E[D], e === "0") {
1339
- if (n === "x" || n === "X") return ++D, vr(t);
1340
- if (ar(n)) return yr(t);
1341
- n && I(n.charCodeAt(0)) && R({}, P, F);
1631
+ function Rr() {
1632
+ var e, t, n = O[k];
1633
+ if (xr(z(n.charCodeAt(0)) || n === ".", "Numeric literal must start with a decimal digit or a decimal point"), t = k, e = "", n !== ".") {
1634
+ if (e = O[k++], n = O[k], e === "0") {
1635
+ if (n === "x" || n === "X") return ++k, Ir(t);
1636
+ if (Cr(n)) return Lr(t);
1637
+ n && z(n.charCodeAt(0)) && V({}, L, R);
1342
1638
  }
1343
- for (; I(E.charCodeAt(D));) e += E[D++];
1344
- n = E[D];
1639
+ for (; z(O.charCodeAt(k));) e += O[k++];
1640
+ n = O[k];
1345
1641
  }
1346
1642
  if (n === ".") {
1347
- for (e += E[D++]; I(E.charCodeAt(D));) e += E[D++];
1348
- n = E[D];
1643
+ for (e += O[k++]; z(O.charCodeAt(k));) e += O[k++];
1644
+ n = O[k];
1349
1645
  }
1350
- if (n === "e" || n === "E") if (e += E[D++], n = E[D], (n === "+" || n === "-") && (e += E[D++]), I(E.charCodeAt(D))) for (; I(E.charCodeAt(D));) e += E[D++];
1351
- else R({}, P, F);
1352
- return cr(E.charCodeAt(D)) && R({}, P, F), {
1353
- type: M,
1646
+ if (n === "e" || n === "E") if (e += O[k++], n = O[k], (n === "+" || n === "-") && (e += O[k++]), z(O.charCodeAt(k))) for (; z(O.charCodeAt(k));) e += O[k++];
1647
+ else V({}, L, R);
1648
+ return Er(O.charCodeAt(k)) && V({}, L, R), {
1649
+ type: P,
1354
1650
  value: parseFloat(e),
1355
1651
  start: t,
1356
- end: D
1652
+ end: k
1357
1653
  };
1358
1654
  }
1359
- function xr() {
1655
+ function zr() {
1360
1656
  var e = "", t, n, r, i, a = !1;
1361
- for (t = E[D], rr(t === "'" || t === "\"", "String literal must starts with a quote"), n = D, ++D; D < O;) if (r = E[D++], r === t) {
1657
+ for (t = O[k], xr(t === "'" || t === "\"", "String literal must starts with a quote"), n = k, ++k; k < A;) if (r = O[k++], r === t) {
1362
1658
  t = "";
1363
1659
  break;
1364
- } else if (r === "\\") if (r = E[D++], !r || !sr(r.charCodeAt(0))) switch (r) {
1660
+ } else if (r === "\\") if (r = O[k++], !r || !Tr(r.charCodeAt(0))) switch (r) {
1365
1661
  case "u":
1366
1662
  case "x":
1367
- E[D] === "{" ? (++D, e += pr()) : e += fr(r);
1663
+ O[k] === "{" ? (++k, e += jr()) : e += Ar(r);
1368
1664
  break;
1369
1665
  case "n":
1370
1666
  e += "\n";
@@ -1385,30 +1681,30 @@ function xr() {
1385
1681
  e += "\v";
1386
1682
  break;
1387
1683
  default:
1388
- ar(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), D < O && ar(E[D]) && (a = !0, i = i * 8 + "01234567".indexOf(E[D++]), "0123".includes(r) && D < O && ar(E[D]) && (i = i * 8 + "01234567".indexOf(E[D++]))), e += String.fromCharCode(i)) : e += r;
1684
+ Cr(r) ? (i = "01234567".indexOf(r), i !== 0 && (a = !0), k < A && Cr(O[k]) && (a = !0, i = i * 8 + "01234567".indexOf(O[k++]), "0123".includes(r) && k < A && Cr(O[k]) && (i = i * 8 + "01234567".indexOf(O[k++]))), e += String.fromCharCode(i)) : e += r;
1389
1685
  break;
1390
1686
  }
1391
- else r === "\r" && E[D] === "\n" && ++D;
1392
- else if (sr(r.charCodeAt(0))) break;
1687
+ else r === "\r" && O[k] === "\n" && ++k;
1688
+ else if (Tr(r.charCodeAt(0))) break;
1393
1689
  else e += r;
1394
- return t !== "" && R({}, P, F), {
1395
- type: Mn,
1690
+ return t !== "" && V({}, L, R), {
1691
+ type: I,
1396
1692
  value: e,
1397
1693
  octal: a,
1398
1694
  start: n,
1399
- end: D
1695
+ end: k
1400
1696
  };
1401
1697
  }
1402
- function Sr(e, t) {
1698
+ function Br(e, t) {
1403
1699
  let n = e;
1404
1700
  t.includes("u") && (n = n.replace(/\\u\{([0-9a-fA-F]+)\}/g, (e, t) => {
1405
1701
  if (parseInt(t, 16) <= 1114111) return "x";
1406
- R({}, Xn);
1702
+ V({}, mr);
1407
1703
  }).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g, "x"));
1408
1704
  try {
1409
1705
  new RegExp(n);
1410
1706
  } catch {
1411
- R({}, Xn);
1707
+ V({}, mr);
1412
1708
  }
1413
1709
  try {
1414
1710
  return new RegExp(e, t);
@@ -1416,30 +1712,30 @@ function Sr(e, t) {
1416
1712
  return null;
1417
1713
  }
1418
1714
  }
1419
- function Cr() {
1420
- var e = E[D], t, n, r, i;
1421
- for (rr(e === "/", "Regular expression literal must start with a slash"), t = E[D++], n = !1, r = !1; D < O;) if (e = E[D++], t += e, e === "\\") e = E[D++], sr(e.charCodeAt(0)) && R({}, Zn), t += e;
1422
- else if (sr(e.charCodeAt(0))) R({}, Zn);
1715
+ function Vr() {
1716
+ var e = O[k], t, n, r, i;
1717
+ for (xr(e === "/", "Regular expression literal must start with a slash"), t = O[k++], n = !1, r = !1; k < A;) if (e = O[k++], t += e, e === "\\") e = O[k++], Tr(e.charCodeAt(0)) && V({}, hr), t += e;
1718
+ else if (Tr(e.charCodeAt(0))) V({}, hr);
1423
1719
  else if (n) e === "]" && (n = !1);
1424
1720
  else if (e === "/") {
1425
1721
  r = !0;
1426
1722
  break;
1427
1723
  } else e === "[" && (n = !0);
1428
- return r || R({}, Zn), i = t.substr(1, t.length - 2), {
1724
+ return r || V({}, hr), i = t.substr(1, t.length - 2), {
1429
1725
  value: i,
1430
1726
  literal: t
1431
1727
  };
1432
1728
  }
1433
- function wr() {
1434
- for (var e, t = "", n = ""; D < O && (e = E[D], lr(e.charCodeAt(0)));) ++D, e === "\\" && D < O ? R({}, P, F) : (n += e, t += e);
1435
- return n.search(/[^gimuy]/g) >= 0 && R({}, Xn, n), {
1729
+ function Hr() {
1730
+ for (var e, t = "", n = ""; k < A && (e = O[k], Dr(e.charCodeAt(0)));) ++k, e === "\\" && k < A ? V({}, L, R) : (n += e, t += e);
1731
+ return n.search(/[^gimuy]/g) >= 0 && V({}, mr, n), {
1436
1732
  value: n,
1437
1733
  literal: t
1438
1734
  };
1439
1735
  }
1440
- function Tr() {
1736
+ function Ur() {
1441
1737
  var e, t, n, r;
1442
- return k = null, dr(), e = D, t = Cr(), n = wr(), r = Sr(t.value, n.value), {
1738
+ return j = null, kr(), e = k, t = Vr(), n = Hr(), r = Br(t.value, n.value), {
1443
1739
  literal: t.literal + n.literal,
1444
1740
  value: r,
1445
1741
  regex: {
@@ -1447,166 +1743,166 @@ function Tr() {
1447
1743
  flags: n.value
1448
1744
  },
1449
1745
  start: e,
1450
- end: D
1746
+ end: k
1451
1747
  };
1452
1748
  }
1453
- function Er(e) {
1454
- return e.type === A || e.type === j || e.type === kn || e.type === jn;
1749
+ function Wr(e) {
1750
+ return e.type === M || e.type === N || e.type === Jn || e.type === Xn;
1455
1751
  }
1456
- function Dr() {
1457
- if (dr(), D >= O) return {
1458
- type: An,
1459
- start: D,
1460
- end: D
1752
+ function Gr() {
1753
+ if (kr(), k >= A) return {
1754
+ type: Yn,
1755
+ start: k,
1756
+ end: k
1461
1757
  };
1462
- let e = E.charCodeAt(D);
1463
- return cr(e) ? gr() : e === 40 || e === 41 || e === 59 ? _r() : e === 39 || e === 34 ? xr() : e === 46 ? I(E.charCodeAt(D + 1)) ? br() : _r() : I(e) ? br() : _r();
1758
+ let e = O.charCodeAt(k);
1759
+ return Er(e) ? Pr() : e === 40 || e === 41 || e === 59 ? Fr() : e === 39 || e === 34 ? zr() : e === 46 ? z(O.charCodeAt(k + 1)) ? Rr() : Fr() : z(e) ? Rr() : Fr();
1464
1760
  }
1465
- function L() {
1466
- let e = k;
1467
- return D = e.end, k = Dr(), D = e.end, e;
1761
+ function B() {
1762
+ let e = j;
1763
+ return k = e.end, j = Gr(), k = e.end, e;
1468
1764
  }
1469
- function Or() {
1470
- let e = D;
1471
- k = Dr(), D = e;
1765
+ function Kr() {
1766
+ let e = k;
1767
+ j = Gr(), k = e;
1472
1768
  }
1473
- function kr(e) {
1474
- let t = new w(Pn);
1769
+ function qr(e) {
1770
+ let t = new E(Qn);
1475
1771
  return t.elements = e, t;
1476
1772
  }
1477
- function Ar(e, t, n) {
1478
- let r = new w(e === "||" || e === "&&" ? Bn : Fn);
1773
+ function Jr(e, t, n) {
1774
+ let r = new E(e === "||" || e === "&&" ? ir : $n);
1479
1775
  return r.operator = e, r.left = t, r.right = n, r;
1480
1776
  }
1481
- function jr(e, t) {
1482
- let n = new w(In);
1777
+ function Yr(e, t) {
1778
+ let n = new E(er);
1483
1779
  return n.callee = e, n.arguments = t, n;
1484
1780
  }
1485
- function Mr(e, t, n) {
1486
- let r = new w(Ln);
1781
+ function Xr(e, t, n) {
1782
+ let r = new E(tr);
1487
1783
  return r.test = e, r.consequent = t, r.alternate = n, r;
1488
1784
  }
1489
- function Nr(e) {
1490
- let t = new w(Rn);
1785
+ function Zr(e) {
1786
+ let t = new E(nr);
1491
1787
  return t.name = e, t;
1492
1788
  }
1493
- function Pr(e) {
1494
- let t = new w(zn);
1495
- return t.value = e.value, t.raw = E.slice(e.start, e.end), e.regex && (t.raw === "//" && (t.raw = "/(?:)/"), t.regex = e.regex), t;
1789
+ function Qr(e) {
1790
+ let t = new E(rr);
1791
+ return t.value = e.value, t.raw = O.slice(e.start, e.end), e.regex && (t.raw === "//" && (t.raw = "/(?:)/"), t.regex = e.regex), t;
1496
1792
  }
1497
- function Fr(e, t, n) {
1498
- let r = new w(Vn);
1793
+ function $r(e, t, n) {
1794
+ let r = new E(ar);
1499
1795
  return r.computed = e === "[", r.object = t, r.property = n, r.computed || (n.member = !0), r;
1500
1796
  }
1501
- function Ir(e) {
1502
- let t = new w(Hn);
1797
+ function ei(e) {
1798
+ let t = new E(or);
1503
1799
  return t.properties = e, t;
1504
1800
  }
1505
- function Lr(e, t, n) {
1506
- let r = new w(Un);
1801
+ function ti(e, t, n) {
1802
+ let r = new E(sr);
1507
1803
  return r.key = t, r.value = n, r.kind = e, r;
1508
1804
  }
1509
- function Rr(e, t) {
1510
- let n = new w(Wn);
1805
+ function ni(e, t) {
1806
+ let n = new E(cr);
1511
1807
  return n.operator = e, n.argument = t, n.prefix = !0, n;
1512
1808
  }
1513
- function R(e, t) {
1514
- var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (rr(t < r.length, "Message reference must be in range"), r[t]));
1515
- throw n = Error(i), n.index = D, n.description = i, n;
1809
+ function V(e, t) {
1810
+ var n, r = Array.prototype.slice.call(arguments, 2), i = t.replace(/%(\d)/g, (e, t) => (xr(t < r.length, "Message reference must be in range"), r[t]));
1811
+ throw n = Error(i), n.index = k, n.description = i, n;
1516
1812
  }
1517
- function zr(e) {
1518
- e.type === An && R(e, Yn), e.type === M && R(e, Gn), e.type === Mn && R(e, Kn), e.type === A && R(e, qn), e.type === j && R(e, Jn), R(e, P, e.value);
1813
+ function ri(e) {
1814
+ e.type === Yn && V(e, pr), e.type === P && V(e, lr), e.type === I && V(e, ur), e.type === M && V(e, dr), e.type === N && V(e, fr), V(e, L, e.value);
1519
1815
  }
1520
- function z(e) {
1521
- let t = L();
1522
- (t.type !== N || t.value !== e) && zr(t);
1816
+ function H(e) {
1817
+ let t = B();
1818
+ (t.type !== F || t.value !== e) && ri(t);
1523
1819
  }
1524
- function B(e) {
1525
- return k.type === N && k.value === e;
1820
+ function U(e) {
1821
+ return j.type === F && j.value === e;
1526
1822
  }
1527
- function Br(e) {
1528
- return k.type === j && k.value === e;
1823
+ function ii(e) {
1824
+ return j.type === N && j.value === e;
1529
1825
  }
1530
- function Vr() {
1826
+ function ai() {
1531
1827
  let e = [];
1532
- for (D = k.start, z("["); !B("]");) B(",") ? (L(), e.push(null)) : (e.push(V()), B("]") || z(","));
1533
- return L(), kr(e);
1828
+ for (k = j.start, H("["); !U("]");) U(",") ? (B(), e.push(null)) : (e.push(W()), U("]") || H(","));
1829
+ return B(), qr(e);
1534
1830
  }
1535
- function Hr() {
1536
- D = k.start;
1537
- let e = L();
1538
- return e.type === Mn || e.type === M ? (e.octal && R(e, Qn), Pr(e)) : Nr(e.value);
1831
+ function oi() {
1832
+ k = j.start;
1833
+ let e = B();
1834
+ return e.type === I || e.type === P ? (e.octal && V(e, gr), Qr(e)) : Zr(e.value);
1539
1835
  }
1540
- function Ur() {
1836
+ function si() {
1541
1837
  var e, t, n, r;
1542
- if (D = k.start, e = k, e.type === A) return n = Hr(), z(":"), r = V(), Lr("init", n, r);
1543
- if (e.type === An || e.type === N) zr(e);
1544
- else return t = Hr(), z(":"), r = V(), Lr("init", t, r);
1838
+ if (k = j.start, e = j, e.type === M) return n = oi(), H(":"), r = W(), ti("init", n, r);
1839
+ if (e.type === Yn || e.type === F) ri(e);
1840
+ else return t = oi(), H(":"), r = W(), ti("init", t, r);
1545
1841
  }
1546
- function Wr() {
1842
+ function ci() {
1547
1843
  var e = [], t, n, r, i = {}, a = String;
1548
- for (D = k.start, z("{"); !B("}");) t = Ur(), n = t.key.type === Rn ? t.key.name : a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? R({}, $n) : i[r] = !0, e.push(t), B("}") || z(",");
1549
- return z("}"), Ir(e);
1844
+ for (k = j.start, H("{"); !U("}");) t = si(), n = t.key.type === nr ? t.key.name : a(t.key.value), r = "$" + n, Object.prototype.hasOwnProperty.call(i, r) ? V({}, _r) : i[r] = !0, e.push(t), U("}") || H(",");
1845
+ return H("}"), ei(e);
1550
1846
  }
1551
- function Gr() {
1552
- z("(");
1553
- let e = ri();
1554
- return z(")"), e;
1847
+ function li() {
1848
+ H("(");
1849
+ let e = xi();
1850
+ return H(")"), e;
1555
1851
  }
1556
- var Kr = { if: 1 };
1557
- function qr() {
1852
+ var ui = { if: 1 };
1853
+ function di() {
1558
1854
  var e, t, n;
1559
- if (B("(")) return Gr();
1560
- if (B("[")) return Vr();
1561
- if (B("{")) return Wr();
1562
- if (e = k.type, D = k.start, e === A || Kr[k.value]) n = Nr(L().value);
1563
- else if (e === Mn || e === M) k.octal && R(k, Qn), n = Pr(L());
1564
- else if (e === j) throw Error(er);
1565
- else e === kn ? (t = L(), t.value = t.value === "true", n = Pr(t)) : e === jn ? (t = L(), t.value = null, n = Pr(t)) : B("/") || B("/=") ? (n = Pr(Tr()), Or()) : zr(L());
1855
+ if (U("(")) return li();
1856
+ if (U("[")) return ai();
1857
+ if (U("{")) return ci();
1858
+ if (e = j.type, k = j.start, e === M || ui[j.value]) n = Zr(B().value);
1859
+ else if (e === I || e === P) j.octal && V(j, gr), n = Qr(B());
1860
+ else if (e === N) throw Error(vr);
1861
+ else e === Jn ? (t = B(), t.value = t.value === "true", n = Qr(t)) : e === Xn ? (t = B(), t.value = null, n = Qr(t)) : U("/") || U("/=") ? (n = Qr(Ur()), Kr()) : ri(B());
1566
1862
  return n;
1567
1863
  }
1568
- function Jr() {
1864
+ function fi() {
1569
1865
  let e = [];
1570
- if (z("("), !B(")")) for (; D < O && (e.push(V()), !B(")"));) z(",");
1571
- return z(")"), e;
1572
- }
1573
- function Yr() {
1574
- D = k.start;
1575
- let e = L();
1576
- return Er(e) || zr(e), Nr(e.value);
1577
- }
1578
- function Xr() {
1579
- return z("."), Yr();
1580
- }
1581
- function Zr() {
1582
- z("[");
1583
- let e = ri();
1584
- return z("]"), e;
1585
- }
1586
- function Qr() {
1587
- for (var e = qr(), t, n;;) if (B(".")) n = Xr(), e = Fr(".", e, n);
1588
- else if (B("(")) t = Jr(), e = jr(e, t);
1589
- else if (B("[")) n = Zr(), e = Fr("[", e, n);
1866
+ if (H("("), !U(")")) for (; k < A && (e.push(W()), !U(")"));) H(",");
1867
+ return H(")"), e;
1868
+ }
1869
+ function pi() {
1870
+ k = j.start;
1871
+ let e = B();
1872
+ return Wr(e) || ri(e), Zr(e.value);
1873
+ }
1874
+ function mi() {
1875
+ return H("."), pi();
1876
+ }
1877
+ function hi() {
1878
+ H("[");
1879
+ let e = xi();
1880
+ return H("]"), e;
1881
+ }
1882
+ function gi() {
1883
+ for (var e = di(), t, n;;) if (U(".")) n = mi(), e = $r(".", e, n);
1884
+ else if (U("(")) t = fi(), e = Yr(e, t);
1885
+ else if (U("[")) n = hi(), e = $r("[", e, n);
1590
1886
  else break;
1591
1887
  return e;
1592
1888
  }
1593
- function $r() {
1594
- let e = Qr();
1595
- if (k.type === N && (B("++") || B("--"))) throw Error(er);
1889
+ function _i() {
1890
+ let e = gi();
1891
+ if (j.type === F && (U("++") || U("--"))) throw Error(vr);
1596
1892
  return e;
1597
1893
  }
1598
- function ei() {
1894
+ function vi() {
1599
1895
  var e, t;
1600
- if (k.type !== N && k.type !== j) t = $r();
1601
- else if (B("++") || B("--")) throw Error(er);
1602
- else if (B("+") || B("-") || B("~") || B("!")) e = L(), t = ei(), t = Rr(e.value, t);
1603
- else if (Br("delete") || Br("void") || Br("typeof")) throw Error(er);
1604
- else t = $r();
1896
+ if (j.type !== F && j.type !== N) t = _i();
1897
+ else if (U("++") || U("--")) throw Error(vr);
1898
+ else if (U("+") || U("-") || U("~") || U("!")) e = B(), t = vi(), t = ni(e.value, t);
1899
+ else if (ii("delete") || ii("void") || ii("typeof")) throw Error(vr);
1900
+ else t = _i();
1605
1901
  return t;
1606
1902
  }
1607
- function ti(e) {
1903
+ function yi(e) {
1608
1904
  let t = 0;
1609
- if (e.type !== N && e.type !== j) return 0;
1905
+ if (e.type !== F && e.type !== N) return 0;
1610
1906
  switch (e.value) {
1611
1907
  case "||":
1612
1908
  t = 1;
@@ -1654,36 +1950,36 @@ function ti(e) {
1654
1950
  }
1655
1951
  return t;
1656
1952
  }
1657
- function ni() {
1658
- var e = k, t, n, r, i, a, o, s, c = ei(), l;
1659
- if (r = k, i = ti(r), i === 0) return c;
1660
- for (r.prec = i, L(), t = [e, k], o = ei(), a = [
1953
+ function bi() {
1954
+ var e = j, t, n, r, i, a, o, s, c = vi(), l;
1955
+ if (r = j, i = yi(r), i === 0) return c;
1956
+ for (r.prec = i, B(), t = [e, j], o = vi(), a = [
1661
1957
  c,
1662
1958
  r,
1663
1959
  o
1664
- ]; (i = ti(k)) > 0;) {
1665
- for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n = Ar(s, c, o), a.push(n);
1666
- r = L(), r.prec = i, a.push(r), t.push(k), n = ei(), a.push(n);
1960
+ ]; (i = yi(j)) > 0;) {
1961
+ for (; a.length > 2 && i <= a[a.length - 2].prec;) o = a.pop(), s = a.pop().value, c = a.pop(), t.pop(), n = Jr(s, c, o), a.push(n);
1962
+ r = B(), r.prec = i, a.push(r), t.push(j), n = vi(), a.push(n);
1667
1963
  }
1668
- for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n = Ar(a[l - 1].value, a[l - 2], n), l -= 2;
1964
+ for (l = a.length - 1, n = a[l], t.pop(); l > 1;) t.pop(), n = Jr(a[l - 1].value, a[l - 2], n), l -= 2;
1669
1965
  return n;
1670
1966
  }
1671
- function V() {
1672
- var e = ni(), t, n;
1673
- return B("?") && (L(), t = V(), z(":"), n = V(), e = Mr(e, t, n)), e;
1967
+ function W() {
1968
+ var e = bi(), t, n;
1969
+ return U("?") && (B(), t = W(), H(":"), n = W(), e = Xr(e, t, n)), e;
1674
1970
  }
1675
- function ri() {
1676
- let e = V();
1677
- if (B(",")) throw Error(er);
1971
+ function xi() {
1972
+ let e = W();
1973
+ if (U(",")) throw Error(vr);
1678
1974
  return e;
1679
1975
  }
1680
- function ii(e) {
1681
- E = e, D = 0, O = E.length, k = null, Or();
1682
- let t = ri();
1683
- if (k.type !== An) throw Error("Unexpect token after expression.");
1976
+ function Si(e) {
1977
+ O = e, k = 0, A = O.length, j = null, Kr();
1978
+ let t = xi();
1979
+ if (j.type !== Yn) throw Error("Unexpect token after expression.");
1684
1980
  return t;
1685
1981
  }
1686
- var ai = {
1982
+ var Ci = {
1687
1983
  NaN: "NaN",
1688
1984
  E: "Math.E",
1689
1985
  LN2: "Math.LN2",
@@ -1696,7 +1992,7 @@ var ai = {
1696
1992
  MIN_VALUE: "Number.MIN_VALUE",
1697
1993
  MAX_VALUE: "Number.MAX_VALUE"
1698
1994
  };
1699
- function oi(e) {
1995
+ function wi(e) {
1700
1996
  function t(t, n, r, i) {
1701
1997
  let a = e(n[0]);
1702
1998
  return r && (a = r + "(" + a + ")", r.lastIndexOf("new ", 0) === 0 && (a = "(" + a + ")")), a + "." + t + (i < 0 ? "" : i === 0 ? "()" : "(" + n.slice(1).map(e).join(",") + ")");
@@ -1772,142 +2068,144 @@ function oi(e) {
1772
2068
  }
1773
2069
  };
1774
2070
  }
1775
- function si(e) {
2071
+ function Ti(e) {
1776
2072
  let t = e && e.length - 1;
1777
2073
  return t && (e[0] === "\"" && e[t] === "\"" || e[0] === "'" && e[t] === "'") ? e.slice(1, -1) : e;
1778
2074
  }
1779
- function ci(e) {
2075
+ function Ei(e) {
1780
2076
  e ||= {};
1781
- let t = e.allowed ? ee(e.allowed) : {}, n = e.forbidden ? ee(e.forbidden) : {}, r = e.constants || ai, a = (e.functions || oi)(g), o = e.globalvar, s = e.fieldvar, l = f(o) ? o : (e) => `${o}["${e}"]`;
2077
+ let t = e.allowed ? g(e.allowed) : {}, n = e.forbidden ? g(e.forbidden) : {}, r = e.constants || Ci, a = (e.functions || wi)(_), o = e.globalvar, s = e.fieldvar, l = f(o) ? o : (e) => `${o}["${e}"]`;
1782
2078
  [...Object.getOwnPropertyNames(Object.prototype).filter((e) => typeof Object.prototype[e] == "function")];
1783
2079
  let u = {}, d = {}, h = 0;
1784
- function g(e) {
2080
+ function _(e) {
1785
2081
  if (m(e)) return e;
1786
- let t = te[e.type];
2082
+ let t = ee[e.type];
1787
2083
  return t ?? i("Unsupported type: " + e.type), t(e);
1788
2084
  }
1789
- let te = {
2085
+ let ee = {
1790
2086
  Literal: (e) => e.raw,
1791
2087
  Identifier: (e) => {
1792
2088
  let a = e.name;
1793
2089
  return h > 0 ? a : p(n, a) ? i("Illegal identifier: " + a) : p(r, a) ? r[a] : p(t, a) ? a : (u[a] = 1, l(a));
1794
2090
  },
1795
2091
  MemberExpression: (e) => {
1796
- let t = !e.computed, n = g(e.object);
2092
+ let t = !e.computed, n = _(e.object);
1797
2093
  t && (h += 1);
1798
- let r = g(e.property);
1799
- return n === s && (d[si(r)] = 1), t && --h, n + (t ? "." + r : "[" + r + "]");
2094
+ let r = _(e.property);
2095
+ return n === s && (d[Ti(r)] = 1), t && --h, n + (t ? "." + r : "[" + r + "]");
1800
2096
  },
1801
2097
  CallExpression: (e) => {
1802
2098
  e.callee.type !== "Identifier" && i("Illegal callee type: " + e.callee.type);
1803
2099
  let t = e.callee.name, n = e.arguments, r = p(a, t) && a[t];
1804
- return r || i("Unrecognized function: " + t), f(r) ? r(n) : r + "(" + n.map(g).join(",") + ")";
2100
+ return r || i("Unrecognized function: " + t), f(r) ? r(n) : r + "(" + n.map(_).join(",") + ")";
1805
2101
  },
1806
- ArrayExpression: (e) => "[" + e.elements.map(g).join(",") + "]",
1807
- BinaryExpression: (e) => "(" + g(e.left) + " " + e.operator + " " + g(e.right) + ")",
1808
- UnaryExpression: (e) => "(" + e.operator + g(e.argument) + ")",
1809
- ConditionalExpression: (e) => "(" + g(e.test) + "?" + g(e.consequent) + ":" + g(e.alternate) + ")",
1810
- LogicalExpression: (e) => "(" + g(e.left) + e.operator + g(e.right) + ")",
2102
+ ArrayExpression: (e) => "[" + e.elements.map(_).join(",") + "]",
2103
+ BinaryExpression: (e) => "(" + _(e.left) + " " + e.operator + " " + _(e.right) + ")",
2104
+ UnaryExpression: (e) => "(" + e.operator + _(e.argument) + ")",
2105
+ ConditionalExpression: (e) => "(" + _(e.test) + "?" + _(e.consequent) + ":" + _(e.alternate) + ")",
2106
+ LogicalExpression: (e) => "(" + _(e.left) + e.operator + _(e.right) + ")",
1811
2107
  ObjectExpression: (e) => {
1812
2108
  for (let t of e.properties) {
1813
2109
  let e = t.key.name;
1814
2110
  c.has(e) && i("Illegal property: " + e);
1815
2111
  }
1816
- return "{" + e.properties.map(g).join(",") + "}";
2112
+ return "{" + e.properties.map(_).join(",") + "}";
1817
2113
  },
1818
2114
  Property: (e) => {
1819
2115
  h += 1;
1820
- let t = g(e.key);
1821
- return --h, t + ":" + g(e.value);
2116
+ let t = _(e.key);
2117
+ return --h, t + ":" + _(e.value);
1822
2118
  }
1823
2119
  };
1824
- function _(e) {
2120
+ function v(e) {
1825
2121
  let t = {
1826
- code: g(e),
2122
+ code: _(e),
1827
2123
  globals: Object.keys(u),
1828
2124
  fields: Object.keys(d)
1829
2125
  };
1830
2126
  return u = {}, d = {}, t;
1831
2127
  }
1832
- return _.functions = a, _.constants = r, _;
2128
+ return v.functions = a, v.constants = r, v;
1833
2129
  }
1834
2130
  //#endregion
1835
2131
  //#region ../core/src/utils/smoothstep.js
1836
- function li(e, t, n) {
2132
+ function Di(e, t, n) {
1837
2133
  return n = (n - e) / (t - e), n = Math.max(0, Math.min(1, n)), n * n * (3 - 2 * n);
1838
2134
  }
1839
2135
  //#endregion
1840
2136
  //#region ../core/src/utils/clamp.js
1841
- function ui(e, t = 0, n = 1) {
2137
+ function Oi(e, t = 0, n = 1) {
1842
2138
  return Math.max(t, Math.min(n, e));
1843
2139
  }
1844
2140
  //#endregion
1845
2141
  //#region ../core/src/utils/linearstep.js
1846
- function di(e, t, n) {
1847
- return ui((n - e) / (t - e), 0, 1);
2142
+ function ki(e, t, n) {
2143
+ return Oi((n - e) / (t - e), 0, 1);
1848
2144
  }
1849
2145
  //#endregion
1850
2146
  //#region ../core/src/utils/expression.js
1851
- function fi(e) {
1852
- return je(e) || ArrayBuffer.isView(e) ? e : null;
2147
+ function Ai(e) {
2148
+ return He(e) || ArrayBuffer.isView(e) ? e : null;
1853
2149
  }
1854
- function pi(e) {
1855
- return fi(e) || (st(e) ? e : null);
2150
+ function ji(e) {
2151
+ return Ai(e) || (C(e) ? e : null);
1856
2152
  }
1857
- var mi = {
1858
- clamp: ui,
2153
+ var Mi = {
2154
+ clamp: Oi,
2155
+ tickStep: oe,
1859
2156
  format(e, t) {
1860
- return he(t)(e);
2157
+ return Ee(t)(e);
1861
2158
  },
1862
2159
  join(e, t) {
1863
- return fi(e).join(t);
2160
+ return Ai(e).join(t);
1864
2161
  },
1865
2162
  indexof(e, t, n) {
1866
- return pi(e).indexOf(t, n);
2163
+ return ji(e).indexOf(t, n);
1867
2164
  },
2165
+ inrange: ht,
1868
2166
  lastindexof(e, t, n) {
1869
- return pi(e).lastIndexOf(t, n);
2167
+ return ji(e).lastIndexOf(t, n);
1870
2168
  },
1871
2169
  reverse(e) {
1872
- return st(e) ? Array.from(e).reverse().join("") : fi(e).slice().reverse();
2170
+ return C(e) ? Array.from(e).reverse().join("") : Ai(e).slice().reverse();
1873
2171
  },
1874
2172
  slice(e, t, n) {
1875
- return pi(e).slice(t, n);
2173
+ return ji(e).slice(t, n);
1876
2174
  },
1877
2175
  mapHasKey(e, t) {
1878
2176
  return e.has(t);
1879
2177
  },
1880
- isArray: je,
1881
- isBoolean: it,
2178
+ isArray: He,
2179
+ isBoolean: gt,
1882
2180
  isDefined(e) {
1883
2181
  return e !== void 0;
1884
2182
  },
1885
- isNumber: at,
1886
- isObject: Me,
1887
- isRegExp: ot,
1888
- isString: st,
2183
+ isNumber: _t,
2184
+ isObject: Ue,
2185
+ isRegExp: vt,
2186
+ isString: C,
1889
2187
  isValid(e) {
1890
2188
  return e != null && e === e;
1891
2189
  },
1892
- lerp: ct,
1893
- linearstep: di,
2190
+ lerp: yt,
2191
+ linearstep: ki,
1894
2192
  replace(e, t, n) {
1895
2193
  return String(e).replace(t, n);
1896
2194
  },
1897
2195
  sort(e) {
1898
- return fi(e).slice().sort(et);
2196
+ return Ai(e).slice().sort(dt);
1899
2197
  },
1900
2198
  center(e) {
1901
- let t = fi(e);
2199
+ let t = Ai(e);
1902
2200
  return (t[0] + t[t.length - 1]) / 2;
1903
2201
  },
1904
2202
  span(e) {
1905
- return lt(e);
2203
+ return bt(e);
1906
2204
  },
1907
- smoothstep: li
2205
+ smoothstep: Di
1908
2206
  };
1909
- function hi(e) {
1910
- let t = !1, n = Ci(e, {}, { resolveScaleResolution: () => (t = !0, {
2207
+ function Ni(e) {
2208
+ let t = !1, n = Vi(e, {}, { resolveScaleResolution: () => (t = !0, {
1911
2209
  channel: "analysis",
1912
2210
  getDomainRef: () => void 0,
1913
2211
  getMappingRef: () => void 0,
@@ -1919,9 +2217,9 @@ function hi(e) {
1919
2217
  globals: n.globals
1920
2218
  };
1921
2219
  }
1922
- function gi(e, t) {
1923
- let n = oi(e);
1924
- for (let e in mi) n[e] = `this.${e}`;
2220
+ function Pi(e, t) {
2221
+ let n = wi(e);
2222
+ for (let e in Mi) n[e] = `this.${e}`;
1925
2223
  for (let r of [
1926
2224
  "scale",
1927
2225
  "invert",
@@ -1930,10 +2228,10 @@ function gi(e, t) {
1930
2228
  "bandwidth",
1931
2229
  "linearize",
1932
2230
  "zoomLevel"
1933
- ]) n[r] = (n) => _i(e, t, r, n);
2231
+ ]) n[r] = (n) => Fi(e, t, r, n);
1934
2232
  return n;
1935
2233
  }
1936
- function _i(e, t, n, r) {
2234
+ function Fi(e, t, n, r) {
1937
2235
  if (n === "zoomLevel" && r.length === 0) {
1938
2236
  let e = [];
1939
2237
  for (let r of ["x", "y"]) {
@@ -1948,18 +2246,18 @@ function _i(e, t, n, r) {
1948
2246
  if (r.length === 0) throw Error(`Scale helper "${n}" requires a literal channel name.`);
1949
2247
  if ((n === "scale" || n === "invert" || n === "linearize") && r.length < 2) throw Error(`Scale helper "${n}" requires a channel name and a value.`);
1950
2248
  if (n === "zoomLevel" && r.length > 1) throw Error("Scale helper \"zoomLevel\" accepts zero arguments or one literal channel name.");
1951
- let i = vi(r[0]);
2249
+ let i = Ii(r[0]);
1952
2250
  if (!i) throw Error(`Scale helper "${n}" requires a literal channel name.`);
1953
2251
  let a = t.resolveScaleResolution?.(i);
1954
2252
  if (!a) throw Error(`Unknown scale channel "${i}" in expression helper "${n}".`);
1955
2253
  let o = t.getScaleHelper(n, i, a), s = r.slice(1).map((t) => e(t)).join(",");
1956
2254
  return `${t.globalvar}["${o.codeName}"](${s})`;
1957
2255
  }
1958
- function vi(e) {
2256
+ function Ii(e) {
1959
2257
  return e?.type === "Literal" && typeof e.value == "string" ? e.value : void 0;
1960
2258
  }
1961
- function yi(e, t) {
1962
- let n = (n) => xi(t, e, n);
2259
+ function Li(e, t) {
2260
+ let n = (n) => zi(t, e, n);
1963
2261
  if (e === "domain") return () => n(() => t.getDomain());
1964
2262
  if (e === "range") return () => n(() => t.getScale().range());
1965
2263
  if (e === "bandwidth") return () => n(() => {
@@ -1973,20 +2271,20 @@ function yi(e, t) {
1973
2271
  if (e === "zoomLevel") return () => n(() => t.getZoomLevel());
1974
2272
  throw Error("Unknown scale helper: " + e);
1975
2273
  }
1976
- var bi = /* @__PURE__ */ new WeakSet();
1977
- function xi(e, t, n) {
1978
- if (bi.has(e)) throw Error(`Scale helper cycle detected while evaluating ${t}("${e.channel}").`);
1979
- bi.add(e);
2274
+ var Ri = /* @__PURE__ */ new WeakSet();
2275
+ function zi(e, t, n) {
2276
+ if (Ri.has(e)) throw Error(`Scale helper cycle detected while evaluating ${t}("${e.channel}").`);
2277
+ Ri.add(e);
1980
2278
  try {
1981
2279
  return n();
1982
2280
  } finally {
1983
- bi.delete(e);
2281
+ Ri.delete(e);
1984
2282
  }
1985
2283
  }
1986
- function Si(e, t) {
2284
+ function Bi(e, t) {
1987
2285
  return e === "domain" ? t.getDomainRef() : e === "linearize" ? t.getConfigurationRef() : e === "zoomLevel" ? t.getZoomLevelRef() : t.getMappingRef();
1988
2286
  }
1989
- function Ci(e, t = {}, n = {}) {
2287
+ function Vi(e, t = {}, n = {}) {
1990
2288
  try {
1991
2289
  let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = 1, s = {
1992
2290
  ...n,
@@ -1996,38 +2294,38 @@ function Ci(e, t = {}, n = {}) {
1996
2294
  let c = e + ":" + n, l = i.get(c);
1997
2295
  if (l) return l;
1998
2296
  let u = r.get(c);
1999
- u || (u = Si(e, s), r.set(c, u));
2297
+ u || (u = Bi(e, s), r.set(c, u));
2000
2298
  let d = "__scale_helper_" + o++, f = {
2001
2299
  codeName: d,
2002
2300
  dependency: u
2003
2301
  };
2004
- return i.set(c, f), e === "zoomLevel" && a.add(s), t[d] = yi(e, s), f;
2302
+ return i.set(c, f), e === "zoomLevel" && a.add(s), t[d] = Li(e, s), f;
2005
2303
  }
2006
- }, c = ci({
2304
+ }, c = Ei({
2007
2305
  forbidden: [],
2008
2306
  allowed: ["datum", "undefined"],
2009
2307
  globalvar: "globalObject",
2010
2308
  fieldvar: "datum",
2011
- functions: (e) => gi(e, s)
2012
- })(ii(e)), l = Function("datum", "globalObject", `"use strict";
2309
+ functions: (e) => Pi(e, s)
2310
+ })(Si(e)), l = Function("datum", "globalObject", `"use strict";
2013
2311
  try {
2014
2312
  return (${c.code});
2015
2313
  } catch (e) {
2016
2314
  throw new Error("Error evaluating expression: " + ${JSON.stringify(e)} + ", " + e.message, e);
2017
- }`).bind(mi), u = (e) => l(e, t);
2018
- 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;
2315
+ }`).bind(Mi), u = (e) => l(e, t);
2316
+ return u.createEvaluator = (e) => (t) => l(t, e), 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;
2019
2317
  } catch (t) {
2020
2318
  throw Error(`Invalid expression: ${e}, ${t.message}`, { cause: t });
2021
2319
  }
2022
2320
  }
2023
- var wi = ci({
2321
+ var Hi = Ei({
2024
2322
  forbidden: [],
2025
2323
  allowed: ["event"],
2026
2324
  globalvar: "globalObject"
2027
2325
  });
2028
- function Ti(e) {
2326
+ function Ui(e) {
2029
2327
  try {
2030
- let t = wi(ii(e));
2328
+ let t = Hi(Si(e));
2031
2329
  return Function("event", "globalObject", `"use strict";
2032
2330
  try {
2033
2331
  return !!(${t.code});
@@ -2040,7 +2338,7 @@ function Ti(e) {
2040
2338
  }
2041
2339
  //#endregion
2042
2340
  //#region ../core/src/utils/interactionConfig.js
2043
- function Ei(e) {
2341
+ function Wi(e) {
2044
2342
  if (typeof e == "string") {
2045
2343
  let t = e.match(/^([a-zA-Z]+)(?:\[(.+)\])?$/);
2046
2344
  if (!t) throw Error(`Invalid event type string: ${e}`);
@@ -2048,36 +2346,36 @@ function Ei(e) {
2048
2346
  return r && (i.filter = r), i;
2049
2347
  } else return e;
2050
2348
  }
2051
- function Di(e) {
2052
- return e?.filter ? Ti(e.filter) : () => !0;
2349
+ function Gi(e) {
2350
+ return e?.filter ? Ui(e.filter) : () => !0;
2053
2351
  }
2054
- function Oi(e, t, n) {
2352
+ function Ki(e, t, n) {
2055
2353
  if (!t.includes(e.type)) throw Error(n);
2056
2354
  return e;
2057
2355
  }
2058
2356
  //#endregion
2059
2357
  //#region ../core/src/selection/selection.js
2060
- function ki(e) {
2358
+ function qi(e) {
2061
2359
  return {
2062
2360
  type: "single",
2063
2361
  datum: e,
2064
- uniqueId: e?.[S]
2362
+ uniqueId: e?.[w]
2065
2363
  };
2066
2364
  }
2067
- function Ai(e) {
2365
+ function Ji(e) {
2068
2366
  return e ??= [], {
2069
2367
  type: "multi",
2070
- data: new Map(e.map((e) => [e[S], e]))
2368
+ data: new Map(e.map((e) => [e[w], e]))
2071
2369
  };
2072
2370
  }
2073
- function ji(e, t) {
2371
+ function Yi(e, t) {
2074
2372
  if (!t || t.length === 0) return;
2075
- let n = t.map((e) => St(e)), r = (e) => n.map((t) => t(e));
2076
- if (U(e)) return e.datum ? [r(e.datum)] : [];
2077
- if (W(e)) return [...e.data.values()].map(r);
2373
+ let n = t.map((e) => Nt(e)), r = (e) => n.map((t) => t(e));
2374
+ if (ia(e)) return e.datum ? [r(e.datum)] : [];
2375
+ if (aa(e)) return [...e.data.values()].map(r);
2078
2376
  throw Error(`Expected a point selection, got: ${JSON.stringify(e)}`);
2079
2377
  }
2080
- function Mi(e, t, n, r) {
2378
+ function Xi(e, t, n, r) {
2081
2379
  if (!t || t.length === 0) return;
2082
2380
  if (e === "single" && n.length > 1) throw Error("Single point selections expect at most one key tuple.");
2083
2381
  let i = [], a = [];
@@ -2086,22 +2384,22 @@ function Mi(e, t, n, r) {
2086
2384
  n ? i.push(n) : a.push(e);
2087
2385
  }
2088
2386
  return {
2089
- selection: e === "single" ? ki(i[0] ?? null) : Ai(i),
2387
+ selection: e === "single" ? qi(i[0] ?? null) : Ji(i),
2090
2388
  unresolved: a
2091
2389
  };
2092
2390
  }
2093
- function Ni(e) {
2391
+ function Zi(e) {
2094
2392
  return {
2095
2393
  type: "interval",
2096
2394
  intervals: Object.fromEntries(e.map((e) => [e, null]))
2097
2395
  };
2098
2396
  }
2099
- function Pi(e, { add: t, remove: n, toggle: r }) {
2397
+ function Qi(e, { add: t, remove: n, toggle: r }) {
2100
2398
  let i = e.data;
2101
- for (let e of t ?? []) i.set(e[S], e);
2102
- for (let e of n ?? []) i.delete(e[S]);
2399
+ for (let e of t ?? []) i.set(e[w], e);
2400
+ for (let e of n ?? []) i.delete(e[w]);
2103
2401
  for (let e of r ?? []) {
2104
- let t = e[S];
2402
+ let t = e[w];
2105
2403
  i.has(t) ? i.delete(t) : i.set(t, e);
2106
2404
  }
2107
2405
  return {
@@ -2109,108 +2407,68 @@ function Pi(e, { add: t, remove: n, toggle: r }) {
2109
2407
  data: i
2110
2408
  };
2111
2409
  }
2112
- function Fi(e, t) {
2113
- let n = !!(e.empty ?? !0), r = $i(e.param), i = e.fields ?? {};
2114
- if (U(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(S)}]`;
2115
- if (W(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(S)}])`;
2116
- if (H(t)) {
2117
- let a = Object.keys(t.intervals), o = Object.keys(i).filter(en);
2410
+ function $i(e, t) {
2411
+ let n = !!(e.empty ?? !0), r = _a(e.param), i = e.fields ?? {};
2412
+ if (ia(t)) return `${r}.uniqueId == null ? ${n} : ${r}.uniqueId === datum[${JSON.stringify(w)}]`;
2413
+ if (aa(t)) return `${r}.data.size == 0 ? ${n} : mapHasKey(${r}.data, datum[${JSON.stringify(w)}])`;
2414
+ if (ra(t)) {
2415
+ let a = Object.keys(t.intervals), o = Object.keys(i).filter(bn);
2118
2416
  if (o.length === 0) throw Error("Filtering using interval selections requires at least one primary positional channel in the config! " + JSON.stringify(e));
2119
2417
  if (o.some((e) => !a.includes(e))) throw Error(`Selection channels (${a.join(", ")}) do not match the fields: ${JSON.stringify(e)}!`);
2120
2418
  let s = (e) => `datum[${JSON.stringify(e)}]`;
2121
2419
  return a.map((e) => {
2122
- let t = ln(e), a = i[e], o = i[t] ?? i[e], c = `${r}.intervals.${e}[0] <= ${s(o)}`, l = `${s(a)} <= ${r}.intervals.${e}[1]`;
2420
+ let t = On(e), a = i[e], o = i[t] ?? i[e], c = `${r}.intervals.${e}[0] <= ${s(o)}`, l = `${s(a)} <= ${r}.intervals.${e}[1]`;
2123
2421
  return `(${r}.intervals.${e} ? (${c} && ${l}) : ${n})`;
2124
2422
  }).join(" && ");
2125
2423
  } else throw Error(`Unrecognized selection type : ${JSON.stringify(t)}`);
2126
2424
  }
2127
- function Ii(e) {
2128
- if (!("param" in e) && !("test" in e)) return;
2129
- let { param: t, empty: n = !0 } = "test" in e ? e.test : e;
2130
- if (typeof t == "string") return {
2131
- params: [$i(t)],
2132
- empty: n,
2133
- singleParam: !0
2134
- };
2135
- if (t.or.length === 0) throw Error("Selection test \"or\" must be a nonempty array.");
2136
- return {
2137
- params: Array.from(new Set(t.or.map($i))),
2138
- empty: n,
2139
- singleParam: !1
2140
- };
2141
- }
2142
- function Li(e) {
2143
- return e?.selection?.params ?? [];
2425
+ function ea(e) {
2426
+ if (!(!("param" in e) && !("test" in e))) return It(e);
2144
2427
  }
2145
- function Ri(e) {
2146
- let t = /* @__PURE__ */ new Map();
2147
- for (let n of Object.values(e)) for (let { predicate: e } of n.branches) {
2148
- let n = e.selection;
2149
- if (n) for (let e of n.params) t.set(e, t.get(e) || !n.singleParam);
2150
- }
2151
- return t;
2152
- }
2153
- function zi(e, t) {
2154
- if (U(t)) return `${e}.uniqueId == null`;
2155
- if (W(t)) return `${e}.data.size == 0`;
2156
- if (H(t)) {
2157
- let n = Object.keys(t.intervals);
2158
- return n.length == 0 ? "true" : `!(${n.map((t) => `${e}.intervals.${t}`).join(" || ")})`;
2159
- }
2160
- throw Error(`Unsupported selection type: ${t.type}`);
2161
- }
2162
- function Bi(e, t, n, r) {
2163
- if (U(t)) return `${e}.uniqueId != null && ${e}.uniqueId === datum[${JSON.stringify(S)}]`;
2164
- if (W(t)) return `${e}.data.size != 0 && mapHasKey(${e}.data, datum[${JSON.stringify(S)}])`;
2165
- if (H(t)) {
2166
- let i = Object.keys(t.intervals);
2167
- if (i.length == 0) return "false";
2168
- let a = (e) => `datum[${JSON.stringify(e)}]`, o = i.map((t) => {
2169
- let i = ln(t), o = n[t], s = n[i] ?? n[t], c = `${e}.intervals.${t}`;
2170
- 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])`})`;
2171
- });
2172
- return `!!(${i.map((t) => `${e}.intervals.${t}`).join(" || ")}) && (${o.join(" && ")})`;
2173
- }
2174
- throw Error(`Unsupported selection type: ${t.type}`);
2428
+ function ta(e) {
2429
+ return e?.selection ? Lt(e.selection) : [];
2175
2430
  }
2176
- function Vi(e, t, n = "intersects") {
2177
- let r = `(${e.map(({ param: e, selection: t, fields: r }) => Bi(e, t, r, n)).join(" || ")})`;
2178
- return t ? `((${e.map(({ param: e, selection: t }) => zi(e, t)).join(" && ")}) || ${r})` : r;
2431
+ function na(e) {
2432
+ let t = Object.values(e).flatMap((e) => e.branches.flatMap(({ predicate: e }) => e.selection ? [e.selection] : [])), n = /* @__PURE__ */ new Set();
2433
+ return t.filter((e) => {
2434
+ let t = JSON.stringify(e);
2435
+ return n.has(t) ? !1 : (n.add(t), !0);
2436
+ });
2179
2437
  }
2180
- function H(e) {
2438
+ function ra(e) {
2181
2439
  return e.type === "interval";
2182
2440
  }
2183
- function U(e) {
2441
+ function ia(e) {
2184
2442
  return e.type === "single";
2185
2443
  }
2186
- function W(e) {
2444
+ function aa(e) {
2187
2445
  return e.type === "multi";
2188
2446
  }
2189
- function Hi(e) {
2447
+ function oa(e) {
2190
2448
  let t = typeof e == "string" ? { type: e } : { ...e };
2191
- return t.on = t.on ? Ei(t.on) : Ui(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : Ei(t.clear), Ui(t) && t.on.type === "click" && (t.toggle = !0), t;
2449
+ return t.on = t.on ? Wi(t.on) : sa(t) ? { type: "click" } : void 0, t.clear = t.clear === !1 ? void 0 : t.clear === !0 || t.clear == null ? { type: "dblclick" } : Wi(t.clear), sa(t) && t.on.type === "click" && t.toggle === void 0 && (t.toggle = !0), t;
2192
2450
  }
2193
- function Ui(e) {
2451
+ function sa(e) {
2194
2452
  return e && e.type == "point";
2195
2453
  }
2196
- function Wi(e) {
2454
+ function ca(e) {
2197
2455
  return e && e.type == "interval";
2198
2456
  }
2199
- function Gi(e) {
2200
- if (U(e)) return e.uniqueId != null;
2201
- if (W(e)) return e.data.size > 0;
2202
- if (H(e)) return Ki(e);
2457
+ function la(e) {
2458
+ if (ia(e)) return e.uniqueId != null;
2459
+ if (aa(e)) return e.data.size > 0;
2460
+ if (ra(e)) return ua(e);
2203
2461
  throw Error(`Unsupported selection type: ${e.type}`);
2204
2462
  }
2205
- function Ki(e) {
2463
+ function ua(e) {
2206
2464
  return Object.values(e.intervals).some((e) => e && e.length === 2);
2207
2465
  }
2208
- function qi(e, t) {
2466
+ function da(e, t) {
2209
2467
  return Object.entries(e.intervals).every(([e, n]) => (e == "x" || e == "y") && n && n[0] <= t[e] && n[1] >= t[e]);
2210
2468
  }
2211
2469
  //#endregion
2212
2470
  //#region ../core/src/ruler/rulerValue.js
2213
- function Ji(e = ["x"], t = {}) {
2471
+ function fa(e = ["x"], t = {}) {
2214
2472
  let n = {};
2215
2473
  for (let r of e) n[r] = t[r] ?? null;
2216
2474
  return {
@@ -2221,36 +2479,36 @@ function Ji(e = ["x"], t = {}) {
2221
2479
  //#endregion
2222
2480
  //#region ../core/src/paramRuntime/paramUtils.js
2223
2481
  function G(e) {
2224
- return typeof e == "object" && !!e && "expr" in e && st(e.expr);
2482
+ return typeof e == "object" && !!e && "expr" in e && C(e.expr);
2225
2483
  }
2226
- function Yi(e) {
2484
+ function pa(e) {
2227
2485
  if (G(e)) throw Error("ExprRef " + JSON.stringify(e) + " not allowed here. Expected a scalar value.");
2228
2486
  return e;
2229
2487
  }
2230
- function Xi(e) {
2488
+ function ma(e) {
2231
2489
  return ("expr" in e || "bind" in e) && !("select" in e) && !("ruler" in e);
2232
2490
  }
2233
- function Zi(e) {
2491
+ function ha(e) {
2234
2492
  return !("expr" in e || "bind" in e) && "select" in e;
2235
2493
  }
2236
- function Qi(e) {
2494
+ function ga(e) {
2237
2495
  return !("expr" in e || "bind" in e || "select" in e) && "ruler" in e;
2238
2496
  }
2239
- function $i(e) {
2497
+ function _a(e) {
2240
2498
  if (!/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)) throw Error("Invalid parameter name: " + e + ". Must be a valid JavaScript identifier.");
2241
2499
  return e;
2242
2500
  }
2243
- function ea(e, t, n) {
2501
+ function va(e, t, n) {
2244
2502
  if ("select" in e) {
2245
- let t = Hi(e.select);
2246
- if (Ui(t)) return t.toggle ? Ai() : ki(null);
2247
- if (Wi(t)) {
2503
+ let t = oa(e.select);
2504
+ if (sa(t)) return t.toggle ? Ji() : qi(null);
2505
+ if (ca(t)) {
2248
2506
  if (!t.encodings) throw Error("Interval selection \"" + e.name + "\" must have encodings defined!");
2249
- return Ni(t.encodings);
2507
+ return Zi(t.encodings);
2250
2508
  }
2251
2509
  throw Error("Unknown selection config for parameter \"" + e.name + "\".");
2252
2510
  }
2253
- if ("ruler" in e) return Ji(e.ruler.encodings, e.value);
2511
+ if ("ruler" in e) return fa(e.ruler.encodings, e.value);
2254
2512
  if ("expr" in e) {
2255
2513
  let r = n ?? t?.createExpression(e.expr);
2256
2514
  if (!r) throw Error("Cannot evaluate expression for parameter \"" + e.name + "\".");
@@ -2258,7 +2516,7 @@ function ea(e, t, n) {
2258
2516
  }
2259
2517
  return "value" in e ? e.value : null;
2260
2518
  }
2261
- function ta(e, t, n, r, i = []) {
2519
+ function ya(e, t, n, r, i = []) {
2262
2520
  let a = { ...t }, o = [];
2263
2521
  for (let [r, i] of Object.entries(t)) if (G(i)) {
2264
2522
  let t = e.createExpression(i.expr), s = o.push({
@@ -2276,16 +2534,16 @@ function ta(e, t, n, r, i = []) {
2276
2534
  fn: e.createExpression(n.expr)
2277
2535
  });
2278
2536
  if (!o.length) return a;
2279
- 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: na }), l = c.get(), u = e.effect([c], () => {
2537
+ 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: ba }), l = c.get(), u = e.effect([c], () => {
2280
2538
  let e = c.get(), t = new Set(o.filter((t, n) => l[n] !== e[n]).map(({ key: e }) => e));
2281
2539
  l = e, n(t);
2282
2540
  });
2283
2541
  return r?.(c.dispose), r?.(u), a;
2284
2542
  }
2285
- function na(e, t) {
2543
+ function ba(e, t) {
2286
2544
  return e.every((e, n) => e === t[n]);
2287
2545
  }
2288
- function ra(e, t, n, r) {
2546
+ function xa(e, t, n, r) {
2289
2547
  if (!G(t)) return t;
2290
2548
  let i = () => {
2291
2549
  throw Error(n);
@@ -2299,7 +2557,7 @@ function ra(e, t, n, r) {
2299
2557
  }
2300
2558
  return a();
2301
2559
  }
2302
- function ia(e) {
2560
+ function Sa(e) {
2303
2561
  return Object.assign(() => e, {
2304
2562
  dependencies: [],
2305
2563
  subscribe: () => () => void 0,
@@ -2312,10 +2570,10 @@ function ia(e) {
2312
2570
  }
2313
2571
  //#endregion
2314
2572
  //#region ../../node_modules/d3-color/src/define.js
2315
- function aa(e, t, n) {
2573
+ function Ca(e, t, n) {
2316
2574
  e.prototype = t.prototype = n, n.constructor = e;
2317
2575
  }
2318
- function oa(e, t) {
2576
+ function wa(e, t) {
2319
2577
  var n = Object.create(e.prototype);
2320
2578
  for (var r in t) n[r] = t[r];
2321
2579
  return n;
@@ -2323,7 +2581,7 @@ function oa(e, t) {
2323
2581
  //#endregion
2324
2582
  //#region ../../node_modules/d3-color/src/color.js
2325
2583
  function K() {}
2326
- var q = .7, sa = 1 / q, J = "\\s*([+-]?\\d+)\\s*", ca = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Y = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", la = /^#([0-9a-f]{3,8})$/, ua = RegExp(`^rgb\\(${J},${J},${J}\\)$`), da = RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`), fa = RegExp(`^rgba\\(${J},${J},${J},${ca}\\)$`), pa = RegExp(`^rgba\\(${Y},${Y},${Y},${ca}\\)$`), ma = RegExp(`^hsl\\(${ca},${Y},${Y}\\)$`), ha = RegExp(`^hsla\\(${ca},${Y},${Y},${ca}\\)$`), ga = {
2584
+ var q = .7, Ta = 1 / q, J = "\\s*([+-]?\\d+)\\s*", Ea = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*", Y = "\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*", Da = /^#([0-9a-f]{3,8})$/, Oa = RegExp(`^rgb\\(${J},${J},${J}\\)$`), ka = RegExp(`^rgb\\(${Y},${Y},${Y}\\)$`), Aa = RegExp(`^rgba\\(${J},${J},${J},${Ea}\\)$`), ja = RegExp(`^rgba\\(${Y},${Y},${Y},${Ea}\\)$`), Ma = RegExp(`^hsl\\(${Ea},${Y},${Y}\\)$`), Na = RegExp(`^hsla\\(${Ea},${Y},${Y},${Ea}\\)$`), Pa = {
2327
2585
  aliceblue: 15792383,
2328
2586
  antiquewhite: 16444375,
2329
2587
  aqua: 65535,
@@ -2473,54 +2731,54 @@ var q = .7, sa = 1 / q, J = "\\s*([+-]?\\d+)\\s*", ca = "\\s*([+-]?(?:\\d*\\.)?\
2473
2731
  yellow: 16776960,
2474
2732
  yellowgreen: 10145074
2475
2733
  };
2476
- aa(K, xa, {
2734
+ Ca(K, za, {
2477
2735
  copy(e) {
2478
2736
  return Object.assign(new this.constructor(), this, e);
2479
2737
  },
2480
2738
  displayable() {
2481
2739
  return this.rgb().displayable();
2482
2740
  },
2483
- hex: _a,
2484
- formatHex: _a,
2485
- formatHex8: va,
2486
- formatHsl: ya,
2487
- formatRgb: ba,
2488
- toString: ba
2741
+ hex: Fa,
2742
+ formatHex: Fa,
2743
+ formatHex8: Ia,
2744
+ formatHsl: La,
2745
+ formatRgb: Ra,
2746
+ toString: Ra
2489
2747
  });
2490
- function _a() {
2748
+ function Fa() {
2491
2749
  return this.rgb().formatHex();
2492
2750
  }
2493
- function va() {
2751
+ function Ia() {
2494
2752
  return this.rgb().formatHex8();
2495
2753
  }
2496
- function ya() {
2497
- return ja(this).formatHsl();
2754
+ function La() {
2755
+ return Ya(this).formatHsl();
2498
2756
  }
2499
- function ba() {
2757
+ function Ra() {
2500
2758
  return this.rgb().formatRgb();
2501
2759
  }
2502
- function xa(e) {
2760
+ function za(e) {
2503
2761
  var t, n;
2504
- return e = (e + "").trim().toLowerCase(), (t = la.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Sa(t) : n === 3 ? new X(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Ca(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Ca(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 = ua.exec(e)) ? new X(t[1], t[2], t[3], 1) : (t = da.exec(e)) ? new X(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = fa.exec(e)) ? Ca(t[1], t[2], t[3], t[4]) : (t = pa.exec(e)) ? Ca(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = ma.exec(e)) ? Aa(t[1], t[2] / 100, t[3] / 100, 1) : (t = ha.exec(e)) ? Aa(t[1], t[2] / 100, t[3] / 100, t[4]) : ga.hasOwnProperty(e) ? Sa(ga[e]) : e === "transparent" ? new X(NaN, NaN, NaN, 0) : null;
2762
+ return e = (e + "").trim().toLowerCase(), (t = Da.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Ba(t) : n === 3 ? new X(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? Va(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? Va(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 = Oa.exec(e)) ? new X(t[1], t[2], t[3], 1) : (t = ka.exec(e)) ? new X(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Aa.exec(e)) ? Va(t[1], t[2], t[3], t[4]) : (t = ja.exec(e)) ? Va(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Ma.exec(e)) ? Ja(t[1], t[2] / 100, t[3] / 100, 1) : (t = Na.exec(e)) ? Ja(t[1], t[2] / 100, t[3] / 100, t[4]) : Pa.hasOwnProperty(e) ? Ba(Pa[e]) : e === "transparent" ? new X(NaN, NaN, NaN, 0) : null;
2505
2763
  }
2506
- function Sa(e) {
2764
+ function Ba(e) {
2507
2765
  return new X(e >> 16 & 255, e >> 8 & 255, e & 255, 1);
2508
2766
  }
2509
- function Ca(e, t, n, r) {
2767
+ function Va(e, t, n, r) {
2510
2768
  return r <= 0 && (e = t = n = NaN), new X(e, t, n, r);
2511
2769
  }
2512
- function wa(e) {
2513
- return e instanceof K || (e = xa(e)), e ? (e = e.rgb(), new X(e.r, e.g, e.b, e.opacity)) : new X();
2770
+ function Ha(e) {
2771
+ return e instanceof K || (e = za(e)), e ? (e = e.rgb(), new X(e.r, e.g, e.b, e.opacity)) : new X();
2514
2772
  }
2515
- function Ta(e, t, n, r) {
2516
- return arguments.length === 1 ? wa(e) : new X(e, t, n, r ?? 1);
2773
+ function Ua(e, t, n, r) {
2774
+ return arguments.length === 1 ? Ha(e) : new X(e, t, n, r ?? 1);
2517
2775
  }
2518
2776
  function X(e, t, n, r) {
2519
2777
  this.r = +e, this.g = +t, this.b = +n, this.opacity = +r;
2520
2778
  }
2521
- aa(X, Ta, oa(K, {
2779
+ Ca(X, Ua, wa(K, {
2522
2780
  brighter(e) {
2523
- return e = e == null ? sa : sa ** +e, new X(this.r * e, this.g * e, this.b * e, this.opacity);
2781
+ return e = e == null ? Ta : Ta ** +e, new X(this.r * e, this.g * e, this.b * e, this.opacity);
2524
2782
  },
2525
2783
  darker(e) {
2526
2784
  return e = e == null ? q : q ** +e, new X(this.r * e, this.g * e, this.b * e, this.opacity);
@@ -2529,28 +2787,28 @@ aa(X, Ta, oa(K, {
2529
2787
  return this;
2530
2788
  },
2531
2789
  clamp() {
2532
- return new X(Z(this.r), Z(this.g), Z(this.b), ka(this.opacity));
2790
+ return new X(Z(this.r), Z(this.g), Z(this.b), qa(this.opacity));
2533
2791
  },
2534
2792
  displayable() {
2535
2793
  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;
2536
2794
  },
2537
- hex: Ea,
2538
- formatHex: Ea,
2539
- formatHex8: Da,
2540
- formatRgb: Oa,
2541
- toString: Oa
2795
+ hex: Wa,
2796
+ formatHex: Wa,
2797
+ formatHex8: Ga,
2798
+ formatRgb: Ka,
2799
+ toString: Ka
2542
2800
  }));
2543
- function Ea() {
2801
+ function Wa() {
2544
2802
  return `#${Q(this.r)}${Q(this.g)}${Q(this.b)}`;
2545
2803
  }
2546
- function Da() {
2804
+ function Ga() {
2547
2805
  return `#${Q(this.r)}${Q(this.g)}${Q(this.b)}${Q((isNaN(this.opacity) ? 1 : this.opacity) * 255)}`;
2548
2806
  }
2549
- function Oa() {
2550
- let e = ka(this.opacity);
2807
+ function Ka() {
2808
+ let e = qa(this.opacity);
2551
2809
  return `${e === 1 ? "rgb(" : "rgba("}${Z(this.r)}, ${Z(this.g)}, ${Z(this.b)}${e === 1 ? ")" : `, ${e})`}`;
2552
2810
  }
2553
- function ka(e) {
2811
+ function qa(e) {
2554
2812
  return isNaN(e) ? 1 : Math.max(0, Math.min(1, e));
2555
2813
  }
2556
2814
  function Z(e) {
@@ -2559,57 +2817,57 @@ function Z(e) {
2559
2817
  function Q(e) {
2560
2818
  return e = Z(e), (e < 16 ? "0" : "") + e.toString(16);
2561
2819
  }
2562
- function Aa(e, t, n, r) {
2820
+ function Ja(e, t, n, r) {
2563
2821
  return r <= 0 ? e = t = n = NaN : n <= 0 || n >= 1 ? e = t = NaN : t <= 0 && (e = NaN), new $(e, t, n, r);
2564
2822
  }
2565
- function ja(e) {
2823
+ function Ya(e) {
2566
2824
  if (e instanceof $) return new $(e.h, e.s, e.l, e.opacity);
2567
- if (e instanceof K || (e = xa(e)), !e) return new $();
2825
+ if (e instanceof K || (e = za(e)), !e) return new $();
2568
2826
  if (e instanceof $) return e;
2569
2827
  e = e.rgb();
2570
2828
  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;
2571
2829
  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 $(o, s, c, e.opacity);
2572
2830
  }
2573
- function Ma(e, t, n, r) {
2574
- return arguments.length === 1 ? ja(e) : new $(e, t, n, r ?? 1);
2831
+ function Xa(e, t, n, r) {
2832
+ return arguments.length === 1 ? Ya(e) : new $(e, t, n, r ?? 1);
2575
2833
  }
2576
2834
  function $(e, t, n, r) {
2577
2835
  this.h = +e, this.s = +t, this.l = +n, this.opacity = +r;
2578
2836
  }
2579
- aa($, Ma, oa(K, {
2837
+ Ca($, Xa, wa(K, {
2580
2838
  brighter(e) {
2581
- return e = e == null ? sa : sa ** +e, new $(this.h, this.s, this.l * e, this.opacity);
2839
+ return e = e == null ? Ta : Ta ** +e, new $(this.h, this.s, this.l * e, this.opacity);
2582
2840
  },
2583
2841
  darker(e) {
2584
2842
  return e = e == null ? q : q ** +e, new $(this.h, this.s, this.l * e, this.opacity);
2585
2843
  },
2586
2844
  rgb() {
2587
2845
  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;
2588
- return new X(Fa(e >= 240 ? e - 240 : e + 120, i, r), Fa(e, i, r), Fa(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
2846
+ return new X($a(e >= 240 ? e - 240 : e + 120, i, r), $a(e, i, r), $a(e < 120 ? e + 240 : e - 120, i, r), this.opacity);
2589
2847
  },
2590
2848
  clamp() {
2591
- return new $(Na(this.h), Pa(this.s), Pa(this.l), ka(this.opacity));
2849
+ return new $(Za(this.h), Qa(this.s), Qa(this.l), qa(this.opacity));
2592
2850
  },
2593
2851
  displayable() {
2594
2852
  return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
2595
2853
  },
2596
2854
  formatHsl() {
2597
- let e = ka(this.opacity);
2598
- return `${e === 1 ? "hsl(" : "hsla("}${Na(this.h)}, ${Pa(this.s) * 100}%, ${Pa(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
2855
+ let e = qa(this.opacity);
2856
+ return `${e === 1 ? "hsl(" : "hsla("}${Za(this.h)}, ${Qa(this.s) * 100}%, ${Qa(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
2599
2857
  }
2600
2858
  }));
2601
- function Na(e) {
2859
+ function Za(e) {
2602
2860
  return e = (e || 0) % 360, e < 0 ? e + 360 : e;
2603
2861
  }
2604
- function Pa(e) {
2862
+ function Qa(e) {
2605
2863
  return Math.max(0, Math.min(1, e || 0));
2606
2864
  }
2607
- function Fa(e, t, n) {
2865
+ function $a(e, t, n) {
2608
2866
  return (e < 60 ? t + (n - t) * e / 60 : e < 180 ? n : e < 240 ? t + (n - t) * (240 - e) / 60 : t) * 255;
2609
2867
  }
2610
2868
  //#endregion
2611
2869
  //#region ../core/src/view/renderingContext/clipOptions.js
2612
- function Ia(e) {
2870
+ function eo(e) {
2613
2871
  if (e.clip) return e.clip;
2614
2872
  if (e.clipRect) return {
2615
2873
  rect: e.clipRect,
@@ -2617,36 +2875,36 @@ function Ia(e) {
2617
2875
  clipY: !0
2618
2876
  };
2619
2877
  }
2620
- function La(e, t) {
2878
+ function to(e, t) {
2621
2879
  return e === t ? !0 : !e || !t ? !1 : e.clipX === t.clipX && e.clipY === t.clipY && e.rect.equals(t.rect);
2622
2880
  }
2623
- function Ra(e, t, n) {
2881
+ function no(e, t, n) {
2624
2882
  return t || n ? {
2625
2883
  rect: e,
2626
2884
  clipX: t,
2627
2885
  clipY: n
2628
2886
  } : void 0;
2629
2887
  }
2630
- function za(e, t) {
2888
+ function ro(e, t) {
2631
2889
  return t ? t.clipX && t.clipY ? e.intersect(t.rect) : t.clipX ? e.intersectX(t.rect) : t.clipY ? e.intersectY(t.rect) : e : e;
2632
2890
  }
2633
- function Ba(e, t) {
2891
+ function io(e, t) {
2634
2892
  if (!e) return t;
2635
2893
  if (!t) return e;
2636
2894
  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;
2637
- return Ra(e.rect.modify({
2895
+ return no(e.rect.modify({
2638
2896
  x: () => i.x,
2639
2897
  y: () => a.y,
2640
2898
  width: () => i.width,
2641
2899
  height: () => a.height
2642
2900
  }), n, r);
2643
2901
  }
2644
- function Va(e, t) {
2645
- if (e === !0) return Ra(t, !0, !0);
2646
- if (e === "x") return Ra(t, !0, !1);
2647
- if (e === "y") return Ra(t, !1, !0);
2902
+ function ao(e, t) {
2903
+ if (e === !0) return no(t, !0, !0);
2904
+ if (e === "x") return no(t, !0, !1);
2905
+ if (e === "y") return no(t, !1, !0);
2648
2906
  }
2649
- function Ha(e) {
2907
+ function oo(e) {
2650
2908
  let t = e.mark;
2651
2909
  if (t) {
2652
2910
  let e = t.properties.clip;
@@ -2668,8 +2926,8 @@ function Ha(e) {
2668
2926
  clipY: n && i
2669
2927
  };
2670
2928
  }
2671
- function Ua(e, t, n) {
2672
- if (t !== "never") return Ba(e, Va(t, n));
2929
+ function so(e, t, n) {
2930
+ if (t !== "never") return io(e, ao(t, n));
2673
2931
  }
2674
2932
  //#endregion
2675
- export { di as $, Ue as $t, Ri as A, Tt as At, Ui as B, Se as Bt, Xi as C, u as Cn, en as Ct, Yi as D, i as Dn, an as Dt, $i as E, o as En, Xt as Et, Li as F, pt as Ft, Mi as G, it as Gt, U as H, $e as Ht, Ki as I, ht as It, Ei as J, Me as Jt, qi as K, Ze as Kt, H as L, _t as Lt, Ai as M, xt as Mt, ki as N, S as Nt, Ji as O, wt as Ot, ji as P, vt as Pt, Ci as Q, He as Qt, Wi as R, gt as Rt, Zi as S, d as Sn, tn as St, ra as T, s as Tn, Bt as Tt, Fi as U, De as Ut, Gi as V, Xe as Vt, Ii as W, je as Wt, Oi as X, ct as Xt, Di as Y, st as Yt, hi as Z, Ve as Zt, oa as _, ee as _n, fn as _t, Ha as a, Ke as an, Gt as at, G as b, p as bn, Wt as bt, K as c, ye as cn, Lt as ct, xa as d, ve as dn, ln as dt, Ne as en, ui as et, q as f, he as fn, Ht as ft, aa as g, g as gn, Vt as gt, wa as h, ne as hn, dn as ht, Ra as i, Ge as in, Ut as it, Ni as j, St as jt, Hi as k, kt, X as l, xe as ln, rn as lt, Ta as m, v as mn, Kt as mt, La as n, Oe as nn, Pt as nt, Ia as o, qe as on, hn as ot, Ma as p, ge as pn, pn as pt, Pi as q, at as qt, Ba as r, dt as rn, Mt as rt, Ua as s, Je as sn, It as st, za as t, lt as tn, li as tt, sa as u, be as un, un as ut, ta as v, h as vn, qt as vt, ia as w, l as wn, cn as wt, Qi as x, f as xn, nn as xt, ea as y, m as yn, C as yt, W as z, ut as zt };
2933
+ export { ki as $, Ue as $t, na as A, f as An, Wt as At, sa as B, wt as Bt, ma as C, oe as Cn, bn as Ct, pa as D, h as Dn, wn as Dt, _a as E, g as En, gn as Et, ta as F, o as Fn, zt as Ft, Xi as G, Ne as Gt, ia as H, Ot as Ht, ua as I, i as In, Nt as It, Wi as J, Re as Jt, da as K, st as Kt, ra as L, Mt as Lt, Ji as M, u as Mn, Ft as Mt, qi as N, l as Nn, Lt as Nt, fa as O, m as On, Ut as Ot, Yi as P, s as Pn, It as Pt, Vi as Q, _t as Qt, ca as R, w as Rt, ha as S, ae as Sn, xn as St, xa as T, _ as Tn, on as Tt, $i as U, Dt as Ut, la as V, Et as Vt, ea as W, xt as Wt, Ki as X, gt as Xt, Gi as Y, He as Yt, Ni as Z, ct as Zt, wa as _, Ee as _n, jn as _t, oo as a, We as an, dn as at, G as b, ue as bn, un as bt, K as c, St as cn, nn as ct, za as d, it as dn, On as dt, C as en, Oi as et, q as f, at as fn, cn as ft, Ca as g, ke as gn, sn as gt, Ha as h, je as hn, An as ht, no as i, et as in, ln as it, Zi as j, d as jn, Rt as jt, oa as k, p as kn, Jt as kt, X as l, nt as ln, Cn as lt, Ua as m, Me as mn, fn as mt, to as n, Qe as nn, $t as nt, eo as o, bt as on, Pn as ot, Xa as p, Ae as pn, Mn as pt, Qi as q, ut as qt, io as r, $e as rn, Zt as rt, so as s, ze as sn, tn as st, ro as t, yt as tn, Di as tt, Ta as u, rt as un, kn as ut, ya as v, De as vn, pn as vt, Sa as w, x as wn, Dn as wt, ga as x, se as xn, Sn as xt, va as y, me as yn, T as yt, aa as z, kt as zt };