@malloy-publisher/sdk 0.0.21 → 0.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +3 -3
- package/dist/index.es.js +313 -322
- package/package.json +1 -1
- package/src/components/Model/SourcesExplorer.tsx +4 -4
- package/src/components/Notebook/Notebook.tsx +1 -1
- package/src/components/Package/Models.tsx +18 -10
- package/src/components/Package/Notebooks.tsx +20 -10
package/dist/index.es.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var kGt = Object.defineProperty;
|
|
2
2
|
var LGt = (a, u, d) => u in a ? kGt(a, u, { enumerable: !0, configurable: !0, writable: !0, value: d }) : a[u] = d;
|
|
3
3
|
var It = (a, u, d) => LGt(a, typeof u != "symbol" ? u + "" : u, d);
|
|
4
|
-
import { a as Ti, Q as Ca, u as wa, j as P, T as
|
|
4
|
+
import { a as Ti, Q as Ca, u as wa, j as P, T as yr, t as IGt, s as $h, C as HIe, S as ms, b as hb, c as ql, I as _a, A as PGt, L as dN, d as Lh, D as ss, e as i$, f as s$, g as FGt, h as pj, B as GIe, i as Bl, k as MGt, l as c6e, m as jGt, n as $Gt, o as Vi, p as o$, q as $M, r as gS, E as WIe, v as fN, w as hN, x as Ph, y as bi, z as a$, F as l$, G as pN, H as mN, J as gN, K as BGt, M as qGt, N as UGt, O as zGt, P as HGt, R as GGt, U as WGt, V as VGt, W as QGt, X as YGt, Y as KGt, Z as XGt, _ as JGt, $ as ZGt, a0 as Wne, a1 as Ao, a2 as lse, a3 as VIe, a4 as eWt, a5 as tWt, a6 as rWt, a7 as nWt, a8 as use, a9 as cse, aa as iWt, ab as sWt, ac as oWt, ad as aWt, ae as d6e, af as lWt, ag as uWt } from "./vendor-UrJxETmY.js";
|
|
5
5
|
import * as Y from "react";
|
|
6
6
|
import wr, { lazy as dse, Suspense as fse, useEffect as rn, createContext as pb, useContext as Ln, useLayoutEffect as QIe, useState as Ur, useMemo as Sn, createElement as YIe, useRef as qn, memo as cWt, useCallback as To, useReducer as dWt } from "react";
|
|
7
7
|
import * as u$ from "react-dom";
|
|
@@ -1193,9 +1193,9 @@ function DWt({
|
|
|
1193
1193
|
NWt
|
|
1194
1194
|
);
|
|
1195
1195
|
return /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
|
|
1196
|
-
!S && !w && /* @__PURE__ */ P.jsx(
|
|
1196
|
+
!S && !w && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "20px", m: "auto" }, children: "Fetching Query Results..." }),
|
|
1197
1197
|
S && /* @__PURE__ */ P.jsx(fse, { fallback: "Loading malloy...", children: /* @__PURE__ */ P.jsx(RWt, { result: _.data.result }) }),
|
|
1198
|
-
w && /* @__PURE__ */ P.jsx(
|
|
1198
|
+
w && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: `${u} > ${d} > ${f} > ${m} - ${R.message}` })
|
|
1199
1199
|
] });
|
|
1200
1200
|
}
|
|
1201
1201
|
const ePe = [
|
|
@@ -7334,7 +7334,7 @@ function wQt({
|
|
|
7334
7334
|
},
|
|
7335
7335
|
children: [
|
|
7336
7336
|
/* @__PURE__ */ P.jsx(
|
|
7337
|
-
|
|
7337
|
+
yr,
|
|
7338
7338
|
{
|
|
7339
7339
|
variant: "subtitle2",
|
|
7340
7340
|
sx: { mt: "auto", mb: "auto" },
|
|
@@ -7390,7 +7390,7 @@ function wQt({
|
|
|
7390
7390
|
},
|
|
7391
7391
|
children: [
|
|
7392
7392
|
/* @__PURE__ */ P.jsx(
|
|
7393
|
-
|
|
7393
|
+
yr,
|
|
7394
7394
|
{
|
|
7395
7395
|
fontSize: "12px",
|
|
7396
7396
|
sx: { fontSize: "12px", "& .line": { textWrap: "wrap" } },
|
|
@@ -7441,7 +7441,7 @@ function wQt({
|
|
|
7441
7441
|
justifyContent: "space-between"
|
|
7442
7442
|
},
|
|
7443
7443
|
children: /* @__PURE__ */ P.jsx(
|
|
7444
|
-
|
|
7444
|
+
yr,
|
|
7445
7445
|
{
|
|
7446
7446
|
fontSize: "12px",
|
|
7447
7447
|
sx: {
|
|
@@ -13107,16 +13107,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13107
13107
|
function m(lt, At) {
|
|
13108
13108
|
var Zt = lt == null ? null : typeof Symbol < "u" && lt[Symbol.iterator] || lt["@@iterator"];
|
|
13109
13109
|
if (Zt != null) {
|
|
13110
|
-
var Ar,
|
|
13110
|
+
var Ar, xr, Xr, Ht, Jr = [], ln = !0, ti = !1;
|
|
13111
13111
|
try {
|
|
13112
13112
|
if (Xr = (Zt = Zt.call(lt)).next, At !== 0) for (; !(ln = (Ar = Xr.call(Zt)).done) && (Jr.push(Ar.value), Jr.length !== At); ln = !0) ;
|
|
13113
13113
|
} catch (Fe) {
|
|
13114
|
-
ti = !0,
|
|
13114
|
+
ti = !0, xr = Fe;
|
|
13115
13115
|
} finally {
|
|
13116
13116
|
try {
|
|
13117
13117
|
if (!ln && Zt.return != null && (Ht = Zt.return(), Object(Ht) !== Ht)) return;
|
|
13118
13118
|
} finally {
|
|
13119
|
-
if (ti) throw
|
|
13119
|
+
if (ti) throw xr;
|
|
13120
13120
|
}
|
|
13121
13121
|
}
|
|
13122
13122
|
return Jr;
|
|
@@ -13140,8 +13140,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13140
13140
|
}), Zt;
|
|
13141
13141
|
}, _ = function(At) {
|
|
13142
13142
|
var Zt = [];
|
|
13143
|
-
return At.forEach(function(Ar,
|
|
13144
|
-
return Zt.push([
|
|
13143
|
+
return At.forEach(function(Ar, xr) {
|
|
13144
|
+
return Zt.push([xr, Ar]);
|
|
13145
13145
|
}), Zt;
|
|
13146
13146
|
}, S = Object.is ? Object.is : RYt(), w = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols : function() {
|
|
13147
13147
|
return [];
|
|
@@ -13170,9 +13170,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13170
13170
|
function Je(lt, At) {
|
|
13171
13171
|
if (lt === At)
|
|
13172
13172
|
return 0;
|
|
13173
|
-
for (var Zt = lt.length, Ar = At.length,
|
|
13174
|
-
if (lt[
|
|
13175
|
-
Zt = lt[
|
|
13173
|
+
for (var Zt = lt.length, Ar = At.length, xr = 0, Xr = Math.min(Zt, Ar); xr < Xr; ++xr)
|
|
13174
|
+
if (lt[xr] !== At[xr]) {
|
|
13175
|
+
Zt = lt[xr], Ar = At[xr];
|
|
13176
13176
|
break;
|
|
13177
13177
|
}
|
|
13178
13178
|
return Zt < Ar ? -1 : Ar < Zt ? 1 : 0;
|
|
@@ -13212,8 +13212,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13212
13212
|
if (At === null || y(At) !== "object")
|
|
13213
13213
|
return !1;
|
|
13214
13214
|
}
|
|
13215
|
-
var
|
|
13216
|
-
if (
|
|
13215
|
+
var xr = I(lt), Xr = I(At);
|
|
13216
|
+
if (xr !== Xr)
|
|
13217
13217
|
return !1;
|
|
13218
13218
|
if (Array.isArray(lt)) {
|
|
13219
13219
|
if (lt.length !== At.length)
|
|
@@ -13221,7 +13221,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13221
13221
|
var Ht = pt(lt), Jr = pt(At);
|
|
13222
13222
|
return Ht.length !== Jr.length ? !1 : ze(lt, At, Zt, Ar, ge, Ht);
|
|
13223
13223
|
}
|
|
13224
|
-
if (
|
|
13224
|
+
if (xr === "[object Object]" && (!X(lt) && X(At) || !ee(lt) && ee(At)))
|
|
13225
13225
|
return !1;
|
|
13226
13226
|
if (W(lt)) {
|
|
13227
13227
|
if (!W(At) || Date.prototype.getTime.call(lt) !== Date.prototype.getTime.call(At))
|
|
@@ -13258,7 +13258,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13258
13258
|
return B(lt, Zt);
|
|
13259
13259
|
});
|
|
13260
13260
|
}
|
|
13261
|
-
function ze(lt, At, Zt, Ar,
|
|
13261
|
+
function ze(lt, At, Zt, Ar, xr, Xr) {
|
|
13262
13262
|
if (arguments.length === 5) {
|
|
13263
13263
|
Xr = Object.keys(lt);
|
|
13264
13264
|
var Ht = Object.keys(At);
|
|
@@ -13290,7 +13290,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13290
13290
|
return !1;
|
|
13291
13291
|
}
|
|
13292
13292
|
}
|
|
13293
|
-
if (Xr.length === 0 && (
|
|
13293
|
+
if (Xr.length === 0 && (xr === Be || xr === ge && lt.length === 0 || lt.size === 0))
|
|
13294
13294
|
return !0;
|
|
13295
13295
|
if (Ar === void 0)
|
|
13296
13296
|
Ar = {
|
|
@@ -13308,12 +13308,12 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13308
13308
|
Ar.position++;
|
|
13309
13309
|
}
|
|
13310
13310
|
Ar.val1.set(lt, Ar.position), Ar.val2.set(At, Ar.position);
|
|
13311
|
-
var er = Jt(lt, At, Zt, Xr, Ar,
|
|
13311
|
+
var er = Jt(lt, At, Zt, Xr, Ar, xr);
|
|
13312
13312
|
return Ar.val1.delete(lt), Ar.val2.delete(At), er;
|
|
13313
13313
|
}
|
|
13314
13314
|
function Ge(lt, At, Zt, Ar) {
|
|
13315
|
-
for (var
|
|
13316
|
-
var Ht =
|
|
13315
|
+
for (var xr = v(lt), Xr = 0; Xr < xr.length; Xr++) {
|
|
13316
|
+
var Ht = xr[Xr];
|
|
13317
13317
|
if (Qe(At, Ht, Zt, Ar))
|
|
13318
13318
|
return lt.delete(Ht), !0;
|
|
13319
13319
|
}
|
|
@@ -13342,95 +13342,95 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
13342
13342
|
var Ar = vt(Zt);
|
|
13343
13343
|
return Ar ?? (At.has(Ar) && !lt.has(Ar));
|
|
13344
13344
|
}
|
|
13345
|
-
function Ft(lt, At, Zt, Ar,
|
|
13345
|
+
function Ft(lt, At, Zt, Ar, xr) {
|
|
13346
13346
|
var Xr = vt(Zt);
|
|
13347
13347
|
if (Xr != null)
|
|
13348
13348
|
return Xr;
|
|
13349
13349
|
var Ht = At.get(Xr);
|
|
13350
|
-
return Ht === void 0 && !At.has(Xr) || !Qe(Ar, Ht, !1,
|
|
13350
|
+
return Ht === void 0 && !At.has(Xr) || !Qe(Ar, Ht, !1, xr) ? !1 : !lt.has(Xr) && Qe(Ar, Ht, !1, xr);
|
|
13351
13351
|
}
|
|
13352
13352
|
function Bt(lt, At, Zt, Ar) {
|
|
13353
|
-
for (var
|
|
13353
|
+
for (var xr = null, Xr = v(lt), Ht = 0; Ht < Xr.length; Ht++) {
|
|
13354
13354
|
var Jr = Xr[Ht];
|
|
13355
13355
|
if (y(Jr) === "object" && Jr !== null)
|
|
13356
|
-
|
|
13356
|
+
xr === null && (xr = /* @__PURE__ */ new Set()), xr.add(Jr);
|
|
13357
13357
|
else if (!At.has(Jr)) {
|
|
13358
13358
|
if (Zt || !Et(lt, At, Jr))
|
|
13359
13359
|
return !1;
|
|
13360
|
-
|
|
13360
|
+
xr === null && (xr = /* @__PURE__ */ new Set()), xr.add(Jr);
|
|
13361
13361
|
}
|
|
13362
13362
|
}
|
|
13363
|
-
if (
|
|
13363
|
+
if (xr !== null) {
|
|
13364
13364
|
for (var ln = v(At), ti = 0; ti < ln.length; ti++) {
|
|
13365
13365
|
var Fe = ln[ti];
|
|
13366
13366
|
if (y(Fe) === "object" && Fe !== null) {
|
|
13367
|
-
if (!Ge(
|
|
13368
|
-
} else if (!Zt && !lt.has(Fe) && !Ge(
|
|
13367
|
+
if (!Ge(xr, Fe, Zt, Ar)) return !1;
|
|
13368
|
+
} else if (!Zt && !lt.has(Fe) && !Ge(xr, Fe, Zt, Ar))
|
|
13369
13369
|
return !1;
|
|
13370
13370
|
}
|
|
13371
|
-
return
|
|
13371
|
+
return xr.size === 0;
|
|
13372
13372
|
}
|
|
13373
13373
|
return !0;
|
|
13374
13374
|
}
|
|
13375
|
-
function gt(lt, At, Zt, Ar,
|
|
13375
|
+
function gt(lt, At, Zt, Ar, xr, Xr) {
|
|
13376
13376
|
for (var Ht = v(lt), Jr = 0; Jr < Ht.length; Jr++) {
|
|
13377
13377
|
var ln = Ht[Jr];
|
|
13378
|
-
if (Qe(Zt, ln,
|
|
13378
|
+
if (Qe(Zt, ln, xr, Xr) && Qe(Ar, At.get(ln), xr, Xr))
|
|
13379
13379
|
return lt.delete(ln), !0;
|
|
13380
13380
|
}
|
|
13381
13381
|
return !1;
|
|
13382
13382
|
}
|
|
13383
13383
|
function Ot(lt, At, Zt, Ar) {
|
|
13384
|
-
for (var
|
|
13384
|
+
for (var xr = null, Xr = _(lt), Ht = 0; Ht < Xr.length; Ht++) {
|
|
13385
13385
|
var Jr = a(Xr[Ht], 2), ln = Jr[0], ti = Jr[1];
|
|
13386
13386
|
if (y(ln) === "object" && ln !== null)
|
|
13387
|
-
|
|
13387
|
+
xr === null && (xr = /* @__PURE__ */ new Set()), xr.add(ln);
|
|
13388
13388
|
else {
|
|
13389
13389
|
var Fe = At.get(ln);
|
|
13390
13390
|
if (Fe === void 0 && !At.has(ln) || !Qe(ti, Fe, Zt, Ar)) {
|
|
13391
13391
|
if (Zt || !Ft(lt, At, ln, ti, Ar)) return !1;
|
|
13392
|
-
|
|
13392
|
+
xr === null && (xr = /* @__PURE__ */ new Set()), xr.add(ln);
|
|
13393
13393
|
}
|
|
13394
13394
|
}
|
|
13395
13395
|
}
|
|
13396
|
-
if (
|
|
13396
|
+
if (xr !== null) {
|
|
13397
13397
|
for (var H = _(At), oe = 0; oe < H.length; oe++) {
|
|
13398
13398
|
var je = a(H[oe], 2), St = je[0], er = je[1];
|
|
13399
13399
|
if (y(St) === "object" && St !== null) {
|
|
13400
|
-
if (!gt(
|
|
13401
|
-
} else if (!Zt && (!lt.has(St) || !Qe(lt.get(St), er, !1, Ar)) && !gt(
|
|
13400
|
+
if (!gt(xr, lt, St, er, Zt, Ar)) return !1;
|
|
13401
|
+
} else if (!Zt && (!lt.has(St) || !Qe(lt.get(St), er, !1, Ar)) && !gt(xr, lt, St, er, !1, Ar))
|
|
13402
13402
|
return !1;
|
|
13403
13403
|
}
|
|
13404
|
-
return
|
|
13404
|
+
return xr.size === 0;
|
|
13405
13405
|
}
|
|
13406
13406
|
return !0;
|
|
13407
13407
|
}
|
|
13408
|
-
function Jt(lt, At, Zt, Ar,
|
|
13408
|
+
function Jt(lt, At, Zt, Ar, xr, Xr) {
|
|
13409
13409
|
var Ht = 0;
|
|
13410
13410
|
if (Xr === pe) {
|
|
13411
|
-
if (!Bt(lt, At, Zt,
|
|
13411
|
+
if (!Bt(lt, At, Zt, xr))
|
|
13412
13412
|
return !1;
|
|
13413
13413
|
} else if (Xr === xe) {
|
|
13414
|
-
if (!Ot(lt, At, Zt,
|
|
13414
|
+
if (!Ot(lt, At, Zt, xr))
|
|
13415
13415
|
return !1;
|
|
13416
13416
|
} else if (Xr === ge)
|
|
13417
13417
|
for (; Ht < lt.length; Ht++)
|
|
13418
13418
|
if (D(lt, Ht)) {
|
|
13419
|
-
if (!D(At, Ht) || !Qe(lt[Ht], At[Ht], Zt,
|
|
13419
|
+
if (!D(At, Ht) || !Qe(lt[Ht], At[Ht], Zt, xr))
|
|
13420
13420
|
return !1;
|
|
13421
13421
|
} else {
|
|
13422
13422
|
if (D(At, Ht))
|
|
13423
13423
|
return !1;
|
|
13424
13424
|
for (var Jr = Object.keys(lt); Ht < Jr.length; Ht++) {
|
|
13425
13425
|
var ln = Jr[Ht];
|
|
13426
|
-
if (!D(At, ln) || !Qe(lt[ln], At[ln], Zt,
|
|
13426
|
+
if (!D(At, ln) || !Qe(lt[ln], At[ln], Zt, xr))
|
|
13427
13427
|
return !1;
|
|
13428
13428
|
}
|
|
13429
13429
|
return Jr.length === Object.keys(At).length;
|
|
13430
13430
|
}
|
|
13431
13431
|
for (Ht = 0; Ht < Ar.length; Ht++) {
|
|
13432
13432
|
var ti = Ar[Ht];
|
|
13433
|
-
if (!Qe(lt[ti], At[ti], Zt,
|
|
13433
|
+
if (!Qe(lt[ti], At[ti], Zt, xr))
|
|
13434
13434
|
return !1;
|
|
13435
13435
|
}
|
|
13436
13436
|
return !0;
|
|
@@ -22658,13 +22658,13 @@ function HS() {
|
|
|
22658
22658
|
Ot.ruleToStopState = new Array(Ar);
|
|
22659
22659
|
for (let Fe of Ot.states)
|
|
22660
22660
|
Fe instanceof tt.RuleStopState && (Ot.ruleToStopState[Fe.ruleIndex] = Fe, Ot.ruleToStartState[Fe.ruleIndex].stopState = Fe);
|
|
22661
|
-
let
|
|
22662
|
-
for (let Fe = 0; Fe <
|
|
22661
|
+
let xr = kr.toInt(ze[Ge++]);
|
|
22662
|
+
for (let Fe = 0; Fe < xr; Fe++) {
|
|
22663
22663
|
let H = kr.toInt(ze[Ge++]);
|
|
22664
22664
|
Ot.modeToStartState.push(Ot.states[H]);
|
|
22665
22665
|
}
|
|
22666
|
-
Ot.modeToDFA = new Array(
|
|
22667
|
-
for (let Fe = 0; Fe <
|
|
22666
|
+
Ot.modeToDFA = new Array(xr);
|
|
22667
|
+
for (let Fe = 0; Fe < xr; Fe++)
|
|
22668
22668
|
Ot.modeToDFA[Fe] = new D.DFA(Ot.modeToStartState[Fe]);
|
|
22669
22669
|
let Xr = [];
|
|
22670
22670
|
Ge = this.deserializeSets(ze, Ge, Xr, kr.getUnicodeDeserializer(
|
|
@@ -31648,7 +31648,7 @@ function aXt() {
|
|
|
31648
31648
|
static _schemaTryGet(H, oe, je, St) {
|
|
31649
31649
|
let er = H.fields;
|
|
31650
31650
|
for (const pn of je ?? []) {
|
|
31651
|
-
const Ir = er.find((
|
|
31651
|
+
const Ir = er.find((br) => br.name === pn);
|
|
31652
31652
|
if (Ir === void 0)
|
|
31653
31653
|
throw new Error(`${pn} not found`);
|
|
31654
31654
|
if (Ir.kind === "join" || St && Ir.kind === "view") {
|
|
@@ -31657,15 +31657,15 @@ function aXt() {
|
|
|
31657
31657
|
}
|
|
31658
31658
|
if (Ir.kind === "dimension" || Ir.kind === "measure") {
|
|
31659
31659
|
if (Ir.type.kind === "record_type") {
|
|
31660
|
-
er = Ir.type.fields.map((
|
|
31660
|
+
er = Ir.type.fields.map((br) => ({
|
|
31661
31661
|
kind: Ir.kind,
|
|
31662
|
-
...
|
|
31662
|
+
...br
|
|
31663
31663
|
}));
|
|
31664
31664
|
continue;
|
|
31665
31665
|
} else if (Ir.type.kind === "array_type" && Ir.type.element_type.kind === "record_type") {
|
|
31666
|
-
er = Ir.type.element_type.fields.map((
|
|
31666
|
+
er = Ir.type.element_type.fields.map((br) => ({
|
|
31667
31667
|
kind: Ir.kind,
|
|
31668
|
-
...
|
|
31668
|
+
...br
|
|
31669
31669
|
}));
|
|
31670
31670
|
continue;
|
|
31671
31671
|
}
|
|
@@ -31837,9 +31837,9 @@ function aXt() {
|
|
|
31837
31837
|
if (H.query) {
|
|
31838
31838
|
const Ir = H.query.definition;
|
|
31839
31839
|
if (Ir.kind === "arrow" && Ir.source.kind === "source_reference") {
|
|
31840
|
-
const
|
|
31841
|
-
if (St = H.model.entries.find((Yi) => Yi.name ===
|
|
31842
|
-
throw new Error(`Model does not contain source or query named ${
|
|
31840
|
+
const br = Ir.source.name;
|
|
31841
|
+
if (St = H.model.entries.find((Yi) => Yi.name === br), St === void 0)
|
|
31842
|
+
throw new Error(`Model does not contain source or query named ${br}`);
|
|
31843
31843
|
}
|
|
31844
31844
|
}
|
|
31845
31845
|
if (St === void 0 && (St = H.model.entries[0]), St === void 0)
|
|
@@ -33050,10 +33050,10 @@ function aXt() {
|
|
|
33050
33050
|
}
|
|
33051
33051
|
const Tr = [];
|
|
33052
33052
|
for (const Ir of H) {
|
|
33053
|
-
const
|
|
33054
|
-
if (
|
|
33053
|
+
const br = St[Ir];
|
|
33054
|
+
if (br === void 0)
|
|
33055
33055
|
throw new Error(`No field named ${Ir}`);
|
|
33056
|
-
Tr.push(
|
|
33056
|
+
Tr.push(br);
|
|
33057
33057
|
}
|
|
33058
33058
|
const pn = [
|
|
33059
33059
|
...oe,
|
|
@@ -33283,7 +33283,7 @@ function aXt() {
|
|
|
33283
33283
|
addWhere(H, oe, je) {
|
|
33284
33284
|
const St = Array.isArray(oe) ? oe : [], er = je === void 0 ? oe : je, Tr = typeof er == "string" ? er : lt(er), pn = this.getInputSchema(), Ir = w.schemaGet(pn, H, St);
|
|
33285
33285
|
ln(Ir, er);
|
|
33286
|
-
const
|
|
33286
|
+
const br = new st({
|
|
33287
33287
|
kind: "where",
|
|
33288
33288
|
filter: {
|
|
33289
33289
|
kind: "filter_string",
|
|
@@ -33291,12 +33291,12 @@ function aXt() {
|
|
|
33291
33291
|
filter: Tr
|
|
33292
33292
|
}
|
|
33293
33293
|
});
|
|
33294
|
-
return this.addOperation(
|
|
33294
|
+
return this.addOperation(br), br;
|
|
33295
33295
|
}
|
|
33296
33296
|
addHaving(H, oe, je) {
|
|
33297
33297
|
const St = Array.isArray(oe) ? oe : [], er = je === void 0 ? oe : je, Tr = typeof er == "string" ? er : lt(er), pn = this.getInputSchema(), Ir = w.schemaGet(pn, H, St);
|
|
33298
33298
|
ln(Ir, er);
|
|
33299
|
-
const
|
|
33299
|
+
const br = new Ge({
|
|
33300
33300
|
kind: "having",
|
|
33301
33301
|
filter: {
|
|
33302
33302
|
kind: "filter_string",
|
|
@@ -33304,7 +33304,7 @@ function aXt() {
|
|
|
33304
33304
|
filter: Tr
|
|
33305
33305
|
}
|
|
33306
33306
|
});
|
|
33307
|
-
return this.addOperation(
|
|
33307
|
+
return this.addOperation(br), br;
|
|
33308
33308
|
}
|
|
33309
33309
|
addTimeGroupBy(H, oe, je, St) {
|
|
33310
33310
|
const er = this.getInputSchema(), Tr = E.schemaGet(er, H, oe);
|
|
@@ -33790,7 +33790,7 @@ function aXt() {
|
|
|
33790
33790
|
addWhere(H, oe, je) {
|
|
33791
33791
|
const St = Array.isArray(oe) ? oe : [], er = je === void 0 ? oe : je, Tr = typeof er == "string" ? er : lt(er), pn = this.list.segment.getInputSchema(), Ir = w.schemaGet(pn, H, St);
|
|
33792
33792
|
ln(Ir, er);
|
|
33793
|
-
const
|
|
33793
|
+
const br = {
|
|
33794
33794
|
filter: {
|
|
33795
33795
|
kind: "filter_string",
|
|
33796
33796
|
field_reference: { name: H, path: St },
|
|
@@ -33798,7 +33798,7 @@ function aXt() {
|
|
|
33798
33798
|
}
|
|
33799
33799
|
};
|
|
33800
33800
|
if (this.field.expression instanceof Se)
|
|
33801
|
-
return this.field.expression.where.add(new Ie(
|
|
33801
|
+
return this.field.expression.where.add(new Ie(br)), this.field.expression;
|
|
33802
33802
|
if (this.field.expression instanceof pe) {
|
|
33803
33803
|
const Yi = this.field.expression.build();
|
|
33804
33804
|
return this.field.expression = new Se({
|
|
@@ -33808,7 +33808,7 @@ function aXt() {
|
|
|
33808
33808
|
path: Yi.path,
|
|
33809
33809
|
parameters: Yi.parameters
|
|
33810
33810
|
},
|
|
33811
|
-
where: [
|
|
33811
|
+
where: [br]
|
|
33812
33812
|
}), this.field.expression;
|
|
33813
33813
|
} else
|
|
33814
33814
|
throw new Error("This kind of expression does not support addWhere");
|
|
@@ -34652,11 +34652,11 @@ function aXt() {
|
|
|
34652
34652
|
return !1;
|
|
34653
34653
|
}
|
|
34654
34654
|
}
|
|
34655
|
-
function
|
|
34655
|
+
function xr(Fe, H) {
|
|
34656
34656
|
return Fe.toString().padStart(H, "0");
|
|
34657
34657
|
}
|
|
34658
34658
|
function Xr(Fe) {
|
|
34659
|
-
const H =
|
|
34659
|
+
const H = xr(Fe.getUTCFullYear(), 4), oe = xr(Fe.getUTCMonth() + 1, 2), je = xr(Fe.getUTCDate(), 2), St = xr(Fe.getUTCHours(), 2), er = xr(Fe.getUTCMinutes(), 2), Tr = xr(Fe.getUTCSeconds(), 2);
|
|
34660
34660
|
return `${H}-${oe}-${je} ${St}:${er}:${Tr}`;
|
|
34661
34661
|
}
|
|
34662
34662
|
function Ht(Fe, H) {
|
|
@@ -37274,16 +37274,16 @@ function _Xt() {
|
|
|
37274
37274
|
};
|
|
37275
37275
|
}
|
|
37276
37276
|
const Ar = Symbol("fallback");
|
|
37277
|
-
function
|
|
37277
|
+
function xr(t) {
|
|
37278
37278
|
for (let e = 0; e < t.length; e++) t[e]();
|
|
37279
37279
|
}
|
|
37280
37280
|
function Xr(t, e, r = {}) {
|
|
37281
37281
|
let i = [], s = [], o = [], l = 0, c = e.length > 1 ? [] : null;
|
|
37282
|
-
return ge(() =>
|
|
37282
|
+
return ge(() => xr(o)), () => {
|
|
37283
37283
|
let h = t() || [], p = h.length, x, b;
|
|
37284
37284
|
return h[$], tt(() => {
|
|
37285
37285
|
let T, O, k, L, F, M, j, U, G;
|
|
37286
|
-
if (p === 0) l !== 0 && (
|
|
37286
|
+
if (p === 0) l !== 0 && (xr(o), o = [], i = [], s = [], l = 0, c && (c = [])), r.fallback && (i = [Ar], s[0] = Ke((Q) => (o[0] = Q, r.fallback())), l = 1);
|
|
37287
37287
|
else if (l === 0) {
|
|
37288
37288
|
for (s = new Array(p), b = 0; b < p; b++) i[b] = h[b], s[b] = Ke(A);
|
|
37289
37289
|
l = p;
|
|
@@ -37452,7 +37452,7 @@ function _Xt() {
|
|
|
37452
37452
|
}
|
|
37453
37453
|
}
|
|
37454
37454
|
const Ir = "_$DX_DELEGATE";
|
|
37455
|
-
function
|
|
37455
|
+
function br(t, e, r) {
|
|
37456
37456
|
let i;
|
|
37457
37457
|
const s = () => {
|
|
37458
37458
|
const l = document.createElement("template");
|
|
@@ -39126,14 +39126,14 @@ function _Xt() {
|
|
|
39126
39126
|
`.concat(ce[Ce - 1]), _t++), se = Ce, ue += `
|
|
39127
39127
|
`.concat(me, "+").concat(ve, " ").concat(ce[Ce]), _t++;
|
|
39128
39128
|
else {
|
|
39129
|
-
var pr = ae[Ce],
|
|
39130
|
-
Ze && V(pr, ",") && pr.slice(0, -1) ===
|
|
39129
|
+
var pr = ae[Ce], _r = ce[Ce], Ze = _r !== pr && (!V(_r, ",") || _r.slice(0, -1) !== pr);
|
|
39130
|
+
Ze && V(pr, ",") && pr.slice(0, -1) === _r && (Ze = !1, _r += ","), Ze ? (fr > 1 && Ce > 2 && (fr > 4 ? (ue += `
|
|
39131
39131
|
`.concat(re, "...").concat(ve), we = !0) : fr > 3 && (ue += `
|
|
39132
39132
|
`.concat(ce[Ce - 2]), _t++), ue += `
|
|
39133
39133
|
`.concat(ce[Ce - 1]), _t++), se = Ce, ue += `
|
|
39134
|
-
`.concat(me, "+").concat(ve, " ").concat(
|
|
39134
|
+
`.concat(me, "+").concat(ve, " ").concat(_r), Ct += `
|
|
39135
39135
|
`.concat(ie, "-").concat(ve, " ").concat(pr), _t += 2) : (ue += Ct, Ct = "", (fr === 1 || Ce === 0) && (ue += `
|
|
39136
|
-
`.concat(
|
|
39136
|
+
`.concat(_r), _t++));
|
|
39137
39137
|
}
|
|
39138
39138
|
if (_t > 20 && Ce < dt - 2) return "".concat(yt).concat(Dt, `
|
|
39139
39139
|
`).concat(ue, `
|
|
@@ -39661,10 +39661,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
39661
39661
|
function pr(Ze, bt) {
|
|
39662
39662
|
return Xe(Ze, bt, Ye);
|
|
39663
39663
|
}
|
|
39664
|
-
function
|
|
39664
|
+
function _r(Ze, bt) {
|
|
39665
39665
|
return Xe(Ze, bt, We);
|
|
39666
39666
|
}
|
|
39667
|
-
return oq = { isDeepEqual: pr, isDeepStrictEqual:
|
|
39667
|
+
return oq = { isDeepEqual: pr, isDeepStrictEqual: _r }, oq;
|
|
39668
39668
|
}
|
|
39669
39669
|
var qle;
|
|
39670
39670
|
function Ra() {
|
|
@@ -45563,8 +45563,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45563
45563
|
let mt = `Could not deserialize ATN with UUID ${dt} (expected ${Lr.SERIALIZED_UUID} or a legacy UUID).`;
|
|
45564
45564
|
throw new Error(mt);
|
|
45565
45565
|
}
|
|
45566
|
-
let ut = Lr.isFeatureSupported(Lr.ADDED_LEXER_ACTIONS, dt), _t = Lr.toInt($e[Ee++]), yt = Lr.toInt($e[Ee++]), Dt = new s.ATN(_t, yt), fr = [], pr = [],
|
|
45567
|
-
for (let mt = 0; mt <
|
|
45566
|
+
let ut = Lr.isFeatureSupported(Lr.ADDED_LEXER_ACTIONS, dt), _t = Lr.toInt($e[Ee++]), yt = Lr.toInt($e[Ee++]), Dt = new s.ATN(_t, yt), fr = [], pr = [], _r = Lr.toInt($e[Ee++]);
|
|
45567
|
+
for (let mt = 0; mt < _r; mt++) {
|
|
45568
45568
|
let Qt = Lr.toInt($e[Ee++]);
|
|
45569
45569
|
if (Qt === l.ATNStateType.INVALID_TYPE) {
|
|
45570
45570
|
Dt.addState(new F.InvalidState());
|
|
@@ -45746,8 +45746,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45746
45746
|
for (let fr = 0; fr < yt; fr++) {
|
|
45747
45747
|
let pr = dt.readUnicode($e, Ee);
|
|
45748
45748
|
Ee += dt.size;
|
|
45749
|
-
let
|
|
45750
|
-
Ee += dt.size, Dt.add(pr,
|
|
45749
|
+
let _r = dt.readUnicode($e, Ee);
|
|
45750
|
+
Ee += dt.size, Dt.add(pr, _r);
|
|
45751
45751
|
}
|
|
45752
45752
|
}
|
|
45753
45753
|
return Ee;
|
|
@@ -45816,16 +45816,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45816
45816
|
for (let Ze = 0; Ze < _t; Ze++) ut.push(dt.getOptimizedTransition(_t));
|
|
45817
45817
|
}
|
|
45818
45818
|
Ee++;
|
|
45819
|
-
let pr = Dt.followState,
|
|
45820
|
-
switch (
|
|
45819
|
+
let pr = Dt.followState, _r = new p.BasicState();
|
|
45820
|
+
switch (_r.setRuleIndex(pr.ruleIndex), $e.addState(_r), ut.push(new k.EpsilonTransition(_r)), fr.serializationType) {
|
|
45821
45821
|
case 5:
|
|
45822
|
-
|
|
45822
|
+
_r.addTransition(new c.AtomTransition(pr, fr._label));
|
|
45823
45823
|
break;
|
|
45824
45824
|
case 2:
|
|
45825
|
-
|
|
45825
|
+
_r.addTransition(new ft.RangeTransition(pr, fr.from, fr.to));
|
|
45826
45826
|
break;
|
|
45827
45827
|
case 7:
|
|
45828
|
-
|
|
45828
|
+
_r.addTransition(new Ct.SetTransition(pr, fr.label));
|
|
45829
45829
|
break;
|
|
45830
45830
|
default:
|
|
45831
45831
|
throw new Error("UnsupportedOperationException");
|
|
@@ -45896,8 +45896,8 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
45896
45896
|
pr = new ft.RangeTransition(Dt, Ze.a, Ze.b);
|
|
45897
45897
|
}
|
|
45898
45898
|
else pr = new Ct.SetTransition(Dt, fr);
|
|
45899
|
-
let
|
|
45900
|
-
if (
|
|
45899
|
+
let _r = new p.BasicState();
|
|
45900
|
+
if (_r.setRuleIndex(ut.ruleIndex), $e.addState(_r), _r.addTransition(pr), yt.push(new k.EpsilonTransition(_r)), Ve += ut.numberOfOptimizedTransitions - yt.length, ut.isOptimized) for (; ut.numberOfOptimizedTransitions > 0; ) ut.removeOptimizedTransition(ut.numberOfOptimizedTransitions - 1);
|
|
45901
45901
|
for (let Ze of yt) ut.addOptimizedTransition(Ze);
|
|
45902
45902
|
}
|
|
45903
45903
|
return ye.ParserATNSimulator.debug && console.log("ATN runtime optimizer removed " + Ve + " paths by collapsing sets."), Ve;
|
|
@@ -50577,15 +50577,15 @@ ${r}}`, i;
|
|
|
50577
50577
|
function pr(ct) {
|
|
50578
50578
|
return ct < 2147483647 && ct > -2147483648 ? "" + (ct >= 0 ? ct | 0 : ct - 1 | 0) : "" + Math.floor(ct);
|
|
50579
50579
|
}
|
|
50580
|
-
function
|
|
50580
|
+
function _r(ct, et, it) {
|
|
50581
50581
|
if (ct.charCodeAt(0) === 40 && !et.match(dt)) {
|
|
50582
50582
|
var Oe = et.replace(/\( */, "").replace(/ \)/, "").replace(/\)/, "");
|
|
50583
|
-
return it >= 0 ?
|
|
50583
|
+
return it >= 0 ? _r("n", Oe, it) : "(" + _r("n", Oe, -it) + ")";
|
|
50584
50584
|
}
|
|
50585
50585
|
if (et.charCodeAt(et.length - 1) === 44) return Ce(ct, et, it);
|
|
50586
50586
|
if (et.indexOf("%") !== -1) return ae(ct, et, it);
|
|
50587
50587
|
if (et.indexOf("E") !== -1) return Xe(et, it);
|
|
50588
|
-
if (et.charCodeAt(0) === 36) return "$" +
|
|
50588
|
+
if (et.charCodeAt(0) === 36) return "$" + _r(ct, et.substr(et.charAt(1) == " " ? 2 : 1), it);
|
|
50589
50589
|
var ot, wt, mt, Qt, mr = Math.abs(it), hr = it < 0 ? "-" : "";
|
|
50590
50590
|
if (et.match(/^00+$/)) return hr + A(mr, et.length);
|
|
50591
50591
|
if (et.match(/^[#?]+$/)) return ot = A(it, 0), ot === "0" && (ot = ""), ot.length > et.length ? ot : _t(et.substr(0, et.length - ot.length)) + ot;
|
|
@@ -50596,12 +50596,12 @@ ${r}}`, i;
|
|
|
50596
50596
|
}), et.indexOf("0.") !== -1 ? ot : ot.replace(/^0\./, ".");
|
|
50597
50597
|
if (et = et.replace(/^#+([0.])/, "$1"), wt = et.match(/^(0*)\.(#*)$/)) return hr + yt(mr, wt[2].length).replace(/\.(\d*[1-9])0*$/, ".$1").replace(/^(-?\d*)$/, "$1.").replace(/^0\./, wt[1].length ? "0." : ".");
|
|
50598
50598
|
if (wt = et.match(/^#{1,3},##0(\.?)$/)) return hr + Me(A(mr, 0));
|
|
50599
|
-
if (wt = et.match(/^#,##0\.([#0]*0)$/)) return it < 0 ? "-" +
|
|
50600
|
-
if (wt = et.match(/^#,#*,#0/)) return
|
|
50601
|
-
if (wt = et.match(/^([0#]+)(\\?-([0#]+))+$/)) return ot = s(
|
|
50599
|
+
if (wt = et.match(/^#,##0\.([#0]*0)$/)) return it < 0 ? "-" + _r(ct, et, -it) : Me("" + (Math.floor(it) + fr(it, wt[1].length))) + "." + l(Dt(it, wt[1].length), wt[1].length);
|
|
50600
|
+
if (wt = et.match(/^#,#*,#0/)) return _r(ct, et.replace(/^#,#*,/, ""), it);
|
|
50601
|
+
if (wt = et.match(/^([0#]+)(\\?-([0#]+))+$/)) return ot = s(_r(ct, et.replace(/[\\-]/g, ""), it)), mt = 0, s(s(et.replace(/\\/g, "")).replace(/[0#]/g, function(ki) {
|
|
50602
50602
|
return mt < ot.length ? ot.charAt(mt++) : ki === "0" ? "0" : "";
|
|
50603
50603
|
}));
|
|
50604
|
-
if (et.match(ut)) return ot =
|
|
50604
|
+
if (et.match(ut)) return ot = _r(ct, "##########", it), "(" + ot.substr(0, 3) + ") " + ot.substr(3, 3) + "-" + ot.substr(6);
|
|
50605
50605
|
var lr = "";
|
|
50606
50606
|
if (wt = et.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/)) return mt = Math.min(wt[4].length, 7), Qt = G(mr, Math.pow(10, mt) - 1, !1), ot = "" + hr, lr = rt("n", wt[1], Qt[1]), lr.charAt(lr.length - 1) == " " && (lr = lr.substr(0, lr.length - 1) + "0"), ot += lr + wt[2] + "/" + wt[3], lr = h(Qt[2], mt), lr.length < wt[4].length && (lr = _t(wt[4].substr(wt[4].length - lr.length)) + lr), ot += lr, ot;
|
|
50607
50607
|
if (wt = et.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/)) return mt = Math.min(Math.max(wt[1].length, wt[4].length), 7), Qt = G(mr, Math.pow(10, mt) - 1, !0), hr + (Qt[0] || (Qt[1] ? "" : "0")) + " " + (Qt[1] ? c(Qt[1], mt) + wt[2] + "/" + wt[3] + h(Qt[2], mt) : o(" ", 2 * mt + 1 + wt[2].length + wt[3].length));
|
|
@@ -50611,21 +50611,21 @@ ${r}}`, i;
|
|
|
50611
50611
|
var zn = et.indexOf(".") - mt, li = et.length - ot.length - zn;
|
|
50612
50612
|
return _t(et.substr(0, zn) + ot + et.substr(et.length - li));
|
|
50613
50613
|
}
|
|
50614
|
-
if (wt = et.match(/^00,000\.([#0]*0)$/)) return mt = Dt(it, wt[1].length), it < 0 ? "-" +
|
|
50614
|
+
if (wt = et.match(/^00,000\.([#0]*0)$/)) return mt = Dt(it, wt[1].length), it < 0 ? "-" + _r(ct, et, -it) : Me(pr(it)).replace(/^\d,\d{3}$/, "0$&").replace(/^\d*$/, function(ki) {
|
|
50615
50615
|
return "00," + (ki.length < 3 ? l(0, 3 - ki.length) : "") + ki;
|
|
50616
50616
|
}) + "." + l(mt, wt[1].length);
|
|
50617
50617
|
switch (et) {
|
|
50618
50618
|
case "###,##0.00":
|
|
50619
|
-
return
|
|
50619
|
+
return _r(ct, "#,##0.00", it);
|
|
50620
50620
|
case "###,###":
|
|
50621
50621
|
case "##,###":
|
|
50622
50622
|
case "#,###":
|
|
50623
50623
|
var Kn = Me(A(mr, 0));
|
|
50624
50624
|
return Kn !== "0" ? hr + Kn : "";
|
|
50625
50625
|
case "###,###.00":
|
|
50626
|
-
return
|
|
50626
|
+
return _r(ct, "###,##0.00", it).replace(/^0\./, ".");
|
|
50627
50627
|
case "#,###.00":
|
|
50628
|
-
return
|
|
50628
|
+
return _r(ct, "#,##0.00", it).replace(/^0\./, ".");
|
|
50629
50629
|
}
|
|
50630
50630
|
throw new Error("unsupported format |" + et + "|");
|
|
50631
50631
|
}
|
|
@@ -50704,7 +50704,7 @@ ${r}}`, i;
|
|
|
50704
50704
|
throw new Error("unsupported format |" + et + "|");
|
|
50705
50705
|
}
|
|
50706
50706
|
return function(ct, et, it) {
|
|
50707
|
-
return (it | 0) === it ? nr(ct, et, it) :
|
|
50707
|
+
return (it | 0) === it ? nr(ct, et, it) : _r(ct, et, it);
|
|
50708
50708
|
};
|
|
50709
50709
|
}();
|
|
50710
50710
|
function ft(ce) {
|
|
@@ -50854,9 +50854,9 @@ ${r}}`, i;
|
|
|
50854
50854
|
case "A":
|
|
50855
50855
|
case "a":
|
|
50856
50856
|
case "上":
|
|
50857
|
-
var
|
|
50858
|
-
if (ut == null && (ut = Q(ae, Ce)), ce.substr(Ee, 3).toUpperCase() === "A/P" ? (ut != null && (
|
|
50859
|
-
Ae[Ae.length] =
|
|
50857
|
+
var _r = { t: Ve, v: Ve };
|
|
50858
|
+
if (ut == null && (ut = Q(ae, Ce)), ce.substr(Ee, 3).toUpperCase() === "A/P" ? (ut != null && (_r.v = ut.H >= 12 ? "P" : "A"), _r.t = "T", Dt = "h", Ee += 3) : ce.substr(Ee, 5).toUpperCase() === "AM/PM" ? (ut != null && (_r.v = ut.H >= 12 ? "PM" : "AM"), _r.t = "T", Ee += 5, Dt = "h") : ce.substr(Ee, 5).toUpperCase() === "上午/下午" ? (ut != null && (_r.v = ut.H >= 12 ? "下午" : "上午"), _r.t = "T", Ee += 5, Dt = "h") : (_r.t = "t", ++Ee), ut == null && _r.t === "T") return "";
|
|
50859
|
+
Ae[Ae.length] = _r, dt = Ve;
|
|
50860
50860
|
break;
|
|
50861
50861
|
case "[":
|
|
50862
50862
|
for ($e = Ve; ce.charAt(Ee++) !== "]" && Ee < ce.length; ) $e += ce.charAt(Ee);
|
|
@@ -51562,7 +51562,7 @@ ${r}}`, i;
|
|
|
51562
51562
|
})(aE);
|
|
51563
51563
|
var iw = {}, dE = {}, Hn = {}, Dr = {};
|
|
51564
51564
|
(function(t) {
|
|
51565
|
-
Object.defineProperty(t, "__esModule", { value: !0 }), t.TD = t.ValueType = void 0, t.exprHasKids = e, t.exprHasE = r, t.exprIsLeaf = i, t.isAsymmetricExpr = s, t.mkTemporal = l, t.isRawCast = c, t.isFilterExprType = h, t.isParameterType = p, t.paramHasValue = x, t.expressionIsScalar = b, t.expressionIsAggregate = A, t.expressionIsUngroupedAggregate = T, t.expressionInvolvesAggregate = O, t.expressionIsCalculation = k, t.expressionIsAnalytic = L, t.isExpressionTypeLEQ = M, t.maxExpressionType = j, t.maxOfExpressionTypes = U, t.hasExpression = G, t.isTemporalType = Q, t.isAtomicFieldType = V, t.canOrderBy = Z, t.isCastType = re, t.fieldIsIntrinsic = me, t.mkFieldDef = ie, t.mkArrayDef = ve, t.isRepeatedRecordFunctionParam = ye, t.isRepeatedRecord = Te, t.isBasicArray = ke, t.isMatrixOperation = Me, t.isJoinable = rt, t.isJoined = ft, t.isJoinedSource = nt, t.isDateUnit = We, t.isTimestampUnit = Ye, t.isExtractUnit = Ct, t.refIsStructDef = se, t.segmentHasErrors = de, t.structHasErrors = we, t.isReduceSegment = qe, t.isPartialSegment = ce, t.isProjectSegment = ae, t.isQuerySegment = Ce, t.isSamplingRows = Xe, t.isSamplingPercent = Ae, t.isSamplingEnable = $e, t.isRawSegment = Ee, t.isIndexSegment = Ve, t.isSegmentSQL = dt, t.sourceBase = ut, t.isSourceDef = _t, t.isBaseTable = yt, t.isLiteral = Dt, t.mergeEvalSpaces = fr, t.isBasicAtomic = pr, t.getIdentifier =
|
|
51565
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), t.TD = t.ValueType = void 0, t.exprHasKids = e, t.exprHasE = r, t.exprIsLeaf = i, t.isAsymmetricExpr = s, t.mkTemporal = l, t.isRawCast = c, t.isFilterExprType = h, t.isParameterType = p, t.paramHasValue = x, t.expressionIsScalar = b, t.expressionIsAggregate = A, t.expressionIsUngroupedAggregate = T, t.expressionInvolvesAggregate = O, t.expressionIsCalculation = k, t.expressionIsAnalytic = L, t.isExpressionTypeLEQ = M, t.maxExpressionType = j, t.maxOfExpressionTypes = U, t.hasExpression = G, t.isTemporalType = Q, t.isAtomicFieldType = V, t.canOrderBy = Z, t.isCastType = re, t.fieldIsIntrinsic = me, t.mkFieldDef = ie, t.mkArrayDef = ve, t.isRepeatedRecordFunctionParam = ye, t.isRepeatedRecord = Te, t.isBasicArray = ke, t.isMatrixOperation = Me, t.isJoinable = rt, t.isJoined = ft, t.isJoinedSource = nt, t.isDateUnit = We, t.isTimestampUnit = Ye, t.isExtractUnit = Ct, t.refIsStructDef = se, t.segmentHasErrors = de, t.structHasErrors = we, t.isReduceSegment = qe, t.isPartialSegment = ce, t.isProjectSegment = ae, t.isQuerySegment = Ce, t.isSamplingRows = Xe, t.isSamplingPercent = Ae, t.isSamplingEnable = $e, t.isRawSegment = Ee, t.isIndexSegment = Ve, t.isSegmentSQL = dt, t.sourceBase = ut, t.isSourceDef = _t, t.isBaseTable = yt, t.isLiteral = Dt, t.mergeEvalSpaces = fr, t.isBasicAtomic = pr, t.getIdentifier = _r, t.isTurtle = Ze, t.isAtomic = bt, t.isValueString = Vt, t.isValueNumber = nr, t.isValueBoolean = ct, t.isValueTimestamp = et, t.isValueDate = it;
|
|
51566
51566
|
function e(Oe) {
|
|
51567
51567
|
return "kids" in Oe;
|
|
51568
51568
|
}
|
|
@@ -51754,7 +51754,7 @@ ${r}}`, i;
|
|
|
51754
51754
|
function pr(Oe) {
|
|
51755
51755
|
return Oe.type === "string" || Q(Oe.type) || Oe.type === "number" || Oe.type === "boolean" || Oe.type === "json" || Oe.type === "sql native" || Oe.type === "error";
|
|
51756
51756
|
}
|
|
51757
|
-
function
|
|
51757
|
+
function _r(Oe) {
|
|
51758
51758
|
return Oe.as !== void 0 ? Oe.as : Oe.name;
|
|
51759
51759
|
}
|
|
51760
51760
|
function Ze(Oe) {
|
|
@@ -52365,8 +52365,8 @@ AND `) + i;
|
|
|
52365
52365
|
var ag = {}, Qde = {};
|
|
52366
52366
|
(function(t) {
|
|
52367
52367
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.MALLOY_STANDARD_FUNCTIONS = void 0, t.getMalloyStandardFunctions = mt, t.expandOverrideMap = Qt;
|
|
52368
|
-
const e = Hn, r = { takes: { value: "number" }, returns: "number", impl: { function: "ABS" } }, i = { takes: { value: "number" }, returns: "number", impl: { function: "ACOS" } }, s = { takes: { value: "string" }, returns: "number", impl: { function: "ASCII" } }, o = { takes: { value: "number" }, returns: "number", impl: { function: "ASIN" } }, l = { takes: { y: "number", x: "number" }, returns: "number", impl: { function: "ATAN2" } }, c = { takes: { value: "number" }, returns: "number", impl: { function: "ATAN" } }, h = { takes: { value: "string" }, returns: "number", impl: { function: "BYTE_LENGTH" } }, p = { takes: { value: "number" }, returns: "number", impl: { function: "CEIL" } }, x = { takes: { value: "number" }, returns: "string", impl: { sql: "CASE WHEN ${value} = 0 THEN '' ELSE CHR(${value}) END" } }, b = { generic: { T: ["string", "number", "timestamp", "date", "json"] }, takes: { value: { variadic: { generic: "T" } } }, returns: { generic: "T" }, impl: { function: "COALESCE" } }, A = { empty: { takes: {}, returns: "string", impl: { expr: { node: "stringLiteral", literal: "" } } }, variadic: { takes: { values: { variadic: ["string", "number", "date", "timestamp", "boolean"] } }, returns: "string", impl: { function: "CONCAT" } } }, T = { takes: { value: "number" }, returns: "number", impl: { function: "COS" } }, O = { takes: { dividend: "number", divisor: "number" }, returns: "number", impl: { function: "DIV" } }, k = { takes: { value: "string", suffix: "string" }, returns: "boolean", impl: { sql: "COALESCE(ENDS_WITH(${value}, ${suffix}), false)" } }, L = { takes: { value: "number" }, returns: "number", impl: { function: "EXP" } }, F = { takes: { value: "number" }, returns: "number", impl: { function: "FLOOR" } }, M = { generic: { T: ["string", "number", "timestamp", "date", "json"] }, takes: { values: { variadic: { generic: "T" } } }, returns: { generic: "T" }, impl: { function: "GREATEST" } }, j = { generic: { T: ["string", "number", "timestamp", "date", "json"] }, takes: { value: { generic: "T" }, default: { generic: "T" } }, returns: { generic: "T" }, impl: { function: "IFNULL" } }, U = { takes: { value: "number" }, returns: "boolean", impl: { sql: "COALESCE(IS_INF(${value}), false)" } }, G = { takes: { value: "number" }, returns: "boolean", impl: { sql: "COALESCE(IS_NAN(${value}), false)" } }, Q = { ...M, impl: { function: "LEAST" } }, V = { takes: { value: "string" }, returns: "number", impl: { function: "LENGTH" } }, Z = { takes: { value: "number" }, returns: "number", impl: { function: "LN" } }, re = { takes: { value: "number", base: "number" }, returns: "number", impl: { function: "LOG" } }, me = { takes: { value: "string" }, returns: "string", impl: { function: "LOWER" } }, ie = { whitespace: { takes: { value: "string" }, returns: "string", impl: { function: "LTRIM" } }, characters: { takes: { value: "string", trim_characters: "string" }, returns: "string", impl: { function: "LTRIM" } } }, ve = { generic: { T: ["string", "number", "timestamp", "date", "json"] }, takes: { value1: { generic: "T" }, value2: { generic: "T" } }, returns: { generic: "T" }, impl: { function: "NULLIF" } }, ye = { takes: {}, returns: "number", impl: { function: "PI" } }, Te = { takes: { base: "number", exponent: "number" }, returns: "number", impl: { function: "POW" } }, ke = { takes: {}, returns: "number", impl: { function: "RAND" } }, Me = { takes: { value: "string", pattern: "regular expression" }, returns: "string", impl: { function: "REGEXP_EXTRACT" } }, rt = { takes: { value: "string", count: "number" }, returns: "string", impl: { function: "REPEAT" } }, ft = { string: { takes: { value: "string", pattern: "string", replacement: "string" }, returns: "string", impl: { function: "REPLACE" } }, regular_expression: { takes: { value: "string", pattern: "regular expression", replacement: "string" }, returns: "string", impl: { function: "REGEXP_REPLACE" } } }, nt = { to_integer: { takes: { value: "number" }, returns: "number", impl: { function: "ROUND" } }, to_precision: { takes: { value: "number", precision: "number" }, returns: "number", impl: { function: "ROUND" } } }, We = { whitespace: { ...ie.whitespace, impl: { function: "RTRIM" } }, characters: { ...ie.characters, impl: { function: "RTRIM" } } }, Ye = { takes: { value: "number" }, returns: "number", impl: { function: "SIGN" } }, Ct = { takes: { value: "number" }, returns: "number", impl: { function: "SIN" } }, ue = { takes: { value: "number" }, returns: "number", impl: { function: "SQRT" } }, se = { takes: { value: "string", prefix: "string" }, returns: "boolean", impl: { sql: "COALESCE(STARTS_WITH(${value}, ${prefix}), false)" } }, de = { takes: { test_string: "string", search_string: "string" }, returns: "number", impl: { function: "STRPOS" } }, we = { position_only: { takes: { value: "string", position: "number" }, returns: "string", impl: { function: "SUBSTR" } }, with_length: { takes: { value: "string", position: "number", length: "number" }, returns: "string", impl: { function: "SUBSTR" } } }, qe = { takes: { value: "number" }, returns: "number", impl: { function: "TAN" } }, ce = { whitespace: { ...ie.whitespace, impl: { function: "TRIM" } }, characters: { ...ie.characters, impl: { function: "TRIM" } } }, ae = { to_integer: { takes: { value: "number" }, returns: "number", impl: { function: "TRUNC" } }, to_precision: { takes: { value: "number", precision: "number" }, returns: "number", impl: { function: "TRUNC" } } }, Ce = { takes: { value: "string" }, returns: "number", impl: { function: "UNICODE" } }, Xe = { takes: { value: "string" }, returns: "string", impl: { function: "UPPER" } }, Ae = { takes: { value: { dimension: "number" } }, returns: { measure: "number" }, impl: { function: "STDDEV" } }, $e = { preceding: { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } }, preceding: { literal: "number" } }, returns: { calculation: { generic: "T" } }, impl: { sql: "AVG(${value})", needsWindowOrderBy: !0, between: { preceding: "preceding", following: 0 } } }, following: { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } }, preceding: { literal: "number" }, following: { literal: "number" } }, returns: { calculation: { generic: "T" } }, impl: { sql: "AVG(${value})", needsWindowOrderBy: !0, between: { preceding: "preceding", following: "following" } } } }, Ee = { generic: { T: ["string", "number", "timestamp", "date", "json"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "FIRST_VALUE", needsWindowOrderBy: !0 } }, Ve = ["string", "number", "timestamp", "date", "json", "boolean"], dt = { bare: { generic: { T: Ve }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "LAG", needsWindowOrderBy: !0 } }, with_offset: { generic: { T: Ve }, takes: { value: { measure: { generic: "T" } }, offset: { literal: "number" } }, returns: { calculation: { generic: "T" } }, impl: { function: "LAG", needsWindowOrderBy: !0 } }, with_default: { generic: { T: Ve }, takes: { value: { measure: { generic: "T" } }, offset: { literal: "number" }, default: { constant: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "LAG", needsWindowOrderBy: !0 } } }, ut = { generic: { T: ["string", "number", "timestamp", "date", "json"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "LAST_VALUE", needsWindowOrderBy: !0, between: { preceding: -1, following: -1 } } }, _t = { bare: { ...dt.bare, impl: { function: "LEAD", needsWindowOrderBy: !0 } }, with_offset: { ...dt.with_offset, impl: { function: "LEAD", needsWindowOrderBy: !0 } }, with_default: { ...dt.with_default, impl: { function: "LEAD", needsWindowOrderBy: !0 } } }, yt = { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "MAX", needsWindowOrderBy: !0 } }, Dt = { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "MAX", needsWindowOrderBy: !1 } }, fr = { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "MIN", needsWindowOrderBy: !0 } }, pr = { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "MIN", needsWindowOrderBy: !1 } }, Er = { takes: {}, returns: { calculation: "number" }, impl: { function: "RANK", needsWindowOrderBy: !0 } }, Ze = { takes: {}, returns: { calculation: "number" }, impl: { function: "DENSE_RANK", needsWindowOrderBy: !0 } }, bt = { takes: {}, returns: { calculation: "number" }, impl: { function: "ROW_NUMBER", needsWindowOrderBy: !0 } }, Vt = { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "SUM", needsWindowOrderBy: !0 } }, nr = { preceding: { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } }, preceding: { literal: "number" } }, returns: { calculation: { generic: "T" } }, impl: { sql: "SUM(${value})", needsWindowOrderBy: !0, between: { preceding: "preceding", following: 0 } } }, following: { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } }, preceding: { literal: "number" }, following: { literal: "number" } }, returns: { calculation: { generic: "T" } }, impl: { sql: "SUM(${value})", needsWindowOrderBy: !0, between: { preceding: "preceding", following: "following" } } } }, ct = { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "SUM", needsWindowOrderBy: !1 } }, et = { takes: { value: { literal: "string" } }, returns: "boolean", impl: { expr: { node: "function_parameter", name: "value" } } }, it = { takes: { value: { literal: "string" } }, returns: "date", impl: { expr: { node: "function_parameter", name: "value" } } }, Oe = { takes: { value: { literal: "string" } }, returns: "number", impl: { expr: { node: "function_parameter", name: "value" } } }, ot = { takes: { value: { literal: "string" } }, returns: "string", impl: { expr: { node: "function_parameter", name: "value" } } }, wt = { takes: { value: { literal: "string" } }, returns: "timestamp", impl: { expr: { node: "function_parameter", name: "value" } } };
|
|
52369
|
-
t.MALLOY_STANDARD_FUNCTIONS = { abs: r, acos: i, ascii: s, asin: o, atan2: l, atan: c, byte_length: h, ceil: p, chr: x, coalesce: b, concat: A, cos: T, div: O, ends_with: k, exp: L, floor: F, greatest: M, ifnull: j, is_inf: U, is_nan: G, least: Q, length: V, ln: Z, log: re, lower: me, ltrim: ie, nullif: ve, pi: ye, pow: Te, rand: ke, regexp_extract: Me, replace: ft, round: nt, rtrim: We, sign: Ye, sin: Ct, sqrt: ue, starts_with: se, string_repeat: rt, strpos: de, substr: we, tan: qe, trim: ce, trunc: ae, unicode: Ce, upper: Xe, stddev: Ae, avg_moving: $e, dense_rank: Ze, first_value: Ee, lag: dt, last_value: ut, lead: _t, max_cumulative: yt, max_window: Dt, min_cumulative: fr, min_window: pr, rank:
|
|
52368
|
+
const e = Hn, r = { takes: { value: "number" }, returns: "number", impl: { function: "ABS" } }, i = { takes: { value: "number" }, returns: "number", impl: { function: "ACOS" } }, s = { takes: { value: "string" }, returns: "number", impl: { function: "ASCII" } }, o = { takes: { value: "number" }, returns: "number", impl: { function: "ASIN" } }, l = { takes: { y: "number", x: "number" }, returns: "number", impl: { function: "ATAN2" } }, c = { takes: { value: "number" }, returns: "number", impl: { function: "ATAN" } }, h = { takes: { value: "string" }, returns: "number", impl: { function: "BYTE_LENGTH" } }, p = { takes: { value: "number" }, returns: "number", impl: { function: "CEIL" } }, x = { takes: { value: "number" }, returns: "string", impl: { sql: "CASE WHEN ${value} = 0 THEN '' ELSE CHR(${value}) END" } }, b = { generic: { T: ["string", "number", "timestamp", "date", "json"] }, takes: { value: { variadic: { generic: "T" } } }, returns: { generic: "T" }, impl: { function: "COALESCE" } }, A = { empty: { takes: {}, returns: "string", impl: { expr: { node: "stringLiteral", literal: "" } } }, variadic: { takes: { values: { variadic: ["string", "number", "date", "timestamp", "boolean"] } }, returns: "string", impl: { function: "CONCAT" } } }, T = { takes: { value: "number" }, returns: "number", impl: { function: "COS" } }, O = { takes: { dividend: "number", divisor: "number" }, returns: "number", impl: { function: "DIV" } }, k = { takes: { value: "string", suffix: "string" }, returns: "boolean", impl: { sql: "COALESCE(ENDS_WITH(${value}, ${suffix}), false)" } }, L = { takes: { value: "number" }, returns: "number", impl: { function: "EXP" } }, F = { takes: { value: "number" }, returns: "number", impl: { function: "FLOOR" } }, M = { generic: { T: ["string", "number", "timestamp", "date", "json"] }, takes: { values: { variadic: { generic: "T" } } }, returns: { generic: "T" }, impl: { function: "GREATEST" } }, j = { generic: { T: ["string", "number", "timestamp", "date", "json"] }, takes: { value: { generic: "T" }, default: { generic: "T" } }, returns: { generic: "T" }, impl: { function: "IFNULL" } }, U = { takes: { value: "number" }, returns: "boolean", impl: { sql: "COALESCE(IS_INF(${value}), false)" } }, G = { takes: { value: "number" }, returns: "boolean", impl: { sql: "COALESCE(IS_NAN(${value}), false)" } }, Q = { ...M, impl: { function: "LEAST" } }, V = { takes: { value: "string" }, returns: "number", impl: { function: "LENGTH" } }, Z = { takes: { value: "number" }, returns: "number", impl: { function: "LN" } }, re = { takes: { value: "number", base: "number" }, returns: "number", impl: { function: "LOG" } }, me = { takes: { value: "string" }, returns: "string", impl: { function: "LOWER" } }, ie = { whitespace: { takes: { value: "string" }, returns: "string", impl: { function: "LTRIM" } }, characters: { takes: { value: "string", trim_characters: "string" }, returns: "string", impl: { function: "LTRIM" } } }, ve = { generic: { T: ["string", "number", "timestamp", "date", "json"] }, takes: { value1: { generic: "T" }, value2: { generic: "T" } }, returns: { generic: "T" }, impl: { function: "NULLIF" } }, ye = { takes: {}, returns: "number", impl: { function: "PI" } }, Te = { takes: { base: "number", exponent: "number" }, returns: "number", impl: { function: "POW" } }, ke = { takes: {}, returns: "number", impl: { function: "RAND" } }, Me = { takes: { value: "string", pattern: "regular expression" }, returns: "string", impl: { function: "REGEXP_EXTRACT" } }, rt = { takes: { value: "string", count: "number" }, returns: "string", impl: { function: "REPEAT" } }, ft = { string: { takes: { value: "string", pattern: "string", replacement: "string" }, returns: "string", impl: { function: "REPLACE" } }, regular_expression: { takes: { value: "string", pattern: "regular expression", replacement: "string" }, returns: "string", impl: { function: "REGEXP_REPLACE" } } }, nt = { to_integer: { takes: { value: "number" }, returns: "number", impl: { function: "ROUND" } }, to_precision: { takes: { value: "number", precision: "number" }, returns: "number", impl: { function: "ROUND" } } }, We = { whitespace: { ...ie.whitespace, impl: { function: "RTRIM" } }, characters: { ...ie.characters, impl: { function: "RTRIM" } } }, Ye = { takes: { value: "number" }, returns: "number", impl: { function: "SIGN" } }, Ct = { takes: { value: "number" }, returns: "number", impl: { function: "SIN" } }, ue = { takes: { value: "number" }, returns: "number", impl: { function: "SQRT" } }, se = { takes: { value: "string", prefix: "string" }, returns: "boolean", impl: { sql: "COALESCE(STARTS_WITH(${value}, ${prefix}), false)" } }, de = { takes: { test_string: "string", search_string: "string" }, returns: "number", impl: { function: "STRPOS" } }, we = { position_only: { takes: { value: "string", position: "number" }, returns: "string", impl: { function: "SUBSTR" } }, with_length: { takes: { value: "string", position: "number", length: "number" }, returns: "string", impl: { function: "SUBSTR" } } }, qe = { takes: { value: "number" }, returns: "number", impl: { function: "TAN" } }, ce = { whitespace: { ...ie.whitespace, impl: { function: "TRIM" } }, characters: { ...ie.characters, impl: { function: "TRIM" } } }, ae = { to_integer: { takes: { value: "number" }, returns: "number", impl: { function: "TRUNC" } }, to_precision: { takes: { value: "number", precision: "number" }, returns: "number", impl: { function: "TRUNC" } } }, Ce = { takes: { value: "string" }, returns: "number", impl: { function: "UNICODE" } }, Xe = { takes: { value: "string" }, returns: "string", impl: { function: "UPPER" } }, Ae = { takes: { value: { dimension: "number" } }, returns: { measure: "number" }, impl: { function: "STDDEV" } }, $e = { preceding: { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } }, preceding: { literal: "number" } }, returns: { calculation: { generic: "T" } }, impl: { sql: "AVG(${value})", needsWindowOrderBy: !0, between: { preceding: "preceding", following: 0 } } }, following: { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } }, preceding: { literal: "number" }, following: { literal: "number" } }, returns: { calculation: { generic: "T" } }, impl: { sql: "AVG(${value})", needsWindowOrderBy: !0, between: { preceding: "preceding", following: "following" } } } }, Ee = { generic: { T: ["string", "number", "timestamp", "date", "json"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "FIRST_VALUE", needsWindowOrderBy: !0 } }, Ve = ["string", "number", "timestamp", "date", "json", "boolean"], dt = { bare: { generic: { T: Ve }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "LAG", needsWindowOrderBy: !0 } }, with_offset: { generic: { T: Ve }, takes: { value: { measure: { generic: "T" } }, offset: { literal: "number" } }, returns: { calculation: { generic: "T" } }, impl: { function: "LAG", needsWindowOrderBy: !0 } }, with_default: { generic: { T: Ve }, takes: { value: { measure: { generic: "T" } }, offset: { literal: "number" }, default: { constant: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "LAG", needsWindowOrderBy: !0 } } }, ut = { generic: { T: ["string", "number", "timestamp", "date", "json"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "LAST_VALUE", needsWindowOrderBy: !0, between: { preceding: -1, following: -1 } } }, _t = { bare: { ...dt.bare, impl: { function: "LEAD", needsWindowOrderBy: !0 } }, with_offset: { ...dt.with_offset, impl: { function: "LEAD", needsWindowOrderBy: !0 } }, with_default: { ...dt.with_default, impl: { function: "LEAD", needsWindowOrderBy: !0 } } }, yt = { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "MAX", needsWindowOrderBy: !0 } }, Dt = { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "MAX", needsWindowOrderBy: !1 } }, fr = { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "MIN", needsWindowOrderBy: !0 } }, pr = { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "MIN", needsWindowOrderBy: !1 } }, _r = { takes: {}, returns: { calculation: "number" }, impl: { function: "RANK", needsWindowOrderBy: !0 } }, Ze = { takes: {}, returns: { calculation: "number" }, impl: { function: "DENSE_RANK", needsWindowOrderBy: !0 } }, bt = { takes: {}, returns: { calculation: "number" }, impl: { function: "ROW_NUMBER", needsWindowOrderBy: !0 } }, Vt = { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "SUM", needsWindowOrderBy: !0 } }, nr = { preceding: { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } }, preceding: { literal: "number" } }, returns: { calculation: { generic: "T" } }, impl: { sql: "SUM(${value})", needsWindowOrderBy: !0, between: { preceding: "preceding", following: 0 } } }, following: { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } }, preceding: { literal: "number" }, following: { literal: "number" } }, returns: { calculation: { generic: "T" } }, impl: { sql: "SUM(${value})", needsWindowOrderBy: !0, between: { preceding: "preceding", following: "following" } } } }, ct = { generic: { T: ["string", "number", "timestamp", "date"] }, takes: { value: { measure: { generic: "T" } } }, returns: { calculation: { generic: "T" } }, impl: { function: "SUM", needsWindowOrderBy: !1 } }, et = { takes: { value: { literal: "string" } }, returns: "boolean", impl: { expr: { node: "function_parameter", name: "value" } } }, it = { takes: { value: { literal: "string" } }, returns: "date", impl: { expr: { node: "function_parameter", name: "value" } } }, Oe = { takes: { value: { literal: "string" } }, returns: "number", impl: { expr: { node: "function_parameter", name: "value" } } }, ot = { takes: { value: { literal: "string" } }, returns: "string", impl: { expr: { node: "function_parameter", name: "value" } } }, wt = { takes: { value: { literal: "string" } }, returns: "timestamp", impl: { expr: { node: "function_parameter", name: "value" } } };
|
|
52369
|
+
t.MALLOY_STANDARD_FUNCTIONS = { abs: r, acos: i, ascii: s, asin: o, atan2: l, atan: c, byte_length: h, ceil: p, chr: x, coalesce: b, concat: A, cos: T, div: O, ends_with: k, exp: L, floor: F, greatest: M, ifnull: j, is_inf: U, is_nan: G, least: Q, length: V, ln: Z, log: re, lower: me, ltrim: ie, nullif: ve, pi: ye, pow: Te, rand: ke, regexp_extract: Me, replace: ft, round: nt, rtrim: We, sign: Ye, sin: Ct, sqrt: ue, starts_with: se, string_repeat: rt, strpos: de, substr: we, tan: qe, trim: ce, trunc: ae, unicode: Ce, upper: Xe, stddev: Ae, avg_moving: $e, dense_rank: Ze, first_value: Ee, lag: dt, last_value: ut, lead: _t, max_cumulative: yt, max_window: Dt, min_cumulative: fr, min_window: pr, rank: _r, row_number: bt, sum_cumulative: Vt, sum_moving: nr, sum_window: ct, sql_boolean: et, sql_date: it, sql_number: Oe, sql_string: ot, sql_timestamp: wt };
|
|
52370
52370
|
function mt() {
|
|
52371
52371
|
return (0, e.expandBlueprintMap)(t.MALLOY_STANDARD_FUNCTIONS);
|
|
52372
52372
|
}
|
|
@@ -55237,7 +55237,7 @@ Use (?: … ) instead`);
|
|
|
55237
55237
|
super("Zone is an abstract class");
|
|
55238
55238
|
}
|
|
55239
55239
|
}
|
|
55240
|
-
const
|
|
55240
|
+
const Er = "numeric", Gc = "short", tu = "long", TU = { year: Er, month: Er, day: Er }, Nfe = { year: Er, month: Gc, day: Er }, qXe = { year: Er, month: Gc, day: Er, weekday: Gc }, Dfe = { year: Er, month: tu, day: Er }, kfe = { year: Er, month: tu, day: Er, weekday: tu }, Lfe = { hour: Er, minute: Er }, Ife = { hour: Er, minute: Er, second: Er }, Pfe = { hour: Er, minute: Er, second: Er, timeZoneName: Gc }, Ffe = { hour: Er, minute: Er, second: Er, timeZoneName: tu }, Mfe = { hour: Er, minute: Er, hourCycle: "h23" }, jfe = { hour: Er, minute: Er, second: Er, hourCycle: "h23" }, $fe = { hour: Er, minute: Er, second: Er, hourCycle: "h23", timeZoneName: Gc }, Bfe = { hour: Er, minute: Er, second: Er, hourCycle: "h23", timeZoneName: tu }, qfe = { year: Er, month: Er, day: Er, hour: Er, minute: Er }, Ufe = { year: Er, month: Er, day: Er, hour: Er, minute: Er, second: Er }, zfe = { year: Er, month: Gc, day: Er, hour: Er, minute: Er }, Hfe = { year: Er, month: Gc, day: Er, hour: Er, minute: Er, second: Er }, UXe = { year: Er, month: Gc, day: Er, weekday: Gc, hour: Er, minute: Er }, Gfe = { year: Er, month: tu, day: Er, hour: Er, minute: Er, timeZoneName: Gc }, Wfe = { year: Er, month: tu, day: Er, hour: Er, minute: Er, second: Er, timeZoneName: Gc }, Vfe = { year: Er, month: tu, day: Er, weekday: tu, hour: Er, minute: Er, timeZoneName: tu }, Qfe = { year: Er, month: tu, day: Er, weekday: tu, hour: Er, minute: Er, second: Er, timeZoneName: tu };
|
|
55241
55241
|
function Pn(t) {
|
|
55242
55242
|
return typeof t > "u";
|
|
55243
55243
|
}
|
|
@@ -82781,7 +82781,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
82781
82781
|
function tgt(t) {
|
|
82782
82782
|
return 1 + ~~(new Date(t).getUTCMonth() / 3);
|
|
82783
82783
|
}
|
|
82784
|
-
function
|
|
82784
|
+
function vr(t) {
|
|
82785
82785
|
return t != null ? qt(t) ? t : [t] : [];
|
|
82786
82786
|
}
|
|
82787
82787
|
function rgt(t, e, r) {
|
|
@@ -82793,9 +82793,9 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
82793
82793
|
}
|
|
82794
82794
|
const ngt = "descending";
|
|
82795
82795
|
function oxe(t, e, r) {
|
|
82796
|
-
r = r || {}, e =
|
|
82796
|
+
r = r || {}, e = vr(e) || [];
|
|
82797
82797
|
const i = [], s = [], o = {}, l = r.comparator || igt;
|
|
82798
|
-
return
|
|
82798
|
+
return vr(t).forEach((c, h) => {
|
|
82799
82799
|
c != null && (i.push(e[h] === ngt ? -1 : 1), s.push(c = _n(c) ? c : nd(c, null, r)), (Ma(c) || []).forEach((p) => o[p] = 1));
|
|
82800
82800
|
}), s.length === 0 ? null : au(l(s, i), Object.keys(o));
|
|
82801
82801
|
}
|
|
@@ -82920,7 +82920,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
82920
82920
|
return typeof t == "string";
|
|
82921
82921
|
}
|
|
82922
82922
|
function uxe(t, e, r) {
|
|
82923
|
-
t && (t = e ?
|
|
82923
|
+
t && (t = e ? vr(t).map((c) => c.replace(/\\(.)/g, "$1")) : vr(t));
|
|
82924
82924
|
const i = t && t.length, s = r && r.get || Qye, o = (c) => s(e ? [c] : Sp(c));
|
|
82925
82925
|
let l;
|
|
82926
82926
|
if (!i) l = function() {
|
|
@@ -83810,7 +83810,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
83810
83810
|
}
|
|
83811
83811
|
const [o1t, a1t] = Uxe(Mf, KT, E3, qxe, IL, kL), [l1t, u1t] = Uxe(Ff, YT, v3, Np, LL, DL), na = "year", uu = "quarter", Ua = "month", co = "week", cu = "date", za = "day", Dp = "dayofyear", Vu = "hours", Qu = "minutes", sd = "seconds", jf = "milliseconds", zxe = [na, uu, Ua, co, cu, za, Dp, Vu, Qu, sd, jf], GW = zxe.reduce((t, e, r) => (t[e] = 1 + r, t), {});
|
|
83812
83812
|
function Hxe(t) {
|
|
83813
|
-
const e =
|
|
83813
|
+
const e = vr(t).slice(), r = {};
|
|
83814
83814
|
return e.length || $t("Missing time unit."), e.forEach((i) => {
|
|
83815
83815
|
Wr(GW, i) ? r[i] = 1 : $t(`Invalid time unit: ${i}.`);
|
|
83816
83816
|
}), (r[co] || r[za] ? 1 : 0) + (r[uu] || r[Ua] || r[cu] ? 1 : 0) + (r[Dp] ? 1 : 0) > 1 && $t(`Incompatible time units: ${t}`), e.sort((i, s) => GW[i] - GW[s]), e;
|
|
@@ -84562,11 +84562,11 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
84562
84562
|
const t = [], e = [], r = [], i = [], s = [];
|
|
84563
84563
|
let o = null, l = !1;
|
|
84564
84564
|
return { constructor: C3, insert(c) {
|
|
84565
|
-
const h =
|
|
84565
|
+
const h = vr(c), p = h.length;
|
|
84566
84566
|
for (let x = 0; x < p; ++x) t.push(h[x]);
|
|
84567
84567
|
return this;
|
|
84568
84568
|
}, remove(c) {
|
|
84569
|
-
const h = _n(c) ? i : e, p =
|
|
84569
|
+
const h = _n(c) ? i : e, p = vr(c), x = p.length;
|
|
84570
84570
|
for (let b = 0; b < x; ++b) h.push(p[b]);
|
|
84571
84571
|
return this;
|
|
84572
84572
|
}, modify(c, h, p) {
|
|
@@ -84644,7 +84644,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
84644
84644
|
const x = (b, A, T) => {
|
|
84645
84645
|
T instanceof Oi ? (T !== this && (e && T.targets().add(this), o.push(T)), s.push({ op: T, name: b, index: A })) : i.set(b, A, T);
|
|
84646
84646
|
};
|
|
84647
|
-
for (l in t) if (c = t[l], l === dxt)
|
|
84647
|
+
for (l in t) if (c = t[l], l === dxt) vr(c).forEach((b) => {
|
|
84648
84648
|
b instanceof Oi ? b !== this && (b.targets().add(this), o.push(b)) : $t("Pulse parameters must be operator instances.");
|
|
84649
84649
|
}), this.source = c;
|
|
84650
84650
|
else if (qt(c)) for (i.set(l, -1, Array(h = c.length)), p = 0; p < h; ++p) x(l, p, c[p]);
|
|
@@ -84748,7 +84748,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
84748
84748
|
}
|
|
84749
84749
|
};
|
|
84750
84750
|
let c;
|
|
84751
|
-
typeof t == "string" && typeof document < "u" ? c = document.querySelectorAll(t) : c =
|
|
84751
|
+
typeof t == "string" && typeof document < "u" ? c = document.querySelectorAll(t) : c = vr(t);
|
|
84752
84752
|
const h = c.length;
|
|
84753
84753
|
for (let p = 0; p < h; ++p) c[p].addEventListener(e, l);
|
|
84754
84754
|
return o;
|
|
@@ -85633,11 +85633,11 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
85633
85633
|
}, init(t) {
|
|
85634
85634
|
const e = this._inputs = [], r = this._outputs = [], i = {};
|
|
85635
85635
|
function s(M) {
|
|
85636
|
-
const j =
|
|
85636
|
+
const j = vr(Ma(M)), U = j.length;
|
|
85637
85637
|
let G = 0, Q;
|
|
85638
85638
|
for (; G < U; ++G) i[Q = j[G]] || (i[Q] = 1, e.push(Q));
|
|
85639
85639
|
}
|
|
85640
|
-
this._dims =
|
|
85640
|
+
this._dims = vr(t.groupby), this._dnames = this._dims.map((M) => {
|
|
85641
85641
|
const j = _s(M);
|
|
85642
85642
|
return s(M), r.push(j), j;
|
|
85643
85643
|
}), this.cellkey = t.key ? t.key : bV(this._dims), this._countOnly = !0, this._counts = [], this._measures = [];
|
|
@@ -85930,7 +85930,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
85930
85930
|
}
|
|
85931
85931
|
ur(_ve, Oi);
|
|
85932
85932
|
function k2t(t) {
|
|
85933
|
-
return this.value && !t.modified() ? this.value : qt(t.name) ?
|
|
85933
|
+
return this.value && !t.modified() ? this.value : qt(t.name) ? vr(t.name).map((e) => nd(e)) : nd(t.name, t.as);
|
|
85934
85934
|
}
|
|
85935
85935
|
function kV(t) {
|
|
85936
85936
|
Lt.call(this, GT(), t);
|
|
@@ -86066,7 +86066,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
86066
86066
|
}
|
|
86067
86067
|
ur(Cve, Lt, { transform(t, e) {
|
|
86068
86068
|
const r = e.dataflow;
|
|
86069
|
-
return this._pending ? $V(this, e, this._pending) : j2t(t) ? e.StopPropagation : t.values ? $V(this, e, r.parse(t.values, t.format)) : t.async ? { async: r.request(t.url, t.format).then((i) => (this._pending =
|
|
86069
|
+
return this._pending ? $V(this, e, this._pending) : j2t(t) ? e.StopPropagation : t.values ? $V(this, e, r.parse(t.values, t.format)) : t.async ? { async: r.request(t.url, t.format).then((i) => (this._pending = vr(i.data), (s) => s.touch(this))) } : r.request(t.url, t.format).then((i) => $V(this, e, vr(i.data)));
|
|
86070
86070
|
} });
|
|
86071
86071
|
function j2t(t) {
|
|
86072
86072
|
return t.modified("async") && !(t.modified("values") || t.modified("url") || t.modified("format"));
|
|
@@ -86357,10 +86357,10 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
86357
86357
|
}
|
|
86358
86358
|
const Q2t = Object.keys(vR);
|
|
86359
86359
|
function Fve(t) {
|
|
86360
|
-
const e =
|
|
86360
|
+
const e = vr(t.ops), r = vr(t.fields), i = vr(t.params), s = vr(t.aggregate_params), o = vr(t.as), l = this.outputs = [], c = this.windows = [], h = {}, p = {}, x = [], b = [];
|
|
86361
86361
|
let A = !0;
|
|
86362
86362
|
function T(O) {
|
|
86363
|
-
|
|
86363
|
+
vr(Ma(O)).forEach((k) => h[k] = 1);
|
|
86364
86364
|
}
|
|
86365
86365
|
T(t.sort), e.forEach((O, k) => {
|
|
86366
86366
|
const L = r[k], F = i[k], M = s[k] || null, j = _s(L), U = uve(O, j, o[k]);
|
|
@@ -88387,7 +88387,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
88387
88387
|
const s = e();
|
|
88388
88388
|
return s.invertRange || (s.invertRange = s.invert ? Gbt(s) : s.invertExtent ? Wbt(s) : void 0), s.type = t, bEe(s);
|
|
88389
88389
|
};
|
|
88390
|
-
return i.metadata = Pf(
|
|
88390
|
+
return i.metadata = Pf(vr(r)), i;
|
|
88391
88391
|
}
|
|
88392
88392
|
function Vn(t, e, r) {
|
|
88393
88393
|
return arguments.length > 1 ? (b9.set(t, Jbt(t, e, r)), this) : EEe(t) ? b9.get(t) : void 0;
|
|
@@ -89857,7 +89857,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
89857
89857
|
}
|
|
89858
89858
|
}
|
|
89859
89859
|
function B3e(t) {
|
|
89860
|
-
return
|
|
89860
|
+
return vr(t.text).join(" ");
|
|
89861
89861
|
}
|
|
89862
89862
|
function W_t(t) {
|
|
89863
89863
|
const e = t.datum, r = t.orient, i = e.title ? q3e(t) : null, s = t.context, o = s.scales[e.scale].value, l = s.dataflow.locale(), c = o.type;
|
|
@@ -89869,7 +89869,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
89869
89869
|
}
|
|
89870
89870
|
function q3e(t) {
|
|
89871
89871
|
try {
|
|
89872
|
-
return
|
|
89872
|
+
return vr(Mn(t.items).items[0].text).join(" ");
|
|
89873
89873
|
} catch {
|
|
89874
89874
|
return null;
|
|
89875
89875
|
}
|
|
@@ -92427,7 +92427,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
92427
92427
|
}, c.cellSize = function(h) {
|
|
92428
92428
|
return arguments.length ? ((h = +h) >= 1 || $t("invalid cell size"), l = Math.floor(Math.log(h) / Math.LN2), c) : 1 << l;
|
|
92429
92429
|
}, c.bandwidth = function(h) {
|
|
92430
|
-
return arguments.length ? (h =
|
|
92430
|
+
return arguments.length ? (h = vr(h), h.length === 1 && (h = [+h[0], +h[0]]), h.length !== 2 && $t("invalid bandwidth"), i = h, c) : i;
|
|
92431
92431
|
}, c;
|
|
92432
92432
|
}
|
|
92433
92433
|
function Y3(t, e, r, i, s) {
|
|
@@ -92585,10 +92585,10 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
92585
92585
|
_n(t[e]) && t[e](r);
|
|
92586
92586
|
}
|
|
92587
92587
|
function twt(t) {
|
|
92588
|
-
return t =
|
|
92588
|
+
return t = vr(t), t.length === 1 ? t[0] : { type: DK, features: t.reduce((e, r) => e.concat(rwt(r)), []) };
|
|
92589
92589
|
}
|
|
92590
92590
|
function rwt(t) {
|
|
92591
|
-
return t.type === DK ? t.features :
|
|
92591
|
+
return t.type === DK ? t.features : vr(t).filter((e) => e != null).map((e) => e.type === NK ? e : { type: NK, geometry: e });
|
|
92592
92592
|
}
|
|
92593
92593
|
const nwt = Object.freeze(Object.defineProperty({ __proto__: null, contour: OK, geojson: kK, geopath: LK, geopoint: IK, geoshape: PK, graticule: FK, heatmap: MK, isocontour: wK, kde2d: RK, projection: gAe }, Symbol.toStringTag, { value: "Module" }));
|
|
92594
92594
|
function iwt(t, e) {
|
|
@@ -93150,7 +93150,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
93150
93150
|
return r.stopped = () => o, r.restart = () => (o = !1, s()), r.stop = () => (o = !0, i()), NAe(r, e, !0).on("end", () => o = !0);
|
|
93151
93151
|
}
|
|
93152
93152
|
function NAe(t, e, r, i) {
|
|
93153
|
-
var s =
|
|
93153
|
+
var s = vr(e.forces), o, l, c, h;
|
|
93154
93154
|
for (o = 0, l = UK.length; o < l; ++o) c = UK[o], c !== d4 && e.modified(c) && t[c](e[c]);
|
|
93155
93155
|
for (o = 0, l = s.length; o < l; ++o) h = d4 + o, c = r || e.modified(d4, o) ? Ywt(s[o]) : i && Qwt(s[o], i) ? t.force(h) : null, c && t.force(h, c);
|
|
93156
93156
|
for (l = t.numForces || 0; o < l; ++o) t.force(d4 + o, null);
|
|
@@ -93755,7 +93755,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
93755
93755
|
var r = t.generate, i = t.modified(), s = e.clone(), o = this.value;
|
|
93756
93756
|
return (!o || i || e.changed()) && (o && o.each((l) => {
|
|
93757
93757
|
l.children && cV(l.data) && s.rem.push(l.data);
|
|
93758
|
-
}), this.value = o = HK({ values:
|
|
93758
|
+
}), this.value = o = HK({ values: vr(t.keys).reduce((l, c) => (l.key(c), l), ZTt()).entries(s.source) }, JTt), r && o.each((l) => {
|
|
93759
93759
|
l.children && (l = si(l.data), s.add.push(l), s.source.push(l));
|
|
93760
93760
|
}), XK(o, Vr, Vr)), s.source.root = o, s;
|
|
93761
93761
|
} });
|
|
@@ -94059,7 +94059,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
94059
94059
|
if (!(i || e.changed(e.ADD_REM) || r("sort"))) return;
|
|
94060
94060
|
(!t.size || t.size.length !== 2) && $t("Size parameter should be specified as a [width, height] array.");
|
|
94061
94061
|
const s = t.as || yX;
|
|
94062
|
-
return vRt(e.materialize(e.SOURCE).source || [], t.size, t.sort,
|
|
94062
|
+
return vRt(e.materialize(e.SOURCE).source || [], t.size, t.sort, vr(t.offset == null ? 1 : t.offset), vr(t.anchor || XAe), t.avoidMarks || [], t.avoidBaseMark !== !1, t.lineAnchor || "end", t.markIndex || 0, t.padding === void 0 ? 0 : t.padding, t.method || "naive").forEach((o) => {
|
|
94063
94063
|
const l = o.datum;
|
|
94064
94064
|
l[s[0]] = o.x, l[s[1]] = o.y, l[s[2]] = o.opacity, l[s[3]] = o.align, l[s[4]] = o.baseline;
|
|
94065
94065
|
}), e.reflow(i).modifies(s);
|
|
@@ -95691,8 +95691,8 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
95691
95691
|
}
|
|
95692
95692
|
function JOt(t, e, r, i) {
|
|
95693
95693
|
for (var s = this.context.data[t], o = s ? s.values.value : [], l = {}, c = {}, h = {}, p, x, b, A, T, O, k, L, F, M, j = o.length, U = 0, G, Q; U < j; ++U) if (p = o[U], A = p.unit, x = p.fields, b = p.values, x && b) {
|
|
95694
|
-
for (G = 0, Q = x.length; G < Q; ++G) T = x[G], k = l[T.field] || (l[T.field] = {}), L = k[A] || (k[A] = []), h[T.field] = F = T.type.charAt(0), M = BX[`${F}_union`], k[A] = M(L,
|
|
95695
|
-
r && (L = c[A] || (c[A] = []), L.push(
|
|
95694
|
+
for (G = 0, Q = x.length; G < Q; ++G) T = x[G], k = l[T.field] || (l[T.field] = {}), L = k[A] || (k[A] = []), h[T.field] = F = T.type.charAt(0), M = BX[`${F}_union`], k[A] = M(L, vr(b[G]));
|
|
95695
|
+
r && (L = c[A] || (c[A] = []), L.push(vr(b).reduce((V, Z, re) => (V[x[re].field] = Z, V), {})));
|
|
95696
95696
|
} else T = th, O = w4(p), k = l[T] || (l[T] = {}), L = k[A] || (k[A] = []), L.push(O), r && (L = c[A] || (c[A] = []), L.push({ [th]: O }));
|
|
95697
95697
|
if (e = e || wCe, l[th] ? l[th] = BX[`${th}_${e}`](...Object.values(l[th])) : Object.keys(l).forEach((V) => {
|
|
95698
95698
|
l[V] = Object.keys(l[V]).map((Z) => l[V][Z]).reduce((Z, re) => Z === void 0 ? re : BX[`${h[V]}_${e}`](Z, re));
|
|
@@ -95999,19 +95999,19 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
95999
95999
|
function Z5t(t) {
|
|
96000
96000
|
let e = null;
|
|
96001
96001
|
if (t) {
|
|
96002
|
-
const r =
|
|
96002
|
+
const r = vr(t.marktype), i = vr(t.markname);
|
|
96003
96003
|
e = (s) => (!r.length || r.some((o) => s.marktype === o)) && (!i.length || i.some((o) => s.name === o));
|
|
96004
96004
|
}
|
|
96005
96005
|
return e;
|
|
96006
96006
|
}
|
|
96007
96007
|
function eNt(t, e, r) {
|
|
96008
96008
|
let i = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 5;
|
|
96009
|
-
t =
|
|
96009
|
+
t = vr(t);
|
|
96010
96010
|
const s = t[t.length - 1];
|
|
96011
96011
|
return s === void 0 || Math.hypot(s[0] - e, s[1] - r) > i ? [...t, [e, r]] : t;
|
|
96012
96012
|
}
|
|
96013
96013
|
function tNt(t) {
|
|
96014
|
-
return
|
|
96014
|
+
return vr(t).reduce((e, r, i) => {
|
|
96015
96015
|
let [s, o] = r;
|
|
96016
96016
|
return e += i == 0 ? `M ${s},${o} ` : i === t.length - 1 ? " Z" : `L ${s},${o} `;
|
|
96017
96017
|
}, "");
|
|
@@ -96165,7 +96165,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
96165
96165
|
return e.fn[r] || (e.fn[r] = nd(t.$field, t.$name, e.expr.codegen));
|
|
96166
96166
|
}
|
|
96167
96167
|
function ENt(t, e) {
|
|
96168
|
-
const r = "c:" + t.$compare + "_" + t.$order, i =
|
|
96168
|
+
const r = "c:" + t.$compare + "_" + t.$order, i = vr(t.$compare).map((s) => s && s.$tupleid ? Vr : s);
|
|
96169
96169
|
return e.fn[r] || (e.fn[r] = oxe(i, t.$order, e.expr.codegen));
|
|
96170
96170
|
}
|
|
96171
96171
|
function _Nt(t, e) {
|
|
@@ -96382,7 +96382,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
96382
96382
|
return r(e.defaults, ["prevent", "allow"]), r(e, ["view", "window", "selector"]), e;
|
|
96383
96383
|
}
|
|
96384
96384
|
function ZCe(t, e, r, i) {
|
|
96385
|
-
t._eventListeners.push({ type: r, sources:
|
|
96385
|
+
t._eventListeners.push({ type: r, sources: vr(e), handler: i });
|
|
96386
96386
|
}
|
|
96387
96387
|
function GNt(t, e) {
|
|
96388
96388
|
var r = t._eventConfig.defaults, i = r.prevent, s = r.allow;
|
|
@@ -96886,7 +96886,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
96886
96886
|
let c, h, p, x;
|
|
96887
96887
|
h = "lineBreak", e === "text" && s[h] != null && !s_(h, t) && uJ(o, h, s[h]), (r == "legend" || String(r).startsWith("axis")) && (r = null), x = r === aJ ? s.group : r === oJ ? yn({}, s.mark, s[e]) : null;
|
|
96888
96888
|
for (h in x) p = s_(h, t) || (h === "fill" || h === "stroke") && (s_("fill", t) || s_("stroke", t)), p || uJ(o, h, x[h]);
|
|
96889
|
-
|
|
96889
|
+
vr(i).forEach((b) => {
|
|
96890
96890
|
const A = s.style && s.style[b];
|
|
96891
96891
|
for (const T in A) s_(T, t) || uJ(o, T, A[T]);
|
|
96892
96892
|
}), t = yn({}, t);
|
|
@@ -97053,7 +97053,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
97053
97053
|
function _7t(t, e, r) {
|
|
97054
97054
|
const i = t.encode, s = { target: r };
|
|
97055
97055
|
let o = t.events, l = t.update, c = [];
|
|
97056
|
-
o || $t("Signal update missing events specification."), Cr(o) && (o = h2(o, e.isSubscope() ? fJ : hJ)), o =
|
|
97056
|
+
o || $t("Signal update missing events specification."), Cr(o) && (o = h2(o, e.isSubscope() ? fJ : hJ)), o = vr(o).filter((h) => h.signal || h.scale ? (c.push(h), 0) : 1), c.length > 1 && (c = [A7t(c)]), o.length && c.push(o.length > 1 ? { merge: o } : o[0]), i != null && (l && $t("Signal encode and update are mutually exclusive."), l = "encode(item()," + ar(i) + ")"), s.update = Cr(l) ? nh(l, e) : l.expr != null ? nh(l.expr, e) : l.value != null ? l.value : l.signal != null ? { $expr: E7t, $params: { $value: e.signalRef(l.signal) } } : $t("Invalid signal update specification."), t.force && (s.options = { force: !0 }), c.forEach((h) => e.addUpdate(yn(S7t(h, e), s)));
|
|
97057
97057
|
}
|
|
97058
97058
|
function S7t(t, e) {
|
|
97059
97059
|
return { source: t.signal ? e.signalRef(t.signal) : t.scale ? e.scaleRef(t.scale) : I4(t, e) };
|
|
@@ -97332,7 +97332,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
97332
97332
|
const F8t = (t) => t && t.expr, M8t = (t) => t && t.field, j8t = (t) => t === "data", Zwe = (t) => t === "expr", TJ = (t) => t === "field", eTe = (t) => t === "compare";
|
|
97333
97333
|
function $8t(t, e, r) {
|
|
97334
97334
|
let i, s, o, l, c;
|
|
97335
|
-
return t ? (i = t.facet) && (e || $t("Only group marks can be faceted."), i.field != null ? l = c = IP(i, r) : (t.data ? c = Gr(r.getData(t.data).aggregate) : (o = wJ(yn({ type: "aggregate", groupby:
|
|
97335
|
+
return t ? (i = t.facet) && (e || $t("Only group marks can be faceted."), i.field != null ? l = c = IP(i, r) : (t.data ? c = Gr(r.getData(t.data).aggregate) : (o = wJ(yn({ type: "aggregate", groupby: vr(i.groupby) }, i.aggregate), r), o.params.key = r.keyRef(i.groupby), o.params.pulse = IP(i, r), l = c = Gr(r.add(o))), s = r.keyRef(i.groupby, !0))) : l = Gr(r.add(gd(null, [{}]))), l || (l = IP(t, r)), { key: s, pulse: l, parent: c };
|
|
97336
97336
|
}
|
|
97337
97337
|
function IP(t, e) {
|
|
97338
97338
|
return t.$ref ? t : t.data && t.data.$ref ? t.data : Gr(e.getData(t.data).output);
|
|
@@ -97488,7 +97488,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
97488
97488
|
function rDt(t, e, r) {
|
|
97489
97489
|
const i = [];
|
|
97490
97490
|
let s = null, o = !1, l = !1, c, h, p, x, b;
|
|
97491
|
-
for (t.values ? Ws(t.values) || TP(t.format) ? (i.push(sTe(e, t)), i.push(s = x2())) : i.push(s = x2({ $ingest: t.values, $format: t.format })) : t.url ? TP(t.url) || TP(t.format) ? (i.push(sTe(e, t)), i.push(s = x2())) : i.push(s = x2({ $request: t.url, $format: t.format })) : t.source && (s = c =
|
|
97491
|
+
for (t.values ? Ws(t.values) || TP(t.format) ? (i.push(sTe(e, t)), i.push(s = x2())) : i.push(s = x2({ $ingest: t.values, $format: t.format })) : t.url ? TP(t.url) || TP(t.format) ? (i.push(sTe(e, t)), i.push(s = x2())) : i.push(s = x2({ $request: t.url, $format: t.format })) : t.source && (s = c = vr(t.source).map((A) => Gr(e.getData(A).output)), i.push(null)), h = 0, p = r.length; h < p; ++h) x = r[h], b = x.metadata, !s && !b.source && i.push(s = x2()), i.push(x), b.generates && (l = !0), b.modifies && !l && (o = !0), b.source ? s = x : b.changes && (s = null);
|
|
97492
97492
|
return c && (p = c.length - 1, i[0] = q7t({ derive: o, pulse: p ? c : c[0] }), (o || p) && i.splice(1, 0, x2())), s || i.push(x2()), i.push(m2({})), i;
|
|
97493
97493
|
}
|
|
97494
97494
|
function x2(t) {
|
|
@@ -97621,8 +97621,8 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
97621
97621
|
return $o(r, { orient: t("orient"), offset: t("offset") || 0, position: md(e.position, 0), titlePadding: t("titlePadding"), minExtent: t("minExtent"), maxExtent: t("maxExtent"), range: { signal: `abs(span(range("${e.scale}")))` }, translate: t("translate"), format: e.format, formatType: e.formatType }), r;
|
|
97622
97622
|
}
|
|
97623
97623
|
function fTe(t, e, r) {
|
|
97624
|
-
const i =
|
|
97625
|
-
return r || i.forEach((o) => Rwe(o, e)),
|
|
97624
|
+
const i = vr(t.signals), s = vr(t.scales);
|
|
97625
|
+
return r || i.forEach((o) => Rwe(o, e)), vr(t.projections).forEach((o) => i8t(o, e)), s.forEach((o) => W7t(o, e)), vr(t.data).forEach((o) => tDt(o, e)), s.forEach((o) => V7t(o, e)), (r || i).forEach((o) => C7t(o, e)), vr(t.axes).forEach((o) => vDt(o, e)), vr(t.marks).forEach((o) => PP(o, e)), vr(t.legends).forEach((o) => z8t(o, e)), t.title && K8t(t.title, e), e.parseLambdas(), e;
|
|
97626
97626
|
}
|
|
97627
97627
|
const EDt = (t) => i_({ enter: { x: { value: 0 }, y: { value: 0 } }, update: { width: { signal: "width" }, height: { signal: "height" } } }, t);
|
|
97628
97628
|
function _Dt(t, e) {
|
|
@@ -97638,9 +97638,9 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
97638
97638
|
}
|
|
97639
97639
|
function SDt(t, e) {
|
|
97640
97640
|
const r = (l) => md(t[l], e[l]), i = [$4("background", r("background")), $4("autosize", M6t(r("autosize"))), $4("padding", $6t(r("padding"))), $4("width", r("width") || 0), $4("height", r("height") || 0)], s = i.reduce((l, c) => (l[c.name] = c, l), {}), o = {};
|
|
97641
|
-
return
|
|
97641
|
+
return vr(t.signals).forEach((l) => {
|
|
97642
97642
|
Wr(s, l.name) ? l = yn(s[l.name], l) : i.push(l), o[l.name] = l;
|
|
97643
|
-
}),
|
|
97643
|
+
}), vr(e.signals).forEach((l) => {
|
|
97644
97644
|
!Wr(o, l.name) && !Wr(s, l.name) && i.push(l);
|
|
97645
97645
|
}), i;
|
|
97646
97646
|
}
|
|
@@ -97710,12 +97710,12 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
97710
97710
|
return i;
|
|
97711
97711
|
}, compareRef(t) {
|
|
97712
97712
|
let e = !1;
|
|
97713
|
-
const r = (o) => Ws(o) ? (e = !0, this.signalRef(o.signal)) : m7t(o) ? (e = !0, this.exprRef(o.expr)) : o, i =
|
|
97713
|
+
const r = (o) => Ws(o) ? (e = !0, this.signalRef(o.signal)) : m7t(o) ? (e = !0, this.exprRef(o.expr)) : o, i = vr(t.field).map(r), s = vr(t.order).map(r);
|
|
97714
97714
|
return e ? Gr(this.add(Lwe({ fields: i, orders: s }))) : Owe(i, s);
|
|
97715
97715
|
}, keyRef(t, e) {
|
|
97716
97716
|
let r = !1;
|
|
97717
97717
|
const i = (o) => Ws(o) ? (r = !0, Gr(s[o.signal])) : o, s = this.signals;
|
|
97718
|
-
return t =
|
|
97718
|
+
return t = vr(t).map(i), r ? Gr(this.add(D7t({ fields: t, flat: e }))) : d7t(t, e);
|
|
97719
97719
|
}, sortRef(t) {
|
|
97720
97720
|
if (!t) return t;
|
|
97721
97721
|
const e = wP(t.op, t.field), r = t.order || f7t;
|
|
@@ -97890,7 +97890,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
97890
97890
|
const e = { signal: "brushMeasureIn === null || yIsBrushing ? 0 : 1" }, r = -t.axisSettings.width + t.axisSettings.yTitleSize, i = (s = 0) => `brushMeasureIn !== null ? (scale("yscale",brushMeasureIn) + ${s}) : 0`;
|
|
97891
97891
|
return { name: "y_reference_line_group", type: "group", marks: [{ name: "y_reference_lines_backdrop", type: "rect", encode: { enter: { x: { value: r - 2 }, x2: { value: 0 }, fill: { value: { x1: 1, y1: 0, x2: 1, y2: 1, gradient: "linear", stops: [{ offset: 0, color: "rgba(255,255,255,0)" }, { offset: 0.275, color: "white" }, { offset: 0.7, color: "white" }, { offset: 1, color: "rgba(255,255,255,0)" }] } }, height: { value: 40 } }, update: { y: { signal: i(-25) }, opacity: e } } }, { name: "y_reference_lines", type: "rule", encode: { enter: { x: { value: r }, x2: { signal: "width" }, stroke: { value: "black" }, strokeOpacity: { value: 0.5 }, strokeDash: { value: [4, 2] } }, update: { y: { signal: i() }, y2: { signal: i(0) }, opacity: e } } }, { name: "y_reference_line_label_backdrop", type: "text", encode: { enter: { x: { value: r }, dy: { value: -4 }, align: { value: "left" }, baseline: { value: "alphabetic" }, fill: { value: "white" }, stroke: { value: "white" }, strokeWidth: { value: 3 }, fontSize: { value: 10 }, fontWeight: { value: "normal" }, font: { signal: "referenceLineFont" }, strokeOpacity: { value: 1 } }, update: { y: { signal: i() }, text: { signal: `brushMeasureIn ? renderMalloyNumber(malloyExplore, '${t.fieldPath}', brushMeasureIn) : ''` }, opacity: e } } }, { name: "y_reference_line_label", type: "text", encode: { enter: { x: { value: r }, dy: { value: -4 }, align: { value: "left" }, baseline: { value: "alphabetic" }, fill: { value: gA }, fontSize: { value: 10 }, fontWeight: { value: "normal" }, font: { signal: "referenceLineFont" } }, update: { y: { signal: i() }, text: { signal: `brushMeasureIn ? renderMalloyNumber(malloyExplore, '${t.fieldPath}', brushMeasureIn) : ''` }, opacity: e } } }] };
|
|
97892
97892
|
}
|
|
97893
|
-
var $Dt =
|
|
97893
|
+
var $Dt = br("<a target=_blank>");
|
|
97894
97894
|
function BDt(t, e) {
|
|
97895
97895
|
const r = t.tag;
|
|
97896
97896
|
if (e.isNull()) return "∅";
|
|
@@ -97944,7 +97944,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
97944
97944
|
function jP(t) {
|
|
97945
97945
|
return t.mark.name ?? "";
|
|
97946
97946
|
}
|
|
97947
|
-
var UDt =
|
|
97947
|
+
var UDt = br("<div>");
|
|
97948
97948
|
function zDt(t) {
|
|
97949
97949
|
let e;
|
|
97950
97950
|
const [r, i] = Ue(null);
|
|
@@ -98079,7 +98079,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
98079
98079
|
.malloy-tooltip--block-value {
|
|
98080
98080
|
}
|
|
98081
98081
|
`;
|
|
98082
|
-
var GDt =
|
|
98082
|
+
var GDt = br("<malloy-modal><div>", !0, !1);
|
|
98083
98083
|
function WDt(t) {
|
|
98084
98084
|
const e = Ml();
|
|
98085
98085
|
return Ht(hy, { get mount() {
|
|
@@ -98094,7 +98094,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
98094
98094
|
}, { e: void 0, t: void 0 }), r;
|
|
98095
98095
|
} });
|
|
98096
98096
|
}
|
|
98097
|
-
var VDt =
|
|
98097
|
+
var VDt = br("<div class=malloy-tooltip>");
|
|
98098
98098
|
function QDt(t) {
|
|
98099
98099
|
const [e, r] = Ue([0, 0]), [i, s] = Ue(0), [o, l] = Ue(0), c = (p) => {
|
|
98100
98100
|
t.show && r([p.clientX, p.clientY]);
|
|
@@ -98128,7 +98128,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
98128
98128
|
} });
|
|
98129
98129
|
} });
|
|
98130
98130
|
}
|
|
98131
|
-
var YDt =
|
|
98131
|
+
var YDt = br("<div><div class=malloy-tooltip--header></div><div class=malloy-tooltip--grid>"), KDt = br("<div class=malloy-tooltip--title>"), XDt = br("<div class=malloy-tooltip--entry-color><div class=malloy-tooltip--color-circle>"), JDt = br("<div class=malloy-tooltip--list-item-row><div class=malloy-tooltip--entry-label></div><div class=malloy-tooltip--entry-value>"), ZDt = br("<div class=malloy-tooltip--block-row><div class=malloy-tooltip--block-label></div><div class=malloy-tooltip--block-value>"), ekt = br("<div class=malloy-tooltip--grid-row>");
|
|
98132
98132
|
function tkt(t) {
|
|
98133
98133
|
const [e, r] = Ue(!1), i = () => t.data.entries.reduce((o, l) => ({ highlight: o.highlight || l.highlight, color: o.color || !!l.color }), { highlight: !1, color: !1 });
|
|
98134
98134
|
let s;
|
|
@@ -98229,7 +98229,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
98229
98229
|
overflow: hidden;
|
|
98230
98230
|
}
|
|
98231
98231
|
`;
|
|
98232
|
-
var rkt =
|
|
98232
|
+
var rkt = br('<svg xmlns=http://www.w3.org/2000/svg fill=none viewBox="0 0 24 24"stroke-width=1.5 stroke=currentColor class=malloy-chart_debug_icon><path stroke-linecap=round stroke-linejoin=round d="M11.42 15.17 17.25 21A2.652 2.652 0 0 0 21 17.25l-5.877-5.877M11.42 15.17l2.496-3.03c.317-.384.74-.626 1.208-.766M11.42 15.17l-4.655 5.653a2.548 2.548 0 1 1-3.586-3.586l6.837-5.63m5.108-.233c.55-.164 1.163-.188 1.743-.14a4.5 4.5 0 0 0 4.486-6.336l-3.276 3.277a3.004 3.004 0 0 1-2.25-2.25l3.276-3.276a4.5 4.5 0 0 0-6.336 4.486c.091 1.076-.071 2.264-.904 2.95l-.102.085m-1.745 1.437L5.909 7.5H4.5L2.25 3.75l1.5-1.5L7.5 4.5v1.409l4.26 4.26m-1.745 1.437 1.745-1.437m6.615 8.206L15.75 15.75M4.867 19.125h.008v.008h-.008v-.008Z">');
|
|
98233
98233
|
function nkt() {
|
|
98234
98234
|
return rkt();
|
|
98235
98235
|
}
|
|
@@ -98253,14 +98253,14 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
98253
98253
|
line-height: 1.5;
|
|
98254
98254
|
}
|
|
98255
98255
|
`;
|
|
98256
|
-
var okt =
|
|
98256
|
+
var okt = br("<div class=malloy-error-message>");
|
|
98257
98257
|
function CTe(t) {
|
|
98258
98258
|
return Ml().addCSSToShadowRoot(skt), (() => {
|
|
98259
98259
|
var e = okt();
|
|
98260
98260
|
return Rr(e, () => t.message), e;
|
|
98261
98261
|
})();
|
|
98262
98262
|
}
|
|
98263
|
-
var akt = {}, lkt =
|
|
98263
|
+
var akt = {}, lkt = br("<div class=malloy-chart__titles-bar>"), ukt = br("<button class=malloy-chart_debug_menu>"), ckt = br("<div class=malloy-chart><div class=malloy-chart__container>"), dkt = br("<div class=malloy-chart__title>"), wTe = br("<div class=malloy-chart__subtitle><div>");
|
|
98264
98264
|
let TTe = !1;
|
|
98265
98265
|
try {
|
|
98266
98266
|
const t = akt.IS_STORYBOOK;
|
|
@@ -99167,7 +99167,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
99167
99167
|
}, query: h, whereClause: o, stableQuery: c, stableDrillClauses: l };
|
|
99168
99168
|
r ? r(p) : await p.copyQueryToClipboard();
|
|
99169
99169
|
}
|
|
99170
|
-
var Fkt =
|
|
99170
|
+
var Fkt = br("<div class=cell-content>"), Mkt = br('<div class="column-cell th">'), jkt = br('<div class="column-cell td">'), $kt = br("<div style=position:sticky;left:0px;height:0px;visibility:hidden;>"), Bkt = br("<div style=position:sticky;top:0px;left:0px;height:0px;visibility:hidden;>"), qkt = br("<div class=pinned-header-row>"), Ukt = br("<div class=table-row><div class=table-row>"), PJ = br("<div class=table-row>"), zkt = br('<div class="table-row limit-row table-gutter-left table-gutter-right">Limiting nested table to <!> records'), Hkt = br("<div class=malloy-table>"), Gkt = br("<div class=pinned-header-subrow>");
|
|
99171
99171
|
const Wkt = navigator.userAgent.toLowerCase().indexOf("chrome") >= 0, $Te = (t) => {
|
|
99172
99172
|
const e = () => {
|
|
99173
99173
|
const s = v2().layout, o = t.field.tag.tag("column"), l = s.fieldLayout(t.field).width, c = s.fieldLayout(t.field).height, h = {};
|
|
@@ -99423,7 +99423,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
99423
99423
|
} });
|
|
99424
99424
|
};
|
|
99425
99425
|
Yi(["click"]);
|
|
99426
|
-
var Ykt =
|
|
99426
|
+
var Ykt = br('<div class=malloy-list style="text-wrap:wrap;line-height:calc(var(--malloy-render--table-row-height) * 5 / 7 - 1px);">'), Kkt = br("<span>");
|
|
99427
99427
|
function Xkt(t) {
|
|
99428
99428
|
if (t.dataColumn.isNull()) return "∅";
|
|
99429
99429
|
const e = t.tag.tag("list"), r = t.tag.tag("list_detail");
|
|
@@ -99439,7 +99439,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
99439
99439
|
})() })), h;
|
|
99440
99440
|
})();
|
|
99441
99441
|
}
|
|
99442
|
-
var Jkt =
|
|
99442
|
+
var Jkt = br("<img>");
|
|
99443
99443
|
function Zkt(t) {
|
|
99444
99444
|
var e;
|
|
99445
99445
|
const r = t.tag.tag("image");
|
|
@@ -99552,7 +99552,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
99552
99552
|
}
|
|
99553
99553
|
}
|
|
99554
99554
|
`;
|
|
99555
|
-
var tLt =
|
|
99555
|
+
var tLt = br("<div class=dashboard-item><div class=dashboard-item-title></div><div class=dashboard-item-value>"), rLt = br("<div><div>"), nLt = br("<div class=malloy-dashboard>"), UTe = br("<div class=dashboard-row><div class=dashboard-row-header><div class=dashboard-row-header-dimension-list></div><div class=dashboard-row-header-separator>"), zTe = br("<div class=dashboard-dimension-wrapper><div class=dashboard-dimension-name></div><div class=dashboard-dimension-value>"), HTe = br("<div class=dashboard-row-body>");
|
|
99556
99556
|
function GTe(t) {
|
|
99557
99557
|
const e = Ml(), r = () => e.dashboardConfig().disableVirtualization ? !1 : !!t.maxTableHeight, i = t.row.column(t.field.name), s = t.field.tag, o = k1({ dataColumn: i, tag: s, customProps: { table: { disableVirtualization: !r() } } }), l = (p) => {
|
|
99558
99558
|
e.onClick && e.onClick({ field: t.field, displayValue: typeof o.renderValue != "function" ? o.renderValue : null, value: i.value, fieldPath: t.field.path, isHeader: !1, event: p, type: "dashboard-item" });
|
|
@@ -100408,7 +100408,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
100408
100408
|
return vRe(t, xRe(e), r);
|
|
100409
100409
|
}
|
|
100410
100410
|
function vRe(t, e, r) {
|
|
100411
|
-
e =
|
|
100411
|
+
e = vr(e);
|
|
100412
100412
|
let i;
|
|
100413
100413
|
for (const s of e) {
|
|
100414
100414
|
const o = r[s];
|
|
@@ -100417,7 +100417,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
100417
100417
|
return i;
|
|
100418
100418
|
}
|
|
100419
100419
|
function bRe(t, e) {
|
|
100420
|
-
return
|
|
100420
|
+
return vr(t).reduce((r, i) => {
|
|
100421
100421
|
var s;
|
|
100422
100422
|
return r.field.push(dr(i, e)), r.order.push((s = i.sort) !== null && s !== void 0 ? s : "ascending"), r;
|
|
100423
100423
|
}, { field: [], order: [] });
|
|
@@ -100430,7 +100430,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
100430
100430
|
}), r;
|
|
100431
100431
|
}
|
|
100432
100432
|
function _Re(t, e) {
|
|
100433
|
-
return Kp(t, e) || !e ? t : t ? [...
|
|
100433
|
+
return Kp(t, e) || !e ? t : t ? [...vr(t), ...vr(e)].join(", ") : e;
|
|
100434
100434
|
}
|
|
100435
100435
|
function SRe(t, e) {
|
|
100436
100436
|
const r = t.value, i = e.value;
|
|
@@ -101677,7 +101677,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
101677
101677
|
Kt(LRe("encoding", { fill: "fill" in t, stroke: "stroke" in t }));
|
|
101678
101678
|
continue;
|
|
101679
101679
|
}
|
|
101680
|
-
if (o === V4 || o === W4 && !qt(l) && !Ad(l) || o === _2 && qt(l)) l && (s[o] =
|
|
101680
|
+
if (o === V4 || o === W4 && !qt(l) && !Ad(l) || o === _2 && qt(l)) l && (s[o] = vr(l).reduce((c, h) => (cr(h) ? c.push(PZ(h, o)) : Kt(tZ(h, o)), c), []));
|
|
101681
101681
|
else {
|
|
101682
101682
|
if (o === _2 && l === null) s[o] = null;
|
|
101683
101683
|
else if (!cr(l) && !gh(l) && !Ad(l) && !mF(l) && !qr(l)) {
|
|
@@ -101700,7 +101700,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
101700
101700
|
function APt(t) {
|
|
101701
101701
|
const e = [];
|
|
101702
101702
|
for (const r of Yt(t)) if (D2(t, r)) {
|
|
101703
|
-
const i = t[r], s =
|
|
101703
|
+
const i = t[r], s = vr(i);
|
|
101704
101704
|
for (const o of s) cr(o) ? e.push(o) : gF(o) && e.push(o.condition);
|
|
101705
101705
|
}
|
|
101706
101706
|
return e;
|
|
@@ -101748,7 +101748,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
101748
101748
|
case V4:
|
|
101749
101749
|
case KP: {
|
|
101750
101750
|
const s = e[i];
|
|
101751
|
-
if (qt(s) || cr(s)) for (const o of
|
|
101751
|
+
if (qt(s) || cr(s)) for (const o of vr(s)) o.aggregate || r.push(dr(o, {}));
|
|
101752
101752
|
return r;
|
|
101753
101753
|
}
|
|
101754
101754
|
case rm:
|
|
@@ -102221,7 +102221,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
102221
102221
|
const A = kLt.reduce((O, k) => {
|
|
102222
102222
|
if (k !== "tooltip" && D2(e, k)) {
|
|
102223
102223
|
const L = e[k];
|
|
102224
|
-
for (const F of
|
|
102224
|
+
for (const F of vr(L)) {
|
|
102225
102225
|
const M = xh(F);
|
|
102226
102226
|
if (M.aggregate) continue;
|
|
102227
102227
|
const j = dr(M, {});
|
|
@@ -102985,7 +102985,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
102985
102985
|
let M = rs(`${s}_${F}`);
|
|
102986
102986
|
for (let j = 1; h.has(M); j++) M = rs(`${s}_${F}_${j}`);
|
|
102987
102987
|
return h.add(M), { [L]: M };
|
|
102988
|
-
}, x = e.type, b = t.config.selection[x], A = r.value !== void 0 ?
|
|
102988
|
+
}, x = e.type, b = t.config.selection[x], A = r.value !== void 0 ? vr(r.value) : null;
|
|
102989
102989
|
let { fields: T, encodings: O } = Nr(r.select) ? r.select : {};
|
|
102990
102990
|
if (!T && !O && A) {
|
|
102991
102991
|
for (const k of A) if (Nr(k)) for (const L of Yt(k)) RLt(L) ? (O || (O = [])).push(L) : x === "interval" ? (Kt(l9t), O = b.encodings) : (T || (T = [])).push(L);
|
|
@@ -103082,7 +103082,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
103082
103082
|
const x = `!event.item || event.item.mark.name !== ${ar(i + I_)}`;
|
|
103083
103083
|
LOe(e, (b, A) => {
|
|
103084
103084
|
var T, O;
|
|
103085
|
-
const k =
|
|
103085
|
+
const k = vr((T = (O = A.between[0]).filter) !== null && T !== void 0 ? T : O.filter = []);
|
|
103086
103086
|
return k.includes(x) || k.push(x), b;
|
|
103087
103087
|
});
|
|
103088
103088
|
}
|
|
@@ -103123,7 +103123,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
103123
103123
|
function P_(t, e, r, i) {
|
|
103124
103124
|
const s = mF(e) && e.condition, o = i(e);
|
|
103125
103125
|
if (s) {
|
|
103126
|
-
const l =
|
|
103126
|
+
const l = vr(s).map((c) => {
|
|
103127
103127
|
const h = i(c);
|
|
103128
103128
|
if (sPt(c)) {
|
|
103129
103129
|
const { param: p, empty: x } = c, b = g5e(t, { param: p, empty: x });
|
|
@@ -103167,7 +103167,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
103167
103167
|
function POe(t, e, r, { reactiveGeom: i } = {}) {
|
|
103168
103168
|
const s = {}, o = i ? "datum.datum" : "datum", l = [];
|
|
103169
103169
|
function c(p, x) {
|
|
103170
|
-
const b = S2(x), A = lc(p) ? p : Object.assign(Object.assign({}, p), { type: t[b].type }), T = A.title || IZ(A, r), O =
|
|
103170
|
+
const b = S2(x), A = lc(p) ? p : Object.assign(Object.assign({}, p), { type: t[b].type }), T = A.title || IZ(A, r), O = vr(T).join(", ");
|
|
103171
103171
|
let k;
|
|
103172
103172
|
if (Bo(x)) {
|
|
103173
103173
|
const L = x === "x" ? "x2" : "y2", F = xh(t[L]);
|
|
@@ -103381,7 +103381,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
103381
103381
|
const { config: i, mark: s, markDef: o } = t;
|
|
103382
103382
|
if (ai("invalid", o, i) === "hide" && r && !E1(s)) {
|
|
103383
103383
|
const l = RMt(t, { invalid: !0, channels: tF });
|
|
103384
|
-
if (l) return { [e]: [{ test: l, value: null }, ...
|
|
103384
|
+
if (l) return { [e]: [{ test: l, value: null }, ...vr(r)] };
|
|
103385
103385
|
}
|
|
103386
103386
|
return r ? { [e]: r } : {};
|
|
103387
103387
|
}
|
|
@@ -103484,9 +103484,9 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
103484
103484
|
const s = cn(r);
|
|
103485
103485
|
if (s.select = Cr(s.select) ? { type: s.select, toggle: e.toggle } : Object.assign(Object.assign({}, s.select), { toggle: e.toggle }), e5e(e, s), Nr(r.select) && (r.select.on || r.select.clear)) {
|
|
103486
103486
|
const c = 'event.item && indexof(event.item.mark.role, "legend") < 0';
|
|
103487
|
-
for (const h of e.events) h.filter =
|
|
103487
|
+
for (const h of e.events) h.filter = vr((i = h.filter) !== null && i !== void 0 ? i : []), h.filter.includes(c) || h.filter.push(c);
|
|
103488
103488
|
}
|
|
103489
|
-
const o = WZ(e.bind) ? e.bind.legend : "click", l = Cr(o) ? h2(o, "view") :
|
|
103489
|
+
const o = WZ(e.bind) ? e.bind.legend : "click", l = Cr(o) ? h2(o, "view") : vr(o);
|
|
103490
103490
|
e.bind = { legend: { merge: l } };
|
|
103491
103491
|
}, topLevelSignals: (t, e, r) => {
|
|
103492
103492
|
const i = e.name, s = WZ(e.bind) && e.bind.legend, o = (l) => (c) => {
|
|
@@ -104078,7 +104078,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
104078
104078
|
for (const o of e) {
|
|
104079
104079
|
const l = rs(o.name), c = o.select, h = Cr(c) ? c : c.type, p = Nr(c) ? cn(c) : { type: h }, x = s[h];
|
|
104080
104080
|
for (const A in x) A === "fields" || A === "encodings" || (A === "mark" && (p[A] = Object.assign(Object.assign({}, x[A]), p[A])), (p[A] === void 0 || p[A] === !0) && (p[A] = (r = x[A]) !== null && r !== void 0 ? r : p[A]));
|
|
104081
|
-
const b = i[l] = Object.assign(Object.assign({}, p), { name: l, type: h, init: o.value, bind: o.bind, events: Cr(p.on) ? h2(p.on, "scope") :
|
|
104081
|
+
const b = i[l] = Object.assign(Object.assign({}, p), { name: l, type: h, init: o.value, bind: o.bind, events: Cr(p.on) ? h2(p.on, "scope") : vr(cn(p.on)) });
|
|
104082
104082
|
for (const A of FF) A.defined(b) && A.parse && A.parse(t, b, o);
|
|
104083
104083
|
}
|
|
104084
104084
|
return i;
|
|
@@ -104144,7 +104144,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
104144
104144
|
const k = vPt[O], L = T[O];
|
|
104145
104145
|
if (k && k !== e && k !== "both") delete T[O];
|
|
104146
104146
|
else if (tO(L)) {
|
|
104147
|
-
const { condition: F } = L, M = HF(L, ["condition"]), j =
|
|
104147
|
+
const { condition: F } = L, M = HF(L, ["condition"]), j = vr(F), U = O4e[O];
|
|
104148
104148
|
if (U) {
|
|
104149
104149
|
const { vgProp: G, part: Q } = U, V = [...j.map((Z) => {
|
|
104150
104150
|
const { test: re } = Z, me = HF(Z, ["test"]);
|
|
@@ -104223,7 +104223,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
104223
104223
|
for (const s of t) {
|
|
104224
104224
|
let o = (r = e[s]) === null || r === void 0 ? void 0 : r.style;
|
|
104225
104225
|
if (o) {
|
|
104226
|
-
o =
|
|
104226
|
+
o = vr(o);
|
|
104227
104227
|
for (const l of o) i.push(e.style[l]);
|
|
104228
104228
|
}
|
|
104229
104229
|
}
|
|
@@ -104584,7 +104584,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
104584
104584
|
return P5e(t, (e, r) => Vs(e, r.value));
|
|
104585
104585
|
}
|
|
104586
104586
|
function P5e(t, e) {
|
|
104587
|
-
if (aPt(t)) return
|
|
104587
|
+
if (aPt(t)) return vr(t.condition).reduce(e, t.value);
|
|
104588
104588
|
if (Ad(t)) return t.value;
|
|
104589
104589
|
}
|
|
104590
104590
|
function F5e(t, e, r) {
|
|
@@ -106847,14 +106847,14 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
106847
106847
|
return /* @__PURE__ */ new Set([this.transform.lookup]);
|
|
106848
106848
|
}
|
|
106849
106849
|
producedFields() {
|
|
106850
|
-
return new Set(this.transform.as ?
|
|
106850
|
+
return new Set(this.transform.as ? vr(this.transform.as) : this.transform.from.fields);
|
|
106851
106851
|
}
|
|
106852
106852
|
hash() {
|
|
106853
106853
|
return `Lookup ${$n({ transform: this.transform, secondary: this.secondary })}`;
|
|
106854
106854
|
}
|
|
106855
106855
|
assemble() {
|
|
106856
106856
|
let e;
|
|
106857
|
-
if (this.transform.from.fields) e = Object.assign({ values: this.transform.from.fields }, this.transform.as ? { as:
|
|
106857
|
+
if (this.transform.from.fields) e = Object.assign({ values: this.transform.from.fields }, this.transform.as ? { as: vr(this.transform.as) } : {});
|
|
106858
106858
|
else {
|
|
106859
106859
|
let r = this.transform.as;
|
|
106860
106860
|
Cr(r) || (Kt(p9t), r = "_lookup"), e = { as: [r] };
|
|
@@ -107917,7 +107917,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
107917
107917
|
}
|
|
107918
107918
|
assembleGroupStyle() {
|
|
107919
107919
|
const e = /* @__PURE__ */ new Set();
|
|
107920
|
-
for (const i of this.children) for (const s of
|
|
107920
|
+
for (const i of this.children) for (const s of vr(i.assembleGroupStyle())) e.add(s);
|
|
107921
107921
|
const r = Array.from(e);
|
|
107922
107922
|
return r.length > 1 ? r : r.length === 1 ? r[0] : void 0;
|
|
107923
107923
|
}
|
|
@@ -108374,7 +108374,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
108374
108374
|
};
|
|
108375
108375
|
ute.instance = new ute();
|
|
108376
108376
|
let iGt = ute;
|
|
108377
|
-
var sGt =
|
|
108377
|
+
var sGt = br("<div>");
|
|
108378
108378
|
const oGt = [XHt.instance, ZHt.instance, rGt.instance, iGt.instance];
|
|
108379
108379
|
function aGt(t) {
|
|
108380
108380
|
var e;
|
|
@@ -108470,24 +108470,24 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
108470
108470
|
const o = U0t(t), l = o.xChannel.fields.at(0), c = o.yChannel.fields.at(0), h = o.seriesChannel.fields.at(0);
|
|
108471
108471
|
if (!l) throw new Error("Malloy Bar Chart: Missing x field");
|
|
108472
108472
|
if (!c) throw new Error("Malloy Bar Chart: Missing y field");
|
|
108473
|
-
const p = t.fieldAt(l), x = p.isTime(), b = t.fieldAt(c), A = h ? t.fieldAt(h) : null, T = p.referenceId, O = b.referenceId, k = A && A.referenceId, L = o.yChannel.fields.reduce((pr,
|
|
108474
|
-
const Ze = t.fieldAt(
|
|
108475
|
-
return { ...pr, [
|
|
108473
|
+
const p = t.fieldAt(l), x = p.isTime(), b = t.fieldAt(c), A = h ? t.fieldAt(h) : null, T = p.referenceId, O = b.referenceId, k = A && A.referenceId, L = o.yChannel.fields.reduce((pr, _r) => {
|
|
108474
|
+
const Ze = t.fieldAt(_r);
|
|
108475
|
+
return { ...pr, [_r]: Ze.referenceId };
|
|
108476
108476
|
}, {}), F = cGt(L), M = !!A, j = o.yChannel.fields.length > 1, U = M || j, G = "brush-x_" + crypto.randomUUID(), Q = "brush-series_" + crypto.randomUUID(), V = "brush-measure_" + crypto.randomUUID();
|
|
108477
108477
|
"" + crypto.randomUUID();
|
|
108478
108478
|
const Z = U && !o.isStack, re = U && o.isStack;
|
|
108479
108479
|
let me = 1 / 0, ie = -1 / 0;
|
|
108480
108480
|
for (const pr of o.yChannel.fields) {
|
|
108481
|
-
const
|
|
108481
|
+
const _r = t.fieldAt(pr), Ze = _r.minNumber;
|
|
108482
108482
|
Ze !== void 0 && (me = Math.min(me, Ze));
|
|
108483
|
-
const bt =
|
|
108483
|
+
const bt = _r.maxNumber;
|
|
108484
108484
|
bt !== void 0 && (ie = Math.max(ie, bt));
|
|
108485
108485
|
}
|
|
108486
108486
|
const ve = Math.min(0, me), ye = Math.max(0, ie), Te = vTe(t, s, { metadata: e, xField: p, yField: b, chartType: "bar_chart", getYMinMax: () => [ve, ye], independentY: s.has("y", "independent") }), ke = dGt({ xField: p, seriesField: A, isGrouping: Z, chartSettings: Te, chartTag: s });
|
|
108487
108487
|
let Me = "";
|
|
108488
108488
|
for (const pr of ke.barValuesToPlot) {
|
|
108489
|
-
const
|
|
108490
|
-
|
|
108489
|
+
const _r = pr.toString();
|
|
108490
|
+
_r.length > Me.length && (Me = _r);
|
|
108491
108491
|
}
|
|
108492
108492
|
const rt = gTe({ maxString: Me, chartHeight: Te.plotHeight, chartWidth: Te.plotWidth, xField: p, parentField: t, parentTag: i }), ft = ke.barValuesToPlot.length <= 20, nt = s.text("x", "independent") === "false", We = s.has("x", "independent") && !nt, Ye = nt || ft && !We, Ct = A && ke.seriesValuesToPlot.length <= 20, ue = s.text("series", "independent") === "false", se = s.has("series", "independent") && !ue, de = ue || Ct && !se, we = Te.yAxis.hidden ? null : bTe({ type: "y", title: o.yChannel.fields.map((pr) => t.fieldAt(pr).name).join(", "), tickCount: Te.yAxis.tickCount ?? "ceil(height/40)", labelLimit: Te.yAxis.width + 10, fieldPath: c, axisSettings: Te.yAxis }), qe = 0.25, ce = 0, ae = { signal: "" };
|
|
108493
108493
|
let Ce = {};
|
|
@@ -108506,24 +108506,24 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
108506
108506
|
let yt = 0;
|
|
108507
108507
|
if (U) {
|
|
108508
108508
|
M ? (yt = ((r = A.maxString) == null ? void 0 : r.length) ?? 0, yt = Math.max(yt, A.name.length)) : yt = o.yChannel.fields.reduce((Ze, bt) => Math.max(Ze, bt.length), yt);
|
|
108509
|
-
const pr = Math.min(uGt, Te.totalWidth * lGt, yt * 10 + 32),
|
|
108510
|
-
_t.padding.right = pr, _t.legends.push({ fill: "color", title: A ? A.name : "", orient: "right", ...
|
|
108509
|
+
const pr = Math.min(uGt, Te.totalWidth * lGt, yt * 10 + 32), _r = { titleLimit: pr - 20, labelLimit: pr - 40, padding: 8, offset: 4 };
|
|
108510
|
+
_t.padding.right = pr, _t.legends.push({ fill: "color", title: A ? A.name : "", orient: "right", ..._r, encode: { entries: { name: "legend_entries", interactive: !0 }, labels: { name: "legend_labels", interactive: !0, update: { fillOpacity: [{ test: "brushSeriesIn === datum.value", value: 1 }, { test: "brushSeriesIn && brushSeriesIn != datum.value", value: 0.35 }, ...j ? [{ test: "length(brushMeasureListIn) > 0 && indexof(brushMeasureListIn, datum.value) > -1", value: 1 }, { test: "length(brushMeasureListIn) > 0 && indexof(brushMeasureListIn, datum.value) === -1", value: 0.35 }] : [], { value: 1 }] } }, symbols: { name: "legend_symbols", interactive: !0, update: { fillOpacity: [{ test: "brushSeriesIn === datum.value", value: 1 }, { test: "brushSeriesIn && brushSeriesIn != datum.value", value: 0.35 }, { value: 1 }] } } } });
|
|
108511
108511
|
}
|
|
108512
108512
|
const Dt = (pr) => {
|
|
108513
|
-
const
|
|
108513
|
+
const _r = (it) => {
|
|
108514
108514
|
const Oe = it.column(p.name);
|
|
108515
108515
|
return Oe.isTime() ? Oe.value.valueOf() : Oe.value;
|
|
108516
|
-
}, Ze = /* @__PURE__ */ new Set(), bt = (it) => Ye ? !ke.barValuesToPlot.includes(it ?? qs) || x && it === null : Ze.size >= ke.barLimit && !Ze.has(it) ? !0 : (Ze.add(it), !1), Vt = (it) => j ? !1 : de ? !!(A && M && !ke.seriesValuesToPlot.includes(it)) : nr.size >= ke.seriesLimit && !nr.has(it) ? !0 : (nr.add(it), !1), nr = /* @__PURE__ */ new Set(), ct = (it) => bt(
|
|
108516
|
+
}, Ze = /* @__PURE__ */ new Set(), bt = (it) => Ye ? !ke.barValuesToPlot.includes(it ?? qs) || x && it === null : Ze.size >= ke.barLimit && !Ze.has(it) ? !0 : (Ze.add(it), !1), Vt = (it) => j ? !1 : de ? !!(A && M && !ke.seriesValuesToPlot.includes(it)) : nr.size >= ke.seriesLimit && !nr.has(it) ? !0 : (nr.add(it), !1), nr = /* @__PURE__ */ new Set(), ct = (it) => bt(_r(it)) || (A ? Vt(it.column(A.name).value ?? qs) : !1), et = [];
|
|
108517
108517
|
for (let it = 0; it < pr.rows.length; it++) {
|
|
108518
|
-
const Oe = pr.rows[it], ot =
|
|
108518
|
+
const Oe = pr.rows[it], ot = _r(Oe), wt = A ? Oe.column(A.name).value ?? qs : b.name;
|
|
108519
108519
|
ct(Oe) || et.push({ __values: Oe.allCellValues(), __row: Oe, x: ot ?? qs, y: Oe.column(b.name).value, series: wt });
|
|
108520
108520
|
}
|
|
108521
108521
|
return { data: et, isDataLimited: pr.rows.length > et.length };
|
|
108522
108522
|
}, fr = /* @__PURE__ */ new Map();
|
|
108523
|
-
return { spec: _t, plotWidth: Te.plotWidth, plotHeight: Te.plotHeight, totalWidth: Te.totalWidth, totalHeight: Te.totalHeight, chartType: "bar_chart", chartTag: s, mapMalloyDataToChartData: Dt, getTooltipData: (pr,
|
|
108523
|
+
return { spec: _t, plotWidth: Te.plotWidth, plotHeight: Te.plotHeight, totalWidth: Te.totalWidth, totalHeight: Te.totalHeight, chartType: "bar_chart", chartTag: s, mapMalloyDataToChartData: Dt, getTooltipData: (pr, _r) => {
|
|
108524
108524
|
if (fr.has(pr)) return fr.get(pr);
|
|
108525
108525
|
let Ze = null, bt = [];
|
|
108526
|
-
const Vt =
|
|
108526
|
+
const Vt = _r.scale("color"), nr = (Oe) => {
|
|
108527
108527
|
const ot = M ? b : t.fieldAt(A ? bp.pathFromString(Oe.series) : [Oe.series]), wt = Oe.y;
|
|
108528
108528
|
return ot.isBasic() ? f_(ot, wt) : String(wt);
|
|
108529
108529
|
};
|
|
@@ -108618,9 +108618,9 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
108618
108618
|
const Dt = ce ? ce.interactiveSignals : [], fr = [{ name: "malloyExplore" }, { name: "hasNullTimeValues", value: T }, { name: "mainPlotWidth", update: "hasNullTimeValues ? clamp(0.95*width, width-48, width-32) : width" }, { name: "nullPlotStart", update: "hasNullTimeValues ? mainPlotWidth + 16 : 0" }, { name: "xFieldRefId", value: F }, { name: "seriesFieldRefId", value: j }, { name: "measureFieldRefId", value: M }, { name: "yRefsMap", value: U }, { name: "yRefToFieldPath", value: G }, { name: "yRefsList", value: Object.values(U) }, { name: "brushXSourceId", value: re }, { name: "brushSeriesSourceId", value: me }, { name: "brushMeasureSourceId", value: ie }, { name: "brushIn", value: [] }, { name: "brushXIn", update: "getMalloyBrush(brushIn, xFieldRefId)" }, { name: "brushSeriesIn", update: "getMalloyBrush(brushIn, seriesFieldRefId)" }, { name: "brushMeasureIn", update: "getMalloyBrush(brushIn, yRefsList, 'measure') || null" }, { name: "brushMeasureRangeIn", update: "getMalloyBrush(brushIn, measureFieldRefId, 'measure-range') || null" }, { name: "brushMeasureListIn", update: V ? "pluck(getMalloyMeasureBrushes(brushIn, yRefsList, yRefToFieldPath),'fieldPath')" : "[]" }];
|
|
108619
108619
|
o.interactive && fr.push({ name: "brushX", on: F ? [{ events: "@x_hit_target:mouseover", update: "{ fieldRefId: xFieldRefId, value: [datum.datum.x], sourceId: brushXSourceId, type: 'dimension'}" }, { events: "@ref_line_targets:mouseover", update: "{ fieldRefId: xFieldRefId, value: [datum.x], sourceId: brushXSourceId, type: 'dimension'}" }, { events: "@x_hit_target:mouseout", update: "null" }, { events: "@ref_line_targets:mouseout", update: "null" }] : [] }, { name: "brushSeries", on: Q && j ? [{ events: "@ref_line_targets:mouseover", update: "{ fieldRefId: seriesFieldRefId, value: datum.series, sourceId: brushSeriesSourceId, type: 'dimension' }" }, { events: "@ref_line_targets:mouseout", update: "null" }, { events: "@legend_labels:mouseover, @legend_symbols:mouseover", update: "{ fieldRefId: seriesFieldRefId, value: datum.value, sourceId: brushSeriesSourceId, type: 'dimension' }" }, { events: "@legend_labels:mouseout, @legend_symbols:mouseout", update: "null" }] : [] }, { name: "brushMeasure", on: M ? [{ events: "@ref_line_targets:mouseover", update: "{ fieldRefId: measureFieldRefId, value: [datum.y], sourceId: brushMeasureSourceId, type: 'measure'}" }, ...ce?.brushMeasureEvents ?? [], { events: "@ref_line_targets:mouseout", update: "null" }] : [] }, { name: "brushOut", update: "[{ sourceId: brushXSourceId, data: brushX }, { sourceId: brushSeriesSourceId, data: brushSeries, debounce: { time: 100, strategy: 'on-empty' } }, { sourceId: brushMeasureSourceId, data: brushMeasure } ]" }, ...Dt, { name: "yIsBrushing", value: !1 });
|
|
108620
108620
|
const pr = { $schema: "https://vega.github.io/schema/vega/v5.json", width: ft.plotWidth, height: ft.plotHeight, autosize: { type: "none", resize: !0, contains: "padding" }, padding: ft.padding, data: [ut, _t, yt], scales: [{ name: "xscale", type: x ? "time" : "point", domain: Ct ? x ? [Number(p.minValue), Number(p.maxValue)] : b ? [!0, !1] : [...p.valueSet] : { data: "values", field: "x" }, range: [0, { signal: "mainPlotWidth" }], paddingOuter: 0.05 }, { name: "null_x_scale", type: "point", domain: [qs], range: [{ signal: "nullPlotStart" }, { signal: "width" }] }, { name: "yscale", nice: !0, range: "height", zero: o.zeroBaseline, domain: ft.yScale.domain ?? { data: "values", field: "y" } }, { name: "color", type: "ordinal", range: "category", domain: Q && we && qe ? [...qe] : { data: "values", field: "series" } }], axes: [{ orient: "bottom", scale: "xscale", title: p.name, labelOverlap: "greedy", labelSeparation: 4, ...ft.xAxis, encode: { ...x ? { labels: { enter: { text: { signal: `renderMalloyTime(malloyExplore, '${l}', datum.value)` } }, update: { text: { signal: `renderMalloyTime(malloyExplore, '${l}', datum.value)` } } } } : {} } }, ...T ? [{ orient: "bottom", scale: "null_x_scale" }] : [], ...ce ? [ce.axis] : []], legends: [], marks: ae, signals: fr };
|
|
108621
|
-
let
|
|
108621
|
+
let _r = 0, Ze = 0;
|
|
108622
108622
|
if (Z) {
|
|
108623
|
-
Q ? (
|
|
108623
|
+
Q ? (_r = [...qe].reduce((et, it) => Math.max(et, it?.toString().length ?? 1), 0), _r = Math.max(_r, L.name.length)) : _r = o.yChannel.fields.reduce((et, it) => Math.max(et, it.length), _r), Ze = Math.min(pGt, ft.totalWidth * hGt, _r * 8 + 32);
|
|
108624
108624
|
const ct = { titleLimit: Ze - 20, labelLimit: Ze - 40, padding: 8, offset: 4 };
|
|
108625
108625
|
pr.padding.right = Ze, pr.legends.push({ fill: "color", title: L ? L.name : "", orient: "right", ...ct, values: Q && we ? [...qe] : void 0, encode: { entries: { name: "legend_entries", interactive: !0 }, labels: { name: "legend_labels", interactive: !0, update: { fillOpacity: [{ test: "brushSeriesIn === datum.value", value: 1 }, { test: "isValid(brushSeriesIn) && brushSeriesIn != datum.value", value: 0.35 }, ...V ? [{ test: "length(brushMeasureListIn) > 0 && indexof(brushMeasureListIn, datum.value) > -1", value: 1 }, { test: "length(brushMeasureListIn) > 0 && indexof(brushMeasureListIn, datum.value) === -1", value: 0.35 }] : [], { value: 1 }] } }, symbols: { name: "legend_symbols", interactive: !0, update: { fillOpacity: [{ test: "brushSeriesIn === datum.value", value: 1 }, { test: "isValid(brushSeriesIn) && brushSeriesIn != datum.value", value: 0.35 }, { value: 1 }] } } } });
|
|
108626
108626
|
}
|
|
@@ -108777,7 +108777,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
108777
108777
|
}, getTopNSeries: () => [] };
|
|
108778
108778
|
}
|
|
108779
108779
|
} };
|
|
108780
|
-
var CGt =
|
|
108780
|
+
var CGt = br("<div class=malloy-copied-modal>Copied query to clipboard!");
|
|
108781
108781
|
const u6e = Ie(), Ml = () => {
|
|
108782
108782
|
const t = le(u6e);
|
|
108783
108783
|
if (!t) throw new Error("ConfigContext missing a value; did you provide a ConfigProvider?");
|
|
@@ -108886,7 +108886,7 @@ ${r.map((s) => ` ${s}`).join(`,
|
|
|
108886
108886
|
}
|
|
108887
108887
|
`;
|
|
108888
108888
|
}
|
|
108889
|
-
var OGt =
|
|
108889
|
+
var OGt = br("<div>");
|
|
108890
108890
|
function NGt(t, { element: e }) {
|
|
108891
108891
|
const r = e.renderRoot;
|
|
108892
108892
|
r instanceof ShadowRoot && t.stylesheet && r.adoptedStyleSheets.push(t.stylesheet);
|
|
@@ -130636,18 +130636,18 @@ const smr = /* @__PURE__ */ cWt(function(u) {
|
|
|
130636
130636
|
scrollableAncestors: Ot,
|
|
130637
130637
|
scrollableAncestorRects: Jt,
|
|
130638
130638
|
windowRect: gt
|
|
130639
|
-
}), Zr = Ie ? CS(Ie, be) : null, lt = zpr(Ot), At = TIe(lt), Zt = TIe(lt, [Le]), Ar = CS(zr, At),
|
|
130639
|
+
}), Zr = Ie ? CS(Ie, be) : null, lt = zpr(Ot), At = TIe(lt), Zt = TIe(lt, [Le]), Ar = CS(zr, At), xr = Et ? dpr(Et, zr) : null, Xr = Ke && xr ? w({
|
|
130640
130640
|
active: Ke,
|
|
130641
|
-
collisionRect:
|
|
130641
|
+
collisionRect: xr,
|
|
130642
130642
|
droppableRects: ge,
|
|
130643
130643
|
droppableContainers: xt,
|
|
130644
130644
|
pointerCoordinates: Zr
|
|
130645
130645
|
}) : null, Ht = spr(Xr, "id"), [Jr, ln] = Ur(null), ti = Ft ? zr : CS(zr, Zt), Fe = upr(ti, (g = Jr?.rect) != null ? g : null, Le), H = qn(null), oe = To(
|
|
130646
|
-
(Ir,
|
|
130646
|
+
(Ir, br) => {
|
|
130647
130647
|
let {
|
|
130648
130648
|
sensor: Yi,
|
|
130649
130649
|
options: os
|
|
130650
|
-
} =
|
|
130650
|
+
} = br;
|
|
130651
130651
|
if (Ue.current == null)
|
|
130652
130652
|
return;
|
|
130653
130653
|
const Ta = fe.get(Ue.current);
|
|
@@ -130767,7 +130767,7 @@ const smr = /* @__PURE__ */ cWt(function(u) {
|
|
|
130767
130767
|
},
|
|
130768
130768
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
130769
130769
|
[fe]
|
|
130770
|
-
), je = To((Ir,
|
|
130770
|
+
), je = To((Ir, br) => (Yi, os) => {
|
|
130771
130771
|
const Ta = Yi.nativeEvent, gs = fe.get(os);
|
|
130772
130772
|
if (
|
|
130773
130773
|
// Another sensor is already instantiating
|
|
@@ -130779,9 +130779,9 @@ const smr = /* @__PURE__ */ cWt(function(u) {
|
|
|
130779
130779
|
const Ki = {
|
|
130780
130780
|
active: gs
|
|
130781
130781
|
};
|
|
130782
|
-
Ir(Yi,
|
|
130783
|
-
capturedBy:
|
|
130784
|
-
}, Ue.current = os, oe(Yi,
|
|
130782
|
+
Ir(Yi, br.options, Ki) === !0 && (Ta.dndKit = {
|
|
130783
|
+
capturedBy: br.sensor
|
|
130784
|
+
}, Ue.current = os, oe(Yi, br));
|
|
130785
130785
|
}, [fe, oe]), St = Fpr(S, je);
|
|
130786
130786
|
Hpr(S), jh(() => {
|
|
130787
130787
|
Le && W === q1.Initializing && X(q1.Initialized);
|
|
@@ -130790,15 +130790,15 @@ const smr = /* @__PURE__ */ cWt(function(u) {
|
|
|
130790
130790
|
const {
|
|
130791
130791
|
onDragMove: Ir
|
|
130792
130792
|
} = Je.current, {
|
|
130793
|
-
active:
|
|
130793
|
+
active: br,
|
|
130794
130794
|
activatorEvent: Yi,
|
|
130795
130795
|
collisions: os,
|
|
130796
130796
|
over: Ta
|
|
130797
130797
|
} = st.current;
|
|
130798
|
-
if (!
|
|
130798
|
+
if (!br || !Yi)
|
|
130799
130799
|
return;
|
|
130800
130800
|
const gs = {
|
|
130801
|
-
active:
|
|
130801
|
+
active: br,
|
|
130802
130802
|
activatorEvent: Yi,
|
|
130803
130803
|
collisions: os,
|
|
130804
130804
|
delta: {
|
|
@@ -130820,12 +130820,12 @@ const smr = /* @__PURE__ */ cWt(function(u) {
|
|
|
130820
130820
|
() => {
|
|
130821
130821
|
const {
|
|
130822
130822
|
active: Ir,
|
|
130823
|
-
activatorEvent:
|
|
130823
|
+
activatorEvent: br,
|
|
130824
130824
|
collisions: Yi,
|
|
130825
130825
|
droppableContainers: os,
|
|
130826
130826
|
scrollAdjustedTranslate: Ta
|
|
130827
130827
|
} = st.current;
|
|
130828
|
-
if (!Ir || Ue.current == null || !
|
|
130828
|
+
if (!Ir || Ue.current == null || !br || !Ta)
|
|
130829
130829
|
return;
|
|
130830
130830
|
const {
|
|
130831
130831
|
onDragOver: gs
|
|
@@ -130836,7 +130836,7 @@ const smr = /* @__PURE__ */ cWt(function(u) {
|
|
|
130836
130836
|
disabled: Ki.disabled
|
|
130837
130837
|
} : null, js = {
|
|
130838
130838
|
active: Ir,
|
|
130839
|
-
activatorEvent:
|
|
130839
|
+
activatorEvent: br,
|
|
130840
130840
|
collisions: Yi,
|
|
130841
130841
|
delta: {
|
|
130842
130842
|
x: Ta.x,
|
|
@@ -130858,7 +130858,7 @@ const smr = /* @__PURE__ */ cWt(function(u) {
|
|
|
130858
130858
|
activatorEvent: He,
|
|
130859
130859
|
active: Ke,
|
|
130860
130860
|
activeNode: Re,
|
|
130861
|
-
collisionRect:
|
|
130861
|
+
collisionRect: xr,
|
|
130862
130862
|
collisions: Xr,
|
|
130863
130863
|
droppableRects: ge,
|
|
130864
130864
|
draggableNodes: fe,
|
|
@@ -130870,12 +130870,12 @@ const smr = /* @__PURE__ */ cWt(function(u) {
|
|
|
130870
130870
|
scrollAdjustedTranslate: Ar
|
|
130871
130871
|
}, De.current = {
|
|
130872
130872
|
initial: Et,
|
|
130873
|
-
translated:
|
|
130873
|
+
translated: xr
|
|
130874
130874
|
};
|
|
130875
|
-
}, [Ke, Re, Xr,
|
|
130875
|
+
}, [Ke, Re, Xr, xr, fe, vt, Et, ge, Pe, Jr, Ot, Ar]), kpr({
|
|
130876
130876
|
...le,
|
|
130877
130877
|
delta: be,
|
|
130878
|
-
draggingRect:
|
|
130878
|
+
draggingRect: xr,
|
|
130879
130879
|
pointerCoordinates: Zr,
|
|
130880
130880
|
scrollableAncestors: Ot,
|
|
130881
130881
|
scrollableAncestorRects: Jt
|
|
@@ -130926,7 +130926,7 @@ const smr = /* @__PURE__ */ cWt(function(u) {
|
|
|
130926
130926
|
hiddenTextDescribedById: tt
|
|
130927
130927
|
}));
|
|
130928
130928
|
function pn() {
|
|
130929
|
-
const Ir = te?.autoScrollEnabled === !1,
|
|
130929
|
+
const Ir = te?.autoScrollEnabled === !1, br = typeof v == "object" ? v.enabled === !1 : v === !1, Yi = J && !Ir && !br;
|
|
130930
130930
|
return typeof v == "object" ? {
|
|
130931
130931
|
...v,
|
|
130932
130932
|
enabled: Yi
|
|
@@ -137249,17 +137249,16 @@ function SUe({
|
|
|
137249
137249
|
), [N, D] = wr.useState(
|
|
137250
137250
|
a.sourceInfo.name
|
|
137251
137251
|
);
|
|
137252
|
-
|
|
137252
|
+
wr.useEffect(() => {
|
|
137253
137253
|
N !== a.sourceInfo.name && (D(a.sourceInfo.name), m(hj()));
|
|
137254
|
-
}, [a, N])
|
|
137255
|
-
return /* @__PURE__ */ P.jsx("div", { children: "Loading..." });
|
|
137254
|
+
}, [a, N]);
|
|
137256
137255
|
const B = wr.useCallback(
|
|
137257
137256
|
(I) => {
|
|
137258
137257
|
m({ ...f, malloyQuery: I });
|
|
137259
137258
|
},
|
|
137260
137259
|
[f]
|
|
137261
137260
|
);
|
|
137262
|
-
return /* @__PURE__ */ P.jsx(RQt, { children: /* @__PURE__ */ P.jsx(OQt, { children: /* @__PURE__ */ P.jsx(
|
|
137261
|
+
return N !== a.sourceInfo.name ? /* @__PURE__ */ P.jsx("div", { children: "Loading..." }) : /* @__PURE__ */ P.jsx(RQt, { children: /* @__PURE__ */ P.jsx(OQt, { children: /* @__PURE__ */ P.jsx(
|
|
137263
137262
|
vZt,
|
|
137264
137263
|
{
|
|
137265
137264
|
source: a.sourceInfo,
|
|
@@ -137381,7 +137380,7 @@ function ivr({
|
|
|
137381
137380
|
},
|
|
137382
137381
|
c1r
|
|
137383
137382
|
);
|
|
137384
|
-
return z ? /* @__PURE__ */ P.jsx(
|
|
137383
|
+
return z ? /* @__PURE__ */ P.jsx(yr, { sx: { p: "20px", m: "auto" }, children: "Fetching Model..." }) : q ? /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: `${N} > ${a} > ${D} - ${W.message}` }) : /* @__PURE__ */ P.jsxs(Ro, { variant: "outlined", children: [
|
|
137385
137384
|
/* @__PURE__ */ P.jsxs(ul, { children: [
|
|
137386
137385
|
/* @__PURE__ */ P.jsxs(
|
|
137387
137386
|
ms,
|
|
@@ -137463,7 +137462,7 @@ function ivr({
|
|
|
137463
137462
|
},
|
|
137464
137463
|
children: [
|
|
137465
137464
|
/* @__PURE__ */ P.jsx(
|
|
137466
|
-
|
|
137465
|
+
yr,
|
|
137467
137466
|
{
|
|
137468
137467
|
sx: {
|
|
137469
137468
|
fontSize: "12px",
|
|
@@ -137513,7 +137512,7 @@ function ivr({
|
|
|
137513
137512
|
variant: "outlined",
|
|
137514
137513
|
sx: { padding: "0px 10px 0px 10px" },
|
|
137515
137514
|
children: [
|
|
137516
|
-
/* @__PURE__ */ P.jsx(ul, { sx: { p: "10px" }, children: /* @__PURE__ */ P.jsx(
|
|
137515
|
+
/* @__PURE__ */ P.jsx(ul, { sx: { p: "10px" }, children: /* @__PURE__ */ P.jsx(yr, { variant: "subtitle1", children: "Named Queries" }) }),
|
|
137517
137516
|
/* @__PURE__ */ P.jsx(ms, { spacing: 1, component: "section", children: $.data.queries.map((X) => /* @__PURE__ */ P.jsx(
|
|
137518
137517
|
wQt,
|
|
137519
137518
|
{
|
|
@@ -137573,7 +137572,7 @@ function p1r({
|
|
|
137573
137572
|
h1r
|
|
137574
137573
|
);
|
|
137575
137574
|
return /* @__PURE__ */ P.jsx(Ro, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */ P.jsxs(ul, { children: [
|
|
137576
|
-
/* @__PURE__ */ P.jsx(
|
|
137575
|
+
/* @__PURE__ */ P.jsx(yr, { variant: "overline", fontWeight: "bold", children: "Package Config" }),
|
|
137577
137576
|
/* @__PURE__ */ P.jsx(ss, {}),
|
|
137578
137577
|
/* @__PURE__ */ P.jsx(
|
|
137579
137578
|
Vi,
|
|
@@ -137585,7 +137584,7 @@ function p1r({
|
|
|
137585
137584
|
},
|
|
137586
137585
|
children: /* @__PURE__ */ P.jsxs(o$, { dense: !0, disablePadding: !0, children: [
|
|
137587
137586
|
/* @__PURE__ */ P.jsx($M, { dense: !0, disablePadding: !0, children: /* @__PURE__ */ P.jsx(gS, { primary: "Name", secondary: d }) }),
|
|
137588
|
-
!y && !E && /* @__PURE__ */ P.jsx(
|
|
137587
|
+
!y && !E && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "20px", m: "auto" }, children: "Fethching Package Metadata..." }),
|
|
137589
137588
|
y && (g.data && /* @__PURE__ */ P.jsx($M, { dense: !0, disablePadding: !0, children: /* @__PURE__ */ P.jsx(
|
|
137590
137589
|
gS,
|
|
137591
137590
|
{
|
|
@@ -137612,7 +137611,7 @@ function p1r({
|
|
|
137612
137611
|
]
|
|
137613
137612
|
}
|
|
137614
137613
|
)),
|
|
137615
|
-
E && /* @__PURE__ */ P.jsx(
|
|
137614
|
+
E && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: `${u} > ${d} > ${f} - ${v.message}` })
|
|
137616
137615
|
] })
|
|
137617
137616
|
}
|
|
137618
137617
|
)
|
|
@@ -137626,7 +137625,7 @@ function y1r({
|
|
|
137626
137625
|
const { projectName: d } = a;
|
|
137627
137626
|
return /* @__PURE__ */ P.jsxs(Ph, { children: [
|
|
137628
137627
|
/* @__PURE__ */ P.jsx(bi, { children: /* @__PURE__ */ P.jsx(
|
|
137629
|
-
|
|
137628
|
+
yr,
|
|
137630
137629
|
{
|
|
137631
137630
|
variant: "body2",
|
|
137632
137631
|
sx: { cursor: "pointer", color: "primary.main" },
|
|
@@ -137636,7 +137635,7 @@ function y1r({
|
|
|
137636
137635
|
children: u.name
|
|
137637
137636
|
}
|
|
137638
137637
|
) }),
|
|
137639
|
-
/* @__PURE__ */ P.jsx(bi, { children: /* @__PURE__ */ P.jsx(
|
|
137638
|
+
/* @__PURE__ */ P.jsx(bi, { children: /* @__PURE__ */ P.jsx(yr, { variant: "body2", children: u.type }) })
|
|
137640
137639
|
] }, u.name);
|
|
137641
137640
|
}
|
|
137642
137641
|
function x1r(a) {
|
|
@@ -137655,7 +137654,7 @@ function x1r(a) {
|
|
|
137655
137654
|
g1r
|
|
137656
137655
|
);
|
|
137657
137656
|
return /* @__PURE__ */ P.jsx(Ro, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */ P.jsxs(ul, { children: [
|
|
137658
|
-
/* @__PURE__ */ P.jsx(
|
|
137657
|
+
/* @__PURE__ */ P.jsx(yr, { variant: "overline", fontWeight: "bold", children: "Database Connections" }),
|
|
137659
137658
|
/* @__PURE__ */ P.jsx(ss, {}),
|
|
137660
137659
|
/* @__PURE__ */ P.jsxs(
|
|
137661
137660
|
Vi,
|
|
@@ -137666,11 +137665,11 @@ function x1r(a) {
|
|
|
137666
137665
|
overflowY: "auto"
|
|
137667
137666
|
},
|
|
137668
137667
|
children: [
|
|
137669
|
-
!g && !y && /* @__PURE__ */ P.jsx(
|
|
137668
|
+
!g && !y && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "20px", m: "auto" }, children: "Fetching Connections..." }),
|
|
137670
137669
|
g && m.data.length > 0 && /* @__PURE__ */ P.jsx(fN, { size: "small", children: /* @__PURE__ */ P.jsxs(hN, { children: [
|
|
137671
137670
|
/* @__PURE__ */ P.jsxs(Ph, { children: [
|
|
137672
|
-
/* @__PURE__ */ P.jsx(bi, { children: /* @__PURE__ */ P.jsx(
|
|
137673
|
-
/* @__PURE__ */ P.jsx(bi, { children: /* @__PURE__ */ P.jsx(
|
|
137671
|
+
/* @__PURE__ */ P.jsx(bi, { children: /* @__PURE__ */ P.jsx(yr, { variant: "subtitle2", fontWeight: "bold", children: "Connection Name" }) }),
|
|
137672
|
+
/* @__PURE__ */ P.jsx(bi, { children: /* @__PURE__ */ P.jsx(yr, { variant: "subtitle2", fontWeight: "bold", children: "Type" }) })
|
|
137674
137673
|
] }),
|
|
137675
137674
|
m.data.map((v) => /* @__PURE__ */ P.jsx(
|
|
137676
137675
|
y1r,
|
|
@@ -137681,8 +137680,8 @@ function x1r(a) {
|
|
|
137681
137680
|
v.name
|
|
137682
137681
|
))
|
|
137683
137682
|
] }) }),
|
|
137684
|
-
g && m.data.length === 0 && /* @__PURE__ */ P.jsx(
|
|
137685
|
-
y && /* @__PURE__ */ P.jsx(
|
|
137683
|
+
g && m.data.length === 0 && /* @__PURE__ */ P.jsx(yr, { variant: "body2", children: "No Connections" }),
|
|
137684
|
+
y && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: `${d} - ${E.message}` })
|
|
137686
137685
|
]
|
|
137687
137686
|
}
|
|
137688
137687
|
)
|
|
@@ -137711,7 +137710,7 @@ function E1r({
|
|
|
137711
137710
|
b1r
|
|
137712
137711
|
), _ = (S) => S >= 1024 * 1024 * 1024 * 1024 ? `${(S / (1024 * 1024 * 1024)).toFixed(2)} T` : S >= 1024 * 1024 * 1024 ? `${(S / (1024 * 1024 * 1024)).toFixed(2)} G` : S >= 1024 * 1024 ? `${(S / (1024 * 1024)).toFixed(2)} M` : `${(S / 1024).toFixed(2)} K`;
|
|
137713
137712
|
return /* @__PURE__ */ P.jsx(Ro, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */ P.jsxs(ul, { children: [
|
|
137714
|
-
/* @__PURE__ */ P.jsx(
|
|
137713
|
+
/* @__PURE__ */ P.jsx(yr, { variant: "overline", fontWeight: "bold", children: "Embedded Databases" }),
|
|
137715
137714
|
/* @__PURE__ */ P.jsx(ss, {}),
|
|
137716
137715
|
/* @__PURE__ */ P.jsxs(
|
|
137717
137716
|
Vi,
|
|
@@ -137722,11 +137721,11 @@ function E1r({
|
|
|
137722
137721
|
overflowY: "auto"
|
|
137723
137722
|
},
|
|
137724
137723
|
children: [
|
|
137725
|
-
!y && !E && /* @__PURE__ */ P.jsx(
|
|
137724
|
+
!y && !E && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "20px", m: "auto" }, children: "Fetching Databases..." }),
|
|
137726
137725
|
y && g.data.length > 0 && /* @__PURE__ */ P.jsx(a$, { children: /* @__PURE__ */ P.jsxs(fN, { size: "small", children: [
|
|
137727
137726
|
/* @__PURE__ */ P.jsx(l$, { children: /* @__PURE__ */ P.jsxs(Ph, { children: [
|
|
137728
137727
|
/* @__PURE__ */ P.jsx(bi, { children: /* @__PURE__ */ P.jsx(
|
|
137729
|
-
|
|
137728
|
+
yr,
|
|
137730
137729
|
{
|
|
137731
137730
|
variant: "subtitle2",
|
|
137732
137731
|
fontWeight: "bold",
|
|
@@ -137734,7 +137733,7 @@ function E1r({
|
|
|
137734
137733
|
}
|
|
137735
137734
|
) }),
|
|
137736
137735
|
/* @__PURE__ */ P.jsx(bi, { align: "right", children: /* @__PURE__ */ P.jsx(
|
|
137737
|
-
|
|
137736
|
+
yr,
|
|
137738
137737
|
{
|
|
137739
137738
|
variant: "subtitle2",
|
|
137740
137739
|
fontWeight: "bold",
|
|
@@ -137744,11 +137743,11 @@ function E1r({
|
|
|
137744
137743
|
] }) }),
|
|
137745
137744
|
/* @__PURE__ */ P.jsx(hN, { children: g.data.map((S) => /* @__PURE__ */ P.jsxs(Ph, { children: [
|
|
137746
137745
|
/* @__PURE__ */ P.jsx(bi, { children: /* @__PURE__ */ P.jsx(_1r, { database: S }) }),
|
|
137747
|
-
/* @__PURE__ */ P.jsx(bi, { align: "right", children: /* @__PURE__ */ P.jsx(
|
|
137746
|
+
/* @__PURE__ */ P.jsx(bi, { align: "right", children: /* @__PURE__ */ P.jsx(yr, { variant: "body2", children: _(S.info.rowCount) }) })
|
|
137748
137747
|
] }, S.path)) })
|
|
137749
137748
|
] }) }),
|
|
137750
|
-
y && g.data.length === 0 && /* @__PURE__ */ P.jsx(
|
|
137751
|
-
E && /* @__PURE__ */ P.jsx(
|
|
137749
|
+
y && g.data.length === 0 && /* @__PURE__ */ P.jsx(yr, { variant: "body2", children: "No Embedded Databases" }),
|
|
137750
|
+
E && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: `${u} > ${d} > ${f} - ${v.message}` })
|
|
137752
137751
|
]
|
|
137753
137752
|
}
|
|
137754
137753
|
)
|
|
@@ -137764,7 +137763,7 @@ function _1r({ database: a }) {
|
|
|
137764
137763
|
style: { cursor: "pointer" },
|
|
137765
137764
|
children: [
|
|
137766
137765
|
/* @__PURE__ */ P.jsx(
|
|
137767
|
-
|
|
137766
|
+
yr,
|
|
137768
137767
|
{
|
|
137769
137768
|
variant: "body2",
|
|
137770
137769
|
color: "primary",
|
|
@@ -137842,7 +137841,7 @@ function S1r({
|
|
|
137842
137841
|
"Schema:",
|
|
137843
137842
|
" ",
|
|
137844
137843
|
/* @__PURE__ */ P.jsx(
|
|
137845
|
-
|
|
137844
|
+
yr,
|
|
137846
137845
|
{
|
|
137847
137846
|
fontSize: "large",
|
|
137848
137847
|
variant: "body2",
|
|
@@ -137929,7 +137928,7 @@ function w1r({ item: a, ...u }) {
|
|
|
137929
137928
|
children: [
|
|
137930
137929
|
a.fileType === "directory" && /* @__PURE__ */ P.jsx(QGt, {}) || a.fileType === "notebook" && /* @__PURE__ */ P.jsx(YGt, {}) || a.fileType === "model" && /* @__PURE__ */ P.jsx(KGt, {}) || a.fileType == "database" && /* @__PURE__ */ P.jsx(XGt, {}) || /* @__PURE__ */ P.jsx(WIe, {}),
|
|
137931
137930
|
/* @__PURE__ */ P.jsx(
|
|
137932
|
-
|
|
137931
|
+
yr,
|
|
137933
137932
|
{
|
|
137934
137933
|
variant: "body2",
|
|
137935
137934
|
sx: { marginLeft: "5px" },
|
|
@@ -138030,7 +138029,7 @@ function k1r({
|
|
|
138030
138029
|
navigate: m,
|
|
138031
138030
|
accessToken: g
|
|
138032
138031
|
}) {
|
|
138033
|
-
const { data: y,
|
|
138032
|
+
const { data: y, isError: E, error: v, isLoading: _ } = wa(
|
|
138034
138033
|
{
|
|
138035
138034
|
queryKey: ["models", a, u, d, f],
|
|
138036
138035
|
queryFn: () => O1r.listModels(u, d, f, {
|
|
@@ -138044,10 +138043,10 @@ function k1r({
|
|
|
138044
138043
|
},
|
|
138045
138044
|
N1r
|
|
138046
138045
|
);
|
|
138047
|
-
return /* @__PURE__ */ P.jsx(Ro, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */ P.jsxs(ul, { children: [
|
|
138048
|
-
/* @__PURE__ */ P.jsx(
|
|
138046
|
+
return E ? /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: `${u} > ${d} > ${f} - ${v.message}` }) : _ ? /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: "Fetching Models..." }) : /* @__PURE__ */ P.jsx(Ro, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */ P.jsxs(ul, { children: [
|
|
138047
|
+
/* @__PURE__ */ P.jsx(yr, { variant: "overline", fontWeight: "bold", children: "Semantic Models" }),
|
|
138049
138048
|
/* @__PURE__ */ P.jsx(ss, {}),
|
|
138050
|
-
/* @__PURE__ */ P.
|
|
138049
|
+
/* @__PURE__ */ P.jsx(
|
|
138051
138050
|
Vi,
|
|
138052
138051
|
{
|
|
138053
138052
|
sx: {
|
|
@@ -138055,18 +138054,14 @@ function k1r({
|
|
|
138055
138054
|
maxHeight: "200px",
|
|
138056
138055
|
overflowY: "auto"
|
|
138057
138056
|
},
|
|
138058
|
-
children:
|
|
138059
|
-
|
|
138060
|
-
|
|
138061
|
-
|
|
138062
|
-
|
|
138063
|
-
|
|
138064
|
-
|
|
138065
|
-
|
|
138066
|
-
}
|
|
138067
|
-
),
|
|
138068
|
-
v && /* @__PURE__ */ P.jsx(_r, { variant: "body2", sx: { p: "10px", m: "auto" }, children: `${u} > ${d} > ${f} - ${_.message}` })
|
|
138069
|
-
]
|
|
138057
|
+
children: y.data.length > 0 ? /* @__PURE__ */ P.jsx(
|
|
138058
|
+
AUe,
|
|
138059
|
+
{
|
|
138060
|
+
items: y.data.sort((S, w) => S.path.localeCompare(w.path)),
|
|
138061
|
+
defaultExpandedItems: D1r,
|
|
138062
|
+
navigate: m
|
|
138063
|
+
}
|
|
138064
|
+
) : /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: "No models found" })
|
|
138070
138065
|
}
|
|
138071
138066
|
)
|
|
138072
138067
|
] }) });
|
|
@@ -138080,7 +138075,7 @@ function F1r({
|
|
|
138080
138075
|
navigate: m,
|
|
138081
138076
|
accessToken: g
|
|
138082
138077
|
}) {
|
|
138083
|
-
const { data: y,
|
|
138078
|
+
const { data: y, isLoading: E, isError: v, error: _ } = wa(
|
|
138084
138079
|
{
|
|
138085
138080
|
queryKey: ["notebooks", a, u, d, f],
|
|
138086
138081
|
queryFn: () => L1r.listNotebooks(u, d, f, {
|
|
@@ -138094,10 +138089,10 @@ function F1r({
|
|
|
138094
138089
|
},
|
|
138095
138090
|
I1r
|
|
138096
138091
|
);
|
|
138097
|
-
return /* @__PURE__ */ P.jsx(Ro, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */ P.jsxs(ul, { children: [
|
|
138098
|
-
/* @__PURE__ */ P.jsx(
|
|
138092
|
+
return v ? /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: `${u} > ${d} > ${f} - ${_.message}` }) : E ? /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: "Fetching Notebooks..." }) : /* @__PURE__ */ P.jsx(Ro, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */ P.jsxs(ul, { children: [
|
|
138093
|
+
/* @__PURE__ */ P.jsx(yr, { variant: "overline", fontWeight: "bold", children: "Notebooks" }),
|
|
138099
138094
|
/* @__PURE__ */ P.jsx(ss, {}),
|
|
138100
|
-
/* @__PURE__ */ P.
|
|
138095
|
+
/* @__PURE__ */ P.jsx(
|
|
138101
138096
|
Vi,
|
|
138102
138097
|
{
|
|
138103
138098
|
sx: {
|
|
@@ -138105,18 +138100,14 @@ function F1r({
|
|
|
138105
138100
|
maxHeight: "200px",
|
|
138106
138101
|
overflowY: "auto"
|
|
138107
138102
|
},
|
|
138108
|
-
children:
|
|
138109
|
-
|
|
138110
|
-
|
|
138111
|
-
|
|
138112
|
-
|
|
138113
|
-
|
|
138114
|
-
|
|
138115
|
-
|
|
138116
|
-
}
|
|
138117
|
-
),
|
|
138118
|
-
v && /* @__PURE__ */ P.jsx(_r, { variant: "body2", sx: { p: "10px", m: "auto" }, children: `${u} > ${d} > ${f} - ${_.message}` })
|
|
138119
|
-
]
|
|
138103
|
+
children: y.data.length > 0 ? /* @__PURE__ */ P.jsx(
|
|
138104
|
+
AUe,
|
|
138105
|
+
{
|
|
138106
|
+
items: y.data.sort((S, w) => S.path.localeCompare(w.path)),
|
|
138107
|
+
defaultExpandedItems: P1r,
|
|
138108
|
+
navigate: m
|
|
138109
|
+
}
|
|
138110
|
+
) : /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: "No notebooks found" })
|
|
138120
138111
|
}
|
|
138121
138112
|
)
|
|
138122
138113
|
] }) });
|
|
@@ -138144,8 +138135,8 @@ function $1r({
|
|
|
138144
138135
|
},
|
|
138145
138136
|
j1r
|
|
138146
138137
|
);
|
|
138147
|
-
return E ? /* @__PURE__ */ P.jsx(
|
|
138148
|
-
/* @__PURE__ */ P.jsx(
|
|
138138
|
+
return E ? /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "20px", m: "auto" }, children: "Fetching Schedules..." }) : y ? /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: `${d} > ${f} - ${v.message}` }) : g.data.length ? /* @__PURE__ */ P.jsx(Ro, { variant: "outlined", sx: { padding: "10px", width: "100%" }, children: /* @__PURE__ */ P.jsxs(ul, { children: [
|
|
138139
|
+
/* @__PURE__ */ P.jsx(yr, { variant: "overline", fontWeight: "bold", children: "Scheduler" }),
|
|
138149
138140
|
/* @__PURE__ */ P.jsx(ss, {}),
|
|
138150
138141
|
/* @__PURE__ */ P.jsx(
|
|
138151
138142
|
Vi,
|
|
@@ -138394,7 +138385,7 @@ function U1r({
|
|
|
138394
138385
|
},
|
|
138395
138386
|
children: [
|
|
138396
138387
|
/* @__PURE__ */ P.jsx(
|
|
138397
|
-
|
|
138388
|
+
yr,
|
|
138398
138389
|
{
|
|
138399
138390
|
component: "div",
|
|
138400
138391
|
sx: {
|
|
@@ -138434,7 +138425,7 @@ function U1r({
|
|
|
138434
138425
|
justifyContent: "space-between"
|
|
138435
138426
|
},
|
|
138436
138427
|
children: /* @__PURE__ */ P.jsx(
|
|
138437
|
-
|
|
138428
|
+
yr,
|
|
138438
138429
|
{
|
|
138439
138430
|
component: "div",
|
|
138440
138431
|
className: "content",
|
|
@@ -138448,7 +138439,7 @@ function U1r({
|
|
|
138448
138439
|
)
|
|
138449
138440
|
] }),
|
|
138450
138441
|
/* @__PURE__ */ P.jsxs(Lh, { in: B, timeout: "auto", unmountOnExit: !0, children: [
|
|
138451
|
-
/* @__PURE__ */ P.jsx(ms, { sx: { p: "10px" }, children: /* @__PURE__ */ P.jsx(
|
|
138442
|
+
/* @__PURE__ */ P.jsx(ms, { sx: { p: "10px" }, children: /* @__PURE__ */ P.jsx(yr, { children: "Sources" }) }),
|
|
138452
138443
|
/* @__PURE__ */ P.jsx(
|
|
138453
138444
|
_Ue,
|
|
138454
138445
|
{
|
|
@@ -138526,7 +138517,7 @@ function G1r({
|
|
|
138526
138517
|
justifyContent: "space-between"
|
|
138527
138518
|
},
|
|
138528
138519
|
children: [
|
|
138529
|
-
/* @__PURE__ */ P.jsx(
|
|
138520
|
+
/* @__PURE__ */ P.jsx(yr, { variant: "overline", fontWeight: "bold", children: "Notebook" }),
|
|
138530
138521
|
/* @__PURE__ */ P.jsx(
|
|
138531
138522
|
hb,
|
|
138532
138523
|
{
|
|
@@ -138569,7 +138560,7 @@ function G1r({
|
|
|
138569
138560
|
},
|
|
138570
138561
|
children: [
|
|
138571
138562
|
/* @__PURE__ */ P.jsx(
|
|
138572
|
-
|
|
138563
|
+
yr,
|
|
138573
138564
|
{
|
|
138574
138565
|
sx: {
|
|
138575
138566
|
fontSize: "12px",
|
|
@@ -138602,7 +138593,7 @@ function G1r({
|
|
|
138602
138593
|
/* @__PURE__ */ P.jsx(ss, {})
|
|
138603
138594
|
] }),
|
|
138604
138595
|
/* @__PURE__ */ P.jsx(jS, { children: /* @__PURE__ */ P.jsxs(ms, { spacing: 1, component: "section", children: [
|
|
138605
|
-
!I && !$ && /* @__PURE__ */ P.jsx(
|
|
138596
|
+
!I && !$ && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: "Fetching Notebook..." }),
|
|
138606
138597
|
I && B.data.notebookCells?.map((z, W) => /* @__PURE__ */ P.jsx(
|
|
138607
138598
|
U1r,
|
|
138608
138599
|
{
|
|
@@ -138622,7 +138613,7 @@ function G1r({
|
|
|
138622
138613
|
},
|
|
138623
138614
|
W
|
|
138624
138615
|
)),
|
|
138625
|
-
$ && /* @__PURE__ */ P.jsx(
|
|
138616
|
+
$ && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: q.message.includes("404") && `${a} does not exist` || `${S} > ${w} > ${a} > ${N} - ${q.message}` })
|
|
138626
138617
|
] }) })
|
|
138627
138618
|
] });
|
|
138628
138619
|
}
|
|
@@ -138631,7 +138622,7 @@ function W1r(a, u, d, f, m) {
|
|
|
138631
138622
|
server="${a}"
|
|
138632
138623
|
accessToken={accessToken}
|
|
138633
138624
|
projectName="${u}"
|
|
138634
|
-
packageName="${d}"
|
|
138625
|
+
packageName="${d}"
|
|
138635
138626
|
modelPath="${f}"
|
|
138636
138627
|
query="
|
|
138637
138628
|
${m}
|
|
@@ -138852,10 +138843,10 @@ function K1r({
|
|
|
138852
138843
|
{
|
|
138853
138844
|
sx: { maxWidth: 400, marginLeft: "10px", padding: "10px 5px 5px 5px" },
|
|
138854
138845
|
children: [
|
|
138855
|
-
/* @__PURE__ */ P.jsx(
|
|
138846
|
+
/* @__PURE__ */ P.jsx(yr, { variant: "h6", children: "Imported Models" }),
|
|
138856
138847
|
/* @__PURE__ */ P.jsxs(eWt, { fullWidth: !0, children: [
|
|
138857
|
-
v && /* @__PURE__ */ P.jsx(
|
|
138858
|
-
S && /* @__PURE__ */ P.jsxs(
|
|
138848
|
+
v && /* @__PURE__ */ P.jsx(yr, { children: "Loading..." }),
|
|
138849
|
+
S && /* @__PURE__ */ P.jsxs(yr, { children: [
|
|
138859
138850
|
"Error: ",
|
|
138860
138851
|
w.message
|
|
138861
138852
|
] }),
|
|
@@ -138900,7 +138891,7 @@ function K1r({
|
|
|
138900
138891
|
/* @__PURE__ */ P.jsxs(pN, { open: D, onClose: () => B(!1), children: [
|
|
138901
138892
|
/* @__PURE__ */ P.jsx(mN, { children: "Select a Model" }),
|
|
138902
138893
|
/* @__PURE__ */ P.jsxs(gN, { children: [
|
|
138903
|
-
q.length === 0 && /* @__PURE__ */ P.jsx(
|
|
138894
|
+
q.length === 0 && /* @__PURE__ */ P.jsx(yr, { children: "No models available" }),
|
|
138904
138895
|
/* @__PURE__ */ P.jsx(o$, { children: q.map((z) => /* @__PURE__ */ P.jsx($M, { disablePadding: !0, children: /* @__PURE__ */ P.jsx(use, { onClick: () => $(z), children: /* @__PURE__ */ P.jsx(gS, { primary: z }) }) }, z)) })
|
|
138905
138896
|
] }),
|
|
138906
138897
|
/* @__PURE__ */ P.jsx(cse, { children: /* @__PURE__ */ P.jsx(Bl, { onClick: () => B(!1), children: "Cancel" }) })
|
|
@@ -138993,7 +138984,7 @@ function Z1r({
|
|
|
138993
138984
|
onClose: () => ee(!1),
|
|
138994
138985
|
children: [
|
|
138995
138986
|
/* @__PURE__ */ P.jsx(mN, { children: "Confirm Delete" }),
|
|
138996
|
-
/* @__PURE__ */ P.jsx(gN, { children: /* @__PURE__ */ P.jsx(
|
|
138987
|
+
/* @__PURE__ */ P.jsx(gN, { children: /* @__PURE__ */ P.jsx(yr, { children: "Are you sure you want to delete this cell?" }) }),
|
|
138997
138988
|
/* @__PURE__ */ P.jsxs(cse, { children: [
|
|
138998
138989
|
/* @__PURE__ */ P.jsx(Bl, { onClick: () => ee(!1), children: "Cancel" }),
|
|
138999
138990
|
/* @__PURE__ */ P.jsx(Bl, { onClick: fe, color: "error", children: "Delete" })
|
|
@@ -139102,7 +139093,7 @@ function Z1r({
|
|
|
139102
139093
|
justifyContent: "space-between"
|
|
139103
139094
|
},
|
|
139104
139095
|
children: /* @__PURE__ */ P.jsx(
|
|
139105
|
-
|
|
139096
|
+
yr,
|
|
139106
139097
|
{
|
|
139107
139098
|
component: "div",
|
|
139108
139099
|
sx: {
|
|
@@ -139129,7 +139120,7 @@ function Z1r({
|
|
|
139129
139120
|
justifyContent: "space-between"
|
|
139130
139121
|
},
|
|
139131
139122
|
children: /* @__PURE__ */ P.jsx(
|
|
139132
|
-
|
|
139123
|
+
yr,
|
|
139133
139124
|
{
|
|
139134
139125
|
component: "div",
|
|
139135
139126
|
className: "content",
|
|
@@ -139145,7 +139136,7 @@ function Z1r({
|
|
|
139145
139136
|
}
|
|
139146
139137
|
)
|
|
139147
139138
|
] }),
|
|
139148
|
-
f && (be ? /* @__PURE__ */ P.jsx(
|
|
139139
|
+
f && (be ? /* @__PURE__ */ P.jsx(yr, { children: "No Model Imports. Please add a model import above." }) : /* @__PURE__ */ P.jsx(
|
|
139149
139140
|
X1r,
|
|
139150
139141
|
{
|
|
139151
139142
|
sourceAndPaths: g,
|
|
@@ -139319,7 +139310,7 @@ function lvr({
|
|
|
139319
139310
|
},
|
|
139320
139311
|
children: [
|
|
139321
139312
|
/* @__PURE__ */ P.jsx(Vi, { sx: { display: "flex", alignItems: "top", gap: 1 }, children: /* @__PURE__ */ P.jsxs(
|
|
139322
|
-
|
|
139313
|
+
yr,
|
|
139323
139314
|
{
|
|
139324
139315
|
sx: {
|
|
139325
139316
|
fontSize: "150%",
|
|
@@ -139526,15 +139517,15 @@ function ayr({
|
|
|
139526
139517
|
oyr
|
|
139527
139518
|
);
|
|
139528
139519
|
return /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
|
|
139529
|
-
!m && !g && /* @__PURE__ */ P.jsx(
|
|
139520
|
+
!m && !g && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: "Fetching About..." }),
|
|
139530
139521
|
m && /* @__PURE__ */ P.jsxs(Ro, { variant: "outlined", children: [
|
|
139531
139522
|
/* @__PURE__ */ P.jsxs(ul, { children: [
|
|
139532
|
-
/* @__PURE__ */ P.jsx(
|
|
139523
|
+
/* @__PURE__ */ P.jsx(yr, { variant: "overline", fontWeight: "bold", children: "Readme" }),
|
|
139533
139524
|
/* @__PURE__ */ P.jsx(ss, {})
|
|
139534
139525
|
] }),
|
|
139535
139526
|
/* @__PURE__ */ P.jsx(jS, { children: /* @__PURE__ */ P.jsx(lse, { children: f.data.readme }) })
|
|
139536
139527
|
] }),
|
|
139537
|
-
g && /* @__PURE__ */ P.jsx(
|
|
139528
|
+
g && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: y.message })
|
|
139538
139529
|
] });
|
|
139539
139530
|
}
|
|
139540
139531
|
const lyr = new XIe(new Uo()), uyr = new Ca();
|
|
@@ -139560,10 +139551,10 @@ function cyr({
|
|
|
139560
139551
|
return d || (d = (v) => {
|
|
139561
139552
|
window.location.href = v;
|
|
139562
139553
|
}), /* @__PURE__ */ P.jsxs(P.Fragment, { children: [
|
|
139563
|
-
!g && !y && /* @__PURE__ */ P.jsx(
|
|
139554
|
+
!g && !y && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "20px", m: "auto" }, children: "Fetching Packages..." }),
|
|
139564
139555
|
g && /* @__PURE__ */ P.jsxs(Ro, { variant: "outlined", children: [
|
|
139565
139556
|
/* @__PURE__ */ P.jsxs(ul, { children: [
|
|
139566
|
-
/* @__PURE__ */ P.jsx(
|
|
139557
|
+
/* @__PURE__ */ P.jsx(yr, { variant: "overline", fontWeight: "bold", children: "Packages" }),
|
|
139567
139558
|
/* @__PURE__ */ P.jsx(ss, {})
|
|
139568
139559
|
] }),
|
|
139569
139560
|
/* @__PURE__ */ P.jsx(jS, { children: /* @__PURE__ */ P.jsx(
|
|
@@ -139585,7 +139576,7 @@ function cyr({
|
|
|
139585
139576
|
onClick: () => d(v.name + "/"),
|
|
139586
139577
|
children: /* @__PURE__ */ P.jsxs(ul, { children: [
|
|
139587
139578
|
/* @__PURE__ */ P.jsx(
|
|
139588
|
-
|
|
139579
|
+
yr,
|
|
139589
139580
|
{
|
|
139590
139581
|
variant: "overline",
|
|
139591
139582
|
color: "primary.main",
|
|
@@ -139601,7 +139592,7 @@ function cyr({
|
|
|
139601
139592
|
maxHeight: "100px",
|
|
139602
139593
|
overflowY: "auto"
|
|
139603
139594
|
},
|
|
139604
|
-
children: /* @__PURE__ */ P.jsx(
|
|
139595
|
+
children: /* @__PURE__ */ P.jsx(yr, { variant: "body2", children: v.description })
|
|
139605
139596
|
}
|
|
139606
139597
|
)
|
|
139607
139598
|
] })
|
|
@@ -139613,7 +139604,7 @@ function cyr({
|
|
|
139613
139604
|
}
|
|
139614
139605
|
) })
|
|
139615
139606
|
] }),
|
|
139616
|
-
y && /* @__PURE__ */ P.jsx(
|
|
139607
|
+
y && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: E.message })
|
|
139617
139608
|
] });
|
|
139618
139609
|
}
|
|
139619
139610
|
function uvr({
|
|
@@ -139663,7 +139654,7 @@ function cvr({ server: a, navigate: u }) {
|
|
|
139663
139654
|
},
|
|
139664
139655
|
fyr
|
|
139665
139656
|
);
|
|
139666
|
-
return console.log(JSON.stringify(d?.data, null, 2)), f ? d.data.length === 0 ? /* @__PURE__ */ P.jsx(
|
|
139657
|
+
return console.log(JSON.stringify(d?.data, null, 2)), f ? d.data.length === 0 ? /* @__PURE__ */ P.jsx(yr, { variant: "h4", children: "No projects found" }) : d.data.length === 1 ? (u(`/${d.data[0].name}/`), /* @__PURE__ */ P.jsx(P.Fragment, {})) : /* @__PURE__ */ P.jsx(
|
|
139667
139658
|
Ao,
|
|
139668
139659
|
{
|
|
139669
139660
|
container: !0,
|
|
@@ -139671,7 +139662,7 @@ function cvr({ server: a, navigate: u }) {
|
|
|
139671
139662
|
columns: 12,
|
|
139672
139663
|
sx: { mb: (m) => m.spacing(2) },
|
|
139673
139664
|
children: d.data.map((m) => /* @__PURE__ */ P.jsx(Ao, { children: /* @__PURE__ */ P.jsx(
|
|
139674
|
-
|
|
139665
|
+
yr,
|
|
139675
139666
|
{
|
|
139676
139667
|
variant: "h1",
|
|
139677
139668
|
onClick: () => u(`/${m.name}/`),
|
|
@@ -139679,7 +139670,7 @@ function cvr({ server: a, navigate: u }) {
|
|
|
139679
139670
|
}
|
|
139680
139671
|
) }, m.name))
|
|
139681
139672
|
}
|
|
139682
|
-
) : /* @__PURE__ */ P.jsx(
|
|
139673
|
+
) : /* @__PURE__ */ P.jsx(yr, { variant: "h6", children: "Loading projects..." });
|
|
139683
139674
|
}
|
|
139684
139675
|
const hyr = new hse(new Uo()), pyr = new Ca();
|
|
139685
139676
|
function myr({
|
|
@@ -139705,15 +139696,15 @@ function myr({
|
|
|
139705
139696
|
pyr
|
|
139706
139697
|
);
|
|
139707
139698
|
return /* @__PURE__ */ P.jsxs(Vi, { sx: { width: "100%" }, children: [
|
|
139708
|
-
/* @__PURE__ */ P.jsxs(
|
|
139699
|
+
/* @__PURE__ */ P.jsxs(yr, { variant: "overline", fontWeight: "bold", children: [
|
|
139709
139700
|
"Tables in ",
|
|
139710
139701
|
f
|
|
139711
139702
|
] }),
|
|
139712
139703
|
/* @__PURE__ */ P.jsx(ss, {}),
|
|
139713
139704
|
/* @__PURE__ */ P.jsxs(Vi, { sx: { mt: "10px", maxHeight: "200px", overflowY: "auto" }, children: [
|
|
139714
|
-
S && /* @__PURE__ */ P.jsx(
|
|
139715
|
-
v && /* @__PURE__ */ P.jsx(
|
|
139716
|
-
E && y.data.length === 0 && /* @__PURE__ */ P.jsx(
|
|
139705
|
+
S && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "20px", m: "auto" }, children: "Fetching Tables..." }),
|
|
139706
|
+
v && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: `${u} > ${d} > ${f} - ${_.message}` }),
|
|
139707
|
+
E && y.data.length === 0 && /* @__PURE__ */ P.jsx(yr, { variant: "body2", children: "No Tables" }),
|
|
139717
139708
|
E && y.data.length > 0 && /* @__PURE__ */ P.jsx(o$, { dense: !0, disablePadding: !0, children: y.data.map((w) => /* @__PURE__ */ P.jsx(
|
|
139718
139709
|
use,
|
|
139719
139710
|
{
|
|
@@ -139762,7 +139753,7 @@ function dvr({
|
|
|
139762
139753
|
mb: 1
|
|
139763
139754
|
},
|
|
139764
139755
|
children: [
|
|
139765
|
-
/* @__PURE__ */ P.jsx(
|
|
139756
|
+
/* @__PURE__ */ P.jsx(yr, { variant: "overline", fontWeight: "bold", children: "Table Paths" }),
|
|
139766
139757
|
/* @__PURE__ */ P.jsx(
|
|
139767
139758
|
lWt,
|
|
139768
139759
|
{
|
|
@@ -139781,9 +139772,9 @@ function dvr({
|
|
|
139781
139772
|
),
|
|
139782
139773
|
/* @__PURE__ */ P.jsx(ss, {}),
|
|
139783
139774
|
/* @__PURE__ */ P.jsxs(Vi, { sx: { mt: "10px", maxHeight: "600px", overflowY: "auto" }, children: [
|
|
139784
|
-
D && /* @__PURE__ */ P.jsx(
|
|
139785
|
-
R && /* @__PURE__ */ P.jsx(
|
|
139786
|
-
w && S.data.length === 0 && /* @__PURE__ */ P.jsx(
|
|
139775
|
+
D && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "20px", m: "auto" }, children: "Fetching Table Paths..." }),
|
|
139776
|
+
R && /* @__PURE__ */ P.jsx(yr, { variant: "body2", sx: { p: "10px", m: "auto" }, children: `${u} > ${d} - ${N.message}` }),
|
|
139777
|
+
w && S.data.length === 0 && /* @__PURE__ */ P.jsx(yr, { variant: "body2", children: "No Schemas" }),
|
|
139787
139778
|
w && S.data.length > 0 && /* @__PURE__ */ P.jsx(o$, { dense: !0, disablePadding: !0, children: S.data.filter(
|
|
139788
139779
|
({ isHidden: B }) => v || !B
|
|
139789
139780
|
).sort((B, I) => B.isDefault === I.isDefault ? 0 : B.isDefault ? -1 : 1).map(
|
|
@@ -139870,7 +139861,7 @@ function gyr({
|
|
|
139870
139861
|
".",
|
|
139871
139862
|
m,
|
|
139872
139863
|
/* @__PURE__ */ P.jsx(
|
|
139873
|
-
|
|
139864
|
+
yr,
|
|
139874
139865
|
{
|
|
139875
139866
|
fontSize: "large",
|
|
139876
139867
|
variant: "body2",
|