@malloydata/render 0.0.194-dev241001212731 → 0.0.194
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module/index.mjs +5669 -5674
- package/dist/module/index.umd.js +195 -195
- package/dist/register/register.mjs +993 -998
- package/dist/register/register.umd.js +41 -41
- package/dist/webcomponent/malloy-render.mjs +993 -998
- package/dist/webcomponent/malloy-render.umd.js +41 -41
- package/package.json +2 -2
|
@@ -441,9 +441,9 @@ function _le(t, e, n = {}) {
|
|
|
441
441
|
return rg(() => wB(s)), () => {
|
|
442
442
|
let a = t() || [], l, c;
|
|
443
443
|
return a[YR], qs(() => {
|
|
444
|
-
let x = a.length, h, p, m, g, y, E, A, v,
|
|
444
|
+
let x = a.length, h, p, m, g, y, E, A, v, S;
|
|
445
445
|
if (x === 0)
|
|
446
|
-
o !== 0 && (wB(s), s = [], r = [], i = [], o = 0, u && (u = [])), n.fallback && (r = [Sle], i[0] = $1((
|
|
446
|
+
o !== 0 && (wB(s), s = [], r = [], i = [], o = 0, u && (u = [])), n.fallback && (r = [Sle], i[0] = $1((_) => (s[0] = _, n.fallback())), o = 1);
|
|
447
447
|
else if (o === 0) {
|
|
448
448
|
for (i = new Array(x), c = 0; c < x; c++)
|
|
449
449
|
r[c] = a[c], i[c] = $1(f);
|
|
@@ -454,9 +454,9 @@ function _le(t, e, n = {}) {
|
|
|
454
454
|
for (A = o - 1, v = x - 1; A >= E && v >= E && r[A] === a[v]; A--, v--)
|
|
455
455
|
m[v] = i[A], g[v] = s[A], u && (y[v] = u[A]);
|
|
456
456
|
for (h = /* @__PURE__ */ new Map(), p = new Array(v + 1), c = v; c >= E; c--)
|
|
457
|
-
|
|
457
|
+
S = a[c], l = h.get(S), p[c] = l === void 0 ? -1 : l, h.set(S, c);
|
|
458
458
|
for (l = E; l <= A; l++)
|
|
459
|
-
|
|
459
|
+
S = r[l], c = h.get(S), c !== void 0 && c !== -1 ? (m[c] = i[l], g[c] = s[l], u && (y[c] = u[l]), c = p[c], h.set(S, c)) : s[l]();
|
|
460
460
|
for (c = E; c < x; c++)
|
|
461
461
|
c in m ? (i[c] = m[c], s[c] = g[c], u && (u[c] = y[c], u[c](c))) : i[c] = $1(f);
|
|
462
462
|
i = i.slice(0, o = x), r = a.slice(0);
|
|
@@ -1544,8 +1544,8 @@ function A0e(t) {
|
|
|
1544
1544
|
for (var p = 16; p < 80; ++p)
|
|
1545
1545
|
x[p] = iT(x[p - 3] ^ x[p - 8] ^ x[p - 14] ^ x[p - 16], 1);
|
|
1546
1546
|
for (var m = n[0], g = n[1], y = n[2], E = n[3], A = n[4], v = 0; v < 80; ++v) {
|
|
1547
|
-
var
|
|
1548
|
-
A = E, E = y, y = iT(g, 30) >>> 0, g = m, m =
|
|
1547
|
+
var S = Math.floor(v / 20), _ = iT(m, 5) + E0e(S, g, y, E) + A + e[S] + x[v] >>> 0;
|
|
1548
|
+
A = E, E = y, y = iT(g, 30) >>> 0, g = m, m = _;
|
|
1549
1549
|
}
|
|
1550
1550
|
n[0] = n[0] + m >>> 0, n[1] = n[1] + g >>> 0, n[2] = n[2] + y >>> 0, n[3] = n[3] + E >>> 0, n[4] = n[4] + A >>> 0;
|
|
1551
1551
|
}
|
|
@@ -2026,11 +2026,11 @@ var qf = {}, OQ = {};
|
|
|
2026
2026
|
takes: { value: "number" },
|
|
2027
2027
|
returns: "boolean",
|
|
2028
2028
|
impl: { sql: "COALESCE(IS_INF(${value}), false)" }
|
|
2029
|
-
},
|
|
2029
|
+
}, S = {
|
|
2030
2030
|
takes: { value: "number" },
|
|
2031
2031
|
returns: "boolean",
|
|
2032
2032
|
impl: { sql: "COALESCE(IS_NAN(${value}), false)" }
|
|
2033
|
-
},
|
|
2033
|
+
}, _ = {
|
|
2034
2034
|
...E,
|
|
2035
2035
|
impl: { function: "LEAST" }
|
|
2036
2036
|
}, C = {
|
|
@@ -2404,8 +2404,8 @@ var qf = {}, OQ = {};
|
|
|
2404
2404
|
greatest: E,
|
|
2405
2405
|
ifnull: A,
|
|
2406
2406
|
is_inf: v,
|
|
2407
|
-
is_nan:
|
|
2408
|
-
least:
|
|
2407
|
+
is_nan: S,
|
|
2408
|
+
least: _,
|
|
2409
2409
|
length: C,
|
|
2410
2410
|
ln: b,
|
|
2411
2411
|
log: R,
|
|
@@ -5757,14 +5757,14 @@ var Kxe = function(e) {
|
|
|
5757
5757
|
return r(Z) === "Uint32Array";
|
|
5758
5758
|
}
|
|
5759
5759
|
t.isUint32Array = v;
|
|
5760
|
-
function
|
|
5760
|
+
function S(Z) {
|
|
5761
5761
|
return r(Z) === "Int8Array";
|
|
5762
5762
|
}
|
|
5763
|
-
t.isInt8Array =
|
|
5764
|
-
function
|
|
5763
|
+
t.isInt8Array = S;
|
|
5764
|
+
function _(Z) {
|
|
5765
5765
|
return r(Z) === "Int16Array";
|
|
5766
5766
|
}
|
|
5767
|
-
t.isInt16Array =
|
|
5767
|
+
t.isInt16Array = _;
|
|
5768
5768
|
function C(Z) {
|
|
5769
5769
|
return r(Z) === "Int32Array";
|
|
5770
5770
|
}
|
|
@@ -5925,7 +5925,7 @@ var nde = fO.exports;
|
|
|
5925
5925
|
return W;
|
|
5926
5926
|
}, r = /%[sdj%]/g;
|
|
5927
5927
|
t.format = function(D) {
|
|
5928
|
-
if (!
|
|
5928
|
+
if (!_(D)) {
|
|
5929
5929
|
for (var k = [], j = 0; j < arguments.length; j++)
|
|
5930
5930
|
k.push(u(arguments[j]));
|
|
5931
5931
|
return k.join(" ");
|
|
@@ -6038,7 +6038,7 @@ var nde = fO.exports;
|
|
|
6038
6038
|
k.inspect !== t.inspect && // Also filter out any prototype objects using the circular check.
|
|
6039
6039
|
!(k.constructor && k.constructor.prototype === k)) {
|
|
6040
6040
|
var W = k.inspect(j, D);
|
|
6041
|
-
return
|
|
6041
|
+
return _(W) || (W = f(D, W, j)), W;
|
|
6042
6042
|
}
|
|
6043
6043
|
var U = x(D, k);
|
|
6044
6044
|
if (U)
|
|
@@ -6076,11 +6076,11 @@ var nde = fO.exports;
|
|
|
6076
6076
|
function x(D, k) {
|
|
6077
6077
|
if (b(k))
|
|
6078
6078
|
return D.stylize("undefined", "undefined");
|
|
6079
|
-
if (
|
|
6079
|
+
if (_(k)) {
|
|
6080
6080
|
var j = "'" + JSON.stringify(k).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
|
|
6081
6081
|
return D.stylize(j, "string");
|
|
6082
6082
|
}
|
|
6083
|
-
if (
|
|
6083
|
+
if (S(k))
|
|
6084
6084
|
return D.stylize("" + k, "number");
|
|
6085
6085
|
if (E(k))
|
|
6086
6086
|
return D.stylize("" + k, "boolean");
|
|
@@ -6156,14 +6156,14 @@ var nde = fO.exports;
|
|
|
6156
6156
|
return D == null;
|
|
6157
6157
|
}
|
|
6158
6158
|
t.isNullOrUndefined = v;
|
|
6159
|
-
function
|
|
6159
|
+
function S(D) {
|
|
6160
6160
|
return typeof D == "number";
|
|
6161
6161
|
}
|
|
6162
|
-
t.isNumber =
|
|
6163
|
-
function
|
|
6162
|
+
t.isNumber = S;
|
|
6163
|
+
function _(D) {
|
|
6164
6164
|
return typeof D == "string";
|
|
6165
6165
|
}
|
|
6166
|
-
t.isString =
|
|
6166
|
+
t.isString = _;
|
|
6167
6167
|
function C(D) {
|
|
6168
6168
|
return typeof D == "symbol";
|
|
6169
6169
|
}
|
|
@@ -6317,58 +6317,58 @@ function YQ() {
|
|
|
6317
6317
|
if (o$)
|
|
6318
6318
|
return hT;
|
|
6319
6319
|
o$ = 1;
|
|
6320
|
-
function t(
|
|
6320
|
+
function t(S) {
|
|
6321
6321
|
"@babel/helpers - typeof";
|
|
6322
|
-
return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(
|
|
6323
|
-
return typeof
|
|
6324
|
-
} : function(
|
|
6325
|
-
return
|
|
6326
|
-
}, t(
|
|
6322
|
+
return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(_) {
|
|
6323
|
+
return typeof _;
|
|
6324
|
+
} : function(_) {
|
|
6325
|
+
return _ && typeof Symbol == "function" && _.constructor === Symbol && _ !== Symbol.prototype ? "symbol" : typeof _;
|
|
6326
|
+
}, t(S);
|
|
6327
6327
|
}
|
|
6328
|
-
function e(
|
|
6329
|
-
for (var C = 0; C <
|
|
6330
|
-
var b =
|
|
6331
|
-
b.enumerable = b.enumerable || !1, b.configurable = !0, "value" in b && (b.writable = !0), Object.defineProperty(
|
|
6328
|
+
function e(S, _) {
|
|
6329
|
+
for (var C = 0; C < _.length; C++) {
|
|
6330
|
+
var b = _[C];
|
|
6331
|
+
b.enumerable = b.enumerable || !1, b.configurable = !0, "value" in b && (b.writable = !0), Object.defineProperty(S, r(b.key), b);
|
|
6332
6332
|
}
|
|
6333
6333
|
}
|
|
6334
|
-
function n(
|
|
6335
|
-
return
|
|
6334
|
+
function n(S, _, C) {
|
|
6335
|
+
return _ && e(S.prototype, _), C && e(S, C), Object.defineProperty(S, "prototype", { writable: !1 }), S;
|
|
6336
6336
|
}
|
|
6337
|
-
function r(
|
|
6338
|
-
var
|
|
6339
|
-
return t(
|
|
6337
|
+
function r(S) {
|
|
6338
|
+
var _ = i(S, "string");
|
|
6339
|
+
return t(_) === "symbol" ? _ : String(_);
|
|
6340
6340
|
}
|
|
6341
|
-
function i(
|
|
6342
|
-
if (t(
|
|
6343
|
-
return
|
|
6344
|
-
var C =
|
|
6341
|
+
function i(S, _) {
|
|
6342
|
+
if (t(S) !== "object" || S === null)
|
|
6343
|
+
return S;
|
|
6344
|
+
var C = S[Symbol.toPrimitive];
|
|
6345
6345
|
if (C !== void 0) {
|
|
6346
|
-
var b = C.call(
|
|
6346
|
+
var b = C.call(S, _ || "default");
|
|
6347
6347
|
if (t(b) !== "object")
|
|
6348
6348
|
return b;
|
|
6349
6349
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
6350
6350
|
}
|
|
6351
|
-
return (
|
|
6351
|
+
return (_ === "string" ? String : Number)(S);
|
|
6352
6352
|
}
|
|
6353
|
-
function s(
|
|
6354
|
-
if (!(
|
|
6353
|
+
function s(S, _) {
|
|
6354
|
+
if (!(S instanceof _))
|
|
6355
6355
|
throw new TypeError("Cannot call a class as a function");
|
|
6356
6356
|
}
|
|
6357
|
-
function o(
|
|
6358
|
-
if (typeof
|
|
6357
|
+
function o(S, _) {
|
|
6358
|
+
if (typeof _ != "function" && _ !== null)
|
|
6359
6359
|
throw new TypeError("Super expression must either be null or a function");
|
|
6360
|
-
|
|
6360
|
+
S.prototype = Object.create(_ && _.prototype, { constructor: { value: S, writable: !0, configurable: !0 } }), Object.defineProperty(S, "prototype", { writable: !1 }), _ && u(S, _);
|
|
6361
6361
|
}
|
|
6362
|
-
function u(
|
|
6362
|
+
function u(S, _) {
|
|
6363
6363
|
return u = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(b, R) {
|
|
6364
6364
|
return b.__proto__ = R, b;
|
|
6365
|
-
}, u(
|
|
6365
|
+
}, u(S, _);
|
|
6366
6366
|
}
|
|
6367
|
-
function a(
|
|
6368
|
-
var
|
|
6367
|
+
function a(S) {
|
|
6368
|
+
var _ = f();
|
|
6369
6369
|
return function() {
|
|
6370
|
-
var b = x(
|
|
6371
|
-
if (
|
|
6370
|
+
var b = x(S), R;
|
|
6371
|
+
if (_) {
|
|
6372
6372
|
var O = x(this).constructor;
|
|
6373
6373
|
R = Reflect.construct(b, arguments, O);
|
|
6374
6374
|
} else
|
|
@@ -6376,17 +6376,17 @@ function YQ() {
|
|
|
6376
6376
|
return l(this, R);
|
|
6377
6377
|
};
|
|
6378
6378
|
}
|
|
6379
|
-
function l(
|
|
6380
|
-
if (
|
|
6381
|
-
return
|
|
6382
|
-
if (
|
|
6379
|
+
function l(S, _) {
|
|
6380
|
+
if (_ && (t(_) === "object" || typeof _ == "function"))
|
|
6381
|
+
return _;
|
|
6382
|
+
if (_ !== void 0)
|
|
6383
6383
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
6384
|
-
return c(
|
|
6384
|
+
return c(S);
|
|
6385
6385
|
}
|
|
6386
|
-
function c(
|
|
6387
|
-
if (
|
|
6386
|
+
function c(S) {
|
|
6387
|
+
if (S === void 0)
|
|
6388
6388
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
6389
|
-
return
|
|
6389
|
+
return S;
|
|
6390
6390
|
}
|
|
6391
6391
|
function f() {
|
|
6392
6392
|
if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham)
|
|
@@ -6400,82 +6400,82 @@ function YQ() {
|
|
|
6400
6400
|
return !1;
|
|
6401
6401
|
}
|
|
6402
6402
|
}
|
|
6403
|
-
function x(
|
|
6403
|
+
function x(S) {
|
|
6404
6404
|
return x = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(C) {
|
|
6405
6405
|
return C.__proto__ || Object.getPrototypeOf(C);
|
|
6406
|
-
}, x(
|
|
6406
|
+
}, x(S);
|
|
6407
6407
|
}
|
|
6408
6408
|
var h = {}, p, m;
|
|
6409
|
-
function g(
|
|
6409
|
+
function g(S, _, C) {
|
|
6410
6410
|
C || (C = Error);
|
|
6411
6411
|
function b(O, L, M) {
|
|
6412
|
-
return typeof
|
|
6412
|
+
return typeof _ == "string" ? _ : _(O, L, M);
|
|
6413
6413
|
}
|
|
6414
6414
|
var R = /* @__PURE__ */ function(O) {
|
|
6415
6415
|
o(M, O);
|
|
6416
6416
|
var L = a(M);
|
|
6417
6417
|
function M(H, G, Q) {
|
|
6418
6418
|
var Y;
|
|
6419
|
-
return s(this, M), Y = L.call(this, b(H, G, Q)), Y.code =
|
|
6419
|
+
return s(this, M), Y = L.call(this, b(H, G, Q)), Y.code = S, Y;
|
|
6420
6420
|
}
|
|
6421
6421
|
return n(M);
|
|
6422
6422
|
}(C);
|
|
6423
|
-
h[
|
|
6423
|
+
h[S] = R;
|
|
6424
6424
|
}
|
|
6425
|
-
function y(
|
|
6426
|
-
if (Array.isArray(
|
|
6427
|
-
var C =
|
|
6428
|
-
return
|
|
6425
|
+
function y(S, _) {
|
|
6426
|
+
if (Array.isArray(S)) {
|
|
6427
|
+
var C = S.length;
|
|
6428
|
+
return S = S.map(function(b) {
|
|
6429
6429
|
return String(b);
|
|
6430
|
-
}), C > 2 ? "one of ".concat(
|
|
6430
|
+
}), C > 2 ? "one of ".concat(_, " ").concat(S.slice(0, C - 1).join(", "), ", or ") + S[C - 1] : C === 2 ? "one of ".concat(_, " ").concat(S[0], " or ").concat(S[1]) : "of ".concat(_, " ").concat(S[0]);
|
|
6431
6431
|
} else
|
|
6432
|
-
return "of ".concat(
|
|
6432
|
+
return "of ".concat(_, " ").concat(String(S));
|
|
6433
6433
|
}
|
|
6434
|
-
function E(
|
|
6435
|
-
return
|
|
6434
|
+
function E(S, _, C) {
|
|
6435
|
+
return S.substr(!C || C < 0 ? 0 : +C, _.length) === _;
|
|
6436
6436
|
}
|
|
6437
|
-
function A(
|
|
6438
|
-
return (C === void 0 || C >
|
|
6437
|
+
function A(S, _, C) {
|
|
6438
|
+
return (C === void 0 || C > S.length) && (C = S.length), S.substring(C - _.length, C) === _;
|
|
6439
6439
|
}
|
|
6440
|
-
function v(
|
|
6441
|
-
return typeof C != "number" && (C = 0), C +
|
|
6440
|
+
function v(S, _, C) {
|
|
6441
|
+
return typeof C != "number" && (C = 0), C + _.length > S.length ? !1 : S.indexOf(_, C) !== -1;
|
|
6442
6442
|
}
|
|
6443
|
-
return g("ERR_AMBIGUOUS_ARGUMENT", 'The "%s" argument is ambiguous. %s', TypeError), g("ERR_INVALID_ARG_TYPE", function(
|
|
6444
|
-
p === void 0 && (p = hi()), p(typeof
|
|
6443
|
+
return g("ERR_AMBIGUOUS_ARGUMENT", 'The "%s" argument is ambiguous. %s', TypeError), g("ERR_INVALID_ARG_TYPE", function(S, _, C) {
|
|
6444
|
+
p === void 0 && (p = hi()), p(typeof S == "string", "'name' must be a string");
|
|
6445
6445
|
var b;
|
|
6446
|
-
typeof
|
|
6446
|
+
typeof _ == "string" && E(_, "not ") ? (b = "must not be", _ = _.replace(/^not /, "")) : b = "must be";
|
|
6447
6447
|
var R;
|
|
6448
|
-
if (A(
|
|
6449
|
-
R = "The ".concat(
|
|
6448
|
+
if (A(S, " argument"))
|
|
6449
|
+
R = "The ".concat(S, " ").concat(b, " ").concat(y(_, "type"));
|
|
6450
6450
|
else {
|
|
6451
|
-
var O = v(
|
|
6452
|
-
R = 'The "'.concat(
|
|
6451
|
+
var O = v(S, ".") ? "property" : "argument";
|
|
6452
|
+
R = 'The "'.concat(S, '" ').concat(O, " ").concat(b, " ").concat(y(_, "type"));
|
|
6453
6453
|
}
|
|
6454
6454
|
return R += ". Received type ".concat(t(C)), R;
|
|
6455
|
-
}, TypeError), g("ERR_INVALID_ARG_VALUE", function(
|
|
6455
|
+
}, TypeError), g("ERR_INVALID_ARG_VALUE", function(S, _) {
|
|
6456
6456
|
var C = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "is invalid";
|
|
6457
6457
|
m === void 0 && (m = r0);
|
|
6458
|
-
var b = m.inspect(
|
|
6459
|
-
return b.length > 128 && (b = "".concat(b.slice(0, 128), "...")), "The argument '".concat(
|
|
6460
|
-
}, TypeError), g("ERR_INVALID_RETURN_VALUE", function(
|
|
6458
|
+
var b = m.inspect(_);
|
|
6459
|
+
return b.length > 128 && (b = "".concat(b.slice(0, 128), "...")), "The argument '".concat(S, "' ").concat(C, ". Received ").concat(b);
|
|
6460
|
+
}, TypeError), g("ERR_INVALID_RETURN_VALUE", function(S, _, C) {
|
|
6461
6461
|
var b;
|
|
6462
|
-
return C && C.constructor && C.constructor.name ? b = "instance of ".concat(C.constructor.name) : b = "type ".concat(t(C)), "Expected ".concat(
|
|
6462
|
+
return C && C.constructor && C.constructor.name ? b = "instance of ".concat(C.constructor.name) : b = "type ".concat(t(C)), "Expected ".concat(S, ' to be returned from the "').concat(_, '"') + " function but got ".concat(b, ".");
|
|
6463
6463
|
}, TypeError), g("ERR_MISSING_ARGS", function() {
|
|
6464
|
-
for (var
|
|
6465
|
-
|
|
6466
|
-
p === void 0 && (p = hi()), p(
|
|
6467
|
-
var b = "The ", R =
|
|
6468
|
-
switch (
|
|
6464
|
+
for (var S = arguments.length, _ = new Array(S), C = 0; C < S; C++)
|
|
6465
|
+
_[C] = arguments[C];
|
|
6466
|
+
p === void 0 && (p = hi()), p(_.length > 0, "At least one arg needs to be specified");
|
|
6467
|
+
var b = "The ", R = _.length;
|
|
6468
|
+
switch (_ = _.map(function(O) {
|
|
6469
6469
|
return '"'.concat(O, '"');
|
|
6470
6470
|
}), R) {
|
|
6471
6471
|
case 1:
|
|
6472
|
-
b += "".concat(
|
|
6472
|
+
b += "".concat(_[0], " argument");
|
|
6473
6473
|
break;
|
|
6474
6474
|
case 2:
|
|
6475
|
-
b += "".concat(
|
|
6475
|
+
b += "".concat(_[0], " and ").concat(_[1], " arguments");
|
|
6476
6476
|
break;
|
|
6477
6477
|
default:
|
|
6478
|
-
b +=
|
|
6478
|
+
b += _.slice(0, R - 1).join(", "), b += ", and ".concat(_[R - 1], " arguments");
|
|
6479
6479
|
break;
|
|
6480
6480
|
}
|
|
6481
6481
|
return "".concat(b, " must be specified");
|
|
@@ -6627,7 +6627,7 @@ function rde() {
|
|
|
6627
6627
|
return re && typeof Symbol == "function" && re.constructor === Symbol && re !== Symbol.prototype ? "symbol" : typeof re;
|
|
6628
6628
|
}, E(X);
|
|
6629
6629
|
}
|
|
6630
|
-
var A = r0, v = A.inspect,
|
|
6630
|
+
var A = r0, v = A.inspect, S = YQ(), _ = S.codes.ERR_INVALID_ARG_TYPE;
|
|
6631
6631
|
function C(X, re, se) {
|
|
6632
6632
|
return (se === void 0 || se > X.length) && (se = X.length), X.substring(se - re.length, se) === re;
|
|
6633
6633
|
}
|
|
@@ -6763,7 +6763,7 @@ function rde() {
|
|
|
6763
6763
|
function Ee(D) {
|
|
6764
6764
|
var k;
|
|
6765
6765
|
if (r(this, Ee), E(D) !== "object" || D === null)
|
|
6766
|
-
throw new
|
|
6766
|
+
throw new _("options", "Object", D);
|
|
6767
6767
|
var j = D.message, W = D.operator, U = D.stackStartFn, B = D.actual, T = D.expected, w = Error.stackTraceLimit;
|
|
6768
6768
|
if (Error.stackTraceLimit = 0, j != null)
|
|
6769
6769
|
k = se.call(this, String(j));
|
|
@@ -6895,11 +6895,11 @@ function ide() {
|
|
|
6895
6895
|
for (var v = 0; v < h.length; ++v)
|
|
6896
6896
|
E.push(String(v));
|
|
6897
6897
|
if (g && h.length > 0)
|
|
6898
|
-
for (var
|
|
6899
|
-
E.push(String(
|
|
6898
|
+
for (var S = 0; S < h.length; ++S)
|
|
6899
|
+
E.push(String(S));
|
|
6900
6900
|
else
|
|
6901
|
-
for (var
|
|
6902
|
-
!(A &&
|
|
6901
|
+
for (var _ in h)
|
|
6902
|
+
!(A && _ === "prototype") && e.call(h, _) && E.push(String(_));
|
|
6903
6903
|
if (s)
|
|
6904
6904
|
for (var C = f(h), b = 0; b < u.length; ++b)
|
|
6905
6905
|
!(C && u[b] === "constructor") && e.call(h, u[b]) && E.push(u[b]);
|
|
@@ -7214,7 +7214,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7214
7214
|
function h(te) {
|
|
7215
7215
|
return te.call.bind(te);
|
|
7216
7216
|
}
|
|
7217
|
-
var p = h(Object.prototype.hasOwnProperty), m = h(Object.prototype.propertyIsEnumerable), g = h(Object.prototype.toString), y = r0.types, E = y.isAnyArrayBuffer, A = y.isArrayBufferView, v = y.isDate,
|
|
7217
|
+
var p = h(Object.prototype.hasOwnProperty), m = h(Object.prototype.propertyIsEnumerable), g = h(Object.prototype.toString), y = r0.types, E = y.isAnyArrayBuffer, A = y.isArrayBufferView, v = y.isDate, S = y.isMap, _ = y.isRegExp, C = y.isSet, b = y.isNativeError, R = y.isBoxedPrimitive, O = y.isNumberObject, L = y.isStringObject, M = y.isBooleanObject, H = y.isBigIntObject, G = y.isSymbolObject, Q = y.isFloat32Array, Y = y.isFloat64Array;
|
|
7218
7218
|
function J(te) {
|
|
7219
7219
|
if (te.length === 0 || te.length > 10)
|
|
7220
7220
|
return !0;
|
|
@@ -7288,13 +7288,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7288
7288
|
var ye = ee(te), ne = ee(le);
|
|
7289
7289
|
return ye.length !== ne.length ? !1 : I(te, le, Re, Ue, D, ye);
|
|
7290
7290
|
}
|
|
7291
|
-
if (Pe === "[object Object]" && (!
|
|
7291
|
+
if (Pe === "[object Object]" && (!S(te) && S(le) || !C(te) && C(le)))
|
|
7292
7292
|
return !1;
|
|
7293
7293
|
if (v(te)) {
|
|
7294
7294
|
if (!v(le) || Date.prototype.getTime.call(te) !== Date.prototype.getTime.call(le))
|
|
7295
7295
|
return !1;
|
|
7296
|
-
} else if (
|
|
7297
|
-
if (!
|
|
7296
|
+
} else if (_(te)) {
|
|
7297
|
+
if (!_(le) || !W(te, le))
|
|
7298
7298
|
return !1;
|
|
7299
7299
|
} else if (b(te) || te instanceof Error) {
|
|
7300
7300
|
if (te.message !== le.message || te.name !== le.name)
|
|
@@ -7310,8 +7310,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
7310
7310
|
} else {
|
|
7311
7311
|
if (C(te))
|
|
7312
7312
|
return !C(le) || te.size !== le.size ? !1 : I(te, le, Re, Ue, k);
|
|
7313
|
-
if (
|
|
7314
|
-
return !
|
|
7313
|
+
if (S(te))
|
|
7314
|
+
return !S(le) || te.size !== le.size ? !1 : I(te, le, Re, Ue, j);
|
|
7315
7315
|
if (E(te)) {
|
|
7316
7316
|
if (!T(te, le))
|
|
7317
7317
|
return !1;
|
|
@@ -7555,10 +7555,10 @@ function hi() {
|
|
|
7555
7555
|
if (!(U instanceof B))
|
|
7556
7556
|
throw new TypeError("Cannot call a class as a function");
|
|
7557
7557
|
}
|
|
7558
|
-
var o = YQ(), u = o.codes, a = u.ERR_AMBIGUOUS_ARGUMENT, l = u.ERR_INVALID_ARG_TYPE, c = u.ERR_INVALID_ARG_VALUE, f = u.ERR_INVALID_RETURN_VALUE, x = u.ERR_MISSING_ARGS, h = rde(), p = r0, m = p.inspect, g = r0.types, y = g.isPromise, E = g.isRegExp, A = dde(), v = Dw(),
|
|
7558
|
+
var o = YQ(), u = o.codes, a = u.ERR_AMBIGUOUS_ARGUMENT, l = u.ERR_INVALID_ARG_TYPE, c = u.ERR_INVALID_ARG_VALUE, f = u.ERR_INVALID_RETURN_VALUE, x = u.ERR_MISSING_ARGS, h = rde(), p = r0, m = p.inspect, g = r0.types, y = g.isPromise, E = g.isRegExp, A = dde(), v = Dw(), S = c4("RegExp.prototype.test"), _, C;
|
|
7559
7559
|
function b() {
|
|
7560
7560
|
var U = Ade();
|
|
7561
|
-
|
|
7561
|
+
_ = U.isDeepEqual, C = U.isDeepStrictEqual;
|
|
7562
7562
|
}
|
|
7563
7563
|
var R = !1, O = dT.exports = Q, L = {};
|
|
7564
7564
|
function M(U) {
|
|
@@ -7636,7 +7636,7 @@ function hi() {
|
|
|
7636
7636
|
}, O.deepEqual = function U(B, T, w) {
|
|
7637
7637
|
if (arguments.length < 2)
|
|
7638
7638
|
throw new x("actual", "expected");
|
|
7639
|
-
|
|
7639
|
+
_ === void 0 && b(), _(B, T) || M({
|
|
7640
7640
|
actual: B,
|
|
7641
7641
|
expected: T,
|
|
7642
7642
|
message: w,
|
|
@@ -7646,7 +7646,7 @@ function hi() {
|
|
|
7646
7646
|
}, O.notDeepEqual = function U(B, T, w) {
|
|
7647
7647
|
if (arguments.length < 2)
|
|
7648
7648
|
throw new x("actual", "expected");
|
|
7649
|
-
|
|
7649
|
+
_ === void 0 && b(), _(B, T) && M({
|
|
7650
7650
|
actual: B,
|
|
7651
7651
|
expected: T,
|
|
7652
7652
|
message: w,
|
|
@@ -7656,7 +7656,7 @@ function hi() {
|
|
|
7656
7656
|
}, O.deepStrictEqual = function U(B, T, w) {
|
|
7657
7657
|
if (arguments.length < 2)
|
|
7658
7658
|
throw new x("actual", "expected");
|
|
7659
|
-
|
|
7659
|
+
_ === void 0 && b(), C(B, T) || M({
|
|
7660
7660
|
actual: B,
|
|
7661
7661
|
expected: T,
|
|
7662
7662
|
message: w,
|
|
@@ -7667,7 +7667,7 @@ function hi() {
|
|
|
7667
7667
|
function Y(U, B, T) {
|
|
7668
7668
|
if (arguments.length < 2)
|
|
7669
7669
|
throw new x("actual", "expected");
|
|
7670
|
-
|
|
7670
|
+
_ === void 0 && b(), C(U, B) && M({
|
|
7671
7671
|
actual: U,
|
|
7672
7672
|
expected: B,
|
|
7673
7673
|
message: T,
|
|
@@ -7699,7 +7699,7 @@ function hi() {
|
|
|
7699
7699
|
var J = /* @__PURE__ */ n(function U(B, T, w) {
|
|
7700
7700
|
var $ = this;
|
|
7701
7701
|
s(this, U), T.forEach(function(q) {
|
|
7702
|
-
q in B && (w !== void 0 && typeof w[q] == "string" && E(B[q]) &&
|
|
7702
|
+
q in B && (w !== void 0 && typeof w[q] == "string" && E(B[q]) && S(B[q], w[q]) ? $[q] = w[q] : $[q] = B[q]);
|
|
7703
7703
|
});
|
|
7704
7704
|
});
|
|
7705
7705
|
function ee(U, B, T, w, $, q) {
|
|
@@ -7725,7 +7725,7 @@ function hi() {
|
|
|
7725
7725
|
function X(U, B, T, w) {
|
|
7726
7726
|
if (typeof B != "function") {
|
|
7727
7727
|
if (E(B))
|
|
7728
|
-
return
|
|
7728
|
+
return S(B, U);
|
|
7729
7729
|
if (arguments.length === 2)
|
|
7730
7730
|
throw new l("expected", ["Function", "RegExp"], B);
|
|
7731
7731
|
if (t(U) !== "object" || U === null) {
|
|
@@ -7743,8 +7743,8 @@ function hi() {
|
|
|
7743
7743
|
q.push("name", "message");
|
|
7744
7744
|
else if (q.length === 0)
|
|
7745
7745
|
throw new c("error", B, "may not be an empty object");
|
|
7746
|
-
return
|
|
7747
|
-
typeof U[I] == "string" && E(B[I]) &&
|
|
7746
|
+
return _ === void 0 && b(), q.forEach(function(I) {
|
|
7747
|
+
typeof U[I] == "string" && E(B[I]) && S(B[I], U[I]) || ee(U, B, I, T, q, w);
|
|
7748
7748
|
}), !0;
|
|
7749
7749
|
}
|
|
7750
7750
|
return B.prototype !== void 0 && U instanceof B ? !0 : Error.isPrototypeOf(B) ? !1 : B.call({}, U) === !0;
|
|
@@ -7879,7 +7879,7 @@ function hi() {
|
|
|
7879
7879
|
if (!E(B))
|
|
7880
7880
|
throw new l("regexp", "RegExp", B);
|
|
7881
7881
|
var q = $ === "match";
|
|
7882
|
-
if (typeof U != "string" ||
|
|
7882
|
+
if (typeof U != "string" || S(B, U) !== q) {
|
|
7883
7883
|
if (T instanceof Error)
|
|
7884
7884
|
throw T;
|
|
7885
7885
|
var I = !T;
|
|
@@ -8670,12 +8670,12 @@ function Do() {
|
|
|
8670
8670
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
8671
8671
|
*/
|
|
8672
8672
|
var e = N && N.__decorate || function(m, g, y, E) {
|
|
8673
|
-
var A = arguments.length, v = A < 3 ? g : E === null ? E = Object.getOwnPropertyDescriptor(g, y) : E,
|
|
8673
|
+
var A = arguments.length, v = A < 3 ? g : E === null ? E = Object.getOwnPropertyDescriptor(g, y) : E, S;
|
|
8674
8674
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
8675
8675
|
v = Reflect.decorate(m, g, y, E);
|
|
8676
8676
|
else
|
|
8677
|
-
for (var
|
|
8678
|
-
(
|
|
8677
|
+
for (var _ = m.length - 1; _ >= 0; _--)
|
|
8678
|
+
(S = m[_]) && (v = (A < 3 ? S(v) : A > 3 ? S(g, y, v) : S(g, y)) || v);
|
|
8679
8679
|
return A > 3 && v && Object.defineProperty(g, y, v), v;
|
|
8680
8680
|
}, n = N && N.__param || function(m, g) {
|
|
8681
8681
|
return function(y, E) {
|
|
@@ -8709,8 +8709,8 @@ function Do() {
|
|
|
8709
8709
|
return E ? f.EMPTY_FULL : f.EMPTY_LOCAL;
|
|
8710
8710
|
let A;
|
|
8711
8711
|
y._parent ? A = f.fromRuleContext(g, y._parent, E) : A = E ? f.EMPTY_FULL : f.EMPTY_LOCAL;
|
|
8712
|
-
let
|
|
8713
|
-
return A.getChild(
|
|
8712
|
+
let S = g.states[y.invokingState].transition(0);
|
|
8713
|
+
return A.getChild(S.followState.stateNumber);
|
|
8714
8714
|
}
|
|
8715
8715
|
static addEmptyContext(g) {
|
|
8716
8716
|
return g.addEmptyContext();
|
|
@@ -8730,14 +8730,14 @@ function Do() {
|
|
|
8730
8730
|
let M = E.join(g.getParent(0), y.getParent(0));
|
|
8731
8731
|
return M === g.getParent(0) ? g : M === y.getParent(0) ? y : M.getChild(g.getReturnState(0));
|
|
8732
8732
|
}
|
|
8733
|
-
let
|
|
8733
|
+
let S = 0, _ = new Array(A + v), C = new Array(_.length), b = 0, R = 0, O = !0, L = !0;
|
|
8734
8734
|
for (; b < A && R < v; )
|
|
8735
|
-
g.getReturnState(b) === y.getReturnState(R) ? (S
|
|
8735
|
+
g.getReturnState(b) === y.getReturnState(R) ? (_[S] = E.join(g.getParent(b), y.getParent(R)), C[S] = g.getReturnState(b), O = O && _[S] === g.getParent(b), L = L && _[S] === y.getParent(R), b++, R++) : g.getReturnState(b) < y.getReturnState(R) ? (_[S] = g.getParent(b), C[S] = g.getReturnState(b), L = !1, b++) : (l(y.getReturnState(R) < g.getReturnState(b)), _[S] = y.getParent(R), C[S] = y.getReturnState(R), O = !1, R++), S++;
|
|
8736
8736
|
for (; b < A; )
|
|
8737
|
-
S
|
|
8737
|
+
_[S] = g.getParent(b), C[S] = g.getReturnState(b), b++, L = !1, S++;
|
|
8738
8738
|
for (; R < v; )
|
|
8739
|
-
S
|
|
8740
|
-
return O ? g : L ? y : (
|
|
8739
|
+
_[S] = y.getParent(R), C[S] = y.getReturnState(R), R++, O = !1, S++;
|
|
8740
|
+
return O ? g : L ? y : (S < _.length && (_ = _.slice(0, S), C = C.slice(0, S)), _.length === 0 ? f.EMPTY_FULL : _.length === 1 ? new p(_[0], C[0]) : new h(_, C));
|
|
8741
8741
|
}
|
|
8742
8742
|
static isEmptyLocal(g) {
|
|
8743
8743
|
return g === f.EMPTY_LOCAL;
|
|
@@ -8750,31 +8750,31 @@ function Do() {
|
|
|
8750
8750
|
return A;
|
|
8751
8751
|
if (A = y.get(g), A)
|
|
8752
8752
|
return E.put(g, A), A;
|
|
8753
|
-
let v = !1,
|
|
8754
|
-
for (let C = 0; C <
|
|
8753
|
+
let v = !1, S = new Array(g.size);
|
|
8754
|
+
for (let C = 0; C < S.length; C++) {
|
|
8755
8755
|
let b = f.getCachedContext(g.getParent(C), y, E);
|
|
8756
8756
|
if (v || b !== g.getParent(C)) {
|
|
8757
8757
|
if (!v) {
|
|
8758
|
-
|
|
8758
|
+
S = new Array(g.size);
|
|
8759
8759
|
for (let R = 0; R < g.size; R++)
|
|
8760
|
-
|
|
8760
|
+
S[R] = g.getParent(R);
|
|
8761
8761
|
v = !0;
|
|
8762
8762
|
}
|
|
8763
|
-
|
|
8763
|
+
S[C] = b;
|
|
8764
8764
|
}
|
|
8765
8765
|
}
|
|
8766
8766
|
if (!v)
|
|
8767
8767
|
return A = y.putIfAbsent(g, g), E.put(g, A ?? g), g;
|
|
8768
|
-
let
|
|
8769
|
-
if (
|
|
8770
|
-
|
|
8768
|
+
let _;
|
|
8769
|
+
if (S.length === 1)
|
|
8770
|
+
_ = new p(S[0], g.getReturnState(0));
|
|
8771
8771
|
else {
|
|
8772
8772
|
let C = new Array(g.size);
|
|
8773
8773
|
for (let b = 0; b < g.size; b++)
|
|
8774
8774
|
C[b] = g.getReturnState(b);
|
|
8775
|
-
|
|
8775
|
+
_ = new h(S, C, g.hashCode());
|
|
8776
8776
|
}
|
|
8777
|
-
return A = y.putIfAbsent(
|
|
8777
|
+
return A = y.putIfAbsent(_, _), E.put(_, A || _), E.put(g, A || _), _;
|
|
8778
8778
|
}
|
|
8779
8779
|
appendSingleContext(g, y) {
|
|
8780
8780
|
return this.appendContext(f.EMPTY_FULL.getChild(g), y);
|
|
@@ -8789,7 +8789,7 @@ function Do() {
|
|
|
8789
8789
|
let A = [];
|
|
8790
8790
|
e:
|
|
8791
8791
|
for (let v = 0; ; v++) {
|
|
8792
|
-
let
|
|
8792
|
+
let S = 0, _ = !0, C = this, b = y, R = "";
|
|
8793
8793
|
for (R += "["; !C.isEmpty && C !== E; ) {
|
|
8794
8794
|
let O = 0;
|
|
8795
8795
|
if (C.size > 0) {
|
|
@@ -8797,9 +8797,9 @@ function Do() {
|
|
|
8797
8797
|
for (; 1 << L >>> 0 < C.size; )
|
|
8798
8798
|
L++;
|
|
8799
8799
|
let M = (1 << L >>> 0) - 1;
|
|
8800
|
-
if (O = v >>
|
|
8800
|
+
if (O = v >> S & M, _ = _ && O >= C.size - 1, O >= C.size)
|
|
8801
8801
|
continue e;
|
|
8802
|
-
|
|
8802
|
+
S += L;
|
|
8803
8803
|
}
|
|
8804
8804
|
if (g) {
|
|
8805
8805
|
R.length > 1 && (R += " ");
|
|
@@ -8809,7 +8809,7 @@ function Do() {
|
|
|
8809
8809
|
C.getReturnState(O) !== f.EMPTY_FULL_STATE_KEY && (C.isEmpty || (R.length > 1 && (R += " "), R += C.getReturnState(O)));
|
|
8810
8810
|
b = C.getReturnState(O), C = C.getParent(O);
|
|
8811
8811
|
}
|
|
8812
|
-
if (R += "]", A.push(R),
|
|
8812
|
+
if (R += "]", A.push(R), _)
|
|
8813
8813
|
break;
|
|
8814
8814
|
}
|
|
8815
8815
|
return A;
|
|
@@ -8954,12 +8954,12 @@ function Do() {
|
|
|
8954
8954
|
else {
|
|
8955
8955
|
let v = g.size;
|
|
8956
8956
|
g.hasEmpty && v--;
|
|
8957
|
-
let
|
|
8957
|
+
let S = new Array(v), _ = new Array(v);
|
|
8958
8958
|
for (let C = 0; C < v; C++)
|
|
8959
|
-
|
|
8959
|
+
_[C] = g.getReturnState(C);
|
|
8960
8960
|
for (let C = 0; C < v; C++)
|
|
8961
|
-
|
|
8962
|
-
|
|
8961
|
+
S[C] = yc.appendContextImpl(g.getParent(C), y, E);
|
|
8962
|
+
S.length === 1 ? A = new p(S[0], _[0]) : (l(S.length > 1), A = new yc(S, _)), g.hasEmpty && (A = f.join(A, y));
|
|
8963
8963
|
}
|
|
8964
8964
|
E.put(g, A);
|
|
8965
8965
|
}
|
|
@@ -8976,25 +8976,25 @@ function Do() {
|
|
|
8976
8976
|
equalsImpl(g, y) {
|
|
8977
8977
|
let E = [], A = [];
|
|
8978
8978
|
for (E.push(this), A.push(g); ; ) {
|
|
8979
|
-
let v = E.pop(),
|
|
8980
|
-
if (!v || !
|
|
8979
|
+
let v = E.pop(), S = A.pop();
|
|
8980
|
+
if (!v || !S)
|
|
8981
8981
|
break;
|
|
8982
|
-
let
|
|
8983
|
-
if (!y.add(
|
|
8982
|
+
let _ = new a.PredictionContextCache.IdentityCommutativePredictionContextOperands(v, S);
|
|
8983
|
+
if (!y.add(_))
|
|
8984
8984
|
continue;
|
|
8985
|
-
let C =
|
|
8985
|
+
let C = _.x.size;
|
|
8986
8986
|
if (C === 0) {
|
|
8987
|
-
if (!
|
|
8987
|
+
if (!_.x.equals(_.y))
|
|
8988
8988
|
return !1;
|
|
8989
8989
|
continue;
|
|
8990
8990
|
}
|
|
8991
|
-
let b =
|
|
8991
|
+
let b = _.y.size;
|
|
8992
8992
|
if (C !== b)
|
|
8993
8993
|
return !1;
|
|
8994
8994
|
for (let R = 0; R < C; R++) {
|
|
8995
|
-
if (
|
|
8995
|
+
if (_.x.getReturnState(R) !== _.y.getReturnState(R))
|
|
8996
8996
|
return !1;
|
|
8997
|
-
let O =
|
|
8997
|
+
let O = _.x.getParent(R), L = _.y.getParent(R);
|
|
8998
8998
|
if (O.hashCode() !== L.hashCode())
|
|
8999
8999
|
return !1;
|
|
9000
9000
|
O !== L && (E.push(O), A.push(L));
|
|
@@ -9252,28 +9252,28 @@ pn.toCharArray = Ide;
|
|
|
9252
9252
|
}
|
|
9253
9253
|
}
|
|
9254
9254
|
t.SemanticContext = f, function(x) {
|
|
9255
|
-
function m(
|
|
9256
|
-
let
|
|
9257
|
-
for (let C = 0; C <
|
|
9258
|
-
let b =
|
|
9259
|
-
b instanceof x.PrecedencePredicate && (
|
|
9255
|
+
function m(S) {
|
|
9256
|
+
let _ = [];
|
|
9257
|
+
for (let C = 0; C < S.length; C++) {
|
|
9258
|
+
let b = S[C];
|
|
9259
|
+
b instanceof x.PrecedencePredicate && (_.push(b), S.splice(C, 1), C--);
|
|
9260
9260
|
}
|
|
9261
|
-
return
|
|
9261
|
+
return _;
|
|
9262
9262
|
}
|
|
9263
9263
|
class g extends x {
|
|
9264
|
-
constructor(
|
|
9265
|
-
super(), this.ruleIndex =
|
|
9264
|
+
constructor(_ = -1, C = -1, b = !1) {
|
|
9265
|
+
super(), this.ruleIndex = _, this.predIndex = C, this.isCtxDependent = b;
|
|
9266
9266
|
}
|
|
9267
|
-
eval(
|
|
9267
|
+
eval(_, C) {
|
|
9268
9268
|
let b = this.isCtxDependent ? C : void 0;
|
|
9269
|
-
return
|
|
9269
|
+
return _.sempred(b, this.ruleIndex, this.predIndex);
|
|
9270
9270
|
}
|
|
9271
9271
|
hashCode() {
|
|
9272
|
-
let
|
|
9273
|
-
return
|
|
9272
|
+
let _ = s.MurmurHash.initialize();
|
|
9273
|
+
return _ = s.MurmurHash.update(_, this.ruleIndex), _ = s.MurmurHash.update(_, this.predIndex), _ = s.MurmurHash.update(_, this.isCtxDependent ? 1 : 0), _ = s.MurmurHash.finish(_, 3), _;
|
|
9274
9274
|
}
|
|
9275
|
-
equals(
|
|
9276
|
-
return
|
|
9275
|
+
equals(_) {
|
|
9276
|
+
return _ instanceof g ? this === _ ? !0 : this.ruleIndex === _.ruleIndex && this.predIndex === _.predIndex && this.isCtxDependent === _.isCtxDependent : !1;
|
|
9277
9277
|
}
|
|
9278
9278
|
toString() {
|
|
9279
9279
|
return "{" + this.ruleIndex + ":" + this.predIndex + "}?";
|
|
@@ -9289,25 +9289,25 @@ pn.toCharArray = Ide;
|
|
|
9289
9289
|
o.Override
|
|
9290
9290
|
], g.prototype, "toString", null), x.Predicate = g;
|
|
9291
9291
|
class y extends x {
|
|
9292
|
-
constructor(
|
|
9293
|
-
super(), this.precedence =
|
|
9292
|
+
constructor(_) {
|
|
9293
|
+
super(), this.precedence = _;
|
|
9294
9294
|
}
|
|
9295
|
-
eval(
|
|
9296
|
-
return
|
|
9295
|
+
eval(_, C) {
|
|
9296
|
+
return _.precpred(C, this.precedence);
|
|
9297
9297
|
}
|
|
9298
|
-
evalPrecedence(
|
|
9299
|
-
if (
|
|
9298
|
+
evalPrecedence(_, C) {
|
|
9299
|
+
if (_.precpred(C, this.precedence))
|
|
9300
9300
|
return x.NONE;
|
|
9301
9301
|
}
|
|
9302
|
-
compareTo(
|
|
9303
|
-
return this.precedence -
|
|
9302
|
+
compareTo(_) {
|
|
9303
|
+
return this.precedence - _.precedence;
|
|
9304
9304
|
}
|
|
9305
9305
|
hashCode() {
|
|
9306
|
-
let
|
|
9307
|
-
return
|
|
9306
|
+
let _ = 1;
|
|
9307
|
+
return _ = 31 * _ + this.precedence, _;
|
|
9308
9308
|
}
|
|
9309
|
-
equals(
|
|
9310
|
-
return
|
|
9309
|
+
equals(_) {
|
|
9310
|
+
return _ instanceof y ? this === _ ? !0 : this.precedence === _.precedence : !1;
|
|
9311
9311
|
}
|
|
9312
9312
|
toString() {
|
|
9313
9313
|
return "{" + this.precedence + ">=prec}?";
|
|
@@ -9330,18 +9330,18 @@ pn.toCharArray = Ide;
|
|
|
9330
9330
|
}
|
|
9331
9331
|
x.Operator = E;
|
|
9332
9332
|
let A = class LE extends E {
|
|
9333
|
-
constructor(
|
|
9333
|
+
constructor(_, C) {
|
|
9334
9334
|
super();
|
|
9335
9335
|
let b = new r.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);
|
|
9336
|
-
|
|
9336
|
+
_ instanceof LE ? b.addAll(_.opnds) : b.add(_), C instanceof LE ? b.addAll(C.opnds) : b.add(C), this.opnds = b.toArray();
|
|
9337
9337
|
let R = m(this.opnds), O = c(R);
|
|
9338
9338
|
O && this.opnds.push(O);
|
|
9339
9339
|
}
|
|
9340
9340
|
get operands() {
|
|
9341
9341
|
return this.opnds;
|
|
9342
9342
|
}
|
|
9343
|
-
equals(
|
|
9344
|
-
return this ===
|
|
9343
|
+
equals(_) {
|
|
9344
|
+
return this === _ ? !0 : _ instanceof LE ? i.ArrayEqualityComparator.INSTANCE.equals(this.opnds, _.opnds) : !1;
|
|
9345
9345
|
}
|
|
9346
9346
|
hashCode() {
|
|
9347
9347
|
return s.MurmurHash.hashCode(this.opnds, 40363613);
|
|
@@ -9352,16 +9352,16 @@ pn.toCharArray = Ide;
|
|
|
9352
9352
|
* The evaluation of predicates by this context is short-circuiting, but
|
|
9353
9353
|
* unordered.
|
|
9354
9354
|
*/
|
|
9355
|
-
eval(
|
|
9355
|
+
eval(_, C) {
|
|
9356
9356
|
for (let b of this.opnds)
|
|
9357
|
-
if (!b.eval(
|
|
9357
|
+
if (!b.eval(_, C))
|
|
9358
9358
|
return !1;
|
|
9359
9359
|
return !0;
|
|
9360
9360
|
}
|
|
9361
|
-
evalPrecedence(
|
|
9361
|
+
evalPrecedence(_, C) {
|
|
9362
9362
|
let b = !1, R = [];
|
|
9363
9363
|
for (let L of this.opnds) {
|
|
9364
|
-
let M = L.evalPrecedence(
|
|
9364
|
+
let M = L.evalPrecedence(_, C);
|
|
9365
9365
|
if (b = b || M !== L, M == null)
|
|
9366
9366
|
return;
|
|
9367
9367
|
M !== x.NONE && R.push(M);
|
|
@@ -9396,18 +9396,18 @@ pn.toCharArray = Ide;
|
|
|
9396
9396
|
n(1, o.NotNull)
|
|
9397
9397
|
], A), x.AND = A;
|
|
9398
9398
|
let v = class IE extends E {
|
|
9399
|
-
constructor(
|
|
9399
|
+
constructor(_, C) {
|
|
9400
9400
|
super();
|
|
9401
9401
|
let b = new r.Array2DHashSet(u.ObjectEqualityComparator.INSTANCE);
|
|
9402
|
-
|
|
9402
|
+
_ instanceof IE ? b.addAll(_.opnds) : b.add(_), C instanceof IE ? b.addAll(C.opnds) : b.add(C), this.opnds = b.toArray();
|
|
9403
9403
|
let R = m(this.opnds), O = l(R);
|
|
9404
9404
|
O && this.opnds.push(O);
|
|
9405
9405
|
}
|
|
9406
9406
|
get operands() {
|
|
9407
9407
|
return this.opnds;
|
|
9408
9408
|
}
|
|
9409
|
-
equals(
|
|
9410
|
-
return this ===
|
|
9409
|
+
equals(_) {
|
|
9410
|
+
return this === _ ? !0 : _ instanceof IE ? i.ArrayEqualityComparator.INSTANCE.equals(this.opnds, _.opnds) : !1;
|
|
9411
9411
|
}
|
|
9412
9412
|
hashCode() {
|
|
9413
9413
|
return s.MurmurHash.hashCode(this.opnds, 486279973);
|
|
@@ -9418,16 +9418,16 @@ pn.toCharArray = Ide;
|
|
|
9418
9418
|
* The evaluation of predicates by this context is short-circuiting, but
|
|
9419
9419
|
* unordered.
|
|
9420
9420
|
*/
|
|
9421
|
-
eval(
|
|
9421
|
+
eval(_, C) {
|
|
9422
9422
|
for (let b of this.opnds)
|
|
9423
|
-
if (b.eval(
|
|
9423
|
+
if (b.eval(_, C))
|
|
9424
9424
|
return !0;
|
|
9425
9425
|
return !1;
|
|
9426
9426
|
}
|
|
9427
|
-
evalPrecedence(
|
|
9427
|
+
evalPrecedence(_, C) {
|
|
9428
9428
|
let b = !1, R = [];
|
|
9429
9429
|
for (let L of this.opnds) {
|
|
9430
|
-
let M = L.evalPrecedence(
|
|
9430
|
+
let M = L.evalPrecedence(_, C);
|
|
9431
9431
|
if (b = b || M !== L, M === x.NONE)
|
|
9432
9432
|
return x.NONE;
|
|
9433
9433
|
M && R.push(M);
|
|
@@ -10213,13 +10213,13 @@ function am() {
|
|
|
10213
10213
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
10214
10214
|
*/
|
|
10215
10215
|
var t = N && N.__decorate || function(y, E, A, v) {
|
|
10216
|
-
var
|
|
10216
|
+
var S = arguments.length, _ = S < 3 ? E : v === null ? v = Object.getOwnPropertyDescriptor(E, A) : v, C;
|
|
10217
10217
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
10218
|
-
|
|
10218
|
+
_ = Reflect.decorate(y, E, A, v);
|
|
10219
10219
|
else
|
|
10220
10220
|
for (var b = y.length - 1; b >= 0; b--)
|
|
10221
|
-
(C = y[b]) && (
|
|
10222
|
-
return
|
|
10221
|
+
(C = y[b]) && (_ = (S < 3 ? C(_) : S > 3 ? C(E, A, _) : C(E, A)) || _);
|
|
10222
|
+
return S > 3 && _ && Object.defineProperty(E, A, _), _;
|
|
10223
10223
|
};
|
|
10224
10224
|
Object.defineProperty(M2, "__esModule", { value: !0 }), M2.ATNConfigSet = void 0;
|
|
10225
10225
|
const e = Za, n = Oo, r = Hf, i = Fo(), s = Qf, o = wo, u = Ae, a = ys, l = Do(), c = ww(), f = Gf, x = hi(), h = pn;
|
|
@@ -10287,11 +10287,11 @@ function am() {
|
|
|
10287
10287
|
if (!(E instanceof s.ATNConfig))
|
|
10288
10288
|
return !1;
|
|
10289
10289
|
if (this.mergedConfigs && this.unmerged) {
|
|
10290
|
-
let A = E, v = this.getKey(A),
|
|
10291
|
-
if (
|
|
10292
|
-
return
|
|
10293
|
-
for (let
|
|
10294
|
-
if (
|
|
10290
|
+
let A = E, v = this.getKey(A), S = this.mergedConfigs.get(v);
|
|
10291
|
+
if (S != null && this.canMerge(A, v, S))
|
|
10292
|
+
return S.contains(A);
|
|
10293
|
+
for (let _ of this.unmerged)
|
|
10294
|
+
if (_.contains(E))
|
|
10295
10295
|
return !0;
|
|
10296
10296
|
} else
|
|
10297
10297
|
for (let A of this.configs)
|
|
@@ -10309,21 +10309,21 @@ function am() {
|
|
|
10309
10309
|
if (this.ensureWritable(), !this.mergedConfigs || !this.unmerged)
|
|
10310
10310
|
throw new Error("Covered by ensureWritable but duplicated here for strict null check limitation");
|
|
10311
10311
|
x(!this.outermostConfigSet || !E.reachesIntoOuterContext), A == null && (A = c.PredictionContextCache.UNCACHED);
|
|
10312
|
-
let v,
|
|
10313
|
-
if (v =
|
|
10314
|
-
|
|
10315
|
-
let C = l.PredictionContext.join(
|
|
10316
|
-
return this.updatePropertiesForMergedConfig(E),
|
|
10312
|
+
let v, S = this.getKey(E), _ = this.mergedConfigs.get(S);
|
|
10313
|
+
if (v = _ == null, _ != null && this.canMerge(E, S, _)) {
|
|
10314
|
+
_.outerContextDepth = Math.max(_.outerContextDepth, E.outerContextDepth), E.isPrecedenceFilterSuppressed && (_.isPrecedenceFilterSuppressed = !0);
|
|
10315
|
+
let C = l.PredictionContext.join(_.context, E.context, A);
|
|
10316
|
+
return this.updatePropertiesForMergedConfig(E), _.context === C ? !1 : (_.context = C, !0);
|
|
10317
10317
|
}
|
|
10318
10318
|
for (let C = 0; C < this.unmerged.length; C++) {
|
|
10319
10319
|
let b = this.unmerged[C];
|
|
10320
|
-
if (this.canMerge(E,
|
|
10320
|
+
if (this.canMerge(E, S, b)) {
|
|
10321
10321
|
b.outerContextDepth = Math.max(b.outerContextDepth, E.outerContextDepth), E.isPrecedenceFilterSuppressed && (b.isPrecedenceFilterSuppressed = !0);
|
|
10322
10322
|
let R = l.PredictionContext.join(b.context, E.context, A);
|
|
10323
|
-
return this.updatePropertiesForMergedConfig(E), b.context === R ? !1 : (b.context = R, v && (this.mergedConfigs.put(
|
|
10323
|
+
return this.updatePropertiesForMergedConfig(E), b.context === R ? !1 : (b.context = R, v && (this.mergedConfigs.put(S, b), this.unmerged.splice(C, 1)), !0);
|
|
10324
10324
|
}
|
|
10325
10325
|
}
|
|
10326
|
-
return this.configs.push(E), v ? this.mergedConfigs.put(
|
|
10326
|
+
return this.configs.push(E), v ? this.mergedConfigs.put(S, E) : this.unmerged.push(E), this.updatePropertiesForAddedConfig(E), !0;
|
|
10327
10327
|
}
|
|
10328
10328
|
updatePropertiesForMergedConfig(E) {
|
|
10329
10329
|
this._dipsIntoOuterContext = this._dipsIntoOuterContext || E.reachesIntoOuterContext, x(!this.outermostConfigSet || !this._dipsIntoOuterContext);
|
|
@@ -10346,8 +10346,8 @@ function am() {
|
|
|
10346
10346
|
addAll(E, A) {
|
|
10347
10347
|
this.ensureWritable();
|
|
10348
10348
|
let v = !1;
|
|
10349
|
-
for (let
|
|
10350
|
-
this.add(
|
|
10349
|
+
for (let S of E)
|
|
10350
|
+
this.add(S, A) && (v = !0);
|
|
10351
10351
|
return v;
|
|
10352
10352
|
}
|
|
10353
10353
|
clear() {
|
|
@@ -10367,9 +10367,9 @@ function am() {
|
|
|
10367
10367
|
toString(E) {
|
|
10368
10368
|
E == null && (E = !1);
|
|
10369
10369
|
let A = "", v = this.configs.slice(0);
|
|
10370
|
-
v.sort((
|
|
10371
|
-
for (let
|
|
10372
|
-
|
|
10370
|
+
v.sort((S, _) => S.alt !== _.alt ? S.alt - _.alt : S.state.stateNumber !== _.state.stateNumber ? S.state.stateNumber - _.state.stateNumber : S.semanticContext.toString().localeCompare(_.semanticContext.toString())), A += "[";
|
|
10371
|
+
for (let S = 0; S < v.length; S++)
|
|
10372
|
+
S > 0 && (A += ", "), A += v[S].toString(void 0, !0, E);
|
|
10373
10373
|
return A += "]", this._hasSemanticContext && (A += ",hasSemanticContext=" + this._hasSemanticContext), this._uniqueAlt !== i.ATN.INVALID_ALT_NUMBER && (A += ",uniqueAlt=" + this._uniqueAlt), this._conflictInfo != null && (A += ",conflictingAlts=" + this._conflictInfo.conflictedAlts, this._conflictInfo.isExact || (A += "*")), this._dipsIntoOuterContext && (A += ",dipsIntoOuterContext"), A.toString();
|
|
10374
10374
|
}
|
|
10375
10375
|
get uniqueAlt() {
|
|
@@ -12199,66 +12199,66 @@ function xm() {
|
|
|
12199
12199
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
12200
12200
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
12201
12201
|
*/
|
|
12202
|
-
var e = N && N.__decorate || function(
|
|
12203
|
-
var R = arguments.length, O = R < 3 ?
|
|
12202
|
+
var e = N && N.__decorate || function(S, _, C, b) {
|
|
12203
|
+
var R = arguments.length, O = R < 3 ? _ : b === null ? b = Object.getOwnPropertyDescriptor(_, C) : b, L;
|
|
12204
12204
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
12205
|
-
O = Reflect.decorate(
|
|
12205
|
+
O = Reflect.decorate(S, _, C, b);
|
|
12206
12206
|
else
|
|
12207
|
-
for (var M =
|
|
12208
|
-
(L =
|
|
12209
|
-
return R > 3 && O && Object.defineProperty(
|
|
12210
|
-
}, n = N && N.__param || function(
|
|
12207
|
+
for (var M = S.length - 1; M >= 0; M--)
|
|
12208
|
+
(L = S[M]) && (O = (R < 3 ? L(O) : R > 3 ? L(_, C, O) : L(_, C)) || O);
|
|
12209
|
+
return R > 3 && O && Object.defineProperty(_, C, O), O;
|
|
12210
|
+
}, n = N && N.__param || function(S, _) {
|
|
12211
12211
|
return function(C, b) {
|
|
12212
|
-
|
|
12212
|
+
_(C, b, S);
|
|
12213
12213
|
};
|
|
12214
12214
|
};
|
|
12215
12215
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.LexerATNSimulator = void 0;
|
|
12216
12216
|
const r = fm, i = Fo(), s = Qf, o = am(), u = g4(), a = p4(), l = lr, c = Ja, f = el(), x = v4, h = Xf, p = Ae, m = fhe(), g = Do(), y = I0, E = Gt, A = hi();
|
|
12217
12217
|
let v = class Yi extends u.ATNSimulator {
|
|
12218
|
-
constructor(
|
|
12219
|
-
super(
|
|
12218
|
+
constructor(_, C) {
|
|
12219
|
+
super(_), this.optimize_tail_calls = !0, this.startIndex = -1, this._line = 1, this._charPositionInLine = 0, this.mode = f.Lexer.DEFAULT_MODE, this.prevAccept = new Yi.SimState(), this.recog = C;
|
|
12220
12220
|
}
|
|
12221
|
-
copyState(
|
|
12222
|
-
this._charPositionInLine =
|
|
12221
|
+
copyState(_) {
|
|
12222
|
+
this._charPositionInLine = _.charPositionInLine, this._line = _._line, this.mode = _.mode, this.startIndex = _.startIndex;
|
|
12223
12223
|
}
|
|
12224
|
-
match(
|
|
12224
|
+
match(_, C) {
|
|
12225
12225
|
this.mode = C;
|
|
12226
|
-
let b =
|
|
12226
|
+
let b = _.mark();
|
|
12227
12227
|
try {
|
|
12228
|
-
this.startIndex =
|
|
12228
|
+
this.startIndex = _.index, this.prevAccept.reset();
|
|
12229
12229
|
let R = this.atn.modeToDFA[C].s0;
|
|
12230
|
-
return R == null ? this.matchATN(
|
|
12230
|
+
return R == null ? this.matchATN(_) : this.execATN(_, R);
|
|
12231
12231
|
} finally {
|
|
12232
|
-
|
|
12232
|
+
_.release(b);
|
|
12233
12233
|
}
|
|
12234
12234
|
}
|
|
12235
12235
|
reset() {
|
|
12236
12236
|
this.prevAccept.reset(), this.startIndex = -1, this._line = 1, this._charPositionInLine = 0, this.mode = f.Lexer.DEFAULT_MODE;
|
|
12237
12237
|
}
|
|
12238
|
-
matchATN(
|
|
12238
|
+
matchATN(_) {
|
|
12239
12239
|
let C = this.atn.modeToStartState[this.mode];
|
|
12240
12240
|
Yi.debug && console.log(`matchATN mode ${this.mode} start: ${C}`);
|
|
12241
|
-
let b = this.mode, R = this.computeStartState(
|
|
12241
|
+
let b = this.mode, R = this.computeStartState(_, C), O = R.hasSemanticContext;
|
|
12242
12242
|
O && (R.hasSemanticContext = !1);
|
|
12243
12243
|
let L = this.addDFAState(R);
|
|
12244
12244
|
if (!O) {
|
|
12245
12245
|
let H = this.atn.modeToDFA[this.mode];
|
|
12246
12246
|
H.s0 ? L = H.s0 : H.s0 = L;
|
|
12247
12247
|
}
|
|
12248
|
-
let M = this.execATN(
|
|
12248
|
+
let M = this.execATN(_, L);
|
|
12249
12249
|
return Yi.debug && console.log(`DFA after matchATN: ${this.atn.modeToDFA[b].toLexerString()}`), M;
|
|
12250
12250
|
}
|
|
12251
|
-
execATN(
|
|
12252
|
-
Yi.debug && console.log(`start state closure=${C.configs}`), C.isAcceptState && this.captureSimState(this.prevAccept,
|
|
12253
|
-
let b =
|
|
12251
|
+
execATN(_, C) {
|
|
12252
|
+
Yi.debug && console.log(`start state closure=${C.configs}`), C.isAcceptState && this.captureSimState(this.prevAccept, _, C);
|
|
12253
|
+
let b = _.LA(1), R = C;
|
|
12254
12254
|
for (; ; ) {
|
|
12255
12255
|
Yi.debug && console.log(`execATN loop starting closure: ${R.configs}`);
|
|
12256
12256
|
let O = this.getExistingTargetState(R, b);
|
|
12257
|
-
if (O == null && (O = this.computeTargetState(
|
|
12257
|
+
if (O == null && (O = this.computeTargetState(_, R, b)), O === u.ATNSimulator.ERROR || (b !== c.IntStream.EOF && this.consume(_), O.isAcceptState && (this.captureSimState(this.prevAccept, _, O), b === c.IntStream.EOF)))
|
|
12258
12258
|
break;
|
|
12259
|
-
b =
|
|
12259
|
+
b = _.LA(1), R = O;
|
|
12260
12260
|
}
|
|
12261
|
-
return this.failOrAccept(this.prevAccept,
|
|
12261
|
+
return this.failOrAccept(this.prevAccept, _, R.configs, b);
|
|
12262
12262
|
}
|
|
12263
12263
|
/**
|
|
12264
12264
|
* Get an existing target state for an edge in the DFA. If the target state
|
|
@@ -12271,9 +12271,9 @@ function xm() {
|
|
|
12271
12271
|
* `t`, or `undefined` if the target state for this edge is not
|
|
12272
12272
|
* already cached
|
|
12273
12273
|
*/
|
|
12274
|
-
getExistingTargetState(
|
|
12275
|
-
let b =
|
|
12276
|
-
return Yi.debug && b != null && console.log("reuse state " +
|
|
12274
|
+
getExistingTargetState(_, C) {
|
|
12275
|
+
let b = _.getTarget(C);
|
|
12276
|
+
return Yi.debug && b != null && console.log("reuse state " + _.stateNumber + " edge to " + b.stateNumber), b;
|
|
12277
12277
|
}
|
|
12278
12278
|
/**
|
|
12279
12279
|
* Compute a target state for an edge in the DFA, and attempt to add the
|
|
@@ -12287,14 +12287,14 @@ function xm() {
|
|
|
12287
12287
|
* `t`. If `t` does not lead to a valid DFA state, this method
|
|
12288
12288
|
* returns {@link #ERROR}.
|
|
12289
12289
|
*/
|
|
12290
|
-
computeTargetState(
|
|
12290
|
+
computeTargetState(_, C, b) {
|
|
12291
12291
|
let R = new m.OrderedATNConfigSet();
|
|
12292
|
-
return this.getReachableConfigSet(
|
|
12292
|
+
return this.getReachableConfigSet(_, C.configs, R, b), R.isEmpty ? (R.hasSemanticContext || this.addDFAEdge(C, b, u.ATNSimulator.ERROR), u.ATNSimulator.ERROR) : this.addDFAEdge(C, b, R);
|
|
12293
12293
|
}
|
|
12294
|
-
failOrAccept(
|
|
12295
|
-
if (
|
|
12296
|
-
let O =
|
|
12297
|
-
return this.accept(C, O, this.startIndex,
|
|
12294
|
+
failOrAccept(_, C, b, R) {
|
|
12295
|
+
if (_.dfaState != null) {
|
|
12296
|
+
let O = _.dfaState.lexerActionExecutor;
|
|
12297
|
+
return this.accept(C, O, this.startIndex, _.index, _.line, _.charPos), _.dfaState.prediction;
|
|
12298
12298
|
} else {
|
|
12299
12299
|
if (R === c.IntStream.EOF && C.index === this.startIndex)
|
|
12300
12300
|
return E.Token.EOF;
|
|
@@ -12305,7 +12305,7 @@ function xm() {
|
|
|
12305
12305
|
* we can reach upon input `t`. Parameter `reach` is a return
|
|
12306
12306
|
* parameter.
|
|
12307
12307
|
*/
|
|
12308
|
-
getReachableConfigSet(
|
|
12308
|
+
getReachableConfigSet(_, C, b, R) {
|
|
12309
12309
|
let O = i.ATN.INVALID_ALT_NUMBER;
|
|
12310
12310
|
for (let L of C) {
|
|
12311
12311
|
let M = L.alt === O;
|
|
@@ -12317,9 +12317,9 @@ function xm() {
|
|
|
12317
12317
|
let Q = L.state.getOptimizedTransition(G), Y = this.getReachableTarget(Q, R);
|
|
12318
12318
|
if (Y != null) {
|
|
12319
12319
|
let J = L.lexerActionExecutor, ee;
|
|
12320
|
-
J != null ? (J = J.fixOffsetBeforeMatch(
|
|
12320
|
+
J != null ? (J = J.fixOffsetBeforeMatch(_.index - this.startIndex), ee = L.transform(Y, !0, J)) : (A(L.lexerActionExecutor == null), ee = L.transform(Y, !0));
|
|
12321
12321
|
let X = R === c.IntStream.EOF;
|
|
12322
|
-
if (this.closure(
|
|
12322
|
+
if (this.closure(_, ee, b, M, !0, X)) {
|
|
12323
12323
|
O = L.alt;
|
|
12324
12324
|
break;
|
|
12325
12325
|
}
|
|
@@ -12327,18 +12327,18 @@ function xm() {
|
|
|
12327
12327
|
}
|
|
12328
12328
|
}
|
|
12329
12329
|
}
|
|
12330
|
-
accept(
|
|
12331
|
-
Yi.debug && console.log(`ACTION ${C}`),
|
|
12330
|
+
accept(_, C, b, R, O, L) {
|
|
12331
|
+
Yi.debug && console.log(`ACTION ${C}`), _.seek(R), this._line = O, this._charPositionInLine = L, C != null && this.recog != null && C.execute(this.recog, _, b);
|
|
12332
12332
|
}
|
|
12333
|
-
getReachableTarget(
|
|
12334
|
-
if (
|
|
12335
|
-
return
|
|
12333
|
+
getReachableTarget(_, C) {
|
|
12334
|
+
if (_.matches(C, f.Lexer.MIN_CHAR_VALUE, f.Lexer.MAX_CHAR_VALUE))
|
|
12335
|
+
return _.target;
|
|
12336
12336
|
}
|
|
12337
|
-
computeStartState(
|
|
12337
|
+
computeStartState(_, C) {
|
|
12338
12338
|
let b = g.PredictionContext.EMPTY_FULL, R = new m.OrderedATNConfigSet();
|
|
12339
12339
|
for (let O = 0; O < C.numberOfTransitions; O++) {
|
|
12340
12340
|
let L = C.transition(O).target, M = s.ATNConfig.create(L, O + 1, b);
|
|
12341
|
-
this.closure(
|
|
12341
|
+
this.closure(_, M, R, !1, !1, !1);
|
|
12342
12342
|
}
|
|
12343
12343
|
return R;
|
|
12344
12344
|
}
|
|
@@ -12352,7 +12352,7 @@ function xm() {
|
|
|
12352
12352
|
* @returns `true` if an accept state is reached, otherwise
|
|
12353
12353
|
* `false`.
|
|
12354
12354
|
*/
|
|
12355
|
-
closure(
|
|
12355
|
+
closure(_, C, b, R, O, L) {
|
|
12356
12356
|
if (Yi.debug && console.log("closure(" + C.toString(this.recog, !0) + ")"), C.state instanceof y.RuleStopState) {
|
|
12357
12357
|
Yi.debug && (this.recog != null ? console.log(`closure at ${this.recog.ruleNames[C.state.ruleIndex]} rule stop ${C}`) : console.log(`closure at rule stop ${C}`));
|
|
12358
12358
|
let H = C.context;
|
|
@@ -12364,20 +12364,20 @@ function xm() {
|
|
|
12364
12364
|
if (Q === g.PredictionContext.EMPTY_FULL_STATE_KEY)
|
|
12365
12365
|
continue;
|
|
12366
12366
|
let Y = H.getParent(G), J = this.atn.states[Q], ee = C.transform(J, !1, Y);
|
|
12367
|
-
R = this.closure(
|
|
12367
|
+
R = this.closure(_, ee, b, R, O, L);
|
|
12368
12368
|
}
|
|
12369
12369
|
return R;
|
|
12370
12370
|
}
|
|
12371
12371
|
C.state.onlyHasEpsilonTransitions || (!R || !C.hasPassedThroughNonGreedyDecision) && b.add(C);
|
|
12372
12372
|
let M = C.state;
|
|
12373
12373
|
for (let H = 0; H < M.numberOfOptimizedTransitions; H++) {
|
|
12374
|
-
let G = M.getOptimizedTransition(H), Q = this.getEpsilonTarget(
|
|
12375
|
-
Q != null && (R = this.closure(
|
|
12374
|
+
let G = M.getOptimizedTransition(H), Q = this.getEpsilonTarget(_, C, G, b, O, L);
|
|
12375
|
+
Q != null && (R = this.closure(_, Q, b, R, O, L));
|
|
12376
12376
|
}
|
|
12377
12377
|
return R;
|
|
12378
12378
|
}
|
|
12379
12379
|
// side-effect: can alter configs.hasSemanticContext
|
|
12380
|
-
getEpsilonTarget(
|
|
12380
|
+
getEpsilonTarget(_, C, b, R, O, L) {
|
|
12381
12381
|
let M;
|
|
12382
12382
|
switch (b.serializationType) {
|
|
12383
12383
|
case 3:
|
|
@@ -12393,7 +12393,7 @@ function xm() {
|
|
|
12393
12393
|
throw new Error("Precedence predicates are not supported in lexers.");
|
|
12394
12394
|
case 4:
|
|
12395
12395
|
let G = b;
|
|
12396
|
-
Yi.debug && console.log("EVAL rule " + G.ruleIndex + ":" + G.predIndex), R.hasSemanticContext = !0, this.evaluatePredicate(
|
|
12396
|
+
Yi.debug && console.log("EVAL rule " + G.ruleIndex + ":" + G.predIndex), R.hasSemanticContext = !0, this.evaluatePredicate(_, G.ruleIndex, G.predIndex, O) ? M = C.transform(b.target, !0) : M = void 0;
|
|
12397
12397
|
break;
|
|
12398
12398
|
case 6:
|
|
12399
12399
|
if (C.context.hasEmpty) {
|
|
@@ -12443,43 +12443,43 @@ function xm() {
|
|
|
12443
12443
|
* @returns `true` if the specified predicate evaluates to
|
|
12444
12444
|
* `true`.
|
|
12445
12445
|
*/
|
|
12446
|
-
evaluatePredicate(
|
|
12446
|
+
evaluatePredicate(_, C, b, R) {
|
|
12447
12447
|
if (this.recog == null)
|
|
12448
12448
|
return !0;
|
|
12449
12449
|
if (!R)
|
|
12450
12450
|
return this.recog.sempred(void 0, C, b);
|
|
12451
|
-
let O = this._charPositionInLine, L = this._line, M =
|
|
12451
|
+
let O = this._charPositionInLine, L = this._line, M = _.index, H = _.mark();
|
|
12452
12452
|
try {
|
|
12453
|
-
return this.consume(
|
|
12453
|
+
return this.consume(_), this.recog.sempred(void 0, C, b);
|
|
12454
12454
|
} finally {
|
|
12455
|
-
this._charPositionInLine = O, this._line = L,
|
|
12455
|
+
this._charPositionInLine = O, this._line = L, _.seek(M), _.release(H);
|
|
12456
12456
|
}
|
|
12457
12457
|
}
|
|
12458
|
-
captureSimState(
|
|
12459
|
-
|
|
12458
|
+
captureSimState(_, C, b) {
|
|
12459
|
+
_.index = C.index, _.line = this._line, _.charPos = this._charPositionInLine, _.dfaState = b;
|
|
12460
12460
|
}
|
|
12461
|
-
addDFAEdge(
|
|
12461
|
+
addDFAEdge(_, C, b) {
|
|
12462
12462
|
if (b instanceof o.ATNConfigSet) {
|
|
12463
12463
|
let R = b.hasSemanticContext;
|
|
12464
12464
|
R && (b.hasSemanticContext = !1);
|
|
12465
12465
|
let O = this.addDFAState(b);
|
|
12466
|
-
return R || this.addDFAEdge(
|
|
12466
|
+
return R || this.addDFAEdge(_, C, O), O;
|
|
12467
12467
|
} else
|
|
12468
|
-
Yi.debug && console.log("EDGE " +
|
|
12468
|
+
Yi.debug && console.log("EDGE " + _ + " -> " + b + " upon " + String.fromCharCode(C)), _ != null && _.setTarget(C, b);
|
|
12469
12469
|
}
|
|
12470
12470
|
/** Add a new DFA state if there isn't one with this set of
|
|
12471
12471
|
* configurations already. This method also detects the first
|
|
12472
12472
|
* configuration containing an ATN rule stop state. Later, when
|
|
12473
12473
|
* traversing the DFA, we will know which rule to accept.
|
|
12474
12474
|
*/
|
|
12475
|
-
addDFAState(
|
|
12476
|
-
A(!
|
|
12477
|
-
let C = new a.DFAState(
|
|
12475
|
+
addDFAState(_) {
|
|
12476
|
+
A(!_.hasSemanticContext);
|
|
12477
|
+
let C = new a.DFAState(_), b = this.atn.modeToDFA[this.mode].states.get(C);
|
|
12478
12478
|
if (b != null)
|
|
12479
12479
|
return b;
|
|
12480
|
-
|
|
12481
|
-
let R = new a.DFAState(
|
|
12482
|
-
for (let L of
|
|
12480
|
+
_.optimizeConfigs(this);
|
|
12481
|
+
let R = new a.DFAState(_.clone(!0)), O;
|
|
12482
|
+
for (let L of _)
|
|
12483
12483
|
if (L.state instanceof y.RuleStopState) {
|
|
12484
12484
|
O = L;
|
|
12485
12485
|
break;
|
|
@@ -12490,31 +12490,31 @@ function xm() {
|
|
|
12490
12490
|
}
|
|
12491
12491
|
return this.atn.modeToDFA[this.mode].addState(R);
|
|
12492
12492
|
}
|
|
12493
|
-
getDFA(
|
|
12494
|
-
return this.atn.modeToDFA[
|
|
12493
|
+
getDFA(_) {
|
|
12494
|
+
return this.atn.modeToDFA[_];
|
|
12495
12495
|
}
|
|
12496
12496
|
/** Get the text matched so far for the current token.
|
|
12497
12497
|
*/
|
|
12498
|
-
getText(
|
|
12499
|
-
return
|
|
12498
|
+
getText(_) {
|
|
12499
|
+
return _.getText(l.Interval.of(this.startIndex, _.index - 1));
|
|
12500
12500
|
}
|
|
12501
12501
|
get line() {
|
|
12502
12502
|
return this._line;
|
|
12503
12503
|
}
|
|
12504
|
-
set line(
|
|
12505
|
-
this._line =
|
|
12504
|
+
set line(_) {
|
|
12505
|
+
this._line = _;
|
|
12506
12506
|
}
|
|
12507
12507
|
get charPositionInLine() {
|
|
12508
12508
|
return this._charPositionInLine;
|
|
12509
12509
|
}
|
|
12510
|
-
set charPositionInLine(
|
|
12511
|
-
this._charPositionInLine =
|
|
12510
|
+
set charPositionInLine(_) {
|
|
12511
|
+
this._charPositionInLine = _;
|
|
12512
12512
|
}
|
|
12513
|
-
consume(
|
|
12514
|
-
|
|
12513
|
+
consume(_) {
|
|
12514
|
+
_.LA(1) === 10 ? (this._line++, this._charPositionInLine = 0) : this._charPositionInLine++, _.consume();
|
|
12515
12515
|
}
|
|
12516
|
-
getTokenName(
|
|
12517
|
-
return
|
|
12516
|
+
getTokenName(_) {
|
|
12517
|
+
return _ === -1 ? "EOF" : "'" + String.fromCharCode(_) + "'";
|
|
12518
12518
|
}
|
|
12519
12519
|
};
|
|
12520
12520
|
e([
|
|
@@ -12575,9 +12575,9 @@ function xm() {
|
|
|
12575
12575
|
p.NotNull
|
|
12576
12576
|
], v.prototype, "getTokenName", null), v = e([
|
|
12577
12577
|
n(0, p.NotNull)
|
|
12578
|
-
], v), t.LexerATNSimulator = v, function(
|
|
12579
|
-
|
|
12580
|
-
class
|
|
12578
|
+
], v), t.LexerATNSimulator = v, function(S) {
|
|
12579
|
+
S.debug = !1, S.dfa_debug = !1;
|
|
12580
|
+
class _ {
|
|
12581
12581
|
constructor() {
|
|
12582
12582
|
this.index = -1, this.line = 0, this.charPos = -1;
|
|
12583
12583
|
}
|
|
@@ -12585,7 +12585,7 @@ function xm() {
|
|
|
12585
12585
|
this.index = -1, this.line = 0, this.charPos = -1, this.dfaState = void 0;
|
|
12586
12586
|
}
|
|
12587
12587
|
}
|
|
12588
|
-
|
|
12588
|
+
S.SimState = _;
|
|
12589
12589
|
}(v = t.LexerATNSimulator || (t.LexerATNSimulator = {})), t.LexerATNSimulator = v;
|
|
12590
12590
|
}(QT)), QT;
|
|
12591
12591
|
}
|
|
@@ -13521,13 +13521,13 @@ function Ohe() {
|
|
|
13521
13521
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
13522
13522
|
*/
|
|
13523
13523
|
var t = N && N.__decorate || function(g, y, E, A) {
|
|
13524
|
-
var v = arguments.length,
|
|
13524
|
+
var v = arguments.length, S = v < 3 ? y : A === null ? A = Object.getOwnPropertyDescriptor(y, E) : A, _;
|
|
13525
13525
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
13526
|
-
|
|
13526
|
+
S = Reflect.decorate(g, y, E, A);
|
|
13527
13527
|
else
|
|
13528
13528
|
for (var C = g.length - 1; C >= 0; C--)
|
|
13529
|
-
(
|
|
13530
|
-
return v > 3 &&
|
|
13529
|
+
(_ = g[C]) && (S = (v < 3 ? _(S) : v > 3 ? _(y, E, S) : _(y, E)) || S);
|
|
13530
|
+
return v > 3 && S && Object.defineProperty(y, E, S), S;
|
|
13531
13531
|
}, e = N && N.__param || function(g, y) {
|
|
13532
13532
|
return function(E, A) {
|
|
13533
13533
|
y(E, A, g);
|
|
@@ -13556,8 +13556,8 @@ function Ohe() {
|
|
|
13556
13556
|
for (let A = 0; A < y.numberOfTransitions; A++) {
|
|
13557
13557
|
let v = new o.IntervalSet();
|
|
13558
13558
|
E[A] = v;
|
|
13559
|
-
let
|
|
13560
|
-
this._LOOK(y.transition(A).target, void 0, c.PredictionContext.EMPTY_LOCAL, v,
|
|
13559
|
+
let S = new r.Array2DHashSet(l.ObjectEqualityComparator.INSTANCE);
|
|
13560
|
+
this._LOOK(y.transition(A).target, void 0, c.PredictionContext.EMPTY_LOCAL, v, S, new s.BitSet(), !1, !1), (v.size === 0 || v.contains(gO.HIT_PRED)) && (v = void 0, E[A] = v);
|
|
13561
13561
|
}
|
|
13562
13562
|
return E;
|
|
13563
13563
|
}
|
|
@@ -13602,9 +13602,9 @@ function Ohe() {
|
|
|
13602
13602
|
* outermost context is reached. This parameter has no effect if `ctx`
|
|
13603
13603
|
* is {@link PredictionContext#EMPTY_LOCAL}.
|
|
13604
13604
|
*/
|
|
13605
|
-
_LOOK(y, E, A, v,
|
|
13605
|
+
_LOOK(y, E, A, v, S, _, C, b) {
|
|
13606
13606
|
let R = i.ATNConfig.create(y, 0, A);
|
|
13607
|
-
if (!
|
|
13607
|
+
if (!S.add(R))
|
|
13608
13608
|
return;
|
|
13609
13609
|
if (y === E) {
|
|
13610
13610
|
if (c.PredictionContext.isEmptyLocal(A)) {
|
|
@@ -13620,35 +13620,35 @@ function Ohe() {
|
|
|
13620
13620
|
b && v.add(h.Token.EOF);
|
|
13621
13621
|
return;
|
|
13622
13622
|
}
|
|
13623
|
-
let L =
|
|
13623
|
+
let L = _.get(y.ruleIndex);
|
|
13624
13624
|
try {
|
|
13625
|
-
|
|
13625
|
+
_.clear(y.ruleIndex);
|
|
13626
13626
|
for (let M = 0; M < A.size; M++) {
|
|
13627
13627
|
if (A.getReturnState(M) === c.PredictionContext.EMPTY_FULL_STATE_KEY)
|
|
13628
13628
|
continue;
|
|
13629
13629
|
let H = this.atn.states[A.getReturnState(M)];
|
|
13630
|
-
this._LOOK(H, E, A.getParent(M), v,
|
|
13630
|
+
this._LOOK(H, E, A.getParent(M), v, S, _, C, b);
|
|
13631
13631
|
}
|
|
13632
13632
|
} finally {
|
|
13633
|
-
L &&
|
|
13633
|
+
L && _.set(y.ruleIndex);
|
|
13634
13634
|
}
|
|
13635
13635
|
}
|
|
13636
13636
|
let O = y.numberOfTransitions;
|
|
13637
13637
|
for (let L = 0; L < O; L++) {
|
|
13638
13638
|
let M = y.transition(L);
|
|
13639
13639
|
if (M instanceof x.RuleTransition) {
|
|
13640
|
-
if (
|
|
13640
|
+
if (_.get(M.ruleIndex))
|
|
13641
13641
|
continue;
|
|
13642
13642
|
let H = A.getChild(M.followState.stateNumber);
|
|
13643
13643
|
try {
|
|
13644
|
-
|
|
13644
|
+
_.set(M.ruleIndex), this._LOOK(M.target, E, H, v, S, _, C, b);
|
|
13645
13645
|
} finally {
|
|
13646
|
-
|
|
13646
|
+
_.clear(M.ruleIndex);
|
|
13647
13647
|
}
|
|
13648
13648
|
} else if (M instanceof n.AbstractPredicateTransition)
|
|
13649
|
-
C ? this._LOOK(M.target, E, A, v,
|
|
13649
|
+
C ? this._LOOK(M.target, E, A, v, S, _, C, b) : v.add(gO.HIT_PRED);
|
|
13650
13650
|
else if (M.isEpsilon)
|
|
13651
|
-
this._LOOK(M.target, E, A, v,
|
|
13651
|
+
this._LOOK(M.target, E, A, v, S, _, C, b);
|
|
13652
13652
|
else if (M instanceof p.WildcardTransition)
|
|
13653
13653
|
v.addAll(o.IntervalSet.of(h.Token.MIN_USER_TOKEN_TYPE, this.atn.maxTokenType));
|
|
13654
13654
|
else {
|
|
@@ -13686,8 +13686,8 @@ function Fo() {
|
|
|
13686
13686
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
13687
13687
|
A = Reflect.decorate(p, m, g, y);
|
|
13688
13688
|
else
|
|
13689
|
-
for (var
|
|
13690
|
-
(v = p[
|
|
13689
|
+
for (var S = p.length - 1; S >= 0; S--)
|
|
13690
|
+
(v = p[S]) && (A = (E < 3 ? v(A) : E > 3 ? v(m, g, A) : v(m, g)) || A);
|
|
13691
13691
|
return E > 3 && A && Object.defineProperty(m, g, A), A;
|
|
13692
13692
|
}, n = N && N.__param || function(p, m) {
|
|
13693
13693
|
return function(g, y) {
|
|
@@ -13786,8 +13786,8 @@ function Fo() {
|
|
|
13786
13786
|
return A;
|
|
13787
13787
|
let v = new s.IntervalSet();
|
|
13788
13788
|
for (v.addAll(A), v.remove(f.Token.EPSILON); y != null && y.invokingState >= 0 && A.contains(f.Token.EPSILON); ) {
|
|
13789
|
-
let
|
|
13790
|
-
A = this.nextTokens(
|
|
13789
|
+
let _ = this.states[y.invokingState].transition(0);
|
|
13790
|
+
A = this.nextTokens(_.followState), v.addAll(A), v.remove(f.Token.EPSILON), y = y._parent;
|
|
13791
13791
|
}
|
|
13792
13792
|
return A.contains(f.Token.EPSILON) && v.add(f.Token.EOF), v;
|
|
13793
13793
|
}
|
|
@@ -15395,7 +15395,7 @@ function $h() {
|
|
|
15395
15395
|
};
|
|
15396
15396
|
};
|
|
15397
15397
|
Object.defineProperty(K2, "__esModule", { value: !0 }), K2.ParserATNSimulator = void 0;
|
|
15398
|
-
const n = fm, r = ym, i = Oo, s = h4, o = Fo(), u = Qf, a = am(), l = g4(), c = cr, f = vm, x = wo, h = F4, p = Mu, m = p4(), g = Dh, y = lr, E = Ja, A = Ae, v = $w(),
|
|
15398
|
+
const n = fm, r = ym, i = Oo, s = h4, o = Fo(), u = Qf, a = am(), l = g4(), c = cr, f = vm, x = wo, h = F4, p = Mu, m = p4(), g = Dh, y = lr, E = Ja, A = Ae, v = $w(), S = Rm(), _ = ys, C = Xs(), b = Do(), R = ww(), O = IG, L = I0, M = Nh, H = Gf, G = Bw(), Q = BG(), Y = Gt, J = Es, ee = hi(), X = 65535, re = -(1 << 31 >>> 0);
|
|
15399
15399
|
let se = class ut extends l.ATNSimulator {
|
|
15400
15400
|
constructor(D, k) {
|
|
15401
15401
|
super(D), this.predictionMode = O.PredictionMode.LL, this.force_global_context = !1, this.always_try_local_context = !0, this.enable_global_context_dfa = !1, this.optimize_unique_closure = !0, this.optimize_ll1 = !0, this.optimize_tail_calls = !0, this.tail_call_preserves_sll = !0, this.treat_sllk1_conflict_as_ambiguity = !1, this.reportAmbiguities = !1, this.userWantsCtxSensitive = !0, this._parser = k;
|
|
@@ -16018,7 +16018,7 @@ function $h() {
|
|
|
16018
16018
|
*/
|
|
16019
16019
|
closure(D, k, j, W, U, B) {
|
|
16020
16020
|
U == null && (U = R.PredictionContextCache.UNCACHED);
|
|
16021
|
-
let T = D, w = new i.Array2DHashSet(
|
|
16021
|
+
let T = D, w = new i.Array2DHashSet(_.ObjectEqualityComparator.INSTANCE);
|
|
16022
16022
|
for (; T.size > 0; ) {
|
|
16023
16023
|
let $ = new a.ATNConfigSet();
|
|
16024
16024
|
for (let q of T)
|
|
@@ -16236,7 +16236,7 @@ function $h() {
|
|
|
16236
16236
|
}
|
|
16237
16237
|
}
|
|
16238
16238
|
noViableAlt(D, k, j, W) {
|
|
16239
|
-
return new
|
|
16239
|
+
return new S.NoViableAltException(this._parser, D, D.get(W), D.LT(1), j, k);
|
|
16240
16240
|
}
|
|
16241
16241
|
getUniqueAlt(D) {
|
|
16242
16242
|
let k = o.ATN.INVALID_ALT_NUMBER;
|
|
@@ -16881,7 +16881,7 @@ function kh() {
|
|
|
16881
16881
|
};
|
|
16882
16882
|
};
|
|
16883
16883
|
Object.defineProperty(Y2, "__esModule", { value: !0 }), Y2.ATNDeserializer = void 0;
|
|
16884
|
-
const n = ym, r = Oo, i = Fo(), s = mm, o = cr, u = vm, a = C4, l = hm, c = wo, f = b4, x = Jf, h = Mu, p = hG(), m = T4, g = Kf(), y = dm, E = R4, A = O4, v = D4,
|
|
16884
|
+
const n = ym, r = Oo, i = Fo(), s = mm, o = cr, u = vm, a = C4, l = hm, c = wo, f = b4, x = Jf, h = Mu, p = hG(), m = T4, g = Kf(), y = dm, E = R4, A = O4, v = D4, S = TG, _ = RG, C = w4, b = OG, R = N4, O = bm, L = Ae, M = $w(), H = $h(), G = L4, Q = I4, Y = B4, J = wm, ee = $4, X = k4, re = I0, se = Nh, Ee = Bw(), D = M4, k = P4, j = Oh, W = Gt, U = j4, B = U4, T = gm;
|
|
16885
16885
|
var w;
|
|
16886
16886
|
(function(q) {
|
|
16887
16887
|
q[q.UNICODE_BMP = 0] = "UNICODE_BMP", q[q.UNICODE_SMP = 1] = "UNICODE_SMP";
|
|
@@ -17469,9 +17469,9 @@ function kh() {
|
|
|
17469
17469
|
case 2:
|
|
17470
17470
|
return new v.LexerModeAction(z);
|
|
17471
17471
|
case 3:
|
|
17472
|
-
return
|
|
17472
|
+
return S.LexerMoreAction.INSTANCE;
|
|
17473
17473
|
case 4:
|
|
17474
|
-
return
|
|
17474
|
+
return _.LexerPopModeAction.INSTANCE;
|
|
17475
17475
|
case 5:
|
|
17476
17476
|
return new C.LexerPushModeAction(z);
|
|
17477
17477
|
case 6:
|
|
@@ -19335,13 +19335,13 @@ function VG() {
|
|
|
19335
19335
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
19336
19336
|
*/
|
|
19337
19337
|
var t = N && N.__decorate || function(y, E, A, v) {
|
|
19338
|
-
var
|
|
19338
|
+
var S = arguments.length, _ = S < 3 ? E : v === null ? v = Object.getOwnPropertyDescriptor(E, A) : v, C;
|
|
19339
19339
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
19340
|
-
|
|
19340
|
+
_ = Reflect.decorate(y, E, A, v);
|
|
19341
19341
|
else
|
|
19342
19342
|
for (var b = y.length - 1; b >= 0; b--)
|
|
19343
|
-
(C = y[b]) && (
|
|
19344
|
-
return
|
|
19343
|
+
(C = y[b]) && (_ = (S < 3 ? C(_) : S > 3 ? C(E, A, _) : C(E, A)) || _);
|
|
19344
|
+
return S > 3 && _ && Object.defineProperty(E, A, _), _;
|
|
19345
19345
|
}, e = N && N.__param || function(y, E) {
|
|
19346
19346
|
return function(A, v) {
|
|
19347
19347
|
E(A, v, y);
|
|
@@ -19350,15 +19350,15 @@ function VG() {
|
|
|
19350
19350
|
Object.defineProperty(sp, "__esModule", { value: !0 }), sp.ParserInterpreter = void 0;
|
|
19351
19351
|
const n = Pu, r = cr, i = wo, s = $0, o = Zf, u = WG(), a = bm, l = Ae, c = Ae, f = jh(), x = $h(), h = Ys, p = Oh, m = Gt;
|
|
19352
19352
|
let g = class EO extends f.Parser {
|
|
19353
|
-
constructor(E, A, v,
|
|
19354
|
-
if (super(E instanceof EO ? E.inputStream :
|
|
19353
|
+
constructor(E, A, v, S, _) {
|
|
19354
|
+
if (super(E instanceof EO ? E.inputStream : _), this._parentContextStack = [], this.overrideDecision = -1, this.overrideDecisionInputIndex = -1, this.overrideDecisionAlt = -1, this.overrideDecisionReached = !1, this._overrideDecisionRoot = void 0, E instanceof EO) {
|
|
19355
19355
|
let C = E;
|
|
19356
19356
|
this._grammarFileName = C._grammarFileName, this._atn = C._atn, this.pushRecursionContextStates = C.pushRecursionContextStates, this._ruleNames = C._ruleNames, this._vocabulary = C._vocabulary, this.interpreter = new x.ParserATNSimulator(this._atn, this);
|
|
19357
19357
|
} else {
|
|
19358
|
-
A = A, v = v,
|
|
19359
|
-
for (let C of
|
|
19358
|
+
A = A, v = v, S = S, this._grammarFileName = E, this._atn = S, this._ruleNames = v.slice(0), this._vocabulary = A, this.pushRecursionContextStates = new i.BitSet(S.states.length);
|
|
19359
|
+
for (let C of S.states)
|
|
19360
19360
|
C instanceof p.StarLoopEntryState && C.precedenceRuleDecision && this.pushRecursionContextStates.set(C.stateNumber);
|
|
19361
|
-
this.interpreter = new x.ParserATNSimulator(
|
|
19361
|
+
this.interpreter = new x.ParserATNSimulator(S, this);
|
|
19362
19362
|
}
|
|
19363
19363
|
}
|
|
19364
19364
|
reset(E) {
|
|
@@ -19385,8 +19385,8 @@ function VG() {
|
|
|
19385
19385
|
case r.ATNStateType.RULE_STOP:
|
|
19386
19386
|
if (this._ctx.isEmpty)
|
|
19387
19387
|
if (A.isPrecedenceRule) {
|
|
19388
|
-
let
|
|
19389
|
-
return this.unrollRecursionContexts(
|
|
19388
|
+
let S = this._ctx, _ = this._parentContextStack.pop();
|
|
19389
|
+
return this.unrollRecursionContexts(_[0]), S;
|
|
19390
19390
|
} else
|
|
19391
19391
|
return this.exitRule(), this._rootContext;
|
|
19392
19392
|
this.visitRuleStopState(v);
|
|
@@ -19394,18 +19394,18 @@ function VG() {
|
|
|
19394
19394
|
default:
|
|
19395
19395
|
try {
|
|
19396
19396
|
this.visitState(v);
|
|
19397
|
-
} catch (
|
|
19398
|
-
if (
|
|
19399
|
-
this.state = this._atn.ruleToStopState[v.ruleIndex].stateNumber, this.context.exception =
|
|
19397
|
+
} catch (S) {
|
|
19398
|
+
if (S instanceof h.RecognitionException)
|
|
19399
|
+
this.state = this._atn.ruleToStopState[v.ruleIndex].stateNumber, this.context.exception = S, this.errorHandler.reportError(this, S), this.recover(S);
|
|
19400
19400
|
else
|
|
19401
|
-
throw
|
|
19401
|
+
throw S;
|
|
19402
19402
|
}
|
|
19403
19403
|
break;
|
|
19404
19404
|
}
|
|
19405
19405
|
}
|
|
19406
19406
|
}
|
|
19407
|
-
enterRecursionRule(E, A, v,
|
|
19408
|
-
this._parentContextStack.push([this._ctx, E.invokingState]), super.enterRecursionRule(E, A, v,
|
|
19407
|
+
enterRecursionRule(E, A, v, S) {
|
|
19408
|
+
this._parentContextStack.push([this._ctx, E.invokingState]), super.enterRecursionRule(E, A, v, S);
|
|
19409
19409
|
}
|
|
19410
19410
|
get atnState() {
|
|
19411
19411
|
return this._atn.states[this.state];
|
|
@@ -19433,8 +19433,8 @@ function VG() {
|
|
|
19433
19433
|
this.matchWildcard();
|
|
19434
19434
|
break;
|
|
19435
19435
|
case 3:
|
|
19436
|
-
let
|
|
19437
|
-
|
|
19436
|
+
let S = v.target, _ = S.ruleIndex, C = this.createInterpreterRuleContext(this._ctx, E.stateNumber, _);
|
|
19437
|
+
S.isPrecedenceRule ? this.enterRecursionRule(C, S.stateNumber, _, v.precedence) : this.enterRule(C, v.target.stateNumber, _);
|
|
19438
19438
|
break;
|
|
19439
19439
|
case 4:
|
|
19440
19440
|
let b = v;
|
|
@@ -19474,8 +19474,8 @@ function VG() {
|
|
|
19474
19474
|
}
|
|
19475
19475
|
visitRuleStopState(E) {
|
|
19476
19476
|
if (this._atn.ruleToStartState[E.ruleIndex].isPrecedenceRule) {
|
|
19477
|
-
let
|
|
19478
|
-
this.unrollRecursionContexts(
|
|
19477
|
+
let S = this._parentContextStack.pop();
|
|
19478
|
+
this.unrollRecursionContexts(S[0]), this.state = S[1];
|
|
19479
19479
|
} else
|
|
19480
19480
|
this.exitRule();
|
|
19481
19481
|
let v = this._atn.states[this.state].transition(0);
|
|
@@ -19537,7 +19537,7 @@ function VG() {
|
|
|
19537
19537
|
let v = E.getOffendingToken();
|
|
19538
19538
|
if (!v)
|
|
19539
19539
|
throw new Error("Expected exception to have an offending token");
|
|
19540
|
-
let
|
|
19540
|
+
let S = v.tokenSource, _ = S !== void 0 ? S.inputStream : void 0, C = { source: S, stream: _ };
|
|
19541
19541
|
if (E instanceof o.InputMismatchException) {
|
|
19542
19542
|
let b = E.expectedTokens;
|
|
19543
19543
|
if (b === void 0)
|
|
@@ -20157,42 +20157,42 @@ function zw() {
|
|
|
20157
20157
|
// TODO: check for invalid token/rule names, bad syntax
|
|
20158
20158
|
split(m) {
|
|
20159
20159
|
let g = new s.XPathLexer(t.CharStreams.fromString(m));
|
|
20160
|
-
g.recover = (
|
|
20161
|
-
throw
|
|
20160
|
+
g.recover = (_) => {
|
|
20161
|
+
throw _;
|
|
20162
20162
|
}, g.removeErrorListeners(), g.addErrorListener(new o.XPathLexerErrorListener());
|
|
20163
20163
|
let y = new e.CommonTokenStream(g);
|
|
20164
20164
|
try {
|
|
20165
20165
|
y.fill();
|
|
20166
|
-
} catch (
|
|
20167
|
-
if (
|
|
20168
|
-
let b = "Invalid tokens or characters at index " + g.charPositionInLine + " in path '" + m + "' -- " +
|
|
20166
|
+
} catch (_) {
|
|
20167
|
+
if (_ instanceof n.LexerNoViableAltException) {
|
|
20168
|
+
let b = "Invalid tokens or characters at index " + g.charPositionInLine + " in path '" + m + "' -- " + _.message;
|
|
20169
20169
|
throw new RangeError(b);
|
|
20170
20170
|
}
|
|
20171
|
-
throw
|
|
20171
|
+
throw _;
|
|
20172
20172
|
}
|
|
20173
|
-
let E = y.getTokens(), A = [], v = E.length,
|
|
20173
|
+
let E = y.getTokens(), A = [], v = E.length, S = 0;
|
|
20174
20174
|
e:
|
|
20175
|
-
for (;
|
|
20176
|
-
let
|
|
20177
|
-
switch (
|
|
20175
|
+
for (; S < v; ) {
|
|
20176
|
+
let _ = E[S], C;
|
|
20177
|
+
switch (_.type) {
|
|
20178
20178
|
case s.XPathLexer.ROOT:
|
|
20179
20179
|
case s.XPathLexer.ANYWHERE:
|
|
20180
|
-
let b =
|
|
20181
|
-
|
|
20180
|
+
let b = _.type === s.XPathLexer.ANYWHERE;
|
|
20181
|
+
S++, C = E[S];
|
|
20182
20182
|
let R = C.type === s.XPathLexer.BANG;
|
|
20183
|
-
R && (
|
|
20183
|
+
R && (S++, C = E[S]);
|
|
20184
20184
|
let O = this.getXPathElement(C, b);
|
|
20185
|
-
O.invert = R, A.push(O),
|
|
20185
|
+
O.invert = R, A.push(O), S++;
|
|
20186
20186
|
break;
|
|
20187
20187
|
case s.XPathLexer.TOKEN_REF:
|
|
20188
20188
|
case s.XPathLexer.RULE_REF:
|
|
20189
20189
|
case s.XPathLexer.WILDCARD:
|
|
20190
|
-
A.push(this.getXPathElement(
|
|
20190
|
+
A.push(this.getXPathElement(_, !1)), S++;
|
|
20191
20191
|
break;
|
|
20192
20192
|
case i.Token.EOF:
|
|
20193
20193
|
break e;
|
|
20194
20194
|
default:
|
|
20195
|
-
throw new Error("Unknowth path element " +
|
|
20195
|
+
throw new Error("Unknowth path element " + _);
|
|
20196
20196
|
}
|
|
20197
20197
|
}
|
|
20198
20198
|
return A;
|
|
@@ -20818,8 +20818,8 @@ function mpe() {
|
|
|
20818
20818
|
};
|
|
20819
20819
|
};
|
|
20820
20820
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.ParseTreePatternMatcher = void 0;
|
|
20821
|
-
const r = QG(), i = H4, s = Mh, o = km, u = npe(), a = Ae, l = Im, c = VG(), f = Xs(), x = rpe(), h = xpe(), p = Ys, m = w0, g = dpe(), y = hpe(), E = To, A = ppe(), v = Gt,
|
|
20822
|
-
class
|
|
20821
|
+
const r = QG(), i = H4, s = Mh, o = km, u = npe(), a = Ae, l = Im, c = VG(), f = Xs(), x = rpe(), h = xpe(), p = Ys, m = w0, g = dpe(), y = hpe(), E = To, A = ppe(), v = Gt, S = gpe();
|
|
20822
|
+
class _ {
|
|
20823
20823
|
/**
|
|
20824
20824
|
* Constructs a {@link ParseTreePatternMatcher} or from a {@link Lexer} and
|
|
20825
20825
|
* {@link Parser} object. The lexer input stream is altered for tokenizing
|
|
@@ -20877,10 +20877,10 @@ function mpe() {
|
|
|
20877
20877
|
try {
|
|
20878
20878
|
G.errorHandler = new r.BailErrorStrategy(), Q = G.parse(R);
|
|
20879
20879
|
} catch (Y) {
|
|
20880
|
-
throw Y instanceof l.ParseCancellationException ? Y.getCause() : Y instanceof p.RecognitionException ? Y : Y instanceof Error ? new
|
|
20880
|
+
throw Y instanceof l.ParseCancellationException ? Y.getCause() : Y instanceof p.RecognitionException ? Y : Y instanceof Error ? new _.CannotInvokeStartRule(Y) : Y;
|
|
20881
20881
|
}
|
|
20882
20882
|
if (M.LA(1) !== v.Token.EOF)
|
|
20883
|
-
throw new
|
|
20883
|
+
throw new _.StartRuleDoesNotConsumeFullPattern();
|
|
20884
20884
|
return new h.ParseTreePattern(this, b, R, Q);
|
|
20885
20885
|
}
|
|
20886
20886
|
/**
|
|
@@ -20915,7 +20915,7 @@ function mpe() {
|
|
|
20915
20915
|
if (b instanceof E.TerminalNode && R instanceof E.TerminalNode) {
|
|
20916
20916
|
let L;
|
|
20917
20917
|
if (b.symbol.type === R.symbol.type)
|
|
20918
|
-
if (R.symbol instanceof
|
|
20918
|
+
if (R.symbol instanceof S.TokenTagToken) {
|
|
20919
20919
|
let M = R.symbol;
|
|
20920
20920
|
O.map(M.tokenName, b);
|
|
20921
20921
|
const H = M.label;
|
|
@@ -20967,7 +20967,7 @@ function mpe() {
|
|
|
20967
20967
|
let G = this._parser.getTokenType(M.tag);
|
|
20968
20968
|
if (G === v.Token.INVALID_TYPE)
|
|
20969
20969
|
throw new Error("Unknown token " + M.tag + " in pattern: " + b);
|
|
20970
|
-
let Q = new
|
|
20970
|
+
let Q = new S.TokenTagToken(M.tag, G, M.label);
|
|
20971
20971
|
O.push(Q);
|
|
20972
20972
|
} else if (H === H.toLowerCase()) {
|
|
20973
20973
|
let G = this._parser.getRuleIndex(M.tag);
|
|
@@ -21034,15 +21034,15 @@ function mpe() {
|
|
|
21034
21034
|
e([
|
|
21035
21035
|
a.NotNull,
|
|
21036
21036
|
n(1, a.NotNull)
|
|
21037
|
-
],
|
|
21037
|
+
], _.prototype, "match", null), e([
|
|
21038
21038
|
a.NotNull
|
|
21039
|
-
],
|
|
21039
|
+
], _.prototype, "lexer", null), e([
|
|
21040
21040
|
a.NotNull
|
|
21041
|
-
],
|
|
21041
|
+
], _.prototype, "parser", null), e([
|
|
21042
21042
|
n(0, a.NotNull),
|
|
21043
21043
|
n(1, a.NotNull),
|
|
21044
21044
|
n(2, a.NotNull)
|
|
21045
|
-
],
|
|
21045
|
+
], _.prototype, "matchImpl", null), t.ParseTreePatternMatcher = _, function(C) {
|
|
21046
21046
|
class b extends Error {
|
|
21047
21047
|
constructor(L) {
|
|
21048
21048
|
super(`CannotInvokeStartRule: ${L}`), this.error = L;
|
|
@@ -21055,7 +21055,7 @@ function mpe() {
|
|
|
21055
21055
|
}
|
|
21056
21056
|
}
|
|
21057
21057
|
C.StartRuleDoesNotConsumeFullPattern = R;
|
|
21058
|
-
}(
|
|
21058
|
+
}(_ = t.ParseTreePatternMatcher || (t.ParseTreePatternMatcher = {}));
|
|
21059
21059
|
}(VT)), VT;
|
|
21060
21060
|
}
|
|
21061
21061
|
var Cp = {}, bp = {}, Tp = {}, wk;
|
|
@@ -21396,12 +21396,12 @@ function Mk() {
|
|
|
21396
21396
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
21397
21397
|
*/
|
|
21398
21398
|
var t = N && N.__decorate || function(m, g, y, E) {
|
|
21399
|
-
var A = arguments.length, v = A < 3 ? g : E === null ? E = Object.getOwnPropertyDescriptor(g, y) : E,
|
|
21399
|
+
var A = arguments.length, v = A < 3 ? g : E === null ? E = Object.getOwnPropertyDescriptor(g, y) : E, S;
|
|
21400
21400
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
21401
21401
|
v = Reflect.decorate(m, g, y, E);
|
|
21402
21402
|
else
|
|
21403
|
-
for (var
|
|
21404
|
-
(
|
|
21403
|
+
for (var _ = m.length - 1; _ >= 0; _--)
|
|
21404
|
+
(S = m[_]) && (v = (A < 3 ? S(v) : A > 3 ? S(g, y, v) : S(g, y)) || v);
|
|
21405
21405
|
return A > 3 && v && Object.defineProperty(g, y, v), v;
|
|
21406
21406
|
}, e = N && N.__param || function(m, g) {
|
|
21407
21407
|
return function(y, E) {
|
|
@@ -21421,14 +21421,14 @@ function Mk() {
|
|
|
21421
21421
|
return super.adaptivePredict(g, y, E, A);
|
|
21422
21422
|
try {
|
|
21423
21423
|
this._input = g, this._startIndex = g.index, this._sllStopIndex = this._startIndex - 1, this._llStopIndex = -1, this.currentDecision = y, this.currentState = void 0, this.conflictingAltResolvedBySLL = r.ATN.INVALID_ALT_NUMBER;
|
|
21424
|
-
let v = process.hrtime(),
|
|
21425
|
-
C === 0 ? C =
|
|
21424
|
+
let v = process.hrtime(), S = super.adaptivePredict(g, y, E), _ = process.hrtime(), C = (_[0] - v[0]) * 1e9;
|
|
21425
|
+
C === 0 ? C = _[1] - v[1] : C += 1e9 - v[1] + _[1], this.decisions[y].timeInPrediction += C, this.decisions[y].invocations++;
|
|
21426
21426
|
let b = this._sllStopIndex - this._startIndex + 1;
|
|
21427
|
-
if (this.decisions[y].SLL_TotalLook += b, this.decisions[y].SLL_MinLook = this.decisions[y].SLL_MinLook === 0 ? b : Math.min(this.decisions[y].SLL_MinLook, b), b > this.decisions[y].SLL_MaxLook && (this.decisions[y].SLL_MaxLook = b, this.decisions[y].SLL_MaxLookEvent = new l.LookaheadEventInfo(y, void 0,
|
|
21427
|
+
if (this.decisions[y].SLL_TotalLook += b, this.decisions[y].SLL_MinLook = this.decisions[y].SLL_MinLook === 0 ? b : Math.min(this.decisions[y].SLL_MinLook, b), b > this.decisions[y].SLL_MaxLook && (this.decisions[y].SLL_MaxLook = b, this.decisions[y].SLL_MaxLookEvent = new l.LookaheadEventInfo(y, void 0, S, g, this._startIndex, this._sllStopIndex, !1)), this._llStopIndex >= 0) {
|
|
21428
21428
|
let R = this._llStopIndex - this._startIndex + 1;
|
|
21429
|
-
this.decisions[y].LL_TotalLook += R, this.decisions[y].LL_MinLook = this.decisions[y].LL_MinLook === 0 ? R : Math.min(this.decisions[y].LL_MinLook, R), R > this.decisions[y].LL_MaxLook && (this.decisions[y].LL_MaxLook = R, this.decisions[y].LL_MaxLookEvent = new l.LookaheadEventInfo(y, void 0,
|
|
21429
|
+
this.decisions[y].LL_TotalLook += R, this.decisions[y].LL_MinLook = this.decisions[y].LL_MinLook === 0 ? R : Math.min(this.decisions[y].LL_MinLook, R), R > this.decisions[y].LL_MaxLook && (this.decisions[y].LL_MaxLook = R, this.decisions[y].LL_MaxLookEvent = new l.LookaheadEventInfo(y, void 0, S, g, this._startIndex, this._llStopIndex, !0));
|
|
21430
21430
|
}
|
|
21431
|
-
return
|
|
21431
|
+
return S;
|
|
21432
21432
|
} finally {
|
|
21433
21433
|
this._input = void 0, this.currentDecision = -1;
|
|
21434
21434
|
}
|
|
@@ -21458,17 +21458,17 @@ function Mk() {
|
|
|
21458
21458
|
}
|
|
21459
21459
|
return E;
|
|
21460
21460
|
}
|
|
21461
|
-
computeTargetState(g, y, E, A, v,
|
|
21462
|
-
let
|
|
21463
|
-
return v ? this.decisions[this.currentDecision].LL_ATNTransitions++ : this.decisions[this.currentDecision].SLL_ATNTransitions++,
|
|
21461
|
+
computeTargetState(g, y, E, A, v, S) {
|
|
21462
|
+
let _ = super.computeTargetState(g, y, E, A, v, S);
|
|
21463
|
+
return v ? this.decisions[this.currentDecision].LL_ATNTransitions++ : this.decisions[this.currentDecision].SLL_ATNTransitions++, _;
|
|
21464
21464
|
}
|
|
21465
21465
|
evalSemanticContextImpl(g, y, E) {
|
|
21466
21466
|
if (this.currentState === void 0 || this._input === void 0)
|
|
21467
21467
|
throw new Error("Invalid state");
|
|
21468
21468
|
let A = super.evalSemanticContextImpl(g, y, E);
|
|
21469
21469
|
if (!(g instanceof x.SemanticContext.PrecedencePredicate)) {
|
|
21470
|
-
let
|
|
21471
|
-
this.decisions[this.currentDecision].predicateEvals.push(new f.PredicateEvalInfo(this.currentState, this.currentDecision, this._input, this._startIndex,
|
|
21470
|
+
let S = this._llStopIndex >= 0 ? this._llStopIndex : this._sllStopIndex;
|
|
21471
|
+
this.decisions[this.currentDecision].predicateEvals.push(new f.PredicateEvalInfo(this.currentState, this.currentDecision, this._input, this._startIndex, S, g, A, E));
|
|
21472
21472
|
}
|
|
21473
21473
|
return A;
|
|
21474
21474
|
}
|
|
@@ -21480,11 +21480,11 @@ function Mk() {
|
|
|
21480
21480
|
reportAttemptingFullContext(g, y, E, A, v) {
|
|
21481
21481
|
y != null ? this.conflictingAltResolvedBySLL = y.nextSetBit(0) : this.conflictingAltResolvedBySLL = E.s0.configs.getRepresentedAlternatives().nextSetBit(0), this.decisions[this.currentDecision].LL_Fallback++, super.reportAttemptingFullContext(g, y, E, A, v);
|
|
21482
21482
|
}
|
|
21483
|
-
reportAmbiguity(g, y, E, A, v,
|
|
21483
|
+
reportAmbiguity(g, y, E, A, v, S, _) {
|
|
21484
21484
|
if (this.currentState === void 0 || this._input === void 0)
|
|
21485
21485
|
throw new Error("Invalid state");
|
|
21486
21486
|
let C;
|
|
21487
|
-
|
|
21487
|
+
S != null ? C = S.nextSetBit(0) : C = _.getRepresentedAlternatives().nextSetBit(0), this.conflictingAltResolvedBySLL !== r.ATN.INVALID_ALT_NUMBER && C !== this.conflictingAltResolvedBySLL && this.decisions[this.currentDecision].contextSensitivities.push(new s.ContextSensitivityInfo(this.currentDecision, this.currentState, this._input, E, A)), this.decisions[this.currentDecision].ambiguities.push(new n.AmbiguityInfo(this.currentDecision, this.currentState, S, this._input, E, A)), super.reportAmbiguity(g, y, E, A, v, S, _);
|
|
21488
21488
|
}
|
|
21489
21489
|
// ---------------------------------------------------------------------
|
|
21490
21490
|
getDecisionInfo() {
|
|
@@ -21529,35 +21529,35 @@ function jh() {
|
|
|
21529
21529
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
21530
21530
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
21531
21531
|
*/
|
|
21532
|
-
var t = N && N.__decorate || function(A, v,
|
|
21533
|
-
var C = arguments.length, b = C < 3 ? v :
|
|
21532
|
+
var t = N && N.__decorate || function(A, v, S, _) {
|
|
21533
|
+
var C = arguments.length, b = C < 3 ? v : _ === null ? _ = Object.getOwnPropertyDescriptor(v, S) : _, R;
|
|
21534
21534
|
if (typeof Reflect == "object" && typeof Reflect.decorate == "function")
|
|
21535
|
-
b = Reflect.decorate(A, v,
|
|
21535
|
+
b = Reflect.decorate(A, v, S, _);
|
|
21536
21536
|
else
|
|
21537
21537
|
for (var O = A.length - 1; O >= 0; O--)
|
|
21538
|
-
(R = A[O]) && (b = (C < 3 ? R(b) : C > 3 ? R(v,
|
|
21539
|
-
return C > 3 && b && Object.defineProperty(v,
|
|
21538
|
+
(R = A[O]) && (b = (C < 3 ? R(b) : C > 3 ? R(v, S, b) : R(v, S)) || b);
|
|
21539
|
+
return C > 3 && b && Object.defineProperty(v, S, b), b;
|
|
21540
21540
|
}, e = N && N.__param || function(A, v) {
|
|
21541
|
-
return function(
|
|
21542
|
-
v(
|
|
21541
|
+
return function(S, _) {
|
|
21542
|
+
v(S, _, A);
|
|
21543
21543
|
};
|
|
21544
|
-
}, n = N && N.__awaiter || function(A, v,
|
|
21544
|
+
}, n = N && N.__awaiter || function(A, v, S, _) {
|
|
21545
21545
|
function C(b) {
|
|
21546
|
-
return b instanceof
|
|
21546
|
+
return b instanceof S ? b : new S(function(R) {
|
|
21547
21547
|
R(b);
|
|
21548
21548
|
});
|
|
21549
21549
|
}
|
|
21550
|
-
return new (
|
|
21550
|
+
return new (S || (S = Promise))(function(b, R) {
|
|
21551
21551
|
function O(H) {
|
|
21552
21552
|
try {
|
|
21553
|
-
M(
|
|
21553
|
+
M(_.next(H));
|
|
21554
21554
|
} catch (G) {
|
|
21555
21555
|
R(G);
|
|
21556
21556
|
}
|
|
21557
21557
|
}
|
|
21558
21558
|
function L(H) {
|
|
21559
21559
|
try {
|
|
21560
|
-
M(
|
|
21560
|
+
M(_.throw(H));
|
|
21561
21561
|
} catch (G) {
|
|
21562
21562
|
R(G);
|
|
21563
21563
|
}
|
|
@@ -21565,14 +21565,14 @@ function jh() {
|
|
|
21565
21565
|
function M(H) {
|
|
21566
21566
|
H.done ? b(H.value) : C(H.value).then(O, L);
|
|
21567
21567
|
}
|
|
21568
|
-
M((
|
|
21568
|
+
M((_ = _.apply(A, v || [])).next());
|
|
21569
21569
|
});
|
|
21570
21570
|
};
|
|
21571
21571
|
Object.defineProperty(V2, "__esModule", { value: !0 }), V2.Parser = void 0;
|
|
21572
21572
|
const r = pn, i = mm, s = kh(), o = kw(), u = O0, a = cm, l = el(), c = Ae, f = q4, x = $h(), h = Lm, p = N0, m = To, g = Gt;
|
|
21573
21573
|
class y {
|
|
21574
|
-
constructor(v,
|
|
21575
|
-
this.ruleNames = v, this.tokenStream =
|
|
21574
|
+
constructor(v, S) {
|
|
21575
|
+
this.ruleNames = v, this.tokenStream = S;
|
|
21576
21576
|
}
|
|
21577
21577
|
enterEveryRule(v) {
|
|
21578
21578
|
console.log("enter " + this.ruleNames[v.ruleIndex] + ", LT(1)=" + this.tokenStream.LT(1).text);
|
|
@@ -21583,8 +21583,8 @@ function jh() {
|
|
|
21583
21583
|
visitErrorNode(v) {
|
|
21584
21584
|
}
|
|
21585
21585
|
visitTerminal(v) {
|
|
21586
|
-
let
|
|
21587
|
-
console.log("consume " +
|
|
21586
|
+
let S = v.parent.ruleContext, _ = v.symbol;
|
|
21587
|
+
console.log("consume " + _ + " rule " + this.ruleNames[S.ruleIndex]);
|
|
21588
21588
|
}
|
|
21589
21589
|
}
|
|
21590
21590
|
t([
|
|
@@ -21602,8 +21602,8 @@ function jh() {
|
|
|
21602
21602
|
}
|
|
21603
21603
|
reset(v) {
|
|
21604
21604
|
(v === void 0 || v) && this.inputStream.seek(0), this._errHandler.reset(this), this._ctx = void 0, this._syntaxErrors = 0, this.matchedEOF = !1, this.isTrace = !1, this._precedenceStack.clear(), this._precedenceStack.push(0);
|
|
21605
|
-
let
|
|
21606
|
-
|
|
21605
|
+
let S = this.interpreter;
|
|
21606
|
+
S != null && S.reset();
|
|
21607
21607
|
}
|
|
21608
21608
|
/**
|
|
21609
21609
|
* Match current input symbol against `ttype`. If the symbol type
|
|
@@ -21625,8 +21625,8 @@ function jh() {
|
|
|
21625
21625
|
* mismatched symbol
|
|
21626
21626
|
*/
|
|
21627
21627
|
match(v) {
|
|
21628
|
-
let
|
|
21629
|
-
return
|
|
21628
|
+
let S = this.currentToken;
|
|
21629
|
+
return S.type === v ? (v === g.Token.EOF && (this.matchedEOF = !0), this._errHandler.reportMatch(this), this.consume()) : (S = this._errHandler.recoverInline(this), this._buildParseTrees && S.tokenIndex === -1 && this._ctx.addErrorNode(this.createErrorNode(this._ctx, S))), S;
|
|
21630
21630
|
}
|
|
21631
21631
|
/**
|
|
21632
21632
|
* Match current input symbol as a wildcard. If the symbol type matches
|
|
@@ -21724,8 +21724,8 @@ function jh() {
|
|
|
21724
21724
|
* @param listener the listener to remove
|
|
21725
21725
|
*/
|
|
21726
21726
|
removeParseListener(v) {
|
|
21727
|
-
let
|
|
21728
|
-
|
|
21727
|
+
let S = this._parseListeners.findIndex((_) => _ === v);
|
|
21728
|
+
S !== -1 && this._parseListeners.splice(S, 1);
|
|
21729
21729
|
}
|
|
21730
21730
|
/**
|
|
21731
21731
|
* Remove all parse listeners.
|
|
@@ -21751,8 +21751,8 @@ function jh() {
|
|
|
21751
21751
|
*/
|
|
21752
21752
|
triggerExitRuleEvent() {
|
|
21753
21753
|
for (let v = this._parseListeners.length - 1; v >= 0; v--) {
|
|
21754
|
-
let
|
|
21755
|
-
this._ctx.exitRule(
|
|
21754
|
+
let S = this._parseListeners[v];
|
|
21755
|
+
this._ctx.exitRule(S), S.exitEveryRule && S.exitEveryRule(this._ctx);
|
|
21756
21756
|
}
|
|
21757
21757
|
}
|
|
21758
21758
|
/**
|
|
@@ -21778,25 +21778,25 @@ function jh() {
|
|
|
21778
21778
|
let v = this.serializedATN;
|
|
21779
21779
|
if (v == null)
|
|
21780
21780
|
throw new Error("The current parser does not support an ATN with bypass alternatives.");
|
|
21781
|
-
let
|
|
21782
|
-
if (
|
|
21783
|
-
let
|
|
21784
|
-
|
|
21781
|
+
let S = BE.bypassAltsAtnCache.get(v);
|
|
21782
|
+
if (S == null) {
|
|
21783
|
+
let _ = new i.ATNDeserializationOptions();
|
|
21784
|
+
_.isGenerateRuleBypassTransitions = !0, S = new s.ATNDeserializer(_).deserialize(r.toCharArray(v)), BE.bypassAltsAtnCache.set(v, S);
|
|
21785
21785
|
}
|
|
21786
|
-
return
|
|
21786
|
+
return S;
|
|
21787
21787
|
}
|
|
21788
|
-
compileParseTreePattern(v,
|
|
21788
|
+
compileParseTreePattern(v, S, _) {
|
|
21789
21789
|
return n(this, void 0, void 0, function* () {
|
|
21790
|
-
if (!
|
|
21790
|
+
if (!_) {
|
|
21791
21791
|
if (this.inputStream) {
|
|
21792
21792
|
let O = this.inputStream.tokenSource;
|
|
21793
|
-
O instanceof l.Lexer && (
|
|
21793
|
+
O instanceof l.Lexer && (_ = O);
|
|
21794
21794
|
}
|
|
21795
|
-
if (!
|
|
21795
|
+
if (!_)
|
|
21796
21796
|
throw new Error("Parser can't discover a lexer to use");
|
|
21797
21797
|
}
|
|
21798
|
-
let C =
|
|
21799
|
-
return new b.ParseTreePatternMatcher(C, this).compile(v,
|
|
21798
|
+
let C = _, b = yield Promise.resolve().then(() => mpe());
|
|
21799
|
+
return new b.ParseTreePatternMatcher(C, this).compile(v, S);
|
|
21800
21800
|
});
|
|
21801
21801
|
}
|
|
21802
21802
|
get errorHandler() {
|
|
@@ -21818,12 +21818,12 @@ function jh() {
|
|
|
21818
21818
|
get currentToken() {
|
|
21819
21819
|
return this._input.LT(1);
|
|
21820
21820
|
}
|
|
21821
|
-
notifyErrorListeners(v,
|
|
21822
|
-
|
|
21821
|
+
notifyErrorListeners(v, S, _) {
|
|
21822
|
+
S === void 0 ? S = this.currentToken : S === null && (S = void 0), this._syntaxErrors++;
|
|
21823
21823
|
let C = -1, b = -1;
|
|
21824
|
-
|
|
21824
|
+
S != null && (C = S.line, b = S.charPositionInLine);
|
|
21825
21825
|
let R = this.getErrorListenerDispatch();
|
|
21826
|
-
R.syntaxError && R.syntaxError(this,
|
|
21826
|
+
R.syntaxError && R.syntaxError(this, S, C, b, v, _);
|
|
21827
21827
|
}
|
|
21828
21828
|
/**
|
|
21829
21829
|
* Consume and return the [current symbol](`currentToken`).
|
|
@@ -21849,18 +21849,18 @@ function jh() {
|
|
|
21849
21849
|
consume() {
|
|
21850
21850
|
let v = this.currentToken;
|
|
21851
21851
|
v.type !== BE.EOF && this.inputStream.consume();
|
|
21852
|
-
let
|
|
21853
|
-
if (this._buildParseTrees ||
|
|
21852
|
+
let S = this._parseListeners.length !== 0;
|
|
21853
|
+
if (this._buildParseTrees || S)
|
|
21854
21854
|
if (this._errHandler.inErrorRecoveryMode(this)) {
|
|
21855
|
-
let
|
|
21856
|
-
if (
|
|
21855
|
+
let _ = this._ctx.addErrorNode(this.createErrorNode(this._ctx, v));
|
|
21856
|
+
if (S)
|
|
21857
21857
|
for (let C of this._parseListeners)
|
|
21858
|
-
C.visitErrorNode && C.visitErrorNode(
|
|
21858
|
+
C.visitErrorNode && C.visitErrorNode(_);
|
|
21859
21859
|
} else {
|
|
21860
|
-
let
|
|
21861
|
-
if (this._ctx.addChild(
|
|
21860
|
+
let _ = this.createTerminalNode(this._ctx, v);
|
|
21861
|
+
if (this._ctx.addChild(_), S)
|
|
21862
21862
|
for (let C of this._parseListeners)
|
|
21863
|
-
C.visitTerminal && C.visitTerminal(
|
|
21863
|
+
C.visitTerminal && C.visitTerminal(_);
|
|
21864
21864
|
}
|
|
21865
21865
|
return v;
|
|
21866
21866
|
}
|
|
@@ -21870,8 +21870,8 @@ function jh() {
|
|
|
21870
21870
|
*
|
|
21871
21871
|
* @since 4.7
|
|
21872
21872
|
*/
|
|
21873
|
-
createTerminalNode(v,
|
|
21874
|
-
return new m.TerminalNode(
|
|
21873
|
+
createTerminalNode(v, S) {
|
|
21874
|
+
return new m.TerminalNode(S);
|
|
21875
21875
|
}
|
|
21876
21876
|
/**
|
|
21877
21877
|
* How to create an error node, given a token, associated with a parent.
|
|
@@ -21879,8 +21879,8 @@ function jh() {
|
|
|
21879
21879
|
*
|
|
21880
21880
|
* @since 4.7
|
|
21881
21881
|
*/
|
|
21882
|
-
createErrorNode(v,
|
|
21883
|
-
return new u.ErrorNode(
|
|
21882
|
+
createErrorNode(v, S) {
|
|
21883
|
+
return new u.ErrorNode(S);
|
|
21884
21884
|
}
|
|
21885
21885
|
addContextToParseTree() {
|
|
21886
21886
|
let v = this._ctx._parent;
|
|
@@ -21890,11 +21890,11 @@ function jh() {
|
|
|
21890
21890
|
* Always called by generated parsers upon entry to a rule. Access field
|
|
21891
21891
|
* {@link #_ctx} get the current context.
|
|
21892
21892
|
*/
|
|
21893
|
-
enterRule(v,
|
|
21894
|
-
this.state =
|
|
21893
|
+
enterRule(v, S, _) {
|
|
21894
|
+
this.state = S, this._ctx = v, this._ctx._start = this._input.LT(1), this._buildParseTrees && this.addContextToParseTree(), this.triggerEnterRuleEvent();
|
|
21895
21895
|
}
|
|
21896
|
-
enterLeftFactoredRule(v,
|
|
21897
|
-
if (this.state =
|
|
21896
|
+
enterLeftFactoredRule(v, S, _) {
|
|
21897
|
+
if (this.state = S, this._buildParseTrees) {
|
|
21898
21898
|
let C = this._ctx.getChild(this._ctx.childCount - 1);
|
|
21899
21899
|
this._ctx.removeLastChild(), C._parent = v, v.addChild(C);
|
|
21900
21900
|
}
|
|
@@ -21903,10 +21903,10 @@ function jh() {
|
|
|
21903
21903
|
exitRule() {
|
|
21904
21904
|
this.matchedEOF ? this._ctx._stop = this._input.LT(1) : this._ctx._stop = this._input.tryLT(-1), this.triggerExitRuleEvent(), this.state = this._ctx.invokingState, this._ctx = this._ctx._parent;
|
|
21905
21905
|
}
|
|
21906
|
-
enterOuterAlt(v,
|
|
21907
|
-
if (v.altNumber =
|
|
21908
|
-
let
|
|
21909
|
-
|
|
21906
|
+
enterOuterAlt(v, S) {
|
|
21907
|
+
if (v.altNumber = S, this._buildParseTrees && this._ctx !== v) {
|
|
21908
|
+
let _ = this._ctx._parent;
|
|
21909
|
+
_ != null && (_.removeLastChild(), _.addChild(v));
|
|
21910
21910
|
}
|
|
21911
21911
|
this._ctx = v;
|
|
21912
21912
|
}
|
|
@@ -21919,31 +21919,31 @@ function jh() {
|
|
|
21919
21919
|
get precedence() {
|
|
21920
21920
|
return this._precedenceStack.isEmpty ? -1 : this._precedenceStack.peek();
|
|
21921
21921
|
}
|
|
21922
|
-
enterRecursionRule(v,
|
|
21923
|
-
this.state =
|
|
21922
|
+
enterRecursionRule(v, S, _, C) {
|
|
21923
|
+
this.state = S, this._precedenceStack.push(C), this._ctx = v, this._ctx._start = this._input.LT(1), this.triggerEnterRuleEvent();
|
|
21924
21924
|
}
|
|
21925
21925
|
/** Like {@link #enterRule} but for recursive rules.
|
|
21926
21926
|
* Make the current context the child of the incoming localctx.
|
|
21927
21927
|
*/
|
|
21928
|
-
pushNewRecursionContext(v,
|
|
21928
|
+
pushNewRecursionContext(v, S, _) {
|
|
21929
21929
|
let C = this._ctx;
|
|
21930
|
-
C._parent = v, C.invokingState =
|
|
21930
|
+
C._parent = v, C.invokingState = S, C._stop = this._input.tryLT(-1), this._ctx = v, this._ctx._start = C._start, this._buildParseTrees && this._ctx.addChild(C), this.triggerEnterRuleEvent();
|
|
21931
21931
|
}
|
|
21932
21932
|
unrollRecursionContexts(v) {
|
|
21933
21933
|
this._precedenceStack.pop(), this._ctx._stop = this._input.tryLT(-1);
|
|
21934
|
-
let
|
|
21934
|
+
let S = this._ctx;
|
|
21935
21935
|
if (this._parseListeners.length > 0)
|
|
21936
21936
|
for (; this._ctx !== v; )
|
|
21937
21937
|
this.triggerExitRuleEvent(), this._ctx = this._ctx._parent;
|
|
21938
21938
|
else
|
|
21939
21939
|
this._ctx = v;
|
|
21940
|
-
|
|
21940
|
+
S._parent = v, this._buildParseTrees && v != null && v.addChild(S);
|
|
21941
21941
|
}
|
|
21942
21942
|
getInvokingContext(v) {
|
|
21943
|
-
let
|
|
21944
|
-
for (;
|
|
21945
|
-
|
|
21946
|
-
return
|
|
21943
|
+
let S = this._ctx;
|
|
21944
|
+
for (; S && S.ruleIndex !== v; )
|
|
21945
|
+
S = S._parent;
|
|
21946
|
+
return S;
|
|
21947
21947
|
}
|
|
21948
21948
|
get context() {
|
|
21949
21949
|
return this._ctx;
|
|
@@ -21951,8 +21951,8 @@ function jh() {
|
|
|
21951
21951
|
set context(v) {
|
|
21952
21952
|
this._ctx = v;
|
|
21953
21953
|
}
|
|
21954
|
-
precpred(v,
|
|
21955
|
-
return
|
|
21954
|
+
precpred(v, S) {
|
|
21955
|
+
return S >= this._precedenceStack.peek();
|
|
21956
21956
|
}
|
|
21957
21957
|
getErrorListenerDispatch() {
|
|
21958
21958
|
return new h.ProxyParserErrorListener(this.getErrorListeners());
|
|
@@ -21975,16 +21975,16 @@ function jh() {
|
|
|
21975
21975
|
* the ATN, otherwise `false`.
|
|
21976
21976
|
*/
|
|
21977
21977
|
isExpectedToken(v) {
|
|
21978
|
-
let
|
|
21978
|
+
let S = this.interpreter.atn, _ = this._ctx, C = S.states[this.state], b = S.nextTokens(C);
|
|
21979
21979
|
if (b.contains(v))
|
|
21980
21980
|
return !0;
|
|
21981
21981
|
if (!b.contains(g.Token.EPSILON))
|
|
21982
21982
|
return !1;
|
|
21983
|
-
for (;
|
|
21984
|
-
let O =
|
|
21985
|
-
if (b =
|
|
21983
|
+
for (; _ != null && _.invokingState >= 0 && b.contains(g.Token.EPSILON); ) {
|
|
21984
|
+
let O = S.states[_.invokingState].transition(0);
|
|
21985
|
+
if (b = S.nextTokens(O.followState), b.contains(v))
|
|
21986
21986
|
return !0;
|
|
21987
|
-
|
|
21987
|
+
_ = _._parent;
|
|
21988
21988
|
}
|
|
21989
21989
|
return !!(b.contains(g.Token.EPSILON) && v === g.Token.EOF);
|
|
21990
21990
|
}
|
|
@@ -22002,13 +22002,13 @@ function jh() {
|
|
|
22002
22002
|
return this.atn.getExpectedTokens(this.state, this.context);
|
|
22003
22003
|
}
|
|
22004
22004
|
getExpectedTokensWithinCurrentRule() {
|
|
22005
|
-
let v = this.interpreter.atn,
|
|
22006
|
-
return v.nextTokens(
|
|
22005
|
+
let v = this.interpreter.atn, S = v.states[this.state];
|
|
22006
|
+
return v.nextTokens(S);
|
|
22007
22007
|
}
|
|
22008
22008
|
/** Get a rule's index (i.e., `RULE_ruleName` field) or -1 if not found. */
|
|
22009
22009
|
getRuleIndex(v) {
|
|
22010
|
-
let
|
|
22011
|
-
return
|
|
22010
|
+
let S = this.getRuleIndexMap().get(v);
|
|
22011
|
+
return S ?? -1;
|
|
22012
22012
|
}
|
|
22013
22013
|
get ruleContext() {
|
|
22014
22014
|
return this._ctx;
|
|
@@ -22021,34 +22021,34 @@ function jh() {
|
|
|
22021
22021
|
* This is very useful for error messages.
|
|
22022
22022
|
*/
|
|
22023
22023
|
getRuleInvocationStack(v = this._ctx) {
|
|
22024
|
-
let
|
|
22025
|
-
for (;
|
|
22026
|
-
let b =
|
|
22027
|
-
b < 0 ? C.push("n/a") : C.push(
|
|
22024
|
+
let S = v, _ = this.ruleNames, C = [];
|
|
22025
|
+
for (; S != null; ) {
|
|
22026
|
+
let b = S.ruleIndex;
|
|
22027
|
+
b < 0 ? C.push("n/a") : C.push(_[b]), S = S._parent;
|
|
22028
22028
|
}
|
|
22029
22029
|
return C;
|
|
22030
22030
|
}
|
|
22031
22031
|
/** For debugging and other purposes. */
|
|
22032
22032
|
getDFAStrings() {
|
|
22033
22033
|
let v = [];
|
|
22034
|
-
for (let
|
|
22035
|
-
v.push(
|
|
22034
|
+
for (let S of this._interp.atn.decisionToDFA)
|
|
22035
|
+
v.push(S.toString(this.vocabulary, this.ruleNames));
|
|
22036
22036
|
return v;
|
|
22037
22037
|
}
|
|
22038
22038
|
/** For debugging and other purposes. */
|
|
22039
22039
|
dumpDFA() {
|
|
22040
22040
|
let v = !1;
|
|
22041
|
-
for (let
|
|
22042
|
-
|
|
22041
|
+
for (let S of this._interp.atn.decisionToDFA)
|
|
22042
|
+
S.isEmpty || (v && console.log(), console.log("Decision " + S.decision + ":"), process.stdout.write(S.toString(this.vocabulary, this.ruleNames)), v = !0);
|
|
22043
22043
|
}
|
|
22044
22044
|
get sourceName() {
|
|
22045
22045
|
return this._input.sourceName;
|
|
22046
22046
|
}
|
|
22047
22047
|
get parseInfo() {
|
|
22048
22048
|
return Promise.resolve().then(() => Mk()).then((v) => {
|
|
22049
|
-
let
|
|
22050
|
-
if (
|
|
22051
|
-
return new f.ParseInfo(
|
|
22049
|
+
let S = this.interpreter;
|
|
22050
|
+
if (S instanceof v.ProfilingATNSimulator)
|
|
22051
|
+
return new f.ParseInfo(S);
|
|
22052
22052
|
});
|
|
22053
22053
|
}
|
|
22054
22054
|
/**
|
|
@@ -22056,8 +22056,8 @@ function jh() {
|
|
|
22056
22056
|
*/
|
|
22057
22057
|
setProfile(v) {
|
|
22058
22058
|
return n(this, void 0, void 0, function* () {
|
|
22059
|
-
let
|
|
22060
|
-
v ?
|
|
22059
|
+
let S = yield Promise.resolve().then(() => Mk()), _ = this.interpreter;
|
|
22060
|
+
v ? _ instanceof S.ProfilingATNSimulator || (this.interpreter = new S.ProfilingATNSimulator(this)) : _ instanceof S.ProfilingATNSimulator && (this.interpreter = new x.ParserATNSimulator(this.atn, this)), this.interpreter.setPredictionMode(_.getPredictionMode());
|
|
22061
22061
|
});
|
|
22062
22062
|
}
|
|
22063
22063
|
/** During a parse is sometimes useful to listen in on the rule entry and exit
|
|
@@ -22255,10 +22255,10 @@ function k0() {
|
|
|
22255
22255
|
return;
|
|
22256
22256
|
let E = p.childCount;
|
|
22257
22257
|
for (let A = 0; A < E; A++) {
|
|
22258
|
-
let v = p.getChild(A),
|
|
22259
|
-
if (v instanceof u.ParserRuleContext && (
|
|
22260
|
-
let
|
|
22261
|
-
p.children[A] = new l.TerminalNode(
|
|
22258
|
+
let v = p.getChild(A), S = v.sourceInterval;
|
|
22259
|
+
if (v instanceof u.ParserRuleContext && (S.b < g || S.a > y) && Tl.isAncestorOf(v, m)) {
|
|
22260
|
+
let _ = new r.CommonToken(c.Token.INVALID_TYPE, "...");
|
|
22261
|
+
p.children[A] = new l.TerminalNode(_);
|
|
22262
22262
|
}
|
|
22263
22263
|
}
|
|
22264
22264
|
}
|
|
@@ -24295,19 +24295,19 @@ function l1e(t) {
|
|
|
24295
24295
|
return e && (e.inherits = void 0), u1e.Tag.annotationToTag(e).tag.has("materialize");
|
|
24296
24296
|
}
|
|
24297
24297
|
Cd.shouldMaterialize = l1e;
|
|
24298
|
-
function c1e(t, e) {
|
|
24298
|
+
function c1e(t, e, n) {
|
|
24299
24299
|
if (!e)
|
|
24300
24300
|
throw new Error(`Query tagged to materialize, but its name is not specified. ${t}`);
|
|
24301
24301
|
if (!t)
|
|
24302
24302
|
throw new Error(`Query tagged to materialize, but its path is not specified: ${e}`);
|
|
24303
|
-
const
|
|
24303
|
+
const r = {
|
|
24304
24304
|
path: t,
|
|
24305
24305
|
source: void 0,
|
|
24306
24306
|
queryName: e
|
|
24307
|
-
},
|
|
24307
|
+
}, i = (0, a1e.generateHash)(JSON.stringify(r)).replace(/-/g, "_"), s = `${n ? `${n}_` : ""}${e}_${i}`;
|
|
24308
24308
|
return {
|
|
24309
|
-
...
|
|
24310
|
-
id:
|
|
24309
|
+
...r,
|
|
24310
|
+
id: s
|
|
24311
24311
|
};
|
|
24312
24312
|
}
|
|
24313
24313
|
Cd.buildQueryMaterializationSpec = c1e;
|
|
@@ -24366,16 +24366,16 @@ class DA {
|
|
|
24366
24366
|
const o = `${n.udfPrefix}${this.root().udfs.length}`;
|
|
24367
24367
|
return i = n.sqlCreateFunction(o, i), this.root().udfs.push(i), o;
|
|
24368
24368
|
}
|
|
24369
|
-
addMaterializedQuery(e, n) {
|
|
24370
|
-
var
|
|
24371
|
-
const
|
|
24372
|
-
if (!i)
|
|
24373
|
-
throw new Error(`Source ${e} on a unnamed query that is tagged as materialize, only named queries can be materialized.`);
|
|
24374
|
-
const s = (r = n.location) === null || r === void 0 ? void 0 : r.url;
|
|
24369
|
+
addMaterializedQuery(e, n, r) {
|
|
24370
|
+
var i;
|
|
24371
|
+
const s = n.name;
|
|
24375
24372
|
if (!s)
|
|
24376
|
-
throw new Error(`
|
|
24377
|
-
const o = (
|
|
24378
|
-
|
|
24373
|
+
throw new Error(`Source ${e} on a unnamed query that is tagged as materialize, only named queries can be materialized.`);
|
|
24374
|
+
const o = (i = n.location) === null || i === void 0 ? void 0 : i.url;
|
|
24375
|
+
if (!o)
|
|
24376
|
+
throw new Error(`Trying to materialize query ${s}, but its path is not set.`);
|
|
24377
|
+
const u = (0, OA.buildQueryMaterializationSpec)(o, s, r);
|
|
24378
|
+
return this.root().dependenciesToMaterialize[u.id] = u, u.id;
|
|
24379
24379
|
}
|
|
24380
24380
|
addPDT(e, n) {
|
|
24381
24381
|
const r = this.combineStages(!1).sql + this.withs[this.withs.length - 1], s = `scratch.${e + (0, dn.generateHash)(r)}`;
|
|
@@ -24555,8 +24555,8 @@ let fg = class extends CW {
|
|
|
24555
24555
|
return this.generateDimFragment(e, n, A, i);
|
|
24556
24556
|
});
|
|
24557
24557
|
return n.dialect.sqlAggDistinct(f, [...h, ...m], (g) => {
|
|
24558
|
-
const y = g.map((
|
|
24559
|
-
return this.exprToSQL(e, n,
|
|
24558
|
+
const y = g.map((_, C) => C < l.length && this.getParamForArgIndex(a.params, C).allowedTypes.every((R) => (0, Ze.isLiteral)(R.evalSpace)) ? l[C] : (0, dn.composeSQLExpr)([_])), E = y.slice(0, h.length), A = y.slice(h.length).map((_, C) => ({ node: "functionOrderBy", e: _, dir: p[C].dir })), v = this.getFunctionOrderBy(e, n, i, A, E, a), S = this.expandFunctionCall(n.dialect.name, a, E, v, x);
|
|
24559
|
+
return this.exprToSQL(e, n, S, i);
|
|
24560
24560
|
});
|
|
24561
24561
|
} else {
|
|
24562
24562
|
const h = (0, Ze.expressionIsAggregate)(a.returnType.expressionType) ? l.map((g, y) => this.getParamForArgIndex(a.params, y).allowedTypes.every((A) => (0, Ze.isLiteral)(A.evalSpace)) ? g : (0, dn.composeSQLExpr)([
|
|
@@ -24658,19 +24658,19 @@ let fg = class extends CW {
|
|
|
24658
24658
|
if (!l && m.needsWindowOrderBy) {
|
|
24659
24659
|
const A = [];
|
|
24660
24660
|
let v;
|
|
24661
|
-
const
|
|
24662
|
-
for (const
|
|
24663
|
-
typeof
|
|
24664
|
-
name:
|
|
24665
|
-
fif: n.getField(
|
|
24666
|
-
} : v = n.getFieldByNumber(
|
|
24661
|
+
const S = n.firstSegment.orderBy || n.calculateDefaultOrderBy();
|
|
24662
|
+
for (const _ of S) {
|
|
24663
|
+
typeof _.field == "string" ? v = {
|
|
24664
|
+
name: _.field,
|
|
24665
|
+
fif: n.getField(_.field)
|
|
24666
|
+
} : v = n.getFieldByNumber(_.field);
|
|
24667
24667
|
const C = v.fif.f.fieldDef.expressionType;
|
|
24668
24668
|
if (!(0, Ze.expressionIsAnalytic)(C))
|
|
24669
24669
|
if (n.firstSegment.type === "reduce") {
|
|
24670
24670
|
const b = v.fif.getAnalyticalSQL(!1);
|
|
24671
|
-
A.push(` ${b} ${
|
|
24671
|
+
A.push(` ${b} ${_.dir || "ASC"}`);
|
|
24672
24672
|
} else
|
|
24673
|
-
n.firstSegment.type === "project" && A.push(` ${v.fif.f.generateExpression(n)} ${
|
|
24673
|
+
n.firstSegment.type === "project" && A.push(` ${v.fif.f.generateExpression(n)} ${_.dir || "ASC"}`);
|
|
24674
24674
|
}
|
|
24675
24675
|
A.length > 0 && (p = " " + this.parent.dialect.sqlOrderBy(A));
|
|
24676
24676
|
}
|
|
@@ -24679,12 +24679,12 @@ let fg = class extends CW {
|
|
|
24679
24679
|
const [A, v] = [
|
|
24680
24680
|
m.between.preceding,
|
|
24681
24681
|
m.between.following
|
|
24682
|
-
].map((
|
|
24683
|
-
if (
|
|
24682
|
+
].map((S) => {
|
|
24683
|
+
if (S === -1)
|
|
24684
24684
|
return "UNBOUNDED";
|
|
24685
|
-
if (typeof
|
|
24686
|
-
return
|
|
24687
|
-
const
|
|
24685
|
+
if (typeof S == "number")
|
|
24686
|
+
return S;
|
|
24687
|
+
const _ = s.params.findIndex((b) => b.name === S), C = u[_];
|
|
24688
24688
|
if (C.node !== "numberLiteral")
|
|
24689
24689
|
throw new Error("Invalid number of rows for window spec");
|
|
24690
24690
|
return C.literal;
|
|
@@ -26133,7 +26133,7 @@ class D1e extends ks {
|
|
|
26133
26133
|
}
|
|
26134
26134
|
class Ir extends CW {
|
|
26135
26135
|
constructor(e, n, r, i) {
|
|
26136
|
-
if (super(e), this.sourceArguments = n, this.prepareResultOptions = i, this.nameMap = /* @__PURE__ */ new Map(), this._arguments = void 0, this.setParent(r), "model" in r)
|
|
26136
|
+
if (super(e), this.sourceArguments = n, this.prepareResultOptions = i, this.nameMap = /* @__PURE__ */ new Map(), this._arguments = void 0, this.stacki = new Error("").stack, this.setParent(r), "model" in r)
|
|
26137
26137
|
if (this.model = r.model, this.pathAliasMap = /* @__PURE__ */ new Map(), e.structRelationship.type === "basetable")
|
|
26138
26138
|
this.connectionName = e.structRelationship.connectionName;
|
|
26139
26139
|
else
|
|
@@ -26303,11 +26303,11 @@ class Ir extends CW {
|
|
|
26303
26303
|
}
|
|
26304
26304
|
}
|
|
26305
26305
|
structSourceSQL(e) {
|
|
26306
|
-
var n;
|
|
26306
|
+
var n, r;
|
|
26307
26307
|
switch (this.fieldDef.structSource.type) {
|
|
26308
26308
|
case "table": {
|
|
26309
|
-
const
|
|
26310
|
-
return this.dialect.quoteTablePath(
|
|
26309
|
+
const i = this.fieldDef.structSource.tablePath;
|
|
26310
|
+
return this.dialect.quoteTablePath(i);
|
|
26311
26311
|
}
|
|
26312
26312
|
case "sql":
|
|
26313
26313
|
if (this.fieldDef.structSource.method === "nested" || this.fieldDef.structSource.method === "lastStage")
|
|
@@ -26320,7 +26320,7 @@ class Ir extends CW {
|
|
|
26320
26320
|
case "inline":
|
|
26321
26321
|
return "";
|
|
26322
26322
|
case "query":
|
|
26323
|
-
return !((n = this.prepareResultOptions) === null || n === void 0) && n.replaceMaterializedReferences && (0, OA.shouldMaterialize)(this.fieldDef.structSource.query.annotation) ? e.addMaterializedQuery((0, Ze.getIdentifier)(this.fieldDef), this.fieldDef.structSource.query) : this.model.loadQuery(
|
|
26323
|
+
return !((n = this.prepareResultOptions) === null || n === void 0) && n.replaceMaterializedReferences && (0, OA.shouldMaterialize)(this.fieldDef.structSource.query.annotation) ? e.addMaterializedQuery((0, Ze.getIdentifier)(this.fieldDef), this.fieldDef.structSource.query, (r = this.prepareResultOptions) === null || r === void 0 ? void 0 : r.materializedTablePrefix) : this.model.loadQuery(
|
|
26324
26324
|
this.fieldDef.structSource.query,
|
|
26325
26325
|
e,
|
|
26326
26326
|
this.prepareResultOptions,
|
|
@@ -26479,7 +26479,7 @@ class RW {
|
|
|
26479
26479
|
malloy: o.malloy,
|
|
26480
26480
|
sql: o.stageWriter.generateSQLStages(),
|
|
26481
26481
|
dependenciesToMaterialize: o.stageWriter.dependenciesToMaterialize,
|
|
26482
|
-
materialization: (0, OA.shouldMaterialize)(e.annotation) ? (0, OA.buildQueryMaterializationSpec)((i = e.location) === null || i === void 0 ? void 0 : i.url, e.name) : void 0,
|
|
26482
|
+
materialization: (0, OA.shouldMaterialize)(e.annotation) ? (0, OA.buildQueryMaterializationSpec)((i = e.location) === null || i === void 0 ? void 0 : i.url, e.name, n == null ? void 0 : n.materializedTablePrefix) : void 0,
|
|
26483
26483
|
structs: o.structs,
|
|
26484
26484
|
sourceExplore: u,
|
|
26485
26485
|
sourceFilters: e.filterList,
|
|
@@ -41624,7 +41624,7 @@ class OAe extends TAe.ExpressionDef {
|
|
|
41624
41624
|
]);
|
|
41625
41625
|
if (!(0, Ki.expressionIsAggregate)(m.returnType.expressionType) && this.source !== void 0)
|
|
41626
41626
|
return this.loggedErrorExpr("non-aggregate-function-with-source", `Cannot call function ${this.name}(${h.map((R) => R.dataType).join(", ")}) with source`);
|
|
41627
|
-
const
|
|
41627
|
+
const S = {
|
|
41628
41628
|
node: "function_call",
|
|
41629
41629
|
overload: m,
|
|
41630
41630
|
name: this.name,
|
|
@@ -41632,23 +41632,23 @@ class OAe extends TAe.ExpressionDef {
|
|
|
41632
41632
|
expressionType: v,
|
|
41633
41633
|
structPath: x
|
|
41634
41634
|
};
|
|
41635
|
-
let
|
|
41635
|
+
let _ = S;
|
|
41636
41636
|
if (n != null && n.orderBys && n.orderBys.length > 0) {
|
|
41637
41637
|
const R = (0, Ki.expressionIsAnalytic)(m.returnType.expressionType);
|
|
41638
41638
|
if (R || this.inExperiment("aggregate_order_by", !0) || n.orderBys[0].logError("aggregate-order-by-experiment-not-enabled", "Enable experiment `aggregate_order_by` to use `order_by` with an aggregate function"), m.supportsOrderBy || R) {
|
|
41639
41639
|
const O = m.supportsOrderBy !== "only_default", L = n.orderBys.flatMap((M) => R ? M.getAnalyticOrderBy(e) : M.getAggregateOrderBy(e, O));
|
|
41640
|
-
|
|
41640
|
+
S.kids.orderBy = L;
|
|
41641
41641
|
} else
|
|
41642
41642
|
n.orderBys[0].logError("function-does-not-support-order-by", `Function \`${this.name}\` does not support \`order_by\``);
|
|
41643
41643
|
}
|
|
41644
|
-
if ((n == null ? void 0 : n.limit) !== void 0 && (m.supportsLimit ?
|
|
41644
|
+
if ((n == null ? void 0 : n.limit) !== void 0 && (m.supportsLimit ? S.limit = n.limit.limit : this.logError("function-does-not-support-limit", `Function ${this.name} does not support limit`)), n != null && n.partitionBys && n.partitionBys.length > 0) {
|
|
41645
41645
|
const R = [];
|
|
41646
41646
|
for (const O of n.partitionBys)
|
|
41647
41647
|
for (const L of O.partitionFields) {
|
|
41648
41648
|
const M = L.getField(e);
|
|
41649
41649
|
M.found === void 0 ? L.logError("partition-by-not-found", `${L.refString} is not defined`) : (0, Ki.expressionIsAnalytic)(M.found.typeDesc().expressionType) || (0, Ki.expressionIsUngroupedAggregate)(M.found.typeDesc().expressionType) ? L.logError("non-scalar-or-aggregate-partition-by", "Partition expression must be scalar or aggregate") : R.push(L.nameString);
|
|
41650
41650
|
}
|
|
41651
|
-
|
|
41651
|
+
S.partitionBy = R;
|
|
41652
41652
|
}
|
|
41653
41653
|
if ([
|
|
41654
41654
|
"sql_number",
|
|
@@ -41682,7 +41682,7 @@ class OAe extends TAe.ExpressionDef {
|
|
|
41682
41682
|
return this.loggedErrorExpr("sql-function-interpolation-not-found", `Invalid interpolation: ${Y.error.message}`);
|
|
41683
41683
|
Y.found.refType === "parameter" ? H.push({ node: "parameter", path: [G.name] }) : H.push({ node: "field", path: [G.name] });
|
|
41684
41684
|
}
|
|
41685
|
-
|
|
41685
|
+
_ = (0, SM.composeSQLExpr)(H);
|
|
41686
41686
|
}
|
|
41687
41687
|
}
|
|
41688
41688
|
if (A.dataType === "any")
|
|
@@ -41691,7 +41691,7 @@ class OAe extends TAe.ExpressionDef {
|
|
|
41691
41691
|
return {
|
|
41692
41692
|
dataType: A.dataType,
|
|
41693
41693
|
expressionType: v,
|
|
41694
|
-
value:
|
|
41694
|
+
value: _,
|
|
41695
41695
|
evalSpace: b
|
|
41696
41696
|
};
|
|
41697
41697
|
}
|
|
@@ -46140,10 +46140,10 @@ class at {
|
|
|
46140
46140
|
const E = h ? F4e(o) : u ? L4e(o) : RX(o), A = E || OX(o);
|
|
46141
46141
|
if (A)
|
|
46142
46142
|
return at.invalid(A);
|
|
46143
|
-
const v = h ? GM(o) : u ? WM(o) : o, [
|
|
46144
|
-
ts:
|
|
46143
|
+
const v = h ? GM(o) : u ? WM(o) : o, [S, _] = ME(v, s, r), C = new at({
|
|
46144
|
+
ts: S,
|
|
46145
46145
|
zone: r,
|
|
46146
|
-
o:
|
|
46146
|
+
o: _,
|
|
46147
46147
|
loc: x
|
|
46148
46148
|
});
|
|
46149
46149
|
return o.weekday && c && e.weekday !== C.weekday ? at.invalid("mismatched weekday", `you can't specify both a weekday of ${o.weekday} and a date of ${C.toISO()}`) : C;
|
|
@@ -51072,77 +51072,77 @@ class an {
|
|
|
51072
51072
|
* @param model A compiled model to build upon (optional).
|
|
51073
51073
|
* @return A (promise of a) compiled `Model`.
|
|
51074
51074
|
*/
|
|
51075
|
-
static async compile({ urlReader: e, connections: n, parse: r, model: i, refreshSchemaCache: s, noThrowOnError: o, replaceMaterializedReferences: u }) {
|
|
51076
|
-
var
|
|
51077
|
-
let
|
|
51078
|
-
s && (
|
|
51079
|
-
const
|
|
51075
|
+
static async compile({ urlReader: e, connections: n, parse: r, model: i, refreshSchemaCache: s, noThrowOnError: o, replaceMaterializedReferences: u, materializedTablePrefix: a }) {
|
|
51076
|
+
var l, c, f, x;
|
|
51077
|
+
let h;
|
|
51078
|
+
s && (h = typeof s == "number" ? s : Date.now());
|
|
51079
|
+
const p = r._translator;
|
|
51080
51080
|
for (; ; ) {
|
|
51081
|
-
const
|
|
51082
|
-
if (
|
|
51083
|
-
if (
|
|
51084
|
-
return new yg(
|
|
51081
|
+
const m = p.translate(i == null ? void 0 : i._modelDef);
|
|
51082
|
+
if (m.final) {
|
|
51083
|
+
if (m.translated)
|
|
51084
|
+
return new yg(m.translated.modelDef, m.translated.queryList, m.translated.sqlBlocks, m.problems || [], [...(l = i == null ? void 0 : i.fromSources) !== null && l !== void 0 ? l : [], ...(c = m.fromSources) !== null && c !== void 0 ? c : []], (g) => p.referenceAt(g), (g) => p.importAt(g));
|
|
51085
51085
|
if (o) {
|
|
51086
|
-
const
|
|
51086
|
+
const g = {
|
|
51087
51087
|
name: "modelDidNotCompile",
|
|
51088
51088
|
exports: [],
|
|
51089
51089
|
contents: {}
|
|
51090
|
-
},
|
|
51091
|
-
return new yg(
|
|
51090
|
+
}, y = (i == null ? void 0 : i._modelDef) || g;
|
|
51091
|
+
return new yg(y, [], [], m.problems || [], [...(f = i == null ? void 0 : i.fromSources) !== null && f !== void 0 ? f : [], ...(x = m.fromSources) !== null && x !== void 0 ? x : []], (E) => p.referenceAt(E), (E) => p.importAt(E));
|
|
51092
51092
|
} else {
|
|
51093
|
-
const
|
|
51093
|
+
const g = m.problems || [], y = p.prettyErrors();
|
|
51094
51094
|
throw new KX(`Error(s) compiling model:
|
|
51095
|
-
${
|
|
51095
|
+
${y}`, g);
|
|
51096
51096
|
}
|
|
51097
51097
|
} else {
|
|
51098
|
-
if (
|
|
51099
|
-
for (const
|
|
51098
|
+
if (m.urls)
|
|
51099
|
+
for (const y of m.urls)
|
|
51100
51100
|
try {
|
|
51101
|
-
if (
|
|
51101
|
+
if (y.startsWith("internal://"))
|
|
51102
51102
|
throw new Error("In order to use relative imports, you must compile a file via a URL.");
|
|
51103
|
-
const
|
|
51104
|
-
|
|
51105
|
-
} catch (
|
|
51106
|
-
|
|
51107
|
-
errors: { urls: { [
|
|
51103
|
+
const E = await e.readURL(new URL(y)), A = { [y]: E };
|
|
51104
|
+
p.update({ urls: A });
|
|
51105
|
+
} catch (E) {
|
|
51106
|
+
p.update({
|
|
51107
|
+
errors: { urls: { [y]: E.message } }
|
|
51108
51108
|
});
|
|
51109
51109
|
}
|
|
51110
|
-
const { modelAnnotation:
|
|
51111
|
-
if (
|
|
51112
|
-
const
|
|
51113
|
-
for (const
|
|
51114
|
-
const { connectionName:
|
|
51115
|
-
|
|
51110
|
+
const { modelAnnotation: g } = p.modelAnnotation(i == null ? void 0 : i._modelDef);
|
|
51111
|
+
if (m.tables) {
|
|
51112
|
+
const y = /* @__PURE__ */ new Map();
|
|
51113
|
+
for (const E in m.tables) {
|
|
51114
|
+
const { connectionName: A, tablePath: v } = m.tables[E], S = y.get(A);
|
|
51115
|
+
S === void 0 ? y.set(A, { [E]: v }) : S[E] = v;
|
|
51116
51116
|
}
|
|
51117
|
-
for (const [
|
|
51117
|
+
for (const [E, A] of y)
|
|
51118
51118
|
try {
|
|
51119
|
-
const
|
|
51120
|
-
refreshTimestamp:
|
|
51121
|
-
modelAnnotation:
|
|
51119
|
+
const v = await n.lookupConnection(E), { schemas: S, errors: _ } = await v.fetchSchemaForTables(A, {
|
|
51120
|
+
refreshTimestamp: h,
|
|
51121
|
+
modelAnnotation: g
|
|
51122
51122
|
});
|
|
51123
|
-
|
|
51124
|
-
} catch (
|
|
51125
|
-
const
|
|
51126
|
-
for (const
|
|
51127
|
-
_[
|
|
51128
|
-
|
|
51123
|
+
p.update({ tables: S, errors: { tables: _ } });
|
|
51124
|
+
} catch (v) {
|
|
51125
|
+
const S = {}, _ = {};
|
|
51126
|
+
for (const C in A)
|
|
51127
|
+
_[C] = v.toString();
|
|
51128
|
+
p.update({ tables: S, errors: { tables: _ } });
|
|
51129
51129
|
}
|
|
51130
51130
|
}
|
|
51131
|
-
if (
|
|
51132
|
-
const
|
|
51131
|
+
if (m.compileSQL) {
|
|
51132
|
+
const y = m.compileSQL, E = y.connection;
|
|
51133
51133
|
try {
|
|
51134
|
-
const
|
|
51135
|
-
refreshTimestamp:
|
|
51136
|
-
modelAnnotation:
|
|
51134
|
+
const A = await n.lookupConnection(E), v = an.compileSQLBlock(m.partialModel, y, { replaceMaterializedReferences: u, materializedTablePrefix: a }), S = await A.fetchSchemaForSQLBlock(v, {
|
|
51135
|
+
refreshTimestamp: h,
|
|
51136
|
+
modelAnnotation: g
|
|
51137
51137
|
});
|
|
51138
|
-
|
|
51139
|
-
errors: { compileSQL: { [
|
|
51140
|
-
}),
|
|
51141
|
-
compileSQL: { [
|
|
51138
|
+
S.error && p.update({
|
|
51139
|
+
errors: { compileSQL: { [v.name]: S.error } }
|
|
51140
|
+
}), S.structDef && (0, Kl.isSQLBlockStruct)(S.structDef) && p.update({
|
|
51141
|
+
compileSQL: { [v.name]: S.structDef }
|
|
51142
51142
|
});
|
|
51143
|
-
} catch (
|
|
51144
|
-
const
|
|
51145
|
-
|
|
51143
|
+
} catch (A) {
|
|
51144
|
+
const v = {};
|
|
51145
|
+
v[y.name] = A.toString(), p.update({ errors: { compileSQL: v } });
|
|
51146
51146
|
}
|
|
51147
51147
|
}
|
|
51148
51148
|
}
|
|
@@ -52304,7 +52304,8 @@ class L8 {
|
|
|
52304
52304
|
parse: s,
|
|
52305
52305
|
refreshSchemaCache: r,
|
|
52306
52306
|
noThrowOnError: i,
|
|
52307
|
-
replaceMaterializedReferences: n == null ? void 0 : n.replaceMaterializedReferences
|
|
52307
|
+
replaceMaterializedReferences: n == null ? void 0 : n.replaceMaterializedReferences,
|
|
52308
|
+
materializedTablePrefix: n == null ? void 0 : n.materializedTablePrefix
|
|
52308
52309
|
});
|
|
52309
52310
|
}, n);
|
|
52310
52311
|
}
|
|
@@ -52500,8 +52501,7 @@ class T3 {
|
|
|
52500
52501
|
}
|
|
52501
52502
|
class Ag extends T3 {
|
|
52502
52503
|
constructor(e, n, r) {
|
|
52503
|
-
|
|
52504
|
-
super(e, n), this.runtime = e, this.replaceMaterializedReferences = (i = r == null ? void 0 : r.replaceMaterializedReferences) !== null && i !== void 0 ? i : !1;
|
|
52504
|
+
super(e, n), this.runtime = e, this.prepareResultOptions = r;
|
|
52505
52505
|
}
|
|
52506
52506
|
/**
|
|
52507
52507
|
* Load the final (unnamed) Malloy query contained within this loaded `Model`.
|
|
@@ -52511,7 +52511,7 @@ class Ag extends T3 {
|
|
|
52511
52511
|
*/
|
|
52512
52512
|
loadFinalQuery(e) {
|
|
52513
52513
|
return this.makeQueryMaterializer(async () => (await this.materialize()).getPreparedQuery(), {
|
|
52514
|
-
|
|
52514
|
+
...this.prepareResultOptions,
|
|
52515
52515
|
...e
|
|
52516
52516
|
});
|
|
52517
52517
|
}
|
|
@@ -52524,7 +52524,7 @@ class Ag extends T3 {
|
|
|
52524
52524
|
*/
|
|
52525
52525
|
loadQueryByIndex(e, n) {
|
|
52526
52526
|
return this.makeQueryMaterializer(async () => (await this.materialize()).getPreparedQueryByIndex(e), {
|
|
52527
|
-
|
|
52527
|
+
...this.prepareResultOptions,
|
|
52528
52528
|
...n
|
|
52529
52529
|
});
|
|
52530
52530
|
}
|
|
@@ -52537,7 +52537,7 @@ class Ag extends T3 {
|
|
|
52537
52537
|
*/
|
|
52538
52538
|
loadQueryByName(e, n) {
|
|
52539
52539
|
return this.makeQueryMaterializer(async () => (await this.materialize()).getPreparedQueryByName(e), {
|
|
52540
|
-
|
|
52540
|
+
...this.prepareResultOptions,
|
|
52541
52541
|
...n
|
|
52542
52542
|
});
|
|
52543
52543
|
}
|
|
@@ -52551,25 +52551,24 @@ class Ag extends T3 {
|
|
|
52551
52551
|
loadQuery(e, n) {
|
|
52552
52552
|
const { refreshSchemaCache: r, noThrowOnError: i } = n || {};
|
|
52553
52553
|
return this.makeQueryMaterializer(async () => {
|
|
52554
|
-
|
|
52555
|
-
const o = this.runtime.urlReader, u = this.runtime.connections;
|
|
52554
|
+
const s = this.runtime.urlReader, o = this.runtime.connections;
|
|
52556
52555
|
this.runtime.isTestRuntime && (n === void 0 ? n = { testEnvironment: !0 } : n = { ...n, testEnvironment: !0 });
|
|
52557
|
-
const
|
|
52556
|
+
const u = e instanceof URL ? await an.parse({
|
|
52558
52557
|
url: e,
|
|
52559
|
-
urlReader:
|
|
52558
|
+
urlReader: s,
|
|
52560
52559
|
options: n
|
|
52561
52560
|
}) : an.parse({
|
|
52562
52561
|
source: e,
|
|
52563
52562
|
options: n
|
|
52564
|
-
}),
|
|
52563
|
+
}), a = await this.getModel();
|
|
52565
52564
|
return (await an.compile({
|
|
52566
|
-
urlReader:
|
|
52567
|
-
connections:
|
|
52568
|
-
parse:
|
|
52569
|
-
model:
|
|
52565
|
+
urlReader: s,
|
|
52566
|
+
connections: o,
|
|
52567
|
+
parse: u,
|
|
52568
|
+
model: a,
|
|
52570
52569
|
refreshSchemaCache: r,
|
|
52571
52570
|
noThrowOnError: i,
|
|
52572
|
-
|
|
52571
|
+
...this.prepareResultOptions
|
|
52573
52572
|
})).preparedQuery;
|
|
52574
52573
|
});
|
|
52575
52574
|
}
|
|
@@ -52582,23 +52581,22 @@ class Ag extends T3 {
|
|
|
52582
52581
|
*/
|
|
52583
52582
|
extendModel(e, n) {
|
|
52584
52583
|
return this.runtime.isTestRuntime && (n === void 0 ? n = { testEnvironment: !0 } : n = { ...n, testEnvironment: !0 }), new Ag(this.runtime, async () => {
|
|
52585
|
-
|
|
52586
|
-
const i = this.runtime.urlReader, s = this.runtime.connections, o = e instanceof URL ? await an.parse({
|
|
52584
|
+
const r = this.runtime.urlReader, i = this.runtime.connections, s = e instanceof URL ? await an.parse({
|
|
52587
52585
|
url: e,
|
|
52588
|
-
urlReader:
|
|
52586
|
+
urlReader: r,
|
|
52589
52587
|
options: n
|
|
52590
52588
|
}) : an.parse({
|
|
52591
52589
|
source: e,
|
|
52592
52590
|
options: n
|
|
52593
|
-
}),
|
|
52591
|
+
}), o = await this.getModel();
|
|
52594
52592
|
return await an.compile({
|
|
52595
|
-
urlReader:
|
|
52596
|
-
connections:
|
|
52597
|
-
parse:
|
|
52598
|
-
model:
|
|
52593
|
+
urlReader: r,
|
|
52594
|
+
connections: i,
|
|
52595
|
+
parse: s,
|
|
52596
|
+
model: o,
|
|
52599
52597
|
refreshSchemaCache: n == null ? void 0 : n.refreshSchemaCache,
|
|
52600
52598
|
noThrowOnError: n == null ? void 0 : n.noThrowOnError,
|
|
52601
|
-
|
|
52599
|
+
...this.prepareResultOptions
|
|
52602
52600
|
});
|
|
52603
52601
|
}, n);
|
|
52604
52602
|
}
|
|
@@ -52720,7 +52718,7 @@ class Ag extends T3 {
|
|
|
52720
52718
|
const r = await this.materialize();
|
|
52721
52719
|
return new cd(e, r._modelDef, r.problems);
|
|
52722
52720
|
}, {
|
|
52723
|
-
|
|
52721
|
+
...this.prepareResultOptions,
|
|
52724
52722
|
...n
|
|
52725
52723
|
});
|
|
52726
52724
|
}
|
|
@@ -52732,9 +52730,7 @@ class Ag extends T3 {
|
|
|
52732
52730
|
* or loading further related objects.
|
|
52733
52731
|
*/
|
|
52734
52732
|
loadExploreByName(e) {
|
|
52735
|
-
return this.makeExploreMaterializer(async () => (await this.materialize()).getExploreByName(e),
|
|
52736
|
-
replaceMaterializedReferences: this.replaceMaterializedReferences
|
|
52737
|
-
});
|
|
52733
|
+
return this.makeExploreMaterializer(async () => (await this.materialize()).getExploreByName(e), this.prepareResultOptions);
|
|
52738
52734
|
}
|
|
52739
52735
|
/**
|
|
52740
52736
|
* Materialize an explore contained within this loaded `Model` by its name.
|
|
@@ -52757,8 +52753,7 @@ class Ag extends T3 {
|
|
|
52757
52753
|
Oe.ModelMaterializer = Ag;
|
|
52758
52754
|
class rK extends T3 {
|
|
52759
52755
|
constructor(e, n, r) {
|
|
52760
|
-
|
|
52761
|
-
super(e, n), this.runtime = e, this.replaceMaterializedReferences = (i = r == null ? void 0 : r.replaceMaterializedReferences) !== null && i !== void 0 ? i : !1;
|
|
52756
|
+
super(e, n), this.runtime = e, this.prepareResultOptions = r;
|
|
52762
52757
|
}
|
|
52763
52758
|
/**
|
|
52764
52759
|
* Run this loaded `Query`.
|
|
@@ -52767,14 +52762,14 @@ class rK extends T3 {
|
|
|
52767
52762
|
*/
|
|
52768
52763
|
async run(e) {
|
|
52769
52764
|
const n = this.runtime.connections, r = await this.getPreparedResult({
|
|
52770
|
-
|
|
52765
|
+
...this.prepareResultOptions,
|
|
52771
52766
|
...e
|
|
52772
52767
|
}), i = ev(r, e);
|
|
52773
52768
|
return an.run({ connections: n, preparedResult: r, options: i });
|
|
52774
52769
|
}
|
|
52775
52770
|
async *runStream(e) {
|
|
52776
52771
|
const n = await this.getPreparedResult({
|
|
52777
|
-
|
|
52772
|
+
...this.prepareResultOptions,
|
|
52778
52773
|
...e
|
|
52779
52774
|
}), r = this.runtime.connections, i = ev(n, e), s = an.runStream({
|
|
52780
52775
|
connections: r,
|
|
@@ -52792,7 +52787,7 @@ class rK extends T3 {
|
|
|
52792
52787
|
*/
|
|
52793
52788
|
loadPreparedResult(e) {
|
|
52794
52789
|
return this.makePreparedResultMaterializer(async () => (await this.materialize()).getPreparedResult({
|
|
52795
|
-
|
|
52790
|
+
...this.prepareResultOptions,
|
|
52796
52791
|
...e
|
|
52797
52792
|
}));
|
|
52798
52793
|
}
|
|
@@ -52803,7 +52798,7 @@ class rK extends T3 {
|
|
|
52803
52798
|
*/
|
|
52804
52799
|
getPreparedResult(e) {
|
|
52805
52800
|
return this.loadPreparedResult({
|
|
52806
|
-
|
|
52801
|
+
...this.prepareResultOptions,
|
|
52807
52802
|
...e
|
|
52808
52803
|
}).getPreparedResult();
|
|
52809
52804
|
}
|
|
@@ -52814,7 +52809,7 @@ class rK extends T3 {
|
|
|
52814
52809
|
*/
|
|
52815
52810
|
async getSQL(e) {
|
|
52816
52811
|
return (await this.getPreparedResult({
|
|
52817
|
-
|
|
52812
|
+
...this.prepareResultOptions,
|
|
52818
52813
|
...e
|
|
52819
52814
|
})).sql;
|
|
52820
52815
|
}
|
|
@@ -52833,7 +52828,7 @@ class rK extends T3 {
|
|
|
52833
52828
|
*/
|
|
52834
52829
|
async estimateQueryCost(e) {
|
|
52835
52830
|
const n = this.runtime.connections, r = await this.getPreparedResult({
|
|
52836
|
-
|
|
52831
|
+
...this.prepareResultOptions,
|
|
52837
52832
|
...e
|
|
52838
52833
|
});
|
|
52839
52834
|
return an.estimateQueryCost({ connections: n, preparedResult: r });
|
|
@@ -53767,9 +53762,9 @@ var EK = { exports: {} };
|
|
|
53767
53762
|
A[v] = v - 56;
|
|
53768
53763
|
for (v = 79; v <= 81; ++v)
|
|
53769
53764
|
A[v] = v - 34;
|
|
53770
|
-
var
|
|
53771
|
-
|
|
53772
|
-
function
|
|
53765
|
+
var S = [];
|
|
53766
|
+
S[5] = S[63] = '"$"#,##0_);\\("$"#,##0\\)', S[6] = S[64] = '"$"#,##0_);[Red]\\("$"#,##0\\)', S[7] = S[65] = '"$"#,##0.00_);\\("$"#,##0.00\\)', S[8] = S[66] = '"$"#,##0.00_);[Red]\\("$"#,##0.00\\)', S[41] = '_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)', S[42] = '_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)', S[43] = '_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)', S[44] = '_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)';
|
|
53767
|
+
function _(T, w, $) {
|
|
53773
53768
|
for (var q = T < 0 ? -1 : 1, I = T * q, z = 0, P = 1, K = 0, xe = 1, oe = 0, Z = 0, fe = Math.floor(I); oe < w && (fe = Math.floor(I), K = fe * P + z, Z = fe * oe + xe, !(I - fe < 5e-8)); )
|
|
53774
53769
|
I = 1 / (I - fe), z = P, P = K, xe = oe, oe = Z;
|
|
53775
53770
|
if (Z > w && (oe > w ? (Z = xe, K = z) : (Z = oe, K = P)), !$)
|
|
@@ -54075,9 +54070,9 @@ var EK = { exports: {} };
|
|
|
54075
54070
|
return V = le(ye, "##########", ue), "(" + V.substr(0, 3) + ") " + V.substr(3, 3) + "-" + V.substr(6);
|
|
54076
54071
|
var nt = "";
|
|
54077
54072
|
if (de = ne.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
54078
|
-
return we = Math.min(de[4].length, 7), qe =
|
|
54073
|
+
return we = Math.min(de[4].length, 7), qe = _(tt, Math.pow(10, we) - 1, !1), V = "" + mt, nt = ee("n", de[1], qe[1]), nt.charAt(nt.length - 1) == " " && (nt = nt.substr(0, nt.length - 1) + "0"), V += nt + de[2] + "/" + de[3], nt = l(qe[2], we), nt.length < de[4].length && (nt = fe(de[4].substr(de[4].length - nt.length)) + nt), V += nt, V;
|
|
54079
54074
|
if (de = ne.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
54080
|
-
return we = Math.min(Math.max(de[1].length, de[4].length), 7), qe =
|
|
54075
|
+
return we = Math.min(Math.max(de[1].length, de[4].length), 7), qe = _(tt, Math.pow(10, we) - 1, !0), mt + (qe[0] || (qe[1] ? "" : "0")) + " " + (qe[1] ? a(qe[1], we) + de[2] + "/" + de[3] + l(qe[2], we) : o(" ", 2 * we + 1 + de[2].length + de[3].length));
|
|
54081
54076
|
if (de = ne.match(/^[#0?]+$/))
|
|
54082
54077
|
return V = h(ue, 0), ne.length <= V.length ? V : fe(ne.substr(0, ne.length - V.length)) + V;
|
|
54083
54078
|
if (de = ne.match(/^([#0?]+)\.([#0]+)$/)) {
|
|
@@ -54176,9 +54171,9 @@ var EK = { exports: {} };
|
|
|
54176
54171
|
return V = Ne(ye, "##########", ue), "(" + V.substr(0, 3) + ") " + V.substr(3, 3) + "-" + V.substr(6);
|
|
54177
54172
|
var nt = "";
|
|
54178
54173
|
if (de = ne.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
54179
|
-
return we = Math.min(de[4].length, 7), qe =
|
|
54174
|
+
return we = Math.min(de[4].length, 7), qe = _(tt, Math.pow(10, we) - 1, !1), V = "" + mt, nt = ee("n", de[1], qe[1]), nt.charAt(nt.length - 1) == " " && (nt = nt.substr(0, nt.length - 1) + "0"), V += nt + de[2] + "/" + de[3], nt = l(qe[2], we), nt.length < de[4].length && (nt = fe(de[4].substr(de[4].length - nt.length)) + nt), V += nt, V;
|
|
54180
54175
|
if (de = ne.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))
|
|
54181
|
-
return we = Math.min(Math.max(de[1].length, de[4].length), 7), qe =
|
|
54176
|
+
return we = Math.min(Math.max(de[1].length, de[4].length), 7), qe = _(tt, Math.pow(10, we) - 1, !0), mt + (qe[0] || (qe[1] ? "" : "0")) + " " + (qe[1] ? a(qe[1], we) + de[2] + "/" + de[3] + l(qe[2], we) : o(" ", 2 * we + 1 + de[2].length + de[3].length));
|
|
54182
54177
|
if (de = ne.match(/^[#0?]+$/))
|
|
54183
54178
|
return V = "" + ue, ne.length <= V.length ? V : fe(ne.substr(0, ne.length - V.length)) + V;
|
|
54184
54179
|
if (de = ne.match(/^([#0]+)\.([#0]+)$/)) {
|
|
@@ -54614,7 +54609,7 @@ var EK = { exports: {} };
|
|
|
54614
54609
|
T == "m/d/yy" && $.dateNF ? q = $.dateNF : q = T;
|
|
54615
54610
|
break;
|
|
54616
54611
|
case "number":
|
|
54617
|
-
T == 14 && $.dateNF ? q = $.dateNF : q = ($.table != null ? $.table : E)[T], q == null && (q = $.table && $.table[A[T]] || E[A[T]]), q == null && (q =
|
|
54612
|
+
T == 14 && $.dateNF ? q = $.dateNF : q = ($.table != null ? $.table : E)[T], q == null && (q = $.table && $.table[A[T]] || E[A[T]]), q == null && (q = S[T] || "General");
|
|
54618
54613
|
break;
|
|
54619
54614
|
}
|
|
54620
54615
|
if (p(q, 0))
|
|
@@ -55735,27 +55730,27 @@ function qOe(t) {
|
|
|
55735
55730
|
return D6;
|
|
55736
55731
|
if (A)
|
|
55737
55732
|
return A = !1, UP;
|
|
55738
|
-
var
|
|
55733
|
+
var _, C = m, b;
|
|
55739
55734
|
if (f.charCodeAt(C) === w6) {
|
|
55740
55735
|
for (; m++ < p && f.charCodeAt(m) !== w6 || f.charCodeAt(++m) === w6; )
|
|
55741
55736
|
;
|
|
55742
|
-
return (
|
|
55737
|
+
return (_ = m) >= p ? E = !0 : (b = f.charCodeAt(m++)) === Mp ? A = !0 : b === N6 && (A = !0, f.charCodeAt(m) === Mp && ++m), f.slice(C + 1, _ - 1).replace(/""/g, '"');
|
|
55743
55738
|
}
|
|
55744
55739
|
for (; m < p; ) {
|
|
55745
|
-
if ((b = f.charCodeAt(
|
|
55740
|
+
if ((b = f.charCodeAt(_ = m++)) === Mp)
|
|
55746
55741
|
A = !0;
|
|
55747
55742
|
else if (b === N6)
|
|
55748
55743
|
A = !0, f.charCodeAt(m) === Mp && ++m;
|
|
55749
55744
|
else if (b !== n)
|
|
55750
55745
|
continue;
|
|
55751
|
-
return f.slice(C,
|
|
55746
|
+
return f.slice(C, _);
|
|
55752
55747
|
}
|
|
55753
55748
|
return E = !0, f.slice(C, p);
|
|
55754
55749
|
}
|
|
55755
55750
|
for (; (y = v()) !== D6; ) {
|
|
55756
|
-
for (var
|
|
55757
|
-
|
|
55758
|
-
x && (
|
|
55751
|
+
for (var S = []; y !== UP && y !== D6; )
|
|
55752
|
+
S.push(y), y = v();
|
|
55753
|
+
x && (S = x(S, g++)) == null || h.push(S);
|
|
55759
55754
|
}
|
|
55760
55755
|
return h;
|
|
55761
55756
|
}
|
|
@@ -56387,18 +56382,18 @@ function _J(t) {
|
|
|
56387
56382
|
var e = t.grouping === void 0 || t.thousands === void 0 ? WP : f7e(VP.call(t.grouping, Number), t.thousands + ""), n = t.currency === void 0 ? "" : t.currency[0] + "", r = t.currency === void 0 ? "" : t.currency[1] + "", i = t.decimal === void 0 ? "." : t.decimal + "", s = t.numerals === void 0 ? WP : x7e(VP.call(t.numerals, String)), o = t.percent === void 0 ? "%" : t.percent + "", u = t.minus === void 0 ? "−" : t.minus + "", a = t.nan === void 0 ? "NaN" : t.nan + "";
|
|
56388
56383
|
function l(f) {
|
|
56389
56384
|
f = Ef(f);
|
|
56390
|
-
var x = f.fill, h = f.align, p = f.sign, m = f.symbol, g = f.zero, y = f.width, E = f.comma, A = f.precision, v = f.trim,
|
|
56391
|
-
|
|
56392
|
-
var
|
|
56393
|
-
A = A === void 0 ? 6 : /[gprs]/.test(
|
|
56385
|
+
var x = f.fill, h = f.align, p = f.sign, m = f.symbol, g = f.zero, y = f.width, E = f.comma, A = f.precision, v = f.trim, S = f.type;
|
|
56386
|
+
S === "n" ? (E = !0, S = "g") : GP[S] || (A === void 0 && (A = 12), v = !0, S = "g"), (g || x === "0" && h === "=") && (g = !0, x = "0", h = "=");
|
|
56387
|
+
var _ = m === "$" ? n : m === "#" && /[boxX]/.test(S) ? "0" + S.toLowerCase() : "", C = m === "$" ? r : /[%p]/.test(S) ? o : "", b = GP[S], R = /[defgprs%]/.test(S);
|
|
56388
|
+
A = A === void 0 ? 6 : /[gprs]/.test(S) ? Math.max(1, Math.min(21, A)) : Math.max(0, Math.min(20, A));
|
|
56394
56389
|
function O(L) {
|
|
56395
|
-
var M =
|
|
56396
|
-
if (
|
|
56390
|
+
var M = _, H = C, G, Q, Y;
|
|
56391
|
+
if (S === "c")
|
|
56397
56392
|
H = b(L) + H, L = "";
|
|
56398
56393
|
else {
|
|
56399
56394
|
L = +L;
|
|
56400
56395
|
var J = L < 0 || 1 / L < 0;
|
|
56401
|
-
if (L = isNaN(L) ? a : b(Math.abs(L), A), v && (L = h7e(L)), J && +L == 0 && p !== "+" && (J = !1), M = (J ? p === "(" ? p : u : p === "-" || p === "(" ? "" : p) + M, H = (
|
|
56396
|
+
if (L = isNaN(L) ? a : b(Math.abs(L), A), v && (L = h7e(L)), J && +L == 0 && p !== "+" && (J = !1), M = (J ? p === "(" ? p : u : p === "-" || p === "(" ? "" : p) + M, H = (S === "s" ? YP[8 + SJ / 3] : "") + H + (J && p === "(" ? ")" : ""), R) {
|
|
56402
56397
|
for (G = -1, Q = L.length; ++G < Q; )
|
|
56403
56398
|
if (Y = L.charCodeAt(G), 48 > Y || Y > 57) {
|
|
56404
56399
|
H = (Y === 46 ? i + L.slice(G + 1) : L.slice(G)) + H, L = L.slice(0, G);
|
|
@@ -56932,7 +56927,7 @@ function MJ(t) {
|
|
|
56932
56927
|
Y: XDe,
|
|
56933
56928
|
Z: JDe,
|
|
56934
56929
|
"%": oj
|
|
56935
|
-
},
|
|
56930
|
+
}, S = {
|
|
56936
56931
|
a: O,
|
|
56937
56932
|
A: L,
|
|
56938
56933
|
b: M,
|
|
@@ -56966,8 +56961,8 @@ function MJ(t) {
|
|
|
56966
56961
|
Z: aDe,
|
|
56967
56962
|
"%": gDe
|
|
56968
56963
|
};
|
|
56969
|
-
A.x =
|
|
56970
|
-
function
|
|
56964
|
+
A.x = _(n, A), A.X = _(r, A), A.c = _(e, A), v.x = _(n, v), v.X = _(r, v), v.c = _(e, v);
|
|
56965
|
+
function _(T, w) {
|
|
56971
56966
|
return function($) {
|
|
56972
56967
|
var q = [], I = -1, z = 0, P = T.length, K, xe, oe;
|
|
56973
56968
|
for ($ instanceof Date || ($ = /* @__PURE__ */ new Date(+$)); ++I < P; )
|
|
@@ -56998,7 +56993,7 @@ function MJ(t) {
|
|
|
56998
56993
|
if (q >= P)
|
|
56999
56994
|
return -1;
|
|
57000
56995
|
if (K = w.charCodeAt(I++), K === 37) {
|
|
57001
|
-
if (K = w.charAt(I++), xe =
|
|
56996
|
+
if (K = w.charAt(I++), xe = S[K in ZP ? w.charAt(I++) : K], !xe || (q = xe(T, $, q)) < 0)
|
|
57002
56997
|
return -1;
|
|
57003
56998
|
} else if (K != $.charCodeAt(q++))
|
|
57004
56999
|
return -1;
|
|
@@ -57072,7 +57067,7 @@ function MJ(t) {
|
|
|
57072
57067
|
}
|
|
57073
57068
|
return {
|
|
57074
57069
|
format: function(T) {
|
|
57075
|
-
var w =
|
|
57070
|
+
var w = _(T += "", A);
|
|
57076
57071
|
return w.toString = function() {
|
|
57077
57072
|
return T;
|
|
57078
57073
|
}, w;
|
|
@@ -57084,7 +57079,7 @@ function MJ(t) {
|
|
|
57084
57079
|
}, w;
|
|
57085
57080
|
},
|
|
57086
57081
|
utcFormat: function(T) {
|
|
57087
|
-
var w =
|
|
57082
|
+
var w = _(T += "", v);
|
|
57088
57083
|
return w.toString = function() {
|
|
57089
57084
|
return T;
|
|
57090
57085
|
}, w;
|
|
@@ -59080,11 +59075,11 @@ function _Z(t, e, n) {
|
|
|
59080
59075
|
let a = 0, l = 0, c = 0, f = 0, x = 0, h, p, m, g;
|
|
59081
59076
|
for (h = 0; h < u; )
|
|
59082
59077
|
p = r[h], m = i[h++], g = p * p, a += (g - a) / h, l += (g * p - l) / h, c += (g * g - c) / h, f += (p * m - f) / h, x += (g * m - x) / h;
|
|
59083
|
-
const y = c - a * a, E = a * y - l * l, A = (x * a - f * l) / E, v = (f * y - x * l) / E,
|
|
59078
|
+
const y = c - a * a, E = a * y - l * l, A = (x * a - f * l) / E, v = (f * y - x * l) / E, S = -A * a, _ = (C) => (C = C - s, A * C * C + v * C + S + o);
|
|
59084
59079
|
return {
|
|
59085
|
-
coef: [
|
|
59086
|
-
predict:
|
|
59087
|
-
rSquared: p2(t, e, n, o,
|
|
59080
|
+
coef: [S - v * s + A * s * s + o, v - 2 * A * s, A],
|
|
59081
|
+
predict: _,
|
|
59082
|
+
rSquared: p2(t, e, n, o, _)
|
|
59088
59083
|
};
|
|
59089
59084
|
}
|
|
59090
59085
|
function _Ne(t, e, n, r) {
|
|
@@ -59154,13 +59149,13 @@ function TNe(t, e, n, r) {
|
|
|
59154
59149
|
const p = [0, l - 1];
|
|
59155
59150
|
for (let g = 0; g < a; ++g) {
|
|
59156
59151
|
const y = i[g], E = p[0], A = p[1], v = y - i[E] > i[A] - y ? E : A;
|
|
59157
|
-
let
|
|
59152
|
+
let S = 0, _ = 0, C = 0, b = 0, R = 0;
|
|
59158
59153
|
const O = 1 / Math.abs(i[v] - y || 1);
|
|
59159
59154
|
for (let H = E; H <= A; ++H) {
|
|
59160
59155
|
const G = i[H], Q = s[H], Y = RNe(Math.abs(y - G) * O) * x[H], J = G * Y;
|
|
59161
|
-
|
|
59156
|
+
S += Y, _ += J, C += Q * Y, b += Q * J, R += G * J;
|
|
59162
59157
|
}
|
|
59163
|
-
const [L, M] = F3(
|
|
59158
|
+
const [L, M] = F3(_ / S, C / S, b / S, R / S);
|
|
59164
59159
|
c[g] = L + M * y, f[g] = Math.abs(s[g] - c[g]), ONe(i, g + 1, p);
|
|
59165
59160
|
}
|
|
59166
59161
|
if (h === Ej)
|
|
@@ -60459,15 +60454,15 @@ function e8e(t) {
|
|
|
60459
60454
|
}
|
|
60460
60455
|
De(yF, pe, {
|
|
60461
60456
|
transform(t, e) {
|
|
60462
|
-
var n = e.fork(e.ALL), r = ZNe(t), i = e8e(t), s = wn(t.field), o = wn(t.key), u = (t.groupby || []).map(wn), a = t8e(e.source, t.groupby, t.key, t.keyvals), l = [], c = this.value, f = a.domain.length, x, h, p, m, g, y, E, A, v,
|
|
60457
|
+
var n = e.fork(e.ALL), r = ZNe(t), i = e8e(t), s = wn(t.field), o = wn(t.key), u = (t.groupby || []).map(wn), a = t8e(e.source, t.groupby, t.key, t.keyvals), l = [], c = this.value, f = a.domain.length, x, h, p, m, g, y, E, A, v, S;
|
|
60463
60458
|
for (g = 0, A = a.length; g < A; ++g)
|
|
60464
60459
|
for (x = a[g], p = x.values, h = NaN, E = 0; E < f; ++E)
|
|
60465
60460
|
if (x[E] == null) {
|
|
60466
|
-
for (m = a.domain[E],
|
|
60461
|
+
for (m = a.domain[E], S = {
|
|
60467
60462
|
_impute: !0
|
|
60468
60463
|
}, y = 0, v = p.length; y < v; ++y)
|
|
60469
|
-
|
|
60470
|
-
|
|
60464
|
+
S[u[y]] = p[y];
|
|
60465
|
+
S[o] = m, S[s] = Number.isNaN(h) ? h = r(x, i) : h, l.push(kt(S));
|
|
60471
60466
|
}
|
|
60472
60467
|
return l.length && (n.add = n.materialize(n.ADD).add.concat(l)), c.length && (n.rem = n.materialize(n.REM).rem.concat(c)), this.value = l, n;
|
|
60473
60468
|
}
|
|
@@ -61474,8 +61469,8 @@ let DF = class {
|
|
|
61474
61469
|
if (!(Math.abs(f * a - l * c) > Sc) || !s)
|
|
61475
61470
|
this._append`L${this._x1 = e},${this._y1 = n}`;
|
|
61476
61471
|
else {
|
|
61477
|
-
let h = r - o, p = i - u, m = a * a + l * l, g = h * h + p * p, y = Math.sqrt(m), E = Math.sqrt(x), A = s * Math.tan((u7 - Math.acos((m + x - g) / (2 * y * E))) / 2), v = A / E,
|
|
61478
|
-
Math.abs(v - 1) > Sc && this._append`L${e + v * c},${n + v * f}`, this._append`A${s},${s},0,0,${+(f * h > c * p)},${this._x1 = e +
|
|
61472
|
+
let h = r - o, p = i - u, m = a * a + l * l, g = h * h + p * p, y = Math.sqrt(m), E = Math.sqrt(x), A = s * Math.tan((u7 - Math.acos((m + x - g) / (2 * y * E))) / 2), v = A / E, S = A / y;
|
|
61473
|
+
Math.abs(v - 1) > Sc && this._append`L${e + v * c},${n + v * f}`, this._append`A${s},${s},0,0,${+(f * h > c * p)},${this._x1 = e + S * a},${this._y1 = n + S * l}`;
|
|
61479
61474
|
}
|
|
61480
61475
|
}
|
|
61481
61476
|
arc(e, n, r, i, s, o) {
|
|
@@ -61532,14 +61527,14 @@ function O8e(t, e, n, r, i, s, o, u) {
|
|
|
61532
61527
|
return x = (c * (e - s) - f * (t - i)) / x, [t + x * a, e + x * l];
|
|
61533
61528
|
}
|
|
61534
61529
|
function Vy(t, e, n, r, i, s, o) {
|
|
61535
|
-
var u = t - n, a = e - r, l = (o ? s : -s) / Ic(u * u + a * a), c = l * a, f = -l * u, x = t + c, h = e + f, p = n + c, m = r + f, g = (x + p) / 2, y = (h + m) / 2, E = p - x, A = m - h, v = E * E + A * A,
|
|
61530
|
+
var u = t - n, a = e - r, l = (o ? s : -s) / Ic(u * u + a * a), c = l * a, f = -l * u, x = t + c, h = e + f, p = n + c, m = r + f, g = (x + p) / 2, y = (h + m) / 2, E = p - x, A = m - h, v = E * E + A * A, S = i - s, _ = x * m - p * h, C = (A < 0 ? -1 : 1) * Ic(E8e(0, S * S * v - _ * _)), b = (_ * A - E * C) / v, R = (-_ * E - A * C) / v, O = (_ * A + E * C) / v, L = (-_ * E + A * C) / v, M = b - g, H = R - y, G = O - g, Q = L - y;
|
|
61536
61531
|
return M * M + H * H > G * G + Q * Q && (b = O, R = L), {
|
|
61537
61532
|
cx: b,
|
|
61538
61533
|
cy: R,
|
|
61539
61534
|
x01: -c,
|
|
61540
61535
|
y01: -f,
|
|
61541
|
-
x11: b * (i /
|
|
61542
|
-
y11: R * (i /
|
|
61536
|
+
x11: b * (i / S - 1),
|
|
61537
|
+
y11: R * (i / S - 1)
|
|
61543
61538
|
};
|
|
61544
61539
|
}
|
|
61545
61540
|
function D8e() {
|
|
@@ -61551,12 +61546,12 @@ function D8e() {
|
|
|
61551
61546
|
else if (g > KZ - Dr)
|
|
61552
61547
|
u.moveTo(h * pc(p), h * zo(p)), u.arc(0, 0, h, p, m, !y), x > Dr && (u.moveTo(x * pc(m), x * zo(m)), u.arc(0, 0, x, m, p, y));
|
|
61553
61548
|
else {
|
|
61554
|
-
var E = p, A = m, v = p,
|
|
61549
|
+
var E = p, A = m, v = p, S = m, _ = g, C = g, b = o.apply(this, arguments) / 2, R = b > Dr && (r ? +r.apply(this, arguments) : Ic(x * x + h * h)), O = q6(_j(h - x) / 2, +n.apply(this, arguments)), L = O, M = O, H, G;
|
|
61555
61550
|
if (R > Dr) {
|
|
61556
61551
|
var Q = Cj(R / x * zo(b)), Y = Cj(R / h * zo(b));
|
|
61557
|
-
(
|
|
61552
|
+
(_ -= Q * 2) > Dr ? (Q *= y ? 1 : -1, v += Q, S -= Q) : (_ = 0, v = S = (p + m) / 2), (C -= Y * 2) > Dr ? (Y *= y ? 1 : -1, E += Y, A -= Y) : (C = 0, E = A = (p + m) / 2);
|
|
61558
61553
|
}
|
|
61559
|
-
var J = h * pc(E), ee = h * zo(E), X = x * pc(
|
|
61554
|
+
var J = h * pc(E), ee = h * zo(E), X = x * pc(S), re = x * zo(S);
|
|
61560
61555
|
if (O > Dr) {
|
|
61561
61556
|
var se = h * pc(A), Ee = h * zo(A), D = x * pc(v), k = x * zo(v), j;
|
|
61562
61557
|
if (g < Xd)
|
|
@@ -61566,7 +61561,7 @@ function D8e() {
|
|
|
61566
61561
|
} else
|
|
61567
61562
|
L = M = 0;
|
|
61568
61563
|
}
|
|
61569
|
-
C > Dr ? M > Dr ? (H = Vy(D, k, J, ee, h, M, y), G = Vy(se, Ee, X, re, h, M, y), u.moveTo(H.cx + H.x01, H.cy + H.y01), M < O ? u.arc(H.cx, H.cy, M, Rr(H.y01, H.x01), Rr(G.y01, G.x01), !y) : (u.arc(H.cx, H.cy, M, Rr(H.y01, H.x01), Rr(H.y11, H.x11), !y), u.arc(0, 0, h, Rr(H.cy + H.y11, H.cx + H.x11), Rr(G.cy + G.y11, G.cx + G.x11), !y), u.arc(G.cx, G.cy, M, Rr(G.y11, G.x11), Rr(G.y01, G.x01), !y))) : (u.moveTo(J, ee), u.arc(0, 0, h, E, A, !y)) : u.moveTo(J, ee), !(x > Dr) || !(
|
|
61564
|
+
C > Dr ? M > Dr ? (H = Vy(D, k, J, ee, h, M, y), G = Vy(se, Ee, X, re, h, M, y), u.moveTo(H.cx + H.x01, H.cy + H.y01), M < O ? u.arc(H.cx, H.cy, M, Rr(H.y01, H.x01), Rr(G.y01, G.x01), !y) : (u.arc(H.cx, H.cy, M, Rr(H.y01, H.x01), Rr(H.y11, H.x11), !y), u.arc(0, 0, h, Rr(H.cy + H.y11, H.cx + H.x11), Rr(G.cy + G.y11, G.cx + G.x11), !y), u.arc(G.cx, G.cy, M, Rr(G.y11, G.x11), Rr(G.y01, G.x01), !y))) : (u.moveTo(J, ee), u.arc(0, 0, h, E, A, !y)) : u.moveTo(J, ee), !(x > Dr) || !(_ > Dr) ? u.lineTo(X, re) : L > Dr ? (H = Vy(X, re, se, Ee, x, -L, y), G = Vy(J, ee, D, k, x, -L, y), u.lineTo(H.cx + H.x01, H.cy + H.y01), L < O ? u.arc(H.cx, H.cy, L, Rr(H.y01, H.x01), Rr(G.y01, G.x01), !y) : (u.arc(H.cx, H.cy, L, Rr(H.y01, H.x01), Rr(H.y11, H.x11), !y), u.arc(0, 0, x, Rr(H.cy + H.y11, H.cx + H.x11), Rr(G.cy + G.y11, G.cx + G.x11), y), u.arc(G.cx, G.cy, L, Rr(G.y11, G.x11), Rr(G.y01, G.x01), !y))) : u.arc(0, 0, x, S, v, y);
|
|
61570
61565
|
}
|
|
61571
61566
|
if (u.closePath(), c)
|
|
61572
61567
|
return u = null, c + "" || null;
|
|
@@ -63126,13 +63121,13 @@ const bFe = function t(e, n, r) {
|
|
|
63126
63121
|
];
|
|
63127
63122
|
};
|
|
63128
63123
|
else {
|
|
63129
|
-
var E = Math.sqrt(m), A = (x * x - l * l + r * m) / (2 * l * n * E), v = (x * x - l * l - r * m) / (2 * x * n * E),
|
|
63130
|
-
y = (
|
|
63131
|
-
var b = C * y, R = Uj(
|
|
63124
|
+
var E = Math.sqrt(m), A = (x * x - l * l + r * m) / (2 * l * n * E), v = (x * x - l * l - r * m) / (2 * x * n * E), S = Math.log(Math.sqrt(A * A + 1) - A), _ = Math.log(Math.sqrt(v * v + 1) - v);
|
|
63125
|
+
y = (_ - S) / e, g = function(C) {
|
|
63126
|
+
var b = C * y, R = Uj(S), O = l / (n * E) * (R * CFe(e * b + S) - _Fe(S));
|
|
63132
63127
|
return [
|
|
63133
63128
|
u + O * h,
|
|
63134
63129
|
a + O * p,
|
|
63135
|
-
l * R / Uj(e * b +
|
|
63130
|
+
l * R / Uj(e * b + S)
|
|
63136
63131
|
];
|
|
63137
63132
|
};
|
|
63138
63133
|
}
|
|
@@ -63587,21 +63582,21 @@ function VFe(t) {
|
|
|
63587
63582
|
}
|
|
63588
63583
|
function GF(t, e, n, r, i, s, o, u, a, l) {
|
|
63589
63584
|
var c = Uee(), f = c.invert, x = c.domain, h = l(".%L"), p = l(":%S"), m = l("%I:%M"), g = l("%I %p"), y = l("%a %d"), E = l("%b %d"), A = l("%B"), v = l("%Y");
|
|
63590
|
-
function _
|
|
63591
|
-
return (a(
|
|
63592
|
-
}
|
|
63593
|
-
return c.invert = function(
|
|
63594
|
-
return new Date(f(
|
|
63595
|
-
}, c.domain = function(
|
|
63596
|
-
return arguments.length ? x(Array.from(
|
|
63597
|
-
}, c.ticks = function(
|
|
63585
|
+
function S(_) {
|
|
63586
|
+
return (a(_) < _ ? h : u(_) < _ ? p : o(_) < _ ? m : s(_) < _ ? g : r(_) < _ ? i(_) < _ ? y : E : n(_) < _ ? A : v)(_);
|
|
63587
|
+
}
|
|
63588
|
+
return c.invert = function(_) {
|
|
63589
|
+
return new Date(f(_));
|
|
63590
|
+
}, c.domain = function(_) {
|
|
63591
|
+
return arguments.length ? x(Array.from(_, VFe)) : x().map(WFe);
|
|
63592
|
+
}, c.ticks = function(_) {
|
|
63598
63593
|
var C = x();
|
|
63599
|
-
return t(C[0], C[C.length - 1],
|
|
63600
|
-
}, c.tickFormat = function(
|
|
63601
|
-
return C == null ?
|
|
63602
|
-
}, c.nice = function(
|
|
63594
|
+
return t(C[0], C[C.length - 1], _ ?? 10);
|
|
63595
|
+
}, c.tickFormat = function(_, C) {
|
|
63596
|
+
return C == null ? S : l(C);
|
|
63597
|
+
}, c.nice = function(_) {
|
|
63603
63598
|
var C = x();
|
|
63604
|
-
return (!
|
|
63599
|
+
return (!_ || typeof _.range != "function") && (_ = e(C[0], C[C.length - 1], _ ?? 10)), _ ? x(Qee(C, _)) : c;
|
|
63605
63600
|
}, c.copy = function() {
|
|
63606
63601
|
return k3(c, GF(t, e, n, r, i, s, o, u, a, l));
|
|
63607
63602
|
}, c;
|
|
@@ -64258,13 +64253,13 @@ function M9e(t, e, n, r, i, s, o, u, a) {
|
|
|
64258
64253
|
const h = x * (u - t) * 0.5 + f * (a - e) * 0.5, p = x * (a - e) * 0.5 - f * (u - t) * 0.5;
|
|
64259
64254
|
let m = h * h / (n * n) + p * p / (r * r);
|
|
64260
64255
|
m > 1 && (m = Math.sqrt(m), n *= m, r *= m);
|
|
64261
|
-
const g = x / n, y = f / n, E = -f / r, A = x / r, v = g * u + y * a,
|
|
64262
|
-
let R = 1 / ((
|
|
64256
|
+
const g = x / n, y = f / n, E = -f / r, A = x / r, v = g * u + y * a, S = E * u + A * a, _ = g * t + y * e, C = E * t + A * e;
|
|
64257
|
+
let R = 1 / ((_ - v) * (_ - v) + (C - S) * (C - S)) - 0.25;
|
|
64263
64258
|
R < 0 && (R = 0);
|
|
64264
64259
|
let O = Math.sqrt(R);
|
|
64265
64260
|
s == i && (O = -O);
|
|
64266
|
-
const L = 0.5 * (v +
|
|
64267
|
-
let Q = Math.atan2(C - M,
|
|
64261
|
+
const L = 0.5 * (v + _) - O * (C - S), M = 0.5 * (S + C) + O * (_ - v), H = Math.atan2(S - M, v - L);
|
|
64262
|
+
let Q = Math.atan2(C - M, _ - L) - H;
|
|
64268
64263
|
Q < 0 && s === 1 ? Q += eu : Q > 0 && s === 0 && (Q -= eu);
|
|
64269
64264
|
const Y = Math.ceil(Math.abs(Q / (Dc + 1e-3))), J = [];
|
|
64270
64265
|
for (let ee = 0; ee < Y; ++ee) {
|
|
@@ -64278,8 +64273,8 @@ function P9e(t) {
|
|
|
64278
64273
|
if (K6[e])
|
|
64279
64274
|
return K6[e];
|
|
64280
64275
|
var n = t[0], r = t[1], i = t[2], s = t[3], o = t[4], u = t[5], a = t[6], l = t[7];
|
|
64281
|
-
const c = l * o, f = -a * u, x = a * o, h = l * u, p = Math.cos(i), m = Math.sin(i), g = Math.cos(s), y = Math.sin(s), E = 0.5 * (s - i), A = Math.sin(E * 0.5), v = 8 / 3 * A * A / Math.sin(E),
|
|
64282
|
-
return K6[e] = [c *
|
|
64276
|
+
const c = l * o, f = -a * u, x = a * o, h = l * u, p = Math.cos(i), m = Math.sin(i), g = Math.cos(s), y = Math.sin(s), E = 0.5 * (s - i), A = Math.sin(E * 0.5), v = 8 / 3 * A * A / Math.sin(E), S = n + p - v * m, _ = r + m + v * p, C = n + g, b = r + y, R = C + v * y, O = b - v * g;
|
|
64277
|
+
return K6[e] = [c * S + f * _, x * S + h * _, c * R + f * O, x * R + h * O, c * C + f * b, x * C + h * b];
|
|
64283
64278
|
}
|
|
64284
64279
|
const Cs = ["l", 0, 0, 0, 0, 0, 0, 0];
|
|
64285
64280
|
function j9e(t, e, n) {
|
|
@@ -64508,12 +64503,12 @@ function Jy(t, e, n) {
|
|
|
64508
64503
|
function W9e() {
|
|
64509
64504
|
var t = z9e, e = H9e, n = Q9e, r = G9e, i = la(0), s = i, o = i, u = i, a = null;
|
|
64510
64505
|
function l(c, f, x) {
|
|
64511
|
-
var h, p = f ?? +t.call(this, c), m = x ?? +e.call(this, c), g = +n.call(this, c), y = +r.call(this, c), E = Math.min(g, y) / 2, A = Jy(+i.call(this, c), 0, E), v = Jy(+s.call(this, c), 0, E),
|
|
64512
|
-
if (a || (a = h = wF()), A <= 0 && v <= 0 &&
|
|
64506
|
+
var h, p = f ?? +t.call(this, c), m = x ?? +e.call(this, c), g = +n.call(this, c), y = +r.call(this, c), E = Math.min(g, y) / 2, A = Jy(+i.call(this, c), 0, E), v = Jy(+s.call(this, c), 0, E), S = Jy(+o.call(this, c), 0, E), _ = Jy(+u.call(this, c), 0, E);
|
|
64507
|
+
if (a || (a = h = wF()), A <= 0 && v <= 0 && S <= 0 && _ <= 0)
|
|
64513
64508
|
a.rect(p, m, g, y);
|
|
64514
64509
|
else {
|
|
64515
64510
|
var C = p + g, b = m + y;
|
|
64516
|
-
a.moveTo(p + A, m), a.lineTo(C - v, m), a.bezierCurveTo(C - _l * v, m, C, m + _l * v, C, m + v), a.lineTo(C, b -
|
|
64511
|
+
a.moveTo(p + A, m), a.lineTo(C - v, m), a.bezierCurveTo(C - _l * v, m, C, m + _l * v, C, m + v), a.lineTo(C, b - _), a.bezierCurveTo(C, b - _l * _, C - _l * _, b, C - _, b), a.lineTo(p + S, b), a.bezierCurveTo(p + _l * S, b, p, b - _l * S, p, b - S), a.lineTo(p, m + A), a.bezierCurveTo(p, m + _l * A, p + _l * A, m, p + A, m), a.closePath();
|
|
64517
64512
|
}
|
|
64518
64513
|
if (h)
|
|
64519
64514
|
return a = null, h + "" || null;
|
|
@@ -66918,19 +66913,19 @@ function wBe(t) {
|
|
|
66918
66913
|
];
|
|
66919
66914
|
}
|
|
66920
66915
|
function NBe(t, e, n, r) {
|
|
66921
|
-
var i = e.items[0], s = i.datum, o = i.translate != null ? i.translate : 0.5, u = i.orient, a = wBe(s), l = i.range, c = i.offset, f = i.position, x = i.minExtent, h = i.maxExtent, p = s.title && i.items[a[2]].items[0], m = i.titlePadding, g = i.bounds, y = p && Ute(p), E = 0, A = 0, v,
|
|
66916
|
+
var i = e.items[0], s = i.datum, o = i.translate != null ? i.translate : 0.5, u = i.orient, a = wBe(s), l = i.range, c = i.offset, f = i.position, x = i.minExtent, h = i.maxExtent, p = s.title && i.items[a[2]].items[0], m = i.titlePadding, g = i.bounds, y = p && Ute(p), E = 0, A = 0, v, S;
|
|
66922
66917
|
switch (wr.clear().union(g), g.clear(), (v = a[0]) > -1 && g.union(i.items[v].bounds), (v = a[1]) > -1 && g.union(i.items[v].bounds), u) {
|
|
66923
66918
|
case ih:
|
|
66924
|
-
E = f || 0, A = -c,
|
|
66919
|
+
E = f || 0, A = -c, S = Math.max(x, Math.min(h, -g.y1)), g.add(0, -S).add(l, 0), p && tE(t, p, S, m, y, 0, -1, g);
|
|
66925
66920
|
break;
|
|
66926
66921
|
case ao:
|
|
66927
|
-
E = -c, A = f || 0,
|
|
66922
|
+
E = -c, A = f || 0, S = Math.max(x, Math.min(h, -g.x1)), g.add(-S, 0).add(0, l), p && tE(t, p, S, m, y, 1, -1, g);
|
|
66928
66923
|
break;
|
|
66929
66924
|
case fo:
|
|
66930
|
-
E = n + c, A = f || 0,
|
|
66925
|
+
E = n + c, A = f || 0, S = Math.max(x, Math.min(h, g.x2)), g.add(0, 0).add(S, l), p && tE(t, p, S, m, y, 1, 1, g);
|
|
66931
66926
|
break;
|
|
66932
66927
|
case A0:
|
|
66933
|
-
E = f || 0, A = r + c,
|
|
66928
|
+
E = f || 0, A = r + c, S = Math.max(x, Math.min(h, g.y2)), g.add(0, 0).add(l, S), p && tE(t, p, S, m, 0, 0, 1, g);
|
|
66934
66929
|
break;
|
|
66935
66930
|
default:
|
|
66936
66931
|
E = i.x, A = i.y;
|
|
@@ -67003,13 +66998,13 @@ function wU(t) {
|
|
|
67003
66998
|
return t < 0 ? Math.ceil(-t) : 0;
|
|
67004
66999
|
}
|
|
67005
67000
|
function Fne(t, e, n) {
|
|
67006
|
-
var r = !n.nodirty, i = n.bounds === I9 ? LBe : IBe, s = wr.set(0, 0, 0, 0), o = sn(n.align, zl), u = sn(n.align, Hl), a = sn(n.padding, zl), l = sn(n.padding, Hl), c = n.columns || e.length, f = c <= 0 ? 1 : Math.ceil(e.length / c), x = e.length, h = Array(x), p = Array(c), m = 0, g = Array(x), y = Array(f), E = 0, A = Array(x), v = Array(x),
|
|
67001
|
+
var r = !n.nodirty, i = n.bounds === I9 ? LBe : IBe, s = wr.set(0, 0, 0, 0), o = sn(n.align, zl), u = sn(n.align, Hl), a = sn(n.padding, zl), l = sn(n.padding, Hl), c = n.columns || e.length, f = c <= 0 ? 1 : Math.ceil(e.length / c), x = e.length, h = Array(x), p = Array(c), m = 0, g = Array(x), y = Array(f), E = 0, A = Array(x), v = Array(x), S = Array(x), _, C, b, R, O, L, M, H, G, Q, Y;
|
|
67007
67002
|
for (C = 0; C < c; ++C)
|
|
67008
67003
|
p[C] = 0;
|
|
67009
67004
|
for (C = 0; C < f; ++C)
|
|
67010
67005
|
y[C] = 0;
|
|
67011
67006
|
for (C = 0; C < x; ++C)
|
|
67012
|
-
L = e[C], O =
|
|
67007
|
+
L = e[C], O = S[C] = i(L), L.x = L.x || 0, A[C] = 0, L.y = L.y || 0, v[C] = 0, b = C % c, R = ~~(C / c), m = Math.max(m, M = Math.ceil(O.x2)), E = Math.max(E, H = Math.ceil(O.y2)), p[b] = Math.max(p[b], M), y[R] = Math.max(y[R], H), h[C] = a + wU(O.x1), g[C] = l + wU(O.y1), r && t.dirty(e[C]);
|
|
67013
67008
|
for (C = 0; C < x; ++C)
|
|
67014
67009
|
C % c === 0 && (h[C] = 0), C < c && (g[C] = 0);
|
|
67015
67010
|
if (o === N7)
|
|
@@ -67030,9 +67025,9 @@ function Fne(t, e, n) {
|
|
|
67030
67025
|
h[C] += p[b - 1];
|
|
67031
67026
|
if (u === N7)
|
|
67032
67027
|
for (R = 1; R < f; ++R) {
|
|
67033
|
-
for (Y = 0, C = R * c,
|
|
67028
|
+
for (Y = 0, C = R * c, _ = C + c; C < _; ++C)
|
|
67034
67029
|
Y < g[C] && (Y = g[C]);
|
|
67035
|
-
for (C = R * c; C <
|
|
67030
|
+
for (C = R * c; C < _; ++C)
|
|
67036
67031
|
g[C] = Y + y[R - 1];
|
|
67037
67032
|
}
|
|
67038
67033
|
else if (u === Zy) {
|
|
@@ -67042,7 +67037,7 @@ function Fne(t, e, n) {
|
|
|
67042
67037
|
g[C] = Y + E;
|
|
67043
67038
|
} else
|
|
67044
67039
|
for (u = !1, R = 1; R < f; ++R)
|
|
67045
|
-
for (C = R * c,
|
|
67040
|
+
for (C = R * c, _ = C + c; C < _; ++C)
|
|
67046
67041
|
g[C] += y[R - 1];
|
|
67047
67042
|
for (G = 0, C = 0; C < x; ++C)
|
|
67048
67043
|
G = h[C] + (C % c ? G : 0), A[C] += G - e[C].x;
|
|
@@ -67051,12 +67046,12 @@ function Fne(t, e, n) {
|
|
|
67051
67046
|
Q += g[C], v[C] += Q - e[C].y;
|
|
67052
67047
|
if (o && sn(n.center, zl) && f > 1)
|
|
67053
67048
|
for (C = 0; C < x; ++C)
|
|
67054
|
-
O = o === Zy ? m : p[C % c], G = O -
|
|
67049
|
+
O = o === Zy ? m : p[C % c], G = O - S[C].x2 - e[C].x - A[C], G > 0 && (A[C] += G / 2);
|
|
67055
67050
|
if (u && sn(n.center, Hl) && c !== 1)
|
|
67056
67051
|
for (C = 0; C < x; ++C)
|
|
67057
|
-
O = u === Zy ? E : y[~~(C / c)], Q = O -
|
|
67052
|
+
O = u === Zy ? E : y[~~(C / c)], Q = O - S[C].y2 - e[C].y - v[C], Q > 0 && (v[C] += Q / 2);
|
|
67058
67053
|
for (C = 0; C < x; ++C)
|
|
67059
|
-
s.union(
|
|
67054
|
+
s.union(S[C].translate(A[C], v[C]));
|
|
67060
67055
|
switch (G = sn(n.anchor, yBe), Q = sn(n.anchor, EBe), sn(n.anchor, zl)) {
|
|
67061
67056
|
case ei:
|
|
67062
67057
|
G -= s.width();
|
|
@@ -67089,7 +67084,7 @@ function kBe(t, e) {
|
|
|
67089
67084
|
return t.bounds[e];
|
|
67090
67085
|
}
|
|
67091
67086
|
function nE(t, e, n, r, i, s, o, u, a, l, c, f, x, h) {
|
|
67092
|
-
var p = n.length, m = 0, g = 0, y, E, A, v,
|
|
67087
|
+
var p = n.length, m = 0, g = 0, y, E, A, v, S, _, C, b, R;
|
|
67093
67088
|
if (!p)
|
|
67094
67089
|
return m;
|
|
67095
67090
|
for (y = c; y < p; y += f)
|
|
@@ -67099,9 +67094,9 @@ function nE(t, e, n, r, i, s, o, u, a, l, c, f, x, h) {
|
|
|
67099
67094
|
for (e.length > i && (t.warn("Grid headers exceed limit: " + i), e = e.slice(0, i)), m += s, E = 0, v = e.length; E < v; ++E)
|
|
67100
67095
|
t.dirty(e[E]), e[E].mark.bounds.clear();
|
|
67101
67096
|
for (y = c, E = 0, v = e.length; E < v; ++E, y += f) {
|
|
67102
|
-
for (
|
|
67097
|
+
for (_ = e[E], S = _.mark.bounds, A = y; A >= 0 && (C = n[A]) == null; A -= x)
|
|
67103
67098
|
;
|
|
67104
|
-
u ? (b = h == null ? C.x : Math.round(C.bounds.x1 + h * C.bounds.width()), R = m) : (b = m, R = h == null ? C.y : Math.round(C.bounds.y1 + h * C.bounds.height())),
|
|
67099
|
+
u ? (b = h == null ? C.x : Math.round(C.bounds.x1 + h * C.bounds.width()), R = m) : (b = m, R = h == null ? C.y : Math.round(C.bounds.y1 + h * C.bounds.height())), S.union(_.bounds.translate(b - (_.x || 0), R - (_.y || 0))), _.x = b, _.y = R, t.dirty(_), g = o(g, S[l]);
|
|
67105
67100
|
}
|
|
67106
67101
|
return g;
|
|
67107
67102
|
}
|
|
@@ -68183,8 +68178,8 @@ function H$e(t, e) {
|
|
|
68183
68178
|
i === 1 ? r = Sn + Je : i === -1 && (r = -Sn - Je);
|
|
68184
68179
|
for (var l = 0, c = t.length; l < c; ++l)
|
|
68185
68180
|
if (x = (f = t[l]).length)
|
|
68186
|
-
for (var f, x, h = f[x - 1], p = sR(h), m = h[1] / 2 + wv, g = Ye(m), y = et(m), E = 0; E < x; ++E, p = v, g =
|
|
68187
|
-
var A = f[E], v = sR(A),
|
|
68181
|
+
for (var f, x, h = f[x - 1], p = sR(h), m = h[1] / 2 + wv, g = Ye(m), y = et(m), E = 0; E < x; ++E, p = v, g = _, y = C, h = A) {
|
|
68182
|
+
var A = f[E], v = sR(A), S = A[1] / 2 + wv, _ = Ye(S), C = et(S), b = v - p, R = b >= 0 ? 1 : -1, O = R * b, L = O > gt, M = g * _;
|
|
68188
68183
|
if (a.add(Gs(M * R * Ye(O), y * C + M * et(O))), o += L ? b + R * yi : b, L ^ p >= n ^ v >= n) {
|
|
68189
68184
|
var H = sh(bf(h), bf(A));
|
|
68190
68185
|
$v(H);
|
|
@@ -68214,11 +68209,11 @@ function lre(t, e, n, r) {
|
|
|
68214
68209
|
i.polygonStart(), i.lineStart(), n(null, null, 1, i), i.lineEnd(), i.polygonEnd();
|
|
68215
68210
|
}
|
|
68216
68211
|
};
|
|
68217
|
-
function h(v,
|
|
68218
|
-
t(v,
|
|
68212
|
+
function h(v, S) {
|
|
68213
|
+
t(v, S) && i.point(v, S);
|
|
68219
68214
|
}
|
|
68220
|
-
function p(v,
|
|
68221
|
-
s.point(v,
|
|
68215
|
+
function p(v, S) {
|
|
68216
|
+
s.point(v, S);
|
|
68222
68217
|
}
|
|
68223
68218
|
function m() {
|
|
68224
68219
|
x.point = p, s.lineStart();
|
|
@@ -68226,25 +68221,25 @@ function lre(t, e, n, r) {
|
|
|
68226
68221
|
function g() {
|
|
68227
68222
|
x.point = h, s.lineEnd();
|
|
68228
68223
|
}
|
|
68229
|
-
function y(v,
|
|
68230
|
-
f.push([v,
|
|
68224
|
+
function y(v, S) {
|
|
68225
|
+
f.push([v, S]), u.point(v, S);
|
|
68231
68226
|
}
|
|
68232
68227
|
function E() {
|
|
68233
68228
|
u.lineStart(), f = [];
|
|
68234
68229
|
}
|
|
68235
68230
|
function A() {
|
|
68236
68231
|
y(f[0][0], f[0][1]), u.lineEnd();
|
|
68237
|
-
var v = u.clean(),
|
|
68232
|
+
var v = u.clean(), S = o.result(), _, C = S.length, b, R, O;
|
|
68238
68233
|
if (f.pop(), l.push(f), f = null, !!C) {
|
|
68239
68234
|
if (v & 1) {
|
|
68240
|
-
if (R =
|
|
68241
|
-
for (a || (i.polygonStart(), a = !0), i.lineStart(),
|
|
68242
|
-
i.point((O = R[
|
|
68235
|
+
if (R = S[0], (b = R.length - 1) > 0) {
|
|
68236
|
+
for (a || (i.polygonStart(), a = !0), i.lineStart(), _ = 0; _ < b; ++_)
|
|
68237
|
+
i.point((O = R[_])[0], O[1]);
|
|
68243
68238
|
i.lineEnd();
|
|
68244
68239
|
}
|
|
68245
68240
|
return;
|
|
68246
68241
|
}
|
|
68247
|
-
C > 1 && v & 2 &&
|
|
68242
|
+
C > 1 && v & 2 && S.push(S.pop().concat(S.shift())), c.push(S.filter(Q$e));
|
|
68248
68243
|
}
|
|
68249
68244
|
}
|
|
68250
68245
|
return x;
|
|
@@ -68311,14 +68306,14 @@ function X$e(t) {
|
|
|
68311
68306
|
p = h = !1, m = 1;
|
|
68312
68307
|
},
|
|
68313
68308
|
point: function(g, y) {
|
|
68314
|
-
var E = [g, y], A, v = o(g, y),
|
|
68309
|
+
var E = [g, y], A, v = o(g, y), S = r ? v ? 0 : l(g, y) : v ? l(g + (g < 0 ? gt : -gt), y) : 0;
|
|
68315
68310
|
if (!f && (p = h = v) && c.lineStart(), v !== h && (A = a(f, E), (!A || KE(f, A) || KE(E, A)) && (E[2] = 1)), v !== h)
|
|
68316
68311
|
m = 0, v ? (c.lineStart(), A = a(E, f), c.point(A[0], A[1])) : (A = a(f, E), c.point(A[0], A[1], 2), c.lineEnd()), f = A;
|
|
68317
68312
|
else if (i && f && r ^ v) {
|
|
68318
|
-
var
|
|
68319
|
-
!(
|
|
68313
|
+
var _;
|
|
68314
|
+
!(S & x) && (_ = a(E, f, !0)) && (m = 0, r ? (c.lineStart(), c.point(_[0][0], _[0][1]), c.point(_[1][0], _[1][1]), c.lineEnd()) : (c.point(_[1][0], _[1][1]), c.lineEnd(), c.lineStart(), c.point(_[0][0], _[0][1], 3)));
|
|
68320
68315
|
}
|
|
68321
|
-
v && (!f || !KE(f, E)) && c.point(E[0], E[1]), f = E, h = v, x =
|
|
68316
|
+
v && (!f || !KE(f, E)) && c.point(E[0], E[1]), f = E, h = v, x = S;
|
|
68322
68317
|
},
|
|
68323
68318
|
lineEnd: function() {
|
|
68324
68319
|
h && c.lineEnd(), f = null;
|
|
@@ -68334,9 +68329,9 @@ function X$e(t) {
|
|
|
68334
68329
|
var h = bf(c), p = bf(f), m = [1, 0, 0], g = sh(h, p), y = iE(g, g), E = g[0], A = y - E * E;
|
|
68335
68330
|
if (!A)
|
|
68336
68331
|
return !x && c;
|
|
68337
|
-
var v = e * y / A,
|
|
68332
|
+
var v = e * y / A, S = -e * E / A, _ = sh(m, g), C = sE(m, v), b = sE(g, S);
|
|
68338
68333
|
iR(C, b);
|
|
68339
|
-
var R =
|
|
68334
|
+
var R = _, O = iE(C, R), L = iE(R, R), M = O * O - L * (iE(C, C) - 1);
|
|
68340
68335
|
if (!(M < 0)) {
|
|
68341
68336
|
var H = Ei(M), G = sE(R, (-O - H) / L);
|
|
68342
68337
|
if (iR(G, C), G = Bv(G), !x)
|
|
@@ -68429,7 +68424,7 @@ function cre(t, e, n, r) {
|
|
|
68429
68424
|
return f !== x ? f - x : f === 0 ? c[1] - l[1] : f === 1 ? l[0] - c[0] : f === 2 ? l[1] - c[1] : c[0] - l[0];
|
|
68430
68425
|
}
|
|
68431
68426
|
return function(l) {
|
|
68432
|
-
var c = l, f = ure(), x, h, p, m, g, y, E, A, v,
|
|
68427
|
+
var c = l, f = ure(), x, h, p, m, g, y, E, A, v, S, _, C = {
|
|
68433
68428
|
point: b,
|
|
68434
68429
|
lineStart: M,
|
|
68435
68430
|
lineEnd: H,
|
|
@@ -68446,27 +68441,27 @@ function cre(t, e, n, r) {
|
|
|
68446
68441
|
return Q;
|
|
68447
68442
|
}
|
|
68448
68443
|
function O() {
|
|
68449
|
-
c = f, x = [], h = [],
|
|
68444
|
+
c = f, x = [], h = [], _ = !0;
|
|
68450
68445
|
}
|
|
68451
68446
|
function L() {
|
|
68452
|
-
var Q = R(), Y =
|
|
68447
|
+
var Q = R(), Y = _ && Q, J = (x = AJ(x)).length;
|
|
68453
68448
|
(Y || J) && (l.polygonStart(), Y && (l.lineStart(), s(null, null, 1, l), l.lineEnd()), J && are(x, u, Q, s, l), l.polygonEnd()), c = l, x = h = p = null;
|
|
68454
68449
|
}
|
|
68455
68450
|
function M() {
|
|
68456
|
-
C.point = G, h && h.push(p = []),
|
|
68451
|
+
C.point = G, h && h.push(p = []), S = !0, v = !1, E = A = NaN;
|
|
68457
68452
|
}
|
|
68458
68453
|
function H() {
|
|
68459
68454
|
x && (G(m, g), y && v && f.rejoin(), x.push(f.result())), C.point = b, v && c.lineEnd();
|
|
68460
68455
|
}
|
|
68461
68456
|
function G(Q, Y) {
|
|
68462
68457
|
var J = i(Q, Y);
|
|
68463
|
-
if (h && p.push([Q, Y]),
|
|
68464
|
-
m = Q, g = Y, y = J,
|
|
68458
|
+
if (h && p.push([Q, Y]), S)
|
|
68459
|
+
m = Q, g = Y, y = J, S = !1, J && (c.lineStart(), c.point(Q, Y));
|
|
68465
68460
|
else if (J && v)
|
|
68466
68461
|
c.point(Q, Y);
|
|
68467
68462
|
else {
|
|
68468
68463
|
var ee = [E = Math.max(uE, Math.min(S1, E)), A = Math.max(uE, Math.min(S1, A))], X = [Q = Math.max(uE, Math.min(S1, Q)), Y = Math.max(uE, Math.min(S1, Y))];
|
|
68469
|
-
K$e(ee, X, t, e, n, r) ? (v || (c.lineStart(), c.point(ee[0], ee[1])), c.point(X[0], X[1]), J || c.lineEnd(),
|
|
68464
|
+
K$e(ee, X, t, e, n, r) ? (v || (c.lineStart(), c.point(ee[0], ee[1])), c.point(X[0], X[1]), J || c.lineEnd(), _ = !1) : J && (c.lineStart(), c.point(Q, Y), _ = !1);
|
|
68470
68465
|
}
|
|
68471
68466
|
E = Q, A = Y, v = J;
|
|
68472
68467
|
}
|
|
@@ -68853,8 +68848,8 @@ function xke(t, e) {
|
|
|
68853
68848
|
function n(r, i, s, o, u, a, l, c, f, x, h, p, m, g) {
|
|
68854
68849
|
var y = l - r, E = c - i, A = y * y + E * E;
|
|
68855
68850
|
if (A > 4 * e && m--) {
|
|
68856
|
-
var v = o + x,
|
|
68857
|
-
(Q * Q / A > e || vt((y * H + E * G) / A - 0.5) > 0.3 || o * x + u * h + a * p < cke) && (n(r, i, s, o, u, a, L, M, R, v /= C,
|
|
68851
|
+
var v = o + x, S = u + h, _ = a + p, C = Ei(v * v + S * S + _ * _), b = ki(_ /= C), R = vt(vt(_) - 1) < Je || vt(s - f) < Je ? (s + f) / 2 : Gs(S, v), O = t(R, b), L = O[0], M = O[1], H = L - r, G = M - i, Q = E * H - y * G;
|
|
68852
|
+
(Q * Q / A > e || vt((y * H + E * G) / A - 0.5) > 0.3 || o * x + u * h + a * p < cke) && (n(r, i, s, o, u, a, L, M, R, v /= C, S /= C, _, m, g), g.point(L, M), n(L, M, R, v, S, _, l, c, f, x, h, p, m, g));
|
|
68858
68853
|
}
|
|
68859
68854
|
}
|
|
68860
68855
|
return function(r) {
|
|
@@ -68863,7 +68858,7 @@ function xke(t, e) {
|
|
|
68863
68858
|
lineStart: E,
|
|
68864
68859
|
lineEnd: v,
|
|
68865
68860
|
polygonStart: function() {
|
|
68866
|
-
r.polygonStart(), g.lineStart =
|
|
68861
|
+
r.polygonStart(), g.lineStart = S;
|
|
68867
68862
|
},
|
|
68868
68863
|
polygonEnd: function() {
|
|
68869
68864
|
r.polygonEnd(), g.lineStart = E;
|
|
@@ -68882,10 +68877,10 @@ function xke(t, e) {
|
|
|
68882
68877
|
function v() {
|
|
68883
68878
|
g.point = y, r.lineEnd();
|
|
68884
68879
|
}
|
|
68885
|
-
function
|
|
68886
|
-
E(), g.point =
|
|
68880
|
+
function S() {
|
|
68881
|
+
E(), g.point = _, g.lineEnd = C;
|
|
68887
68882
|
}
|
|
68888
|
-
function
|
|
68883
|
+
function _(b, R) {
|
|
68889
68884
|
A(i = b, R), s = f, o = x, u = h, a = p, l = m, g.point = A;
|
|
68890
68885
|
}
|
|
68891
68886
|
function C() {
|
|
@@ -68932,7 +68927,7 @@ function Ju(t) {
|
|
|
68932
68927
|
})();
|
|
68933
68928
|
}
|
|
68934
68929
|
function _re(t) {
|
|
68935
|
-
var e, n = 150, r = 480, i = 250, s = 0, o = 0, u = 0, a = 0, l = 0, c, f = 0, x = 1, h = 1, p = null, m = VU, g = null, y, E, A, v = Ig,
|
|
68930
|
+
var e, n = 150, r = 480, i = 250, s = 0, o = 0, u = 0, a = 0, l = 0, c, f = 0, x = 1, h = 1, p = null, m = VU, g = null, y, E, A, v = Ig, S = 0.5, _, C, b, R, O;
|
|
68936
68931
|
function L(Q) {
|
|
68937
68932
|
return b(Q[0] * dt, Q[1] * dt);
|
|
68938
68933
|
}
|
|
@@ -68940,7 +68935,7 @@ function _re(t) {
|
|
|
68940
68935
|
return Q = b.invert(Q[0], Q[1]), Q && [Q[0] * Rn, Q[1] * Rn];
|
|
68941
68936
|
}
|
|
68942
68937
|
L.stream = function(Q) {
|
|
68943
|
-
return R && O === Q ? R : R = dke(hke(c)(m(
|
|
68938
|
+
return R && O === Q ? R : R = dke(hke(c)(m(_(v(O = Q)))));
|
|
68944
68939
|
}, L.preclip = function(Q) {
|
|
68945
68940
|
return arguments.length ? (m = Q, p = void 0, G()) : m;
|
|
68946
68941
|
}, L.postclip = function(Q) {
|
|
@@ -68964,7 +68959,7 @@ function _re(t) {
|
|
|
68964
68959
|
}, L.reflectY = function(Q) {
|
|
68965
68960
|
return arguments.length ? (h = Q ? -1 : 1, H()) : h < 0;
|
|
68966
68961
|
}, L.precision = function(Q) {
|
|
68967
|
-
return arguments.length ? (
|
|
68962
|
+
return arguments.length ? (_ = iq(C, S = Q * Q), G()) : Ei(S);
|
|
68968
68963
|
}, L.fitExtent = function(Q, Y) {
|
|
68969
68964
|
return UC(L, Q, Y);
|
|
68970
68965
|
}, L.fitSize = function(Q, Y) {
|
|
@@ -68976,7 +68971,7 @@ function _re(t) {
|
|
|
68976
68971
|
};
|
|
68977
68972
|
function H() {
|
|
68978
68973
|
var Q = sq(n, 0, 0, x, h, f).apply(null, e(s, o)), Y = sq(n, r - Q[0], i - Q[1], x, h, f);
|
|
68979
|
-
return c = ore(u, a, l), C = q7(e, Y), b = q7(c, C),
|
|
68974
|
+
return c = ore(u, a, l), C = q7(e, Y), b = q7(c, C), _ = iq(C, S), G();
|
|
68980
68975
|
}
|
|
68981
68976
|
function G() {
|
|
68982
68977
|
return R = O = null, L;
|
|
@@ -69219,29 +69214,29 @@ function wke() {
|
|
|
69219
69214
|
}
|
|
69220
69215
|
function Nke() {
|
|
69221
69216
|
var t = 1, e = 0, n = 0, r = 1, i = 1, s = 0, o, u, a = null, l, c, f, x = 1, h = 1, p = jC({
|
|
69222
|
-
point: function(v,
|
|
69223
|
-
var
|
|
69224
|
-
this.stream.point(
|
|
69217
|
+
point: function(v, S) {
|
|
69218
|
+
var _ = A([v, S]);
|
|
69219
|
+
this.stream.point(_[0], _[1]);
|
|
69225
69220
|
}
|
|
69226
69221
|
}), m = Ig, g, y;
|
|
69227
69222
|
function E() {
|
|
69228
69223
|
return x = t * r, h = t * i, g = y = null, A;
|
|
69229
69224
|
}
|
|
69230
69225
|
function A(v) {
|
|
69231
|
-
var
|
|
69226
|
+
var S = v[0] * x, _ = v[1] * h;
|
|
69232
69227
|
if (s) {
|
|
69233
|
-
var C =
|
|
69234
|
-
|
|
69228
|
+
var C = _ * o - S * u;
|
|
69229
|
+
S = S * o + _ * u, _ = C;
|
|
69235
69230
|
}
|
|
69236
|
-
return [
|
|
69231
|
+
return [S + e, _ + n];
|
|
69237
69232
|
}
|
|
69238
69233
|
return A.invert = function(v) {
|
|
69239
|
-
var
|
|
69234
|
+
var S = v[0] - e, _ = v[1] - n;
|
|
69240
69235
|
if (s) {
|
|
69241
|
-
var C =
|
|
69242
|
-
|
|
69236
|
+
var C = _ * o + S * u;
|
|
69237
|
+
S = S * o - _ * u, _ = C;
|
|
69243
69238
|
}
|
|
69244
|
-
return [
|
|
69239
|
+
return [S / x, _ / h];
|
|
69245
69240
|
}, A.stream = function(v) {
|
|
69246
69241
|
return g && y === v ? g : g = p(m(y = v));
|
|
69247
69242
|
}, A.postclip = function(v) {
|
|
@@ -69258,14 +69253,14 @@ function Nke() {
|
|
|
69258
69253
|
return arguments.length ? (r = v ? -1 : 1, E()) : r < 0;
|
|
69259
69254
|
}, A.reflectY = function(v) {
|
|
69260
69255
|
return arguments.length ? (i = v ? -1 : 1, E()) : i < 0;
|
|
69261
|
-
}, A.fitExtent = function(v,
|
|
69262
|
-
return UC(A, v,
|
|
69263
|
-
}, A.fitSize = function(v,
|
|
69264
|
-
return q9(A, v,
|
|
69265
|
-
}, A.fitWidth = function(v,
|
|
69266
|
-
return z9(A, v,
|
|
69267
|
-
}, A.fitHeight = function(v,
|
|
69268
|
-
return H9(A, v,
|
|
69256
|
+
}, A.fitExtent = function(v, S) {
|
|
69257
|
+
return UC(A, v, S);
|
|
69258
|
+
}, A.fitSize = function(v, S) {
|
|
69259
|
+
return q9(A, v, S);
|
|
69260
|
+
}, A.fitWidth = function(v, S) {
|
|
69261
|
+
return z9(A, v, S);
|
|
69262
|
+
}, A.fitHeight = function(v, S) {
|
|
69263
|
+
return H9(A, v, S);
|
|
69269
69264
|
}, A;
|
|
69270
69265
|
}
|
|
69271
69266
|
function Nre(t, e) {
|
|
@@ -69447,19 +69442,19 @@ function Mre() {
|
|
|
69447
69442
|
E = y, y = a[p * t + h + 1] >= l, ca[y << 2 | E << 3].forEach(A);
|
|
69448
69443
|
ca[y << 3].forEach(A);
|
|
69449
69444
|
function A(v) {
|
|
69450
|
-
var
|
|
69451
|
-
(R = x[C]) ? (O = f[b]) ? (delete x[R.end], delete f[O.start], R === O ? (R.ring.push(
|
|
69445
|
+
var S = [v[0][0] + h, v[0][1] + p], _ = [v[1][0] + h, v[1][1] + p], C = o(S), b = o(_), R, O;
|
|
69446
|
+
(R = x[C]) ? (O = f[b]) ? (delete x[R.end], delete f[O.start], R === O ? (R.ring.push(_), c(R.ring)) : f[R.start] = x[O.end] = {
|
|
69452
69447
|
start: R.start,
|
|
69453
69448
|
end: O.end,
|
|
69454
69449
|
ring: R.ring.concat(O.ring)
|
|
69455
|
-
}) : (delete x[R.end], R.ring.push(
|
|
69450
|
+
}) : (delete x[R.end], R.ring.push(_), x[R.end = b] = R) : (R = f[b]) ? (O = x[C]) ? (delete f[R.start], delete x[O.end], R === O ? (R.ring.push(_), c(R.ring)) : f[O.start] = x[R.end] = {
|
|
69456
69451
|
start: O.start,
|
|
69457
69452
|
end: R.end,
|
|
69458
69453
|
ring: O.ring.concat(R.ring)
|
|
69459
|
-
}) : (delete f[R.start], R.ring.unshift(
|
|
69454
|
+
}) : (delete f[R.start], R.ring.unshift(S), f[R.start = C] = R) : f[C] = x[b] = {
|
|
69460
69455
|
start: C,
|
|
69461
69456
|
end: b,
|
|
69462
|
-
ring: [
|
|
69457
|
+
ring: [S, _]
|
|
69463
69458
|
};
|
|
69464
69459
|
}
|
|
69465
69460
|
}
|
|
@@ -69622,11 +69617,11 @@ function Ure() {
|
|
|
69622
69617
|
const c = aq(r[0], a, t) >> o, f = aq(r[1], a, e) >> o, x = c ? c + 2 : 0, h = f ? f + 2 : 0, p = 2 * x + (i >> o), m = 2 * h + (s >> o), g = new Float32Array(p * m), y = new Float32Array(p * m);
|
|
69623
69618
|
let E = g;
|
|
69624
69619
|
a.forEach((v) => {
|
|
69625
|
-
const
|
|
69626
|
-
|
|
69620
|
+
const S = x + (+t(v) >> o), _ = h + (+e(v) >> o);
|
|
69621
|
+
S >= 0 && S < p && _ >= 0 && _ < m && (g[S + _ * p] += +n(v));
|
|
69627
69622
|
}), c > 0 && f > 0 ? (Mx(p, m, g, y, c), Px(p, m, y, g, f), Mx(p, m, g, y, c), Px(p, m, y, g, f), Mx(p, m, g, y, c), Px(p, m, y, g, f)) : c > 0 ? (Mx(p, m, g, y, c), Mx(p, m, y, g, c), Mx(p, m, g, y, c), E = y) : f > 0 && (Px(p, m, g, y, f), Px(p, m, y, g, f), Px(p, m, g, y, f), E = y);
|
|
69628
69623
|
const A = l ? Math.pow(2, -2 * o) : 1 / vJ(E);
|
|
69629
|
-
for (let v = 0,
|
|
69624
|
+
for (let v = 0, S = p * m; v < S; ++v)
|
|
69630
69625
|
E[v] *= A;
|
|
69631
69626
|
return {
|
|
69632
69627
|
values: E,
|
|
@@ -70245,8 +70240,8 @@ function EMe(t, e, n) {
|
|
|
70245
70240
|
} else {
|
|
70246
70241
|
var E = t - +this._x.call(null, h.data), A = e - +this._y.call(null, h.data), v = E * E + A * A;
|
|
70247
70242
|
if (v < n) {
|
|
70248
|
-
var
|
|
70249
|
-
i = t -
|
|
70243
|
+
var S = Math.sqrt(n = v);
|
|
70244
|
+
i = t - S, s = e - S, c = t + S, f = e + S, r = h.data;
|
|
70250
70245
|
}
|
|
70251
70246
|
}
|
|
70252
70247
|
return r;
|
|
@@ -70381,7 +70376,7 @@ function FMe(t) {
|
|
|
70381
70376
|
for (var l, c = e.length, f, x, h, p, m, g, y = 0; y < s; ++y)
|
|
70382
70377
|
for (f = nL(e, wMe, NMe).visitAfter(u), l = 0; l < c; ++l)
|
|
70383
70378
|
x = e[l], m = n[x.index], g = m * m, h = x.x + x.vx, p = x.y + x.vy, f.visit(E);
|
|
70384
|
-
function E(A, v,
|
|
70379
|
+
function E(A, v, S, _, C) {
|
|
70385
70380
|
var b = A.data, R = A.r, O = m + R;
|
|
70386
70381
|
if (b) {
|
|
70387
70382
|
if (b.index > x.index) {
|
|
@@ -70390,7 +70385,7 @@ function FMe(t) {
|
|
|
70390
70385
|
}
|
|
70391
70386
|
return;
|
|
70392
70387
|
}
|
|
70393
|
-
return v > h + O ||
|
|
70388
|
+
return v > h + O || _ < h - O || S > p + O || C < p - O;
|
|
70394
70389
|
}
|
|
70395
70390
|
}
|
|
70396
70391
|
function u(l) {
|
|
@@ -70433,12 +70428,12 @@ function IMe(t) {
|
|
|
70433
70428
|
}
|
|
70434
70429
|
function x(g) {
|
|
70435
70430
|
for (var y = 0, E = t.length; y < c; ++y)
|
|
70436
|
-
for (var A = 0, v,
|
|
70437
|
-
v = t[A],
|
|
70431
|
+
for (var A = 0, v, S, _, C, b, R, O; A < E; ++A)
|
|
70432
|
+
v = t[A], S = v.source, _ = v.target, C = _.x + _.vx - S.x - S.vx || Ql(l), b = _.y + _.vy - S.y - S.vy || Ql(l), R = Math.sqrt(C * C + b * b), R = (R - s[A]) / R * g * r[A], C *= R, b *= R, _.vx -= C * (O = a[A]), _.vy -= b * O, S.vx += C * (O = 1 - O), S.vy += b * O;
|
|
70438
70433
|
}
|
|
70439
70434
|
function h() {
|
|
70440
70435
|
if (o) {
|
|
70441
|
-
var g, y = o.length, E = t.length, A = new Map(o.map((
|
|
70436
|
+
var g, y = o.length, E = t.length, A = new Map(o.map((S, _) => [e(S, _, o), S])), v;
|
|
70442
70437
|
for (g = 0, u = new Array(y); g < E; ++g)
|
|
70443
70438
|
v = t[g], v.index = g, typeof v.source != "object" && (v.source = fq(A, v.source)), typeof v.target != "object" && (v.target = fq(A, v.target)), u[v.source.index] = (u[v.source.index] || 0) + 1, u[v.target.index] = (u[v.target.index] || 0) + 1;
|
|
70444
70439
|
for (g = 0, a = new Array(E); g < E; ++g)
|
|
@@ -70684,9 +70679,9 @@ function XMe(t) {
|
|
|
70684
70679
|
return arguments.length > 1 ? (g == null ? u.delete(m) : u.set(m, p(g)), e) : u.get(m);
|
|
70685
70680
|
},
|
|
70686
70681
|
find: function(m, g, y) {
|
|
70687
|
-
var E = 0, A = t.length, v,
|
|
70682
|
+
var E = 0, A = t.length, v, S, _, C, b;
|
|
70688
70683
|
for (y == null ? y = 1 / 0 : y *= y, E = 0; E < A; ++E)
|
|
70689
|
-
C = t[E], v = m - C.x,
|
|
70684
|
+
C = t[E], v = m - C.x, S = g - C.y, _ = v * v + S * S, _ < y && (b = C, y = _);
|
|
70690
70685
|
return b;
|
|
70691
70686
|
},
|
|
70692
70687
|
on: function(m, g) {
|
|
@@ -71288,9 +71283,9 @@ function w1(t, e) {
|
|
|
71288
71283
|
};
|
|
71289
71284
|
}
|
|
71290
71285
|
function tie(t, e, n) {
|
|
71291
|
-
var r = t.x, i = t.y, s = t.r, o = e.x, u = e.y, a = e.r, l = n.x, c = n.y, f = n.r, x = r - o, h = r - l, p = i - u, m = i - c, g = a - s, y = f - s, E = r * r + i * i - s * s, A = E - o * o - u * u + a * a, v = E - l * l - c * c + f * f,
|
|
71286
|
+
var r = t.x, i = t.y, s = t.r, o = e.x, u = e.y, a = e.r, l = n.x, c = n.y, f = n.r, x = r - o, h = r - l, p = i - u, m = i - c, g = a - s, y = f - s, E = r * r + i * i - s * s, A = E - o * o - u * u + a * a, v = E - l * l - c * c + f * f, S = h * p - x * m, _ = (p * v - m * A) / (S * 2) - r, C = (m * g - p * y) / S, b = (h * A - x * v) / (S * 2) - i, R = (x * y - h * g) / S, O = C * C + R * R - 1, L = 2 * (s + _ * C + b * R), M = _ * _ + b * b - s * s, H = -(Math.abs(O) > 1e-6 ? (L + Math.sqrt(L * L - 4 * O * M)) / (2 * O) : M / L);
|
|
71292
71287
|
return {
|
|
71293
|
-
x: r +
|
|
71288
|
+
x: r + _ + C * H,
|
|
71294
71289
|
y: i + b + R * H,
|
|
71295
71290
|
r: H
|
|
71296
71291
|
};
|
|
@@ -71429,10 +71424,10 @@ function _q() {
|
|
|
71429
71424
|
function r(i) {
|
|
71430
71425
|
var s = Array.from(i), o = t, u = e, a, l, c, f, x, h, p, m, g = /* @__PURE__ */ new Map();
|
|
71431
71426
|
if (n != null) {
|
|
71432
|
-
const y = s.map((v,
|
|
71427
|
+
const y = s.map((v, S) => XPe(n(v, S, i))), E = y.map(Cq), A = new Set(y).add("");
|
|
71433
71428
|
for (const v of E)
|
|
71434
71429
|
A.has(v) || (A.add(v), y.push(v), E.push(Cq(v)), s.push(fR));
|
|
71435
|
-
o = (v,
|
|
71430
|
+
o = (v, S) => y[S], u = (v, S) => E[S];
|
|
71436
71431
|
}
|
|
71437
71432
|
for (c = 0, a = s.length; c < a; ++c)
|
|
71438
71433
|
l = s[c], h = s[c] = new ah(l), (p = o(l, c, i)) != null && (p += "") && (m = h.id = p, g.set(m, g.has(m) ? Sq : h)), (p = u(l, c, i)) != null && (p += "") && (h.parent = p);
|
|
@@ -71582,13 +71577,13 @@ function HC(t, e, n, r, i) {
|
|
|
71582
71577
|
}
|
|
71583
71578
|
var rie = (1 + Math.sqrt(5)) / 2;
|
|
71584
71579
|
function iie(t, e, n, r, i, s) {
|
|
71585
|
-
for (var o = [], u = e.children, a, l, c = 0, f = 0, x = u.length, h, p, m = e.value, g, y, E, A, v,
|
|
71580
|
+
for (var o = [], u = e.children, a, l, c = 0, f = 0, x = u.length, h, p, m = e.value, g, y, E, A, v, S, _; c < x; ) {
|
|
71586
71581
|
h = i - n, p = s - r;
|
|
71587
71582
|
do
|
|
71588
71583
|
g = u[f++].value;
|
|
71589
71584
|
while (!g && f < x);
|
|
71590
|
-
for (y = E = g,
|
|
71591
|
-
if (g += l = u[f].value, l < y && (y = l), l > E && (E = l),
|
|
71585
|
+
for (y = E = g, S = Math.max(p / h, h / p) / (m * t), _ = g * g * S, v = Math.max(E / _, _ / y); f < x; ++f) {
|
|
71586
|
+
if (g += l = u[f].value, l < y && (y = l), l > E && (E = l), _ = g * g * S, A = Math.max(E / _, _ / y), A > v) {
|
|
71592
71587
|
g -= l;
|
|
71593
71588
|
break;
|
|
71594
71589
|
}
|
|
@@ -71648,18 +71643,18 @@ function ije(t, e, n, r, i) {
|
|
|
71648
71643
|
E.x0 = p, E.y0 = m, E.x1 = g, E.y1 = y;
|
|
71649
71644
|
return;
|
|
71650
71645
|
}
|
|
71651
|
-
for (var A = l[f], v = h / 2 + A,
|
|
71652
|
-
var C =
|
|
71653
|
-
l[C] < v ?
|
|
71646
|
+
for (var A = l[f], v = h / 2 + A, S = f + 1, _ = x - 1; S < _; ) {
|
|
71647
|
+
var C = S + _ >>> 1;
|
|
71648
|
+
l[C] < v ? S = C + 1 : _ = C;
|
|
71654
71649
|
}
|
|
71655
|
-
v - l[
|
|
71656
|
-
var b = l[
|
|
71650
|
+
v - l[S - 1] < l[S] - v && f + 1 < S && --S;
|
|
71651
|
+
var b = l[S] - A, R = h - b;
|
|
71657
71652
|
if (g - p > y - m) {
|
|
71658
71653
|
var O = h ? (p * R + g * b) / h : g;
|
|
71659
|
-
c(f,
|
|
71654
|
+
c(f, S, b, p, m, O, y), c(S, x, R, O, m, g, y);
|
|
71660
71655
|
} else {
|
|
71661
71656
|
var L = h ? (m * R + y * b) / h : y;
|
|
71662
|
-
c(f,
|
|
71657
|
+
c(f, S, b, p, m, g, L), c(S, x, R, p, L, g, y);
|
|
71663
71658
|
}
|
|
71664
71659
|
}
|
|
71665
71660
|
}
|
|
@@ -72083,10 +72078,10 @@ function hje(t, e, n, r, i) {
|
|
|
72083
72078
|
const s = t.width, o = t.height, u = r || i, a = Zl(s, o).getContext("2d"), l = Zl(s, o).getContext("2d"), c = u && Zl(s, o).getContext("2d");
|
|
72084
72079
|
n.forEach((b) => tA(a, b, !1)), tA(l, e, !1), u && tA(c, e, !0);
|
|
72085
72080
|
const f = pR(a, s, o), x = pR(l, s, o), h = u && pR(c, s, o), p = t.bitmap(), m = u && t.bitmap();
|
|
72086
|
-
let g, y, E, A, v,
|
|
72081
|
+
let g, y, E, A, v, S, _, C;
|
|
72087
72082
|
for (y = 0; y < o; ++y)
|
|
72088
72083
|
for (g = 0; g < s; ++g)
|
|
72089
|
-
v = y * s + g,
|
|
72084
|
+
v = y * s + g, S = f[v] & hR, C = x[v] & hR, _ = u && h[v] & hR, (S || _ || C) && (E = t(g), A = t(y), !i && (S || C) && p.set(E, A), u && (S || _) && m.set(E, A));
|
|
72090
72085
|
return [p, m];
|
|
72091
72086
|
}
|
|
72092
72087
|
function pR(t, e, n) {
|
|
@@ -72210,17 +72205,17 @@ function Eje(t, e, n, r) {
|
|
|
72210
72205
|
}
|
|
72211
72206
|
return function(l) {
|
|
72212
72207
|
const c = l.datum.datum.items[r].items, f = c.length, x = l.datum.fontSize, h = pu.width(l.datum, l.datum.text);
|
|
72213
|
-
let p = n ? x : 0, m = !1, g = !1, y = 0, E, A, v,
|
|
72208
|
+
let p = n ? x : 0, m = !1, g = !1, y = 0, E, A, v, S, _, C, b, R, O, L, M, H, G, Q, Y, J, ee;
|
|
72214
72209
|
for (let X = 0; X < f; ++X) {
|
|
72215
|
-
for (E = c[X].x, v = c[X].y, A = c[X].x2 === void 0 ? E : c[X].x2,
|
|
72210
|
+
for (E = c[X].x, v = c[X].y, A = c[X].x2 === void 0 ? E : c[X].x2, S = c[X].y2 === void 0 ? v : c[X].y2, E > A && (ee = E, E = A, A = ee), v > S && (ee = v, v = S, S = ee), O = t(E), M = t(A), L = ~~((O + M) / 2), H = t(v), Q = t(S), G = ~~((H + Q) / 2), b = L; b >= O; --b)
|
|
72216
72211
|
for (R = G; R >= H; --R)
|
|
72217
72212
|
J = a(b, R, p, h, x), J && ([l.x, l.y, p, m] = J);
|
|
72218
72213
|
for (b = L; b <= M; ++b)
|
|
72219
72214
|
for (R = G; R <= Q; ++R)
|
|
72220
72215
|
J = a(b, R, p, h, x), J && ([l.x, l.y, p, m] = J);
|
|
72221
|
-
!m && !n && (Y = Math.abs(A - E +
|
|
72216
|
+
!m && !n && (Y = Math.abs(A - E + S - v), _ = (E + A) / 2, C = (v + S) / 2, Y >= y && !iS(_, C, h, x, i, s) && !Gl(t, _, C, x, h, x, o, null) && (y = Y, l.x = _, l.y = C, g = !0));
|
|
72222
72217
|
}
|
|
72223
|
-
return m || g ? (
|
|
72218
|
+
return m || g ? (_ = h / 2, C = x / 2, o.setRange(t(l.x - _), t(l.y - C), t(l.x + _), t(l.y + C)), l.align = "center", l.baseline = "middle", !0) : !1;
|
|
72224
72219
|
};
|
|
72225
72220
|
}
|
|
72226
72221
|
const Aje = [-1, -1, 1, 1], vje = [-1, 1, -1, 1];
|
|
@@ -72228,9 +72223,9 @@ function Sje(t, e, n, r) {
|
|
|
72228
72223
|
const i = t.width, s = t.height, o = e[0], u = e[1], a = t.bitmap();
|
|
72229
72224
|
return function(l) {
|
|
72230
72225
|
const c = l.datum.datum.items[r].items, f = c.length, x = l.datum.fontSize, h = pu.width(l.datum, l.datum.text), p = [];
|
|
72231
|
-
let m = n ? x : 0, g = !1, y = !1, E = 0, A, v,
|
|
72226
|
+
let m = n ? x : 0, g = !1, y = !1, E = 0, A, v, S, _, C, b, R, O, L, M, H, G;
|
|
72232
72227
|
for (let Q = 0; Q < f; ++Q) {
|
|
72233
|
-
for (A = c[Q].x,
|
|
72228
|
+
for (A = c[Q].x, S = c[Q].y, v = c[Q].x2 === void 0 ? A : c[Q].x2, _ = c[Q].y2 === void 0 ? S : c[Q].y2, p.push([t((A + v) / 2), t((S + _) / 2)]); p.length; )
|
|
72234
72229
|
if ([R, O] = p.pop(), !(o.get(R, O) || u.get(R, O) || a.get(R, O))) {
|
|
72235
72230
|
a.set(R, O);
|
|
72236
72231
|
for (let Y = 0; Y < 4; ++Y)
|
|
@@ -72241,7 +72236,7 @@ function Sje(t, e, n, r) {
|
|
|
72241
72236
|
L > m && (l.x = C, l.y = b, m = L, g = !0);
|
|
72242
72237
|
}
|
|
72243
72238
|
}
|
|
72244
|
-
!g && !n && (G = Math.abs(v - A +
|
|
72239
|
+
!g && !n && (G = Math.abs(v - A + _ - S), C = (A + v) / 2, b = (S + _) / 2, G >= E && !iS(C, b, h, x, i, s) && !Gl(t, C, b, x, h, x, o, null) && (E = G, l.x = C, l.y = b, y = !0));
|
|
72245
72240
|
}
|
|
72246
72241
|
return g || y ? (C = h / 2, b = x / 2, o.setRange(t(l.x - C), t(l.y - b), t(l.x + C), t(l.y + b)), l.align = "center", l.baseline = "middle", !0) : !1;
|
|
72247
72242
|
};
|
|
@@ -72253,15 +72248,15 @@ function bje(t, e, n, r) {
|
|
|
72253
72248
|
const c = l.boundary, f = l.datum.fontSize;
|
|
72254
72249
|
if (c[2] < 0 || c[5] < 0 || c[0] > i || c[3] > s)
|
|
72255
72250
|
return !1;
|
|
72256
|
-
let x = l.textWidth ?? 0, h, p, m, g, y, E, A, v,
|
|
72251
|
+
let x = l.textWidth ?? 0, h, p, m, g, y, E, A, v, S, _, C, b, R, O, L;
|
|
72257
72252
|
for (let M = 0; M < a; ++M) {
|
|
72258
|
-
if (h = (n[M] & 3) - 1, p = (n[M] >>> 2 & 3) - 1, m = h === 0 && p === 0 || r[M] < 0, g = h && p ? Math.SQRT1_2 : 1, y = r[M] < 0 ? -1 : 1, E = c[1 + h] + r[M] * h * g, C = c[4 + p] + y * f * p / 2 + r[M] * p * g, v = C - f / 2,
|
|
72259
|
-
if (Rq(b, b, O, L, o, u, E, E, v,
|
|
72253
|
+
if (h = (n[M] & 3) - 1, p = (n[M] >>> 2 & 3) - 1, m = h === 0 && p === 0 || r[M] < 0, g = h && p ? Math.SQRT1_2 : 1, y = r[M] < 0 ? -1 : 1, E = c[1 + h] + r[M] * h * g, C = c[4 + p] + y * f * p / 2 + r[M] * p * g, v = C - f / 2, S = C + f / 2, b = t(E), O = t(v), L = t(S), !x)
|
|
72254
|
+
if (Rq(b, b, O, L, o, u, E, E, v, S, c, m))
|
|
72260
72255
|
x = pu.width(l.datum, l.datum.text);
|
|
72261
72256
|
else
|
|
72262
72257
|
continue;
|
|
72263
|
-
if (
|
|
72264
|
-
return l.x = h ? h * y < 0 ? A : E :
|
|
72258
|
+
if (_ = E + y * x * h / 2, E = _ - x / 2, A = _ + x / 2, b = t(E), R = t(A), Rq(b, R, O, L, o, u, E, A, v, S, c, m))
|
|
72259
|
+
return l.x = h ? h * y < 0 ? A : E : _, l.y = p ? p * y < 0 ? S : v : C, l.align = _je[h * y + 1], l.baseline = Cje[p * y + 1], o.setRange(b, O, R, L), !0;
|
|
72265
72260
|
}
|
|
72266
72261
|
return !1;
|
|
72267
72262
|
};
|
|
@@ -72288,10 +72283,10 @@ function Oje(t, e, n, r, i, s, o, u, a, l, c) {
|
|
|
72288
72283
|
if (!t.length)
|
|
72289
72284
|
return t;
|
|
72290
72285
|
const f = Math.max(r.length, i.length), x = Dje(r, f), h = wje(i, f), p = Nje(t[0].datum), m = p === "group" && t[0].datum.items[a].marktype, g = m === "area", y = Fje(p, m, u, a), E = l === null || l === 1 / 0, A = g && c === "naive";
|
|
72291
|
-
let v = -1,
|
|
72292
|
-
const
|
|
72286
|
+
let v = -1, S = -1;
|
|
72287
|
+
const _ = t.map((O) => {
|
|
72293
72288
|
const L = E ? pu.width(O, O.text) : void 0;
|
|
72294
|
-
return v = Math.max(v, L),
|
|
72289
|
+
return v = Math.max(v, L), S = Math.max(S, O.fontSize), {
|
|
72295
72290
|
datum: O,
|
|
72296
72291
|
opacity: 0,
|
|
72297
72292
|
x: void 0,
|
|
@@ -72302,19 +72297,19 @@ function Oje(t, e, n, r, i, s, o, u, a, l, c) {
|
|
|
72302
72297
|
textWidth: L
|
|
72303
72298
|
};
|
|
72304
72299
|
});
|
|
72305
|
-
l = l === null || l === 1 / 0 ? Math.max(v,
|
|
72300
|
+
l = l === null || l === 1 / 0 ? Math.max(v, S) + Math.max(...r) : l;
|
|
72306
72301
|
const C = mje(e[0], e[1], l);
|
|
72307
72302
|
let b;
|
|
72308
72303
|
if (!A) {
|
|
72309
|
-
n &&
|
|
72304
|
+
n && _.sort((M, H) => n(M.datum, H.datum));
|
|
72310
72305
|
let O = !1;
|
|
72311
72306
|
for (let M = 0; M < h.length && !O; ++M)
|
|
72312
72307
|
O = h[M] === 5 || x[M] < 0;
|
|
72313
72308
|
const L = (p && o || g) && t.map((M) => M.datum);
|
|
72314
|
-
b = s.length || L ? hje(C, L || [], s, O, g) : dje(C, o &&
|
|
72309
|
+
b = s.length || L ? hje(C, L || [], s, O, g) : dje(C, o && _);
|
|
72315
72310
|
}
|
|
72316
72311
|
const R = g ? Rje[c](C, b, o, a) : bje(C, b, h, x);
|
|
72317
|
-
return
|
|
72312
|
+
return _.forEach((O) => O.opacity = +R(O)), _;
|
|
72318
72313
|
}
|
|
72319
72314
|
function Dje(t, e) {
|
|
72320
72315
|
const n = new Float64Array(e), r = t.length;
|
|
@@ -72602,17 +72597,17 @@ function X3(t) {
|
|
|
72602
72597
|
}
|
|
72603
72598
|
const Mje = (3 + 16 * Ia) * Ia, Pje = (2 + 12 * Ia) * Ia, jje = (9 + 64 * Ia) * Ia * Ia, jx = X3(4), Oq = X3(8), Dq = X3(12), wq = X3(16), Kr = X3(4);
|
|
72604
72599
|
function Uje(t, e, n, r, i, s, o) {
|
|
72605
|
-
let u, a, l, c, f, x, h, p, m, g, y, E, A, v,
|
|
72600
|
+
let u, a, l, c, f, x, h, p, m, g, y, E, A, v, S, _, C, b;
|
|
72606
72601
|
const R = t - i, O = n - i, L = e - s, M = r - s;
|
|
72607
|
-
v = R * M, x = Or * R, h = x - (x - R), p = R - h, x = Or * M, m = x - (x - M), g = M - m,
|
|
72602
|
+
v = R * M, x = Or * R, h = x - (x - R), p = R - h, x = Or * M, m = x - (x - M), g = M - m, S = p * g - (v - h * m - p * m - h * g), _ = L * O, x = Or * L, h = x - (x - L), p = L - h, x = Or * O, m = x - (x - O), g = O - m, C = p * g - (_ - h * m - p * m - h * g), y = S - C, f = S - y, jx[0] = S - (y + f) + (f - C), E = v + y, f = E - v, A = v - (E - f) + (y - f), y = A - _, f = A - y, jx[1] = A - (y + f) + (f - _), b = E + y, f = b - E, jx[2] = E - (b - f) + (y - f), jx[3] = b;
|
|
72608
72603
|
let H = kje(4, jx), G = Pje * o;
|
|
72609
72604
|
if (H >= G || -H >= G || (f = t - R, u = t - (R + f) + (f - i), f = n - O, l = n - (O + f) + (f - i), f = e - L, a = e - (L + f) + (f - s), f = r - M, c = r - (M + f) + (f - s), u === 0 && a === 0 && l === 0 && c === 0) || (G = jje * o + $je * Math.abs(H), H += R * c + M * u - (L * l + O * a), H >= G || -H >= G))
|
|
72610
72605
|
return H;
|
|
72611
|
-
v = u * M, x = Or * u, h = x - (x - u), p = u - h, x = Or * M, m = x - (x - M), g = M - m,
|
|
72606
|
+
v = u * M, x = Or * u, h = x - (x - u), p = u - h, x = Or * M, m = x - (x - M), g = M - m, S = p * g - (v - h * m - p * m - h * g), _ = a * O, x = Or * a, h = x - (x - a), p = a - h, x = Or * O, m = x - (x - O), g = O - m, C = p * g - (_ - h * m - p * m - h * g), y = S - C, f = S - y, Kr[0] = S - (y + f) + (f - C), E = v + y, f = E - v, A = v - (E - f) + (y - f), y = A - _, f = A - y, Kr[1] = A - (y + f) + (f - _), b = E + y, f = b - E, Kr[2] = E - (b - f) + (y - f), Kr[3] = b;
|
|
72612
72607
|
const Q = SR(4, jx, 4, Kr, Oq);
|
|
72613
|
-
v = R * c, x = Or * R, h = x - (x - R), p = R - h, x = Or * c, m = x - (x - c), g = c - m,
|
|
72608
|
+
v = R * c, x = Or * R, h = x - (x - R), p = R - h, x = Or * c, m = x - (x - c), g = c - m, S = p * g - (v - h * m - p * m - h * g), _ = L * l, x = Or * L, h = x - (x - L), p = L - h, x = Or * l, m = x - (x - l), g = l - m, C = p * g - (_ - h * m - p * m - h * g), y = S - C, f = S - y, Kr[0] = S - (y + f) + (f - C), E = v + y, f = E - v, A = v - (E - f) + (y - f), y = A - _, f = A - y, Kr[1] = A - (y + f) + (f - _), b = E + y, f = b - E, Kr[2] = E - (b - f) + (y - f), Kr[3] = b;
|
|
72614
72609
|
const Y = SR(Q, Oq, 4, Kr, Dq);
|
|
72615
|
-
v = u * c, x = Or * u, h = x - (x - u), p = u - h, x = Or * c, m = x - (x - c), g = c - m,
|
|
72610
|
+
v = u * c, x = Or * u, h = x - (x - u), p = u - h, x = Or * c, m = x - (x - c), g = c - m, S = p * g - (v - h * m - p * m - h * g), _ = a * l, x = Or * a, h = x - (x - a), p = a - h, x = Or * l, m = x - (x - l), g = l - m, C = p * g - (_ - h * m - p * m - h * g), y = S - C, f = S - y, Kr[0] = S - (y + f) + (f - C), E = v + y, f = E - v, A = v - (E - f) + (y - f), y = A - _, f = A - y, Kr[1] = A - (y + f) + (f - _), b = E + y, f = b - E, Kr[2] = E - (b - f) + (y - f), Kr[3] = b;
|
|
72616
72611
|
const J = SR(Y, Dq, 4, Kr, wq);
|
|
72617
72612
|
return wq[J - 1];
|
|
72618
72613
|
}
|
|
@@ -72662,15 +72657,15 @@ class sS {
|
|
|
72662
72657
|
const L = _R(y, E, e[2 * O], e[2 * O + 1]);
|
|
72663
72658
|
L < h && L > 0 && (m = O, h = L);
|
|
72664
72659
|
}
|
|
72665
|
-
let A = e[2 * m], v = e[2 * m + 1],
|
|
72660
|
+
let A = e[2 * m], v = e[2 * m + 1], S = 1 / 0;
|
|
72666
72661
|
for (let O = 0; O < o; O++) {
|
|
72667
72662
|
if (O === p || O === m)
|
|
72668
72663
|
continue;
|
|
72669
72664
|
const L = Hje(y, E, A, v, e[2 * O], e[2 * O + 1]);
|
|
72670
|
-
L <
|
|
72665
|
+
L < S && (g = O, S = L);
|
|
72671
72666
|
}
|
|
72672
|
-
let
|
|
72673
|
-
if (
|
|
72667
|
+
let _ = e[2 * g], C = e[2 * g + 1];
|
|
72668
|
+
if (S === 1 / 0) {
|
|
72674
72669
|
for (let M = 0; M < o; M++)
|
|
72675
72670
|
this._dists[M] = e[2 * M] - e[0] || e[2 * M + 1] - e[1];
|
|
72676
72671
|
od(this._ids, this._dists, 0, o - 1);
|
|
@@ -72683,17 +72678,17 @@ class sS {
|
|
|
72683
72678
|
this.hull = O.subarray(0, L), this.triangles = new Uint32Array(0), this.halfedges = new Uint32Array(0);
|
|
72684
72679
|
return;
|
|
72685
72680
|
}
|
|
72686
|
-
if (fE(y, E, A, v,
|
|
72681
|
+
if (fE(y, E, A, v, _, C) < 0) {
|
|
72687
72682
|
const O = m, L = A, M = v;
|
|
72688
|
-
m = g, A =
|
|
72683
|
+
m = g, A = _, v = C, g = O, _ = L, C = M;
|
|
72689
72684
|
}
|
|
72690
|
-
const b = Qje(y, E, A, v,
|
|
72685
|
+
const b = Qje(y, E, A, v, _, C);
|
|
72691
72686
|
this._cx = b.x, this._cy = b.y;
|
|
72692
72687
|
for (let O = 0; O < o; O++)
|
|
72693
72688
|
this._dists[O] = _R(e[2 * O], e[2 * O + 1], b.x, b.y);
|
|
72694
72689
|
od(this._ids, this._dists, 0, o - 1), this._hullStart = p;
|
|
72695
72690
|
let R = 3;
|
|
72696
|
-
r[p] = n[g] = m, r[m] = n[p] = g, r[g] = n[m] = p, i[p] = 0, i[m] = 1, i[g] = 2, s.fill(-1), s[this._hashKey(y, E)] = p, s[this._hashKey(A, v)] = m, s[this._hashKey(
|
|
72691
|
+
r[p] = n[g] = m, r[m] = n[p] = g, r[g] = n[m] = p, i[p] = 0, i[m] = 1, i[g] = 2, s.fill(-1), s[this._hashKey(y, E)] = p, s[this._hashKey(A, v)] = m, s[this._hashKey(_, C)] = g, this.trianglesLen = 0, this._addTriangle(p, m, g, -1, -1, -1);
|
|
72697
72692
|
for (let O = 0, L, M; O < this._ids.length; O++) {
|
|
72698
72693
|
const H = this._ids[O], G = e[2 * H], Q = e[2 * H + 1];
|
|
72699
72694
|
if (O > 0 && Math.abs(G - L) <= Nq && Math.abs(Q - M) <= Nq || (L = G, M = Q, H === p || H === m || H === g))
|
|
@@ -72900,7 +72895,7 @@ let Vje = class {
|
|
|
72900
72895
|
let s, o;
|
|
72901
72896
|
const u = this.circumcenters = this._circumcenters.subarray(0, r.length / 3 * 2);
|
|
72902
72897
|
for (let m = 0, g = 0, y = r.length, E, A; m < y; m += 3, g += 2) {
|
|
72903
|
-
const v = r[m] * 2,
|
|
72898
|
+
const v = r[m] * 2, S = r[m + 1] * 2, _ = r[m + 2] * 2, C = e[v], b = e[v + 1], R = e[S], O = e[S + 1], L = e[_], M = e[_ + 1], H = R - C, G = O - b, Q = L - C, Y = M - b, J = (H * Y - G * Q) * 2;
|
|
72904
72899
|
if (Math.abs(J) < 1e-9) {
|
|
72905
72900
|
if (s === void 0) {
|
|
72906
72901
|
s = o = 0;
|
|
@@ -73363,14 +73358,14 @@ var CR = Math.PI / 180, N1 = 64, nA = 2048;
|
|
|
73363
73358
|
function sUe() {
|
|
73364
73359
|
var t = [256, 256], e, n, r, i, s, o, u, a = aie, l = [], c = Math.random, f = {};
|
|
73365
73360
|
f.layout = function() {
|
|
73366
|
-
for (var p = x(Zl()), m = fUe((t[0] >> 5) * t[1]), g = null, y = l.length, E = -1, A = [], v = l.map((
|
|
73367
|
-
text: e(
|
|
73368
|
-
font: n(
|
|
73369
|
-
style: i(
|
|
73370
|
-
weight: s(
|
|
73371
|
-
rotate: o(
|
|
73372
|
-
size: ~~(r(
|
|
73373
|
-
padding: u(
|
|
73361
|
+
for (var p = x(Zl()), m = fUe((t[0] >> 5) * t[1]), g = null, y = l.length, E = -1, A = [], v = l.map((_) => ({
|
|
73362
|
+
text: e(_),
|
|
73363
|
+
font: n(_),
|
|
73364
|
+
style: i(_),
|
|
73365
|
+
weight: s(_),
|
|
73366
|
+
rotate: o(_),
|
|
73367
|
+
size: ~~(r(_) + 1e-14),
|
|
73368
|
+
padding: u(_),
|
|
73374
73369
|
xoff: 0,
|
|
73375
73370
|
yoff: 0,
|
|
73376
73371
|
x1: 0,
|
|
@@ -73379,16 +73374,16 @@ function sUe() {
|
|
|
73379
73374
|
y0: 0,
|
|
73380
73375
|
hasText: !1,
|
|
73381
73376
|
sprite: null,
|
|
73382
|
-
datum:
|
|
73383
|
-
})).sort((
|
|
73384
|
-
var
|
|
73385
|
-
|
|
73386
|
-
x:
|
|
73387
|
-
y:
|
|
73377
|
+
datum: _
|
|
73378
|
+
})).sort((_, C) => C.size - _.size); ++E < y; ) {
|
|
73379
|
+
var S = v[E];
|
|
73380
|
+
S.x = t[0] * (c() + 0.5) >> 1, S.y = t[1] * (c() + 0.5) >> 1, oUe(p, S, v, E), S.hasText && h(m, S, g) && (A.push(S), g ? aUe(g, S) : g = [{
|
|
73381
|
+
x: S.x + S.x0,
|
|
73382
|
+
y: S.y + S.y0
|
|
73388
73383
|
}, {
|
|
73389
|
-
x:
|
|
73390
|
-
y:
|
|
73391
|
-
}],
|
|
73384
|
+
x: S.x + S.x1,
|
|
73385
|
+
y: S.y + S.y1
|
|
73386
|
+
}], S.x -= t[0] >> 1, S.y -= t[1] >> 1);
|
|
73392
73387
|
}
|
|
73393
73388
|
return A;
|
|
73394
73389
|
};
|
|
@@ -73403,7 +73398,7 @@ function sUe() {
|
|
|
73403
73398
|
};
|
|
73404
73399
|
}
|
|
73405
73400
|
function h(p, m, g) {
|
|
73406
|
-
for (var y = m.x, E = m.y, A = Math.sqrt(t[0] * t[0] + t[1] * t[1]), v = a(t),
|
|
73401
|
+
for (var y = m.x, E = m.y, A = Math.sqrt(t[0] * t[0] + t[1] * t[1]), v = a(t), S = c() < 0.5 ? 1 : -1, _ = -S, C, b, R; (C = v(_ += S)) && (b = ~~C[0], R = ~~C[1], !(Math.min(Math.abs(b), Math.abs(R)) >= A)); )
|
|
73407
73402
|
if (m.x = y + b, m.y = E + R, !(m.x + m.x0 < 0 || m.y + m.y0 < 0 || m.x + m.x1 > t[0] || m.y + m.y1 > t[1]) && (!g || !uUe(m, p, t[0])) && (!g || lUe(m, g))) {
|
|
73408
73403
|
for (var O = m.sprite, L = m.width >> 5, M = t[0] >> 5, H = m.x - (L << 4), G = H & 127, Q = 32 - G, Y = m.y1 - m.y0, J = (m.y + m.y0) * M + (H >> 5), ee, X = 0; X < Y; X++) {
|
|
73409
73404
|
ee = 0;
|
|
@@ -73454,22 +73449,22 @@ function oUe(t, e, n, r) {
|
|
|
73454
73449
|
break;
|
|
73455
73450
|
i.translate((o + (c >> 1)) / s, (u + (x >> 1)) / s), e.rotate && i.rotate(e.rotate * CR), i.fillText(e.text, 0, 0), e.padding && (i.lineWidth = 2 * e.padding, i.strokeText(e.text, 0, 0)), i.restore(), e.width = c, e.height = x, e.xoff = o, e.yoff = u, e.x1 = c >> 1, e.y1 = x >> 1, e.x0 = -e.x1, e.y0 = -e.y1, e.hasText = !0, o += c;
|
|
73456
73451
|
}
|
|
73457
|
-
for (var
|
|
73452
|
+
for (var S = i.getImageData(0, 0, (N1 << 5) / s, nA / s).data, _ = []; --r >= 0; )
|
|
73458
73453
|
if (e = n[r], !!e.hasText) {
|
|
73459
73454
|
for (c = e.width, f = c >> 5, x = e.y1 - e.y0, h = 0; h < x * f; h++)
|
|
73460
|
-
|
|
73455
|
+
_[h] = 0;
|
|
73461
73456
|
if (o = e.xoff, o == null)
|
|
73462
73457
|
return;
|
|
73463
73458
|
u = e.yoff;
|
|
73464
73459
|
var C = 0, b = -1;
|
|
73465
73460
|
for (p = 0; p < x; p++) {
|
|
73466
73461
|
for (h = 0; h < c; h++) {
|
|
73467
|
-
var R = f * p + (h >> 5), O =
|
|
73468
|
-
|
|
73462
|
+
var R = f * p + (h >> 5), O = S[(u + p) * (N1 << 5) + (o + h) << 2] ? 1 << 31 - h % 32 : 0;
|
|
73463
|
+
_[R] |= O, C |= O;
|
|
73469
73464
|
}
|
|
73470
73465
|
C ? b = p : (e.y0++, x--, p--, u++);
|
|
73471
73466
|
}
|
|
73472
|
-
e.y1 = e.y0 + b, e.sprite =
|
|
73467
|
+
e.y1 = e.y0 + b, e.sprite = _.slice(0, (e.y1 - e.y0) * f);
|
|
73473
73468
|
}
|
|
73474
73469
|
}
|
|
73475
73470
|
}
|
|
@@ -73789,14 +73784,14 @@ De(AL, pe, {
|
|
|
73789
73784
|
},
|
|
73790
73785
|
reinit(t, e) {
|
|
73791
73786
|
const n = e.materialize().fork(), r = t.fields, i = t.query, s = this._indices, o = this._dims, u = this.value, a = u.curr(), l = u.prev(), c = u.all(), f = n.rem = n.add, x = n.mod, h = i.length, p = {};
|
|
73792
|
-
let m, g, y, E, A, v,
|
|
73787
|
+
let m, g, y, E, A, v, S, _, C;
|
|
73793
73788
|
if (l.set(a), e.rem.length && (A = this.remove(t, e, n)), e.add.length && u.add(e.add), e.mod.length)
|
|
73794
|
-
for (v = {}, E = e.mod,
|
|
73795
|
-
v[E[
|
|
73796
|
-
for (
|
|
73797
|
-
C = r[
|
|
73798
|
-
for (
|
|
73799
|
-
A[
|
|
73789
|
+
for (v = {}, E = e.mod, S = 0, _ = E.length; S < _; ++S)
|
|
73790
|
+
v[E[S]._index] = 1;
|
|
73791
|
+
for (S = 0; S < h; ++S)
|
|
73792
|
+
C = r[S], (!o[S] || t.modified("fields", S) || e.modified(C.fields)) && (y = C.fname, (m = p[y]) || (s[y] = g = Iq(), p[y] = m = g.insert(C, e.source, 0)), o[S] = Lq(g, S, i[S]).onAdd(m, a));
|
|
73793
|
+
for (S = 0, _ = u.data().length; S < _; ++S)
|
|
73794
|
+
A[S] || (l[S] !== a[S] ? f.push(S) : v[S] && a[S] !== c && x.push(S));
|
|
73800
73795
|
return u.mask = (1 << h) - 1, n;
|
|
73801
73796
|
},
|
|
73802
73797
|
eval(t, e) {
|
|
@@ -74871,10 +74866,10 @@ function Vqe(t, e) {
|
|
|
74871
74866
|
}, e));
|
|
74872
74867
|
}
|
|
74873
74868
|
function Yqe(t, e, n, r) {
|
|
74874
|
-
for (var i = this.context.data[t], s = i ? i.values.value : [], o = {}, u = {}, a = {}, l, c, f, x, h, p, m, g, y, E, A = s.length, v = 0,
|
|
74869
|
+
for (var i = this.context.data[t], s = i ? i.values.value : [], o = {}, u = {}, a = {}, l, c, f, x, h, p, m, g, y, E, A = s.length, v = 0, S, _; v < A; ++v)
|
|
74875
74870
|
if (l = s[v], x = l.unit, c = l.fields, f = l.values, c && f) {
|
|
74876
|
-
for (
|
|
74877
|
-
h = c[
|
|
74871
|
+
for (S = 0, _ = c.length; S < _; ++S)
|
|
74872
|
+
h = c[S], m = o[h.field] || (o[h.field] = {}), g = m[x] || (m[x] = []), a[h.field] = y = h.type.charAt(0), E = DR[`${y}_union`], m[x] = E(g, ke(f[S]));
|
|
74878
74873
|
n && (g = u[x] || (u[x] = []), g.push(ke(f).reduce((C, b, R) => (C[c[R].field] = b, C), {})));
|
|
74879
74874
|
} else
|
|
74880
74875
|
h = Jo, p = Ug(l), m = o[h] || (o[h] = {}), g = m[x] || (m[x] = []), g.push(p), n && (g = u[x] || (u[x] = []), g.push({
|
|
@@ -77163,12 +77158,12 @@ function AWe(t, e, n, r, i) {
|
|
|
77163
77158
|
opacity: bt
|
|
77164
77159
|
}
|
|
77165
77160
|
};
|
|
77166
|
-
let
|
|
77167
|
-
t.fill || (
|
|
77168
|
-
fill: s("symbolFillColor",
|
|
77161
|
+
let S = null, _ = null;
|
|
77162
|
+
t.fill || (S = e.symbolBaseFillColor, _ = e.symbolBaseStrokeColor), Ar(g, {
|
|
77163
|
+
fill: s("symbolFillColor", S),
|
|
77169
77164
|
shape: s("symbolType"),
|
|
77170
77165
|
size: s("symbolSize"),
|
|
77171
|
-
stroke: s("symbolStrokeColor",
|
|
77166
|
+
stroke: s("symbolStrokeColor", _),
|
|
77172
77167
|
strokeDash: s("symbolDash"),
|
|
77173
77168
|
strokeDashOffset: s("symbolDashOffset"),
|
|
77174
77169
|
strokeWidth: s("symbolStrokeWidth")
|
|
@@ -77575,8 +77570,8 @@ function sb(t, e) {
|
|
|
77575
77570
|
a = c = e.add(sse(tse(t.encode, t.type, n, t.style, e, {
|
|
77576
77571
|
mod: !1,
|
|
77577
77572
|
pulse: y
|
|
77578
|
-
}))), a.params.parent = e.encode(), t.transform && t.transform.forEach((
|
|
77579
|
-
const C = XL(
|
|
77573
|
+
}))), a.params.parent = e.encode(), t.transform && t.transform.forEach((_) => {
|
|
77574
|
+
const C = XL(_, e), b = C.metadata;
|
|
77580
77575
|
(b.generates || b.changes) && Se("Mark transforms should not generate new data."), b.nomod || (c.params.mod = !0), C.params.pulse = Ve(a), e.add(a = C);
|
|
77581
77576
|
}), t.sort && (a = e.add(kGe({
|
|
77582
77577
|
sort: e.compareRef(t.sort),
|
|
@@ -77596,11 +77591,11 @@ function sb(t, e) {
|
|
|
77596
77591
|
h = Ve(A), r && (p && (u = e.operators, u.pop(), o && u.pop()), e.pushState(E, x || h, g), i ? jWe(t, e, m) : p ? UWe(t, e, m) : e.parse(t), e.popState(), p && (o && u.push(o), u.push(A))), s && (h = qWe(s, h, e));
|
|
77597
77592
|
const v = e.add(use({
|
|
77598
77593
|
pulse: h
|
|
77599
|
-
})),
|
|
77594
|
+
})), S = e.add(vx({
|
|
77600
77595
|
pulse: Ve(v)
|
|
77601
77596
|
}, void 0, e.parent()));
|
|
77602
|
-
t.name != null && (f = t.name, e.addData(f, new Nf(e, l, v,
|
|
77603
|
-
(
|
|
77597
|
+
t.name != null && (f = t.name, e.addData(f, new Nf(e, l, v, S)), t.on && t.on.forEach((_) => {
|
|
77598
|
+
(_.insert || _.remove || _.toggle) && Se("Marks only support modify triggers."), Ase(_, e, f);
|
|
77604
77599
|
}));
|
|
77605
77600
|
}
|
|
77606
77601
|
function qWe(t, e, n) {
|
|
@@ -78139,32 +78134,32 @@ function gVe(t, e, n, r, i, s) {
|
|
|
78139
78134
|
value: "middle"
|
|
78140
78135
|
}), v = BR(a, c, `-(${f})`, f, 0);
|
|
78141
78136
|
p = p && f;
|
|
78142
|
-
const
|
|
78137
|
+
const S = {
|
|
78143
78138
|
opacity: bt,
|
|
78144
78139
|
x: sr(u, y, g),
|
|
78145
78140
|
y: go(u, y, g)
|
|
78146
|
-
},
|
|
78147
|
-
enter:
|
|
78141
|
+
}, _ = {
|
|
78142
|
+
enter: S,
|
|
78148
78143
|
update: m = {
|
|
78149
78144
|
opacity: js,
|
|
78150
78145
|
text: {
|
|
78151
78146
|
field: zL
|
|
78152
78147
|
},
|
|
78153
|
-
x:
|
|
78154
|
-
y:
|
|
78148
|
+
x: S.x,
|
|
78149
|
+
y: S.y,
|
|
78155
78150
|
align: E,
|
|
78156
78151
|
baseline: A
|
|
78157
78152
|
},
|
|
78158
78153
|
exit: {
|
|
78159
78154
|
opacity: bt,
|
|
78160
|
-
x:
|
|
78161
|
-
y:
|
|
78155
|
+
x: S.x,
|
|
78156
|
+
y: S.y
|
|
78162
78157
|
}
|
|
78163
78158
|
};
|
|
78164
|
-
Ar(
|
|
78159
|
+
Ar(_, {
|
|
78165
78160
|
dx: !x && p ? sr(u, v) : null,
|
|
78166
78161
|
dy: !h && p ? go(u, v) : null
|
|
78167
|
-
}), Ar(
|
|
78162
|
+
}), Ar(_, {
|
|
78168
78163
|
angle: o("labelAngle"),
|
|
78169
78164
|
fill: o("labelColor"),
|
|
78170
78165
|
fillOpacity: o("labelOpacity"),
|
|
@@ -78195,7 +78190,7 @@ function gVe(t, e, n, r, i, s) {
|
|
|
78195
78190
|
style: ty,
|
|
78196
78191
|
key: Ps,
|
|
78197
78192
|
from: r,
|
|
78198
|
-
encode:
|
|
78193
|
+
encode: _,
|
|
78199
78194
|
overlap: b
|
|
78200
78195
|
}, n);
|
|
78201
78196
|
}
|
|
@@ -78855,65 +78850,65 @@ var Rse = { exports: {} };
|
|
|
78855
78850
|
typeof h == "object" && (p = h.depth, m = h.prototype, g = h.includeNonEnumerable, h = h.circular);
|
|
78856
78851
|
var y = [], E = [], A = typeof Buffer < "u";
|
|
78857
78852
|
typeof h > "u" && (h = !0), typeof p > "u" && (p = 1 / 0);
|
|
78858
|
-
function v(
|
|
78859
|
-
if (
|
|
78853
|
+
function v(S, _) {
|
|
78854
|
+
if (S === null)
|
|
78860
78855
|
return null;
|
|
78861
|
-
if (
|
|
78862
|
-
return
|
|
78856
|
+
if (_ === 0)
|
|
78857
|
+
return S;
|
|
78863
78858
|
var C, b;
|
|
78864
|
-
if (typeof
|
|
78865
|
-
return
|
|
78866
|
-
if (n(
|
|
78859
|
+
if (typeof S != "object")
|
|
78860
|
+
return S;
|
|
78861
|
+
if (n(S, r))
|
|
78867
78862
|
C = new r();
|
|
78868
|
-
else if (n(
|
|
78863
|
+
else if (n(S, i))
|
|
78869
78864
|
C = new i();
|
|
78870
|
-
else if (n(
|
|
78865
|
+
else if (n(S, s))
|
|
78871
78866
|
C = new s(function(J, ee) {
|
|
78872
|
-
|
|
78873
|
-
J(v(X,
|
|
78867
|
+
S.then(function(X) {
|
|
78868
|
+
J(v(X, _ - 1));
|
|
78874
78869
|
}, function(X) {
|
|
78875
|
-
ee(v(X,
|
|
78870
|
+
ee(v(X, _ - 1));
|
|
78876
78871
|
});
|
|
78877
78872
|
});
|
|
78878
|
-
else if (o.__isArray(
|
|
78873
|
+
else if (o.__isArray(S))
|
|
78879
78874
|
C = [];
|
|
78880
|
-
else if (o.__isRegExp(
|
|
78881
|
-
C = new RegExp(
|
|
78882
|
-
else if (o.__isDate(
|
|
78883
|
-
C = new Date(
|
|
78875
|
+
else if (o.__isRegExp(S))
|
|
78876
|
+
C = new RegExp(S.source, f(S)), S.lastIndex && (C.lastIndex = S.lastIndex);
|
|
78877
|
+
else if (o.__isDate(S))
|
|
78878
|
+
C = new Date(S.getTime());
|
|
78884
78879
|
else {
|
|
78885
|
-
if (A && Buffer.isBuffer(
|
|
78886
|
-
return Buffer.allocUnsafe ? C = Buffer.allocUnsafe(
|
|
78887
|
-
n(
|
|
78880
|
+
if (A && Buffer.isBuffer(S))
|
|
78881
|
+
return Buffer.allocUnsafe ? C = Buffer.allocUnsafe(S.length) : C = new Buffer(S.length), S.copy(C), C;
|
|
78882
|
+
n(S, Error) ? C = Object.create(S) : typeof m > "u" ? (b = Object.getPrototypeOf(S), C = Object.create(b)) : (C = Object.create(m), b = m);
|
|
78888
78883
|
}
|
|
78889
78884
|
if (h) {
|
|
78890
|
-
var R = y.indexOf(
|
|
78885
|
+
var R = y.indexOf(S);
|
|
78891
78886
|
if (R != -1)
|
|
78892
78887
|
return E[R];
|
|
78893
|
-
y.push(
|
|
78888
|
+
y.push(S), E.push(C);
|
|
78894
78889
|
}
|
|
78895
|
-
n(
|
|
78896
|
-
var X = v(ee,
|
|
78890
|
+
n(S, r) && S.forEach(function(J, ee) {
|
|
78891
|
+
var X = v(ee, _ - 1), re = v(J, _ - 1);
|
|
78897
78892
|
C.set(X, re);
|
|
78898
|
-
}), n(
|
|
78899
|
-
var ee = v(J,
|
|
78893
|
+
}), n(S, i) && S.forEach(function(J) {
|
|
78894
|
+
var ee = v(J, _ - 1);
|
|
78900
78895
|
C.add(ee);
|
|
78901
78896
|
});
|
|
78902
|
-
for (var O in
|
|
78897
|
+
for (var O in S) {
|
|
78903
78898
|
var L;
|
|
78904
|
-
b && (L = Object.getOwnPropertyDescriptor(b, O)), !(L && L.set == null) && (C[O] = v(
|
|
78899
|
+
b && (L = Object.getOwnPropertyDescriptor(b, O)), !(L && L.set == null) && (C[O] = v(S[O], _ - 1));
|
|
78905
78900
|
}
|
|
78906
78901
|
if (Object.getOwnPropertySymbols)
|
|
78907
|
-
for (var M = Object.getOwnPropertySymbols(
|
|
78908
|
-
var H = M[O], G = Object.getOwnPropertyDescriptor(
|
|
78909
|
-
G && !G.enumerable && !g || (C[H] = v(
|
|
78902
|
+
for (var M = Object.getOwnPropertySymbols(S), O = 0; O < M.length; O++) {
|
|
78903
|
+
var H = M[O], G = Object.getOwnPropertyDescriptor(S, H);
|
|
78904
|
+
G && !G.enumerable && !g || (C[H] = v(S[H], _ - 1), G.enumerable || Object.defineProperty(C, H, {
|
|
78910
78905
|
enumerable: !1
|
|
78911
78906
|
}));
|
|
78912
78907
|
}
|
|
78913
78908
|
if (g)
|
|
78914
|
-
for (var Q = Object.getOwnPropertyNames(
|
|
78915
|
-
var Y = Q[O], G = Object.getOwnPropertyDescriptor(
|
|
78916
|
-
G && G.enumerable || (C[Y] = v(
|
|
78909
|
+
for (var Q = Object.getOwnPropertyNames(S), O = 0; O < Q.length; O++) {
|
|
78910
|
+
var Y = Q[O], G = Object.getOwnPropertyDescriptor(S, Y);
|
|
78911
|
+
G && G.enumerable || (C[Y] = v(S[Y], _ - 1), Object.defineProperty(C, Y, {
|
|
78917
78912
|
enumerable: !1
|
|
78918
78913
|
}));
|
|
78919
78914
|
}
|
|
@@ -82147,13 +82142,13 @@ function nue(t, { config: e }) {
|
|
|
82147
82142
|
l,
|
|
82148
82143
|
// TODO: https://github.com/vega/vega-lite/issues/6245
|
|
82149
82144
|
e
|
|
82150
|
-
), x = tue(c), { bins: h, timeUnits: p, transform: m, continuousAxisChannelDef: g, continuousAxis: y, groupby: E, aggregate: A, encodingWithoutContinuousAxis: v, ticksOrient:
|
|
82145
|
+
), x = tue(c), { bins: h, timeUnits: p, transform: m, continuousAxisChannelDef: g, continuousAxis: y, groupby: E, aggregate: A, encodingWithoutContinuousAxis: v, ticksOrient: S, boxOrient: _, customTooltipWithoutAggregatedField: C } = tJe(t, c, e), { color: b, size: R } = v, O = fA(v, ["color", "size"]), L = (K) => QI(l, y, g, K, e.boxplot), M = L(O), H = L(v), G = L(Object.assign(Object.assign({}, O), R ? { size: R } : {})), Q = kD([
|
|
82151
82146
|
{ fieldPrefix: x === "min-max" ? "upper_whisker_" : "max_", titlePrefix: "Max" },
|
|
82152
82147
|
{ fieldPrefix: "upper_box_", titlePrefix: "Q3" },
|
|
82153
82148
|
{ fieldPrefix: "mid_box_", titlePrefix: "Median" },
|
|
82154
82149
|
{ fieldPrefix: "lower_box_", titlePrefix: "Q1" },
|
|
82155
82150
|
{ fieldPrefix: x === "min-max" ? "lower_whisker_" : "min_", titlePrefix: "Min" }
|
|
82156
|
-
], g, v), Y = { type: "tick", color: "black", opacity: 1, orient:
|
|
82151
|
+
], g, v), Y = { type: "tick", color: "black", opacity: 1, orient: S, invalid: null, aria: !1 }, J = x === "min-max" ? Q : (
|
|
82157
82152
|
// for tukey / k-IQR, just show upper/lower-whisker
|
|
82158
82153
|
kD([
|
|
82159
82154
|
{ fieldPrefix: "upper_whisker_", titlePrefix: "Upper Whisker" },
|
|
@@ -82190,14 +82185,14 @@ function nue(t, { config: e }) {
|
|
|
82190
82185
|
...x !== "tukey" ? ee : [],
|
|
82191
82186
|
...H({
|
|
82192
82187
|
partName: "box",
|
|
82193
|
-
mark: Object.assign(Object.assign({ type: "bar" }, f ? { size: f } : {}), { orient:
|
|
82188
|
+
mark: Object.assign(Object.assign({ type: "bar" }, f ? { size: f } : {}), { orient: _, invalid: null, ariaRoleDescription: "box" }),
|
|
82194
82189
|
positionPrefix: "lower_box",
|
|
82195
82190
|
endPositionPrefix: "upper_box",
|
|
82196
82191
|
extraEncoding: Q
|
|
82197
82192
|
}),
|
|
82198
82193
|
...G({
|
|
82199
82194
|
partName: "median",
|
|
82200
|
-
mark: Object.assign(Object.assign(Object.assign({ type: "tick", invalid: null }, ze(e.boxplot.median) && e.boxplot.median.color ? { color: e.boxplot.median.color } : {}), f ? { size: f } : {}), { orient:
|
|
82195
|
+
mark: Object.assign(Object.assign(Object.assign({ type: "tick", invalid: null }, ze(e.boxplot.median) && e.boxplot.median.color ? { color: e.boxplot.median.color } : {}), f ? { size: f } : {}), { orient: S, aria: !1 }),
|
|
82201
82196
|
positionPrefix: "mid_box",
|
|
82202
82197
|
extraEncoding: Q
|
|
82203
82198
|
})
|
|
@@ -82308,7 +82303,7 @@ function tJe(t, e, n) {
|
|
|
82308
82303
|
}
|
|
82309
82304
|
], c = t.encoding, f = s;
|
|
82310
82305
|
c[f];
|
|
82311
|
-
const x = fA(c, [typeof f == "symbol" ? f : f + ""]), { customTooltipWithoutAggregatedField: h, filteredEncoding: p } = JKe(x), { bins: m, timeUnits: g, aggregate: y, groupby: E, encoding: A } = Yoe(p, n), v = r === "vertical" ? "horizontal" : "vertical",
|
|
82306
|
+
const x = fA(c, [typeof f == "symbol" ? f : f + ""]), { customTooltipWithoutAggregatedField: h, filteredEncoding: p } = JKe(x), { bins: m, timeUnits: g, aggregate: y, groupby: E, encoding: A } = Yoe(p, n), v = r === "vertical" ? "horizontal" : "vertical", S = r, _ = [
|
|
82312
82307
|
...m,
|
|
82313
82308
|
...g,
|
|
82314
82309
|
{
|
|
@@ -82320,14 +82315,14 @@ function tJe(t, e, n) {
|
|
|
82320
82315
|
return {
|
|
82321
82316
|
bins: m,
|
|
82322
82317
|
timeUnits: g,
|
|
82323
|
-
transform:
|
|
82318
|
+
transform: _,
|
|
82324
82319
|
groupby: E,
|
|
82325
82320
|
aggregate: y,
|
|
82326
82321
|
continuousAxisChannelDef: i,
|
|
82327
82322
|
continuousAxis: s,
|
|
82328
82323
|
encodingWithoutContinuousAxis: A,
|
|
82329
82324
|
ticksOrient: v,
|
|
82330
|
-
boxOrient:
|
|
82325
|
+
boxOrient: S,
|
|
82331
82326
|
customTooltipWithoutAggregatedField: h
|
|
82332
82327
|
};
|
|
82333
82328
|
}
|
|
@@ -82425,15 +82420,15 @@ function sue(t, e, n) {
|
|
|
82425
82420
|
var r;
|
|
82426
82421
|
const { mark: i, encoding: s, params: o, projection: u } = t, a = Gz(t, ["mark", "encoding", "params", "projection"]), l = wu(i) ? i : { type: i };
|
|
82427
82422
|
o && be(eoe(e));
|
|
82428
|
-
const { orient: c, inputType: f } = iJe(t, e), { continuousAxisChannelDef: x, continuousAxisChannelDef2: h, continuousAxisChannelDefError: p, continuousAxisChannelDefError2: m, continuousAxis: g } = Zoe(t, c, e), { errorBarSpecificAggregate: y, postAggregateCalculates: E, tooltipSummary: A, tooltipTitleWithFieldName: v } = aJe(l, x, h, p, m, f, e, n),
|
|
82429
|
-
_
|
|
82423
|
+
const { orient: c, inputType: f } = iJe(t, e), { continuousAxisChannelDef: x, continuousAxisChannelDef2: h, continuousAxisChannelDefError: p, continuousAxisChannelDefError2: m, continuousAxis: g } = Zoe(t, c, e), { errorBarSpecificAggregate: y, postAggregateCalculates: E, tooltipSummary: A, tooltipTitleWithFieldName: v } = aJe(l, x, h, p, m, f, e, n), S = s, _ = g;
|
|
82424
|
+
S[_];
|
|
82430
82425
|
const C = g === "x" ? "x2" : "y2";
|
|
82431
|
-
|
|
82426
|
+
S[C];
|
|
82432
82427
|
const b = g === "x" ? "xError" : "yError";
|
|
82433
|
-
|
|
82428
|
+
S[b];
|
|
82434
82429
|
const R = g === "x" ? "xError2" : "yError2";
|
|
82435
|
-
|
|
82436
|
-
const O = Gz(
|
|
82430
|
+
S[R];
|
|
82431
|
+
const O = Gz(S, [typeof _ == "symbol" ? _ : _ + "", typeof C == "symbol" ? C : C + "", typeof b == "symbol" ? b : b + "", typeof R == "symbol" ? R : R + ""]), { bins: L, timeUnits: M, aggregate: H, groupby: G, encoding: Q } = Yoe(O, n), Y = [...H, ...y], J = f !== "raw" ? [] : G, ee = kD(A, x, Q, v);
|
|
82437
82432
|
return {
|
|
82438
82433
|
transform: [
|
|
82439
82434
|
...(r = a.transform) !== null && r !== void 0 ? r : [],
|
|
@@ -84535,8 +84530,8 @@ function Lue(t, e, n, { reactiveGeom: r } = {}) {
|
|
|
84535
84530
|
if (vr(c)) {
|
|
84536
84531
|
const g = c === "x" ? "x2" : "y2", y = Nu(t[g]);
|
|
84537
84532
|
if (ii(x.bin) && y) {
|
|
84538
|
-
const E = Ie(x, { expr: s }), A = Ie(y, { expr: s }), { format: v, formatType:
|
|
84539
|
-
m = vb(E, A, v,
|
|
84533
|
+
const E = Ie(x, { expr: s }), A = Ie(y, { expr: s }), { format: v, formatType: S } = AS(x);
|
|
84534
|
+
m = vb(E, A, v, S, n), i[g] = !0;
|
|
84540
84535
|
} else if (e && e.fieldChannel === c && e.offset === "normalize") {
|
|
84541
84536
|
const { format: E, formatType: A } = AS(x);
|
|
84542
84537
|
m = II({
|
|
@@ -84882,7 +84877,7 @@ function ZZe(t, e, n) {
|
|
|
84882
84877
|
m = m || {
|
|
84883
84878
|
[c]: JZe(c, h || a, l, s, g)
|
|
84884
84879
|
};
|
|
84885
|
-
const y = (l == null ? void 0 : l.get("type")) !== "band" || !("band" in m[c]) ? "middle" : "top", E = Bue(e, r, s, y), A = E === "xc" || E === "yc", { offset: v, offsetType:
|
|
84880
|
+
const y = (l == null ? void 0 : l.get("type")) !== "band" || !("band" in m[c]) ? "middle" : "top", E = Bue(e, r, s, y), A = E === "xc" || E === "yc", { offset: v, offsetType: S } = Kg({ channel: e, markDef: r, encoding: i, model: n, bandPosition: A ? 0.5 : 0 }), _ = NI({
|
|
84886
84881
|
channel: e,
|
|
84887
84882
|
channelDef: t,
|
|
84888
84883
|
markDef: r,
|
|
@@ -84892,16 +84887,16 @@ function ZZe(t, e, n) {
|
|
|
84892
84887
|
stack: o,
|
|
84893
84888
|
offset: v,
|
|
84894
84889
|
defaultRef: iB({ model: n, defaultPos: "mid", channel: e, scaleName: a, scale: l }),
|
|
84895
|
-
bandPosition: A ?
|
|
84890
|
+
bandPosition: A ? S === "encoding" ? 0 : 0.5 : We(g) ? { signal: `(1-${g})/2` } : T2(g) ? (1 - g.band) / 2 : 0
|
|
84896
84891
|
});
|
|
84897
84892
|
if (c)
|
|
84898
|
-
return Object.assign({ [E]:
|
|
84893
|
+
return Object.assign({ [E]: _ }, m);
|
|
84899
84894
|
{
|
|
84900
84895
|
const C = S0(f), b = m[c], R = v ? Object.assign(Object.assign({}, b), { offset: v }) : b;
|
|
84901
84896
|
return {
|
|
84902
|
-
[E]:
|
|
84897
|
+
[E]: _,
|
|
84903
84898
|
// posRef might be an array that wraps position invalid test
|
|
84904
|
-
[C]: _e(
|
|
84899
|
+
[C]: _e(_) ? [_[0], Object.assign(Object.assign({}, _[1]), { offset: R })] : Object.assign(Object.assign({}, _), { offset: R })
|
|
84905
84900
|
};
|
|
84906
84901
|
}
|
|
84907
84902
|
}
|
|
@@ -84919,35 +84914,35 @@ function r1(t, e, n, r, i) {
|
|
|
84919
84914
|
}
|
|
84920
84915
|
function eet({ fieldDef: t, fieldDef2: e, channel: n, model: r }) {
|
|
84921
84916
|
var i, s, o;
|
|
84922
|
-
const { config: u, markDef: a, encoding: l } = r, c = r.getScaleComponent(n), f = r.scaleName(n), x = c ? c.get("type") : void 0, h = c.get("reverse"), p = $oe({ channel: n, fieldDef: t, markDef: a, config: u, scaleType: x }), m = (i = r.component.axes[n]) === null || i === void 0 ? void 0 : i[0], g = (s = m == null ? void 0 : m.get("translate")) !== null && s !== void 0 ? s : 0.5, y = vr(n) && (o = Mt("binSpacing", a, u)) !== null && o !== void 0 ? o : 0, E = yl(n), A = S0(n), v = S0(E), { offset:
|
|
84917
|
+
const { config: u, markDef: a, encoding: l } = r, c = r.getScaleComponent(n), f = r.scaleName(n), x = c ? c.get("type") : void 0, h = c.get("reverse"), p = $oe({ channel: n, fieldDef: t, markDef: a, config: u, scaleType: x }), m = (i = r.component.axes[n]) === null || i === void 0 ? void 0 : i[0], g = (s = m == null ? void 0 : m.get("translate")) !== null && s !== void 0 ? s : 0.5, y = vr(n) && (o = Mt("binSpacing", a, u)) !== null && o !== void 0 ? o : 0, E = yl(n), A = S0(n), v = S0(E), { offset: S } = Kg({ channel: n, markDef: a, encoding: l, model: r, bandPosition: 0 }), _ = We(p) ? { signal: `(1-${p.signal})/2` } : T2(p) ? (1 - p.band) / 2 : 0.5;
|
|
84923
84918
|
if (Xt(t.bin) || t.timeUnit)
|
|
84924
84919
|
return {
|
|
84925
84920
|
[v]: lH({
|
|
84926
84921
|
fieldDef: t,
|
|
84927
84922
|
scaleName: f,
|
|
84928
|
-
bandPosition:
|
|
84929
|
-
offset: r1(E, y, h, g,
|
|
84923
|
+
bandPosition: _,
|
|
84924
|
+
offset: r1(E, y, h, g, S)
|
|
84930
84925
|
}),
|
|
84931
84926
|
[A]: lH({
|
|
84932
84927
|
fieldDef: t,
|
|
84933
84928
|
scaleName: f,
|
|
84934
|
-
bandPosition: We(
|
|
84935
|
-
offset: r1(n, y, h, g,
|
|
84929
|
+
bandPosition: We(_) ? { signal: `1-${_.signal}` } : 1 - _,
|
|
84930
|
+
offset: r1(n, y, h, g, S)
|
|
84936
84931
|
})
|
|
84937
84932
|
};
|
|
84938
84933
|
if (ii(t.bin)) {
|
|
84939
|
-
const C = Kc(t, f, {}, { offset: r1(E, y, h, g,
|
|
84934
|
+
const C = Kc(t, f, {}, { offset: r1(E, y, h, g, S) });
|
|
84940
84935
|
if (Le(e))
|
|
84941
84936
|
return {
|
|
84942
84937
|
[v]: C,
|
|
84943
|
-
[A]: Kc(e, f, {}, { offset: r1(n, y, h, g,
|
|
84938
|
+
[A]: Kc(e, f, {}, { offset: r1(n, y, h, g, S) })
|
|
84944
84939
|
};
|
|
84945
84940
|
if (bx(t.bin) && t.bin.step)
|
|
84946
84941
|
return {
|
|
84947
84942
|
[v]: C,
|
|
84948
84943
|
[A]: {
|
|
84949
84944
|
signal: `scale("${f}", ${Ie(t, { expr: "datum" })} + ${t.bin.step})`,
|
|
84950
|
-
offset: r1(n, y, h, g,
|
|
84945
|
+
offset: r1(n, y, h, g, S)
|
|
84951
84946
|
}
|
|
84952
84947
|
};
|
|
84953
84948
|
}
|
|
@@ -85208,10 +85203,10 @@ const Uue = "_translate_anchor", que = "_translate_delta", uet = {
|
|
|
85208
85203
|
};
|
|
85209
85204
|
function xH(t, e, n, r, i) {
|
|
85210
85205
|
var s, o;
|
|
85211
|
-
const u = e.name, a = u + Uue, l = u + que, c = n.channel, f = C0.defined(e), x = i.filter((C) => C.name === n.signals[f ? "data" : "visual"])[0], h = t.getSizeSignalRef(r).signal, p = t.getScaleComponent(c), m = p.get("type"), g = p.get("reverse"), y = f ? c === mn ? g ? "" : "-" : g ? "-" : "" : "", E = `${a}.extent_${c}`, A = `${y}${l}.${c} / ${f ? `${h}` : `span(${E})`}`, v = f ? m === "log" ? "panLog" : m === "symlog" ? "panSymlog" : m === "pow" ? "panPow" : "panLinear" : "panLinear",
|
|
85206
|
+
const u = e.name, a = u + Uue, l = u + que, c = n.channel, f = C0.defined(e), x = i.filter((C) => C.name === n.signals[f ? "data" : "visual"])[0], h = t.getSizeSignalRef(r).signal, p = t.getScaleComponent(c), m = p.get("type"), g = p.get("reverse"), y = f ? c === mn ? g ? "" : "-" : g ? "-" : "" : "", E = `${a}.extent_${c}`, A = `${y}${l}.${c} / ${f ? `${h}` : `span(${E})`}`, v = f ? m === "log" ? "panLog" : m === "symlog" ? "panSymlog" : m === "pow" ? "panPow" : "panLinear" : "panLinear", S = f ? m === "pow" ? `, ${(s = p.get("exponent")) !== null && s !== void 0 ? s : 1}` : m === "symlog" ? `, ${(o = p.get("constant")) !== null && o !== void 0 ? o : 1}` : "" : "", _ = `${v}(${E}, ${A}${S})`;
|
|
85212
85207
|
x.on.push({
|
|
85213
85208
|
events: { signal: l },
|
|
85214
|
-
update: f ?
|
|
85209
|
+
update: f ? _ : `clampRange(${_}, 0, ${h})`
|
|
85215
85210
|
});
|
|
85216
85211
|
}
|
|
85217
85212
|
const zue = "_zoom_anchor", Hue = "_zoom_delta", aet = {
|
|
@@ -85410,22 +85405,22 @@ function L1(t, e, n, r = { header: !1 }) {
|
|
|
85410
85405
|
else if (xy(g)) {
|
|
85411
85406
|
const { condition: y } = g, E = AE(g, ["condition"]), A = ke(y), v = Hz[p];
|
|
85412
85407
|
if (v) {
|
|
85413
|
-
const { vgProp:
|
|
85408
|
+
const { vgProp: S, part: _ } = v, C = [
|
|
85414
85409
|
...A.map((b) => {
|
|
85415
85410
|
const { test: R } = b, O = AE(b, ["test"]);
|
|
85416
85411
|
return Object.assign({ test: RS(null, R) }, O);
|
|
85417
85412
|
}),
|
|
85418
85413
|
E
|
|
85419
85414
|
];
|
|
85420
|
-
qR(h,
|
|
85415
|
+
qR(h, _, S, C), delete h[p];
|
|
85421
85416
|
} else if (v === null) {
|
|
85422
|
-
const
|
|
85423
|
-
signal: A.map((
|
|
85424
|
-
const { test: C } =
|
|
85417
|
+
const S = {
|
|
85418
|
+
signal: A.map((_) => {
|
|
85419
|
+
const { test: C } = _, b = AE(_, ["test"]);
|
|
85425
85420
|
return `${RS(null, C)} ? ${Dz(b)} : `;
|
|
85426
85421
|
}).join("") + Dz(E)
|
|
85427
85422
|
};
|
|
85428
|
-
h[p] =
|
|
85423
|
+
h[p] = S;
|
|
85429
85424
|
}
|
|
85430
85425
|
} else if (We(g)) {
|
|
85431
85426
|
const y = Hz[p];
|
|
@@ -86009,12 +86004,12 @@ function ket(t, { fieldOrDatumDef: e, model: n, channel: r, legendCmpt: i, legen
|
|
|
86009
86004
|
return;
|
|
86010
86005
|
const { markDef: p, encoding: m, config: g, mark: y } = n, E = p.filled && y !== "trail";
|
|
86011
86006
|
let A = Object.assign(Object.assign({}, AYe({}, n, dKe)), Iue(n, { filled: E }));
|
|
86012
|
-
const v = (o = i.get("symbolOpacity")) !== null && o !== void 0 ? o : g.legend.symbolOpacity,
|
|
86007
|
+
const v = (o = i.get("symbolOpacity")) !== null && o !== void 0 ? o : g.legend.symbolOpacity, S = (u = i.get("symbolFillColor")) !== null && u !== void 0 ? u : g.legend.symbolFillColor, _ = (a = i.get("symbolStrokeColor")) !== null && a !== void 0 ? a : g.legend.symbolStrokeColor, C = v === void 0 ? (l = lae(m.opacity)) !== null && l !== void 0 ? l : p.opacity : void 0;
|
|
86013
86008
|
if (A.fill) {
|
|
86014
86009
|
if (r === "fill" || E && r === Mi)
|
|
86015
86010
|
delete A.fill;
|
|
86016
86011
|
else if (A.fill.field)
|
|
86017
|
-
|
|
86012
|
+
S ? delete A.fill : (A.fill = en((c = g.legend.symbolBaseFillColor) !== null && c !== void 0 ? c : "black"), A.fillOpacity = en(C ?? 1));
|
|
86018
86013
|
else if (_e(A.fill)) {
|
|
86019
86014
|
const b = (h = (x = YD((f = m.fill) !== null && f !== void 0 ? f : m.color)) !== null && x !== void 0 ? x : p.fill) !== null && h !== void 0 ? h : E && p.color;
|
|
86020
86015
|
b && (A.fill = en(b));
|
|
@@ -86023,7 +86018,7 @@ function ket(t, { fieldOrDatumDef: e, model: n, channel: r, legendCmpt: i, legen
|
|
|
86023
86018
|
if (A.stroke) {
|
|
86024
86019
|
if (r === "stroke" || !E && r === Mi)
|
|
86025
86020
|
delete A.stroke;
|
|
86026
|
-
else if (A.stroke.field ||
|
|
86021
|
+
else if (A.stroke.field || _)
|
|
86027
86022
|
delete A.stroke;
|
|
86028
86023
|
else if (_e(A.stroke)) {
|
|
86029
86024
|
const b = Qn(YD(m.stroke || m.color), p.stroke, E ? p.color : void 0);
|
|
@@ -86258,12 +86253,12 @@ function Jet(t, e) {
|
|
|
86258
86253
|
(R || a.legend[C] === void 0) && c.set(C, b, R);
|
|
86259
86254
|
}
|
|
86260
86255
|
}
|
|
86261
|
-
const A = (r = s == null ? void 0 : s.encoding) !== null && r !== void 0 ? r : {}, v = c.get("selections"),
|
|
86256
|
+
const A = (r = s == null ? void 0 : s.encoding) !== null && r !== void 0 ? r : {}, v = c.get("selections"), S = {}, _ = { fieldOrDatumDef: h, model: t, channel: e, legendCmpt: c, legendType: g };
|
|
86262
86257
|
for (const C of ["labels", "legend", "title", "symbols", "gradient", "entries"]) {
|
|
86263
|
-
const b = oae((i = A[C]) !== null && i !== void 0 ? i : {}, t), R = C in mH ? mH[C](b,
|
|
86264
|
-
R !== void 0 && !zt(R) && (
|
|
86258
|
+
const b = oae((i = A[C]) !== null && i !== void 0 ? i : {}, t), R = C in mH ? mH[C](b, _) : b;
|
|
86259
|
+
R !== void 0 && !zt(R) && (S[C] = Object.assign(Object.assign(Object.assign({}, v != null && v.length && Le(h) ? { name: `${gn(h.field)}_legend_${C}` } : {}), v != null && v.length ? { interactive: !!v } : {}), { update: R }));
|
|
86265
86260
|
}
|
|
86266
|
-
return zt(
|
|
86261
|
+
return zt(S) || c.set("encode", S, !!(s != null && s.encoding)), c;
|
|
86267
86262
|
}
|
|
86268
86263
|
function Zet(t) {
|
|
86269
86264
|
const { legends: e, resolve: n } = t.component;
|
|
@@ -89715,14 +89710,14 @@ function Gb(t) {
|
|
|
89715
89710
|
(Ln(t) || yo(t)) && y && (f = (r = yu.makeFromEncoding(f, t)) !== null && r !== void 0 ? r : f), t.transforms.length > 0 && (f = Lnt(f, t, g));
|
|
89716
89711
|
const E = Att(t), A = Ett(t);
|
|
89717
89712
|
f = (i = kr.makeWithAncestors(f, {}, Object.assign(Object.assign({}, E), A), g)) !== null && i !== void 0 ? i : f, Ln(t) && (f = Ed.parseAll(f, t), f = Zg.parseAll(f, t)), (Ln(t) || yo(t)) && (y || (f = (s = yu.makeFromEncoding(f, t)) !== null && s !== void 0 ? s : f), f = (o = mu.makeFromEncoding(f, t)) !== null && o !== void 0 ? o : f, f = Eh.parseAllForSortIndex(f, t));
|
|
89718
|
-
const v = t.getDataName(Vt.Raw),
|
|
89719
|
-
if (x[v] =
|
|
89713
|
+
const v = t.getDataName(Vt.Raw), S = new di(f, v, Vt.Raw, h);
|
|
89714
|
+
if (x[v] = S, f = S, Ln(t)) {
|
|
89720
89715
|
const R = mo.makeFromEncoding(f, t);
|
|
89721
89716
|
R && (f = R, oB(t) && (f = new R0(f))), f = (u = Zc.makeFromEncoding(f, t)) !== null && u !== void 0 ? u : f, f = (a = Ma.makeFromEncoding(f, t)) !== null && a !== void 0 ? a : f;
|
|
89722
89717
|
}
|
|
89723
89718
|
Ln(t) && (f = (l = Jg.make(f, t)) !== null && l !== void 0 ? l : f);
|
|
89724
|
-
const
|
|
89725
|
-
x[
|
|
89719
|
+
const _ = t.getDataName(Vt.Main), C = new di(f, _, Vt.Main, h);
|
|
89720
|
+
x[_] = C, f = C, Ln(t) && det(t, C);
|
|
89726
89721
|
let b = null;
|
|
89727
89722
|
if (yo(t)) {
|
|
89728
89723
|
const R = t.getName("facet");
|
|
@@ -89731,7 +89726,7 @@ function Gb(t) {
|
|
|
89731
89726
|
return Object.assign(Object.assign({}, t.component.data), {
|
|
89732
89727
|
outputNodes: x,
|
|
89733
89728
|
outputNodeRefCounts: h,
|
|
89734
|
-
raw:
|
|
89729
|
+
raw: S,
|
|
89735
89730
|
main: C,
|
|
89736
89731
|
facetRoot: b,
|
|
89737
89732
|
ancestorParse: g
|
|
@@ -89966,17 +89961,17 @@ function Qnt(t, e) {
|
|
|
89966
89961
|
config: l
|
|
89967
89962
|
};
|
|
89968
89963
|
for (const E of Bae) {
|
|
89969
|
-
const A = E in pH ? pH[E](m) : Qz(E) ? s[E] : void 0, v = A !== void 0,
|
|
89970
|
-
if (v &&
|
|
89971
|
-
o.set(E, A,
|
|
89964
|
+
const A = E in pH ? pH[E](m) : Qz(E) ? s[E] : void 0, v = A !== void 0, S = znt(A, E, s, e, t);
|
|
89965
|
+
if (v && S)
|
|
89966
|
+
o.set(E, A, S);
|
|
89972
89967
|
else {
|
|
89973
|
-
const { configValue:
|
|
89974
|
-
v && !b ? o.set(E, A,
|
|
89968
|
+
const { configValue: _ = void 0, configFrom: C = void 0 } = Qz(E) && E !== "values" ? GD(E, l.style, s.style, x) : {}, b = _ !== void 0;
|
|
89969
|
+
v && !b ? o.set(E, A, S) : (
|
|
89975
89970
|
// Cases need implicit values
|
|
89976
89971
|
// 1. Axis config that aren't available in Vega
|
|
89977
89972
|
(C !== "vgAxisConfig" || // 2. Certain properties are always included (see `propsToAlwaysIncludeConfig`'s declaration for more details)
|
|
89978
89973
|
Hnt.has(E) && b || // 3. Conditional axis values and signals
|
|
89979
|
-
xy(
|
|
89974
|
+
xy(_) || We(_)) && o.set(E, _, !1)
|
|
89980
89975
|
);
|
|
89981
89976
|
}
|
|
89982
89977
|
}
|
|
@@ -89984,8 +89979,8 @@ function Qnt(t, e) {
|
|
|
89984
89979
|
var v;
|
|
89985
89980
|
if (!o.hasAxisPart(A))
|
|
89986
89981
|
return E;
|
|
89987
|
-
const
|
|
89988
|
-
return
|
|
89982
|
+
const S = oae((v = g[A]) !== null && v !== void 0 ? v : {}, e), _ = A === "labels" ? knt(e, t, S) : S;
|
|
89983
|
+
return _ !== void 0 && !zt(_) && (E[A] = { update: _ }), E;
|
|
89989
89984
|
}, {});
|
|
89990
89985
|
return zt(y) || o.set("encode", y, !!s.encoding || s.labelAngle !== void 0), o;
|
|
89991
89986
|
}
|
|
@@ -91928,17 +91923,17 @@ const dit = navigator.userAgent.toLowerCase().indexOf("chrome") >= 0, hit = dit,
|
|
|
91928
91923
|
});
|
|
91929
91924
|
}
|
|
91930
91925
|
});
|
|
91931
|
-
let _;
|
|
91932
|
-
e.scrollEl && (_ = e.scrollEl);
|
|
91933
91926
|
let S;
|
|
91927
|
+
e.scrollEl && (S = e.scrollEl);
|
|
91928
|
+
let _;
|
|
91934
91929
|
const [C, b] = lo(28), R = n.root && !e.disableVirtualization;
|
|
91935
|
-
R && (
|
|
91930
|
+
R && (_ = Vae({
|
|
91936
91931
|
count: c().length,
|
|
91937
|
-
getScrollElement: () =>
|
|
91932
|
+
getScrollElement: () => S,
|
|
91938
91933
|
estimateSize: () => C()
|
|
91939
91934
|
// need better size estimate
|
|
91940
91935
|
}));
|
|
91941
|
-
const O =
|
|
91936
|
+
const O = _ == null ? void 0 : _.getVirtualItems();
|
|
91942
91937
|
let L, M = !1;
|
|
91943
91938
|
const H = () => {
|
|
91944
91939
|
M = !0, setTimeout(() => {
|
|
@@ -91969,7 +91964,7 @@ const dit = navigator.userAgent.toLowerCase().indexOf("chrome") >= 0, hit = dit,
|
|
|
91969
91964
|
columnWidths: {}
|
|
91970
91965
|
})));
|
|
91971
91966
|
}
|
|
91972
|
-
}).observe(
|
|
91967
|
+
}).observe(S);
|
|
91973
91968
|
}
|
|
91974
91969
|
});
|
|
91975
91970
|
const Q = () => ({
|
|
@@ -91978,7 +91973,7 @@ const dit = navigator.userAgent.toLowerCase().indexOf("chrome") >= 0, hit = dit,
|
|
|
91978
91973
|
return (() => {
|
|
91979
91974
|
var Y = fit();
|
|
91980
91975
|
return Y.addEventListener("scroll", H), Ko((J) => {
|
|
91981
|
-
e.scrollEl || (
|
|
91976
|
+
e.scrollEl || (S = J);
|
|
91982
91977
|
}, Y), At(Y, ot(Dl, {
|
|
91983
91978
|
get when() {
|
|
91984
91979
|
return n.root;
|
|
@@ -92020,7 +92015,7 @@ const dit = navigator.userAgent.toLowerCase().indexOf("chrome") >= 0, hit = dit,
|
|
|
92020
92015
|
children: (X) => (() => {
|
|
92021
92016
|
var re = VR();
|
|
92022
92017
|
return Ko((se) => queueMicrotask(() => {
|
|
92023
|
-
|
|
92018
|
+
_.measureElement(se), X.index === 0 && b(se.clientHeight);
|
|
92024
92019
|
}), re), At(re, ot(Dl, {
|
|
92025
92020
|
get when() {
|
|
92026
92021
|
return X.index >= 0;
|
|
@@ -92042,7 +92037,7 @@ const dit = navigator.userAgent.toLowerCase().indexOf("chrome") >= 0, hit = dit,
|
|
|
92042
92037
|
})()
|
|
92043
92038
|
})), Lr((X) => {
|
|
92044
92039
|
var Ee;
|
|
92045
|
-
var re =
|
|
92040
|
+
var re = _.getTotalSize() + "px", se = `${((Ee = O[0]) == null ? void 0 : Ee.start) ?? 0}px`;
|
|
92046
92041
|
return re !== X.e && ((X.e = re) != null ? J.style.setProperty("height", re) : J.style.removeProperty("height")), se !== X.t && ((X.t = se) != null ? ee.style.setProperty("padding-top", se) : ee.style.removeProperty("padding-top")), X;
|
|
92047
92042
|
}, {
|
|
92048
92043
|
e: void 0,
|
|
@@ -92394,8 +92389,8 @@ function RB(t, e, n, r) {
|
|
|
92394
92389
|
let f = n.text("size") ?? o.text("size");
|
|
92395
92390
|
l && c ? (u = l, a = c) : (f = f || "md", [u, a] = Dit[f], a = a * bE);
|
|
92396
92391
|
let x = 0, h = 0, p = -90, m = "right", g = "middle", y = 0, E = 0;
|
|
92397
|
-
const A = f !== "spark", v = f !== "spark",
|
|
92398
|
-
let
|
|
92392
|
+
const A = f !== "spark", v = f !== "spark", S = e.fields[fu(t)];
|
|
92393
|
+
let _ = f !== "spark" ? bE - 1 : 0, C;
|
|
92399
92394
|
const b = fu(s), [R, O] = ((Y = r == null ? void 0 : r.getYMinMax) == null ? void 0 : Y.call(r)) ?? [
|
|
92400
92395
|
e.fields[b].min,
|
|
92401
92396
|
e.fields[b].max
|
|
@@ -92409,13 +92404,13 @@ function RB(t, e, n, r) {
|
|
|
92409
92404
|
const k = Math.ceil(a / 40), W = L.ticks(k).at(-1);
|
|
92410
92405
|
if (W < J) {
|
|
92411
92406
|
const U = (J - W) / (J - ee), B = a / (1 - U);
|
|
92412
|
-
|
|
92407
|
+
_ = Math.max(0, _ - (B - a)), a = B, C = k;
|
|
92413
92408
|
}
|
|
92414
92409
|
}
|
|
92415
92410
|
if (A) {
|
|
92416
92411
|
const J = fu(i), ee = e.fields[J].maxString, X = O6(ee, "10px Inter, sans-serif") + 4, re = 1;
|
|
92417
92412
|
E = 26, x = Math.min(X, re * a), y = x;
|
|
92418
|
-
const se = e.fields[J].values.size, D = se <= 20 ? se :
|
|
92413
|
+
const se = e.fields[J].values.size, D = se <= 20 ? se : S.maxRecordCt, k = u / D;
|
|
92419
92414
|
(k > x || k > X) && (p = 0, y = k, m = void 0, g = "top", E = 22, x = 14);
|
|
92420
92415
|
}
|
|
92421
92416
|
const H = a + x + E, G = Math.ceil(H / bE) * bE;
|
|
@@ -92442,7 +92437,7 @@ function RB(t, e, n, r) {
|
|
|
92442
92437
|
domain: n.has("y", "independent") ? null : M
|
|
92443
92438
|
},
|
|
92444
92439
|
padding: Q ? { top: 0, left: 0, bottom: 0, right: 0 } : {
|
|
92445
|
-
top:
|
|
92440
|
+
top: _ + 1,
|
|
92446
92441
|
left: h,
|
|
92447
92442
|
bottom: x + E,
|
|
92448
92443
|
right: 0
|
|
@@ -145018,7 +145013,7 @@ function Yit(t, e, n, r) {
|
|
|
145018
145013
|
yField: a,
|
|
145019
145014
|
chartType: "bar_chart",
|
|
145020
145015
|
getYMinMax: () => [x, h]
|
|
145021
|
-
}), m = n.field(u), g = l ? n.field(l) : null, y = r.text("x", "independent") === "true", E = r.has("x", "independent") && !y, A = m.values.size <= 20, v = y || A && !E,
|
|
145016
|
+
}), m = n.field(u), g = l ? n.field(l) : null, y = r.text("x", "independent") === "true", E = r.has("x", "independent") && !y, A = m.values.size <= 20, v = y || A && !E, S = r.text("series", "independent") === "true", _ = r.has("series", "independent") && !S, C = g && g.values.size <= 20, b = l && (S || C && !_), R = {
|
|
145022
145017
|
$schema: "https://vega.github.io/schema/vega-lite/v5.json",
|
|
145023
145018
|
width: p.plotWidth,
|
|
145024
145019
|
height: p.plotHeight,
|
|
@@ -145184,7 +145179,7 @@ function Zit(t, e, n, r) {
|
|
|
145184
145179
|
yField: a,
|
|
145185
145180
|
chartType: "line_chart",
|
|
145186
145181
|
getYMinMax: () => [x, h]
|
|
145187
|
-
}), m = n.field(u), g = l ? n.field(l) : null, y = r.text("x", "independent") === "true", E = r.has("x", "independent") && !y, A = m.values.size <= 20, v = y || A && !E,
|
|
145182
|
+
}), m = n.field(u), g = l ? n.field(l) : null, y = r.text("x", "independent") === "true", E = r.has("x", "independent") && !y, A = m.values.size <= 20, v = y || A && !E, S = r.text("series", "independent") === "true", _ = r.has("series", "independent") && !S, C = g && g.values.size <= 20, b = l && (S || C && !_), O = Ot("linear")().domain([x, h]).nice().range([p.plotHeight, 0]).domain(), L = v ? [...m.values] : null, M = {
|
|
145188
145183
|
mark: { type: "line", interpolate: e.interpolate },
|
|
145189
145184
|
encoding: {
|
|
145190
145185
|
x: {
|
|
@@ -145398,7 +145393,7 @@ function rst(t, e, n, r) {
|
|
|
145398
145393
|
yField: a,
|
|
145399
145394
|
chartType: "area_chart",
|
|
145400
145395
|
getYMinMax: () => [p, m]
|
|
145401
|
-
}), y = n.field(u), E = l ? n.field(l) : null, A = r.text("x", "independent") === "true", v = r.has("x", "independent") && !A,
|
|
145396
|
+
}), y = n.field(u), E = l ? n.field(l) : null, A = r.text("x", "independent") === "true", v = r.has("x", "independent") && !A, S = y.values.size <= 20, _ = A || S && !v, C = r.text("series", "independent") === "true", b = r.has("series", "independent") && !C, R = E && E.values.size <= 20, O = l && (C || R && !b), M = Ot("linear")().domain([p, m]).nice().range([g.plotHeight, 0]).domain(), H = _ ? [...y.values] : null, G = {
|
|
145402
145397
|
mark: {
|
|
145403
145398
|
type: "area",
|
|
145404
145399
|
interpolate: e.interpolate,
|
|
@@ -145414,7 +145409,7 @@ function rst(t, e, n, r) {
|
|
|
145414
145409
|
title: e.xChannel.fields.join(", ")
|
|
145415
145410
|
},
|
|
145416
145411
|
scale: {
|
|
145417
|
-
domain:
|
|
145412
|
+
domain: _ ? [...y.values] : null
|
|
145418
145413
|
},
|
|
145419
145414
|
sort: H
|
|
145420
145415
|
},
|