react-semaphor 0.0.147 → 0.0.149

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.
@@ -1,12 +1,12 @@
1
- import { aG as $, b as P, j as i, aH as wt, aI as Ct, aJ as B, aK as St, aL as vt, aM as Nt, aN as Et, aO as de, aP as Ae, aQ as ai, I as oi, M as en, aR as zs, aS as Os, aT as Ts, aU as As, aV as Is, aW as Ls, aX as tr, aY as cn, aZ as Pn, a_ as On, T as Rn, e as zt, g as _n, a$ as Ot, b0 as Tt, f as xe, b1 as At, b2 as It, b3 as Lt, b4 as Tn, b5 as Ve, F as C, b6 as hn, b7 as pn, b8 as Fs, b9 as fn, t as ci, s as ui, r as Pe, ba as Ms, q as Ds, N as di, D as Ps, bb as Rs, B as _s, L as Bn, S as Ft, x as Bs, n as rr, y as hi, z as Vs, bc as Hs, bd as qs, be as Us, bf as pi, bg as fi, bh as mi, u as Mt, bi as xi, bj as gi, bk as $s, bl as yi, bm as ir, bn as Ws, bo as bi, bp as ki, bq as Ks, br as Qs, bs as Gs, bt as Js, bu as Xs, bv as ut, bw as Ys, bx as Zs, by as Nn, bz as sr, bA as el, bB as nl, bC as tl, bD as rl, bE as il, bF as Xn, bG as sl, bH as lr, bI as ll, bJ as ar, bK as al, bL as ol, bM as cl, bN as ji, l as ul, C as dl, E as or, d as hl, h as pl, i as fl, o as ml, bO as xl, m as gl, bP as yl, bQ as bl, bR as kl, bS as cr, bT as jl, bU as ur, bV as dr, K as wl, bW as wi, bX as Cl, bY as Ci, bZ as An, b_ as Sl, b$ as vl, c0 as Nl, c1 as El, c2 as zl, c3 as Ol, c4 as $e, c5 as ie, c6 as se, c7 as Dt, c8 as le, c9 as Tl, ca as Al, cb as Il, cc as hr, Q as Ll, cd as Fl, O as Ml, U as Dl, P as Pl } from "./index-Xg6YsJx_.js";
2
- import Re, { useState as G, useEffect as me, useRef as un } from "react";
1
+ import { aE as Q, b as P, j as i, aF as wt, aG as Ct, aH as V, aI as St, aJ as vt, aK as Nt, aL as Et, aM as de, aN as Ae, aO as ai, M as oi, P as en, aP as zs, aQ as Os, aR as Ts, aS as As, aT as Is, aU as Ls, aV as tr, aW as cn, aX as Pn, aY as On, T as Rn, e as zt, g as _n, aZ as Ot, a_ as Tt, f as xe, a$ as At, b0 as It, b1 as Lt, b2 as Tn, b3 as Ve, H as C, b4 as hn, b5 as pn, b6 as Fs, b7 as fn, w as ci, v as ui, t as Pe, b8 as Ms, r as Ds, N as di, s as Ps, b9 as Rs, B as _s, L as Bn, S as Ft, z as Bs, n as rr, A as hi, F as Vs, ba as Hs, bb as qs, bc as Us, bd as pi, be as fi, bf as mi, u as Mt, bg as xi, bh as gi, bi as $s, bj as yi, bk as ir, bl as Ws, bm as bi, bn as ki, bo as Ks, bp as Qs, bq as Gs, br as Js, bs as Xs, bt as ut, bu as Ys, bv as Zs, bw as Nn, bx as sr, by as el, bz as nl, bA as tl, bB as rl, bC as il, bD as Xn, bE as sl, bF as lr, bG as ll, bH as ar, bI as al, bJ as ol, bK as cl, bL as ji, l as ul, C as dl, E as or, d as hl, h as pl, i as fl, o as ml, bM as xl, m as gl, bN as yl, bO as bl, bP as kl, bQ as cr, bR as jl, bS as ur, bT as dr, K as wl, bU as wi, bV as Cl, bW as Ci, bX as An, bY as Sl, bZ as vl, b_ as Nl, b$ as El, c0 as zl, c1 as Ol, c2 as $e, c3 as ie, c4 as se, c5 as Dt, c6 as le, c7 as Tl, c8 as Al, c9 as Il, ca as hr, cb as Ll, cc as Fl, cd as Ml, ce as Dl, cf as Pl } from "./index-A53WxJ05.js";
2
+ import Re, { useState as J, useEffect as me, useRef as un } from "react";
3
3
  /**
4
4
  * @license lucide-react v0.379.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 Rl = $("Activity", [
9
+ const Rl = Q("Activity", [
10
10
  [
11
11
  "path",
12
12
  {
@@ -21,7 +21,7 @@ const Rl = $("Activity", [
21
21
  * This source code is licensed under the ISC license.
22
22
  * See the LICENSE file in the root directory of this source tree.
23
23
  */
