@marimo-team/islands 0.13.5-dev11 → 0.13.5-dev13
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/{ConnectedDataExplorerComponent-DGzxt47N.js → ConnectedDataExplorerComponent-RnyF_6QE.js} +214 -214
- package/dist/{VegaLite-D2UNcEXH.js → VegaLite-DcrlokVU.js} +3 -3
- package/dist/{_baseUniq-BwWUFPup.js → _baseUniq-D0mnKfEB.js} +73 -73
- package/dist/any-language-editor-WRjGL4ZO.js +45 -0
- package/dist/{architectureDiagram-IEHRJDOE-BMC3m5gO.js → architectureDiagram-IEHRJDOE-DFf6T8zp.js} +5 -5
- package/dist/{blockDiagram-JOT3LUYC-CODoduIV.js → blockDiagram-JOT3LUYC-C7IFiHze.js} +4 -4
- package/dist/{c4Diagram-VJAJSXHY-C0PDy0vf.js → c4Diagram-VJAJSXHY-DN_wmwrk.js} +2 -2
- package/dist/{channel-C8CcO-8_.js → channel-B2O7YrZR.js} +1 -1
- package/dist/{chunk-4BMEZGHF-DHZttL4z.js → chunk-4BMEZGHF-DQFQWmiU.js} +1 -1
- package/dist/{chunk-A2AXSNBT-DRIIc_AX.js → chunk-A2AXSNBT-B84LlTOs.js} +2 -2
- package/dist/{chunk-AEK57VVT-BlEOcXFy.js → chunk-AEK57VVT-BxAlRItw.js} +2 -2
- package/dist/{chunk-D6G4REZN-B0b3V4XZ.js → chunk-D6G4REZN-w-tkABTk.js} +1 -1
- package/dist/{chunk-RZ5BOZE2-CDlRkOFA.js → chunk-RZ5BOZE2-_srVsntT.js} +1 -1
- package/dist/{chunk-XZIHB7SX-CcTbZQaS.js → chunk-XZIHB7SX-PfuVv339.js} +1 -1
- package/dist/{classDiagram-GIVACNV2-DTN4b3-O.js → classDiagram-GIVACNV2-MPsaV8dC.js} +2 -2
- package/dist/{classDiagram-v2-COTLJTTW-DTN4b3-O.js → classDiagram-v2-COTLJTTW-MPsaV8dC.js} +2 -2
- package/dist/{clone-ybASJB3k.js → clone-D5QTTO5j.js} +1 -1
- package/dist/{dagre-OKDRZEBW-BSI6cQk6.js → dagre-OKDRZEBW-BhAuQCRV.js} +6 -6
- package/dist/{data-editor-DMOunklv.js → data-editor-DD7nPSAl.js} +1 -1
- package/dist/{diagram-SSKATNLV-DfZlJP-n.js → diagram-SSKATNLV-7o4GbHxi.js} +3 -3
- package/dist/{diagram-VNBRO52H-CxCCdhVZ.js → diagram-VNBRO52H-C1OBfS0s.js} +3 -3
- package/dist/{erDiagram-Q7BY3M3F-Dc4W833h.js → erDiagram-Q7BY3M3F-Cu9FFxLn.js} +3 -3
- package/dist/{flowDiagram-4HSFHLVR-D9yxPQsa.js → flowDiagram-4HSFHLVR-DgB0406w.js} +3 -3
- package/dist/{ganttDiagram-APWFNJXF-BVSpxqqk.js → ganttDiagram-APWFNJXF-DnIEfKrc.js} +23 -23
- package/dist/{gitGraphDiagram-7IBYFJ6S-DLYM6i45.js → gitGraphDiagram-7IBYFJ6S-CTuVKNco.js} +4 -4
- package/dist/{graph-COKKwwSB.js → graph-BqCAzm60.js} +6 -6
- package/dist/{index-COl3mLGt.js → index-CjfMIwTR.js} +21 -21
- package/dist/{index-Po2EutVS.js → index-CvfgWMPH.js} +1 -1
- package/dist/{index-DbIHdpyi.js → index-DXciNDf5.js} +3 -3
- package/dist/{index-YwfZmGCW.js → index-uMw2siya.js} +1 -1
- package/dist/{infoDiagram-PH2N3AL5-CxwHJkxr.js → infoDiagram-PH2N3AL5-Dgjh536N.js} +2 -2
- package/dist/{journeyDiagram-U35MCT3I-DD22yOto.js → journeyDiagram-U35MCT3I-BqmZB3RC.js} +2 -2
- package/dist/{kanban-definition-NDS4AKOZ-B3Z-1oe5.js → kanban-definition-NDS4AKOZ-Dd07zOC6.js} +1 -1
- package/dist/{layout-jlZkuoZy.js → layout-BXK4CGcl.js} +48 -48
- package/dist/{linear-Cpyhk2hB.js → linear-CA66uGUw.js} +75 -75
- package/dist/{main-B8-MjWsg.js → main-DZFafsBV.js} +72774 -54918
- package/dist/main.js +2 -2
- package/dist/{mermaid-CHeWOMVQ.js → mermaid-B8bjfF6s.js} +28 -28
- package/dist/{min-BZ3EZsKE.js → min-eHKNnl-H.js} +23 -23
- package/dist/{mindmap-definition-ALO5MXBD-HeoZGbgD.js → mindmap-definition-ALO5MXBD-Cb2u85Oh.js} +2 -2
- package/dist/{pieDiagram-IB7DONF6-DHwJJ0Ej.js → pieDiagram-IB7DONF6-VSMSF0Yy.js} +3 -3
- package/dist/{quadrantDiagram-7GDLP6J5-nuemB1W-.js → quadrantDiagram-7GDLP6J5-usra7ail.js} +2 -2
- package/dist/{radar-MK3ICKWK-CJigR5qH.js → radar-MK3ICKWK-NOqHyVz_.js} +5 -5
- package/dist/{react-plotly-DKVXryZb.js → react-plotly-IEG2Gg1b.js} +1 -1
- package/dist/{requirementDiagram-KVF5MWMF-KSufhrz_.js → requirementDiagram-KVF5MWMF-s4Jijcm0.js} +2 -2
- package/dist/{sankeyDiagram-QLVOVGJD-ChCkdCa9.js → sankeyDiagram-QLVOVGJD-argmnqYQ.js} +1 -1
- package/dist/{sequenceDiagram-X6HHIX6F-BjkRbxpj.js → sequenceDiagram-X6HHIX6F-DonkstWN.js} +3 -3
- package/dist/{slides-component-B9fq17O7.js → slides-component-C_tCR6hy.js} +25 -25
- package/dist/{stateDiagram-DGXRK772-DqoOhvP5.js → stateDiagram-DGXRK772-CGhxSe6j.js} +4 -4
- package/dist/{stateDiagram-v2-YXO3MK2T-BAgEIEBw.js → stateDiagram-v2-YXO3MK2T-CUcbK6Oi.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/{time-yaJ8gWNG.js → time-D53ulJkT.js} +2 -2
- package/dist/{timeline-definition-BDJGKUSR-BMiBQE_M.js → timeline-definition-BDJGKUSR-DMb2utEG.js} +1 -1
- package/dist/{vega-component-DqlxF-sC.js → vega-component-Ck6MGsXc.js} +22 -22
- package/dist/{xychartDiagram-VJFVF3MP-BL4J8grT.js → xychartDiagram-VJFVF3MP-CTNPAD0E.js} +2 -2
- package/package.json +1 -1
- package/dist/any-language-editor-BoGk6VPl.js +0 -2304
- package/dist/apl-B2DGVGxc.js +0 -76
- package/dist/asciiarmor-2LVJmxlE.js +0 -34
- package/dist/asterisk-DS281yxp.js +0 -271
- package/dist/brainfuck-C_p9pTT8.js +0 -34
- package/dist/clike-BUuHEmgZ.js +0 -620
- package/dist/cmake-CuaCgAKt.js +0 -28
- package/dist/cobol-BlTKFDRj.js +0 -72
- package/dist/coffeescript-BVCvwO8I.js +0 -179
- package/dist/commonlisp-D_kxz07b.js +0 -75
- package/dist/crystal-D309uH6_.js +0 -217
- package/dist/cypher-BMq4Fwjl.js +0 -68
- package/dist/d-BZcgY6La.js +0 -127
- package/dist/diff-Cg9d_RX2.js +0 -18
- package/dist/dockerfile-DIy8NleC.js +0 -194
- package/dist/dtd-CtLokQ-U.js +0 -84
- package/dist/dylan-QYeExnWK.js +0 -234
- package/dist/ebnf-DUPDuY4r.js +0 -78
- package/dist/ecl-CiXN-g_D.js +0 -121
- package/dist/eiffel-yQhjl4T1.js +0 -110
- package/dist/elm-CNT9vbN0.js +0 -108
- package/dist/erlang-CFOYdy9e.js +0 -487
- package/dist/factor-DDOC7X6P.js +0 -65
- package/dist/fcl-CPC2WYrI.js +0 -103
- package/dist/forth-BmxRyE9S.js +0 -60
- package/dist/fortran-9bvPyrOW.js +0 -442
- package/dist/gas-BdfkXJT_.js +0 -183
- package/dist/gherkin-CJuwpceU.js +0 -34
- package/dist/groovy-DZeT_VM-.js +0 -146
- package/dist/haskell-Bvt3Qq1t.js +0 -375
- package/dist/haxe-70NVW1pR.js +0 -359
- package/dist/http-D9LttvKF.js +0 -44
- package/dist/idl-B6TRFYjl.js +0 -947
- package/dist/index-5AINTTUB.js +0 -155
- package/dist/index-BWjLWCJ6.js +0 -264
- package/dist/index-Bcoyxaps.js +0 -74
- package/dist/index-CERpQ76K.js +0 -134
- package/dist/index-CUc0YtKu.js +0 -57
- package/dist/index-CiTLcl0V.js +0 -243
- package/dist/index-Co7yojm-.js +0 -271
- package/dist/index-CodrF23c.js +0 -133
- package/dist/index-D58l8ic5.js +0 -92
- package/dist/index-DdRXgbmZ.js +0 -97
- package/dist/index-DzEmkK9B.js +0 -298
- package/dist/index-gXJGBs4l.js +0 -68
- package/dist/jinja2-DnB6dQmV.js +0 -154
- package/dist/julia-DpvXAuO6.js +0 -241
- package/dist/livescript-CanGTf8u.js +0 -272
- package/dist/lua-XplVlWi_.js +0 -217
- package/dist/mathematica-jaRHnSxC.js +0 -35
- package/dist/mbox-BctzC1hL.js +0 -76
- package/dist/mirc-CFBPAOaF.js +0 -72
- package/dist/modelica-vUgVs--1.js +0 -93
- package/dist/mscgen-Cpl0NYLN.js +0 -104
- package/dist/mumps-CQoS1kWX.js +0 -25
- package/dist/nginx-zDPm3Z74.js +0 -89
- package/dist/nsis-fePjrhq7.js +0 -62
- package/dist/ntriples-CsNjv2QF.js +0 -79
- package/dist/octave-C8PmmSRH.js +0 -143
- package/dist/oz-Ce8aN8oE.js +0 -151
- package/dist/pascal-De0D6mP7.js +0 -77
- package/dist/perl-B4bSCe1C.js +0 -915
- package/dist/pig-D24Z8EXi.js +0 -54
- package/dist/powershell-DkYVfTzP.js +0 -249
- package/dist/properties-Dn9wna3M.js +0 -26
- package/dist/protobuf-BPIjwpzm.js +0 -49
- package/dist/puppet-nyd4dhjf.js +0 -45
- package/dist/q-DXjKs-tC.js +0 -83
- package/dist/r-LKEuhEGI.js +0 -104
- package/dist/ruby-CcYfvIk6.js +0 -228
- package/dist/sas-7E8yHoCW.js +0 -105
- package/dist/scheme-DjibxsNh.js +0 -124
- package/dist/shell-C0C2sNA_.js +0 -182
- package/dist/sieve-Bwz7vjP5.js +0 -72
- package/dist/simple-mode-B0dvCdAA.js +0 -89
- package/dist/smalltalk-Bhddl2pB.js +0 -48
- package/dist/solr-BNlsLglM.js +0 -41
- package/dist/sparql-FarWu_Gb.js +0 -197
- package/dist/spreadsheet-C-cy4P5N.js +0 -49
- package/dist/stylus-CAdqWld3.js +0 -250
- package/dist/swift-DSxqR9R6.js +0 -230
- package/dist/tcl-xfoLljhY.js +0 -81
- package/dist/textile-D1AWE-pc.js +0 -295
- package/dist/tiddlywiki-5wqsXtSk.js +0 -155
- package/dist/tiki-__Kn3CeS.js +0 -181
- package/dist/toml-BHiuTcfn.js +0 -49
- package/dist/troff-D2UO-fKf.js +0 -35
- package/dist/ttcn-Bsa4sfRm.js +0 -123
- package/dist/turtle-xwJUxoPV.js +0 -80
- package/dist/vb-c2kQGd6-.js +0 -74
- package/dist/vbscript-Dz1TtKsy.js +0 -324
- package/dist/velocity-DJd0pTTC.js +0 -96
- package/dist/verilog-C4VGD9n1.js +0 -263
- package/dist/vhdl-T9HkrbI2.js +0 -106
- package/dist/webidl-CjfDENEo.js +0 -155
- package/dist/xquery-BUQdORAS.js +0 -422
- package/dist/yacas-C0absKBh.js +0 -73
- package/dist/z80-C8rPtw-0.js +0 -61
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { i as Ta, c as Aa, N as Oa, a as Hn } from "./VegaLite-
|
|
1
|
+
import { bx as dr, S as fr, by as Zi, j as S, bz as Qi, bA as ea, bB as ta, bC as na, L as ra, bD as ia, bE as aa, bF as oa, d as Oe, bG as cn, bH as xt, bI as gr, bJ as It, bK as Je, bL as hr, bM as wt, bN as Ie, bO as sa, bP as mr, bQ as ca, bR as ua, F as Gn, K as la, M as pr, bS as da, bT as fa, bU as ga, W as ha, J as ma, U as pa, E as ya, a4 as Ea, bV as Sa, $ as Na, bW as _a, R as Ca } from "./main-DZFafsBV.js";
|
|
2
|
+
import { i as Ta, c as Aa, N as Oa, a as Hn } from "./VegaLite-DcrlokVU.js";
|
|
3
3
|
/**
|
|
4
4
|
* @license lucide-react v0.503.0 - ISC
|
|
5
5
|
*
|
|
6
6
|
* This source code is licensed under the ISC license.
|
|
7
7
|
* See the LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
const
|
|
9
|
+
const ba = [
|
|
10
10
|
["path", { d: "M3 3v16a2 2 0 0 0 2 2h16", key: "c24i48" }],
|
|
11
11
|
["rect", { x: "15", y: "5", width: "4", height: "12", rx: "1", key: "q8uenq" }],
|
|
12
12
|
["rect", { x: "7", y: "8", width: "4", height: "9", rx: "1", key: "sr5ea" }]
|
|
13
|
-
],
|
|
13
|
+
], xa = dr("chart-column-big", ba);
|
|
14
14
|
/**
|
|
15
15
|
* @license lucide-react v0.503.0 - ISC
|
|
16
16
|
*
|
|
@@ -39,7 +39,7 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
|
|
|
39
39
|
See the Apache Version 2.0 License for specific language governing permissions
|
|
40
40
|
and limitations under the License.
|
|
41
41
|
***************************************************************************** */
|
|
42
|
-
function
|
|
42
|
+
function $e(e, t) {
|
|
43
43
|
var n = {};
|
|
44
44
|
for (var a in e) Object.prototype.hasOwnProperty.call(e, a) && t.indexOf(a) < 0 && (n[a] = e[a]);
|
|
45
45
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -79,10 +79,10 @@ function va() {
|
|
|
79
79
|
typeof g == "object" && (h = g.depth, p = g.prototype, y = g.includeNonEnumerable, g = g.circular);
|
|
80
80
|
var E = [], _ = [], T = typeof Buffer < "u";
|
|
81
81
|
typeof g > "u" && (g = !0), typeof h > "u" && (h = 1 / 0);
|
|
82
|
-
function A(N,
|
|
82
|
+
function A(N, b) {
|
|
83
83
|
if (N === null)
|
|
84
84
|
return null;
|
|
85
|
-
if (
|
|
85
|
+
if (b === 0)
|
|
86
86
|
return N;
|
|
87
87
|
var C, M;
|
|
88
88
|
if (typeof N != "object")
|
|
@@ -94,9 +94,9 @@ function va() {
|
|
|
94
94
|
else if (n(N, o))
|
|
95
95
|
C = new o(function(pe, ye) {
|
|
96
96
|
N.then(function(D) {
|
|
97
|
-
pe(A(D,
|
|
97
|
+
pe(A(D, b - 1));
|
|
98
98
|
}, function(D) {
|
|
99
|
-
ye(A(D,
|
|
99
|
+
ye(A(D, b - 1));
|
|
100
100
|
});
|
|
101
101
|
});
|
|
102
102
|
else if (c.__isArray(N))
|
|
@@ -111,33 +111,33 @@ function va() {
|
|
|
111
111
|
n(N, Error) ? C = Object.create(N) : typeof p > "u" ? (M = Object.getPrototypeOf(N), C = Object.create(M)) : (C = Object.create(p), M = p);
|
|
112
112
|
}
|
|
113
113
|
if (g) {
|
|
114
|
-
var
|
|
115
|
-
if (
|
|
116
|
-
return _[
|
|
114
|
+
var $ = E.indexOf(N);
|
|
115
|
+
if ($ != -1)
|
|
116
|
+
return _[$];
|
|
117
117
|
E.push(N), _.push(C);
|
|
118
118
|
}
|
|
119
119
|
n(N, a) && N.forEach(function(pe, ye) {
|
|
120
|
-
var D = A(ye,
|
|
120
|
+
var D = A(ye, b - 1), Ee = A(pe, b - 1);
|
|
121
121
|
C.set(D, Ee);
|
|
122
122
|
}), n(N, r) && N.forEach(function(pe) {
|
|
123
|
-
var ye = A(pe,
|
|
123
|
+
var ye = A(pe, b - 1);
|
|
124
124
|
C.add(ye);
|
|
125
125
|
});
|
|
126
126
|
for (var v in N) {
|
|
127
127
|
var w;
|
|
128
|
-
M && (w = Object.getOwnPropertyDescriptor(M, v)), !(w && w.set == null) && (C[v] = A(N[v],
|
|
128
|
+
M && (w = Object.getOwnPropertyDescriptor(M, v)), !(w && w.set == null) && (C[v] = A(N[v], b - 1));
|
|
129
129
|
}
|
|
130
130
|
if (Object.getOwnPropertySymbols)
|
|
131
131
|
for (var L = Object.getOwnPropertySymbols(N), v = 0; v < L.length; v++) {
|
|
132
132
|
var de = L[v], fe = Object.getOwnPropertyDescriptor(N, de);
|
|
133
|
-
fe && !fe.enumerable && !y || (C[de] = A(N[de],
|
|
133
|
+
fe && !fe.enumerable && !y || (C[de] = A(N[de], b - 1), fe.enumerable || Object.defineProperty(C, de, {
|
|
134
134
|
enumerable: !1
|
|
135
135
|
}));
|
|
136
136
|
}
|
|
137
137
|
if (y)
|
|
138
138
|
for (var We = Object.getOwnPropertyNames(N), v = 0; v < We.length; v++) {
|
|
139
|
-
var
|
|
140
|
-
fe && fe.enumerable || (C[
|
|
139
|
+
var be = We[v], fe = Object.getOwnPropertyDescriptor(N, be);
|
|
140
|
+
fe && fe.enumerable || (C[be] = A(N[be], b - 1), Object.defineProperty(C, be, {
|
|
141
141
|
enumerable: !1
|
|
142
142
|
}));
|
|
143
143
|
}
|
|
@@ -319,7 +319,7 @@ const V = yr;
|
|
|
319
319
|
function z(e, t) {
|
|
320
320
|
return e.indexOf(t) > -1;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function Ba(e, t) {
|
|
323
323
|
let n = 0;
|
|
324
324
|
for (const [a, r] of e.entries())
|
|
325
325
|
if (t(r, a, n++))
|
|
@@ -327,7 +327,7 @@ function $a(e, t) {
|
|
|
327
327
|
return !1;
|
|
328
328
|
}
|
|
329
329
|
const le = Object.keys;
|
|
330
|
-
function
|
|
330
|
+
function $a(e) {
|
|
331
331
|
const t = e.replace(/\W/g, "_");
|
|
332
332
|
return (e.match(/^\d+/) ? "_" : "") + t;
|
|
333
333
|
}
|
|
@@ -348,7 +348,7 @@ function Wa(e) {
|
|
|
348
348
|
function Ya(e) {
|
|
349
349
|
return e.indexOf("__") === 0;
|
|
350
350
|
}
|
|
351
|
-
const ie = "row", Q = "column", Nr = "facet", R = "x", F = "y", Nn = "x2", _n = "y2", _r = "latitude", Cr = "longitude", Tr = "latitude2", Ar = "longitude2", ce = "color", Dt = "fill", Ft = "stroke", Qe = "shape", Te = "size", Rt = "opacity", kt = "fillOpacity", Ut = "strokeOpacity", Mt = "strokeWidth", Cn = "text", Or = "order", Tn = "detail",
|
|
351
|
+
const ie = "row", Q = "column", Nr = "facet", R = "x", F = "y", Nn = "x2", _n = "y2", _r = "latitude", Cr = "longitude", Tr = "latitude2", Ar = "longitude2", ce = "color", Dt = "fill", Ft = "stroke", Qe = "shape", Te = "size", Rt = "opacity", kt = "fillOpacity", Ut = "strokeOpacity", Mt = "strokeWidth", Cn = "text", Or = "order", Tn = "detail", br = "key", xr = "tooltip", Ir = "href", za = {
|
|
352
352
|
x: 1,
|
|
353
353
|
y: 1,
|
|
354
354
|
x2: 1,
|
|
@@ -386,9 +386,9 @@ const Va = {
|
|
|
386
386
|
column: 1,
|
|
387
387
|
facet: 1
|
|
388
388
|
}, et = Object.assign({}, An, Va), Ka = le(et), { order: fd, detail: gd } = et;
|
|
389
|
-
|
|
389
|
+
$e(et, ["order", "detail"]);
|
|
390
390
|
const { order: hd, detail: md, row: pd, column: yd, facet: Ed } = et;
|
|
391
|
-
|
|
391
|
+
$e(et, ["order", "detail", "row", "column", "facet"]);
|
|
392
392
|
const {
|
|
393
393
|
x: Sd,
|
|
394
394
|
y: Nd,
|
|
@@ -398,26 +398,26 @@ const {
|
|
|
398
398
|
latitude: Td,
|
|
399
399
|
longitude: Ad,
|
|
400
400
|
latitude2: Od,
|
|
401
|
-
longitude2:
|
|
402
|
-
} = An, On =
|
|
401
|
+
longitude2: bd
|
|
402
|
+
} = An, On = $e(An, ["x", "y", "x2", "y2", "latitude", "longitude", "latitude2", "longitude2"]), wr = le(On), Xa = { x: 1, y: 1 }, {
|
|
403
403
|
// x2 and y2 share the same scale as x and y
|
|
404
404
|
// text and tooltip have format instead of scale,
|
|
405
405
|
// href has neither format, nor scale
|
|
406
|
-
text:
|
|
406
|
+
text: xd,
|
|
407
407
|
tooltip: Id,
|
|
408
408
|
href: wd,
|
|
409
409
|
// detail and order have no scale
|
|
410
410
|
detail: vd,
|
|
411
411
|
key: Dd,
|
|
412
412
|
order: Fd
|
|
413
|
-
} = On, Ja =
|
|
413
|
+
} = On, Ja = $e(On, ["text", "tooltip", "href", "detail", "key", "order"]), Za = Object.assign({}, Xa, Ja);
|
|
414
414
|
function Qa(e) {
|
|
415
415
|
return !!Za[e];
|
|
416
416
|
}
|
|
417
417
|
function eo(e, t) {
|
|
418
418
|
return no(e)[t];
|
|
419
419
|
}
|
|
420
|
-
const
|
|
420
|
+
const bn = {
|
|
421
421
|
// all marks
|
|
422
422
|
area: "always",
|
|
423
423
|
bar: "always",
|
|
@@ -431,7 +431,7 @@ const xn = {
|
|
|
431
431
|
trail: "always",
|
|
432
432
|
text: "always",
|
|
433
433
|
tick: "always"
|
|
434
|
-
}, { geoshape: Rd } =
|
|
434
|
+
}, { geoshape: Rd } = bn, to = $e(bn, ["geoshape"]);
|
|
435
435
|
function no(e) {
|
|
436
436
|
switch (e) {
|
|
437
437
|
case ce:
|
|
@@ -439,8 +439,8 @@ function no(e) {
|
|
|
439
439
|
case Ft:
|
|
440
440
|
// falls through
|
|
441
441
|
case Tn:
|
|
442
|
-
case xr:
|
|
443
442
|
case br:
|
|
443
|
+
case xr:
|
|
444
444
|
case Ir:
|
|
445
445
|
case Or:
|
|
446
446
|
// TODO: revise (order might not support rect, which is not stackable?)
|
|
@@ -453,7 +453,7 @@ function no(e) {
|
|
|
453
453
|
case ie:
|
|
454
454
|
// falls through
|
|
455
455
|
case Q:
|
|
456
|
-
return
|
|
456
|
+
return bn;
|
|
457
457
|
case R:
|
|
458
458
|
case F:
|
|
459
459
|
case _r:
|
|
@@ -512,7 +512,7 @@ function Yt(e) {
|
|
|
512
512
|
case Qe:
|
|
513
513
|
// TEXT, TOOLTIP, and HREF have no scale but have discrete output [falls through]
|
|
514
514
|
case Cn:
|
|
515
|
-
case
|
|
515
|
+
case xr:
|
|
516
516
|
case Ir:
|
|
517
517
|
return "discrete";
|
|
518
518
|
// Color can be either continuous or discrete, depending on scale type.
|
|
@@ -526,7 +526,7 @@ function Yt(e) {
|
|
|
526
526
|
case Tr:
|
|
527
527
|
case Ar:
|
|
528
528
|
case Tn:
|
|
529
|
-
case
|
|
529
|
+
case br:
|
|
530
530
|
case Or:
|
|
531
531
|
return;
|
|
532
532
|
}
|
|
@@ -719,10 +719,10 @@ function Ao(e, t, n) {
|
|
|
719
719
|
function Oo(e) {
|
|
720
720
|
return `Invalid field type "${e}"`;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
722
|
+
function bo(e, t, n) {
|
|
723
723
|
return `A ${n.scaleType ? `${n.scaleType} scale` : n.zeroFalse ? "scale with zero=false" : "scale with custom domain that excludes zero"} is used to encode ${e}'s ${t}. This can be misleading as the ${t === "x" ? "width" : "height"} of the ${e} can be arbitrary based on the scale domain. You may want to use point mark instead.`;
|
|
724
724
|
}
|
|
725
|
-
function
|
|
725
|
+
function xo(e, t) {
|
|
726
726
|
return `Invalid field type "${e}" for aggregate: "${t}", using "quantitative" instead.`;
|
|
727
727
|
}
|
|
728
728
|
function Io(e) {
|
|
@@ -757,8 +757,8 @@ function Po(e) {
|
|
|
757
757
|
function Lo(e, t) {
|
|
758
758
|
return `Using discrete channel "${e}" to encode "${t}" field can be misleading as it does not encode ${t === "ordinal" ? "order" : "magnitude"}.`;
|
|
759
759
|
}
|
|
760
|
-
const
|
|
761
|
-
function
|
|
760
|
+
const Bo = "Bar mark should not be used with point scale when rangeStep is null. Please use band scale instead.";
|
|
761
|
+
function $o(e, t) {
|
|
762
762
|
return `Line mark is for continuous lines and thus cannot be used with ${e && t ? "x2 and y2" : e ? "x2" : "y2"}. We will use the rule mark (line segments) instead.`;
|
|
763
763
|
}
|
|
764
764
|
function jo(e, t) {
|
|
@@ -849,7 +849,7 @@ function Es(e) {
|
|
|
849
849
|
}
|
|
850
850
|
const Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
851
851
|
__proto__: null,
|
|
852
|
-
BAR_WITH_POINT_SCALE_AND_RANGESTEP_NULL:
|
|
852
|
+
BAR_WITH_POINT_SCALE_AND_RANGESTEP_NULL: Bo,
|
|
853
853
|
CANNOT_FIX_RANGE_STEP_WITH_FIT: oo,
|
|
854
854
|
CANNOT_UNION_CUSTOM_DOMAIN_WITH_FIELD_DOMAIN: Go,
|
|
855
855
|
CONCAT_CANNOT_SHARE_AXIS: po,
|
|
@@ -891,17 +891,17 @@ const Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
891
891
|
invalidAggregate: Io,
|
|
892
892
|
invalidEncodingChannel: Uo,
|
|
893
893
|
invalidFieldType: Oo,
|
|
894
|
-
invalidFieldTypeForCountAggregate:
|
|
894
|
+
invalidFieldTypeForCountAggregate: xo,
|
|
895
895
|
invalidTimeUnit: us,
|
|
896
896
|
invalidTransformIgnored: No,
|
|
897
897
|
latLongDeprecated: Fo,
|
|
898
|
-
lineWithRange:
|
|
898
|
+
lineWithRange: $o,
|
|
899
899
|
mergeConflictingDomainProperty: es,
|
|
900
900
|
mergeConflictingProperty: Qo,
|
|
901
901
|
missingFieldType: wo,
|
|
902
902
|
nearestNotSupportForContinuous: co,
|
|
903
903
|
noSuchRepeatedValue: ho,
|
|
904
|
-
nonZeroScaleUsedWithLengthMark:
|
|
904
|
+
nonZeroScaleUsedWithLengthMark: bo,
|
|
905
905
|
orientOverridden: jo,
|
|
906
906
|
primitiveChannelDef: Ao,
|
|
907
907
|
projectionOverridden: To,
|
|
@@ -967,7 +967,7 @@ const As = {
|
|
|
967
967
|
quantile: "discretizing",
|
|
968
968
|
quantize: "discretizing",
|
|
969
969
|
threshold: "discretizing"
|
|
970
|
-
}, Os = le(As), kr = ["linear", "log", "pow", "sqrt", "symlog", "time", "utc"],
|
|
970
|
+
}, Os = le(As), kr = ["linear", "log", "pow", "sqrt", "symlog", "time", "utc"], bs = Ge(kr), xs = ["quantile", "quantize", "threshold"], Is = Ge(xs), ws = kr.concat([
|
|
971
971
|
"quantile",
|
|
972
972
|
"quantize",
|
|
973
973
|
"threshold"
|
|
@@ -979,12 +979,12 @@ function Rs(e) {
|
|
|
979
979
|
return e in vs;
|
|
980
980
|
}
|
|
981
981
|
function Ue(e) {
|
|
982
|
-
return e in
|
|
982
|
+
return e in bs;
|
|
983
983
|
}
|
|
984
984
|
function ks(e) {
|
|
985
985
|
return e in Is;
|
|
986
986
|
}
|
|
987
|
-
const
|
|
987
|
+
const xn = {
|
|
988
988
|
type: 1,
|
|
989
989
|
domain: 1,
|
|
990
990
|
align: 1,
|
|
@@ -1008,8 +1008,8 @@ const bn = {
|
|
|
1008
1008
|
padding: 1,
|
|
1009
1009
|
paddingInner: 1,
|
|
1010
1010
|
paddingOuter: 1
|
|
1011
|
-
}, Ur = le(
|
|
1012
|
-
|
|
1011
|
+
}, Ur = le(xn), { type: kd, domain: Ud, range: Md, rangeStep: Pd, scheme: Ld } = xn;
|
|
1012
|
+
$e(xn, ["type", "domain", "range", "rangeStep", "scheme"]);
|
|
1013
1013
|
Ms();
|
|
1014
1014
|
function zt(e, t) {
|
|
1015
1015
|
switch (t) {
|
|
@@ -1338,7 +1338,7 @@ function Ls(e, t) {
|
|
|
1338
1338
|
return !Z(t, n);
|
|
1339
1339
|
});
|
|
1340
1340
|
}
|
|
1341
|
-
function
|
|
1341
|
+
function Bs(e) {
|
|
1342
1342
|
return Object.keys(e);
|
|
1343
1343
|
}
|
|
1344
1344
|
function ue(e) {
|
|
@@ -1360,8 +1360,8 @@ const Lr = {
|
|
|
1360
1360
|
axis: 1,
|
|
1361
1361
|
legend: 1,
|
|
1362
1362
|
value: 1
|
|
1363
|
-
}, In =
|
|
1364
|
-
function
|
|
1363
|
+
}, In = Bs(Lr);
|
|
1364
|
+
function $s(e) {
|
|
1365
1365
|
return e in Lr;
|
|
1366
1366
|
}
|
|
1367
1367
|
const js = {
|
|
@@ -1374,7 +1374,7 @@ const js = {
|
|
|
1374
1374
|
function wn(e) {
|
|
1375
1375
|
return js[e];
|
|
1376
1376
|
}
|
|
1377
|
-
const Gs = ["maxbins", "divide", "extent", "base", "step", "steps", "minstep"], Hs = ["field", "op", "order"],
|
|
1377
|
+
const Gs = ["maxbins", "divide", "extent", "base", "step", "steps", "minstep"], Hs = ["field", "op", "order"], Br = Gs.map((e) => ({ parent: "bin", child: e })), vn = Hs.map((e) => ({ parent: "sort", child: e })), gt = Ur.map((e) => ({ parent: "scale", child: e })), $r = Dr.map((e) => ({ parent: "axis", child: e })), jr = Rr.map((e) => ({ parent: "legend", child: e })), Pt = [].concat(Br, vn, gt, $r, jr), Gr = ["width", "height", "background", "padding", "title"], Hr = ".";
|
|
1378
1378
|
function lt(e) {
|
|
1379
1379
|
return ue(e) ? e.parent + Hr + e.child : e;
|
|
1380
1380
|
}
|
|
@@ -1394,7 +1394,7 @@ function me(e, t) {
|
|
|
1394
1394
|
return (Ys[e] || {})[t];
|
|
1395
1395
|
}
|
|
1396
1396
|
function Wr(e) {
|
|
1397
|
-
return
|
|
1397
|
+
return $s(e) || ue(e);
|
|
1398
1398
|
}
|
|
1399
1399
|
const zs = [].concat(In, Pt), Yr = [
|
|
1400
1400
|
"type",
|
|
@@ -1413,12 +1413,12 @@ const zs = [].concat(In, Pt), Yr = [
|
|
|
1413
1413
|
"sort",
|
|
1414
1414
|
"axis",
|
|
1415
1415
|
"legend"
|
|
1416
|
-
].concat(
|
|
1416
|
+
].concat(Br, gt, $r, jr, vn);
|
|
1417
1417
|
var m;
|
|
1418
1418
|
(function(e) {
|
|
1419
1419
|
e.MARK = "mark", e.TRANSFORM = "transform", e.STACK = "stack", e.FORMAT = "format", e.CHANNEL = "channel", e.AGGREGATE = "aggregate", e.AUTOCOUNT = "autoCount", e.BIN = "bin", e.HAS_FN = "hasFn", e.TIMEUNIT = "timeUnit", e.FIELD = "field", e.TYPE = "type", e.SORT = "sort", e.SCALE = "scale", e.AXIS = "axis", e.LEGEND = "legend", e.WIDTH = "width", e.HEIGHT = "height", e.BACKGROUND = "background", e.PADDING = "padding", e.TITLE = "title";
|
|
1420
1420
|
})(m || (m = {}));
|
|
1421
|
-
const
|
|
1421
|
+
const xe = "area", ge = "bar", qe = "line", Ke = "point", un = "rect", ln = "rule", ht = "text", Ve = "tick", mt = "circle", pt = "square", qs = {
|
|
1422
1422
|
area: 1,
|
|
1423
1423
|
bar: 1,
|
|
1424
1424
|
line: 1,
|
|
@@ -1819,7 +1819,7 @@ const X = [!1, !0], uc = {
|
|
|
1819
1819
|
titleOrient: [void 0],
|
|
1820
1820
|
titlePadding: [void 0]
|
|
1821
1821
|
}, hc = {
|
|
1822
|
-
mark: [Ke, ge, qe,
|
|
1822
|
+
mark: [Ke, ge, qe, xe, un, Ve, ht],
|
|
1823
1823
|
channel: [R, F, ie, Q, Te, ce],
|
|
1824
1824
|
aggregate: [void 0, "mean"],
|
|
1825
1825
|
autoCount: X,
|
|
@@ -1938,7 +1938,7 @@ function Ec(e) {
|
|
|
1938
1938
|
const Kr = ["count", "sum", "distinct", "valid", "missing"], Sc = ["mean", "average", "median", "q1", "q3", "min", "max"];
|
|
1939
1939
|
Ge(Sc);
|
|
1940
1940
|
function Nc(e) {
|
|
1941
|
-
return Sn(e) && (e =
|
|
1941
|
+
return Sn(e) && (e = bc(e, void 0)), "bin" + le(e).map((t) => $a(`_${t}_${e[t]}`)).join("");
|
|
1942
1942
|
}
|
|
1943
1943
|
function Xr(e) {
|
|
1944
1944
|
return e === !0 || _c(e) && !e.binned;
|
|
@@ -2023,13 +2023,13 @@ function Oc(e) {
|
|
|
2023
2023
|
if (Jr(e))
|
|
2024
2024
|
return e.condition;
|
|
2025
2025
|
}
|
|
2026
|
-
function
|
|
2026
|
+
function bc(e, t) {
|
|
2027
2027
|
return Sn(e) ? { maxbins: dn(t) } : e === "binned" ? {
|
|
2028
2028
|
binned: !0
|
|
2029
2029
|
} : !e.maxbins && !e.step ? Object.assign({}, e, { maxbins: dn(t) }) : e;
|
|
2030
2030
|
}
|
|
2031
2031
|
const ke = { compatible: !0 };
|
|
2032
|
-
function
|
|
2032
|
+
function xc(e, t) {
|
|
2033
2033
|
const n = e.type;
|
|
2034
2034
|
if (n === "geojson" && t !== "shape")
|
|
2035
2035
|
return {
|
|
@@ -2143,7 +2143,7 @@ class K {
|
|
|
2143
2143
|
}
|
|
2144
2144
|
function Xn(e, t) {
|
|
2145
2145
|
const n = e && e[t];
|
|
2146
|
-
return n ? vt(n) ?
|
|
2146
|
+
return n ? vt(n) ? Ba(n, (a) => !!a.field) : Ce(n) || Jr(n) : !1;
|
|
2147
2147
|
}
|
|
2148
2148
|
const vc = {
|
|
2149
2149
|
zero: 1,
|
|
@@ -2153,7 +2153,7 @@ const vc = {
|
|
|
2153
2153
|
function Dc(e) {
|
|
2154
2154
|
return !!vc[e];
|
|
2155
2155
|
}
|
|
2156
|
-
const Fc = [ge,
|
|
2156
|
+
const Fc = [ge, xe, ln, Ke, mt, pt, qe, ht, Ve], Rc = [ge, xe];
|
|
2157
2157
|
function kc(e) {
|
|
2158
2158
|
const t = e.x, n = e.y;
|
|
2159
2159
|
if (Ce(t) && Ce(n))
|
|
@@ -2216,10 +2216,10 @@ function Uc(e, t, n, a = {}) {
|
|
|
2216
2216
|
});
|
|
2217
2217
|
}
|
|
2218
2218
|
function Mc(e) {
|
|
2219
|
-
return he(e.encodings, (t) =>
|
|
2219
|
+
return he(e.encodings, (t) => x(t) && !O(t.aggregate) && !!t.aggregate || Bt(t));
|
|
2220
2220
|
}
|
|
2221
2221
|
function Qr(e) {
|
|
2222
|
-
if (
|
|
2222
|
+
if (!Bc(e))
|
|
2223
2223
|
return null;
|
|
2224
2224
|
const t = ni(e.encodings, { schema: null, wildcardMode: "null" }), n = e.mark;
|
|
2225
2225
|
return Uc(n, t, void 0, { disallowNonLinearStack: !0 });
|
|
@@ -2235,7 +2235,7 @@ function Lc(e) {
|
|
|
2235
2235
|
return t.channel;
|
|
2236
2236
|
return null;
|
|
2237
2237
|
}
|
|
2238
|
-
function
|
|
2238
|
+
function Bc(e) {
|
|
2239
2239
|
if (O(e.mark))
|
|
2240
2240
|
return !1;
|
|
2241
2241
|
const t = [
|
|
@@ -2262,7 +2262,7 @@ function ei(e, t = {}) {
|
|
|
2262
2262
|
return !0;
|
|
2263
2263
|
return !1;
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2265
|
+
function $c(e) {
|
|
2266
2266
|
return e.map((t) => jc(t));
|
|
2267
2267
|
}
|
|
2268
2268
|
function jc(e) {
|
|
@@ -2284,7 +2284,7 @@ const Rn = new K(), kn = (
|
|
|
2284
2284
|
sort: { x: !0, y: !0, path: !0, order: !0 },
|
|
2285
2285
|
stack: { x: !0, y: !0 }
|
|
2286
2286
|
};
|
|
2287
|
-
function
|
|
2287
|
+
function Be(e, t = kn, n = Rn) {
|
|
2288
2288
|
const a = [];
|
|
2289
2289
|
t.get(m.MARK) && a.push(we(e.mark, n.get(m.MARK))), e.transform && e.transform.length > 0 && a.push("transform:" + JSON.stringify(e.transform));
|
|
2290
2290
|
let r;
|
|
@@ -2309,7 +2309,7 @@ function $e(e, t = kn, n = Rn) {
|
|
|
2309
2309
|
}
|
|
2310
2310
|
function Jn(e, t = kn, n = Rn) {
|
|
2311
2311
|
const a = [];
|
|
2312
|
-
if (t.get(m.CHANNEL) && a.push(we(e.channel, n.get(m.CHANNEL))),
|
|
2312
|
+
if (t.get(m.CHANNEL) && a.push(we(e.channel, n.get(m.CHANNEL))), x(e)) {
|
|
2313
2313
|
const r = ti(e, t, n);
|
|
2314
2314
|
r && a.push(r);
|
|
2315
2315
|
} else ee(e) ? a.push(e.value) : H(e) && a.push("autocount()");
|
|
@@ -2320,7 +2320,7 @@ function ti(e, t = kn, n = Rn) {
|
|
|
2320
2320
|
return "-";
|
|
2321
2321
|
const a = Gc(e, t, n), r = Hc(e, t, n);
|
|
2322
2322
|
let o;
|
|
2323
|
-
if (
|
|
2323
|
+
if (x(e)) {
|
|
2324
2324
|
if (o = t.get("field") ? we(e.field, n.get("field")) : "...", t.get(m.TYPE))
|
|
2325
2325
|
if (O(e.type))
|
|
2326
2326
|
o += "," + we(e.type, n.get(m.TYPE));
|
|
@@ -2338,7 +2338,7 @@ function ti(e, t = kn, n = Rn) {
|
|
|
2338
2338
|
function Gc(e, t, n) {
|
|
2339
2339
|
if (t.get(m.AGGREGATE) && e.aggregate && !O(e.aggregate))
|
|
2340
2340
|
return dt(e.aggregate, n.get(m.AGGREGATE));
|
|
2341
|
-
if (t.get(m.AGGREGATE) &&
|
|
2341
|
+
if (t.get(m.AGGREGATE) && Bt(e))
|
|
2342
2342
|
return dt("count", n.get(m.AGGREGATE));
|
|
2343
2343
|
if (t.get(m.TIMEUNIT) && e.timeUnit && !O(e.timeUnit))
|
|
2344
2344
|
return dt(e.timeUnit, n.get(m.TIMEUNIT));
|
|
@@ -2477,7 +2477,7 @@ var Zn;
|
|
|
2477
2477
|
function ee(e) {
|
|
2478
2478
|
return e != null && e.value !== void 0;
|
|
2479
2479
|
}
|
|
2480
|
-
function
|
|
2480
|
+
function x(e) {
|
|
2481
2481
|
return e != null && (e.field || e.aggregate === "count");
|
|
2482
2482
|
}
|
|
2483
2483
|
function H(e) {
|
|
@@ -2486,7 +2486,7 @@ function H(e) {
|
|
|
2486
2486
|
function te(e) {
|
|
2487
2487
|
return H(e) && e.autoCount === !1;
|
|
2488
2488
|
}
|
|
2489
|
-
function
|
|
2489
|
+
function Bt(e) {
|
|
2490
2490
|
return H(e) && e.autoCount === !0;
|
|
2491
2491
|
}
|
|
2492
2492
|
const Wc = [
|
|
@@ -2527,7 +2527,7 @@ function Yc(e) {
|
|
|
2527
2527
|
}
|
|
2528
2528
|
function Un(e, t = {}) {
|
|
2529
2529
|
const { props: n = Wc, schema: a, wildcardMode: r = "skip" } = t;
|
|
2530
|
-
if (
|
|
2530
|
+
if (x(e)) {
|
|
2531
2531
|
const o = {};
|
|
2532
2532
|
for (const c of n) {
|
|
2533
2533
|
let f = e[c];
|
|
@@ -2569,10 +2569,10 @@ function Un(e, t = {}) {
|
|
|
2569
2569
|
}
|
|
2570
2570
|
}
|
|
2571
2571
|
function ze(e) {
|
|
2572
|
-
return
|
|
2572
|
+
return x(e) ? !_e(e) && e.type !== "temporal" : H(e);
|
|
2573
2573
|
}
|
|
2574
2574
|
function _e(e) {
|
|
2575
|
-
if (
|
|
2575
|
+
if (x(e)) {
|
|
2576
2576
|
const t = Un(e, { props: ["bin", "timeUnit", "type"] });
|
|
2577
2577
|
return Zr(t) || !!t.timeUnit;
|
|
2578
2578
|
}
|
|
@@ -2750,7 +2750,7 @@ const Oi = W(function(e) {
|
|
|
2750
2750
|
return t.getUTCMonth() - e.getUTCMonth() + (t.getUTCFullYear() - e.getUTCFullYear()) * 12;
|
|
2751
2751
|
}, function(e) {
|
|
2752
2752
|
return e.getUTCMonth();
|
|
2753
|
-
}),
|
|
2753
|
+
}), bi = W(function(e) {
|
|
2754
2754
|
e.setUTCHours(0, 0, 0, 0), e.setUTCMonth(0, 1);
|
|
2755
2755
|
}, function(e, t) {
|
|
2756
2756
|
e.setUTCFullYear(e.getUTCFullYear() + t);
|
|
@@ -2759,7 +2759,7 @@ const Oi = W(function(e) {
|
|
|
2759
2759
|
}, function(e) {
|
|
2760
2760
|
return e.getUTCFullYear();
|
|
2761
2761
|
});
|
|
2762
|
-
var
|
|
2762
|
+
var xi = Xe.range, zc = ri.range, qc = ii.range, Vc = ai.range, Kc = oi.range, Xc = yt.range, Jc = si.range, Zc = ci.range, Qc = ui.range, eu = li.range, tu = di.range, nu = fi.range, ru = yt.range, iu = gi.range, au = hi.range, ou = Xe, su = xi, cu = mi.range, uu = pi.range, lu = yi.range, du = Ei.range, fu = Et.range, gu = Si.range, hu = Ni.range, mu = _i.range, pu = Ci.range, yu = Ti.range, Eu = Ai.range, Su = Et.range, Nu = Oi.range, _u = bi.range;
|
|
2763
2763
|
const Cu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2764
2764
|
__proto__: null,
|
|
2765
2765
|
day: oi,
|
|
@@ -2770,7 +2770,7 @@ const Cu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2770
2770
|
hours: Vc,
|
|
2771
2771
|
interval: W,
|
|
2772
2772
|
millisecond: Xe,
|
|
2773
|
-
milliseconds:
|
|
2773
|
+
milliseconds: xi,
|
|
2774
2774
|
minute: ii,
|
|
2775
2775
|
minutes: qc,
|
|
2776
2776
|
monday: si,
|
|
@@ -2815,7 +2815,7 @@ const Cu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2815
2815
|
utcWednesdays: mu,
|
|
2816
2816
|
utcWeek: Et,
|
|
2817
2817
|
utcWeeks: Su,
|
|
2818
|
-
utcYear:
|
|
2818
|
+
utcYear: bi,
|
|
2819
2819
|
utcYears: _u,
|
|
2820
2820
|
wednesday: ui,
|
|
2821
2821
|
wednesdays: Qc,
|
|
@@ -3083,7 +3083,7 @@ function Ou() {
|
|
|
3083
3083
|
function a(s) {
|
|
3084
3084
|
if (!s)
|
|
3085
3085
|
throw Error("Missing binning options.");
|
|
3086
|
-
var d = s.maxbins || 15, u = s.base || 10, l = Math.log(u), g = s.div || [5, 2], h = s.min, p = s.max, y = p - h, E, _, T, A, N,
|
|
3086
|
+
var d = s.maxbins || 15, u = s.base || 10, l = Math.log(u), g = s.div || [5, 2], h = s.min, p = s.max, y = p - h, E, _, T, A, N, b, C;
|
|
3087
3087
|
if (s.step)
|
|
3088
3088
|
E = s.step;
|
|
3089
3089
|
else if (s.steps)
|
|
@@ -3097,8 +3097,8 @@ function Ou() {
|
|
|
3097
3097
|
Math.pow(u, Math.round(Math.log(y) / l) - _)
|
|
3098
3098
|
); Math.ceil(y / E) > d; )
|
|
3099
3099
|
E *= u;
|
|
3100
|
-
for (
|
|
3101
|
-
N = E / g[
|
|
3100
|
+
for (b = 0; b < g.length; ++b)
|
|
3101
|
+
N = E / g[b], N >= T && y / N <= d && (E = N);
|
|
3102
3102
|
}
|
|
3103
3103
|
return N = Math.log(E), A = N >= 0 ? 0 : ~~(-N / l) + 1, C = Math.pow(u, -A - 1), h = Math.min(h, Math.floor(h / E + C) * E), p = Math.ceil(p / E) * E, {
|
|
3104
3104
|
start: h,
|
|
@@ -3141,8 +3141,8 @@ function Ou() {
|
|
|
3141
3141
|
return E.unit = y, E.index = i, s.raw || (E.value = f), E;
|
|
3142
3142
|
}, nn = a, nn;
|
|
3143
3143
|
}
|
|
3144
|
-
var
|
|
3145
|
-
const
|
|
3144
|
+
var bu = Ou();
|
|
3145
|
+
const xu = /* @__PURE__ */ fr(bu);
|
|
3146
3146
|
var rn, tr;
|
|
3147
3147
|
function Ii() {
|
|
3148
3148
|
if (tr) return rn;
|
|
@@ -3433,13 +3433,13 @@ function vu() {
|
|
|
3433
3433
|
var E = r.variance(u), _ = r.variance(l), T = Math.sqrt(((p - 1) * E + (y - 1) * _) / (p + y - 2));
|
|
3434
3434
|
return T === 0 ? 0 : (g - h) / T;
|
|
3435
3435
|
}, r.covariance = function(i, s, d) {
|
|
3436
|
-
var u = d ? i.map(t.$(s)) : i, l = d ? i.map(t.$(d)) : s, g = u.length, h = r.mean(u), p = r.mean(l), y = 0, E = 0, _, T, A, N,
|
|
3436
|
+
var u = d ? i.map(t.$(s)) : i, l = d ? i.map(t.$(d)) : s, g = u.length, h = r.mean(u), p = r.mean(l), y = 0, E = 0, _, T, A, N, b;
|
|
3437
3437
|
if (g !== l.length)
|
|
3438
3438
|
throw Error("Input lengths must match.");
|
|
3439
3439
|
for (_ = 0; _ < g; ++_)
|
|
3440
|
-
if (T = u[_], N = t.isValid(T), A = l[_],
|
|
3440
|
+
if (T = u[_], N = t.isValid(T), A = l[_], b = t.isValid(A), N && b)
|
|
3441
3441
|
y += (T - h) * (A - p), ++E;
|
|
3442
|
-
else if (N ||
|
|
3442
|
+
else if (N || b)
|
|
3443
3443
|
throw Error("Valid values must align.");
|
|
3444
3444
|
return y / (E - 1);
|
|
3445
3445
|
}, r.rank = function(i, s) {
|
|
@@ -3538,22 +3538,22 @@ function vu() {
|
|
|
3538
3538
|
u = (s ? s(i[d]) : i[d]) / l, u && (g += u * Math.log(u));
|
|
3539
3539
|
return -g / Math.LN2;
|
|
3540
3540
|
}, r.mutual = function(i, s, d, u) {
|
|
3541
|
-
var l = u ? i.map(t.$(s)) : i, g = u ? i.map(t.$(d)) : s, h = u ? i.map(t.$(u)) : d, p = {}, y = {}, E = h.length, _ = 0, T = 0, A = 0, N,
|
|
3541
|
+
var l = u ? i.map(t.$(s)) : i, g = u ? i.map(t.$(d)) : s, h = u ? i.map(t.$(u)) : d, p = {}, y = {}, E = h.length, _ = 0, T = 0, A = 0, N, b, C;
|
|
3542
3542
|
for (C = 0; C < E; ++C)
|
|
3543
3543
|
p[l[C]] = 0, y[g[C]] = 0;
|
|
3544
3544
|
for (C = 0; C < E; ++C)
|
|
3545
3545
|
p[l[C]] += h[C], y[g[C]] += h[C], _ += h[C];
|
|
3546
|
-
for (
|
|
3547
|
-
h[C] !== 0 && (N = _ * h[C] / (p[l[C]] * y[g[C]]), T += h[C] *
|
|
3546
|
+
for (b = 1 / (_ * Math.LN2), C = 0; C < E; ++C)
|
|
3547
|
+
h[C] !== 0 && (N = _ * h[C] / (p[l[C]] * y[g[C]]), T += h[C] * b * Math.log(N), A += h[C] * b * Math.log(h[C] / _));
|
|
3548
3548
|
return [T, 1 + T / A];
|
|
3549
3549
|
}, r.mutual.info = function(i, s, d, u) {
|
|
3550
3550
|
return r.mutual(i, s, d, u)[0];
|
|
3551
3551
|
}, r.mutual.dist = function(i, s, d, u) {
|
|
3552
3552
|
return r.mutual(i, s, d, u)[1];
|
|
3553
3553
|
}, r.profile = function(i, s) {
|
|
3554
|
-
var d = 0, u = 0, l = 0, g = 0, h = null, p = null, y = 0, E = [], _ = {}, T, A, N,
|
|
3554
|
+
var d = 0, u = 0, l = 0, g = 0, h = null, p = null, y = 0, E = [], _ = {}, T, A, N, b, C;
|
|
3555
3555
|
for (N = 0; N < i.length; ++N)
|
|
3556
|
-
|
|
3556
|
+
b = s ? s(i[N]) : i[N], _[b] = b in _ ? _[b] + 1 : (g += 1, 1), b == null ? ++l : t.isValid(b) && (C = typeof b == "string" ? b.length : b, (h === null || C < h) && (h = C), (p === null || C > p) && (p = C), T = C - d, d = d + T / ++u, y = y + T * (C - d), E.push(C));
|
|
3557
3557
|
return y = y / (u - 1), A = Math.sqrt(y), E.sort(t.cmp), {
|
|
3558
3558
|
type: n(i, s),
|
|
3559
3559
|
unique: _,
|
|
@@ -3565,10 +3565,10 @@ function vu() {
|
|
|
3565
3565
|
max: p,
|
|
3566
3566
|
mean: d,
|
|
3567
3567
|
stdev: A,
|
|
3568
|
-
median:
|
|
3568
|
+
median: b = r.quantile(E, 0.5),
|
|
3569
3569
|
q1: r.quantile(E, 0.25),
|
|
3570
3570
|
q3: r.quantile(E, 0.75),
|
|
3571
|
-
modeskew: A === 0 ? 0 : (d -
|
|
3571
|
+
modeskew: A === 0 ? 0 : (d - b) / A
|
|
3572
3572
|
};
|
|
3573
3573
|
}, r.summary = function(i, s) {
|
|
3574
3574
|
s = s || t.keys(i[0]);
|
|
@@ -3581,17 +3581,17 @@ function vu() {
|
|
|
3581
3581
|
}(an)), an.exports;
|
|
3582
3582
|
}
|
|
3583
3583
|
var Du = vu();
|
|
3584
|
-
const Fu =
|
|
3584
|
+
const Fu = xu;
|
|
3585
3585
|
function Ru(e, t = {}, n = { fields: [] }) {
|
|
3586
3586
|
t = I.extend({}, nt, t);
|
|
3587
3587
|
let a = Du.summary(e), r = Iu.inferAll(e), o = n.fields.reduce((i, s) => (i[s.name] = s, i), {}), c = a.map(function(i, s) {
|
|
3588
|
-
const d = i.field, u = r[d] === "date" ?
|
|
3588
|
+
const d = i.field, u = r[d] === "date" ? B.DATETIME : r[d];
|
|
3589
3589
|
let l = i.distinct, g;
|
|
3590
|
-
if (u ===
|
|
3590
|
+
if (u === B.NUMBER)
|
|
3591
3591
|
g = P;
|
|
3592
|
-
else if (u ===
|
|
3592
|
+
else if (u === B.INTEGER)
|
|
3593
3593
|
l < t.numberNominalLimit && l / i.count < t.numberNominalProportion ? g = re : g = P;
|
|
3594
|
-
else if (u ===
|
|
3594
|
+
else if (u === B.DATETIME) {
|
|
3595
3595
|
g = Y, i.min = new Date(e[0][d]), i.max = new Date(e[0][d]);
|
|
3596
3596
|
for (const y of e) {
|
|
3597
3597
|
const E = new Date(y[d]).getTime();
|
|
@@ -3733,7 +3733,7 @@ class ku {
|
|
|
3733
3733
|
domain(t) {
|
|
3734
3734
|
const n = this._fieldSchemaIndex[t.field];
|
|
3735
3735
|
let a = I.keys(n.stats.unique);
|
|
3736
|
-
return n.vlType === P ? [+n.stats.min, +n.stats.max] : n.type ===
|
|
3736
|
+
return n.vlType === P ? [+n.stats.min, +n.stats.max] : n.type === B.DATETIME ? [n.stats.min, n.stats.max] : n.type === B.INTEGER || n.type === B.NUMBER ? (a = a.map((r) => +r), a.sort(I.cmp)) : n.vlType === ae && n.ordinalDomain ? n.ordinalDomain : a.map((r) => r === "null" ? null : r).sort(I.cmp);
|
|
3737
3737
|
}
|
|
3738
3738
|
/**
|
|
3739
3739
|
* @return a Summary corresponding to the field of the given EncodingQuery
|
|
@@ -3772,10 +3772,10 @@ function ir(e, t) {
|
|
|
3772
3772
|
return e[a] ? n + 1 : n;
|
|
3773
3773
|
}, 0);
|
|
3774
3774
|
}
|
|
3775
|
-
var
|
|
3775
|
+
var B;
|
|
3776
3776
|
(function(e) {
|
|
3777
3777
|
e[e.STRING = "string"] = "STRING", e[e.NUMBER = "number"] = "NUMBER", e[e.INTEGER = "integer"] = "INTEGER", e[e.BOOLEAN = "boolean"] = "BOOLEAN", e[e.DATETIME = "datetime"] = "DATETIME";
|
|
3778
|
-
})(
|
|
3778
|
+
})(B || (B = {}));
|
|
3779
3779
|
class Di {
|
|
3780
3780
|
constructor(t) {
|
|
3781
3781
|
this.constraint = t;
|
|
@@ -3860,7 +3860,7 @@ const Ri = [
|
|
|
3860
3860
|
allowWildcardForProperties: !1,
|
|
3861
3861
|
strict: !0,
|
|
3862
3862
|
satisfy: (e, t, n, a) => {
|
|
3863
|
-
const r = Object.assign({ field: "f" }, Un(e, { schema: t, props: ["bin", "timeUnit", "type"] })), { compatible: o } =
|
|
3863
|
+
const r = Object.assign({ field: "f" }, Un(e, { schema: t, props: ["bin", "timeUnit", "type"] })), { compatible: o } = xc(r, e.channel);
|
|
3864
3864
|
return o ? !0 : !!((e.channel === "row" || e.channel === "column") && (Qs(r.timeUnit) || ec(r.timeUnit)));
|
|
3865
3865
|
}
|
|
3866
3866
|
},
|
|
@@ -3886,7 +3886,7 @@ const Ri = [
|
|
|
3886
3886
|
properties: [m.AGGREGATE, m.AUTOCOUNT, m.TIMEUNIT, m.BIN],
|
|
3887
3887
|
allowWildcardForProperties: !0,
|
|
3888
3888
|
strict: !0,
|
|
3889
|
-
satisfy: (e, t, n, a) =>
|
|
3889
|
+
satisfy: (e, t, n, a) => x(e) ? (!O(e.aggregate) && e.aggregate ? 1 : 0) + (!O(e.bin) && e.bin ? 1 : 0) + (!O(e.timeUnit) && e.timeUnit ? 1 : 0) <= 1 : !0
|
|
3890
3890
|
},
|
|
3891
3891
|
{
|
|
3892
3892
|
name: "timeUnitAppliedForTemporal",
|
|
@@ -3965,13 +3965,13 @@ const Ri = [
|
|
|
3965
3965
|
if (!n.has("field") && !n.has("type") && !a.constraintManuallySpecifiedValue)
|
|
3966
3966
|
return !0;
|
|
3967
3967
|
switch (r) {
|
|
3968
|
-
case
|
|
3969
|
-
case
|
|
3968
|
+
case B.BOOLEAN:
|
|
3969
|
+
case B.STRING:
|
|
3970
3970
|
return o !== P && o !== Y;
|
|
3971
|
-
case
|
|
3972
|
-
case
|
|
3971
|
+
case B.NUMBER:
|
|
3972
|
+
case B.INTEGER:
|
|
3973
3973
|
return o !== Y;
|
|
3974
|
-
case
|
|
3974
|
+
case B.DATETIME:
|
|
3975
3975
|
return o === Y;
|
|
3976
3976
|
case null:
|
|
3977
3977
|
return !1;
|
|
@@ -4089,8 +4089,8 @@ function Lu(e, t, n, a, r, o) {
|
|
|
4089
4089
|
}
|
|
4090
4090
|
return null;
|
|
4091
4091
|
}
|
|
4092
|
-
const
|
|
4093
|
-
class
|
|
4092
|
+
const Bu = wr.reduce((e, t) => (e[t] = !0, e), {});
|
|
4093
|
+
class $u extends Di {
|
|
4094
4094
|
constructor(t) {
|
|
4095
4095
|
super(t);
|
|
4096
4096
|
}
|
|
@@ -4139,7 +4139,7 @@ const Ui = [
|
|
|
4139
4139
|
const a = e.getMark(), r = e.getEncodings();
|
|
4140
4140
|
if (a === ge) {
|
|
4141
4141
|
for (let o of r)
|
|
4142
|
-
if (
|
|
4142
|
+
if (x(o) && (o.channel === R || o.channel === F) && o.type === P && o.scale && o.scale.zero === !1)
|
|
4143
4143
|
return !1;
|
|
4144
4144
|
}
|
|
4145
4145
|
return !0;
|
|
@@ -4152,7 +4152,7 @@ const Ui = [
|
|
|
4152
4152
|
allowWildcardForProperties: !0,
|
|
4153
4153
|
strict: !1,
|
|
4154
4154
|
satisfy: (e, t, n) => {
|
|
4155
|
-
if (he(e.getEncodings(), (r) =>
|
|
4155
|
+
if (he(e.getEncodings(), (r) => Bt(r)))
|
|
4156
4156
|
return se(e.getEncodings(), (r) => {
|
|
4157
4157
|
if (ee(r) || H(r))
|
|
4158
4158
|
return !0;
|
|
@@ -4174,7 +4174,7 @@ const Ui = [
|
|
|
4174
4174
|
let f = e.getEncodingQueryByIndex(c);
|
|
4175
4175
|
return H(f) && !O(f.autoCount);
|
|
4176
4176
|
}))
|
|
4177
|
-
return he(e.getEncodings(), (c) => (
|
|
4177
|
+
return he(e.getEncodings(), (c) => (x(c) || H(c)) && c.type === P ? te(c) ? !1 : x(c) && (!c.bin || O(c.bin)) : x(c) && c.type === Y ? !c.timeUnit || O(c.timeUnit) : !1);
|
|
4178
4178
|
}
|
|
4179
4179
|
return !0;
|
|
4180
4180
|
}
|
|
@@ -4199,7 +4199,7 @@ const Ui = [
|
|
|
4199
4199
|
satisfy: (e, t, n) => {
|
|
4200
4200
|
const a = e.getMark();
|
|
4201
4201
|
switch (a) {
|
|
4202
|
-
case
|
|
4202
|
+
case xe:
|
|
4203
4203
|
case qe:
|
|
4204
4204
|
return e.channelUsed(R) && e.channelUsed(F);
|
|
4205
4205
|
case ht:
|
|
@@ -4235,7 +4235,7 @@ const Ui = [
|
|
|
4235
4235
|
if (e.isAggregate()) {
|
|
4236
4236
|
let a = !1, r = !1, o = !1;
|
|
4237
4237
|
if (e.specQuery.encodings.forEach((c, f) => {
|
|
4238
|
-
ee(c) || te(c) ||
|
|
4238
|
+
ee(c) || te(c) || x(c) && !c.aggregate && (r = !0, Z([ie, Q], c.channel) ? e.wildcardIndex.hasEncodingProperty(f, m.CHANNEL) && (o = !0) : a = !0);
|
|
4239
4239
|
}), r && !a && (o || n.constraintManuallySpecifiedValue))
|
|
4240
4240
|
return !1;
|
|
4241
4241
|
}
|
|
@@ -4248,7 +4248,7 @@ const Ui = [
|
|
|
4248
4248
|
properties: [m.AGGREGATE, m.AUTOCOUNT, m.BIN, m.TIMEUNIT, m.TYPE],
|
|
4249
4249
|
allowWildcardForProperties: !1,
|
|
4250
4250
|
strict: !1,
|
|
4251
|
-
satisfy: (e, t, n) => e.isAggregate() ? he(e.getEncodings(), (a) => !!(_e(a) ||
|
|
4251
|
+
satisfy: (e, t, n) => e.isAggregate() ? he(e.getEncodings(), (a) => !!(_e(a) || x(a) && a.type === "temporal")) : !0
|
|
4252
4252
|
},
|
|
4253
4253
|
{
|
|
4254
4254
|
// TODO: we can be smarter and check if bar has occlusion based on profiling statistics
|
|
@@ -4257,7 +4257,7 @@ const Ui = [
|
|
|
4257
4257
|
properties: [m.MARK, m.AGGREGATE, m.AUTOCOUNT],
|
|
4258
4258
|
allowWildcardForProperties: !1,
|
|
4259
4259
|
strict: !1,
|
|
4260
|
-
satisfy: (e, t, n) => Z([ge, qe,
|
|
4260
|
+
satisfy: (e, t, n) => Z([ge, qe, xe], e.getMark()) ? e.isAggregate() : !0
|
|
4261
4261
|
},
|
|
4262
4262
|
{
|
|
4263
4263
|
name: "omitBarTickWithSize",
|
|
@@ -4294,9 +4294,9 @@ const Ui = [
|
|
|
4294
4294
|
strict: !0,
|
|
4295
4295
|
satisfy: (e, t, n) => {
|
|
4296
4296
|
const a = e.getMark(), r = e.getEncodings();
|
|
4297
|
-
if (a ===
|
|
4297
|
+
if (a === xe || a === ge) {
|
|
4298
4298
|
for (let o of r)
|
|
4299
|
-
if (
|
|
4299
|
+
if (x(o) && (o.channel === R || o.channel === F) && o.scale && De(o) === k.LOG)
|
|
4300
4300
|
return !1;
|
|
4301
4301
|
}
|
|
4302
4302
|
return !0;
|
|
@@ -4316,7 +4316,7 @@ const Ui = [
|
|
|
4316
4316
|
if (ee(f) || te(f))
|
|
4317
4317
|
continue;
|
|
4318
4318
|
const i = f.channel;
|
|
4319
|
-
if (!O(i) &&
|
|
4319
|
+
if (!O(i) && Bu[i + ""] && (r += 1, e.wildcardIndex.hasEncodingProperty(c, m.CHANNEL) && (o = !0), r > 1 && (o || n.constraintManuallySpecifiedValue)))
|
|
4320
4320
|
return !1;
|
|
4321
4321
|
}
|
|
4322
4322
|
return !0;
|
|
@@ -4360,7 +4360,7 @@ const Ui = [
|
|
|
4360
4360
|
const a = e.specQuery.encodings;
|
|
4361
4361
|
for (let r = 0; r < a.length; r++) {
|
|
4362
4362
|
const o = a[r];
|
|
4363
|
-
if (!(ee(o) || te(o)) && (
|
|
4363
|
+
if (!(ee(o) || te(o)) && (x(o) && o.type === Y && !o.timeUnit && (e.wildcardIndex.hasEncodingProperty(r, m.TIMEUNIT) || n.constraintManuallySpecifiedValue) || o.type === P && x(o) && !o.bin && !o.aggregate && (e.wildcardIndex.hasEncodingProperty(r, m.BIN) || e.wildcardIndex.hasEncodingProperty(r, m.AGGREGATE) || e.wildcardIndex.hasEncodingProperty(r, m.AUTOCOUNT) || n.constraintManuallySpecifiedValue)))
|
|
4364
4364
|
return !1;
|
|
4365
4365
|
}
|
|
4366
4366
|
}
|
|
@@ -4428,13 +4428,13 @@ const Ui = [
|
|
|
4428
4428
|
satisfy: (e, t, n) => {
|
|
4429
4429
|
const a = e.getMark();
|
|
4430
4430
|
switch (a) {
|
|
4431
|
-
case
|
|
4431
|
+
case xe:
|
|
4432
4432
|
case qe:
|
|
4433
4433
|
if (e.isAggregate()) {
|
|
4434
4434
|
const g = e.getEncodingQueryByChannel(R), h = e.getEncodingQueryByChannel(F), p = ze(g), y = ze(h);
|
|
4435
4435
|
return g && h && p !== y && // and the dimension axis should not be nominal
|
|
4436
4436
|
// TODO: make this clause optional
|
|
4437
|
-
!(
|
|
4437
|
+
!(x(g) && !p && Z(["nominal", "key"], g.type)) && !(x(h) && !y && Z(["nominal", "key"], h.type));
|
|
4438
4438
|
}
|
|
4439
4439
|
return !0;
|
|
4440
4440
|
case ht:
|
|
@@ -4448,7 +4448,7 @@ const Ui = [
|
|
|
4448
4448
|
return p !== y;
|
|
4449
4449
|
}
|
|
4450
4450
|
case un:
|
|
4451
|
-
const r = e.getEncodingQueryByChannel(R), o = e.getEncodingQueryByChannel(F), c = _e(r), f = _e(o), i = e.getEncodingQueryByChannel(ce), s = ze(i), d =
|
|
4451
|
+
const r = e.getEncodingQueryByChannel(R), o = e.getEncodingQueryByChannel(F), c = _e(r), f = _e(o), i = e.getEncodingQueryByChannel(ce), s = ze(i), d = x(i) ? i.type === ae : !1;
|
|
4452
4452
|
return (c && f || c && !e.channelUsed(F) || f && !e.channelUsed(R)) && (!i || i && (s || d));
|
|
4453
4453
|
case mt:
|
|
4454
4454
|
case Ke:
|
|
@@ -4522,16 +4522,16 @@ const Ui = [
|
|
|
4522
4522
|
satisfy: (e, t, n) => {
|
|
4523
4523
|
if (n.autoAddCount) {
|
|
4524
4524
|
const a = e.getEncodingQueryByChannel("x"), r = e.getEncodingQueryByChannel("y");
|
|
4525
|
-
if ((!
|
|
4525
|
+
if ((!x(a) || _e(a)) && (!x(r) || _e(r)))
|
|
4526
4526
|
return e.isAggregate() ? se(e.getEncodings(), (o) => {
|
|
4527
4527
|
let c = o.channel;
|
|
4528
|
-
return !(c !== R && c !== F && c !== ie && c !== Q &&
|
|
4528
|
+
return !(c !== R && c !== F && c !== ie && c !== Q && x(o) && !o.aggregate);
|
|
4529
4529
|
}) : !1;
|
|
4530
4530
|
}
|
|
4531
4531
|
return !0;
|
|
4532
4532
|
}
|
|
4533
4533
|
}
|
|
4534
|
-
].map((e) => new
|
|
4534
|
+
].map((e) => new $u(e));
|
|
4535
4535
|
Ui.reduce((e, t) => (e[t.name()] = t, e), {});
|
|
4536
4536
|
const ju = Ui.reduce((e, t) => {
|
|
4537
4537
|
for (const n of t.properties())
|
|
@@ -4547,18 +4547,18 @@ function Mi(e, t, n, a, r) {
|
|
|
4547
4547
|
}
|
|
4548
4548
|
return null;
|
|
4549
4549
|
}
|
|
4550
|
-
const
|
|
4550
|
+
const $t = new K();
|
|
4551
4551
|
function Gu(e) {
|
|
4552
|
-
return
|
|
4552
|
+
return $t.get(e);
|
|
4553
4553
|
}
|
|
4554
|
-
|
|
4554
|
+
$t.set("mark", (e, t, n) => (a, r) => (r.getMark().enum.forEach((c) => {
|
|
4555
4555
|
r.setMark(c), Mi("mark", e.mark, r, t, n) || a.push(r.duplicate());
|
|
4556
4556
|
}), r.resetMark(), a));
|
|
4557
4557
|
In.forEach((e) => {
|
|
4558
|
-
|
|
4558
|
+
$t.set(e, Pi(e));
|
|
4559
4559
|
});
|
|
4560
4560
|
Pt.forEach((e) => {
|
|
4561
|
-
|
|
4561
|
+
$t.set(e, Pi(e));
|
|
4562
4562
|
});
|
|
4563
4563
|
function Pi(e) {
|
|
4564
4564
|
return (t, n, a) => (r, o) => {
|
|
@@ -4591,7 +4591,7 @@ function rt(e, t, n) {
|
|
|
4591
4591
|
}), {
|
|
4592
4592
|
include: t,
|
|
4593
4593
|
replaceIndex: n,
|
|
4594
|
-
replacer:
|
|
4594
|
+
replacer: $c(n)
|
|
4595
4595
|
};
|
|
4596
4596
|
}
|
|
4597
4597
|
const Li = [
|
|
@@ -4642,7 +4642,7 @@ function Ku(e, t) {
|
|
|
4642
4642
|
for (let d = 0; d < t.length; d++) {
|
|
4643
4643
|
const u = s.groupBy = t[d].groupBy;
|
|
4644
4644
|
s.orderGroupBy = t[d].orderGroupBy;
|
|
4645
|
-
const l = I.isArray(u) ?
|
|
4645
|
+
const l = I.isArray(u) ? Be(f.specQuery, r[d], c[d]) : Mn[u](f.specQuery);
|
|
4646
4646
|
i += "/" + l, a[i] || (a[i] = {
|
|
4647
4647
|
name: l,
|
|
4648
4648
|
path: i,
|
|
@@ -4662,11 +4662,11 @@ const Xu = [m.FIELD], ar = rt(Xu);
|
|
|
4662
4662
|
function Ju(e, t) {
|
|
4663
4663
|
return Mn[t](e);
|
|
4664
4664
|
}
|
|
4665
|
-
jt(Yu, (e) =>
|
|
4665
|
+
jt(Yu, (e) => Be(e, ar.include, ar.replacer));
|
|
4666
4666
|
const or = rt(Li);
|
|
4667
|
-
jt(zu, (e) =>
|
|
4667
|
+
jt(zu, (e) => Be(e, or.include, or.replacer));
|
|
4668
4668
|
const sr = rt(Wu);
|
|
4669
|
-
jt(qu, (e) =>
|
|
4669
|
+
jt(qu, (e) => Be(e, sr.include, sr.replacer));
|
|
4670
4670
|
jt(Vu, (e) => JSON.stringify(e));
|
|
4671
4671
|
class Zu {
|
|
4672
4672
|
constructor() {
|
|
@@ -4722,7 +4722,7 @@ class St {
|
|
|
4722
4722
|
t.mark = Vt(t.mark, o, a.enum.mark), r.setMark(t.mark);
|
|
4723
4723
|
}
|
|
4724
4724
|
if (t.encodings.forEach((o, c) => {
|
|
4725
|
-
H(o) && (console.warn("A field with autoCount should not be included as autoCount meant to be an internal object."), o.type = P),
|
|
4725
|
+
H(o) && (console.warn("A field with autoCount should not be included as autoCount meant to be an internal object."), o.type = P), x(o) && o.type === void 0 && (o.type = U), In.forEach((f) => {
|
|
4726
4726
|
if (O(o[f])) {
|
|
4727
4727
|
const i = Ye(f) + c, s = Xt(f, n, a), d = o[f] = Vt(o[f], i, s);
|
|
4728
4728
|
r.setEncodingProperty(c, f, d);
|
|
@@ -4801,7 +4801,7 @@ class St {
|
|
|
4801
4801
|
}
|
|
4802
4802
|
channelEncodingField(t) {
|
|
4803
4803
|
const n = this.getEncodingQueryByChannel(t);
|
|
4804
|
-
return
|
|
4804
|
+
return x(n);
|
|
4805
4805
|
}
|
|
4806
4806
|
getEncodings() {
|
|
4807
4807
|
return this._spec.encodings.filter((t) => !te(t));
|
|
@@ -4843,9 +4843,9 @@ class St {
|
|
|
4843
4843
|
if (I.isString(t))
|
|
4844
4844
|
return Ju(this.specQuery, t);
|
|
4845
4845
|
const n = rt(t);
|
|
4846
|
-
return
|
|
4846
|
+
return Be(this._spec, n.include, n.replacer);
|
|
4847
4847
|
}
|
|
4848
|
-
return
|
|
4848
|
+
return Be(this._spec);
|
|
4849
4849
|
}
|
|
4850
4850
|
/**
|
|
4851
4851
|
* Convert a query to a Vega-Lite spec if it is completed.
|
|
@@ -4878,12 +4878,12 @@ function Qu(e) {
|
|
|
4878
4878
|
}
|
|
4879
4879
|
return I.duplicate(e);
|
|
4880
4880
|
}
|
|
4881
|
-
function
|
|
4881
|
+
function Bi(e) {
|
|
4882
4882
|
return e.items !== void 0;
|
|
4883
4883
|
}
|
|
4884
4884
|
function gn(e) {
|
|
4885
4885
|
let t = e.items[0];
|
|
4886
|
-
for (; t &&
|
|
4886
|
+
for (; t && Bi(t); )
|
|
4887
4887
|
t = t.items[0];
|
|
4888
4888
|
return t;
|
|
4889
4889
|
}
|
|
@@ -4901,7 +4901,7 @@ var J;
|
|
|
4901
4901
|
(function(e) {
|
|
4902
4902
|
e[e.Q = P] = "Q", e[e.BIN_Q = "bin_" + P] = "BIN_Q", e[e.T = Y] = "T", e[e.TIMEUNIT_T = "timeUnit_time"] = "TIMEUNIT_T", e[e.TIMEUNIT_O = "timeUnit_" + ae] = "TIMEUNIT_O", e[e.O = ae] = "O", e[e.N = re] = "N", e[e.K = oe.KEY] = "K", e[e.NONE = "-"] = "NONE";
|
|
4903
4903
|
})(J || (J = {}));
|
|
4904
|
-
const
|
|
4904
|
+
const $i = J.Q, Nt = J.BIN_Q, Pn = J.T, Me = J.TIMEUNIT_T, _t = J.TIMEUNIT_O, Ct = J.O, Tt = J.N, hn = J.K, At = J.NONE;
|
|
4905
4905
|
function Ot(e) {
|
|
4906
4906
|
if (e.bin)
|
|
4907
4907
|
return J.BIN_Q;
|
|
@@ -4952,7 +4952,7 @@ class el extends He {
|
|
|
4952
4952
|
}
|
|
4953
4953
|
getScore(t, n, a) {
|
|
4954
4954
|
return t.getEncodings().reduce((r, o) => {
|
|
4955
|
-
if (
|
|
4955
|
+
if (x(o) || H(o)) {
|
|
4956
4956
|
const c = Ot(o), f = this.featurize(c, o.channel), i = this.getFeatureScore(f);
|
|
4957
4957
|
i && r.push(i);
|
|
4958
4958
|
}
|
|
@@ -4976,7 +4976,7 @@ class tl extends He {
|
|
|
4976
4976
|
}
|
|
4977
4977
|
getScore(t, n, a) {
|
|
4978
4978
|
return t.isAggregate() && t.getEncodings().reduce((r, o) => {
|
|
4979
|
-
if (H(o) ||
|
|
4979
|
+
if (H(o) || x(o) && !o.aggregate) {
|
|
4980
4980
|
const c = this.getFeatureScore(o.channel + "");
|
|
4981
4981
|
if (c && c.score > r.score)
|
|
4982
4982
|
return c;
|
|
@@ -4996,7 +4996,7 @@ class nl extends He {
|
|
|
4996
4996
|
}
|
|
4997
4997
|
getScore(t, n, a) {
|
|
4998
4998
|
return t.getEncodings().reduce((r, o) => {
|
|
4999
|
-
if (
|
|
4999
|
+
if (x(o) || H(o)) {
|
|
5000
5000
|
const c = this.getFeatureScore(o.channel);
|
|
5001
5001
|
c && r.push(c);
|
|
5002
5002
|
}
|
|
@@ -5017,7 +5017,7 @@ class rl extends He {
|
|
|
5017
5017
|
getScore(t, n, a) {
|
|
5018
5018
|
const r = t.getMark();
|
|
5019
5019
|
return t.getEncodings().reduce((o, c) => {
|
|
5020
|
-
if (
|
|
5020
|
+
if (x(c) || H(c)) {
|
|
5021
5021
|
const f = r + "_" + c.channel, i = this.getFeatureScore(f);
|
|
5022
5022
|
i && o.push(i);
|
|
5023
5023
|
}
|
|
@@ -5044,7 +5044,7 @@ class il extends He {
|
|
|
5044
5044
|
column: ct,
|
|
5045
5045
|
detail: 2 * ct
|
|
5046
5046
|
};
|
|
5047
|
-
[
|
|
5047
|
+
[$i, Pn, Me].forEach((o) => {
|
|
5048
5048
|
I.keys(n).forEach((c) => {
|
|
5049
5049
|
t[this.featurize(o, c)] = n[c];
|
|
5050
5050
|
});
|
|
@@ -5083,7 +5083,7 @@ class il extends He {
|
|
|
5083
5083
|
}
|
|
5084
5084
|
getScore(t, n, a) {
|
|
5085
5085
|
const r = t.getEncodings().reduce((c, f) => {
|
|
5086
|
-
if (
|
|
5086
|
+
if (x(f) || H(f)) {
|
|
5087
5087
|
const i = ti(f);
|
|
5088
5088
|
(c[i] = c[i] || []).push(f);
|
|
5089
5089
|
}
|
|
@@ -5091,7 +5091,7 @@ class il extends He {
|
|
|
5091
5091
|
}, {}), o = [];
|
|
5092
5092
|
return q(r, (c) => {
|
|
5093
5093
|
const f = c.reduce((i, s) => {
|
|
5094
|
-
if (
|
|
5094
|
+
if (x(s) || H(s)) {
|
|
5095
5095
|
const d = Ot(s), u = this.featurize(d, s.channel), l = this.getFeatureScore(u);
|
|
5096
5096
|
if (i === null || l.score > i.score)
|
|
5097
5097
|
return l;
|
|
@@ -5120,7 +5120,7 @@ function j(e, t, n, a) {
|
|
|
5120
5120
|
return e + "_" + t + "_" + n + "_" + a;
|
|
5121
5121
|
}
|
|
5122
5122
|
function ol() {
|
|
5123
|
-
const e = [
|
|
5123
|
+
const e = [$i, Pn], n = [Nt, _t, Ct, Tt, hn].concat([At]);
|
|
5124
5124
|
let a = {};
|
|
5125
5125
|
e.forEach((r) => {
|
|
5126
5126
|
e.forEach((o) => {
|
|
@@ -5328,14 +5328,14 @@ function ul(e, t, n) {
|
|
|
5328
5328
|
function ll(e, t, n) {
|
|
5329
5329
|
const a = e.getEncodings();
|
|
5330
5330
|
if (e.isAggregate()) {
|
|
5331
|
-
if (he(a, (o) =>
|
|
5331
|
+
if (he(a, (o) => x(o) && (o.type === P && !o.bin && !o.aggregate || o.type === Y && !o.timeUnit)))
|
|
5332
5332
|
return {
|
|
5333
5333
|
type: Ne,
|
|
5334
5334
|
score: 0.1,
|
|
5335
5335
|
feature: "Aggregate with raw continuous"
|
|
5336
5336
|
};
|
|
5337
|
-
if (he(a, (o) =>
|
|
5338
|
-
let o = he(a, (f) =>
|
|
5337
|
+
if (he(a, (o) => x(o) && _e(o))) {
|
|
5338
|
+
let o = he(a, (f) => x(f) && f.aggregate === "count" || Bt(f)), c = he(a, (f) => x(f) && !!f.bin);
|
|
5339
5339
|
return o ? {
|
|
5340
5340
|
type: Ne,
|
|
5341
5341
|
score: 0.8,
|
|
@@ -5356,7 +5356,7 @@ function ll(e, t, n) {
|
|
|
5356
5356
|
feature: "Aggregate without dimension"
|
|
5357
5357
|
};
|
|
5358
5358
|
} else
|
|
5359
|
-
return he(a, (r) =>
|
|
5359
|
+
return he(a, (r) => x(r) && !_e(r)) ? {
|
|
5360
5360
|
type: Ne,
|
|
5361
5361
|
score: 1,
|
|
5362
5362
|
feature: "Raw with measure"
|
|
@@ -5379,7 +5379,7 @@ function fl(e, t, n) {
|
|
|
5379
5379
|
for (let s = a.length - 1; s >= 0; s--) {
|
|
5380
5380
|
const d = a[s], u = r[d];
|
|
5381
5381
|
let l;
|
|
5382
|
-
if (
|
|
5382
|
+
if (x(u))
|
|
5383
5383
|
l = u.field;
|
|
5384
5384
|
else
|
|
5385
5385
|
continue;
|
|
@@ -5408,15 +5408,15 @@ function Gi(e, t, n, a) {
|
|
|
5408
5408
|
}), t.nest[a].orderGroupBy && e.items.sort(ml(t.nest[a].orderGroupBy, n, t.config))), e;
|
|
5409
5409
|
}
|
|
5410
5410
|
function hl(e, t, n) {
|
|
5411
|
-
return (a, r) => e instanceof Array ?
|
|
5411
|
+
return (a, r) => e instanceof Array ? bt(e, a, r, t, n) : bt([e], a, r, t, n);
|
|
5412
5412
|
}
|
|
5413
5413
|
function ml(e, t, n) {
|
|
5414
5414
|
return (a, r) => {
|
|
5415
5415
|
const o = gn(a), c = gn(r);
|
|
5416
|
-
return e instanceof Array ?
|
|
5416
|
+
return e instanceof Array ? bt(e, o, c, t, n) : bt([e], o, c, t, n);
|
|
5417
5417
|
};
|
|
5418
5418
|
}
|
|
5419
|
-
function
|
|
5419
|
+
function bt(e, t, n, a, r) {
|
|
5420
5420
|
for (let o of e) {
|
|
5421
5421
|
let c = cr(n, o, a, r).score - cr(t, o, a, r).score;
|
|
5422
5422
|
if (c !== 0)
|
|
@@ -5445,13 +5445,13 @@ function El(e, t, n, a) {
|
|
|
5445
5445
|
n[c] = e.getEncodingQueryByChannel(c);
|
|
5446
5446
|
});
|
|
5447
5447
|
const r = n[F];
|
|
5448
|
-
if (r !== void 0 &&
|
|
5448
|
+
if (r !== void 0 && x(r) && (n[ie] || t.cardinality(r) > a.smallRangeStepForHighCardinalityOrFacet.maxCardinality)) {
|
|
5449
5449
|
r.scale === void 0 && (r.scale = {});
|
|
5450
5450
|
const c = De(r);
|
|
5451
5451
|
r.scale && (c === void 0 || ve(c)) && (r.scale.rangeStep || (r.scale.rangeStep = 12));
|
|
5452
5452
|
}
|
|
5453
5453
|
const o = n[R];
|
|
5454
|
-
if (
|
|
5454
|
+
if (x(o) && (n[Q] || t.cardinality(o) > a.smallRangeStepForHighCardinalityOrFacet.maxCardinality)) {
|
|
5455
5455
|
o.scale === void 0 && (o.scale = {});
|
|
5456
5456
|
const c = De(o);
|
|
5457
5457
|
o.scale && (c === void 0 || ve(c)) && (o.scale.rangeStep || (o.scale.rangeStep = 12));
|
|
@@ -5461,14 +5461,14 @@ function El(e, t, n, a) {
|
|
|
5461
5461
|
function Sl(e, t, n, a) {
|
|
5462
5462
|
n[ce] = e.getEncodingQueryByChannel(ce);
|
|
5463
5463
|
const r = n[ce];
|
|
5464
|
-
return
|
|
5464
|
+
return x(r) && r !== void 0 && (r.type === re || r.type === oe.KEY) && t.cardinality(r) > a.nominalColorScaleForHighCardinality.maxCardinality && (r.scale === void 0 && (r.scale = {}), r.scale && (r.scale.range || (r.scale.scheme = a.nominalColorScaleForHighCardinality.palette))), e;
|
|
5465
5465
|
}
|
|
5466
5466
|
function Nl(e, t, n, a) {
|
|
5467
5467
|
if ([Q, R, F].forEach((r) => {
|
|
5468
5468
|
n[r] = e.getEncodingQueryByChannel(r);
|
|
5469
5469
|
}), n[Q] === void 0) {
|
|
5470
5470
|
const r = n[R], o = n[F];
|
|
5471
|
-
|
|
5471
|
+
x(r) && x(o) && o !== void 0 && o.field && ve(De(o)) && r !== void 0 && t.cardinality(o) > a.xAxisOnTopForHighYCardinalityWithoutColumn.maxCardinality && (r.axis === void 0 && (r.axis = {}), r.axis && !r.axis.orient && (r.axis.orient = "top"));
|
|
5472
5472
|
}
|
|
5473
5473
|
return e;
|
|
5474
5474
|
}
|
|
@@ -5492,13 +5492,13 @@ function Hi(e, t, n) {
|
|
|
5492
5492
|
};
|
|
5493
5493
|
}
|
|
5494
5494
|
const Pe = {
|
|
5495
|
-
[
|
|
5496
|
-
[
|
|
5497
|
-
[
|
|
5498
|
-
[
|
|
5499
|
-
[
|
|
5495
|
+
[B.BOOLEAN]: /* @__PURE__ */ S.jsx(na, { className: "h-5 w-5 inline-flex opacity-60" }),
|
|
5496
|
+
[B.DATETIME]: /* @__PURE__ */ S.jsx(ta, { className: "h-5 w-5 inline-flex opacity-60" }),
|
|
5497
|
+
[B.NUMBER]: /* @__PURE__ */ S.jsx(ea, { className: "h-5 w-5 inline-flex opacity-60" }),
|
|
5498
|
+
[B.STRING]: /* @__PURE__ */ S.jsx(Qi, { className: "h-5 w-5 inline-flex opacity-60" }),
|
|
5499
|
+
[B.INTEGER]: /* @__PURE__ */ S.jsx(wa, { className: "h-5 w-5 inline-flex opacity-60" })
|
|
5500
5500
|
};
|
|
5501
|
-
function
|
|
5501
|
+
function Bn(e) {
|
|
5502
5502
|
const {
|
|
5503
5503
|
type: t,
|
|
5504
5504
|
limit: n,
|
|
@@ -5523,7 +5523,7 @@ function $n(e) {
|
|
|
5523
5523
|
}
|
|
5524
5524
|
};
|
|
5525
5525
|
}
|
|
5526
|
-
const Cl =
|
|
5526
|
+
const Cl = Bn({
|
|
5527
5527
|
type: "addCategoricalField",
|
|
5528
5528
|
limit: 4,
|
|
5529
5529
|
additionalFieldQuery: {
|
|
@@ -5531,7 +5531,7 @@ const Cl = $n({
|
|
|
5531
5531
|
field: U,
|
|
5532
5532
|
type: "nominal"
|
|
5533
5533
|
}
|
|
5534
|
-
}), Tl =
|
|
5534
|
+
}), Tl = Bn({
|
|
5535
5535
|
type: "addQuantitativeField",
|
|
5536
5536
|
limit: 4,
|
|
5537
5537
|
additionalFieldQuery: {
|
|
@@ -5541,7 +5541,7 @@ const Cl = $n({
|
|
|
5541
5541
|
field: U,
|
|
5542
5542
|
type: "quantitative"
|
|
5543
5543
|
}
|
|
5544
|
-
}), Al =
|
|
5544
|
+
}), Al = Bn({
|
|
5545
5545
|
type: "addTemporalField",
|
|
5546
5546
|
limit: 2,
|
|
5547
5547
|
additionalFieldQuery: {
|
|
@@ -5558,14 +5558,14 @@ function Ol(e) {
|
|
|
5558
5558
|
bin: !0
|
|
5559
5559
|
} : Ta(e) ? {
|
|
5560
5560
|
aggregate: e
|
|
5561
|
-
} :
|
|
5561
|
+
} : bl(e) ? {
|
|
5562
5562
|
timeUnit: e
|
|
5563
5563
|
} : {} : {};
|
|
5564
5564
|
}
|
|
5565
|
-
function
|
|
5565
|
+
function bl(e) {
|
|
5566
5566
|
return e ? Wi.includes(e) || Yi.includes(e) : !1;
|
|
5567
5567
|
}
|
|
5568
|
-
const
|
|
5568
|
+
const xl = ["bin", "min", "max", "mean", "median", "sum"], Wi = ["year", "month", "date", "day", "hours", "minutes", "seconds", "milliseconds"], Yi = ["yearmonth", "yearmonthdate", "monthdate"];
|
|
5569
5569
|
function Il(e) {
|
|
5570
5570
|
const {
|
|
5571
5571
|
aggregate: t,
|
|
@@ -5705,11 +5705,11 @@ function ft(e, t, n) {
|
|
|
5705
5705
|
};
|
|
5706
5706
|
}
|
|
5707
5707
|
function Xi(e, t) {
|
|
5708
|
-
return e.items.map((n) =>
|
|
5708
|
+
return e.items.map((n) => Bi(n) ? ur(t, gn(n)) : ur(t, n));
|
|
5709
5709
|
}
|
|
5710
5710
|
function ur(e, t) {
|
|
5711
5711
|
return {
|
|
5712
|
-
fieldInfos: t.getEncodings().filter(
|
|
5712
|
+
fieldInfos: t.getEncodings().filter(x).map((a) => ({
|
|
5713
5713
|
fieldDef: vl(a),
|
|
5714
5714
|
channel: a.channel
|
|
5715
5715
|
})),
|
|
@@ -5745,7 +5745,7 @@ function Ll(e) {
|
|
|
5745
5745
|
} = e;
|
|
5746
5746
|
return t ? "fieldTransform" : n ? "field" : "encoding";
|
|
5747
5747
|
}
|
|
5748
|
-
const
|
|
5748
|
+
const Bl = {
|
|
5749
5749
|
type: "histograms",
|
|
5750
5750
|
limit: 12,
|
|
5751
5751
|
createQuery(e) {
|
|
@@ -5776,7 +5776,7 @@ const $l = {
|
|
|
5776
5776
|
};
|
|
5777
5777
|
}
|
|
5778
5778
|
};
|
|
5779
|
-
function
|
|
5779
|
+
function $l() {
|
|
5780
5780
|
return {
|
|
5781
5781
|
mark: U,
|
|
5782
5782
|
encoding: {},
|
|
@@ -5787,7 +5787,7 @@ function Bl() {
|
|
|
5787
5787
|
const {
|
|
5788
5788
|
valueAtom: Le,
|
|
5789
5789
|
useActions: jl
|
|
5790
|
-
} = aa(
|
|
5790
|
+
} = aa($l, {
|
|
5791
5791
|
setSchema: (e, t) => ({
|
|
5792
5792
|
...e,
|
|
5793
5793
|
schema: t
|
|
@@ -5830,7 +5830,7 @@ const Gl = oa((e) => {
|
|
|
5830
5830
|
});
|
|
5831
5831
|
return qi(n.spec) ? {
|
|
5832
5832
|
main: sn(n, t.schema),
|
|
5833
|
-
histograms: ft(
|
|
5833
|
+
histograms: ft(Bl, n, t.schema)
|
|
5834
5834
|
} : Dl(n.spec) && !Fl(n.spec) ? {
|
|
5835
5835
|
main: sn(n, t.schema),
|
|
5836
5836
|
...Ml(n, t.schema)
|
|
@@ -5855,7 +5855,7 @@ const Gl = oa((e) => {
|
|
|
5855
5855
|
let d;
|
|
5856
5856
|
t[7] !== o ? (d = (N) => o.setMark(N), t[7] = o, t[8] = d) : d = t[8];
|
|
5857
5857
|
let u;
|
|
5858
|
-
t[9] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ S.jsx(
|
|
5858
|
+
t[9] === Symbol.for("react.memo_cache_sentinel") ? (u = /* @__PURE__ */ S.jsx(xt, { children: /* @__PURE__ */ S.jsx(gr, { placeholder: "Mark" }) }), t[9] = u) : u = t[9];
|
|
5859
5859
|
let l;
|
|
5860
5860
|
t[10] === Symbol.for("react.memo_cache_sentinel") ? (l = /* @__PURE__ */ S.jsx(It, { children: /* @__PURE__ */ S.jsxs(Je, { children: [
|
|
5861
5861
|
/* @__PURE__ */ S.jsx(hr, { children: "Mark" }),
|
|
@@ -5901,7 +5901,7 @@ const Gl = oa((e) => {
|
|
|
5901
5901
|
return "--";
|
|
5902
5902
|
if (r.field === "*")
|
|
5903
5903
|
return /* @__PURE__ */ S.jsxs("span", { className: "flex gap-2 flex-1", children: [
|
|
5904
|
-
Pe[
|
|
5904
|
+
Pe[B.NUMBER],
|
|
5905
5905
|
/* @__PURE__ */ S.jsx("span", { className: "text-left flex-1", children: "Count" })
|
|
5906
5906
|
] });
|
|
5907
5907
|
const L = r.field.toString(), de = () => r.fn ? `${r.fn}(${r.field})` : L;
|
|
@@ -5936,7 +5936,7 @@ const Gl = oa((e) => {
|
|
|
5936
5936
|
let y;
|
|
5937
5937
|
t[12] !== i ? (y = i(), t[12] = i, t[13] = y) : y = t[13];
|
|
5938
5938
|
let E;
|
|
5939
|
-
t[14] !== p || t[15] !== y ? (E = /* @__PURE__ */ S.jsx(
|
|
5939
|
+
t[14] !== p || t[15] !== y ? (E = /* @__PURE__ */ S.jsx(xt, { className: "min-w-[140px] lg:min-w-[210px] h-full", onClear: p, children: y }), t[14] = p, t[15] = y, t[16] = E) : E = t[16];
|
|
5940
5940
|
let _;
|
|
5941
5941
|
t[17] !== a ? (_ = a.fieldNames().map((L) => /* @__PURE__ */ S.jsx(Ie, { value: L.toString(), children: /* @__PURE__ */ S.jsxs("span", { className: "flex items-center gap-2 flex-1", children: [
|
|
5942
5942
|
Pe[a.primitiveType(L)],
|
|
@@ -5953,30 +5953,30 @@ const Gl = oa((e) => {
|
|
|
5953
5953
|
t[21] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ S.jsx(mr, {}), t[21] = A) : A = t[21];
|
|
5954
5954
|
let N;
|
|
5955
5955
|
t[22] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ S.jsx(Ie, { value: "*", children: /* @__PURE__ */ S.jsxs("span", { className: "flex items-center gap-1 flex-1", children: [
|
|
5956
|
-
Pe[
|
|
5956
|
+
Pe[B.NUMBER],
|
|
5957
5957
|
/* @__PURE__ */ S.jsx("span", { className: "flex-1", children: "Count" })
|
|
5958
5958
|
] }) }, "*"), t[22] = N) : N = t[22];
|
|
5959
|
-
let
|
|
5960
|
-
t[23] !== T || t[24] !== _ ? (
|
|
5959
|
+
let b;
|
|
5960
|
+
t[23] !== T || t[24] !== _ ? (b = /* @__PURE__ */ S.jsx(It, { children: /* @__PURE__ */ S.jsxs(Je, { children: [
|
|
5961
5961
|
_,
|
|
5962
5962
|
T,
|
|
5963
5963
|
A,
|
|
5964
5964
|
N
|
|
5965
|
-
] }) }), t[23] = T, t[24] = _, t[25] =
|
|
5965
|
+
] }) }), t[23] = T, t[24] = _, t[25] = b) : b = t[25];
|
|
5966
5966
|
let C;
|
|
5967
|
-
t[26] !== o || t[27] !== l || t[28] !==
|
|
5967
|
+
t[26] !== o || t[27] !== l || t[28] !== b || t[29] !== h || t[30] !== E ? (C = /* @__PURE__ */ S.jsxs(wt, { value: l, disabled: o, onValueChange: h, children: [
|
|
5968
5968
|
E,
|
|
5969
|
-
|
|
5970
|
-
] }), t[26] = o, t[27] = l, t[28] =
|
|
5969
|
+
b
|
|
5970
|
+
] }), t[26] = o, t[27] = l, t[28] = b, t[29] = h, t[30] = E, t[31] = C) : C = t[31];
|
|
5971
5971
|
let M;
|
|
5972
5972
|
t[32] !== r || t[33] !== c ? (M = r && /* @__PURE__ */ S.jsx(Vl, { field: r, onChange: c }), t[32] = r, t[33] = c, t[34] = M) : M = t[34];
|
|
5973
|
-
let
|
|
5974
|
-
t[35] !== M ? (
|
|
5973
|
+
let $;
|
|
5974
|
+
t[35] !== M ? ($ = /* @__PURE__ */ S.jsx("div", { className: "w-[26px]", children: M }), t[35] = M, t[36] = $) : $ = t[36];
|
|
5975
5975
|
let v;
|
|
5976
|
-
t[37] !== C || t[38] !==
|
|
5976
|
+
t[37] !== C || t[38] !== $ ? (v = /* @__PURE__ */ S.jsxs("div", { className: "flex flex-row gap-1 h-[26px]", children: [
|
|
5977
5977
|
C,
|
|
5978
|
-
|
|
5979
|
-
] }), t[37] = C, t[38] =
|
|
5978
|
+
$
|
|
5979
|
+
] }), t[37] = C, t[38] = $, t[39] = v) : v = t[39];
|
|
5980
5980
|
let w;
|
|
5981
5981
|
return t[40] !== v || t[41] !== g ? (w = /* @__PURE__ */ S.jsxs(S.Fragment, { children: [
|
|
5982
5982
|
g,
|
|
@@ -5994,7 +5994,7 @@ const Gl = oa((e) => {
|
|
|
5994
5994
|
let o = r;
|
|
5995
5995
|
if (n.type === oe.QUANTITATIVE) {
|
|
5996
5996
|
let c;
|
|
5997
|
-
t[1] === Symbol.for("react.memo_cache_sentinel") ? (c = [["",
|
|
5997
|
+
t[1] === Symbol.for("react.memo_cache_sentinel") ? (c = [["", xl]], t[1] = c) : c = t[1], o = c;
|
|
5998
5998
|
}
|
|
5999
5999
|
if (n.type === oe.TEMPORAL) {
|
|
6000
6000
|
let c;
|
|
@@ -6009,7 +6009,7 @@ const Gl = oa((e) => {
|
|
|
6009
6009
|
});
|
|
6010
6010
|
}, t[3] = n, t[4] = a, t[5] = c) : c = t[5];
|
|
6011
6011
|
let f;
|
|
6012
|
-
t[6] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ S.jsx(
|
|
6012
|
+
t[6] === Symbol.for("react.memo_cache_sentinel") ? (f = /* @__PURE__ */ S.jsx(xt, { className: "h-full px-1", hideChevron: !0, variant: "ghost", children: /* @__PURE__ */ S.jsx(ua, { size: 14, strokeWidth: 1.5 }) }), t[6] = f) : f = t[6];
|
|
6013
6013
|
let i, s;
|
|
6014
6014
|
t[7] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ S.jsx(Je, { children: /* @__PURE__ */ S.jsx(Ie, { value: mn, children: "None" }) }), s = /* @__PURE__ */ S.jsx(mr, {}), t[7] = i, t[8] = s) : (i = t[7], s = t[8]);
|
|
6015
6015
|
let d;
|
|
@@ -6050,7 +6050,7 @@ const lr = 12, Zl = (e) => {
|
|
|
6050
6050
|
channel: "x"
|
|
6051
6051
|
}) : void 0;
|
|
6052
6052
|
let d;
|
|
6053
|
-
t[4] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ S.jsx(
|
|
6053
|
+
t[4] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ S.jsx(xa, { className: "text-muted-foreground", width: 40, height: 40, strokeWidth: 1.5 }), t[4] = d) : d = t[4];
|
|
6054
6054
|
const u = d, l = o ? i : i.slice(0, lr), g = i.length > lr, h = i.length > 0 ? i.length : "No";
|
|
6055
6055
|
let p;
|
|
6056
6056
|
t[5] !== h ? (p = /* @__PURE__ */ S.jsxs("span", { className: "text-muted-foreground font-semibold", children: [
|
|
@@ -6088,12 +6088,12 @@ const lr = 12, Zl = (e) => {
|
|
|
6088
6088
|
_
|
|
6089
6089
|
] }), t[13] = E, t[14] = _, t[15] = T) : T = t[15];
|
|
6090
6090
|
const A = a || "", N = i.length === 0;
|
|
6091
|
-
let
|
|
6092
|
-
t[16] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
6091
|
+
let b;
|
|
6092
|
+
t[16] === Symbol.for("react.memo_cache_sentinel") ? (b = (w) => {
|
|
6093
6093
|
r(w);
|
|
6094
|
-
}, t[16] =
|
|
6094
|
+
}, t[16] = b) : b = t[16];
|
|
6095
6095
|
let C;
|
|
6096
|
-
t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ S.jsx(
|
|
6096
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ S.jsx(xt, { className: "min-w-[210px] h-full", children: /* @__PURE__ */ S.jsx(gr, { placeholder: "Select a column" }) }), t[17] = C) : C = t[17];
|
|
6097
6097
|
let M;
|
|
6098
6098
|
t[18] !== n ? (M = n.fieldNames().map((w) => /* @__PURE__ */ S.jsx(Ie, { value: w.toString(), children: /* @__PURE__ */ S.jsxs("span", { className: "flex items-center gap-2 flex-1", children: [
|
|
6099
6099
|
Pe[n.primitiveType(w)],
|
|
@@ -6104,13 +6104,13 @@ const lr = 12, Zl = (e) => {
|
|
|
6104
6104
|
")"
|
|
6105
6105
|
] })
|
|
6106
6106
|
] }) }, w)), t[18] = n, t[19] = M) : M = t[19];
|
|
6107
|
-
let
|
|
6108
|
-
t[20] !== M ? (
|
|
6107
|
+
let $;
|
|
6108
|
+
t[20] !== M ? ($ = /* @__PURE__ */ S.jsx(It, { children: /* @__PURE__ */ S.jsx(Je, { children: M }) }), t[20] = M, t[21] = $) : $ = t[21];
|
|
6109
6109
|
let v;
|
|
6110
|
-
t[22] !== N || t[23] !==
|
|
6110
|
+
t[22] !== N || t[23] !== $ || t[24] !== A ? (v = /* @__PURE__ */ S.jsx("div", { className: "lg:hidden", children: /* @__PURE__ */ S.jsxs(wt, { "data-testid": "marimo-plugin-data-explorer-column-select", value: A, disabled: N, onValueChange: b, children: [
|
|
6111
6111
|
C,
|
|
6112
|
-
|
|
6113
|
-
] }) }), t[22] = N, t[23] =
|
|
6112
|
+
$
|
|
6113
|
+
] }) }), t[22] = N, t[23] = $, t[24] = A, t[25] = v) : v = t[25], f = /* @__PURE__ */ S.jsxs("div", { className: "flex flex-col justify-center items-center h-full flex-1 gap-2", children: [
|
|
6114
6114
|
u,
|
|
6115
6115
|
p,
|
|
6116
6116
|
T,
|
|
@@ -6136,7 +6136,7 @@ function ed(e) {
|
|
|
6136
6136
|
function td(e) {
|
|
6137
6137
|
return !e;
|
|
6138
6138
|
}
|
|
6139
|
-
const
|
|
6139
|
+
const Bd = (e) => {
|
|
6140
6140
|
const t = Oe.c(5);
|
|
6141
6141
|
let n, a;
|
|
6142
6142
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (a = da(), t[0] = a) : a = t[0], n = a;
|
|
@@ -6168,7 +6168,7 @@ const $d = (e) => {
|
|
|
6168
6168
|
top: 20,
|
|
6169
6169
|
bottom: 20
|
|
6170
6170
|
}, id = (e) => {
|
|
6171
|
-
var de, fe, We,
|
|
6171
|
+
var de, fe, We, be, pe, ye;
|
|
6172
6172
|
const t = Oe.c(43), {
|
|
6173
6173
|
data: n
|
|
6174
6174
|
} = e, a = Ji();
|
|
@@ -6232,11 +6232,11 @@ const $d = (e) => {
|
|
|
6232
6232
|
T,
|
|
6233
6233
|
A
|
|
6234
6234
|
] }), t[21] = T, t[22] = A, t[23] = N) : N = t[23];
|
|
6235
|
-
const
|
|
6235
|
+
const b = (We = d.histograms) == null ? void 0 : We.plots, C = (be = d.addCategoricalField) == null ? void 0 : be.plots, M = (pe = d.addQuantitativeField) == null ? void 0 : pe.plots, $ = (ye = d.addTemporalField) == null ? void 0 : ye.plots;
|
|
6236
6236
|
let v;
|
|
6237
|
-
if (t[24] !== a || t[25] !== l || t[26] !== y || t[27] !== M || t[28] !==
|
|
6237
|
+
if (t[24] !== a || t[25] !== l || t[26] !== y || t[27] !== M || t[28] !== $ || t[29] !== b || t[30] !== C || t[31] !== u) {
|
|
6238
6238
|
let D;
|
|
6239
|
-
t[33] !== a || t[34] !== l || t[35] !== y || t[36] !== u ? (D = (Ee,
|
|
6239
|
+
t[33] !== a || t[34] !== l || t[35] !== y || t[36] !== u ? (D = (Ee, $n) => /* @__PURE__ */ S.jsx(od, { title: /* @__PURE__ */ S.jsx("div", { className: "flex flex-row gap-1", children: Ee.fieldInfos.map((Se) => {
|
|
6240
6240
|
const jn = Se.fieldDef.field === "*" ? "Count" : Se.fieldDef.fn ? `${Se.fieldDef.fn}(${Se.fieldDef.field})` : Se.fieldDef.field.toString();
|
|
6241
6241
|
return /* @__PURE__ */ S.jsx(_a, { variant: y.has(Se.fieldDef.field) ? "secondary" : "defaultOutline", children: jn }, jn);
|
|
6242
6242
|
}) }), actions: /* @__PURE__ */ S.jsx(Ea, { content: "Make main plot", children: /* @__PURE__ */ S.jsx(pr, { "data-testid": "marimo-plugin-data-explorer-make-main-plot", variant: "text", size: "icon", onClick: () => {
|
|
@@ -6244,7 +6244,7 @@ const $d = (e) => {
|
|
|
6244
6244
|
a.setEncoding(Se);
|
|
6245
6245
|
}, children: /* @__PURE__ */ S.jsx(Sa, { className: "w-4 h-4" }) }) }), children: /* @__PURE__ */ S.jsx(Hn, { data: {
|
|
6246
6246
|
source: l
|
|
6247
|
-
}, actions: !1, spec: Ee.spec, theme: u === "dark" ? "dark" : void 0 },
|
|
6247
|
+
}, actions: !1, spec: Ee.spec, theme: u === "dark" ? "dark" : void 0 }, $n) }, $n), t[33] = a, t[34] = l, t[35] = y, t[36] = u, t[37] = D) : D = t[37], v = [b, C, M, $].filter(Boolean).flat().map(D), t[24] = a, t[25] = l, t[26] = y, t[27] = M, t[28] = $, t[29] = b, t[30] = C, t[31] = u, t[32] = v;
|
|
6248
6248
|
} else
|
|
6249
6249
|
v = t[32];
|
|
6250
6250
|
let w;
|
|
@@ -6295,5 +6295,5 @@ function ud(e) {
|
|
|
6295
6295
|
}
|
|
6296
6296
|
export {
|
|
6297
6297
|
id as DataExplorerComponent,
|
|
6298
|
-
|
|
6298
|
+
Bd as default
|
|
6299
6299
|
};
|