24
- const _l = $("AreaChart", [
24
+ const _l = Q("AreaChart", [
25
25
  ["path", { d: "M3 3v18h18", key: "1s2lah" }],
26
26
  ["path", { d: "M7 12v5h12V8l-5 5-4-4Z", key: "zxz28u" }]
27
27
  ]);
@@ -31,7 +31,7 @@ const _l = $("AreaChart", [
31
31
  * This source code is licensed under the ISC license.
32
32
  * See the LICENSE file in the root directory of this source tree.
33
33
  */
34
- const Pt = $("BarChart4", [
34
+ const Pt = Q("BarChart4", [
35
35
  ["path", { d: "M3 3v18h18", key: "1s2lah" }],
36
36
  ["path", { d: "M13 17V9", key: "1fwyjl" }],
37
37
  ["path", { d: "M18 17V5", key: "sfb6ij" }],
@@ -43,7 +43,7 @@ const Pt = $("BarChart4", [
43
43
  * This source code is licensed under the ISC license.
44
44
  * See the LICENSE file in the root directory of this source tree.
45
45
  */
46
- const Bl = $("CircleX", [
46
+ const Bl = Q("CircleX", [
47
47
  ["circle", { cx: "12", cy: "12", r: "10", key: "1mglay" }],
48
48
  ["path", { d: "m15 9-6 6", key: "1uzhvr" }],
49
49
  ["path", { d: "m9 9 6 6", key: "z0biqf" }]
@@ -54,7 +54,7 @@ const Bl = $("CircleX", [
54
54
  * This source code is licensed under the ISC license.
55
55
  * See the LICENSE file in the root directory of this source tree.
56
56
  */
57
- const Vl = $("Database", [
57
+ const Vl = Q("Database", [
58
58
  ["ellipse", { cx: "12", cy: "5", rx: "9", ry: "3", key: "msslwz" }],
59
59
  ["path", { d: "M3 5V19A9 3 0 0 0 21 19V5", key: "1wlel7" }],
60
60
  ["path", { d: "M3 12A9 3 0 0 0 21 12", key: "mv7ke4" }]
@@ -65,7 +65,7 @@ const Vl = $("Database", [
65
65
  * This source code is licensed under the ISC license.
66
66
  * See the LICENSE file in the root directory of this source tree.
67
67
  */
68
- const Hl = $("Eraser", [
68
+ const Hl = Q("Eraser", [
69
69
  [
70
70
  "path",
71
71
  {
@@ -82,7 +82,7 @@ const Hl = $("Eraser", [
82
82
  * This source code is licensed under the ISC license.
83
83
  * See the LICENSE file in the root directory of this source tree.
84
84
  */
85
- const Si = $("Filter", [
85
+ const Si = Q("Filter", [
86
86
  ["polygon", { points: "22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3", key: "1yg77f" }]
87
87
  ]);
88
88
  /**
@@ -91,7 +91,7 @@ const Si = $("Filter", [
91
91
  * This source code is licensed under the ISC license.
92
92
  * See the LICENSE file in the root directory of this source tree.
93
93
  */
94
- const ql = $("Glasses", [
94
+ const ql = Q("Glasses", [
95
95
  ["circle", { cx: "6", cy: "15", r: "4", key: "vux9w4" }],
96
96
  ["circle", { cx: "18", cy: "15", r: "4", key: "18o8ve" }],
97
97
  ["path", { d: "M14 15a2 2 0 0 0-2-2 2 2 0 0 0-2 2", key: "1ag4bs" }],
@@ -104,7 +104,7 @@ const ql = $("Glasses", [
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
106
  */
107
- const Ul = $("GripVertical", [
107
+ const Ul = Q("GripVertical", [
108
108
  ["circle", { cx: "9", cy: "12", r: "1", key: "1vctgf" }],
109
109
  ["circle", { cx: "9", cy: "5", r: "1", key: "hp0tcf" }],
110
110
  ["circle", { cx: "9", cy: "19", r: "1", key: "fkjjf6" }],
@@ -118,7 +118,7 @@ const Ul = $("GripVertical", [
118
118
  * This source code is licensed under the ISC license.
119
119
  * See the LICENSE file in the root directory of this source tree.
120
120
  */
121
- const $l = $("Hammer", [
121
+ const $l = Q("Hammer", [
122
122
  ["path", { d: "m15 12-8.373 8.373a1 1 0 1 1-3-3L12 9", key: "eefl8a" }],
123
123
  ["path", { d: "m18 15 4-4", key: "16gjal" }],
124
124
  [
@@ -135,7 +135,7 @@ const $l = $("Hammer", [
135
135
  * This source code is licensed under the ISC license.
136
136
  * See the LICENSE file in the root directory of this source tree.
137
137
  */
138
- const Wl = $("Hash", [
138
+ const Wl = Q("Hash", [
139
139
  ["line", { x1: "4", x2: "20", y1: "9", y2: "9", key: "4lhtct" }],
140
140
  ["line", { x1: "4", x2: "20", y1: "15", y2: "15", key: "vyu0kd" }],
141
141
  ["line", { x1: "10", x2: "8", y1: "3", y2: "21", key: "1ggp8o" }],
@@ -147,7 +147,7 @@ const Wl = $("Hash", [
147
147
  * This source code is licensed under the ISC license.
148
148
  * See the LICENSE file in the root directory of this source tree.
149
149
  */
150
- const Kl = $("Key", [
150
+ const Kl = Q("Key", [
151
151
  ["path", { d: "m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4", key: "g0fldk" }],
152
152
  ["path", { d: "m21 2-9.6 9.6", key: "1j0ho8" }],
153
153
  ["circle", { cx: "7.5", cy: "15.5", r: "5.5", key: "yqb3hr" }]
@@ -158,7 +158,7 @@ const Kl = $("Key", [
158
158
  * This source code is licensed under the ISC license.
159
159
  * See the LICENSE file in the root directory of this source tree.
160
160
  */
161
- const Rt = $("LineChart", [
161
+ const Rt = Q("LineChart", [
162
162
  ["path", { d: "M3 3v18h18", key: "1s2lah" }],
163
163
  ["path", { d: "m19 9-5 5-4-4-3 3", key: "2osh9i" }]
164
164
  ]);
@@ -168,7 +168,7 @@ const Rt = $("LineChart", [
168
168
  * This source code is licensed under the ISC license.
169
169
  * See the LICENSE file in the root directory of this source tree.
170
170
  */
171
- const Ql = $("ListEnd", [
171
+ const Ql = Q("ListEnd", [
172
172
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
173
173
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
174
174
  ["path", { d: "M10 18H3", key: "13769t" }],
@@ -181,7 +181,7 @@ const Ql = $("ListEnd", [
181
181
  * This source code is licensed under the ISC license.
182
182
  * See the LICENSE file in the root directory of this source tree.
183
183
  */
184
- const Gl = $("ListStart", [
184
+ const Gl = Q("ListStart", [
185
185
  ["path", { d: "M16 12H3", key: "1a2rj7" }],
186
186
  ["path", { d: "M16 18H3", key: "12xzn7" }],
187
187
  ["path", { d: "M10 6H3", key: "lf8lx7" }],
@@ -194,7 +194,7 @@ const Gl = $("ListStart", [
194
194
  * This source code is licensed under the ISC license.
195
195
  * See the LICENSE file in the root directory of this source tree.
196
196
  */
197
- const Jl = $("ListX", [
197
+ const Jl = Q("ListX", [
198
198
  ["path", { d: "M11 12H3", key: "51ecnj" }],
199
199
  ["path", { d: "M16 6H3", key: "1wxfjs" }],
200
200
  ["path", { d: "M16 18H3", key: "12xzn7" }],
@@ -207,7 +207,7 @@ const Jl = $("ListX", [
207
207
  * This source code is licensed under the ISC license.
208
208
  * See the LICENSE file in the root directory of this source tree.
209
209
  */
210
- const Xl = $("MessageSquareMore", [
210
+ const Xl = Q("MessageSquareMore", [
211
211
  ["path", { d: "M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z", key: "1lielz" }],
212
212
  ["path", { d: "M8 10h.01", key: "19clt8" }],
213
213
  ["path", { d: "M12 10h.01", key: "1nrarc" }],
@@ -219,7 +219,7 @@ const Xl = $("MessageSquareMore", [
219
219
  * This source code is licensed under the ISC license.
220
220
  * See the LICENSE file in the root directory of this source tree.
221
221
  */
222
- const Yl = $("Network", [
222
+ const Yl = Q("Network", [
223
223
  ["rect", { x: "16", y: "16", width: "6", height: "6", rx: "1", key: "4q2zg0" }],
224
224
  ["rect", { x: "2", y: "16", width: "6", height: "6", rx: "1", key: "8cvhb9" }],
225
225
  ["rect", { x: "9", y: "2", width: "6", height: "6", rx: "1", key: "1egb70" }],
@@ -232,7 +232,7 @@ const Yl = $("Network", [
232
232
  * This source code is licensed under the ISC license.
233
233
  * See the LICENSE file in the root directory of this source tree.
234
234
  */
235
- const vi = $("Pencil", [
235
+ const vi = Q("Pencil", [
236
236
  ["path", { d: "M17 3a2.85 2.83 0 1 1 4 4L7.5 20.5 2 22l1.5-5.5Z", key: "5qss01" }],
237
237
  ["path", { d: "m15 5 4 4", key: "1mk7zo" }]
238
238
  ]);
@@ -242,7 +242,7 @@ const vi = $("Pencil", [
242
242
  * This source code is licensed under the ISC license.
243
243
  * See the LICENSE file in the root directory of this source tree.
244
244
  */
245
- const Ni = $("PieChart", [
245
+ const Ni = Q("PieChart", [
246
246
  ["path", { d: "M21.21 15.89A10 10 0 1 1 8 2.83", key: "k2fpak" }],
247
247
  ["path", { d: "M22 12A10 10 0 0 0 12 2v10z", key: "1rfc4y" }]
248
248
  ]);
@@ -252,7 +252,7 @@ const Ni = $("PieChart", [
252
252
  * This source code is licensed under the ISC license.
253
253
  * See the LICENSE file in the root directory of this source tree.
254
254
  */
255
- const Zl = $("Play", [
255
+ const Zl = Q("Play", [
256
256
  ["polygon", { points: "6 3 20 12 6 21 6 3", key: "1oa8hb" }]
257
257
  ]);
258
258
  /**
@@ -261,7 +261,7 @@ const Zl = $("Play", [
261
261
  * This source code is licensed under the ISC license.
262
262
  * See the LICENSE file in the root directory of this source tree.
263
263
  */
264
- const ea = $("Plug2", [
264
+ const ea = Q("Plug2", [
265
265
  ["path", { d: "M9 2v6", key: "17ngun" }],
266
266
  ["path", { d: "M15 2v6", key: "s7yy2p" }],
267
267
  ["path", { d: "M12 17v5", key: "bb1du9" }],
@@ -274,7 +274,7 @@ const ea = $("Plug2", [
274
274
  * This source code is licensed under the ISC license.
275
275
  * See the LICENSE file in the root directory of this source tree.
276
276
  */
277
- const Ei = $("Plus", [
277
+ const Ei = Q("Plus", [
278
278
  ["path", { d: "M5 12h14", key: "1ays0h" }],
279
279
  ["path", { d: "M12 5v14", key: "s699le" }]
280
280
  ]);
@@ -284,7 +284,7 @@ const Ei = $("Plus", [
284
284
  * This source code is licensed under the ISC license.
285
285
  * See the LICENSE file in the root directory of this source tree.
286
286
  */
287
- const na = $("Save", [
287
+ const na = Q("Save", [
288
288
  [
289
289
  "path",
290
290
  {
@@ -301,7 +301,7 @@ const na = $("Save", [
301
301
  * This source code is licensed under the ISC license.
302
302
  * See the LICENSE file in the root directory of this source tree.
303
303
  */
304
- const zi = $("ScatterChart", [
304
+ const zi = Q("ScatterChart", [
305
305
  ["circle", { cx: "7.5", cy: "7.5", r: ".5", fill: "currentColor", key: "kqv944" }],
306
306
  ["circle", { cx: "18.5", cy: "5.5", r: ".5", fill: "currentColor", key: "lysivs" }],
307
307
  ["circle", { cx: "11.5", cy: "11.5", r: ".5", fill: "currentColor", key: "byv1b8" }],
@@ -315,7 +315,7 @@ const zi = $("ScatterChart", [
315
315
  * This source code is licensed under the ISC license.
316
316
  * See the LICENSE file in the root directory of this source tree.
317
317
  */
318
- const ta = $("ShieldQuestion", [
318
+ const ta = Q("ShieldQuestion", [
319
319
  [
320
320
  "path",
321
321
  {
@@ -332,7 +332,7 @@ const ta = $("ShieldQuestion", [
332
332
  * This source code is licensed under the ISC license.
333
333
  * See the LICENSE file in the root directory of this source tree.
334
334
  */
335
- const ra = $("SwatchBook", [
335
+ const ra = Q("SwatchBook", [
336
336
  ["path", { d: "M11 17a4 4 0 0 1-8 0V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2Z", key: "1ldrpk" }],
337
337
  ["path", { d: "M16.7 13H19a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2H7", key: "11i5po" }],
338
338
  ["path", { d: "M 7 17h0.01", key: "10821z" }],
@@ -350,7 +350,7 @@ const ra = $("SwatchBook", [
350
350
  * This source code is licensed under the ISC license.
351
351
  * See the LICENSE file in the root directory of this source tree.
352
352
  */
353
- const _t = $("Table", [
353
+ const _t = Q("Table", [
354
354
  ["path", { d: "M12 3v18", key: "108xh3" }],
355
355
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
356
356
  ["path", { d: "M3 9h18", key: "1pudct" }],
@@ -362,7 +362,7 @@ const _t = $("Table", [
362
362
  * This source code is licensed under the ISC license.
363
363
  * See the LICENSE file in the root directory of this source tree.
364
364
  */
365
- const ia = $("Tag", [
365
+ const ia = Q("Tag", [
366
366
  [
367
367
  "path",
368
368
  {
@@ -378,7 +378,7 @@ const ia = $("Tag", [
378
378
  * This source code is licensed under the ISC license.
379
379
  * See the LICENSE file in the root directory of this source tree.
380
380
  */
381
- const sa = $("ToggleLeft", [
381
+ const sa = Q("ToggleLeft", [
382
382
  ["rect", { width: "20", height: "12", x: "2", y: "6", rx: "6", ry: "6", key: "f2vt7d" }],
383
383
  ["circle", { cx: "8", cy: "12", r: "2", key: "1nvbw3" }]
384
384
  ]);
@@ -388,7 +388,7 @@ const sa = $("ToggleLeft", [
388
388
  * This source code is licensed under the ISC license.
389
389
  * See the LICENSE file in the root directory of this source tree.
390
390
  */
391
- const la = $("Type", [
391
+ const la = Q("Type", [
392
392
  ["polyline", { points: "4 7 4 4 20 4 20 7", key: "1nosan" }],
393
393
  ["line", { x1: "9", x2: "15", y1: "20", y2: "20", key: "swin9y" }],
394
394
  ["line", { x1: "12", x2: "12", y1: "4", y2: "20", key: "1tx1rr" }]
@@ -399,12 +399,12 @@ const la = $("Type", [
399
399
  * This source code is licensed under the ISC license.
400
400
  * See the LICENSE file in the root directory of this source tree.
401
401
  */
402
- const aa = $("User", [
402
+ const aa = Q("User", [
403
403
  ["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
404
404
  ["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
405
405
  ]);
406
406
  function oa() {
407
- const [e, n] = G(""), [t, r] = G(!1), [s, l] = G(!1), a = P((c) => c.dashboard);
407
+ const [e, n] = J(""), [t, r] = J(!1), [s, l] = J(!1), a = P((c) => c.dashboard);
408
408
  function o() {
409
409
  const c = oi(a), u = en(a.id), h = JSON.parse(localStorage.getItem(u) || "[]");
410
410
  if (h.some(
@@ -420,7 +420,7 @@ function oa() {
420
420
  }
421
421
  return /* @__PURE__ */ i.jsxs(wt, { open: s, onOpenChange: l, children: [
422
422
  /* @__PURE__ */ i.jsx(Ct, { asChild: !0, children: /* @__PURE__ */ i.jsxs(
423
- B,
423
+ V,
424
424
  {
425
425
  variant: "outline",
426
426
  className: "h-7 p-2",
@@ -452,7 +452,7 @@ function oa() {
452
452
  ] }) }),
453
453
  t && /* @__PURE__ */ i.jsx("p", { className: "text-sm", children: "The bookmark name already exists. Use a differnet name." }),
454
454
  /* @__PURE__ */ i.jsx(ai, { children: /* @__PURE__ */ i.jsx(
455
- B,
455
+ V,
456
456
  {
457
457
  variant: "outline",
458
458
  type: "submit",
@@ -465,7 +465,7 @@ function oa() {
465
465
  ] });
466
466
  }
467
467
  function ca() {
468
- const [e, n] = G(!1), [t, r] = G(""), s = P((p) => p.dashboard), l = P((p) => p.bookmarkKey), [a, o] = G([]), c = P((p) => p.actions.setDashboard), u = P(
468
+ const [e, n] = J(!1), [t, r] = J(""), s = P((p) => p.dashboard), l = P((p) => p.bookmarkKey), [a, o] = J([]), c = P((p) => p.actions.setDashboard), u = P(
469
469
  (p) => p.actions.setFilterValues
470
470
  ), h = P(
471
471
  (p) => p.actions.setBookmarkKey
@@ -491,7 +491,7 @@ function ca() {
491
491
  localStorage.setItem(y, JSON.stringify(w)), o(w);
492
492
  }
493
493
  return /* @__PURE__ */ i.jsxs(zs, { open: e, onOpenChange: n, children: [
494
- /* @__PURE__ */ i.jsx(Os, { asChild: !0, children: /* @__PURE__ */ i.jsx(B, { variant: "outline", className: "h-7 p-2", children: /* @__PURE__ */ i.jsx(ql, { className: "h-4 w-4", strokeWidth: 1.5 }) }) }),
494
+ /* @__PURE__ */ i.jsx(Os, { asChild: !0, children: /* @__PURE__ */ i.jsx(V, { variant: "outline", className: "h-7 p-2", children: /* @__PURE__ */ i.jsx(ql, { className: "h-4 w-4", strokeWidth: 1.5 }) }) }),
495
495
  /* @__PURE__ */ i.jsxs(Ts, { className: "w-56", children: [
496
496
  /* @__PURE__ */ i.jsx(As, { children: "Lenses" }),
497
497
  /* @__PURE__ */ i.jsx(Is, {}),
@@ -531,7 +531,7 @@ function ca() {
531
531
  ] });
532
532
  }
533
533
  function ua() {
534
- const [e, n] = G(!1), t = P((l) => l.dashboard), r = P((l) => l.bookmarkKey);
534
+ const [e, n] = J(!1), t = P((l) => l.dashboard), r = P((l) => l.bookmarkKey);
535
535
  me(() => {
536
536
  if (!r) {
537
537
  n(!1);
@@ -614,19 +614,19 @@ function da() {
614
614
  function w() {
615
615
  if (!e || e === "")
616
616
  return;
617
- const b = oi(n), E = en(n.id), v = JSON.parse(localStorage.getItem(E) || "[]"), F = v.findIndex(
618
- (M) => M.name === e
617
+ const b = oi(n), E = en(n.id), S = JSON.parse(localStorage.getItem(E) || "[]"), M = S.findIndex(
618
+ (F) => F.name === e
619
619
  );
620
- F !== -1 ? v[F] = {
620
+ M !== -1 ? S[M] = {
621
621
  name: e,
622
622
  template: b,
623
- default: v[F].default,
623
+ default: S[M].default,
624
624
  filterValues: r
625
- } : v.push({
625
+ } : S.push({
626
626
  name: e,
627
627
  template: b,
628
628
  filterValues: r
629
- }), localStorage.setItem(E, JSON.stringify(v)), a == null || a(b);
629
+ }), localStorage.setItem(E, JSON.stringify(S)), a == null || a(b);
630
630
  }
631
631
  return s ? null : /* @__PURE__ */ i.jsxs(
632
632
  "div",
@@ -645,7 +645,7 @@ function da() {
645
645
  t && !s && /* @__PURE__ */ i.jsx(oa, {}),
646
646
  !s && /* @__PURE__ */ i.jsx(ca, {}),
647
647
  t && !s && /* @__PURE__ */ i.jsxs(
648
- B,
648
+ V,
649
649
  {
650
650
  variant: "outline",
651
651
  className: "h-7 p-2",
@@ -659,7 +659,7 @@ function da() {
659
659
  }
660
660
  ),
661
661
  !t && /* @__PURE__ */ i.jsx(
662
- B,
662
+ V,
663
663
  {
664
664
  variant: "outline",
665
665
  className: "h-7 p-2",
@@ -669,7 +669,7 @@ function da() {
669
669
  }
670
670
  ),
671
671
  t && !s && /* @__PURE__ */ i.jsx(
672
- B,
672
+ V,
673
673
  {
674
674
  variant: "outline",
675
675
  role: "close",
@@ -682,7 +682,7 @@ function da() {
682
682
  }
683
683
  ),
684
684
  t && !s && /* @__PURE__ */ i.jsx(
685
- B,
685
+ V,
686
686
  {
687
687
  className: "h-7 p-2",
688
688
  variant: "outline",
@@ -692,7 +692,7 @@ function da() {
692
692
  }
693
693
  ),
694
694
  !l && !s && t && /* @__PURE__ */ i.jsx(
695
- B,
695
+ V,
696
696
  {
697
697
  className: "h-7 p-2",
698
698
  variant: "outline",
@@ -760,7 +760,7 @@ function wn({
760
760
  ] });
761
761
  }
762
762
  function ha({ column: e }) {
763
- const [n, t] = G(!1), r = C((h) => h.selectedTableName), s = C(
763
+ const [n, t] = J(!1), r = C((h) => h.selectedTableName), s = C(
764
764
  (h) => h.selectedSchemaName
765
765
  ), l = C((h) => h.sqlGen), a = C((h) => h.actions.setSqlGen), o = C((h) => h.actions.setCardSql), c = C((h) => h.actions.setRunSql);
766
766
  function u(h, d) {
@@ -859,7 +859,7 @@ function pa({
859
859
  }
860
860
  return /* @__PURE__ */ i.jsxs("div", { className: "flex grow flex-col space-y-4 px-6", children: [
861
861
  /* @__PURE__ */ i.jsx("div", { className: "font-medium", children: /* @__PURE__ */ i.jsxs(
862
- B,
862
+ V,
863
863
  {
864
864
  disabled: r !== "Success",
865
865
  onClick: h,
@@ -914,15 +914,15 @@ function pa({
914
914
  function Ti({
915
915
  ColumnsComponent: e
916
916
  }) {
917
- var T;
917
+ var _;
918
918
  const n = C(
919
- (z) => z.selectedConnectionId
919
+ ($) => $.selectedConnectionId
920
920
  ), t = C(
921
- (z) => z.selectedDatabaseName
921
+ ($) => $.selectedDatabaseName
922
922
  ), r = C(
923
- (z) => z.selectedSchemaName
924
- ), s = C((z) => z.selectedTableName), l = C(
925
- (z) => z.actions.setSelectedTableName
923
+ ($) => $.selectedSchemaName
924
+ ), s = C(($) => $.selectedTableName), l = C(
925
+ ($) => $.actions.setSelectedTableName
926
926
  ), {
927
927
  connectionItems: a,
928
928
  schemaItems: o,
@@ -937,27 +937,67 @@ function Ti({
937
937
  isSchemaError: w,
938
938
  isColumnsError: b,
939
939
  isColumnsLoadingOrFetching: E,
940
- isAPIConnection: v,
940
+ connectionType: S,
941
+ isNonDbConnection: M,
941
942
  handleConnectionChange: F,
942
- handleDatabaseChange: M,
943
- handleSchemaChange: j,
944
- tableName: R,
945
- schemaName: A
943
+ handleDatabaseChange: j,
944
+ handleSchemaChange: R,
945
+ tableName: A,
946
+ schemaName: I
946
947
  } = Vs();
947
- function I() {
948
- return e ? e(A, R, h) : /* @__PURE__ */ i.jsx(
948
+ function U() {
949
+ return e ? e(I, A, h) : /* @__PURE__ */ i.jsx(
949
950
  pa,
950
951
  {
951
- schemaName: A,
952
- tableName: R,
952
+ schemaName: I,
953
+ tableName: A,
953
954
  columns: h,
954
955
  status: E ? "Loading..." : b ? "Error" : "Success"
955
956
  }
956
957
  );
957
958
  }
958
- function U() {
959
+ function T() {
959
960
  window.location.href = "mailto:support@semaphor.cloud?subject=Help&body=I need help with...";
960
961
  }
962
+ function z() {
963
+ return S === "S3" || S === "API" ? null : /* @__PURE__ */ i.jsx(
964
+ wn,
965
+ {
966
+ onChange: j,
967
+ isError: y,
968
+ isLoading: p,
969
+ items: c,
970
+ value: t || "",
971
+ title: "Database"
972
+ }
973
+ );
974
+ }
975
+ function W() {
976
+ return S === "S3" || S === "API" ? null : /* @__PURE__ */ i.jsx(
977
+ wn,
978
+ {
979
+ onChange: R,
980
+ isError: w,
981
+ isLoading: k,
982
+ items: o,
983
+ value: r || "",
984
+ title: "Schema"
985
+ }
986
+ );
987
+ }
988
+ function K() {
989
+ return S === "API" ? null : /* @__PURE__ */ i.jsx(
990
+ wn,
991
+ {
992
+ onChange: l,
993
+ isError: y,
994
+ items: u,
995
+ isLoading: p,
996
+ value: s || "",
997
+ title: "Table"
998
+ }
999
+ );
1000
+ }
961
1001
  return /* @__PURE__ */ i.jsxs("aside", { className: "xbg-red-100 flex grow flex-col justify-between", children: [
962
1002
  /* @__PURE__ */ i.jsxs("section", { className: "space-y-3 px-6 py-4", children: [
963
1003
  /* @__PURE__ */ i.jsx(
@@ -969,52 +1009,20 @@ function Ti({
969
1009
  onChange: F,
970
1010
  isLoading: d,
971
1011
  isError: f,
972
- connectionTooltip: ((T = a == null ? void 0 : a.find(
973
- (z) => z.id === n
974
- )) == null ? void 0 : T.type) || ""
1012
+ connectionTooltip: ((_ = a == null ? void 0 : a.find(
1013
+ ($) => $.id === n
1014
+ )) == null ? void 0 : _.type) || ""
975
1015
  }
976
1016
  ),
977
- !v && /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
978
- /* @__PURE__ */ i.jsx(
979
- wn,
980
- {
981
- onChange: M,
982
- isError: y,
983
- isLoading: p,
984
- items: c,
985
- value: t || "",
986
- title: "Database"
987
- }
988
- ),
989
- /* @__PURE__ */ i.jsx(
990
- wn,
991
- {
992
- onChange: j,
993
- isError: w,
994
- isLoading: k,
995
- items: o,
996
- value: r || "",
997
- title: "Schema"
998
- }
999
- ),
1000
- /* @__PURE__ */ i.jsx(
1001
- wn,
1002
- {
1003
- onChange: l,
1004
- isError: y,
1005
- items: u,
1006
- isLoading: p,
1007
- value: s || "",
1008
- title: "Table"
1009
- }
1010
- )
1011
- ] })
1017
+ z(),
1018
+ W(),
1019
+ K()
1012
1020
  ] }),
1013
- I(),
1021
+ U(),
1014
1022
  /* @__PURE__ */ i.jsx("div", { className: "flex items-end justify-center px-6 py-4", children: /* @__PURE__ */ i.jsxs(
1015
- B,
1023
+ V,
1016
1024
  {
1017
- onClick: U,
1025
+ onClick: T,
1018
1026
  size: "sm",
1019
1027
  variant: "secondary",
1020
1028
  className: "w-full",
@@ -1076,10 +1084,10 @@ function ma({
1076
1084
  setTriggerAIRun: r
1077
1085
  }) {
1078
1086
  return /* @__PURE__ */ i.jsxs(pi, { openDelay: 0, children: [
1079
- /* @__PURE__ */ i.jsx(fi, { asChild: !0, children: /* @__PURE__ */ i.jsx(B, { variant: "link", className: " p-0 h-5", children: /* @__PURE__ */ i.jsx(Bl, { className: "h-4 w-4 text-red-500" }) }) }),
1087
+ /* @__PURE__ */ i.jsx(fi, { asChild: !0, children: /* @__PURE__ */ i.jsx(V, { variant: "link", className: " p-0 h-5", children: /* @__PURE__ */ i.jsx(Bl, { className: "h-4 w-4 text-red-500" }) }) }),
1080
1088
  /* @__PURE__ */ i.jsx(mi, { align: "start", className: " min-w-fit max-w-[500px]", children: /* @__PURE__ */ i.jsx("div", { className: "flex justify-between space-x-4", children: /* @__PURE__ */ i.jsxs("div", { className: "grow space-y-1 flex flex-col ", children: [
1081
1089
  /* @__PURE__ */ i.jsxs(
1082
- B,
1090
+ V,
1083
1091
  {
1084
1092
  onClick: () => {
1085
1093
  n(!0), t(e), r(!0);
@@ -1107,7 +1115,7 @@ function xa({
1107
1115
  ] });
1108
1116
  }
1109
1117
  function ga() {
1110
- const { authToken: e } = Mt(), n = un(null), t = C((o) => o.applyFilters), [r, s] = G(""), l = C((o) => o.filterValues), a = C((o) => o.card.sql);
1118
+ const { authToken: e } = Mt(), n = un(null), t = C((o) => o.applyFilters), [r, s] = J(""), l = C((o) => o.filterValues), a = C((o) => o.card.sql);
1111
1119
  return /* @__PURE__ */ i.jsxs(
1112
1120
  pi,
1113
1121
  {
@@ -1210,19 +1218,19 @@ Se.prototype.commaOrSpaceSeparated = !1;
1210
1218
  Se.prototype.mustUseProperty = !1;
1211
1219
  Se.prototype.defined = !1;
1212
1220
  let Sa = 0;
1213
- const H = We(), re = We(), Ii = We(), S = We(), J = We(), Ye = We(), ke = We();
1221
+ const q = We(), re = We(), Ii = We(), v = We(), X = We(), Ye = We(), ke = We();
1214
1222
  function We() {
1215
1223
  return 2 ** ++Sa;
1216
1224
  }
1217
1225
  const ft = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1218
1226
  __proto__: null,
1219
- boolean: H,
1227
+ boolean: q,
1220
1228
  booleanish: re,
1221
1229
  commaOrSpaceSeparated: ke,
1222
1230
  commaSeparated: Ye,
1223
- number: S,
1231
+ number: v,
1224
1232
  overloadedBoolean: Ii,
1225
- spaceSeparated: J
1233
+ spaceSeparated: X
1226
1234
  }, Symbol.toStringTag, { value: "Module" })), Yn = Object.keys(ft);
1227
1235
  class Bt extends Se {
1228
1236
  /**
@@ -1303,48 +1311,48 @@ const Pi = nn({
1303
1311
  ariaAutoComplete: null,
1304
1312
  ariaBusy: re,
1305
1313
  ariaChecked: re,
1306
- ariaColCount: S,
1307
- ariaColIndex: S,
1308
- ariaColSpan: S,
1309
- ariaControls: J,
1314
+ ariaColCount: v,
1315
+ ariaColIndex: v,
1316
+ ariaColSpan: v,
1317
+ ariaControls: X,
1310
1318
  ariaCurrent: null,
1311
- ariaDescribedBy: J,
1319
+ ariaDescribedBy: X,
1312
1320
  ariaDetails: null,
1313
1321
  ariaDisabled: re,
1314
- ariaDropEffect: J,
1322
+ ariaDropEffect: X,
1315
1323
  ariaErrorMessage: null,
1316
1324
  ariaExpanded: re,
1317
- ariaFlowTo: J,
1325
+ ariaFlowTo: X,
1318
1326
  ariaGrabbed: re,
1319
1327
  ariaHasPopup: null,
1320
1328
  ariaHidden: re,
1321
1329
  ariaInvalid: null,
1322
1330
  ariaKeyShortcuts: null,
1323
1331
  ariaLabel: null,
1324
- ariaLabelledBy: J,
1325
- ariaLevel: S,
1332
+ ariaLabelledBy: X,
1333
+ ariaLevel: v,
1326
1334
  ariaLive: null,
1327
1335
  ariaModal: re,
1328
1336
  ariaMultiLine: re,
1329
1337
  ariaMultiSelectable: re,
1330
1338
  ariaOrientation: null,
1331
- ariaOwns: J,
1339
+ ariaOwns: X,
1332
1340
  ariaPlaceholder: null,
1333
- ariaPosInSet: S,
1341
+ ariaPosInSet: v,
1334
1342
  ariaPressed: re,
1335
1343
  ariaReadOnly: re,
1336
1344
  ariaRelevant: null,
1337
1345
  ariaRequired: re,
1338
- ariaRoleDescription: J,
1339
- ariaRowCount: S,
1340
- ariaRowIndex: S,
1341
- ariaRowSpan: S,
1346
+ ariaRoleDescription: X,
1347
+ ariaRowCount: v,
1348
+ ariaRowIndex: v,
1349
+ ariaRowSpan: v,
1342
1350
  ariaSelected: re,
1343
- ariaSetSize: S,
1351
+ ariaSetSize: v,
1344
1352
  ariaSort: null,
1345
- ariaValueMax: S,
1346
- ariaValueMin: S,
1347
- ariaValueNow: S,
1353
+ ariaValueMax: v,
1354
+ ariaValueMin: v,
1355
+ ariaValueNow: v,
1348
1356
  ariaValueText: null,
1349
1357
  role: null
1350
1358
  }
@@ -1362,42 +1370,42 @@ const Pi = nn({
1362
1370
  // Standard Properties.
1363
1371
  abbr: null,
1364
1372
  accept: Ye,
1365
- acceptCharset: J,
1366
- accessKey: J,
1373
+ acceptCharset: X,
1374
+ accessKey: X,
1367
1375
  action: null,
1368
1376
  allow: null,
1369
- allowFullScreen: H,
1370
- allowPaymentRequest: H,
1371
- allowUserMedia: H,
1377
+ allowFullScreen: q,
1378
+ allowPaymentRequest: q,
1379
+ allowUserMedia: q,
1372
1380
  alt: null,
1373
1381
  as: null,
1374
- async: H,
1382
+ async: q,
1375
1383
  autoCapitalize: null,
1376
- autoComplete: J,
1377
- autoFocus: H,
1378
- autoPlay: H,
1379
- blocking: J,
1384
+ autoComplete: X,
1385
+ autoFocus: q,
1386
+ autoPlay: q,
1387
+ blocking: X,
1380
1388
  capture: null,
1381
1389
  charSet: null,
1382
- checked: H,
1390
+ checked: q,
1383
1391
  cite: null,
1384
- className: J,
1385
- cols: S,
1392
+ className: X,
1393
+ cols: v,
1386
1394
  colSpan: null,
1387
1395
  content: null,
1388
1396
  contentEditable: re,
1389
- controls: H,
1390
- controlsList: J,
1391
- coords: S | Ye,
1397
+ controls: q,
1398
+ controlsList: X,
1399
+ coords: v | Ye,
1392
1400
  crossOrigin: null,
1393
1401
  data: null,
1394
1402
  dateTime: null,
1395
1403
  decoding: null,
1396
- default: H,
1397
- defer: H,
1404
+ default: q,
1405
+ defer: q,
1398
1406
  dir: null,
1399
1407
  dirName: null,
1400
- disabled: H,
1408
+ disabled: q,
1401
1409
  download: Ii,
1402
1410
  draggable: re,
1403
1411
  encType: null,
@@ -1407,50 +1415,50 @@ const Pi = nn({
1407
1415
  formAction: null,
1408
1416
  formEncType: null,
1409
1417
  formMethod: null,
1410
- formNoValidate: H,
1418
+ formNoValidate: q,
1411
1419
  formTarget: null,
1412
- headers: J,
1413
- height: S,
1414
- hidden: H,
1415
- high: S,
1420
+ headers: X,
1421
+ height: v,
1422
+ hidden: q,
1423
+ high: v,
1416
1424
  href: null,
1417
1425
  hrefLang: null,
1418
- htmlFor: J,
1419
- httpEquiv: J,
1426
+ htmlFor: X,
1427
+ httpEquiv: X,
1420
1428
  id: null,
1421
1429
  imageSizes: null,
1422
1430
  imageSrcSet: null,
1423
- inert: H,
1431
+ inert: q,
1424
1432
  inputMode: null,
1425
1433
  integrity: null,
1426
1434
  is: null,
1427
- isMap: H,
1435
+ isMap: q,
1428
1436
  itemId: null,
1429
- itemProp: J,
1430
- itemRef: J,
1431
- itemScope: H,
1432
- itemType: J,
1437
+ itemProp: X,
1438
+ itemRef: X,
1439
+ itemScope: q,
1440
+ itemType: X,
1433
1441
  kind: null,
1434
1442
  label: null,
1435
1443
  lang: null,
1436
1444
  language: null,
1437
1445
  list: null,
1438
1446
  loading: null,
1439
- loop: H,
1440
- low: S,
1447
+ loop: q,
1448
+ low: v,
1441
1449
  manifest: null,
1442
1450
  max: null,
1443
- maxLength: S,
1451
+ maxLength: v,
1444
1452
  media: null,
1445
1453
  method: null,
1446
1454
  min: null,
1447
- minLength: S,
1448
- multiple: H,
1449
- muted: H,
1455
+ minLength: v,
1456
+ multiple: q,
1457
+ muted: q,
1450
1458
  name: null,
1451
1459
  nonce: null,
1452
- noModule: H,
1453
- noValidate: H,
1460
+ noModule: q,
1461
+ noValidate: q,
1454
1462
  onAbort: null,
1455
1463
  onAfterPrint: null,
1456
1464
  onAuxClick: null,
@@ -1539,53 +1547,53 @@ const Pi = nn({
1539
1547
  onVolumeChange: null,
1540
1548
  onWaiting: null,
1541
1549
  onWheel: null,
1542
- open: H,
1543
- optimum: S,
1550
+ open: q,
1551
+ optimum: v,
1544
1552
  pattern: null,
1545
- ping: J,
1553
+ ping: X,
1546
1554
  placeholder: null,
1547
- playsInline: H,
1555
+ playsInline: q,
1548
1556
  popover: null,
1549
1557
  popoverTarget: null,
1550
1558
  popoverTargetAction: null,
1551
1559
  poster: null,
1552
1560
  preload: null,
1553
- readOnly: H,
1561
+ readOnly: q,
1554
1562
  referrerPolicy: null,
1555
- rel: J,
1556
- required: H,
1557
- reversed: H,
1558
- rows: S,
1559
- rowSpan: S,
1560
- sandbox: J,
1563
+ rel: X,
1564
+ required: q,
1565
+ reversed: q,
1566
+ rows: v,
1567
+ rowSpan: v,
1568
+ sandbox: X,
1561
1569
  scope: null,
1562
- scoped: H,
1563
- seamless: H,
1564
- selected: H,
1565
- shadowRootDelegatesFocus: H,
1570
+ scoped: q,
1571
+ seamless: q,
1572
+ selected: q,
1573
+ shadowRootDelegatesFocus: q,
1566
1574
  shadowRootMode: null,
1567
1575
  shape: null,
1568
- size: S,
1576
+ size: v,
1569
1577
  sizes: null,
1570
1578
  slot: null,
1571
- span: S,
1579
+ span: v,
1572
1580
  spellCheck: re,
1573
1581
  src: null,
1574
1582
  srcDoc: null,
1575
1583
  srcLang: null,
1576
1584
  srcSet: null,
1577
- start: S,
1585
+ start: v,
1578
1586
  step: null,
1579
1587
  style: null,
1580
- tabIndex: S,
1588
+ tabIndex: v,
1581
1589
  target: null,
1582
1590
  title: null,
1583
1591
  translate: null,
1584
1592
  type: null,
1585
- typeMustMatch: H,
1593
+ typeMustMatch: q,
1586
1594
  useMap: null,
1587
1595
  value: re,
1588
- width: S,
1596
+ width: v,
1589
1597
  wrap: null,
1590
1598
  // Legacy.
1591
1599
  // See: https://html.spec.whatwg.org/#other-elements,-attributes-and-apis
@@ -1593,7 +1601,7 @@ const Pi = nn({
1593
1601
  // Several. Use CSS `text-align` instead,
1594
1602
  aLink: null,
1595
1603
  // `<body>`. Use CSS `a:active {color}` instead
1596
- archive: J,
1604
+ archive: X,
1597
1605
  // `<object>`. List of URIs to archives
1598
1606
  axis: null,
1599
1607
  // `<td>` and `<th>`. Use `scope` on `<th>`
@@ -1601,11 +1609,11 @@ const Pi = nn({
1601
1609
  // `<body>`. Use CSS `background-image` instead
1602
1610
  bgColor: null,
1603
1611
  // `<body>` and table elements. Use CSS `background-color` instead
1604
- border: S,
1612
+ border: v,
1605
1613
  // `<table>`. Use CSS `border-width` instead,
1606
1614
  borderColor: null,
1607
1615
  // `<table>`. Use CSS `border-color` instead,
1608
- bottomMargin: S,
1616
+ bottomMargin: v,
1609
1617
  // `<body>`
1610
1618
  cellPadding: null,
1611
1619
  // `<table>`
@@ -1627,9 +1635,9 @@ const Pi = nn({
1627
1635
  // `<object>`
1628
1636
  color: null,
1629
1637
  // `<font>` and `<hr>`. Use CSS instead
1630
- compact: H,
1638
+ compact: q,
1631
1639
  // Lists. Use CSS to reduce space between items instead
1632
- declare: H,
1640
+ declare: q,
1633
1641
  // `<object>`
1634
1642
  event: null,
1635
1643
  // `<script>`
@@ -1639,9 +1647,9 @@ const Pi = nn({
1639
1647
  // `<table>`
1640
1648
  frameBorder: null,
1641
1649
  // `<iframe>`. Use CSS `border` instead
1642
- hSpace: S,
1650
+ hSpace: v,
1643
1651
  // `<img>` and `<object>`
1644
- leftMargin: S,
1652
+ leftMargin: v,
1645
1653
  // `<body>`
1646
1654
  link: null,
1647
1655
  // `<body>`. Use CSS `a:link {color: *}` instead
@@ -1649,17 +1657,17 @@ const Pi = nn({
1649
1657
  // `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
1650
1658
  lowSrc: null,
1651
1659
  // `<img>`. Use a `<picture>`
1652
- marginHeight: S,
1660
+ marginHeight: v,
1653
1661
  // `<body>`
1654
- marginWidth: S,
1662
+ marginWidth: v,
1655
1663
  // `<body>`
1656
- noResize: H,
1664
+ noResize: q,
1657
1665
  // `<frame>`
1658
- noHref: H,
1666
+ noHref: q,
1659
1667
  // `<area>`. Use no href instead of an explicit `nohref`
1660
- noShade: H,
1668
+ noShade: q,
1661
1669
  // `<hr>`. Use background-color and height instead of borders
1662
- noWrap: H,
1670
+ noWrap: q,
1663
1671
  // `<td>` and `<th>`
1664
1672
  object: null,
1665
1673
  // `<applet>`
@@ -1669,7 +1677,7 @@ const Pi = nn({
1669
1677
  // `<isindex>`
1670
1678
  rev: null,
1671
1679
  // `<link>`
1672
- rightMargin: S,
1680
+ rightMargin: v,
1673
1681
  // `<body>`
1674
1682
  rules: null,
1675
1683
  // `<table>`
@@ -1683,7 +1691,7 @@ const Pi = nn({
1683
1691
  // `<table>`
1684
1692
  text: null,
1685
1693
  // `<body>`. Use CSS `color` instead
1686
- topMargin: S,
1694
+ topMargin: v,
1687
1695
  // `<body>`
1688
1696
  valueType: null,
1689
1697
  // `<param>`
@@ -1693,17 +1701,17 @@ const Pi = nn({
1693
1701
  // Several. Use CSS `vertical-align` instead
1694
1702
  vLink: null,
1695
1703
  // `<body>`. Use CSS `a:visited {color}` instead
1696
- vSpace: S,
1704
+ vSpace: v,
1697
1705
  // `<img>` and `<object>`
1698
1706
  // Non-standard Properties.
1699
1707
  allowTransparency: null,
1700
1708
  autoCorrect: null,
1701
1709
  autoSave: null,
1702
- disablePictureInPicture: H,
1703
- disableRemotePlayback: H,
1710
+ disablePictureInPicture: q,
1711
+ disableRemotePlayback: q,
1704
1712
  prefix: null,
1705
1713
  property: null,
1706
- results: S,
1714
+ results: v,
1707
1715
  security: null,
1708
1716
  unselectable: null
1709
1717
  }
@@ -1887,28 +1895,28 @@ const Pi = nn({
1887
1895
  transform: Mi,
1888
1896
  properties: {
1889
1897
  about: ke,
1890
- accentHeight: S,
1898
+ accentHeight: v,
1891
1899
  accumulate: null,
1892
1900
  additive: null,
1893
1901
  alignmentBaseline: null,
1894
- alphabetic: S,
1895
- amplitude: S,
1902
+ alphabetic: v,
1903
+ amplitude: v,
1896
1904
  arabicForm: null,
1897
- ascent: S,
1905
+ ascent: v,
1898
1906
  attributeName: null,
1899
1907
  attributeType: null,
1900
- azimuth: S,
1908
+ azimuth: v,
1901
1909
  bandwidth: null,
1902
1910
  baselineShift: null,
1903
1911
  baseFrequency: null,
1904
1912
  baseProfile: null,
1905
1913
  bbox: null,
1906
1914
  begin: null,
1907
- bias: S,
1915
+ bias: v,
1908
1916
  by: null,
1909
1917
  calcMode: null,
1910
- capHeight: S,
1911
- className: J,
1918
+ capHeight: v,
1919
+ className: X,
1912
1920
  clip: null,
1913
1921
  clipPath: null,
1914
1922
  clipPathUnits: null,
@@ -1928,26 +1936,26 @@ const Pi = nn({
1928
1936
  d: null,
1929
1937
  dataType: null,
1930
1938
  defaultAction: null,
1931
- descent: S,
1932
- diffuseConstant: S,
1939
+ descent: v,
1940
+ diffuseConstant: v,
1933
1941
  direction: null,
1934
1942
  display: null,
1935
1943
  dur: null,
1936
- divisor: S,
1944
+ divisor: v,
1937
1945
  dominantBaseline: null,
1938
- download: H,
1946
+ download: q,
1939
1947
  dx: null,
1940
1948
  dy: null,
1941
1949
  edgeMode: null,
1942
1950
  editable: null,
1943
- elevation: S,
1951
+ elevation: v,
1944
1952
  enableBackground: null,
1945
1953
  end: null,
1946
1954
  event: null,
1947
- exponent: S,
1955
+ exponent: v,
1948
1956
  externalResourcesRequired: null,
1949
1957
  fill: null,
1950
- fillOpacity: S,
1958
+ fillOpacity: v,
1951
1959
  fillRule: null,
1952
1960
  filter: null,
1953
1961
  filterRes: null,
@@ -1977,27 +1985,27 @@ const Pi = nn({
1977
1985
  gradientTransform: null,
1978
1986
  gradientUnits: null,
1979
1987
  handler: null,
1980
- hanging: S,
1988
+ hanging: v,
1981
1989
  hatchContentUnits: null,
1982
1990
  hatchUnits: null,
1983
1991
  height: null,
1984
1992
  href: null,
1985
1993
  hrefLang: null,
1986
- horizAdvX: S,
1987
- horizOriginX: S,
1988
- horizOriginY: S,
1994
+ horizAdvX: v,
1995
+ horizOriginX: v,
1996
+ horizOriginY: v,
1989
1997
  id: null,
1990
- ideographic: S,
1998
+ ideographic: v,
1991
1999
  imageRendering: null,
1992
2000
  initialVisibility: null,
1993
2001
  in: null,
1994
2002
  in2: null,
1995
- intercept: S,
1996
- k: S,
1997
- k1: S,
1998
- k2: S,
1999
- k3: S,
2000
- k4: S,
2003
+ intercept: v,
2004
+ k: v,
2005
+ k1: v,
2006
+ k2: v,
2007
+ k3: v,
2008
+ k4: v,
2001
2009
  kernelMatrix: ke,
2002
2010
  kernelUnitLength: null,
2003
2011
  keyPoints: null,
@@ -2011,7 +2019,7 @@ const Pi = nn({
2011
2019
  lengthAdjust: null,
2012
2020
  letterSpacing: null,
2013
2021
  lightingColor: null,
2014
- limitingConeAngle: S,
2022
+ limitingConeAngle: v,
2015
2023
  local: null,
2016
2024
  markerEnd: null,
2017
2025
  markerMid: null,
@@ -2027,7 +2035,7 @@ const Pi = nn({
2027
2035
  media: null,
2028
2036
  mediaCharacterEncoding: null,
2029
2037
  mediaContentEncodings: null,
2030
- mediaSize: S,
2038
+ mediaSize: v,
2031
2039
  mediaTime: null,
2032
2040
  method: null,
2033
2041
  min: null,
@@ -2133,24 +2141,24 @@ const Pi = nn({
2133
2141
  origin: null,
2134
2142
  overflow: null,
2135
2143
  overlay: null,
2136
- overlinePosition: S,
2137
- overlineThickness: S,
2144
+ overlinePosition: v,
2145
+ overlineThickness: v,
2138
2146
  paintOrder: null,
2139
2147
  panose1: null,
2140
2148
  path: null,
2141
- pathLength: S,
2149
+ pathLength: v,
2142
2150
  patternContentUnits: null,
2143
2151
  patternTransform: null,
2144
2152
  patternUnits: null,
2145
2153
  phase: null,
2146
- ping: J,
2154
+ ping: X,
2147
2155
  pitch: null,
2148
2156
  playbackOrder: null,
2149
2157
  pointerEvents: null,
2150
2158
  points: null,
2151
- pointsAtX: S,
2152
- pointsAtY: S,
2153
- pointsAtZ: S,
2159
+ pointsAtX: v,
2160
+ pointsAtY: v,
2161
+ pointsAtZ: v,
2154
2162
  preserveAlpha: null,
2155
2163
  preserveAspectRatio: null,
2156
2164
  primitiveUnits: null,
@@ -2182,8 +2190,8 @@ const Pi = nn({
2182
2190
  side: null,
2183
2191
  slope: null,
2184
2192
  snapshotTime: null,
2185
- specularConstant: S,
2186
- specularExponent: S,
2193
+ specularConstant: v,
2194
+ specularExponent: v,
2187
2195
  spreadMethod: null,
2188
2196
  spacing: null,
2189
2197
  startOffset: null,
@@ -2193,30 +2201,30 @@ const Pi = nn({
2193
2201
  stitchTiles: null,
2194
2202
  stopColor: null,
2195
2203
  stopOpacity: null,
2196
- strikethroughPosition: S,
2197
- strikethroughThickness: S,
2204
+ strikethroughPosition: v,
2205
+ strikethroughThickness: v,
2198
2206
  string: null,
2199
2207
  stroke: null,
2200
2208
  strokeDashArray: ke,
2201
2209
  strokeDashOffset: null,
2202
2210
  strokeLineCap: null,
2203
2211
  strokeLineJoin: null,
2204
- strokeMiterLimit: S,
2205
- strokeOpacity: S,
2212
+ strokeMiterLimit: v,
2213
+ strokeOpacity: v,
2206
2214
  strokeWidth: null,
2207
2215
  style: null,
2208
- surfaceScale: S,
2216
+ surfaceScale: v,
2209
2217
  syncBehavior: null,
2210
2218
  syncBehaviorDefault: null,
2211
2219
  syncMaster: null,
2212
2220
  syncTolerance: null,
2213
2221
  syncToleranceDefault: null,
2214
2222
  systemLanguage: ke,
2215
- tabIndex: S,
2223
+ tabIndex: v,
2216
2224
  tableValues: null,
2217
2225
  target: null,
2218
- targetX: S,
2219
- targetY: S,
2226
+ targetX: v,
2227
+ targetY: v,
2220
2228
  textAnchor: null,
2221
2229
  textDecoration: null,
2222
2230
  textRendering: null,
@@ -2231,22 +2239,22 @@ const Pi = nn({
2231
2239
  transformOrigin: null,
2232
2240
  u1: null,
2233
2241
  u2: null,
2234
- underlinePosition: S,
2235
- underlineThickness: S,
2242
+ underlinePosition: v,
2243
+ underlineThickness: v,
2236
2244
  unicode: null,
2237
2245
  unicodeBidi: null,
2238
2246
  unicodeRange: null,
2239
- unitsPerEm: S,
2247
+ unitsPerEm: v,
2240
2248
  values: null,
2241
- vAlphabetic: S,
2242
- vMathematical: S,
2249
+ vAlphabetic: v,
2250
+ vMathematical: v,
2243
2251
  vectorEffect: null,
2244
- vHanging: S,
2245
- vIdeographic: S,
2252
+ vHanging: v,
2253
+ vIdeographic: v,
2246
2254
  version: null,
2247
- vertAdvY: S,
2248
- vertOriginX: S,
2249
- vertOriginY: S,
2255
+ vertAdvY: v,
2256
+ vertOriginX: v,
2257
+ vertOriginY: v,
2250
2258
  viewBox: null,
2251
2259
  viewTarget: null,
2252
2260
  visibility: null,
@@ -2258,7 +2266,7 @@ const Pi = nn({
2258
2266
  x1: null,
2259
2267
  x2: null,
2260
2268
  xChannelSelector: null,
2261
- xHeight: S,
2269
+ xHeight: v,
2262
2270
  y: null,
2263
2271
  y1: null,
2264
2272
  y2: null,
@@ -2963,7 +2971,7 @@ function D(e) {
2963
2971
  function ge(e) {
2964
2972
  return e !== null && (e < 0 || e === 32);
2965
2973
  }
2966
- function K(e) {
2974
+ function G(e) {
2967
2975
  return e === -2 || e === -1 || e === 32;
2968
2976
  }
2969
2977
  function To(e) {
@@ -2995,15 +3003,15 @@ function tn(e) {
2995
3003
  }
2996
3004
  return n.join("") + e.slice(r);
2997
3005
  }
2998
- function X(e, n, t, r) {
3006
+ function Y(e, n, t, r) {
2999
3007
  const s = r ? r - 1 : Number.POSITIVE_INFINITY;
3000
3008
  let l = 0;
3001
3009
  return a;
3002
3010
  function a(c) {
3003
- return K(c) ? (e.enter(t), o(c)) : n(c);
3011
+ return G(c) ? (e.enter(t), o(c)) : n(c);
3004
3012
  }
3005
3013
  function o(c) {
3006
- return K(c) && l++ < s ? (e.consume(c), o) : (e.exit(t), n(c));
3014
+ return G(c) && l++ < s ? (e.consume(c), o) : (e.exit(t), n(c));
3007
3015
  }
3008
3016
  }
3009
3017
  const Io = {
@@ -3022,7 +3030,7 @@ function Lo(e) {
3022
3030
  e.consume(o);
3023
3031
  return;
3024
3032
  }
3025
- return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), X(e, n, "linePrefix");
3033
+ return e.enter("lineEnding"), e.consume(o), e.exit("lineEnding"), Y(e, n, "linePrefix");
3026
3034
  }
3027
3035
  function s(o) {
3028
3036
  return e.enter("paragraph"), l(o);
@@ -3051,91 +3059,91 @@ function Mo(e) {
3051
3059
  const n = this, t = [];
3052
3060
  let r = 0, s, l, a;
3053
3061
  return o;
3054
- function o(v) {
3062
+ function o(S) {
3055
3063
  if (r < t.length) {
3056
- const F = t[r];
3057
- return n.containerState = F[1], e.attempt(
3058
- F[0].continuation,
3064
+ const M = t[r];
3065
+ return n.containerState = M[1], e.attempt(
3066
+ M[0].continuation,
3059
3067
  c,
3060
3068
  u
3061
- )(v);
3069
+ )(S);
3062
3070
  }
3063
- return u(v);
3071
+ return u(S);
3064
3072
  }
3065
- function c(v) {
3073
+ function c(S) {
3066
3074
  if (r++, n.containerState._closeFlow) {
3067
3075
  n.containerState._closeFlow = void 0, s && E();
3068
- const F = n.events.length;
3069
- let M = F, j;
3070
- for (; M--; )
3071
- if (n.events[M][0] === "exit" && n.events[M][1].type === "chunkFlow") {
3072
- j = n.events[M][1].end;
3076
+ const M = n.events.length;
3077
+ let F = M, j;
3078
+ for (; F--; )
3079
+ if (n.events[F][0] === "exit" && n.events[F][1].type === "chunkFlow") {
3080
+ j = n.events[F][1].end;
3073
3081
  break;
3074
3082
  }
3075
3083
  b(r);
3076
- let R = F;
3084
+ let R = M;
3077
3085
  for (; R < n.events.length; )
3078
3086
  n.events[R][1].end = Object.assign({}, j), R++;
3079
3087
  return Ie(
3080
3088
  n.events,
3081
- M + 1,
3089
+ F + 1,
3082
3090
  0,
3083
- n.events.slice(F)
3084
- ), n.events.length = R, u(v);
3091
+ n.events.slice(M)
3092
+ ), n.events.length = R, u(S);
3085
3093
  }
3086
- return o(v);
3094
+ return o(S);
3087
3095
  }
3088
- function u(v) {
3096
+ function u(S) {
3089
3097
  if (r === t.length) {
3090
3098
  if (!s)
3091
- return f(v);
3099
+ return f(S);
3092
3100
  if (s.currentConstruct && s.currentConstruct.concrete)
3093
- return y(v);
3101
+ return y(S);
3094
3102
  n.interrupt = !!(s.currentConstruct && !s._gfmTableDynamicInterruptHack);
3095
3103
  }
3096
3104
  return n.containerState = {}, e.check(
3097
3105
  Er,
3098
3106
  h,
3099
3107
  d
3100
- )(v);
3108
+ )(S);
3101
3109
  }
3102
- function h(v) {
3103
- return s && E(), b(r), f(v);
3110
+ function h(S) {
3111
+ return s && E(), b(r), f(S);
3104
3112
  }
3105
- function d(v) {
3106
- return n.parser.lazy[n.now().line] = r !== t.length, a = n.now().offset, y(v);
3113
+ function d(S) {
3114
+ return n.parser.lazy[n.now().line] = r !== t.length, a = n.now().offset, y(S);
3107
3115
  }
3108
- function f(v) {
3116
+ function f(S) {
3109
3117
  return n.containerState = {}, e.attempt(
3110
3118
  Er,
3111
3119
  p,
3112
3120
  y
3113
- )(v);
3121
+ )(S);
3114
3122
  }
3115
- function p(v) {
3116
- return r++, t.push([n.currentConstruct, n.containerState]), f(v);
3123
+ function p(S) {
3124
+ return r++, t.push([n.currentConstruct, n.containerState]), f(S);
3117
3125
  }
3118
- function y(v) {
3119
- if (v === null) {
3120
- s && E(), b(0), e.consume(v);
3126
+ function y(S) {
3127
+ if (S === null) {
3128
+ s && E(), b(0), e.consume(S);
3121
3129
  return;
3122
3130
  }
3123
3131
  return s = s || n.parser.flow(n.now()), e.enter("chunkFlow", {
3124
3132
  contentType: "flow",
3125
3133
  previous: l,
3126
3134
  _tokenizer: s
3127
- }), k(v);
3135
+ }), k(S);
3128
3136
  }
3129
- function k(v) {
3130
- if (v === null) {
3131
- w(e.exit("chunkFlow"), !0), b(0), e.consume(v);
3137
+ function k(S) {
3138
+ if (S === null) {
3139
+ w(e.exit("chunkFlow"), !0), b(0), e.consume(S);
3132
3140
  return;
3133
3141
  }
3134
- return D(v) ? (e.consume(v), w(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, o) : (e.consume(v), k);
3142
+ return D(S) ? (e.consume(S), w(e.exit("chunkFlow")), r = 0, n.interrupt = void 0, o) : (e.consume(S), k);
3135
3143
  }
3136
- function w(v, F) {
3137
- const M = n.sliceStream(v);
3138
- if (F && M.push(null), v.previous = l, l && (l.next = v), l = v, s.defineSkip(v.start), s.write(M), n.parser.lazy[v.start.line]) {
3144
+ function w(S, M) {
3145
+ const F = n.sliceStream(S);
3146
+ if (M && F.push(null), S.previous = l, l && (l.next = S), l = S, s.defineSkip(S.start), s.write(F), n.parser.lazy[S.start.line]) {
3139
3147
  let j = s.events.length;
3140
3148
  for (; j--; )
3141
3149
  if (
@@ -3165,20 +3173,20 @@ function Mo(e) {
3165
3173
  ), n.events.length = j;
3166
3174
  }
3167
3175
  }
3168
- function b(v) {
3169
- let F = t.length;
3170
- for (; F-- > v; ) {
3171
- const M = t[F];
3172
- n.containerState = M[1], M[0].exit.call(n, e);
3176
+ function b(S) {
3177
+ let M = t.length;
3178
+ for (; M-- > S; ) {
3179
+ const F = t[M];
3180
+ n.containerState = F[1], F[0].exit.call(n, e);
3173
3181
  }
3174
- t.length = v;
3182
+ t.length = S;
3175
3183
  }
3176
3184
  function E() {
3177
3185
  s.write([null]), l = void 0, s = void 0, n.containerState._closeFlow = void 0;
3178
3186
  }
3179
3187
  }
3180
3188
  function Do(e, n, t) {
3181
- return X(
3189
+ return Y(
3182
3190
  e,
3183
3191
  e.attempt(this.parser.constructs.document, n, t),
3184
3192
  "linePrefix",
@@ -3326,7 +3334,7 @@ const Vn = {
3326
3334
  function Vo(e, n, t) {
3327
3335
  return r;
3328
3336
  function r(l) {
3329
- return K(l) ? X(e, s, "linePrefix")(l) : s(l);
3337
+ return G(l) ? Y(e, s, "linePrefix")(l) : s(l);
3330
3338
  }
3331
3339
  function s(l) {
3332
3340
  return l === null || D(l) ? n(l) : t(l);
@@ -3353,14 +3361,14 @@ function Ho(e, n, t) {
3353
3361
  return t(a);
3354
3362
  }
3355
3363
  function l(a) {
3356
- return K(a) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(a), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(a));
3364
+ return G(a) ? (e.enter("blockQuotePrefixWhitespace"), e.consume(a), e.exit("blockQuotePrefixWhitespace"), e.exit("blockQuotePrefix"), n) : (e.exit("blockQuotePrefix"), n(a));
3357
3365
  }
3358
3366
  }
3359
3367
  function qo(e, n, t) {
3360
3368
  const r = this;
3361
3369
  return s;
3362
3370
  function s(a) {
3363
- return K(a) ? X(
3371
+ return G(a) ? Y(
3364
3372
  e,
3365
3373
  l,
3366
3374
  "linePrefix",
@@ -3422,7 +3430,7 @@ const Tr = {
3422
3430
  };
3423
3431
  function Ko(e, n, t) {
3424
3432
  const r = this, s = {
3425
- tokenize: M,
3433
+ tokenize: F,
3426
3434
  partial: !0
3427
3435
  };
3428
3436
  let l = 0, a = 0, o;
@@ -3435,15 +3443,15 @@ function Ko(e, n, t) {
3435
3443
  return l = R && R[1].type === "linePrefix" ? R[2].sliceSerialize(R[1], !0).length : 0, o = j, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), h(j);
3436
3444
  }
3437
3445
  function h(j) {
3438
- return j === o ? (a++, e.consume(j), h) : a < 3 ? t(j) : (e.exit("codeFencedFenceSequence"), K(j) ? X(e, d, "whitespace")(j) : d(j));
3446
+ return j === o ? (a++, e.consume(j), h) : a < 3 ? t(j) : (e.exit("codeFencedFenceSequence"), G(j) ? Y(e, d, "whitespace")(j) : d(j));
3439
3447
  }
3440
3448
  function d(j) {
3441
- return j === null || D(j) ? (e.exit("codeFencedFence"), r.interrupt ? n(j) : e.check(Tr, k, F)(j)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
3449
+ return j === null || D(j) ? (e.exit("codeFencedFence"), r.interrupt ? n(j) : e.check(Tr, k, M)(j)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
3442
3450
  contentType: "string"
3443
3451
  }), f(j));
3444
3452
  }
3445
3453
  function f(j) {
3446
- return j === null || D(j) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(j)) : K(j) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), X(e, p, "whitespace")(j)) : j === 96 && j === o ? t(j) : (e.consume(j), f);
3454
+ return j === null || D(j) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), d(j)) : G(j) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), Y(e, p, "whitespace")(j)) : j === 96 && j === o ? t(j) : (e.consume(j), f);
3447
3455
  }
3448
3456
  function p(j) {
3449
3457
  return j === null || D(j) ? d(j) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
@@ -3454,13 +3462,13 @@ function Ko(e, n, t) {
3454
3462
  return j === null || D(j) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), d(j)) : j === 96 && j === o ? t(j) : (e.consume(j), y);
3455
3463
  }
3456
3464
  function k(j) {
3457
- return e.attempt(s, F, w)(j);
3465
+ return e.attempt(s, M, w)(j);
3458
3466
  }
3459
3467
  function w(j) {
3460
3468
  return e.enter("lineEnding"), e.consume(j), e.exit("lineEnding"), b;
3461
3469
  }
3462
3470
  function b(j) {
3463
- return l > 0 && K(j) ? X(
3471
+ return l > 0 && G(j) ? Y(
3464
3472
  e,
3465
3473
  E,
3466
3474
  "linePrefix",
@@ -3468,36 +3476,36 @@ function Ko(e, n, t) {
3468
3476
  )(j) : E(j);
3469
3477
  }
3470
3478
  function E(j) {
3471
- return j === null || D(j) ? e.check(Tr, k, F)(j) : (e.enter("codeFlowValue"), v(j));
3479
+ return j === null || D(j) ? e.check(Tr, k, M)(j) : (e.enter("codeFlowValue"), S(j));
3472
3480
  }
3473
- function v(j) {
3474
- return j === null || D(j) ? (e.exit("codeFlowValue"), E(j)) : (e.consume(j), v);
3481
+ function S(j) {
3482
+ return j === null || D(j) ? (e.exit("codeFlowValue"), E(j)) : (e.consume(j), S);
3475
3483
  }
3476
- function F(j) {
3484
+ function M(j) {
3477
3485
  return e.exit("codeFenced"), n(j);
3478
3486
  }
3479
- function M(j, R, A) {
3487
+ function F(j, R, A) {
3480
3488
  let I = 0;
3481
3489
  return U;
3482
- function U(q) {
3483
- return j.enter("lineEnding"), j.consume(q), j.exit("lineEnding"), T;
3490
+ function U(_) {
3491
+ return j.enter("lineEnding"), j.consume(_), j.exit("lineEnding"), T;
3484
3492
  }
3485
- function T(q) {
3486
- return j.enter("codeFencedFence"), K(q) ? X(
3493
+ function T(_) {
3494
+ return j.enter("codeFencedFence"), G(_) ? Y(
3487
3495
  j,
3488
3496
  z,
3489
3497
  "linePrefix",
3490
3498
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
3491
- )(q) : z(q);
3499
+ )(_) : z(_);
3492
3500
  }
3493
- function z(q) {
3494
- return q === o ? (j.enter("codeFencedFenceSequence"), W(q)) : A(q);
3501
+ function z(_) {
3502
+ return _ === o ? (j.enter("codeFencedFenceSequence"), W(_)) : A(_);
3495
3503
  }
3496
- function W(q) {
3497
- return q === o ? (I++, j.consume(q), W) : I >= a ? (j.exit("codeFencedFenceSequence"), K(q) ? X(j, Q, "whitespace")(q) : Q(q)) : A(q);
3504
+ function W(_) {
3505
+ return _ === o ? (I++, j.consume(_), W) : I >= a ? (j.exit("codeFencedFenceSequence"), G(_) ? Y(j, K, "whitespace")(_) : K(_)) : A(_);
3498
3506
  }
3499
- function Q(q) {
3500
- return q === null || D(q) ? (j.exit("codeFencedFence"), R(q)) : A(q);
3507
+ function K(_) {
3508
+ return _ === null || D(_) ? (j.exit("codeFencedFence"), R(_)) : A(_);
3501
3509
  }
3502
3510
  }
3503
3511
  }
@@ -3522,7 +3530,7 @@ function Jo(e, n, t) {
3522
3530
  const r = this;
3523
3531
  return s;
3524
3532
  function s(u) {
3525
- return e.enter("codeIndented"), X(e, l, "linePrefix", 5)(u);
3533
+ return e.enter("codeIndented"), Y(e, l, "linePrefix", 5)(u);
3526
3534
  }
3527
3535
  function l(u) {
3528
3536
  const h = r.events[r.events.length - 1];
@@ -3542,7 +3550,7 @@ function Xo(e, n, t) {
3542
3550
  const r = this;
3543
3551
  return s;
3544
3552
  function s(a) {
3545
- return r.parser.lazy[r.now().line] ? t(a) : D(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), s) : X(e, l, "linePrefix", 5)(a);
3553
+ return r.parser.lazy[r.now().line] ? t(a) : D(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), s) : Y(e, l, "linePrefix", 5)(a);
3546
3554
  }
3547
3555
  function l(a) {
3548
3556
  const o = r.events[r.events.length - 1];
@@ -3670,7 +3678,7 @@ function ac(e, n, t) {
3670
3678
  const r = this;
3671
3679
  return s;
3672
3680
  function s(a) {
3673
- return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), X(e, l, "linePrefix");
3681
+ return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), Y(e, l, "linePrefix");
3674
3682
  }
3675
3683
  function l(a) {
3676
3684
  if (a === null || D(a))
@@ -3724,7 +3732,7 @@ function es(e, n, t, r, s, l) {
3724
3732
  }), d(p));
3725
3733
  }
3726
3734
  function d(p) {
3727
- return p === null || p === 91 || p === 93 || D(p) || o++ > 999 ? (e.exit("chunkString"), h(p)) : (e.consume(p), c || (c = !K(p)), p === 92 ? f : d);
3735
+ return p === null || p === 91 || p === 93 || D(p) || o++ > 999 ? (e.exit("chunkString"), h(p)) : (e.consume(p), c || (c = !G(p)), p === 92 ? f : d);
3728
3736
  }
3729
3737
  function f(p) {
3730
3738
  return p === 91 || p === 92 || p === 93 ? (e.consume(p), o++, d) : d(p);
@@ -3740,7 +3748,7 @@ function ns(e, n, t, r, s, l) {
3740
3748
  return f === a ? (e.enter(s), e.consume(f), e.exit(s), e.exit(r), n) : (e.enter(l), u(f));
3741
3749
  }
3742
3750
  function u(f) {
3743
- return f === a ? (e.exit(l), c(a)) : f === null ? t(f) : D(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), X(e, u, "linePrefix")) : (e.enter("chunkString", {
3751
+ return f === a ? (e.exit(l), c(a)) : f === null ? t(f) : D(f) ? (e.enter("lineEnding"), e.consume(f), e.exit("lineEnding"), Y(e, u, "linePrefix")) : (e.enter("chunkString", {
3744
3752
  contentType: "string"
3745
3753
  }), h(f));
3746
3754
  }
@@ -3755,7 +3763,7 @@ function on(e, n) {
3755
3763
  let t;
3756
3764
  return r;
3757
3765
  function r(s) {
3758
- return D(s) ? (e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), t = !0, r) : K(s) ? X(
3766
+ return D(s) ? (e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), t = !0, r) : G(s) ? Y(
3759
3767
  e,
3760
3768
  r,
3761
3769
  t ? "linePrefix" : "lineSuffix"
@@ -3813,7 +3821,7 @@ function uc(e, n, t) {
3813
3821
  return e.attempt(cc, d, d)(p);
3814
3822
  }
3815
3823
  function d(p) {
3816
- return K(p) ? X(e, f, "whitespace")(p) : f(p);
3824
+ return G(p) ? Y(e, f, "whitespace")(p) : f(p);
3817
3825
  }
3818
3826
  function f(p) {
3819
3827
  return p === null || D(p) ? (e.exit("definition"), r.parser.defined.push(s), n(p)) : t(p);
@@ -3835,7 +3843,7 @@ function dc(e, n, t) {
3835
3843
  )(o);
3836
3844
  }
3837
3845
  function l(o) {
3838
- return K(o) ? X(e, a, "whitespace")(o) : a(o);
3846
+ return G(o) ? Y(e, a, "whitespace")(o) : a(o);
3839
3847
  }
3840
3848
  function a(o) {
3841
3849
  return o === null || D(o) ? n(o) : t(o);
@@ -3890,7 +3898,7 @@ function xc(e, n, t) {
3890
3898
  return h === 35 && r++ < 6 ? (e.consume(h), a) : h === null || ge(h) ? (e.exit("atxHeadingSequence"), o(h)) : t(h);
3891
3899
  }
3892
3900
  function o(h) {
3893
- return h === 35 ? (e.enter("atxHeadingSequence"), c(h)) : h === null || D(h) ? (e.exit("atxHeading"), n(h)) : K(h) ? X(e, o, "whitespace")(h) : (e.enter("atxHeadingText"), u(h));
3901
+ return h === 35 ? (e.enter("atxHeadingSequence"), c(h)) : h === null || D(h) ? (e.exit("atxHeading"), n(h)) : G(h) ? Y(e, o, "whitespace")(h) : (e.enter("atxHeadingText"), u(h));
3894
3902
  }
3895
3903
  function c(h) {
3896
3904
  return h === 35 ? (e.consume(h), c) : (e.exit("atxHeadingSequence"), o(h));
@@ -4009,7 +4017,7 @@ function wc(e, n, t) {
4009
4017
  function w(x) {
4010
4018
  if (x === null || x === 47 || x === 62 || ge(x)) {
4011
4019
  const ye = x === 47, Ee = a.toLowerCase();
4012
- return !ye && !l && Ir.includes(Ee) ? (s = 1, r.interrupt ? n(x) : z(x)) : gc.includes(a.toLowerCase()) ? (s = 6, ye ? (e.consume(x), b) : r.interrupt ? n(x) : z(x)) : (s = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(x) : l ? E(x) : v(x));
4020
+ return !ye && !l && Ir.includes(Ee) ? (s = 1, r.interrupt ? n(x) : z(x)) : gc.includes(a.toLowerCase()) ? (s = 6, ye ? (e.consume(x), b) : r.interrupt ? n(x) : z(x)) : (s = 7, r.interrupt && !r.parser.lazy[r.now().line] ? t(x) : l ? E(x) : S(x));
4013
4021
  }
4014
4022
  return x === 45 || je(x) ? (e.consume(x), a += String.fromCharCode(x), w) : t(x);
4015
4023
  }
@@ -4017,37 +4025,37 @@ function wc(e, n, t) {
4017
4025
  return x === 62 ? (e.consume(x), r.interrupt ? n : z) : t(x);
4018
4026
  }
4019
4027
  function E(x) {
4020
- return K(x) ? (e.consume(x), E) : U(x);
4021
- }
4022
- function v(x) {
4023
- return x === 47 ? (e.consume(x), U) : x === 58 || x === 95 || Te(x) ? (e.consume(x), F) : K(x) ? (e.consume(x), v) : U(x);
4028
+ return G(x) ? (e.consume(x), E) : U(x);
4024
4029
  }
4025
- function F(x) {
4026
- return x === 45 || x === 46 || x === 58 || x === 95 || je(x) ? (e.consume(x), F) : M(x);
4030
+ function S(x) {
4031
+ return x === 47 ? (e.consume(x), U) : x === 58 || x === 95 || Te(x) ? (e.consume(x), M) : G(x) ? (e.consume(x), S) : U(x);
4027
4032
  }
4028
4033
  function M(x) {
4029
- return x === 61 ? (e.consume(x), j) : K(x) ? (e.consume(x), M) : v(x);
4034
+ return x === 45 || x === 46 || x === 58 || x === 95 || je(x) ? (e.consume(x), M) : F(x);
4035
+ }
4036
+ function F(x) {
4037
+ return x === 61 ? (e.consume(x), j) : G(x) ? (e.consume(x), F) : S(x);
4030
4038
  }
4031
4039
  function j(x) {
4032
- return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? t(x) : x === 34 || x === 39 ? (e.consume(x), c = x, R) : K(x) ? (e.consume(x), j) : A(x);
4040
+ return x === null || x === 60 || x === 61 || x === 62 || x === 96 ? t(x) : x === 34 || x === 39 ? (e.consume(x), c = x, R) : G(x) ? (e.consume(x), j) : A(x);
4033
4041
  }
4034
4042
  function R(x) {
4035
4043
  return x === c ? (e.consume(x), c = null, I) : x === null || D(x) ? t(x) : (e.consume(x), R);
4036
4044
  }
4037
4045
  function A(x) {
4038
- return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || ge(x) ? M(x) : (e.consume(x), A);
4046
+ return x === null || x === 34 || x === 39 || x === 47 || x === 60 || x === 61 || x === 62 || x === 96 || ge(x) ? F(x) : (e.consume(x), A);
4039
4047
  }
4040
4048
  function I(x) {
4041
- return x === 47 || x === 62 || K(x) ? v(x) : t(x);
4049
+ return x === 47 || x === 62 || G(x) ? S(x) : t(x);
4042
4050
  }
4043
4051
  function U(x) {
4044
4052
  return x === 62 ? (e.consume(x), T) : t(x);
4045
4053
  }
4046
4054
  function T(x) {
4047
- return x === null || D(x) ? z(x) : K(x) ? (e.consume(x), T) : t(x);
4055
+ return x === null || D(x) ? z(x) : G(x) ? (e.consume(x), T) : t(x);
4048
4056
  }
4049
4057
  function z(x) {
4050
- return x === 45 && s === 2 ? (e.consume(x), Y) : x === 60 && s === 1 ? (e.consume(x), Z) : x === 62 && s === 4 ? (e.consume(x), ee) : x === 63 && s === 3 ? (e.consume(x), m) : x === 93 && s === 5 ? (e.consume(x), O) : D(x) && (s === 6 || s === 7) ? (e.exit("htmlFlowData"), e.check(
4058
+ return x === 45 && s === 2 ? (e.consume(x), $) : x === 60 && s === 1 ? (e.consume(x), Z) : x === 62 && s === 4 ? (e.consume(x), ee) : x === 63 && s === 3 ? (e.consume(x), m) : x === 93 && s === 5 ? (e.consume(x), O) : D(x) && (s === 6 || s === 7) ? (e.exit("htmlFlowData"), e.check(
4051
4059
  bc,
4052
4060
  oe,
4053
4061
  W
@@ -4056,17 +4064,17 @@ function wc(e, n, t) {
4056
4064
  function W(x) {
4057
4065
  return e.check(
4058
4066
  kc,
4059
- Q,
4067
+ K,
4060
4068
  oe
4061
4069
  )(x);
4062
4070
  }
4063
- function Q(x) {
4064
- return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), q;
4071
+ function K(x) {
4072
+ return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), _;
4065
4073
  }
4066
- function q(x) {
4074
+ function _(x) {
4067
4075
  return x === null || D(x) ? W(x) : (e.enter("htmlFlowData"), z(x));
4068
4076
  }
4069
- function Y(x) {
4077
+ function $(x) {
4070
4078
  return x === 45 ? (e.consume(x), m) : z(x);
4071
4079
  }
4072
4080
  function Z(x) {
@@ -4120,7 +4128,7 @@ function Nc(e, n, t) {
4120
4128
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m), c;
4121
4129
  }
4122
4130
  function c(m) {
4123
- return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), M) : m === 63 ? (e.consume(m), v) : Te(m) ? (e.consume(m), A) : t(m);
4131
+ return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), F) : m === 63 ? (e.consume(m), S) : Te(m) ? (e.consume(m), A) : t(m);
4124
4132
  }
4125
4133
  function u(m) {
4126
4134
  return m === 45 ? (e.consume(m), h) : m === 91 ? (e.consume(m), l = 0, y) : Te(m) ? (e.consume(m), E) : t(m);
@@ -4135,7 +4143,7 @@ function Nc(e, n, t) {
4135
4143
  return m === 45 ? (e.consume(m), p) : d(m);
4136
4144
  }
4137
4145
  function p(m) {
4138
- return m === 62 ? Y(m) : m === 45 ? f(m) : d(m);
4146
+ return m === 62 ? $(m) : m === 45 ? f(m) : d(m);
4139
4147
  }
4140
4148
  function y(m) {
4141
4149
  const ee = "CDATA[";
@@ -4148,58 +4156,58 @@ function Nc(e, n, t) {
4148
4156
  return m === 93 ? (e.consume(m), b) : k(m);
4149
4157
  }
4150
4158
  function b(m) {
4151
- return m === 62 ? Y(m) : m === 93 ? (e.consume(m), b) : k(m);
4159
+ return m === 62 ? $(m) : m === 93 ? (e.consume(m), b) : k(m);
4152
4160
  }
4153
4161
  function E(m) {
4154
- return m === null || m === 62 ? Y(m) : D(m) ? (a = E, Z(m)) : (e.consume(m), E);
4162
+ return m === null || m === 62 ? $(m) : D(m) ? (a = E, Z(m)) : (e.consume(m), E);
4155
4163
  }
4156
- function v(m) {
4157
- return m === null ? t(m) : m === 63 ? (e.consume(m), F) : D(m) ? (a = v, Z(m)) : (e.consume(m), v);
4158
- }
4159
- function F(m) {
4160
- return m === 62 ? Y(m) : v(m);
4164
+ function S(m) {
4165
+ return m === null ? t(m) : m === 63 ? (e.consume(m), M) : D(m) ? (a = S, Z(m)) : (e.consume(m), S);
4161
4166
  }
4162
4167
  function M(m) {
4168
+ return m === 62 ? $(m) : S(m);
4169
+ }
4170
+ function F(m) {
4163
4171
  return Te(m) ? (e.consume(m), j) : t(m);
4164
4172
  }
4165
4173
  function j(m) {
4166
4174
  return m === 45 || je(m) ? (e.consume(m), j) : R(m);
4167
4175
  }
4168
4176
  function R(m) {
4169
- return D(m) ? (a = R, Z(m)) : K(m) ? (e.consume(m), R) : Y(m);
4177
+ return D(m) ? (a = R, Z(m)) : G(m) ? (e.consume(m), R) : $(m);
4170
4178
  }
4171
4179
  function A(m) {
4172
4180
  return m === 45 || je(m) ? (e.consume(m), A) : m === 47 || m === 62 || ge(m) ? I(m) : t(m);
4173
4181
  }
4174
4182
  function I(m) {
4175
- return m === 47 ? (e.consume(m), Y) : m === 58 || m === 95 || Te(m) ? (e.consume(m), U) : D(m) ? (a = I, Z(m)) : K(m) ? (e.consume(m), I) : Y(m);
4183
+ return m === 47 ? (e.consume(m), $) : m === 58 || m === 95 || Te(m) ? (e.consume(m), U) : D(m) ? (a = I, Z(m)) : G(m) ? (e.consume(m), I) : $(m);
4176
4184
  }
4177
4185
  function U(m) {
4178
4186
  return m === 45 || m === 46 || m === 58 || m === 95 || je(m) ? (e.consume(m), U) : T(m);
4179
4187
  }
4180
4188
  function T(m) {
4181
- return m === 61 ? (e.consume(m), z) : D(m) ? (a = T, Z(m)) : K(m) ? (e.consume(m), T) : I(m);
4189
+ return m === 61 ? (e.consume(m), z) : D(m) ? (a = T, Z(m)) : G(m) ? (e.consume(m), T) : I(m);
4182
4190
  }
4183
4191
  function z(m) {
4184
- return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), s = m, W) : D(m) ? (a = z, Z(m)) : K(m) ? (e.consume(m), z) : (e.consume(m), Q);
4192
+ return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? t(m) : m === 34 || m === 39 ? (e.consume(m), s = m, W) : D(m) ? (a = z, Z(m)) : G(m) ? (e.consume(m), z) : (e.consume(m), K);
4185
4193
  }
4186
4194
  function W(m) {
4187
- return m === s ? (e.consume(m), s = void 0, q) : m === null ? t(m) : D(m) ? (a = W, Z(m)) : (e.consume(m), W);
4195
+ return m === s ? (e.consume(m), s = void 0, _) : m === null ? t(m) : D(m) ? (a = W, Z(m)) : (e.consume(m), W);
4188
4196
  }
4189
- function Q(m) {
4190
- return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? t(m) : m === 47 || m === 62 || ge(m) ? I(m) : (e.consume(m), Q);
4197
+ function K(m) {
4198
+ return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? t(m) : m === 47 || m === 62 || ge(m) ? I(m) : (e.consume(m), K);
4191
4199
  }
4192
- function q(m) {
4200
+ function _(m) {
4193
4201
  return m === 47 || m === 62 || ge(m) ? I(m) : t(m);
4194
4202
  }
4195
- function Y(m) {
4203
+ function $(m) {
4196
4204
  return m === 62 ? (e.consume(m), e.exit("htmlTextData"), e.exit("htmlText"), n) : t(m);
4197
4205
  }
4198
4206
  function Z(m) {
4199
4207
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), ue;
4200
4208
  }
4201
4209
  function ue(m) {
4202
- return K(m) ? X(
4210
+ return G(m) ? Y(
4203
4211
  e,
4204
4212
  O,
4205
4213
  "linePrefix",
@@ -4436,7 +4444,7 @@ const nt = {
4436
4444
  function Bc(e, n) {
4437
4445
  return t;
4438
4446
  function t(r) {
4439
- return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), X(e, n, "linePrefix");
4447
+ return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), Y(e, n, "linePrefix");
4440
4448
  }
4441
4449
  }
4442
4450
  const En = {
@@ -4456,7 +4464,7 @@ function Vc(e, n, t) {
4456
4464
  return u === s ? (e.enter("thematicBreakSequence"), c(u)) : r >= 3 && (u === null || D(u)) ? (e.exit("thematicBreak"), n(u)) : t(u);
4457
4465
  }
4458
4466
  function c(u) {
4459
- return u === s ? (e.consume(u), r++, c) : (e.exit("thematicBreakSequence"), K(u) ? X(e, o, "whitespace")(u) : o(u));
4467
+ return u === s ? (e.consume(u), r++, c) : (e.exit("thematicBreakSequence"), G(u) ? Y(e, o, "whitespace")(u) : o(u));
4460
4468
  }
4461
4469
  }
4462
4470
  const fe = {
@@ -4508,7 +4516,7 @@ function Uc(e, n, t) {
4508
4516
  return r.containerState.initialBlankLine = !0, l++, f(p);
4509
4517
  }
4510
4518
  function d(p) {
4511
- return K(p) ? (e.enter("listItemPrefixWhitespace"), e.consume(p), e.exit("listItemPrefixWhitespace"), f) : t(p);
4519
+ return G(p) ? (e.enter("listItemPrefixWhitespace"), e.consume(p), e.exit("listItemPrefixWhitespace"), f) : t(p);
4512
4520
  }
4513
4521
  function f(p) {
4514
4522
  return r.containerState.size = l + r.sliceSerialize(e.exit("listItemPrefix"), !0).length, n(p);
@@ -4518,7 +4526,7 @@ function $c(e, n, t) {
4518
4526
  const r = this;
4519
4527
  return r.containerState._closeFlow = void 0, e.check(Vn, s, l);
4520
4528
  function s(o) {
4521
- return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, X(
4529
+ return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, Y(
4522
4530
  e,
4523
4531
  n,
4524
4532
  "listItemIndent",
@@ -4526,10 +4534,10 @@ function $c(e, n, t) {
4526
4534
  )(o);
4527
4535
  }
4528
4536
  function l(o) {
4529
- return r.containerState.furtherBlankLines || !K(o) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, a(o)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(qc, n, a)(o));
4537
+ return r.containerState.furtherBlankLines || !G(o) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, a(o)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(qc, n, a)(o));
4530
4538
  }
4531
4539
  function a(o) {
4532
- return r.containerState._closeFlow = !0, r.interrupt = void 0, X(
4540
+ return r.containerState._closeFlow = !0, r.interrupt = void 0, Y(
4533
4541
  e,
4534
4542
  e.attempt(fe, n, t),
4535
4543
  "linePrefix",
@@ -4539,7 +4547,7 @@ function $c(e, n, t) {
4539
4547
  }
4540
4548
  function Wc(e, n, t) {
4541
4549
  const r = this;
4542
- return X(
4550
+ return Y(
4543
4551
  e,
4544
4552
  s,
4545
4553
  "listItemIndent",
@@ -4555,7 +4563,7 @@ function Kc(e) {
4555
4563
  }
4556
4564
  function Qc(e, n, t) {
4557
4565
  const r = this;
4558
- return X(
4566
+ return Y(
4559
4567
  e,
4560
4568
  s,
4561
4569
  "listItemPrefixWhitespace",
@@ -4563,7 +4571,7 @@ function Qc(e, n, t) {
4563
4571
  );
4564
4572
  function s(l) {
4565
4573
  const a = r.events[r.events.length - 1];
4566
- return !K(l) && a && a[1].type === "listItemPrefixWhitespace" ? n(l) : t(l);
4574
+ return !G(l) && a && a[1].type === "listItemPrefixWhitespace" ? n(l) : t(l);
4567
4575
  }
4568
4576
  }
4569
4577
  const Lr = {
@@ -4606,7 +4614,7 @@ function Jc(e, n, t) {
4606
4614
  return e.enter("setextHeadingLineSequence"), o(u);
4607
4615
  }
4608
4616
  function o(u) {
4609
- return u === s ? (e.consume(u), o) : (e.exit("setextHeadingLineSequence"), K(u) ? X(e, c, "lineSuffix")(u) : c(u));
4617
+ return u === s ? (e.consume(u), o) : (e.exit("setextHeadingLineSequence"), G(u) ? Y(e, c, "lineSuffix")(u) : c(u));
4610
4618
  }
4611
4619
  function c(u) {
4612
4620
  return u === null || D(u) ? (e.exit("setextHeadingLine"), n(u)) : t(u);
@@ -4624,7 +4632,7 @@ function Yc(e) {
4624
4632
  e.attempt(
4625
4633
  this.parser.constructs.flowInitial,
4626
4634
  s,
4627
- X(
4635
+ Y(
4628
4636
  e,
4629
4637
  e.attempt(
4630
4638
  this.parser.constructs.flow,
@@ -4761,9 +4769,9 @@ function ru(e, n, t) {
4761
4769
  let a = [], o = [];
4762
4770
  const c = {
4763
4771
  consume: E,
4764
- enter: v,
4765
- exit: F,
4766
- attempt: R(M),
4772
+ enter: S,
4773
+ exit: M,
4774
+ attempt: R(F),
4767
4775
  check: R(j),
4768
4776
  interrupt: R(j, {
4769
4777
  interrupt: !0
@@ -4792,13 +4800,13 @@ function ru(e, n, t) {
4792
4800
  return iu(a, T);
4793
4801
  }
4794
4802
  function y() {
4795
- const { line: T, column: z, offset: W, _index: Q, _bufferIndex: q } = r;
4803
+ const { line: T, column: z, offset: W, _index: K, _bufferIndex: _ } = r;
4796
4804
  return {
4797
4805
  line: T,
4798
4806
  column: z,
4799
4807
  offset: W,
4800
- _index: Q,
4801
- _bufferIndex: q
4808
+ _index: K,
4809
+ _bufferIndex: _
4802
4810
  };
4803
4811
  }
4804
4812
  function k(T) {
@@ -4821,15 +4829,15 @@ function ru(e, n, t) {
4821
4829
  function E(T) {
4822
4830
  D(T) ? (r.line++, r.column = 1, r.offset += T === -3 ? 2 : 1, U()) : T !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === a[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = T;
4823
4831
  }
4824
- function v(T, z) {
4832
+ function S(T, z) {
4825
4833
  const W = z || {};
4826
4834
  return W.type = T, W.start = y(), u.events.push(["enter", W, u]), o.push(W), W;
4827
4835
  }
4828
- function F(T) {
4836
+ function M(T) {
4829
4837
  const z = o.pop();
4830
4838
  return z.end = y(), u.events.push(["exit", z, u]), z;
4831
4839
  }
4832
- function M(T, z) {
4840
+ function F(T, z) {
4833
4841
  A(T, z.from);
4834
4842
  }
4835
4843
  function j(T, z) {
@@ -4837,12 +4845,12 @@ function ru(e, n, t) {
4837
4845
  }
4838
4846
  function R(T, z) {
4839
4847
  return W;
4840
- function W(Q, q, Y) {
4848
+ function W(K, _, $) {
4841
4849
  let Z, ue, O, m;
4842
- return Array.isArray(Q) ? oe(Q) : "tokenize" in Q ? (
4850
+ return Array.isArray(K) ? oe(K) : "tokenize" in K ? (
4843
4851
  // @ts-expect-error Looks like a construct.
4844
- oe([Q])
4845
- ) : ee(Q);
4852
+ oe([K])
4853
+ ) : ee(K);
4846
4854
  function ee(ne) {
4847
4855
  return Le;
4848
4856
  function Le(ce) {
@@ -4856,7 +4864,7 @@ function ru(e, n, t) {
4856
4864
  }
4857
4865
  }
4858
4866
  function oe(ne) {
4859
- return Z = ne, ue = 0, ne.length === 0 ? Y : x(ne[ue]);
4867
+ return Z = ne, ue = 0, ne.length === 0 ? $ : x(ne[ue]);
4860
4868
  }
4861
4869
  function x(ne) {
4862
4870
  return Le;
@@ -4873,10 +4881,10 @@ function ru(e, n, t) {
4873
4881
  }
4874
4882
  }
4875
4883
  function ye(ne) {
4876
- return T(O, m), q;
4884
+ return T(O, m), _;
4877
4885
  }
4878
4886
  function Ee(ne) {
4879
- return m.restore(), ++ue < Z.length ? x(Z[ue]) : Y;
4887
+ return m.restore(), ++ue < Z.length ? x(Z[ue]) : $;
4880
4888
  }
4881
4889
  }
4882
4890
  }
@@ -4889,13 +4897,13 @@ function ru(e, n, t) {
4889
4897
  ), T.resolveTo && (u.events = T.resolveTo(u.events, u));
4890
4898
  }
4891
4899
  function I() {
4892
- const T = y(), z = u.previous, W = u.currentConstruct, Q = u.events.length, q = Array.from(o);
4900
+ const T = y(), z = u.previous, W = u.currentConstruct, K = u.events.length, _ = Array.from(o);
4893
4901
  return {
4894
- restore: Y,
4895
- from: Q
4902
+ restore: $,
4903
+ from: K
4896
4904
  };
4897
- function Y() {
4898
- r = T, u.previous = z, u.currentConstruct = W, u.events.length = Q, o = q, U();
4905
+ function $() {
4906
+ r = T, u.previous = z, u.currentConstruct = W, u.events.length = K, o = _, U();
4899
4907
  }
4900
4908
  }
4901
4909
  function U() {
@@ -5156,7 +5164,7 @@ function Cu(e) {
5156
5164
  },
5157
5165
  exit: {
5158
5166
  atxHeading: c(),
5159
- atxHeadingSequence: M,
5167
+ atxHeadingSequence: F,
5160
5168
  autolink: c(),
5161
5169
  autolinkEmail: ce,
5162
5170
  autolinkProtocol: Le,
@@ -5171,25 +5179,25 @@ function Cu(e) {
5171
5179
  codeFencedFenceMeta: y,
5172
5180
  codeFlowValue: U,
5173
5181
  codeIndented: c(b),
5174
- codeText: c(q),
5182
+ codeText: c(_),
5175
5183
  codeTextData: U,
5176
5184
  data: U,
5177
5185
  definition: c(),
5178
- definitionDestinationString: F,
5186
+ definitionDestinationString: M,
5179
5187
  definitionLabelString: E,
5180
- definitionTitleString: v,
5188
+ definitionTitleString: S,
5181
5189
  emphasis: c(),
5182
5190
  hardBreakEscape: c(z),
5183
5191
  hardBreakTrailing: c(z),
5184
5192
  htmlFlow: c(W),
5185
5193
  htmlFlowData: U,
5186
- htmlText: c(Q),
5194
+ htmlText: c(K),
5187
5195
  htmlTextData: U,
5188
5196
  image: c(Z),
5189
5197
  label: O,
5190
5198
  labelText: ue,
5191
5199
  lineEnding: T,
5192
- link: c(Y),
5200
+ link: c($),
5193
5201
  listItem: c(),
5194
5202
  listOrdered: c(),
5195
5203
  listUnordered: c(),
@@ -5222,26 +5230,26 @@ function Cu(e) {
5222
5230
  buffer: a,
5223
5231
  resume: h,
5224
5232
  data: t
5225
- }, _ = [];
5226
- let V = -1;
5227
- for (; ++V < g.length; )
5228
- if (g[V][1].type === "listOrdered" || g[V][1].type === "listUnordered")
5229
- if (g[V][0] === "enter")
5230
- _.push(V);
5233
+ }, B = [];
5234
+ let H = -1;
5235
+ for (; ++H < g.length; )
5236
+ if (g[H][1].type === "listOrdered" || g[H][1].type === "listUnordered")
5237
+ if (g[H][0] === "enter")
5238
+ B.push(H);
5231
5239
  else {
5232
- const be = _.pop();
5233
- V = s(g, be, V);
5240
+ const be = B.pop();
5241
+ H = s(g, be, H);
5234
5242
  }
5235
- for (V = -1; ++V < g.length; ) {
5236
- const be = n[g[V][0]];
5237
- is.call(be, g[V][1].type) && be[g[V][1].type].call(
5243
+ for (H = -1; ++H < g.length; ) {
5244
+ const be = n[g[H][0]];
5245
+ is.call(be, g[H][1].type) && be[g[H][1].type].call(
5238
5246
  Object.assign(
5239
5247
  {
5240
- sliceSerialize: g[V][2].sliceSerialize
5248
+ sliceSerialize: g[H][2].sliceSerialize
5241
5249
  },
5242
5250
  L
5243
5251
  ),
5244
- g[V][1]
5252
+ g[H][1]
5245
5253
  );
5246
5254
  }
5247
5255
  if (L.tokenStack.length > 0) {
@@ -5263,23 +5271,23 @@ function Cu(e) {
5263
5271
  offset: 0
5264
5272
  }
5265
5273
  )
5266
- }, V = -1; ++V < n.transforms.length; )
5267
- N = n.transforms[V](N) || N;
5274
+ }, H = -1; ++H < n.transforms.length; )
5275
+ N = n.transforms[H](N) || N;
5268
5276
  return N;
5269
5277
  }
5270
5278
  function s(g, N, L) {
5271
- let _ = N - 1, V = -1, be = !1, Fe, Ne, _e, pe;
5272
- for (; ++_ <= L; ) {
5273
- const te = g[_];
5279
+ let B = N - 1, H = -1, be = !1, Fe, Ne, _e, pe;
5280
+ for (; ++B <= L; ) {
5281
+ const te = g[B];
5274
5282
  switch (te[1].type) {
5275
5283
  case "listUnordered":
5276
5284
  case "listOrdered":
5277
5285
  case "blockQuote": {
5278
- te[0] === "enter" ? V++ : V--, pe = void 0;
5286
+ te[0] === "enter" ? H++ : H--, pe = void 0;
5279
5287
  break;
5280
5288
  }
5281
5289
  case "lineEndingBlank": {
5282
- te[0] === "enter" && (Fe && !pe && !V && !_e && (_e = _), pe = void 0);
5290
+ te[0] === "enter" && (Fe && !pe && !H && !_e && (_e = B), pe = void 0);
5283
5291
  break;
5284
5292
  }
5285
5293
  case "linePrefix":
@@ -5291,9 +5299,9 @@ function Cu(e) {
5291
5299
  default:
5292
5300
  pe = void 0;
5293
5301
  }
5294
- if (!V && te[0] === "enter" && te[1].type === "listItemPrefix" || V === -1 && te[0] === "exit" && (te[1].type === "listUnordered" || te[1].type === "listOrdered")) {
5302
+ if (!H && te[0] === "enter" && te[1].type === "listItemPrefix" || H === -1 && te[0] === "exit" && (te[1].type === "listUnordered" || te[1].type === "listOrdered")) {
5295
5303
  if (Fe) {
5296
- let ze = _;
5304
+ let ze = B;
5297
5305
  for (Ne = void 0; ze--; ) {
5298
5306
  const ae = g[ze];
5299
5307
  if (ae[1].type === "lineEnding" || ae[1].type === "lineEndingBlank") {
@@ -5306,7 +5314,7 @@ function Cu(e) {
5306
5314
  _e && (!Ne || _e < Ne) && (Fe._spread = !0), Fe.end = Object.assign(
5307
5315
  {},
5308
5316
  Ne ? g[Ne][1].start : te[1].end
5309
- ), g.splice(Ne || _, 0, ["exit", Fe, te[2]]), _++, L++;
5317
+ ), g.splice(Ne || B, 0, ["exit", Fe, te[2]]), B++, L++;
5310
5318
  }
5311
5319
  if (te[1].type === "listItemPrefix") {
5312
5320
  const ze = {
@@ -5316,7 +5324,7 @@ function Cu(e) {
5316
5324
  // @ts-expect-error: we’ll add `end` in a second.
5317
5325
  end: void 0
5318
5326
  };
5319
- Fe = ze, g.splice(_, 0, ["enter", ze, te[2]]), _++, L++, _e = void 0, pe = !0;
5327
+ Fe = ze, g.splice(B, 0, ["enter", ze, te[2]]), B++, L++, _e = void 0, pe = !0;
5320
5328
  }
5321
5329
  }
5322
5330
  }
@@ -5324,8 +5332,8 @@ function Cu(e) {
5324
5332
  }
5325
5333
  function l(g, N) {
5326
5334
  return L;
5327
- function L(_) {
5328
- o.call(this, g(_), _), N && N.call(this, _);
5335
+ function L(B) {
5336
+ o.call(this, g(B), B), N && N.call(this, B);
5329
5337
  }
5330
5338
  }
5331
5339
  function a() {
@@ -5348,9 +5356,9 @@ function Cu(e) {
5348
5356
  }
5349
5357
  }
5350
5358
  function u(g, N) {
5351
- const L = this.stack.pop(), _ = this.tokenStack.pop();
5352
- if (_)
5353
- _[0].type !== g.type && (N ? N.call(this, g, _[0]) : (_[1] || Mr).call(this, g, _[0]));
5359
+ const L = this.stack.pop(), B = this.tokenStack.pop();
5360
+ if (B)
5361
+ B[0].type !== g.type && (N ? N.call(this, g, B[0]) : (B[1] || Mr).call(this, g, B[0]));
5354
5362
  else
5355
5363
  throw new Error(
5356
5364
  "Cannot close `" + g.type + "` (" + an({
@@ -5397,15 +5405,15 @@ function Cu(e) {
5397
5405
  this.sliceSerialize(g)
5398
5406
  ).toLowerCase();
5399
5407
  }
5400
- function v() {
5408
+ function S() {
5401
5409
  const g = this.resume(), N = this.stack[this.stack.length - 1];
5402
5410
  N.title = g;
5403
5411
  }
5404
- function F() {
5412
+ function M() {
5405
5413
  const g = this.resume(), N = this.stack[this.stack.length - 1];
5406
5414
  N.url = g;
5407
5415
  }
5408
- function M(g) {
5416
+ function F(g) {
5409
5417
  const N = this.stack[this.stack.length - 1];
5410
5418
  if (!N.depth) {
5411
5419
  const L = this.sliceSerialize(g).length;
@@ -5424,12 +5432,12 @@ function Cu(e) {
5424
5432
  }
5425
5433
  function I(g) {
5426
5434
  const L = this.stack[this.stack.length - 1].children;
5427
- let _ = L[L.length - 1];
5428
- (!_ || _.type !== "text") && (_ = Kn(), _.position = {
5435
+ let B = L[L.length - 1];
5436
+ (!B || B.type !== "text") && (B = Kn(), B.position = {
5429
5437
  start: Be(g.start),
5430
5438
  // @ts-expect-error: we’ll add `end` later.
5431
5439
  end: void 0
5432
- }, L.push(_)), this.stack.push(_);
5440
+ }, L.push(B)), this.stack.push(B);
5433
5441
  }
5434
5442
  function U(g) {
5435
5443
  const N = this.stack.pop();
@@ -5451,15 +5459,15 @@ function Cu(e) {
5451
5459
  const g = this.resume(), N = this.stack[this.stack.length - 1];
5452
5460
  N.value = g;
5453
5461
  }
5454
- function Q() {
5462
+ function K() {
5455
5463
  const g = this.resume(), N = this.stack[this.stack.length - 1];
5456
5464
  N.value = g;
5457
5465
  }
5458
- function q() {
5466
+ function _() {
5459
5467
  const g = this.resume(), N = this.stack[this.stack.length - 1];
5460
5468
  N.value = g;
5461
5469
  }
5462
- function Y() {
5470
+ function $() {
5463
5471
  const g = this.stack[this.stack.length - 1];
5464
5472
  if (this.data.inReference) {
5465
5473
  const N = this.data.referenceType || "shortcut";
@@ -5484,8 +5492,8 @@ function Cu(e) {
5484
5492
  function O() {
5485
5493
  const g = this.stack[this.stack.length - 1], N = this.resume(), L = this.stack[this.stack.length - 1];
5486
5494
  if (this.data.inReference = !0, L.type === "link") {
5487
- const _ = g.children;
5488
- L.children = _;
5495
+ const B = g.children;
5496
+ L.children = B;
5489
5497
  } else
5490
5498
  L.alt = N;
5491
5499
  }
@@ -5514,13 +5522,13 @@ function Cu(e) {
5514
5522
  }
5515
5523
  function ne(g) {
5516
5524
  const N = this.sliceSerialize(g), L = this.data.characterReferenceType;
5517
- let _;
5518
- L ? (_ = Ki(
5525
+ let B;
5526
+ L ? (B = Ki(
5519
5527
  N,
5520
5528
  L === "characterReferenceMarkerNumeric" ? 10 : 16
5521
- ), this.data.characterReferenceType = void 0) : _ = Wt(N);
5522
- const V = this.stack.pop();
5523
- V.value += _, V.position.end = Be(g.end);
5529
+ ), this.data.characterReferenceType = void 0) : B = Wt(N);
5530
+ const H = this.stack.pop();
5531
+ H.value += B, H.position.end = Be(g.end);
5524
5532
  }
5525
5533
  function Le(g) {
5526
5534
  U.call(this, g);
@@ -7811,21 +7819,21 @@ function Ud(e) {
7811
7819
  passKeys: !0,
7812
7820
  passNode: !0
7813
7821
  });
7814
- function b(E, v, F) {
7815
- if (E.type === "raw" && F && typeof v == "number")
7816
- return h ? F.children.splice(v, 1) : F.children[v] = { type: "text", value: E.value }, v;
7822
+ function b(E, S, M) {
7823
+ if (E.type === "raw" && M && typeof S == "number")
7824
+ return h ? M.children.splice(S, 1) : M.children[S] = { type: "text", value: E.value }, S;
7817
7825
  if (E.type === "element") {
7818
- let M;
7819
- for (M in Zn)
7820
- if (Object.hasOwn(Zn, M) && Object.hasOwn(E.properties, M)) {
7821
- const j = E.properties[M], R = Zn[M];
7822
- (R === null || R.includes(E.tagName)) && (E.properties[M] = f(String(j || ""), M, E));
7826
+ let F;
7827
+ for (F in Zn)
7828
+ if (Object.hasOwn(Zn, F) && Object.hasOwn(E.properties, F)) {
7829
+ const j = E.properties[F], R = Zn[F];
7830
+ (R === null || R.includes(E.tagName)) && (E.properties[F] = f(String(j || ""), F, E));
7823
7831
  }
7824
7832
  }
7825
7833
  if (E.type === "element") {
7826
- let M = n ? !n.includes(E.tagName) : a ? a.includes(E.tagName) : !1;
7827
- if (!M && t && typeof v == "number" && (M = !t(E, v, F)), M && F && typeof v == "number")
7828
- return d && E.children ? F.children.splice(v, 1, ...E.children) : F.children.splice(v, 1), v;
7834
+ let F = n ? !n.includes(E.tagName) : a ? a.includes(E.tagName) : !1;
7835
+ if (!F && t && typeof S == "number" && (F = !t(E, S, M)), F && M && typeof S == "number")
7836
+ return d && E.children ? M.children.splice(S, 1, ...E.children) : M.children.splice(S, 1), S;
7829
7837
  }
7830
7838
  }
7831
7839
  }
@@ -7893,21 +7901,21 @@ function Kd({
7893
7901
  triggerAIRun: s,
7894
7902
  setTriggerAIRun: l
7895
7903
  }) {
7896
- const a = un(null), o = un(null), { authToken: c } = Mt(), [u, h] = G(!1), d = C((O) => O.actions.setCardSql), f = P((O) => O.dashboard.baseQueries), p = C((O) => O.actions.setRunSql), y = C((O) => O.actions.setCardType), [k, w] = G([]), b = C((O) => O.currentColumns), E = C((O) => O.card.sql), v = C((O) => O.selectedTableName), F = `
7904
+ const a = un(null), o = un(null), { authToken: c } = Mt(), [u, h] = J(!1), d = C((O) => O.actions.setCardSql), f = P((O) => O.dashboard.baseQueries), p = C((O) => O.actions.setRunSql), y = C((O) => O.actions.setCardType), [k, w] = J([]), b = C((O) => O.currentColumns), E = C((O) => O.card.sql), S = C((O) => O.selectedTableName), M = `
7897
7905
  ${t}
7898
7906
 
7899
- Database Query Dialect: ${v === "api" || v === "s3" ? "DuckDb" : ""}
7900
- Table Name: ${v}
7907
+ Database Query Dialect: ${S === "api" || S === "s3" ? "DuckDb" : ""}
7908
+ Table Name: ${S}
7901
7909
  Table Columns: ${b == null ? void 0 : b.map((O) => `${O.column_name} | ${O.data_type}`).join(", ")}
7902
7910
  User SQL: ${E}
7903
- ${f && `Base Queries: ${JSON.stringify(f)} `}`, M = ` When the user asks for a specific chart please use the following query structure to generate the chart query. Do not make up the column names. Use only the table columns provided above for the query. Replace x-axis, y-axis, and lables with the appropriate column names.
7911
+ ${f && `Base Queries: ${JSON.stringify(f)} `}`, F = ` When the user asks for a specific chart please use the following query structure to generate the chart query. Do not make up the column names. Use only the table columns provided above for the query. Replace x-axis, y-axis, and lables with the appropriate column names.
7904
7912
  Visual Query Syntax: ${Wd}`, { data: j, isLoading: R, isFetching: A, isError: I, refetch: U } = bi({
7905
7913
  queryKey: ["ai-query"],
7906
7914
  queryFn: () => Qs(
7907
7915
  "https://semaphor.cloud/api/v1/ai",
7908
7916
  (c == null ? void 0 : c.accessToken) || "",
7909
7917
  {
7910
- user_content: `userContent: ${F} ${u ? M : ""}`
7918
+ user_content: `userContent: ${M} ${u ? F : ""}`
7911
7919
  }
7912
7920
  ),
7913
7921
  enabled: !1
@@ -7960,14 +7968,14 @@ function Kd({
7960
7968
  fontSize: 15,
7961
7969
  // padding: '5px',
7962
7970
  width: "100%"
7963
- }, Q = {
7971
+ }, K = {
7964
7972
  // background: '#f6f8fa',
7965
7973
  // color: '#000',
7966
7974
  fontFamily: "monospace",
7967
7975
  fontSize: 14,
7968
7976
  lineHeight: 1.6
7969
7977
  // padding: 20,
7970
- }, q = {
7978
+ }, _ = {
7971
7979
  // color: '#000',
7972
7980
  fontFamily: "Arial, sans-serif",
7973
7981
  lineHeight: 1.6,
@@ -7977,16 +7985,16 @@ function Kd({
7977
7985
  marginLeft: 20,
7978
7986
  // add bullet points for unordered lists
7979
7987
  listStyleType: "disc"
7980
- }, Y = {
7988
+ }, $ = {
7981
7989
  // Override how paragraphs are rendered
7982
7990
  p: ({ node: O, ...m }) => /* @__PURE__ */ i.jsx("p", { style: W, ...m }),
7983
7991
  code: ({ node: O, ...m }) => /* @__PURE__ */ i.jsx("code", { className: "rounded-sm bg-muted px-2 py-1 text-sm", ...m }),
7984
- pre: ({ node: O, ...m }) => /* @__PURE__ */ i.jsxs("pre", { className: "space-y-2 rounded-sm bg-muted/50 p-3", style: Q, children: [
7992
+ pre: ({ node: O, ...m }) => /* @__PURE__ */ i.jsxs("pre", { className: "space-y-2 rounded-sm bg-muted/50 p-3", style: K, children: [
7985
7993
  /* @__PURE__ */ i.jsx("code", { className: "whitespace-normal text-sm", children: m.children }),
7986
7994
  /* @__PURE__ */ i.jsxs("div", { className: "flex justify-start gap-2", children: [
7987
- /* @__PURE__ */ i.jsx(B, { onClick: Z, size: "sm", variant: "outline", children: /* @__PURE__ */ i.jsx(gi, {}) }),
7995
+ /* @__PURE__ */ i.jsx(V, { onClick: Z, size: "sm", variant: "outline", children: /* @__PURE__ */ i.jsx(gi, {}) }),
7988
7996
  /* @__PURE__ */ i.jsx(
7989
- B,
7997
+ V,
7990
7998
  {
7991
7999
  onClick: (ee) => {
7992
8000
  const oe = Z(ee);
@@ -7999,7 +8007,7 @@ function Kd({
7999
8007
  )
8000
8008
  ] })
8001
8009
  ] }),
8002
- li: ({ node: O, ...m }) => /* @__PURE__ */ i.jsx("li", { style: q, ...m })
8010
+ li: ({ node: O, ...m }) => /* @__PURE__ */ i.jsx("li", { style: _, ...m })
8003
8011
  // You can add more overrides for other elements like h1, h2, etc.
8004
8012
  };
8005
8013
  function Z(O) {
@@ -8024,7 +8032,7 @@ function Kd({
8024
8032
  Ud,
8025
8033
  {
8026
8034
  className: "w-full overflow-auto py-1",
8027
- components: Y,
8035
+ components: $,
8028
8036
  children: j == null ? void 0 : j.response
8029
8037
  },
8030
8038
  m
@@ -8032,7 +8040,7 @@ function Kd({
8032
8040
  }
8033
8041
  return /* @__PURE__ */ i.jsxs(wt, { open: e, onOpenChange: n, children: [
8034
8042
  /* @__PURE__ */ i.jsx(Ct, { asChild: !0, children: /* @__PURE__ */ i.jsx(
8035
- B,
8043
+ V,
8036
8044
  {
8037
8045
  size: "sm",
8038
8046
  className: "w-full justify-start border font-normal text-muted-foreground focus-visible:ring-0 focus-visible:ring-offset-0",
@@ -8084,7 +8092,7 @@ function Kd({
8084
8092
  ),
8085
8093
  " ",
8086
8094
  /* @__PURE__ */ i.jsx(
8087
- B,
8095
+ V,
8088
8096
  {
8089
8097
  className: "h-8",
8090
8098
  size: "sm",
@@ -8214,23 +8222,23 @@ function nh(e) {
8214
8222
  return Ke({ tag: "svg", attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M439.8 200.5c-7.7-30.9-22.3-54.2-53.4-54.2h-40.1v47.4c0 36.8-31.2 67.8-66.8 67.8H172.7c-29.2 0-53.4 25-53.4 54.3v101.8c0 29 25.2 46 53.4 54.3 33.8 9.9 66.3 11.7 106.8 0 26.9-7.8 53.4-23.5 53.4-54.3v-40.7H226.2v-13.6h160.2c31.1 0 42.6-21.7 53.4-54.2 11.2-33.5 10.7-65.7 0-108.6zM286.2 404c11.1 0 20.1 9.1 20.1 20.3 0 11.3-9 20.4-20.1 20.4-11 0-20.1-9.2-20.1-20.4.1-11.3 9.1-20.3 20.1-20.3zM167.8 248.1h106.8c29.7 0 53.4-24.5 53.4-54.3V91.9c0-29-24.4-50.7-53.4-55.6-35.8-5.9-74.7-5.6-106.8.1-45.2 8-53.4 24.7-53.4 55.6v40.7h106.9v13.6h-147c-31.1 0-58.3 18.7-66.8 54.2-9.8 40.7-10.2 66.1 0 108.6 7.6 31.6 25.7 54.2 56.8 54.2H101v-48.8c0-35.3 30.5-66.4 66.8-66.4zm-6.7-142.6c-11.1 0-20.1-9.1-20.1-20.3.1-11.3 9-20.4 20.1-20.4 11 0 20.1 9.2 20.1 20.4s-9 20.3-20.1 20.3z" }, child: [] }] })(e);
8215
8223
  }
8216
8224
  function th() {
8217
- const { theme: e } = Js(), n = un(), t = un(), [r, s] = G(!1), [l, a] = G(!1), [o, c] = G(!1), [u, h] = G(""), [d, f] = G(!1), { authToken: p } = Mt();
8225
+ const { theme: e } = Js(), n = un(), t = un(), [r, s] = J(!1), [l, a] = J(!1), [o, c] = J(!1), [u, h] = J(""), [d, f] = J(!1), { authToken: p } = Mt();
8218
8226
  P((g) => g.selectedSheetId);
8219
8227
  const y = P((g) => g.dashboard.baseQueries), k = C((g) => g.card), w = P((g) => g.theme), b = C((g) => g.isShowingVisual), E = C(
8220
8228
  (g) => g.selectedConnectionId
8221
- ), v = C(
8229
+ ), S = C(
8222
8230
  (g) => g.selectedDatabaseName
8223
- ), F = C(
8231
+ ), M = C(
8224
8232
  (g) => g.selectedSchemaName
8225
8233
  );
8226
8234
  P(
8227
8235
  (g) => g.actions.updateFrameCard
8228
8236
  );
8229
- const M = C((g) => g.selectedTableName), j = C((g) => g.card.sql), R = C((g) => g.card.python), A = Xs(j, y), I = C((g) => g.selectedConnectionId), U = C((g) => g.frame), T = C((g) => g.filterValues), z = C((g) => g.applyFilters), {
8237
+ const F = C((g) => g.selectedTableName), j = C((g) => g.card.sql), R = C((g) => g.card.python), A = Xs(j, y), I = C((g) => g.selectedConnectionId), U = C((g) => g.frame), T = C((g) => g.filterValues), z = C((g) => g.applyFilters), {
8230
8238
  setCardCustomCfg: W,
8231
- setQueryResultColumns: Q,
8232
- setFilterValues: q,
8233
- setCardSql: Y,
8239
+ setQueryResultColumns: K,
8240
+ setFilterValues: _,
8241
+ setCardSql: $,
8234
8242
  setCardPython: Z,
8235
8243
  setQueryError: ue,
8236
8244
  setPythonStdOut: O
@@ -8265,12 +8273,12 @@ function th() {
8265
8273
  me(() => {
8266
8274
  if (ce && (x(ce.records), O((ce == null ? void 0 : ce.output) || ""), ce.records.length > 0)) {
8267
8275
  const { dimensionKeys: g } = ut(ce.records);
8268
- Q(g);
8276
+ K(g);
8269
8277
  }
8270
- }, [ce, x, Q, O]), me(() => {
8278
+ }, [ce, x, K, O]), me(() => {
8271
8279
  Ee && (qe(), ne(!1));
8272
8280
  }, [Ee, qe, ne]), me(() => {
8273
- (ve || we) && Le(!0), (Ge || Qe) && Le(!1), Ge ? (ue(sn.message), x([]), Q([]), O("")) : ue("");
8281
+ (ve || we) && Le(!0), (Ge || Qe) && Le(!1), Ge ? (ue(sn.message), x([]), K([]), O("")) : ue("");
8274
8282
  }, [
8275
8283
  ve,
8276
8284
  we,
@@ -8280,30 +8288,30 @@ function th() {
8280
8288
  Qe,
8281
8289
  Le,
8282
8290
  x,
8283
- Q,
8291
+ K,
8284
8292
  ue,
8285
8293
  sn
8286
8294
  ]);
8287
8295
  function gn() {
8288
- Y(""), x([]), ye({}), W("");
8296
+ $(""), x([]), ye({}), W("");
8289
8297
  }
8290
8298
  const yn = (g) => {
8291
8299
  t.current = g;
8292
8300
  };
8293
8301
  function bn() {
8294
8302
  let g = j;
8295
- j && !j.includes("{{") && (g = fa(j), Y(g));
8303
+ j && !j.includes("{{") && (g = fa(j), $(g));
8296
8304
  const N = {
8297
8305
  ...k,
8298
- lastSelectedSchema: F,
8299
- lastSelectedDatabase: v,
8300
- lastSelectedTable: M,
8306
+ lastSelectedSchema: M,
8307
+ lastSelectedDatabase: S,
8308
+ lastSelectedTable: F,
8301
8309
  connectionId: E,
8302
8310
  type: b ? k.type : "table",
8303
8311
  sql: g,
8304
8312
  customCfg: b ? k.customCfg : null
8305
8313
  }, L = U.cards.map(
8306
- (_) => _.id === k.id ? N : _
8314
+ (B) => B.id === k.id ? N : B
8307
8315
  );
8308
8316
  m == null || m({
8309
8317
  ...U,
@@ -8320,9 +8328,9 @@ function th() {
8320
8328
  return Wn(N);
8321
8329
  }
8322
8330
  function Wn(g) {
8323
- const [N, L, _] = g.split(" "), V = parseFloat(N), be = parseFloat(L), Fe = parseFloat(_), Ne = be / 100, _e = Fe / 100, pe = (1 - Math.abs(2 * _e - 1)) * Ne, te = pe * (1 - Math.abs(V / 60 % 2 - 1)), ze = _e - pe / 2;
8331
+ const [N, L, B] = g.split(" "), H = parseFloat(N), be = parseFloat(L), Fe = parseFloat(B), Ne = be / 100, _e = Fe / 100, pe = (1 - Math.abs(2 * _e - 1)) * Ne, te = pe * (1 - Math.abs(H / 60 % 2 - 1)), ze = _e - pe / 2;
8324
8332
  let ae = 0, Me = 0, De = 0;
8325
- 0 <= V && V < 60 ? (ae = pe, Me = te, De = 0) : 60 <= V && V < 120 ? (ae = te, Me = pe, De = 0) : 120 <= V && V < 180 ? (ae = 0, Me = pe, De = te) : 180 <= V && V < 240 ? (ae = 0, Me = te, De = pe) : 240 <= V && V < 300 ? (ae = te, Me = 0, De = pe) : 300 <= V && V < 360 && (ae = pe, Me = 0, De = te), ae = Math.round((ae + ze) * 255), Me = Math.round((Me + ze) * 255), De = Math.round((De + ze) * 255);
8333
+ 0 <= H && H < 60 ? (ae = pe, Me = te, De = 0) : 60 <= H && H < 120 ? (ae = te, Me = pe, De = 0) : 120 <= H && H < 180 ? (ae = 0, Me = pe, De = te) : 180 <= H && H < 240 ? (ae = 0, Me = te, De = pe) : 240 <= H && H < 300 ? (ae = te, Me = 0, De = pe) : 300 <= H && H < 360 && (ae = pe, Me = 0, De = te), ae = Math.round((ae + ze) * 255), Me = Math.round((Me + ze) * 255), De = Math.round((De + ze) * 255);
8326
8334
  const Gn = (Es) => {
8327
8335
  const Jn = Es.toString(16);
8328
8336
  return Jn.length == 1 ? "0" + Jn : Jn;
@@ -8332,15 +8340,15 @@ function th() {
8332
8340
  me(() => {
8333
8341
  const g = n.current, N = t.current;
8334
8342
  if (g) {
8335
- const L = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", _ = w === "system" ? L : w;
8343
+ const L = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", B = w === "system" ? L : w;
8336
8344
  g.editor.defineTheme("default", {
8337
8345
  // base: theme === 'light' ? 'hc-light' : 'vs-dark',
8338
- base: _ === "light" ? "vs" : "vs-dark",
8346
+ base: B === "light" ? "vs" : "vs-dark",
8339
8347
  inherit: !0,
8340
8348
  rules: [],
8341
8349
  colors: {
8342
8350
  // 'editor.background': activeTheme === 'light' ? '#ffffff' : '#020817',
8343
- "editor.background": _ === "light" ? "#ffffff" : $n("--background")
8351
+ "editor.background": B === "light" ? "#ffffff" : $n("--background")
8344
8352
  }
8345
8353
  }), g.editor.setTheme("default");
8346
8354
  }
@@ -8388,7 +8396,7 @@ function th() {
8388
8396
  onChange: (g) => {
8389
8397
  if (g)
8390
8398
  try {
8391
- JSON.parse(g), q(JSON.parse(g));
8399
+ JSON.parse(g), _(JSON.parse(g));
8392
8400
  } catch {
8393
8401
  }
8394
8402
  },
@@ -8456,7 +8464,7 @@ function th() {
8456
8464
  theme: "default",
8457
8465
  className: "pt-3",
8458
8466
  onChange: (g) => {
8459
- Y(g);
8467
+ $(g);
8460
8468
  },
8461
8469
  value: j,
8462
8470
  options: {
@@ -8562,7 +8570,7 @@ function th() {
8562
8570
  children: [
8563
8571
  /* @__PURE__ */ i.jsxs("div", { className: "flex grow items-center gap-2", children: [
8564
8572
  /* @__PURE__ */ i.jsxs(
8565
- B,
8573
+ V,
8566
8574
  {
8567
8575
  disabled: ve || we,
8568
8576
  onClick: () => {
@@ -8587,7 +8595,7 @@ function th() {
8587
8595
  }
8588
8596
  ),
8589
8597
  /* @__PURE__ */ i.jsxs(
8590
- B,
8598
+ V,
8591
8599
  {
8592
8600
  onClick: gn,
8593
8601
  className: "",
@@ -8624,7 +8632,7 @@ function th() {
8624
8632
  ] }),
8625
8633
  /* @__PURE__ */ i.jsxs("div", { className: "flex items-end gap-2", children: [
8626
8634
  /* @__PURE__ */ i.jsxs(
8627
- B,
8635
+ V,
8628
8636
  {
8629
8637
  onClick: bn,
8630
8638
  size: "sm",
@@ -8636,7 +8644,7 @@ function th() {
8636
8644
  }
8637
8645
  ),
8638
8646
  /* @__PURE__ */ i.jsxs(
8639
- B,
8647
+ V,
8640
8648
  {
8641
8649
  onClick: kn,
8642
8650
  className: "w-full",
@@ -8769,19 +8777,19 @@ function ys({
8769
8777
  );
8770
8778
  }
8771
8779
  function ih() {
8772
- const [e, n] = G(!1), [t, r] = G(""), [s, l] = G(""), [a, o] = G(""), c = C((w) => w.card), u = C(
8780
+ const [e, n] = J(!1), [t, r] = J(""), [s, l] = J(""), [a, o] = J(""), c = C((w) => w.card), u = C(
8773
8781
  (w) => w.card.customCfg
8774
8782
  ), h = C(
8775
8783
  (w) => w.actions.setCardCustomCfg
8776
8784
  );
8777
8785
  function d(w) {
8778
- var v, F;
8786
+ var S, M;
8779
8787
  const b = {
8780
8788
  ...w,
8781
8789
  data: {
8782
8790
  ...w == null ? void 0 : w.data,
8783
- datasets: (F = (v = w == null ? void 0 : w.data) == null ? void 0 : v.datasets) == null ? void 0 : F.map((M) => ({
8784
- ...M,
8791
+ datasets: (M = (S = w == null ? void 0 : w.data) == null ? void 0 : S.datasets) == null ? void 0 : M.map((F) => ({
8792
+ ...F,
8785
8793
  data: []
8786
8794
  }))
8787
8795
  }
@@ -8821,7 +8829,7 @@ function ih() {
8821
8829
  }
8822
8830
  return /* @__PURE__ */ i.jsxs(wt, { open: e, onOpenChange: n, children: [
8823
8831
  /* @__PURE__ */ i.jsx(Ct, { asChild: !0, children: /* @__PURE__ */ i.jsx(
8824
- B,
8832
+ V,
8825
8833
  {
8826
8834
  onClick: f,
8827
8835
  className: ` ${u && "border-foreground/50 dark:border-foreground/70"}`,
@@ -8923,7 +8931,7 @@ function ih() {
8923
8931
  /* @__PURE__ */ i.jsxs(ai, { className: "flex items-center", children: [
8924
8932
  /* @__PURE__ */ i.jsx(de, { className: "mr-2 text-red-500", children: a }),
8925
8933
  /* @__PURE__ */ i.jsx(
8926
- B,
8934
+ V,
8927
8935
  {
8928
8936
  disabled: !u,
8929
8937
  onClick: y,
@@ -8931,8 +8939,8 @@ function ih() {
8931
8939
  children: "Reset"
8932
8940
  }
8933
8941
  ),
8934
- /* @__PURE__ */ i.jsx(B, { onClick: p, variant: "outline", children: "Apply" }),
8935
- /* @__PURE__ */ i.jsx(B, { onClick: () => n(!1), variant: "outline", children: "Close" })
8942
+ /* @__PURE__ */ i.jsx(V, { onClick: p, variant: "outline", children: "Apply" }),
8943
+ /* @__PURE__ */ i.jsx(V, { onClick: () => n(!1), variant: "outline", children: "Close" })
8936
8944
  ] })
8937
8945
  ]
8938
8946
  }
@@ -8958,17 +8966,17 @@ function Ss(e) {
8958
8966
  return Ke({ tag: "svg", attr: { version: "1.2", baseProfile: "tiny", viewBox: "0 0 24 24" }, child: [{ tag: "path", attr: { d: "M4 18c-.552 0-1-.448-1-1v-6.382l-.553.276c-.495.248-1.095.046-1.342-.447-.247-.494-.046-1.094.448-1.342l2-1c.31-.155.678-.139.973.044.294.183.474.504.474.851v8c0 .552-.448 1-1 1zM13 18h-5c-.404 0-.769-.244-.924-.617-.155-.374-.069-.804.217-1.09l4-4c.254-.254.394-.591.394-.95 0-.358-.14-.695-.394-.949-.508-.508-1.39-.508-1.9.001-.253.252-.393.589-.393.948 0 .552-.448 1-1 1s-1-.448-1-1c0-.894.348-1.733.98-2.364 1.265-1.263 3.464-1.263 4.727.001.632.631.979 1.471.979 2.363 0 .893-.348 1.733-.979 2.364l-2.293 2.293h2.586c.552 0 1 .448 1 1s-.448 1-1 1zM20.955 12.377c.338-.457.545-1.016.545-1.627 0-1.517-1.234-2.75-2.75-2.75-1.031 0-1.966.569-2.44 1.484-.254.49-.063 1.094.428 1.348.49.254 1.094.062 1.348-.428.128-.249.383-.404.664-.404.414 0 .75.336.75.75s-.336.75-.75.75c-.552 0-1 .448-1 1s.448 1 1 1c.689 0 1.25.561 1.25 1.25s-.561 1.25-1.25 1.25-1.25-.561-1.25-1.25c0-.552-.448-1-1-1s-1 .448-1 1c0 1.792 1.458 3.25 3.25 3.25s3.25-1.458 3.25-3.25c0-.939-.406-1.779-1.045-2.373z" }, child: [] }] })(e);
8959
8967
  }
8960
8968
  function sh() {
8961
- const [e, n] = G(!1), t = C((a) => a.card.type), r = C((a) => a.actions.setCardType), s = C(
8969
+ const [e, n] = J(!1), t = C((a) => a.card.type), r = C((a) => a.actions.setCardType), s = C(
8962
8970
  (a) => a.actions.setCardCustomCfg
8963
8971
  );
8964
8972
  function l(a) {
8965
8973
  r(a), s(null), n(!1);
8966
8974
  }
8967
8975
  return /* @__PURE__ */ i.jsxs(hn, { open: e, onOpenChange: n, children: [
8968
- /* @__PURE__ */ i.jsx(pn, { asChild: !0, children: /* @__PURE__ */ i.jsx(B, { size: "sm", variant: "outline", children: /* @__PURE__ */ i.jsx(lh, { className: "h-4 w-4", chartType: t }) }) }),
8976
+ /* @__PURE__ */ i.jsx(pn, { asChild: !0, children: /* @__PURE__ */ i.jsx(V, { size: "sm", variant: "outline", children: /* @__PURE__ */ i.jsx(lh, { className: "h-4 w-4", chartType: t }) }) }),
8969
8977
  /* @__PURE__ */ i.jsx(fn, { className: "w-50", children: /* @__PURE__ */ i.jsxs("div", { className: "grid grid-cols-3 place-items-center ", children: [
8970
8978
  /* @__PURE__ */ i.jsx(
8971
- B,
8979
+ V,
8972
8980
  {
8973
8981
  onClick: () => l("bar"),
8974
8982
  className: "font-normal",
@@ -8977,7 +8985,7 @@ function sh() {
8977
8985
  }
8978
8986
  ),
8979
8987
  /* @__PURE__ */ i.jsx(
8980
- B,
8988
+ V,
8981
8989
  {
8982
8990
  onClick: () => l("line"),
8983
8991
  variant: "ghost",
@@ -8985,7 +8993,7 @@ function sh() {
8985
8993
  }
8986
8994
  ),
8987
8995
  /* @__PURE__ */ i.jsx(
8988
- B,
8996
+ V,
8989
8997
  {
8990
8998
  onClick: () => l("stackedBar"),
8991
8999
  variant: "ghost",
@@ -8993,7 +9001,7 @@ function sh() {
8993
9001
  }
8994
9002
  ),
8995
9003
  /* @__PURE__ */ i.jsx(
8996
- B,
9004
+ V,
8997
9005
  {
8998
9006
  onClick: () => l("scatter"),
8999
9007
  variant: "ghost",
@@ -9001,7 +9009,7 @@ function sh() {
9001
9009
  }
9002
9010
  ),
9003
9011
  /* @__PURE__ */ i.jsx(
9004
- B,
9012
+ V,
9005
9013
  {
9006
9014
  onClick: () => l("bubble"),
9007
9015
  variant: "ghost",
@@ -9009,7 +9017,7 @@ function sh() {
9009
9017
  }
9010
9018
  ),
9011
9019
  /* @__PURE__ */ i.jsx(
9012
- B,
9020
+ V,
9013
9021
  {
9014
9022
  onClick: () => l("pie"),
9015
9023
  variant: "ghost",
@@ -9017,7 +9025,7 @@ function sh() {
9017
9025
  }
9018
9026
  ),
9019
9027
  /* @__PURE__ */ i.jsx(
9020
- B,
9028
+ V,
9021
9029
  {
9022
9030
  onClick: () => l("doughnut"),
9023
9031
  variant: "ghost",
@@ -9025,7 +9033,7 @@ function sh() {
9025
9033
  }
9026
9034
  ),
9027
9035
  /* @__PURE__ */ i.jsx(
9028
- B,
9036
+ V,
9029
9037
  {
9030
9038
  onClick: () => l("radar"),
9031
9039
  variant: "ghost",
@@ -9039,7 +9047,7 @@ function sh() {
9039
9047
  }
9040
9048
  ),
9041
9049
  /* @__PURE__ */ i.jsx(
9042
- B,
9050
+ V,
9043
9051
  {
9044
9052
  onClick: () => l("polarArea"),
9045
9053
  variant: "ghost",
@@ -9047,7 +9055,7 @@ function sh() {
9047
9055
  }
9048
9056
  ),
9049
9057
  /* @__PURE__ */ i.jsx(
9050
- B,
9058
+ V,
9051
9059
  {
9052
9060
  onClick: () => l("table"),
9053
9061
  variant: "ghost",
@@ -9055,7 +9063,7 @@ function sh() {
9055
9063
  }
9056
9064
  ),
9057
9065
  /* @__PURE__ */ i.jsx(
9058
- B,
9066
+ V,
9059
9067
  {
9060
9068
  onClick: () => l("kpi"),
9061
9069
  variant: "ghost",
@@ -9098,7 +9106,7 @@ function ah() {
9098
9106
  (t) => t.actions.setCardRefreshInterval
9099
9107
  );
9100
9108
  return /* @__PURE__ */ i.jsxs(hn, { children: [
9101
- /* @__PURE__ */ i.jsx(pn, { asChild: !0, children: /* @__PURE__ */ i.jsx(B, { size: "sm", variant: "outline", children: /* @__PURE__ */ i.jsx(Rl, { className: "w-4 h-4" }) }) }),
9109
+ /* @__PURE__ */ i.jsx(pn, { asChild: !0, children: /* @__PURE__ */ i.jsx(V, { size: "sm", variant: "outline", children: /* @__PURE__ */ i.jsx(Rl, { className: "w-4 h-4" }) }) }),
9102
9110
  /* @__PURE__ */ i.jsx(fn, { className: "w-[200px]", children: /* @__PURE__ */ i.jsx("div", { className: "grid gap-4", children: /* @__PURE__ */ i.jsx("div", { className: "grid gap-2", children: /* @__PURE__ */ i.jsxs("div", { className: "grid grid-cols-5 items-center gap-1", children: [
9103
9111
  /* @__PURE__ */ i.jsx(de, { className: "col-span-3", htmlFor: "width", children: "Refresh Every" }),
9104
9112
  /* @__PURE__ */ i.jsx(
@@ -9169,7 +9177,7 @@ function ch() {
9169
9177
  ] });
9170
9178
  }
9171
9179
  function rn() {
9172
- const [e, n] = G([]);
9180
+ const [e, n] = J([]);
9173
9181
  C(
9174
9182
  (h) => h.card.cfg
9175
9183
  );
@@ -9343,25 +9351,25 @@ function li(e) {
9343
9351
  return ((s = (r = (t = e == null ? void 0 : e.chartOptions) == null ? void 0 : t.scales) == null ? void 0 : r[n]) == null ? void 0 : s.type) || "linear";
9344
9352
  }
9345
9353
  function uh() {
9346
- var E, v, F, M, j, R;
9347
- const [e, n] = G(!1), t = C((A) => {
9354
+ var E, S, M, F, j, R;
9355
+ const [e, n] = J(!1), t = C((A) => {
9348
9356
  var I;
9349
9357
  return (I = A.card) == null ? void 0 : I.preferences;
9350
- }), r = vs(t), [s, l] = G(
9358
+ }), r = vs(t), [s, l] = J(
9351
9359
  li(t)
9352
- ), [a, o] = G(
9353
- ((F = (v = (E = t == null ? void 0 : t.chartOptions) == null ? void 0 : E.scales) == null ? void 0 : v[r]) == null ? void 0 : F.min) || ""
9354
- ), [c, u] = G(
9355
- ((R = (j = (M = t == null ? void 0 : t.chartOptions) == null ? void 0 : M.scales) == null ? void 0 : j[r]) == null ? void 0 : R.max) || ""
9356
- ), [h, d] = G(a || c ? "custom" : "auto"), [f, p] = G(""), y = C(
9360
+ ), [a, o] = J(
9361
+ ((M = (S = (E = t == null ? void 0 : t.chartOptions) == null ? void 0 : E.scales) == null ? void 0 : S[r]) == null ? void 0 : M.min) || ""
9362
+ ), [c, u] = J(
9363
+ ((R = (j = (F = t == null ? void 0 : t.chartOptions) == null ? void 0 : F.scales) == null ? void 0 : j[r]) == null ? void 0 : R.max) || ""
9364
+ ), [h, d] = J(a || c ? "custom" : "auto"), [f, p] = J(""), y = C(
9357
9365
  (A) => A.actions.setCardPreferences
9358
9366
  );
9359
9367
  me(() => {
9360
- var A, I, U, T, z, W, Q, q, Y, Z;
9368
+ var A, I, U, T, z, W, K, _, $, Z;
9361
9369
  l(li(t)), o(
9362
9370
  ((U = (I = (A = t == null ? void 0 : t.chartOptions) == null ? void 0 : A.scales) == null ? void 0 : I[r]) == null ? void 0 : U.min) === 0 ? 0 : ""
9363
9371
  ), u(((W = (z = (T = t == null ? void 0 : t.chartOptions) == null ? void 0 : T.scales) == null ? void 0 : z[r]) == null ? void 0 : W.max) || ""), p(
9364
- ((Z = (Y = (q = (Q = t == null ? void 0 : t.chartOptions) == null ? void 0 : Q.scales) == null ? void 0 : q[r]) == null ? void 0 : Y.ticks) == null ? void 0 : Z.stepSize) || ""
9372
+ ((Z = ($ = (_ = (K = t == null ? void 0 : t.chartOptions) == null ? void 0 : K.scales) == null ? void 0 : _[r]) == null ? void 0 : $.ticks) == null ? void 0 : Z.stepSize) || ""
9365
9373
  );
9366
9374
  }, [e, t, r]);
9367
9375
  function k(A, I) {
@@ -9482,7 +9490,7 @@ function uh() {
9482
9490
  h === "custom" && s == "linear" && w(),
9483
9491
  /* @__PURE__ */ i.jsx(vl, {}),
9484
9492
  /* @__PURE__ */ i.jsx("div", { className: "grid grid-cols-3", children: /* @__PURE__ */ i.jsx(
9485
- B,
9493
+ V,
9486
9494
  {
9487
9495
  onClick: b,
9488
9496
  variant: "secondary",
@@ -9542,7 +9550,7 @@ function dh({ idx: e }) {
9542
9550
  /* @__PURE__ */ i.jsx(pn, { children: /* @__PURE__ */ i.jsx(ia, { className: "invisible size-4 rotate-[135deg] cursor-pointer text-muted-foreground hover:text-foreground group-hover:visible" }) }),
9543
9551
  /* @__PURE__ */ i.jsxs(fn, { className: "flex w-fit gap-1 p-1", children: [
9544
9552
  /* @__PURE__ */ i.jsx(
9545
- B,
9553
+ V,
9546
9554
  {
9547
9555
  onClick: () => a("none", e),
9548
9556
  size: "sm",
@@ -9552,7 +9560,7 @@ function dh({ idx: e }) {
9552
9560
  }
9553
9561
  ),
9554
9562
  /* @__PURE__ */ i.jsx(
9555
- B,
9563
+ V,
9556
9564
  {
9557
9565
  onClick: () => a("start", e),
9558
9566
  size: "sm",
@@ -9569,7 +9577,7 @@ function dh({ idx: e }) {
9569
9577
  }
9570
9578
  ),
9571
9579
  /* @__PURE__ */ i.jsx(
9572
- B,
9580
+ V,
9573
9581
  {
9574
9582
  onClick: () => a("center", e),
9575
9583
  size: "sm",
@@ -9586,7 +9594,7 @@ function dh({ idx: e }) {
9586
9594
  }
9587
9595
  ),
9588
9596
  /* @__PURE__ */ i.jsx(
9589
- B,
9597
+ V,
9590
9598
  {
9591
9599
  onClick: () => a("end", e),
9592
9600
  size: "sm",
@@ -10364,7 +10372,7 @@ function zh({
10364
10372
  p
10365
10373
  );
10366
10374
  const E = a == null ? void 0 : a.find(
10367
- (v) => v.column === b && v.table === k && (v.database === p || v.database === r)
10375
+ (S) => S.column === b && S.table === k && (S.database === p || S.database === r)
10368
10376
  );
10369
10377
  if (E)
10370
10378
  u(E.id), c(E.id);
@@ -10441,7 +10449,7 @@ function Oh() {
10441
10449
  /* @__PURE__ */ i.jsxs("div", { className: "mt-4 flex items-center justify-between gap-2 px-3", children: [
10442
10450
  /* @__PURE__ */ i.jsx(de, { className: "text-lg", children: "Filters" }),
10443
10451
  /* @__PURE__ */ i.jsx(
10444
- B,
10452
+ V,
10445
10453
  {
10446
10454
  onClick: () => e(!1),
10447
10455
  className: "h-7 w-7 p-0",